/** * swiper 3.2.7 * most modern mobile touch slider and framework with hardware accelerated transitions * * http://www.idangero.us/swiper/ * * copyright 2015, vladimir kharlampidi * the idangero.us * http://www.idangero.us/ * * licensed under mit * * released on: december 7, 2015 */ !function(){"use strict";function e(e){e.fn.swiper=function(a){var r;return e(this).each(function(){var e=new t(this,a);r||(r=e)}),r}}var a,t=function(e,r){function s(){return"horizontal"===b.params.direction}function i(e){return math.floor(e)}function n(){b.autoplaytimeoutid=settimeout(function(){b.params.loop?(b.fixloop(),b._slidenext()):b.isend?r.autoplaystoponlast?b.stopautoplay():b._slideto(0):b._slidenext()},b.params.autoplay)}function o(e,t){var r=a(e.target);if(!r.is(t))if("string"==typeof t)r=r.parents(t);else if(t.nodetype){var s;return r.parents().each(function(e,a){a===t&&(s=t)}),s?t:void 0}if(0!==r.length)return r[0]}function l(e,a){a=a||{};var t=window.mutationobserver||window.webkitmutationobserver,r=new t(function(e){e.foreach(function(e){b.onresize(!0),b.emit("onobserverupdate",b,e)})});r.observe(e,{attributes:"undefined"==typeof a.attributes?!0:a.attributes,childlist:"undefined"==typeof a.childlist?!0:a.childlist,characterdata:"undefined"==typeof a.characterdata?!0:a.characterdata}),b.observers.push(r)}function p(e){e.originalevent&&(e=e.originalevent);var a=e.keycode||e.charcode;if(!b.params.allowswipetonext&&(s()&&39===a||!s()&&40===a))return!1;if(!b.params.allowswipetoprev&&(s()&&37===a||!s()&&38===a))return!1;if(!(e.shiftkey||e.altkey||e.ctrlkey||e.metakey||document.activeelement&&document.activeelement.nodename&&("input"===document.activeelement.nodename.tolowercase()||"textarea"===document.activeelement.nodename.tolowercase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(b.container.parents(".swiper-slide").length>0&&0===b.container.parents(".swiper-slide-active").length)return;var r={left:window.pagexoffset,top:window.pageyoffset},i=window.innerwidth,n=window.innerheight,o=b.container.offset();b.rtl&&(o.left=o.left-b.container[0].scrollleft);for(var l=[[o.left,o.top],[o.left+b.width,o.top],[o.left,o.top+b.height],[o.left+b.width,o.top+b.height]],p=0;p=r.left&&d[0]<=r.left+i&&d[1]>=r.top&&d[1]<=r.top+n&&(t=!0)}if(!t)return}s()?((37===a||39===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),(39===a&&!b.rtl||37===a&&b.rtl)&&b.slidenext(),(37===a&&!b.rtl||39===a&&b.rtl)&&b.slideprev()):((38===a||40===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&b.slidenext(),38===a&&b.slideprev())}}function d(e){e.originalevent&&(e=e.originalevent);var a=b.mousewheel.event,t=0,r=b.rtl?-1:1;if(e.detail)t=-e.detail;else if("mousewheel"===a)if(b.params.mousewheelforcetoaxis)if(s()){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(b.params.mousewheelforcetoaxis)if(s()){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(b.params.mousewheelinvert&&(t=-t),b.params.freemode){var i=b.getwrappertranslate()+t*b.params.mousewheelsensitivity,n=b.isbeginning,o=b.isend;if(i>=b.mintranslate()&&(i=b.mintranslate()),i<=b.maxtranslate()&&(i=b.maxtranslate()),b.setwrappertransition(0),b.setwrappertranslate(i),b.updateprogress(),b.updateactiveindex(),(!n&&b.isbeginning||!o&&b.isend)&&b.updateclasses(),b.params.freemodesticky&&(cleartimeout(b.mousewheel.timeout),b.mousewheel.timeout=settimeout(function(){b.slidereset()},300)),0===i||i===b.maxtranslate())return}else{if((new window.date).gettime()-b.mousewheel.lastscrolltime>60)if(0>t)if(b.isend&&!b.params.loop||b.animating){if(b.params.mousewheelreleaseonedges)return!0}else b.slidenext();else if(b.isbeginning&&!b.params.loop||b.animating){if(b.params.mousewheelreleaseonedges)return!0}else b.slideprev();b.mousewheel.lastscrolltime=(new window.date).gettime()}return b.params.autoplay&&b.stopautoplay(),e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}}function u(e,t){e=a(e);var r,i,n,o=b.rtl?-1:1;r=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),n=e.attr("data-swiper-parallax-y"),i||n?(i=i||"0",n=n||"0"):s()?(i=r,n="0"):(n=r,i="0"),i=i.indexof("%")>=0?parseint(i,10)*t*o+"%":i*t*o+"px",n=n.indexof("%")>=0?parseint(n,10)*t+"%":n*t+"px",e.transform("translate3d("+i+", "+n+",0px)")}function c(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 m={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,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},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,pagination:null,paginationelement:"span",paginationclickable:!1,paginationhide:!1,paginationbulletrender:null,resistance:!0,resistanceratio:.85,nextbutton:null,prevbutton:null,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,lazyloading:!1,lazyloadinginprevnext:!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",paginationhiddenclass:"swiper-pagination-hidden",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},f=r&&r.virtualtranslate;r=r||{};var h={};for(var g in r)if("object"!=typeof r[g]||(r[g].nodetype||r[g]===window||r[g]===document||"undefined"!=typeof dom7&&r[g]instanceof dom7||"undefined"!=typeof jquery&&r[g]instanceof jquery))h[g]=r[g];else{h[g]={};for(var v in r[g])h[g][v]=r[g][v]}for(var w in m)if("undefined"==typeof r[w])r[w]=m[w];else if("object"==typeof r[w])for(var y in m[w])"undefined"==typeof r[w][y]&&(r[w][y]=m[w][y]);var b=this;if(b.params=r,b.originalparams=h,b.classnames=[],"undefined"!=typeof a&&"undefined"!=typeof dom7&&(a=dom7),("undefined"!=typeof a||(a="undefined"==typeof dom7?window.dom7||window.zepto||window.jquery:dom7))&&(b.$=a,b.currentbreakpoint=void 0,b.getactivebreakpoint=function(){if(!b.params.breakpoints)return!1;var e,a=!1,t=[];for(e in b.params.breakpoints)b.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"},b.setbreakpoint=function(){var e=b.getactivebreakpoint();if(e&&b.currentbreakpoint!==e){var a=e in b.params.breakpoints?b.params.breakpoints[e]:b.originalparams;for(var t in a)b.params[t]=a[t];b.currentbreakpoint=e}},b.params.breakpoints&&b.setbreakpoint(),b.container=a(e),0!==b.container.length)){if(b.container.length>1)return void b.container.each(function(){new t(this,r)});b.container[0].swiper=b,b.container.data("swiper",b),b.classnames.push("swiper-container-"+b.params.direction),b.params.freemode&&b.classnames.push("swiper-container-free-mode"),b.support.flexbox||(b.classnames.push("swiper-container-no-flexbox"),b.params.slidespercolumn=1),b.params.autoheight&&b.classnames.push("swiper-container-autoheight"),(b.params.parallax||b.params.watchslidesvisibility)&&(b.params.watchslidesprogress=!0),["cube","coverflow"].indexof(b.params.effect)>=0&&(b.support.transforms3d?(b.params.watchslidesprogress=!0,b.classnames.push("swiper-container-3d")):b.params.effect="slide"),"slide"!==b.params.effect&&b.classnames.push("swiper-container-"+b.params.effect),"cube"===b.params.effect&&(b.params.resistanceratio=0,b.params.slidesperview=1,b.params.slidespercolumn=1,b.params.slidespergroup=1,b.params.centeredslides=!1,b.params.spacebetween=0,b.params.virtualtranslate=!0,b.params.setwrappersize=!1),"fade"===b.params.effect&&(b.params.slidesperview=1,b.params.slidespercolumn=1,b.params.slidespergroup=1,b.params.watchslidesprogress=!0,b.params.spacebetween=0,"undefined"==typeof f&&(b.params.virtualtranslate=!0)),b.params.grabcursor&&b.support.touch&&(b.params.grabcursor=!1),b.wrapper=b.container.children("."+b.params.wrapperclass),b.params.pagination&&(b.paginationcontainer=a(b.params.pagination),b.params.paginationclickable&&b.paginationcontainer.addclass("swiper-pagination-clickable")),b.rtl=s()&&("rtl"===b.container[0].dir.tolowercase()||"rtl"===b.container.css("direction")),b.rtl&&b.classnames.push("swiper-container-rtl"),b.rtl&&(b.wrongrtl="-webkit-box"===b.wrapper.css("display")),b.params.slidespercolumn>1&&b.classnames.push("swiper-container-multirow"),b.device.android&&b.classnames.push("swiper-container-android"),b.container.addclass(b.classnames.join(" ")),b.translate=0,b.progress=0,b.velocity=0,b.lockswipetonext=function(){b.params.allowswipetonext=!1},b.lockswipetoprev=function(){b.params.allowswipetoprev=!1},b.lockswipes=function(){b.params.allowswipetonext=b.params.allowswipetoprev=!1},b.unlockswipetonext=function(){b.params.allowswipetonext=!0},b.unlockswipetoprev=function(){b.params.allowswipetoprev=!0},b.unlockswipes=function(){b.params.allowswipetonext=b.params.allowswipetoprev=!0},b.params.grabcursor&&(b.container[0].style.cursor="move",b.container[0].style.cursor="-webkit-grab",b.container[0].style.cursor="-moz-grab",b.container[0].style.cursor="grab"),b.imagestoload=[],b.imagesloaded=0,b.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()},b.preloadimages=function(){function e(){"undefined"!=typeof b&&null!==b&&(void 0!==b.imagesloaded&&b.imagesloaded++,b.imagesloaded===b.imagestoload.length&&(b.params.updateonimagesready&&b.update(),b.emit("onimagesready",b)))}b.imagestoload=b.container.find("img");for(var a=0;a=0&&(a=parsefloat(a.replace("%",""))/100*b.size),b.virtualsize=-a,b.rtl?b.slides.css({marginleft:"",margintop:""}):b.slides.css({marginright:"",marginbottom:""});var o;b.params.slidespercolumn>1&&(o=math.floor(b.slides.length/b.params.slidespercolumn)===b.slides.length/b.params.slidespercolumn?b.slides.length:math.ceil(b.slides.length/b.params.slidespercolumn)*b.params.slidespercolumn,"auto"!==b.params.slidesperview&&"row"===b.params.slidespercolumnfill&&(o=math.max(o,b.params.slidesperview*b.params.slidespercolumn)));var l,p=b.params.slidespercolumn,d=o/p,u=d-(b.params.slidespercolumn*d-b.slides.length);for(e=0;e1){var m,f,h;"column"===b.params.slidespercolumnfill?(f=math.floor(e/p),h=e-f*p,(f>u||f===u&&h===p-1)&&++h>=p&&(h=0,f++),m=f+h*o/p,c.css({"-webkit-box-ordinal-group":m,"-moz-box-ordinal-group":m,"-ms-flex-order":m,"-webkit-order":m,order:m})):(h=math.floor(e/d),f=e-h*d),c.css({"margin-top":0!==h&&b.params.spacebetween&&b.params.spacebetween+"px"}).attr("data-swiper-column",f).attr("data-swiper-row",h)}"none"!==c.css("display")&&("auto"===b.params.slidesperview?(l=s()?c.outerwidth(!0):c.outerheight(!0),b.params.roundlengths&&(l=i(l))):(l=(b.size-(b.params.slidesperview-1)*a)/b.params.slidesperview,b.params.roundlengths&&(l=i(l)),s()?b.slides[e].style.width=l+"px":b.slides[e].style.height=l+"px"),b.slides[e].swiperslidesize=l,b.slidessizesgrid.push(l),b.params.centeredslides?(t=t+l/2+r/2+a,0===e&&(t=t-b.size/2-a),math.abs(t)<.001&&(t=0),n%b.params.slidespergroup===0&&b.snapgrid.push(t),b.slidesgrid.push(t)):(n%b.params.slidespergroup===0&&b.snapgrid.push(t),b.slidesgrid.push(t),t=t+l+a),b.virtualsize+=l+a,r=l,n++)}b.virtualsize=math.max(b.virtualsize,b.size)+b.params.slidesoffsetafter;var g;if(b.rtl&&b.wrongrtl&&("slide"===b.params.effect||"coverflow"===b.params.effect)&&b.wrapper.css({width:b.virtualsize+b.params.spacebetween+"px"}),(!b.support.flexbox||b.params.setwrappersize)&&(s()?b.wrapper.css({width:b.virtualsize+b.params.spacebetween+"px"}):b.wrapper.css({height:b.virtualsize+b.params.spacebetween+"px"})),b.params.slidespercolumn>1&&(b.virtualsize=(l+b.params.spacebetween)*o,b.virtualsize=math.ceil(b.virtualsize/b.params.slidespercolumn)-b.params.spacebetween,b.wrapper.css({width:b.virtualsize+b.params.spacebetween+"px"}),b.params.centeredslides)){for(g=[],e=0;emath.floor(b.snapgrid[b.snapgrid.length-1])&&b.snapgrid.push(b.virtualsize-b.size)}0===b.snapgrid.length&&(b.snapgrid=[0]),0!==b.params.spacebetween&&(s()?b.rtl?b.slides.css({marginleft:a+"px"}):b.slides.css({marginright:a+"px"}):b.slides.css({marginbottom:a+"px"})),b.params.watchslidesprogress&&b.updateslidesoffset()},b.updateslidesoffset=function(){for(var e=0;e=0&&i0&&n<=b.size||0>=i&&n>=b.size;o&&b.slides.eq(t).addclass(b.params.slidevisibleclass)}r.progress=b.rtl?-s:s}}},b.updateprogress=function(e){"undefined"==typeof e&&(e=b.translate||0);var a=b.maxtranslate()-b.mintranslate(),t=b.isbeginning,r=b.isend;0===a?(b.progress=0,b.isbeginning=b.isend=!0):(b.progress=(e-b.mintranslate())/a,b.isbeginning=b.progress<=0,b.isend=b.progress>=1),b.isbeginning&&!t&&b.emit("onreachbeginning",b),b.isend&&!r&&b.emit("onreachend",b),b.params.watchslidesprogress&&b.updateslidesprogress(e),b.emit("onprogress",b,b.progress)},b.updateactiveindex=function(){var e,a,t,r=b.rtl?b.translate:-b.translate;for(a=0;a=b.slidesgrid[a]&&r=b.slidesgrid[a]&&r=b.slidesgrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=math.floor(e/b.params.slidespergroup),t>=b.snapgrid.length&&(t=b.snapgrid.length-1),e!==b.activeindex&&(b.snapindex=t,b.previousindex=b.activeindex,b.activeindex=e,b.updateclasses())},b.updateclasses=function(){b.slides.removeclass(b.params.slideactiveclass+" "+b.params.slidenextclass+" "+b.params.slideprevclass);var e=b.slides.eq(b.activeindex);if(e.addclass(b.params.slideactiveclass),e.next("."+b.params.slideclass).addclass(b.params.slidenextclass),e.prev("."+b.params.slideclass).addclass(b.params.slideprevclass),b.bullets&&b.bullets.length>0){b.bullets.removeclass(b.params.bulletactiveclass);var t;b.params.loop?(t=math.ceil(b.activeindex-b.loopedslides)/b.params.slidespergroup,t>b.slides.length-1-2*b.loopedslides&&(t-=b.slides.length-2*b.loopedslides),t>b.bullets.length-1&&(t-=b.bullets.length)):t="undefined"!=typeof b.snapindex?b.snapindex:b.activeindex||0,b.paginationcontainer.length>1?b.bullets.each(function(){a(this).index()===t&&a(this).addclass(b.params.bulletactiveclass)}):b.bullets.eq(t).addclass(b.params.bulletactiveclass)}b.params.loop||(b.params.prevbutton&&(b.isbeginning?(a(b.params.prevbutton).addclass(b.params.buttondisabledclass),b.params.a11y&&b.a11y&&b.a11y.disable(a(b.params.prevbutton))):(a(b.params.prevbutton).removeclass(b.params.buttondisabledclass),b.params.a11y&&b.a11y&&b.a11y.enable(a(b.params.prevbutton)))),b.params.nextbutton&&(b.isend?(a(b.params.nextbutton).addclass(b.params.buttondisabledclass),b.params.a11y&&b.a11y&&b.a11y.disable(a(b.params.nextbutton))):(a(b.params.nextbutton).removeclass(b.params.buttondisabledclass),b.params.a11y&&b.a11y&&b.a11y.enable(a(b.params.nextbutton)))))},b.updatepagination=function(){if(b.params.pagination&&b.paginationcontainer&&b.paginationcontainer.length>0){for(var e="",a=b.params.loop?math.ceil((b.slides.length-2*b.loopedslides)/b.params.slidespergroup):b.snapgrid.length,t=0;a>t;t++)e+=b.params.paginationbulletrender?b.params.paginationbulletrender(t,b.params.bulletclass):"<"+b.params.paginationelement+' class="'+b.params.bulletclass+'">";b.paginationcontainer.html(e),b.bullets=b.paginationcontainer.find("."+b.params.bulletclass),b.params.paginationclickable&&b.params.a11y&&b.a11y&&b.a11y.initpagination()}},b.update=function(e){function a(){r=math.min(math.max(b.translate,b.maxtranslate()),b.mintranslate()),b.setwrappertranslate(r),b.updateactiveindex(),b.updateclasses()}if(b.updatecontainersize(),b.updateslidessize(),b.updateprogress(),b.updatepagination(),b.updateclasses(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),e){var t,r;b.controller&&b.controller.spline&&(b.controller.spline=void 0),b.params.freemode?(a(),b.params.autoheight&&b.updateautoheight()):(t=("auto"===b.params.slidesperview||b.params.slidesperview>1)&&b.isend&&!b.params.centeredslides?b.slideto(b.slides.length-1,0,!1,!0):b.slideto(b.activeindex,0,!1,!0),t||a())}else b.params.autoheight&&b.updateautoheight()},b.onresize=function(e){b.params.breakpoints&&b.setbreakpoint();var a=b.params.allowswipetoprev,t=b.params.allowswipetonext;if(b.params.allowswipetoprev=b.params.allowswipetonext=!0,b.updatecontainersize(),b.updateslidessize(),("auto"===b.params.slidesperview||b.params.freemode||e)&&b.updatepagination(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),b.controller&&b.controller.spline&&(b.controller.spline=void 0),b.params.freemode){var r=math.min(math.max(b.translate,b.maxtranslate()),b.mintranslate());b.setwrappertranslate(r),b.updateactiveindex(),b.updateclasses(),b.params.autoheight&&b.updateautoheight()}else b.updateclasses(),("auto"===b.params.slidesperview||b.params.slidesperview>1)&&b.isend&&!b.params.centeredslides?b.slideto(b.slides.length-1,0,!1,!0):b.slideto(b.activeindex,0,!1,!0);b.params.allowswipetoprev=a,b.params.allowswipetonext=t};var x=["mousedown","mousemove","mouseup"];window.navigator.pointerenabled?x=["pointerdown","pointermove","pointerup"]:window.navigator.mspointerenabled&&(x=["mspointerdown","mspointermove","mspointerup"]),b.touchevents={start:b.support.touch||!b.params.simulatetouch?"touchstart":x[0],move:b.support.touch||!b.params.simulatetouch?"touchmove":x[1],end:b.support.touch||!b.params.simulatetouch?"touchend":x[2]},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===b.params.toucheventstarget?b.container:b.wrapper).addclass("swiper-wp8-"+b.params.direction),b.initevents=function(e){var t=e?"off":"on",s=e?"removeeventlistener":"addeventlistener",i="container"===b.params.toucheventstarget?b.container[0]:b.wrapper[0],n=b.support.touch?i:document,o=b.params.nested?!0:!1;b.browser.ie?(i[s](b.touchevents.start,b.ontouchstart,!1),n[s](b.touchevents.move,b.ontouchmove,o),n[s](b.touchevents.end,b.ontouchend,!1)):(b.support.touch&&(i[s](b.touchevents.start,b.ontouchstart,!1),i[s](b.touchevents.move,b.ontouchmove,o),i[s](b.touchevents.end,b.ontouchend,!1)),!r.simulatetouch||b.device.ios||b.device.android||(i[s]("mousedown",b.ontouchstart,!1),document[s]("mousemove",b.ontouchmove,o),document[s]("mouseup",b.ontouchend,!1))),window[s]("resize",b.onresize),b.params.nextbutton&&(a(b.params.nextbutton)[t]("click",b.onclicknext),b.params.a11y&&b.a11y&&a(b.params.nextbutton)[t]("keydown",b.a11y.onenterkey)),b.params.prevbutton&&(a(b.params.prevbutton)[t]("click",b.onclickprev),b.params.a11y&&b.a11y&&a(b.params.prevbutton)[t]("keydown",b.a11y.onenterkey)),b.params.pagination&&b.params.paginationclickable&&(a(b.paginationcontainer)[t]("click","."+b.params.bulletclass,b.onclickindex),b.params.a11y&&b.a11y&&a(b.paginationcontainer)[t]("keydown","."+b.params.bulletclass,b.a11y.onenterkey)),(b.params.preventclicks||b.params.preventclickspropagation)&&i[s]("click",b.preventclicks,!0)},b.attachevents=function(e){b.initevents()},b.detachevents=function(){b.initevents(!0)},b.allowclick=!0,b.preventclicks=function(e){b.allowclick||(b.params.preventclicks&&e.preventdefault(),b.params.preventclickspropagation&&b.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},b.onclicknext=function(e){e.preventdefault(),(!b.isend||b.params.loop)&&b.slidenext()},b.onclickprev=function(e){e.preventdefault(),(!b.isbeginning||b.params.loop)&&b.slideprev()},b.onclickindex=function(e){e.preventdefault();var t=a(this).index()*b.params.slidespergroup;b.params.loop&&(t+=b.loopedslides),b.slideto(t)},b.updateclickedslide=function(e){var t=o(e,"."+b.params.slideclass),r=!1;if(t)for(var s=0;sb.slides.length-b.loopedslides+b.params.slidesperview/2?(b.fixloop(),n=b.wrapper.children("."+b.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){b.slideto(n)},0)):b.slideto(n):n>b.slides.length-b.params.slidesperview?(b.fixloop(),n=b.wrapper.children("."+b.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){b.slideto(n)},0)):b.slideto(n)}else b.slideto(n)}};var t,s,c,m,p,k,i,z,e,d,l="input, select, textarea, button",b=date.now(),g=[];b.animating=!1,b.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0};var a,o;if(b.ontouchstart=function(e){if(e.originalevent&&(e=e.originalevent),a="touchstart"===e.type,a||!("which"in e)||3!==e.which){if(b.params.noswiping&&o(e,"."+b.params.noswipingclass))return void(b.allowclick=!0);if(!b.params.swipehandler||o(e,b.params.swipehandler)){var t=b.touches.currentx="touchstart"===e.type?e.targettouches[0].pagex:e.pagex,r=b.touches.currenty="touchstart"===e.type?e.targettouches[0].pagey:e.pagey;if(!(b.device.ios&&b.params.iosedgeswipedetection&&t<=b.params.iosedgeswipethreshold)){if(t=!0,s=!1,c=!0,p=void 0,o=void 0,b.touches.startx=t,b.touches.starty=r,m=date.now(),b.allowclick=!0,b.updatecontainersize(),b.swipedirection=void 0,b.params.threshold>0&&(z=!1),"touchstart"!==e.type){var s=!0;a(e.target).is(l)&&(s=!1),document.activeelement&&a(document.activeelement).is(l)&&document.activeelement.blur(),s&&e.preventdefault()}b.emit("ontouchstart",b,e)}}}},b.ontouchmove=function(e){if(e.originalevent&&(e=e.originalevent),!(a&&"mousemove"===e.type||e.preventedbynestedswiper)){if(b.params.onlyexternal)return b.allowclick=!1,void(t&&(b.touches.startx=b.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,b.touches.starty=b.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,m=date.now()));if(a&&document.activeelement&&e.target===document.activeelement&&a(e.target).is(l))return s=!0,void(b.allowclick=!1);if(c&&b.emit("ontouchmove",b,e),!(e.targettouches&&e.targettouches.length>1)){if(b.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,b.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,"undefined"==typeof p){var t=180*math.atan2(math.abs(b.touches.currenty-b.touches.starty),math.abs(b.touches.currentx-b.touches.startx))/math.pi;p=s()?t>b.params.touchangle:90-t>b.params.touchangle}if(p&&b.emit("ontouchmoveopposite",b,e),"undefined"==typeof o&&b.browser.ietouch&&(b.touches.currentx!==b.touches.startx||b.touches.currenty!==b.touches.starty)&&(o=!0),t){if(p)return void(t=!1);if(o||!b.browser.ietouch){b.allowclick=!1,b.emit("onslidermove",b,e),e.preventdefault(),b.params.touchmovestoppropagation&&!b.params.nested&&e.stoppropagation(),s||(r.loop&&b.fixloop(),i=b.getwrappertranslate(),b.setwrappertransition(0),b.animating&&b.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),b.params.autoplay&&b.autoplaying&&(b.params.autoplaydisableoninteraction?b.stopautoplay():b.pauseautoplay()),d=!1,b.params.grabcursor&&(b.container[0].style.cursor="move",b.container[0].style.cursor="-webkit-grabbing",b.container[0].style.cursor="-moz-grabbin",b.container[0].style.cursor="grabbing")),s=!0;var i=b.touches.diff=s()?b.touches.currentx-b.touches.startx:b.touches.currenty-b.touches.starty;i*=b.params.touchratio,b.rtl&&(i=-i),b.swipedirection=i>0?"prev":"next",k=i+i;var n=!0;if(i>0&&k>b.mintranslate()?(n=!1,b.params.resistance&&(k=b.mintranslate()-1+math.pow(-b.mintranslate()+i+i,b.params.resistanceratio))):0>i&&kk&&(k=i),!b.params.allowswipetoprev&&"prev"===b.swipedirection&&k>i&&(k=i),b.params.followfinger){if(b.params.threshold>0){if(!(math.abs(i)>b.params.threshold||z))return void(k=i);if(!z)return z=!0,b.touches.startx=b.touches.currentx,b.touches.starty=b.touches.currenty,k=i,void(b.touches.diff=s()?b.touches.currentx-b.touches.startx:b.touches.currenty-b.touches.starty)}(b.params.freemode||b.params.watchslidesprogress)&&b.updateactiveindex(),b.params.freemode&&(0===g.length&&g.push({position:b.touches[s()?"startx":"starty"],time:m}),g.push({position:b.touches[s()?"currentx":"currenty"],time:(new window.date).gettime()})),b.updateprogress(k),b.setwrappertranslate(k)}}}}}},b.ontouchend=function(e){if(e.originalevent&&(e=e.originalevent),c&&b.emit("ontouchend",b,e),c=!1,t){b.params.grabcursor&&s&&t&&(b.container[0].style.cursor="move",b.container[0].style.cursor="-webkit-grab",b.container[0].style.cursor="-moz-grab",b.container[0].style.cursor="grab");var t=date.now(),r=t-m;if(b.allowclick&&(b.updateclickedslide(e),b.emit("ontap",b,e),300>r&&t-b>300&&(e&&cleartimeout(e),e=settimeout(function(){b&&(b.params.paginationhide&&b.paginationcontainer.length>0&&!a(e.target).hasclass(b.params.bulletclass)&&b.paginationcontainer.toggleclass(b.params.paginationhiddenclass),b.emit("onclick",b,e))},300)),300>r&&300>t-b&&(e&&cleartimeout(e),b.emit("ondoubletap",b,e))),b=date.now(),settimeout(function(){b&&(b.allowclick=!0)},0),!t||!s||!b.swipedirection||0===b.touches.diff||k===i)return void(t=s=!1);t=s=!1;var s;if(s=b.params.followfinger?b.rtl?b.translate:-b.translate:-k,b.params.freemode){if(s<-b.mintranslate())return void b.slideto(b.activeindex);if(s>-b.maxtranslate())return void(b.slides.length1){var i=g.pop(),n=g.pop(),o=i.position-n.position,l=i.time-n.time;b.velocity=o/l,b.velocity=b.velocity/2,math.abs(b.velocity)150||(new window.date).gettime()-i.time>300)&&(b.velocity=0)}else b.velocity=0;g.length=0;var p=1e3*b.params.freemodemomentumratio,d=b.velocity*p,u=b.translate+d;b.rtl&&(u=-u);var c,m=!1,f=20*math.abs(b.velocity)*b.params.freemodemomentumbounceratio;if(ub.mintranslate())b.params.freemodemomentumbounce?(u-b.mintranslate()>f&&(u=b.mintranslate()+f),c=b.mintranslate(),m=!0,d=!0):u=b.mintranslate();else if(b.params.freemodesticky){var h,g=0;for(g=0;g-u){h=g;break}u=math.abs(b.snapgrid[h]-u)=b.params.longswipesms)&&(b.updateprogress(),b.updateactiveindex())); }var v,w=0,y=b.slidessizesgrid[0];for(v=0;v=b.slidesgrid[v]&&s=b.slidesgrid[v]&&(w=v,y=b.slidesgrid[b.slidesgrid.length-1]-b.slidesgrid[b.slidesgrid.length-2]);var x=(s-b.slidesgrid[w])/y;if(r>b.params.longswipesms){if(!b.params.longswipes)return void b.slideto(b.activeindex);"next"===b.swipedirection&&(x>=b.params.longswipesratio?b.slideto(w+b.params.slidespergroup):b.slideto(w)),"prev"===b.swipedirection&&(x>1-b.params.longswipesratio?b.slideto(w+b.params.slidespergroup):b.slideto(w))}else{if(!b.params.shortswipes)return void b.slideto(b.activeindex);"next"===b.swipedirection&&b.slideto(w+b.params.slidespergroup),"prev"===b.swipedirection&&b.slideto(w)}}},b._slideto=function(e,a){return b.slideto(e,a,!0,!0)},b.slideto=function(e,a,t,r){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),b.snapindex=math.floor(e/b.params.slidespergroup),b.snapindex>=b.snapgrid.length&&(b.snapindex=b.snapgrid.length-1);var s=-b.snapgrid[b.snapindex];b.params.autoplay&&b.autoplaying&&(r||!b.params.autoplaydisableoninteraction?b.pauseautoplay(a):b.stopautoplay()),b.updateprogress(s);for(var i=0;i=math.floor(100*b.slidesgrid[i])&&(e=i);return!b.params.allowswipetonext&&sb.translate&&s>b.maxtranslate()&&(b.activeindex||0)!==e?!1:("undefined"==typeof a&&(a=b.params.speed),b.previousindex=b.activeindex||0,b.activeindex=e,b.rtl&&-s===b.translate||!b.rtl&&s===b.translate?(b.params.autoheight&&b.updateautoheight(),b.updateclasses(),"slide"!==b.params.effect&&b.setwrappertranslate(s),!1):(b.updateclasses(),b.ontransitionstart(t),0===a?(b.setwrappertranslate(s),b.setwrappertransition(0),b.ontransitionend(t)):(b.setwrappertranslate(s),b.setwrappertransition(a),b.animating||(b.animating=!0,b.wrapper.transitionend(function(){b&&b.ontransitionend(t)}))),!0))},b.ontransitionstart=function(e){"undefined"==typeof e&&(e=!0),b.params.autoheight&&b.updateautoheight(),b.lazy&&b.lazy.ontransitionstart(),e&&(b.emit("ontransitionstart",b),b.activeindex!==b.previousindex&&(b.emit("onslidechangestart",b),b.activeindex>b.previousindex?b.emit("onslidenextstart",b):b.emit("onslideprevstart",b)))},b.ontransitionend=function(e){b.animating=!1,b.setwrappertransition(0),"undefined"==typeof e&&(e=!0),b.lazy&&b.lazy.ontransitionend(),e&&(b.emit("ontransitionend",b),b.activeindex!==b.previousindex&&(b.emit("onslidechangeend",b),b.activeindex>b.previousindex?b.emit("onslidenextend",b):b.emit("onslideprevend",b))),b.params.hashnav&&b.hashnav&&b.hashnav.sethash()},b.slidenext=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixloop();b.container[0].clientleft;return b.slideto(b.activeindex+b.params.slidespergroup,a,e,t)}return b.slideto(b.activeindex+b.params.slidespergroup,a,e,t)},b._slidenext=function(e){return b.slidenext(!0,e,!0)},b.slideprev=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixloop();b.container[0].clientleft;return b.slideto(b.activeindex-1,a,e,t)}return b.slideto(b.activeindex-1,a,e,t)},b._slideprev=function(e){return b.slideprev(!0,e,!0)},b.slidereset=function(e,a,t){return b.slideto(b.activeindex,a,e)},b.setwrappertransition=function(e,a){b.wrapper.transition(e),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].settransition(e),b.params.parallax&&b.parallax&&b.parallax.settransition(e),b.params.scrollbar&&b.scrollbar&&b.scrollbar.settransition(e),b.params.control&&b.controller&&b.controller.settransition(e,a),b.emit("onsettransition",b,e)},b.setwrappertranslate=function(e,a,t){var r=0,n=0,o=0;s()?r=b.rtl?-e:e:n=e,b.params.roundlengths&&(r=i(r),n=i(n)),b.params.virtualtranslate||(b.support.transforms3d?b.wrapper.transform("translate3d("+r+"px, "+n+"px, "+o+"px)"):b.wrapper.transform("translate("+r+"px, "+n+"px)")),b.translate=s()?r:n;var l,p=b.maxtranslate()-b.mintranslate();l=0===p?0:(e-b.mintranslate())/p,l!==b.progress&&b.updateprogress(e),a&&b.updateactiveindex(),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].settranslate(b.translate),b.params.parallax&&b.parallax&&b.parallax.settranslate(b.translate),b.params.scrollbar&&b.scrollbar&&b.scrollbar.settranslate(b.translate),b.params.control&&b.controller&&b.controller.settranslate(b.translate,t),b.emit("onsettranslate",b,b.translate)},b.gettranslate=function(e,a){var t,r,s,i;return"undefined"==typeof a&&(a="x"),b.params.virtualtranslate?b.rtl?-b.translate:b.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])),b.rtl&&r&&(r=-r),r||0)},b.getwrappertranslate=function(e){return"undefined"==typeof e&&(e=s()?"x":"y"),b.gettranslate(b.wrapper[0],e)},b.observers=[],b.initobservers=function(){if(b.params.observeparents)for(var e=b.container.parents(),a=0;ae.length&&(b.loopedslides=e.length);var t,r=[],s=[];for(e.each(function(t,i){var n=a(this);t=e.length-b.loopedslides&&r.push(i),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)b.wrapper.prepend(a(r[t].clonenode(!0)).addclass(b.params.slideduplicateclass))},b.destroyloop=function(){b.wrapper.children("."+b.params.slideclass+"."+b.params.slideduplicateclass).remove(),b.slides.removeattr("data-swiper-slide-index")},b.fixloop=function(){var e;b.activeindex=2*b.loopedslides||b.activeindex>b.slides.length-2*b.params.slidesperview)&&(e=-b.slides.length+b.activeindex+b.loopedslides,e+=b.loopedslides,b.slideto(e,0,!1,!0))},b.appendslide=function(e){if(b.params.loop&&b.destroyloop(),"object"==typeof e&&e.length)for(var a=0;aa&&t--;t=math.max(t,0)}else a=e,b.slides[a]&&b.slides.eq(a).remove(),t>a&&t--,t=math.max(t,0);b.params.loop&&b.createloop(),b.params.observer&&b.support.observer||b.update(!0),b.params.loop?b.slideto(t+b.loopedslides,0,!1):b.slideto(t,0,!1)},b.removeallslides=function(){for(var e=[],a=0;a'),b.wrapper.append(e)),e.css({height:b.width+"px"})):(e=b.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('
'),b.container.append(e))));for(var r=0;r=l&&l>-1&&(t=90*r+90*l,b.rtl&&(t=90*-r-90*l)),i.transform(c),b.params.cube.slideshadows){var m=s()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),f=s()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===m.length&&(m=a('
'),i.append(m)),0===f.length&&(f=a('
'),i.append(f));i[0].progress;m.length&&(m[0].style.opacity=-i[0].progress),f.length&&(f[0].style.opacity=i[0].progress)}}if(b.wrapper.css({"-webkit-transform-origin":"50% 50% -"+b.size/2+"px","-moz-transform-origin":"50% 50% -"+b.size/2+"px","-ms-transform-origin":"50% 50% -"+b.size/2+"px","transform-origin":"50% 50% -"+b.size/2+"px"}),b.params.cube.shadow)if(s())e.transform("translate3d(0px, "+(b.width/2+b.params.cube.shadowoffset)+"px, "+-b.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+b.params.cube.shadowscale+")");else{var h=math.abs(t)-90*math.floor(math.abs(t)/90),g=1.5-(math.sin(2*h*math.pi/360)/2+math.cos(2*h*math.pi/360)/2),v=b.params.cube.shadowscale,w=b.params.cube.shadowscale/g,y=b.params.cube.shadowoffset;e.transform("scale3d("+v+", 1, "+w+") translate3d(0px, "+(b.height/2+y)+"px, "+-b.height/2/w+"px) rotatex(-90deg)")}var x=b.issafari||b.isuiwebview?-b.size/2:0;b.wrapper.transform("translate3d(0px,0,"+x+"px) rotatex("+(s()?0:t)+"deg) rotatey("+(s()?-t:0)+"deg)")},settransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),b.params.cube.shadow&&!s()&&b.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var e=b.translate,t=s()?-e+b.width/2:-e+b.height/2,r=s()?b.params.coverflow.rotate:-b.params.coverflow.rotate,i=b.params.coverflow.depth,n=0,o=b.slides.length;o>n;n++){var l=b.slides.eq(n),p=b.slidessizesgrid[n],d=l[0].swiperslideoffset,u=(t-d-p/2)/p*b.params.coverflow.modifier,c=s()?r*u:0,m=s()?0:r*u,f=-i*math.abs(u),h=s()?0:b.params.coverflow.stretch*u,g=s()?b.params.coverflow.stretch*u:0;math.abs(g)<.001&&(g=0),math.abs(h)<.001&&(h=0),math.abs(f)<.001&&(f=0),math.abs(c)<.001&&(c=0),math.abs(m)<.001&&(m=0);var v="translate3d("+g+"px,"+h+"px,"+f+"px) rotatex("+m+"deg) rotatey("+c+"deg)";if(l.transform(v),l[0].style.zindex=-math.abs(math.round(u))+1,b.params.coverflow.slideshadows){var w=s()?l.find(".swiper-slide-shadow-left"):l.find(".swiper-slide-shadow-top"),y=s()?l.find(".swiper-slide-shadow-right"):l.find(".swiper-slide-shadow-bottom");0===w.length&&(w=a('
'),l.append(w)),0===y.length&&(y=a('
'),l.append(y)),w.length&&(w[0].style.opacity=u>0?u:0),y.length&&(y[0].style.opacity=-u>0?-u:0)}}if(b.browser.ie){var x=b.wrapper[0].style;x.perspectiveorigin=t+"px 50%"}},settransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},b.lazy={initialimageloaded:!1,loadimageinslide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==b.slides.length)){var r=b.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");b.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(),b.params.loop&&t){var a=r.attr("data-swiper-slide-index");if(r.hasclass(b.params.slideduplicateclass)){var o=b.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+b.params.slideduplicateclass+")");b.lazy.loadimageinslide(o.index(),!1)}else{var l=b.wrapper.children("."+b.params.slideduplicateclass+'[data-swiper-slide-index="'+a+'"]');b.lazy.loadimageinslide(l.index(),!1)}}b.emit("onlazyimageready",b,r[0],e[0])}),b.emit("onlazyimageload",b,r[0],e[0])})}},load:function(){var e;if(b.params.watchslidesvisibility)b.wrapper.children("."+b.params.slidevisibleclass).each(function(){b.lazy.loadimageinslide(a(this).index())});else if(b.params.slidesperview>1)for(e=b.activeindex;e1){for(e=b.activeindex+b.params.slidesperview;e0&&b.lazy.loadimageinslide(t.index());var r=b.wrapper.children("."+b.params.slideprevclass);r.length>0&&b.lazy.loadimageinslide(r.index())}},ontransitionstart:function(){b.params.lazyloading&&(b.params.lazyloadingontransitionstart||!b.params.lazyloadingontransitionstart&&!b.lazy.initialimageloaded)&&b.lazy.load()},ontransitionend:function(){b.params.lazyloading&&!b.params.lazyloadingontransitionstart&&b.lazy.load()}},b.scrollbar={istouched:!1,setdragposition:function(e){var a=b.scrollbar,t=s()?"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()[s()?"left":"top"]-a.dragsize/2,i=-b.mintranslate()*a.movedivider,n=-b.maxtranslate()*a.movedivider;i>r?r=i:r>n&&(r=n),r=-r/a.movedivider,b.updateprogress(r),b.setwrappertranslate(r,!0)},dragstart:function(e){var a=b.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),b.params.scrollbarhide&&a.track.css("opacity",1),b.wrapper.transition(100),a.drag.transition(100),b.emit("onscrollbardragstart",b)},dragmove:function(e){var a=b.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),b.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),b.emit("onscrollbardragmove",b))},dragend:function(e){var a=b.scrollbar;a.istouched&&(a.istouched=!1,b.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),b.emit("onscrollbardragend",b),b.params.scrollbarsnaponrelease&&b.slidereset())},enabledraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).on(b.touchevents.start,e.dragstart),a(t).on(b.touchevents.move,e.dragmove),a(t).on(b.touchevents.end,e.dragend)},disabledraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).off(b.touchevents.start,e.dragstart),a(t).off(b.touchevents.move,e.dragmove),a(t).off(b.touchevents.end,e.dragend)},set:function(){if(b.params.scrollbar){var e=b.scrollbar;e.track=a(b.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=s()?e.track[0].offsetwidth:e.track[0].offsetheight,e.divider=b.size/b.virtualsize,e.movedivider=e.divider*(e.tracksize/b.size),e.dragsize=e.tracksize*e.divider,s()?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="",b.params.scrollbarhide&&(e.track[0].style.opacity=0)}},settranslate:function(){if(b.params.scrollbar){var e,a=b.scrollbar,t=(b.translate||0,a.dragsize);e=(a.tracksize-a.dragsize)*b.progress,b.rtl&&s()?(e=-e,e>0?(t=a.dragsize-e,e=0):-e+a.dragsize>a.tracksize&&(t=a.tracksize+e)):0>e?(t=a.dragsize+e,e=0):e+a.dragsize>a.tracksize&&(t=a.tracksize-e),s()?(b.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(b.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),b.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){b.params.scrollbar&&b.scrollbar.drag.transition(e)}},b.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){b.controller.spline||(b.controller.spline=b.params.loop?new b.controller.linearspline(b.slidesgrid,e.slidesgrid):new b.controller.linearspline(b.snapgrid,e.snapgrid))},settranslate:function(e,a){function r(a){e=a.rtl&&"horizontal"===a.params.direction?-b.translate:b.translate,"slide"===b.params.controlby&&(b.controller.getinterpolatefunction(a),i=-b.controller.spline.interpolate(-e)),i&&"container"!==b.params.controlby||(s=(a.maxtranslate()-a.mintranslate())/(b.maxtranslate()-b.mintranslate()),i=(e-b.mintranslate())*s+a.mintranslate()),b.params.controlinverse&&(i=a.maxtranslate()-i),a.updateprogress(i),a.setwrappertranslate(i,!1,b),a.updateactiveindex()}var s,i,n=b.params.control;if(b.isarray(n))for(var o=0;ot;t++){var s=b.slides.eq(t),i=s.attr("data-hash");if(i===e&&!s.hasclass(b.params.slideduplicateclass)){var n=s.index();b.slideto(n,a,b.params.runcallbacksoninit,!0)}}}},sethash:function(){b.hashnav.initialized&&b.params.hashnav&&(document.location.hash=b.slides.eq(b.activeindex).attr("data-hash")||"")}},b.disablekeyboardcontrol=function(){b.params.keyboardcontrol=!1,a(document).off("keydown",p)},b.enablekeyboardcontrol=function(){b.params.keyboardcontrol=!0,a(document).on("keydown",p)},b.mousewheel={event:!1,lastscrolltime:(new window.date).gettime()},b.params.mousewheelcontrol){try{new window.wheelevent("wheel"),b.mousewheel.event="wheel"}catch(n){}b.mousewheel.event||void 0===document.onmousewheel||(b.mousewheel.event="mousewheel"),b.mousewheel.event||(b.mousewheel.event="dommousescroll")}b.disablemousewheelcontrol=function(){return b.mousewheel.event?(b.container.off(b.mousewheel.event,d),!0):!1},b.enablemousewheelcontrol=function(){return b.mousewheel.event?(b.container.on(b.mousewheel.event,d),!0):!1},b.parallax={settranslate:function(){b.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){u(this,b.progress)}),b.slides.each(function(){var e=a(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=math.min(math.max(e[0].progress,-1),1);u(this,a)})})},settransition:function(e){"undefined"==typeof e&&(e=b.params.speed),b.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=a(this),r=parseint(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),t.transition(r)})}},b._plugins=[];for(var r in b.plugins){var v=b.plugins[r](b,b.params[r]);v&&b._plugins.push(v)}return b.callplugins=function(e){for(var a=0;a'),notify:function(e){var a=b.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){if(b.params.nextbutton){var e=a(b.params.nextbutton);b.a11y.makefocusable(e),b.a11y.addrole(e,"button"),b.a11y.addlabel(e,b.params.nextslidemessage)}if(b.params.prevbutton){var t=a(b.params.prevbutton);b.a11y.makefocusable(t),b.a11y.addrole(t,"button"),b.a11y.addlabel(t,b.params.prevslidemessage)}a(b.container).append(b.a11y.liveregion)},initpagination:function(){b.params.pagination&&b.params.paginationclickable&&b.bullets&&b.bullets.length&&b.bullets.each(function(){var e=a(this);b.a11y.makefocusable(e),b.a11y.addrole(e,"button"),b.a11y.addlabel(e,b.params.paginationbulletmessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){b.a11y.liveregion&&b.a11y.liveregion.length>0&&b.a11y.liveregion.remove()}},b.init=function(){b.params.loop&&b.createloop(),b.updatecontainersize(),b.updateslidessize(),b.updatepagination(),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.set(),b.params.scrollbardraggable&&b.scrollbar.enabledraggable()),"slide"!==b.params.effect&&b.effects[b.params.effect]&&(b.params.loop||b.updateprogress(),b.effects[b.params.effect].settranslate()),b.params.loop?b.slideto(b.params.initialslide+b.loopedslides,0,b.params.runcallbacksoninit):(b.slideto(b.params.initialslide,0,b.params.runcallbacksoninit),0===b.params.initialslide&&(b.parallax&&b.params.parallax&&b.parallax.settranslate(),b.lazy&&b.params.lazyloading&&(b.lazy.load(),b.lazy.initialimageloaded=!0))),b.attachevents(),b.params.observer&&b.support.observer&&b.initobservers(),b.params.preloadimages&&!b.params.lazyloading&&b.preloadimages(),b.params.autoplay&&b.startautoplay(),b.params.keyboardcontrol&&b.enablekeyboardcontrol&&b.enablekeyboardcontrol(),b.params.mousewheelcontrol&&b.enablemousewheelcontrol&&b.enablemousewheelcontrol(),b.params.hashnav&&b.hashnav&&b.hashnav.init(),b.params.a11y&&b.a11y&&b.a11y.init(),b.emit("oninit",b)},b.cleanupstyles=function(){b.container.removeclass(b.classnames.join(" ")).removeattr("style"),b.wrapper.removeattr("style"),b.slides&&b.slides.length&&b.slides.removeclass([b.params.slidevisibleclass,b.params.slideactiveclass,b.params.slidenextclass,b.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),b.paginationcontainer&&b.paginationcontainer.length&&b.paginationcontainer.removeclass(b.params.paginationhiddenclass),b.bullets&&b.bullets.length&&b.bullets.removeclass(b.params.bulletactiveclass),b.params.prevbutton&&a(b.params.prevbutton).removeclass(b.params.buttondisabledclass),b.params.nextbutton&&a(b.params.nextbutton).removeclass(b.params.buttondisabledclass),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.track&&b.scrollbar.track.length&&b.scrollbar.track.removeattr("style"),b.scrollbar.drag&&b.scrollbar.drag.length&&b.scrollbar.drag.removeattr("style"))},b.destroy=function(e,a){b.detachevents(),b.stopautoplay(),b.params.scrollbar&&b.scrollbar&&b.params.scrollbardraggable&&b.scrollbar.disabledraggable(),b.params.loop&&b.destroyloop(),a&&b.cleanupstyles(),b.disconnectobservers(),b.params.keyboardcontrol&&b.disablekeyboardcontrol&&b.disablekeyboardcontrol(),b.params.mousewheelcontrol&&b.disablemousewheelcontrol&&b.disablemousewheelcontrol(),b.params.a11y&&b.a11y&&b.a11y.destroy(),b.emit("ondestroy"),e!==!1&&(b=null)},b.init(),b}};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