/*! * imagesLoaded PACKAGED v3.1.8 * JavaScript is all like "You images are done yet or what?" * MIT License */ function normalizeHeight(n,t){$(t).each(function(){var t=$(n,$(this)),i;$(t).each(function(){$(this).height("auto")}),i=Math.max.apply(null,t.map(function(){return $(this).height()}).get()),$(t).each(function(){$(this).height(i)})})}function getUrlVars(){var n={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,i,r){n[i]=r});return n}function createCookie(n,t,i){var u,r;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="",document.cookie=encodeURIComponent(n)+"="+encodeURIComponent(t)+u+"; path=/"}function readCookie(n){for(var r=encodeURIComponent(n)+"=",u=document.cookie.split(";"),t,i=0;it;t+=1)i.push(n[t].listener);return i},n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i},n.addListener=function(n,t){var i,u=this.getListenersAsObject(n),f="object"==typeof t;for(i in u)u.hasOwnProperty(i)&&-1===r(u[i],t)&&u[i].push(f?t:{listener:t,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(n){return this.getListeners(n),this},n.defineEvents=function(n){for(var t=0;n.length>t;t+=1)this.defineEvent(n[t]);return this},n.removeListener=function(n,t){var f,i,u=this.getListenersAsObject(n);for(i in u)u.hasOwnProperty(i)&&(f=r(u[i],t),-1!==f&&u[i].splice(f,1));return this},n.off=i("removeListener"),n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)},n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)},n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this},n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if("object"===r)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)},n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this},n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return u.EventEmitter=f,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}).call(this),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,r=function(){},i,u;t.addEventListener?r=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(r=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)},n.attachEvent("on"+t,n[t+i])}),i=function(){},t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}}),u={bind:r,unbind:i},"function"==typeof define&&define.amd?define("eventie/eventie",u):n.eventie=u}(this),function(n,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,r){return t(n,i,r)}):"object"==typeof exports?module.exports=t(n,require("wolfy87-eventemitter"),require("eventie")):n.imagesLoaded=t(n,n.EventEmitter,n.eventie)}(window,function(n,t,i){function s(n,t){for(var i in t)n[i]=t[i];return n}function c(n){return"[object Array]"===v.call(n)}function l(n){var t=[],i,r;if(c(n))t=n;else if("number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function r(n,t,i){if(!(this instanceof r))return new r(n,t);"string"==typeof n&&(n=document.querySelectorAll(n)),this.elements=l(n),this.options=s({},this.options),"function"==typeof t?i=t:s(this.options,t),i&&this.on("always",i),this.getImages(),f&&(this.jqDeferred=new f.Deferred);var u=this;setTimeout(function(){u.check()})}function e(n){this.img=n}function u(n){this.src=n,o[n]=this}var f=n.jQuery,h=n.console,a=h!==void 0,v=Object.prototype.toString,o;return r.prototype=new t,r.prototype.options={},r.prototype.getImages=function(){var i,u,n,t,e;for(this.images=[],i=0,u=this.elements.length;u>i;i++)if(n=this.elements[i],"IMG"===n.nodeName&&this.addImage(n),t=n.nodeType,t&&(1===t||9===t||11===t))for(var f=n.querySelectorAll("img"),r=0,o=f.length;o>r;r++)e=f[r],this.addImage(e)},r.prototype.addImage=function(n){var t=new e(n);this.images.push(t)},r.prototype.check=function(){function f(n,r){return t.options.debug&&a&&h.log("confirm",n,r),t.progress(n),u++,u===i&&t.complete(),!0}var t=this,u=0,i=this.images.length,n,r;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(n=0;i>n;n++)r=this.images[n],r.on("confirm",f),r.check()},r.prototype.progress=function(n){this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,n),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,n)})},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;this.isComplete=!0,n=this,setTimeout(function(){if(n.emit(t,n),n.emit("always",n),n.jqDeferred){var i=n.hasAnyBroken?"reject":"resolve";n.jqDeferred[i](n)}})},f&&(f.fn.imagesLoaded=function(n,t){var i=new r(this,n,t);return i.jqDeferred.promise(f(this))}),e.prototype=new t,e.prototype.check=function(){var n=o[this.img.src]||new u(this.img.src),t;if(n.isConfirmed)return this.confirm(n.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;t=this,n.on("confirm",function(n,i){return t.confirm(n.isLoaded,i),!0}),n.check()},e.prototype.confirm=function(n,t){this.isLoaded=n,this.emit("confirm",this,t)},o={},u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var n=new Image;i.bind(n,"load",this),i.bind(n,"error",this),n.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},u.prototype.onload=function(n){this.confirm(!0,"onload"),this.unbindProxyEvents(n)},u.prototype.onerror=function(n){this.confirm(!1,"onerror"),this.unbindProxyEvents(n)},u.prototype.confirm=function(n,t){this.isConfirmed=!0,this.isLoaded=n,this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(n){i.unbind(n.target,"load",this),i.unbind(n.target,"error",this)},r}); /*! * Masonry PACKAGED v4.1.1 * Cascading grid layout library * http://masonry.desandro.com * MIT License * by David DeSandro */ !function(n,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return t(n,i)}):"object"==typeof module&&module.exports?module.exports=t(n,require("jquery")):n.jQueryBridget=t(n,n.jQuery)}(window,function(n,t){"use strict";function i(i,u,o){function s(n,t,r){var u,e="$()."+i+'("'+t+'")';return n.each(function(n,s){var h=o.data(s,i),c,l;if(!h)return void f(i+" not initialized. Cannot call methods, i.e. "+e);if(c=h[t],!c||"_"==t.charAt(0))return void f(e+" is not a valid method");l=c.apply(h,r),u=void 0===u?l:u}),void 0!==u?u:n}function h(n,t){n.each(function(n,r){var f=o.data(r,i);f?(f.option(t),f._init()):(f=new u(r,t),o.data(r,i,f))})}o=o||t||n.jQuery,o&&(u.prototype.option||(u.prototype.option=function(n){o.isPlainObject(n)&&(this.options=o.extend(!0,this.options,n))}),o.fn[i]=function(n){if("string"==typeof n){var t=e.call(arguments,1);return s(this,n,t)}return h(this,n),this},r(o))}function r(n){!n||n&&n.bridget||(n.bridget=i)}var e=Array.prototype.slice,u=n.console,f="undefined"==typeof u?function(){}:function(n){u.error(n)};return r(t||n.jQuery),i}),function(n,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():n.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function t(){}var n=t.prototype;return n.on=function(n,t){if(n&&t){var i=this._events=this._events||{},r=i[n]=i[n]||[];return-1==r.indexOf(t)&&r.push(t),this}},n.once=function(n,t){if(n&&t){this.on(n,t);var i=this._onceEvents=this._onceEvents||{},r=i[n]=i[n]||{};return r[t]=!0,this}},n.off=function(n,t){var i=this._events&&this._events[n],r;if(i&&i.length)return r=i.indexOf(t),-1!=r&&i.splice(r,1),this},n.emitEvent=function(n,t){var r=this._events&&this._events[n],u,i,f,e;if(r&&r.length){for(u=0,i=r[u],t=t||[],f=this._onceEvents&&this._onceEvents[n];i;)e=f&&f[i],e&&(this.off(n,i),delete f[i]),i.apply(this,t),u+=e?0:1,i=r[u];return this}},t}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return t()}):"object"==typeof module&&module.exports?module.exports=t():n.getSize=t()}(window,function(){"use strict";function n(n){var t=parseFloat(n),i=-1==n.indexOf("%")&&!isNaN(t);return i&&t}function o(){}function s(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;f>n;n++)r=t[n],i[r]=0;return i}function i(n){var t=getComputedStyle(n);return t||c("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}function h(){var t,f,o;e||(e=!0,t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box",f=document.body||document.documentElement,f.appendChild(t),o=i(t),r.isBoxSizeOuter=u=200==n(o.width),f.removeChild(t))}function r(r){var o,e,a,c,l;if(h(),"string"==typeof r&&(r=document.querySelector(r)),r&&"object"==typeof r&&r.nodeType){if(o=i(r),"none"==o.display)return s();for(e={},e.width=r.offsetWidth,e.height=r.offsetHeight,a=e.isBorderBox="border-box"==o.boxSizing,c=0;f>c;c++){var v=t[c],nt=o[v],y=parseFloat(nt);e[v]=isNaN(y)?0:y}var p=e.paddingLeft+e.paddingRight,w=e.paddingTop+e.paddingBottom,tt=e.marginLeft+e.marginRight,it=e.marginTop+e.marginBottom,b=e.borderLeftWidth+e.borderRightWidth,k=e.borderTopWidth+e.borderBottomWidth,d=a&&u,g=n(o.width);return g!==!1&&(e.width=g+(d?0:p+b)),l=n(o.height),l!==!1&&(e.height=l+(d?0:w+k)),e.innerWidth=e.width-(p+b),e.innerHeight=e.height-(w+k),e.outerWidth=e.width+tt,e.outerHeight=e.height+it,e}}var u,c="undefined"==typeof console?o:function(n){console.error(n)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],f=t.length,e=!1;return r}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():n.matchesSelector=t()}(window,function(){"use strict";var n=function(){var t=Element.prototype,i,n,u,r;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(i=["webkit","moz","ms","o"],n=0;ne?"round":"floor";u=Math[o](u),this.cols=Math.max(u,1)},i.prototype.getContainerWidth=function(){var i=this._getOption("fitWidth"),r=i?this.element.parentNode:this.element,n=t(r);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(n){n.getSize();var f=n.size.outerWidth%this.columnWidth,o=f&&1>f?"round":"ceil",t=Math[o](n.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var i=this._getColGroup(t),r=Math.min.apply(Math,i),e=i.indexOf(r),s={x:this.columnWidth*e,y:r},h=r+n.size.outerHeight,c=this.cols+1-i.length,u=0;c>u;u++)this.colYs[e+u]=h;return s},i.prototype._getColGroup=function(n){var r;if(2>n)return this.colYs;for(var i=[],u=this.cols+1-n,t=0;u>t;t++)r=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,r);return i},i.prototype._manageStamp=function(n){var e=t(n),r=this._getElementOffset(n),h=this._getOption("originLeft"),o=h?r.left:r.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i;f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i);for(var c=this._getOption("originTop"),l=(c?r.top:r.bottom)+e.outerHeight,u=f;i>=u;u++)this.colYs[u]=Math.max(l,this.colYs[u])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this._getOption("fitWidth")&&(n.width=this._getContainerFitWidth()),n},i.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!=this.containerWidth},i}); /** * Owl carousel * @version 2.0.0 * @author Bartosz Wojciechowski * @license The MIT License (MIT) * @todo Lazy Load Icon * @todo prevent animationend bubling * @todo itemsScaleUp * @todo Test Zepto * @todo stagePadding calculate wrong active classes */ (function(n,t,i,r){function u(t,i){this.settings=null,this.options=n.extend({},u.Defaults,i),this.$element=n(t),this.drag=n.extend({},o),this.state=n.extend({},s),this.e=n.extend({},h),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._invalidated={},this._pipe=[],n.each(u.Plugins,n.proxy(function(n,t){this._plugins[n[0].toLowerCase()+n.slice(1)]=new t(this)},this)),n.each(u.Pipe,n.proxy(function(t,i){this._pipe.push({filter:i.filter,run:n.proxy(i.run,this)})},this)),this.setup(),this.initialize()}function f(n){if(n.touches!==r)return{x:n.touches[0].pageX,y:n.touches[0].pageY};if(n.touches===r){if(n.pageX!==r)return{x:n.pageX,y:n.pageY};if(n.pageX===r)return{x:n.clientX,y:n.clientY}}}function e(n){var t,r,u=i.createElement("div"),f=n;for(t in f)if(r=f[t],typeof u.style[r]!="undefined")return u=null,[r,t];return[!1]}function c(){return e(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function l(){return e(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function a(){return e(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function v(){return"ontouchstart"in t||!!navigator.msMaxTouchPoints}function y(){return t.navigator.msPointerEnabled}var o,s,h;o={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},s={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},h={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},u.Defaults={items:3,loop:!1,center:!1,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:t,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},u.Width={Default:"default",Inner:"inner",Outer:"outer"},u.Plugins={},u.Pipe=[{filter:["width","items","settings"],run:function(n){n.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var n=this._clones,t=this.$stage.children(".cloned");(t.length!==n.length||!this.settings.loop&&n.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){for(var n=this._clones,t=this._items,u=this.settings.loop?n.length-Math.max(this.settings.items*2,4):0,i=0,r=Math.abs(u/2);i0?(this.$stage.children().eq(t.length+n.length-1).remove(),n.pop(),this.$stage.children().eq(0).remove(),n.pop()):(n.push(n.length/2),this.$stage.append(t[n[n.length-1]].clone().addClass("cloned")),n.push(t.length-1-(n.length-1)/2),this.$stage.prepend(t[n[n.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var u=this.settings.rtl?1:-1,f=(this.width()/this.settings.items).toFixed(3),i=0,n,t,r;for(this._coordinates=[],t=0,r=this._clones.length+this._items.length;t1}).length>0)for(t=0,r=this._coordinates.length;t",e)||this.op(r,"<",t)&&this.op(r,">",e))&&o.push(n);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+o.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],u.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var t,i,u;if(t=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:r,u=this.$element.children(i).width(),t.length&&u<=0)return this.preloadAutoWidthImages(t),!1}this.$element.addClass("owl-loading"),this.$stage=n("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('
'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},u.prototype.setup=function(){var u=this.viewport(),r=this.options.responsive,t=-1,i=null;r?(n.each(r,function(n){n<=u&&n>t&&(t=Number(n))}),i=n.extend({},this.options,r[t]),delete i.responsive,i.responsiveClass&&this.$element.attr("class",function(n,t){return t.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+t)):i=n.extend({},this.options),(this.settings===null||this._breakpoint!==t)&&(this.trigger("change",{property:{name:"settings",value:i}}),this._breakpoint=t,this.settings=i,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},u.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data},u.prototype.update=function(){for(var t=0,i=this._pipe.length,r=n.proxy(function(n){return this[n]},this._invalidated);t0)&&this._pipe[t].run({}),t++;this._invalidated={}},u.prototype.width=function(n){n=n||u.Width.Default;switch(n){case u.Width.Inner:case u.Width.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin}},u.prototype.refresh=function(){if(this._items.length===0)return!1;var n=(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=t.orientation,this.watchVisibility(),this.trigger("refreshed")},u.prototype.eventsCall=function(){this.e._onDragStart=n.proxy(function(n){this.onDragStart(n)},this),this.e._onDragMove=n.proxy(function(n){this.onDragMove(n)},this),this.e._onDragEnd=n.proxy(function(n){this.onDragEnd(n)},this),this.e._onResize=n.proxy(function(n){this.onResize(n)},this),this.e._transitionEnd=n.proxy(function(n){this.transitionEnd(n)},this),this.e._preventClick=n.proxy(function(n){this.preventClick(n)},this)},u.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},u.prototype.onResize=function(){if(!this._items.length||this._width===this.$element.width()||this.trigger("resize").isDefaultPrevented())return!1;this._width=this.$element.width(),this.invalidate("width"),this.refresh(),this.trigger("resized")},u.prototype.eventsRouter=function(n){var t=n.type;if(t==="mousedown"||t==="touchstart")this.onDragStart(n);else if(t==="mousemove"||t==="touchmove")this.onDragMove(n);else if(t==="mouseup"||t==="touchend")this.onDragEnd(n);else if(t==="touchcancel")this.onDragEnd(n)},u.prototype.internalEvents=function(){var r=v(),i=y();if(this.settings.mouseDrag){this.$stage.on("mousedown",n.proxy(function(n){this.eventsRouter(n)},this));this.$stage.on("dragstart",function(){return!1});this.$stage.get(0).onselectstart=function(){return!1}}else this.$element.addClass("owl-text-select-on");if(this.settings.touchDrag&&!i)this.$stage.on("touchstart touchcancel",n.proxy(function(n){this.eventsRouter(n)},this));if(this.transitionEndVendor)this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1);if(this.settings.responsive!==!1)this.on(t,"resize",n.proxy(this.onThrottledResize,this))},u.prototype.onDragStart=function(r){var u,e,s,o;if(u=r.originalEvent||r||t.event,u.which===3||this.state.isTouch)return!1;if(u.type==="mousedown"&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,e=f(u).x,s=f(u).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)o=this.getTransformProperty(),this.drag.offsetX=o,this.animate(o),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=e-this.drag.offsetX,this.drag.startY=s-this.drag.offsetY,this.drag.start=e-this.drag.startX,this.drag.targetEl=u.target||u.srcElement,this.drag.updatedX=this.drag.start,(this.drag.targetEl.tagName==="IMG"||this.drag.targetEl.tagName==="A")&&(this.drag.targetEl.draggable=!1);n(i).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",n.proxy(function(n){this.eventsRouter(n)},this))},u.prototype.onDragMove=function(n){var i,e,o,s,h,u;this.state.isTouch&&(this.state.isScrolling||(i=n.originalEvent||n||t.event,e=f(i).x,o=f(i).y,this.drag.currentX=e-this.drag.startX,this.drag.currentY=o-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&this.state.direction==="right"?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&this.state.direction==="left"&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(s=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),h=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),u=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,s+u),h+u)),(this.drag.distance>8||this.drag.distance<-8)&&(i.preventDefault!==r?i.preventDefault():i.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},u.prototype.onDragEnd=function(t){var u,f,r;if(this.state.isTouch){if(t.type==="mouseup"&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance===0&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),u=this.drag.endTime-this.drag.startTime,f=Math.abs(this.drag.distance),(f>3||u>300)&&this.removeClick(this.drag.targetEl),r=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(r),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(r)||this.transitionEnd(),this.drag.distance=0,n(i).off(".owl.dragEvents")}},u.prototype.removeClick=function(i){this.drag.targetEl=i;n(i).on("click.preventClick",this.e._preventClick);t.setTimeout(function(){n(i).off("click.preventClick")},300)},u.prototype.preventClick=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),n(t.target).off("click.preventClick")},u.prototype.getTransformProperty=function(){var n,i;return n=t.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),n=n.replace(/matrix(3d)?\(|\)/g,"").split(","),i=n.length===16,i!==!0?n[4]:n[12]},u.prototype.closest=function(t){var i=-1,u=30,f=this.width(),r=this.coordinates();return this.settings.freeDrag||n.each(r,n.proxy(function(n,e){return t>e-u&&t",r[n+1]||e-f)&&(i=this.state.direction==="left"?n+1:n),i===-1},this)),this.settings.loop||(this.op(t,">",r[this.minimum()])?i=t=this.minimum():this.op(t,"<",r[this.maximum()])&&(i=t=this.maximum())),i},u.prototype.animate=function(t){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+t+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:t+"px"}):this.$stage.animate({left:t},this.speed()/1e3,this.settings.fallbackEasing,n.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},u.prototype.current=function(n){if(n===r)return this._current;if(this._items.length===0)return r;if(n=this.normalize(n),this._current!==n){var t=this.trigger("change",{property:{name:"position",value:n}});t.data!==r&&(n=this.normalize(t.data)),this._current=n,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},u.prototype.invalidate=function(n){this._invalidated[n]=!0},u.prototype.reset=function(n){(n=this.normalize(n),n!==r)&&(this._speed=0,this._current=n,this.suppress(["translate","translated"]),this.animate(this.coordinates(n)),this.release(["translate","translated"]))},u.prototype.normalize=function(t,i){var u=i?this._items.length:this._items.length+this._clones.length;return!n.isNumeric(t)||u<1?r:this._clones.length?(t%u+u)%u:Math.max(this.minimum(i),Math.min(this.maximum(i),t))},u.prototype.relative=function(n){return n=this.normalize(n),n=n-this._clones.length/2,this.normalize(n,!0)},u.prototype.maximum=function(n){var i,r,u=0,f,t=this.settings;if(n)return this._items.length-1;if(!t.loop&&t.center)i=this._items.length-1;else if(t.loop||t.center)if(t.loop||t.center)i=this._items.length+t.items;else if(t.autoWidth||t.merge)for(revert=t.rtl?1:-1,r=this.$stage.width()-this.$element.width();f=this.coordinates(u);){if(f*revert>=r)break;i=++u}else throw"Can not detect maximum absolute position.";else i=this._items.length-t.items;return i},u.prototype.minimum=function(n){return n?0:this._clones.length/2},u.prototype.items=function(n){return n===r?this._items.slice():(n=this.normalize(n,!0),this._items[n])},u.prototype.mergers=function(n){return n===r?this._mergers.slice():(n=this.normalize(n,!0),this._mergers[n])},u.prototype.clones=function(t){var i=this._clones.length/2,f=i+this._items.length,u=function(n){return n%2==0?f+n/2:i-(n+1)/2};return t===r?n.map(this._clones,function(n,t){return u(t)}):n.map(this._clones,function(n,i){return n===t?u(i):null})},u.prototype.speed=function(n){return n!==r&&(this._speed=n),this._speed},u.prototype.coordinates=function(t){return t===r?n.map(this._coordinates,n.proxy(function(n,t){return this.coordinates(t)},this)):this.settings.center?this._coordinates[t]+(this.width()-null+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1):this._coordinates[t-1]||0},u.prototype.duration=function(n,t,i){return Math.min(Math.max(Math.abs(t-n),1),6)*Math.abs(i||this.settings.smartSpeed)},u.prototype.to=function(i,r){if(this.settings.loop){var f=i-this.relative(this.current()),u=this.current(),e=this.current(),o=this.current()+f,s=e-o<0?!0:!1,h=this._clones.length+this._items.length;o=h-this.settings.items&&s===!0&&(u=e-this._items.length,this.reset(u)),t.clearTimeout(this.e._goToLoop),this.e._goToLoop=t.setTimeout(n.proxy(function(){this.speed(this.duration(this.current(),u+f,r)),this.current(u+f),this.update()},this),30)}else this.speed(this.duration(this.current(),i,r)),this.current(i),this.update()},u.prototype.next=function(n){n=n||!1,this.to(this.relative(this.current())+1,n)},u.prototype.prev=function(n){n=n||!1,this.to(this.relative(this.current())-1,n)},u.prototype.transitionEnd=function(n){if(n!==r&&(n.stopPropagation(),(n.target||n.srcElement||n.originalTarget)!==this.$stage.get(0)))return!1;this.state.inMotion=!1,this.trigger("translated")},u.prototype.viewport=function(){var r;if(this.options.responsiveBaseElement!==t)r=n(this.options.responsiveBaseElement).width();else if(t.innerWidth)r=t.innerWidth;else if(i.documentElement&&i.documentElement.clientWidth)r=i.documentElement.clientWidth;else throw"Can not detect viewport width.";return r},u.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:n(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return this.nodeType===1}).each(n.proxy(function(n,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")*1||1)},this)),this.reset(n.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},u.prototype.add=function(n,t){t=t===r?this._items.length:this.normalize(t,!0),this.trigger("add",{content:n,position:t}),this._items.length===0||t===this._items.length?(this.$stage.append(n),this._items.push(n),this._mergers.push(n.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")*1||1)):(this._items[t].before(n),this._items.splice(t,0,n),this._mergers.splice(t,0,n.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")*1||1)),this.invalidate("items"),this.trigger("added",{content:n,position:t})},u.prototype.remove=function(n){(n=this.normalize(n,!0),n!==r)&&(this.trigger("remove",{content:this._items[n],position:n}),this._items[n].remove(),this._items.splice(n,1),this._mergers.splice(n,1),this.invalidate("items"),this.trigger("removed",{content:null,position:n}))},u.prototype.addTriggerableEvents=function(){var t=n.proxy(function(t,i){return n.proxy(function(n){n.relatedTarget!==this&&(this.suppress([i]),t.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);n.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},n.proxy(function(n,i){this.$element.on(n+".owl.carousel",t(i,n+".owl.carousel"))},this))},u.prototype.watchVisibility=function(){function i(n){return n.offsetWidth>0&&n.offsetHeight>0}function r(){i(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),t.clearInterval(this.e._checkVisibile))}i(this.$element.get(0))||(this.$element.addClass("owl-hidden"),t.clearInterval(this.e._checkVisibile),this.e._checkVisibile=t.setInterval(n.proxy(r,this),500))},u.prototype.preloadAutoWidthImages=function(t){var u,f,i,r;u=0,f=this,t.each(function(e,o){i=n(o),r=new Image,r.onload=function(){u++,i.attr("src",r.src),i.css("opacity",1),u>=t.length&&(f.state.imagesLoaded=!0,f.initialize())},r.src=i.attr("src")||i.attr("data-src")||i.attr("data-src-retina")})},u.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&n(t).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var r in this._plugins)this._plugins[r].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),n(i).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},u.prototype.op=function(n,t,i){var r=this.settings.rtl;switch(t){case"<":return r?n>i:n":return r?ni;case">=":return r?n<=i:n>=i;case"<=":return r?n>=i:n<=i}},u.prototype.on=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)},u.prototype.off=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)},u.prototype.trigger=function(t,i,r){var e={item:{count:this._items.length,index:this.current()}},f=n.camelCase(n.grep(["on",t,r],function(n){return n}).join("-").toLowerCase()),u=n.Event([t,"owl",r||"carousel"].join(".").toLowerCase(),n.extend({relatedTarget:this},e,i));return this._supress[t]||(n.each(this._plugins,function(n,t){if(t.onTrigger)t.onTrigger(u)}),this.$element.trigger(u),this.settings&&typeof this.settings[f]=="function"&&this.settings[f].apply(this,u)),u},u.prototype.suppress=function(t){n.each(t,n.proxy(function(n,t){this._supress[t]=!0},this))},u.prototype.release=function(t){n.each(t,n.proxy(function(n,t){delete this._supress[t]},this))},u.prototype.browserSupport=function(){if(this.support3d=a(),this.support3d){this.transformVendor=l();this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][c()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=this.vendorName!==""?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=t.orientation},n.fn.owlCarousel=function(t){return this.each(function(){n(this).data("owlCarousel")||n(this).data("owlCarousel",new u(this,t))})},n.fn.owlCarousel.Constructor=u})(window.Zepto||window.jQuery,window,document); /** * Lazy Plugin * @version 2.0.0 * @author Bartosz Wojciechowski * @license The MIT License (MIT) */ (function(n,t){var i=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":n.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&t.property.name=="position"||t.type=="initialized"))for(var i=this._core.settings,r=i.center&&Math.ceil(i.items/2)||i.items,u=i.center&&r*-1||0,f=(t.property&&t.property.value||this._core.current())+u,e=this._core.clones().length,o=n.proxy(function(n,t){this.load(t)},this);u++-1||(u.each(n.proxy(function(i,r){var u=n(r),e,f=t.devicePixelRatio>1&&u.attr("data-src-retina")||u.attr("data-src");this._core.trigger("load",{element:u,url:f},"lazy"),u.is("img")?u.one("load.owl.lazy",n.proxy(function(){u.css("opacity",1),this._core.trigger("loaded",{element:u,url:f},"lazy")},this)).attr("src",f):(e=new Image,e.onload=n.proxy(function(){u.css({"background-image":"url("+f+")",opacity:"1"}),this._core.trigger("loaded",{element:u,url:f},"lazy")},this),e.src=f)},this)),this._loaded.push(r.get(0)))},i.prototype.destroy=function(){var n,t;for(n in this.handlers)this._core.$element.off(n,this.handlers[n]);for(t in Object.getOwnPropertyNames(this))typeof this[t]!="function"&&(this[t]=null)},n.fn.owlCarousel.Constructor.Plugins.Lazy=i})(window.Zepto||window.jQuery,window,document); /** * AutoHeight Plugin * @version 2.0.0 * @author Bartosz Wojciechowski * @license The MIT License (MIT) */ (function(n){var t=function(i){this._core=i,this._handlers={"initialized.owl.carousel":n.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":n.proxy(function(n){this._core.settings.autoHeight&&n.property.name=="position"&&this.update()},this),"loaded.owl.lazy":n.proxy(function(n){this._core.settings.autoHeight&&n.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=n.extend({},t.Defaults,this._core.options);this._core.$element.on(this._handlers)};t.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},t.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},t.prototype.destroy=function(){var n,t;for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))typeof this[t]!="function"&&(this[t]=null)},n.fn.owlCarousel.Constructor.Plugins.AutoHeight=t})(window.Zepto||window.jQuery,window,document); /** * Video Plugin * @version 2.0.0 * @author Bartosz Wojciechowski * @license The MIT License (MIT) */ (function(n,t,i){var r=function(t){this._core=t,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":n.proxy(function(n){this._core.settings.video&&!this.isInFullScreen()&&n.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":n.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":n.proxy(function(t){var i=n(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,n(t.content)))},this)},this._core.options=n.extend({},r.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on("click.owl.video",".owl-video-play-icon",n.proxy(function(n){this.play(n)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(n,t){var u=n.attr("data-vimeo-id")?"vimeo":"youtube",i=n.attr("data-vimeo-id")||n.attr("data-youtube-id"),f=n.attr("data-width")||this._core.settings.videoWidth,e=n.attr("data-height")||this._core.settings.videoHeight,r=n.attr("href");if(r){if(i=r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),i[3].indexOf("youtu")>-1)u="youtube";else if(i[3].indexOf("vimeo")>-1)u="vimeo";else throw new Error("Video URL not supported.");i=i[6]}else throw new Error("Missing video URL.");this._videos[r]={type:u,id:i,width:f,height:e},t.attr("data-video",r),this.thumbnail(n,this._videos[r])},r.prototype.thumbnail=function(t,i){var u,s,r,c=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",f=t.find("img"),e="src",h="",l=this._core.settings,o=function(n){s='
<\/div>',u=l.lazyLoad?'
<\/div>':'
<\/div>',t.after(u),t.after(s)};if(t.wrap('
<\/div>"),this._core.settings.lazyLoad&&(e="data-src",h="owl-lazy"),f.length)return o(f.attr(e)),f.remove(),!1;i.type==="youtube"?(r="http://img.youtube.com/vi/"+i.id+"/hqdefault.jpg",o(r)):i.type==="vimeo"&&n.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(n){r=n[0].thumbnail_large,o(r)}})},r.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},r.prototype.play=function(t){this._core.trigger("play",null,"video"),this._playing&&this.stop();var o=n(t.target||t.srcElement),r=o.closest("."+this._core.settings.itemClass),i=this._videos[r.attr("data-video")],u=i.width||"100%",f=i.height||this._core.$stage.height(),e,s;i.type==="youtube"?e='