document.addEventListener('DOMContentLoaded', function (){
var elements_to_remove=['#pw-weak', '.pw-weak'];
var elements_to_remove_length=elements_to_remove.length;
for (var i=0; i < elements_to_remove_length; i++){
var nodes=document.querySelectorAll(elements_to_remove[i]);
var nodes_length=nodes.length;
for (var j=0; j < nodes_length; j++){
if(nodes[j].parentNode){
nodes[j].parentNode.removeChild(nodes[j]);
}}
}});
let timer;
document.addEventListener('visibilitychange', function(){
clearTimeout(timer);
if(document.hidden){
timer=setTimeout(function(){
document.originalTitle=document.title;
document.title=ittcData.inactiveTitle;
}, ittcData.timeout);
}else{
document.title=document.originalTitle||document.title;
}});
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}});
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){$.easing["jswing"]=$.easing["swing"];var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=1.5/d1)*x+.75}else if(x<2.5/d1){return n1*(x-=2.25/d1)*x+.9375}else{return n1*(x-=2.625/d1)*x+.984375}}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*((c2+1)*2*x-c2)/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})});
(function(a,b){if(typeof define==="function"&&define.amd){define(b)}else{if(typeof exports==="object"){module.exports=b()}else{a.NProgress=b()}}})(this,function(){var e={};e.version="0.2.0";var b=e.settings={minimum:0.08,easing:"linear",positionUsing:"",speed:200,trickle:true,trickleSpeed:200,showSpinner:true,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};e.configure=function(m){var n,o;for(n in m){o=m[n];if(o!==undefined&&m.hasOwnProperty(n)){b[n]=o}}return this};e.status=null;e.set=function(s){var m=e.isStarted();s=g(s,b.minimum,1);e.status=(s===1?null:s);var o=e.render(!m),p=o.querySelector(b.barSelector),q=b.speed,r=b.easing;o.offsetWidth;i(function(n){if(b.positionUsing===""){b.positionUsing=e.getPositioningCSS()}h(p,a(s,q,r));if(s===1){h(o,{transition:"none",opacity:1});o.offsetWidth;setTimeout(function(){h(o,{transition:"all "+q+"ms linear",opacity:0});setTimeout(function(){e.remove();n()},q)},q)}else{setTimeout(n,q)}});return this};e.isStarted=function(){return typeof e.status==="number"};e.start=function(){if(!e.status){e.set(0)}var m=function(){setTimeout(function(){if(!e.status){return}e.trickle();m()},b.trickleSpeed)};if(b.trickle){m()}return this};e.done=function(m){if(!m&&!e.status){return this}return e.inc(0.3+0.5*Math.random()).set(1)};e.inc=function(m){var o=e.status;if(!o){return e.start()}else{if(o>1){return}else{if(typeof m!=="number"){if(o>=0&&o<0.2){m=0.1}else{if(o>=0.2&&o<0.5){m=0.04}else{if(o>=0.5&&o<0.8){m=0.02}else{if(o>=0.8&&o<0.99){m=0.005}else{m=0}}}}}o=g(o+m,0,0.994);return e.set(o)}}};e.trickle=function(){return e.inc()};(function(){var m=0,n=0;e.promise=function(o){if(!o||o.state()==="resolved"){return this}if(n===0){e.start()}m++;n++;o.always(function(){n--;if(n===0){m=0;e.done()}else{e.set((m-n)/m)}});return this}})();e.render=function(m){if(e.isRendered()){return document.getElementById("nprogress")}j(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress";n.innerHTML=b.template;var q=n.querySelector(b.barSelector),o=m?"-100":c(e.status||0),p=document.querySelector(b.parent),r;h(q,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"});if(!b.showSpinner){r=n.querySelector(b.spinnerSelector);r&&k(r)}if(p!=document.body){j(p,"nprogress-custom-parent")}p.appendChild(n);return n};e.remove=function(){l(document.documentElement,"nprogress-busy");l(document.querySelector(b.parent),"nprogress-custom-parent");var m=document.getElementById("nprogress");m&&k(m)};e.isRendered=function(){return !!document.getElementById("nprogress")};e.getPositioningCSS=function(){var m=document.body.style;var n=("WebkitTransform" in m)?"Webkit":("MozTransform" in m)?"Moz":("msTransform" in m)?"ms":("OTransform" in m)?"O":"";if(n+"Perspective" in m){return"translate3d"}else{if(n+"Transform" in m){return"translate"}else{return"margin"}}};function g(p,o,m){if(p<o){return o}if(p>m){return m}return p}function c(m){return(-1+m)*100}function a(q,o,p){var m;if(b.positionUsing==="translate3d"){m={transform:"translate3d("+c(q)+"%,0,0)"}}else{if(b.positionUsing==="translate"){m={transform:"translate("+c(q)+"%,0)"}}else{m={"margin-left":c(q)+"%"}}}m.transition="all "+o+"ms "+p;return m}var i=(function(){var n=[];function m(){var o=n.shift();if(o){o(m)}}return function(o){n.push(o);if(n.length==1){m()}}})();var h=(function(){var m=["Webkit","O","Moz","ms"],r={};function o(s){return s.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,u){return u.toUpperCase()})}function q(s){var u=document.body.style;if(s in u){return s}var t=m.length,w=s.charAt(0).toUpperCase()+s.slice(1),v;while(t--){v=m[t]+w;if(v in u){return v}}return s}function p(s){s=o(s);return r[s]||(r[s]=q(s))}function n(s,u,t){u=p(u);s.style[u]=t}return function(u,t){var s=arguments,w,v;if(s.length==2){for(w in t){v=t[w];if(v!==undefined&&t.hasOwnProperty(w)){n(u,w,v)}}}else{n(u,s[1],s[2])}}})();function f(n,m){var o=typeof n=="string"?n:d(n);return o.indexOf(" "+m+" ")>=0}function j(n,m){var p=d(n),o=p+m;if(f(p,m)){return}n.className=o.substring(1)}function l(n,m){var p=d(n),o;if(!f(n,m)){return}o=p.replace(" "+m+" "," ");n.className=o.substring(1,o.length-1)}function d(m){return(" "+(m&&m.className||"")+" ").replace(/\s+/gi," ")}function k(m){m&&m.parentNode&&m.parentNode.removeChild(m)}return e});
!function(e,t){var i,s,n;i=e.jQuery,s=function(e,o){var t,i=document.createElement("canvas");e.appendChild(i);var a=i.getContext("2d");i.width=i.height=o.size,a.translate(o.size/2,o.size/2),a.rotate((o.rotate/180-.5)*Math.PI);var r=(o.size-o.lineWidth)/2;Date.now=Date.now||function(){return+new Date};var n=function(e,t,i){var n=(i=Math.min(Math.max(-1,i||0),1))<=0;a.beginPath(),a.arc(0,0,r,0,2*Math.PI*i,n),a.strokeStyle=e,a.lineWidth=t,a.stroke()},s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},d=function(){o.trackColor&&n(o.trackColor,o.lineWidth,1)};this.clear=function(){a.clearRect(o.size/-2,o.size/-2,o.size,o.size)},this.draw=function(e){o.trackColor?a.getImageData&&a.putImageData?t?a.putImageData(t,0,0):(d(),t=a.getImageData(0,0,o.size,o.size)):(this.clear(),d()):this.clear(),a.lineCap=o.lineCap,n(o.barColor,o.lineWidth,e/100)}.bind(this),this.animate=function(i,n){var a=Date.now(),r=function(){var e=Math.min(Date.now()-a,o.animate.duration),t=o.easing(this,e,i,n-i,o.animate.duration);this.draw(t),o.onStep(i,n,t),s(r)}.bind(this);s(r)}.bind(this)},n=function(i,n){var a={barColor:"#ef1e25",trackColor:"#f9f9f9",lineCap:"round",lineWidth:3,size:150,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(e,t,i,n,a){return(t/=a/2)<1?n/2*t*t+i:-n/2*(--t*(t-2)-1)+i},onStep:function(e,t,i){},renderer:s},r={},o=0;(function(){for(var e in this.element=i,this.options=r,a)a.hasOwnProperty(e)&&(r[e]=n&&void 0!==n[e]?n[e]:a[e],"function"==typeof r[e]&&(r[e]=r[e].bind(this)));if("string"==typeof r.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[r.easing])?r.easing=jQuery.easing[r.easing]:r.easing=a.easing,this.renderer=new r.renderer(i,r),this.renderer.draw(o),i.getAttribute&&i.getAttribute("data-percent")){var t=parseFloat(i.getAttribute("data-percent"));r.animate.enabled?this.renderer.animate(o,t):this.renderer.draw(t),o=t}}).bind(this)()},i.fn.pieChart=function(t){return this.each(function(){if(!i.data(this,"pieChart")){var e=i.extend({},t,i(this).data());i.data(this,"pieChart",new n(this,e))}})}}(this);
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof exports!=="undefined"){module.exports=a(require("jquery"))}else{a(jQuery)}}}(function(a){var b=window.Slick||{};b=(function(){var c=0;function d(g,h){var f=this,e;f.defaults={accessibility:true,adaptiveHeight:false,appendArrows:a(g),appendDots:a(g),arrows:true,asNavFor:null,prevArrow:'<div class="slick-prev"></div>',nextArrow:'<div class="slick-next"></div>',autoplay:false,autoplaySpeed:3000,centerMode:false,centerPadding:"50px",cssEase:"ease",customPaging:function(k,j){return a("<span><span/>").text(j+1)},dots:false,dotsClass:"slick-dots",draggable:true,easing:"linear",edgeFriction:0.35,fade:false,focusOnSelect:false,focusOnChange:false,infinite:true,initialSlide:0,lazyLoad:"ondemand",mobileFirst:false,pauseOnHover:true,pauseOnFocus:true,pauseOnDotsHover:false,respondTo:"window",responsive:null,rows:1,rtl:false,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:true,swipeToSlide:false,touchMove:true,touchThreshold:20,useCSS:true,useTransform:true,variableWidth:false,vertical:false,verticalSwiping:false,waitForAnimate:true,zIndex:1000};f.initials={animating:false,dragging:false,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:false,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:false,slideOffset:0,swipeLeft:null,swiping:false,$list:null,touchObject:{},transformsEnabled:false,unslicked:false};a.extend(f,f.initials);f.activeBreakpoint=null;f.animType=null;f.animProp=null;f.breakpoints=[];f.breakpointSettings=[];f.cssTransitions=false;f.focussed=false;f.interrupted=false;f.hidden="hidden";f.paused=true;f.positionProp=null;f.respondTo=null;f.rowCount=1;f.shouldClick=true;f.$slider=a(g);f.$slidesCache=null;f.transformType=null;f.transitionType=null;f.visibilityChange="visibilitychange";f.windowWidth=0;f.windowTimer=null;e=a(g).data("slick")||{};f.options=a.extend({},f.defaults,h,e);f.currentSlide=f.options.initialSlide;f.originalSettings=f.options;if(typeof document.mozHidden!=="undefined"){f.hidden="mozHidden";f.visibilityChange="mozvisibilitychange"}else{if(typeof document.webkitHidden!=="undefined"){f.hidden="webkitHidden";f.visibilityChange="webkitvisibilitychange"}}f.autoPlay=a.proxy(f.autoPlay,f);f.autoPlayClear=a.proxy(f.autoPlayClear,f);f.autoPlayIterator=a.proxy(f.autoPlayIterator,f);f.changeSlide=a.proxy(f.changeSlide,f);f.clickHandler=a.proxy(f.clickHandler,f);f.selectHandler=a.proxy(f.selectHandler,f);f.setPosition=a.proxy(f.setPosition,f);f.swipeHandler=a.proxy(f.swipeHandler,f);f.dragHandler=a.proxy(f.dragHandler,f);f.keyHandler=a.proxy(f.keyHandler,f);f.instanceUid=c++;f.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;f.registerBreakpoints();f.init(true)}return d}());b.prototype.activateADA=function(){var c=this;c.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};b.prototype.addSlide=b.prototype.slickAdd=function(c,e,f){var d=this;if(typeof(e)==="boolean"){f=e;e=null}else{if(e<0||(e>=d.slideCount)){return false}}d.unload();if(typeof(e)==="number"){if(e===0&&d.$slides.length===0){a(c).appendTo(d.$slideTrack)}else{if(f){a(c).insertBefore(d.$slides.eq(e))}else{a(c).insertAfter(d.$slides.eq(e))}}}else{if(f===true){a(c).prependTo(d.$slideTrack)}else{a(c).appendTo(d.$slideTrack)}}d.$slides=d.$slideTrack.children(this.options.slide);d.$slideTrack.children(this.options.slide).detach();d.$slideTrack.append(d.$slides);d.$slides.each(function(g,h){a(h).attr("data-slick-index",g)});d.$slidesCache=d.$slides;d.reinit()};b.prototype.animateHeight=function(){var d=this;if(d.options.slidesToShow===1&&d.options.adaptiveHeight===true&&d.options.vertical===false){var c=d.$slides.eq(d.currentSlide).outerHeight(true);d.$list.animate({height:c},d.options.speed)}};b.prototype.animateSlide=function(f,e){var d={},c=this;c.animateHeight();if(c.options.rtl===true&&c.options.vertical===false){f=-f}if(c.transformsEnabled===false){if(c.options.vertical===false){c.$slideTrack.animate({left:f},c.options.speed,c.options.easing,e)}else{c.$slideTrack.animate({top:f},c.options.speed,c.options.easing,e)}}else{if(c.cssTransitions===false){if(c.options.rtl===true){c.currentLeft=-(c.currentLeft)}a({animStart:c.currentLeft}).animate({animStart:f},{duration:c.options.speed,easing:c.options.easing,step:function(g){g=Math.ceil(g);if(c.options.vertical===false){d[c.animType]="translate("+g+"px, 0px)";c.$slideTrack.css(d)}else{d[c.animType]="translate(0px,"+g+"px)";c.$slideTrack.css(d)}},complete:function(){if(e){e.call()}}})}else{c.applyTransition();f=Math.ceil(f);if(c.options.vertical===false){d[c.animType]="translate3d("+f+"px, 0px, 0px)"}else{d[c.animType]="translate3d(0px,"+f+"px, 0px)"}c.$slideTrack.css(d);if(e){setTimeout(function(){c.disableTransition();e.call()},c.options.speed)}}}};b.prototype.getNavTarget=function(){var d=this,c=d.options.asNavFor;if(c&&c!==null){c=a(c).not(d.$slider)}return c};b.prototype.asNavFor=function(e){var d=this,c=d.getNavTarget();if(c!==null&&typeof c==="object"){c.each(function(){var f=a(this).slick("getSlick");if(!f.unslicked){f.slideHandler(e,true)}})}};b.prototype.applyTransition=function(c){var d=this,e={};if(d.options.fade===false){e[d.transitionType]=d.transformType+" "+d.options.speed+"ms "+d.options.cssEase}else{e[d.transitionType]="opacity "+d.options.speed+"ms "+d.options.cssEase}if(d.options.fade===false){d.$slideTrack.css(e)}else{d.$slides.eq(c).css(e)}};b.prototype.autoPlay=function(){var c=this;c.autoPlayClear();if(c.slideCount>c.options.slidesToShow){c.autoPlayTimer=setInterval(c.autoPlayIterator,c.options.autoplaySpeed)}};b.prototype.autoPlayClear=function(){var c=this;if(c.autoPlayTimer){clearInterval(c.autoPlayTimer)}};b.prototype.autoPlayIterator=function(){var c=this,d=c.currentSlide+c.options.slidesToScroll;if(!c.paused&&!c.interrupted&&!c.focussed){if(c.options.infinite===false){if(c.direction===1&&(c.currentSlide+1)===(c.slideCount-1)){c.direction=0}else{if(c.direction===0){d=c.currentSlide-c.options.slidesToScroll;if(c.currentSlide-1===0){c.direction=1}}}}c.slideHandler(d)}};b.prototype.buildArrows=function(){var c=this;if(c.options.arrows===true){c.$prevArrow=a(c.options.prevArrow).addClass("slick-arrow");c.$nextArrow=a(c.options.nextArrow).addClass("slick-arrow");if(c.slideCount>c.options.slidesToShow){c.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex");c.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex");if(c.htmlExpr.test(c.options.prevArrow)){c.$prevArrow.prependTo(c.options.appendArrows)}if(c.htmlExpr.test(c.options.nextArrow)){c.$nextArrow.appendTo(c.options.appendArrows)}if(c.options.infinite!==true){c.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")}}else{c.$prevArrow.add(c.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"})}}};b.prototype.buildDots=function(){var d=this,e,c;if(d.options.dots===true&&d.slideCount>d.options.slidesToShow){d.$slider.addClass("slick-dotted");c=a("<ul />").addClass(d.options.dotsClass);for(e=0;e<=d.getDotCount();e+=1){c.append(a("<li />").append(d.options.customPaging.call(this,d,e)))}d.$dots=c.appendTo(d.options.appendDots);d.$dots.find("li").first().addClass("slick-active")}};b.prototype.buildOut=function(){var c=this;c.$slides=c.$slider.children(c.options.slide+":not(.slick-cloned)").addClass("slick-slide");c.slideCount=c.$slides.length;c.$slides.each(function(d,e){a(e).attr("data-slick-index",d).data("originalStyling",a(e).attr("style")||"")});c.$slider.addClass("slick-slider");c.$slideTrack=(c.slideCount===0)?a('<div class="slick-track"/>').appendTo(c.$slider):c.$slides.wrapAll('<div class="slick-track"/>').parent();c.$list=c.$slideTrack.wrap('<div class="slick-list"/>').parent();c.$slideTrack.css("opacity",0);if(c.options.centerMode===true||c.options.swipeToSlide===true){c.options.slidesToScroll=1}a("img[data-lazy]",c.$slider).not("[src]").addClass("slick-loading");c.setupInfinite();c.buildArrows();c.buildDots();c.updateDots();c.setSlideClasses(typeof c.currentSlide==="number"?c.currentSlide:0);if(c.options.draggable===true){c.$list.addClass("draggable")}};b.prototype.buildRows=function(){var m=this,l,k,i,d,j,h,e;d=document.createDocumentFragment();h=m.$slider.children();if(m.options.rows>0){e=m.options.slidesPerRow*m.options.rows;j=Math.ceil(h.length/e);for(l=0;l<j;l++){var f=document.createElement("div");for(k=0;k<m.options.rows;k++){var n=document.createElement("div");for(i=0;i<m.options.slidesPerRow;i++){var g=(l*e+((k*m.options.slidesPerRow)+i));if(h.get(g)){n.appendChild(h.get(g))}}f.appendChild(n)}d.appendChild(f)}m.$slider.empty().append(d);m.$slider.children().children().children().css({width:(100/m.options.slidesPerRow)+"%",display:"inline-block"})}};b.prototype.checkResponsive=function(h,j){var k=this,i,c,e,f=false;var g=k.$slider.width();var d=window.innerWidth||a(window).width();if(k.respondTo==="window"){e=d}else{if(k.respondTo==="slider"){e=g}else{if(k.respondTo==="min"){e=Math.min(d,g)}}}if(k.options.responsive&&k.options.responsive.length&&k.options.responsive!==null){c=null;for(i in k.breakpoints){if(k.breakpoints.hasOwnProperty(i)){if(k.originalSettings.mobileFirst===false){if(e<k.breakpoints[i]){c=k.breakpoints[i]}}else{if(e>k.breakpoints[i]){c=k.breakpoints[i]}}}}if(c!==null){if(k.activeBreakpoint!==null){if(c!==k.activeBreakpoint||j){k.activeBreakpoint=c;if(k.breakpointSettings[c]==="unslick"){k.unslick(c)}else{k.options=a.extend({},k.originalSettings,k.breakpointSettings[c]);if(h===true){k.currentSlide=k.options.initialSlide}k.refresh(h)}f=c}}else{k.activeBreakpoint=c;if(k.breakpointSettings[c]==="unslick"){k.unslick(c)}else{k.options=a.extend({},k.originalSettings,k.breakpointSettings[c]);if(h===true){k.currentSlide=k.options.initialSlide}k.refresh(h)}f=c}}else{if(k.activeBreakpoint!==null){k.activeBreakpoint=null;k.options=k.originalSettings;if(h===true){k.currentSlide=k.options.initialSlide}k.refresh(h);f=c}}if(!h&&f!==false){k.$slider.trigger("breakpoint",[k,f])}}};b.prototype.changeSlide=function(g,j){var e=this,c=a(g.currentTarget),i,f,h;if(c.is("a")){g.preventDefault()}if(!c.is("li")){c=c.closest("li")}h=(e.slideCount%e.options.slidesToScroll!==0);i=h?0:(e.slideCount-e.currentSlide)%e.options.slidesToScroll;switch(g.data.message){case"previous":f=i===0?e.options.slidesToScroll:e.options.slidesToShow-i;if(e.slideCount>e.options.slidesToShow){e.slideHandler(e.currentSlide-f,false,j)}break;case"next":f=i===0?e.options.slidesToScroll:i;if(e.slideCount>e.options.slidesToShow){e.slideHandler(e.currentSlide+f,false,j)}break;case"index":var d=g.data.index===0?0:g.data.index||c.index()*e.options.slidesToScroll;e.slideHandler(e.checkNavigable(d),false,j);c.children().trigger("focus");break;default:return}};b.prototype.checkNavigable=function(d){var c=this,e,f;e=c.getNavigableIndexes();f=0;if(d>e[e.length-1]){d=e[e.length-1]}else{for(var g in e){if(d<e[g]){d=f;break}f=e[g]}}return d};b.prototype.cleanUpEvents=function(){var c=this;if(c.options.dots&&c.$dots!==null){a("li",c.$dots).off("click.slick",c.changeSlide).off("mouseenter.slick",a.proxy(c.interrupt,c,true)).off("mouseleave.slick",a.proxy(c.interrupt,c,false));if(c.options.accessibility===true){c.$dots.off("keydown.slick",c.keyHandler)}}c.$slider.off("focus.slick blur.slick");if(c.options.arrows===true&&c.slideCount>c.options.slidesToShow){c.$prevArrow&&c.$prevArrow.off("click.slick",c.changeSlide);c.$nextArrow&&c.$nextArrow.off("click.slick",c.changeSlide);if(c.options.accessibility===true){c.$prevArrow&&c.$prevArrow.off("keydown.slick",c.keyHandler);c.$nextArrow&&c.$nextArrow.off("keydown.slick",c.keyHandler)}}c.$list.off("touchstart.slick mousedown.slick",c.swipeHandler);c.$list.off("touchmove.slick mousemove.slick",c.swipeHandler);c.$list.off("touchend.slick mouseup.slick",c.swipeHandler);c.$list.off("touchcancel.slick mouseleave.slick",c.swipeHandler);c.$list.off("click.slick",c.clickHandler);a(document).off(c.visibilityChange,c.visibility);c.cleanUpSlideEvents();if(c.options.accessibility===true){c.$list.off("keydown.slick",c.keyHandler)}if(c.options.focusOnSelect===true){a(c.$slideTrack).children().off("click.slick",c.selectHandler)}a(window).off("orientationchange.slick.slick-"+c.instanceUid,c.orientationChange);a(window).off("resize.slick.slick-"+c.instanceUid,c.resize);a("[draggable!=true]",c.$slideTrack).off("dragstart",c.preventDefault);a(window).off("load.slick.slick-"+c.instanceUid,c.setPosition)};b.prototype.cleanUpSlideEvents=function(){var c=this;c.$list.off("mouseenter.slick",a.proxy(c.interrupt,c,true));c.$list.off("mouseleave.slick",a.proxy(c.interrupt,c,false))};b.prototype.cleanUpRows=function(){var d=this,c;if(d.options.rows>0){c=d.$slides.children().children();c.removeAttr("style");d.$slider.empty().append(c)}};b.prototype.clickHandler=function(d){var c=this;if(c.shouldClick===false){d.stopImmediatePropagation();d.stopPropagation();d.preventDefault()}};b.prototype.destroy=function(d){var c=this;c.autoPlayClear();c.touchObject={};c.cleanUpEvents();a(".slick-cloned",c.$slider).detach();if(c.$dots){c.$dots.remove()}if(c.$prevArrow&&c.$prevArrow.length){c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display","");if(c.htmlExpr.test(c.options.prevArrow)){c.$prevArrow.remove()}}if(c.$nextArrow&&c.$nextArrow.length){c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display","");if(c.htmlExpr.test(c.options.nextArrow)){c.$nextArrow.remove()}}if(c.$slides){c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))});c.$slideTrack.children(this.options.slide).detach();c.$slideTrack.detach();c.$list.detach();c.$slider.append(c.$slides)}c.cleanUpRows();c.$slider.removeClass("slick-slider");c.$slider.removeClass("slick-initialized");c.$slider.removeClass("slick-dotted");c.unslicked=true;if(!d){c.$slider.trigger("destroy",[c])}};b.prototype.disableTransition=function(c){var d=this,e={};e[d.transitionType]="";if(d.options.fade===false){d.$slideTrack.css(e)}else{d.$slides.eq(c).css(e)}};b.prototype.fadeSlide=function(d,e){var c=this;if(c.cssTransitions===false){c.$slides.eq(d).css({zIndex:c.options.zIndex});c.$slides.eq(d).animate({opacity:1},c.options.speed,c.options.easing,e)}else{c.applyTransition(d);c.$slides.eq(d).css({opacity:1,zIndex:c.options.zIndex});if(e){setTimeout(function(){c.disableTransition(d);e.call()},c.options.speed)}}};b.prototype.fadeSlideOut=function(d){var c=this;if(c.cssTransitions===false){c.$slides.eq(d).animate({opacity:0,zIndex:c.options.zIndex-2},c.options.speed,c.options.easing)}else{c.applyTransition(d);c.$slides.eq(d).css({opacity:0,zIndex:c.options.zIndex-2})}};b.prototype.filterSlides=b.prototype.slickFilter=function(d){var c=this;if(d!==null){c.$slidesCache=c.$slides;c.unload();c.$slideTrack.children(this.options.slide).detach();c.$slidesCache.filter(d).appendTo(c.$slideTrack);c.reinit()}};b.prototype.focusHandler=function(){var c=this;c.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(e){var d=a(this);setTimeout(function(){if(c.options.pauseOnFocus){if(d.is(":focus")){c.focussed=true;c.autoPlay()}}},0)}).on("blur.slick","*",function(e){var d=a(this);if(c.options.pauseOnFocus){c.focussed=false;c.autoPlay()}})};b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var c=this;return c.currentSlide};b.prototype.getDotCount=function(){var d=this;var f=0;var c=0;var e=0;if(d.options.infinite===true){if(d.slideCount<=d.options.slidesToShow){++e}else{while(f<d.slideCount){++e;f=c+d.options.slidesToScroll;c+=d.options.slidesToScroll<=d.options.slidesToShow?d.options.slidesToScroll:d.options.slidesToShow}}}else{if(d.options.centerMode===true){e=d.slideCount}else{if(!d.options.asNavFor){e=1+Math.ceil((d.slideCount-d.options.slidesToShow)/d.options.slidesToScroll)}else{while(f<d.slideCount){++e;f=c+d.options.slidesToScroll;c+=d.options.slidesToScroll<=d.options.slidesToShow?d.options.slidesToScroll:d.options.slidesToShow}}}}return e-1};b.prototype.getLeft=function(g){var d=this,i,e,c=0,h,f;d.slideOffset=0;e=d.$slides.first().outerHeight(true);if(d.options.infinite===true){if(d.slideCount>d.options.slidesToShow){d.slideOffset=(d.slideWidth*d.options.slidesToShow)*-1;f=-1;if(d.options.vertical===true&&d.options.centerMode===true){if(d.options.slidesToShow===2){f=-1.5}else{if(d.options.slidesToShow===1){f=-2}}}c=(e*d.options.slidesToShow)*f}if(d.slideCount%d.options.slidesToScroll!==0){if(g+d.options.slidesToScroll>d.slideCount&&d.slideCount>d.options.slidesToShow){if(g>d.slideCount){d.slideOffset=((d.options.slidesToShow-(g-d.slideCount))*d.slideWidth)*-1;c=((d.options.slidesToShow-(g-d.slideCount))*e)*-1}else{d.slideOffset=((d.slideCount%d.options.slidesToScroll)*d.slideWidth)*-1;c=((d.slideCount%d.options.slidesToScroll)*e)*-1}}}}else{if(g+d.options.slidesToShow>d.slideCount){d.slideOffset=((g+d.options.slidesToShow)-d.slideCount)*d.slideWidth;c=((g+d.options.slidesToShow)-d.slideCount)*e}}if(d.slideCount<=d.options.slidesToShow){d.slideOffset=0;c=0}if(d.options.centerMode===true&&d.slideCount<=d.options.slidesToShow){d.slideOffset=((d.slideWidth*Math.floor(d.options.slidesToShow))/2)-((d.slideWidth*d.slideCount)/2)}else{if(d.options.centerMode===true&&d.options.infinite===true){d.slideOffset+=d.slideWidth*Math.floor(d.options.slidesToShow/2)-d.slideWidth}else{if(d.options.centerMode===true){d.slideOffset=0;d.slideOffset+=d.slideWidth*Math.floor(d.options.slidesToShow/2)}}}if(d.options.vertical===false){i=((g*d.slideWidth)*-1)+d.slideOffset}else{i=((g*e)*-1)+c}if(d.options.variableWidth===true){if(d.slideCount<=d.options.slidesToShow||d.options.infinite===false){h=d.$slideTrack.children(".slick-slide").eq(g)}else{h=d.$slideTrack.children(".slick-slide").eq(g+d.options.slidesToShow)}if(d.options.rtl===true){if(h[0]){i=(d.$slideTrack.width()-h[0].offsetLeft-h.width())*-1}else{i=0}}else{i=h[0]?h[0].offsetLeft*-1:0}if(d.options.centerMode===true){if(d.slideCount<=d.options.slidesToShow||d.options.infinite===false){h=d.$slideTrack.children(".slick-slide").eq(g)}else{h=d.$slideTrack.children(".slick-slide").eq(g+d.options.slidesToShow+1)}if(d.options.rtl===true){if(h[0]){i=(d.$slideTrack.width()-h[0].offsetLeft-h.width())*-1}else{i=0}}else{i=h[0]?h[0].offsetLeft*-1:0}i+=(d.$list.width()-h.outerWidth())/2}}return i};b.prototype.getOption=b.prototype.slickGetOption=function(d){var c=this;return c.options[d]};b.prototype.getNavigableIndexes=function(){var f=this,g=0,d=0,e=[],c;if(f.options.infinite===false){c=f.slideCount}else{g=f.options.slidesToScroll*-1;d=f.options.slidesToScroll*-1;c=f.slideCount*2}while(g<c){e.push(g);g=d+f.options.slidesToScroll;d+=f.options.slidesToScroll<=f.options.slidesToShow?f.options.slidesToScroll:f.options.slidesToShow}return e};b.prototype.getSlick=function(){return this};b.prototype.getSlideCount=function(){var e=this,d,g,f,c;c=e.options.centerMode===true?Math.floor(e.$list.width()/2):0;f=(e.swipeLeft*-1)+c;if(e.options.swipeToSlide===true){e.$slideTrack.find(".slick-slide").each(function(j,i){var l,k,h;l=a(i).outerWidth();k=i.offsetLeft;if(e.options.centerMode!==true){k+=(l/2)}h=k+(l);if(f<h){g=i;return false}});d=Math.abs(a(g).attr("data-slick-index")-e.currentSlide)||1;return d}else{return e.options.slidesToScroll}};b.prototype.goTo=b.prototype.slickGoTo=function(c,e){var d=this;d.changeSlide({data:{message:"index",index:parseInt(c)}},e)};b.prototype.init=function(c){var d=this;if(!a(d.$slider).hasClass("slick-initialized")){a(d.$slider).addClass("slick-initialized");d.buildRows();d.buildOut();d.setProps();d.startLoad();d.loadSlider();d.initializeEvents();d.updateArrows();d.updateDots();d.checkResponsive(true);d.focusHandler()}if(c){d.$slider.trigger("init",[d])}if(d.options.accessibility===true){d.initADA()}if(d.options.autoplay){d.paused=false;d.autoPlay()}};b.prototype.initADA=function(){var e=this,d=Math.ceil(e.slideCount/e.options.slidesToShow),g=e.getNavigableIndexes().filter(function(h){return(h>=0)&&(h<e.slideCount)});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"});if(e.$dots!==null){e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(h){var k=g.indexOf(h);a(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+h,tabindex:-1});if(k!==-1){var j="slick-slide-control"+e.instanceUid+k;if(a("#"+j).length){a(this).attr({"aria-describedby":j})}}});e.$dots.attr("role","tablist").find("li").each(function(h){var j=g[h];a(this).attr({role:"presentation"});a(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+h,"aria-controls":"slick-slide"+e.instanceUid+j,"aria-label":(h+1)+" of "+d,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end()}for(var f=e.currentSlide,c=f+e.options.slidesToShow;f<c;f++){if(e.options.focusOnChange){e.$slides.eq(f).attr({tabindex:"0"})}else{e.$slides.eq(f).removeAttr("tabindex")}}e.activateADA()};b.prototype.initArrowEvents=function(){var c=this;if(c.options.arrows===true&&c.slideCount>c.options.slidesToShow){c.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},c.changeSlide);c.$nextArrow.off("click.slick").on("click.slick",{message:"next"},c.changeSlide);if(c.options.accessibility===true){c.$prevArrow.on("keydown.slick",c.keyHandler);c.$nextArrow.on("keydown.slick",c.keyHandler)}}};b.prototype.initDotEvents=function(){var c=this;if(c.options.dots===true&&c.slideCount>c.options.slidesToShow){a("li",c.$dots).on("click.slick",{message:"index"},c.changeSlide);if(c.options.accessibility===true){c.$dots.on("keydown.slick",c.keyHandler)}}if(c.options.dots===true&&c.options.pauseOnDotsHover===true&&c.slideCount>c.options.slidesToShow){a("li",c.$dots).on("mouseenter.slick",a.proxy(c.interrupt,c,true)).on("mouseleave.slick",a.proxy(c.interrupt,c,false))}};b.prototype.initSlideEvents=function(){var c=this;if(c.options.pauseOnHover){c.$list.on("mouseenter.slick",a.proxy(c.interrupt,c,true));c.$list.on("mouseleave.slick",a.proxy(c.interrupt,c,false))}};b.prototype.initializeEvents=function(){var c=this;c.initArrowEvents();c.initDotEvents();c.initSlideEvents();c.$list.on("touchstart.slick mousedown.slick",{action:"start"},c.swipeHandler);c.$list.on("touchmove.slick mousemove.slick",{action:"move"},c.swipeHandler);c.$list.on("touchend.slick mouseup.slick",{action:"end"},c.swipeHandler);c.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},c.swipeHandler);c.$list.on("click.slick",c.clickHandler);a(document).on(c.visibilityChange,a.proxy(c.visibility,c));if(c.options.accessibility===true){c.$list.on("keydown.slick",c.keyHandler)}if(c.options.focusOnSelect===true){a(c.$slideTrack).children().on("click.slick",c.selectHandler)}a(window).on("orientationchange.slick.slick-"+c.instanceUid,a.proxy(c.orientationChange,c));a(window).on("resize.slick.slick-"+c.instanceUid,a.proxy(c.resize,c));a("[draggable!=true]",c.$slideTrack).on("dragstart",c.preventDefault);a(window).on("load.slick.slick-"+c.instanceUid,c.setPosition);a(c.setPosition)};b.prototype.initUI=function(){var c=this;if(c.options.arrows===true&&c.slideCount>c.options.slidesToShow){c.$prevArrow.show();c.$nextArrow.show()}if(c.options.dots===true&&c.slideCount>c.options.slidesToShow){c.$dots.show()}};b.prototype.keyHandler=function(d){var c=this;if(!d.target.tagName.match("TEXTAREA|INPUT|SELECT")){if(d.keyCode===37&&c.options.accessibility===true){c.changeSlide({data:{message:c.options.rtl===true?"next":"previous"}})}else{if(d.keyCode===39&&c.options.accessibility===true){c.changeSlide({data:{message:c.options.rtl===true?"previous":"next"}})}}}};b.prototype.lazyLoad=function(){var k=this,f,e,l,c;function m(i){a("img[data-lazy]",i).each(function(){var q=a(this),r=a(this).attr("data-lazy"),o=a(this).attr("data-srcset"),n=a(this).attr("data-sizes")||k.$slider.attr("data-sizes"),p=document.createElement("img");p.onload=function(){q.animate({opacity:0},100,function(){if(o){q.attr("srcset",o);if(n){q.attr("sizes",n)}}q.attr("src",r).animate({opacity:1},200,function(){q.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")});k.$slider.trigger("lazyLoaded",[k,q,r])})};p.onerror=function(){q.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");k.$slider.trigger("lazyLoadError",[k,q,r])};p.src=r})}if(k.options.centerMode===true){if(k.options.infinite===true){l=k.currentSlide+(k.options.slidesToShow/2+1);c=l+k.options.slidesToShow+2}else{l=Math.max(0,k.currentSlide-(k.options.slidesToShow/2+1));c=2+(k.options.slidesToShow/2+1)+k.currentSlide}}else{l=k.options.infinite?k.options.slidesToShow+k.currentSlide:k.currentSlide;c=Math.ceil(l+k.options.slidesToShow);if(k.options.fade===true){if(l>0){l--}if(c<=k.slideCount){c++}}}f=k.$slider.find(".slick-slide").slice(l,c);if(k.options.lazyLoad==="anticipated"){var d=l-1,g=c,j=k.$slider.find(".slick-slide");for(var h=0;h<k.options.slidesToScroll;h++){if(d<0){d=k.slideCount-1}f=f.add(j.eq(d));f=f.add(j.eq(g));d--;g++}}m(f);if(k.slideCount<=k.options.slidesToShow){e=k.$slider.find(".slick-slide");m(e)}else{if(k.currentSlide>=k.slideCount-k.options.slidesToShow){e=k.$slider.find(".slick-cloned").slice(0,k.options.slidesToShow);m(e)}else{if(k.currentSlide===0){e=k.$slider.find(".slick-cloned").slice(k.options.slidesToShow*-1);m(e)}}}};b.prototype.loadSlider=function(){var c=this;c.setPosition();c.$slideTrack.css({opacity:1});c.$slider.removeClass("slick-loading");c.initUI();if(c.options.lazyLoad==="progressive"){c.progressiveLazyLoad()}};b.prototype.next=b.prototype.slickNext=function(){var c=this;c.changeSlide({data:{message:"next"}})};b.prototype.orientationChange=function(){var c=this;c.checkResponsive();c.setPosition()};b.prototype.pause=b.prototype.slickPause=function(){var c=this;c.autoPlayClear();c.paused=true};b.prototype.play=b.prototype.slickPlay=function(){var c=this;c.autoPlay();c.options.autoplay=true;c.paused=false;c.focussed=false;c.interrupted=false};b.prototype.postSlide=function(d){var c=this;if(!c.unslicked){c.$slider.trigger("afterChange",[c,d]);c.animating=false;if(c.slideCount>c.options.slidesToShow){c.setPosition()}c.swipeLeft=null;if(c.options.autoplay){c.autoPlay()}if(c.options.accessibility===true){c.initADA();if(c.options.focusOnChange){var e=a(c.$slides.get(c.currentSlide));e.attr("tabindex",0).focus()}}}};b.prototype.prev=b.prototype.slickPrev=function(){var c=this;c.changeSlide({data:{message:"previous"}})};b.prototype.preventDefault=function(c){c.preventDefault()};b.prototype.progressiveLazyLoad=function(f){f=f||1;var e=this,d=a("img[data-lazy]",e.$slider),i,j,g,c,h;if(d.length){i=d.first();j=i.attr("data-lazy");g=i.attr("data-srcset");c=i.attr("data-sizes")||e.$slider.attr("data-sizes");h=document.createElement("img");h.onload=function(){if(g){i.attr("srcset",g);if(c){i.attr("sizes",c)}}i.attr("src",j).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading");if(e.options.adaptiveHeight===true){e.setPosition()}e.$slider.trigger("lazyLoaded",[e,i,j]);e.progressiveLazyLoad()};h.onerror=function(){if(f<3){setTimeout(function(){e.progressiveLazyLoad(f+1)},500)}else{i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");e.$slider.trigger("lazyLoadError",[e,i,j]);e.progressiveLazyLoad()}};h.src=j}else{e.$slider.trigger("allImagesLoaded",[e])}};b.prototype.refresh=function(d){var e=this,f,c;c=e.slideCount-e.options.slidesToShow;if(!e.options.infinite&&(e.currentSlide>c)){e.currentSlide=c}if(e.slideCount<=e.options.slidesToShow){e.currentSlide=0}f=e.currentSlide;e.destroy(true);a.extend(e,e.initials,{currentSlide:f});e.init();if(!d){e.changeSlide({data:{message:"index",index:f}},false)}};b.prototype.registerBreakpoints=function(){var e=this,d,f,c,g=e.options.responsive||null;if(a.type(g)==="array"&&g.length){e.respondTo=e.options.respondTo||"window";for(d in g){c=e.breakpoints.length-1;if(g.hasOwnProperty(d)){f=g[d].breakpoint;while(c>=0){if(e.breakpoints[c]&&e.breakpoints[c]===f){e.breakpoints.splice(c,1)}c--}e.breakpoints.push(f);e.breakpointSettings[f]=g[d].settings}}e.breakpoints.sort(function(i,h){return(e.options.mobileFirst)?i-h:h-i})}};b.prototype.reinit=function(){var c=this;c.$slides=c.$slideTrack.children(c.options.slide).addClass("slick-slide");c.slideCount=c.$slides.length;if(c.currentSlide>=c.slideCount&&c.currentSlide!==0){c.currentSlide=c.currentSlide-c.options.slidesToScroll}if(c.slideCount<=c.options.slidesToShow){c.currentSlide=0}c.registerBreakpoints();c.setProps();c.setupInfinite();c.buildArrows();c.updateArrows();c.initArrowEvents();c.buildDots();c.updateDots();c.initDotEvents();c.cleanUpSlideEvents();c.initSlideEvents();c.checkResponsive(false,true);if(c.options.focusOnSelect===true){a(c.$slideTrack).children().on("click.slick",c.selectHandler)}c.setSlideClasses(typeof c.currentSlide==="number"?c.currentSlide:0);c.setPosition();c.focusHandler();c.paused=!c.options.autoplay;c.autoPlay();c.$slider.trigger("reInit",[c])};b.prototype.resize=function(){var c=this;if(a(window).width()!==c.windowWidth){clearTimeout(c.windowDelay);c.windowDelay=window.setTimeout(function(){c.windowWidth=a(window).width();c.checkResponsive();if(!c.unslicked){c.setPosition()}},50)}};b.prototype.removeSlide=b.prototype.slickRemove=function(d,f,e){var c=this;if(typeof(d)==="boolean"){f=d;d=f===true?0:c.slideCount-1}else{d=f===true?--d:d}if(c.slideCount<1||d<0||d>c.slideCount-1){return false}c.unload();if(e===true){c.$slideTrack.children().remove()}else{c.$slideTrack.children(this.options.slide).eq(d).remove()}c.$slides=c.$slideTrack.children(this.options.slide);c.$slideTrack.children(this.options.slide).detach();c.$slideTrack.append(c.$slides);c.$slidesCache=c.$slides;c.reinit()};b.prototype.setCSS=function(d){var e=this,f={},c,g;if(e.options.rtl===true){d=-d}c=e.positionProp=="left"?Math.ceil(d)+"px":"0px";g=e.positionProp=="top"?Math.ceil(d)+"px":"0px";f[e.positionProp]=d;if(e.transformsEnabled===false){e.$slideTrack.css(f)}else{f={};if(e.cssTransitions===false){f[e.animType]="translate("+c+", "+g+")";e.$slideTrack.css(f)}else{f[e.animType]="translate3d("+c+", "+g+", 0px)";e.$slideTrack.css(f)}}};b.prototype.setDimensions=function(){var c=this;if(c.options.vertical===false){if(c.options.centerMode===true){c.$list.css({padding:("0px "+c.options.centerPadding)})}}else{c.$list.height(c.$slides.first().outerHeight(true)*c.options.slidesToShow);if(c.options.centerMode===true){c.$list.css({padding:(c.options.centerPadding+" 0px")})}}c.listWidth=c.$list.width();c.listHeight=c.$list.height();if(c.options.vertical===false&&c.options.variableWidth===false){c.slideWidth=Math.ceil(c.listWidth/c.options.slidesToShow);c.$slideTrack.width(Math.ceil((c.slideWidth*c.$slideTrack.children(".slick-slide").length)))}else{if(c.options.variableWidth===true){c.$slideTrack.width(5000*c.slideCount)}else{c.slideWidth=Math.ceil(c.listWidth);c.$slideTrack.height(Math.ceil((c.$slides.first().outerHeight(true)*c.$slideTrack.children(".slick-slide").length)))}}var d=c.$slides.first().outerWidth(true)-c.$slides.first().width();if(c.options.variableWidth===false){c.$slideTrack.children(".slick-slide").width(c.slideWidth-d)}};b.prototype.setFade=function(){var c=this,d;c.$slides.each(function(e,f){d=(c.slideWidth*e)*-1;if(c.options.rtl===true){a(f).css({position:"relative",right:d,top:0,zIndex:c.options.zIndex-2,opacity:0})}else{a(f).css({position:"relative",left:d,top:0,zIndex:c.options.zIndex-2,opacity:0})}});c.$slides.eq(c.currentSlide).css({zIndex:c.options.zIndex-1,opacity:1})};b.prototype.setHeight=function(){var d=this;if(d.options.slidesToShow===1&&d.options.adaptiveHeight===true&&d.options.vertical===false){var c=d.$slides.eq(d.currentSlide).outerHeight(true);d.$list.css("height",c)}};b.prototype.setOption=b.prototype.slickSetOption=function(){var d=this,c,h,g,i,f=false,e;if(a.type(arguments[0])==="object"){g=arguments[0];f=arguments[1];e="multiple"}else{if(a.type(arguments[0])==="string"){g=arguments[0];i=arguments[1];f=arguments[2];if(arguments[0]==="responsive"&&a.type(arguments[1])==="array"){e="responsive"}else{if(typeof arguments[1]!=="undefined"){e="single"}}}}if(e==="single"){d.options[g]=i}else{if(e==="multiple"){a.each(g,function(j,k){d.options[j]=k})}else{if(e==="responsive"){for(h in i){if(a.type(d.options.responsive)!=="array"){d.options.responsive=[i[h]]}else{c=d.options.responsive.length-1;while(c>=0){if(d.options.responsive[c].breakpoint===i[h].breakpoint){d.options.responsive.splice(c,1)}c--}d.options.responsive.push(i[h])}}}}}if(f){d.unload();d.reinit()}};b.prototype.setPosition=function(){var c=this;c.setDimensions();c.setHeight();if(c.options.fade===false){c.setCSS(c.getLeft(c.currentSlide))}else{c.setFade()}c.$slider.trigger("setPosition",[c])};b.prototype.setProps=function(){var d=this,c=document.body.style;d.positionProp=d.options.vertical===true?"top":"left";if(d.positionProp==="top"){d.$slider.addClass("slick-vertical")}else{d.$slider.removeClass("slick-vertical")}if(c.WebkitTransition!==undefined||c.MozTransition!==undefined||c.msTransition!==undefined){if(d.options.useCSS===true){d.cssTransitions=true}}if(d.options.fade){if(typeof d.options.zIndex==="number"){if(d.options.zIndex<3){d.options.zIndex=3}}else{d.options.zIndex=d.defaults.zIndex}}if(c.OTransform!==undefined){d.animType="OTransform";d.transformType="-o-transform";d.transitionType="OTransition";if(c.perspectiveProperty===undefined&&c.webkitPerspective===undefined){d.animType=false}}if(c.MozTransform!==undefined){d.animType="MozTransform";d.transformType="-moz-transform";d.transitionType="MozTransition";if(c.perspectiveProperty===undefined&&c.MozPerspective===undefined){d.animType=false}}if(c.webkitTransform!==undefined){d.animType="webkitTransform";d.transformType="-webkit-transform";d.transitionType="webkitTransition";if(c.perspectiveProperty===undefined&&c.webkitPerspective===undefined){d.animType=false}}if(c.msTransform!==undefined){d.animType="msTransform";d.transformType="-ms-transform";d.transitionType="msTransition";if(c.msTransform===undefined){d.animType=false}}if(c.transform!==undefined&&d.animType!==false){d.animType="transform";d.transformType="transform";d.transitionType="transition"}d.transformsEnabled=d.options.useTransform&&(d.animType!==null&&d.animType!==false)};b.prototype.setSlideClasses=function(g){var f=this,c,e,i,h;e=f.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");f.$slides.eq(g).addClass("slick-current");if(f.options.centerMode===true){var d=f.options.slidesToShow%2===0?1:0;c=Math.floor(f.options.slidesToShow/2);if(f.options.infinite===true){if(g>=c&&g<=(f.slideCount-1)-c){f.$slides.slice(g-c+d,g+c+1).addClass("slick-active").attr("aria-hidden","false")}else{i=f.options.slidesToShow+g;e.slice(i-c+1+d,i+c+2).addClass("slick-active").attr("aria-hidden","false")}if(g===0){e.eq(e.length-1-f.options.slidesToShow).addClass("slick-center")}else{if(g===f.slideCount-1){e.eq(f.options.slidesToShow).addClass("slick-center")}}}f.$slides.eq(g).addClass("slick-center")}else{if(g>=0&&g<=(f.slideCount-f.options.slidesToShow)){f.$slides.slice(g,g+f.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")}else{if(e.length<=f.options.slidesToShow){e.addClass("slick-active").attr("aria-hidden","false")}else{h=f.slideCount%f.options.slidesToShow;i=f.options.infinite===true?f.options.slidesToShow+g:g;if(f.options.slidesToShow==f.options.slidesToScroll&&(f.slideCount-g)<f.options.slidesToShow){e.slice(i-(f.options.slidesToShow-h),i+h).addClass("slick-active").attr("aria-hidden","false")}else{e.slice(i,i+f.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")}}}}if(f.options.lazyLoad==="ondemand"||f.options.lazyLoad==="anticipated"){f.lazyLoad()}};b.prototype.setupInfinite=function(){var c=this,d,f,e;if(c.options.fade===true){c.options.centerMode=false}if(c.options.infinite===true&&c.options.fade===false){f=null;if(c.slideCount>c.options.slidesToShow){if(c.options.centerMode===true){e=c.options.slidesToShow+1}else{e=c.options.slidesToShow}for(d=c.slideCount;d>(c.slideCount-e);d-=1){f=d-1;a(c.$slides[f]).clone(true).attr("id","").attr("data-slick-index",f-c.slideCount).prependTo(c.$slideTrack).addClass("slick-cloned")}for(d=0;d<e+c.slideCount;d+=1){f=d;a(c.$slides[f]).clone(true).attr("id","").attr("data-slick-index",f+c.slideCount).appendTo(c.$slideTrack).addClass("slick-cloned")}c.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}}};b.prototype.interrupt=function(c){var d=this;if(!c){d.autoPlay()}d.interrupted=c};b.prototype.selectHandler=function(f){var e=this;var d=a(f.target).is(".slick-slide")?a(f.target):a(f.target).parents(".slick-slide");var c=parseInt(d.attr("data-slick-index"));if(!c){c=0}if(e.slideCount<=e.options.slidesToShow){e.slideHandler(c,false,true);return}e.slideHandler(c)};b.prototype.slideHandler=function(f,i,e){var d,l,h,j,g=null,k=this,c;i=i||false;if(k.animating===true&&k.options.waitForAnimate===true){return}if(k.options.fade===true&&k.currentSlide===f){return}if(i===false){k.asNavFor(f)}d=f;g=k.getLeft(d);j=k.getLeft(k.currentSlide);k.currentLeft=k.swipeLeft===null?j:k.swipeLeft;if(k.options.infinite===false&&k.options.centerMode===false&&(f<0||f>k.getDotCount()*k.options.slidesToScroll)){if(k.options.fade===false){d=k.currentSlide;if(e!==true&&k.slideCount>k.options.slidesToShow){k.animateSlide(j,function(){k.postSlide(d)})}else{k.postSlide(d)}}return}else{if(k.options.infinite===false&&k.options.centerMode===true&&(f<0||f>(k.slideCount-k.options.slidesToScroll))){if(k.options.fade===false){d=k.currentSlide;if(e!==true&&k.slideCount>k.options.slidesToShow){k.animateSlide(j,function(){k.postSlide(d)})}else{k.postSlide(d)}}return}}if(k.options.autoplay){clearInterval(k.autoPlayTimer)}if(d<0){if(k.slideCount%k.options.slidesToScroll!==0){l=k.slideCount-(k.slideCount%k.options.slidesToScroll)}else{l=k.slideCount+d}}else{if(d>=k.slideCount){if(k.slideCount%k.options.slidesToScroll!==0){l=0}else{l=d-k.slideCount}}else{l=d}}k.animating=true;k.$slider.trigger("beforeChange",[k,k.currentSlide,l]);h=k.currentSlide;k.currentSlide=l;k.setSlideClasses(k.currentSlide);if(k.options.asNavFor){c=k.getNavTarget();c=c.slick("getSlick");if(c.slideCount<=c.options.slidesToShow){c.setSlideClasses(k.currentSlide)}}k.updateDots();k.updateArrows();if(k.options.fade===true){if(e!==true){k.fadeSlideOut(h);k.fadeSlide(l,function(){k.postSlide(l)})}else{k.postSlide(l)}k.animateHeight();return}if(e!==true&&k.slideCount>k.options.slidesToShow){k.animateSlide(g,function(){k.postSlide(l)})}else{k.postSlide(l)}};b.prototype.startLoad=function(){var c=this;if(c.options.arrows===true&&c.slideCount>c.options.slidesToShow){c.$prevArrow.hide();c.$nextArrow.hide()}if(c.options.dots===true&&c.slideCount>c.options.slidesToShow){c.$dots.hide()}c.$slider.addClass("slick-loading")};b.prototype.swipeDirection=function(){var c,f,e,g,d=this;c=d.touchObject.startX-d.touchObject.curX;f=d.touchObject.startY-d.touchObject.curY;e=Math.atan2(f,c);g=Math.round(e*180/Math.PI);if(g<0){g=360-Math.abs(g)}if((g<=45)&&(g>=0)){return(d.options.rtl===false?"left":"right")}if((g<=360)&&(g>=315)){return(d.options.rtl===false?"left":"right")}if((g>=135)&&(g<=225)){return(d.options.rtl===false?"right":"left")}if(d.options.verticalSwiping===true){if((g>=35)&&(g<=135)){return"down"}else{return"up"}}return"vertical"};b.prototype.swipeEnd=function(e){var d=this,c,f;d.dragging=false;d.swiping=false;if(d.scrolling){d.scrolling=false;return false}d.interrupted=false;d.shouldClick=(d.touchObject.swipeLength>10)?false:true;if(d.touchObject.curX===undefined){return false}if(d.touchObject.edgeHit===true){d.$slider.trigger("edge",[d,d.swipeDirection()])}if(d.touchObject.swipeLength>=d.touchObject.minSwipe){f=d.swipeDirection();switch(f){case"left":case"down":c=d.options.swipeToSlide?d.checkNavigable(d.currentSlide+d.getSlideCount()):d.currentSlide+d.getSlideCount();d.currentDirection=0;break;case"right":case"up":c=d.options.swipeToSlide?d.checkNavigable(d.currentSlide-d.getSlideCount()):d.currentSlide-d.getSlideCount();d.currentDirection=1;break;default:}if(f!="vertical"){d.slideHandler(c);d.touchObject={};d.$slider.trigger("swipe",[d,f])}}else{if(d.touchObject.startX!==d.touchObject.curX){d.slideHandler(d.currentSlide);d.touchObject={}}}};b.prototype.swipeHandler=function(d){var c=this;if((c.options.swipe===false)||("ontouchend" in document&&c.options.swipe===false)){return}else{if(c.options.draggable===false&&d.type.indexOf("mouse")!==-1){return}}c.touchObject.fingerCount=d.originalEvent&&d.originalEvent.touches!==undefined?d.originalEvent.touches.length:1;c.touchObject.minSwipe=c.listWidth/c.options.touchThreshold;if(c.options.verticalSwiping===true){c.touchObject.minSwipe=c.listHeight/c.options.touchThreshold}switch(d.data.action){case"start":c.swipeStart(d);break;case"move":c.swipeMove(d);break;case"end":c.swipeEnd(d);break}};b.prototype.swipeMove=function(c){var k=this,g=false,e,i,f,j,h,d;h=c.originalEvent!==undefined?c.originalEvent.touches:null;if(!k.dragging||k.scrolling||h&&h.length!==1){return false}e=k.getLeft(k.currentSlide);k.touchObject.curX=h!==undefined?h[0].pageX:c.clientX;k.touchObject.curY=h!==undefined?h[0].pageY:c.clientY;k.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(k.touchObject.curX-k.touchObject.startX,2)));d=Math.round(Math.sqrt(Math.pow(k.touchObject.curY-k.touchObject.startY,2)));if(!k.options.verticalSwiping&&!k.swiping&&d>4){k.scrolling=true;return false}if(k.options.verticalSwiping===true){k.touchObject.swipeLength=d}i=k.swipeDirection();if(c.originalEvent!==undefined&&k.touchObject.swipeLength>4){k.swiping=true;c.preventDefault()}j=(k.options.rtl===false?1:-1)*(k.touchObject.curX>k.touchObject.startX?1:-1);if(k.options.verticalSwiping===true){j=k.touchObject.curY>k.touchObject.startY?1:-1}f=k.touchObject.swipeLength;k.touchObject.edgeHit=false;if(k.options.infinite===false){if((k.currentSlide===0&&i==="right")||(k.currentSlide>=k.getDotCount()&&i==="left")){f=k.touchObject.swipeLength*k.options.edgeFriction;k.touchObject.edgeHit=true}}if(k.options.vertical===false){k.swipeLeft=e+f*j}else{k.swipeLeft=e+(f*(k.$list.height()/k.listWidth))*j}if(k.options.verticalSwiping===true){k.swipeLeft=e+f*j}if(k.options.fade===true||k.options.touchMove===false){return false}if(k.animating===true){k.swipeLeft=null;return false}k.setCSS(k.swipeLeft)};b.prototype.swipeStart=function(d){var c=this,e;c.interrupted=true;if(c.touchObject.fingerCount!==1||c.slideCount<=c.options.slidesToShow){c.touchObject={};return false}if(d.originalEvent!==undefined&&d.originalEvent.touches!==undefined){e=d.originalEvent.touches[0]}c.touchObject.startX=c.touchObject.curX=e!==undefined?e.pageX:d.clientX;c.touchObject.startY=c.touchObject.curY=e!==undefined?e.pageY:d.clientY;c.dragging=true};b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var c=this;if(c.$slidesCache!==null){c.unload();c.$slideTrack.children(this.options.slide).detach();c.$slidesCache.appendTo(c.$slideTrack);c.reinit()}};b.prototype.unload=function(){var c=this;a(".slick-cloned",c.$slider).remove();if(c.$dots){c.$dots.remove()}if(c.$prevArrow&&c.htmlExpr.test(c.options.prevArrow)){c.$prevArrow.remove()}if(c.$nextArrow&&c.htmlExpr.test(c.options.nextArrow)){c.$nextArrow.remove()}c.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};b.prototype.unslick=function(d){var c=this;c.$slider.trigger("unslick",[c,d]);c.destroy()};b.prototype.updateArrows=function(){var d=this,c;c=Math.floor(d.options.slidesToShow/2);if(d.options.arrows===true&&d.slideCount>d.options.slidesToShow&&!d.options.infinite){d.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false");d.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false");if(d.currentSlide===0){d.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true");d.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")}else{if(d.currentSlide>=d.slideCount-d.options.slidesToShow&&d.options.centerMode===false){d.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true");d.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")}else{if(d.currentSlide>=d.slideCount-1&&d.options.centerMode===true){d.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true");d.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")}}}}};b.prototype.updateDots=function(){var c=this;if(c.$dots!==null){c.$dots.find("li").removeClass("slick-active").end();c.$dots.find("li").eq(Math.floor(c.currentSlide/c.options.slidesToScroll)).addClass("slick-active")}};b.prototype.visibility=function(){var c=this;if(c.options.autoplay){if(document[c.hidden]){c.interrupted=true}else{c.interrupted=false}}};a.fn.slick=function(){var f=this,h=arguments[0],e=Array.prototype.slice.call(arguments,1),c=f.length,g,d;for(g=0;g<c;g++){if(typeof h=="object"||typeof h=="undefined"){f[g].slick=new b(f[g],h)}else{d=f[g].slick[h].apply(f[g].slick,e)}if(typeof d!="undefined"){return d}}return f}}));
this.createjs=this.createjs||{},createjs.extend=function(a,b){"use strict";function c(){this.constructor=a}return c.prototype=b.prototype,a.prototype=new c},this.createjs=this.createjs||{},createjs.promote=function(a,b){"use strict";var c=a.prototype,d=Object.getPrototypeOf&&Object.getPrototypeOf(c)||c.__proto__;if(d){c[(b+="_")+"constructor"]=d.constructor;for(var e in d)c.hasOwnProperty(e)&&"function"==typeof d[e]&&(c[b+e]=d[e])}return a},this.createjs=this.createjs||{},function(){"use strict";function Event(a,b,c){this.type=a,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!b,this.cancelable=!!c,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var a=Event.prototype;a.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},a.stopPropagation=function(){this.propagationStopped=!0},a.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},a.remove=function(){this.removed=!0},a.clone=function(){return new Event(this.type,this.bubbles,this.cancelable)},a.set=function(a){for(var b in a)this[b]=a[b];return this},a.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=Event}(),this.createjs=this.createjs||{},function(){"use strict";function EventDispatcher(){this._listeners=null,this._captureListeners=null}var a=EventDispatcher.prototype;EventDispatcher.initialize=function(b){b.addEventListener=a.addEventListener,b.on=a.on,b.removeEventListener=b.off=a.removeEventListener,b.removeAllEventListeners=a.removeAllEventListeners,b.hasEventListener=a.hasEventListener,b.dispatchEvent=a.dispatchEvent,b._dispatchEvent=a._dispatchEvent,b.willTrigger=a.willTrigger},a.addEventListener=function(a,b,c){var d;d=c?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var e=d[a];return e&&this.removeEventListener(a,b,c),e=d[a],e?e.push(b):d[a]=[b],b},a.on=function(a,b,c,d,e,f){return b.handleEvent&&(c=c||b,b=b.handleEvent),c=c||this,this.addEventListener(a,function(a){b.call(c,a,e),d&&a.remove()},f)},a.removeEventListener=function(a,b,c){var d=c?this._captureListeners:this._listeners;if(d){var e=d[a];if(e)for(var f=0,g=e.length;g>f;f++)if(e[f]==b){1==g?delete d[a]:e.splice(f,1);break}}},a.off=a.removeEventListener,a.removeAllEventListeners=function(a){a?(this._listeners&&delete this._listeners[a],this._captureListeners&&delete this._captureListeners[a]):this._listeners=this._captureListeners=null},a.dispatchEvent=function(a,b,c){if("string"==typeof a){var d=this._listeners;if(!(b||d&&d[a]))return!0;a=new createjs.Event(a,b,c)}else a.target&&a.clone&&(a=a.clone());try{a.target=this}catch(e){}if(a.bubbles&&this.parent){for(var f=this,g=[f];f.parent;)g.push(f=f.parent);var h,i=g.length;for(h=i-1;h>=0&&!a.propagationStopped;h--)g[h]._dispatchEvent(a,1+(0==h));for(h=1;i>h&&!a.propagationStopped;h++)g[h]._dispatchEvent(a,3)}else this._dispatchEvent(a,2);return!a.defaultPrevented},a.hasEventListener=function(a){var b=this._listeners,c=this._captureListeners;return!!(b&&b[a]||c&&c[a])},a.willTrigger=function(a){for(var b=this;b;){if(b.hasEventListener(a))return!0;b=b.parent}return!1},a.toString=function(){return"[EventDispatcher]"},a._dispatchEvent=function(a,b){var c,d=1==b?this._captureListeners:this._listeners;if(a&&d){var e=d[a.type];if(!e||!(c=e.length))return;try{a.currentTarget=this}catch(f){}try{a.eventPhase=b}catch(f){}a.removed=!1,e=e.slice();for(var g=0;c>g&&!a.immediatePropagationStopped;g++){var h=e[g];h.handleEvent?h.handleEvent(a):h(a),a.removed&&(this.off(a.type,h,1==b),a.removed=!1)}}},createjs.EventDispatcher=EventDispatcher}(),this.createjs=this.createjs||{},function(){"use strict";function Ticker(){throw"Ticker cannot be instantiated."}Ticker.RAF_SYNCHED="synched",Ticker.RAF="raf",Ticker.TIMEOUT="timeout",Ticker.useRAF=!1,Ticker.timingMode=null,Ticker.maxDelta=0,Ticker.paused=!1,Ticker.removeEventListener=null,Ticker.removeAllEventListeners=null,Ticker.dispatchEvent=null,Ticker.hasEventListener=null,Ticker._listeners=null,createjs.EventDispatcher.initialize(Ticker),Ticker._addEventListener=Ticker.addEventListener,Ticker.addEventListener=function(){return!Ticker._inited&&Ticker.init(),Ticker._addEventListener.apply(Ticker,arguments)},Ticker._inited=!1,Ticker._startTime=0,Ticker._pausedTime=0,Ticker._ticks=0,Ticker._pausedTicks=0,Ticker._interval=50,Ticker._lastTime=0,Ticker._times=null,Ticker._tickTimes=null,Ticker._timerId=null,Ticker._raf=!0,Ticker.setInterval=function(a){Ticker._interval=a,Ticker._inited&&Ticker._setupTick()},Ticker.getInterval=function(){return Ticker._interval},Ticker.setFPS=function(a){Ticker.setInterval(1e3/a)},Ticker.getFPS=function(){return 1e3/Ticker._interval};try{Object.defineProperties(Ticker,{interval:{get:Ticker.getInterval,set:Ticker.setInterval},framerate:{get:Ticker.getFPS,set:Ticker.setFPS}})}catch(a){console.log(a)}Ticker.init=function(){Ticker._inited||(Ticker._inited=!0,Ticker._times=[],Ticker._tickTimes=[],Ticker._startTime=Ticker._getTime(),Ticker._times.push(Ticker._lastTime=0),Ticker.interval=Ticker._interval)},Ticker.reset=function(){if(Ticker._raf){var a=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;a&&a(Ticker._timerId)}else clearTimeout(Ticker._timerId);Ticker.removeAllEventListeners("tick"),Ticker._timerId=Ticker._times=Ticker._tickTimes=null,Ticker._startTime=Ticker._lastTime=Ticker._ticks=0,Ticker._inited=!1},Ticker.getMeasuredTickTime=function(a){var b=0,c=Ticker._tickTimes;if(!c||c.length<1)return-1;a=Math.min(c.length,a||0|Ticker.getFPS());for(var d=0;a>d;d++)b+=c[d];return b/a},Ticker.getMeasuredFPS=function(a){var b=Ticker._times;return!b||b.length<2?-1:(a=Math.min(b.length-1,a||0|Ticker.getFPS()),1e3/((b[0]-b[a])/a))},Ticker.setPaused=function(a){Ticker.paused=a},Ticker.getPaused=function(){return Ticker.paused},Ticker.getTime=function(a){return Ticker._startTime?Ticker._getTime()-(a?Ticker._pausedTime:0):-1},Ticker.getEventTime=function(a){return Ticker._startTime?(Ticker._lastTime||Ticker._startTime)-(a?Ticker._pausedTime:0):-1},Ticker.getTicks=function(a){return Ticker._ticks-(a?Ticker._pausedTicks:0)},Ticker._handleSynch=function(){Ticker._timerId=null,Ticker._setupTick(),Ticker._getTime()-Ticker._lastTime>=.97*(Ticker._interval-1)&&Ticker._tick()},Ticker._handleRAF=function(){Ticker._timerId=null,Ticker._setupTick(),Ticker._tick()},Ticker._handleTimeout=function(){Ticker._timerId=null,Ticker._setupTick(),Ticker._tick()},Ticker._setupTick=function(){if(null==Ticker._timerId){var a=Ticker.timingMode||Ticker.useRAF&&Ticker.RAF_SYNCHED;if(a==Ticker.RAF_SYNCHED||a==Ticker.RAF){var b=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(b)return Ticker._timerId=b(a==Ticker.RAF?Ticker._handleRAF:Ticker._handleSynch),void(Ticker._raf=!0)}Ticker._raf=!1,Ticker._timerId=setTimeout(Ticker._handleTimeout,Ticker._interval)}},Ticker._tick=function(){var a=Ticker.paused,b=Ticker._getTime(),c=b-Ticker._lastTime;if(Ticker._lastTime=b,Ticker._ticks++,a&&(Ticker._pausedTicks++,Ticker._pausedTime+=c),Ticker.hasEventListener("tick")){var d=new createjs.Event("tick"),e=Ticker.maxDelta;d.delta=e&&c>e?e:c,d.paused=a,d.time=b,d.runTime=b-Ticker._pausedTime,Ticker.dispatchEvent(d)}for(Ticker._tickTimes.unshift(Ticker._getTime()-b);Ticker._tickTimes.length>100;)Ticker._tickTimes.pop();for(Ticker._times.unshift(b);Ticker._times.length>100;)Ticker._times.pop()};var b=window.performance&&(performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow);Ticker._getTime=function(){return(b&&b.call(performance)||(new Date).getTime())-Ticker._startTime},createjs.Ticker=Ticker}(),this.createjs=this.createjs||{},function(){"use strict";function Tween(a,b,c){this.ignoreGlobalPause=!1,this.loop=!1,this.duration=0,this.pluginData=c||{},this.target=a,this.position=null,this.passive=!1,this._paused=!1,this._curQueueProps={},this._initQueueProps={},this._steps=[],this._actions=[],this._prevPosition=0,this._stepPosition=0,this._prevPos=-1,this._target=a,this._useTicks=!1,this._inited=!1,this._registered=!1,b&&(this._useTicks=b.useTicks,this.ignoreGlobalPause=b.ignoreGlobalPause,this.loop=b.loop,b.onChange&&this.addEventListener("change",b.onChange),b.override&&Tween.removeTweens(a)),b&&b.paused?this._paused=!0:createjs.Tween._register(this,!0),b&&null!=b.position&&this.setPosition(b.position,Tween.NONE)}var a=createjs.extend(Tween,createjs.EventDispatcher);Tween.NONE=0,Tween.LOOP=1,Tween.REVERSE=2,Tween.IGNORE={},Tween._tweens=[],Tween._plugins={},Tween.get=function(a,b,c,d){return d&&Tween.removeTweens(a),new Tween(a,b,c)},Tween.tick=function(a,b){for(var c=Tween._tweens.slice(),d=c.length-1;d>=0;d--){var e=c[d];b&&!e.ignoreGlobalPause||e._paused||e.tick(e._useTicks?1:a)}},Tween.handleEvent=function(a){"tick"==a.type&&this.tick(a.delta,a.paused)},Tween.removeTweens=function(a){if(a.tweenjs_count){for(var b=Tween._tweens,c=b.length-1;c>=0;c--){var d=b[c];d._target==a&&(d._paused=!0,b.splice(c,1))}a.tweenjs_count=0}},Tween.removeAllTweens=function(){for(var a=Tween._tweens,b=0,c=a.length;c>b;b++){var d=a[b];d._paused=!0,d.target&&(d.target.tweenjs_count=0)}a.length=0},Tween.hasActiveTweens=function(a){return a?null!=a.tweenjs_count&&!!a.tweenjs_count:Tween._tweens&&!!Tween._tweens.length},Tween.installPlugin=function(a,b){var c=a.priority;null==c&&(a.priority=c=0);for(var d=0,e=b.length,f=Tween._plugins;e>d;d++){var g=b[d];if(f[g]){for(var h=f[g],i=0,j=h.length;j>i&&!(c<h[i].priority);i++);f[g].splice(i,0,a)}else f[g]=[a]}},Tween._register=function(a,b){var c=a._target,d=Tween._tweens;if(b&&!a._registered)c&&(c.tweenjs_count=c.tweenjs_count?c.tweenjs_count+1:1),d.push(a),!Tween._inited&&createjs.Ticker&&(createjs.Ticker.addEventListener("tick",Tween),Tween._inited=!0);else if(!b&&a._registered){c&&c.tweenjs_count--;for(var e=d.length;e--;)if(d[e]==a){d.splice(e,1);break}}a._registered=b},a.wait=function(a,b){if(null==a||0>=a)return this;var c=this._cloneProps(this._curQueueProps);return this._addStep({d:a,p0:c,e:this._linearEase,p1:c,v:b})},a.to=function(a,b,c){return(isNaN(b)||0>b)&&(b=0),this._addStep({d:b||0,p0:this._cloneProps(this._curQueueProps),e:c,p1:this._cloneProps(this._appendQueueProps(a))})},a.call=function(a,b,c){return this._addAction({f:a,p:b?b:[this],o:c?c:this._target})},a.set=function(a,b){return this._addAction({f:this._set,o:this,p:[a,b?b:this._target]})},a.play=function(a){return a||(a=this),this.call(a.setPaused,[!1],a)},a.pause=function(a){return a||(a=this),this.call(a.setPaused,[!0],a)},a.setPosition=function(a,b){0>a&&(a=0),null==b&&(b=1);var c=a,d=!1;if(c>=this.duration&&(this.loop?c%=this.duration:(c=this.duration,d=!0)),c==this._prevPos)return d;var e=this._prevPos;if(this.position=this._prevPos=c,this._prevPosition=a,this._target)if(d)this._updateTargetProps(null,1);else if(this._steps.length>0){for(var f=0,g=this._steps.length;g>f&&!(this._steps[f].t>c);f++);var h=this._steps[f-1];this._updateTargetProps(h,(this._stepPosition=c-h.t)/h.d)}return 0!=b&&this._actions.length>0&&(this._useTicks?this._runActions(c,c):1==b&&e>c?(e!=this.duration&&this._runActions(e,this.duration),this._runActions(0,c,!0)):this._runActions(e,c)),d&&this.setPaused(!0),this.dispatchEvent("change"),d},a.tick=function(a){this._paused||this.setPosition(this._prevPosition+a)},a.setPaused=function(a){return this._paused===!!a?this:(this._paused=!!a,Tween._register(this,!a),this)},a.w=a.wait,a.t=a.to,a.c=a.call,a.s=a.set,a.toString=function(){return"[Tween]"},a.clone=function(){throw"Tween can not be cloned."},a._updateTargetProps=function(a,b){var c,d,e,f,g,h;if(a||1!=b){if(this.passive=!!a.v,this.passive)return;a.e&&(b=a.e(b,0,1,1)),c=a.p0,d=a.p1}else this.passive=!1,c=d=this._curQueueProps;for(var i in this._initQueueProps){null==(f=c[i])&&(c[i]=f=this._initQueueProps[i]),null==(g=d[i])&&(d[i]=g=f),e=f==g||0==b||1==b||"number"!=typeof f?1==b?g:f:f+(g-f)*b;var j=!1;if(h=Tween._plugins[i])for(var k=0,l=h.length;l>k;k++){var m=h[k].tween(this,i,e,c,d,b,!!a&&c==d,!a);m==Tween.IGNORE?j=!0:e=m}j||(this._target[i]=e)}},a._runActions=function(a,b,c){var d=a,e=b,f=-1,g=this._actions.length,h=1;for(a>b&&(d=b,e=a,f=g,g=h=-1);(f+=h)!=g;){var i=this._actions[f],j=i.t;(j==e||j>d&&e>j||c&&j==a)&&i.f.apply(i.o,i.p)}},a._appendQueueProps=function(a){var b,c,d,e,f;for(var g in a)if(void 0===this._initQueueProps[g]){if(c=this._target[g],b=Tween._plugins[g])for(d=0,e=b.length;e>d;d++)c=b[d].init(this,g,c);this._initQueueProps[g]=this._curQueueProps[g]=void 0===c?null:c}else c=this._curQueueProps[g];for(var g in a){if(c=this._curQueueProps[g],b=Tween._plugins[g])for(f=f||{},d=0,e=b.length;e>d;d++)b[d].step&&b[d].step(this,g,c,a[g],f);this._curQueueProps[g]=a[g]}return f&&this._appendQueueProps(f),this._curQueueProps},a._cloneProps=function(a){var b={};for(var c in a)b[c]=a[c];return b},a._addStep=function(a){return a.d>0&&(this._steps.push(a),a.t=this.duration,this.duration+=a.d),this},a._addAction=function(a){return a.t=this.duration,this._actions.push(a),this},a._set=function(a,b){for(var c in a)b[c]=a[c]},createjs.Tween=createjs.promote(Tween,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function Timeline(a,b,c){this.EventDispatcher_constructor(),this.ignoreGlobalPause=!1,this.duration=0,this.loop=!1,this.position=null,this._paused=!1,this._tweens=[],this._labels=null,this._labelList=null,this._prevPosition=0,this._prevPos=-1,this._useTicks=!1,this._registered=!1,c&&(this._useTicks=c.useTicks,this.loop=c.loop,this.ignoreGlobalPause=c.ignoreGlobalPause,c.onChange&&this.addEventListener("change",c.onChange)),a&&this.addTween.apply(this,a),this.setLabels(b),c&&c.paused?this._paused=!0:createjs.Tween._register(this,!0),c&&null!=c.position&&this.setPosition(c.position,createjs.Tween.NONE)}var a=createjs.extend(Timeline,createjs.EventDispatcher);a.addTween=function(a){var b=arguments.length;if(b>1){for(var c=0;b>c;c++)this.addTween(arguments[c]);return arguments[0]}return 0==b?null:(this.removeTween(a),this._tweens.push(a),a.setPaused(!0),a._paused=!1,a._useTicks=this._useTicks,a.duration>this.duration&&(this.duration=a.duration),this._prevPos>=0&&a.setPosition(this._prevPos,createjs.Tween.NONE),a)},a.removeTween=function(a){var b=arguments.length;if(b>1){for(var c=!0,d=0;b>d;d++)c=c&&this.removeTween(arguments[d]);return c}if(0==b)return!1;for(var e=this._tweens,d=e.length;d--;)if(e[d]==a)return e.splice(d,1),a.duration>=this.duration&&this.updateDuration(),!0;return!1},a.addLabel=function(a,b){this._labels[a]=b;var c=this._labelList;if(c){for(var d=0,e=c.length;e>d&&!(b<c[d].position);d++);c.splice(d,0,{label:a,position:b})}},a.setLabels=function(a){this._labels=a?a:{}},a.getLabels=function(){var a=this._labelList;if(!a){a=this._labelList=[];var b=this._labels;for(var c in b)a.push({label:c,position:b[c]});a.sort(function(a,b){return a.position-b.position})}return a},a.getCurrentLabel=function(){var a=this.getLabels(),b=this.position,c=a.length;if(c){for(var d=0;c>d&&!(b<a[d].position);d++);return 0==d?null:a[d-1].label}return null},a.gotoAndPlay=function(a){this.setPaused(!1),this._goto(a)},a.gotoAndStop=function(a){this.setPaused(!0),this._goto(a)},a.setPosition=function(a,b){var c=this._calcPosition(a),d=!this.loop&&a>=this.duration;if(c==this._prevPos)return d;this._prevPosition=a,this.position=this._prevPos=c;for(var e=0,f=this._tweens.length;f>e;e++)if(this._tweens[e].setPosition(c,b),c!=this._prevPos)return!1;return d&&this.setPaused(!0),this.dispatchEvent("change"),d},a.setPaused=function(a){this._paused=!!a,createjs.Tween._register(this,!a)},a.updateDuration=function(){this.duration=0;for(var a=0,b=this._tweens.length;b>a;a++){var c=this._tweens[a];c.duration>this.duration&&(this.duration=c.duration)}},a.tick=function(a){this.setPosition(this._prevPosition+a)},a.resolve=function(a){var b=Number(a);return isNaN(b)&&(b=this._labels[a]),b},a.toString=function(){return"[Timeline]"},a.clone=function(){throw"Timeline can not be cloned."},a._goto=function(a){var b=this.resolve(a);null!=b&&this.setPosition(b)},a._calcPosition=function(a){return 0>a?0:a<this.duration?a:this.loop?a%this.duration:this.duration},createjs.Timeline=createjs.promote(Timeline,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function Ease(){throw"Ease cannot be instantiated."}Ease.linear=function(a){return a},Ease.none=Ease.linear,Ease.get=function(a){return-1>a&&(a=-1),a>1&&(a=1),function(b){return 0==a?b:0>a?b*(b*-a+1+a):b*((2-b)*a+(1-a))}},Ease.getPowIn=function(a){return function(b){return Math.pow(b,a)}},Ease.getPowOut=function(a){return function(b){return 1-Math.pow(1-b,a)}},Ease.getPowInOut=function(a){return function(b){return(b*=2)<1?.5*Math.pow(b,a):1-.5*Math.abs(Math.pow(2-b,a))}},Ease.quadIn=Ease.getPowIn(2),Ease.quadOut=Ease.getPowOut(2),Ease.quadInOut=Ease.getPowInOut(2),Ease.cubicIn=Ease.getPowIn(3),Ease.cubicOut=Ease.getPowOut(3),Ease.cubicInOut=Ease.getPowInOut(3),Ease.quartIn=Ease.getPowIn(4),Ease.quartOut=Ease.getPowOut(4),Ease.quartInOut=Ease.getPowInOut(4),Ease.quintIn=Ease.getPowIn(5),Ease.quintOut=Ease.getPowOut(5),Ease.quintInOut=Ease.getPowInOut(5),Ease.sineIn=function(a){return 1-Math.cos(a*Math.PI/2)},Ease.sineOut=function(a){return Math.sin(a*Math.PI/2)},Ease.sineInOut=function(a){return-.5*(Math.cos(Math.PI*a)-1)},Ease.getBackIn=function(a){return function(b){return b*b*((a+1)*b-a)}},Ease.backIn=Ease.getBackIn(1.7),Ease.getBackOut=function(a){return function(b){return--b*b*((a+1)*b+a)+1}},Ease.backOut=Ease.getBackOut(1.7),Ease.getBackInOut=function(a){return a*=1.525,function(b){return(b*=2)<1?.5*b*b*((a+1)*b-a):.5*((b-=2)*b*((a+1)*b+a)+2)}},Ease.backInOut=Ease.getBackInOut(1.7),Ease.circIn=function(a){return-(Math.sqrt(1-a*a)-1)},Ease.circOut=function(a){return Math.sqrt(1- --a*a)},Ease.circInOut=function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},Ease.bounceIn=function(a){return 1-Ease.bounceOut(1-a)},Ease.bounceOut=function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},Ease.bounceInOut=function(a){return.5>a?.5*Ease.bounceIn(2*a):.5*Ease.bounceOut(2*a-1)+.5},Ease.getElasticIn=function(a,b){var c=2*Math.PI;return function(d){if(0==d||1==d)return d;var e=b/c*Math.asin(1/a);return-(a*Math.pow(2,10*(d-=1))*Math.sin((d-e)*c/b))}},Ease.elasticIn=Ease.getElasticIn(1,.3),Ease.getElasticOut=function(a,b){var c=2*Math.PI;return function(d){if(0==d||1==d)return d;var e=b/c*Math.asin(1/a);return a*Math.pow(2,-10*d)*Math.sin((d-e)*c/b)+1}},Ease.elasticOut=Ease.getElasticOut(1,.3),Ease.getElasticInOut=function(a,b){var c=2*Math.PI;return function(d){var e=b/c*Math.asin(1/a);return(d*=2)<1?-.5*a*Math.pow(2,10*(d-=1))*Math.sin((d-e)*c/b):a*Math.pow(2,-10*(d-=1))*Math.sin((d-e)*c/b)*.5+1}},Ease.elasticInOut=Ease.getElasticInOut(1,.3*1.5),createjs.Ease=Ease}(),this.createjs=this.createjs||{},function(){"use strict";function MotionGuidePlugin(){throw"MotionGuidePlugin cannot be instantiated."}MotionGuidePlugin.priority=0,MotionGuidePlugin._rotOffS,MotionGuidePlugin._rotOffE,MotionGuidePlugin._rotNormS,MotionGuidePlugin._rotNormE,MotionGuidePlugin.install=function(){return createjs.Tween.installPlugin(MotionGuidePlugin,["guide","x","y","rotation"]),createjs.Tween.IGNORE},MotionGuidePlugin.init=function(a,b,c){var d=a.target;return d.hasOwnProperty("x")||(d.x=0),d.hasOwnProperty("y")||(d.y=0),d.hasOwnProperty("rotation")||(d.rotation=0),"rotation"==b&&(a.__needsRot=!0),"guide"==b?null:c},MotionGuidePlugin.step=function(a,b,c,d,e){if("rotation"==b&&(a.__rotGlobalS=c,a.__rotGlobalE=d,MotionGuidePlugin.testRotData(a,e)),"guide"!=b)return d;var f,g=d;g.hasOwnProperty("path")||(g.path=[]);var h=g.path;if(g.hasOwnProperty("end")||(g.end=1),g.hasOwnProperty("start")||(g.start=c&&c.hasOwnProperty("end")&&c.path===h?c.end:0),g.hasOwnProperty("_segments")&&g._length)return d;var i=h.length,j=10;if(!(i>=6&&(i-2)%4==0))throw"invalid 'path' data, please see documentation for valid paths";g._segments=[],g._length=0;for(var k=2;i>k;k+=4){for(var l,m,n=h[k-2],o=h[k-1],p=h[k+0],q=h[k+1],r=h[k+2],s=h[k+3],t=n,u=o,v=0,w=[],x=1;j>=x;x++){var y=x/j,z=1-y;l=z*z*n+2*z*y*p+y*y*r,m=z*z*o+2*z*y*q+y*y*s,v+=w[w.push(Math.sqrt((f=l-t)*f+(f=m-u)*f))-1],t=l,u=m}g._segments.push(v),g._segments.push(w),g._length+=v}f=g.orient,g.orient=!0;var A={};return MotionGuidePlugin.calc(g,g.start,A),a.__rotPathS=Number(A.rotation.toFixed(5)),MotionGuidePlugin.calc(g,g.end,A),a.__rotPathE=Number(A.rotation.toFixed(5)),g.orient=!1,MotionGuidePlugin.calc(g,g.end,e),g.orient=f,g.orient?(a.__guideData=g,MotionGuidePlugin.testRotData(a,e),d):d},MotionGuidePlugin.testRotData=function(a,b){if(void 0===a.__rotGlobalS||void 0===a.__rotGlobalE){if(a.__needsRot)return;a.__rotGlobalS=a.__rotGlobalE=void 0!==a._curQueueProps.rotation?a._curQueueProps.rotation:b.rotation=a.target.rotation||0}if(void 0!==a.__guideData){var c=a.__guideData,d=a.__rotGlobalE-a.__rotGlobalS,e=a.__rotPathE-a.__rotPathS,f=d-e;if("auto"==c.orient)f>180?f-=360:-180>f&&(f+=360);else if("cw"==c.orient){for(;0>f;)f+=360;0==f&&d>0&&180!=d&&(f+=360)}else if("ccw"==c.orient){for(f=d-(e>180?360-e:e);f>0;)f-=360;0==f&&0>d&&-180!=d&&(f-=360)}c.rotDelta=f,c.rotOffS=a.__rotGlobalS-a.__rotPathS,a.__rotGlobalS=a.__rotGlobalE=a.__guideData=a.__needsRot=void 0}},MotionGuidePlugin.tween=function(a,b,c,d,e,f,g){var h=e.guide;if(void 0==h||h===d.guide)return c;if(h.lastRatio!=f){var i=(h.end-h.start)*(g?h.end:f)+h.start;switch(MotionGuidePlugin.calc(h,i,a.target),h.orient){case"cw":case"ccw":case"auto":a.target.rotation+=h.rotOffS+h.rotDelta*f;break;case"fixed":default:a.target.rotation+=h.rotOffS}h.lastRatio=f}return"rotation"!=b||h.orient&&"false"!=h.orient?a.target[b]:c},MotionGuidePlugin.calc=function(a,b,c){if(void 0==a._segments)throw"Missing critical pre-calculated information, please file a bug";void 0==c&&(c={x:0,y:0,rotation:0});for(var d=a._segments,e=a.path,f=a._length*b,g=d.length-2,h=0;f>d[h]&&g>h;)f-=d[h],h+=2;var i=d[h+1],j=0;for(g=i.length-1;f>i[j]&&g>j;)f-=i[j],j++;var k=j/++g+f/(g*i[j]);h=2*h+2;var l=1-k;return c.x=l*l*e[h-2]+2*l*k*e[h+0]+k*k*e[h+2],c.y=l*l*e[h-1]+2*l*k*e[h+1]+k*k*e[h+3],a.orient&&(c.rotation=57.2957795*Math.atan2((e[h+1]-e[h-1])*l+(e[h+3]-e[h+1])*k,(e[h+0]-e[h-2])*l+(e[h+2]-e[h+0])*k)),c},createjs.MotionGuidePlugin=MotionGuidePlugin}(),this.createjs=this.createjs||{},function(){"use strict";var a=createjs.TweenJS=createjs.TweenJS||{};a.version="0.6.2",a.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}();
(function(){'use strict';var f,g=[];function l(a){g.push(a);1==g.length&&f()}function m(){for(;g.length;)g[0](),g.shift()}f=function(){setTimeout(m)};function n(a){this.a=p;this.b=void 0;this.f=[];var b=this;try{a(function(a){q(b,a)},function(a){r(b,a)})}catch(c){r(b,c)}}var p=2;function t(a){return new n(function(b,c){c(a)})}function u(a){return new n(function(b){b(a)})}function q(a,b){if(a.a==p){if(b==a)throw new TypeError;var c=!1;try{var d=b&&b.then;if(null!=b&&"object"==typeof b&&"function"==typeof d){d.call(b,function(b){c||q(a,b);c=!0},function(b){c||r(a,b);c=!0});return}}catch(e){c||r(a,e);return}a.a=0;a.b=b;v(a)}}
function r(a,b){if(a.a==p){if(b==a)throw new TypeError;a.a=1;a.b=b;v(a)}}function v(a){l(function(){if(a.a!=p)for(;a.f.length;){var b=a.f.shift(),c=b[0],d=b[1],e=b[2],b=b[3];try{0==a.a?"function"==typeof c?e(c.call(void 0,a.b)):e(a.b):1==a.a&&("function"==typeof d?e(d.call(void 0,a.b)):b(a.b))}catch(h){b(h)}}})}n.prototype.g=function(a){return this.c(void 0,a)};n.prototype.c=function(a,b){var c=this;return new n(function(d,e){c.f.push([a,b,d,e]);v(c)})};
function w(a){return new n(function(b,c){function d(c){return function(d){h[c]=d;e+=1;e==a.length&&b(h)}}var e=0,h=[];0==a.length&&b(h);for(var k=0;k<a.length;k+=1)u(a[k]).c(d(k),c)})}function x(a){return new n(function(b,c){for(var d=0;d<a.length;d+=1)u(a[d]).c(b,c)})};window.Promise||(window.Promise=n,window.Promise.resolve=u,window.Promise.reject=t,window.Promise.race=x,window.Promise.all=w,window.Promise.prototype.then=n.prototype.c,window.Promise.prototype["catch"]=n.prototype.g);}());
(function(){function l(a,b){document.addEventListener?a.addEventListener("scroll",b,!1):a.attachEvent("scroll",b)}function m(a){document.body?a():document.addEventListener?document.addEventListener("DOMContentLoaded",function c(){document.removeEventListener("DOMContentLoaded",c);a()}):document.attachEvent("onreadystatechange",function k(){if("interactive"==document.readyState||"complete"==document.readyState)document.detachEvent("onreadystatechange",k),a()})};function r(a){this.a=document.createElement("div");this.a.setAttribute("aria-hidden","true");this.a.appendChild(document.createTextNode(a));this.b=document.createElement("span");this.c=document.createElement("span");this.h=document.createElement("span");this.f=document.createElement("span");this.g=-1;this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";
this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;";this.b.appendChild(this.h);this.c.appendChild(this.f);this.a.appendChild(this.b);this.a.appendChild(this.c)}
function t(a,b){a.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+b+";"}function y(a){var b=a.a.offsetWidth,c=b+100;a.f.style.width=c+"px";a.c.scrollLeft=c;a.b.scrollLeft=a.b.scrollWidth+100;return a.g!==b?(a.g=b,!0):!1}function z(a,b){function c(){var a=k;y(a)&&a.a.parentNode&&b(a.g)}var k=a;l(a.b,c);l(a.c,c);y(a)};function A(a,b){var c=b||{};this.family=a;this.style=c.style||"normal";this.weight=c.weight||"normal";this.stretch=c.stretch||"normal"}var B=null,C=null,E=null,F=null;function G(){if(null===C)if(J()&&/Apple/.test(window.navigator.vendor)){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);C=!!a&&603>parseInt(a[1],10)}else C=!1;return C}function J(){null===F&&(F=!!document.fonts);return F}
function K(){if(null===E){var a=document.createElement("div");try{a.style.font="condensed 100px sans-serif"}catch(b){}E=""!==a.style.font}return E}function L(a,b){return[a.style,a.weight,K()?a.stretch:"","100px",b].join(" ")}
A.prototype.load=function(a,b){var c=this,k=a||"BESbswy",q=0,D=b||3E3,H=(new Date).getTime();return new Promise(function(a,b){if(J()&&!G()){var M=new Promise(function(a,b){function e(){(new Date).getTime()-H>=D?b():document.fonts.load(L(c,'"'+c.family+'"'),k).then(function(c){1<=c.length?a():setTimeout(e,25)},function(){b()})}e()}),N=new Promise(function(a,c){q=setTimeout(c,D)});Promise.race([N,M]).then(function(){clearTimeout(q);a(c)},function(){b(c)})}else m(function(){function u(){var b;if(b=-1!=f&&-1!=g||-1!=f&&-1!=h||-1!=g&&-1!=h)(b=f!=g&&f!=h&&g!=h)||(null===B&&(b=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),B=!!b&&(536>parseInt(b[1],10)||536===parseInt(b[1],10)&&11>=parseInt(b[2],10))),b=B&&(f==v&&g==v&&h==v||f==w&&g==w&&h==w||f==x&&g==x&&h==x)),b=!b;b&&(d.parentNode&&d.parentNode.removeChild(d),clearTimeout(q),a(c))}function I(){if((new Date).getTime()-H>=D)d.parentNode&&d.parentNode.removeChild(d),b(c);else{var a=document.hidden;if(!0===a||void 0===a)f=e.a.offsetWidth,
g=n.a.offsetWidth,h=p.a.offsetWidth,u();q=setTimeout(I,50)}}var e=new r(k),n=new r(k),p=new r(k),f=-1,g=-1,h=-1,v=-1,w=-1,x=-1,d=document.createElement("div");d.dir="ltr";t(e,L(c,"sans-serif"));t(n,L(c,"serif"));t(p,L(c,"monospace"));d.appendChild(e.a);d.appendChild(n.a);d.appendChild(p.a);document.body.appendChild(d);v=e.a.offsetWidth;w=n.a.offsetWidth;x=p.a.offsetWidth;I();z(e,function(a){f=a;u()});t(e,L(c,'"'+c.family+'",sans-serif'));z(n,function(a){g=a;u()});t(n,L(c,'"'+c.family+'",serif'));
z(p,function(a){h=a;u()});t(p,L(c,'"'+c.family+'",monospace'))})})};"object"===typeof module?module.exports=A:(window.FontFaceObserver=A,window.FontFaceObserver.prototype.load=A.prototype.load);}());
!function(j,o){"use strict";var C="PTRemoveElement";j.cleanData=function(a){var t="__bind"+C;if(o[t]){return a}o[t]=true;return function(t){var e,i,s;for(s=0;(i=t[s])!=null;s++){try{e=j._data(i,"events");if(e&&e[C]){j(i).triggerHandler(C)}}catch(t){}}a(t)}}(j.cleanData);var I=j(o);var t=!!o.ActiveXObject||"ActiveXObject"in o;var b=/Mobi|Tablet|iPad|iPhone|Android/i.test(navigator.userAgent)&&!t||o.location.href.indexOf("force-device=1")>-1;var w="touchstart mousedown";var T="touchmove mousemove";var $="touchend mouseup";var h=b?"touchend mouseup":"click";var l="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var d=navigator.userAgent.indexOf("MSIE 9.0")>-1;var z="pt-unzoomable";var f=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});o.addEventListener("testPassive",null,e);o.removeEventListener("testPassive",null,e)}catch(t){}return t?{passive:false}:false}();var u=function(){var n="__pt_dbl_click";var a="__pt_dbl_time";var r=350;var o=[];var h="mouseup touchend";var e={};var t=function(t){h=t;return e};var l=function(t){var e=j(t.currentTarget);var i=e.data(a)||0;var s=Date.now();if(s-i<r){s=0;e.trigger(n,[t])}e.data(a,s)};var d=function(t){var e=false;var i=o.length,s;for(var a=0;a<i;a++){s=o[a];if(s[0].get(0)===t.get(0)){e=true;break}}return e};var i=function(t,e,s){if(!d(t)){t.on(n,function(i,t){s&&t.preventDefault();o.forEach(function(t){var e=t[1];e&&e.call(i.currentTarget,i)})});t.on(h,l);t.one(C,function(){f(t)})}o.push([t,e])};var f=function(t,e){var i=o.length,s;for(var a=i-1;a>=0;a--){s=o[a];if(e){if(s[0].get(0)===t.get(0)&&s[1]===e){o.splice(a,1);break}}else{if(s[0].get(0)===t.get(0)){o.splice(a,1)}}}if(!d(t)){t.off(n);t.off(C);t.off(h,l)}};e.init=t;e.add=i;e.remove=f;return e}().init("touchend");var O=function(t,e){var i,s;if(b){var a=t.changedTouches,n;n=a?a[0]:null;if(n){i=n.pageX;s=n.pageY}else{i=t.pageX!==undefined?t.pageX:t.clientX;s=t.pageY!==undefined?t.pageY:t.clientY}}else{i=t.pageX!==undefined?t.pageX:t.clientX;s=t.pageY!==undefined?t.pageY:t.clientY}return e==="x"?i:e==="y"?s:{x:i,y:s}};var x=function(t,e){var i=t.data("__translateX");var s=t.data("__translateY");var a=t.data("__scale");if(e["translateX"]!==undefined){i=e["translateX"];t.data("__translateX",i)}if(e["translateY"]!==undefined){s=e["translateY"];t.data("__translateY",s)}if(e["scale"]!==undefined){a=e["scale"];t.data("__scale",a)}var n=[];if(i||s){if(d){n.push("translate("+(i||0)+"px,"+(s||0)+"px)")}else{n.push("translate3d("+(i||0)+"px,"+(s||0)+"px, 0)")}}if(a!==undefined&&a!==1){n.push("scale("+a+")")}var r=n.join(" ");var o=t.data("__transformCSS");if(o===r){return}t.data("__transformCSS",r);t.css("transform",r)};var A=function(t,e,i,s,a,n){var r=j(t);if(e===undefined){e=0}if(i===undefined){i=0}var o=null;if(s!==undefined){o={x:r.data("__translateX")||0,y:r.data("__translateY")||0};createjs.Tween.get(o,{override:true,onChange:function(t){x(r,{translateX:o.x,translateY:o.y})}}).to({x:e,y:i},s,createjs.Ease[a||"sineOut"]||createjs.Ease.sineOut).call(function(){n&&n()})}else{x(r,{translateX:e,translateY:i});n&&n()}return o};var L=function(){var p=[];var t=function(r,a,o,s){if(!r){return}e(r);var n=j(r);n.one(C,function(){e(r)});var h,l,d,f,u,_,c,v;var t=function(t){var e=t.originalEvent;var i=true;if(a){i=a(e,r)!==false}if(i){I.off(T,m).off($,g).on(T,m).on($,g);var s=O(e);h=s.x;l=s.y;d=n.data("__dragX")||0;f=n.data("__dragY")||0;u=_=0;c=v=0}};var m=function(t){var e=t.originalEvent;var i=true;var s=d,a=f;var n=O(e);c=n.x-h;v=n.y-l;s+=c;a+=v;if(o){i=o(e,r,s,a,c,v)!==false}if(i){u+=Math.abs(n.x-h);_+=Math.abs(n.y-l);d=s;f=a;h=n.x;l=n.y}};var g=function(t){var e=t.originalEvent;I.off(T,m).off($,g);var i;if(s){i=s(e,r,d,f,c,v,u,_)}if(i){n.data("__dragX",i.x);n.data("__dragY",i.y)}else{n.data("__dragX",d);n.data("__dragY",f)}u=0;_=0};n.off(w,t).on(w,t);p.push([r,t]);return b};var e=function(i){if(!i){return b}if(i instanceof jQuery){i=i.get(0)}var t=j(i);p.forEach(function(t,e){if(!Array.isArray(t)){p.splice(e,1)}else if(t[0]===i&&t[1]){j(t[0]).off(w,t[1]);t.length=0;p.splice(e,1)}});t.data("__dragX",0);t.data("__dragY",0);return b};var b={listen:t,cancel:e};return b}();var i=function(t,e){this._element=t;t.__ivInstance=this;var a=j(t);a.data("__imageViewer",this);this.$e=a;this.$e.one(C,function(){this.dispose()}.bind(this));this._disposed=false;var i=function(t,e,i){var s=i;if(a.data(t)!==undefined){s=a.data(t)}else if(e[t]!==undefined){s=e[t]}return s};this._loop=i("loop",e,true);this._showThumb=i("showThumb",e,false);this._animateTime=i("animateTime",e,500);this._animateInEase=i("animateInEase",e,"sineOut");this._animateOutEase=i("animateOutEase",e,"sineOut");this._cd=i("cd",e,300);this._fadeTime=i("fadeTime",e,500);this._showTitle=i("showTitle",e,true);this._skinStyle=i("skinStyle",e,"dark");this._dragDistance=i("dragDistance",e,30);this._useZoom=i("useZoom",e,true);this._useMobileZoom=i("useMobileZoom",e,true);this._useDesktopZoom=i("useDesktopZoom",e,true);this._zoomInTime=i("zoomInTime",e,350);this._zoomInEase=i("zoomInEase",e,"sineOut");this._zoomOutTime=i("zoomOutTime",e,350);this._zoomOutEase=i("zoomOutEase",e,"sineOut");this._mobileClosedByAroundArea=i("mobileClosedByAroundArea",e,true);this._allowClickDistanceX=i("allowClickDistanceX",e,0);this._allowClickDistanceY=i("allowClickDistanceY",e,0);if(!this._useZoom){this._useMobileZoom=this._useDesktopZoom=false}if(o["PT_IV_USE_MOBILE_ZOOM"]===false){this._useMobileZoom=false}if(o["PT_IV_USE_DESKTOP_ZOOM"]===false){this._useDesktopZoom=false}if(!this._useMobileZoom&&!this._useDesktopZoom){this._useZoom=false}this._itemSelector=e["itemSelector"]===undefined?".item":e["itemSelector"];this._beforeCloseHandler=e["beforeCloseHandler"]||null;this._closeHandler=e["closeHandler"]||null;this._openClass=e["openClass"]||"";if(this._openClass&&this._openClass.indexOf(".")===0){this._openClass=this._openClass.substring(1)}if(o["PT_IV_LOOP"]!==undefined){this._loop=o["PT_IV_LOOP"]}if(o["PT_IV_SHOW_THUMB"]!==undefined){this._showThumb=o["PT_IV_SHOW_THUMB"]}this._isRTL=(j("body").css("direction")||"").toLowerCase()=="rtl";createjs.Ticker.timingMode=createjs.Ticker.RAF;this._stageWidth=0;this._allowCalls=["open","update","dispose"];this._inCD=false;this._oldMouseX=0;this._currentX=0;this._canDrag=true;this._stageItems=[];this._currentImageItem=null;this._isJsonDataMode=false;this.$triggerItems=null;this.$items=null;this._items=[];this._total=0;this._currentIndex=0;this._tweeningObjects=[];var s="";s+=this._skinStyle;if(b){s+=" is-device"}var n=j('<div class="pt-iv-root '+s+'">'+'<div class="pt-iv-container"></div>'+'<div class="pt-iv-prev pt-iv-btn"><i></i></div>'+'<div class="pt-iv-next pt-iv-btn"><i></i></div>'+'<div class="pt-iv-close pt-iv-btn"><i></i></div>'+'<div class="pt-iv-title"><i></i><div><p></p></div></div>'+'<div class="pt-iv-number"><i>1</i><i>/</i><i>'+this._total+"</i></div>"+'<ul class="pt-iv-thumb-list"></ul>'+'<div class="pt-iv-thumbs-toggle"><i></i></div>'+"</div>");n.fadeOut(0);this.$root=n;this.$thumbsToggle=n.find(".pt-iv-thumbs-toggle");this.$thumbSource=j('<li class="pt-iv-thumb-item"><img src="'+l+'" alt=""></li>');this.$thumbList=n.find(".pt-iv-thumb-list");this.$numContainer=n.find(".pt-iv-number");this.$currentNum=this.$numContainer.children("i:nth-child(1)");this.$totalNum=this.$numContainer.children("i:nth-child(3)");this.$numContainer.hide();this.$titleWrap=n.find(".pt-iv-title");this.$titleWrap.find("i").on("click",function(){this.$titleWrap.toggleClass("show")}.bind(this));this.$title=this.$titleWrap.find("p");this.$imgContent=n.find(".pt-iv-container");this._onWheelHandler=this._onWheel.bind(this);if(this._useZoom){this._zoomDownX=0;this._dblCD=0;this._isZoomIn=false;this._zoomingSrcImg=null;var r=j('<div class="pt-iv-zoom-container"></div>');this.$zoomContainer=r;this.$zoomBtn=j('<div class="pt-iv-zoom-btn pt-iv-btn"><i></i></div>');if(b){this.$zoomBtn.addClass("is-device")}this.$zoomBtn.addClass(this._skinStyle);this.$zoomBtn.on(w,function(t){t.preventDefault();t.stopPropagation();if(this._isZoomIn){this._zoomOut()}else if(this._currentImageItem){var e=j(this._currentImageItem).find("img").get(0);if(e&&e instanceof Image){this._zoomIn(e)}}}.bind(this));if(b){if(this._useMobileZoom){r.addClass("is-device");this.$imgContent.addClass("use-mobile-zoom");u.add(r,function(){this._zoomOut()}.bind(this),true);n.append(this.$zoomBtn)}else{n.addClass(z)}}else{if(this._useDesktopZoom){this.$imgContent.addClass("use-desktop-zoom");r.on("click",function(t){if(j(t.target).hasClass("pt-iv-zoom-container")){this._zoomOut()}}.bind(this));r.get(0).addEventListener("wheel",this._onWheelHandler,f);n.append(this.$zoomBtn);r.css("overflow","hidden")}else{n.addClass(z)}}}else{n.addClass(z)}this._imgItems=[];this._thumbItems=[];if(!b||b&&this._mobileClosedByAroundArea){n.on("click",function(t){var e=j(t.target);if(e.hasClass("pt-iv-item")||e.hasClass("pt-iv-loading")){t.preventDefault();t.stopPropagation();this._onClose()}}.bind(this))}if(this._isRTL){this.$prevBtn=n.find(".pt-iv-next");this.$nextBtn=n.find(".pt-iv-prev")}else{this.$prevBtn=n.find(".pt-iv-prev");this.$nextBtn=n.find(".pt-iv-next")}this.$prevBtn.on(h,function(t){this._onPrev()}.bind(this));this.$nextBtn.on(h,function(t){this._onNext()}.bind(this));n.find(".pt-iv-close").on(h,function(t){t.preventDefault();t.stopPropagation();this._onClose()}.bind(this));n.get(0).addEventListener("wheel",this._onWheelHandler,f);this.$thumbsToggle.on(h,function(t){t.preventDefault();t.stopPropagation();n.toggleClass("pt-iv-show-thumbs")}.bind(this));this._onOpenHandler=this._onOpen.bind(this);this._onKeyDownHandler=this._onKeyDown.bind(this);this._onKeyUpHandler=this._onKeyUp.bind(this);this._onResizeHandler=this._onResize.bind(this);this._onTouchStartItemHandler=this._onTouchStartItem.bind(this);this._touchItemPos={x:-100,y:-100};this.updateData()};var e=i.prototype;e.update=function(t){this.updateData(t)};e.updateData=function(t){var h;if(t){h=t}else{h=this._itemSelector?this.$e.find(this._itemSelector):this.$e}if(h.length===1&&h.data("src-type")==="json"){this._isJsonDataMode=true;var l=this;(function(){var t=h.data("src");if(t&&t.src&&t.src.length>0){var e=t.src.length,i,s,a,n;var r=j("<div></div>");for(var o=0;o<e;o++){s=t.src[o]||"";if(!s){continue}a=t.title?t.title[o]||"":"";n=t.thumb?t.thumb[o]||"":"";i=j('<div data-src="'+s+'" data-title="'+a+'" data-thumb="'+n+'"></div>');r.append(i)}l.$items=r.children()}})()}else{this._isJsonDataMode=false;this.$items=h}this.$triggerItems=h;this._items.length=0;if(this.$items){this.$items.each(function(t,e){this._items.push(e)}.bind(this))}this._total=this._items.length;if(this._total>1){this.$numContainer.show()}else{this.$numContainer.hide()}if(this.$triggerItems){this.$triggerItems.off("mousedown touchstart",this._onTouchStartItemHandler).on("mousedown touchstart",this._onTouchStartItemHandler);this.$triggerItems.off("click",this._onOpenHandler).on("click",this._onOpenHandler)}if(this._total<2){var e="pt-iv-btn-disabled";this.$prevBtn.addClass(e);this.$nextBtn.addClass(e)}this.$totalNum.html(this._total);this.$thumbList.empty();this._thumbItems.length=0;var i=this._showThumb&&this._total>1;var s="pt-iv-has-thumb pt-iv-show-thumbs";if(i){var a,n,r;for(var o=0;o<this._total;o++){n=this._items[o];a=j(n).data("thumb");r=this.$thumbSource.clone();r.children("img").attr("src",a);r.on(w,this._onClickThumb.bind(this));this.$thumbList.append(r);this._thumbItems.push(r)}this.$root.addClass(s);this.$thumbsToggle.show()}else{this.$root.removeClass(s);this.$thumbsToggle.hide()}};e._onTouchStartItem=function(t){this._touchItemPos=O(t)};e.open=function(t){t=t||0;if(t<0){t=0}else if(t>this._total-1){t=this._total-1}this._currentIndex=t;this._onOpen(null)};e._onClickThumb=function(t){t.preventDefault();t.stopPropagation();if(this._checkInCD()){return}var e=j(t.currentTarget);var i=e.index();if(i===this._currentIndex){return}var s;if(i<this._currentIndex){s=1}else{s=-1}var a;if(this._isJsonDataMode){a=this._items[i];if(!a){i=0;a=this._items[i]}}else{a=this._items[i]}if(a){this._currentIndex=i;this.$currentNum.html(i+1);var n=j(a);this._showImage(n.data("src")||n.data("href")||n.attr("href"),n.data("title"),s,true)}};e._removeClassByPrefix=function(t,e){if(!t||!e){return false}var i=[];var s=t.classList;var a=s.length;for(var n=0;n<a;n++){i.push(s[n])}i.forEach(function(t){if(t.indexOf(e)===0){s.remove(t)}});return true};e._onResize=function(t){this._stageWidth=this.$root.width();var e=this._thumbItems[this._currentIndex];this._updateThumbListPos(e);var i=this.$root;if(this._useZoom){var s=this._currentImageItem;if(s){var a=j(s).find("img").get(0);if(a&&a.complete){var n=j(a);if(n.width()>=a.naturalWidth&&n.height()>=a.naturalHeight){i.addClass(z)}else if(i.hasClass(z)){i.removeClass(z)}}}if(this._isZoomIn){var r=this.$zoomContainer;var o=r.find("img");var h=o.get(0);var l=h.naturalWidth;var d=h.naturalHeight;var f=r.width();var u=r.height();if(b){var _=f/l;var c=u/d;this._removeClassByPrefix(r.get(0),"overflow-");if(_>c){r.addClass("overflow-x")}else if(_<c){r.addClass("overflow-y")}else{r.addClass("overflow-xy")}var v=Math.max(_,c);o.css("width",l*v);o.css("height",d*v)}else{var m=o.data("__translateX")||0,g=o.data("__translateY")||0;if(this._isRTL){var p=-m;if(l<f){m=f-l>>1;m=-m}else if(p>0){m=0}else if(p+l<f){m=f-l;m=-m}}else{if(l<f){m=f-l>>1}else if(m>0){m=0}else if(m+l<f){m=f-l}}if(d<u){g=u-d>>1}else if(g>0){g=0}else if(g+d<u){g=u-d}o.data("__dragX",m);o.data("__dragY",g);x(o,{translateX:m,translateY:g})}}}};e._onKeyDown=function(t){switch(t.keyCode){case 37:case 38:t.stopPropagation();break;case 39:case 40:t.stopPropagation();break;case 27:t.stopPropagation();break}};e._onKeyUp=function(t){switch(t.keyCode){case 37:case 38:this._onPrev();break;case 39:case 40:this._onNext();break;case 27:if(this._isZoomIn){this._zoomOut()}else{this._onClose()}break}};e._onWheel=function(t){t.preventDefault();t.deltaY<0?this._onPrev():t.deltaY>0?this._onNext():""};e._onPrev=function(t){if(!t&&this._checkInCD()){return}if(this._isZoomIn){this._zoomOut(null,this._onPrev.bind(this,true));return}this.$root.removeClass("pt-iv-first-open");var e=this._currentIndex;e--;if(e<0){e=this._loop?this._total-1:0}if(this._currentIndex!=e){this._currentIndex=e;this.$currentNum.html(e+1);var i=this._items[e];if(i){this._showImage(j(i).data("src")||j(i).data("href")||j(i).attr("href"),j(i).data("title"),1,true)}}};e._onNext=function(t){if(!t&&this._checkInCD()){return}if(this._isZoomIn){this._zoomOut(null,this._onNext.bind(this,true));return}this.$root.removeClass("pt-iv-first-open");var e=this._currentIndex;e++;if(e>this._total-1){e=this._loop?0:this._total-1}if(this._currentIndex!=e){this._currentIndex=e;this.$currentNum.html(e+1);var i=this._items[e];if(i){this._showImage(j(i).data("src")||j(i).data("href")||j(i).attr("href"),j(i).data("title"),-1,true)}}};e._showImage=function(t,e,s,a){this._canDrag=false;this._stageItems.forEach(function(t){var e=s==-1?-this._stageWidth:this._stageWidth;if(this._isRTL)e=-e;var i=this._getTweenObj({target:t,value:j(t).data("__translateX")||0},true);createjs.Tween.get(i,{override:true,onChange:this._onUpdate.bind(this)}).to({value:e},a?this._animateTime:0,createjs.Ease[this._animateOutEase]||createjs.Ease.sineOut).call(function(){this._removeTweenObj(t);this._onTweenOutEnd(t)}.bind(this))},this);this._stageItems.length=0;var i=this._getImageItem(t);this.$imgContent.append(i);this._currentImageItem=i;var n=s==-1?this._stageWidth:-this._stageWidth;if(this._isRTL)n=-n;A(i,n);var r=this._getTweenObj({target:i,value:n},true);createjs.Tween.get(r,{override:true,onChange:this._onUpdate.bind(this)}).to({value:0},a?this._animateTime:0,createjs.Ease[this._animateInEase]||createjs.Ease.sineOut).call(function(){this._removeTweenObj(i);this._onTweenInEnd()}.bind(this));if(this._showTitle){this.$title.fadeOut(a?this._animateTime>>1:0,function(t){if(t){this.$titleWrap.addClass("has-content")}else{this.$titleWrap.removeClass("has-content")}this.$title.html(t).fadeIn(this._animateTime>>1)}.bind(this,e))}this._stageItems.push(i);this.$thumbList.children(".pt-iv-thumb-item").removeClass("selected");var o=this._thumbItems[this._currentIndex];o&&o.addClass("selected");this._updateThumbListPos(o);this._updateArrow()};e._updateThumbListPos=function(t){var e=this.$thumbList.width();if(e<this._stageWidth){this.$thumbList.css("left",(this._stageWidth-e>>1)+"px");return}var i=0;if(t){i=this._stageWidth/2-t.offset().left-t.width()/2}var s=this.$thumbList.position().left+i;if(s>0){s=0}else if(s<this._stageWidth-e){s=this._stageWidth-e}this.$thumbList.css("left",s+"px")};e._onTweenInEnd=function(){this._canDrag=true};e._onTweenOutEnd=function(t){this._imgItems.push(t);var e=j(t);e.find("img").attr("src",l);e.remove()};e._getTweenObj=function(t,e){var i=this._tweeningObjects;if(e){this._removeTweenObj(t.target)}i.push(t);return t};e._removeTweenObj=function(t){var e=this._tweeningObjects;var i=e.length,s;while(i--){s=e[i];if(s){if(t){if(s.target===t){createjs.Tween.removeTweens(s);e.splice(i,1)}}else{createjs.Tween.removeTweens(s);e.splice(i,1)}}else{e.splice(i,1)}}};e._onUpdate=function(t){var e=t.target;var i=e.target;var s=i.target,a=i.value;A(s,a)};e._onOpen=function(t){if(t){if(this._allowClickDistanceX>0||this._allowClickDistanceY>0){var e=O(t);var i=Math.abs(e.x-this._touchItemPos.x);var s=Math.abs(e.y-this._touchItemPos.y);if(this._allowClickDistanceX>0&&i>this._allowClickDistanceX){return}if(this._allowClickDistanceY>0&&s>this._allowClickDistanceY){return}}t.preventDefault();t.stopPropagation()}if(this._checkInCD()){return}var a;if(this._isJsonDataMode){a=this._items[this._currentIndex];if(!a){this._currentIndex=0;a=this._items[this._currentIndex]}}else if(t){a=t.currentTarget;this._currentIndex=this._items.indexOf(a)}else{a=this._items[this._currentIndex]}if(!a){return}this.$root.addClass("pt-iv-first-open");if(this._openClass){j("body").addClass(this._openClass)}j("body").addClass("pt-iv-modal").append(this.$root);this.$root.addClass("pt-iv-fading pt-iv-fading-in").fadeIn(this._fadeTime,function(){this.$root.removeClass("pt-iv-fading pt-iv-fading-in")}.bind(this));this.$currentNum.html(this._currentIndex+1);setTimeout(function(){this._showImage(j(a).data("src")||j(a).data("href")||j(a).attr("href"),j(a).data("title"))}.bind(this),150);I.on("keyup",this._onKeyUpHandler).on("resize",this._onResizeHandler);o.addEventListener("keydown",this._onKeyDownHandler,true);this._onResize()};e._onClose=function(t){if(this._beforeCloseHandler){this._beforeCloseHandler&&this._beforeCloseHandler.call(this,this)}this.$root.addClass("pt-iv-fading pt-iv-fading-out").fadeOut(this._fadeTime,function(){this.$root.removeClass("pt-iv-fading pt-iv-fading-out").detach();this._stageItems.forEach(function(t){j(t).remove()},this);this._stageItems.length=0;this.$titleWrap.removeClass("has-content show");this.$title.html("");if(this._openClass){j("body").removeClass(this._openClass)}if(this._closeHandler){this._closeHandler&&this._closeHandler.call(this,this)}}.bind(this));j("body").removeClass("pt-iv-modal");this.$root.removeClass("pt-iv-first-open");I.off("keyup",this._onKeyUpHandler).off("resize",this._onResizeHandler);o.removeEventListener("keydown",this._onKeyDownHandler,true)};e._getImageItem=function(t){var e,i;var a=this;if(this._imgItems.length>0){e=this._imgItems.pop();i=j(e).find("img").get(0)}else{e=document.createElement("div");e.className="pt-iv-item";e.innerHTML='<div class="pt-iv-loading"><abbr class="pic-loader"><i></i><i></i><i></i></abbr></div>'}if(!i){i=new Image;i.onload=function(t){j(this).parent().addClass("pt-iv-img-loaded");this.style.opacity=1;a._onResize()};i.alt="";e.appendChild(i)}var s=j(e);s.removeClass("pt-iv-img-loaded");i.style.opacity=0;i.src=t||l;if(b&&this._useMobileZoom){u.add(j(i),function(){if(!this._isZoomIn&&!this._zooming){this._zoomIn(i)}}.bind(this),true)}var f=function(t,e){if(t){var i=j(t);var s=a._getTweenObj({target:t,value:e},true);createjs.Tween.get(s,{override:true,onChange:a._onUpdate.bind(a)}).to({value:0},a._animateTime,createjs.Ease[a._animateOutEase]||createjs.Ease.sineOut).call(function(){a._canDrag=true;i.data("__dragX",i.data("__translateX"));i.data("__dragY",i.data("__translateY"));a._removeTweenObj(t)})}};if(this._total>1){L.listen(e,function t(e,i){if(b&&e.touches&&e.touches.length>1){return false}if(this._zooming){return false}if(j(e.target).hasClass("pt-iv-item")){return false}if(!b){e.preventDefault()}a._removeTweenObj(i);var s=j(i);s.data("__dragX",s.data("__translateX"));s.data("__dragY",s.data("__translateY"));this.$imgContent.addClass("pt-iv-press")}.bind(this),function t(e,i,s,a,n,r){if(b&&e.touches&&e.touches.length>1){return false}if(!b){e.preventDefault()}A(i,s)}.bind(this),function t(e,i,s,a,n,r,o,h){var l=s;if(this._isRTL){l=-l}var d=false;if(l<-this._dragDistance){if(this._isRTL){d=this._currentIndex>=0&&this._currentIndex<this._total-1}else{d=this._currentIndex<this._total-1}this._loop||d?this._onNext():f(i,s)}else if(l>this._dragDistance){if(this._isRTL){d=this._currentIndex>0&&this._currentIndex<=this._total-1}else{d=this._currentIndex>0}this._loop||d?this._onPrev():f(i,s)}else{f(i,s);if(o<=15){if(!b&&this._useDesktopZoom){if(e.target&&e.target instanceof Image){e.preventDefault();this._zoomIn(e.target)}}}}this.$imgContent.removeClass("pt-iv-press");return null}.bind(this))}else if(this._total===1){if(this._useZoom&&(b&&this._useMobileZoom)||!b&&this._useDesktopZoom){s.on("click",function(t){if(t.target&&t.target instanceof Image){this._zoomIn(t.target)}}.bind(this))}}return e};e._zoomIn=function(_){if(this._zooming){return}if(!_||!_.src){return}var c=j(_);if(Math.round(c.width())>=_.naturalWidth&&Math.round(c.height())>=_.naturalHeight){return}j("body").append(this.$zoomBtn);var t=_.src;var y=this.$zoomContainer;var v=y.get(0);var D=this._isRTL;var m=new Image;var g=j(m);g.css("visibility","hidden");var p=true;g.on("load",function(){this._onResize();var t=m.naturalWidth;var e=m.naturalHeight;var i=y.width();var s=y.height();var a=i-t>>1;var n=s-e>>1;if(D){a=-a}if(!b){g.data("__dragX",a);g.data("__dragY",n)}else{var r=Math.max(i/t,s/e);t*=r;e*=r;a=i-t>>1;n=s-e>>1;if(D){a=-a}}var o=c.width();var h=_.offsetLeft;var l=_.offsetTop;var d=this.$root.get(0);if(d){h+=d.offsetLeft;l+=d.offsetTop}if(D){h=-h}var f=o/t;x(g,{translateX:h,translateY:l,scale:f});c.hide();g.css("visibility","visible");this._zooming=true;y.addClass("zooming-in zooming");var u=this._getTweenObj({target:m,x:h,y:l,percent:0,scale:f},true);createjs.Tween.get(u,{override:true,onChange:function(){x(g,{translateX:u.x,translateY:u.y,scale:u.scale})}.bind(this)}).to({x:a,y:n,percent:1,scale:1},this._zoomInTime||350,createjs.Ease[this._zoomInEase]||createjs.Ease.sineOut).call(function(){this._removeTweenObj(m);p=false;this._zooming=false;y.removeClass("zooming-in zooming");if(b){setTimeout(function(){x(g,{translateX:0,translateY:0});v.scrollLeft=-a;v.scrollTop=-n})}}.bind(this))}.bind(this));m.className="zoom-img";m.style.transformOrigin=D?"100% 0 0":"0 0 0";m.src=t;this._zoomingSrcImg=_;y.addClass("pt-zoom-in");y.empty().append(g).show();j("body").append(y);this.$e.addClass("pt-zoom-modal");this.$zoomBtn.addClass("pt-zoom-in");this._isZoomIn=true;this._onResize();if(!b){var k,E=0,H=[];L.listen(y.find("img").get(0),function t(e,i){e.preventDefault();if(p){return false}y.addClass("dragging");if(k){createjs.Tween.removeTweens(k);k=null}H.length=0}.bind(this),function t(e,i,s,a,n,r){e.preventDefault();e.stopPropagation();var o=i.naturalWidth;var h=i.naturalHeight;var l=y.width();var d=y.height();var f=s,u=a;var _=.3;if(D){s=-s;if(o<l){var c=l-o>>1;f=c+(s-c)*_;f=-f}else if(s>0){f=s*_;f=-f}else if(s+o<l){f=(s-(l-o))*_+(l-o);f=-f}}else{if(o<l){var c=l-o>>1;f=c+(s-c)*_}else if(s>0){f=s*_}else if(s+o<l){f=(s-(l-o))*_+(l-o)}}if(h<d){var v=d-h>>1;u=v+(a-v)*_}else if(a>0){u=a*_}else if(a+h<d){u=(a-(d-h))*_+(d-h)}E=Date.now();H.push([E,n,r]);A(i,f,u)}.bind(this),function t(e,i,s,a,n,r,o,h){e.preventDefault();if(o<this._dragDistance&&h<this._dragDistance){this._zoomOut()}y.removeClass("dragging");var l=Date.now()-E;if(l<20){var d=0,f=0,u=0,_=0,c;while(H.length){d++;if(d>3){break}c=H.pop();f+=c[0];u+=c[1];_+=c[2]}var v=f/d;var m=u/d;var g=_/d;var p=v*10;var b=m*p;var C=g*p;var I=300;b=b>I?I:b<-I?-I:b;C=C>I?I:C<-I?-I:C;s+=b;a+=C}var w=i.naturalWidth;var T=i.naturalHeight;var $=y.width();var z=y.height();var O=s,x=a;if(D){s=-s;if(w<$){O=$-w>>1;O=-O}else if(s>0){O=0}else if(s+w<$){O=$-w;O=-O}}else{if(w<$){O=$-w>>1}else if(s>0){O=0}else if(s+w<$){O=$-w}}if(T<z){x=z-T>>1}else if(a>0){x=0}else if(a+T<z){x=z-T}if(j(i).data("__translateX")!==O||j(i).data("__translateY")!==x){k=A(i,O,x,500,"quartOut",function(){k=null})}return{x:O,y:x}}.bind(this))}};e._zoomOut=function(t,e){if(this._isZoomIn){if(this._zooming){return}var i=this.$zoomContainer;var s=i.get(0);var a=this._isRTL;var n=i.find("img");var r=n.get(0);L.cancel(r);var o=this._zoomingSrcImg;if(!o){return}this._zoomingSrcImg=null;var h=j(o);h.show();var l=h.width();var d=n.data("__translateX")||0;var f=n.data("__translateY")||0;var u=n.width();var _=o.offsetLeft;var c=o.offsetTop;var v=this.$root.get(0);if(v){_+=v.offsetLeft;c+=v.offsetTop}if(a){_=-_}if(b){d=-s.scrollLeft,f=-s.scrollTop;x(n,{translateX:d,translateY:f});s.scrollLeft=0;s.scrollTop=0}this._zooming=true;i.addClass("zooming-out zooming");var m=this._getTweenObj({target:r,x:d,y:f,percent:1,scale:1},true);createjs.Tween.get(m,{override:true,onChange:function(){x(n,{translateX:m.x,translateY:m.y,scale:m.scale})}}).to({x:_,y:c,percent:0,scale:l/u},this._zoomOutTime||350,createjs.Ease[self._zoomOutEase]||createjs.Ease.sineOut).call(function(){this._removeTweenObj(r);i.removeClass("pt-zoom-in zooming-out zooming");i.empty().hide();this.$e.removeClass("pt-zoom-modal");this.$zoomBtn.removeClass("pt-zoom-in");this.$root.append(this.$zoomBtn);this._isZoomIn=false;this._zooming=false;e&&e.call(this)}.bind(this))}};e._updateArrow=function(){if(this._total<2||this._loop){return}var t=this.$prevBtn,e=this.$nextBtn,i="pt-iv-btn-disabled";if(this._currentIndex<=0){t.addClass(i);e.removeClass(i)}else if(this._currentIndex>=this._total-1){t.removeClass(i);e.addClass(i)}else{t.removeClass(i);e.removeClass(i)}};e._checkInCD=function(){if(this._inCD)return true;setTimeout(function(){this._inCD=false}.bind(this),this._cd);this._inCD=true;return false};e.execute=function(t,e){if(!t||this._allowCalls.indexOf(t)<0){return}if(e&&!Array.isArray(e)){e=[e]}var i=this[t];if(i&&typeof i=="function"){i.apply(this,e||[])}};e.dispose=function(){if(this._disposed){return}this._disposed=true;this.$triggerItems.off("click",this._onOpenHandler).off("mousedown touchstart",this._onTouchStartItemHandler);I.off("keyup",this._onKeyUpHandler).off("resize",this._onResizeHandler);o.removeEventListener("keydown",this._onKeyDownHandler,true);var t=this._element;if(t){j(t).data("__imageViewer",null);t.__ivInstance=null;this._element=null}this._removeTweenObj();var e=this.$root;if(e&&e.length>0){e.get(0).removeEventListener("wheel",this._onWheelHandler,f);e.remove()}var i=this.$zoomContainer;if(i&&i.length>0){i.get(0).removeEventListener("wheel",this._onWheelHandler,f);i.remove()}this._closeHandler=null;this._beforeCloseHandler=null;this._onWheelHandler=null;this._onOpenHandler=null;this._onTouchStartItemHandler=null};j.fn.extend({ptImageViewer:function(t){var e;this.each(function(){e=j(this).data("__imageViewer");if(e){e.updateData()}else{new i(this,t||{})}});return this},ptImageViewerCall:function(e,i){this.each(function(){var t=j(this).data("__imageViewer");t&&t.execute(e,i)});return this}})}(jQuery,window);
!function(_,p){"use strict";var y="PTRemoveElement";_.cleanData=function(a){var e="__bind"+y;if(p[e]){return a}p[e]=true;return function(e){var t,i,s;for(s=0;(i=e[s])!=null;s++){try{t=_._data(i,"events");if(t&&t[y]){_(i).triggerHandler(y)}}catch(e){}}a(e)}}(_.cleanData);var a={playingPlayers:[],onStatusChanged:null};var t=function(){a.vimeoApiReady=true;if(a.vimeoWaitingPlayers){var e=a.vimeoWaitingPlayers.length,t;while(e--){t=a.vimeoWaitingPlayers[e];t&&t.init()}a.vimeoWaitingPlayers.length=0}};p.onYouTubeIframeAPIReady=function(){a.youtubeApiReady=true;if(a.youtubeWaitingPlayers){var e=a.youtubeWaitingPlayers.length,t;while(e--){t=a.youtubeWaitingPlayers[e];t&&t.init()}a.youtubeWaitingPlayers.length=0}};var f=function(e){var t=e.indexOf("?");if(t==-1)return null;var i=e.substring(t+1);t=i.indexOf("#");if(t>-1){i=i.substring(0,t)}i=i.replace(/&amp;|&amp%3b/gi,"&");var s=i.split("&"),a;var n=s.length,l={};for(var h=0;h<n;h++){a=s[h].split("=");if(a.length>1){l[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}}return l};var i=function(e,t,i,s,a){this.type="vimeo";this._container=e;this._options=i;this._callback=s;this._playerMgr=a;this._isInited=false;this._isPlaying=false;this._needPlay=false;this._needPause=false;this._needMute=false;var n=a._isRTL?"right":"left";var l=this._options.full?"width:"+this._options.width+"px;height:"+this._options.height+"px;":"width:100%;height:100%;";var h='<div class="pt-vimeo-player" style="'+l+"position:absolute;"+n+':0;top:0;"></div>';_(this._container).append(h);this._src=t;Object.defineProperty(this,"src",{get:this.getSrc})};var e=i.prototype;e.init=function(){var s=this._options;var e=s.volume===undefined?1:s.volume;if(s.autoplay&&e>0){e=0;this._needMute=true}var t={url:this._src,autopause:false,width:s.width,height:s.height,autoplay:s.autoplay?true:false,background:(s.controls||!s.autoplay)&&e>0?false:true,loop:s.loop?true:false,playsinline:s.playsinline?true:false,muted:e===0?true:false};this.player=new Vimeo.Player(_(this._container).children(".pt-vimeo-player").get(0),t);this.player.setVolume(e);this.player.on("loaded",this.onPlayerReady.bind(this));this.player.on("play",this._onPlay.bind(this));this.player.on("pause",this._onPause.bind(this));this.player.on("ended",this._onPlayEnd.bind(this));var i=/[#&\?]t=([\d\.]+)s/;if(i.test(this._src)){i.lastIndex=0;var a=this._src.match(i);if(a&&!isNaN(parseFloat(a[1]))){this.player.setCurrentTime(parseFloat(a[1]))}}if(s.full){Promise.all([this.player.getVideoWidth(),this.player.getVideoHeight()]).then(function(e){var t=e[0];var i=e[1];if(s.widthFromDefault){s.width=t;_(this._playerMgr._container).data("videoWidth",s.width)}if(s.heightFromDefault){s.height=i;_(this._playerMgr._container).data("videoHeight",s.height)}this._playerMgr.resize()}.bind(this)).catch(function(e){}.bind(this))}};e.onPlayerReady=function(){_(this._container).animate({opacity:1},400);if(this._callback){this._callback.call(this._playerMgr)}this._isInited=true;this._playerMgr.onStart();if(this._needPlay){this._needPlay=false;this.play()}if(this._needPause){this._needPause=false;this.pause()}if(this._needMute){this._needMute=false;this.mute()}var t=this;this.player.getPaused().then(function(e){if(e){t._playerMgr.handlePlayer("pause",t)}}).catch(function(e){})};e.play=function(){if(!this._isInited){this._needPlay=true}else{this.player.play()}};e.pause=function(){if(!this._isInited){this._needPause=true}else{this.player.pause()}};e.mute=function(){if(!this._options.volume){return}if(!this._isInited){this._needMute=true}else{this.player.setVolume(0);this._playerMgr.handlePlayer("mute",this)}};e.unMute=function(){if(!this._options.volume){return}if(!this._isInited){this._needMute=false}else{this.player.setVolume(this._options.volume===undefined?1:this._options.volume);this._playerMgr.handlePlayer("unMute",this)}};e._onPlay=function(e){this._isPlaying=true;this._playerMgr.handlePlayer("play",this)};e._onPause=function(e){this._isPlaying=false;this._playerMgr.handlePlayer("pause",this)};e._onPlayEnd=function(e){this._isPlaying=false;this._playerMgr.onEnd();this._playerMgr.handlePlayer("end",this)};e.getSrc=function(){return this._src};e.getIsPlaying=function(){return this._isPlaying};e.togglePlay=function(){if(this._isPlaying){this.pause()}else{this.play()}};e.dispose=function(){this.pause();this._isPlaying=false;this._callback=null;this._playerMgr=null;if(this.player){this.player.unload();this.player=null}};var s=function(e,t,i,s,a){this.type="youtube";this._container=e;this._options=i;this.player=null;this._callback=s;this._playerMgr=a;this._isInited=false;this._isPlaying=false;this._needPlay=false;this._needPause=false;this._needMute=false;var n=this._options.full?"width:"+this._options.width+"px;height:"+this._options.height+"px;":"width:100%;height:100%;";var l='<div class="pt-youtube-player" style="'+n+'position:absolute;left:0;top:0;"></div>';_(this._container).append(l);var h=f(t);if(h){if(h["hd"]){this._options["hd"]=true}}var r="v=";var o=1;if(t.match(/(youtube.com)/)){r="v=";o=1}if(t.match(/(youtu.be)/)){r="/";o=3}var u=t.split(r)[o];u=u.replace(/(&)+(.*)/,"");this._src=u;Object.defineProperty(this,"src",{get:this.getSrc})};var n=s.prototype;n.init=function(){var e=this._options;this.player=new YT.Player(_(this._container).children(".pt-youtube-player").get(0),{videoId:this._src,width:e.width,height:e.height,playerVars:{autohide:1,autoplay:0,playsinline:e.playsinline?1:0,disablekb:0,controls:e.controls?1:0,enablejsapi:1,modestbranding:1,showinfo:0,rel:0,wmode:"opaque",hd:e.hd?1:0,background:e.autoplay||e.volume===0?1:0},events:{onReady:this.onPlayerReady.bind(this),onStateChange:this.onPlayerStateChange.bind(this)}});if(e.autoplay){this._needPlay=true}};n.onPlayerStateChange=function(e){switch(e.data){case-1:this._isPlaying=false;this._playerMgr.handlePlayer("pause",this);break;case 0:if(this._options.loop){this.player.playVideo()}else{this._isPlaying=false;this._playerMgr.onEnd();this._playerMgr.handlePlayer("end",this)}break;case 1:this._isPlaying=true;this._playerMgr.handlePlayer("play",this);break;case 2:this._isPlaying=false;this._playerMgr.handlePlayer("pause",this);break;case 3:break;case 4:break;case 5:break}};n.onPlayerReady=function(e){var t=this._options.volume===undefined?1:this._options.volume;if(this._options.autoplay){this._needMute=true}this.player.setVolume(Math.floor(t*100));_(this._container).animate({opacity:1},400);if(this._callback){this._callback.call(this._playerMgr)}this._isInited=true;this._playerMgr.onStart();if(this._options.volume===0){this.player.mute()}if(this._needPlay){this._needPlay=false;this.play()}if(this._needPause){this._needPause=false;this.pause()}if(this._needMute){this._needMute=false;this.mute()}};n.play=function(){if(!this._isInited){this._needPlay=true}else{this.player.playVideo()}};n.pause=function(){if(!this._isInited){this._needPause=true}else{this.player.pauseVideo()}};n.mute=function(){if(!this._options.volume){return}if(!this._isInited){this._needMute=true}else{this.player.mute();this._playerMgr.handlePlayer("mute",this)}};n.unMute=function(){if(!this._options.volume){return}if(!this._isInited){this._needMute=false}else{this.player.unMute();this._playerMgr.handlePlayer("unMute",this)}};n.getSrc=function(){return this._src};n.getIsPlaying=function(){return this._isPlaying};n.togglePlay=function(){if(this._isPlaying){this.pause()}else{this.play()}};n.dispose=function(){this.pause();this._isPlaying=false;this._callback=null;this._playerMgr=null;if(this.player){this.player.destroy();this.player=null}};var l=function(e,t,i,s,a){this.type="mp4";this._streamableInited=false;this._streamable=false;if(t.indexOf(".mp4")<0&&t.indexOf("streamable.com")>-1){this._streamable=true}this._container=e;this._src=t;this._options=i;this._callback=s;this._playerMgr=a;this._loop=i.loop;this.player=null;this._isPlaying=false;this._realPlay=false;this._needPlay=false;this._needPause=false;Object.defineProperty(this,"src",{get:this.getSrc})};var h=l.prototype;h.init=function(){if(this._streamable&&!this._streamableInited){var e=this._src.substring(this._src.indexOf(".com/")+5);var s=this;_.ajax({url:"https://api.streamable.com/videos/"+e,dataType:"json",success:function(e){var t=e.files?e.files.mp4:null;if(t&&t.url){var i=t.url;if(i.indexOf("http:")!==0&&i.indexOf("https:")!==0){i="https:"+i}s._streamableInited=true;s._src=i;s.init()}},error:function(){}});return}var t=this._options;var i=_(this._container);var a=t.volume!==undefined?t.volume:1;var n=t.autoplay?"autoplay":"";var l=t.controls?"controls":"";var h=t.playsinline?"playsinline":"";var r=t.poster?'poster="'+t.poster+'"':"";var o=t.width!==undefined?'width="'+t.width+'"':"";var u=t.height!==undefined?'height="'+t.height+'"':"";var d=t.loop?"loop":"";var p=a===0||n?"muted":"";var y=[l,o,u,d,p,n,h,r].filter(function(e){return!!e});var f='<video class="pt-mp4-video" src="'+this._src+'" '+y.join(" ")+' preload="auto"></video>';i.append(f);this.player=i.children("video").get(0);if(t.needLoad){this.player.load()}if(n){this.player.volume=0;this._playerMgr.handlePlayer("mute",this);this._needPlay=true}else{this.player.volume=a}this.player.onplay=this._onPlay.bind(this);this.player.onpause=this._onPause.bind(this);this.player.onended=this._onPlayEnd.bind(this);if(t.full&&(t.widthFromDefault||t.heightFromDefault)){this.player.onloadeddata=function(){if(t.widthFromDefault){this.player.width=t.width=this.player.videoWidth;_(this._playerMgr._container).data("videoWidth",t.width)}if(t.heightFromDefault){this.player.height=t.height=this.player.videoHeight;_(this._playerMgr._container).data("videoHeight",t.height)}this._onStart()}.bind(this)}else{this._onStart()}};h._onStart=function(){_(this._container).animate({opacity:1},400);if(this._callback){this._callback.call(this._playerMgr)}this._playerMgr.onStart();if(this._needPlay){this.play()}};h.play=function(){if(this.player){this._realPlay=false;this._needPause=false;var e=this.player.play();if(e&&typeof e.then==="function"){e.then(function(){this._realPlay=true;if(this._needPause){this.pause()}}.bind(this))}else{this._realPlay=true}}};h.pause=function(){if(this.player){if(this._realPlay){this.player.pause()}else{this._needPause=true}}this._realPlay=false};h.mute=function(){if(!this._options.volume){return}if(this.player){this.player.muted=true}this._playerMgr.handlePlayer("mute",this)};h.unMute=function(){if(!this._options.volume){return}if(this.player){this.player.muted=false;if(this.player.volume===0){this.player.volume=this._options.volume}}this._playerMgr.handlePlayer("unMute",this)};h._onPlay=function(e){this._isPlaying=true;this._playerMgr.handlePlayer("play",this)};h._onPause=function(e){this._isPlaying=false;this._playerMgr.handlePlayer("pause",this)};h._onPlayEnd=function(e){this._isPlaying=false;if(!this._loop){this._playerMgr.onEnd()}this._playerMgr.handlePlayer("end",this)};h.getSrc=function(){return this._src};h.getIsPlaying=function(){return this._isPlaying};h.togglePlay=function(){if(this._isPlaying){this.pause()}else{this.play()}};h.dispose=function(){this.pause();this._isPlaying=false;if(this.player){this.player.onplay=null;this.player.onpause=null;this.player.onended=null;this.player=null}this._callback=null;this._playerMgr=null};var r=function(e,t){this._element=e;e.style.overflow="hidden";e.classList.add("pt-mediaplayer-root");e.__ptMediaPlayer=this;this._disposed=false;var i=_(e);this.$element=i;i.data("__ptMediaPlayer",this);i.one(y,function(){this.dispose()}.bind(this));var s={};this._options=s;for(var a in t){if(t.hasOwnProperty(a)){s[a]=t[a]}}if(s.full===undefined){s.full=true}if(s.mask===undefined){s.mask=true}if(s.playsinline===undefined){s.playsinline=true}this._src=s.src;this._type=s.type;this._fullshow=s.full;this._fullAlign=s.fullAlign||"";this._onStartHandler=s.onStart||null;this._onEndHandler=s.onEnd||null;this._onPlayStatusHandler=s.onPlayStatus||null;this._resizeDelay=s.resizeDelay||0;if(i.data("full")!==undefined){this._fullshow=i.data("full")}if(i.data("full-align")!==undefined){this._fullAlign=i.data("full-align")}this._isRTL=(_("body").css("direction")||"").toLowerCase()=="rtl";this.$volumeBtn=s.volumeBtn?i.find(s.volumeBtn):null;if(this.$volumeBtn&&this.$volumeBtn.length===0){this.$volumeBtn=i.siblings(s.volumeBtn)}this._hasVolumeBtn=this.$volumeBtn&&this.$volumeBtn.length>0;this._playingClass=s.playingClass||"pt-media-playing";var n='<div class="pt-video-container" style="width:100%;height:100%;position:relative;z-index:999;"></div>';this._container=_(n).get(0);this.$container=_(this._container);e.appendChild(this._container);var l=this._fullshow?"":"width:100%;height:100%;";var h='<div class="pt-video-holder '+(this._fullshow?"full":"not-full")+'" style="position:relative;opacity:0;'+l+'"></div>';this._holder=_(h).get(0);this.$holder=_(this._holder);this._container.appendChild(this._holder);if(s.mask){var r='<div class="pt-video-mask" style="width:100%;height:100%;z-index:1;overflow:hidden;position:absolute;top:0;left:0;"></div>';this.$container.append(r)}this._resizeHandler=this._onResize.bind(this);if(i.data("type")!==undefined){this._type=i.data("type")}if(i.data("video-src")!==undefined){this._src=i.data("video-src")}else if(i.data("src")!==undefined){this._src=i.data("src")}if(i.data("volume")!==undefined){s.volume=i.data("volume")}if(i.data("loop")!==undefined){s.loop=i.data("loop")}if(i.data("autoplay")!==undefined){s.autoplay=i.data("autoplay")}if(i.data("playsinline")!==undefined){s.playsinline=i.data("playsinline")}if(i.data("poster")!==undefined){s.poster=i.data("poster")}if(i.data("controls")!==undefined){s.controls=i.data("controls")}if(i.data("ignore-mobile")!==undefined){s.ignoreMobile=i.data("ignore-mobile")}if(s.controls){this.$holder.css("z-index",2)}else{this.$holder.css("z-index",0)}if(s.volume===0){this._hasVolumeBtn=false;if(this.$volumeBtn&&this.$volumeBtn.length>0){this.$volumeBtn.remove()}}if(this._hasVolumeBtn){this.$volumeBtn.on("click",this._onToggleVolume.bind(this))}var o=f(this._src);if(o){o.width=o.width||o.w||o.mw;o.height=o.height||o.h||o.mh;if(o.width!==undefined){s.width=o.width}if(o.height!==undefined){s.height=o.height}}if(s.width===undefined){s.width=1280;s.widthFromDefault=true}if(s.height===undefined){s.height=720;s.heightFromDefault=true}s.width=parseInt(s.width);s.height=parseInt(s.height);this.$container.data("videoWidth",s.width);this.$container.data("videoHeight",s.height);this.player=null;this._vimeoJSId="__pt_vimeo_api";this._youtubeJSId="__pt_youtube_api";this._allowCalls=["dispose","play","pause","mute","unMute","togglePlay"];var u=!!p.ActiveXObject||"ActiveXObject"in p;this._isMobile=/Mobi|Tablet|iPad|iPhone|Android/i.test(navigator.userAgent)&&!u;if(this._isMobile){s.mask=false}var d=s.ignoreMobile||p.mpIgnoreMobile;if(d){i.addClass("pt-ignore-mobile")}if(this._isMobile&&d){}else if(this._src){this.init()}};var o=r.prototype;o.init=function(){var e=this._options;switch(this._type){case"mp4":case"1":case 1:this._type="mp4";this.player=new l(this._holder,this._src,e,this.resize,this);this.player.init();break;case"youtube":case"2":case 2:this._type="youtube";this.player=new s(this._holder,this._src,e,this.resize,this);if(a.youtubeApiReady){this.player.init()}else{if(!a.youtubeWaitingPlayers){a.youtubeWaitingPlayers=[]}a.youtubeWaitingPlayers.push(this.player);if(!document.getElementById(this._youtubeJSId)){this._insertJS("https://www.youtube.com/iframe_api",null,this._youtubeJSId)}}break;case"vimeo":case"3":case 3:this._type="vimeo";this.player=new i(this._holder,this._src,e,this.resize,this);if(a.vimeoApiReady){this.player.init()}else{if(!a.vimeoWaitingPlayers){a.vimeoWaitingPlayers=[]}a.vimeoWaitingPlayers.push(this.player);if(!document.getElementById(this._vimeoJSId)){this._insertJS("https://player.vimeo.com/api/player.js",t,this._vimeoJSId)}}break;default:this._type="mp4";this.player=new l(this._holder,this._src,e,this.resize,this);break}if(this._fullshow){_(p).on("resize",this._resizeHandler)}_("body").trigger("pt-mediaplayer-inited",[this._element,this._type,this._options])};o.onStart=function(){if(this._onStartHandler){this._onStartHandler.call(this._element,this._element,this.player)}};o.onEnd=function(){if(this._onEndHandler){this._onEndHandler.call(this._element,this._element,this.player)}};o.handlePlayer=function(e,t){var i=a.playingPlayers;switch(e){case"play":if(i.indexOf(t)===-1){i.push(t);if(a.onStatusChanged){a.onStatusChanged(true,e)}}_("body").addClass(this._playingClass);this.$element.addClass("pt-playing").trigger("on-status",e);if(this._onPlayStatusHandler){this._onPlayStatusHandler.call(this._element,e,this._element)}break;case"pause":case"end":var s=i.indexOf(t);if(s>-1){i.splice(s,1);if(a.onStatusChanged){a.onStatusChanged(i.length>0,e)}}if(i.length<=0){_("body").removeClass(this._playingClass)}this.$element.removeClass("pt-playing").trigger("on-status",e);if(this._onPlayStatusHandler){this._onPlayStatusHandler.call(this._element,e,this._element)}break;case"mute":_(this._element).addClass("pt-mediaplayer-muted").trigger("on-status","muted");break;case"unMute":_(this._element).removeClass("pt-mediaplayer-muted").trigger("on-status","unmuted");break}};o._onToggleVolume=function(e){if(_(this._element).hasClass("pt-mediaplayer-muted")){this.unMute()}else{this.mute()}};o._onResize=function(e){var t=this;setTimeout(function(){t.resize(e)},t._resizeDelay)};o.resize=function(e){if(this._fullshow){var t=this.$container;var i=this.$holder;var s=t.data("videoWidth");var a=t.data("videoHeight");var n=this._container.clientWidth;var l=this._container.clientHeight;var h=Math.max(n/(s-5),l/(a-5));var r,o,u,d,p;if(this._type=="mp4"){u=s*h;d=a*h;p=this._getAlignmentPos(this._fullAlign,n,l,u,d);r=p.x;o=p.y;if(this._isRTL){i.css({right:r+"px",top:o+"px",width:u+2+"px",height:d+2+"px"})}else{i.css({left:r+"px",top:o+"px",width:u+2+"px",height:d+2+"px"})}}else{var y=i.find("iframe");u=s*h+2;d=a*h+2;p=this._getAlignmentPos(this._fullAlign,n,l,u,d);r=p.x;o=p.y;y.css({width:u+"px",height:d+"px"});if(this._isRTL){i.css({right:r+"px",top:o+"px"})}else{i.css({left:r+"px",top:o+"px"})}}}};o._getAlignmentPos=function(e,t,i,s,a){var n,l;switch(e){case"left-top":n=0;l=0;break;case"center-top":case"top":n=(t-s>>1)-1;l=0;break;case"right-top":n=t-s;l=0;break;case"left-center":n=0;l=(i-a>>1)-1;break;case"center":n=(t-s>>1)-1;l=(i-a>>1)-1;break;case"right-center":n=t-s;l=(i-a>>1)-1;break;case"left-bottom":n=0;l=i-a;break;case"center-bottom":case"bottom":n=(t-s>>1)-1;l=i-a;break;case"right-bottom":n=t-s;l=i-a;break;default:n=(t-s>>1)-1;l=(i-a>>1)-1;break}return{x:n,y:l}};o._insertJS=function(e,t,i){var s=document.createElement("script");s.type="text/javascript";s.async=true;if(t){if(s.readyState){s.onreadystatechange=function(){if(s.readyState==="loaded"||s.readyState==="complete"){s.onreadystatechange=null;t()}}}else{s.onload=function(){t()}}}s.src=e;if(i){s.id=i}var a=document.getElementsByTagName("script")[0];if(a){a.parentNode.insertBefore(s,a)}else{var n=document.getElementsByTagName("head")[0];n.appendChild(s)}};o.play=function(){this.player.play()};o.pause=function(){this.player.pause()};o.mute=function(){this.player.mute()};o.unMute=function(){this.player.unMute()};o.togglePlay=function(){this.player.togglePlay()};o.execute=function(e,t){if(this._disposed){return}if(!this.player||!e||this._allowCalls.indexOf(e)<0){return}if(t&&!Array.isArray(t)){t=[t]}var i=this[e];if(i&&typeof i=="function"){i.apply(this,t||[])}};o.dispose=function(e){if(this._disposed){return}this._disposed=true;if(this.player){var t;if(a.vimeoWaitingPlayers){t=a.vimeoWaitingPlayers.indexOf(this.player);if(t>-1){a.vimeoWaitingPlayers.splice(t,1)}}if(a.vimeoWaitingPlayers){t=a.vimeoWaitingPlayers.indexOf(this.player);if(t>-1){a.vimeoWaitingPlayers.splice(t,1)}}this.player.dispose();this.player=null}if(this.$volumeBtn&&this.$volumeBtn.length>0){this.$volumeBtn.off("click")}if(e){this.$container.remove()}if(this._resizeHandler){_(p).off("resize",this._resizeHandler);this._resizeHandler=null}if(this._element){_(this._element).data("__ptMediaPlayer",null);this._element.__ptMediaPlayer=null;this._element=null}this._onPlayStatusHandler=null};_.fn.extend({ptMediaPlayer:function(t){this.each(function(){var e=_(this).data("__ptMediaPlayer");e&&e.dispose();new r(this,t)});return this},ptMediaPlayerCall:function(t,i){this.each(function(){var e=_(this).data("__ptMediaPlayer");e&&e.execute(t,i)});return this}})}(jQuery,window);
!function(f,c){"use strict";var p="PTRemoveElement";f.cleanData=function(n){var t="__bind"+p;if(window[t]){return n}window[t]=true;return function(t){var i,e,s;for(s=0;(e=t[s])!=null;s++){try{i=f._data(e,"events");if(i&&i[p]){f(e).triggerHandler(p)}}catch(t){}}n(t)}}(f.cleanData);var e=function(t,i){this._element=t;t.__ptSwipe=this;var e=f(this._element);e.data("__ptSwipe",this);this.$element=e;e.one(p,function(){this.dispose()}.bind(this));i=i||{};this._options=i;this._ease=i.ease||"cubicOut";this._dragEase=i.dragEase||"quartOut";this._speed=i.speed===undefined?350:i.speed;this._tweenOutOffset=i.tweenOutOffset||0;this._useDrag=i.useDrag===undefined?true:i.useDrag;this._autoHeight=i.autoHeight||false;var s=e.data("autoplay");if(s===undefined){this._autoplay=i.autoplay===undefined?true:i.autoplay}else{this._autoplay=s?true:false}var n=e.data("duration");if(n===undefined){this._duration=i.duration||5e3}else{this._duration=n||5e3}this._isPaused=false;this._prevMovingClass="prev-moving";this._nextMovingClass="next-moving";this._onSwipeBefore=i.onSwipeBefore||null;this._onSwipeAfter=i.onSwipeAfter||null;createjs.Ticker.timingMode=createjs.Ticker.RAF;this._isIE9=navigator.userAgent.indexOf("MSIE 9.0")>-1;var r=null;if(i.wrapTarget&&typeof i.wrapTarget==="object"){r=f(i.wrapTarget)}else{r=e.find(i.wrapTarget||".wrap")}this.$content=r;var a=null;if(i.itemTarget&&typeof i.itemTarget==="object"){a=f(i.itemTarget)}else if(i.itemTarget){a=this.$content.find(i.itemTarget)}this._itemClass=typeof i.itemTarget==="string"?i.itemTarget:"";if(this._itemClass.indexOf(".")===0){this._itemClass=this._itemClass.substring(1)}this.$items=a;a.css({position:"absolute",top:"0"});a.each(function(t,i){f(i).css("z-index",t).attr("data-index",t)});var h=e.data("prevLabel")||"";var o=e.data("nextLabel")||"";var _=a.length;var l='<div class="pt-swipe-arrow">';l+='<span class="pt-swipe-prev">'+h+'</span><span class="pt-swipe-next">'+o+"</span></div>";l+='<div class="pt-swipe-dots"><ul>';for(var u=0;u<_;u++){l+="<li>"+(u+1)+"</li>"}l+="</ul>";e.append(l);e.find(".pt-swipe-prev").on("click",this._onPrev.bind(this));e.find(".pt-swipe-next").on("click",this._onNext.bind(this));e.addClass("pt-swipe-root");r.addClass("pt-swipe-wrap");this.$dotList=e.find(".pt-swipe-dots>ul>li");this.$dotList.on("click",this._onClickDot.bind(this));this._disposed=false;this._isTweening=false;this._isDragging=false;this._dargScale=.3;this._dragDistance=50;this._timerId=null;this._allowCalls=["setAutoplay","useDrag","prev","next","pause","resume","dispose"];this._currentIndex=0;this._totalCount=_;this._onResizeHandler=this._onResize.bind(this);f(c).on("resize",this._onResizeHandler);var d=!!window.ActiveXObject||"ActiveXObject"in window;this._isDevice=/Mobi|Tablet|iPad|iPhone|Android/i.test(navigator.userAgent)&&!d;this._clickEvt=this._isDevice?"touchend.pt-swipe mouseup.pt-swipe":"click.pt-swipe";this._downEvt="touchstart.pt-swipe mousedown.pt-swipe";this._moveEvt="touchmove.pt-swipe mousemove.pt-swipe";this._upEvt="touchend.pt-swipe mouseup.pt-swipe";this._onStartDragHandler=this._onStartDrag.bind(this);this._onDraggingHandler=this._onDragging.bind(this);this._onDragEndHandler=this._onDragEnd.bind(this);if(this._useDrag){a.on(this._downEvt,this._onStartDragHandler)}this._onResize();if(this._totalCount>0){this._open(0)}if(i.onInit&&typeof i.onInit==="function"){i.onInit.apply(this,null)}if(this._autoHeight){var g=a.eq(this._currentIndex);if(g.length>0){r.height(g.height())}}};var t=e.prototype;t._onResize=function(t){this._width=this.$content.width()};t._onStartDrag=function(t){if(this._isTweening||this._isDragging){return}this._isDragging=true;if(this._timerId!==null){clearTimeout(this._timerId)}var i=t.originalEvent;var e=i.currentTarget;this._dragTarget=e;f(c).off(this._moveEvt,this._onDraggingHandler).on(this._moveEvt,this._onDraggingHandler);f(c).off(this._upEvt,this._onDragEndHandler).on(this._upEvt,this._onDragEndHandler);this._oldMouseX=this._getMouseX(i);this._currentX=0;this._startDragX=this._currentX};t._onDragging=function(t){var i=t.originalEvent;var e=this._getMouseX(i);this._currentX+=e-this._oldMouseX;this._oldMouseX=e;this._renderX(f(this._dragTarget),this._currentX*this._dargScale);var s,n;if(this._currentX>0){s=this._currentIndex-1;if(s<0){s=this._totalCount-1}n=-this._width+this._currentX*this._dargScale}else if(this._currentX<0){s=this._currentIndex+1;if(s>this._totalCount-1){s=0}n=this._width+this._currentX*this._dargScale}this.$items.removeClass("leaving");var r=this.$items.get(s);f(r).addClass("leaving");this._renderX(f(r),n)};t._onDragEnd=function(t){f(c).off(this._moveEvt,this._onDraggingHandler);f(c).off(this._upEvt,this._onDragEndHandler);if(this._dragTarget){this._dragTarget.__tweenX=this._currentX*this._dargScale}var i=this._currentX-this._startDragX;if(i<-this._dragDistance){this._onNext();this._isDragging=false}else if(i>this._dragDistance){this._onPrev();this._isDragging=false}else{this._dragBack()}this._dragTarget=null};t._getMouseX=function(t){var i;if(this._isDevice){var e=t.changedTouches,s;s=e[0];if(s){i=s.pageX}else{i=t.pageX!==undefined?t.pageX:t.clientX}}else{i=t.pageX!==undefined?t.pageX:t.clientX}return i};t._dragBack=function(){createjs.Tween.get(this._dragTarget,{override:true,onChange:this._onUpdate.bind(this)}).to({__tweenX:0},300,createjs.Ease.sineOut).call(this._onDragBack.bind(this))};t._onUpdate=function(t){var i=t.target;var e=i.target;this._renderX(f(e),e.__tweenX)};t._onDragBack=function(){this._isDragging=false;this._checkAutoplay()};t._open=function(t,i){if(this._isTweening){return}this.$items.removeClass("current leaving");this.$dotList.removeClass("selected");f(this.$dotList.get(t)).addClass("selected");var e=this.$items.get(t);var s=f(e);s.addClass("current");if(t===this._currentIndex){this._bringToTop(e);this._renderX(s,0);this._checkAutoplay();return}var n=this._currentIndex;this._currentIndex=t;var r=this.$items.get(n);f(r).addClass("leaving");if(i===undefined){i=t>n?1:-1}this._isTweening=true;var a=i<0?this._prevMovingClass:this._nextMovingClass;this.$element.removeClass(this._prevMovingClass).removeClass(this._nextMovingClass).addClass(a);if(this._onSwipeBefore){this._onSwipeBefore.call(this,null)}if(this._autoHeight){this.$content.height(s.height())}this._tweenOut(r,i);this._tweenIn(e,i)};t._tweenIn=function(t,i){var e=i>0?this._width:-this._width;if(this._isDragging){e=t.__renderingX||0}this._renderX(f(t),e);t.__tweenValue=e;this._bringToTop(t);this._tweenX(t,0,true)};t._tweenOut=function(t,i){var e=i>0?-this._width:this._width;var s=t.__renderingX||0;t.__tweenValue=this._isDragging?s:0;this._bringToTop(t);if(i>0){e+=this._tweenOutOffset*this._width}else{e-=this._tweenOutOffset*this._width}this._tweenX(t,this._isDragging?e+s:e,false)};t._tweenX=function(t,i,e){var s=createjs.Tween.get(t,{override:true,onChange:this._onAniUpdate.bind(this)});s.to({__tweenValue:i},this._speed,this._isDragging?createjs.Ease[this._dragEase]||createjs.Ease.quartOut:createjs.Ease[this._ease]||createjs.Ease.cubicOut);if(e){s.call(this._onAniComplete.bind(this))}};t._onAniUpdate=function(t){var i=t.target;var e=i.target;this._renderX(f(e),e.__tweenValue)};t._onAniComplete=function(){this._isTweening=false;this.$element.removeClass(this._prevMovingClass).removeClass(this._nextMovingClass);this.$items.removeClass("leaving");if(this._onSwipeAfter){this._onSwipeAfter.call(this,null)}this._checkAutoplay()};t._renderX=function(t,i){if(this._isDragging&&t.get(0)){t.get(0).__renderingX=i}if(this._isIE9){t.css("-ms-transform","translateX("+i+"px)")}else{t.css("transform","translate3d("+i+"px,0,0)")}};t._bringToTop=function(t){var i=[];this.$items.each(function(){if(this!==t){i.push(this)}});i.forEach(function(t,i){f(t).css("z-index",i)});f(t).css("z-index",i.length)};t._checkAutoplay=function(){if(!this._autoplay){return}if(this._isPaused){return}if(this._timerId!==null){clearTimeout(this._timerId)}this._timerId=setTimeout(function(){this._timerId=null;this._onNext()}.bind(this),this._duration)};t._onPrev=function(t){if(this._isTweening){return}var i=this._currentIndex-1;if(i<0){i=this._totalCount-1}this._open(i,-1)};t._onNext=function(t){if(this._isTweening){return}var i=this._currentIndex+1;if(i>this._totalCount-1){i=0}this._open(i,1)};t._onClickDot=function(t){if(f(t.currentTarget).hasClass("selected")){return}var i=f(t.currentTarget).index();this._open(i)};t.prev=function(){this._onPrev()};t.next=function(){this._onNext()};t.setAutoplay=function(t){this._autoplay=t;if(t){if(this._timerId===null){this._checkAutoplay()}}else{if(this._timerId!==null){clearTimeout(this._timerId);this._timerId=null}}};t.useDrag=function(t){var i=t?true:false;if(this._useDrag===i){return}this._useDrag=i;var e=this.$items;if(i){e.on(this._downEvt,this._onStartDragHandler)}else{e.off(this._downEvt,this._onStartDragHandler)}};t.pause=function(){this._isPaused=true;if(this._timerId!==null){clearTimeout(this._timerId);this._timerId=null}};t.resume=function(){this._isPaused=false;this._checkAutoplay()};t.execute=function(t,i){if(!t||this._allowCalls.indexOf(t)<0){return}if(!Array.isArray(i)){i=[i]}var e=this[t];if(e&&typeof e==="function"){e.apply(this,i)}};t.dispose=function(){if(this._disposed)return;this._disposed=true;this._onSwipeBefore=null;this._onSwipeAfter=null;f(c).off("resize",this._onResizeHandler);this._onResizeHandler=null;this.$content.off(this._upEvt).off(this._moveEvt).off(this._downEvt);if(this._element){var t=this.$element;t.find(".pt-swipe-prev").off("click");t.find(".pt-swipe-next").off("click");this.$dotList.off("click");t.data("__ptSwipe",null);this._element.__ptSwipe=null;this._element=null}if(this._timerId!==null){clearTimeout(this._timerId)}};f.fn.extend({ptSwipe:function(i){this.each(function(){var t=f(this).data("__ptSwipe");t&&t.dispose();new e(this,i)});return this},ptSwipeCall:function(i,e){this.each(function(){var t=f(this).data("__ptSwipe");t&&t.execute(i,e)});return this}})}(jQuery,window);
!function(a,o){"use strict";var s=[];var r="PTRemoveElement";a.cleanData=function(n){var e="__bind"+r;if(window[e]){return n}window[e]=true;return function(e){var t,i,s;for(s=0;(i=e[s])!=null;s++){try{t=a._data(i,"events");if(t&&t[r]){a(i).triggerHandler(r)}}catch(e){}}n(e)}}(a.cleanData);var n=function(e,t){e.__ptElasticHover=this;s.push(this);this._element=e;var n=a(e);this.$element=n;createjs.Ticker.timingMode=createjs.Ticker.RAF;var i=function(e,t,i){var s=i;if(n.data(e)!==undefined){s=n.data(e)}else if(t[e]!==undefined){s=t[e]}return s};this._direct=i("direct",t,"xy");this._tweenSpeed=i("tweenSpeed",t,500);this._backSpeed=i("backSpeed",t,800);this._tweenEase=i("tweenEase",t,"cubicOut");this._backEase=i("backEase",t,"cubicOut");this._scale=i("scale",t,1);this._scaleSpeed=i("scaleSpeed",t,500);this._zoomInEase=i("zoomInEase",t,"cubicOut");this._zoomOutEase=i("zoomOutEase",t,"cubicOut");n.one(r,function(){this.dispose()}.bind(this));if(t.target){this.$target=n.find(t.target)}else{this.$target=n}this.$target.addClass(t.appendTargetClass||"pt-ehover-target");this._disposed=false;this._isMoving=false;this._allowCalls=["dispose"];this._offset=t.offset||10;this._rect={x:0,y:0,w:0,h:0};this._aniValueX=0;this._aniValueY=0;this._scaleObj={scale:1};n.on("mouseenter.pt-elastic-hover",this._onOver.bind(this));n.on("mouseleave.pt-elastic-hover",this._onOut.bind(this));this._onMovingHandler=this._onMoving.bind(this)};var e=n.prototype;e._onOver=function(){setTimeout(function(){a(o).on("mousemove",this._onMovingHandler);var e=this.$element.width(),t=this.$element.outerHeight();var i=this.$element.offset();var s=i.left,n=i.top;this._rect.x=s-this._offset;this._rect.y=n-this._offset;this._rect.w=e+this._offset*2;this._rect.h=t+this._offset*2;this._zoom(this._scale,this._zoomInEase);this._isMoving=true}.bind(this),100);var e,t,i=s.length;for(e=0;e<i;e++){t=s[e];if(t&&t!==this){t.stop()}}};e._onOut=function(){};e._onMoving=function(e){var t=e.pageX,i=e.pageY;var s=(t-this._rect.x)/this._rect.w;var n=(i-this._rect.y)/this._rect.h;var a=s*2*this._offset-this._offset;var o=n*2*this._offset-this._offset;if(a<-this._offset||a>this._offset||o<-this._offset||o>this._offset){this.stop()}else{if(this._direct==="x"){o=0}else if(this._direct==="y"){a=0}this._render(a,o,this._tweenSpeed,this._tweenEase)}};e._zoom=function(e,t){if(this._scale!==1){createjs.Tween.get(this._scaleObj,{override:true,onChange:this._onAniUpdate.bind(this)}).to({scale:e},this._scaleSpeed,createjs.Ease[t]||createjs.Ease.cubicOut)}};e.stop=function(){if(!this._isMoving){return}this._isMoving=false;this._render(0,0,this._backSpeed,this._backEase);this._zoom(1,this._zoomOutEase);a(o).off("mousemove",this._onMovingHandler)};e._render=function(e,t,i,s){createjs.Tween.get(this,{override:true,onChange:this._onAniUpdate.bind(this)}).to({_aniValueX:e,_aniValueY:t},i,createjs.Ease[s]||createjs.Ease.cubicOut)};e._onAniUpdate=function(e){this.$target.css("transform","translate3d("+this._aniValueX+"px,"+this._aniValueY+"px, 0) scale("+this._scaleObj.scale+")")};e.execute=function(e,t){if(!e||this._allowCalls.indexOf(e)<0){return}if(!Array.isArray(t)){t=[t]}var i=this[e];if(i&&typeof i==="function"){return i.apply(this,t)}};e.dispose=function(){if(this._disposed){return}var e=s.indexOf(this);if(e>-1){s.splice(e,1)}this._disposed=true;createjs.Tween.removeTweens(this);a(o).off("mousemove",this._onMovingHandler);this.$element.off("mouseenter.pt-elastic-hover mouseleave.pt-elastic-hover");this._onMovingHandler=null;this._element.__ptElasticHover=null};a.fn.extend({ptElasticHover:function(t){var e=!!window.ActiveXObject||"ActiveXObject"in window;var i=/Mobi|Tablet|iPad|iPhone|Android/i.test(navigator.userAgent)&&!e;if(i||o.PT_REMOVE_ELASTIC_HOVER){return this}if(t&&t.onlyUseChrome){var s=/chrome|crios|crmo/i.test(navigator.userAgent);if(!s){return this}}this.each(function(){var e=this.__ptElasticHover;e&&e.dispose();new n(this,t||{})});return this},ptElasticHoverCall:function(i,s){var n=[];this.each(function(){var e=this.__ptElasticHover;var t=e&&e.execute(i,s);n.push({target:this,value:t})});return n}})}(jQuery,window);
!function(n,r){"use strict";var o=[];var i=function(t,e){o.push(this);this._element=t;this._element.__ptBar=this;var i=n(this._element);this.$element=i;this.$content=i.find(e.contentTarget||".content");this._content=this.$content.get(0);var s=n('<div class="pt-bar-group">'+'<div class="pt-bar"></div>'+"</div>");i.append(s);this.$barTarget=s.find(".pt-bar");this.$barTarget.on("mousedown",this._onStartDrag.bind(this));this._oldMouseY=0;this._currentY=0;this._containerHeight=0;this._scrollRectHeight=0;this._barHeight=0;this._contentHeight=0;this._offsetHeight=0;this._isSetMaxHeight=this.$element.css("max-height")!=="none";this._disposed=false;this._isDragging=false;this._allowCalls=["resize","dispose"];this._onResizeHandler=this._onResize.bind(this);this._onDraggingHandler=this._onDragging.bind(this);this._onStopDragHandler=this._onStopDrag.bind(this);n(r).on("resize",this._onResizeHandler);this.$content.on("scroll",this._onScroll.bind(this));this._onResize()};var t=i.prototype;t._onResize=function(t){if(this._isSetMaxHeight){this.$element.css("height","auto");this.$element.height(this.$element.outerHeight())}this._barHeight=this.$barTarget.height();this._containerHeight=this.$element.height();this._scrollRectHeight=this._containerHeight-this._barHeight;this._contentHeight=this._content.scrollHeight;this._offsetHeight=this._contentHeight-this._containerHeight;if(this._offsetHeight<=1){this.$element.addClass("no-roll")}else{this.$element.removeClass("no-roll")}};t._onStartDrag=function(t){if(this._contentHeight<=this._containerHeight){return}this._isDragging=true;t.preventDefault();t.stopPropagation();var e=n(r);e.off("mousemove",this._onDraggingHandler).on("mousemove",this._onDraggingHandler);e.off("mouseup",this._onStopDragHandler).on("mouseup",this._onStopDragHandler);this._oldMouseY=t.pageY===undefined?t.clientY:t.pageY;var i=this._content.scrollTop;var s=i/this._offsetHeight;this._currentY=this._scrollRectHeight*s};t._onDragging=function(t){if(this._contentHeight<=this._containerHeight){return}t.preventDefault();t.stopPropagation();var e=t.pageY===undefined?t.clientY:t.pageY;this._currentY+=e-this._oldMouseY;this._oldMouseY=e;if(this._currentY<0){this._currentY=0}else if(this._currentY>this._scrollRectHeight){this._currentY=this._scrollRectHeight}var i=this._currentY/this._scrollRectHeight;this.$barTarget.css("transform","translate3d(0, "+this._currentY+"px, 0)");this._content.scrollTop=i*this._offsetHeight};t._onStopDrag=function(t){t.preventDefault();t.stopPropagation();this._isDragging=false;var e=n(r);e.off("mousemove",this._onDraggingHandler);e.off("mouseup",this._onStopDragHandler)};t._onScroll=function(t){if(this._isDragging)return;if(this._contentHeight<=this._containerHeight){return}var e=this._content.scrollTop;var i=e/this._offsetHeight;var s=this._scrollRectHeight*i;this.$barTarget.css("transform","translate3d(0, "+s+"px, 0)")};t.resize=function(){if(this._disposed)return;this._onResize()};t.execute=function(t,e){if(!t||this._allowCalls.indexOf(t)<0){return null}if(!Array.isArray(e)){e=[e]}var i=this[t];if(i&&typeof i==="function"){return i.apply(this,e)}return null};t.dispose=function(){if(this._disposed)return;this._disposed=true;var t=n(r);if(this._onResizeHandler){t.off("resize",this._onResizeHandler);this._onResizeHandler=null}if(this._element){this.$element.off("mouseenter mouseleave mousemove");this._element.__ptBar=null;this._element=null}this.$barTarget.off("mousedown",this._onStartDragHandler);t.off("mousemove",this._onDraggingHandler);t.off("mouseup",this._onStopDragHandler);if(this.$content){this.$content.off("scroll")}this._onStartDragHandler=null;this._onDraggingHandler=null;this._onStopDragHandler=null;var e=o.indexOf(this);if(e>-1){o.splice(e,1)}};n.fn.extend({ptBar:function(e){this.each(function(){var t=this.__ptBar;t&&t.dispose();new i(this,e)});return this},ptBarCall:function(i,s){var n=[];this.each(function(){var t=this.__ptBar;var e=t&&t.execute(i,s);n.push({target:this,value:e})});return n}});r.addEventListener("load",function(t){o.forEach(function(t){t&&t.resize()})})}(jQuery,window);
!function(v,p){"use strict";var w="PTRemoveElement";v.cleanData=function(l){var e="__bind"+w;if(window[e]){return l}window[e]=true;return function(e){var t,s,i;for(i=0;(s=e[i])!=null;i++){try{t=v._data(s,"events");if(t&&t[w]){v(s).triggerHandler(w)}}catch(e){}}l(e)}}(v.cleanData);var S=function(){var e=false;try{var t=Object.defineProperty({},"passive",{get:function(){e=true}});p.addEventListener("testPassive",null,t);p.removeEventListener("testPassive",null,t)}catch(e){}return e?{passive:false}:false}();var e=!!window.ActiveXObject||"ActiveXObject"in window;var b=(navigator.maxTouchPoints||"ontouchstart"in document.documentElement)&&!e;var T=/Mobi|Tablet|iPad|iPhone|Android/i.test(navigator.userAgent)&&!e;var r=function(e,t){var s,i;if(b&&(p.TouchEvent&&e instanceof p.TouchEvent)){var l=e.changedTouches,r;r=l?l[0]:null;if(r){s=r.pageX;i=r.pageY}else{s=e.pageX!==undefined?e.pageX:e.clientX;i=e.pageY!==undefined?e.pageY:e.clientY}}else{s=e.pageX!==undefined?e.pageX:e.clientX;i=e.pageY!==undefined?e.pageY:e.clientY}return t==="x"?s:t==="y"?i:{x:s,y:i}};var f=function(e,t){t=Math.round(t*100)/100;e.css("left",t)};var E=function(e,t){var s=t;if(typeof p.ptHScrollerAddFilter==="function"){s=p.ptHScrollerAddFilter(e,t)}return s};var s=function(e,t){this._element=e;this._element.__ptHScroller=this;var i=this;this.options=t;var l=v(this._element);l.data("__ptHScroller",this);this.$element=l;l.addClass("pt-hscroller-element");l.one(w,function(){this.dispose()}.bind(this));var s=null;if(t.contentTarget&&typeof t.contentTarget==="object"){s=v(t.contentTarget)}else{s=this.$element.find(t.contentTarget||".list-content")}this.$content=s;this._content=s.get(0);this._scrollLeft=0;if(!this._content){if(this._element){this._element.__ptHScroller=null;this._element=null;this.$element.data("__ptHScroller",null);this.$element=null}this.$content=null;this._disposed=true;return this}if(s.css("position")==="static"){s.css("position","relative")}s.addClass("pt-hs-content");var r=null;if(t.wrapTarget&&typeof t.wrapTarget==="object"){r=v(t.wrapTarget)}else{r=this.$element.find(t.wrapTarget||".wrap")}this.$wrap=r;this._wrap=r.get(0);var n=null;if(t.viewportTarget&&typeof t.viewportTarget==="object"){n=v(t.viewportTarget)}else if(t.viewportTarget){n=this.$wrap.find(t.viewportTarget)}this.$scroller=this.$element.find(".list-scroller");this.$scrollerHolder=this.$scroller.parent();this._scroller=this.$scroller.get(0);this._scrollerHolder=this.$scrollerHolder.get(0);this._items=[];if(n){n.each(function(e,t){this._items.push(v(t))}.bind(this))}createjs.Ticker.timingMode=createjs.Ticker.RAF;this._disableTarget=t.disableTarget||"cannot-hscroll";if(this._disableTarget.indexOf(".")===0){this._disableTarget=this._disableTarget.substring(1)}var o=function(e,t,s){var i=s;if(l.data(e)!==undefined){i=l.data(e)}else if(t[e]!==undefined){i=t[e]}return i};this._scrollOffset=o("scrollOffset",t,.1);this._scrollSpeed=o("scrollSpeed",t,350);this._scrollEdgeSpeed=o("scrollEdgeSpeed",t,1e3);this._scrollEase=o("scrollEase",t,"cubicOut");this._scrollEdgeEase=o("scrollEdgeEase",t,"quartOut");this._scrollLengthPercent=o("scrollLengthPercent",t,1);this._scrollOverride=o("override",t,true);this._ignoreScrollerWidth=o("ignoreScrollerWidth",t,true);this._needButton=o("needButton",t,false);this._rememberLastScroll=o("rememberLastScroll",t,true);this._checkWindowSize=o("checkWindowSize",t,true);this._enabledButtonClass=o("enabledButtonClass",t,"enabled");this._buttonScrollPercent=o("buttonScrollPercent",t,.5);this._widthTolerance=o("widthTolerance",t,1);this._checkHash=o("checkHash",t,true);this._viewportOffsetX=o("viewportOffsetX",t,0);this._tweenScrollerEdge=o("tweenScrollerEdge",t,true);this._scrollerNotUseTranslate=o("scrollerNotUseTranslate",t,false);this._forbidMouseWheel=o("forbidMouseWheel",t,false);this._holdMousewheel=o("holdMousewheel",t,true);this._enabled=true;if(this._enabledButtonClass.indexOf(".")===0){this._enabledButtonClass=this._enabledButtonClass.substring(1)}this._scrollable=true;this._lastValue=0;if(this._rememberLastScroll){this._storeId="pt-hs-"+e.nodeName.toLowerCase()+"-"+(e.id?e.id+"-":"")+l.attr("class").replace(/\s/g,"-");try{this._lastValue=parseInt(p.localStorage?p.localStorage.getItem(this._storeId)||0:0)||0}catch(e){this._lastValue=0}}var h=t.wheelTarget?v(t.wheelTarget):null;this._wheelTarget=h?h.get(0):null;this._preventDefaultScroll=t.preventDefaultScroll===undefined?true:t.preventDefaultScroll;this._onWheelBeforeHandler=t.onWheelBefore||null;this._onWheelAfterHandler=t.onWheelAfter||null;this._onEdgeInHandler=t.onEdgeIn||null;this._onEdgeOutHandler=t.onEdgeOut||null;this._inEdge=false;this._disposed=false;this._scrollDistance=0;this._allowCalls=["getX","scroll","scrollTo","checkScrollBack","scrollToElement","stopScroll","forbidMouseWheel","enableViewport","setEnabled","resize","dispose"];this._x=0;this._scrollX=0;this._scrollerX=0;this._containerOffset=0;this._oldMouseX=0;this._currentX=0;this._enableMouseWheel=false;this._containerX=0;this._width=0;this._contentWidth=0;this._offsetWidth=0;this._stepOffset=0;this._tweenValue=0;this._notEnoughToScroll=false;this._scrollState={prev:false,next:false};this._edgeTweenObj={x:0,renderX:0};this._edgeBackTweenObj={x:0,isTweening:false};this._toX=0;this._tween=null;this._stageWidth=0;this._scrollerWidth=0;this._scrollRectWidth=0;this._isRTL=(v("body").css("direction")||"").toLowerCase()=="rtl";if(this._isRTL){var a=v('<div dir="rtl" style="width: 10px; height: 10px; position: fixed; top: -20px; left: 0px; overflow: auto;">'+'<div style="width: 20px;">'+'<span style="display: inline-block; width: 10px;"></span>'+'<span style="display: inline-block; width: 10px;"></span>'+"</div>"+"</div>").appendTo("body")[0];this._rtlType="reverse";if(a.scrollLeft>0){this._rtlType="default"}else{if(typeof Element!=="undefined"&&Element.prototype.scrollIntoView){a.children[0].children[1].scrollIntoView();if(a.scrollLeft<0){this._rtlType="negative"}}else{a.scrollLeft=1;if(a.scrollLeft===0){this._rtlType="negative"}}}v(a).remove()}this._cssXProp=this._isRTL?"right":"left";this._isTweening=false;this._inviewClass=t.viewportAddClass||"init-viewport";this._enableCheckViewport=t.enableViewport||false;if(this._inviewClass.indexOf(".")===0){this._inviewClass=this._inviewClass.substring(1)}this._isDragging=false;this._tweenMoveScroller=false;this._aniValue=0;this._onMouseWheelHandler=this._onMouseWheel.bind(this);if(this._wheelTarget){this._wheelTarget.addEventListener("wheel",this._onMouseWheelHandler,S)}else if(this._element){this._element.addEventListener("wheel",this._onMouseWheelHandler,S)}if(T||b){s.css({"overflow-x":"auto","overflow-y":"hidden"});s.on("scroll.pt-hscroller",this._onNativeScroll.bind(this))}this.$prevBtn=null;this.$nextBtn=null;if(this._needButton){var c=v('<i class="pt-hs-roll-btn prev"></i>');var _=v('<i class="pt-hs-roll-btn next"></i>');l.append(c);l.append(_);var d=b?"touchend":"click";c.on(d,function(){this._toPrev(this._width*this._buttonScrollPercent)}.bind(this));_.on(d,function(){this._toNext(this._width*this._buttonScrollPercent)}.bind(this));this.$prevBtn=c;this.$nextBtn=_}this._onKeyDownHandler=this._onKeyDown.bind(this);v(p).on("keydown",this._onKeyDownHandler);this._onResizeHandler=this._onResize.bind(this);v(p).on("resize",this._onResizeHandler);this._onStartDragHandler=this._onStartDrag.bind(this);this._onDraggingHandler=this._onDragging.bind(this);this._onStopDragHandler=this._onStopDrag.bind(this);this._onClickScrollerHolderHandler=this._onClickScrollerHolder.bind(this);if(b){this._scroller&&this._scroller.addEventListener("touchstart",this._onStartDragHandler,S);this._scrollerHolder&&this._scrollerHolder.addEventListener("touchstart",this._onClickScrollerHolderHandler,S)}else{this._scroller&&this._scroller.addEventListener("mousedown",this._onStartDragHandler,false);this._scrollerHolder&&this._scrollerHolder.addEventListener("mousedown",this._onClickScrollerHolderHandler,false)}var f=document.referrer===p.location.href;this._onResize(null,this._lastValue===0||!f);this._onScrollHandler=t.onScroll||null;this._onScrollEndHandler=t.onScrollEnd||null;if(f&&this._lastValue!==0){this.scrollTo(this._lastValue,false)}if(this._checkHash){var u=window.location.hash;if(u&&v(u).get(0)){this.scrollToElement(v(u))}var g=E("findAnchor",l.find("a:not(.ignore-hash)"));if(g&&g.length>0){g.each(function(){var e=this.hash;if(!e||/^#([\w-]+)$/.test(e)===false){return}var s;try{s=v(e).get(0)}catch(e){}if(s){v(this).on("click.ptHScroller",function(e){if(!e.ctrlKey&&i._enabled&&i._scrollable&&!i._notEnoughToScroll){e.preventDefault();var t=v(this);i.scrollToElement(s,true,t.data("scrollSpeed"),t.data("scrollEase"),t.data("scrollOffset"))}})}})}}this._watchContentSize(this._wrap);if(typeof t.onInit==="function"){t.onInit.apply(this,[e])}l.trigger("pt-hscroller-inited")};var t=s.prototype;t._watchContentSize=function(t){if(!t){return}var s=this;var e=function(){var e=t.scrollWidth;if(e!==s._contentWidth){s._onResize()}};if(document.readyState==="complete"){e();return}var i=200;var l=setInterval(function(){e()},i);var r=function(){window.removeEventListener("load",r);clearInterval(l);e()};window.addEventListener("load",r)};t._onResize=function(e,t){if(!this._enabled){return}if(t===undefined){t=true}this._containerX=this.$element.offset().left;this._width=this.$element.width();this._contentWidth=this._wrap?this._wrap.scrollWidth:0;this._offsetWidth=this._contentWidth-this._width;this._stageWidth=v(p).width();this._scrollLeft=this._content.scrollLeft;if(this._offsetWidth<0){this._offsetWidth=0}this._scrollable=this._checkWindowSize?this._stageWidth>=v(p).height():true;this._scrollDistance=Math.floor(this._scrollOffset*this.$content.width());this._notEnoughToScroll=this._contentWidth<=this._width+this._widthTolerance;if(this._notEnoughToScroll){this._enableMouseWheel=false;this.$element.addClass("no-scroll")}else{this._enableMouseWheel=true;this.$element.removeClass("no-scroll")}this._scrollerWidth=this.$scroller.width();this._scrollRectWidth=parseInt(this.$scrollerHolder.css("width"))||this._width;if(!this._ignoreScrollerWidth){this._scrollRectWidth-=this._scrollerWidth}if(this._notEnoughToScroll){this.$scroller.hide()}else{this.$scroller.css("display","block");this._updateScroller(this._scrollerX,true)}if(this._x+this._contentWidth<this._width){this._x=this._width-this._contentWidth;if(this._x>0){this._x=0}}if(t||this._notEnoughToScroll){this._render(true)}this._updateScrollState(this._x);v(p).trigger("h-resize",[{scrollX:this._scrollLeft,containerX:this._containerX,contentWidth:this._contentWidth,containerWidth:this._width,offsetWidth:this._offsetWidth,element:this._element}])};t._onKeyDown=function(e){if(window.__HSCROLLER_NOT_USE_KEYBOARD){return}if(!this._enabled||!this._scrollable){return}switch(e.keyCode){case 37:case 38:this._toPrev(E("scrollDistanceByArrowKey",this._scrollDistance*5),E("scrollSpeedByKeyboard",this._scrollSpeed),E("scrollEaseByKeyboard",this._scrollEase));break;case 39:case 40:this._toNext(E("scrollDistanceByArrowKey",this._scrollDistance*5),E("scrollSpeedByKeyboard",this._scrollSpeed),E("scrollEaseByKeyboard",this._scrollEase));break;case 36:this.scrollTo(0,true,E("scrollSpeedByKeyboard",this._scrollSpeed),E("scrollEaseByKeyboard",this._scrollEase));break;case 35:this.scrollTo(-this._offsetWidth,true,E("scrollSpeedByKeyboard",this._scrollSpeed),E("scrollEaseByKeyboard",this._scrollEase));break;case 33:this.scrollTo(this._x+this._width,true,E("scrollSpeedByKeyboard",this._scrollSpeed),E("scrollEaseByKeyboard",this._scrollEase));break;case 34:this.scrollTo(this._x-this._width,true,E("scrollSpeedByKeyboard",this._scrollSpeed),E("scrollEaseByKeyboard",this._scrollEase));break}};t._onMouseWheel=function(e){if(!this._enabled||!this._scrollable){return}if(this._forbidMouseWheel){return}if(!this._enableMouseWheel){return}if(this._isDragging){return}if(e.defaultPrevented||e.ctrlKey){return}var t;if(e.deltaX!==undefined&&e.deltaX!==0){t=e.deltaX}else{t=e.deltaY}if(!this._holdMousewheel){if(t<0){if(!this._scrollState.prev){return}}else if(t>0){if(!this._scrollState.next){return}}}if(!e.shiftKey&&this._checkUnderScrollable(e.target,t<0)){return}if(this._preventDefaultScroll)e.preventDefault();if(this._onWheelBeforeHandler)this._onWheelBeforeHandler();var s=E("scrollLengthPercent",this._scrollLengthPercent);var i=t*s;if(e.deltaMode!==0){i*=60}if(t<0){this._toPrev(-1*i,E("scrollSpeedByMouseWheel",this._scrollSpeed),E("scrollEaseByMouseWheel",this._scrollEase))}else if(t>0){this._toNext(i,E("scrollSpeedByMouseWheel",this._scrollSpeed),E("scrollEaseByMouseWheel",this._scrollEase))}if(this._onWheelAfterHandler){this._onWheelAfterHandler()}};t._checkUnderScrollable=function(e,t){var s=document.body;var i,l=e;if(!v.contains(s,e)){return false}while(l&&l!==s){if(v(l).hasClass(this._disableTarget)){return true}i=getComputedStyle(l,"").getPropertyValue("overflow-y");if(i==="scroll"||i==="auto"){if(l.clientHeight<l.scrollHeight){if(t&&l.scrollTop>0||!t&&Math.round(l.scrollTop)<l.scrollHeight-l.clientHeight-1){return true}}}l=l.parentNode}return false};t._onClickScrollerHolder=function(e){if(e.target===this._scrollerHolder){e.preventDefault();e.stopPropagation();var t=r(e,"x");var s=t-this.$scrollerHolder.offset().left-this._scrollerWidth/2;var i=s/this._scrollRectWidth;if(i<0)i=0;else if(i>1)i=1;var l=this._offsetWidth*i*-1;this.scrollTo(l,true)}};t._onStartDrag=function(e){if(!this._enabled||!this._scrollable){return}e.preventDefault();e.stopPropagation();if(b){window.addEventListener("touchmove",this._onDraggingHandler,S);window.addEventListener("touchend",this._onStopDragHandler,S)}else{window.addEventListener("mousemove",this._onDraggingHandler,false);window.addEventListener("mouseup",this._onStopDragHandler,false)}this._isDragging=true;this.$scroller.addClass("dragging");this._oldMouseX=r(e,"x");this._currentX=this._scrollerX};t._onDragging=function(e){if(!this._enabled||!this._scrollable){return}e.preventDefault();e.stopPropagation();var t=r(e,"x");if(this._isRTL){this._currentX-=t-this._oldMouseX}else{this._currentX+=t-this._oldMouseX}this._oldMouseX=t;if(this._currentX<0){this._currentX=0}else if(this._currentX>this._scrollRectWidth){this._currentX=this._scrollRectWidth}var s=this._currentX/this._scrollRectWidth;this._scrollerX=this._currentX;this._updateScroller(this._scrollerX,true);var i=this._offsetWidth*s*-1;this._scrollX=i;this._tweenX(i,false,E("scrollSpeedByScrollbar",this._scrollSpeed),E("scrollEaseByScrollbar",this._scrollEase))};t._onStopDrag=function(e){if(!this._enabled||!this._scrollable){return}e.preventDefault();e.stopPropagation();if(b){p.removeEventListener("touchmove",this._onDraggingHandler,S);p.removeEventListener("touchend",this._onStopDragHandler,S)}else{p.removeEventListener("mousemove",this._onDraggingHandler,false);p.removeEventListener("mouseup",this._onStopDragHandler,false)}this._isDragging=false;this.$scroller.removeClass("dragging")};t._onNativeScroll=function(e){if(!this._enabled||!this._scrollable||this._isTweening){return}var t;if(this._isRTL){if(this._rtlType==="reverse"){t=-this._content.scrollLeft}else if(this._rtlType==="negative"){t=this._content.scrollLeft}else{t=this._content.scrollLeft-this._offsetWidth}}else{t=-this._content.scrollLeft}this._aniValue=this._x=t;this._updateScrollState(this._x);this._render(true,true)};t._render=function(e,t,s){this._checkViewport();var i=this._isRTL;if(!t){var l=this._x;if(l>0){l=0}else if(l<-this._offsetWidth){l=-this._offsetWidth}var r;if(i){if(this._rtlType==="reverse"){r=-l}else if(this._rtlType==="negative"){r=l}else{r=l+this._offsetWidth}}else{r=-l}this._content.scrollLeft=r;this._scrollLeft=r;var n=0;if(this._x>0){n=this._x}else if(this._x<-this._offsetWidth){n=this._x+this._offsetWidth}var o=0;var h=this._scrollEdgeSpeed,a=this._scrollEdgeEase;if(n!==0){o=this.stopScroll(true);h*=1-o;n=this._adjustOffset(n,200,200)}var c=this._x;createjs.Tween.removeTweens(this._edgeTweenObj);var _=l;if(this._tweenScrollerEdge){if(n!==0){_=this._adjustOffset(n,this._scrollerWidth,200);if(n<0){_-=this._scrollRectWidth}if(e){this._updateScroller(Math.round(-1*_))}}else if(e){this._updateScroller(Math.round(-1*_/this._offsetWidth*this._scrollRectWidth))}}else if(e){this._updateScroller(Math.round(-1*_/this._offsetWidth*this._scrollRectWidth))}if(n>0){this._x=this._scrollX;createjs.Tween.removeTweens(this._edgeBackTweenObj);this._edgeBackTweenObj.isTweening=false;this._renderContainerBack(n,c,h,a,s,function(e){this._toX=this._aniValue=e.renderX}.bind(this),function(){this._toX=this._aniValue=this._scrollX}.bind(this))}else if(n<0){this._x=this._scrollX;createjs.Tween.removeTweens(this._edgeBackTweenObj);this._edgeBackTweenObj.isTweening=false;this._renderContainerBack(n,c,h,a,s,function(e){this._toX=this._aniValue=e.renderX}.bind(this),function(){this._toX=this._aniValue=this._scrollX}.bind(this))}else{if(this._containerOffset!==0&&!this._edgeBackTweenObj.isTweening){var d=this._edgeBackTweenObj;d.x=this._containerOffset;d.isTweening=true;if(!this._inEdge){this._inEdge=true;this._onEdgeInHandler&&this._onEdgeInHandler.call(this._element)}createjs.Tween.get(d,{override:true,onChange:function(){this._containerOffset=d.x;f(this.$content,i?-d.x:d.x)}.bind(this)}).to({x:0},h/2,createjs.Ease[a]||createjs.Ease.cubicOut).call(function(){this._containerOffset=0;d.isTweening=false;setTimeout(function(){if(this._inEdge){this._inEdge=false;this._onEdgeOutHandler&&this._onEdgeOutHandler.call(this._element)}}.bind(this))}.bind(this))}}}else{if(e){this._updateScroller(Math.round(-1*this._x/this._offsetWidth*this._scrollRectWidth))}}this._dispatchScrollEvent()};t._dispatchScrollEvent=function(){var e=Math.round(-1*this._x/this._offsetWidth*this._scrollRectWidth);var t=e/this._scrollRectWidth;if(this._onScrollHandler){this._onScrollHandler(t,{scrollX:this._scrollLeft,containerX:this._containerX,contentWidth:this._contentWidth,containerWidth:this._width,offsetWidth:this._offsetWidth,element:this._element})}v(p).trigger("h-scroll",[{scrollX:this._scrollLeft,containerX:this._containerX,contentWidth:this._contentWidth,containerWidth:this._width,offsetWidth:this._offsetWidth,element:this._element}])};t._adjustOffset=function(e,t,s){var i=Math.atan(e/(s||100))/(Math.PI/2);return i*(t||200)};t._renderContainerBack=function(e,t,s,i,l,r,n){var o=this._isRTL;if(e===undefined||e===null){e=this._containerOffset}this._containerOffset=e;f(this.$content,o?-e:e);if(!this._inEdge){this._inEdge=true;this._onEdgeInHandler&&this._onEdgeInHandler.call(this._element)}if(!l){return}var h=this._edgeTweenObj;h.x=e;h.renderX=t;createjs.Tween.get(h,{override:true,onChange:function(){this._containerOffset=h.x;f(this.$content,o?-h.x:h.x);if(this._tweenScrollerEdge){var e=this._adjustOffset(h.x,this._scrollerWidth,200);if(h.x===0){e=Math.round(-1*this._scrollX/this._offsetWidth*this._scrollRectWidth)}else{if(h.x<0){e-=this._scrollRectWidth}e=-1*e}this._updateScroller(e)}this._dispatchScrollEvent();r&&r(h)}.bind(this)}).to({x:0,renderX:this._scrollX},s,createjs.Ease[i]||createjs.Ease.cubicOut).call(function(){this._containerOffset=0;setTimeout(function(){if(this._inEdge){this._inEdge=false;this._onEdgeOutHandler&&this._onEdgeOutHandler.call(this._element)}n&&n()}.bind(this))}.bind(this))};t.checkScrollBack=function(){var e=this._containerOffset!==0;if(e){var t=this._scrollEdgeSpeed,s=this._scrollEdgeEase,i=true;var l=this._scrollX+this._containerOffset;this._renderContainerBack(this._containerOffset,l,t,s,i,function(e){this._toX=this._aniValue=e.renderX}.bind(this),function(){this._toX=this._aniValue=this._scrollX}.bind(this))}};t._checkViewport=function(){var e=this._items.length;if(this._enableCheckViewport&&e>0){var t,s,i;for(var l=e-1;l>=0;l--){t=this._items[l];s=t.offset().left-this._containerX;i=t.outerWidth(true);if(this._isRTL){s=this._width-s-i}s-=this._viewportOffsetX;if(s>-i&&s<this._width){t.addClass(this._inviewClass);this._items.splice(l,1)}}}};t._updateScroller=function(e,t){if(e===undefined){e=Math.floor(-1*this._x/this._offsetWidth*this._scrollRectWidth)}if(t||this._scrollerX!==e){this._scrollerX=e;if(this._ignoreScrollerWidth){this.$scroller.css(this._cssXProp,e/this._scrollRectWidth*100+"%")}else{if(this._scrollerNotUseTranslate){this.$scroller.css(this._cssXProp,e+"px")}else{this.$scroller.css("transform","translate3d("+(this._isRTL?-e:e)+"px,0,0)")}}}};t._toPrev=function(e,t,s){var i;if(this._isTweening&&this._scrollOverride){i=this._scrollX+e}else{i=this._x+e}if(i>0){i=0}this._toX=i;this._aniValue=this._x;this._scrollX=i;this._tweenX(i,true,t,s)};t._toNext=function(e,t,s){var i;if(this._isTweening&&this._scrollOverride){i=this._scrollX-e}else{i=this._x-e}if(i<-this._offsetWidth){i=-this._offsetWidth}this._toX=i;this._aniValue=this._x;this._scrollX=i;this._tweenX(i,true,t,s)};t._tweenX=function(e,t,s,i,l){this._tweenMoveScroller=t;if(this._x===e){this._render(this._tweenMoveScroller,false,l);return}this._isTweening=true;this._updateScrollState(e);var r=s!==undefined?s:this._scrollSpeed;var n=i||this._scrollEase;this._tween=createjs.Tween.get(this,{override:true,onChange:this._onAniUpdate.bind(this,l)}).to({_aniValue:e},r,createjs.Ease[n]||createjs.Ease.cubicOut).call(this._onAniComplete.bind(this))};t._onAniUpdate=function(e,t){this._x=this._aniValue;this._render(this._tweenMoveScroller,false,e)};t._onAniComplete=function(){this._isTweening=false;if(this._onScrollEndHandler){setTimeout(this._onScrollEndHandler,0)}try{if(this._rememberLastScroll&&p.localStorage){p.localStorage.setItem(this._storeId,this._x+"")}}catch(e){}};t._updateScrollState=function(e){if(e===undefined){e=this._x}var t=this.$element;var s=this.$prevBtn,i=this.$nextBtn,l=this._enabledButtonClass;var r=this._needButton&&(s&&i);var n={prev:false,next:false};if(this._notEnoughToScroll){if(r){s.removeClass(l);i.removeClass(l)}}else if(e>=0){if(r){s.removeClass(l);i.addClass(l)}n.next=true}else if(e<=-this._offsetWidth){if(r){s.addClass(l);i.removeClass(l)}n.prev=true}else{if(r){s.addClass(l);i.addClass(l)}n.prev=true;n.next=true}this._scrollState.prev=n.prev;this._scrollState.next=n.next;t.trigger("scroll-state",n)};t.forbidMouseWheel=function(e){this._forbidMouseWheel=e?true:false};t.enableViewport=function(e){this._enableCheckViewport=e?true:false};t.setEnabled=function(e){this._enabled=e?true:false;if(this._enabled){this.resize()}};t.resize=function(){this._onResize(null,true)};t.scrollTo=function(e,t,s,i,l,r){if(!this._enabled||!this._scrollable){return}if(t===undefined){t=true}l=l||false;var n=e;if(e>0){e=0}if(e<-this._offsetWidth){e=-this._offsetWidth}if(l){this._toX=n}else{this._toX=e}this._scrollX=e;createjs.Tween.removeTweens(this);if(t){if(r==="drag"){s=E("scrollSpeedByDragging",s);i=E("scrollEaseByDragging",i)}this._tweenX(this._toX,true,s,i,l)}else{if(l){this._x=n;this._aniValue=n}else{this._x=e;this._aniValue=e}this._render(true,false);this._updateScrollState(e)}};t._getElementPosition=function(e,t){var s={x:0,y:0};if(e&&t){var i=e.getBoundingClientRect();var l=t.getBoundingClientRect();if(i&&l){s.x=l.left-i.left;s.y=l.top-i.top}}return s};t.scrollToElement=function(e,t,s,i,l){if(!this._enabled||!this._scrollable){return}var r=v(e);if(r.length<1){return}var n=this._getElementPosition(this._wrap,r.get(0));if(l===undefined){l=0}var o=-n.x-l;if(this._isRTL){o=-o-(this._width-r.outerWidth(true))}this.scrollTo(o,t?true:false,s,i)};t.scroll=function(e,t,s,i){if(!this._enabled||!this._scrollable){return}if(e===undefined){e=0}if(e<0){e=-e}if(t===undefined){t=1}var l;if(t>0){l=this._x-e}else{l=this._x+e}this.scrollTo(l,true,s,i)};t.stopScroll=function(e){var t=1;var s=this._tween;if(this._isTweening&&s&&s.duration){t=s.position/s.duration;if(isNaN(t)){t=1}}createjs.Tween.removeTweens(this);if(!e){this._render(true,false)}this._isTweening=false;this._updateScrollState(this._x);return t};t.getX=function(){return this._x};t.execute=function(e,t){if(!e||this._allowCalls.indexOf(e)<0){return}if(!Array.isArray(t)){t=[t]}var s=this[e];if(s&&typeof s==="function"){return s.apply(this,t)}};t.dispose=function(){if(this._disposed)return;this._disposed=true;var e=v(p);createjs.Tween.removeTweens(this);createjs.Tween.removeTweens(this._edgeTweenObj);createjs.Tween.removeTweens(this._edgeBackTweenObj);if(this._onResizeHandler){e.off("resize",this._onResizeHandler);this._onResizeHandler=null}if(this._wheelTarget){this._wheelTarget.removeEventListener("wheel",this._onMouseWheelHandler,S)}else if(this._element){this._element.removeEventListener("wheel",this._onMouseWheelHandler,S)}if(this._needButton){if(this.$prevBtn){this.$prevBtn.remove();this.$prevBtn=null}if(this.$nextBtn){this.$nextBtn.remove();this.$nextBtn=null}}this._enableMouseWheel=false;this._inEdge=false;this._onMouseWheelHandler=null;this._onWheelBeforeHandler=null;this._onWheelAfterHandler=null;this._onEdgeInHandler=null;this._onEdgeOutHandler=null;e.off("keydown",this._onKeyDownHandler);this._onKeyDownHandler=null;if(b){this._scroller&&this._scroller.removeEventListener("touchstart",this._onStartDragHandler,S);this._scrollerHolder&&this._scrollerHolder.removeEventListener("touchstart",this._onClickScrollerHolderHandler,S);p.removeEventListener("touchmove",this._onDraggingHandler,S);p.removeEventListener("touchend",this._onStopDragHandler,S)}else{this._scroller&&this._scroller.removeEventListener("mousedown",this._onStartDragHandler,false);this._scrollerHolder&&this._scrollerHolder.removeEventListener("mousedown",this._onClickScrollerHolderHandler,false);p.removeEventListener("mousemove",this._onDraggingHandler,false);p.removeEventListener("mouseup",this._onStopDragHandler,false)}if(this.$content){this.$content.off("scroll.pt-hscroller")}this._onStartDragHandler=null;this._onDraggingHandler=null;this._onStopDragHandler=null;this._onClickScrollerHolderHandler=null;this._onScrollHandler=null;this._onScrollEndHandler=null;if(this._element){this.$element.data("__ptHScroller",null);this._element.__ptHScroller=null;this._element=null}this._tween=null};v.fn.extend({ptHScroller:function(t){this.each(function(){var e=v(this).data("__ptHScroller");e&&e.dispose();new s(this,t||{})});return this},ptHScrollerCall:function(s,i){var l=[];this.each(function(){var e=v(this).data("__ptHScroller");if(e){var t=e.execute(s,i);l.push({target:this,value:t})}});return l},ptHScrollerDispose:function(){this.each(function(){var e=v(this).data("__ptHScroller");e&&e.dispose()});return this}})}(jQuery,window);
!function(h,t){"use strict";var l="PTRemoveElement";h.cleanData=function(r){var t="__bind"+l;if(window[t]){return r}window[t]=true;return function(t){var e,i,s;for(s=0;(i=t[s])!=null;s++){try{e=h._data(i,"events");if(e&&e[l]){h(i).triggerHandler(l)}}catch(t){}}r(t)}}(h.cleanData);var _=h(t),d=h("body");var o=function(t){t.preventDefault();return false};var i=function(t,e){this._element=t;var r=h(t);var i=r.data("__ptHScroller")||t.__ptHScroller;if(!i||e.disabled||r.data("drag-disabled")){return}t.__ptHDragger=this;r.data("__ptHDragger",this);this.$e=r;r.one(l,function(){this.dispose()}.bind(this));var s=function(t,e,i){var s=i;if(r.data(t)!==undefined){s=r.data(t)}else if(e[t]!==undefined){s=e[t]}return s};this._tweenTime=s("dragTweenTime",e,400);this._ease=s("dragEase",e,"");this._checkEdge=s("checkEdge",e,true);this._clickTolerance=s("clickTolerance",e,10);this._draggingClass=s("draggingClass",e,"");this._speedRatio=s("speedRatio",e,1);this._dragDistanceRatio=s("dragDistanceRatio",e,1);var a=s("ignoreElement",e,"");var n=[];if(a){if(typeof a==="string"){r.find(a).each(function(){n.push(this)})}else if(a instanceof jQuery){a.each(function(){n.push(this)})}else{n.push(a)}}this._ignoreElements=n;this._disposed=false;this._maskInStage=false;this._enabled=true;createjs.Ticker.timingMode=createjs.Ticker.RAF;this._downEvt="mousedown";this._moveEvt="mousemove";this._upEvt="mouseup";this._allowCalls=["setEnabled","dispose"];this._isRTL=(h("body").css("direction")||"").toLowerCase()=="rtl";this._startMouseX=0;this._startScrollLeft=0;this._tempPoint=null;this._onStartDragHandler=this._onStartDrag.bind(this);this._onDraggingHandler=this._onDragging.bind(this);this._onDragEndHandler=this._onDragEnd.bind(this);r.on("dragstart",o);r.on(this._downEvt,this._onStartDragHandler);this._stopClick=false;this._stopClickTimer=null;this._onUnderClickHandler=this._onUnderClick.bind(this);this._element.addEventListener("click",this._onUnderClickHandler,true)};var e=i.prototype;e._onUnderClick=function(t){if(this._stopClick){t.preventDefault();t.stopPropagation()}};e._onStartDrag=function(t){if(!this._enabled){return}var e=this._ignoreElements.length;if(e>0){var i;for(var s=0;s<e;s++){i=this._ignoreElements[s];if(i===t.target){return}else if(!h(i).is("input,textarea")&&h.contains(i,t.target)){return}}}var r=t.originalEvent;r.stopPropagation();if(this._stopClickTimer){clearTimeout(this._stopClickTimer);this._stopClickTimer=null}this._stopClick=false;_.off(this._moveEvt,this._onDraggingHandler).on(this._moveEvt,this._onDraggingHandler);_.off(this._upEvt,this._onDragEndHandler).on(this._upEvt,this._onDragEndHandler);var a=this.$e.ptHScrollerCall("stopScroll");var n=this.getHScrollResult(a,this._element,1);if(n<.98){this._stopClick=true}this._startMouseX=this._getMouseXY(r,"x")*this._dragDistanceRatio;var l=this.$e.ptHScrollerCall("getX")||[];var o=this.getHScrollResult(l,this._element,0);this._startScrollLeft=o;this._startTime=Date.now()};e.getHScrollResult=function(t,e,i){var s=t.length,r=i;while(s--){if(t[s].target===e){r=t[s].value;break}}return r};e._onDragging=function(t){if(!this._enabled){return}var e=t.originalEvent;e.preventDefault();var i=this._getMouseXY(e,"x")*this._dragDistanceRatio;var s=i-this._startMouseX;var r=Math.abs(s)>this._clickTolerance;this._stopClick=r;if(r&&this._draggingClass&&!d.hasClass(this._draggingClass)){d.addClass(this._draggingClass)}var a=this._isRTL?this._startScrollLeft-s:this._startScrollLeft+s;this.$e.ptHScrollerCall("scrollTo",[a,false,0,null,this._checkEdge,"drag"]);this._tempPoint=[Date.now(),i]};e._onDragEnd=function(t){if(!this._enabled){return}var e=t.originalEvent;_.off(this._moveEvt,this._onDraggingHandler);_.off(this._upEvt,this._onDragEndHandler);this._stopClickTimer=setTimeout(function(){this._stopClick=false;this._stopClickTimer=null}.bind(this));if(this._draggingClass&&d.hasClass(this._draggingClass)){d.removeClass(this._draggingClass)}var i=this._getMouseXY(e,"x")*this._dragDistanceRatio,s=this._getMouseXY(e,"y");if(i===0&&s===0){return}var r=i-this._startMouseX;var a;if(Math.abs(r)>this._clickTolerance){if(this._tempPoint){var n=Date.now()-this._tempPoint[0];var l=Math.abs(i-this._tempPoint[1]);if(n>100&&l<10){if(this._checkEdge){this.$e.ptHScrollerCall("checkScrollBack")}return}}var o=Date.now()-this._startTime;if(o<1){o=1}var h=Math.abs(r/o/2)*this._speedRatio+1;r*=h*1.5;a=this._isRTL?this._startScrollLeft-r:this._startScrollLeft+r;this.$e.ptHScrollerCall("scrollTo",[a,true,this._tweenTime,this._ease,this._checkEdge,"drag"])}else{if(this._checkEdge){this.$e.ptHScrollerCall("checkScrollBack")}}};e._getMouseXY=function(t,e){var i=t.pageX!==undefined?t.pageX:t.clientX;var s=t.pageY!==undefined?t.pageY:t.clientY;if(e==="x"){return i}else if(e==="y"){return s}return{x:i,y:s}};e.setEnabled=function(t){t=t?true:false;var e=this.$e;if(t){if(!this._enabled){e.on(this._downEvt,this._onStartDragHandler);e.on("dragstart",o)}}else{e.off(this._downEvt,this._onStartDragHandler);e.off("dragstart",o)}this._enabled=t};e.execute=function(t,e){if(!t||this._allowCalls.indexOf(t)<0){return}if(e&&!Array.isArray(e)){e=[e]}var i=this[t];if(i&&typeof i=="function"){i.apply(this,e||[])}};e.dispose=function(){if(this._disposed){return}this._disposed=true;_.off(this._moveEvt,this._onDraggingHandler);_.off(this._upEvt,this._onDragEndHandler);var t=this._element;if(t){var e=h(t);e.off(this._downEvt,this._onStartDragHandler);e.data("__ptHDragger",null);e.off("dragstart",o);t.removeEventListener("click",this._onUnderClickHandler,true);t.__ptHDragger=null;this._element=null}this._onStartDragHandler=null;this._onDraggingHandler=null;this._onDragEndHandler=null;this._onUnderClickHandler=null};h.fn.extend({ptHDragger:function(e){var t=!!window.ActiveXObject||"ActiveXObject"in window;if(/Mobi|Tablet|iPad|iPhone|Android/i.test(navigator.userAgent)&&!t){return this}this.each(function(){var t=h(this).data("__ptHDragger");t&&t.dispose();new i(this,e||{})});return this},ptHDraggerCall:function(e,i){this.each(function(){var t=h(this).data("__ptHDragger");t&&t.execute(e,i)});return this}})}(jQuery,window);
!function(z,h){"use strict";var e=z(h);var o="PTRemoveElement";z.cleanData=function(n){var e="__bind"+o;if(window[e]){return n}window[e]=true;return function(e){var t,i,s;for(s=0;(i=e[s])!=null;s++){try{t=z._data(i,"events");if(t&&t[o]){z(i).triggerHandler(o)}}catch(e){}}n(e)}}(z.cleanData);var i=function(e,t){this._element=e;e.__ptFlexRow=this;this.$element=z(this._element);this.$element.data("__ptFlexRow",this);this.$element.one(o,function(){this.dispose()}.bind(this));t=t||{};this._options=t;var i;if(t.wrapTarget&&typeof t.wrapTarget==="object"){i=z(t.wrapTarget)}else{i=this.$element.find(t.wrapTarget||t.wrapClass||".wrap")}if(t.viewTarget&&typeof t.viewTarget==="object"){this.$view=z(t.viewTarget)}else if(t.viewTarget&&typeof t.viewTarget==="string"){this.$view=this.$element.find(t.viewTarget)}else{this.$view=z(window)}this.$content=i;var s;if(t.itemTarget&&typeof t.itemTarget==="object"){s=z(t.itemTarget)}else if(t.itemTarget){s=this.$content.find(t.itemTarget||".item")}this.$items=s;this._onResizeBefore=t.onResizeBefore||null;this._onResizeAfter=t.onResizeAfter||null;this._rows=t.rows||2;this._ignoreWhenHandler=t.ignoreWhen;this._needBR=t.needBR===undefined?true:t.needBR;this._isIE9=navigator.userAgent.indexOf("MSIE 9.0")>-1;this._isRTL=(z("body").css("direction")||"").toLowerCase()=="rtl";this._useJustified=t.useJustified===undefined?true:t.useJustified;if(this._isRTL){this._useJustified=false}if(this.$element.data("align")!==undefined){this._alignType=this.$element.data("align")||1}else{this._alignType=t.alignType||1}this._scrollPercent=0;this._maxRowWidth=0;this._totalWidth=0;this._viewWidth=0;this._currentPercent=-1;this._disposed=false;this.$itemContainers=[];var n;for(var r=0;r<this._rows;r++){n=z('<div class="fr-item-container"></div>');this.$content.append(n);this.$itemContainers.push(n);if(this._needBR&&r!==this._rows-1){n.after("<br/>")}}this._itemContainerWidths=[];this._allowCalls=["setScrollPercent","resize","dispose"];this._onResizeHandler=this._resize.bind(this);z(h).on("resize",this._onResizeHandler);if(t.onInit){t.onInit()}this._resize()};var t=i.prototype;t._resize=function(){this._viewWidth=this.$view.width();if(typeof this._ignoreWhenHandler==="function"&&this._ignoreWhenHandler()){return}if(this._onResizeBefore){this._onResizeBefore()}this._currentPercent=-1;var e=this._align();if(this._useJustified){for(var t=0;t<this._rows;t++){this._itemContainerWidths[t]=Math.round(this.$itemContainers[t].get(0).scrollWidth)}var i=this.setScrollPercent(this._scrollPercent);if(this._onResizeAfter){this._onResizeAfter(e||!i)}}else{if(this._onResizeAfter){this._onResizeAfter(e)}}};t._align=function(e){var t=[],i,s=0;var n=true,r=0;this.$items.each(function(){i=Math.floor(z(this).width());s+=i;t.push(i);if(r===0){r=i}else if(n&&i!==r){n=false}});if(!e&&this._totalWidth===s){return false}this._totalWidth=s;var h=s/this._rows;var o,a,l=t.length,f=0,_=0;var d,u,c=[];if(this._alignType===1){for(o=0;o<this._rows;o++){c[o]=-this._rows+o}for(o=0;o<l;o++){d=Math.min.apply(null,c);_=c.indexOf(d);c[_]+=t[o];this.$itemContainers[_].append(this.$items.get(o))}}else{var w=[];for(o=0;o<this._rows;o++){c[o]=0;w[o]=[]}if(n){var p=Math.round(l/this._rows);for(o=0;o<l;o++){f+=t[o];c[_]+=t[o];w[_].push(o);if(w[_].length>=p){_++;if(_>this._rows-1){_=this._rows-1}else{f=0}}}}else{for(o=0;o<l;o++){f+=t[o];c[_]+=t[o];w[_].push(o);if(f>h){_++;if(_>this._rows-1){_=this._rows-1}else{f=0}}}if(this._rows>1){var v,m,g,R,$;for(o=0;o<this._rows;o++){d=Math.min.apply(null,c);v=c.indexOf(d);u=Math.max.apply(null,c);m=c.indexOf(u);g=u-d;$=w[m].length-1;$=w[m][$];R=t[$];if(R<g){w[m].pop();w[v].unshift($);c[m]-=R;c[v]+=R}else{break}}}}for(o=0;o<this._rows;o++){w[o].forEach(function(e){this.$itemContainers[o].append(this.$items.get(e))},this)}}var x=[];for(o=0;o<this._rows;o++){this.$itemContainers[o].removeClass("longest");x.push(this.$itemContainers[o].get(0).scrollWidth)}u=Math.max.apply(null,x);this.$itemContainers[x.indexOf(u)].addClass("longest");this._maxRowWidth=u;return true};t.setScrollPercent=function(e,t){if(!this._useJustified){return false}if(!t){t={containerX:0}}var i=this.$content.offset().left-t.containerX;var s=-i;var n=this._maxRowWidth===this._viewWidth?0:s/(this._maxRowWidth-this._viewWidth);if(n<0){n=0}else if(n>1){n=1}this._scrollPercent=n;if(this._currentPercent===n){return}this._currentPercent=n;var r=this._itemContainerWidths;var h=[];r.forEach(function(e,t){if(e<=this._viewWidth){h.push(t)}},this);if(this._rows-h.length<2){this.$itemContainers.forEach(function(e){this._renderX(e,0)},this);return false}var o=Math.max.apply(null,r);var a=r.indexOf(o);var s,l;for(var f=0;f<this._rows;f++){if(f===a||h.indexOf(f)>-1){this._renderX(this.$itemContainers[f],0);continue}s=o-r[f];l=s*n;this._renderX(this.$itemContainers[f],l)}return true};t._renderX=function(e,t){if(this._isIE9){e.css("-ms-transform","translateX("+t+"px)")}else{e.css("transform","translate3d("+t+"px,0,0)")}};t.resize=function(){this._align(true)};t.execute=function(e,t){if(!e||this._allowCalls.indexOf(e)<0){return}if(!Array.isArray(t)){t=[t]}var i=this[e];if(i&&typeof i==="function"){i.apply(this,t)}};t.dispose=function(){if(this._disposed){return}this._disposed=true;this._onResizeBefore=null;this._onResizeAfter=null;z(h).off("resize",this._onResizeHandler);this._onResizeHandler=null;if(this._element){this.$element.data("__ptFlexRow",null);this._element.__ptFlexRow=null;this._element=null}};z.fn.extend({ptFlexRow:function(t){this.each(function(){var e=z(this).data("__ptFlexRow");e&&e.dispose();new i(this,t||{})});return this},ptFlexRowCall:function(t,i){this.each(function(){var e=z(this).data("__ptFlexRow");e&&e.execute(t,i)});return this}})}(jQuery,window);
!function(d,c){"use strict";var h="PTRemoveElement";d.cleanData=function(n){var t="__bind"+h;if(window[t]){return n}window[t]=true;return function(t){var e,i,s;for(s=0;(i=t[s])!=null;s++){try{e=d._data(i,"events");if(e&&e[h]){d(i).triggerHandler(h)}}catch(t){}}n(t)}}(d.cleanData);var l=function(t,e){this._element=t;this._element.__ptElementParallax=this;this.$element=d(t);this._disposed=false;this.$element.one(h,function(){this.dispose()}.bind(this));this._type=e.type==="h"?"h":"v";this._isRTL=(d("body").css("direction")||"").toLowerCase()==="rtl";if(e.container){this.$container=this.$element.closest(e.container);if(!this.$container.get(0)){this.$container=this.$element.parent()}}else{this.$container=this.$element.parent()}this._offset=parseFloat(this.$element.data("offset")||0)||0;this._direct=this.$element.data("direct")=="1"?1:0;if(this._offset<0){this._offset=0}this._eleHeight=0;this._offsetHeight=0;this._eleWidth=0;this._offsetWidth=0;this._scrollEvt=this._type==="v"?"scroll":"h-scroll";this._onResizeHandler=null;this._onScrollHandler=null;this._init()};var t=l.prototype;t._init=function(){var t=d(c);this._onResizeHandler=this._onResize.bind(this);t.on("resize",this._onResizeHandler);this._onScrollHandler=this._onScroll.bind(this);t.on(this._scrollEvt,this._onScrollHandler);this._onResize()};t._onResize=function(t){if(this._type==="v"){this._eleHeight=this._element.clientHeight;this._offsetHeight=Math.ceil(this._eleHeight*this._offset)}else{this._eleWidth=this._element.clientWidth;this._offsetWidth=Math.ceil(this._eleWidth*this._offset)}this._onScroll()};t._onScroll=function(t,e){if(this._type==="v"){var i=d(c).scrollTop(),s=this.$container.offset().top,n=d(c).height();if(s+this._eleHeight>i&&s<i+n){var h=0,l,r;l=i-s;r=l/n;if(this._direct===0){h=r*this._offsetHeight}else{h=-r*this._offsetHeight}this._render(h,"y")}}else{if(e&&e.containerX!==undefined){var o=this.$element.offset().left,a=d(c).width();var f=o-e.containerX;if(f+this._eleWidth>0&&f<a){var _=0,r;r=(f+this._eleWidth)/(a+this._eleWidth/2);if(this._direct===1){_=-r*this._offsetWidth+this._offsetWidth}else{_=r*this._offsetWidth-this._offsetWidth}this._render(_,"x")}}}};t._render=function(t,e){t=Math.round(t);if(e==="x"){if(this._isRTL){t=-t}this.$element.css("transform","translate3d("+t+"px,0,0)")}else{this.$element.css("transform","translate3d(0,"+t+"px,0)")}};t.resize=function(){this._onResize()};t.execute=function(t,e){if(t.indexOf("_")===0){return}var i=this[t];if(i&&typeof i=="function"){i.apply(this,e||[])}};t.dispose=function(){if(this._disposed){return}this._disposed=true;var t=d(c);if(this._onScrollHandler){t.off(this._scrollEvt,this._onScrollHandler);this._onScrollHandler=null}if(this._onResizeHandler){t.off("resize",this._onResizeHandler);this._onResizeHandler=null}if(this._element){this._element.__ptElementParallax=null;this._element=null}};d.fn.extend({ptElementParallax:function(e){var t=navigator.userAgent;var i=!!window.ActiveXObject||"ActiveXObject"in window;var s=/Mobi|Tablet|iPad|iPhone|Android/i.test(t)&&!i;var n=t.toLowerCase().indexOf("trident")>-1&&t.indexOf("rv")>-1;if(s||i&&!n){return this}this.each(function(){var t=this.__ptElementParallax;t&&t.dispose();new l(this,e||{})});return this},ptElementParallaxCall:function(e,i){this.each(function(){var t=this.__ptElementParallax;t&&t.execute(e,i)});return this}})}(jQuery,window);