function isPassive(){var t=!1;try{addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(t){}return t}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.AOS=e()}(this,function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y="Expected a function",i=NaN,s="[object Symbol]",o=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,H=/^0o[0-7]+$/i,Y=parseInt,e="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,X=e||a||Function("return this")(),N=Object.prototype.toString,F=Math.max,$=Math.min,b=function(){return X.Date.now()};function R(s,i,t){var o,n,r,a,l,h,c=0,d=!1,p=!1,e=!0;if("function"!=typeof s)throw new TypeError(y);function u(t){var e=o,i=n;return o=n=void 0,c=t,a=s.apply(i,e)}function f(t){var e=t-h;return void 0===h||i<=e||e<0||p&&r<=t-c}function m(){var t,e=b();if(f(e))return g(e);l=setTimeout(m,(t=i-(e-h),p?$(t,r-(e-c)):t))}function g(t){return l=void 0,e&&o?u(t):(o=n=void 0,a)}function v(){var t=b(),e=f(t);if(o=arguments,n=this,h=t,e){if(void 0===l)return c=t=h,l=setTimeout(m,i),d?u(t):a;if(p)return l=setTimeout(m,i),u(h)}return void 0===l&&(l=setTimeout(m,i)),a}return i=T(i)||0,w(t)&&(d=!!t.leading,r=(p="maxWait"in t)?F(T(t.maxWait)||0,i):r,e="trailing"in t?!!t.trailing:e),v.cancel=function(){void 0!==l&&clearTimeout(l),o=h=n=l=void(c=0)},v.flush=function(){return void 0===l?a:g(b())},v}function w(t){var e=typeof t;return t&&("object"==e||"function"==e)}function T(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&N.call(e)==s)return i;if("string"!=typeof(t=w(t)?w(e="function"==typeof t.valueOf?t.valueOf():t)?e+"":e:t))return 0===t?t:+t;t=t.replace(o,"");var e=r.test(t);return e||H.test(t)?Y(t.slice(2),e?2:8):n.test(t)?i:+t}function x(){return U.Date.now()}var W=function(t,e,i){var s=!0,o=!0;if("function"!=typeof t)throw new TypeError(y);return w(i)&&(s="leading"in i?!!i.leading:s,o="trailing"in i?!!i.trailing:o),R(t,e,{leading:s,maxWait:e,trailing:o})},l=NaN,V="[object Symbol]",j=/^\s+|\s+$/g,G=/^[-+]0x[0-9a-f]+$/i,q=/^0b[01]+$/i,_=/^0o[0-7]+$/i,K=parseInt,e="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,U=e||a||Function("return this")(),Z=Object.prototype.toString,Q=Math.max,J=Math.min;function S(t){var e=typeof t;return t&&("object"==e||"function"==e)}function k(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&Z.call(e)==V)return l;if("string"!=typeof(t=S(t)?S(e="function"==typeof t.valueOf?t.valueOf():t)?e+"":e:t))return 0===t?t:+t;t=t.replace(j,"");var e=q.test(t);return e||_.test(t)?K(t.slice(2),e?2:8):G.test(t)?l:+t}function h(s,i,t){var o,n,r,a,l,h,c=0,d=!1,p=!1,e=!0;if("function"!=typeof s)throw new TypeError("Expected a function");function u(t){var e=o,i=n;return o=n=void 0,c=t,a=s.apply(i,e)}function f(t){var e=t-h;return void 0===h||i<=e||e<0||p&&r<=t-c}function m(){var t,e=x();if(f(e))return g(e);l=setTimeout(m,(t=i-(e-h),p?J(t,r-(e-c)):t))}function g(t){return l=void 0,e&&o?u(t):(o=n=void 0,a)}function v(){var t=x(),e=f(t);if(o=arguments,n=this,h=t,e){if(void 0===l)return c=t=h,l=setTimeout(m,i),d?u(t):a;if(p)return l=setTimeout(m,i),u(h)}return void 0===l&&(l=setTimeout(m,i)),a}return i=k(i)||0,S(t)&&(d=!!t.leading,r=(p="maxWait"in t)?Q(k(t.maxWait)||0,i):r,e="trailing"in t?!!t.trailing:e),v.cancel=function(){void 0!==l&&clearTimeout(l),o=h=n=l=void(c=0)},v.flush=function(){return void 0===l?a:g(x())},v}var c=function(){};function tt(t){t&&t.forEach(function(t){var e=Array.prototype.slice.call(t.addedNodes),t=Array.prototype.slice.call(t.removedNodes);if(function t(e){for(var i,s=void 0,s=0;s=r.out&&!n.once?s():t>=r.in?i.animated||(o=a,(t=n.animatedClassNames)&&t.forEach(function(t){return o.classList.add(t)}),M("aos:in",a),i.options.id&&M("aos:in:"+i.options.id,a),i.animated=!0):i.animated&&!n.once&&s()})},D=function(t){for(var e=0,i=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)e+=t.offsetLeft-("BODY"!=t.tagName?t.scrollLeft:0),i+=t.offsetTop-("BODY"!=t.tagName?t.scrollTop:0),t=t.offsetParent;return{top:i,left:e}},O=function(t,e,i){t=t.getAttribute("data-aos-"+e);if(void 0!==t){if("true"===t)return!0;if("false"===t)return!1}return t||i},lt=function(t,h){return t.forEach(function(t,e){var i,s,o,n=O(t.node,"mirror",h.mirror),r=O(t.node,"once",h.once),a=O(t.node,"id"),l=h.useClassNames&&t.node.getAttribute("data-aos"),l=[h.animatedClassName].concat(l?l.split(" "):[]).filter(function(t){return"string"==typeof t});h.initClassName&&t.node.classList.add(h.initClassName),t.position={in:function(t,e,i){var s=window.innerHeight,o=O(t,"anchor"),n=O(t,"anchor-placement"),e=Number(O(t,"offset",n?0:e)),n=n||i,r=t,a=(o&&document.querySelectorAll(o)&&(r=document.querySelectorAll(o)[0]),D(r).top-s);switch(n){case"top-bottom":break;case"center-bottom":a+=r.offsetHeight/2;break;case"bottom-bottom":a+=r.offsetHeight;break;case"top-center":a+=s/2;break;case"center-center":a+=s/2+r.offsetHeight/2;break;case"bottom-center":a+=s/2+r.offsetHeight;break;case"top-top":a+=s;break;case"bottom-top":a+=s+r.offsetHeight;break;case"center-top":a+=s+r.offsetHeight/2}return a+e}(t.node,h.offset,h.anchorPlacement),out:n&&(i=t.node,s=h.offset,window.innerHeight,o=O(i,"anchor"),s=O(i,"offset",s),o&&document.querySelectorAll(o)&&(i=document.querySelectorAll(o)[0]),D(i).top+i.offsetHeight-s)},t.options={once:r,mirror:n,animatedClassNames:l,id:a}}),t},L=[],I=!1,B={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50};function A(){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function")}return{init:function(t){return B=st(B,t),L=f(),B.disableMutationObserver||et()||(console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '),B.disableMutationObserver=!0),B.disableMutationObserver||it("[data-aos]",v),C(B.disable)||m()?E():(document.querySelector("body").setAttribute("data-aos-easing",B.easing),document.querySelector("body").setAttribute("data-aos-duration",B.duration),document.querySelector("body").setAttribute("data-aos-delay",B.delay),-1===["DOMContentLoaded","load"].indexOf(B.startEvent)?document.addEventListener(B.startEvent,function(){g(!0)}):window.addEventListener("load",function(){g(!0)}),"DOMContentLoaded"===B.startEvent&&-1<["complete","interactive"].indexOf(document.readyState)&&g(!0),window.addEventListener("resize",h(g,B.debounceDelay,!0)),window.addEventListener("orientationchange",h(g,B.debounceDelay,!0)),L)},refresh:g,refreshHard:v}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BetterScroll={})}(this,function(t){var H=function(t,e){return(H=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)};function Y(t,e){function i(){this.constructor=t}H(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var c=function(){return(c=Object.assign||function(t){for(var e,i=1,s=arguments.length;ia[0]&&e[1]document.documentElement.clientWidth-s||i>document.documentElement.clientHeight-s||ethis.minScrollPos||ithis.minScrollPos&&this.options.bounces[0]||ithis.minScrollPos?this.minScrollPos:this.maxScrollPos:i},v.prototype.end=function(t){var e={duration:0},i=Math.abs(this.currentPos-this.startPos);return this.options.momentum&&tthis.options.momentumLimitDistance?(i=-1===this.direction&&this.options.bounces[0]||1===this.direction&&this.options.bounces[1]?this.wrapperSize:0,e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,i,this.options):{destination:this.currentPos,duration:0}):this.hooks.trigger(this.hooks.eventTypes.end,e),e},v.prototype.momentum=function(t,e,i,s,o,n,r){void 0===r&&(r=this.options);var a=t-e,l=Math.abs(a)/i,e=r.deceleration,i=r.swipeBounceTime,r=r.swipeTime,e={destination:t+l*l/e*(a<0?-1:1),duration:Math.min(r,2*l/e),rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,e,a),e.destinationo&&(e.destination=n?Math.min(o+n/4,o+n/e.rate*l):o,e.duration=i),e.destination=Math.round(e.destination),e},v.prototype.updateDirection=function(){var t=this.currentPos-this.absStartPos;this.setDirection(t)},v.prototype.refresh=function(t){var e=(o=this.options.rect).size,i=o.position,s="static"===window.getComputedStyle(this.wrapper,null).position,o=lt(this.wrapper);this.wrapperSize=this.wrapper["width"===e?"clientWidth":"clientHeight"],this.setContent(t),t=lt(this.content),this.contentSize=t[e],this.relativeOffset=t[i],s&&(this.relativeOffset-=o[i]),this.computeBoundary(),this.setDirection(0)},v.prototype.setContent=function(t){t!==this.content&&(this.content=t,this.resetState())},v.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},v.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var t={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};t.maxScrollPos<0&&(t.maxScrollPos-=this.relativeOffset,0===this.options.specifiedIndexAsContent)&&(t.minScrollPos=-this.relativeOffset),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,t),this.minScrollPos=t.minScrollPos,this.maxScrollPos=t.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPosthis.minScrollPos?t=this.minScrollPos:te+this.directionLockThreshold?this.directionLocked="horizontal":e>=t+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},Yt.prototype.handleEventPassthrough=function(t){var e=At[this.directionLocked];if(e){if(this.eventPassthrough===e.yes)return Bt.yes(t);if(this.eventPassthrough===e.no)return Bt.no(t)}return!1},Yt);function Yt(t,e,i){this.directionLockThreshold=t,this.freeScroll=e,this.eventPassthrough=i,this.reset()}y.prototype.bindActionsHandler=function(){var o=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,function(t){return!o.enabled||o.handleStart(t)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,function(t){var e=t.deltaX,i=t.deltaY,s=t.e;return!o.enabled||(t=e,e=i,e=2===(i=o.options.quadrant)?[e,-t]:3===i?[-t,-e]:4===i?[-e,t]:[t,e],o.hooks.trigger(o.hooks.eventTypes.coordinateTransformation,e={deltaX:e[0],deltaY:e[1]}),o.handleMove(e.deltaX,e.deltaY,s))}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,function(t){return!o.enabled||o.handleEnd(t)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,function(t){o.enabled&&!t._constructed&&o.handleClick(t)})},y.prototype.handleStart=function(t){var e=u();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},y.prototype.handleMove=function(t,e,i){var s,o,n;if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,i))return s=this.scrollBehaviorX.getAbsDist(t),o=this.scrollBehaviorY.getAbsDist(e),n=u(),!!this.checkMomentum(s,o,n)||(this.directionLockAction.checkMovingDirection(s,o,i)?(this.actionsHandler.setInitiated(),!0):(o=this.directionLockAction.adjustDelta(t,e),i=this.scrollBehaviorX.getCurrentPos(),t=this.scrollBehaviorX.move(o.deltaX),e=this.scrollBehaviorY.getCurrentPos(),o=this.scrollBehaviorY.move(o.deltaY),void(this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)||(this.fingerMoved||(this.fingerMoved=!0),e=t!==i||o!==e,this.contentMoved||e||this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&e&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&e&&(this.animater.translate({x:t,y:o}),this.dispatchScroll(n))))))},y.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),1===this.options.probeType)&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos()),1this.options.momentumLimitTime&&ethis.scrollBehaviorX.minScrollPos||i.newXthis.scrollBehaviorY.minScrollPos||i.newYMath.abs(i)&&(i=s),s=0),{x:i=this.scroll.hasHorizontalScroll?i:0,y:s,directionX:0e.minScrollPos||e.currentPosi.minScrollPos||i.currentPoso&&(this.startTime=e,1===c)&&n.hooks.trigger(n.hooks.eventTypes.scroll,s),1=this.pages[i][0].cx);i++);for(o=this.pages[i].length;s=this.pages[0][s].cy);s++);return{pageX:i,pageY:s}},ne.prototype.buildPagesMatrix=function(t,e){for(var i,s,o=[],n=0,r=0,a=this.scroll.scroller.scrollBehaviorX.maxScrollPos,l=this.scroll.scroller.scrollBehaviorY.maxScrollPos,h=Math.round(t/2),c=Math.round(e/2);n>-this.scrollerWidth;){for(o[r]=[],i=s=0;i>-this.scrollerHeight;)o[r][s]={x:Math.max(n,a),y:Math.max(i,l),width:t,height:e,cx:n-h,cy:i-c},i-=e,s++;n-=t,r++}return o},ne);function ne(t){this.scroll=t,this.init()}var re={pageX:0,pageY:0,x:0,y:0},ae=(C.prototype.refresh=function(){this.pagesMatrix=new oe(this.scroll),this.checkSlideLoop(),this.currentPage=this.getAdjustedCurrentPage()},C.prototype.getAdjustedCurrentPage=function(){var t=this.currentPage,e=t.pageX,i=t.pageY,e=Math.min(e,this.pagesMatrix.pageLengthOfX-1),i=Math.min(i,this.pagesMatrix.pageLengthOfY-1);return{pageX:e=this.loopX?Math.min(e,this.pagesMatrix.pageLengthOfX-2):e,pageY:i=this.loopY?Math.min(i,this.pagesMatrix.pageLengthOfY-2):i,x:(t=this.pagesMatrix.getPageStats(e,i)).x,y:t.y}},C.prototype.setCurrentPage=function(t){this.currentPage=t},C.prototype.getInternalPage=function(t,e){t>=this.pagesMatrix.pageLengthOfX?t=this.pagesMatrix.pageLengthOfX-1:t<0&&(t=0),e>=this.pagesMatrix.pageLengthOfY?e=this.pagesMatrix.pageLengthOfY-1:e<0&&(e=0);var i=this.pagesMatrix.getPageStats(t,e);return{pageX:t,pageY:e,x:i.x,y:i.y}},C.prototype.getInitialPage=function(t,e){var i=(a=this.slideOptions).startPageXIndex,s=a.startPageYIndex,o=this.loopX?1:0,n=this.loopY?1:0,r=(t=void 0!==t&&t)?o:this.currentPage.pageX,a=(t||this.currentPage.pageY,(e=void 0!==e&&e)?(r=this.loopX?i+1:i,this.loopY?s+1:s):(r=t?o:this.currentPage.pageX,t?n:this.currentPage.pageY));return{pageX:r,pageY:a,x:(n=this.pagesMatrix.getPageStats(r,a)).x,y:n.y}},C.prototype.getExposedPage=function(t){return t=r({},t),this.loopX&&(t.pageX=this.fixedPage(t.pageX,this.pagesMatrix.pageLengthOfX-2)),this.loopY&&(t.pageY=this.fixedPage(t.pageY,this.pagesMatrix.pageLengthOfY-2)),t},C.prototype.getExposedPageByPageIndex=function(t,e){var i={pageX:t,pageY:e};return this.loopX&&(i.pageX=t+1),this.loopY&&(i.pageY=e+1),{x:(i=this.pagesMatrix.getPageStats(i.pageX,i.pageY)).x,y:i.y,pageX:t,pageY:e}},C.prototype.getWillChangedPage=function(t){return t=r({},t),this.loopX&&(t.pageX=this.fixedPage(t.pageX,this.pagesMatrix.pageLengthOfX-2),t.x=this.pagesMatrix.getPageStats(t.pageX+1,0).x),this.loopY&&(t.pageY=this.fixedPage(t.pageY,this.pagesMatrix.pageLengthOfY-2),t.y=this.pagesMatrix.getPageStats(0,t.pageY+1).y),t},C.prototype.fixedPage=function(t,e){for(var i=[],s=0;sthis.list.length&&(e=i-this.list.length,this.addEmptyData(e)),[2,this.checkToFetch(i)]})})},xe.prototype.add=function(t){for(var e=0;e=t.length&&(e=t.length-1),i>t.length&&(i=t.length),this.collectUnusedDom(t,e,i),this.createDom(t,e,i),this.cacheHeight(t,e,i),{start:e,startPos:(t=this.positionDom(t,e,i)).startPos,startDelta:t.startDelta,end:i,endPos:t.endPos}},L.prototype.collectUnusedDom=function(t,e,i){for(var s,o=0;othis.scroll.maxScrollY&&(this.scroll.maxScrollY=-(t-this.scroll.scroller.scrollBehaviorY.wrapperSize)),{end:i,startPos:s,endPos:t}},I.prototype.destroy=function(){for(var t=(e=this.scroll.scroller).content,e=e.scrollBehaviorY;t.firstChild;)t.removeChild(t.firstChild);this.domManager.destroy(),this.scroll.off("scroll",this.update),this.scroll.off("destroy",this.destroy),e.hooks.off(e.hooks.eventTypes.computeBoundary)},I.pluginName="infinity";var Ce=I;function I(t){this.scroll=t,this.start=0,this.end=0,this.init()}var Pe=[{key:"putAt",name:"putAt"}].map(function(t){return{key:t.key,sourceKey:"plugins.movable."+t.name}}),Me=(B.prototype.handleBScroll=function(){this.scroll.proxy(Pe)},B.prototype.handleHooks=function(){var t=this;function e(t,e){0i&&(this.startTime=e,1===o)&&s.hooks.trigger(s.hooks.eventTypes.scroll,t),1l.endVal);l.frameVal=e?l.endVal:l.frameVal,l.frameVal=Number(l.frameVal.toFixed(l.options.decimalPlaces)),l.printValue(l.frameVal),twindow.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>s||et,t-this.startVal);Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing?(this.finalEndVal=t,e=this.countDown?1:-1,this.endVal=t+e*this.options.smartEasingAmount,this.duration=this.duration/2):(this.endVal=t,this.finalEndVal=null),null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(t&&(this.options.onCompleteCallback=t),0=s.length-1?r(!0):a(e+1):r(!1)})}a(0)};a.Geetest&&(f.slide="loaded");return a.initGeetest=i}),function(f){f.fn.qrcode=function(h){function e(t){this.mode=i,this.data=t}function c(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function d(t,e){if(null==t.length)throw Error(t.length+"/"+e);for(var i=0;i>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=s}for(i=0;i<18;i++)s=!t&&1==(e>>i&1),this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=s},setupTypeInfo:function(t,e){for(var i=u.getBCHTypeInfo(this.errorCorrectLevel<<3|e),s=0;s<15;s++){var o=!t&&1==(i>>s&1);s<6?this.modules[s][8]=o:s<8?this.modules[s+1][8]=o:this.modules[this.moduleCount-15+s][8]=o}for(s=0;s<15;s++)o=!t&&1==(i>>s&1),s<8?this.modules[8][this.moduleCount-s-1]=o:s<9?this.modules[8][15-s-1+1]=o:this.modules[8][15-s-1]=o;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var i=-1,s=this.moduleCount-1,o=7,n=0,r=this.moduleCount-1;0>>o&1)),u.getMask(e,s,r-l)&&(a=!a),this.modules[s][r-l]=a,-1==--o)&&(n++,o=7);if((s+=i)<0||this.moduleCount<=s){s-=i,i=-i;break}}}},c.PAD0=236,c.PAD1=17,c.createData=function(t,e,i){for(var e=p.getRSBlocks(t,e),s=new r,o=0;o8*t)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*t+")");for(s.getLengthInBits()+4<=8*t&&s.put(0,4);0!=s.getLengthInBits()%8;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*t)&&(s.put(c.PAD0,8),!(s.getLengthInBits()>=8*t));)s.put(c.PAD1,8);return c.createBytes(s,e)},c.createBytes=function(t,e){for(var i=0,s=0,o=0,n=Array(e.length),r=Array(e.length),a=0;a>>=1;return e},getPatternPosition:function(t){return u.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case 0:return 0==(e+i)%2;case 1:return 0==e%2;case 2:return 0==i%3;case 3:return 0==(e+i)%3;case 4:return 0==(Math.floor(e/2)+Math.floor(i/3))%2;case 5:return 0==e*i%2+e*i%3;case 6:return 0==(e*i%2+e*i%3)%2;case 7:return 0==(e*i%3+(e+i)%2)%2;default:throw Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new d([1],0),i=0;i>>7-t%8&1)},put:function(t,e){for(var i=0;i>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},"string"==typeof h&&(h={text:h}),h=f.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:2,background:"#ffffff",foreground:"#000000"},h),this.each(function(){var t;if("canvas"==h.render){(t=new c(h.typeNumber,h.correctLevel)).addData(h.text),t.make();var e=document.createElement("canvas");e.width=h.width,e.height=h.height;for(var i=e.getContext("2d"),s=h.width/t.getModuleCount(),o=h.height/t.getModuleCount(),n=0;n").css("width",h.width+"px").css("height",h.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",h.background),i=h.width/t.getModuleCount(),s=h.height/t.getModuleCount(),o=0;o").css("height",s+"px").appendTo(e),r=0;r").css("width",i+"px").css("background-color",t.isDark(o,r)?h.foreground:h.background).appendTo(n);t=e,jQuery(t).appendTo(this)})}}(jQuery),function(){function e(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i,this.options=e.Adapter.extend({},e.defaults,t),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,i+=1}var i=0,n={};e.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},e.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(t){var e,i=[];for(e in n)i.push(n[e]);for(var s=0,o=i.length;sn.oldScroll?n.forward:n.backward;for(o in this.waypoints[t]){var a,l,h=this.waypoints[t][o];null!==h.triggerPoint&&(a=n.oldScroll=h.triggerPoint,a&&l||!a&&!l)&&(h.queueTrigger(r),i[h.group.id]=h.group)}}for(e in i)i[e].flushTriggers();this.oldScroll={x:s.horizontal.newScroll,y:s.vertical.newScroll}},i.prototype.innerHeight=function(){return this.element==this.element.window?u.viewportHeight():this.adapter.innerHeight()},i.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},i.prototype.innerWidth=function(){return this.element==this.element.window?u.viewportWidth():this.adapter.innerWidth()},i.prototype.destroy=function(){var t,e=[];for(t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var s=0,o=e.length;s=r.oldScroll,h=!d&&!a,!p&&(d&&a)?(l.queueTrigger(r.backward),o[l.group.id]=l.group):(!p&&h||p&&r.oldScroll>=l.triggerPoint)&&(l.queueTrigger(r.forward),o[l.group.id]=l.group)}}return u.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},i.findOrCreateByElement=function(t){return i.findByElement(t)||new i(t)},i.refreshAll=function(){for(var t in o)o[t].refresh()},i.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),i.refreshAll()},u.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},u.Context=i}(),function(){function n(t,e){return t.triggerPoint-e.triggerPoint}function r(t,e){return e.triggerPoint-t.triggerPoint}function e(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},s=window.Waypoint;e.prototype.add=function(t){this.waypoints.push(t)},e.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},e.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t];e.sort("up"===t||"left"===t?r:n);for(var i=0,s=e.length;i',stuckClass:"stuck",direction:"down right"},o.Sticky=e}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Swiper=e()}(this,function(){function B(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function s(e,i){void 0===e&&(e={}),void 0===i&&(i={}),Object.keys(i).forEach(function(t){void 0===e[t]?e[t]=i[t]:B(i[t])&&B(e[t])&&0")){var a="div";for(0===r.indexOf(":~]/)?(e||v).querySelectorAll(t.trim()):[v.getElementById(t.trim().split("#")[1])],s=0;ss.slides.length)break;o.push(s.slides.eq(r)[0])}else o.push(s.slides.eq(s.activeIndex)[0]);for(e=0;e=e.size)&&(e.visibleSlides.push(h),e.visibleSlidesIndexes.push(r),s.eq(r).addClass(i.slideVisibleClass)),h.progress=o?-c:c}e.visibleSlides=S(e.visibleSlides)}},updateProgress:function(t){var e=this,i=(void 0===t&&(i=e.rtlTranslate?-1:1,t=e&&e.translate&&e.translate*i||0),e.params),s=e.maxTranslate()-e.minTranslate(),o=e.progress,n=e.isBeginning,r=n,a=l=e.isEnd,l=0==s?n=!(o=0):(n=(o=(t-e.minTranslate())/s)<=0,1<=o);U.extend(e,{progress:o,isBeginning:n,isEnd:l}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),n&&!r&&e.emit("reachBeginning toEdge"),l&&!a&&e.emit("reachEnd toEdge"),(r&&!n||a&&!l)&&e.emit("fromEdge"),e.emit("progress",o)},updateSlidesClasses:function(){var t=(r=this).slides,e=r.params,i=r.$wrapperEl,s=r.activeIndex,o=r.realIndex,n=r.virtual&&e.virtual.enabled,r=(t.removeClass(e.slideActiveClass+" "+e.slideNextClass+" "+e.slidePrevClass+" "+e.slideDuplicateActiveClass+" "+e.slideDuplicateNextClass+" "+e.slideDuplicatePrevClass),(n=n?r.$wrapperEl.find("."+e.slideClass+'[data-swiper-slide-index="'+s+'"]'):t.eq(s)).addClass(e.slideActiveClass),e.loop&&(n.hasClass(e.slideDuplicateClass)?i.children("."+e.slideClass+":not(."+e.slideDuplicateClass+')[data-swiper-slide-index="'+o+'"]'):i.children("."+e.slideClass+"."+e.slideDuplicateClass+'[data-swiper-slide-index="'+o+'"]')).addClass(e.slideDuplicateActiveClass),n.nextAll("."+e.slideClass).eq(0).addClass(e.slideNextClass)),s=(e.loop&&0===r.length&&(r=t.eq(0)).addClass(e.slideNextClass),n.prevAll("."+e.slideClass).eq(0).addClass(e.slidePrevClass));e.loop&&0===s.length&&(s=t.eq(-1)).addClass(e.slidePrevClass),e.loop&&((r.hasClass(e.slideDuplicateClass)?i.children("."+e.slideClass+":not(."+e.slideDuplicateClass+')[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]'):i.children("."+e.slideClass+"."+e.slideDuplicateClass+'[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]')).addClass(e.slideDuplicateNextClass),(s.hasClass(e.slideDuplicateClass)?i.children("."+e.slideClass+":not(."+e.slideDuplicateClass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]'):i.children("."+e.slideClass+"."+e.slideDuplicateClass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]')).addClass(e.slideDuplicatePrevClass))},updateActiveIndex:function(t){var e=this,i=e.rtlTranslate?e.translate:-e.translate,s=e.slidesGrid,o=e.snapGrid,n=e.params,r=e.activeIndex,a=e.realIndex,l=e.snapIndex,h=t;if(void 0===h){for(var c=0;c=s[c]&&i=s[c]&&i=s[c]&&(h=c);n.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}(t=0<=o.indexOf(i)?o.indexOf(i):(t=Math.min(n.slidesPerGroupSkip,h))+Math.floor((h-t)/n.slidesPerGroup))>=o.length&&(t=o.length-1),h===r?t!==l&&(e.snapIndex=t,e.emit("snapIndexChange")):(n=parseInt(e.slides.eq(h).attr("data-swiper-slide-index")||h,10),U.extend(e,{snapIndex:t,realIndex:n,previousIndex:r,activeIndex:h}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==n&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange"))},updateClickedSlide:function(t){var e=this,i=e.params,s=S(t.target).closest("."+i.slideClass)[0],o=!1;if(s)for(var n=0;n=r.length&&(u=r.length-1),(h||t.initialSlide||0)===(l||0)&&i&&o.emit("beforeSlideChangeStart"),-r[u]);if(o.updateProgress(f),t.normalizeSlideIndex)for(var m=0;m=Math.floor(100*a[m])&&(n=m);if(o.initialized&&n!==h){if(!o.allowSlideNext&&fo.translate&&f>o.maxTranslate()&&(h||0)!==n)return!1}return p=h=n.snapGrid[a]?(o=n.snapGrid[a],(n.snapGrid[a+1]-o)*se.slides.length-e.loopedSlides+o/2?(e.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),U.nextTick(function(){e.slideTo(n)})):e.slideTo(n):n>e.slides.length-o?(e.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),U.nextTick(function(){e.slideTo(n)})):e.slideTo(n)):e.slideTo(n)}};var N={loopCreate:function(){var s=this,t=s.params,e=s.$wrapperEl,o=(e.children("."+t.slideClass+"."+t.slideDuplicateClass).remove(),e.children("."+t.slideClass));if(t.loopFillGroupWithBlank){var i=t.slidesPerGroup-o.length%t.slidesPerGroup;if(i!==t.slidesPerGroup){for(var n=0;no.length&&(s.loopedSlides=o.length);var a=[],l=[];o.each(function(t,e){var i=S(e);t=o.length-s.loopedSlides&&a.push(e),i.attr("data-swiper-slide-index",t)});for(var h=0;h=i.length-s&&(l=-i.length+e+s,t.slideTo(l+=s,0,!1,!0))&&0!=r&&t.setTranslate((a?-t.translate:t.translate)-r),t.allowSlidePrev=o,t.allowSlideNext=n,t.emit("loopFix")},loopDestroy:function(){var t=this.$wrapperEl,e=this.params,i=this.slides;t.children("."+e.slideClass+"."+e.slideDuplicateClass+",."+e.slideClass+"."+e.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}};var F={setGrabCursor:function(t){var e=this;T.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||((e=e.el).style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab")},unsetGrabCursor:function(){T.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}};var i,o,r,a,h,$={appendSlide:function(t){var e=this,i=e.$wrapperEl,s=e.params;if(s.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(var o=0;o=K.screen.width-n))||(U.extend(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),h.startX=i,h.startY=s,a.touchStartTime=U.now(),r.allowClick=!0,r.updateSize(),r.swipeDirection=void 0,0o.startY&&e.translate>=e.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(ao.startX&&e.translate>=e.minTranslate())return;if(i.isTouchEvent&&v.activeElement&&t.target===v.activeElement&&S(t.target).is(i.formElements))i.isMoved=!0,e.allowClick=!1;else if(i.allowTouchCallbacks&&e.emit("touchMove",t),!(t.targetTouches&&1s.touchAngle:90-c>s.touchAngle)),i.isScrolling&&e.emit("touchMoveOpposite",t),void 0!==i.startMoving||o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0),i.isScrolling)i.isTouched=!1;else if(i.startMoving){e.allowClick=!1,!s.cssMode&&t.cancelable&&t.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&t.stopPropagation(),i.isMoved||(s.loop&&e.loopFix(),i.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!s.grabCursor||!0!==e.allowSlideNext&&!0!==e.allowSlidePrev||e.setGrabCursor(!0),e.emit("sliderFirstMove",t)),e.emit("sliderMove",t),i.isMoved=!0;var c=e.isHorizontal()?l:h,l=(o.diff=c,c*=s.touchRatio,e.swipeDirection=0<(c=n?-c:c)?"prev":"next",i.currentTranslate=c+i.startTranslate,!0),h=s.resistanceRatio;if(s.touchReleaseOnEdges&&(h=0),0e.minTranslate()?(l=!1,s.resistance&&(i.currentTranslate=e.minTranslate()-1+Math.pow(-e.minTranslate()+i.startTranslate+c,h))):c<0&&i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),0s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=e.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}s.followFinger&&!s.cssMode&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),s.freeMode&&(0===i.velocities.length&&i.velocities.push({position:o[e.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:o[e.isHorizontal()?"currentX":"currentY"],time:U.now()})),e.updateProgress(i.currentTranslate),e.setTranslate(i.currentTranslate))}}}else e.allowClick=!1,i.isTouched&&(U.extend(o,{startX:a,startY:r,currentX:a,currentY:r}),i.touchStartTime=U.now())}}else i.startMoving&&i.isScrolling&&e.emit("touchMoveOpposite",t)}.bind(e),e.onTouchEnd=function(t){var e=this,i=e.touchEventsData,s=e.params,o=e.touches,n=e.rtlTranslate,r=e.$wrapperEl,a=e.slidesGrid,l=e.snapGrid;if(t.originalEvent&&(t=t.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",t),i.allowTouchCallbacks=!1,i.isTouched){s.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var h,c=U.now(),d=c-i.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(t),e.emit("tap click",t),d<300)&&c-i.lastClickTime<300&&e.emit("doubleTap doubleClick",t),i.lastClickTime=U.now(),U.nextTick(function(){e.destroyed||(e.allowClick=!0)}),i.isTouched&&i.isMoved&&e.swipeDirection&&0!==o.diff&&i.currentTranslate!==i.startTranslate){if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=s.followFinger?n?e.translate:-e.translate:-i.currentTranslate,!s.cssMode)if(s.freeMode)if(h<-e.minTranslate())e.slideTo(e.activeIndex);else if(h>-e.maxTranslate())e.slides.lengthe.minTranslate())s.freeModeMomentumBounce?(m-e.minTranslate()>o&&(m=e.minTranslate()+o),p=e.minTranslate(),i.allowMomentumBounce=c=!0):m=e.minTranslate(),s.loop&&s.centeredSlides&&(u=!0);else if(s.freeModeSticky){for(var g,v=0;v-m){g=v;break}m=-(m=Math.abs(l[g]-m)=s.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var y=0,b=e.slidesSizesGrid[0],w=0;w=a[w]&&h=a[w]&&(y=w,b=a[a.length-1]-a[a.length-2])}n=(h-a[y])/b,o=ys.longSwipesMs?s.longSwipes?("next"===e.swipeDirection&&(n>=s.longSwipesRatio?e.slideTo(y+o):e.slideTo(y)),"prev"===e.swipeDirection&&(n>1-s.longSwipesRatio?e.slideTo(y+o):e.slideTo(y))):e.slideTo(e.activeIndex):s.shortSwipes?e.navigation&&(t.target===e.navigation.nextEl||t.target===e.navigation.prevEl)?t.target===e.navigation.nextEl?e.slideTo(y+o):e.slideTo(y):("next"===e.swipeDirection&&e.slideTo(y+o),"prev"===e.swipeDirection&&e.slideTo(y)):e.slideTo(e.activeIndex)}}else i.isTouched=!1,i.isMoved=!1,i.startMoving=!1}else i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1}.bind(e),i.cssMode&&(e.onScroll=function(){var t=this,e=t.wrapperEl,i=t.rtlTranslate;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=i?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses(),(e=0==(e=t.maxTranslate()-t.minTranslate())?0:(t.translate-t.minTranslate())/e)!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}.bind(e)),e.onClick=function(t){this.allowClick||(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}.bind(e),!!i.nested);!T.touch&&T.pointerEvents?(o.addEventListener(s.start,e.onTouchStart,!1),v.addEventListener(s.move,e.onTouchMove,r),v.addEventListener(s.end,e.onTouchEnd,!1)):(T.touch&&(t=!("touchstart"!==s.start||!T.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1},o.addEventListener(s.start,e.onTouchStart,t),o.addEventListener(s.move,e.onTouchMove,T.passiveListener?{passive:!1,capture:r}:r),o.addEventListener(s.end,e.onTouchEnd,t),s.cancel&&o.addEventListener(s.cancel,e.onTouchEnd,t),R||(v.addEventListener("touchstart",W),R=!0)),(i.simulateTouch&&!c.ios&&!c.android||i.simulateTouch&&!T.touch&&c.ios)&&(o.addEventListener("mousedown",e.onTouchStart,!1),v.addEventListener("mousemove",e.onTouchMove,r),v.addEventListener("mouseup",e.onTouchEnd,!1))),(i.preventClicks||i.preventClicksPropagation)&&o.addEventListener("click",e.onClick,!0),i.cssMode&&n.addEventListener("scroll",e.onScroll),i.updateOnWindowResize?e.on(c.ios||c.android?"resize orientationchange observerUpdate":"resize observerUpdate",d,!0):e.on("observerUpdate",d,!0)},detachEvents:function(){var t,e=this,i=e.params,s=e.touchEvents,o=e.el,n=e.wrapperEl,r=!!i.nested;!T.touch&&T.pointerEvents?(o.removeEventListener(s.start,e.onTouchStart,!1),v.removeEventListener(s.move,e.onTouchMove,r),v.removeEventListener(s.end,e.onTouchEnd,!1)):(T.touch&&(t=!("onTouchStart"!==s.start||!T.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1},o.removeEventListener(s.start,e.onTouchStart,t),o.removeEventListener(s.move,e.onTouchMove,r),o.removeEventListener(s.end,e.onTouchEnd,t),s.cancel)&&o.removeEventListener(s.cancel,e.onTouchEnd,t),(i.simulateTouch&&!c.ios&&!c.android||i.simulateTouch&&!T.touch&&c.ios)&&(o.removeEventListener("mousedown",e.onTouchStart,!1),v.removeEventListener("mousemove",e.onTouchMove,r),v.removeEventListener("mouseup",e.onTouchEnd,!1))),(i.preventClicks||i.preventClicksPropagation)&&o.removeEventListener("click",e.onClick,!0),i.cssMode&&n.removeEventListener("scroll",e.onScroll),e.off(c.ios||c.android?"resize orientationchange observerUpdate":"resize observerUpdate",d)}},breakpoints:{setBreakpoint:function(){var t,i,e,s,o=this,n=o.activeIndex,r=o.initialized,a=o.loopedSlides,l=(void 0===a&&(a=0),o.params),h=o.$el,c=l.breakpoints;c&&0!==Object.keys(c).length&&(t=o.getBreakpoint(c))&&o.currentBreakpoint!==t&&((i=t in c?c[t]:void 0)&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(t){var e=i[t];void 0!==e&&(i[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")}),c=i||o.originalParams,e=1'+t+"")).attr("data-swiper-slide-index")||t.attr("data-swiper-slide-index",e),s.cache&&(i.virtual.cache[e]=t),t)},appendSlide:function(t){if("object"==typeof t&&"length"in t)for(var e=0;eMath.abs(r.pixelY)))return!0;o=-r.pixelX*n}else{if(!(Math.abs(r.pixelY)>Math.abs(r.pixelX)))return!0;o=-r.pixelY}else o=Math.abs(r.pixelX)>Math.abs(r.pixelY)?-r.pixelX*n:-r.pixelY;if(0===o)return!0;if(s.invert&&(o=-o),i.params.freeMode){var a={time:U.now(),delta:Math.abs(o),direction:Math.sign(o)},n=i.mousewheel.lastEventBeforeSnap,r=n&&a.time=i.minTranslate()?i.minTranslate():n)<=i.maxTranslate()&&(n=i.maxTranslate()),i.setTransition(0),i.setTranslate(n),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!s&&i.isBeginning||!c&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0,15<=(l=i.mousewheel.recentWheelEvents).length&&l.shift(),s=l.length?l[l.length-1]:void 0,c=l[0],l.push(a),s&&(a.delta>s.delta||a.direction!==s.direction)?l.splice(0):15<=l.length&&a.time-c.time<500&&1<=c.delta-a.delta&&a.delta<=6&&(h=0r.delta||s.time>r.time+150)&&i.mousewheel.animateSlider(s),i.mousewheel.releaseScroll(s))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider:function(t){var e=this;return 6<=t.delta&&U.now()-e.mousewheel.lastScrollTime<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),e.emit("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),e.emit("scroll",t.raw)),e.mousewheel.lastScrollTime=(new K.Date).getTime(),!1)},releaseScroll:function(t){var e=this,i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges)return!0;return!1},enable:function(){var t=this,e=E.event();if(t.params.cssMode)t.wrapperEl.removeEventListener(e,t.mousewheel.handle);else{if(!e)return!1;if(t.mousewheel.enabled)return!1;var i=t.$el;(i="container"!==t.params.mousewheel.eventsTarged?S(t.params.mousewheel.eventsTarged):i).on("mouseenter",t.mousewheel.handleMouseEnter),i.on("mouseleave",t.mousewheel.handleMouseLeave),i.on(e,t.mousewheel.handle),t.mousewheel.enabled=!0}return!0},disable:function(){var t=this,e=E.event();if(t.params.cssMode)t.wrapperEl.addEventListener(e,t.mousewheel.handle);else{if(!e)return!1;if(!t.mousewheel.enabled)return!1;var i=t.$el;(i="container"!==t.params.mousewheel.eventsTarged?S(t.params.mousewheel.eventsTarged):i).off(e,t.mousewheel.handle),t.mousewheel.enabled=!1}return!0}},C={update:function(){var t,e,i=this,s=i.params.navigation;i.params.loop||(t=(e=i.navigation).$nextEl,(e=e.$prevEl)&&0i-1-2*t.loopedSlides&&(o-=i-2*t.loopedSlides),r-1s.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=s.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),a=o-t.pagination.dynamicBulletIndex,h=((l=a+(Math.min(c.length,s.dynamicMainBullets)-1))+a)/2),c.removeClass(s.bulletActiveClass+" "+s.bulletActiveClass+"-next "+s.bulletActiveClass+"-next-next "+s.bulletActiveClass+"-prev "+s.bulletActiveClass+"-prev-prev "+s.bulletActiveClass+"-main"),1=c.length-s.dynamicMainBullets){for(var f=s.dynamicMainBullets;0<=f;--f)c.eq(c.length-f).addClass(s.bulletActiveClass+"-main");c.eq(c.length-s.dynamicMainBullets-1).addClass(s.bulletActiveClass+"-prev")}else i.prev().addClass(s.bulletActiveClass+"-prev").prev().addClass(s.bulletActiveClass+"-prev-prev"),p.next().addClass(s.bulletActiveClass+"-next").next().addClass(s.bulletActiveClass+"-next-next");else i.prev().addClass(s.bulletActiveClass+"-prev").prev().addClass(s.bulletActiveClass+"-prev-prev"),p.next().addClass(s.bulletActiveClass+"-next").next().addClass(s.bulletActiveClass+"-next-next")}}s.dynamicBullets&&(d=Math.min(c.length,s.dynamicMainBullets+4),i=(t.pagination.bulletSize*d-t.pagination.bulletSize)/2-h*t.pagination.bulletSize,p=e?"right":"left",c.css(t.isHorizontal()?p:"top",i+"px"))}"fraction"===s.type&&(n.find("."+s.currentClass).text(s.formatFractionCurrent(o+1)),n.find("."+s.totalClass).text(s.formatFractionTotal(r))),"progressbar"===s.type&&(d=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical",h=(o+1)/r,p=e=1,"horizontal"===d?e=h:p=h,n.find("."+s.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+e+") scaleY("+p+")").transition(t.params.speed)),"custom"===s.type&&s.renderCustom?(n.html(s.renderCustom(t,o+1,r)),t.emit("paginationRender",t,n[0])):t.emit("paginationUpdate",t,n[0]),n[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](s.lockClass)}},render:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var i=(t.virtual&&t.params.virtual.enabled?t.virtual:t).slides.length,s=t.pagination.$el,o="";if("bullets"===e.type){for(var n=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length,r=0;r";s.html(o),t.pagination.bullets=s.find("."+e.bulletClass)}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):' / ',s.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):'',s.html(o)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var t,e=this,i=e.params.pagination;i.el&&0!==(t=S(i.el)).length&&(e.params.uniqueNavElements&&"string"==typeof i.el&&1'),i.append(s)),U.extend(t,{$el:i,el:i[0],$dragEl:s,dragEl:s[0]}),e.draggable)&&t.enableDraggable()},destroy:function(){this.scrollbar.disableDraggable()}},Q={setTransform:function(t,e){var i=this.rtl,t=S(t),i=i?-1:1,s=t.attr("data-swiper-parallax")||"0",o=t.attr("data-swiper-parallax-x"),n=t.attr("data-swiper-parallax-y"),r=t.attr("data-swiper-parallax-scale"),a=t.attr("data-swiper-parallax-opacity");o||n?(o=o||"0",n=n||"0"):this.isHorizontal()?(o=s,n="0"):(n=s,o="0"),o=0<=o.indexOf("%")?parseInt(o,10)*e*i+"%":o*e*i+"px",n=0<=n.indexOf("%")?parseInt(n,10)*e+"%":n*e+"px",null!=a&&(s=a-(a-1)*(1-Math.abs(e)),t[0].style.opacity=s),null==r?t.transform("translate3d("+o+", "+n+", 0px)"):(i=r-(r-1)*(1-Math.abs(e)),t.transform("translate3d("+o+", "+n+", 0px) scale("+i+")"))},setTranslate:function(){var s=this,t=s.$el,e=s.slides,o=s.progress,n=s.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t,e){s.parallax.setTransform(e,o)}),e.each(function(t,e){var i=e.progress;1s.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scales.touchesStart.x))return void(s.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.ys.touchesStart.y))return void(s.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentXs.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentYs.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),o.prevPositionX||(o.prevPositionX=s.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=s.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(s.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(s.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(s.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(s.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=s.touchesCurrent.x,o.prevPositionY=s.touchesCurrent.y,o.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var t,e,i,s,o=this.zoom,n=o.gesture,r=o.image,a=o.velocity;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched&&r.isMoved?(r.isTouched=!1,r.isMoved=!1,t=a.x*(i=300),t=r.currentX+t,e=a.y*(s=300),e=r.currentY+e,0!==a.x&&(i=Math.abs((t-r.currentX)/a.x)),0!==a.y&&(s=Math.abs((e-r.currentY)/a.y)),a=Math.max(i,s),r.currentX=t,r.currentY=e,i=r.width*o.scale,s=r.height*o.scale,r.minX=Math.min(n.slideWidth/2-i/2,0),r.maxX=-r.minX,r.minY=Math.min(n.slideHeight/2-s/2,0),r.maxY=-r.minY,r.currentX=Math.max(Math.min(r.currentX,r.maxX),r.minX),r.currentY=Math.max(Math.min(r.currentY,r.maxY),r.minY),n.$imageWrapEl.transition(a).transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")):(r.isTouched=!1,r.isMoved=!1))},onTransitionEnd:function(){var t=this.zoom,e=t.gesture;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl&&e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl&&e.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,i,s,o,n=this.zoom,r=this.params.zoom,a=n.gesture,l=n.image;a.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?a.$slideEl=this.$wrapperEl.children("."+this.params.slideActiveClass):a.$slideEl=this.slides.eq(this.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),a.$imageWrapEl=a.$imageEl.parent("."+r.containerClass)),a.$imageEl&&0!==a.$imageEl.length&&(a.$slideEl.addClass(""+r.zoomedSlideClass),l=void 0===l.touchesStart.x&&t?(o=("touchend"===t.type?t.changedTouches[0]:t).pageX,("touchend"===t.type?t.changedTouches[0]:t).pageY):(o=l.touchesStart.x,l.touchesStart.y),n.scale=a.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,n.currentScale=a.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,t?(r=a.$slideEl[0].offsetWidth,t=a.$slideEl[0].offsetHeight,o=a.$slideEl.offset().left+r/2-o,l=a.$slideEl.offset().top+t/2-l,s=a.$imageEl[0].offsetWidth,i=a.$imageEl[0].offsetHeight,s=s*n.scale,i=i*n.scale,r=Math.min(r/2-s/2,0),s=Math.min(t/2-i/2,0),(t=-r)<(i=(i=o*n.scale)>1]<=e?s=o:i=o;return i};return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(r=a(this.x,t),n=r-1,(t-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new z.LinearSpline(this.slidesGrid,t.slidesGrid):new z.LinearSpline(this.snapGrid,t.snapGrid))},setTranslate:function(t,e){var i,s,o=this,n=o.controller.control;function r(t){var e=o.rtlTranslate?-o.translate:o.translate;"slide"===o.params.controller.by&&(o.controller.getInterpolateFunction(t),s=-o.controller.spline.interpolate(-e)),s&&"container"!==o.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(o.maxTranslate()-o.minTranslate()),s=(e-o.minTranslate())*i+t.minTranslate()),o.params.controller.inverse&&(s=t.maxTranslate()-s),t.updateProgress(s),t.setTranslate(s,o),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(n))for(var a=0;a'),s.append(t)),t.css({height:n+"px"})):0===(t=i.find(".swiper-cube-shadow")).length&&(t=S('
'),i.append(t)));for(var u,f=0;f'),m.append(v)),0===w.length&&(w=S('
'),m.append(w)),v.length&&(v[0].style.opacity=Math.max(-b,0)),w.length)&&(w[0].style.opacity=Math.max(b,0))}s.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),h.shadow&&(c?t.transform("translate3d(0px, "+(n/2+h.shadowOffset)+"px, "+-n/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.shadowScale+")"):(i=Math.abs(p)-90*Math.floor(Math.abs(p)/90),n=1.5-(Math.sin(2*i*Math.PI/360)/2+Math.cos(2*i*Math.PI/360)/2),i=h.shadowScale,n=h.shadowScale/n,u=h.shadowOffset,t.transform("scale3d("+i+", 1, "+n+") translate3d(0px, "+(r/2+u)+"px, "+-r/2/n+"px) rotateX(-90deg)"))),s.transform("translate3d(0px,0,"+(k.isSafari||k.isWebView?-l/2:0)+"px) rotateX("+(e.isHorizontal()?0:p)+"deg) rotateY("+(e.isHorizontal()?-p:0)+"deg)")},setTransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},ot={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,i=0;i'),n.append(s)),0===o.length&&(o=S('
'),n.append(o)),s.length&&(s[0].style.opacity=Math.max(-r,0)),o.length)&&(o[0].style.opacity=Math.max(r,0)),n.transform("translate3d("+a+"px, "+c+"px, 0px) rotateX("+h+"deg) rotateY("+l+"deg)")}},setTransition:function(t){var i,s=this,e=s.slides,o=s.activeIndex,n=s.$wrapperEl;e.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),s.params.virtualTranslate&&0!==t&&(i=!1,e.eq(o).transitionEnd(function(){if(!i&&s&&!s.destroyed){i=!0,s.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],e=0;e'),u.append(f)),0===y.length&&(y=S('
'),u.append(y)),f.length&&(f[0].style.opacity=0e.previousIndex?"next":"prev"):(o=e.realIndex)>e.previousIndex?"next":"prev",l&&(o+="next"===n?a:-1*a),i.visibleSlidesIndexes)&&i.visibleSlidesIndexes.indexOf(o)<0&&(i.params.centeredSlides?o=s')}}),Object.keys(et).forEach(function(t){e.a11y[t]=et[t].bind(e)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){U.extend(this,{history:{init:D.init.bind(this),setHistory:D.setHistory.bind(this),setHistoryPopState:D.setHistoryPopState.bind(this),scrollToSlide:D.scrollToSlide.bind(this),destroy:D.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)},slideChange:function(){this.history.initialized&&this.params.cssMode&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){U.extend(this,{hashNavigation:{initialized:!1,init:O.init.bind(this),destroy:O.destroy.bind(this),setHash:O.setHash.bind(this),onHashCange:O.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()},slideChange:function(){this.hashNavigation.initialized&&this.params.cssMode&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;U.extend(e,{autoplay:{running:!1,paused:!1,run:L.run.bind(e),start:L.start.bind(e),stop:L.stop.bind(e),pause:L.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){U.extend(this,{fadeEffect:{setTranslate:it.setTranslate.bind(this),setTransition:it.setTransition.bind(this)}})},on:{beforeInit:function(){var t;"fade"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"fade"),U.extend(this.params,t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}),U.extend(this.originalParams,t))},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){U.extend(this,{cubeEffect:{setTranslate:st.setTranslate.bind(this),setTransition:st.setTransition.bind(this)}})},on:{beforeInit:function(){var t;"cube"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d"),U.extend(this.params,t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0}),U.extend(this.originalParams,t))},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){U.extend(this,{flipEffect:{setTranslate:ot.setTranslate.bind(this),setTransition:ot.setTransition.bind(this)}})},on:{beforeInit:function(){var t;"flip"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d"),U.extend(this.params,t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}),U.extend(this.originalParams,t))},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){U.extend(this,{coverflowEffect:{setTranslate:nt.setTranslate.bind(this),setTransition:nt.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){U.extend(this,{thumbs:{swiper:null,init:rt.init.bind(this),update:rt.update.bind(this),onThumbClick:rt.onThumbClick.bind(this)}})},on:{beforeInit:function(){var t=this.params.thumbs;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(t){var e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];return void 0===u.use&&(u.use=u.Class.use,u.installModule=u.Class.installModule),u.use(I),u}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Viewer=e()}(this,function(){function n(e,t){var i,s=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)),s}function F(s){for(var t=1;t=this.length||this.viewed&&t===this.index)){if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var e,s,o,n=this.element,r=this.options,a=this.title,l=this.canvas,h=this.items[t],c=h.querySelector("img"),d=H(c,"originalUrl"),p=c.getAttribute("alt"),u=document.createElement("img");z(r.inheritedAttributes,function(t){var e=c.getAttribute(t);null!==e&&u.setAttribute(t,e)}),u.src=d,u.alt=p,M(r.view)&&X(n,"view",r.view,{once:!0}),!1===N(n,"view",{originalImage:this.images[t],index:t,image:u})||!this.isShown||this.hiding||this.played||((d=this.items[this.index])&&(B(d,m),d.removeAttribute("aria-selected")),I(h,m),h.setAttribute("aria-selected",!0),r.focus&&h.focus(),this.image=u,this.viewed=!1,this.index=t,this.imageData={},I(u,v),r.loading&&I(l,y),l.innerHTML="",l.appendChild(u),this.renderList(),a.innerHTML="",X(n,S,e=function(){var t=i.imageData,e=Array.isArray(r.title)?r.title[1]:r.title;a.innerHTML=k(e=M(e)?e.call(i,u,t):"".concat(p," (").concat(t.naturalWidth," × ").concat(t.naturalHeight,")"))?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">"):e},{once:!0}),this.viewing={abort:function(){Y(n,S,e),u.complete?i.imageRendering?i.imageRendering.abort():i.imageInitializing&&i.imageInitializing.abort():(u.src="",Y(u,w,s),i.timeout&&clearTimeout(i.timeout))}},u.complete?this.load():(X(u,w,s=function(){Y(u,T,o),i.load()},{once:!0}),X(u,T,o=function(){Y(u,w,s),i.timeout&&(clearTimeout(i.timeout),i.timeout=!1),B(u,v),r.loading&&B(i.canvas,y)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){B(u,v),i.timeout=!1},1e3)))}return this},prev:function(){var t=this.index-1;return t<0&&(t=0Math.abs(a)&&(this.pointers={},1
',p=(i=p.querySelector(".".concat(f,"-container"))).querySelector(".".concat(f,"-title")),s=i.querySelector(".".concat(f,"-toolbar")),u=i.querySelector(".".concat(f,"-navbar")),o=i.querySelector(".".concat(f,"-button")),r=i.querySelector(".".concat(f,"-canvas")),this.parent=e,this.viewer=i,this.title=p,this.toolbar=s,this.navbar=u,this.button=o,this.canvas=r,this.footer=i.querySelector(".".concat(f,"-footer")),this.tooltipBox=i.querySelector(".".concat(f,"-tooltip")),this.player=i.querySelector(".".concat(f,"-player")),this.list=i.querySelector(".".concat(f,"-list")),i.id="".concat(f).concat(this.id),p.id="".concat(f,"Title").concat(this.id),I(p,n.title?gt(Array.isArray(n.title)?n.title[0]:n.title):g),I(u,n.navbar?gt(n.navbar):g),A(o,g,!n.button),n.keyboard&&o.setAttribute("tabindex",0),n.backdrop&&(I(i,"".concat(f,"-backdrop")),n.inline||"static"===n.backdrop||ht(r,et,"hide")),k(n.className)&&n.className&&n.className.split(it).forEach(function(t){I(i,t)}),n.toolbar?(a=document.createElement("ul"),l=P(n.toolbar),h=st.slice(0,3),c=st.slice(7,9),d=st.slice(9),l||I(s,gt(n.toolbar)),z(l?n.toolbar:st,function(t,e){var i,s=l&&P(t),e=l?lt(e):t,o=s&&!C(t.show)?t.show:t;!o||!n.zoomable&&-1!==h.indexOf(e)||!n.rotatable&&-1!==c.indexOf(e)||!n.scalable&&-1!==d.indexOf(e)||(i=s&&!C(t.size)?t.size:t,s=s&&!C(t.click)?t.click:t,t=document.createElement("li"),n.keyboard&&t.setAttribute("tabindex",0),t.setAttribute("role","button"),I(t,"".concat(f,"-").concat(e)),M(s)||ht(t,et,e),E(o)&&I(t,gt(o)),-1!==["small","large"].indexOf(i)?I(t,"".concat(f,"-").concat(i)):"play"===e&&I(t,"".concat(f,"-large")),M(s)&&X(t,b,s),a.appendChild(t))}),s.appendChild(a)):I(s,g),n.rotatable||(I(p=s.querySelectorAll('li[class*="rotate"]'),v),z(p,function(t){s.appendChild(t)})),n.inline?(I(o,V),O(i,{zIndex:n.zIndexInline}),"static"===window.getComputedStyle(e).position&&O(e,{position:"relative"}),e.insertBefore(i,t.nextSibling)):(I(o,$),I(i,W),I(i,R),I(i,g),O(i,{zIndex:n.zIndex}),(u=(u=k(u=n.container)?t.ownerDocument.querySelector(u):u)||this.body).appendChild(i)),n.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,M(n.ready)&&X(t,"ready",n.ready,{once:!0}),!1===N(t,"ready")?this.ready=!1:this.ready&&n.inline&&this.view(this.index))}}]),a(bt,wt),Object.defineProperty(bt,"prototype",{writable:!1}),D((t=Et).prototype,e,i,Tt,xt,St),t}),function(){function e(t,e){return function(){return t.apply(e,arguments)}}var s,t,i,l,o,r=[].indexOf||function(t){for(var e=0,i=this.length;e