You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

owl.carousel.min-9b504a53.js 43 KiB

преди 9 месеца
1
  1. (function(s,c,d,p){function o(t,e){this.settings=null,this.options=s.extend({},o.Defaults,e),this.$element=s(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},s.each(["onResize","onThrottledResize"],s.proxy(function(i,n){this._handlers[n]=s.proxy(this[n],this)},this)),s.each(o.Plugins,s.proxy(function(i,n){this._plugins[i.charAt(0).toLowerCase()+i.slice(1)]=new n(this)},this)),s.each(o.Workers,s.proxy(function(i,n){this._pipe.push({filter:n.filter,run:s.proxy(n.run,this)})},this)),this.setup(),this.initialize()}o.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:c,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},o.Width={Default:"default",Inner:"inner",Outer:"outer"},o.Type={Event:"event",State:"state"},o.Plugins={},o.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,r={width:"auto","margin-left":n?e:"","margin-right":n?"":e};!i&&this.$stage.children().css(r),t.css=r}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,r=!this.settings.autoWidth,a=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,a[n]=r?e*i:this._items[n].width();this._widths=a}},{filter:["items","settings"],run:function(){var t=[],e=this._items,i=this.settings,n=Math.max(2*i.items,4),r=2*Math.ceil(e.length/2),a=i.loop&&e.length?i.rewind?n:Math.max(n,r):0,h="",l="";for(a/=2;a>0;)t.push(this.normalize(t.length/2,!0)),h+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),l=e[t[t.length-1]][0].outerHTML+l,a-=1;this._clones=t,s(h).addClass("cloned").appendTo(this.$stage),s(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,n=0,r=0,a=[];++i<e;)n=a[i-1]||0,r=this._widths[this.relative(i)]+this.settings.margin,a.push(n+r*t);this._coordinates=a}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],n.eq(e).css(t.css);else i&&(t.css.width=t.items.width,n.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,r=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,h=this.coordinates(this.current())+a,l=h+this.width()*r,u=[];for(i=0,n=this._coordinates.length;i<n;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+a*r,(this.op(t,"<=",h)&&this.op(t,">",l)||this.op(e,"<",h)&&this.op(e,">",l))&&u.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+u.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],o.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=s("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(s("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},o.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(e){return s(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},o.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var t,e,i;t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:p,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},o.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},o.prototype.setup=function(){var t=this.viewport(),e=this.options.responsive,i=-1,n=null;e?(s.each(e,function(r){r<=t&&r>i&&(i=Number(r))}),n=s.extend({},this.options,e[i]),typeof n.stagePadding=="function"&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):n=s.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=i,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},o.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=s("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},o.prototype.update=function(){for(var t=0,e=this._pipe.length,i=s.proxy(function(r){return this[r]},this._invalidated),n={};t<e;)(this._invalidated.all||s.grep(this._pipe[t].filter,i).length>0)&&this._pipe[t].run(n),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},o.prototype.width=function(t){switch(t=t||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},o.prototype.onThrottledResize=function(){c.clearTimeout(this.resizeTimer),this.resizeTimer=c.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},o.prototype.registerEventHandlers=function(){s.support.transition&&this.$stage.on(s.support.transition.end+".owl.core",s.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(c,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",s.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",s.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",s.proxy(this.onDragEnd,this)))},o.prototype.onDragStart=function(t){var e=null;t.which!==3&&(s.support.transform?(e=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),e={x:e[e.length===16?12:4],y:e[e.length===16?13:5]}):(e=this.$stage.position(),e={x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is("animating")&&(s.support.transform?this.animate(e.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,t.type==="mousedown"),this.speed(0),this._drag.time=new Date().getTime(),this._drag.target=s(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),s(d).on("mouseup.owl.core touchend.owl.core",s.proxy(this.onDragEnd,this)),s(d).one("mousemove.owl.core touchmove.owl.core",s.proxy(function(i){var n=this.difference(this._drag.pointer,this.pointer(i));s(d).on("mousemove.owl.core touchmove.owl.core",s.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(i.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},o.prototype.onDragMove=function(t){var e=null,i=null,n=null,r=this.difference(this._drag.pointer,this.pointer(t)),a=this.difference(this._drag.stage.start,r);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,a.x=((a.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*r.x/5:0,a.x=Math.max(Math.min(a.x,e+n),i+n)),this._drag.stage.current=a,this.animate(a.x))},o.prototype.onDragEnd=function(t){var e=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,n=e.x>0^this.settings.rtl?"left":"right";s(d).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(e.x!==0&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,e.x!==0?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,(Math.abs(e.x)>3||new Date().getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},o.prototype.closest=function(t,e){var i=-1,n=30,r=this.width(),a=this.coordinates();return this.settings.freeDrag||s.each(a,s.proxy(function(h,l){return e==="left"&&t>l-n&&t<l+n?i=h:e==="right"&&t>l-r-n&&t<l-r+n?i=h+1:this.op(t,"<",l)&&this.op(t,">",a[h+1]!==p?a[h+1]:l-r)&&(i=e==="left"?h+1:h),i===-1},this)),this.settings.loop||(this.op(t,">",a[this.minimum()])?i=t=this.minimum():this.op(t,"<",a[this.maximum()])&&(i=t=this.maximum())),i},o.prototype.animate=function(t){var e=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this.trigger("translate")),s.support.transform3d&&s.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):e?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,s.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},o.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},o.prototype.current=function(t){if(t===p)return this._current;if(this._items.length===0)return p;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==p&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},o.prototype.invalidate=function(t){return s.type(t)==="string"&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),s.map(this._invalidated,function(e,i){return i})},o.prototype.reset=function(t){(t=this.normalize(t))!==p&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},o.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=p:(t<0||t>=i+n)&&(t=((t-n/2)%i+i)%i+n/2),t},o.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},o.prototype.maximum=function(t){var e,i,n,r=this.settings,a=this._coordinates.length;if(r.loop)a=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){if(e=this._items.length)for(i=this._items[--e].width(),n=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>n););a=e+1}else a=r.center?this._items.length-1:this._items.length-r.items;return t&&(a-=this._clones.length/2),Math.max(a,0)},o.prototype.minimum=function(t){return t?0:this._clones.length/2},o.prototype.items=function(t){return t===p?this._items.slice():(t=this.normalize(t,!0),this._items[t])},o.prototype.mergers=function(t){return t===p?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},o.prototype.clones=function(t){var e=this._clones.length/2,i=e+this._items.length,n=function(r){return r%2==0?i+r/2:e-(r+1)/2};return t===p?s.map(this._clones,function(r,a){return n(a)}):s.map(this._clones,function(r,a){return r===t?n(a):null})},o.prototype.speed=function(t){return t!==p&&(this._speed=t),this._speed},o.prototype.coordinates=function(t){var e,i=1,n=t-1;return t===p?s.map(this._coordinates,s.proxy(function(r,a){return this.coordinates(a)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,n=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[n]||0))/2*i):e=this._coordinates[n]||0,e=Math.ceil(e))},o.prototype.duration=function(t,e,i){return i===0?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},o.prototype.to=function(t,e){var i=this.current(),n=null,r=t-this.relative(i),a=(r>0)-(r<0),h=this._items.length,l=this.minimum(),u=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(r)>h/2&&(r+=-1*a*h),t=i+r,(n=((t-l)%h+h)%h+l)!==t&&n-r<=u&&n-r>0&&(i=n-r,t=n,this.reset(i))):this.settings.rewind?(u+=1,t=(t%u+u)%u):t=Math.max(l,Math.min(u,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},o.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},o.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},o.prototype.onTransitionEnd=function(t){if(t!==p&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},o.prototype.viewport=function(){var t;return this.options.responsiveBaseElement!==c?t=s(this.options.responsiveBaseElement).width():c.innerWidth?t=c.innerWidth:d.documentElement&&d.documentElement.clientWidth?t=d.documentElement.clientWidth:console.warn("Can not detect viewport width."),t},o.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:s(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return this.nodeType===1}).each(s.proxy(function(e,i){i=this.prepare(i),this.$stage.append(i),this._items.push(i),this._mergers.push(1*i.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},o.prototype.add=function(t,e){var i=this.relative(this._current);e=e===p?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:s(t),this.trigger("add",{content:t,position:e}),t=this.prepare(t),this._items.length===0||e===this._items.length?(this._items.length===0&&this.$stage.append(t),this._items.length!==0&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:e})},o.prototype.remove=function(t){(t=this.normalize(t,!0))!==p&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},o.prototype.preloadAutoWidthImages=function(t){t.each(s.proxy(function(e,i){this.enter("pre-loading"),i=s(i),s(new Image).one("load",s.proxy(function(n){i.attr("src",n.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},o.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),s(d).off(".owl.core"),this.settings.responsive!==!1&&(c.clearTimeout(this.resizeTimer),this.off(c,"resize",this._handlers.onThrottledResize));for(var t in this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},o.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?t>i:t<i;case">":return n?t<i:t>i;case">=":return n?t<=i:t>=i;case"<=":return n?t>=i:t<=i}},o.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},o.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},o.prototype.trigger=function(t,e,i,n,r){var a={item:{count:this._items.length,index:this.current()}},h=s.camelCase(s.grep(["on",t,i],function(u){return u}).join("-").toLowerCase()),l=s.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),s.extend({relatedTarget:this},a,e));return this._supress[t]||(s.each(this._plugins,function(u,g){g.onTrigger&&g.onTrigger(l)}),this.register({type:o.Type.Event,name:t}),this.$element.trigger(l),this.settings&&typeof this.settings[h]=="function"&&this.settings[h].call(this,l)),l},o.prototype.enter=function(t){s.each([t].concat(this._states.tags[t]||[]),s.proxy(function(e,i){this._states.current[i]===p&&(this._states.current[i]=0),this._states.current[i]++},this))},o.prototype.leave=function(t){s.each([t].concat(this._states.tags[t]||[]),s.proxy(function(e,i){this._states.current[i]--},this))},o.prototype.register=function(t){if(t.type===o.Type.Event){if(s.event.special[t.name]||(s.event.special[t.name]={}),!s.event.special[t.name].owl){var e=s.event.special[t.name]._default;s.event.special[t.name]._default=function(i){return!e||!e.apply||i.namespace&&i.namespace.indexOf("owl")!==-1?i.namespace&&i.namespace.indexOf("owl")>-1:e.apply(this,arguments)},s.event.special[t.name].owl=!0}}else t.type===o.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=s.grep(this._states.tags[t.name],s.proxy(function(i,n){return s.inArray(i,this._states.tags[t.name])===n},this)))},o.prototype.suppress=function(t){s.each(t,s.proxy(function(e,i){this._supress[i]=!0},this))},o.prototype.release=function(t){s.each(t,s.proxy(function(e,i){delete this._supress[i]},this))},o.prototype.pointer=function(t){var e={x:null,y:null};return t=t.originalEvent||t||c.event,t=t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,t.pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},o.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},o.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},s.fn.owlCarousel=function(t){var e=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=s(this),n=i.data("owl.carousel");n||(n=new o(this,typeof t=="object"&&t),i.data("owl.carousel",n),s.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(r,a){n.register({type:o.Type.Event,name:a}),n.$element.on(a+".owl.carousel.core",s.proxy(function(h){h.namespace&&h.relatedTarget!==this&&(this.suppress([a]),n[a].apply(this,[].slice.call(arguments,1)),this.release([a]))},n))})),typeof t=="string"&&t.charAt(0)!=="_"&&n[t].apply(n,e)})},s.fn.owlCarousel.Constructor=o})(window.Zepto||window.jQuery,window,document),function(s,c,d,p){var o=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":s.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=s.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoRefresh:!0,autoRefreshInterval:500},o.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=c.setInterval(s.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},o.prototype.destroy=function(){var t,e;c.clearInterval(this._interval);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))typeof this[e]!="function"&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o}(window.Zepto||window.jQuery,window),function(s,c,d,p){var o=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":s.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&e.property.name=="position"||e.type=="initialized")){var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,r=i.center&&-1*n||0,a=(e.property&&e.property.value!==p?e.property.value:this._core.current())+r,h=this._core.clones().length,l=s.proxy(function(u,g){this.load(g)},this);for(i.lazyLoadEager>0&&(n+=i.lazyLoadEager,i.loop&&(a-=i.lazyLoadEager,n++));r++<n;)this.load(h/2+this._core.relative(a)),h&&s.each(this._core.clones(this._core.relative(a)),l),a++}},this)},this._core.options=s.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1,lazyLoadEager:0},o.prototype.load=function(t){var e=this._core.$stage.children().eq(t),i=e&&e.find(".owl-lazy");!i||s.inArray(e.get(0),this._loaded)>-1||(i.each(s.proxy(function(n,r){var a,h=s(r),l=c.devicePixelRatio>1&&h.attr("data-src-retina")||h.attr("data-src")||h.attr("data-srcset");this._core.trigger("load",{element:h,url:l},"lazy"),h.is("img")?h.one("load.owl.lazy",s.proxy(function(){h.css("opacity",1),this._core.trigger("loaded",{element:h,url:l},"lazy")},this)).attr("src",l):h.is("source")?h.one("load.owl.lazy",s.proxy(function(){this._core.trigger("loaded",{element:h,url:l},"lazy")},this)).attr("srcset",l):(a=new Image,a.onload=s.proxy(function(){h.css({"background-image":'url("'+l+'")',opacity:"1"}),this._core.trigger("loaded",{element:h,url:l},"lazy")},this),a.src=l)},this)),this._loaded.push(e.get(0)))},o.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))typeof this[e]!="function"&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Lazy=o}(window.Zepto||window.jQuery,window),function(s,c,d,p){var o=function(t){this._core=t,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":s.proxy(function(i){i.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":s.proxy(function(i){i.namespace&&this._core.settings.autoHeight&&i.property.name==="position"&&this.update()},this),"loaded.owl.lazy":s.proxy(function(i){i.namespace&&this._core.settings.autoHeight&&i.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=s.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var e=this;s(c).on("load",function(){e._core.settings.autoHeight&&e.update()}),s(c).resize(function(){e._core.settings.autoHeight&&(e._intervalId!=null&&clearTimeout(e._intervalId),e._intervalId=setTimeout(function(){e.update()},250))})};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){var t=this._core._current,e=t+this._core.settings.items,i=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(t,e),r=[],a=0;s.each(n,function(h,l){r.push(s(l).height())}),a=Math.max.apply(null,r),a<=1&&i&&this._previousHeight&&(a=this._previousHeight),this._previousHeight=a,this._core.$stage.parent().height(a).addClass(this._core.settings.autoHeightClass)},o.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))typeof this[e]!="function"&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.AutoHeight=o}(window.Zepto||window.jQuery,window),function(s,c,d,p){var o=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":s.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":s.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":s.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":s.proxy(function(e){e.namespace&&e.property.name==="position"&&this._playing&&this.stop()},this),"prepared.owl.carousel":s.proxy(function(e){if(e.namespace){var i=s(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,s(e.content)))}},this)},this._core.options=s.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",s.proxy(function(e){this.play(e)},this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(t,e){var i=function(){return t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube"}(),n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),r=t.attr("data-width")||this._core.settings.videoWidth,a=t.attr("data-height")||this._core.settings.videoHeight,h=t.attr("href");if(!h)throw new Error("Missing video URL.");if(n=h.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[h]={type:i,id:n,width:r,height:a},e.attr("data-video",h),this.thumbnail(t,this._videos[h])},o.prototype.thumbnail=function(t,e){var i,n,r,a=e.width&&e.height?"width:"+e.width+"px;height:"+e.height+"px;":"",h=t.find("img"),l="src",u="",g=this._core.settings,m=function(f){n='<div class="owl-video-play-icon"></div>',i=g.lazyLoad?s("<div/>",{class:"owl-video-tn "+u,srcType:f}):s("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+f+")"}),t.after(i),t.after(n)};if(t.wrap(s("<div/>",{class:"owl-video-wrapper",style:a})),this._core.settings.lazyLoad&&(l="data-src",u="owl-lazy"),h.length)return m(h.attr(l)),h.remove(),!1;e.type==="youtube"?(r="//img.youtube.com/vi/"+e.id+"/hqdefault.jpg",m(r)):e.type==="vimeo"?s.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(f){r=f[0].thumbnail_large,m(r)}}):e.type==="vzaar"&&s.ajax({type:"GET",url:"//vzaar.com/api/videos/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(f){r=f.framegrab_url,m(r)}})},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},o.prototype.play=function(t){var e,i=s(t.target),n=i.closest("."+this._core.settings.itemClass),r=this._videos[n.attr("data-video")],a=r.width||"100%",h=r.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),e=s('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),e.attr("height",h),e.attr("width",a),r.type==="youtube"?e.attr("src","//www.youtube.com/embed/"+r.id+"?autoplay=1&rel=0&v="+r.id):r.type==="vimeo"?e.attr("src","//player.vimeo.com/video/"+r.id+"?autoplay=1"):r.type==="vzaar"&&e.attr("src","//view.vzaar.com/"+r.id+"/player?autoplay=true"),s(e).wrap('<div class="owl-video-frame" />').insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var t=d.fullscreenElement||d.mozFullScreenElement||d.webkitFullscreenElement;return t&&s(t).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))typeof this[e]!="function"&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(s,c,d,p){var o=function(t){this.core=t,this.core.options=s.extend({},o.Defaults,this.core.options),this.swapping=!0,this.previous=p,this.next=p,this.handlers={"change.owl.carousel":s.proxy(function(e){e.namespace&&e.property.name=="position"&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":s.proxy(function(e){e.namespace&&(this.swapping=e.type=="translated")},this),"translate.owl.carousel":s.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};o.Defaults={animateOut:!1,animateIn:!1},o.prototype.swap=function(){if(this.core.settings.items===1&&s.support.animation&&s.support.transition){this.core.speed(0);var t,e=s.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(s.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(a)),r&&n.one(s.support.animation.end,e).addClass("animated owl-animated-in").addClass(r))}},o.prototype.clear=function(t){s(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},o.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))typeof this[e]!="function"&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Animate=o}(window.Zepto||window.jQuery),function(s,c,d,p){var o=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":s.proxy(function(e){e.namespace&&e.property.name==="settings"?this._core.settings.autoplay?this.play():this.stop():e.namespace&&e.property.name==="position"&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":s.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":s.proxy(function(e,i,n){e.namespace&&this.play(i,n)},this),"stop.owl.autoplay":s.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":s.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":s.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":s.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":s.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=s.extend({},o.Defaults,this._core.options)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype._next=function(t){this._call=c.setTimeout(s.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||d.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},o.prototype.read=function(){return new Date().getTime()-this._time},o.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):c.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=c.setTimeout(s.proxy(this._next,this,e),t-i)},o.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,c.clearTimeout(this._call),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,c.clearTimeout(this._call))},o.prototype.destroy=function(){var t,e;this.stop();for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))typeof this[e]!="function"&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(s,c,d,p){var o=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":s.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+s(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":s.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":s.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":s.proxy(function(e){e.namespace&&e.property.name=="position"&&this.draw()},this),"initialized.owl.carousel":s.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":s.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=s.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers)};o.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},o.prototype.initialize=function(){var t,e=this._core.settings;this._controls.$relative=(e.navContainer?s(e.navContainer):s("<div>").addClass(e.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=s("<"+e.navElement+">").addClass(e.navClass[0]).html(e.navText[0]).prependTo(this._controls.$relative).on("click",s.proxy(function(i){this.prev(e.navSpeed)},this)),this._controls.$next=s("<"+e.navElement+">").addClass(e.navClass[1]).html(e.navText[1]).appendTo(this._controls.$relative).on("click",s.proxy(function(i){this.next(e.navSpeed)},this)),e.dotsData||(this._templates=[s('<button role="button">').addClass(e.dotClass).append(s("<span>")).prop("outerHTML")]),this._controls.$absolute=(e.dotsContainer?s(e.dotsContainer):s("<div>").addClass(e.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",s.proxy(function(i){var n=s(i.target).parent().is(this._controls.$absolute)?s(i.target).index():s(i.target).parent().index();i.preventDefault(),this.to(n,e.dotsSpeed)},this));for(t in this._overrides)this._core[t]=s.proxy(this[t],this)},o.prototype.destroy=function(){var t,e,i,n,r;r=this._core.settings;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)e==="$relative"&&r.navContainer?this._controls[e].html(""):this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))typeof this[i]!="function"&&(this[i]=null)},o.prototype.update=function(){var t,e,i=this._core.clones().length/2,n=i+this._core.items().length,r=this._core.maximum(!0),a=this._core.settings,h=a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items;if(a.slideBy!=="page"&&(a.slideBy=Math.min(a.slideBy,a.items)),a.dots||a.slideBy=="page")for(this._pages=[],t=i,e=0,0;t<n;t++){if(e>=h||e===0){if(this._pages.push({start:Math.min(r,t-i),end:t-i+h-1}),Math.min(r,t-i)===r)break;e=0}e+=this._core.mergers(this._core.relative(t))}},o.prototype.draw=function(){var t,e=this._core.settings,i=this._core.items().length<=e.items,n=this._core.relative(this._core.current()),r=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||i),e.nav&&(this._controls.$previous.toggleClass("disabled",!r&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!r&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||i),e.dots&&(t=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&t!==0?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(s.inArray(this.current(),this._pages)).addClass("active"))},o.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:s.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},o.prototype.current=function(){var t=this._core.relative(this._core.current());return s.grep(this._pages,s.proxy(function(e,i){return e.start<=t&&e.end>=t},this)).pop()},o.prototype.getPosition=function(t){var e,i,n=this._core.settings;return n.slideBy=="page"?(e=s.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=n.slideBy:e-=n.slideBy),e},o.prototype.next=function(t){s.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},o.prototype.prev=function(t){s.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},o.prototype.to=function(t,e,i){var n;!i&&this._pages.length?(n=this._pages.length,s.proxy(this._overrides.to,this._core)(this._pages[(t%n+n)%n].start,e)):s.proxy(this._overrides.to,this._core)(t,e)},s.fn.owlCarousel.Constructor.Plugins.Navigation=o}(window.Zepto||window.jQuery),function(s,c,d,p){var o=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":s.proxy(function(e){e.namespace&&this._core.settings.startPosition==="URLHash"&&s(c).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":s.proxy(function(e){if(e.namespace){var i=s(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}},this),"changed.owl.carousel":s.proxy(function(e){if(e.namespace&&e.property.name==="position"){var i=this._core.items(this._core.relative(this._core.current())),n=s.map(this._hashes,function(r,a){return r===i?a:null}).join();if(!n||c.location.hash.slice(1)===n)return;c.location.hash=n}},this)},this._core.options=s.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers),s(c).on("hashchange.owl.navigation",s.proxy(function(e){var i=c.location.hash.substring(1),n=this._core.$stage.children(),r=this._hashes[i]&&n.index(this._hashes[i]);r!==p&&r!==this._core.current()&&this._core.to(this._core.relative(r),!1,!0)},this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var t,e;s(c).off("hashchange.owl.navigation");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))typeof this[e]!="function"&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window),function(s,c,d,p){function o(a,h){var l=!1,u=a.charAt(0).toUpperCase()+a.slice(1);return s.each((a+" "+i.join(u+" ")+u).split(" "),function(g,m){if(e[m]!==p)return l=!h||m,!1}),l}function t(a){return o(a,!0)}var e=s("<support>").get(0).style,i="Webkit Moz O ms".split(" "),n={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},r={csstransforms:function(){return!!o("transform")},csstransforms3d:function(){return!!o("perspective")},csstransitions:function(){return!!o("transition")},cssanimations:function(){return!!o("animation")}};r.csstransitions()&&(s.support.transition=new String(t("transition")),s.support.transition.end=n.transition.end[s.support.transition]),r.cssanimations()&&(s.support.animation=new String(t("animation")),s.support.animation.end=n.animation.end[s.support.animation]),r.csstransforms()&&(s.support.transform=new String(t("transform")),s.support.transform3d=r.csstransforms3d())}(window.Zepto||window.jQuery);