/** * swiper 4.5.3 * most modern mobile touch slider and framework with hardware accelerated transitions * * * copyright 2014-2019 vladimir kharlampidi * * released under the mit license * * released on: october 16, 2019 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).swiper=t()}(this,function(){"use strict";var m="undefined"==typeof document?{body:{},addeventlistener:function(){},removeeventlistener:function(){},activeelement:{blur:function(){},nodename:""},queryselector:function(){return null},queryselectorall:function(){return[]},getelementbyid:function(){return null},createevent:function(){return{initevent:function(){}}},createelement:function(){return{children:[],childnodes:[],style:{},setattribute:function(){},getelementsbytagname:function(){return[]}}},location:{hash:""}}:document,ee="undefined"==typeof window?{document:m,navigator:{useragent:""},location:{},history:{},customevent:function(){return this},addeventlistener:function(){},removeeventlistener:function(){},getcomputedstyle:function(){return{getpropertyvalue:function(){return""}}},image:function(){},date:function(){},screen:{},settimeout:function(){},cleartimeout:function(){}}:window,l=function(e){for(var t=0;t")){var o="div";for(0===n.indexof(":~]/)?(t||m).queryselectorall(e.trim()):[m.getelementbyid(e.trim().split("#")[1])],i=0;ia.slides.length)break;i.push(a.slides.eq(r)[0])}else i.push(a.slides.eq(a.activeindex)[0]);for(t=0;t=t.size)&&(t.visibleslides.push(o),t.visibleslidesindexes.push(n),i.eq(n).addclass(a.slidevisibleclass))}o.progress=s?-l:l}t.visibleslides=l(t.visibleslides)}},updateprogress:function(e){var t=this,a=t.params;if(void 0===e){var i=t.rtltranslate?-1:1;e=t&&t.translate&&t.translate*i||0}var s=t.maxtranslate()-t.mintranslate(),r=t.progress,n=t.isbeginning,o=t.isend,l=n,d=o;o=0==s?n=!(r=0):(n=(r=(e-t.mintranslate())/s)<=0,1<=r),te.extend(t,{progress:r,isbeginning:n,isend:o}),(a.watchslidesprogress||a.watchslidesvisibility)&&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,a=t.slides,i=t.params,s=t.$wrapperel,r=t.activeindex,n=t.realindex,o=t.virtual&&i.virtual.enabled;a.removeclass(i.slideactiveclass+" "+i.slidenextclass+" "+i.slideprevclass+" "+i.slideduplicateactiveclass+" "+i.slideduplicatenextclass+" "+i.slideduplicateprevclass),(e=o?t.$wrapperel.find("."+i.slideclass+'[data-swiper-slide-index="'+r+'"]'):a.eq(r)).addclass(i.slideactiveclass),i.loop&&(e.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+n+'"]').addclass(i.slideduplicateactiveclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+n+'"]').addclass(i.slideduplicateactiveclass));var l=e.nextall("."+i.slideclass).eq(0).addclass(i.slidenextclass);i.loop&&0===l.length&&(l=a.eq(0)).addclass(i.slidenextclass);var d=e.prevall("."+i.slideclass).eq(0).addclass(i.slideprevclass);i.loop&&0===d.length&&(d=a.eq(-1)).addclass(i.slideprevclass),i.loop&&(l.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass),d.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass))},updateactiveindex:function(e){var t,a=this,i=a.rtltranslate?a.translate:-a.translate,s=a.slidesgrid,r=a.snapgrid,n=a.params,o=a.activeindex,l=a.realindex,d=a.snapindex,p=e;if(void 0===p){for(var c=0;c=s[c]&&i=s[c]&&i=s[c]&&(p=c);n.normalizeslideindex&&(p<0||void 0===p)&&(p=0)}if((t=0<=r.indexof(i)?r.indexof(i):math.floor(p/n.slidespergroup))>=r.length&&(t=r.length-1),p!==o){var u=parseint(a.slides.eq(p).attr("data-swiper-slide-index")||p,10);te.extend(a,{snapindex:t,realindex:u,previousindex:o,activeindex:p}),a.emit("activeindexchange"),a.emit("snapindexchange"),l!==u&&a.emit("realindexchange"),(a.initialized||a.runcallbacksoninit)&&a.emit("slidechange")}else t!==d&&(a.snapindex=t,a.emit("snapindexchange"))},updateclickedslide:function(e){var t=this,a=t.params,i=l(e.target).closest("."+a.slideclass)[0],s=!1;if(i)for(var r=0;r=o.length&&(u=o.length-1),(p||n.initialslide||0)===(d||0)&&a&&s.emit("beforeslidechangestart");var h,v=-o[u];if(s.updateprogress(v),n.normalizeslideindex)for(var f=0;f=math.floor(100*l[f])&&(r=f);if(s.initialized&&r!==p){if(!s.allowslidenext&&vs.translate&&v>s.maxtranslate()&&(p||0)!==r)return!1}return h=pt.slides.length-t.loopedslides+s/2?(t.loopfix(),r=i.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideduplicateclass+")").eq(0).index(),te.nexttick(function(){t.slideto(r)})):t.slideto(r):r>t.slides.length-s?(t.loopfix(),r=i.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideduplicateclass+")").eq(0).index(),te.nexttick(function(){t.slideto(r)})):t.slideto(r)}else t.slideto(r)}};var h={loopcreate:function(){var i=this,e=i.params,t=i.$wrapperel;t.children("."+e.slideclass+"."+e.slideduplicateclass).remove();var s=t.children("."+e.slideclass);if(e.loopfillgroupwithblank){var a=e.slidespergroup-s.length%e.slidespergroup;if(a!==e.slidespergroup){for(var r=0;rs.length&&(i.loopedslides=s.length);var o=[],l=[];s.each(function(e,t){var a=l(t);e=s.length-i.loopedslides&&o.push(t),a.attr("data-swiper-slide-index",e)});for(var d=0;d=s.length-r){e=-s.length+i+r,e+=r,t.slideto(e,0,!1,!0)&&0!=p&&t.settranslate((d?-t.translate:t.translate)-p)}t.allowslideprev=n,t.allowslidenext=o},loopdestroy:function(){var e=this.$wrapperel,t=this.params,a=this.slides;e.children("."+t.slideclass+"."+t.slideduplicateclass+",."+t.slideclass+"."+t.slideblankclass).remove(),a.removeattr("data-swiper-slide-index")}};var v={setgrabcursor:function(e){if(!(ae.touch||!this.params.simulatetouch||this.params.watchoverflow&&this.islocked)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetgrabcursor:function(){ae.touch||this.params.watchoverflow&&this.islocked||(this.el.style.cursor="")}};var f={appendslide:function(e){var t=this,a=t.$wrapperel,i=t.params;if(i.loop&&t.loopdestroy(),"object"==typeof e&&"length"in e)for(var s=0;s=ee.screen.width-d)){if(te.extend(a,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),s.startx=n,s.starty=o,a.touchstarttime=te.now(),t.allowclick=!0,t.updatesize(),t.swipedirection=void 0,0s.starty&&t.translate>=t.mintranslate())return a.istouched=!1,void(a.ismoved=!1)}else if(ls.startx&&t.translate>=t.mintranslate())return;if(a.istouchevent&&m.activeelement&&n.target===m.activeelement&&l(n.target).is(a.formelements))return a.ismoved=!0,void(t.allowclick=!1);if(a.allowtouchcallbacks&&t.emit("touchmove",n),!(n.targettouches&&1i.touchangle:90-u>i.touchangle);if(a.isscrolling&&t.emit("touchmoveopposite",n),void 0===a.startmoving&&(s.currentx===s.startx&&s.currenty===s.starty||(a.startmoving=!0)),a.isscrolling)a.istouched=!1;else if(a.startmoving){t.allowclick=!1,n.preventdefault(),i.touchmovestoppropagation&&!i.nested&&n.stoppropagation(),a.ismoved||(i.loop&&t.loopfix(),a.starttranslate=t.gettranslate(),t.settransition(0),t.animating&&t.$wrapperel.trigger("webkittransitionend transitionend"),a.allowmomentumbounce=!1,!i.grabcursor||!0!==t.allowslidenext&&!0!==t.allowslideprev||t.setgrabcursor(!0),t.emit("sliderfirstmove",n)),t.emit("slidermove",n),a.ismoved=!0;var h=t.ishorizontal()?p:c;s.diff=h,h*=i.touchratio,r&&(h=-h),t.swipedirection=0t.mintranslate()?(v=!1,i.resistance&&(a.currenttranslate=t.mintranslate()-1+math.pow(-t.mintranslate()+a.starttranslate+h,f))):h<0&&a.currenttranslatea.starttranslate&&(a.currenttranslate=a.starttranslate),0i.threshold||a.allowthresholdmove))return void(a.currenttranslate=a.starttranslate);if(!a.allowthresholdmove)return a.allowthresholdmove=!0,s.startx=s.currentx,s.starty=s.currenty,a.currenttranslate=a.starttranslate,void(s.diff=t.ishorizontal()?s.currentx-s.startx:s.currenty-s.starty)}i.followfinger&&((i.freemode||i.watchslidesprogress||i.watchslidesvisibility)&&(t.updateactiveindex(),t.updateslidesclasses()),i.freemode&&(0===a.velocities.length&&a.velocities.push({position:s[t.ishorizontal()?"startx":"starty"],time:a.touchstarttime}),a.velocities.push({position:s[t.ishorizontal()?"currentx":"currenty"],time:te.now()})),t.updateprogress(a.currenttranslate),t.settranslate(a.currenttranslate))}}}}}else a.startmoving&&a.isscrolling&&t.emit("touchmoveopposite",n)}.bind(e),e.ontouchend=function(e){var t=this,a=t.toucheventsdata,i=t.params,s=t.touches,r=t.rtltranslate,n=t.$wrapperel,o=t.slidesgrid,l=t.snapgrid,d=e;if(d.originalevent&&(d=d.originalevent),a.allowtouchcallbacks&&t.emit("touchend",d),a.allowtouchcallbacks=!1,!a.istouched)return a.ismoved&&i.grabcursor&&t.setgrabcursor(!1),a.ismoved=!1,void(a.startmoving=!1);i.grabcursor&&a.ismoved&&a.istouched&&(!0===t.allowslidenext||!0===t.allowslideprev)&&t.setgrabcursor(!1);var p,c=te.now(),u=c-a.touchstarttime;if(t.allowclick&&(t.updateclickedslide(d),t.emit("tap",d),u<300&&300-t.maxtranslate())return void(t.slides.lengtht.mintranslate())i.freemodemomentumbounce?(w-t.mintranslate()>e&&(w=t.mintranslate()+e),y=t.mintranslate(),t=!0,a.allowmomentumbounce=!0):w=t.mintranslate(),i.loop&&i.centeredslides&&(x=!0);else if(i.freemodesticky){for(var s,c=0;c-w){s=c;break}w=-(w=math.abs(l[s]-w)=i.longswipesms)&&(t.updateprogress(),t.updateactiveindex(),t.updateslidesclasses())}else{for(var m=0,p=t.slidessizesgrid[0],k=0;k=o[k]&&p=o[k]&&(m=k,p=o[o.length-1]-o[o.length-2]);var z=(p-o[m])/p;if(u>i.longswipesms){if(!i.longswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&(z>=i.longswipesratio?t.slideto(m+i.slidespergroup):t.slideto(m)),"prev"===t.swipedirection&&(z>1-i.longswipesratio?t.slideto(m+i.slidespergroup):t.slideto(m))}else{if(!i.shortswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&t.slideto(m+i.slidespergroup),"prev"===t.swipedirection&&t.slideto(m)}}}.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="container"===t.toucheventstarget?i:s,n=!!t.nested;if(ae.touch||!ae.pointerevents&&!ae.prefixedpointerevents){if(ae.touch){var o=!("touchstart"!==a.start||!ae.passivelistener||!t.passivelisteners)&&{passive:!0,capture:!1};r.addeventlistener(a.start,e.ontouchstart,o),r.addeventlistener(a.move,e.ontouchmove,ae.passivelistener?{passive:!1,capture:n}:n),r.addeventlistener(a.end,e.ontouchend,o),w||(m.addeventlistener("touchstart",y),w=!0)}(t.simulatetouch&&!g.ios&&!g.android||t.simulatetouch&&!ae.touch&&g.ios)&&(r.addeventlistener("mousedown",e.ontouchstart,!1),m.addeventlistener("mousemove",e.ontouchmove,n),m.addeventlistener("mouseup",e.ontouchend,!1))}else r.addeventlistener(a.start,e.ontouchstart,!1),m.addeventlistener(a.move,e.ontouchmove,n),m.addeventlistener(a.end,e.ontouchend,!1);(t.preventclicks||t.preventclickspropagation)&&r.addeventlistener("click",e.onclick,!0),e.on(g.ios||g.android?"resize orientationchange observerupdate":"resize observerupdate",b,!0)},detachevents:function(){var e=this,t=e.params,a=e.touchevents,i=e.el,s=e.wrapperel,r="container"===t.toucheventstarget?i:s,n=!!t.nested;if(ae.touch||!ae.pointerevents&&!ae.prefixedpointerevents){if(ae.touch){var o=!("ontouchstart"!==a.start||!ae.passivelistener||!t.passivelisteners)&&{passive:!0,capture:!1};r.removeeventlistener(a.start,e.ontouchstart,o),r.removeeventlistener(a.move,e.ontouchmove,n),r.removeeventlistener(a.end,e.ontouchend,o)}(t.simulatetouch&&!g.ios&&!g.android||t.simulatetouch&&!ae.touch&&g.ios)&&(r.removeeventlistener("mousedown",e.ontouchstart,!1),m.removeeventlistener("mousemove",e.ontouchmove,n),m.removeeventlistener("mouseup",e.ontouchend,!1))}else r.removeeventlistener(a.start,e.ontouchstart,!1),m.removeeventlistener(a.move,e.ontouchmove,n),m.removeeventlistener(a.end,e.ontouchend,!1);(t.preventclicks||t.preventclickspropagation)&&r.removeeventlistener("click",e.onclick,!0),e.off(g.ios||g.android?"resize orientationchange observerupdate":"resize observerupdate",b)}},breakpoints:{setbreakpoint:function(){var e=this,t=e.activeindex,a=e.initialized,i=e.loopedslides;void 0===i&&(i=0);var s=e.params,r=s.breakpoints;if(r&&(!r||0!==object.keys(r).length)){var n=e.getbreakpoint(r);if(n&&e.currentbreakpoint!==n){var o=n in r?r[n]:void 0;o&&["slidesperview","spacebetween","slidespergroup"].foreach(function(e){var t=o[e];void 0!==t&&(o[e]="slidesperview"!==e||"auto"!==t&&"auto"!==t?"slidesperview"===e?parsefloat(t):parseint(t,10):"auto")});var l=o||e.originalparams,d=l.direction&&l.direction!==s.direction,p=s.loop&&(l.slidesperview!==s.slidesperview||d);d&&a&&e.changedirection(),te.extend(e.params,l),te.extend(e,{allowtouchmove:e.params.allowtouchmove,allowslidenext:e.params.allowslidenext,allowslideprev:e.params.allowslideprev}),e.currentbreakpoint=n,p&&a&&(e.loopdestroy(),e.loopcreate(),e.updateslides(),e.slideto(t-i+e.loopedslides,0,!1)),e.emit("breakpoint",l)}}},getbreakpoint:function(e){if(e){var t=!1,a=[];object.keys(e).foreach(function(e){a.push(e)}),a.sort(function(e,t){return parseint(e,10)-parseint(t,10)});for(var i=0;i=ee.innerwidth&&!t&&(t=s)}return t||"max"}}},checkoverflow:{checkoverflow:function(){var e=this,t=e.islocked;e.islocked=1===e.snapgrid.length,e.allowslidenext=!e.islocked,e.allowslideprev=!e.islocked,t!==e.islocked&&e.emit(e.islocked?"lock":"unlock"),t&&t!==e.islocked&&(e.isend=!1,e.navigation.update())}},classes:{addclasses:function(){var t=this.classnames,a=this.params,e=this.rtl,i=this.$el,s=[];s.push("initialized"),s.push(a.direction),a.freemode&&s.push("free-mode"),ae.flexbox||s.push("no-flexbox"),a.autoheight&&s.push("autoheight"),e&&s.push("rtl"),1'+e+"");return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),i.cache&&(a.virtual.cache[t]=s),s},appendslide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;tmath.abs(n.pixely)))return!0;s=n.pixelx*r}else{if(!(math.abs(n.pixely)>math.abs(n.pixelx)))return!0;s=n.pixely}else s=math.abs(n.pixelx)>math.abs(n.pixely)?-n.pixelx*r:-n.pixely;if(0===s)return!0;if(i.invert&&(s=-s),a.params.freemode){a.params.loop&&a.loopfix();var o=a.gettranslate()+s*i.sensitivity,l=a.isbeginning,d=a.isend;if(o>=a.mintranslate()&&(o=a.mintranslate()),o<=a.maxtranslate()&&(o=a.maxtranslate()),a.settransition(0),a.settranslate(o),a.updateprogress(),a.updateactiveindex(),a.updateslidesclasses(),(!l&&a.isbeginning||!d&&a.isend)&&a.updateslidesclasses(),a.params.freemodesticky&&(cleartimeout(a.mousewheel.timeout),a.mousewheel.timeout=te.nexttick(function(){a.slidetoclosest()},300)),a.emit("scroll",t),a.params.autoplay&&a.params.autoplaydisableoninteraction&&a.autoplay.stop(),o===a.mintranslate()||o===a.maxtranslate())return!0}else{if(60a-1-2*e.loopedslides&&(r-=a-2*e.loopedslides),n-1s.dynamicmainbullets-1?e.pagination.dynamicbulletindex=s.dynamicmainbullets-1:e.pagination.dynamicbulletindex<0&&(e.pagination.dynamicbulletindex=0)),o=r-e.pagination.dynamicbulletindex,d=((l=o+(math.min(p.length,s.dynamicmainbullets)-1))+o)/2),p.removeclass(s.bulletactiveclass+" "+s.bulletactiveclass+"-next "+s.bulletactiveclass+"-next-next "+s.bulletactiveclass+"-prev "+s.bulletactiveclass+"-prev-prev "+s.bulletactiveclass+"-main"),1";i.html(s),e.pagination.bullets=i.find("."+t.bulletclass)}"fraction"===t.type&&(s=t.renderfraction?t.renderfraction.call(e,t.currentclass,t.totalclass):' / ',i.html(s)),"progressbar"===t.type&&(s=t.renderprogressbar?t.renderprogressbar.call(e,t.progressbarfillclass):'',i.html(s)),"custom"!==t.type&&e.emit("paginationrender",e.pagination.$el[0])}},init:function(){var a=this,e=a.params.pagination;if(e.el){var t=l(e.el);0!==t.length&&(a.params.uniquenavelements&&"string"==typeof e.el&&1'),s.append(r)),te.extend(t,{$el:s,el:s[0],$dragel:r,dragel:r[0]}),i.draggable&&t.enabledraggable()}},destroy:function(){this.scrollbar.disabledraggable()}},x={settransform:function(e,t){var a=this.rtl,i=l(e),s=a?-1:1,r=i.attr("data-swiper-parallax")||"0",n=i.attr("data-swiper-parallax-x"),o=i.attr("data-swiper-parallax-y"),l=i.attr("data-swiper-parallax-scale"),d=i.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*s+"%":n*t*s+"px",o=0<=o.indexof("%")?parseint(o,10)*t+"%":o*t+"px",null!=d){var p=d-(d-1)*(1-math.abs(t));i[0].style.opacity=p}if(null==l)i.transform("translate3d("+n+", "+o+", 0px)");else{var c=l-(l-1)*(1-math.abs(t));i.transform("translate3d("+n+", "+o+", 0px) scale("+c+")")}},settranslate:function(){var i=this,e=i.$el,t=i.slides,s=i.progress,r=i.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){i.parallax.settransform(t,s)}),t.each(function(e,t){var a=t.progress;1i.maxratio&&(a.scale=i.maxratio-1+math.pow(a.scale-i.maxratio+1,.5)),a.scales.touchesstart.x))return void(s.istouched=!1);if(!t.ishorizontal()&&(math.floor(s.miny)===math.floor(s.starty)&&s.touchescurrent.ys.touchesstart.y))return void(s.istouched=!1)}e.preventdefault(),e.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)),r.prevpositionx||(r.prevpositionx=s.touchescurrent.x),r.prevpositiony||(r.prevpositiony=s.touchescurrent.y),r.prevtime||(r.prevtime=date.now()),r.x=(s.touchescurrent.x-r.prevpositionx)/(date.now()-r.prevtime)/2,r.y=(s.touchescurrent.y-r.prevpositiony)/(date.now()-r.prevtime)/2,math.abs(s.touchescurrent.x-r.prevpositionx)<2&&(r.x=0),math.abs(s.touchescurrent.y-r.prevpositiony)<2&&(r.y=0),r.prevpositionx=s.touchescurrent.x,r.prevpositiony=s.touchescurrent.y,r.prevtime=date.now(),i.$imagewrapel.transform("translate3d("+s.currentx+"px, "+s.currenty+"px,0)")}}},ontouchend:function(){var e=this.zoom,t=e.gesture,a=e.image,i=e.velocity;if(t.$imageel&&0!==t.$imageel.length){if(!a.istouched||!a.ismoved)return a.istouched=!1,void(a.ismoved=!1);a.istouched=!1,a.ismoved=!1;var s=300,r=300,n=i.x*s,o=a.currentx+n,l=i.y*r,d=a.currenty+l;0!==i.x&&(s=math.abs((o-a.currentx)/i.x)),0!==i.y&&(r=math.abs((d-a.currenty)/i.y));var p=math.max(s,r);a.currentx=o,a.currenty=d;var c=a.width*e.scale,u=a.height*e.scale;a.minx=math.min(t.slidewidth/2-c/2,0),a.maxx=-a.minx,a.miny=math.min(t.slideheight/2-u/2,0),a.maxy=-a.miny,a.currentx=math.max(math.min(a.currentx,a.maxx),a.minx),a.currenty=math.max(math.min(a.currenty,a.maxy),a.miny),t.$imagewrapel.transition(p).transform("translate3d("+a.currentx+"px, "+a.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,a,i,s,r,n,o,l,d,p,c,u,h,v,f,m,g=this,b=g.zoom,w=g.params.zoom,y=b.gesture,x=b.image;y.$slideel||(y.$slideel=g.clickedslide?l(g.clickedslide):g.slides.eq(g.activeindex),y.$imageel=y.$slideel.find("img, svg, canvas"),y.$imagewrapel=y.$imageel.parent("."+w.containerclass)),y.$imageel&&0!==y.$imageel.length&&(y.$slideel.addclass(""+w.zoomedslideclass),a=void 0===x.touchesstart.x&&e?(t="touchend"===e.type?e.changedtouches[0].pagex:e.pagex,"touchend"===e.type?e.changedtouches[0].pagey:e.pagey):(t=x.touchesstart.x,x.touchesstart.y),b.scale=y.$imagewrapel.attr("data-swiper-zoom")||w.maxratio,b.currentscale=y.$imagewrapel.attr("data-swiper-zoom")||w.maxratio,e?(f=y.$slideel[0].offsetwidth,m=y.$slideel[0].offsetheight,i=y.$slideel.offset().left+f/2-t,s=y.$slideel.offset().top+m/2-a,o=y.$imageel[0].offsetwidth,l=y.$imageel[0].offsetheight,d=o*b.scale,p=l*b.scale,h=-(c=math.min(f/2-d/2,0)),v=-(u=math.min(m/2-p/2,0)),(r=i*b.scale)>1]<=t?i=s:a=s;return a};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 f.linearspline(t.slidesgrid,e.slidesgrid):new f.linearspline(t.snapgrid,e.snapgrid))},settranslate:function(e,t){var a,i,s=this,r=s.controller.control;function n(e){var t=s.rtltranslate?-s.translate:s.translate;"slide"===s.params.controller.by&&(s.controller.getinterpolatefunction(e),i=-s.controller.spline.interpolate(-t)),i&&"container"!==s.params.controller.by||(a=(e.maxtranslate()-e.mintranslate())/(s.maxtranslate()-s.mintranslate()),i=(t-s.mintranslate())*a+e.mintranslate()),s.params.controller.inverse&&(i=e.maxtranslate()-i),e.updateprogress(i),e.settranslate(i,s),e.updateactiveindex(),e.updateslidesclasses()}if(array.isarray(r))for(var o=0;o'),i.append(e)),e.css({height:r+"px"})):0===(e=a.find(".swiper-cube-shadow")).length&&(e=l('
'),a.append(e)));for(var h=0;h'),v.append(e)),0===s.length&&(s=l('
'),v.append(s)),e.length&&(e[0].style.opacity=math.max(-b,0)),s.length&&(s[0].style.opacity=math.max(b,0))}}if(i.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(p)e.transform("translate3d(0px, "+(r/2+d.shadowoffset)+"px, "+-r/2+"px) rotatex(90deg) rotatez(0deg) scale("+d.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),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 $=ie.issafari||ie.isuiwebview?-l/2:0;i.transform("translate3d(0px,0,"+$+"px) rotatex("+(t.ishorizontal()?0:u)+"deg) rotatey("+(t.ishorizontal()?-u: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)}},_={settranslate:function(){for(var e=this,t=e.slides,a=e.rtltranslate,i=0;i'),s.append(p)),0===c.length&&(c=l('
'),s.append(c)),p.length&&(p[0].style.opacity=math.max(-r,0)),c.length&&(c[0].style.opacity=math.max(r,0))}s.transform("translate3d("+l+"px, "+d+"px, 0px) rotatex("+o+"deg) rotatey("+n+"deg)")}},settransition:function(e){var a=this,t=a.slides,i=a.activeindex,s=a.$wrapperel;if(t.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),a.params.virtualtranslate&&0!==e){var r=!1;t.eq(i).transitionend(function(){if(!r&&a&&!a.destroyed){r=!0,a.animating=!1;for(var e=["webkittransitionend","transitionend"],t=0;t'),v.append(e)),0===s.length&&(s=l('
'),v.append(s)),e.length&&(e[0].style.opacity=0')}}),object.keys(r).foreach(function(e){t.a11y[e]=r[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;te.extend(e,{history:{init:q.init.bind(e),sethistory:q.sethistory.bind(e),sethistorypopstate:q.sethistorypopstate.bind(e),scrolltoslide:q.scrolltoslide.bind(e),destroy:q.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)}}},{name:"hash-navigation",params:{hashnavigation:{enabled:!1,replacestate:!1,watchstate:!1}},create:function(){var e=this;te.extend(e,{hashnavigation:{initialized:!1,init:w.init.bind(e),destroy:w.destroy.bind(e),sethash:w.sethash.bind(e),onhashcange:w.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()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitfortransition:!0,disableoninteraction:!0,stoponlastslide:!1,reversedirection:!1}},create:function(){var t=this;te.extend(t,{autoplay:{running:!1,paused:!1,run:j.run.bind(t),start:j.start.bind(t),stop:j.stop.bind(t),pause:j.pause.bind(t),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()},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())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeeffect:{crossfade:!1}},create:function(){te.extend(this,{fadeeffect:{settranslate:u.settranslate.bind(this),settransition:u.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};te.extend(e.params,t),te.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(){te.extend(this,{cubeeffect:{settranslate:k.settranslate.bind(this),settransition:k.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};te.extend(e.params,t),te.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(){te.extend(this,{flipeffect:{settranslate:_.settranslate.bind(this),settransition:_.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};te.extend(e.params,t),te.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(){te.extend(this,{coverfloweffect:{settranslate:z.settranslate.bind(this),settransition:z.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:{swiper:null,slidethumbactiveclass:"swiper-slide-thumb-active",thumbscontainerclass:"swiper-container-thumbs"}},create:function(){te.extend(this,{thumbs:{swiper:null,init:q.init.bind(this),update:q.update.bind(this),onthumbclick:q.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===s.use&&(s.use=s.class.use,s.installmodule=s.class.installmodule),s.use(j),s}); //# sourcemappingurl=swiper.min.js.map