function isPassive(){var e=!1;try{addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){e=!0}}))}catch(e){}return e}!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.BScroll=t()}(this,function(){"use strict";function a(e,t){for(;t+1this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(e-this.maxPosY),8);this.indicatorStyle.height=i+"px",e=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=e,this.scroller.options.useTransform?this.indicatorStyle[E.transform]="translateY("+e+"px)"+this.scroller.translateZ:this.indicatorStyle.top=e+"px"}else{var s=Math.round(this.sizeRatioX*this.scroller.x);if(s<0){this.transitionTime(500);var a=Math.max(this.indicatorWidth+3*s,8);this.indicatorStyle.width=a+"px",s=0}else if(s>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(s-this.maxPosX),8);this.indicatorStyle.width=r+"px",s=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=s,this.scroller.options.useTransform?this.indicatorStyle[E.transform]="translateX("+s+"px)"+this.scroller.translateZ:this.indicatorStyle.left=s+"px"}},U.prototype.transitionTime=function(){var e=0this.maxPosX&&(e=this.maxPosX),t<0?t=0:t>this.maxPosY&&(t=this.maxPosY),e=Math.round(e/this.sizeRatioX),t=Math.round(t/this.sizeRatioY),this.scroller.scrollTo(e,t),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},U.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?!(this.wrapper.style.display=""):!(this.wrapper.style.display="none")},U.prototype._calculate=function(){if("vertical"===this.direction){var e=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(e*e/(this.scroller.scrollerHeight||e||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=e-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var t=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(t*t/(this.scroller.scrollerWidth||t||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=t-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},U.prototype._addDOMEvents=function(){var e=p;this._handleDOMEvents(e)},U.prototype._removeDOMEvents=function(){var e=u;this._handleDOMEvents(e),this._handleMoveEvents(e)},U.prototype._handleMoveEvents=function(e){this.scroller.options.disableTouch||e(window,"touchmove",this),this.scroller.options.disableMouse||e(window,"mousemove",this)},U.prototype._handleDOMEvents=function(e){this.scroller.options.disableTouch||(e(this.indicator,"touchstart",this),e(window,"touchend",this)),this.scroller.options.disableMouse||(e(this.indicator,"mousedown",this),e(window,"mouseup",this))},Z.prototype.destroy=function(){var t=this;clearTimeout(this._onResizeHandler),this.tombstonesAnimationHandlers.forEach(function(e){clearTimeout(e)}),this.tombstonesAnimationHandlers=null,this.items.forEach(function(e){e.node&&(t.scrollerEl.removeChild(e.node),e.node=null)}),this.scroller.infiniteScroller=null,this.scroller=null,this.wrapperEl=null,this.scrollerEl=null,this.items=null,this.tombstones=null},Z.prototype.onScroll=function(){var e=-this.scroller.y,t=e-this.anchorScrollTop;this.anchorItem=0==e?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,t),this.anchorScrollTop=e;var i=this._calculateAnchoredItem(this.anchorItem,this.scroller.wrapperHeight),s=this.anchorItem.index,a=i.index;t<0?(s-=30,a+=10):(s-=10,a+=30),this.fill(s,a),this.maybeRequestContent()},Z.prototype.onResize=function(){var e=this.options.createTombstone();e.style.position="absolute",this.scrollerEl.appendChild(e),e.style.display="",this.tombstoneHeight=e.offsetHeight,this.tombstoneWidth=e.offsetWidth,this.scrollerEl.removeChild(e);for(var t=0;tthis.firstAttachedItem;)t-=this.items[i-1].height||this.tombstoneHeight,i--;return t},Z.prototype._setupAnimations=function(i,e){var s=this;for(var t in i){var a=i[t];this.items[t].node.style[E.transform]="translateY("+(this.anchorScrollTop+a[1])+"px) scale("+this.tombstoneWidth/this.items[t].width+", "+this.tombstoneHeight/this.items[t].height+")",this.items[t].node.offsetTop,a[0].offsetTop,this.items[t].node.style[E.transition]=v+"transform 200ms"}for(var r=this.firstAttachedItem;r=this.items.length||!this.items[i].height)&&(s=Math.floor(Math.max(t,0)/this.tombstoneHeight))}return{index:i+=s,offset:t-=s*this.tombstoneHeight}},(Y=Q).prototype._init=function(e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},Y.prototype.setScale=function(e){this.lastScale=l(this.scale)?e:this.scale,this.scale=e},Y.prototype._handleOptions=function(e){this.options=h({},I,e),this.translateZ=this.options.HWCompositing&&w?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&S,this.options.useTransform=this.options.useTransform&&T,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},Y.prototype._addDOMEvents=function(){var e=p;this._handleDOMEvents(e)},Y.prototype._removeDOMEvents=function(){var e=u;this._handleDOMEvents(e)},Y.prototype._handleDOMEvents=function(e){var t=this.options.bindToWrapper?this.wrapper:window;e(window,"orientationchange",this),e(window,"resize",this),this.options.click&&e(this.wrapper,"click",this,!0),this.options.disableMouse||(e(this.wrapper,"mousedown",this),e(t,"mousemove",this),e(t,"mousecancel",this),e(t,"mouseup",this)),x&&!this.options.disableTouch&&(e(this.wrapper,"touchstart",this),e(t,"touchmove",this),e(t,"touchcancel",this),e(t,"touchend",this)),e(this.scroller,E.transitionEnd,this)},Y.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},Y.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var a=this,r=!1,e=this.options.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,e,{get:function(){return r},set:function(e){r=e;for(var t=a.scroller.children.length?a.scroller.children:[a.scroller],i=r&&!a.pulling?"none":"auto",s=0;sthis.minScrollX||this.xthis.minScrollY||this.ythis.options.momentumLimitTime&&!this.moved&&rr+this.options.directionLockThreshold?this.directionLocked="h":r>=a+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)e.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);s=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)e.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,s=this.hasVerticalScroll?s:0,this.movingDirectionX=0this.minScrollX||othis.minScrollX&&p||othis.minScrollX?this.minScrollX:this.maxScrollX),(l>this.minScrollY||lthis.minScrollY&&d||lthis.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(o,l),n-this.startTime>this.options.momentumLimitTime&&(this.startTime=n,this.startX=this.x,this.startY=this.y,1===this.options.probeType&&this.trigger("scroll",{x:this.x,y:this.y})),1document.documentElement.clientWidth-this.options.momentumLimitDistance||vdocument.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(e)}}},_.prototype._end=function(e){if(this.enabled&&!this.destroyed&&C[e.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!P(e.target,this.options.preventDefaultException)&&e.preventDefault(),this.options.stopPropagation&&e.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var t=Math.round(this.x),i=Math.round(this.y),s=t-this.absStartX,a=i-this.absStartY;if(this.directionX=0this.options.momentumLimitDistance||n>this.options.momentumLimitDistance)){var d=!1,h=!1,p=!1,c=!1,u=this.options.bounce;!1!==u&&(d=void 0===u.top||u.top,h=void 0===u.bottom||u.bottom,p=void 0===u.left||u.left,c=void 0===u.right||u.right);var f=-1===this.directionX&&p||1===this.directionX&&c?this.wrapperWidth:0,m=-1===this.directionY&&d||1===this.directionY&&h?this.wrapperHeight:0,v=this.hasHorizontalScroll?L(this.x,this.startX,r,this.maxScrollX,this.minScrollX,f,this.options,this):{destination:t,duration:0},g=this.hasVerticalScroll?L(this.y,this.startY,r,this.maxScrollY,this.minScrollY,m,this.options,this):{destination:i,duration:0};t=v.destination,i=g.destination,l=Math.max(v.duration,g.duration),this.isInTransition=!0}else this.options.wheel&&(i=this._findNearestValidWheel(i).y,l=this.options.wheel.adjustTime||400);var y=D.swipe;if(this.options.snap){var w=this._nearestSnap(t,i);this.currentPage=w,l=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(t-w.x),1e3),Math.min(Math.abs(i-w.y),1e3)),300),t=w.x,i=w.y,this.directionX=0,this.directionY=0,y=this.options.snap.easing||D.bounce}if(t!==this.x||i!==this.y)return(t>this.minScrollX||tthis.minScrollY||ithis.minScrollX?this.minScrollX:r.leftthis.minScrollY?this.minScrollY:r.topthis.minScrollX?i=this.minScrollX:sthis.minScrollY?a=this.minScrollY:rf.maxScrollX&&l++;else for(a=Math.round(e/2),r=Math.round(t/2);i>-f.scrollerWidth;){for(f.pages[n]=[],s=o=0;s>-f.scrollerHeight;)f.pages[n][o]={x:Math.max(i,f.maxScrollX),y:Math.max(s,f.maxScrollY),width:e,height:t,cx:i-a,cy:s-r},s-=t,o++;i-=e,n++}f._checkSnapLoop();var p=m._loopX?1:0,c=m._loopY?1:0;f._goToPage(f.currentPage.pageX||p,f.currentPage.pageY||c,0,void 0,!0);var u=m.threshold;f.snapThresholdY=u%1==0?f.snapThresholdX=u:(f.snapThresholdX=Math.round(f.pages[f.currentPage.pageX][f.currentPage.pageY].width*u),Math.round(f.pages[f.currentPage.pageX][f.currentPage.pageY].height*u))}}),this.on("scrollEnd",function(){m.loop&&(m._loopX?(0===f.currentPage.pageX&&f._goToPage(f.pages.length-2,f.currentPage.pageY,0,void 0,!0),f.currentPage.pageX===f.pages.length-1&&f._goToPage(1,f.currentPage.pageY,0,void 0,!0)):(0===f.currentPage.pageY&&f._goToPage(f.currentPage.pageX,f.pages[0].length-2,0,void 0,!0),f.currentPage.pageY===f.pages[0].length-1&&f._goToPage(f.currentPage.pageX,1,0,void 0,!0)))}),!1!==m.listenFlick&&this.on("flick",function(){var e=m.speed||Math.max(Math.max(Math.min(Math.abs(f.x-f.startX),1e3),Math.min(Math.abs(f.y-f.startY),1e3)),300);f._goToPage(f.currentPage.pageX+f.directionX,f.currentPage.pageY+f.directionY,e)}),this.on("destroy",function(){if(m.loop){var e=f.scroller.children;2this.minScrollX?e=this.minScrollX:ethis.minScrollY?t=this.minScrollY:t=this.pages[i][0].cx){e=this.pages[i][0].x;break}s=this.pages[i].length;for(var a=0;a=this.pages[0][a].cy){t=this.pages[0][a].y;break}return i===this.currentPage.pageX&&((i+=this.directionX)<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),e=this.pages[i][0].x),a===this.currentPage.pageY&&((a+=this.directionY)<0?a=0:a>=this.pages[0].length&&(a=this.pages[0].length-1),t=this.pages[0][a].y),{x:e,y:t,pageX:i,pageY:a}},O.prototype._goToPage=function(e){var t=1=this.pages.length?e=this.pages.length-1:e<0&&(e=0),this.pages[e])){t>=this.pages[e].length?t=this.pages[e].length-1:t<0&&(t=0);var n=this.pages[e][t].x,o=this.pages[e][t].y;i=void 0===i?r.speed||Math.max(Math.max(Math.min(Math.abs(n-this.x),1e3),Math.min(Math.abs(o-this.y),1e3)),300):i,this.currentPage={x:n,y:o,pageX:e,pageY:t},this.scrollTo(n,o,i,s,a)}},O.prototype.goToPage=function(e,t,i,s){var a=this.options.snap;if(a&&this.pages&&this.pages.length){if(a.loop){var r=void 0;a._loopX?((r=this.pages.length-2)<=e?e=r-1:e<0&&(e=0),e+=1):((r=this.pages[0].length-2)<=t?t=r-1:t<0&&(t=0),t+=1)}this._goToPage(e,t,i,s)}},O.prototype.next=function(e,t){if(this.options.snap){var i=this.currentPage.pageX,s=this.currentPage.pageY;++i>=this.pages.length&&this.hasVerticalScroll&&(i=0,s++),this._goToPage(i,s,e,t)}},O.prototype.prev=function(e,t){if(this.options.snap){var i=this.currentPage.pageX,s=this.currentPage.pageY;--i<0&&this.hasVerticalScroll&&(i=0,s--),this._goToPage(i,s,e,t)}},O.prototype.getCurrentPage=function(){var e=this.options.snap;return e?e.loop?e._loopX?h({},this.currentPage,{pageX:this.currentPage.pageX-1}):h({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null},(A=Q).prototype.wheelTo=function(){var e=0this.minScrollX?c=this.minScrollX:cthis.minScrollY?u=this.minScrollY:uthis.minScrollX?r=this.minScrollX:rthis.minScrollY?n=this.minScrollY:nr?r:this.scale=i.length-1?r(!0):n(t+1):r(!1)})};n(0)}function i(e,t,i,s){if(function(e){return"object"==typeof e&&null!==e}(i.getLib))return i._extend(i.getLib),void s(i);if(i.offline)s(i._get_fallback_config());else{var a="geetest_"+(parseInt(1e4*r.random())+(new Date).valueOf());o[a]=function(e){"success"===e.status?s(e.data):e.status?s(i._get_fallback_config()):s(e),o[a]=void 0;try{delete o[a]}catch(e){}},p(i.protocol,e,t,{gt:i.gt,callback:a},function(e){e&&s(i._get_fallback_config())})}}function c(e,t){var i={networkError:"网络错误"};if("function"!=typeof t.onError)throw new Error(i[e]);t.onError(i[e])}var u=function(e){return"string"==typeof e},f={},m={};o.Geetest&&(m.slide="loaded");function s(e,s){var n=new t(e);e.https?n.protocol="https://":e.protocol||(n.protocol=o.location.protocol+"//"),i([n.api_server||n.apiserver],n.type_path,n,function(e){function t(){n._extend(e),s(new o.Geetest(n))}var r=e.type;f[r]=f[r]||[];var i=m[r]||"init";"init"===i?(m[r]="loading",f[r].push(t),p(n.protocol,e.static_servers||e.domains,e[r]||e.path,null,function(e){if(e)m[r]="fail",c("networkError",n);else{m[r]="loaded";for(var t=f[r],i=0,s=t.length;i")){var o="div";for(0===n.indexOf(":~]/)?(t||v).querySelectorAll(e.trim()):[v.getElementById(e.trim().split("#")[1])],s=0;si.slides.length)break;s.push(i.slides.eq(r)[0])}else s.push(i.slides.eq(i.activeIndex)[0]);for(t=0;t=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(n),s.eq(n).addClass(i.slideVisibleClass))}o.progress=a?-l:l}t.visibleSlides=D(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}var s=t.params,a=t.maxTranslate()-t.minTranslate(),r=t.progress,n=t.isBeginning,o=t.isEnd,l=n,d=o;o=0==a?n=!(r=0):(n=(r=(e-t.minTranslate())/a)<=0,1<=r),ne.extend(t,{progress:r,isBeginning:n,isEnd:o}),(s.watchSlidesProgress||s.watchSlidesVisibility||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),n&&!l&&t.emit("reachBeginning toEdge"),o&&!d&&t.emit("reachEnd toEdge"),(l&&!n||d&&!o)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){var e,t=this,i=t.slides,s=t.params,a=t.$wrapperEl,r=t.activeIndex,n=t.realIndex,o=t.virtual&&s.virtual.enabled;i.removeClass(s.slideActiveClass+" "+s.slideNextClass+" "+s.slidePrevClass+" "+s.slideDuplicateActiveClass+" "+s.slideDuplicateNextClass+" "+s.slideDuplicatePrevClass),(e=o?t.$wrapperEl.find("."+s.slideClass+'[data-swiper-slide-index="'+r+'"]'):i.eq(r)).addClass(s.slideActiveClass),s.loop&&(e.hasClass(s.slideDuplicateClass)?a.children("."+s.slideClass+":not(."+s.slideDuplicateClass+')[data-swiper-slide-index="'+n+'"]').addClass(s.slideDuplicateActiveClass):a.children("."+s.slideClass+"."+s.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]').addClass(s.slideDuplicateActiveClass));var l=e.nextAll("."+s.slideClass).eq(0).addClass(s.slideNextClass);s.loop&&0===l.length&&(l=i.eq(0)).addClass(s.slideNextClass);var d=e.prevAll("."+s.slideClass).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=i.eq(-1)).addClass(s.slidePrevClass),s.loop&&(l.hasClass(s.slideDuplicateClass)?a.children("."+s.slideClass+":not(."+s.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicateNextClass):a.children("."+s.slideClass+"."+s.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?a.children("."+s.slideClass+":not(."+s.slideDuplicateClass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicatePrevClass):a.children("."+s.slideClass+"."+s.slideDuplicateClass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,i=this,s=i.rtlTranslate?i.translate:-i.translate,a=i.slidesGrid,r=i.snapGrid,n=i.params,o=i.activeIndex,l=i.realIndex,d=i.snapIndex,h=e;if(void 0===h){for(var p=0;p=a[p]&&s=a[p]&&s=a[p]&&(h=p);n.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if(0<=r.indexOf(s))t=r.indexOf(s);else{var c=Math.min(n.slidesPerGroupSkip,h);t=c+Math.floor((h-c)/n.slidesPerGroup)}if(t>=r.length&&(t=r.length-1),h!==o){var u=parseInt(i.slides.eq(h).attr("data-swiper-slide-index")||h,10);ne.extend(i,{snapIndex:t,realIndex:u,previousIndex:o,activeIndex:h}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==u&&i.emit("realIndexChange"),(i.initialized||i.runCallbacksOnInit)&&i.emit("slideChange")}else t!==d&&(i.snapIndex=t,i.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this,i=t.params,s=D(e.target).closest("."+i.slideClass)[0],a=!1;if(s)for(var r=0;r=l.length&&(m=l.length-1),(p||o.initialSlide||0)===(h||0)&&i&&r.emit("beforeSlideChangeStart");var v,g=-l[m];if(r.updateProgress(g),o.normalizeSlideIndex)for(var y=0;y=Math.floor(100*d[y])&&(n=y);if(r.initialized&&n!==p){if(!r.allowSlideNext&&gr.translate&&g>r.maxTranslate()&&(p||0)!==n)return!1}if(v=p=a.snapGrid[o]){var d=a.snapGrid[o];(a.snapGrid[o+1]-d)*st.slides.length-t.loopedSlides+a/2?(t.loopFix(),r=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),ne.nextTick(function(){t.slideTo(r)})):t.slideTo(r):r>t.slides.length-a?(t.loopFix(),r=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),ne.nextTick(function(){t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}};var d={loopCreate:function(){var s=this,e=s.params,t=s.$wrapperEl;t.children("."+e.slideClass+"."+e.slideDuplicateClass).remove();var a=t.children("."+e.slideClass);if(e.loopFillGroupWithBlank){var i=e.slidesPerGroup-a.length%e.slidesPerGroup;if(i!==e.slidesPerGroup){for(var r=0;ra.length&&(s.loopedSlides=a.length);var o=[],l=[];a.each(function(e,t){var i=D(t);e=a.length-s.loopedSlides&&o.push(t),i.attr("data-swiper-slide-index",e)});for(var d=0;d=s.length-a){t=-s.length+i+a,t+=a,e.slideTo(t,0,!1,!0)&&0!=d&&e.setTranslate((l?-e.translate:e.translate)-d)}e.allowSlidePrev=r,e.allowSlideNext=n,e.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}};var h={setGrabCursor:function(e){var t=this;if(!(M.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){var i=t.el;i.style.cursor="move",i.style.cursor=e?"-webkit-grabbing":"-webkit-grab",i.style.cursor=e?"-moz-grabbin":"-moz-grab",i.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){M.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}};var p,c,u,f,m,g,y,w,b,x,T,S,E,C,P,k={appendSlide:function(e){var t=this,i=t.$wrapperEl,s=t.params;if(s.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var a=0;a=re.screen.width-h)){if(ne.extend(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=o,a.startY=l,i.touchStartTime=ne.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,0a.startY&&t.translate>=t.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(la.startX&&t.translate>=t.minTranslate())return;if(i.isTouchEvent&&v.activeElement&&n.target===v.activeElement&&D(n.target).is(i.formElements))return i.isMoved=!0,void(t.allowClick=!1);if(i.allowTouchCallbacks&&t.emit("touchMove",n),!(n.targetTouches&&1s.touchAngle:90-c>s.touchAngle);if(i.isScrolling&&t.emit("touchMoveOpposite",n),void 0===i.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){t.allowClick=!1,s.cssMode||n.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&n.stopPropagation(),i.isMoved||(s.loop&&t.loopFix(),i.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!s.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",n)),t.emit("sliderMove",n),i.isMoved=!0;var u=t.isHorizontal()?h:p;a.diff=u,u*=s.touchRatio,r&&(u=-u),t.swipeDirection=0t.minTranslate()?(f=!1,s.resistance&&(i.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+i.startTranslate+u,m))):u<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,a.startX=a.currentX,a.startY=a.currentY,i.currentTranslate=i.startTranslate,void(a.diff=t.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}s.followFinger&&!s.cssMode&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),s.freeMode&&(0===i.velocities.length&&i.velocities.push({position:a[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:a[t.isHorizontal()?"currentX":"currentY"],time:ne.now()})),t.updateProgress(i.currentTranslate),t.setTranslate(i.currentTranslate))}}}}}else i.startMoving&&i.isScrolling&&t.emit("touchMoveOpposite",n)}.bind(e),e.onTouchEnd=function(e){var t=this,i=t.touchEventsData,s=t.params,a=t.touches,r=t.rtlTranslate,n=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,d=e;if(d.originalEvent&&(d=d.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",d),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var h,p=ne.now(),c=p-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap click",d),c<300&&p-i.lastClickTime<300&&t.emit("doubleTap doubleClick",d)),i.lastClickTime=ne.now(),ne.nextTick(function(){t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===a.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=s.followFinger?r?t.translate:-t.translate:-i.currentTranslate,!s.cssMode)if(s.freeMode){if(h<-t.minTranslate())return void t.slideTo(t.activeIndex);if(h>-t.maxTranslate())return void(t.slides.lengtht.minTranslate())s.freeModeMomentumBounce?(w-t.minTranslate()>S&&(w=t.minTranslate()+S),b=t.minTranslate(),T=!0,i.allowMomentumBounce=!0):w=t.minTranslate(),s.loop&&s.centeredSlides&&(x=!0);else if(s.freeModeSticky){for(var E,C=0;C-w){E=C;break}w=-(w=Math.abs(l[E]-w)=s.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,z=t.slidesSizesGrid[0],I=0;I=o[I]&&h=o[I]&&(k=I,z=o[o.length-1]-o[o.length-2])}var L=(h-o[k])/z,X=ks.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(L>=s.longSwipesRatio?t.slideTo(k+X):t.slideTo(k)),"prev"===t.swipeDirection&&(L>1-s.longSwipesRatio?t.slideTo(k+X):t.slideTo(k))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(d.target===t.navigation.nextEl||d.target===t.navigation.prevEl)?d.target===t.navigation.nextEl?t.slideTo(k+X):t.slideTo(k):("next"===t.swipeDirection&&t.slideTo(k+X),"prev"===t.swipeDirection&&t.slideTo(k))}}}.bind(e),t.cssMode&&(e.onScroll=function(){var e=this,t=e.wrapperEl;e.previousTranslate=e.translate,e.translate=e.isHorizontal()?-t.scrollLeft:-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var i=e.maxTranslate()-e.minTranslate();(0==i?0:(e.translate-e.minTranslate())/i)!==e.progress&&e.updateProgress(e.translate),e.emit("setTranslate",e.translate,!1)}.bind(e)),e.onClick=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}.bind(e);var r=!!t.nested;if(!M.touch&&M.pointerEvents)s.addEventListener(i.start,e.onTouchStart,!1),v.addEventListener(i.move,e.onTouchMove,r),v.addEventListener(i.end,e.onTouchEnd,!1);else{if(M.touch){var n=!("touchstart"!==i.start||!M.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(i.start,e.onTouchStart,n),s.addEventListener(i.move,e.onTouchMove,M.passiveListener?{passive:!1,capture:r}:r),s.addEventListener(i.end,e.onTouchEnd,n),i.cancel&&s.addEventListener(i.cancel,e.onTouchEnd,n),L||(v.addEventListener("touchstart",X),L=!0)}(t.simulateTouch&&!z.ios&&!z.android||t.simulateTouch&&!M.touch&&z.ios)&&(s.addEventListener("mousedown",e.onTouchStart,!1),v.addEventListener("mousemove",e.onTouchMove,r),v.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&s.addEventListener("click",e.onClick,!0),t.cssMode&&a.addEventListener("scroll",e.onScroll),t.updateOnWindowResize?e.on(z.ios||z.android?"resize orientationchange observerUpdate":"resize observerUpdate",I,!0):e.on("observerUpdate",I,!0)},detachEvents:function(){var e=this,t=e.params,i=e.touchEvents,s=e.el,a=e.wrapperEl,r=!!t.nested;if(!M.touch&&M.pointerEvents)s.removeEventListener(i.start,e.onTouchStart,!1),v.removeEventListener(i.move,e.onTouchMove,r),v.removeEventListener(i.end,e.onTouchEnd,!1);else{if(M.touch){var n=!("onTouchStart"!==i.start||!M.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};s.removeEventListener(i.start,e.onTouchStart,n),s.removeEventListener(i.move,e.onTouchMove,r),s.removeEventListener(i.end,e.onTouchEnd,n),i.cancel&&s.removeEventListener(i.cancel,e.onTouchEnd,n)}(t.simulateTouch&&!z.ios&&!z.android||t.simulateTouch&&!M.touch&&z.ios)&&(s.removeEventListener("mousedown",e.onTouchStart,!1),v.removeEventListener("mousemove",e.onTouchMove,r),v.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&s.removeEventListener("click",e.onClick,!0),t.cssMode&&a.removeEventListener("scroll",e.onScroll),e.off(z.ios||z.android?"resize orientationchange observerUpdate":"resize observerUpdate",I)}},breakpoints:{setBreakpoint:function(){var e=this,t=e.activeIndex,i=e.initialized,s=e.loopedSlides;void 0===s&&(s=0);var a=e.params,r=e.$el,n=a.breakpoints;if(n&&(!n||0!==Object.keys(n).length)){var o=e.getBreakpoint(n);if(o&&e.currentBreakpoint!==o){var l=o in n?n[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")});var d=l||e.originalParams,h=1'+e+"");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",t),s.cache&&(i.virtual.cache[t]=a),a},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;tMath.abs(o.pixelY)))return!0;r=o.pixelX*n}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;r=o.pixelY}else r=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*n:-o.pixelY;if(0===r)return!0;if(s.invert&&(r=-r),i.params.freeMode){var l={time:ne.now(),delta:Math.abs(r),direction:Math.sign(r)},d=i.mousewheel.lastEventBeforeSnap,h=d&&l.time=i.minTranslate()&&(p=i.minTranslate()),p<=i.maxTranslate()&&(p=i.maxTranslate()),i.setTransition(0),i.setTranslate(p),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!c&&i.isBeginning||!u&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var f=i.mousewheel.recentWheelEvents;15<=f.length&&f.shift();var m=f.length?f[f.length-1]:void 0,v=f[0];if(f.push(l),m&&(l.delta>m.delta||l.direction!==m.direction))f.splice(0);else if(15<=f.length&&l.time-v.time<500&&1<=v.delta-l.delta&&l.delta<=6){var g=0b.delta)&&i.mousewheel.animateSlider(y):i.mousewheel.animateSlider(y),i.mousewheel.releaseScroll(y))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){var t=this;return 6<=e.delta&&ne.now()-t.mousewheel.lastScrollTime<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),t.emit("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),t.emit("scroll",e.raw)),t.mousewheel.lastScrollTime=(new re.Date).getTime(),!1)},releaseScroll:function(e){var t=this,i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1},enable:function(){var e=this,t=K.event();if(e.params.cssMode)return e.wrapperEl.removeEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(e.mousewheel.enabled)return!1;var i=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(i=D(e.params.mousewheel.eventsTarged)),i.on("mouseenter",e.mousewheel.handleMouseEnter),i.on("mouseleave",e.mousewheel.handleMouseLeave),i.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0},disable:function(){var e=this,t=K.event();if(e.params.cssMode)return e.wrapperEl.addEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(!e.mousewheel.enabled)return!1;var i=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(i=D(e.params.mousewheel.eventsTarged)),i.off(t,e.mousewheel.handle),!(e.mousewheel.enabled=!1)}},Z={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,s=i.$nextEl,a=i.$prevEl;a&&0i-1-2*e.loopedSlides&&(r-=i-2*e.loopedSlides),n-1a.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=a.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),o=r-e.pagination.dynamicBulletIndex,d=((l=o+(Math.min(h.length,a.dynamicMainBullets)-1))+o)/2),h.removeClass(a.bulletActiveClass+" "+a.bulletActiveClass+"-next "+a.bulletActiveClass+"-next-next "+a.bulletActiveClass+"-prev "+a.bulletActiveClass+"-prev-prev "+a.bulletActiveClass+"-main"),1=h.length-a.dynamicMainBullets){for(var v=a.dynamicMainBullets;0<=v;v-=1)h.eq(h.length-v).addClass(a.bulletActiveClass+"-main");h.eq(h.length-a.dynamicMainBullets-1).addClass(a.bulletActiveClass+"-prev")}else u.prev().addClass(a.bulletActiveClass+"-prev").prev().addClass(a.bulletActiveClass+"-prev-prev"),f.next().addClass(a.bulletActiveClass+"-next").next().addClass(a.bulletActiveClass+"-next-next");else u.prev().addClass(a.bulletActiveClass+"-prev").prev().addClass(a.bulletActiveClass+"-prev-prev"),f.next().addClass(a.bulletActiveClass+"-next").next().addClass(a.bulletActiveClass+"-next-next")}}if(a.dynamicBullets){var g=Math.min(h.length,a.dynamicMainBullets+4),y=(e.pagination.bulletSize*g-e.pagination.bulletSize)/2-d*e.pagination.bulletSize,w=t?"right":"left";h.css(e.isHorizontal()?w:"top",y+"px")}}if("fraction"===a.type&&(s.find("."+a.currentClass).text(a.formatFractionCurrent(r+1)),s.find("."+a.totalClass).text(a.formatFractionTotal(n))),"progressbar"===a.type){var b;b=a.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var x=(r+1)/n,T=1,S=1;"horizontal"===b?T=x:S=x,s.find("."+a.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+T+") scaleY("+S+")").transition(e.params.speed)}"custom"===a.type&&a.renderCustom?(s.html(a.renderCustom(e,r+1,n)),e.emit("paginationRender",e,s[0])):e.emit("paginationUpdate",e,s[0]),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](a.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,s=e.pagination.$el,a="";if("bullets"===t.type){for(var r=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,n=0;n";s.html(a),e.pagination.bullets=s.find("."+t.bulletClass)}"fraction"===t.type&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):' / ',s.html(a)),"progressbar"===t.type&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'',s.html(a)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var i=this,e=i.params.pagination;if(e.el){var t=D(e.el);0!==t.length&&(i.params.uniqueNavElements&&"string"==typeof e.el&&1'),a.append(r)),ne.extend(t,{$el:a,el:a[0],$dragEl:r,dragEl:r[0]}),s.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},ee={setTransform:function(e,t){var i=this.rtl,s=D(e),a=i?-1:1,r=s.attr("data-swiper-parallax")||"0",n=s.attr("data-swiper-parallax-x"),o=s.attr("data-swiper-parallax-y"),l=s.attr("data-swiper-parallax-scale"),d=s.attr("data-swiper-parallax-opacity");if(n||o?(n=n||"0",o=o||"0"):this.isHorizontal()?(n=r,o="0"):(o=r,n="0"),n=0<=n.indexOf("%")?parseInt(n,10)*t*a+"%":n*t*a+"px",o=0<=o.indexOf("%")?parseInt(o,10)*t+"%":o*t+"px",null!=d){var h=d-(d-1)*(1-Math.abs(t));s[0].style.opacity=h}if(null==l)s.transform("translate3d("+n+", "+o+", 0px)");else{var p=l-(l-1)*(1-Math.abs(t));s.transform("translate3d("+n+", "+o+", 0px) scale("+p+")")}},setTranslate:function(){var s=this,e=s.$el,t=s.slides,a=s.progress,r=s.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,t){s.parallax.setTransform(t,a)}),t.each(function(e,t){var i=t.progress;1s.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scalea.touchesStart.x))return void(a.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(a.minY)===Math.floor(a.startY)&&a.touchesCurrent.ya.touchesStart.y))return void(a.isTouched=!1)}e.preventDefault(),e.stopPropagation(),a.isMoved=!0,a.currentX=a.touchesCurrent.x-a.touchesStart.x+a.startX,a.currentY=a.touchesCurrent.y-a.touchesStart.y+a.startY,a.currentXa.maxX&&(a.currentX=a.maxX-1+Math.pow(a.currentX-a.maxX+1,.8)),a.currentYa.maxY&&(a.currentY=a.maxY-1+Math.pow(a.currentY-a.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=a.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=a.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(a.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(a.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(a.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(a.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=a.touchesCurrent.x,r.prevPositionY=a.touchesCurrent.y,r.prevTime=Date.now(),s.$imageWrapEl.transform("translate3d("+a.currentX+"px, "+a.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,s=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var a=300,r=300,n=s.x*a,o=i.currentX+n,l=s.y*r,d=i.currentY+l;0!==s.x&&(a=Math.abs((o-i.currentX)/s.x)),0!==s.y&&(r=Math.abs((d-i.currentY)/s.y));var h=Math.max(a,r);i.currentX=o,i.currentY=d;var p=i.width*e.scale,c=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-p/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-c/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.$imageWrapEl.transition(h).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,s,a,r,n,o,l,d,h,p,c,u,f,m,v,g=this.zoom,y=this.params.zoom,w=g.gesture,b=g.image;w.$slideEl||(w.$slideEl=this.slides.eq(this.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),w.$imageWrapEl=w.$imageEl.parent("."+y.containerClass)),w.$imageEl&&0!==w.$imageEl.length&&(w.$slideEl.addClass(""+y.zoomedSlideClass),i=void 0===b.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,"touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=b.touchesStart.x,b.touchesStart.y),g.scale=w.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,g.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,e?(m=w.$slideEl[0].offsetWidth,v=w.$slideEl[0].offsetHeight,s=w.$slideEl.offset().left+m/2-t,a=w.$slideEl.offset().top+v/2-i,o=w.$imageEl[0].offsetWidth,l=w.$imageEl[0].offsetHeight,d=o*g.scale,h=l*g.scale,u=-(p=Math.min(m/2-d/2,0)),f=-(c=Math.min(v/2-h/2,0)),(r=s*g.scale)>1]<=t?s=a:i=a;return i};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=o(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new se.LinearSpline(t.slidesGrid,e.slidesGrid):new se.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,s,a=this,r=a.controller.control;function n(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),s=-a.controller.spline.interpolate(-t)),s&&"container"!==a.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),s=(t-a.minTranslate())*i+e.minTranslate()),a.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,a),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(var o=0;o'),s.append(e)),e.css({height:r+"px"})):0===(e=i.find(".swiper-cube-shadow")).length&&(e=D('
'),i.append(e)));for(var u=0;u'),f.append(S)),0===E.length&&(E=D('
'),f.append(E)),S.length&&(S[0].style.opacity=Math.max(-y,0)),E.length&&(E[0].style.opacity=Math.max(y,0))}}if(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"}),d.shadow)if(h)e.transform("translate3d(0px, "+(r/2+d.shadowOffset)+"px, "+-r/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")");else{var C=Math.abs(c)-90*Math.floor(Math.abs(c)/90),M=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),P=d.shadowScale,k=d.shadowScale/M,z=d.shadowOffset;e.transform("scale3d("+P+", 1, "+k+") translate3d(0px, "+(n/2+z)+"px, "+-n/2/k+"px) rotateX(-90deg)")}var I=N.isSafari||N.isUiWebView?-l/2:0;s.transform("translate3d(0px,0,"+I+"px) rotateX("+(t.isHorizontal()?0:c)+"deg) rotateY("+(t.isHorizontal()?-c:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},ce={setTranslate:function(){for(var e=this,t=e.slides,i=e.rtlTranslate,s=0;s'),a.append(h)),0===p.length&&(p=D('
'),a.append(p)),h.length&&(h[0].style.opacity=Math.max(-r,0)),p.length&&(p[0].style.opacity=Math.max(r,0))}a.transform("translate3d("+l+"px, "+d+"px, 0px) rotateX("+o+"deg) rotateY("+n+"deg)")}},setTransition:function(e){var i=this,t=i.slides,s=i.activeIndex,a=i.$wrapperEl;if(t.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),i.params.virtualTranslate&&0!==e){var r=!1;t.eq(s).transitionEnd(function(){if(!r&&i&&!i.destroyed){r=!0,i.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],t=0;t'),f.append(E)),0===C.length&&(C=D('
'),f.append(C)),E.length&&(E[0].style.opacity=0')}}),Object.keys(ae).forEach(function(e){t.a11y[e]=ae[e].bind(t)})},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(){var e=this;ne.extend(e,{history:{init:oe.init.bind(e),setHistory:oe.setHistory.bind(e),setHistoryPopState:oe.setHistoryPopState.bind(e),scrollToSlide:oe.scrollToSlide.bind(e),destroy:oe.destroy.bind(e)}})},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(){var e=this;e.history.initialized&&e.params.cssMode&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;ne.extend(e,{hashNavigation:{initialized:!1,init:le.init.bind(e),destroy:le.destroy.bind(e),setHash:le.setHash.bind(e),onHashCange:le.onHashCange.bind(e)}})},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 t=this;ne.extend(t,{autoplay:{running:!1,paused:!1,run:de.run.bind(t),start:de.start.bind(t),stop:de.stop.bind(t),pause:de.pause.bind(t),onVisibilityChange:function(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):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(){ne.extend(this,{fadeEffect:{setTranslate:he.setTranslate.bind(this),setTransition:he.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};ne.extend(e.params,t),ne.extend(e.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){ne.extend(this,{cubeEffect:{setTranslate:pe.setTranslate.bind(this),setTransition:pe.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};ne.extend(e.params,t),ne.extend(e.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){ne.extend(this,{flipEffect:{setTranslate:ce.setTranslate.bind(this),setTransition:ce.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};ne.extend(e.params,t),ne.extend(e.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){ne.extend(this,{coverflowEffect:{setTranslate:ue.setTranslate.bind(this),setTransition:ue.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{multipleActiveThumbs:!0,swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){ne.extend(this,{thumbs:{swiper:null,init:fe.init.bind(this),update:fe.update.bind(this),onThumbClick:fe.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.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(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===A.use&&(A.use=A.Class.use,A.installModule=A.Class.installModule),A.use(me),A});