/** * swiper 3.4.0 * most modern mobile touch slider and framework with hardware accelerated transitions * * http://www.idangero.us/swiper/ * * copyright 2016, vladimir kharlampidi * the idangero.us * http://www.idangero.us/ * * licensed under mit * * released on: october 16, 2016 */ !function(){"use strict";function e(e){e.fn.swiper=function(a){var s;return e(this).each(function(){var e=new t(this,a);s||(s=e)}),s}}var a,t=function(e,i){function n(e){return math.floor(e)}function o(){var e=s.params.autoplay,a=s.slides.eq(s.activeindex);a.attr("data-swiper-autoplay")&&(e=a.attr("data-swiper-autoplay")||s.params.autoplay),s.autoplaytimeoutid=settimeout(function(){s.params.loop?(s.fixloop(),s._slidenext(),s.emit("onautoplay",s)):s.isend?i.autoplaystoponlast?s.stopautoplay():(s._slideto(0),s.emit("onautoplay",s)):(s._slidenext(),s.emit("onautoplay",s))},e)}function l(e,t){var s=a(e.target);if(!s.is(t))if("string"==typeof t)s=s.parents(t);else if(t.nodetype){var i;return s.parents().each(function(e,a){a===t&&(i=t)}),i?t:void 0}if(0!==s.length)return s[0]}function p(e,a){a=a||{};var t=window.mutationobserver||window.webkitmutationobserver,s=new t(function(e){e.foreach(function(e){s.onresize(!0),s.emit("onobserverupdate",s,e)})});s.observe(e,{attributes:"undefined"==typeof a.attributes||a.attributes,childlist:"undefined"==typeof a.childlist||a.childlist,characterdata:"undefined"==typeof a.characterdata||a.characterdata}),s.observers.push(s)}function d(e){e.originalevent&&(e=e.originalevent);var a=e.keycode||e.charcode;if(!s.params.allowswipetonext&&(s.ishorizontal()&&39===a||!s.ishorizontal()&&40===a))return!1;if(!s.params.allowswipetoprev&&(s.ishorizontal()&&37===a||!s.ishorizontal()&&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(s.container.parents("."+s.params.slideclass).length>0&&0===s.container.parents("."+s.params.slideactiveclass).length)return;var s={left:window.pagexoffset,top:window.pageyoffset},i=window.innerwidth,r=window.innerheight,n=s.container.offset();s.rtl&&(n.left=n.left-s.container[0].scrollleft);for(var o=[[n.left,n.top],[n.left+s.width,n.top],[n.left,n.top+s.height],[n.left+s.width,n.top+s.height]],l=0;l=s.left&&p[0]<=s.left+i&&p[1]>=s.top&&p[1]<=s.top+r&&(t=!0)}if(!t)return}s.ishorizontal()?(37!==a&&39!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),(39===a&&!s.rtl||37===a&&s.rtl)&&s.slidenext(),(37===a&&!s.rtl||39===a&&s.rtl)&&s.slideprev()):(38!==a&&40!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&s.slidenext(),38===a&&s.slideprev())}}function u(){var e="onwheel",a=e in document;if(!a){var t=document.createelement("div");t.setattribute(e,"return;"),a="function"==typeof t[e]}return!a&&document.implementation&&document.implementation.hasfeature&&document.implementation.hasfeature("","")!==!0&&(a=document.implementation.hasfeature("events.wheel","3.0")),a}function c(e){e.originalevent&&(e=e.originalevent);var a=0,t=s.rtl?-1:1,s=m(e);if(s.params.mousewheelforcetoaxis)if(s.ishorizontal()){if(!(math.abs(s.pixelx)>math.abs(s.pixely)))return;a=s.pixelx*t}else{if(!(math.abs(s.pixely)>math.abs(s.pixelx)))return;a=s.pixely}else a=math.abs(s.pixelx)>math.abs(s.pixely)?-s.pixelx*t:-s.pixely;if(0!==a){if(s.params.mousewheelinvert&&(a=-a),s.params.freemode){var i=s.getwrappertranslate()+a*s.params.mousewheelsensitivity,r=s.isbeginning,n=s.isend;if(i>=s.mintranslate()&&(i=s.mintranslate()),i<=s.maxtranslate()&&(i=s.maxtranslate()),s.setwrappertransition(0),s.setwrappertranslate(i),s.updateprogress(),s.updateactiveindex(),(!r&&s.isbeginning||!n&&s.isend)&&s.updateclasses(),s.params.freemodesticky?(cleartimeout(s.mousewheel.timeout),s.mousewheel.timeout=settimeout(function(){s.slidereset()},300)):s.params.lazyloading&&s.lazy&&s.lazy.load(),s.emit("onscroll",s,e),s.params.autoplay&&s.params.autoplaydisableoninteraction&&s.stopautoplay(),0===i||i===s.maxtranslate())return}else{if((new window.date).gettime()-s.mousewheel.lastscrolltime>60)if(a<0)if(s.isend&&!s.params.loop||s.animating){if(s.params.mousewheelreleaseonedges)return!0}else s.slidenext(),s.emit("onscroll",s,e);else if(s.isbeginning&&!s.params.loop||s.animating){if(s.params.mousewheelreleaseonedges)return!0}else s.slideprev(),s.emit("onscroll",s,e);s.mousewheel.lastscrolltime=(new window.date).gettime()}return e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}}function m(e){var a=10,t=40,s=800,i=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheeldelta"in e&&(r=-e.wheeldelta/120),"wheeldeltay"in e&&(r=-e.wheeldeltay/120),"wheeldeltax"in e&&(i=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(i=r,r=0),n=i*a,o=r*a,"deltay"in e&&(o=e.deltay),"deltax"in e&&(n=e.deltax),(n||o)&&e.deltamode&&(1===e.deltamode?(n*=t,o*=t):(n*=s,o*=s)),n&&!i&&(i=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinx:i,spiny:r,pixelx:n,pixely:o}}function h(e,t){e=a(e);var s,i,r,n=s.rtl?-1:1;s=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),r=e.attr("data-swiper-parallax-y"),i||r?(i=i||"0",r=r||"0"):s.ishorizontal()?(i=s,r="0"):(r=s,i="0"),i=i.indexof("%")>=0?parseint(i,10)*t*n+"%":i*t*n+"px",r=r.indexof("%")>=0?parseint(r,10)*t+"%":r*t+"px",e.transform("translate3d("+i+", "+r+",0px)")}function g(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,i);var f={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,freemodemomentumvelocityratio: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,zoom:!1,zoommax:3,zoommin:1,zoomtoggle:!0,scrollbar:null,scrollbarhide:!0,scrollbardraggable:!1,scrollbarsnaponrelease:!1,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelreleaseonedges:!1,mousewheelinvert:!1,mousewheelforcetoaxis:!1,mousewheelsensitivity:1,mousewheeleventstarged:"container",hashnav:!1,hashnavwatchstate:!1,history:!1,replacestate:!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,touchreleaseonedges:!1,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",normalizeslideindex:!0,allowswipetoprev:!0,allowswipetonext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",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",paginationclickableclass:"swiper-pagination-clickable",paginationmodifierclass:"swiper-pagination-",lazyloadingclass:"swiper-lazy",lazystatusloadingclass:"swiper-lazy-loading",lazystatusloadedclass:"swiper-lazy-loaded",lazypreloaderclass:"swiper-lazy-preloader",notificationclass:"swiper-notification",preloaderclass:"preloader",zoomcontainerclass:"swiper-zoom-container",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},v=i&&i.virtualtranslate;i=i||{};var w={};for(var y in i)if("object"!=typeof i[y]||null===i[y]||(i[y].nodetype||i[y]===window||i[y]===document||"undefined"!=typeof s&&i[y]instanceof s||"undefined"!=typeof jquery&&i[y]instanceof jquery))w[y]=i[y];else{w[y]={};for(var x in i[y])w[y][x]=i[y][x]}for(var t in f)if("undefined"==typeof i[t])i[t]=f[t];else if("object"==typeof i[t])for(var b in f[t])"undefined"==typeof i[t][b]&&(i[t][b]=f[t][b]);var s=this;if(s.params=i,s.originalparams=w,s.classnames=[],"undefined"!=typeof a&&"undefined"!=typeof s&&(a=s),("undefined"!=typeof a||(a="undefined"==typeof s?window.dom7||window.zepto||window.jquery:s))&&(s.$=a,s.currentbreakpoint=void 0,s.getactivebreakpoint=function(){if(!s.params.breakpoints)return!1;var e,a=!1,t=[];for(e in s.params.breakpoints)s.params.breakpoints.hasownproperty(e)&&t.push(e);t.sort(function(e,a){return parseint(e,10)>parseint(a,10)});for(var s=0;s=window.innerwidth&&!a&&(a=e);return a||"max"},s.setbreakpoint=function(){var e=s.getactivebreakpoint();if(e&&s.currentbreakpoint!==e){var a=e in s.params.breakpoints?s.params.breakpoints[e]:s.originalparams,t=s.params.loop&&a.slidesperview!==s.params.slidesperview;for(var s in a)s.params[s]=a[s];s.currentbreakpoint=e,t&&s.destroyloop&&s.reloop(!0)}},s.params.breakpoints&&s.setbreakpoint(),s.container=a(e),0!==s.container.length)){if(s.container.length>1){var c=[];return s.container.each(function(){c.push(new t(this,i))}),c}s.container[0].swiper=s,s.container.data("swiper",s),s.classnames.push(s.params.containermodifierclass+s.params.direction),s.params.freemode&&s.classnames.push(s.params.containermodifierclass+"free-mode"),s.support.flexbox||(s.classnames.push(s.params.containermodifierclass+"no-flexbox"),s.params.slidespercolumn=1),s.params.autoheight&&s.classnames.push(s.params.containermodifierclass+"autoheight"),(s.params.parallax||s.params.watchslidesvisibility)&&(s.params.watchslidesprogress=!0),s.params.touchreleaseonedges&&(s.params.resistanceratio=0),["cube","coverflow","flip"].indexof(s.params.effect)>=0&&(s.support.transforms3d?(s.params.watchslidesprogress=!0,s.classnames.push(s.params.containermodifierclass+"3d")):s.params.effect="slide"),"slide"!==s.params.effect&&s.classnames.push(s.params.containermodifierclass+s.params.effect),"cube"===s.params.effect&&(s.params.resistanceratio=0,s.params.slidesperview=1,s.params.slidespercolumn=1,s.params.slidespergroup=1,s.params.centeredslides=!1,s.params.spacebetween=0,s.params.virtualtranslate=!0,s.params.setwrappersize=!1),"fade"!==s.params.effect&&"flip"!==s.params.effect||(s.params.slidesperview=1,s.params.slidespercolumn=1,s.params.slidespergroup=1,s.params.watchslidesprogress=!0,s.params.spacebetween=0,s.params.setwrappersize=!1,"undefined"==typeof v&&(s.params.virtualtranslate=!0)),s.params.grabcursor&&s.support.touch&&(s.params.grabcursor=!1),s.wrapper=s.container.children("."+s.params.wrapperclass),s.params.pagination&&(s.paginationcontainer=a(s.params.pagination),s.params.uniquenavelements&&"string"==typeof s.params.pagination&&s.paginationcontainer.length>1&&1===s.container.find(s.params.pagination).length&&(s.paginationcontainer=s.container.find(s.params.pagination)),"bullets"===s.params.paginationtype&&s.params.paginationclickable?s.paginationcontainer.addclass(s.params.paginationmodifierclass+"clickable"):s.params.paginationclickable=!1,s.paginationcontainer.addclass(s.params.paginationmodifierclass+s.params.paginationtype)),(s.params.nextbutton||s.params.prevbutton)&&(s.params.nextbutton&&(s.nextbutton=a(s.params.nextbutton),s.params.uniquenavelements&&"string"==typeof s.params.nextbutton&&s.nextbutton.length>1&&1===s.container.find(s.params.nextbutton).length&&(s.nextbutton=s.container.find(s.params.nextbutton))),s.params.prevbutton&&(s.prevbutton=a(s.params.prevbutton),s.params.uniquenavelements&&"string"==typeof s.params.prevbutton&&s.prevbutton.length>1&&1===s.container.find(s.params.prevbutton).length&&(s.prevbutton=s.container.find(s.params.prevbutton)))),s.ishorizontal=function(){return"horizontal"===s.params.direction},s.rtl=s.ishorizontal()&&("rtl"===s.container[0].dir.tolowercase()||"rtl"===s.container.css("direction")),s.rtl&&s.classnames.push(s.params.containermodifierclass+"rtl"),s.rtl&&(s.wrongrtl="-webkit-box"===s.wrapper.css("display")),s.params.slidespercolumn>1&&s.classnames.push(s.params.containermodifierclass+"multirow"),s.device.android&&s.classnames.push(s.params.containermodifierclass+"android"),s.container.addclass(s.classnames.join(" ")),s.translate=0,s.progress=0,s.velocity=0,s.lockswipetonext=function(){s.params.allowswipetonext=!1,s.params.allowswipetoprev===!1&&s.params.grabcursor&&s.unsetgrabcursor()},s.lockswipetoprev=function(){s.params.allowswipetoprev=!1,s.params.allowswipetonext===!1&&s.params.grabcursor&&s.unsetgrabcursor()},s.lockswipes=function(){s.params.allowswipetonext=s.params.allowswipetoprev=!1,s.params.grabcursor&&s.unsetgrabcursor()},s.unlockswipetonext=function(){s.params.allowswipetonext=!0,s.params.allowswipetoprev===!0&&s.params.grabcursor&&s.setgrabcursor()},s.unlockswipetoprev=function(){s.params.allowswipetoprev=!0,s.params.allowswipetonext===!0&&s.params.grabcursor&&s.setgrabcursor()},s.unlockswipes=function(){s.params.allowswipetonext=s.params.allowswipetoprev=!0,s.params.grabcursor&&s.setgrabcursor()},s.setgrabcursor=function(e){s.container[0].style.cursor="move",s.container[0].style.cursor=e?"-webkit-grabbing":"-webkit-grab",s.container[0].style.cursor=e?"-moz-grabbin":"-moz-grab",s.container[0].style.cursor=e?"grabbing":"grab"},s.unsetgrabcursor=function(){s.container[0].style.cursor=""},s.params.grabcursor&&s.setgrabcursor(),s.imagestoload=[],s.imagesloaded=0,s.loadimage=function(e,a,t,s,i,r){function n(){r&&r()}var o;e.complete&&i?n():a?(o=new window.image,o.onload=n,o.onerror=n,s&&(o.sizes=s),t&&(o.srcset=t),a&&(o.src=a)):n()},s.preloadimages=function(){function e(){"undefined"!=typeof s&&null!==s&&(void 0!==s.imagesloaded&&s.imagesloaded++,s.imagesloaded===s.imagestoload.length&&(s.params.updateonimagesready&&s.update(),s.emit("onimagesready",s)))}s.imagestoload=s.container.find("img");for(var a=0;a1)for(r=0;rs.slides.length)break;e.push(s.slides.eq(t)[0])}else e.push(s.slides.eq(s.activeindex)[0]);for(r=0;ra?s:a}a&&s.wrapper.css("height",a+"px")},s.updatecontainersize=function(){var e,a;e="undefined"!=typeof s.params.width?s.params.width:s.container[0].clientwidth,a="undefined"!=typeof s.params.height?s.params.height:s.container[0].clientheight,0===e&&s.ishorizontal()||0===a&&!s.ishorizontal()||(e=e-parseint(s.container.css("padding-left"),10)-parseint(s.container.css("padding-right"),10),a=a-parseint(s.container.css("padding-top"),10)-parseint(s.container.css("padding-bottom"),10),s.width=e,s.height=a,s.size=s.ishorizontal()?s.width:s.height)},s.updateslidessize=function(){s.slides=s.wrapper.children("."+s.params.slideclass),s.snapgrid=[],s.slidesgrid=[],s.slidessizesgrid=[];var e,a=s.params.spacebetween,t=-s.params.slidesoffsetbefore,s=0,i=0;if("undefined"!=typeof s.size){"string"==typeof a&&a.indexof("%")>=0&&(a=parsefloat(a.replace("%",""))/100*s.size),s.virtualsize=-a,s.rtl?s.slides.css({marginleft:"",margintop:""}):s.slides.css({marginright:"",marginbottom:""});var r;s.params.slidespercolumn>1&&(r=math.floor(s.slides.length/s.params.slidespercolumn)===s.slides.length/s.params.slidespercolumn?s.slides.length:math.ceil(s.slides.length/s.params.slidespercolumn)*s.params.slidespercolumn,"auto"!==s.params.slidesperview&&"row"===s.params.slidespercolumnfill&&(r=math.max(r,s.params.slidesperview*s.params.slidespercolumn)));var o,l=s.params.slidespercolumn,p=r/l,d=p-(s.params.slidespercolumn*p-s.slides.length);for(e=0;e1){var c,m,h;"column"===s.params.slidespercolumnfill?(m=math.floor(e/l),h=e-m*l,(m>d||m===d&&h===l-1)&&++h>=l&&(h=0,m++),c=m+h*r/l,u.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(h=math.floor(e/p),m=e-h*p),u.css("margin-"+(s.ishorizontal()?"top":"left"),0!==h&&s.params.spacebetween&&s.params.spacebetween+"px").attr("data-swiper-column",m).attr("data-swiper-row",h)}"none"!==u.css("display")&&("auto"===s.params.slidesperview?(o=s.ishorizontal()?u.outerwidth(!0):u.outerheight(!0),s.params.roundlengths&&(o=n(o))):(o=(s.size-(s.params.slidesperview-1)*a)/s.params.slidesperview,s.params.roundlengths&&(o=n(o)),s.ishorizontal()?s.slides[e].style.width=o+"px":s.slides[e].style.height=o+"px"),s.slides[e].swiperslidesize=o,s.slidessizesgrid.push(o),s.params.centeredslides?(t=t+o/2+s/2+a,0===e&&(t=t-s.size/2-a),math.abs(t)<.001&&(t=0),i%s.params.slidespergroup===0&&s.snapgrid.push(t),s.slidesgrid.push(t)):(i%s.params.slidespergroup===0&&s.snapgrid.push(t),s.slidesgrid.push(t),t=t+o+a),s.virtualsize+=o+a,s=o,i++)}s.virtualsize=math.max(s.virtualsize,s.size)+s.params.slidesoffsetafter;var g;if(s.rtl&&s.wrongrtl&&("slide"===s.params.effect||"coverflow"===s.params.effect)&&s.wrapper.css({width:s.virtualsize+s.params.spacebetween+"px"}),s.support.flexbox&&!s.params.setwrappersize||(s.ishorizontal()?s.wrapper.css({width:s.virtualsize+s.params.spacebetween+"px"}):s.wrapper.css({height:s.virtualsize+s.params.spacebetween+"px"})),s.params.slidespercolumn>1&&(s.virtualsize=(o+s.params.spacebetween)*r,s.virtualsize=math.ceil(s.virtualsize/s.params.slidespercolumn)-s.params.spacebetween,s.ishorizontal()?s.wrapper.css({width:s.virtualsize+s.params.spacebetween+"px"}):s.wrapper.css({height:s.virtualsize+s.params.spacebetween+"px"}),s.params.centeredslides)){for(g=[],e=0;e1&&s.snapgrid.push(s.virtualsize-s.size)}0===s.snapgrid.length&&(s.snapgrid=[0]),0!==s.params.spacebetween&&(s.ishorizontal()?s.rtl?s.slides.css({marginleft:a+"px"}):s.slides.css({marginright:a+"px"}):s.slides.css({marginbottom:a+"px"})),s.params.watchslidesprogress&&s.updateslidesoffset()}},s.updateslidesoffset=function(){for(var e=0;e=0&&r0&&n<=s.size||r<=0&&n>=s.size;o&&s.slides.eq(t).addclass(s.params.slidevisibleclass)}s.progress=s.rtl?-i:i}}},s.updateprogress=function(e){"undefined"==typeof e&&(e=s.translate||0);var a=s.maxtranslate()-s.mintranslate(),t=s.isbeginning,s=s.isend;0===a?(s.progress=0,s.isbeginning=s.isend=!0):(s.progress=(e-s.mintranslate())/a,s.isbeginning=s.progress<=0,s.isend=s.progress>=1),s.isbeginning&&!t&&s.emit("onreachbeginning",s),s.isend&&!s&&s.emit("onreachend",s),s.params.watchslidesprogress&&s.updateslidesprogress(e),s.emit("onprogress",s,s.progress)},s.updateactiveindex=function(){var e,a,t,s=s.rtl?s.translate:-s.translate;for(a=0;a=s.slidesgrid[a]&&s=s.slidesgrid[a]&&s=s.slidesgrid[a]&&(e=a);s.params.normalizeslideindex&&(e<0||"undefined"==typeof e)&&(e=0),t=math.floor(e/s.params.slidespergroup),t>=s.snapgrid.length&&(t=s.snapgrid.length-1),e!==s.activeindex&&(s.snapindex=t,s.previousindex=s.activeindex,s.activeindex=e,s.updateclasses(),s.updaterealindex())},s.updaterealindex=function(){s.realindex=s.slides.eq(s.activeindex).attr("data-swiper-slide-index")||s.activeindex},s.updateclasses=function(){s.slides.removeclass(s.params.slideactiveclass+" "+s.params.slidenextclass+" "+s.params.slideprevclass+" "+s.params.slideduplicateactiveclass+" "+s.params.slideduplicatenextclass+" "+s.params.slideduplicateprevclass);var e=s.slides.eq(s.activeindex);e.addclass(s.params.slideactiveclass),i.loop&&(e.hasclass(s.params.slideduplicateclass)?s.wrapper.children("."+s.params.slideclass+":not(."+s.params.slideduplicateclass+')[data-swiper-slide-index="'+s.realindex+'"]').addclass(s.params.slideduplicateactiveclass):s.wrapper.children("."+s.params.slideclass+"."+s.params.slideduplicateclass+'[data-swiper-slide-index="'+s.realindex+'"]').addclass(s.params.slideduplicateactiveclass));var t=e.next("."+s.params.slideclass).addclass(s.params.slidenextclass);s.params.loop&&0===t.length&&(t=s.slides.eq(0),t.addclass(s.params.slidenextclass));var s=e.prev("."+s.params.slideclass).addclass(s.params.slideprevclass);if(s.params.loop&&0===s.length&&(s=s.slides.eq(-1),s.addclass(s.params.slideprevclass)),i.loop&&(t.hasclass(s.params.slideduplicateclass)?s.wrapper.children("."+s.params.slideclass+":not(."+s.params.slideduplicateclass+')[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addclass(s.params.slideduplicatenextclass):s.wrapper.children("."+s.params.slideclass+"."+s.params.slideduplicateclass+'[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addclass(s.params.slideduplicatenextclass),s.hasclass(s.params.slideduplicateclass)?s.wrapper.children("."+s.params.slideclass+":not(."+s.params.slideduplicateclass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addclass(s.params.slideduplicateprevclass):s.wrapper.children("."+s.params.slideclass+"."+s.params.slideduplicateclass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addclass(s.params.slideduplicateprevclass)),s.paginationcontainer&&s.paginationcontainer.length>0){var r,n=s.params.loop?math.ceil((s.slides.length-2*s.loopedslides)/s.params.slidespergroup):s.snapgrid.length;if(s.params.loop?(r=math.ceil((s.activeindex-s.loopedslides)/s.params.slidespergroup),r>s.slides.length-1-2*s.loopedslides&&(r-=s.slides.length-2*s.loopedslides),r>n-1&&(r-=n),r<0&&"bullets"!==s.params.paginationtype&&(r=n+r)):r="undefined"!=typeof s.snapindex?s.snapindex:s.activeindex||0,"bullets"===s.params.paginationtype&&s.bullets&&s.bullets.length>0&&(s.bullets.removeclass(s.params.bulletactiveclass),s.paginationcontainer.length>1?s.bullets.each(function(){a(this).index()===r&&a(this).addclass(s.params.bulletactiveclass)}):s.bullets.eq(r).addclass(s.params.bulletactiveclass)),"fraction"===s.params.paginationtype&&(s.paginationcontainer.find("."+s.params.paginationcurrentclass).text(r+1),s.paginationcontainer.find("."+s.params.paginationtotalclass).text(n)),"progress"===s.params.paginationtype){var o=(r+1)/n,l=o,p=1;s.ishorizontal()||(p=o,l=1),s.paginationcontainer.find("."+s.params.paginationprogressbarclass).transform("translate3d(0,0,0) scalex("+l+") scaley("+p+")").transition(s.params.speed)}"custom"===s.params.paginationtype&&s.params.paginationcustomrender&&(s.paginationcontainer.html(s.params.paginationcustomrender(s,r+1,n)),s.emit("onpaginationrendered",s,s.paginationcontainer[0]))}s.params.loop||(s.params.prevbutton&&s.prevbutton&&s.prevbutton.length>0&&(s.isbeginning?(s.prevbutton.addclass(s.params.buttondisabledclass),s.params.a11y&&s.a11y&&s.a11y.disable(s.prevbutton)):(s.prevbutton.removeclass(s.params.buttondisabledclass),s.params.a11y&&s.a11y&&s.a11y.enable(s.prevbutton))),s.params.nextbutton&&s.nextbutton&&s.nextbutton.length>0&&(s.isend?(s.nextbutton.addclass(s.params.buttondisabledclass),s.params.a11y&&s.a11y&&s.a11y.disable(s.nextbutton)):(s.nextbutton.removeclass(s.params.buttondisabledclass),s.params.a11y&&s.a11y&&s.a11y.enable(s.nextbutton))))},s.updatepagination=function(){if(s.params.pagination&&s.paginationcontainer&&s.paginationcontainer.length>0){var e="";if("bullets"===s.params.paginationtype){for(var a=s.params.loop?math.ceil((s.slides.length-2*s.loopedslides)/s.params.slidespergroup):s.snapgrid.length,t=0;t";s.paginationcontainer.html(e),s.bullets=s.paginationcontainer.find("."+s.params.bulletclass),s.params.paginationclickable&&s.params.a11y&&s.a11y&&s.a11y.initpagination()}"fraction"===s.params.paginationtype&&(e=s.params.paginationfractionrender?s.params.paginationfractionrender(s,s.params.paginationcurrentclass,s.params.paginationtotalclass):' / ',s.paginationcontainer.html(e)),"progress"===s.params.paginationtype&&(e=s.params.paginationprogressrender?s.params.paginationprogressrender(s,s.params.paginationprogressbarclass):'',s.paginationcontainer.html(e)),"custom"!==s.params.paginationtype&&s.emit("onpaginationrendered",s,s.paginationcontainer[0])}},s.update=function(e){function a(){s.rtl?-s.translate:s.translate;s=math.min(math.max(s.translate,s.maxtranslate()),s.mintranslate()),s.setwrappertranslate(s),s.updateactiveindex(),s.updateclasses()}if(s.updatecontainersize(),s.updateslidessize(),s.updateprogress(),s.updatepagination(),s.updateclasses(),s.params.scrollbar&&s.scrollbar&&s.scrollbar.set(),e){var t,s;s.controller&&s.controller.spline&&(s.controller.spline=void 0),s.params.freemode?(a(),s.params.autoheight&&s.updateautoheight()):(t=("auto"===s.params.slidesperview||s.params.slidesperview>1)&&s.isend&&!s.params.centeredslides?s.slideto(s.slides.length-1,0,!1,!0):s.slideto(s.activeindex,0,!1,!0),t||a())}else s.params.autoheight&&s.updateautoheight()},s.onresize=function(e){s.params.breakpoints&&s.setbreakpoint();var a=s.params.allowswipetoprev,t=s.params.allowswipetonext;s.params.allowswipetoprev=s.params.allowswipetonext=!0,s.updatecontainersize(),s.updateslidessize(),("auto"===s.params.slidesperview||s.params.freemode||e)&&s.updatepagination(),s.params.scrollbar&&s.scrollbar&&s.scrollbar.set(),s.controller&&s.controller.spline&&(s.controller.spline=void 0);var s=!1;if(s.params.freemode){var i=math.min(math.max(s.translate,s.maxtranslate()),s.mintranslate());s.setwrappertranslate(i),s.updateactiveindex(),s.updateclasses(),s.params.autoheight&&s.updateautoheight()}else s.updateclasses(),s=("auto"===s.params.slidesperview||s.params.slidesperview>1)&&s.isend&&!s.params.centeredslides?s.slideto(s.slides.length-1,0,!1,!0):s.slideto(s.activeindex,0,!1,!0);s.params.lazyloading&&!s&&s.lazy&&s.lazy.load(),s.params.allowswipetoprev=a,s.params.allowswipetonext=t},s.toucheventsdesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerenabled?s.toucheventsdesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.mspointerenabled&&(s.toucheventsdesktop={start:"mspointerdown",move:"mspointermove",end:"mspointerup"}),s.touchevents={start:s.support.touch||!s.params.simulatetouch?"touchstart":s.toucheventsdesktop.start,move:s.support.touch||!s.params.simulatetouch?"touchmove":s.toucheventsdesktop.move,end:s.support.touch||!s.params.simulatetouch?"touchend":s.toucheventsdesktop.end},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===s.params.toucheventstarget?s.container:s.wrapper).addclass("swiper-wp8-"+s.params.direction),s.initevents=function(e){var a=e?"off":"on",t=e?"removeeventlistener":"addeventlistener",s="container"===s.params.toucheventstarget?s.container[0]:s.wrapper[0],r=s.support.touch?s:document,n=!!s.params.nested;if(s.browser.ie)s[t](s.touchevents.start,s.ontouchstart,!1),r[t](s.touchevents.move,s.ontouchmove,n),r[t](s.touchevents.end,s.ontouchend,!1);else{if(s.support.touch){var o=!("touchstart"!==s.touchevents.start||!s.support.passivelistener||!s.params.passivelisteners)&&{passive:!0,capture:!1};s[t](s.touchevents.start,s.ontouchstart,o),s[t](s.touchevents.move,s.ontouchmove,n),s[t](s.touchevents.end,s.ontouchend,o)}(i.simulatetouch&&!s.device.ios&&!s.device.android||i.simulatetouch&&!s.support.touch&&s.device.ios)&&(s[t]("mousedown",s.ontouchstart,!1),document[t]("mousemove",s.ontouchmove,n),document[t]("mouseup",s.ontouchend,!1))}window[t]("resize",s.onresize),s.params.nextbutton&&s.nextbutton&&s.nextbutton.length>0&&(s.nextbutton[a]("click",s.onclicknext),s.params.a11y&&s.a11y&&s.nextbutton[a]("keydown",s.a11y.onenterkey)),s.params.prevbutton&&s.prevbutton&&s.prevbutton.length>0&&(s.prevbutton[a]("click",s.onclickprev),s.params.a11y&&s.a11y&&s.prevbutton[a]("keydown",s.a11y.onenterkey)),s.params.pagination&&s.params.paginationclickable&&(s.paginationcontainer[a]("click","."+s.params.bulletclass,s.onclickindex),s.params.a11y&&s.a11y&&s.paginationcontainer[a]("keydown","."+s.params.bulletclass,s.a11y.onenterkey)),(s.params.preventclicks||s.params.preventclickspropagation)&&s[t]("click",s.preventclicks,!0)},s.attachevents=function(){s.initevents()},s.detachevents=function(){s.initevents(!0)},s.allowclick=!0,s.preventclicks=function(e){s.allowclick||(s.params.preventclicks&&e.preventdefault(),s.params.preventclickspropagation&&s.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},s.onclicknext=function(e){e.preventdefault(),s.isend&&!s.params.loop||s.slidenext()},s.onclickprev=function(e){e.preventdefault(),s.isbeginning&&!s.params.loop||s.slideprev()},s.onclickindex=function(e){ e.preventdefault();var t=a(this).index()*s.params.slidespergroup;s.params.loop&&(t+=s.loopedslides),s.slideto(t)},s.updateclickedslide=function(e){var t=l(e,"."+s.params.slideclass),s=!1;if(t)for(var i=0;is.slides.length-s.loopedslides+s.params.slidesperview/2?(s.fixloop(),n=s.wrapper.children("."+s.params.slideclass+'[data-swiper-slide-index="'+r+'"]:not(.'+s.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){s.slideto(n)},0)):s.slideto(n):n>s.slides.length-s.params.slidesperview?(s.fixloop(),n=s.wrapper.children("."+s.params.slideclass+'[data-swiper-slide-index="'+r+'"]:not(.'+s.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){s.slideto(n)},0)):s.slideto(n)}else s.slideto(n)}};var z,m,e,p,i,k,l,d,b,h,g="input, select, textarea, button, video",x=date.now(),y=[];s.animating=!1,s.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0};var a,o;s.ontouchstart=function(e){if(e.originalevent&&(e=e.originalevent),a="touchstart"===e.type,a||!("which"in e)||3!==e.which){if(s.params.noswiping&&l(e,"."+s.params.noswipingclass))return void(s.allowclick=!0);if(!s.params.swipehandler||l(e,s.params.swipehandler)){var t=s.touches.currentx="touchstart"===e.type?e.targettouches[0].pagex:e.pagex,s=s.touches.currenty="touchstart"===e.type?e.targettouches[0].pagey:e.pagey;if(!(s.device.ios&&s.params.iosedgeswipedetection&&t<=s.params.iosedgeswipethreshold)){if(z=!0,m=!1,e=!0,i=void 0,o=void 0,s.touches.startx=t,s.touches.starty=s,p=date.now(),s.allowclick=!0,s.updatecontainersize(),s.swipedirection=void 0,s.params.threshold>0&&(d=!1),"touchstart"!==e.type){var i=!0;a(e.target).is(g)&&(i=!1),document.activeelement&&a(document.activeelement).is(g)&&document.activeelement.blur(),i&&e.preventdefault()}s.emit("ontouchstart",s,e)}}}},s.ontouchmove=function(e){if(e.originalevent&&(e=e.originalevent),!a||"mousemove"!==e.type){if(e.preventedbynestedswiper)return s.touches.startx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,void(s.touches.starty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey);if(s.params.onlyexternal)return s.allowclick=!1,void(z&&(s.touches.startx=s.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,s.touches.starty=s.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,p=date.now()));if(a&&s.params.touchreleaseonedges&&!s.params.loop)if(s.ishorizontal()){if(s.touches.currentxs.touches.startx&&s.translate>=s.mintranslate())return}else if(s.touches.currentys.touches.starty&&s.translate>=s.mintranslate())return;if(a&&document.activeelement&&e.target===document.activeelement&&a(e.target).is(g))return m=!0,void(s.allowclick=!1);if(e&&s.emit("ontouchmove",s,e),!(e.targettouches&&e.targettouches.length>1)){if(s.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,s.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,"undefined"==typeof i){var t;s.ishorizontal()&&s.touches.currenty===s.touches.starty||!s.ishorizontal()&&s.touches.currentx!==s.touches.startx?i=!1:(t=180*math.atan2(math.abs(s.touches.currenty-s.touches.starty),math.abs(s.touches.currentx-s.touches.startx))/math.pi,i=s.ishorizontal()?t>s.params.touchangle:90-t>s.params.touchangle)}if(i&&s.emit("ontouchmoveopposite",s,e),"undefined"==typeof o&&s.browser.ietouch&&(s.touches.currentx===s.touches.startx&&s.touches.currenty===s.touches.starty||(o=!0)),z){if(i)return void(z=!1);if(o||!s.browser.ietouch){s.allowclick=!1,s.emit("onslidermove",s,e),e.preventdefault(),s.params.touchmovestoppropagation&&!s.params.nested&&e.stoppropagation(),m||(i.loop&&s.fixloop(),l=s.getwrappertranslate(),s.setwrappertransition(0),s.animating&&s.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),s.params.autoplay&&s.autoplaying&&(s.params.autoplaydisableoninteraction?s.stopautoplay():s.pauseautoplay()),h=!1,!s.params.grabcursor||s.params.allowswipetonext!==!0&&s.params.allowswipetoprev!==!0||s.setgrabcursor(!0)),m=!0;var s=s.touches.diff=s.ishorizontal()?s.touches.currentx-s.touches.startx:s.touches.currenty-s.touches.starty;s*=s.params.touchratio,s.rtl&&(s=-s),s.swipedirection=s>0?"prev":"next",k=s+l;var r=!0;if(s>0&&k>s.mintranslate()?(r=!1,s.params.resistance&&(k=s.mintranslate()-1+math.pow(-s.mintranslate()+l+s,s.params.resistanceratio))):s<0&&kl&&(k=l),s.params.threshold>0){if(!(math.abs(s)>s.params.threshold||d))return void(k=l);if(!d)return d=!0,s.touches.startx=s.touches.currentx,s.touches.starty=s.touches.currenty,k=l,void(s.touches.diff=s.ishorizontal()?s.touches.currentx-s.touches.startx:s.touches.currenty-s.touches.starty)}s.params.followfinger&&((s.params.freemode||s.params.watchslidesprogress)&&s.updateactiveindex(),s.params.freemode&&(0===y.length&&y.push({position:s.touches[s.ishorizontal()?"startx":"starty"],time:p}),y.push({position:s.touches[s.ishorizontal()?"currentx":"currenty"],time:(new window.date).gettime()})),s.updateprogress(k),s.setwrappertranslate(k))}}}}},s.ontouchend=function(e){if(e.originalevent&&(e=e.originalevent),e&&s.emit("ontouchend",s,e),e=!1,z){s.params.grabcursor&&m&&z&&(s.params.allowswipetonext===!0||s.params.allowswipetoprev===!0)&&s.setgrabcursor(!1);var t=date.now(),s=t-p;if(s.allowclick&&(s.updateclickedslide(e),s.emit("ontap",s,e),s<300&&t-x>300&&(b&&cleartimeout(b),b=settimeout(function(){s&&(s.params.paginationhide&&s.paginationcontainer.length>0&&!a(e.target).hasclass(s.params.bulletclass)&&s.paginationcontainer.toggleclass(s.params.paginationhiddenclass),s.emit("onclick",s,e))},300)),s<300&&t-x<300&&(b&&cleartimeout(b),s.emit("ondoubletap",s,e))),x=date.now(),settimeout(function(){s&&(s.allowclick=!0)},0),!z||!m||!s.swipedirection||0===s.touches.diff||k===l)return void(z=m=!1);z=m=!1;var i;if(i=s.params.followfinger?s.rtl?s.translate:-s.translate:-k,s.params.freemode){if(i<-s.mintranslate())return void s.slideto(s.activeindex);if(i>-s.maxtranslate())return void(s.slides.length1){var r=y.pop(),n=y.pop(),o=r.position-n.position,l=r.time-n.time;s.velocity=o/l,s.velocity=s.velocity/2,math.abs(s.velocity)150||(new window.date).gettime()-r.time>300)&&(s.velocity=0)}else s.velocity=0;s.velocity=s.velocity*s.params.freemodemomentumvelocityratio,y.length=0;var p=1e3*s.params.freemodemomentumratio,d=s.velocity*p,u=s.translate+d;s.rtl&&(u=-u);var c,m=!1,h=20*math.abs(s.velocity)*s.params.freemodemomentumbounceratio;if(us.mintranslate())s.params.freemodemomentumbounce?(u-s.mintranslate()>h&&(u=s.mintranslate()+h),c=s.mintranslate(),m=!0,h=!0):u=s.mintranslate();else if(s.params.freemodesticky){var g,f=0;for(f=0;f-u){g=f;break}u=math.abs(s.snapgrid[g]-u)=s.params.longswipesms)&&(s.updateprogress(),s.updateactiveindex()))}var v,w=0,y=s.slidessizesgrid[0];for(v=0;v=s.slidesgrid[v]&&i=s.slidesgrid[v]&&(w=v,y=s.slidesgrid[s.slidesgrid.length-1]-s.slidesgrid[s.slidesgrid.length-2]);var x=(i-s.slidesgrid[w])/y;if(s>s.params.longswipesms){if(!s.params.longswipes)return void s.slideto(s.activeindex);"next"===s.swipedirection&&(x>=s.params.longswipesratio?s.slideto(w+s.params.slidespergroup):s.slideto(w)),"prev"===s.swipedirection&&(x>1-s.params.longswipesratio?s.slideto(w+s.params.slidespergroup):s.slideto(w))}else{if(!s.params.shortswipes)return void s.slideto(s.activeindex);"next"===s.swipedirection&&s.slideto(w+s.params.slidespergroup),"prev"===s.swipedirection&&s.slideto(w)}}},s._slideto=function(e,a){return s.slideto(e,a,!0,!0)},s.slideto=function(e,a,t,s){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),e<0&&(e=0),s.snapindex=math.floor(e/s.params.slidespergroup),s.snapindex>=s.snapgrid.length&&(s.snapindex=s.snapgrid.length-1);var i=-s.snapgrid[s.snapindex];if(s.params.autoplay&&s.autoplaying&&(s||!s.params.autoplaydisableoninteraction?s.pauseautoplay(a):s.stopautoplay()),s.updateprogress(i),s.params.normalizeslideindex)for(var r=0;r=math.floor(100*s.slidesgrid[r])&&(e=r);return!(!s.params.allowswipetonext&&is.translate&&i>s.maxtranslate()&&(s.activeindex||0)!==e)&&("undefined"==typeof a&&(a=s.params.speed),s.previousindex=s.activeindex||0,s.activeindex=e,s.updaterealindex(),s.rtl&&-i===s.translate||!s.rtl&&i===s.translate?(s.params.autoheight&&s.updateautoheight(),s.updateclasses(),"slide"!==s.params.effect&&s.setwrappertranslate(i),!1):(s.updateclasses(),s.ontransitionstart(t),0===a||s.browser.lteie9?(s.setwrappertranslate(i),s.setwrappertransition(0),s.ontransitionend(t)):(s.setwrappertranslate(i),s.setwrappertransition(a),s.animating||(s.animating=!0,s.wrapper.transitionend(function(){s&&s.ontransitionend(t)}))),!0)))},s.ontransitionstart=function(e){"undefined"==typeof e&&(e=!0),s.params.autoheight&&s.updateautoheight(),s.lazy&&s.lazy.ontransitionstart(),e&&(s.emit("ontransitionstart",s),s.activeindex!==s.previousindex&&(s.emit("onslidechangestart",s),s.activeindex>s.previousindex?s.emit("onslidenextstart",s):s.emit("onslideprevstart",s)))},s.ontransitionend=function(e){s.animating=!1,s.setwrappertransition(0),"undefined"==typeof e&&(e=!0),s.lazy&&s.lazy.ontransitionend(),e&&(s.emit("ontransitionend",s),s.activeindex!==s.previousindex&&(s.emit("onslidechangeend",s),s.activeindex>s.previousindex?s.emit("onslidenextend",s):s.emit("onslideprevend",s))),s.params.history&&s.history&&s.history.sethistory(s.params.history,s.activeindex),s.params.hashnav&&s.hashnav&&s.hashnav.sethash()},s.slidenext=function(e,a,t){if(s.params.loop){if(s.animating)return!1;s.fixloop();s.container[0].clientleft;return s.slideto(s.activeindex+s.params.slidespergroup,a,e,t)}return s.slideto(s.activeindex+s.params.slidespergroup,a,e,t)},s._slidenext=function(e){return s.slidenext(!0,e,!0)},s.slideprev=function(e,a,t){if(s.params.loop){if(s.animating)return!1;s.fixloop();s.container[0].clientleft;return s.slideto(s.activeindex-1,a,e,t)}return s.slideto(s.activeindex-1,a,e,t)},s._slideprev=function(e){return s.slideprev(!0,e,!0)},s.slidereset=function(e,a,t){return s.slideto(s.activeindex,a,e)},s.disabletouchcontrol=function(){return s.params.onlyexternal=!0,!0},s.enabletouchcontrol=function(){return s.params.onlyexternal=!1,!0},s.setwrappertransition=function(e,a){s.wrapper.transition(e),"slide"!==s.params.effect&&s.effects[s.params.effect]&&s.effects[s.params.effect].settransition(e),s.params.parallax&&s.parallax&&s.parallax.settransition(e),s.params.scrollbar&&s.scrollbar&&s.scrollbar.settransition(e),s.params.control&&s.controller&&s.controller.settransition(e,a),s.emit("onsettransition",s,e)},s.setwrappertranslate=function(e,a,t){var s=0,i=0,r=0;s.ishorizontal()?s=s.rtl?-e:e:i=e,s.params.roundlengths&&(s=n(s),i=n(i)),s.params.virtualtranslate||(s.support.transforms3d?s.wrapper.transform("translate3d("+s+"px, "+i+"px, "+r+"px)"):s.wrapper.transform("translate("+s+"px, "+i+"px)")),s.translate=s.ishorizontal()?s:i;var o,l=s.maxtranslate()-s.mintranslate();o=0===l?0:(e-s.mintranslate())/l,o!==s.progress&&s.updateprogress(e),a&&s.updateactiveindex(),"slide"!==s.params.effect&&s.effects[s.params.effect]&&s.effects[s.params.effect].settranslate(s.translate),s.params.parallax&&s.parallax&&s.parallax.settranslate(s.translate),s.params.scrollbar&&s.scrollbar&&s.scrollbar.settranslate(s.translate),s.params.control&&s.controller&&s.controller.settranslate(s.translate,t),s.emit("onsettranslate",s,s.translate)},s.gettranslate=function(e,a){var t,s,i,r;return"undefined"==typeof a&&(a="x"),s.params.virtualtranslate?s.rtl?-s.translate:s.translate:(i=window.getcomputedstyle(e,null),window.webkitcssmatrix?(s=i.transform||i.webkittransform,s.split(",").length>6&&(s=s.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new window.webkitcssmatrix("none"===s?"":s)):(r=i.moztransform||i.otransform||i.mstransform||i.mstransform||i.transform||i.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=r.tostring().split(",")),"x"===a&&(s=window.webkitcssmatrix?r.m41:16===t.length?parsefloat(t[12]):parsefloat(t[4])),"y"===a&&(s=window.webkitcssmatrix?r.m42:16===t.length?parsefloat(t[13]):parsefloat(t[5])),s.rtl&&s&&(s=-s),s||0)},s.getwrappertranslate=function(e){return"undefined"==typeof e&&(e=s.ishorizontal()?"x":"y"),s.gettranslate(s.wrapper[0],e)},s.observers=[],s.initobservers=function(){if(s.params.observeparents)for(var e=s.container.parents(),a=0;ae.length&&(s.loopedslides=e.length);var t,s=[],i=[];for(e.each(function(t,r){var n=a(this);t=e.length-s.loopedslides&&s.push(r),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)s.wrapper.prepend(a(s[t].clonenode(!0)).addclass(s.params.slideduplicateclass))},s.destroyloop=function(){s.wrapper.children("."+s.params.slideclass+"."+s.params.slideduplicateclass).remove(),s.slides.removeattr("data-swiper-slide-index")},s.reloop=function(e){var a=s.activeindex-s.loopedslides;s.destroyloop(),s.createloop(),s.updateslidessize(),e&&s.slideto(a+s.loopedslides,0,!1)},s.fixloop=function(){var e;s.activeindex=2*s.loopedslides||s.activeindex>s.slides.length-2*s.params.slidesperview)&&(e=-s.slides.length+s.activeindex+s.loopedslides,e+=s.loopedslides,s.slideto(e,0,!1,!0))},s.appendslide=function(e){if(s.params.loop&&s.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(-s,0)),u.length&&(u[0].style.opacity=math.max(s,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotatex("+o+"deg) rotatey("+n+"deg)")}},settransition:function(e){if(s.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),s.params.virtualtranslate&&0!==e){var t=!1;s.slides.eq(s.activeindex).transitionend(function(){if(!t&&s&&a(this).hasclass(s.params.slideactiveclass)){t=!0,s.animating=!1;for(var e=["webkittransitionend","transitionend","otransitionend","mstransitionend","mstransitionend"],s=0;s'),s.wrapper.append(e)),e.css({height:s.width+"px"})):(e=s.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('
'),s.container.append(e))));for(var s=0;s-1&&(t=90*s+90*o,s.rtl&&(t=90*-s-90*o)),i.transform(u),s.params.cube.slideshadows){var c=s.ishorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),m=s.ishorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===c.length&&(c=a('
'),i.append(c)),0===m.length&&(m=a('
'),i.append(m)),c.length&&(c[0].style.opacity=math.max(-o,0)),m.length&&(m[0].style.opacity=math.max(o,0))}}if(s.wrapper.css({"-webkit-transform-origin":"50% 50% -"+s.size/2+"px","-moz-transform-origin":"50% 50% -"+s.size/2+"px","-ms-transform-origin":"50% 50% -"+s.size/2+"px","transform-origin":"50% 50% -"+s.size/2+"px"}),s.params.cube.shadow)if(s.ishorizontal())e.transform("translate3d(0px, "+(s.width/2+s.params.cube.shadowoffset)+"px, "+-s.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+s.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),f=s.params.cube.shadowscale,v=s.params.cube.shadowscale/g,w=s.params.cube.shadowoffset;e.transform("scale3d("+f+", 1, "+v+") translate3d(0px, "+(s.height/2+w)+"px, "+-s.height/2/v+"px) rotatex(-90deg)")}var y=s.issafari||s.isuiwebview?-s.size/2:0;s.wrapper.transform("translate3d(0px,0,"+y+"px) rotatex("+(s.ishorizontal()?0:t)+"deg) rotatey("+(s.ishorizontal()?-t:0)+"deg)")},settransition:function(e){s.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),s.params.cube.shadow&&!s.ishorizontal()&&s.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var e=s.translate,t=s.ishorizontal()?-e+s.width/2:-e+s.height/2,s=s.ishorizontal()?s.params.coverflow.rotate:-s.params.coverflow.rotate,i=s.params.coverflow.depth,r=0,n=s.slides.length;r'),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(s.browser.ie){var y=s.wrapper[0].style;y.perspectiveorigin=t+"px 50%"}},settransition:function(e){s.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},s.lazy={initialimageloaded:!1,loadimageinslide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==s.slides.length)){var s=s.slides.eq(e),i=s.find("."+s.params.lazyloadingclass+":not(."+s.params.lazystatusloadedclass+"):not(."+s.params.lazystatusloadingclass+")");!s.hasclass(s.params.lazyloadingclass)||s.hasclass(s.params.lazystatusloadedclass)||s.hasclass(s.params.lazystatusloadingclass)||(i=i.add(s[0])),0!==i.length&&i.each(function(){var e=a(this);e.addclass(s.params.lazystatusloadingclass);var i=e.attr("data-background"),r=e.attr("data-src"),n=e.attr("data-srcset"),o=e.attr("data-sizes");s.loadimage(e[0],r||i,n,o,!1,function(){if(i?(e.css("background-image",'url("'+i+'")'),e.removeattr("data-background")):(n&&(e.attr("srcset",n),e.removeattr("data-srcset")),o&&(e.attr("sizes",o),e.removeattr("data-sizes")),r&&(e.attr("src",r),e.removeattr("data-src"))),e.addclass(s.params.lazystatusloadedclass).removeclass(s.params.lazystatusloadingclass),s.find("."+s.params.lazypreloaderclass+", ."+s.params.preloaderclass).remove(),s.params.loop&&t){var a=s.attr("data-swiper-slide-index");if(s.hasclass(s.params.slideduplicateclass)){var l=s.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+s.params.slideduplicateclass+")");s.lazy.loadimageinslide(l.index(),!1)}else{var p=s.wrapper.children("."+s.params.slideduplicateclass+'[data-swiper-slide-index="'+a+'"]');s.lazy.loadimageinslide(p.index(),!1)}}s.emit("onlazyimageready",s,s[0],e[0])}),s.emit("onlazyimageload",s,s[0],e[0])})}},load:function(){var e,t=s.params.slidesperview;if("auto"===t&&(t=0),s.lazy.initialimageloaded||(s.lazy.initialimageloaded=!0),s.params.watchslidesvisibility)s.wrapper.children("."+s.params.slidevisibleclass).each(function(){s.lazy.loadimageinslide(a(this).index())});else if(t>1)for(e=s.activeindex;e1||s.params.lazyloadinginprevnextamount&&s.params.lazyloadinginprevnextamount>1){var s=s.params.lazyloadinginprevnextamount,i=t,r=math.min(s.activeindex+i+math.max(s,i),s.slides.length),n=math.max(s.activeindex-math.max(i,s),0);for(e=s.activeindex+t;e0&&s.lazy.loadimageinslide(o.index());var l=s.wrapper.children("."+s.params.slideprevclass);l.length>0&&s.lazy.loadimageinslide(l.index())}},ontransitionstart:function(){s.params.lazyloading&&(s.params.lazyloadingontransitionstart||!s.params.lazyloadingontransitionstart&&!s.lazy.initialimageloaded)&&s.lazy.load()},ontransitionend:function(){s.params.lazyloading&&!s.params.lazyloadingontransitionstart&&s.lazy.load()}},s.scrollbar={istouched:!1,setdragposition:function(e){var a=s.scrollbar,t=s.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagex:e.pagex||e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagey:e.pagey||e.clienty,s=t-a.track.offset()[s.ishorizontal()?"left":"top"]-a.dragsize/2,i=-s.mintranslate()*a.movedivider,r=-s.maxtranslate()*a.movedivider;sr&&(s=r),s=-s/a.movedivider,s.updateprogress(s),s.setwrappertranslate(s,!0)},dragstart:function(e){var a=s.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),s.params.scrollbarhide&&a.track.css("opacity",1),s.wrapper.transition(100),a.drag.transition(100),s.emit("onscrollbardragstart",s)},dragmove:function(e){var a=s.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),s.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),s.emit("onscrollbardragmove",s))},dragend:function(e){var a=s.scrollbar;a.istouched&&(a.istouched=!1,s.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),s.emit("onscrollbardragend",s),s.params.scrollbarsnaponrelease&&s.slidereset())},draggableevents:function(){return s.params.simulatetouch!==!1||s.support.touch?s.touchevents:s.toucheventsdesktop}(),enabledraggable:function(){var e=s.scrollbar,t=s.support.touch?e.track:document;a(e.track).on(e.draggableevents.start,e.dragstart),a(t).on(e.draggableevents.move,e.dragmove),a(t).on(e.draggableevents.end,e.dragend)},disabledraggable:function(){var e=s.scrollbar,t=s.support.touch?e.track:document;a(e.track).off(s.draggableevents.start,e.dragstart),a(t).off(s.draggableevents.move,e.dragmove),a(t).off(s.draggableevents.end,e.dragend)},set:function(){if(s.params.scrollbar){var e=s.scrollbar;e.track=a(s.params.scrollbar),s.params.uniquenavelements&&"string"==typeof s.params.scrollbar&&e.track.length>1&&1===s.container.find(s.params.scrollbar).length&&(e.track=s.container.find(s.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.ishorizontal()?e.track[0].offsetwidth:e.track[0].offsetheight,e.divider=s.size/s.virtualsize,e.movedivider=e.divider*(e.tracksize/s.size),e.dragsize=e.tracksize*e.divider,s.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="",s.params.scrollbarhide&&(e.track[0].style.opacity=0)}},settranslate:function(){if(s.params.scrollbar){var e,a=s.scrollbar,t=(s.translate||0,a.dragsize);e=(a.tracksize-a.dragsize)*s.progress,s.rtl&&s.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),s.ishorizontal()?(s.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(s.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),s.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){s.params.scrollbar&&s.scrollbar.drag.transition(e)}},s.controller={linearspline:function(e,a){this.x=e,this.y=a,this.lastindex=e.length-1;var t,s;this.x.length;this.interpolate=function(e){return e?(s=i(this.x,e),t=s-1,(e-this.x[t])*(this.y[s]-this.y[t])/(this.x[s]-this.x[t])+this.y[t]):0};var i=function(){var e,a,t;return function(s,i){for(a=-1,e=s.length;e-a>1;)s[t=e+a>>1]<=i?a=t:e=t;return e}}()},getinterpolatefunction:function(e){s.controller.spline||(s.controller.spline=s.params.loop?new s.controller.linearspline(s.slidesgrid,e.slidesgrid):new s.controller.linearspline(s.snapgrid,e.snapgrid))},settranslate:function(e,a){function s(a){e=a.rtl&&"horizontal"===a.params.direction?-s.translate:s.translate,"slide"===s.params.controlby&&(s.controller.getinterpolatefunction(a),r=-s.controller.spline.interpolate(-e)),r&&"container"!==s.params.controlby||(i=(a.maxtranslate()-a.mintranslate())/(s.maxtranslate()-s.mintranslate()),r=(e-s.mintranslate())*i+a.mintranslate()),s.params.controlinverse&&(r=a.maxtranslate()-r),a.updateprogress(r),a.setwrappertranslate(r,!1,s),a.updateactiveindex()}var i,r,n=s.params.control;if(s.isarray(n))for(var o=0;o-1?"dommousescroll":u()?"wheel":"mousewheel"),s.disablemousewheelcontrol=function(){if(!s.mousewheel.event)return!1;var e=s.container;return"container"!==s.params.mousewheeleventstarged&&(e=a(s.params.mousewheeleventstarged)),e.off(s.mousewheel.event,c),!0},s.enablemousewheelcontrol=function(){if(!s.mousewheel.event)return!1;var e=s.container;return"container"!==s.params.mousewheeleventstarged&&(e=a(s.params.mousewheeleventstarged)),e.on(s.mousewheel.event,c),!0},s.parallax={settranslate:function(){s.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){h(this,s.progress)}),s.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);h(this,a)})})},settransition:function(e){"undefined"==typeof e&&(e=s.params.speed),s.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=a(this),s=parseint(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.transition(s)})}},s.zoom={scale:1,currentscale:1,isscaling:!1,gesture:{slide:void 0,slidewidth:void 0,slideheight:void 0,image:void 0,imagewrap:void 0,zoommax:s.params.zoommax},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0},getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var a=e.targettouches[0].pagex,t=e.targettouches[0].pagey,s=e.targettouches[1].pagex,i=e.targettouches[1].pagey,r=math.sqrt(math.pow(s-a,2)+math.pow(i-t,2));return r},ongesturestart:function(e){var t=s.zoom;if(!s.support.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targettouches.length<2)return;t.gesture.scalestart=t.getdistancebetweentouches(e)}return t.gesture.slide&&t.gesture.slide.length||(t.gesture.slide=a(this),0===t.gesture.slide.length&&(t.gesture.slide=s.slides.eq(s.activeindex)),t.gesture.image=t.gesture.slide.find("img, svg, canvas"),t.gesture.imagewrap=t.gesture.image.parent("."+s.params.zoomcontainerclass),t.gesture.zoommax=t.gesture.imagewrap.attr("data-swiper-zoom")||s.params.zoommax,0!==t.gesture.imagewrap.length)?(t.gesture.image.transition(0),void(t.isscaling=!0)):void(t.gesture.image=void 0)},ongesturechange:function(e){var a=s.zoom;if(!s.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;a.gesture.scalemove=a.getdistancebetweentouches(e)}a.gesture.image&&0!==a.gesture.image.length&&(s.support.gestures?a.scale=e.scale*a.currentscale:a.scale=a.gesture.scalemove/a.gesture.scalestart*a.currentscale,a.scale>a.gesture.zoommax&&(a.scale=a.gesture.zoommax-1+math.pow(a.scale-a.gesture.zoommax+1,.5)),a.scalea.image.touchesstart.x)return void(a.image.istouched=!1);if(!s.ishorizontal()&&math.floor(a.image.miny)===math.floor(a.image.starty)&&a.image.touchescurrent.ya.image.touchesstart.y)return void(a.image.istouched=!1)}e.preventdefault(),e.stoppropagation(),a.image.ismoved=!0,a.image.currentx=a.image.touchescurrent.x-a.image.touchesstart.x+a.image.startx,a.image.currenty=a.image.touchescurrent.y-a.image.touchesstart.y+a.image.starty,a.image.currentxa.image.maxx&&(a.image.currentx=a.image.maxx-1+math.pow(a.image.currentx-a.image.maxx+1,.8)),a.image.currentya.image.maxy&&(a.image.currenty=a.image.maxy-1+math.pow(a.image.currenty-a.image.maxy+1,.8)),a.velocity.prevpositionx||(a.velocity.prevpositionx=a.image.touchescurrent.x),a.velocity.prevpositiony||(a.velocity.prevpositiony=a.image.touchescurrent.y),a.velocity.prevtime||(a.velocity.prevtime=date.now()),a.velocity.x=(a.image.touchescurrent.x-a.velocity.prevpositionx)/(date.now()-a.velocity.prevtime)/2,a.velocity.y=(a.image.touchescurrent.y-a.velocity.prevpositiony)/(date.now()-a.velocity.prevtime)/2,math.abs(a.image.touchescurrent.x-a.velocity.prevpositionx)<2&&(a.velocity.x=0),math.abs(a.image.touchescurrent.y-a.velocity.prevpositiony)<2&&(a.velocity.y=0),a.velocity.prevpositionx=a.image.touchescurrent.x,a.velocity.prevpositiony=a.image.touchescurrent.y,a.velocity.prevtime=date.now(),a.gesture.imagewrap.transform("translate3d("+a.image.currentx+"px, "+a.image.currenty+"px,0)")}}},ontouchend:function(e,a){var t=e.zoom;if(t.gesture.image&&0!==t.gesture.image.length){if(!t.image.istouched||!t.image.ismoved)return t.image.istouched=!1,void(t.image.ismoved=!1);t.image.istouched=!1,t.image.ismoved=!1;var s=300,i=300,r=t.velocity.x*s,n=t.image.currentx+r,o=t.velocity.y*i,l=t.image.currenty+o;0!==t.velocity.x&&(s=math.abs((n-t.image.currentx)/t.velocity.x)),0!==t.velocity.y&&(i=math.abs((l-t.image.currenty)/t.velocity.y));var p=math.max(s,i);t.image.currentx=n,t.image.currenty=l;var d=t.image.width*t.scale,u=t.image.height*t.scale;t.image.minx=math.min(t.gesture.slidewidth/2-d/2,0),t.image.maxx=-t.image.minx,t.image.miny=math.min(t.gesture.slideheight/2-u/2,0),t.image.maxy=-t.image.miny,t.image.currentx=math.max(math.min(t.image.currentx,t.image.maxx),t.image.minx),t.image.currenty=math.max(math.min(t.image.currenty,t.image.maxy),t.image.miny),t.gesture.imagewrap.transition(p).transform("translate3d("+t.image.currentx+"px, "+t.image.currenty+"px,0)")}},ontransitionend:function(e){var a=e.zoom;a.gesture.slide&&e.previousindex!==e.activeindex&&(a.gesture.image.transform("translate3d(0,0,0) scale(1)"),a.gesture.imagewrap.transform("translate3d(0,0,0)"),a.gesture.slide=a.gesture.image=a.gesture.imagewrap=void 0,a.scale=a.currentscale=1)},togglezoom:function(e,t){var s=e.zoom;if(s.gesture.slide||(s.gesture.slide=e.clickedslide?a(e.clickedslide):e.slides.eq(e.activeindex),s.gesture.image=s.gesture.slide.find("img, svg, canvas"),s.gesture.imagewrap=s.gesture.image.parent("."+e.params.zoomcontainerclass)),s.gesture.image&&0!==s.gesture.image.length){var i,r,n,o,l,p,d,u,c,m,h,g,f,v,w,y,x,t;"undefined"==typeof s.image.touchesstart.x&&t?(i="touchend"===t.type?t.changedtouches[0].pagex:t.pagex,r="touchend"===t.type?t.changedtouches[0].pagey:t.pagey):(i=s.image.touchesstart.x,r=s.image.touchesstart.y),s.scale&&1!==s.scale?(s.scale=s.currentscale=1,s.gesture.imagewrap.transition(300).transform("translate3d(0,0,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),s.gesture.slide=void 0):(s.scale=s.currentscale=s.gesture.imagewrap.attr("data-swiper-zoom")||e.params.zoommax,t?(x=s.gesture.slide[0].offsetwidth,t=s.gesture.slide[0].offsetheight,n=s.gesture.slide.offset().left,o=s.gesture.slide.offset().top,l=n+x/2-i,p=o+t/2-r,c=s.gesture.image[0].offsetwidth,m=s.gesture.image[0].offsetheight,h=c*s.scale,g=m*s.scale,f=math.min(x/2-h/2,0),v=math.min(t/2-g/2,0),w=-f,y=-v,d=l*s.scale,u=p*s.scale,dw&&(d=w),uy&&(u=y)):(d=0,u=0),s.gesture.imagewrap.transition(300).transform("translate3d("+d+"px, "+u+"px,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+s.scale+")"))}},attachevents:function(e){var t=e?"off":"on";if(s.params.zoom){var s=(s.slides,!("touchstart"!==s.touchevents.start||!s.support.passivelistener||!s.params.passivelisteners)&&{passive:!0,capture:!1});s.support.gestures?(s.slides[t]("gesturestart",s.zoom.ongesturestart,s),s.slides[t]("gesturechange",s.zoom.ongesturechange,s),s.slides[t]("gestureend",s.zoom.ongestureend,s)):"touchstart"===s.touchevents.start&&(s.slides[t](s.touchevents.start,s.zoom.ongesturestart,s),s.slides[t](s.touchevents.move,s.zoom.ongesturechange,s),s.slides[t](s.touchevents.end,s.zoom.ongestureend,s)),s[t]("touchstart",s.zoom.ontouchstart),s.slides.each(function(e,s){a(s).find("."+s.params.zoomcontainerclass).length>0&&a(s)[t](s.touchevents.move,s.zoom.ontouchmove)}),s[t]("touchend",s.zoom.ontouchend),s[t]("transitionend",s.zoom.ontransitionend),s.params.zoomtoggle&&s.on("doubletap",s.zoom.togglezoom)}},init:function(){s.zoom.attachevents()},destroy:function(){s.zoom.attachevents(!0)}},s._plugins=[];for(var n in s.plugins){var w=s.plugins[n](s,s.params[n]);w&&s._plugins.push(w)}return s.callplugins=function(e){for(var a=0;a'),notify:function(e){var a=s.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){s.params.nextbutton&&s.nextbutton&&s.nextbutton.length>0&&(s.a11y.makefocusable(s.nextbutton),s.a11y.addrole(s.nextbutton,"button"),s.a11y.addlabel(s.nextbutton,s.params.nextslidemessage)),s.params.prevbutton&&s.prevbutton&&s.prevbutton.length>0&&(s.a11y.makefocusable(s.prevbutton),s.a11y.addrole(s.prevbutton,"button"),s.a11y.addlabel(s.prevbutton,s.params.prevslidemessage)),a(s.container).append(s.a11y.liveregion)},initpagination:function(){s.params.pagination&&s.params.paginationclickable&&s.bullets&&s.bullets.length&&s.bullets.each(function(){var e=a(this);s.a11y.makefocusable(e),s.a11y.addrole(e,"button"),s.a11y.addlabel(e,s.params.paginationbulletmessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){s.a11y.liveregion&&s.a11y.liveregion.length>0&&s.a11y.liveregion.remove()}},s.init=function(){s.params.loop&&s.createloop(),s.updatecontainersize(),s.updateslidessize(),s.updatepagination(),s.params.scrollbar&&s.scrollbar&&(s.scrollbar.set(),s.params.scrollbardraggable&&s.scrollbar.enabledraggable()),"slide"!==s.params.effect&&s.effects[s.params.effect]&&(s.params.loop||s.updateprogress(),s.effects[s.params.effect].settranslate()),s.params.loop?s.slideto(s.params.initialslide+s.loopedslides,0,s.params.runcallbacksoninit):(s.slideto(s.params.initialslide,0,s.params.runcallbacksoninit),0===s.params.initialslide&&(s.parallax&&s.params.parallax&&s.parallax.settranslate(),s.lazy&&s.params.lazyloading&&(s.lazy.load(),s.lazy.initialimageloaded=!0))),s.attachevents(),s.params.observer&&s.support.observer&&s.initobservers(),s.params.preloadimages&&!s.params.lazyloading&&s.preloadimages(),s.params.zoom&&s.zoom&&s.zoom.init(),s.params.autoplay&&s.startautoplay(),s.params.keyboardcontrol&&s.enablekeyboardcontrol&&s.enablekeyboardcontrol(),s.params.mousewheelcontrol&&s.enablemousewheelcontrol&&s.enablemousewheelcontrol(),s.params.hashnavreplacestate&&(s.params.replacestate=s.params.hashnavreplacestate),s.params.history&&s.history&&s.history.init(),s.params.hashnav&&s.hashnav&&s.hashnav.init(),s.params.a11y&&s.a11y&&s.a11y.init(),s.emit("oninit",s)},s.cleanupstyles=function(){s.container.removeclass(s.classnames.join(" ")).removeattr("style"),s.wrapper.removeattr("style"),s.slides&&s.slides.length&&s.slides.removeclass([s.params.slidevisibleclass,s.params.slideactiveclass,s.params.slidenextclass,s.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),s.paginationcontainer&&s.paginationcontainer.length&&s.paginationcontainer.removeclass(s.params.paginationhiddenclass),s.bullets&&s.bullets.length&&s.bullets.removeclass(s.params.bulletactiveclass),s.params.prevbutton&&a(s.params.prevbutton).removeclass(s.params.buttondisabledclass),s.params.nextbutton&&a(s.params.nextbutton).removeclass(s.params.buttondisabledclass),s.params.scrollbar&&s.scrollbar&&(s.scrollbar.track&&s.scrollbar.track.length&&s.scrollbar.track.removeattr("style"),s.scrollbar.drag&&s.scrollbar.drag.length&&s.scrollbar.drag.removeattr("style"))},s.destroy=function(e,a){s.detachevents(),s.stopautoplay(),s.params.scrollbar&&s.scrollbar&&s.params.scrollbardraggable&&s.scrollbar.disabledraggable(),s.params.loop&&s.destroyloop(),a&&s.cleanupstyles(),s.disconnectobservers(),s.params.zoom&&s.zoom&&s.zoom.destroy(),s.params.keyboardcontrol&&s.disablekeyboardcontrol&&s.disablekeyboardcontrol(),s.params.mousewheelcontrol&&s.disablemousewheelcontrol&&s.disablemousewheelcontrol(),s.params.a11y&&s.a11y&&s.a11y.destroy(),s.params.history&&!s.params.replacestate&&window.removeeventlistener("popstate",s.history.sethistorypopstate),s.params.hashnav&&s.hashnav&&s.hashnav.destroy(),s.emit("ondestroy"),e!==!1&&(s=null)},s.init(),s}};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,lteie9:function(){var e=document.createelement("div");return e.innerhtml="",1===e.getelementsbytagname("i").length}()},device:function(){var e=navigator.useragent,a=e.match(/(android);?[\s\/]+([\d.]+)?/),t=e.match(/(ipad).*os\s([\d_]+)/),s=e.match(/(ipod)(.*os\s([\d_]+))?/),i=!t&&e.match(/(iphone\sos)\s([\d_]+)/);return{ios:t||i||s,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=0&&o.indexof(">")>=0){var l="div";for(0===o.indexof(":~]/)?(t||document).queryselectorall(a):[document.getelementbyid(a.split("#")[1])],i=0;i0&&a[0].nodetype)for(i=0;i0?parsefloat(this.css("width")):null},outerwidth:function(e){return this.length>0?e?this[0].offsetwidth+parsefloat(this.css("margin-right"))+parsefloat(this.css("margin-left")):this[0].offsetwidth:null},height:function(){return this[0]===window?window.innerheight:this.length>0?parsefloat(this.css("height")):null},outerheight:function(e){return this.length>0?e?this[0].offsetheight+parsefloat(this.css("margin-top"))+parsefloat(this.css("margin-bottom")):this[0].offsetheight:null},offset:function(){if(this.length>0){var e=this[0],a=e.getboundingclientrect(),t=document.body,s=e.clienttop||t.clienttop||0,i=e.clientleft||t.clientleft||0,r=window.pageyoffset||e.scrolltop,n=window.pagexoffset||e.scrollleft;return{top:a.top+r-s,left:a.left+n-i}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;ts-1?new e([]):a<0?(t=s+a,new e(t<0?[]:[this[t]])):new e([this[a]])},append:function(a){var t,s;for(t=0;t=0;s--)this[t].insertbefore(i.childnodes[s],this[t].childnodes[0])}else if(a instanceof e)for(s=0;s1)for(var i=0;i1)for(var i=0;i0?t?this[0].nextelementsibling&&a(this[0].nextelementsibling).is(t)?[this[0].nextelementsibling]:[]:this[0].nextelementsibling?[this[0].nextelementsibling]:[]:[])},nextall:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.nextelementsibling;){var r=i.nextelementsibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},prev:function(t){return new e(this.length>0?t?this[0].previouselementsibling&&a(this[0].previouselementsibling).is(t)?[this[0].previouselementsibling]:[]:this[0].previouselementsibling?[this[0].previouselementsibling]:[]:[])},prevall:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.previouselementsibling;){var r=i.previouselementsibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},parent:function(e){for(var t=[],s=0;s0?e?this[0].offsetwidth+parsefloat(this.css("margin-right"))+parsefloat(this.css("margin-left")):this[0].offsetwidth:null})),window.swiper=t}(),"undefined"!=typeof module?module.exports=window.swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.swiper}); //# sourcemappingurl=maps/swiper.min.js.map