S.maxY&&(S.currentY=S.maxY-1+Math.pow(S.currentY-S.maxY+1,.8)),d.prevPositionX||(d.prevPositionX=S.touchesCurrent.x),d.prevPositionY||(d.prevPositionY=S.touchesCurrent.y),d.prevTime||(d.prevTime=Date.now()),d.x=(S.touchesCurrent.x-d.prevPositionX)/(Date.now()-d.prevTime)/2,d.y=(S.touchesCurrent.y-d.prevPositionY)/(Date.now()-d.prevTime)/2,Math.abs(S.touchesCurrent.x-d.prevPositionX)<2&&(d.x=0),Math.abs(S.touchesCurrent.y-d.prevPositionY)<2&&(d.y=0),d.prevPositionX=S.touchesCurrent.x,d.prevPositionY=S.touchesCurrent.y,d.prevTime=Date.now(),x.$imageWrapEl.transform("translate3d(".concat(S.currentX,"px, ").concat(S.currentY,"px,0)"))}}}function v(){var e=b.zoom;x.$slideEl&&b.previousIndex!==b.activeIndex&&(x.$imageEl&&x.$imageEl.transform("translate3d(0,0,0) scale(1)"),x.$imageWrapEl&&x.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,E=1,x.$slideEl=void 0,x.$imageEl=void 0,x.$imageWrapEl=void 0)}function m(e){var t,a,r,n,i,s,o,l,c,d,p,u,f,h,v,m,g=b.zoom,w=b.params.zoom;x.$slideEl||(e&&e.target&&(x.$slideEl=z(e.target).closest(".".concat(b.params.slideClass))),x.$slideEl||(b.params.virtual&&b.params.virtual.enabled&&b.virtual?x.$slideEl=b.$wrapperEl.children(".".concat(b.params.slideActiveClass)):x.$slideEl=b.slides.eq(b.activeIndex)),x.$imageEl=x.$slideEl.find(".".concat(w.containerClass)).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),x.$imageWrapEl=x.$imageEl.parent(".".concat(w.containerClass))),x.$imageEl&&0!==x.$imageEl.length&&x.$imageWrapEl&&0!==x.$imageWrapEl.length&&(b.params.cssMode&&(b.wrapperEl.style.overflow="hidden",b.wrapperEl.style.touchAction="none"),x.$slideEl.addClass("".concat(w.zoomedSlideClass)),a=void 0===S.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,"touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=S.touchesStart.x,S.touchesStart.y),g.scale=x.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,E=x.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,e?(v=x.$slideEl[0].offsetWidth,m=x.$slideEl[0].offsetHeight,r=x.$slideEl.offset().left+y.scrollX+v/2-t,n=x.$slideEl.offset().top+y.scrollY+m/2-a,o=x.$imageEl[0].offsetWidth,l=x.$imageEl[0].offsetHeight,c=o*g.scale,d=l*g.scale,f=-(p=Math.min(v/2-c/2,0)),h=-(u=Math.min(m/2-d/2,0)),(i=r*g.scale)>1]<=t?i=s:n=s;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=o(this.x,e),a=r-1,(e-this.x[a])*(this.y[r]-this.y[a])/(this.x[r]-this.x[a])+this.y[a]):0},this}function r(){l.controller.control&&l.controller.spline&&(l.controller.spline=void 0,delete l.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),l.controller={control:void 0},a("beforeInit",function(){l.controller.control=l.params.controller.control}),a("update",function(){r()}),a("resize",function(){r()}),a("observerUpdate",function(){r()}),a("setTranslate",function(e,t,a){l.controller.control&&l.controller.setTranslate(t,a)}),a("setTransition",function(e,t,a){l.controller.control&&l.controller.setTransition(t,a)}),Object.assign(l.controller,{setTranslate:function(e,t){var r,n,a=l.controller.control,i=l.constructor;function s(e){var t,a=l.rtlTranslate?-l.translate:l.translate;"slide"===l.params.controller.by&&(t=e,l.controller.spline||(l.controller.spline=l.params.loop?new c(l.slidesGrid,t.slidesGrid):new c(l.snapGrid,t.snapGrid)),n=-l.controller.spline.interpolate(-a)),n&&"container"!==l.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(l.maxTranslate()-l.minTranslate()),n=(a-l.minTranslate())*r+e.minTranslate()),l.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,l),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(var o=0;o'))}),a("afterInit",function(){d.params.a11y.enabled&&(function(){var n=d.params.a11y;d.$el.append(p);var e=d.$el;n.containerRoleDescriptionMessage&&f(e,n.containerRoleDescriptionMessage),n.containerMessage&&h(e,n.containerMessage);var t,a,r=d.$wrapperEl,i=r.attr("id")||"swiper-wrapper-".concat(function(){return"x".repeat(0h.previousIndex?"next":"prev"}else s=(i=h.realIndex)>h.previousIndex?"next":"prev";n&&(i+="next"===s?r:-1*r),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(i)<0&&(t.params.centeredSlides?i=o-S.maxTranslate())S.slides.lengthS.minTranslate())a.freeMode.momentumBounce?(h-S.minTranslate()>w&&(h=S.minTranslate()+w),v=S.minTranslate(),g=!0,s.allowMomentumBounce=!0):h=S.minTranslate(),a.loop&&a.centeredSlides&&(m=!0);else if(a.freeMode.sticky){for(var b,y=0;y-h){b=y;break}h=-(h=Math.abs(i[b]-h)=a.longSwipesMs)&&(S.updateProgress(),S.updateActiveIndex(),S.updateSlidesClasses())}}}})},function(e){var m,g,w,b=e.swiper;(0,e.extendParams)({grid:{rows:1,fill:"column"}}),b.grid={initSlides:function(e){var t=b.params.slidesPerView,a=b.params.grid,r=a.rows,n=a.fill;g=m/r,w=Math.floor(e/r),m=Math.floor(e/r)===e/r?e:Math.ceil(e/r)*r,"auto"!==t&&"row"===n&&(m=Math.max(m,t*r))},updateSlide:function(e,t,a,r){var n,i,s,o=b.params,l=o.slidesPerGroup,c=o.spaceBetween,d=b.params.grid,p=d.rows,u=d.fill;if("row"===u&&1=p&&(s=0,i+=1)):i=e-(s=Math.floor(e/g))*g;t.css(r("margin-top"),0!==s?c&&"".concat(c,"px"):"")},updateWrapperSize:function(e,t,a){var r=b.params,n=r.spaceBetween,i=r.centeredSlides,s=r.roundLengths,o=b.params.grid.rows;if(b.virtualSize=(e+n)*m,b.virtualSize=Math.ceil(b.virtualSize/o)-n,b.$wrapperEl.css(U({},a("width"),"".concat(b.virtualSize+n,"px"))),i){t.splice(0,t.length);for(var l=[],c=0;c'),a.append(e)),e.css({height:"".concat(n,"px")})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=z(''),t.append(e)));for(var f=0;f')),h.append(S)),0===T.length&&(T=z('')),h.append(T)),S.length&&(S[0].style.opacity=Math.max(-w,0)),T.length&&(T[0].style.opacity=Math.max(w,0))}}if(a.css({"-webkit-transform-origin":"50% 50% -".concat(o/2,"px"),"transform-origin":"50% 50% -".concat(o/2,"px")}),c.shadow)if(d)e.transform("translate3d(0px, ".concat(n/2+c.shadowOffset,"px, ").concat(-n/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(c.shadowScale,")"));else{var C=Math.abs(u)-90*Math.floor(Math.abs(u)/90),M=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),k=c.shadowScale,L=c.shadowScale/M,P=c.shadowOffset;e.transform("scale3d(".concat(k,", 1, ").concat(L,") translate3d(0px, ").concat(i/2+P,"px, ").concat(-i/2/L,"px) rotateX(-90deg)"))}var $=l.isSafari||l.isWebView?-o/2:0;a.transform("translate3d(0px,0,".concat($,"px) rotateX(").concat(O.isHorizontal()?0:u,"deg) rotateY(").concat(O.isHorizontal()?-u:0,"deg)"))},setTransition:function(e){var t=O.$el;O.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),O.params.cubeEffect.shadow&&!O.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)},perspective:function(){return!0},overwriteParams:function(){return{slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0}}})},function(e){var h=e.swiper,t=e.extendParams,a=e.on;t({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}}),R({effect:"flip",swiper:h,on:a,setTranslate:function(){for(var e=h.slides,t=h.rtlTranslate,a=h.params.flipEffect,r=0;r