/** * swiper 4.0.2 * most modern mobile touch slider and framework with hardware accelerated transitions * http://www.idangero.us/swiper/ * * copyright 2014-2017 vladimir kharlampidi * * released under the mit license * * released on: october 18, 2017 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.swiper=t()}(this,function(){"use strict";function e(e,t){var a=[],i=0;if(e&&!t&&e instanceof r)return e;if(e)if("string"==typeof e){var s,n,o=e.trim();if(o.indexof("<")>=0&&o.indexof(">")>=0){var l="div";for(0===o.indexof(":~]/)?(t||document).queryselectorall(e.trim()):[document.getelementbyid(e.trim().split("#")[1])],i=0;i0&&e[0].nodetype)for(i=0;i0}),e[n].dispatchevent(o),e[n].dom7eventdata=[],delete e[n].dom7eventdata}return this},transitionend:function(e){function t(r){if(r.target===this)for(e.call(this,r),a=0;a0){if(e){var t=this.styles();return this[0].offsetwidth+parsefloat(t.getpropertyvalue("margin-right"))+parsefloat(t.getpropertyvalue("margin-left"))}return this[0].offsetwidth}return null},outerheight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetheight+parsefloat(t.getpropertyvalue("margin-top"))+parsefloat(t.getpropertyvalue("margin-bottom"))}return this[0].offsetheight}return null},offset:function(){if(this.length>0){var e=this[0],t=e.getboundingclientrect(),a=document.body,i=e.clienttop||a.clienttop||0,s=e.clientleft||a.clientleft||0,r=e===window?window.scrolly:e.scrolltop,n=e===window?window.scrollx:e.scrollleft;return{top:t.top+r-i,left:t.left+n-s}}return null},css:function(e,t){var a,i=this;if(1===arguments.length){if("string"!=typeof e){for(a=0;aa-1?new r([]):e<0?(t=a+e,new r(t<0?[]:[this[t]])):new r([this[e]])},append:function(){for(var e=this,t=[],a=arguments.length;a--;)t[a]=arguments[a];for(var i,s=0;s=0;a-=1)i[t].insertbefore(s.childnodes[a],i[t].childnodes[0])}else if(e instanceof r)for(a=0;a0?t?this[0].nextelementsibling&&e(this[0].nextelementsibling).is(t)?[this[0].nextelementsibling]:[]:this[0].nextelementsibling?[this[0].nextelementsibling]:[]:[])},nextall:function(t){var a=[],i=this[0];if(!i)return new r([]);for(;i.nextelementsibling;){var s=i.nextelementsibling;t?e(s).is(t)&&a.push(s):a.push(s),i=s}return new r(a)},prev:function(t){if(this.length>0){var a=this[0];return new r(t?a.previouselementsibling&&e(a.previouselementsibling).is(t)?[a.previouselementsibling]:[]:a.previouselementsibling?[a.previouselementsibling]:[])}return new r([])},prevall:function(t){var a=[],i=this[0];if(!i)return new r([]);for(;i.previouselementsibling;){var s=i.previouselementsibling;t?e(s).is(t)&&a.push(s):a.push(s),i=s}return new r(a)},parent:function(a){for(var i=this,s=[],r=0;r6&&(i=i.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new s.webkitcssmatrix("none"===i?"":i)):a=(r=n.moztransform||n.otransform||n.mstransform||n.mstransform||n.transform||n.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,")).tostring().split(","),"x"===t&&(i=s.webkitcssmatrix?r.m41:16===a.length?parsefloat(a[12]):parsefloat(a[4])),"y"===t&&(i=s.webkitcssmatrix?r.m42:16===a.length?parsefloat(a[13]):parsefloat(a[5])),i||0},parseurlquery:function(e){var t,a,i,r,n={},o=e||s.location.href;if("string"==typeof o&&o.length)for(r=(a=(o=o.indexof("?")>-1?o.replace(/\s*\?/,""):"").split("&").filter(function(e){return""!==e})).length,t=0;t0;)t[a]=arguments[a+1];var i=this;i.prototype.modules||(i.prototype.modules={});var s=e.name||object.keys(i.prototype.modules).length+"_"+o.now();return i.prototype.modules[s]=e,e.proto&&object.keys(e.proto).foreach(function(t){i.prototype[t]=e.proto[t]}),e.static&&object.keys(e.static).foreach(function(t){i[t]=e.static[t]}),e.install&&e.install.apply(i,t),i},d.use=function(e){for(var t=[],a=arguments.length-1;a-- >0;)t[a]=arguments[a+1];var i=this;return array.isarray(e)?(e.foreach(function(e){return i.installmodule(e)}),i):i.installmodule.apply(i,[e].concat(t))},object.defineproperties(d,p);var c={updatesize:function(){var e,t,a=this,i=a.$el;e=void 0!==a.params.width?a.params.width:i[0].clientwidth,t=void 0!==a.params.height?a.params.height:i[0].clientheight,0===e&&a.ishorizontal()||0===t&&a.isvertical()||(e=e-parseint(i.css("padding-left"),10)-parseint(i.css("padding-right"),10),t=t-parseint(i.css("padding-top"),10)-parseint(i.css("padding-bottom"),10),o.extend(a,{width:e,height:t,size:a.ishorizontal()?e:t}))},updateslides:function(){var e=this,t=e.params,a=e.$wrapperel,i=e.size,s=e.rtl,r=e.wrongrtl,n=a.children("."+e.params.slideclass),d=e.virtual&&t.virtual.enabled?e.virtual.slides.length:n.length,p=[],c=[],u=[],h=t.slidesoffsetbefore;"function"==typeof h&&(h=t.slidesoffsetbefore.call(e));var v=t.slidesoffsetafter;"function"==typeof v&&(v=t.slidesoffsetafter.call(e));var f=d,m=e.snapgrid.length,g=e.snapgrid.length,b=t.spacebetween,w=-h,y=0,x=0;if(void 0!==i){"string"==typeof b&&b.indexof("%")>=0&&(b=parsefloat(b.replace("%",""))/100*i),e.virtualsize=-b,s?n.css({marginleft:"",margintop:""}):n.css({marginright:"",marginbottom:""});var t;t.slidespercolumn>1&&(t=math.floor(d/t.slidespercolumn)===d/e.params.slidespercolumn?d:math.ceil(d/t.slidespercolumn)*t.slidespercolumn,"auto"!==t.slidesperview&&"row"===t.slidespercolumnfill&&(t=math.max(t,t.slidesperview*t.slidespercolumn)));for(var e,s=t.slidespercolumn,c=t/s,m=c-(t.slidespercolumn*c-d),z=0;z1){var k=void 0,$=void 0,i=void 0;"column"===t.slidespercolumnfill?(i=z-($=math.floor(z/s))*s,($>m||$===m&&i===s-1)&&(i+=1)>=s&&(i=0,$+=1),k=$+i*t/s,p.css({"-webkit-box-ordinal-group":k,"-moz-box-ordinal-group":k,"-ms-flex-order":k,"-webkit-order":k,order:k})):$=z-(i=math.floor(z/c))*c,p.css("margin-"+(e.ishorizontal()?"top":"left"),0!==i&&t.spacebetween&&t.spacebetween+"px").attr("data-swiper-column",$).attr("data-swiper-row",i)}"none"!==p.css("display")&&("auto"===t.slidesperview?(e=e.ishorizontal()?p.outerwidth(!0):p.outerheight(!0),t.roundlengths&&(e=math.floor(e))):(e=(i-(t.slidesperview-1)*b)/t.slidesperview,t.roundlengths&&(e=math.floor(e)),n[z]&&(e.ishorizontal()?n[z].style.width=e+"px":n[z].style.height=e+"px")),n[z]&&(n[z].swiperslidesize=e),u.push(e),t.centeredslides?(w=w+e/2+y/2+b,0===y&&0!==z&&(w=w-i/2-b),0===z&&(w=w-i/2-b),math.abs(w)<.001&&(w=0),x%t.slidespergroup==0&&p.push(w),c.push(w)):(x%t.slidespergroup==0&&p.push(w),c.push(w),w=w+e+b),e.virtualsize+=e+b,y=e,x+=1)}e.virtualsize=math.max(e.virtualsize,i)+v;var l;if(s&&r&&("slide"===t.effect||"coverflow"===t.effect)&&a.css({width:e.virtualsize+t.spacebetween+"px"}),l.flexbox&&!t.setwrappersize||(e.ishorizontal()?a.css({width:e.virtualsize+t.spacebetween+"px"}):a.css({height:e.virtualsize+t.spacebetween+"px"})),t.slidespercolumn>1&&(e.virtualsize=(e+t.spacebetween)*t,e.virtualsize=math.ceil(e.virtualsize/t.slidespercolumn)-t.spacebetween,e.ishorizontal()?a.css({width:e.virtualsize+t.spacebetween+"px"}):a.css({height:e.virtualsize+t.spacebetween+"px"}),t.centeredslides)){l=[];for(var d=0;d1&&p.push(e.virtualsize-i)}0===p.length&&(p=[0]),0!==t.spacebetween&&(e.ishorizontal()?s?n.css({marginleft:b+"px"}):n.css({marginright:b+"px"}):n.css({marginbottom:b+"px"})),o.extend(e,{slides:n,snapgrid:p,slidesgrid:c,slidessizesgrid:u}),d!==f&&e.emit("slideslengthchange"),p.length!==m&&e.emit("snapgridlengthchange"),c.length!==g&&e.emit("slidesgridlengthchange"),(t.watchslidesprogress||t.watchslidesvisibility)&&e.updateslidesoffset()}},updateautoheight:function(){var e,t=this,a=[],i=0;if("auto"!==t.params.slidesperview&&t.params.slidesperview>1)for(e=0;et.slides.length)break;a.push(t.slides.eq(s)[0])}else a.push(t.slides.eq(t.activeindex)[0]);for(e=0;ei?r:i}i&&t.$wrapperel.css("height",i+"px")},updateslidesoffset:function(){for(var e=this,t=e.slides,a=0;a=0&&d0&&p<=t.size||d<=0&&p>=t.size)&&i.eq(n).addclass(a.slidevisibleclass)}o.progress=s?-l:l}}},updateprogress:function(e){void 0===e&&(e=this.translate||0);var t=this,a=t.params,i=t.maxtranslate()-t.mintranslate(),s=t.progress,r=t.isbeginning,n=t.isend,l=r,d=n;0===i?(s=0,r=!0,n=!0):(r=(s=(e-t.mintranslate())/i)<=0,n=s>=1),o.extend(t,{progress:s,isbeginning:r,isend:n}),(a.watchslidesprogress||a.watchslidesvisibility)&&t.updateslidesprogress(e),r&&!l&&t.emit("reachbeginning toedge"),n&&!d&&t.emit("reachend toedge"),(l&&!r||d&&!n)&&t.emit("fromedge"),t.emit("progress",s)},updateslidesclasses:function(){var e=this,t=e.slides,a=e.params,i=e.$wrapperel,s=e.activeindex,r=e.realindex,n=e.virtual&&a.virtual.enabled;t.removeclass(a.slideactiveclass+" "+a.slidenextclass+" "+a.slideprevclass+" "+a.slideduplicateactiveclass+" "+a.slideduplicatenextclass+" "+a.slideduplicateprevclass);var o;(o=n?e.$wrapperel.find("."+a.slideclass+'[data-swiper-slide-index="'+s+'"]'):t.eq(s)).addclass(a.slideactiveclass),a.loop&&(o.hasclass(a.slideduplicateclass)?i.children("."+a.slideclass+":not(."+a.slideduplicateclass+')[data-swiper-slide-index="'+r+'"]').addclass(a.slideduplicateactiveclass):i.children("."+a.slideclass+"."+a.slideduplicateclass+'[data-swiper-slide-index="'+r+'"]').addclass(a.slideduplicateactiveclass));var l=o.nextall("."+a.slideclass).eq(0).addclass(a.slidenextclass);a.loop&&0===l.length&&(l=t.eq(0)).addclass(a.slidenextclass);var d=o.prevall("."+a.slideclass).eq(0).addclass(a.slideprevclass);a.loop&&0===d.length&&(d=t.eq(-1)).addclass(a.slideprevclass),a.loop&&(l.hasclass(a.slideduplicateclass)?i.children("."+a.slideclass+":not(."+a.slideduplicateclass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addclass(a.slideduplicatenextclass):i.children("."+a.slideclass+"."+a.slideduplicateclass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addclass(a.slideduplicatenextclass),d.hasclass(a.slideduplicateclass)?i.children("."+a.slideclass+":not(."+a.slideduplicateclass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(a.slideduplicateprevclass):i.children("."+a.slideclass+"."+a.slideduplicateclass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(a.slideduplicateprevclass))},updateactiveindex:function(e){var t,a=this,i=a.rtl?a.translate:-a.translate,s=a.slidesgrid,r=a.snapgrid,n=a.params,l=a.activeindex,d=a.realindex,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=math.floor(p/n.slidespergroup))>=r.length&&(t=r.length-1),p!==l){var u=parseint(a.slides.eq(p).attr("data-swiper-slide-index")||p,10);o.extend(a,{snapindex:t,realindex:u,previousindex:l,activeindex:p}),a.emit("activeindexchange"),a.emit("snapindexchange"),d!==u&&a.emit("realindexchange"),a.emit("slidechange")}},updateclickedslide:function(t){var a=this,i=a.params,s=e(t.target).closest("."+i.slideclass)[0],r=!1;if(s)for(var n=0;ns?t.emit("slidenexttransitionstart"):t.emit("slideprevtransitionstart"))},transitionend:function(e){void 0===e&&(e=!0);var t=this,a=t.activeindex,i=t.previousindex;t.animating=!1,t.settransition(0),t.emit("transitionend"),e&&a!==i&&(t.emit("slidechangetransitionend"),a>i?t.emit("slidenexttransitionend"):t.emit("slideprevtransitionend"))}},v=function(){return{issafari:function(){var e=s.navigator.useragent.tolowercase();return e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0}(),isuiwebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(s.navigator.useragent),ie:s.navigator.pointerenabled||s.navigator.mspointerenabled,ietouch:s.navigator.mspointerenabled&&s.navigator.msmaxtouchpoints>1||s.navigator.pointerenabled&&s.navigator.maxtouchpoints>1,lteie9:function(){var e=document.createelement("div");return e.innerhtml="\x3c!--[if lte ie 9]>=o.length&&(h=o.length-1),(p||n.initialslide||0)===(d||0)&&a&&s.emit("beforeslidechangestart");var f=-o[h];if(s.updateprogress(f),n.normalizeslideindex)for(var m=0;m=math.floor(100*l[m])&&(r=m);return!(!s.allowslidenext&&fs.translate&&f>s.maxtranslate()&&(p||0)!==r||(s.updateactiveindex(r),c&&-f===s.translate||!c&&f===s.translate?(n.autoheight&&s.updateautoheight(),s.updateslidesclasses(),"slide"!==n.effect&&s.settranslate(f),1):(s.updateslidesclasses(),s.emit("beforetransitionstart",t,i),s.transitionstart(a),0===t||v.lteie9?(s.settransition(0),s.settranslate(f),s.transitionend(a)):(s.settransition(t),s.settranslate(f),s.animating||(s.animating=!0,u.transitionend(function(){s&&s.transitionend(a)}))),0)))},slidenext:function(e,t,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,s=i.params,r=i.animating;return s.loop?!r&&(i.loopfix(),i._clientleft=i.$wrapperel[0].clientleft,i.slideto(i.activeindex+s.slidespergroup,e,t,a)):i.slideto(i.activeindex+s.slidespergroup,e,t,a)},slideprev:function(e,t,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,s=i.params,r=i.animating;return s.loop?!r&&(i.loopfix(),i._clientleft=i.$wrapperel[0].clientleft,i.slideto(i.activeindex-1,e,t,a)):i.slideto(i.activeindex-1,e,t,a)},slidereset:function(e,t,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this;return i.slideto(i.activeindex,e,t,a)},slidetoclickedslide:function(){var t,a=this,i=a.params,s=a.$wrapperel,r="auto"===i.slidesperview?a.slidesperviewdynamic():i.slidesperview,n=a.clickedindex;if(i.loop){if(a.animating)return;t=parseint(e(a.clickedslide).attr("data-swiper-slide-index"),10),i.centeredslides?na.slides.length-a.loopedslides+r/2?(a.loopfix(),n=s.children("."+i.slideclass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideduplicateclass+")").eq(0).index(),o.nexttick(function(){a.slideto(n)})):a.slideto(n):n>a.slides.length-r?(a.loopfix(),n=s.children("."+i.slideclass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideduplicateclass+")").eq(0).index(),o.nexttick(function(){a.slideto(n)})):a.slideto(n)}else a.slideto(n)}},m={loopcreate:function(){var t=this,a=t.params,i=t.$wrapperel;i.children("."+a.slideclass+"."+a.slideduplicateclass).remove();var s=i.children("."+a.slideclass);if(a.loopfillgroupwithblank){var r=a.slidespergroup-s.length%a.slidespergroup;if(r!==a.slidespergroup){for(var n=0;ns.length&&(t.loopedslides=s.length);var l=[],d=[];s.each(function(a,i){var r=e(i);a=s.length-t.loopedslides&&l.push(i),r.attr("data-swiper-slide-index",a)});for(var p=0;p=0;c-=1)i.prepend(e(l[c].clonenode(!0)).addclass(a.slideduplicateclass))},loopfix:function(){var e,t=this,a=t.params,i=t.activeindex,s=t.slides,r=t.loopedslides,n=t.allowslideprev,o=t.allowslidenext;t.allowslideprev=!0,t.allowslidenext=!0,i=2*r||i>s.length-2*a.slidesperview)&&(e=-s.length+i+r,e+=r,t.slideto(e,0,!1,!0)),t.allowslideprev=n,t.allowslidenext=o},loopdestroy:function(){var e=this,t=e.$wrapperel,a=e.params,i=e.slides;t.children("."+a.slideclass+"."+a.slideduplicateclass).remove(),i.removeattr("data-swiper-slide-index")}},g={setgrabcursor:function(e){var t=this;if(!l.touch&&t.params.simulatetouch){var a=t.el;a.style.cursor="move",a.style.cursor=e?"-webkit-grabbing":"-webkit-grab",a.style.cursor=e?"-moz-grabbin":"-moz-grab",a.style.cursor=e?"grabbing":"grab"}},unsetgrabcursor:function(){var e=this;l.touch||(e.el.style.cursor="")}},b={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=0),(r||o||n)&&(t.os="ios",t.ios=!0),o&&!n&&(t.osversion=o[2].replace(/_/g,"."),t.iphone=!0),r&&(t.osversion=r[2].replace(/_/g,"."),t.ipad=!0),n&&(t.osversion=n[3]?n[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osversion&&e.indexof("version/")>=0&&"10"===t.osversion.split(".")[0]&&(t.osversion=e.tolowercase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webview),t.webview=(o||r||n)&&e.match(/.*applewebkit(?!.*safari)/i),t.os&&"ios"===t.os){var l=t.osversion.split("."),d=document.queryselector('meta[name="viewport"]');t.minimalui=!t.webview&&(n||o)&&(1*l[0]==7?1*l[1]>=1:1*l[0]>7)&&d&&d.getattribute("content").indexof("minimal-ui")>=0}return t.pixelratio=s.devicepixelratio||1,t}(),y=function(t){var a=this,i=a.toucheventsdata,s=a.params,r=a.touches,n=t;if(n.originalevent&&(n=n.originalevent),i.istouchevent="touchstart"===n.type,i.istouchevent||!("which"in n)||3!==n.which)if(s.noswiping&&e(n).closest("."+s.noswipingclass)[0])a.allowclick=!0;else if(!s.swipehandler||e(n).closest(s.swipehandler)[0]){r.currentx="touchstart"===n.type?n.targettouches[0].pagex:n.pagex,r.currenty="touchstart"===n.type?n.targettouches[0].pagey:n.pagey;var l=r.currentx,d=r.currenty;if(!(w.ios&&s.iosedgeswipedetection&&l<=s.iosedgeswipethreshold)){if(o.extend(i,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),r.startx=l,r.starty=d,i.touchstarttime=o.now(),a.allowclick=!0,a.updatesize(),a.swipedirection=void 0,s.threshold>0&&(i.allowthresholdmove=!1),"touchstart"!==n.type){var p=!0;e(n.target).is(i.formelements)&&(p=!1),document.activeelement&&e(document.activeelement).is(i.formelements)&&document.activeelement.blur(),p&&n.preventdefault()}a.emit("touchstart",n)}}},x=function(t){var a=this,i=a.toucheventsdata,s=a.params,r=a.touches,n=a.rtl,l=t;if(l.originalevent&&(l=l.originalevent),!i.istouchevent||"mousemove"!==l.type){var d="touchmove"===l.type?l.targettouches[0].pagex:l.pagex,p="touchmove"===l.type?l.targettouches[0].pagey:l.pagey;if(l.preventedbynestedswiper)return r.startx=d,void(r.starty=p);if(!a.allowtouchmove)return a.allowclick=!1,void(i.istouched&&(o.extend(r,{startx:d,starty:p,currentx:d,currenty:p}),i.touchstarttime=o.now()));if(i.istouchevent&&s.touchreleaseonedges&&!s.loop)if(a.isvertical()){if(r.currentyr.starty&&a.translate>=a.mintranslate())return}else if(r.currentxr.startx&&a.translate>=a.mintranslate())return;if(i.istouchevent&&document.activeelement&&l.target===document.activeelement&&e(l.target).is(i.formelements))return i.ismoved=!0,void(a.allowclick=!1);if(i.allowtouchcallbacks&&a.emit("touchmove",l),!(l.targettouches&&l.targettouches.length>1)){if(r.currentx="touchmove"===l.type?l.targettouches[0].pagex:l.pagex,r.currenty="touchmove"===l.type?l.targettouches[0].pagey:l.pagey,void 0===i.isscrolling){var c;a.ishorizontal()&&r.currenty===r.starty||a.isvertical()&&r.currentx===r.startx?i.isscrolling=!1:(c=180*math.atan2(math.abs(r.currenty-r.starty),math.abs(r.currentx-r.startx))/math.pi,i.isscrolling=a.ishorizontal()?c>s.touchangle:90-c>s.touchangle)}if(i.isscrolling&&a.emit("touchmoveopposite",l),"undefined"==typeof startmoving&&(r.currentx===r.startx&&r.currenty===r.starty||(i.startmoving=!0)),i.istouched)if(i.isscrolling)i.istouched=!1;else if(i.startmoving){a.allowclick=!1,l.preventdefault(),s.touchmovestoppropagation&&!s.nested&&l.stoppropagation(),i.ismoved||(s.loop&&a.loopfix(),i.starttranslate=a.gettranslate(),a.settransition(0),a.animating&&a.$wrapperel.trigger("webkittransitionend transitionend"),i.allowmomentumbounce=!1,!s.grabcursor||!0!==a.allowslidenext&&!0!==a.allowslideprev||a.setgrabcursor(!0),a.emit("sliderfirstmove",l)),a.emit("slidermove",l),i.ismoved=!0;var u=a.ishorizontal()?r.currentx-r.startx:r.currenty-r.starty;r.diff=u,u*=s.touchratio,n&&(u=-u),a.swipedirection=u>0?"prev":"next",i.currenttranslate=u+i.starttranslate;var h=!0,v=s.resistanceratio;if(s.touchreleaseonedges&&(v=0),u>0&&i.currenttranslate>a.mintranslate()?(h=!1,s.resistance&&(i.currenttranslate=a.mintranslate()-1+math.pow(-a.mintranslate()+i.starttranslate+u,v))):u<0&&i.currenttranslatei.starttranslate&&(i.currenttranslate=i.starttranslate),s.threshold>0){if(!(math.abs(u)>s.threshold||i.allowthresholdmove))return void(i.currenttranslate=i.starttranslate);if(!i.allowthresholdmove)return i.allowthresholdmove=!0,r.startx=r.currentx,r.starty=r.currenty,i.currenttranslate=i.starttranslate,void(r.diff=a.ishorizontal()?r.currentx-r.startx:r.currenty-r.starty)}s.followfinger&&((s.freemode||s.watchslidesprogress||s.watchslidesvisibility)&&(a.updateactiveindex(),a.updateslidesclasses()),s.freemode&&(0===i.velocities.length&&i.velocities.push({position:r[a.ishorizontal()?"startx":"starty"],time:i.touchstarttime}),i.velocities.push({position:r[a.ishorizontal()?"currentx":"currenty"],time:o.now()})),a.updateprogress(i.currenttranslate),a.settranslate(i.currenttranslate))}}}},t=function(e){var t=this,a=t.toucheventsdata,i=t.params,s=t.touches,r=t.rtl,n=t.$wrapperel,l=t.slidesgrid,d=t.snapgrid,p=e;if(p.originalevent&&(p=p.originalevent),a.allowtouchcallbacks&&t.emit("touchend",p),a.allowtouchcallbacks=!1,a.istouched){i.grabcursor&&a.ismoved&&a.istouched&&(!0===t.allowslidenext||!0===t.allowslideprev)&&t.setgrabcursor(!1);var c=o.now(),u=c-a.touchstarttime;if(t.allowclick&&(t.updateclickedslide(p),t.emit("tap",p),u<300&&c-a.lastclicktime>300&&(a.clicktimeout&&cleartimeout(a.clicktimeout),a.clicktimeout=o.nexttick(function(){t&&t.emit("click",p)},300)),u<300&&c-a.lastclicktime<300&&(a.clicktimeout&&cleartimeout(a.clicktimeout),t.emit("doubletap",p))),a.lastclicktime=o.now(),o.nexttick(function(){t&&(t.allowclick=!0)}),!a.istouched||!a.ismoved||!t.swipedirection||0===s.diff||a.currenttranslate===a.starttranslate)return a.istouched=!1,void(a.ismoved=!1);a.istouched=!1,a.ismoved=!1;var h;if(h=i.followfinger?r?t.translate:-t.translate:-a.currenttranslate,i.freemode){if(h<-t.mintranslate())return void t.slideto(t.activeindex);if(h>-t.maxtranslate())return void(t.slides.length1){var v=a.velocities.pop(),f=a.velocities.pop(),m=v.position-f.position,g=v.time-f.time;t.velocity=m/g,t.velocity/=2,math.abs(t.velocity)150||o.now()-v.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freemodemomentumvelocityratio,a.velocities.length=0;var b=1e3*i.freemodemomentumratio,w=t.velocity*b,y=t.translate+w;r&&(y=-y);var x,t=!1,e=20*math.abs(t.velocity)*i.freemodemomentumbounceratio;if(yt.mintranslate())i.freemodemomentumbounce?(y-t.mintranslate()>e&&(y=t.mintranslate()+e),x=t.mintranslate(),t=!0,a.allowmomentumbounce=!0):y=t.mintranslate();else if(i.freemodesticky){for(var s,c=0;c-y){s=c;break}y=math.abs(d[s]-y)=i.longswipesms)&&(t.updateprogress(),t.updateactiveindex(),t.updateslidesclasses())}else{for(var m=0,z=t.slidessizesgrid[0],p=0;p=l[p]&&h=l[p]&&(m=p,z=l[l.length-1]-l[l.length-2]);var k=(h-l[m])/z;if(u>i.longswipesms){if(!i.longswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&(k>=i.longswipesratio?t.slideto(m+i.slidespergroup):t.slideto(m)),"prev"===t.swipedirection&&(k>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)}}}},e=function(){var e=this,t=e.params,a=e.el,i=e.allowslidenext,s=e.allowslideprev;if(!a||0!==a.offsetwidth){if(t.breakpoints&&e.setbreakpoint(),e.allowslidenext=!0,e.allowslideprev=!0,e.updatesize(),e.updateslides(),t.freemode){var r=math.min(math.max(e.translate,e.maxtranslate()),e.mintranslate());e.settranslate(r),e.updateactiveindex(),e.updateslidesclasses(),t.autoheight&&e.updateautoheight()}else e.updateslidesclasses(),("auto"===t.slidesperview||t.slidesperview>1)&&e.isend&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0);e.allowslideprev=s,e.allowslidenext=i}},s=function(e){var t=this;t.allowclick||(t.params.preventclicks&&e.preventdefault(),t.params.preventclickspropagation&&t.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},c={init:!0,direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,iosedgeswipedetection:!1,iosedgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodemomentumvelocityratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",breakpoints:void 0,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,centeredslides:!1,slidesoffsetbefore:0,slidesoffsetafter:0,normalizeslideindex:!0,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,allowtouchmove:!0,threshold:0,touchmovestoppropagation:!0,touchreleaseonedges:!1,uniquenavelements:!0,resistance:!0,resistanceratio:.85,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,loopfillgroupwithblank:!1,allowslideprev:!0,allowslidenext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",slideblankclass:"swiper-slide-invisible-blank",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",runcallbacksoninit:!0},m={update:c,translate:u,transition:h,slide:f,loop:m,grabcursor:g,manipulation:b,events:{attachevents:function(){var e=this,t=e.params,a=e.touchevents,i=e.el,s=e.wrapperel;e.ontouchstart=y.bind(e),e.ontouchmove=x.bind(e),e.ontouchend=t.bind(e),e.onclick=s.bind(e);var r="container"===t.toucheventstarget?i:s,n=!!t.nested;if(v.ie)r.addeventlistener(a.start,e.ontouchstart,!1),(l.touch?r:document).addeventlistener(a.move,e.ontouchmove,n),(l.touch?r:document).addeventlistener(a.end,e.ontouchend,!1);else{if(l.touch){var o=!("ontouchstart"!==a.start||!l.passivelistener||!t.passivelisteners)&&{passive:!0,capture:!1};r.addeventlistener(a.start,e.ontouchstart,o),r.addeventlistener(a.move,e.ontouchmove,n),r.addeventlistener(a.end,e.ontouchend,o)}(t.simulatetouch&&!w.ios&&!w.android||t.simulatetouch&&!l.touch&&w.ios)&&(r.addeventlistener("mousedown",e.ontouchstart,!1),document.addeventlistener("mousemove",e.ontouchmove,n),document.addeventlistener("mouseup",e.ontouchend,!1))}(t.preventclicks||t.preventclickspropagation)&&r.addeventlistener("click",e.onclick,!0),e.on("resize observerupdate",e)},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(v.ie)r.removeeventlistener(a.start,e.ontouchstart,!1),(l.touch?r:document).removeeventlistener(a.move,e.ontouchmove,n),(l.touch?r:document).removeeventlistener(a.end,e.ontouchend,!1);else{if(l.touch){var o=!("ontouchstart"!==a.start||!l.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&&!w.ios&&!w.android||t.simulatetouch&&!l.touch&&w.ios)&&(r.removeeventlistener("mousedown",e.ontouchstart,!1),document.removeeventlistener("mousemove",e.ontouchmove,n),document.removeeventlistener("mouseup",e.ontouchend,!1))}(t.preventclicks||t.preventclickspropagation)&&r.removeeventlistener("click",e.onclick,!0),e.off("resize observerupdate",e)}},breakpoints:{setbreakpoint:function(){var e=this,t=e.activeindex,a=e.loopedslides;void 0===a&&(a=0);var i=e.params,s=i.breakpoints;if(s&&(!s||0!==object.keys(s).length)){var r=e.getbreakpoint(s);if(r&&e.currentbreakpoint!==r){var n=r in s?s[r]:e.originalparams,l=i.loop&&n.slidesperview!==i.slidesperview;if(o.extend(e.params,n),o.extend(e,{allowtouchmove:e.params.allowtouchmove,allowslidenext:e.params.allowslidenext,allowslideprev:e.params.allowslideprev}),e.currentbreakpoint=r,l){var d=t-a;e.loopdestroy(),e.loopcreate(),e.updateslides(),e.slideto(d+a,0,!1)}}}},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=s.innerwidth&&!t&&(t=r)}return t||"max"}}},classes:{addclasses:function(){var e=this,t=e.classnames,a=e.params,i=e.rtl,r=e.$el,n=[];n.push(a.direction),a.freemode&&n.push("free-mode"),l.flexbox||n.push("no-flexbox"),a.autoheight&&n.push("autoheight"),i&&n.push("rtl"),a.slidespercolumn>1&&n.push("multirow"),w.android&&n.push("android"),w.ios&&n.push("ios"),(s.navigator.pointerenabled||s.navigator.mspointerenabled)&&n.push("wp8-"+a.direction),n.foreach(function(e){t.push(a.containermodifierclass+e)}),r.addclass(t.join(" "))},removeclasses:function(){var e=this,t=e.$el,a=e.classnames;t.removeclass(a.join(" "))}},images:{loadimage:function(e,t,a,i,r,n){function o(){n&&n()}var l;e.complete&&r?o():t?((l=new s.image).onload=o,l.onerror=o,i&&(l.sizes=i),a&&(l.srcset=a),t&&(l.src=t)):o()},preloadimages:function(){var e=this;e.imagestoload=e.$el.find("img");for(var t=0;t1){var v=[];return h.each(function(e,t){var i=o.extend({},d,{el:t});v.push(new a(i))}),v}n.swiper=c,h.data("swiper",c);var f=h.children("."+c.params.wrapperclass);return o.extend(c,{$el:h,el:n,$wrapperel:f,wrapperel:f[0],classnames:[],slides:e(),slidesgrid:[],snapgrid:[],slidessizesgrid:[],ishorizontal:function(){return"horizontal"===c.params.direction},isvertical:function(){return"vertical"===c.params.direction},rtl:"horizontal"===c.params.direction&&("rtl"===n.dir.tolowercase()||"rtl"===h.css("direction")),wrongrtl:"-webkit-box"===f.css("display"),activeindex:0,realindex:0,isbeginning:!0,isend:!1,translate:0,progress:0,velocity:0,animating:!1,allowslidenext:c.params.allowslidenext,allowslideprev:c.params.allowslideprev,touchevents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return s.navigator.pointerenabled?t=["pointerdown","pointermove","pointerup"]:s.navigator.mspointerenabled&&(t=["mspointerdown","mspointermove","mspointerup"]),{start:l.touch||!c.params.simulatetouch?e[0]:t[0],move:l.touch||!c.params.simulatetouch?e[1]:t[1],end:l.touch||!c.params.simulatetouch?e[2]:t[2]}}(),toucheventsdata:{istouched:void 0,ismoved:void 0,allowtouchcallbacks:void 0,touchstarttime:void 0,isscrolling:void 0,currenttranslate:void 0,starttranslate:void 0,allowthresholdmove:void 0,formelements:"input, select, textarea, button, video",lastclicktime:o.now(),clicktimeout:void 0,velocities:[],allowmomentumbounce:void 0,istouchevent:void 0,startmoving:void 0},allowclick:!0,allowtouchmove:c.params.allowtouchmove,touches:{startx:0,starty:0,currentx:0,currenty:0,diff:0},imagestoload:[],imagesloaded:0}),c.usemodules(),c.params.init&&c.init(),c}}t&&(a.__proto__=t),a.prototype=object.create(t&&t.prototype),a.prototype.constructor=a;var i={extendeddefaults:{},defaults:{},class:{},$:{}};return a.prototype.slidesperviewdynamic=function(){var e=this,t=e.params,a=e.slides,i=e.slidesgrid,s=e.size,r=e.activeindex,n=1;if(t.centeredslides){for(var o,l=a[r].swiperslidesize,d=r+1;ds&&(o=!0));for(var p=r-1;p>=0;p-=1)a[p]&&!o&&(n+=1,(l+=a[p].swiperslidesize)>s&&(o=!0))}else for(var c=r+1;c1)&&t.isend&&!t.params.centeredslides?t.slideto(t.slides.length-1,0,!1,!0):t.slideto(t.activeindex,0,!1,!0))||e(),t.emit("update")}},a.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeinit"),e.params.breakpoints&&e.setbreakpoint(),e.addclasses(),e.params.loop&&e.loopcreate(),e.updatesize(),e.updateslides(),e.params.grabcursor&&e.setgrabcursor(),e.params.preloadimages&&e.preloadimages(),e.params.loop?e.slideto(e.params.initialslide+e.loopedslides,0,e.params.runcallbacksoninit):e.slideto(e.params.initialslide,0,e.params.runcallbacksoninit),e.attachevents(),e.initialized=!0,e.emit("init"))},a.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var a=this,i=a.params,s=a.$el,r=a.$wrapperel,n=a.slides;a.emit("beforedestroy"),a.initialized=!1,a.detachevents(),i.loop&&a.loopdestroy(),t&&(a.removeclasses(),s.removeattr("style"),r.removeattr("style"),n&&n.length&&n.removeclass([i.slidevisibleclass,i.slideactiveclass,i.slidenextclass,i.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index").removeattr("data-swiper-column").removeattr("data-swiper-row")),a.emit("destroy"),object.keys(a.eventslisteners).foreach(function(e){a.off(e)}),!1!==e&&(a.$el[0].swiper=null,a.$el.data("swiper",null),o.deleteprops(a),a=null)},a.extenddefaults=function(e){o.extend(z,e)},i.extendeddefaults.get=function(){return z},i.defaults.get=function(){return c},i.class.get=function(){return t},i.$.get=function(){return e},object.defineproperties(a,i),a}(d),k={name:"device",proto:{device:w},static:{device:w}},$={name:"support",proto:{support:l},static:{support:l}},i={name:"browser",proto:{browser:v},static:{browser:v}},l={name:"resize",create:function(){var e=this;o.extend(e,{resize:{resizehandler:function(){e&&e.initialized&&(e.emit("beforeresize"),e.emit("resize"))},orientationchangehandler:function(){e&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){var e=this;s.addeventlistener("resize",e.resize.resizehandler),s.addeventlistener("orientationchange",e.resize.orientationchangehandler)},destroy:function(){var e=this;s.removeeventlistener("resize",e.resize.resizehandler),s.removeeventlistener("orientationchange",e.resize.orientationchangehandler)}}},d={func:s.mutationobserver||s.webkitmutationobserver,attach:function(e,t){void 0===t&&(t={});var a=this,i=new(0,d.func)(function(e){e.foreach(function(e){a.emit("observerupdate",e)})});i.observe(e,{attributes:void 0===t.attributes||t.attributes,childlist:void 0===t.childlist||t.childlist,characterdata:void 0===t.characterdata||t.characterdata}),a.observer.observers.push(i)},init:function(){var e=this;if(l.observer&&e.params.observer){if(e.params.observeparents)for(var t=e.$el.parents(),a=0;ay)&&a.$wrapperel.find("."+a.params.slideclass+'[data-swiper-slide-index="'+s+'"]').remove();for(var c=0;c=w&&c<=y&&(void 0===p||e?e.push(c):(c>p&&e.push(c),c'+t+"");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",a),s.cache&&(i.virtual.cache[a]=r),r},appendslide:function(e){var t=this;t.virtual.slides.push(e),t.virtual.update(!0)},prependslide:function(e){var t=this;if(t.virtual.slides.unshift(e),t.params.virtual.cache){var a=t.virtual.cache,i={};object.keys(a).foreach(function(e){i[e+1]=a[e]}),t.virtual.cache=i}t.virtual.update(!0),t.slidenext(0)}},x={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderslide:null,renderexternal:null}},create:function(){var e=this;o.extend(e,{virtual:{update:h.update.bind(e),appendslide:h.appendslide.bind(e),prependslide:h.prependslide.bind(e),renderslide:h.renderslide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeinit:function(){var e=this;e.params.virtual.enabled&&(e.classnames.push(e.params.containermodifierclass+"virtual"),o.extend(e.params,{watchslidesprogress:!0}),e.virtual.update())},settranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},a={handle:function(e){var t=this,a=e;a.originalevent&&(a=a.originalevent);var i=a.keycode||a.charcode;if(!t.allowslidenext&&(t.ishorizontal()&&39===i||t.isvertical()&&40===i))return!1;if(!t.allowslideprev&&(t.ishorizontal()&&37===i||t.isvertical()&&38===i))return!1;if(!(a.shiftkey||a.altkey||a.ctrlkey||a.metakey||document.activeelement&&document.activeelement.nodename&&("input"===document.activeelement.nodename.tolowercase()||"textarea"===document.activeelement.nodename.tolowercase()))){if(37===i||39===i||38===i||40===i){var r=!1;if(t.$el.parents("."+t.params.slideclass).length>0&&0===t.$el.parents("."+t.params.slideactiveclass).length)return;var n={left:s.pagexoffset,top:s.pageyoffset},o=s.innerwidth,l=s.innerheight,d=t.$el.offset();t.rtl&&(d.left-=t.$el[0].scrollleft);for(var p=[[d.left,d.top],[d.left+t.width,d.top],[d.left,d.top+t.height],[d.left+t.width,d.top+t.height]],c=0;c=n.left&&u[0]<=n.left+o&&u[1]>=n.top&&u[1]<=n.top+l&&(r=!0)}if(!r)return}t.ishorizontal()?(37!==i&&39!==i||(a.preventdefault?a.preventdefault():a.returnvalue=!1),(39===i&&!t.rtl||37===i&&t.rtl)&&t.slidenext(),(37===i&&!t.rtl||39===i&&t.rtl)&&t.slideprev()):(38!==i&&40!==i||(a.preventdefault?a.preventdefault():a.returnvalue=!1),40===i&&t.slidenext(),38===i&&t.slideprev()),t.emit("keypress",i)}},enable:function(){var t=this;t.keyboard.enabled||(e(document).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(e(document).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},y={name:"keyboard",params:{keyboard:{enabled:!1}},create:function(){var e=this;o.extend(e,{keyboard:{enabled:!1,enable:a.enable.bind(e),disable:a.disable.bind(e),handle:a.handle.bind(e)}})},on:{init:function(){var e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(){var e=this;e.keyboard.enabled&&e.keyboard.disable()}}},n={lastscrolltime:o.now(),event:s.navigator.useragent.indexof("firefox")>-1?"dommousescroll":a()?"wheel":"mousewheel",normalize:function(e){var t=0,a=0,i=0,s=0;return"detail"in e&&(a=e.detail),"wheeldelta"in e&&(a=-e.wheeldelta/120),"wheeldeltay"in e&&(a=-e.wheeldeltay/120),"wheeldeltax"in e&&(t=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(t=a,a=0),i=10*t,s=10*a,"deltay"in e&&(s=e.deltay),"deltax"in e&&(i=e.deltax),(i||s)&&e.deltamode&&(1===e.deltamode?(i*=40,s*=40):(i*=800,s*=800)),i&&!t&&(t=i<1?-1:1),s&&!a&&(a=s<1?-1:1),{spinx:t,spiny:a,pixelx:i,pixely:s}},handle:function(e){var t=e,a=this,i=a.params.mousewheel;t.originalevent&&(t=t.originalevent);var r=0,n=a.rtl?-1:1,l=n.normalize(t);if(i.forcetoaxis)if(a.ishorizontal()){if(!(math.abs(l.pixelx)>math.abs(l.pixely)))return!0;r=l.pixelx*n}else{if(!(math.abs(l.pixely)>math.abs(l.pixelx)))return!0;r=l.pixely}else r=math.abs(l.pixelx)>math.abs(l.pixely)?-l.pixelx*n:-l.pixely;if(0===r)return!0;if(i.invert&&(r=-r),a.params.freemode){var d=a.gettranslate()+r*i.sensitivity,p=a.isbeginning,c=a.isend;if(d>=a.mintranslate()&&(d=a.mintranslate()),d<=a.maxtranslate()&&(d=a.maxtranslate()),a.settransition(0),a.settranslate(d),a.updateprogress(),a.updateactiveindex(),a.updateslidesclasses(),(!p&&a.isbeginning||!c&&a.isend)&&a.updateslidesclasses(),a.params.freemodesticky&&(cleartimeout(a.mousewheel.timeout),a.mousewheel.timeout=o.nexttick(function(){a.slidereset()},300)),a.emit("scroll",t),a.params.autoplay&&a.params.autoplaydisableoninteraction&&a.stopautoplay(),0===d||d===a.maxtranslate())return!0}else{if(o.now()-a.mousewheel.lastscrolltime>60)if(r<0)if(a.isend&&!a.params.loop||a.animating){if(i.releaseonedges)return!0}else a.slidenext(),a.emit("scroll",t);else if(a.isbeginning&&!a.params.loop||a.animating){if(i.releaseonedges)return!0}else a.slideprev(),a.emit("scroll",t);a.mousewheel.lastscrolltime=(new s.date).gettime()}return t.preventdefault?t.preventdefault():t.returnvalue=!1,!1},enable:function(){var t=this;if(!n.event)return!1;if(t.mousewheel.enabled)return!1;var a=t.$el;return"container"!==t.params.mousewheel.eventstarged&&(a=e(t.params.mousewheel.eventstarged)),a.on(n.event,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this;if(!n.event)return!1;if(!t.mousewheel.enabled)return!1;var a=t.$el;return"container"!==t.params.mousewheel.eventstarged&&(a=e(t.params.mousewheel.eventstarged)),a.off(n.event,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}},g={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseonedges:!1,invert:!1,forcetoaxis:!1,sensitivity:1,eventstarged:"container"}},create:function(){var e=this;o.extend(e,{mousewheel:{enabled:!1,enable:n.enable.bind(e),disable:n.disable.bind(e),handle:n.handle.bind(e),lastscrolltime:o.now()}})},on:{init:function(){var e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}},b={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var a=e.navigation,i=a.$nextel,s=a.$prevel;s&&s.length>0&&(e.isbeginning?s.addclass(t.disabledclass):s.removeclass(t.disabledclass)),i&&i.length>0&&(e.isend?i.addclass(t.disabledclass):i.removeclass(t.disabledclass))}},init:function(){var t=this,a=t.params.navigation;if(a.nextel||a.prevel){var i,s;a.nextel&&(i=e(a.nextel),t.params.uniquenavelements&&"string"==typeof a.nextel&&i.length>1&&1===t.$el.find(a.nextel).length&&(i=t.$el.find(a.nextel))),a.prevel&&(s=e(a.prevel),t.params.uniquenavelements&&"string"==typeof a.prevel&&s.length>1&&1===t.$el.find(a.prevel).length&&(s=t.$el.find(a.prevel))),i&&i.length>0&&i.on("click",function(e){e.preventdefault(),t.isend&&!t.params.loop||t.slidenext()}),s&&s.length>0&&s.on("click",function(e){e.preventdefault(),t.isbeginning&&!t.params.loop||t.slideprev()}),o.extend(t.navigation,{$nextel:i,nextel:i&&i[0],$prevel:s,prevel:s&&s[0]})}},destroy:function(){var e=this,t=e.navigation,a=t.$nextel,i=t.$prevel;a&&a.length&&(a.off("click"),a.removeclass(e.params.navigation.disabledclass)),i&&i.length&&(i.off("click"),i.removeclass(e.params.navigation.disabledclass))}},v={name:"navigation",params:{navigation:{nextel:null,prevel:null,hideonclick:!1,disabledclass:"swiper-button-disabled",hiddenclass:"swiper-button-hidden"}},create:function(){var e=this;o.extend(e,{navigation:{init:b.init.bind(e),update:b.update.bind(e),destroy:b.destroy.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toedge:function(){this.navigation.update()},fromedge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var a=this,i=a.navigation,s=i.$nextel,r=i.$prevel;!a.params.navigation.hideonclick||e(t.target).is(r)||e(t.target).is(s)||(s&&s.toggleclass(a.params.navigation.hiddenclass),r&&r.toggleclass(a.params.navigation.hiddenclass))}}},r={update:function(){var t=this,a=t.params.pagination;if(a.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var i,s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el,n=t.params.loop?math.ceil((s-2*t.loopedslides)/t.params.slidespergroup):t.snapgrid.length;if(t.params.loop?((i=math.ceil((t.activeindex-t.loopedslides)/t.params.slidespergroup))>s-1-2*t.loopedslides&&(i-=s-2*t.loopedslides),i>n-1&&(i-=n),i<0&&"bullets"!==t.params.paginationtype&&(i=n+i)):i=void 0!==t.snapindex?t.snapindex:t.activeindex||0,"bullets"===a.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var o=t.pagination.bullets;if(a.dynamicbullets&&(t.pagination.bulletsize=o.eq(0)[t.ishorizontal()?"outerwidth":"outerheight"](!0),r.css(t.ishorizontal()?"width":"height",5*t.pagination.bulletsize+"px")),o.removeclass(a.bulletactiveclass+" "+a.bulletactiveclass+"-next "+a.bulletactiveclass+"-next-next "+a.bulletactiveclass+"-prev "+a.bulletactiveclass+"-prev-prev"),r.length>1)o.each(function(t,s){var r=e(s);r.index()===i&&(r.addclass(a.bulletactiveclass),a.dynamicbullets&&(r.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),r.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next")))});else{var l=o.eq(i);l.addclass(a.bulletactiveclass),a.dynamicbullets&&(l.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),l.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next"))}if(a.dynamicbullets){var d=(5*t.pagination.bulletsize-t.pagination.bulletsize)/2-i*t.pagination.bulletsize;o.css(t.ishorizontal()?"left":"top",d+"px")}}if("fraction"===a.type&&(r.find("."+a.currentclass).text(i+1),r.find("."+a.totalclass).text(n)),"progressbar"===a.type){var p=(i+1)/n,c=p,u=1;t.ishorizontal()||(u=p,c=1),r.find("."+a.progressbarfillclass).transform("translate3d(0,0,0) scalex("+c+") scaley("+u+")").transition(t.params.speed)}"custom"===a.type&&a.rendercustom?(r.html(a.rendercustom(t,i+1,n)),t.emit("paginationrender",t,r[0])):t.emit("paginationupdate",t,r[0])}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,s="";if("bullets"===t.type){for(var r=e.params.loop?math.ceil((a-2*e.loopedslides)/e.params.slidespergroup):e.snapgrid.length,n=0;n";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 t=this,a=t.params.pagination;if(a.el){var i=e(a.el);0!==i.length&&(t.params.uniquenavelements&&"string"==typeof a.el&&i.length>1&&1===t.$el.find(a.el).length&&(i=t.$el.find(a.el)),"bullets"===a.type&&a.clickable&&i.addclass(a.clickableclass),i.addclass(a.modifierclass+a.type),"bullets"===a.type&&a.dynamicbullets&&i.addclass(""+a.modifierclass+a.type+"-dynamic"),a.clickable&&i.on("click","."+a.bulletclass,function(a){a.preventdefault();var i=e(this).index()*t.params.slidespergroup;t.params.loop&&(i+=t.loopedslides),t.slideto(i)}),o.extend(t.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.pagination.$el;a.removeclass(t.hiddenclass),a.removeclass(t.modifierclass+t.type),e.pagination.bullets&&e.pagination.bullets.removeclass(t.bulletactiveclass),t.clickable&&a.off("click","."+t.bulletclass)}}},w={name:"pagination",params:{pagination:{el:null,bulletelement:"span",clickable:!1,hideonclick:!1,renderbullet:null,renderprogressbar:null,renderfraction:null,rendercustom:null,type:"bullets",dynamicbullets:!1,bulletclass:"swiper-pagination-bullet",bulletactiveclass:"swiper-pagination-bullet-active",modifierclass:"swiper-pagination-",currentclass:"swiper-pagination-current",totalclass:"swiper-pagination-total",hiddenclass:"swiper-pagination-hidden",progressbarfillclass:"swiper-pagination-progressbar-fill",clickableclass:"swiper-pagination-clickable"}},create:function(){var e=this;o.extend(e,{pagination:{init:r.init.bind(e),render:r.render.bind(e),update:r.update.bind(e),destroy:r.destroy.bind(e)}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeindexchange:function(){var e=this;e.params.loop?e.pagination.update():void 0===e.snapindex&&e.pagination.update()},snapindexchange:function(){var e=this;e.params.loop||e.pagination.update()},slideslengthchange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapgridlengthchange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(t){var a=this;a.params.pagination.el&&a.params.pagination.hideonclick&&a.pagination.$el.length>0&&!e(t.target).hasclass(a.params.pagination.bulletclass)&&a.pagination.$el.toggleclass(a.params.pagination.hiddenclass)}}},f={settranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=e.rtl,i=e.progress,s=t.dragsize,r=t.tracksize,n=t.$dragel,o=t.$el,d=e.params.scrollbar,p=s,c=(r-s)*i;a&&e.ishorizontal()?(c=-c)>0?(p=s-c,c=0):-c+s>r&&(p=r+c):c<0?(p=s+c,c=0):c+s>r&&(p=r-c),e.ishorizontal()?(l.transforms3d?n.transform("translate3d("+c+"px, 0, 0)"):n.transform("translatex("+c+"px)"),n[0].style.width=p+"px"):(l.transforms3d?n.transform("translate3d(0px, "+c+"px, 0)"):n.transform("translatey("+c+"px)"),n[0].style.height=p+"px"),d.hide&&(cleartimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=settimeout(function(){o[0].style.opacity=0,o.transition(400)},1e3))}},settransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragel.transition(e)},updatesize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=t.$dragel,i=t.$el;a[0].style.width="",a[0].style.height="";var s,r=e.ishorizontal()?i[0].offsetwidth:i[0].offsetheight,n=e.size/e.virtualsize,l=n*(r/e.size);s="auto"===e.params.scrollbar.dragsize?r*n:parseint(e.params.scrollbar.dragsize,10),e.ishorizontal()?a[0].style.width=s+"px":a[0].style.height=s+"px",i[0].style.display=n>=1?"none":"",e.params.scrollbarhide&&(i[0].style.opacity=0),o.extend(t,{tracksize:r,divider:n,movedivider:l,dragsize:s})}},setdragposition:function(e){var t,a=this,i=a.scrollbar,s=i.$el,r=i.dragsize,n=i.movedivider,o=(t=a.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagex:e.pagex||e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagey:e.pagey||e.clienty)-s.offset()[a.ishorizontal()?"left":"top"]-r/2,l=-a.mintranslate()*n,d=-a.maxtranslate()*n;od&&(o=d),a.rtl&&(o=d-o),o=-o/n,a.updateprogress(o),a.settranslate(o),a.updateactiveindex(),a.updateslidesclasses()},ondragstart:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperel,r=i.$el,n=i.$dragel;t.scrollbar.istouched=!0,e.preventdefault(),e.stoppropagation(),s.transition(100),n.transition(100),i.setdragposition(e),cleartimeout(t.scrollbar.dragtimeout),r.transition(0),a.hide&&r.css("opacity",1),t.emit("scrollbardragstart",e)},ondragmove:function(e){var t=this,a=t.scrollbar,i=t.$wrapperel,s=a.$el,r=a.$dragel;t.scrollbar.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),i.transition(0),s.transition(0),r.transition(0),t.emit("scrollbardragmove",e))},ondragend:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar.$el;t.scrollbar.istouched&&(t.scrollbar.istouched=!1,a.hide&&(cleartimeout(t.scrollbar.dragtimeout),t.scrollbar.dragtimeout=o.nexttick(function(){i.css("opacity",0),i.transition(400)},1e3)),t.emit("scrollbardragend",e),a.snaponrelease&&t.slidereset())},enabledraggable:function(){var t=this;if(t.params.scrollbar.el){var a=t.scrollbar.$el,i=l.touch?a[0]:document;a.on(t.scrollbar.dragevents.start,t.scrollbar.ondragstart),e(i).on(t.scrollbar.dragevents.move,t.scrollbar.ondragmove),e(i).on(t.scrollbar.dragevents.end,t.scrollbar.ondragend)}},disabledraggable:function(){var t=this;if(t.params.scrollbar.el){var a=t.scrollbar.$el,i=l.touch?a[0]:document;a.off(t.scrollbar.dragevents.start),e(i).off(t.scrollbar.dragevents.move),e(i).off(t.scrollbar.dragevents.end)}},init:function(){var t=this;if(t.params.scrollbar.el){var a=t.scrollbar,i=t.$el,s=t.touchevents,r=t.params.scrollbar,n=e(r.el);t.params.uniquenavelements&&"string"==typeof r.el&&n.length>1&&1===i.find(r.el).length&&(n=i.find(r.el));var d=n.find(".swiper-scrollbar-drag");0===d.length&&(d=e('
'),n.append(d)),t.scrollbar.dragevents=!1!==t.params.simulatetouch||l.touch?s:{start:"mousedown",move:"mousemove",end:"mouseup"},o.extend(a,{$el:n,el:n[0],$dragel:d,dragel:d[0]}),r.draggable&&a.enabledraggable()}},destroy:function(){this.scrollbar.disabledraggable()}},j={name:"scrollbar",params:{scrollbar:{el:null,dragsize:"auto",hide:!1,draggable:!1,snaponrelease:!0}},create:function(){var e=this;o.extend(e,{scrollbar:{init:f.init.bind(e),destroy:f.destroy.bind(e),updatesize:f.updatesize.bind(e),settranslate:f.settranslate.bind(e),settransition:f.settransition.bind(e),enabledraggable:f.enabledraggable.bind(e),disabledraggable:f.disabledraggable.bind(e),setdragposition:f.setdragposition.bind(e),ondragstart:f.ondragstart.bind(e),ondragmove:f.ondragmove.bind(e),ondragend:f.ondragend.bind(e),istouched:!1,timeout:null,dragtimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updatesize(),e.scrollbar.settranslate()},update:function(){this.scrollbar.updatesize()},resize:function(){this.scrollbar.updatesize()},observerupdate:function(){this.scrollbar.updatesize()},settranslate:function(){this.scrollbar.settranslate()},settransition:function(e){this.scrollbar.settransition(e)},destroy:function(){this.scrollbar.destroy()}}},q={settransform:function(t,a){var i=this,s=i.rtl,r=e(t),n=s?-1:1,o=r.attr("data-swiper-parallax")||"0",l=r.attr("data-swiper-parallax-x"),d=r.attr("data-swiper-parallax-y"),p=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(l||d?(l=l||"0",d=d||"0"):i.ishorizontal()?(l=o,d="0"):(d=o,l="0"),l=l.indexof("%")>=0?parseint(l,10)*a*n+"%":l*a*n+"px",d=d.indexof("%")>=0?parseint(d,10)*a+"%":d*a+"px","undefined"!=typeof popacity&&null!==c){var u=c-(c-1)*(1-math.abs(a));r[0].style.opacity=u}if("undefined"==typeof pscale||null===p)r.transform("translate3d("+l+", "+d+", 0px)");else{var h=p-(p-1)*(1-math.abs(a));r.transform("translate3d("+l+", "+d+", 0px) scale("+h+")")}},settranslate:function(){var t=this,a=t.$el,i=t.slides,s=t.progress;a.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(e,a){t.parallax.settransform(a,s)}),i.each(function(a,i){e(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(e,a){var s=math.min(math.max(i.progress,-1),1);t.parallax.settransform(a,s)})})},settransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(a,i){var s=e(i),r=parseint(s.attr("data-swiper-parallax-duration"),10)||t;0===t&&(r=0),s.transition(r)})}},k={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;o.extend(e,{parallax:{settransform:q.settransform.bind(e),settranslate:q.settranslate.bind(e),settransition:q.settransition.bind(e)}})},on:{beforeinit:function(){this.params.watchslidesprogress=!0},init:function(){var e=this;e.params.parallax&&e.parallax.settranslate()},settranslate:function(){var e=this;e.params.parallax&&e.parallax.settranslate()},settransition:function(e){var t=this;t.params.parallax&&t.parallax.settransition(e)}}},u={getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var t=e.targettouches[0].pagex,a=e.targettouches[0].pagey,i=e.targettouches[1].pagex,s=e.targettouches[1].pagey;return math.sqrt(math.pow(i-t,2)+math.pow(s-a,2))},ongesturestart:function(t){var a=this,i=a.params.zoom,s=a.zoom.gesture;if(!l.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targettouches.length<2)return;s.scalestart=u.getdistancebetweentouches(t)}s.$slideel&&s.$slideel.length||(s.$slideel=e(this),0===s.$slideel.length&&(s.$slideel=a.slides.eq(a.activeindex)),s.$imageel=s.$slideel.find("img, svg, canvas"),s.$imagewrapel=s.$imageel.parent("."+i.containerclass),s.maxratio=s.$imagewrapel.attr("data-swiper-zoom")||i.maxratio,0!==s.$imagewrapel.length)?(s.$imageel.transition(0),a.zoom.isscaling=!0):s.$imageel=void 0},ongesturechange:function(e){var t=this,a=t.params.zoom,i=t.zoom,s=i.gesture;if(!l.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;s.scalemove=u.getdistancebetweentouches(e)}s.$imageel&&0!==s.$imageel.length&&(l.gestures?t.zoom.scale=e.scale*i.currentscale:i.scale=s.scalemove/s.scalestart*i.currentscale,i.scale>s.maxratio&&(i.scale=s.maxratio-1+math.pow(i.scale-s.maxratio+1,.5)),i.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,t=e.zoom,a=t.gesture;a.$slideel&&e.previousindex!==e.activeindex&&(a.$imageel.transform("translate3d(0,0,0) scale(1)"),a.$imagewrapel.transform("translate3d(0,0,0)"),a.$slideel=void 0,a.$imageel=void 0,a.$imagewrapel=void 0,t.scale=1,t.currentscale=1)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(t){var a=this,i=a.zoom,s=a.params.zoom,r=i.gesture,n=i.image;if(r.$slideel||(r.$slideel=a.clickedslide?e(a.clickedslide):a.slides.eq(a.activeindex),r.$imageel=r.$slideel.find("img, svg, canvas"),r.$imagewrapel=r.$imageel.parent("."+s.containerclass)),r.$imageel&&0!==r.$imageel.length){r.$slideel.addclass(""+s.zoomedslideclass);var o,l,d,p,c,u,h,v,f,m,g,b,w,y,x,t;void 0===n.touchesstart.x&&t?(o="touchend"===t.type?t.changedtouches[0].pagex:t.pagex,l="touchend"===t.type?t.changedtouches[0].pagey:t.pagey):(o=n.touchesstart.x,l=n.touchesstart.y),i.scale=r.$imagewrapel.attr("data-swiper-zoom")||s.maxratio,i.currentscale=r.$imagewrapel.attr("data-swiper-zoom")||s.maxratio,t?(x=r.$slideel[0].offsetwidth,t=r.$slideel[0].offsetheight,d=r.$slideel.offset().left+x/2-o,p=r.$slideel.offset().top+t/2-l,h=r.$imageel[0].offsetwidth,v=r.$imageel[0].offsetheight,f=h*i.scale,m=v*i.scale,w=-(g=math.min(x/2-f/2,0)),y=-(b=math.min(t/2-m/2,0)),c=d*i.scale,u=p*i.scale,cw&&(c=w),uy&&(u=y)):(c=0,u=0),r.$imagewrapel.transition(300).transform("translate3d("+c+"px, "+u+"px,0)"),r.$imageel.transition(300).transform("translate3d(0,0,0) scale("+i.scale+")")}},out:function(){var t=this,a=t.zoom,i=t.params.zoom,s=a.gesture;s.$slideel||(s.$slideel=t.clickedslide?e(t.clickedslide):t.slides.eq(t.activeindex),s.$imageel=s.$slideel.find("img, svg, canvas"),s.$imagewrapel=s.$imageel.parent("."+i.containerclass)),s.$imageel&&0!==s.$imageel.length&&(a.scale=1,a.currentscale=1,s.$imagewrapel.transition(300).transform("translate3d(0,0,0)"),s.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"),s.$slideel.removeclass(""+i.zoomedslideclass),s.$slideel=void 0)},enable:function(){var t=this,a=t.zoom;if(!a.enabled){a.enabled=!0;var i=t.slides,s=!("touchstart"!==t.touchevents.start||!l.passivelistener||!t.params.passivelisteners)&&{passive:!0,capture:!1};l.gestures?(i.on("gesturestart",a.ongesturestart,s),i.on("gesturechange",a.ongesturechange,s),i.on("gestureend",a.ongestureend,s)):"touchstart"===t.touchevents.start&&(i.on(t.touchevents.start,a.ongesturestart,s),i.on(t.touchevents.move,a.ongesturechange,s),i.on(t.touchevents.end,a.ongestureend,s)),t.slides.each(function(i,s){var r=e(s);r.find("."+t.params.zoom.containerclass).length>0&&r.on(t.touchevents.move,a.ontouchmove)})}},disable:function(){var t=this,a=t.zoom;if(a.enabled){t.zoom.enabled=!1;var i=t.slides,s=!("touchstart"!==t.touchevents.start||!l.passivelistener||!t.params.passivelisteners)&&{passive:!0,capture:!1};l.gestures?(i.off("gesturestart",a.ongesturestart,s),i.off("gesturechange",a.ongesturechange,s),i.off("gestureend",a.ongestureend,s)):"touchstart"===t.touchevents.start&&(i.off(t.touchevents.start,a.ongesturestart,s),i.off(t.touchevents.move,a.ongesturechange,s),i.off(t.touchevents.end,a.ongestureend,s)),t.slides.each(function(i,s){var r=e(s);r.find("."+t.params.zoom.containerclass).length>0&&r.off(t.touchevents.move,a.ontouchmove)})}}},_={name:"zoom",params:{zoom:{enabled:!1,maxratio:3,minratio:1,toggle:!0,containerclass:"swiper-zoom-container",zoomedslideclass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentscale:1,isscaling:!1,gesture:{$slideel:void 0,slidewidth:void 0,slideheight:void 0,$imageel:void 0,$imagewrapel:void 0,maxratio:3},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0}};"ongesturestart ongesturechange ongestureend ontouchstart ontouchmove ontouchend ontransitionend toggle enable disable in out".split(" ").foreach(function(a){t[a]=u[a].bind(e)}),o.extend(e,{zoom:t})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){this.zoom.disable()},touchstart:function(e){var t=this;t.zoom.enabled&&t.zoom.ontouchstart(e)},touchend:function(e){var t=this;t.zoom.enabled&&t.zoom.ontouchend(e)},doubletap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionend:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.ontransitionend()}}},z={loadinslide:function(t,a){void 0===a&&(a=!0);var i=this,s=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled?i.$wrapperel.children("."+i.params.slideclass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),n=r.find("."+s.elementclass+":not(."+s.loadedclass+"):not(."+s.loadingclass+")");!r.hasclass(s.elementclass)||r.hasclass(s.loadedclass)||r.hasclass(s.loadingclass)||(n=n.add(r[0])),0!==n.length&&n.each(function(t,n){var o=e(n);o.addclass(s.loadingclass);var l=o.attr("data-background"),d=o.attr("data-src"),p=o.attr("data-srcset"),c=o.attr("data-sizes");i.loadimage(o[0],d||l,p,c,!1,function(){if(void 0!==i&&null!==i&&i&&(!i||i.params)){if(l?(o.css("background-image",'url("'+l+'")'),o.removeattr("data-background")):(p&&(o.attr("srcset",p),o.removeattr("data-srcset")),c&&(o.attr("sizes",c),o.removeattr("data-sizes")),d&&(o.attr("src",d),o.removeattr("data-src"))),o.addclass(s.loadedclass).removeclass(s.loadingclass),r.find("."+s.preloaderclass).remove(),i.params.loop&&a){var e=r.attr("data-swiper-slide-index");if(r.hasclass(i.params.slideduplicateclass)){var t=i.$wrapperel.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideduplicateclass+")");i.lazy.loadinslide(t.index(),!1)}else{var n=i.$wrapperel.children("."+i.params.slideduplicateclass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadinslide(n.index(),!1)}}i.emit("lazyimageready",r[0],o[0])}}),i.emit("lazyimageload",r[0],o[0])})}},load:function(){function t(e){if(l){if(s.children("."+r.slideclass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(n[e])return!0;return!1}function a(t){return l?e(t).attr("data-swiper-slide-index"):e(t).index()}var i=this,s=i.$wrapperel,r=i.params,n=i.slides,o=i.activeindex,l=i.virtual&&r.virtual.enabled,d=r.lazy,p=r.slidesperview;if("auto"===p&&(p=0),i.lazy.initialimageloaded||(i.lazy.initialimageloaded=!0),i.params.watchslidesvisibility)s.children("."+r.slidevisibleclass).each(function(t,a){var s=l?e(a).attr("data-swiper-slide-index"):e(a).index();i.lazy.loadinslide(s)});else if(p>1)for(var c=o;c1||d.loadprevnextamount&&d.loadprevnextamount>1){for(var u=d.loadprevnextamount,h=p,v=math.min(o+h+math.max(u,h),n.length),f=math.max(o-math.max(h,u),0),m=o+p;m0&&i.lazy.loadinslide(a(b));var w=s.children("."+r.slideprevclass);w.length>0&&i.lazy.loadinslide(a(w))}}},q={name:"lazy",params:{lazy:{enabled:!1,loadprevnext:!1,loadprevnextamount:1,loadontransitionstart:!1,elementclass:"swiper-lazy",loadingclass:"swiper-lazy-loading",loadedclass:"swiper-lazy-loaded",preloaderclass:"swiper-lazy-preloader"}},create:function(){var e=this;o.extend(e,{lazy:{initialimageloaded:!1,load:z.load.bind(e),loadinslide:z.loadinslide.bind(e)}})},on:{beforeinit:function(){var e=this;e.params.preloadimages&&(e.params.preloadimages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialslide&&e.lazy.load()},scroll:function(){var e=this;e.params.freemode&&!e.params.freemodesticky&&e.lazy.load()},resize:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbardragmove:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},transitionstart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadontransitionstart||!e.params.lazy.loadontransitionstart&&!e.lazy.initialimageloaded)&&e.lazy.load()},transitionend:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadontransitionstart&&e.lazy.load()}}},j={linearspline:function(e,t){var a=function(){var e,t,a;return function(i,s){for(t=-1,e=i.length;e-t>1;)i[a=e+t>>1]<=s?t=a:e=a;return e}}();this.x=e,this.y=t,this.lastindex=e.length-1;var i,s;return this.interpolate=function(e){return e?(s=a(this.x,e),i=s-1,(e-this.x[i])*(this.y[s]-this.y[i])/(this.x[s]-this.x[i])+this.y[i]):0},this},getinterpolatefunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new j.linearspline(t.slidesgrid,e.slidesgrid):new j.linearspline(t.snapgrid,e.snapgrid))},settranslate:function(e,t){function a(e){var t=e.rtl&&"horizontal"===e.params.direction?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getinterpolatefunction(e),s=-r.controller.spline.interpolate(-t)),s&&"container"!==r.params.controller.by||(i=(e.maxtranslate()-e.mintranslate())/(r.maxtranslate()-r.mintranslate()),s=(t-r.mintranslate())*i+e.mintranslate()),r.params.controller.inverse&&(s=e.maxtranslate()-s),e.updateprogress(s),e.settranslate(s,r),e.updateactiveindex(),e.updateslidesclasses()}var i,s,r=this,n=r.controller.control;if(array.isarray(n))for(var o=0;o0&&(e.isbeginning?e.a11y.disableel(i):e.a11y.enableel(i)),a&&a.length>0&&(e.isend?e.a11y.disableel(a):e.a11y.enableel(a))}},updatepagination:function(){var t=this,a=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(i,s){var r=e(s);t.a11y.makeelfocusable(r),t.a11y.addelrole(r,"button"),t.a11y.addellabel(r,a.paginationbulletmessage.replace(/{{index}}/,r.index()+1))})},init:function(){var e=this;e.$el.append(e.a11y.liveregion);var t,a,i=e.params.a11y;e.navigation&&e.navigation.$nextel&&(t=e.navigation.$nextel),e.navigation&&e.navigation.$prevel&&(a=e.navigation.$prevel),t&&(e.a11y.makeelfocusable(t),e.a11y.addelrole(t,"button"),e.a11y.addellabel(t,i.nextslidemessage),t.on("keydown",e.a11y.onenterkey)),a&&(e.a11y.makeelfocusable(a),e.a11y.addelrole(a,"button"),e.a11y.addellabel(a,i.prevslidemessage),a.on("keydown",e.a11y.onenterkey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletclass,e.a11y.onenterkey)},destroy:function(){var e=this;e.a11y.liveregion&&e.a11y.liveregion.length>0&&e.a11y.liveregion.remove();var t,a;e.navigation&&e.navigation.$nextel&&(t=e.navigation.$nextel),e.navigation&&e.navigation.$prevel&&(a=e.navigation.$prevel),t&&t.off("keydown",e.a11y.onenterkey),a&&a.off("keydown",e.a11y.onenterkey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletclass,e.a11y.onenterkey)}},ae={name:"a11y",params:{a11y:{enabled:!1,notificationclass:"swiper-notification",prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}"}},create:function(){var t=this;o.extend(t,{a11y:{liveregion:e('')}}),object.keys(te).foreach(function(e){t.a11y[e]=te[e].bind(t)})},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updatenavigation())},toedge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatenavigation()},fromedge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatenavigation()},paginationupdate:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatepagination()},destroy:function(){var e=this;e.params.a11y.enabled&&e.a11y.destroy()}}},ie={init:function(){var e=this;if(e.params.history){if(!s.history||!s.history.pushstate)return e.params.history.enabled=!1,void(e.params.hashnavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=ie.getpathvalues(),(t.paths.key||t.paths.value)&&(t.scrolltoslide(0,t.paths.value,e.params.runcallbacksoninit),e.params.history.replacestate||s.addeventlistener("popstate",e.history.sethistorypopstate))}},destroy:function(){var e=this;e.params.history.replacestate||s.removeeventlistener("popstate",e.history.sethistorypopstate)},sethistorypopstate:function(){var e=this;e.history.paths=ie.getpathvalues(),e.history.scrolltoslide(e.params.speed,e.history.paths.value,!1)},getpathvalues:function(){var e=s.location.pathname.slice(1).split("/"),t=e.length;return{key:e[t-2],value:e[t-1]}},sethistory:function(e,t){var a=this;if(a.history.initialized&&a.params.history.enabled){var i=a.slides.eq(t),r=ie.slugify(i.attr("data-history"));s.location.pathname.includes(e)||(r=e+"/"+r);var n=s.history.state;n&&n.value===r||(a.params.history.replacestate?s.history.replacestate({value:r},null,r):s.history.pushstate({value:r},null,r))}},slugify:function(e){return e.tostring().tolowercase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrolltoslide:function(e,t,a){var i=this;if(t)for(var s=0,r=i.slides.length;s'),s.append(t)),t.css({height:n+"px"})):0===(t=i.find(".swiper-cube-shadow")).length&&(t=e('
'),i.append(t)));for(var f=0;f-1&&(h=90*g+90*y,l&&(h=90*-g-90*y)),m.transform(s),p.slideshadows){var c=c?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),m=c?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===c.length&&(c=e('
'),m.append(c)),0===m.length&&(m=e('
'),m.append(m)),c.length&&(c[0].style.opacity=math.max(-y,0)),m.length&&(m[0].style.opacity=math.max(y,0))}}if(s.css({"-webkit-transform-origin":"50% 50% -"+d/2+"px","-moz-transform-origin":"50% 50% -"+d/2+"px","-ms-transform-origin":"50% 50% -"+d/2+"px","transform-origin":"50% 50% -"+d/2+"px"}),p.shadow)if(c)t.transform("translate3d(0px, "+(n/2+p.shadowoffset)+"px, "+-n/2+"px) rotatex(90deg) rotatez(0deg) scale("+p.shadowscale+")");else{var z=math.abs(h)-90*math.floor(math.abs(h)/90),p=1.5-(math.sin(2*z*math.pi/360)/2+math.cos(2*z*math.pi/360)/2),k=p.shadowscale,$=p.shadowscale/p,i=p.shadowoffset;t.transform("scale3d("+k+", 1, "+$+") translate3d(0px, "+(o/2+i)+"px, "+-o/2/$+"px) rotatex(-90deg)")}var l=v.issafari||v.isuiwebview?-d/2:0;s.transform("translate3d(0px,0,"+l+"px) rotatex("+(a.ishorizontal()?0:h)+"deg) rotatey("+(a.ishorizontal()?-h:0)+"deg)")},settransition:function(e){var t=this,a=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeeffect.shadow&&!t.ishorizontal()&&a.find(".swiper-cube-shadow").transition(e)}},ue={name:"effect-cube",params:{cubeeffect:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94}},create:function(){var e=this;o.extend(e,{cubeeffect:{settranslate:ce.settranslate.bind(e),settransition:ce.settransition.bind(e)}})},on:{beforeinit:function(){var e=this;"cube"===e.params.effect&&(e.classnames.push(e.params.containermodifierclass+"cube"),e.classnames.push(e.params.containermodifierclass+"3d"),o.extend(e.params,{slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,resistanceratio:0,spacebetween:0,centeredslides:!1,virtualtranslate:!0}))},settranslate:function(){var e=this;"cube"===e.params.effect&&e.cubeeffect.settranslate()},settransition:function(e){var t=this;"cube"===t.params.effect&&t.cubeeffect.settransition(e)}}},he={settranslate:function(){for(var t=this,a=t.slides,i=0;i'),s.append(p)),0===c.length&&(c=e('
'),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(t){var a=this,i=a.slides,s=a.activeindex,r=a.$wrapperel;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),a.params.virtualtranslate&&0!==t){var n=!1;i.eq(s).transitionend(function(){if(!n&&a&&e(this).hasclass(a.params.slideactiveclass)){n=!0,a.animating=!1;for(var t=["webkittransitionend","transitionend"],i=0;i'),m.append(c)),0===m.length&&(m=e('
'),m.append(m)),c.length&&(c[0].style.opacity=b>0?b:0),m.length&&(m[0].style.opacity=-b>0?-b:0)}}v.ie&&(r[0].style.perspectiveorigin=p+"px 50%")},settransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},me={name:"effect-coverflow",params:{coverfloweffect:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0}},create:function(){var e=this;o.extend(e,{coverfloweffect:{settranslate:fe.settranslate.bind(e),settransition:fe.settransition.bind(e)}})},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)},settranslate:function(){var e=this;"coverflow"===e.params.effect&&e.coverfloweffect.settranslate()},settransition:function(e){var t=this;"coverflow"===t.params.effect&&t.coverfloweffect.settransition(e)}}};return p.components=[k,$,i,l,o,x,y,g,v,w,j,k,_,q,ee,ae,se,ne,le,pe,ue,ve,me],p}); //# sourcemappingurl=swiper.min.js.map