/** * swiper 3.0.4 * 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: march 6, 2015 */ !function(){"use strict";function e(e){e.fn.swiper=function(a){var t;return e(this).each(function(){var e=new swiper(this,a);t||(t=e)}),t}}window.swiper=function(e,t){function r(){return"horizontal"===h.params.direction}function s(){h.autoplaytimeoutid=settimeout(function(){h.params.loop?(h.fixloop(),h._slidenext()):h.isend?t.autoplaystoponlast?h.stopautoplay():h._slideto(0):h._slidenext()},h.params.autoplay)}function i(e,a){var t=f(e.target);if(!t.is(a))if("string"==typeof a)t=t.parents(a);else if(a.nodetype){var r;return t.parents().each(function(e,t){t===a&&(r=a)}),r?a:void 0}return 0===t.length?void 0:t[0]}function n(e,a){a=a||{};var t=window.mutationobserver||window.webkitmutationobserver,r=new t(function(e){e.foreach(function(e){h.onresize(),h.params.onobserverupdate&&h.params.onobserverupdate(h,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}),h.observers.push(r)}function o(e){e.originalevent&&(e=e.originalevent);var a=e.keycode||e.charcode;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(h.container.parents(".swiper-slide").length>0&&0===h.container.parents(".swiper-slide-active").length)return;for(var s={left:window.pagexoffset,top:window.pageyoffset},i=window.innerwidth,n=window.innerheight,o=h.container.offset(),l=[[o.left,o.top],[o.left+h.width,o.top],[o.left,o.top+h.height],[o.left+h.width,o.top+h.height]],d=0;d=s.left&&p[0]<=s.left+i&&p[1]>=s.top&&p[1]<=s.top+n&&(t=!0)}if(!t)return}r()?((37===a||39===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),39===a&&h.slidenext(),37===a&&h.slideprev()):((38===a||40===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&h.slidenext(),38===a&&h.slideprev())}}function l(e){e.originalevent&&(e=e.originalevent);var a=h._wheelevent,t=0;if(e.detail)t=-e.detail;else if("mousewheel"===a)if(h.params.mousewheelforcetoaxis)if(r()){if(!(math.abs(e.wheeldeltax)>math.abs(e.wheeldeltay)))return;t=e.wheeldeltax}else{if(!(math.abs(e.wheeldeltay)>math.abs(e.wheeldeltax)))return;t=e.wheeldeltay}else t=e.wheeldelta;else if("dommousescroll"===a)t=-e.detail;else if("wheel"===a)if(h.params.mousewheelforcetoaxis)if(r()){if(!(math.abs(e.deltax)>math.abs(e.deltay)))return;t=-e.deltax}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:-e.deltay;if(h.params.freemode){var s=h.getwrappertranslate()+t;if(s>0&&(s=0),s60&&(0>t?h.slidenext():h.slideprev()),h._lastwheelscrolltime=(new date).gettime();return h.params.autoplay&&h.stopautoplay(),e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}function d(e,a){e=f(e);var t,s,i,n,o;t=e.attr("data-swiper-parallax"),s=e.attr("data-swiper-parallax-x"),i=e.attr("data-swiper-parallax-y"),s||i||!t?(s=s?s:"0",i=i?i:"0"):r()?(s=t,i="0"):(i=t,s="0"),s=s.indexof("%")>=0?parseint(s,10)*a+"%":s*a+"px",i=i.indexof("%")>=0?parseint(i,10)*a+"%":i*a+"px",n=s,o=i,e.transform("translate3d("+n+", "+o+",0px)")}var p={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio: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,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelforcetoaxis:!1,hashnav:!1,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,centeredslides:!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,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,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,runcallbacksoninit:!0};t=t||{};for(var u in p)if("undefined"==typeof t[u])t[u]=p[u];else if("object"==typeof t[u])for(var c in p[u])"undefined"==typeof t[u][c]&&(t[u][c]=p[u][c]);var h=this;h.params=t;var f;if(f="undefined"==typeof a?window.dom7||window.zepto||window.jquery:a,f&&(h.container=f(e),0!==h.container.length)){if(h.container.length>1)return void h.container.each(function(){new swiper(this,t)});h.container[0].swiper=h,h.container.data("swiper",h),h.container.addclass("swiper-container-"+h.params.direction),h.params.freemode&&h.container.addclass("swiper-container-free-mode"),(h.params.parallax||h.params.watchslidesvisibility)&&(h.params.watchslidesprogress=!0),["cube","coverflow"].indexof(h.params.effect)>=0&&(h.support.transforms3d?(h.params.watchslidesprogress=!0,h.container.addclass("swiper-container-3d")):h.params.effect="slide"),"slide"!==h.params.effect&&h.container.addclass("swiper-container-"+h.params.effect),"cube"===h.params.effect&&(h.params.resistanceratio=0,h.params.slidesperview=1,h.params.slidespercolumn=1,h.params.slidespergroup=1,h.params.centeredslides=!1,h.params.spacebetween=0),"fade"===h.params.effect&&(h.params.watchslidesprogress=!0,h.params.spacebetween=0),h.params.grabcursor&&h.support.touch&&(h.params.grabcursor=!1),h.wrapper=h.container.children("."+h.params.wrapperclass),h.params.pagination&&(h.paginationcontainer=f(h.params.pagination),h.params.paginationclickable&&h.paginationcontainer.addclass("swiper-pagination-clickable")),h.rtl=r()&&("rtl"===h.container[0].dir.tolowercase()||"rtl"===h.container.css("direction")),h.rtl&&h.container.addclass("swiper-container-rtl"),h.rtl&&(h.wrongrtl="-webkit-box"===h.wrapper.css("display")),h.translate=0,h.progress=0,h.velocity=0,h.lockswipetonext=function(){h.params.allowswipetonext=!1},h.lockswipetoprev=function(){h.params.allowswipetoprev=!1},h.lockswipes=function(){h.params.allowswipetonext=h.params.allowswipetoprev=!1},h.unlockswipetonext=function(){h.params.allowswipetonext=!0},h.unlockswipetoprev=function(){h.params.allowswipetoprev=!0},h.unlockswipes=function(){h.params.allowswipetonext=h.params.allowswipetoprev=!0},h.params.slidespercolumn>1&&h.container.addclass("swiper-container-multirow"),h.params.grabcursor&&(h.container[0].style.cursor="move",h.container[0].style.cursor="-webkit-grab",h.container[0].style.cursor="-moz-grab",h.container[0].style.cursor="grab"),h.imagestoload=[],h.imagesloaded=0,h.loadimage=function(e,a,t,r){function s(){r&&r()}var i;e.complete&&t?s():a?(i=new image,i.onload=s,i.onerror=s,i.src=a):s()},h.preloadimages=function(){function e(){"undefined"!=typeof h&&null!==h&&(void 0!==h.imagesloaded&&h.imagesloaded++,h.imagesloaded===h.imagestoload.length&&(h.params.updateonimagesready&&h.update(),h.params.onimagesready&&h.params.onimagesready(h)))}h.imagestoload=h.container.find("img");for(var a=0;a=0&&(a=parsefloat(a.replace("%",""))/100*h.size),h.virtualwidth=-a,h.slides.css(h.rtl?{marginleft:"",margintop:""}:{marginright:"",marginbottom:""});var n;h.params.slidespercolumn>1&&(n=math.floor(h.slides.length/h.params.slidespercolumn)===h.slides.length/h.params.slidespercolumn?h.slides.length:math.ceil(h.slides.length/h.params.slidespercolumn)*h.params.slidespercolumn);var o;for(e=0;e1){var d,p,u,c,f=h.params.slidespercolumn;"column"===h.params.slidespercolumnfill?(p=math.floor(e/f),u=e-p*f,d=p+u*n/f,l.css({"-webkit-box-ordinal-group":d,"-moz-box-ordinal-group":d,"-ms-flex-order":d,"-webkit-order":d,order:d})):(c=n/f,u=math.floor(e/c),p=e-u*c),l.css({"margin-top":0!==u&&h.params.spacebetween&&h.params.spacebetween+"px"}).attr("data-swiper-column",p).attr("data-swiper-row",u)}"none"!==l.css("display")&&("auto"===h.params.slidesperview?o=r()?l.outerwidth(!0):l.outerheight(!0):(o=(h.size-(h.params.slidesperview-1)*a)/h.params.slidesperview,r()?h.slides[e].style.width=o+"px":h.slides[e].style.height=o+"px"),h.slides[e].swiperslidesize=o,h.slidessizesgrid.push(o),h.params.centeredslides?(t=t+o/2+s/2+a,0===e&&(t=t-h.size/2-a),math.abs(t)<.001&&(t=0),i%h.params.slidespergroup===0&&h.snapgrid.push(t),h.slidesgrid.push(t)):(i%h.params.slidespergroup===0&&h.snapgrid.push(t),h.slidesgrid.push(t),t=t+o+a),h.virtualwidth+=o+a,s=o,i++)}h.virtualwidth=math.max(h.virtualwidth,h.size);var m;if(h.rtl&&h.wrongrtl&&("slide"===h.params.effect||"coverflow"===h.params.effect)&&h.wrapper.css({width:h.virtualwidth+h.params.spacebetween+"px"}),h.params.slidespercolumn>1&&(h.virtualwidth=(o+h.params.spacebetween)*n,h.virtualwidth=math.ceil(h.virtualwidth/h.params.slidespercolumn)-h.params.spacebetween,h.wrapper.css({width:h.virtualwidth+h.params.spacebetween+"px"}),h.params.centeredslides)){for(m=[],e=0;emath.floor(h.snapgrid[h.snapgrid.length-1])&&h.snapgrid.push(h.virtualwidth-h.size)}0===h.snapgrid.length&&(h.snapgrid=[0]),0!==h.params.spacebetween&&h.slides.css(r()?h.rtl?{marginleft:a+"px"}:{marginright:a+"px"}:{marginbottom:a+"px"}),h.params.watchslidesprogress&&h.updateslidesoffset()},h.updateslidesoffset=function(){for(var e=0;e=0&&o0&&l<=h.size||0>=o&&l>=h.size;d&&h.slides.eq(t).addclass(h.params.slidevisibleclass)}s.progress=h.rtl?-n:n}}},h.updateprogress=function(e){"undefined"==typeof e&&(e=h.translate||0);var a=h.maxtranslate()-h.mintranslate();0===a?(h.progress=0,h.isbeginning=h.isend=!0):(h.progress=(e-h.mintranslate())/a,h.isbeginning=h.progress<=0,h.isend=h.progress>=1),h.isbeginning&&h.params.onreachbeginning&&h.params.onreachbeginning(h),h.isend&&h.params.onreachend&&h.params.onreachend(h),h.params.watchslidesprogress&&h.updateslidesprogress(e),h.params.onprogress&&h.params.onprogress(h,h.progress)},h.updateactiveindex=function(){var e,a,t,r=h.rtl?h.translate:-h.translate;for(a=0;a=h.slidesgrid[a]&&r=h.slidesgrid[a]&&r=h.slidesgrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=math.floor(e/h.params.slidespergroup),t>=h.snapgrid.length&&(t=h.snapgrid.length-1),e!==h.activeindex&&(h.snapindex=t,h.previousindex=h.activeindex,h.activeindex=e,h.updateclasses())},h.updateclasses=function(){h.slides.removeclass(h.params.slideactiveclass+" "+h.params.slidenextclass+" "+h.params.slideprevclass);var e=h.slides.eq(h.activeindex);if(e.addclass(h.params.slideactiveclass),e.next("."+h.params.slideclass).addclass(h.params.slidenextclass),e.prev("."+h.params.slideclass).addclass(h.params.slideprevclass),h.bullets&&h.bullets.length>0){h.bullets.removeclass(h.params.bulletactiveclass);var a;h.params.loop?(a=h.activeindex-h.loopedslides,a>h.slides.length-1-2*h.loopedslides&&(a-=h.slides.length-2*h.loopedslides)):a="undefined"!=typeof h.snapindex?h.snapindex:h.activeindex||0,h.bullets.eq(a).addclass(h.params.bulletactiveclass)}h.params.loop||(h.params.prevbutton&&(h.isbeginning?f(h.params.prevbutton).addclass(h.params.buttondisabledclass):f(h.params.prevbutton).removeclass(h.params.buttondisabledclass)),h.params.nextbutton&&(h.isend?f(h.params.nextbutton).addclass(h.params.buttondisabledclass):f(h.params.nextbutton).removeclass(h.params.buttondisabledclass)))},h.updatepagination=function(){if(h.params.pagination&&h.paginationcontainer&&h.paginationcontainer.length>0){for(var e="",a=h.params.loop?h.slides.length-2*h.loopedslides:h.snapgrid.length,t=0;a>t;t++)e+=h.params.paginationbulletrender?h.params.paginationbulletrender(t,h.params.bulletclass):'';h.paginationcontainer.html(e),h.bullets=h.paginationcontainer.find("."+h.params.bulletclass)}},h.update=function(e){function a(){r=math.min(math.max(h.translate,h.maxtranslate()),h.mintranslate()),h.setwrappertranslate(r),h.updateactiveindex(),h.updateclasses()}if(h.updatecontainersize(),h.updateslidessize(),h.updateprogress(),h.updatepagination(),h.updateclasses(),h.params.scrollbar&&h.scrollbar&&h.scrollbar.set(),e){var t,r;h.params.freemode?a():(t="auto"===h.params.slidesperview&&h.isend&&!h.params.centeredslides?h.slideto(h.slides.length-1,0,!1,!0):h.slideto(h.activeindex,0,!1,!0),t||a())}},h.onresize=function(){if(h.updatecontainersize(),h.updateslidessize(),h.updateprogress(),("auto"===h.params.slidesperview||h.params.freemode)&&h.updatepagination(),h.params.scrollbar&&h.scrollbar&&h.scrollbar.set(),h.params.freemode){var e=math.min(math.max(h.translate,h.maxtranslate()),h.mintranslate());h.setwrappertranslate(e),h.updateactiveindex(),h.updateclasses()}else h.updateclasses(),"auto"===h.params.slidesperview&&h.isend&&!h.params.centeredslides?h.slideto(h.slides.length-1,0,!1,!0):h.slideto(h.activeindex,0,!1,!0)};var m=["mousedown","mousemove","mouseup"];window.navigator.pointerenabled?m=["pointerdown","pointermove","pointerup"]:window.navigator.mspointerenabled&&(m=["mspointerdown","mspointermove","mspointerup"]),h.touchevents={start:h.support.touch||!h.params.simulatetouch?"touchstart":m[0],move:h.support.touch||!h.params.simulatetouch?"touchmove":m[1],end:h.support.touch||!h.params.simulatetouch?"touchend":m[2]},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===h.params.toucheventstarget?h.container:h.wrapper).addclass("swiper-wp8-"+h.params.direction),h.events=function(e){var a=e?"off":"on",r=e?"removeeventlistener":"addeventlistener",s="container"===h.params.toucheventstarget?h.container[0]:h.wrapper[0],i=h.support.touch?s:document,n=h.params.nested?!0:!1;h.browser.ie?(s[r](h.touchevents.start,h.ontouchstart,!1),i[r](h.touchevents.move,h.ontouchmove,n),i[r](h.touchevents.end,h.ontouchend,!1)):(h.support.touch&&(s[r](h.touchevents.start,h.ontouchstart,!1),s[r](h.touchevents.move,h.ontouchmove,n),s[r](h.touchevents.end,h.ontouchend,!1)),!t.simulatetouch||h.device.ios||h.device.android||(s[r]("mousedown",h.ontouchstart,!1),i[r]("mousemove",h.ontouchmove,n),i[r]("mouseup",h.ontouchend,!1))),window[r]("resize",h.onresize),h.params.nextbutton&&f(h.params.nextbutton)[a]("click",h.onclicknext),h.params.prevbutton&&f(h.params.prevbutton)[a]("click",h.onclickprev),h.params.pagination&&h.params.paginationclickable&&f(h.paginationcontainer)[a]("click","."+h.params.bulletclass,h.onclickindex),(h.params.preventclicks||h.params.preventclickspropagation)&&s[r]("click",h.preventclicks,!0)},h.attachevents=function(){h.events()},h.detachevents=function(){h.events(!0)},h.allowclick=!0,h.preventclicks=function(e){h.allowclick||(h.params.preventclicks&&e.preventdefault(),h.params.preventclickspropagation&&(e.stoppropagation(),e.stopimmediatepropagation()))},h.onclicknext=function(e){e.preventdefault(),h.slidenext()},h.onclickprev=function(e){e.preventdefault(),h.slideprev()},h.onclickindex=function(e){e.preventdefault();var a=f(this).index()*h.params.slidespergroup;h.params.loop&&(a+=h.loopedslides),h.slideto(a)},h.updateclickedslide=function(e){var a=i(e,"."+h.params.slideclass);if(!a)return h.clickedslide=void 0,void(h.clickedindex=void 0);if(h.clickedslide=a,h.clickedindex=f(a).index(),h.params.slidetoclickedslide&&void 0!==h.clickedindex&&h.clickedindex!==h.activeindex){var t,r=h.clickedindex;if(h.params.loop)if(t=f(h.clickedslide).attr("data-swiper-slide-index"),r>h.slides.length-h.params.slidesperview)h.fixloop(),r=h.wrapper.children("."+h.params.slideclass+'[data-swiper-slide-index="'+t+'"]').eq(0).index(),settimeout(function(){h.slideto(r)},0);else if(r0&&(y=!1),"touchstart"!==e.type){var a=!0;f(e.target).is(m)&&(a=!1),document.activeelement&&f(document.activeelement).is(m)&&document.activeelement.blur(),a&&e.preventdefault()}h.params.ontouchstart&&h.params.ontouchstart(h,e)}}},h.ontouchmove=function(e){if(e.originalevent&&(e=e.originalevent),!(z&&"mousemove"===e.type||e.preventedbynestedswiper)){if(h.params.onlyexternal)return v=!0,void(h.allowclick=!1);if(z&&document.activeelement&&e.target===document.activeelement&&f(e.target).is(m))return v=!0,void(h.allowclick=!1);if(h.params.ontouchmove&&h.params.ontouchmove(h,e),h.allowclick=!1,!(e.targettouches&&e.targettouches.length>1)){if(h.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,h.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,"undefined"==typeof t){var a=180*math.atan2(math.abs(h.touches.currenty-h.touches.starty),math.abs(h.touches.currentx-h.touches.startx))/math.pi;t=r()?a>h.params.touchangle:90-a>h.params.touchangle}if(t&&h.params.ontouchmoveopposite&&h.params.ontouchmoveopposite(h,e),g){if(t)return void(g=!1);h.params.onslidermove&&h.params.onslidermove(h,e),e.preventdefault(),h.params.touchmovestoppropagation&&!h.params.nested&&e.stoppropagation(),v||(t.loop&&h.fixloop(),x="cube"===h.params.effect?(h.rtl?-h.translate:h.translate)||0:h.getwrappertranslate(),h.setwrappertransition(0),h.animating&&h.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),h.params.autoplay&&h.autoplaying&&(h.params.autoplaydisableoninteraction?h.stopautoplay():h.pauseautoplay()),c=!1,h.params.grabcursor&&(h.container[0].style.cursor="move",h.container[0].style.cursor="-webkit-grabbing",h.container[0].style.cursor="-moz-grabbin",h.container[0].style.cursor="grabbing")),v=!0;var s=h.touches.diff=r()?h.touches.currentx-h.touches.startx:h.touches.currenty-h.touches.starty;s*=h.params.touchratio,h.rtl&&(s=-s),h.swipedirection=s>0?"prev":"next",b=s+x;var i=!0;if(s>0&&b>h.mintranslate()?(i=!1,h.params.resistance&&(b=h.mintranslate()-1+math.pow(-h.mintranslate()+x+s,h.params.resistanceratio))):0>s&&bb&&(b=x),!h.params.allowswipetoprev&&"prev"===h.swipedirection&&b>x&&(b=x),h.params.followfinger){if(h.params.threshold>0){if(!(math.abs(s)>h.params.threshold||y))return void(b=x);if(!y)return y=!0,h.touches.startx=h.touches.currentx,h.touches.starty=h.touches.currenty,b=x,void(h.touches.diff=r()?h.touches.currentx-h.touches.startx:h.touches.currenty-h.touches.starty)}(h.params.freemode||h.params.watchslidesprogress)&&h.updateactiveindex(),h.params.freemode&&(0===p.length&&p.push({position:h.touches[r()?"startx":"starty"],time:w}),p.push({position:h.touches[r()?"currentx":"currenty"],time:(new date).gettime()})),h.updateprogress(b),h.setwrappertranslate(b)}}}}},h.ontouchend=function(e){if(e.originalevent&&(e=e.originalevent),h.params.ontouchend&&h.params.ontouchend(h,e),g){h.params.grabcursor&&v&&g&&(h.container[0].style.cursor="move",h.container[0].style.cursor="-webkit-grab",h.container[0].style.cursor="-moz-grab",h.container[0].style.cursor="grab");var a=date.now(),t=a-w;if(h.allowclick&&(h.updateclickedslide(e),h.params.ontap&&h.params.ontap(h,e),300>t&&a-e>300&&(s&&cleartimeout(s),s=settimeout(function(){h&&(h.params.paginationhide&&h.paginationcontainer.length>0&&!f(e.target).hasclass(h.params.bulletclass)&&h.paginationcontainer.toggleclass(h.params.paginationhiddenclass),h.params.onclick&&h.params.onclick(h,e))},300)),300>t&&300>a-e&&(s&&cleartimeout(s),h.params.ondoubletap&&h.params.ondoubletap(h,e))),e=date.now(),settimeout(function(){h&&h.allowclick&&(h.allowclick=!0)},0),!g||!v||!h.swipedirection||0===h.touches.diff||b===x)return void(g=v=!1);g=v=!1;var r;if(r=h.params.followfinger?h.rtl?h.translate:-h.translate:-b,h.params.freemode){if(r<-h.mintranslate())return void h.slideto(h.activeindex);if(r>-h.maxtranslate())return void h.slideto(h.slides.length-1);if(h.params.freemodemomentum){if(p.length>1){var s=p.pop(),i=p.pop(),n=s.position-i.position,o=s.time-i.time;h.velocity=n/o,h.velocity=h.velocity/2,math.abs(h.velocity)<.02&&(h.velocity=0),(o>150||(new date).gettime()-s.time>300)&&(h.velocity=0)}else h.velocity=0;p.length=0;var l=1e3*h.params.freemodemomentumratio,d=h.velocity*l,p=h.translate+d;h.rtl&&(p=-p);var u,c=!1,m=20*math.abs(h.velocity)*h.params.freemodemomentumbounceratio;ph.mintranslate()&&(h.params.freemodemomentumbounce?(p-h.mintranslate()>m&&(p=h.mintranslate()+m),u=h.mintranslate(),c=!0,c=!0):p=h.mintranslate()),0!==h.velocity&&(l=math.abs(h.rtl?(-p-h.translate)/h.velocity:(p-h.translate)/h.velocity)),h.params.freemodemomentumbounce&&c?(h.updateprogress(u),h.setwrappertransition(l),h.setwrappertranslate(p),h.ontransitionstart(),h.animating=!0,h.wrapper.transitionend(function(){c&&(h.params.onmomentumbounce&&h.params.onmomentumbounce(h),h.setwrappertransition(h.params.speed),h.setwrappertranslate(u),h.wrapper.transitionend(function(){h.ontransitionend()}))})):h.velocity?(h.updateprogress(p),h.setwrappertransition(l),h.setwrappertranslate(p),h.ontransitionstart(),h.animating||(h.animating=!0,h.wrapper.transitionend(function(){h.ontransitionend()}))):h.updateprogress(p),h.updateactiveindex()}return void((!h.params.freemodemomentum||t>=h.params.longswipesms)&&(h.updateprogress(),h.updateactiveindex()))}var t,y=0,m=h.slidessizesgrid[0];for(t=0;t=h.slidesgrid[t]&&r=h.slidesgrid[t]&&(y=t,m=h.slidesgrid[h.slidesgrid.length-1]-h.slidesgrid[h.slidesgrid.length-2]);var z=(r-h.slidesgrid[y])/m;if(t>h.params.longswipesms){if(!h.params.longswipes)return void h.slideto(h.activeindex);"next"===h.swipedirection&&h.slideto(z>=h.params.longswipesratio?y+h.params.slidespergroup:y),"prev"===h.swipedirection&&h.slideto(z>1-h.params.longswipesratio?y+h.params.slidespergroup:y)}else{if(!h.params.shortswipes)return void h.slideto(h.activeindex);"next"===h.swipedirection&&h.slideto(y+h.params.slidespergroup),"prev"===h.swipedirection&&h.slideto(y)}}},h._slideto=function(e,a){return h.slideto(e,a,!0,!0)},h.slideto=function(e,a,t,s){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),h.snapindex=math.floor(e/h.params.slidespergroup),h.snapindex>=h.snapgrid.length&&(h.snapindex=h.snapgrid.length-1);var i=-h.snapgrid[h.snapindex];h.params.autoplay&&h.autoplaying&&(s||!h.params.autoplaydisableoninteraction?h.pauseautoplay(a):h.stopautoplay()),h.updateprogress(i);for(var n=0;n=h.slidesgrid[n]&&(e=n);if("undefined"==typeof a&&(a=h.params.speed),h.previousindex=h.activeindex||0,h.activeindex=e,i===h.translate)return h.updateclasses(),!1;h.ontransitionstart(t);r()?i:0,r()?0:i;return 0===a?(h.setwrappertransition(0),h.setwrappertranslate(i),h.ontransitionend(t)):(h.setwrappertransition(a),h.setwrappertranslate(i),h.animating||(h.animating=!0,h.wrapper.transitionend(function(){h.ontransitionend(t)}))),h.updateclasses(),!0},h.ontransitionstart=function(e){"undefined"==typeof e&&(e=!0),h.lazy&&h.lazy.ontransitionstart(),e&&(h.params.ontransitionstart&&h.params.ontransitionstart(h),h.params.onslidechangestart&&h.activeindex!==h.previousindex&&h.params.onslidechangestart(h))},h.ontransitionend=function(e){h.animating=!1,h.setwrappertransition(0),"undefined"==typeof e&&(e=!0),h.lazy&&h.lazy.ontransitionend(),e&&(h.params.ontransitionend&&h.params.ontransitionend(h),h.params.onslidechangeend&&h.activeindex!==h.previousindex&&h.params.onslidechangeend(h))},h.slidenext=function(e,a,t){if(h.params.loop){if(h.animating)return!1;h.fixloop();{h.container[0].clientleft}return h.slideto(h.activeindex+h.params.slidespergroup,a,e,t)}return h.slideto(h.activeindex+h.params.slidespergroup,a,e,t)},h._slidenext=function(e){return h.slidenext(!0,e,!0)},h.slideprev=function(e,a,t){if(h.params.loop){if(h.animating)return!1;h.fixloop();{h.container[0].clientleft}return h.slideto(h.activeindex-1,a,e,t)}return h.slideto(h.activeindex-1,a,e,t)},h._slideprev=function(e){return h.slideprev(!0,e,!0)},h.slidereset=function(e,a){return h.slideto(h.activeindex,a,e)},h.setwrappertransition=function(e,a){h.wrapper.transition(e),h.params.onsettransition&&h.params.onsettransition(h,e),"slide"!==h.params.effect&&h.effects[h.params.effect]&&h.effects[h.params.effect].settransition(e),h.params.parallax&&h.parallax&&h.parallax.settransition(e),h.params.scrollbar&&h.scrollbar&&h.scrollbar.settransition(e),h.params.control&&h.controller&&h.controller.settransition(e,a)},h.setwrappertranslate=function(e,a,t){var s=0,i=0,n=0;r()?s=h.rtl?-e:e:i=e,h.wrapper.transform(h.support.transforms3d?"translate3d("+s+"px, "+i+"px, "+n+"px)":"translate("+s+"px, "+i+"px)"),h.translate=r()?s:i,a&&h.updateactiveindex(),"slide"!==h.params.effect&&h.effects[h.params.effect]&&h.effects[h.params.effect].settranslate(h.translate),h.params.parallax&&h.parallax&&h.parallax.settranslate(h.translate),h.params.scrollbar&&h.scrollbar&&h.scrollbar.settranslate(h.translate),h.params.control&&h.controller&&h.controller.settranslate(h.translate,t),h.params.hashnav&&h.hashnav&&h.hashnav.sethash(),h.params.onsettranslate&&h.params.onsettranslate(h,h.translate)},h.gettranslate=function(e,a){var t,r,s,i;return"undefined"==typeof a&&(a="x"),s=window.getcomputedstyle(e,null),window.webkitcssmatrix?i=new webkitcssmatrix("none"===s.webkittransform?"":s.webkittransform):(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:parsefloat(16===t.length?t[12]:t[4])),"y"===a&&(r=window.webkitcssmatrix?i.m42:parsefloat(16===t.length?t[13]:t[5])),h.rtl&&r&&(r=-r),r||0},h.getwrappertranslate=function(e){return"undefined"==typeof e&&(e=r()?"x":"y"),h.gettranslate(h.wrapper[0],e)},h.observers=[],h.initobservers=function(){if(h.params.observeparents)for(var e=h.container.parents(),a=0;ae.length&&(h.loopedslides=e.length);var a,t=[],r=[];for(e.each(function(a,s){var i=f(this);a=e.length-h.loopedslides&&t.push(s),i.attr("data-swiper-slide-index",a)}),a=0;a=0;a--)h.wrapper.prepend(f(t[a].clonenode(!0)).addclass(h.params.slideduplicateclass))},h.destroyloop=function(){h.wrapper.children("."+h.params.slideclass+"."+h.params.slideduplicateclass).remove()},h.fixloop=function(){var e;h.activeindex=2*h.loopedslides||h.activeindex>h.slides.length-2*h.params.slidesperview)&&(e=-h.slides.length+h.activeindex+h.loopedslides,e+=h.loopedslides,h.slideto(e,0,!1,!0))},h.appendslide=function(e){if(h.params.loop&&h.destroyloop(),"object"==typeof e&&e.length)for(var a=0;aa&&t--;t=math.max(t,0)}else a=e,h.slides[a]&&h.slides.eq(a).remove(),t>a&&t--,t=math.max(t,0);h.params.observer&&h.support.observer||h.update(!0),h.slideto(t,0,!1)},h.removeallslides=function(){for(var e=[],a=0;a'),h.wrapper.append(e)),e.css({height:h.width+"px"})):(e=h.container.find(".swiper-cube-shadow"),0===e.length&&(e=f('
'),h.container.append(e))));for(var t=0;t=o&&o>-1&&(a=90*t+90*o,h.rtl&&(a=90*-t-90*o)),s.transform(u),h.params.cube.slideshadows){var c=s.find(r()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),m=s.find(r()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===c.length&&(c=f('
'),s.append(c)),0===m.length&&(m=f('
'),s.append(m));{s[0].progress}c.length&&(c[0].style.opacity=-s[0].progress),m.length&&(m[0].style.opacity=s[0].progress)}}if(h.wrapper.css({"-webkit-transform-origin":"50% 50% -"+h.size/2+"px","-moz-transform-origin":"50% 50% -"+h.size/2+"px","-ms-transform-origin":"50% 50% -"+h.size/2+"px","transform-origin":"50% 50% -"+h.size/2+"px"}),h.params.cube.shadow)if(r())e.transform("translate3d(0px, "+(h.width/2+h.params.cube.shadowoffset)+"px, "+-h.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+h.params.cube.shadowscale+")");else{var g=math.abs(a)-90*math.floor(math.abs(a)/90),v=1.5-(math.sin(2*g*math.pi/360)/2+math.cos(2*g*math.pi/360)/2),w=h.params.cube.shadowscale,t=h.params.cube.shadowscale/v,b=h.params.cube.shadowoffset;e.transform("scale3d("+w+", 1, "+t+") translate3d(0px, "+(h.height/2+b)+"px, "+-h.height/2/t+"px) rotatex(-90deg)")}var x=h.issafari||h.isuiwebview?-h.size/2:0;h.wrapper.transform("translate3d(0px,0,"+x+"px) rotatex("+(r()?0:a)+"deg) rotatey("+(r()?-a:0)+"deg)")},settransition:function(e){h.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),h.params.cube.shadow&&!r()&&h.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var e=h.translate,a=r()?-e+h.width/2:-e+h.height/2,t=r()?h.params.coverflow.rotate:-h.params.coverflow.rotate,s=h.params.coverflow.depth,i=0,n=h.slides.length;n>i;i++){var o=h.slides.eq(i),l=h.slidessizesgrid[i],d=o[0].swiperslideoffset,p=(a-d-l/2)/l*h.params.coverflow.modifier,u=r()?t*p:0,c=r()?0:t*p,m=-s*math.abs(p),g=r()?0:h.params.coverflow.stretch*p,v=r()?h.params.coverflow.stretch*p:0;math.abs(v)<.001&&(v=0),math.abs(g)<.001&&(g=0),math.abs(m)<.001&&(m=0),math.abs(u)<.001&&(u=0),math.abs(c)<.001&&(c=0);var w="translate3d("+v+"px,"+g+"px,"+m+"px) rotatex("+c+"deg) rotatey("+u+"deg)";if(o.transform(w),o[0].style.zindex=-math.abs(math.round(p))+1,h.params.coverflow.slideshadows){var t=o.find(r()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),b=o.find(r()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===t.length&&(t=f('
'),o.append(t)),0===b.length&&(b=f('
'),o.append(b)),t.length&&(t[0].style.opacity=p>0?p:0),b.length&&(b[0].style.opacity=-p>0?-p:0)}}if(window.navigator.pointerenabled||window.navigator.mspointerenabled){var x=h.wrapper.style;x.perspectiveorigin=a+"px 50%"}},settransition:function(e){h.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},h.lazy={initialimageloaded:!1,loadimageinslide:function(e){if("undefined"!=typeof e&&0!==h.slides.length){var a=h.slides.eq(e),t=a.find("img.swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");0!==t.length&&t.each(function(){var e=f(this);e.addclass("swiper-lazy-loading");var t=e.attr("data-src");h.loadimage(e[0],t,!1,function(){e.attr("src",t),e.removeattr("data-src"),e.addclass("swiper-lazy-loaded").removeclass("swiper-lazy-loading"),a.find(".swiper-lazy-preloader, .preloader").remove(),h.params.onlazyimageloaded&&h.params.onlazyimageloaded(h,a[0],e[0])}),h.params.onlazyimageload&&h.params.onlazyimageload(h,a[0],e[0])})}},load:function(){if(h.params.watchslidesvisibility)h.wrapper.children("."+h.params.slidevisibleclass).each(function(){h.lazy.loadimageinslide(f(this).index())});else if(h.params.slidesperview>1)for(var e=h.activeindex;e0&&h.lazy.loadimageinslide(a.index());var t=h.wrapper.children("."+h.params.slideprevclass);t.length>0&&h.loadimageinslide(t.index())}},ontransitionstart:function(){h.params.lazyloading&&(h.params.lazyloadingontransitionstart||!h.params.lazyloadingontransitionstart&&!h.lazy.initialimageloaded)&&(h.lazy.initialimageloaded=!0,h.lazy.load())},ontransitionend:function(){h.params.lazyloading&&!h.params.lazyloadingontransitionstart&&h.lazy.load()}},h.scrollbar={set:function(){if(h.params.scrollbar){var e=h.scrollbar;e.track=f(h.params.scrollbar),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=f('
'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.tracksize=r()?e.track[0].offsetwidth:e.track[0].offsetheight,e.divider=h.size/h.virtualwidth,e.movedivider=e.divider*(e.tracksize/h.size),e.dragsize=e.tracksize*e.divider,r()?e.drag[0].style.width=e.dragsize+"px":e.drag[0].style.height=e.dragsize+"px",e.track[0].style.display=e.divider>=1?"none":"",h.params.scrollbarhide&&(e.track[0].style.opacity=0)}},settranslate:function(){if(h.params.scrollbar){var e,a=h.scrollbar,t=(h.translate||0,a.dragsize);e=(a.tracksize-a.dragsize)*h.progress,h.rtl&&r()?(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),r()?(a.drag.transform("translate3d("+e+"px, 0, 0)"),a.drag[0].style.width=t+"px"):(a.drag.transform("translate3d(0px, "+e+"px, 0)"),a.drag[0].style.height=t+"px"),h.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){h.params.scrollbar&&h.scrollbar.drag.transition(e)}},h.controller={settranslate:function(e,a){var t,r,s=h.params.control;if(h.isarray(s))for(var i=0;it;t++){var s=h.slides.eq(t),i=s.attr("data-hash");if(i===e&&!s.hasclass(h.params.slideduplicateclass)){var n=s.index();h.slideto(n,a,h.params.runcallbacksoninit,!0)}}}},sethash:function(){h.hashnav.initialized&&h.params.hashnav&&(document.location.hash=h.slides.eq(h.activeindex).attr("data-hash")||"")}},h.disablekeyboardcontrol=function(){f(document).off("keydown",o)},h.enablekeyboardcontrol=function(){f(document).on("keydown",o)},h._wheelevent=!1,h._lastwheelscrolltime=(new date).gettime(),h.params.mousewheelcontrol){if(void 0!==document.onmousewheel&&(h._wheelevent="mousewheel"),!h._wheelevent)try{new wheelevent("wheel"),h._wheelevent="wheel"}catch(i){}h._wheelevent||(h._wheelevent="dommousescroll")}return h.disablemousewheelcontrol=function(){return h._wheelevent?(h.container.off(h._wheelevent,l),!0):!1},h.enablemousewheelcontrol=function(){return h._wheelevent?(h.container.on(h._wheelevent,l),!0):!1},h.parallax={settranslate:function(){h.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){d(this,h.progress)}),h.slides.each(function(){var e=f(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);d(this,a)})})},settransition:function(e){"undefined"==typeof e&&(e=h.params.speed),h.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=f(this),t=parseint(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(t=0),a.transition(t)})}},h.init=function(){h.params.loop&&h.createloop(),h.updatecontainersize(),h.updateslidessize(),h.updatepagination(),h.params.scrollbar&&h.scrollbar&&h.scrollbar.set(),"slide"!==h.params.effect&&h.effects[h.params.effect]&&(h.params.loop||h.updateprogress(),h.effects[h.params.effect].settranslate()),h.params.loop?h.slideto(h.params.initialslide+h.loopedslides,0,h.params.runcallbacksoninit):(h.slideto(h.params.initialslide,0,h.params.runcallbacksoninit),0===h.params.initialslide&&(h.parallax&&h.params.parallax&&h.parallax.settranslate(),h.lazy&&h.params.lazyloading&&h.lazy.load())),h.attachevents(),h.params.observer&&h.support.observer&&h.initobservers(),h.params.preloadimages&&!h.params.lazyloading&&h.preloadimages(),h.params.autoplay&&h.startautoplay(),h.params.keyboardcontrol&&h.enablekeyboardcontrol&&h.enablekeyboardcontrol(),h.params.mousewheelcontrol&&h.enablemousewheelcontrol&&h.enablemousewheelcontrol(),h.params.hashnav&&h.hashnav&&h.hashnav.init(),h.params.oninit&&h.params.oninit(h)},h.destroy=function(e){h.detachevents(),h.disconnectobservers(),h.params.keyboardcontrol&&h.disablekeyboardcontrol&&h.disablekeyboardcontrol(),h.params.mousewheelcontrol&&h.disablemousewheelcontrol&&h.disablemousewheelcontrol(),h.params.ondestroy&&h.params.ondestroy(),e!==!1&&(h=null)},h.init(),h}},swiper.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},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_]+))?/),!t&&e.match(/(iphone\sos)\s([\d_]+)/));return{ios:t||r||t,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="webkitbox msflexbox msflexbox webkitflex mozbox flex".split(" "),t=0;t=0&&o.indexof(">")>=0){var l="div";for(0===o.indexof(":~]/)?(t||document).queryselectorall(a):[document.getelementbyid(a.split("#")[1])],s=0;s0&&a[0].nodetype)for(s=0;s0?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,r=e.clienttop||t.clienttop||0,s=e.clientleft||t.clientleft||0,i=window.pageyoffset||e.scrolltop,n=window.pagexoffset||e.scrollleft;return{top:a.top+i-r,left:a.left+n-s}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;tr-1?new e([]):0>a?(t=r+a,new e(0>t?[]:[this[t]])):new e([this[a]])},append:function(a){var t,r;for(t=0;t=0;r--)this[t].insertbefore(s.childnodes[r],this[t].childnodes[0])}else if(a instanceof e)for(r=0;r1)for(var s=0;s1)for(var s=0;s0?t?this[0].nextelementsibling&&a(this[0].nextelementsibling).is(t)?[this[0].nextelementsibling]:[]:this[0].nextelementsibling?[this[0].nextelementsibling]:[]:[])},nextall:function(t){var r=[],s=this[0];if(!s)return new e([]);for(;s.nextelementsibling;){var i=s.nextelementsibling;t?a(i).is(t)&&r.push(i):r.push(i),s=i}return new e(r)},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 r=[],s=this[0];if(!s)return new e([]);for(;s.previouselementsibling;){var i=s.previouselementsibling;t?a(i).is(t)&&r.push(i):r.push(i),s=i}return new e(r)},parent:function(e){for(var t=[],r=0;r