/*! amazeui-swiper v0.0.5 | by amaze ui team | (c) 2016 allmobilize, inc. | licensed under mit | 2016-07-06t16:16:11+0800 */ !function e(a,t,r){function s(n,o){if(!t[n]){if(!a[n]){var l="function"==typeof require&&require;if(!o&&l)return l(n,!0);if(i)return i(n,!0);var p=new error("cannot find module '"+n+"'");throw p.code="module_not_found",p}var d=t[n]={exports:{}};a[n][0].call(d.exports,function(e){var t=a[n][1][e];return s(t?t:e)},d,d.exports,e,a,t,r)}return t[n].exports}for(var i="function"==typeof require&&require,n=0;n0&&0===y.container.parents(".swiper-slide-active").length)return;var r={left:window.pagexoffset,top:window.pageyoffset},s=window.innerwidth,i=window.innerheight,n=y.container.offset();y.rtl&&(n.left=n.left-y.container[0].scrollleft);for(var o=[[n.left,n.top],[n.left+y.width,n.top],[n.left,n.top+y.height],[n.left+y.width,n.top+y.height]],l=0;l=r.left&&p[0]<=r.left+s&&p[1]>=r.top&&p[1]<=r.top+i&&(t=!0)}if(!t)return}y.ishorizontal()?(37!==a&&39!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),(39===a&&!y.rtl||37===a&&y.rtl)&&y.slidenext(),(37===a&&!y.rtl||39===a&&y.rtl)&&y.slideprev()):(38!==a&&40!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&y.slidenext(),38===a&&y.slideprev())}}function p(e){e.originalevent&&(e=e.originalevent);var a=y.mousewheel.event,t=0,r=y.rtl?-1:1;if("mousewheel"===a)if(y.params.mousewheelforcetoaxis)if(y.ishorizontal()){if(!(math.abs(e.wheeldeltax)>math.abs(e.wheeldeltay)))return;t=e.wheeldeltax*r}else{if(!(math.abs(e.wheeldeltay)>math.abs(e.wheeldeltax)))return;t=e.wheeldeltay}else t=math.abs(e.wheeldeltax)>math.abs(e.wheeldeltay)?-e.wheeldeltax*r:-e.wheeldeltay;else if("dommousescroll"===a)t=-e.detail;else if("wheel"===a)if(y.params.mousewheelforcetoaxis)if(y.ishorizontal()){if(!(math.abs(e.deltax)>math.abs(e.deltay)))return;t=-e.deltax*r}else{if(!(math.abs(e.deltay)>math.abs(e.deltax)))return;t=-e.deltay}else t=math.abs(e.deltax)>math.abs(e.deltay)?-e.deltax*r:-e.deltay;if(0!==t){if(y.params.mousewheelinvert&&(t=-t),y.params.freemode){var s=y.getwrappertranslate()+t*y.params.mousewheelsensitivity,i=y.isbeginning,n=y.isend;if(s>=y.mintranslate()&&(s=y.mintranslate()),s<=y.maxtranslate()&&(s=y.maxtranslate()),y.setwrappertransition(0),y.setwrappertranslate(s),y.updateprogress(),y.updateactiveindex(),(!i&&y.isbeginning||!n&&y.isend)&&y.updateclasses(),y.params.freemodesticky?(cleartimeout(y.mousewheel.timeout),y.mousewheel.timeout=settimeout(function(){y.slidereset()},300)):y.params.lazyloading&&y.lazy&&y.lazy.load(),0===s||s===y.maxtranslate())return}else{if((new window.date).gettime()-y.mousewheel.lastscrolltime>60)if(t<0)if(y.isend&&!y.params.loop||y.animating){if(y.params.mousewheelreleaseonedges)return!0}else y.slidenext();else if(y.isbeginning&&!y.params.loop||y.animating){if(y.params.mousewheelreleaseonedges)return!0}else y.slideprev();y.mousewheel.lastscrolltime=(new window.date).gettime()}return y.params.autoplay&&y.stopautoplay(),e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}}function d(e,t){e=a(e);var r,s,i,n=y.rtl?-1:1;r=e.attr("data-swiper-parallax")||"0",s=e.attr("data-swiper-parallax-x"),i=e.attr("data-swiper-parallax-y"),s||i?(s=s||"0",i=i||"0"):y.ishorizontal()?(s=r,i="0"):(i=r,s="0"),s=s.indexof("%")>=0?parseint(s,10)*t*n+"%":s*t*n+"px",i=i.indexof("%")>=0?parseint(i,10)*t+"%":i*t+"px",e.transform("translate3d("+s+", "+i+",0px)")}function u(e){return 0!==e.indexof("on")&&(e=e[0]!==e[0].touppercase()?"on"+e[0].touppercase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(e,r);var c={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,autoplaystoponlast:!1,iosedgeswipedetection:!1,iosedgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0},flip:{slideshadows:!0,limitrotation:!0},cube:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94},fade:{crossfade:!1},parallax:!1,scrollbar:null,scrollbarhide:!0,scrollbardraggable:!1,scrollbarsnaponrelease:!1,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelreleaseonedges:!1,mousewheelinvert:!1,mousewheelforcetoaxis:!1,mousewheelsensitivity:1,hashnav:!1,breakpoints:void 0,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,centeredslides:!1,slidesoffsetbefore:0,slidesoffsetafter:0,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,onlyexternal:!1,threshold:0,touchmovestoppropagation:!0,uniquenavelements:!0,pagination:null,paginationelement:"span",paginationclickable:!1,paginationhide:!1,paginationbulletrender:null,paginationprogressrender:null,paginationfractionrender:null,paginationcustomrender:null,paginationtype:"bullets",resistance:!0,resistanceratio:.85,nextbutton:null,prevbutton:null,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,lazyloading:!1,lazyloadinginprevnext:!1,lazyloadinginprevnextamount:1,lazyloadingontransitionstart:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,control:void 0,controlinverse:!1,controlby:"slide",allowswipetoprev:!0,allowswipetonext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",slideclass:"swiper-slide",slideactiveclass:"swiper-slide-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideprevclass:"swiper-slide-prev",wrapperclass:"swiper-wrapper",bulletclass:"swiper-pagination-bullet",bulletactiveclass:"swiper-pagination-bullet-active",buttondisabledclass:"swiper-button-disabled",paginationcurrentclass:"swiper-pagination-current",paginationtotalclass:"swiper-pagination-total",paginationhiddenclass:"swiper-pagination-hidden",paginationprogressbarclass:"swiper-pagination-progressbar",observer:!1,observeparents:!1,a11y:!1,prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",runcallbacksoninit:!0},m=r&&r.virtualtranslate;r=r||{};var f={};for(var h in r)if("object"!=typeof r[h]||null===r[h]||(r[h].nodetype||r[h]===window||r[h]===document||"undefined"!=typeof dom7&&r[h]instanceof dom7||"undefined"!=typeof jquery&&r[h]instanceof jquery))f[h]=r[h];else{f[h]={};for(var g in r[h])f[h][g]=r[h][g]}for(var v in c)if("undefined"==typeof r[v])r[v]=c[v];else if("object"==typeof r[v])for(var w in c[v])"undefined"==typeof r[v][w]&&(r[v][w]=c[v][w]);var y=this;if(y.params=r,y.originalparams=f,y.classnames=[],"undefined"!=typeof a&&"undefined"!=typeof dom7&&(a=dom7),("undefined"!=typeof a||(a="undefined"==typeof dom7?window.dom7||window.zepto||window.jquery:dom7))&&(y.$=a,y.currentbreakpoint=void 0,y.getactivebreakpoint=function(){if(!y.params.breakpoints)return!1;var e,a=!1,t=[];for(e in y.params.breakpoints)y.params.breakpoints.hasownproperty(e)&&t.push(e);t.sort(function(e,a){return parseint(e,10)>parseint(a,10)});for(var r=0;r=window.innerwidth&&!a&&(a=e);return a||"max"},y.setbreakpoint=function(){var e=y.getactivebreakpoint();if(e&&y.currentbreakpoint!==e){var a=e in y.params.breakpoints?y.params.breakpoints[e]:y.originalparams,t=y.params.loop&&a.slidesperview!==y.params.slidesperview;for(var r in a)y.params[r]=a[r];y.currentbreakpoint=e,t&&y.destroyloop&&y.reloop(!0)}},y.params.breakpoints&&y.setbreakpoint(),y.container=a(e),0!==y.container.length)){if(y.container.length>1){var b=[];return y.container.each(function(){b.push(new t(this,r))}),b}y.container[0].swiper=y,y.container.data("swiper",y),y.classnames.push("swiper-container-"+y.params.direction),y.params.freemode&&y.classnames.push("swiper-container-free-mode"),y.support.flexbox||(y.classnames.push("swiper-container-no-flexbox"),y.params.slidespercolumn=1),y.params.autoheight&&y.classnames.push("swiper-container-autoheight"),(y.params.parallax||y.params.watchslidesvisibility)&&(y.params.watchslidesprogress=!0),["cube","coverflow","flip"].indexof(y.params.effect)>=0&&(y.support.transforms3d?(y.params.watchslidesprogress=!0,y.classnames.push("swiper-container-3d")):y.params.effect="slide"),"slide"!==y.params.effect&&y.classnames.push("swiper-container-"+y.params.effect),"cube"===y.params.effect&&(y.params.resistanceratio=0,y.params.slidesperview=1,y.params.slidespercolumn=1,y.params.slidespergroup=1,y.params.centeredslides=!1,y.params.spacebetween=0,y.params.virtualtranslate=!0,y.params.setwrappersize=!1),"fade"!==y.params.effect&&"flip"!==y.params.effect||(y.params.slidesperview=1,y.params.slidespercolumn=1,y.params.slidespergroup=1,y.params.watchslidesprogress=!0,y.params.spacebetween=0,y.params.setwrappersize=!1,"undefined"==typeof m&&(y.params.virtualtranslate=!0)),y.params.grabcursor&&y.support.touch&&(y.params.grabcursor=!1),y.wrapper=y.container.children("."+y.params.wrapperclass),y.params.pagination&&(y.paginationcontainer=a(y.params.pagination),y.params.uniquenavelements&&"string"==typeof y.params.pagination&&y.paginationcontainer.length>1&&1===y.container.find(y.params.pagination).length&&(y.paginationcontainer=y.container.find(y.params.pagination)),"bullets"===y.params.paginationtype&&y.params.paginationclickable?y.paginationcontainer.addclass("swiper-pagination-clickable"):y.params.paginationclickable=!1,y.paginationcontainer.addclass("swiper-pagination-"+y.params.paginationtype)),(y.params.nextbutton||y.params.prevbutton)&&(y.params.nextbutton&&(y.nextbutton=a(y.params.nextbutton),y.params.uniquenavelements&&"string"==typeof y.params.nextbutton&&y.nextbutton.length>1&&1===y.container.find(y.params.nextbutton).length&&(y.nextbutton=y.container.find(y.params.nextbutton))),y.params.prevbutton&&(y.prevbutton=a(y.params.prevbutton),y.params.uniquenavelements&&"string"==typeof y.params.prevbutton&&y.prevbutton.length>1&&1===y.container.find(y.params.prevbutton).length&&(y.prevbutton=y.container.find(y.params.prevbutton)))),y.ishorizontal=function(){return"horizontal"===y.params.direction},y.rtl=y.ishorizontal()&&("rtl"===y.container[0].dir.tolowercase()||"rtl"===y.container.css("direction")),y.rtl&&y.classnames.push("swiper-container-rtl"),y.rtl&&(y.wrongrtl="-webkit-box"===y.wrapper.css("display")),y.params.slidespercolumn>1&&y.classnames.push("swiper-container-multirow"),y.device.android&&y.classnames.push("swiper-container-android"),y.container.addclass(y.classnames.join(" ")),y.translate=0,y.progress=0,y.velocity=0,y.lockswipetonext=function(){y.params.allowswipetonext=!1},y.lockswipetoprev=function(){y.params.allowswipetoprev=!1},y.lockswipes=function(){y.params.allowswipetonext=y.params.allowswipetoprev=!1},y.unlockswipetonext=function(){y.params.allowswipetonext=!0},y.unlockswipetoprev=function(){y.params.allowswipetoprev=!0},y.unlockswipes=function(){y.params.allowswipetonext=y.params.allowswipetoprev=!0},y.params.grabcursor&&(y.container[0].style.cursor="move",y.container[0].style.cursor="-webkit-grab",y.container[0].style.cursor="-moz-grab",y.container[0].style.cursor="grab"),y.imagestoload=[],y.imagesloaded=0,y.loadimage=function(e,a,t,r,s){function i(){s&&s()}var n;e.complete&&r?i():a?(n=new window.image,n.onload=i,n.onerror=i,t&&(n.srcset=t),a&&(n.src=a)):i()},y.preloadimages=function(){function e(){"undefined"!=typeof y&&null!==y&&(void 0!==y.imagesloaded&&y.imagesloaded++,y.imagesloaded===y.imagestoload.length&&(y.params.updateonimagesready&&y.update(),y.emit("onimagesready",y)))}y.imagestoload=y.container.find("img");for(var a=0;a=0&&(a=parsefloat(a.replace("%",""))/100*y.size),y.virtualsize=-a,y.rtl?y.slides.css({marginleft:"",margintop:""}):y.slides.css({marginright:"",marginbottom:""});var n;y.params.slidespercolumn>1&&(n=math.floor(y.slides.length/y.params.slidespercolumn)===y.slides.length/y.params.slidespercolumn?y.slides.length:math.ceil(y.slides.length/y.params.slidespercolumn)*y.params.slidespercolumn,"auto"!==y.params.slidesperview&&"row"===y.params.slidespercolumnfill&&(n=math.max(n,y.params.slidesperview*y.params.slidespercolumn)));var o,l=y.params.slidespercolumn,p=n/l,d=p-(y.params.slidespercolumn*p-y.slides.length);for(e=0;e1){var c,m,f;"column"===y.params.slidespercolumnfill?(m=math.floor(e/l),f=e-m*l,(m>d||m===d&&f===l-1)&&++f>=l&&(f=0,m++),c=m+f*n/l,u.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(f=math.floor(e/p),m=e-f*p),u.css({"margin-top":0!==f&&y.params.spacebetween&&y.params.spacebetween+"px"}).attr("data-swiper-column",m).attr("data-swiper-row",f)}"none"!==u.css("display")&&("auto"===y.params.slidesperview?(o=y.ishorizontal()?u.outerwidth(!0):u.outerheight(!0),y.params.roundlengths&&(o=s(o))):(o=(y.size-(y.params.slidesperview-1)*a)/y.params.slidesperview,y.params.roundlengths&&(o=s(o)),y.ishorizontal()?y.slides[e].style.width=o+"px":y.slides[e].style.height=o+"px"),y.slides[e].swiperslidesize=o,y.slidessizesgrid.push(o),y.params.centeredslides?(t=t+o/2+r/2+a,0===e&&(t=t-y.size/2-a),math.abs(t)<.001&&(t=0),i%y.params.slidespergroup===0&&y.snapgrid.push(t),y.slidesgrid.push(t)):(i%y.params.slidespergroup===0&&y.snapgrid.push(t),y.slidesgrid.push(t),t=t+o+a),y.virtualsize+=o+a,r=o,i++)}y.virtualsize=math.max(y.virtualsize,y.size)+y.params.slidesoffsetafter;var h;if(y.rtl&&y.wrongrtl&&("slide"===y.params.effect||"coverflow"===y.params.effect)&&y.wrapper.css({width:y.virtualsize+y.params.spacebetween+"px"}),y.support.flexbox&&!y.params.setwrappersize||(y.ishorizontal()?y.wrapper.css({width:y.virtualsize+y.params.spacebetween+"px"}):y.wrapper.css({height:y.virtualsize+y.params.spacebetween+"px"})),y.params.slidespercolumn>1&&(y.virtualsize=(o+y.params.spacebetween)*n,y.virtualsize=math.ceil(y.virtualsize/y.params.slidespercolumn)-y.params.spacebetween,y.wrapper.css({width:y.virtualsize+y.params.spacebetween+"px"}),y.params.centeredslides)){for(h=[],e=0;e1&&y.snapgrid.push(y.virtualsize-y.size)}0===y.snapgrid.length&&(y.snapgrid=[0]),0!==y.params.spacebetween&&(y.ishorizontal()?y.rtl?y.slides.css({marginleft:a+"px"}):y.slides.css({marginright:a+"px"}):y.slides.css({marginbottom:a+"px"})),y.params.watchslidesprogress&&y.updateslidesoffset()}},y.updateslidesoffset=function(){for(var e=0;e=0&&i0&&n<=y.size||i<=0&&n>=y.size;o&&y.slides.eq(t).addclass(y.params.slidevisibleclass)}r.progress=y.rtl?-s:s}}},y.updateprogress=function(e){"undefined"==typeof e&&(e=y.translate||0);var a=y.maxtranslate()-y.mintranslate(),t=y.isbeginning,r=y.isend;0===a?(y.progress=0,y.isbeginning=y.isend=!0):(y.progress=(e-y.mintranslate())/a,y.isbeginning=y.progress<=0,y.isend=y.progress>=1),y.isbeginning&&!t&&y.emit("onreachbeginning",y),y.isend&&!r&&y.emit("onreachend",y),y.params.watchslidesprogress&&y.updateslidesprogress(e),y.emit("onprogress",y,y.progress)},y.updateactiveindex=function(){var e,a,t,r=y.rtl?y.translate:-y.translate;for(a=0;a=y.slidesgrid[a]&&r=y.slidesgrid[a]&&r=y.slidesgrid[a]&&(e=a);(e<0||"undefined"==typeof e)&&(e=0),t=math.floor(e/y.params.slidespergroup),t>=y.snapgrid.length&&(t=y.snapgrid.length-1),e!==y.activeindex&&(y.snapindex=t,y.previousindex=y.activeindex,y.activeindex=e,y.updateclasses())},y.updateclasses=function(){y.slides.removeclass(y.params.slideactiveclass+" "+y.params.slidenextclass+" "+y.params.slideprevclass);var e=y.slides.eq(y.activeindex);e.addclass(y.params.slideactiveclass);var t=e.next("."+y.params.slideclass).addclass(y.params.slidenextclass);y.params.loop&&0===t.length&&y.slides.eq(0).addclass(y.params.slidenextclass);var r=e.prev("."+y.params.slideclass).addclass(y.params.slideprevclass);if(y.params.loop&&0===r.length&&y.slides.eq(-1).addclass(y.params.slideprevclass),y.paginationcontainer&&y.paginationcontainer.length>0){var s,i=y.params.loop?math.ceil((y.slides.length-2*y.loopedslides)/y.params.slidespergroup):y.snapgrid.length;if(y.params.loop?(s=math.ceil((y.activeindex-y.loopedslides)/y.params.slidespergroup),s>y.slides.length-1-2*y.loopedslides&&(s-=y.slides.length-2*y.loopedslides),s>i-1&&(s-=i),s<0&&"bullets"!==y.params.paginationtype&&(s=i+s)):s="undefined"!=typeof y.snapindex?y.snapindex:y.activeindex||0,"bullets"===y.params.paginationtype&&y.bullets&&y.bullets.length>0&&(y.bullets.removeclass(y.params.bulletactiveclass),y.paginationcontainer.length>1?y.bullets.each(function(){a(this).index()===s&&a(this).addclass(y.params.bulletactiveclass)}):y.bullets.eq(s).addclass(y.params.bulletactiveclass)),"fraction"===y.params.paginationtype&&(y.paginationcontainer.find("."+y.params.paginationcurrentclass).text(s+1),y.paginationcontainer.find("."+y.params.paginationtotalclass).text(i)),"progress"===y.params.paginationtype){var n=(s+1)/i,o=n,l=1;y.ishorizontal()||(l=n,o=1),y.paginationcontainer.find("."+y.params.paginationprogressbarclass).transform("translate3d(0,0,0) scalex("+o+") scaley("+l+")").transition(y.params.speed)}"custom"===y.params.paginationtype&&y.params.paginationcustomrender&&(y.paginationcontainer.html(y.params.paginationcustomrender(y,s+1,i)),y.emit("onpaginationrendered",y,y.paginationcontainer[0]))}y.params.loop||(y.params.prevbutton&&y.prevbutton&&y.prevbutton.length>0&&(y.isbeginning?(y.prevbutton.addclass(y.params.buttondisabledclass),y.params.a11y&&y.a11y&&y.a11y.disable(y.prevbutton)):(y.prevbutton.removeclass(y.params.buttondisabledclass),y.params.a11y&&y.a11y&&y.a11y.enable(y.prevbutton))),y.params.nextbutton&&y.nextbutton&&y.nextbutton.length>0&&(y.isend?(y.nextbutton.addclass(y.params.buttondisabledclass),y.params.a11y&&y.a11y&&y.a11y.disable(y.nextbutton)):(y.nextbutton.removeclass(y.params.buttondisabledclass),y.params.a11y&&y.a11y&&y.a11y.enable(y.nextbutton))))},y.updatepagination=function(){if(y.params.pagination&&y.paginationcontainer&&y.paginationcontainer.length>0){var e="";if("bullets"===y.params.paginationtype){for(var a=y.params.loop?math.ceil((y.slides.length-2*y.loopedslides)/y.params.slidespergroup):y.snapgrid.length,t=0;t";y.paginationcontainer.html(e),y.bullets=y.paginationcontainer.find("."+y.params.bulletclass),y.params.paginationclickable&&y.params.a11y&&y.a11y&&y.a11y.initpagination()}"fraction"===y.params.paginationtype&&(e=y.params.paginationfractionrender?y.params.paginationfractionrender(y,y.params.paginationcurrentclass,y.params.paginationtotalclass):' / ',y.paginationcontainer.html(e)),"progress"===y.params.paginationtype&&(e=y.params.paginationprogressrender?y.params.paginationprogressrender(y,y.params.paginationprogressbarclass):'',y.paginationcontainer.html(e)),"custom"!==y.params.paginationtype&&y.emit("onpaginationrendered",y,y.paginationcontainer[0])}},y.update=function(e){function a(){r=math.min(math.max(y.translate,y.maxtranslate()),y.mintranslate()),y.setwrappertranslate(r),y.updateactiveindex(),y.updateclasses()}if(y.updatecontainersize(),y.updateslidessize(),y.updateprogress(),y.updatepagination(),y.updateclasses(),y.params.scrollbar&&y.scrollbar&&y.scrollbar.set(),e){var t,r;y.controller&&y.controller.spline&&(y.controller.spline=void 0),y.params.freemode?(a(),y.params.autoheight&&y.updateautoheight()):(t=("auto"===y.params.slidesperview||y.params.slidesperview>1)&&y.isend&&!y.params.centeredslides?y.slideto(y.slides.length-1,0,!1,!0):y.slideto(y.activeindex,0,!1,!0),t||a())}else y.params.autoheight&&y.updateautoheight()},y.onresize=function(e){y.params.breakpoints&&y.setbreakpoint();var a=y.params.allowswipetoprev,t=y.params.allowswipetonext;y.params.allowswipetoprev=y.params.allowswipetonext=!0,y.updatecontainersize(),y.updateslidessize(),("auto"===y.params.slidesperview||y.params.freemode||e)&&y.updatepagination(),y.params.scrollbar&&y.scrollbar&&y.scrollbar.set(),y.controller&&y.controller.spline&&(y.controller.spline=void 0);var r=!1;if(y.params.freemode){var s=math.min(math.max(y.translate,y.maxtranslate()),y.mintranslate());y.setwrappertranslate(s),y.updateactiveindex(),y.updateclasses(),y.params.autoheight&&y.updateautoheight()}else y.updateclasses(),r=("auto"===y.params.slidesperview||y.params.slidesperview>1)&&y.isend&&!y.params.centeredslides?y.slideto(y.slides.length-1,0,!1,!0):y.slideto(y.activeindex,0,!1,!0);y.params.lazyloading&&!r&&y.lazy&&y.lazy.load(),y.params.allowswipetoprev=a,y.params.allowswipetonext=t};var x=["mousedown","mousemove","mouseup"];window.navigator.pointerenabled?x=["pointerdown","pointermove","pointerup"]:window.navigator.mspointerenabled&&(x=["mspointerdown","mspointermove","mspointerup"]),y.touchevents={start:y.support.touch||!y.params.simulatetouch?"touchstart":x[0],move:y.support.touch||!y.params.simulatetouch?"touchmove":x[1],end:y.support.touch||!y.params.simulatetouch?"touchend":x[2]},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===y.params.toucheventstarget?y.container:y.wrapper).addclass("swiper-wp8-"+y.params.direction),y.initevents=function(e){var a=e?"off":"on",t=e?"removeeventlistener":"addeventlistener",s="container"===y.params.toucheventstarget?y.container[0]:y.wrapper[0],i=y.support.touch?s:document,n=!!y.params.nested;y.browser.ie?(s[t](y.touchevents.start,y.ontouchstart,!1),i[t](y.touchevents.move,y.ontouchmove,n),i[t](y.touchevents.end,y.ontouchend,!1)):(y.support.touch&&(s[t](y.touchevents.start,y.ontouchstart,!1),s[t](y.touchevents.move,y.ontouchmove,n),s[t](y.touchevents.end,y.ontouchend,!1)),!r.simulatetouch||y.device.ios||y.device.android||(s[t]("mousedown",y.ontouchstart,!1),document[t]("mousemove",y.ontouchmove,n),document[t]("mouseup",y.ontouchend,!1))),window[t]("resize",y.onresize),y.params.nextbutton&&y.nextbutton&&y.nextbutton.length>0&&(y.nextbutton[a]("click",y.onclicknext),y.params.a11y&&y.a11y&&y.nextbutton[a]("keydown",y.a11y.onenterkey)),y.params.prevbutton&&y.prevbutton&&y.prevbutton.length>0&&(y.prevbutton[a]("click",y.onclickprev),y.params.a11y&&y.a11y&&y.prevbutton[a]("keydown",y.a11y.onenterkey)),y.params.pagination&&y.params.paginationclickable&&(y.paginationcontainer[a]("click","."+y.params.bulletclass,y.onclickindex),y.params.a11y&&y.a11y&&y.paginationcontainer[a]("keydown","."+y.params.bulletclass,y.a11y.onenterkey)),(y.params.preventclicks||y.params.preventclickspropagation)&&s[t]("click",y.preventclicks,!0)},y.attachevents=function(){y.initevents()},y.detachevents=function(){y.initevents(!0)},y.allowclick=!0,y.preventclicks=function(e){y.allowclick||(y.params.preventclicks&&e.preventdefault(),y.params.preventclickspropagation&&y.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},y.onclicknext=function(e){e.preventdefault(),y.isend&&!y.params.loop||y.slidenext()},y.onclickprev=function(e){e.preventdefault(),y.isbeginning&&!y.params.loop||y.slideprev()},y.onclickindex=function(e){e.preventdefault();var t=a(this).index()*y.params.slidespergroup;y.params.loop&&(t+=y.loopedslides),y.slideto(t)},y.updateclickedslide=function(e){var t=n(e,"."+y.params.slideclass),r=!1;if(t)for(var s=0;sy.slides.length-y.loopedslides+y.params.slidesperview/2?(y.fixloop(),o=y.wrapper.children("."+y.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){y.slideto(o)},0)):y.slideto(o):o>y.slides.length-y.params.slidesperview?(y.fixloop(),o=y.wrapper.children("."+y.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){y.slideto(o)},0)):y.slideto(o)}else y.slideto(o)}};var t,s,c,z,m,p,i,k,e,b,d="input, select, textarea, button",l=date.now(),h=[];y.animating=!1,y.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0};var g,a;if(y.ontouchstart=function(e){if(e.originalevent&&(e=e.originalevent),g="touchstart"===e.type,g||!("which"in e)||3!==e.which){if(y.params.noswiping&&n(e,"."+y.params.noswipingclass))return void(y.allowclick=!0);if(!y.params.swipehandler||n(e,y.params.swipehandler)){var t=y.touches.currentx="touchstart"===e.type?e.targettouches[0].pagex:e.pagex,r=y.touches.currenty="touchstart"===e.type?e.targettouches[0].pagey:e.pagey;if(!(y.device.ios&&y.params.iosedgeswipedetection&&t<=y.params.iosedgeswipethreshold)){if(t=!0,s=!1,c=!0,m=void 0,a=void 0,y.touches.startx=t,y.touches.starty=r,z=date.now(),y.allowclick=!0,y.updatecontainersize(),y.swipedirection=void 0,y.params.threshold>0&&(k=!1),"touchstart"!==e.type){var s=!0;a(e.target).is(d)&&(s=!1),document.activeelement&&a(document.activeelement).is(d)&&document.activeelement.blur(),s&&e.preventdefault()}y.emit("ontouchstart",y,e)}}}},y.ontouchmove=function(e){if(e.originalevent&&(e=e.originalevent),!g||"mousemove"!==e.type){if(e.preventedbynestedswiper)return y.touches.startx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,void(y.touches.starty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey);if(y.params.onlyexternal)return y.allowclick=!1,void(t&&(y.touches.startx=y.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,y.touches.starty=y.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,z=date.now()));if(g&&document.activeelement&&e.target===document.activeelement&&a(e.target).is(d))return s=!0,void(y.allowclick=!1);if(c&&y.emit("ontouchmove",y,e),!(e.targettouches&&e.targettouches.length>1)){if(y.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,y.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,"undefined"==typeof m){var t=180*math.atan2(math.abs(y.touches.currenty-y.touches.starty),math.abs(y.touches.currentx-y.touches.startx))/math.pi;m=y.ishorizontal()?t>y.params.touchangle:90-t>y.params.touchangle}if(m&&y.emit("ontouchmoveopposite",y,e),"undefined"==typeof a&&y.browser.ietouch&&(y.touches.currentx===y.touches.startx&&y.touches.currenty===y.touches.starty||(a=!0)), t){if(m)return void(t=!1);if(a||!y.browser.ietouch){y.allowclick=!1,y.emit("onslidermove",y,e),e.preventdefault(),y.params.touchmovestoppropagation&&!y.params.nested&&e.stoppropagation(),s||(r.loop&&y.fixloop(),i=y.getwrappertranslate(),y.setwrappertransition(0),y.animating&&y.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),y.params.autoplay&&y.autoplaying&&(y.params.autoplaydisableoninteraction?y.stopautoplay():y.pauseautoplay()),b=!1,y.params.grabcursor&&(y.container[0].style.cursor="move",y.container[0].style.cursor="-webkit-grabbing",y.container[0].style.cursor="-moz-grabbin",y.container[0].style.cursor="grabbing")),s=!0;var s=y.touches.diff=y.ishorizontal()?y.touches.currentx-y.touches.startx:y.touches.currenty-y.touches.starty;s*=y.params.touchratio,y.rtl&&(s=-s),y.swipedirection=s>0?"prev":"next",p=s+i;var i=!0;if(s>0&&p>y.mintranslate()?(i=!1,y.params.resistance&&(p=y.mintranslate()-1+math.pow(-y.mintranslate()+i+s,y.params.resistanceratio))):s<0&&pi&&(p=i),y.params.followfinger){if(y.params.threshold>0){if(!(math.abs(s)>y.params.threshold||k))return void(p=i);if(!k)return k=!0,y.touches.startx=y.touches.currentx,y.touches.starty=y.touches.currenty,p=i,void(y.touches.diff=y.ishorizontal()?y.touches.currentx-y.touches.startx:y.touches.currenty-y.touches.starty)}(y.params.freemode||y.params.watchslidesprogress)&&y.updateactiveindex(),y.params.freemode&&(0===h.length&&h.push({position:y.touches[y.ishorizontal()?"startx":"starty"],time:z}),h.push({position:y.touches[y.ishorizontal()?"currentx":"currenty"],time:(new window.date).gettime()})),y.updateprogress(p),y.setwrappertranslate(p)}}}}}},y.ontouchend=function(e){if(e.originalevent&&(e=e.originalevent),c&&y.emit("ontouchend",y,e),c=!1,t){y.params.grabcursor&&s&&t&&(y.container[0].style.cursor="move",y.container[0].style.cursor="-webkit-grab",y.container[0].style.cursor="-moz-grab",y.container[0].style.cursor="grab");var t=date.now(),r=t-z;if(y.allowclick&&(y.updateclickedslide(e),y.emit("ontap",y,e),r<300&&t-l>300&&(e&&cleartimeout(e),e=settimeout(function(){y&&(y.params.paginationhide&&y.paginationcontainer.length>0&&!a(e.target).hasclass(y.params.bulletclass)&&y.paginationcontainer.toggleclass(y.params.paginationhiddenclass),y.emit("onclick",y,e))},300)),r<300&&t-l<300&&(e&&cleartimeout(e),y.emit("ondoubletap",y,e))),l=date.now(),settimeout(function(){y&&(y.allowclick=!0)},0),!t||!s||!y.swipedirection||0===y.touches.diff||p===i)return void(t=s=!1);t=s=!1;var s;if(s=y.params.followfinger?y.rtl?y.translate:-y.translate:-p,y.params.freemode){if(s<-y.mintranslate())return void y.slideto(y.activeindex);if(s>-y.maxtranslate())return void(y.slides.length1){var i=h.pop(),n=h.pop(),o=i.position-n.position,l=i.time-n.time;y.velocity=o/l,y.velocity=y.velocity/2,math.abs(y.velocity)150||(new window.date).gettime()-i.time>300)&&(y.velocity=0)}else y.velocity=0;h.length=0;var p=1e3*y.params.freemodemomentumratio,d=y.velocity*p,u=y.translate+d;y.rtl&&(u=-u);var c,m=!1,f=20*math.abs(y.velocity)*y.params.freemodemomentumbounceratio;if(uy.mintranslate())y.params.freemodemomentumbounce?(u-y.mintranslate()>f&&(u=y.mintranslate()+f),c=y.mintranslate(),m=!0,b=!0):u=y.mintranslate();else if(y.params.freemodesticky){var h,g=0;for(g=0;g-u){h=g;break}u=math.abs(y.snapgrid[h]-u)=y.params.longswipesms)&&(y.updateprogress(),y.updateactiveindex()))}var v,w=0,b=y.slidessizesgrid[0];for(v=0;v=y.slidesgrid[v]&&s=y.slidesgrid[v]&&(w=v,b=y.slidesgrid[y.slidesgrid.length-1]-y.slidesgrid[y.slidesgrid.length-2]);var x=(s-y.slidesgrid[w])/b;if(r>y.params.longswipesms){if(!y.params.longswipes)return void y.slideto(y.activeindex);"next"===y.swipedirection&&(x>=y.params.longswipesratio?y.slideto(w+y.params.slidespergroup):y.slideto(w)),"prev"===y.swipedirection&&(x>1-y.params.longswipesratio?y.slideto(w+y.params.slidespergroup):y.slideto(w))}else{if(!y.params.shortswipes)return void y.slideto(y.activeindex);"next"===y.swipedirection&&y.slideto(w+y.params.slidespergroup),"prev"===y.swipedirection&&y.slideto(w)}}},y._slideto=function(e,a){return y.slideto(e,a,!0,!0)},y.slideto=function(e,a,t,r){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),e<0&&(e=0),y.snapindex=math.floor(e/y.params.slidespergroup),y.snapindex>=y.snapgrid.length&&(y.snapindex=y.snapgrid.length-1);var s=-y.snapgrid[y.snapindex];y.params.autoplay&&y.autoplaying&&(r||!y.params.autoplaydisableoninteraction?y.pauseautoplay(a):y.stopautoplay()),y.updateprogress(s);for(var i=0;i=math.floor(100*y.slidesgrid[i])&&(e=i);return!(!y.params.allowswipetonext&&sy.translate&&s>y.maxtranslate()&&(y.activeindex||0)!==e)&&("undefined"==typeof a&&(a=y.params.speed),y.previousindex=y.activeindex||0,y.activeindex=e,y.rtl&&-s===y.translate||!y.rtl&&s===y.translate?(y.params.autoheight&&y.updateautoheight(),y.updateclasses(),"slide"!==y.params.effect&&y.setwrappertranslate(s),!1):(y.updateclasses(),y.ontransitionstart(t),0===a?(y.setwrappertranslate(s),y.setwrappertransition(0),y.ontransitionend(t)):(y.setwrappertranslate(s),y.setwrappertransition(a),y.animating||(y.animating=!0,y.wrapper.transitionend(function(){y&&y.ontransitionend(t)}))),!0)))},y.ontransitionstart=function(e){"undefined"==typeof e&&(e=!0),y.params.autoheight&&y.updateautoheight(),y.lazy&&y.lazy.ontransitionstart(),e&&(y.emit("ontransitionstart",y),y.activeindex!==y.previousindex&&(y.emit("onslidechangestart",y),y.activeindex>y.previousindex?y.emit("onslidenextstart",y):y.emit("onslideprevstart",y)))},y.ontransitionend=function(e){y.animating=!1,y.setwrappertransition(0),"undefined"==typeof e&&(e=!0),y.lazy&&y.lazy.ontransitionend(),e&&(y.emit("ontransitionend",y),y.activeindex!==y.previousindex&&(y.emit("onslidechangeend",y),y.activeindex>y.previousindex?y.emit("onslidenextend",y):y.emit("onslideprevend",y))),y.params.hashnav&&y.hashnav&&y.hashnav.sethash()},y.slidenext=function(e,a,t){if(y.params.loop){if(y.animating)return!1;y.fixloop();y.container[0].clientleft;return y.slideto(y.activeindex+y.params.slidespergroup,a,e,t)}return y.slideto(y.activeindex+y.params.slidespergroup,a,e,t)},y._slidenext=function(e){return y.slidenext(!0,e,!0)},y.slideprev=function(e,a,t){if(y.params.loop){if(y.animating)return!1;y.fixloop();y.container[0].clientleft;return y.slideto(y.activeindex-1,a,e,t)}return y.slideto(y.activeindex-1,a,e,t)},y._slideprev=function(e){return y.slideprev(!0,e,!0)},y.slidereset=function(e,a,t){return y.slideto(y.activeindex,a,e)},y.setwrappertransition=function(e,a){y.wrapper.transition(e),"slide"!==y.params.effect&&y.effects[y.params.effect]&&y.effects[y.params.effect].settransition(e),y.params.parallax&&y.parallax&&y.parallax.settransition(e),y.params.scrollbar&&y.scrollbar&&y.scrollbar.settransition(e),y.params.control&&y.controller&&y.controller.settransition(e,a),y.emit("onsettransition",y,e)},y.setwrappertranslate=function(e,a,t){var r=0,i=0,n=0;y.ishorizontal()?r=y.rtl?-e:e:i=e,y.params.roundlengths&&(r=s(r),i=s(i)),y.params.virtualtranslate||(y.support.transforms3d?y.wrapper.transform("translate3d("+r+"px, "+i+"px, "+n+"px)"):y.wrapper.transform("translate("+r+"px, "+i+"px)")),y.translate=y.ishorizontal()?r:i;var o,l=y.maxtranslate()-y.mintranslate();o=0===l?0:(e-y.mintranslate())/l,o!==y.progress&&y.updateprogress(e),a&&y.updateactiveindex(),"slide"!==y.params.effect&&y.effects[y.params.effect]&&y.effects[y.params.effect].settranslate(y.translate),y.params.parallax&&y.parallax&&y.parallax.settranslate(y.translate),y.params.scrollbar&&y.scrollbar&&y.scrollbar.settranslate(y.translate),y.params.control&&y.controller&&y.controller.settranslate(y.translate,t),y.emit("onsettranslate",y,y.translate)},y.gettranslate=function(e,a){var t,r,s,i;return"undefined"==typeof a&&(a="x"),y.params.virtualtranslate?y.rtl?-y.translate:y.translate:(s=window.getcomputedstyle(e,null),window.webkitcssmatrix?(r=s.transform||s.webkittransform,r.split(",").length>6&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.webkitcssmatrix("none"===r?"":r)):(i=s.moztransform||s.otransform||s.mstransform||s.mstransform||s.transform||s.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=i.tostring().split(",")),"x"===a&&(r=window.webkitcssmatrix?i.m41:16===t.length?parsefloat(t[12]):parsefloat(t[4])),"y"===a&&(r=window.webkitcssmatrix?i.m42:16===t.length?parsefloat(t[13]):parsefloat(t[5])),y.rtl&&r&&(r=-r),r||0)},y.getwrappertranslate=function(e){return"undefined"==typeof e&&(e=y.ishorizontal()?"x":"y"),y.gettranslate(y.wrapper[0],e)},y.observers=[],y.initobservers=function(){if(y.params.observeparents)for(var e=y.container.parents(),a=0;ae.length&&(y.loopedslides=e.length);var t,r=[],s=[];for(e.each(function(t,i){var n=a(this);t=e.length-y.loopedslides&&r.push(i),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)y.wrapper.prepend(a(r[t].clonenode(!0)).addclass(y.params.slideduplicateclass))},y.destroyloop=function(){y.wrapper.children("."+y.params.slideclass+"."+y.params.slideduplicateclass).remove(),y.slides.removeattr("data-swiper-slide-index")},y.reloop=function(e){var a=y.activeindex-y.loopedslides;y.destroyloop(),y.createloop(),y.updateslidessize(),e&&y.slideto(a+y.loopedslides,0,!1)},y.fixloop=function(){var e;y.activeindex=2*y.loopedslides||y.activeindex>y.slides.length-2*y.params.slidesperview)&&(e=-y.slides.length+y.activeindex+y.loopedslides,e+=y.loopedslides,y.slideto(e,0,!1,!0))},y.appendslide=function(e){if(y.params.loop&&y.destroyloop(),"object"==typeof e&&e.length)for(var a=0;a'),t.append(d)),0===u.length&&(u=a('
'),t.append(u)),d.length&&(d[0].style.opacity=math.max(-r,0)),u.length&&(u[0].style.opacity=math.max(r,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotatex("+o+"deg) rotatey("+n+"deg)")}},settransition:function(e){if(y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),y.params.virtualtranslate&&0!==e){var t=!1;y.slides.eq(y.activeindex).transitionend(function(){if(!t&&y&&a(this).hasclass(y.params.slideactiveclass)){t=!0,y.animating=!1;for(var e=["webkittransitionend","transitionend","otransitionend","mstransitionend","mstransitionend"],r=0;r'),y.wrapper.append(e)),e.css({height:y.width+"px"})):(e=y.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('
'),y.container.append(e))));for(var r=0;r-1&&(t=90*r+90*o,y.rtl&&(t=90*-r-90*o)),s.transform(u),y.params.cube.slideshadows){var c=y.ishorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),m=y.ishorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===c.length&&(c=a('
'),s.append(c)),0===m.length&&(m=a('
'),s.append(m)),c.length&&(c[0].style.opacity=math.max(-o,0)),m.length&&(m[0].style.opacity=math.max(o,0))}}if(y.wrapper.css({"-webkit-transform-origin":"50% 50% -"+y.size/2+"px","-moz-transform-origin":"50% 50% -"+y.size/2+"px","-ms-transform-origin":"50% 50% -"+y.size/2+"px","transform-origin":"50% 50% -"+y.size/2+"px"}),y.params.cube.shadow)if(y.ishorizontal())e.transform("translate3d(0px, "+(y.width/2+y.params.cube.shadowoffset)+"px, "+-y.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+y.params.cube.shadowscale+")");else{var f=math.abs(t)-90*math.floor(math.abs(t)/90),h=1.5-(math.sin(2*f*math.pi/360)/2+math.cos(2*f*math.pi/360)/2),g=y.params.cube.shadowscale,v=y.params.cube.shadowscale/h,w=y.params.cube.shadowoffset;e.transform("scale3d("+g+", 1, "+v+") translate3d(0px, "+(y.height/2+w)+"px, "+-y.height/2/v+"px) rotatex(-90deg)")}var b=y.issafari||y.isuiwebview?-y.size/2:0;y.wrapper.transform("translate3d(0px,0,"+b+"px) rotatex("+(y.ishorizontal()?0:t)+"deg) rotatey("+(y.ishorizontal()?-t:0)+"deg)")},settransition:function(e){y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),y.params.cube.shadow&&!y.ishorizontal()&&y.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var e=y.translate,t=y.ishorizontal()?-e+y.width/2:-e+y.height/2,r=y.ishorizontal()?y.params.coverflow.rotate:-y.params.coverflow.rotate,s=y.params.coverflow.depth,i=0,n=y.slides.length;i'),o.append(v)),0===w.length&&(w=a('
'),o.append(w)),v.length&&(v[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(y.browser.ie){var b=y.wrapper[0].style;b.perspectiveorigin=t+"px 50%"}},settransition:function(e){y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},y.lazy={initialimageloaded:!1,loadimageinslide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==y.slides.length)){var r=y.slides.eq(e),s=r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!r.hasclass("swiper-lazy")||r.hasclass("swiper-lazy-loaded")||r.hasclass("swiper-lazy-loading")||(s=s.add(r[0])),0!==s.length&&s.each(function(){var e=a(this);e.addclass("swiper-lazy-loading");var s=e.attr("data-background"),i=e.attr("data-src"),n=e.attr("data-srcset");y.loadimage(e[0],i||s,n,!1,function(){if(s?(e.css("background-image",'url("'+s+'")'),e.removeattr("data-background")):(n&&(e.attr("srcset",n),e.removeattr("data-srcset")),i&&(e.attr("src",i),e.removeattr("data-src"))),e.addclass("swiper-lazy-loaded").removeclass("swiper-lazy-loading"),r.find(".swiper-lazy-preloader, .preloader").remove(),y.params.loop&&t){var a=r.attr("data-swiper-slide-index");if(r.hasclass(y.params.slideduplicateclass)){var o=y.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+y.params.slideduplicateclass+")");y.lazy.loadimageinslide(o.index(),!1)}else{var l=y.wrapper.children("."+y.params.slideduplicateclass+'[data-swiper-slide-index="'+a+'"]');y.lazy.loadimageinslide(l.index(),!1)}}y.emit("onlazyimageready",y,r[0],e[0])}),y.emit("onlazyimageload",y,r[0],e[0])})}},load:function(){var e;if(y.params.watchslidesvisibility)y.wrapper.children("."+y.params.slidevisibleclass).each(function(){y.lazy.loadimageinslide(a(this).index())});else if(y.params.slidesperview>1)for(e=y.activeindex;e1||y.params.lazyloadinginprevnextamount&&y.params.lazyloadinginprevnextamount>1){var t=y.params.lazyloadinginprevnextamount,r=y.params.slidesperview,s=math.min(y.activeindex+r+math.max(t,r),y.slides.length),i=math.max(y.activeindex-math.max(r,t),0);for(e=y.activeindex+y.params.slidesperview;e0&&y.lazy.loadimageinslide(n.index());var o=y.wrapper.children("."+y.params.slideprevclass);o.length>0&&y.lazy.loadimageinslide(o.index())}},ontransitionstart:function(){y.params.lazyloading&&(y.params.lazyloadingontransitionstart||!y.params.lazyloadingontransitionstart&&!y.lazy.initialimageloaded)&&y.lazy.load()},ontransitionend:function(){y.params.lazyloading&&!y.params.lazyloadingontransitionstart&&y.lazy.load()}},y.scrollbar={istouched:!1,setdragposition:function(e){var a=y.scrollbar,t=y.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,r=t-a.track.offset()[y.ishorizontal()?"left":"top"]-a.dragsize/2,s=-y.mintranslate()*a.movedivider,i=-y.maxtranslate()*a.movedivider;ri&&(r=i),r=-r/a.movedivider,y.updateprogress(r),y.setwrappertranslate(r,!0)},dragstart:function(e){var a=y.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),y.params.scrollbarhide&&a.track.css("opacity",1),y.wrapper.transition(100),a.drag.transition(100),y.emit("onscrollbardragstart",y)},dragmove:function(e){var a=y.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),y.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),y.emit("onscrollbardragmove",y))},dragend:function(e){var a=y.scrollbar;a.istouched&&(a.istouched=!1,y.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),y.emit("onscrollbardragend",y),y.params.scrollbarsnaponrelease&&y.slidereset())},enabledraggable:function(){var e=y.scrollbar,t=y.support.touch?e.track:document;a(e.track).on(y.touchevents.start,e.dragstart),a(t).on(y.touchevents.move,e.dragmove),a(t).on(y.touchevents.end,e.dragend)},disabledraggable:function(){var e=y.scrollbar,t=y.support.touch?e.track:document;a(e.track).off(y.touchevents.start,e.dragstart),a(t).off(y.touchevents.move,e.dragmove),a(t).off(y.touchevents.end,e.dragend)},set:function(){if(y.params.scrollbar){var e=y.scrollbar;e.track=a(y.params.scrollbar),y.params.uniquenavelements&&"string"==typeof y.params.scrollbar&&e.track.length>1&&1===y.container.find(y.params.scrollbar).length&&(e.track=y.container.find(y.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=a('
'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.tracksize=y.ishorizontal()?e.track[0].offsetwidth:e.track[0].offsetheight,e.divider=y.size/y.virtualsize,e.movedivider=e.divider*(e.tracksize/y.size),e.dragsize=e.tracksize*e.divider,y.ishorizontal()?e.drag[0].style.width=e.dragsize+"px":e.drag[0].style.height=e.dragsize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",y.params.scrollbarhide&&(e.track[0].style.opacity=0)}},settranslate:function(){if(y.params.scrollbar){var e,a=y.scrollbar,t=(y.translate||0,a.dragsize);e=(a.tracksize-a.dragsize)*y.progress,y.rtl&&y.ishorizontal()?(e=-e,e>0?(t=a.dragsize-e,e=0):-e+a.dragsize>a.tracksize&&(t=a.tracksize+e)):e<0?(t=a.dragsize+e,e=0):e+a.dragsize>a.tracksize&&(t=a.tracksize-e),y.ishorizontal()?(y.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(y.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),y.params.scrollbarhide&&(cleartimeout(a.timeout),a.track[0].style.opacity=1,a.timeout=settimeout(function(){a.track[0].style.opacity=0,a.track.transition(400)},1e3))}},settransition:function(e){y.params.scrollbar&&y.scrollbar.drag.transition(e)}},y.controller={linearspline:function(e,a){this.x=e,this.y=a,this.lastindex=e.length-1;var t,r;this.x.length;this.interpolate=function(e){return e?(r=s(this.x,e),t=r-1,(e-this.x[t])*(this.y[r]-this.y[t])/(this.x[r]-this.x[t])+this.y[t]):0};var s=function(){var e,a,t;return function(r,s){for(a=-1,e=r.length;e-a>1;)r[t=e+a>>1]<=s?a=t:e=t;return e}}()},getinterpolatefunction:function(e){y.controller.spline||(y.controller.spline=y.params.loop?new y.controller.linearspline(y.slidesgrid,e.slidesgrid):new y.controller.linearspline(y.snapgrid,e.snapgrid))},settranslate:function(e,a){function r(a){e=a.rtl&&"horizontal"===a.params.direction?-y.translate:y.translate,"slide"===y.params.controlby&&(y.controller.getinterpolatefunction(a),i=-y.controller.spline.interpolate(-e)),i&&"container"!==y.params.controlby||(s=(a.maxtranslate()-a.mintranslate())/(y.maxtranslate()-y.mintranslate()),i=(e-y.mintranslate())*s+a.mintranslate()),y.params.controlinverse&&(i=a.maxtranslate()-i),a.updateprogress(i),a.setwrappertranslate(i,!1,y),a.updateactiveindex()}var s,i,n=y.params.control;if(y.isarray(n))for(var o=0;o'),notify:function(e){var a=y.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){y.params.nextbutton&&y.nextbutton&&y.nextbutton.length>0&&(y.a11y.makefocusable(y.nextbutton),y.a11y.addrole(y.nextbutton,"button"),y.a11y.addlabel(y.nextbutton,y.params.nextslidemessage)),y.params.prevbutton&&y.prevbutton&&y.prevbutton.length>0&&(y.a11y.makefocusable(y.prevbutton),y.a11y.addrole(y.prevbutton,"button"),y.a11y.addlabel(y.prevbutton,y.params.prevslidemessage)),a(y.container).append(y.a11y.liveregion)},initpagination:function(){y.params.pagination&&y.params.paginationclickable&&y.bullets&&y.bullets.length&&y.bullets.each(function(){var e=a(this);y.a11y.makefocusable(e),y.a11y.addrole(e,"button"), y.a11y.addlabel(e,y.params.paginationbulletmessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){y.a11y.liveregion&&y.a11y.liveregion.length>0&&y.a11y.liveregion.remove()}},y.init=function(){y.params.loop&&y.createloop(),y.updatecontainersize(),y.updateslidessize(),y.updatepagination(),y.params.scrollbar&&y.scrollbar&&(y.scrollbar.set(),y.params.scrollbardraggable&&y.scrollbar.enabledraggable()),"slide"!==y.params.effect&&y.effects[y.params.effect]&&(y.params.loop||y.updateprogress(),y.effects[y.params.effect].settranslate()),y.params.loop?y.slideto(y.params.initialslide+y.loopedslides,0,y.params.runcallbacksoninit):(y.slideto(y.params.initialslide,0,y.params.runcallbacksoninit),0===y.params.initialslide&&(y.parallax&&y.params.parallax&&y.parallax.settranslate(),y.lazy&&y.params.lazyloading&&(y.lazy.load(),y.lazy.initialimageloaded=!0))),y.attachevents(),y.params.observer&&y.support.observer&&y.initobservers(),y.params.preloadimages&&!y.params.lazyloading&&y.preloadimages(),y.params.autoplay&&y.startautoplay(),y.params.keyboardcontrol&&y.enablekeyboardcontrol&&y.enablekeyboardcontrol(),y.params.mousewheelcontrol&&y.enablemousewheelcontrol&&y.enablemousewheelcontrol(),y.params.hashnav&&y.hashnav&&y.hashnav.init(),y.params.a11y&&y.a11y&&y.a11y.init(),y.emit("oninit",y)},y.cleanupstyles=function(){y.container.removeclass(y.classnames.join(" ")).removeattr("style"),y.wrapper.removeattr("style"),y.slides&&y.slides.length&&y.slides.removeclass([y.params.slidevisibleclass,y.params.slideactiveclass,y.params.slidenextclass,y.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),y.paginationcontainer&&y.paginationcontainer.length&&y.paginationcontainer.removeclass(y.params.paginationhiddenclass),y.bullets&&y.bullets.length&&y.bullets.removeclass(y.params.bulletactiveclass),y.params.prevbutton&&a(y.params.prevbutton).removeclass(y.params.buttondisabledclass),y.params.nextbutton&&a(y.params.nextbutton).removeclass(y.params.buttondisabledclass),y.params.scrollbar&&y.scrollbar&&(y.scrollbar.track&&y.scrollbar.track.length&&y.scrollbar.track.removeattr("style"),y.scrollbar.drag&&y.scrollbar.drag.length&&y.scrollbar.drag.removeattr("style"))},y.destroy=function(e,a){y.detachevents(),y.stopautoplay(),y.params.scrollbar&&y.scrollbar&&y.params.scrollbardraggable&&y.scrollbar.disabledraggable(),y.params.loop&&y.destroyloop(),a&&y.cleanupstyles(),y.disconnectobservers(),y.params.keyboardcontrol&&y.disablekeyboardcontrol&&y.disablekeyboardcontrol(),y.params.mousewheelcontrol&&y.disablemousewheelcontrol&&y.disablemousewheelcontrol(),y.params.a11y&&y.a11y&&y.a11y.destroy(),y.emit("ondestroy"),e!==!1&&(y=null)},y.init(),y}};t.prototype={issafari:function(){var e=navigator.useragent.tolowercase();return e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0}(),isuiwebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(navigator.useragent),isarray:function(e){return"[object array]"===object.prototype.tostring.apply(e)},browser:{ie:window.navigator.pointerenabled||window.navigator.mspointerenabled,ietouch:window.navigator.mspointerenabled&&window.navigator.msmaxtouchpoints>1||window.navigator.pointerenabled&&window.navigator.maxtouchpoints>1},device:function(){var e=navigator.useragent,a=e.match(/(android);?[\s\/]+([\d.]+)?/),t=e.match(/(ipad).*os\s([\d_]+)/),r=e.match(/(ipod)(.*os\s([\d_]+))?/),s=!t&&e.match(/(iphone\sos)\s([\d_]+)/);return{ios:t||s||r,android:a}}(),support:{touch:window.modernizr&&modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.documenttouch&&document instanceof documenttouch)}(),transforms3d:window.modernizr&&modernizr.csstransforms3d===!0||function(){var e=document.createelement("div").style;return"webkitperspective"in e||"mozperspective"in e||"operspective"in e||"msperspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createelement("div").style,a="alignitems webkitalignitems webkitboxalign msflexalign mozboxalign webkitflexdirection msflexdirection mozboxdirection mozboxorient webkitboxdirection webkitboxorient".split(" "),t=0;t