"use strict";!function(){var e,a,t,i=function a(t,i){if(!(this instanceof a))return new a(t,i);var r={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},n=i&&i.virtualTranslate;i=i||{};var o={};for(var l in i)if("object"!=typeof i[l]||null===i[l]||(i[l].nodeType||i[l]===window||i[l]===document||void 0!==s&&i[l]instanceof s||"undefined"!=typeof jQuery&&i[l]instanceof jQuery))o[l]=i[l];else for(var p in o[l]={},i[l])o[l][p]=i[l][p];for(var d in r)if(void 0===i[d])i[d]=r[d];else if("object"==typeof i[d])for(var u in r[d])void 0===i[d][u]&&(i[d][u]=r[d][u]);var c=this;if(c.params=i,c.originalParams=o,c.classNames=[],void 0!==e&&void 0!==s&&(e=s),(void 0!==e||(e=void 0===s?window.Dom7||window.Zepto||window.jQuery:s))&&(c.$=e,c.currentBreakpoint=void 0,c.getActiveBreakpoint=function(){if(!c.params.breakpoints)return!1;var e,a=!1,t=[];for(e in c.params.breakpoints)c.params.breakpoints.hasOwnProperty(e)&&t.push(e);t.sort(function(e,a){return parseInt(e,10)>parseInt(a,10)});for(var i=0;i=window.innerWidth&&!a&&(a=e);return a||"max"},c.setBreakpoint=function(){var e=c.getActiveBreakpoint();if(e&&c.currentBreakpoint!==e){var a=e in c.params.breakpoints?c.params.breakpoints[e]:c.originalParams,t=c.params.loop&&a.slidesPerView!==c.params.slidesPerView;for(var i in a)c.params[i]=a[i];c.currentBreakpoint=e,t&&c.destroyLoop&&c.reLoop(!0)}},c.params.breakpoints&&c.setBreakpoint(),c.container=e(t),0!==c.container.length)){if(c.container.length>1){var m=[];return c.container.each(function(){m.push(new a(this,i))}),m}c.container[0].swiper=c,c.container.data("swiper",c),c.classNames.push("swiper-container-"+c.params.direction),c.params.freeMode&&c.classNames.push("swiper-container-free-mode"),c.support.flexbox||(c.classNames.push("swiper-container-no-flexbox"),c.params.slidesPerColumn=1),c.params.autoHeight&&c.classNames.push("swiper-container-autoheight"),(c.params.parallax||c.params.watchSlidesVisibility)&&(c.params.watchSlidesProgress=!0),["cube","coverflow","flip"].indexOf(c.params.effect)>=0&&(c.support.transforms3d?(c.params.watchSlidesProgress=!0,c.classNames.push("swiper-container-3d")):c.params.effect="slide"),"slide"!==c.params.effect&&c.classNames.push("swiper-container-"+c.params.effect),"cube"===c.params.effect&&(c.params.resistanceRatio=0,c.params.slidesPerView=1,c.params.slidesPerColumn=1,c.params.slidesPerGroup=1,c.params.centeredSlides=!1,c.params.spaceBetween=0,c.params.virtualTranslate=!0,c.params.setWrapperSize=!1),"fade"!==c.params.effect&&"flip"!==c.params.effect||(c.params.slidesPerView=1,c.params.slidesPerColumn=1,c.params.slidesPerGroup=1,c.params.watchSlidesProgress=!0,c.params.spaceBetween=0,c.params.setWrapperSize=!1,void 0===n&&(c.params.virtualTranslate=!0)),c.params.grabCursor&&c.support.touch&&(c.params.grabCursor=!1),c.wrapper=c.container.children("."+c.params.wrapperClass),c.params.pagination&&(c.paginationContainer=e(c.params.pagination),c.params.uniqueNavElements&&"string"==typeof c.params.pagination&&c.paginationContainer.length>1&&1===c.container.find(c.params.pagination).length&&(c.paginationContainer=c.container.find(c.params.pagination)),"bullets"===c.params.paginationType&&c.params.paginationClickable?c.paginationContainer.addClass("swiper-pagination-clickable"):c.params.paginationClickable=!1,c.paginationContainer.addClass("swiper-pagination-"+c.params.paginationType)),(c.params.nextButton||c.params.prevButton)&&(c.params.nextButton&&(c.nextButton=e(c.params.nextButton),c.params.uniqueNavElements&&"string"==typeof c.params.nextButton&&c.nextButton.length>1&&1===c.container.find(c.params.nextButton).length&&(c.nextButton=c.container.find(c.params.nextButton))),c.params.prevButton&&(c.prevButton=e(c.params.prevButton),c.params.uniqueNavElements&&"string"==typeof c.params.prevButton&&c.prevButton.length>1&&1===c.container.find(c.params.prevButton).length&&(c.prevButton=c.container.find(c.params.prevButton)))),c.isHorizontal=function(){return"horizontal"===c.params.direction},c.rtl=c.isHorizontal()&&("rtl"===c.container[0].dir.toLowerCase()||"rtl"===c.container.css("direction")),c.rtl&&c.classNames.push("swiper-container-rtl"),c.rtl&&(c.wrongRTL="-webkit-box"===c.wrapper.css("display")),c.params.slidesPerColumn>1&&c.classNames.push("swiper-container-multirow"),c.device.android&&c.classNames.push("swiper-container-android"),c.container.addClass(c.classNames.join(" ")),c.translate=0,c.progress=0,c.velocity=0,c.lockSwipeToNext=function(){c.params.allowSwipeToNext=!1},c.lockSwipeToPrev=function(){c.params.allowSwipeToPrev=!1},c.lockSwipes=function(){c.params.allowSwipeToNext=c.params.allowSwipeToPrev=!1},c.unlockSwipeToNext=function(){c.params.allowSwipeToNext=!0},c.unlockSwipeToPrev=function(){c.params.allowSwipeToPrev=!0},c.unlockSwipes=function(){c.params.allowSwipeToNext=c.params.allowSwipeToPrev=!0},c.params.grabCursor&&(c.container[0].style.cursor="move",c.container[0].style.cursor="-webkit-grab",c.container[0].style.cursor="-moz-grab",c.container[0].style.cursor="grab"),c.imagesToLoad=[],c.imagesLoaded=0,c.loadImage=function(e,a,t,i,r){var s;function n(){r&&r()}e.complete&&i?n():a?((s=new window.Image).onload=n,s.onerror=n,t&&(s.srcset=t),a&&(s.src=a)):n()},c.preloadImages=function(){function e(){void 0!==c&&null!==c&&(void 0!==c.imagesLoaded&&c.imagesLoaded++,c.imagesLoaded===c.imagesToLoad.length&&(c.params.updateOnImagesReady&&c.update(),c.emit("onImagesReady",c)))}c.imagesToLoad=c.container.find("img");for(var a=0;a=0&&(a=parseFloat(a.replace("%",""))/100*c.size),c.virtualSize=-a,c.rtl?c.slides.css({marginLeft:"",marginTop:""}):c.slides.css({marginRight:"",marginBottom:""}),c.params.slidesPerColumn>1&&(s=Math.floor(c.slides.length/c.params.slidesPerColumn)===c.slides.length/c.params.slidesPerColumn?c.slides.length:Math.ceil(c.slides.length/c.params.slidesPerColumn)*c.params.slidesPerColumn,"auto"!==c.params.slidesPerView&&"row"===c.params.slidesPerColumnFill&&(s=Math.max(s,c.params.slidesPerView*c.params.slidesPerColumn)));var o,l=c.params.slidesPerColumn,p=s/l,d=p-(c.params.slidesPerColumn*p-c.slides.length);for(e=0;e1)"column"===c.params.slidesPerColumnFill?(h=e-(m=Math.floor(e/l))*l,(m>d||m===d&&h===l-1)&&++h>=l&&(h=0,m++),u=m+h*s/l,f.css({"-webkit-box-ordinal-group":u,"-moz-box-ordinal-group":u,"-ms-flex-order":u,"-webkit-order":u,order:u})):m=e-(h=Math.floor(e/p))*p,f.css({"margin-top":0!==h&&c.params.spaceBetween&&c.params.spaceBetween+"px"}).attr("data-swiper-column",m).attr("data-swiper-row",h);"none"!==f.css("display")&&("auto"===c.params.slidesPerView?(n=c.isHorizontal()?f.outerWidth(!0):f.outerHeight(!0),c.params.roundLengths&&(n=B(n))):(n=(c.size-(c.params.slidesPerView-1)*a)/c.params.slidesPerView,c.params.roundLengths&&(n=B(n)),c.isHorizontal()?c.slides[e].style.width=n+"px":c.slides[e].style.height=n+"px"),c.slides[e].swiperSlideSize=n,c.slidesSizesGrid.push(n),c.params.centeredSlides?(t=t+n/2+i/2+a,0===e&&(t=t-c.size/2-a),Math.abs(t)<.001&&(t=0),r%c.params.slidesPerGroup==0&&c.snapGrid.push(t),c.slidesGrid.push(t)):(r%c.params.slidesPerGroup==0&&c.snapGrid.push(t),c.slidesGrid.push(t),t=t+n+a),c.virtualSize+=n+a,i=n,r++)}if(c.virtualSize=Math.max(c.virtualSize,c.size)+c.params.slidesOffsetAfter,c.rtl&&c.wrongRTL&&("slide"===c.params.effect||"coverflow"===c.params.effect)&&c.wrapper.css({width:c.virtualSize+c.params.spaceBetween+"px"}),c.support.flexbox&&!c.params.setWrapperSize||(c.isHorizontal()?c.wrapper.css({width:c.virtualSize+c.params.spaceBetween+"px"}):c.wrapper.css({height:c.virtualSize+c.params.spaceBetween+"px"})),c.params.slidesPerColumn>1&&(c.virtualSize=(n+c.params.spaceBetween)*s,c.virtualSize=Math.ceil(c.virtualSize/c.params.slidesPerColumn)-c.params.spaceBetween,c.wrapper.css({width:c.virtualSize+c.params.spaceBetween+"px"}),c.params.centeredSlides)){for(o=[],e=0;e1&&c.snapGrid.push(c.virtualSize-c.size)}0===c.snapGrid.length&&(c.snapGrid=[0]),0!==c.params.spaceBetween&&(c.isHorizontal()?c.rtl?c.slides.css({marginLeft:a+"px"}):c.slides.css({marginRight:a+"px"}):c.slides.css({marginBottom:a+"px"})),c.params.watchSlidesProgress&&c.updateSlidesOffset()}},c.updateSlidesOffset=function(){for(var e=0;e=0&&s0&&n<=c.size||s<=0&&n>=c.size)&&c.slides.eq(t).addClass(c.params.slideVisibleClass)}i.progress=c.rtl?-r:r}}},c.updateProgress=function(e){void 0===e&&(e=c.translate||0);var a=c.maxTranslate()-c.minTranslate(),t=c.isBeginning,i=c.isEnd;0===a?(c.progress=0,c.isBeginning=c.isEnd=!0):(c.progress=(e-c.minTranslate())/a,c.isBeginning=c.progress<=0,c.isEnd=c.progress>=1),c.isBeginning&&!t&&c.emit("onReachBeginning",c),c.isEnd&&!i&&c.emit("onReachEnd",c),c.params.watchSlidesProgress&&c.updateSlidesProgress(e),c.emit("onProgress",c,c.progress)},c.updateActiveIndex=function(){var e,a,t,i=c.rtl?c.translate:-c.translate;for(a=0;a=c.slidesGrid[a]&&i=c.slidesGrid[a]&&i=c.slidesGrid[a]&&(e=a);(e<0||void 0===e)&&(e=0),(t=Math.floor(e/c.params.slidesPerGroup))>=c.snapGrid.length&&(t=c.snapGrid.length-1),e!==c.activeIndex&&(c.snapIndex=t,c.previousIndex=c.activeIndex,c.activeIndex=e,c.updateClasses())},c.updateClasses=function(){c.slides.removeClass(c.params.slideActiveClass+" "+c.params.slideNextClass+" "+c.params.slidePrevClass);var a=c.slides.eq(c.activeIndex);a.addClass(c.params.slideActiveClass);var t=a.next("."+c.params.slideClass).addClass(c.params.slideNextClass);c.params.loop&&0===t.length&&c.slides.eq(0).addClass(c.params.slideNextClass);var i=a.prev("."+c.params.slideClass).addClass(c.params.slidePrevClass);if(c.params.loop&&0===i.length&&c.slides.eq(-1).addClass(c.params.slidePrevClass),c.paginationContainer&&c.paginationContainer.length>0){var r,s=c.params.loop?Math.ceil((c.slides.length-2*c.loopedSlides)/c.params.slidesPerGroup):c.snapGrid.length;if(c.params.loop?((r=Math.ceil((c.activeIndex-c.loopedSlides)/c.params.slidesPerGroup))>c.slides.length-1-2*c.loopedSlides&&(r-=c.slides.length-2*c.loopedSlides),r>s-1&&(r-=s),r<0&&"bullets"!==c.params.paginationType&&(r=s+r)):r=void 0!==c.snapIndex?c.snapIndex:c.activeIndex||0,"bullets"===c.params.paginationType&&c.bullets&&c.bullets.length>0&&(c.bullets.removeClass(c.params.bulletActiveClass),c.paginationContainer.length>1?c.bullets.each(function(){e(this).index()===r&&e(this).addClass(c.params.bulletActiveClass)}):c.bullets.eq(r).addClass(c.params.bulletActiveClass)),"fraction"===c.params.paginationType&&(c.paginationContainer.find("."+c.params.paginationCurrentClass).text(r+1),c.paginationContainer.find("."+c.params.paginationTotalClass).text(s)),"progress"===c.params.paginationType){var n=(r+1)/s,o=n,l=1;c.isHorizontal()||(l=n,o=1),c.paginationContainer.find("."+c.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+o+") scaleY("+l+")").transition(c.params.speed)}"custom"===c.params.paginationType&&c.params.paginationCustomRender&&(c.paginationContainer.html(c.params.paginationCustomRender(c,r+1,s)),c.emit("onPaginationRendered",c,c.paginationContainer[0]))}c.params.loop||(c.params.prevButton&&c.prevButton&&c.prevButton.length>0&&(c.isBeginning?(c.prevButton.addClass(c.params.buttonDisabledClass),c.params.a11y&&c.a11y&&c.a11y.disable(c.prevButton)):(c.prevButton.removeClass(c.params.buttonDisabledClass),c.params.a11y&&c.a11y&&c.a11y.enable(c.prevButton))),c.params.nextButton&&c.nextButton&&c.nextButton.length>0&&(c.isEnd?(c.nextButton.addClass(c.params.buttonDisabledClass),c.params.a11y&&c.a11y&&c.a11y.disable(c.nextButton)):(c.nextButton.removeClass(c.params.buttonDisabledClass),c.params.a11y&&c.a11y&&c.a11y.enable(c.nextButton))))},c.updatePagination=function(){if(c.params.pagination&&c.paginationContainer&&c.paginationContainer.length>0){var e="";if("bullets"===c.params.paginationType){for(var a=c.params.loop?Math.ceil((c.slides.length-2*c.loopedSlides)/c.params.slidesPerGroup):c.snapGrid.length,t=0;t";c.paginationContainer.html(e),c.bullets=c.paginationContainer.find("."+c.params.bulletClass),c.params.paginationClickable&&c.params.a11y&&c.a11y&&c.a11y.initPagination()}"fraction"===c.params.paginationType&&(e=c.params.paginationFractionRender?c.params.paginationFractionRender(c,c.params.paginationCurrentClass,c.params.paginationTotalClass):' / ',c.paginationContainer.html(e)),"progress"===c.params.paginationType&&(e=c.params.paginationProgressRender?c.params.paginationProgressRender(c,c.params.paginationProgressbarClass):'',c.paginationContainer.html(e)),"custom"!==c.params.paginationType&&c.emit("onPaginationRendered",c,c.paginationContainer[0])}},c.update=function(e){function a(){t=Math.min(Math.max(c.translate,c.maxTranslate()),c.minTranslate()),c.setWrapperTranslate(t),c.updateActiveIndex(),c.updateClasses()}var t;(c.updateContainerSize(),c.updateSlidesSize(),c.updateProgress(),c.updatePagination(),c.updateClasses(),c.params.scrollbar&&c.scrollbar&&c.scrollbar.set(),e)?(c.controller&&c.controller.spline&&(c.controller.spline=void 0),c.params.freeMode?(a(),c.params.autoHeight&&c.updateAutoHeight()):(("auto"===c.params.slidesPerView||c.params.slidesPerView>1)&&c.isEnd&&!c.params.centeredSlides?c.slideTo(c.slides.length-1,0,!1,!0):c.slideTo(c.activeIndex,0,!1,!0))||a()):c.params.autoHeight&&c.updateAutoHeight()},c.onResize=function(e){c.params.breakpoints&&c.setBreakpoint();var a=c.params.allowSwipeToPrev,t=c.params.allowSwipeToNext;c.params.allowSwipeToPrev=c.params.allowSwipeToNext=!0,c.updateContainerSize(),c.updateSlidesSize(),("auto"===c.params.slidesPerView||c.params.freeMode||e)&&c.updatePagination(),c.params.scrollbar&&c.scrollbar&&c.scrollbar.set(),c.controller&&c.controller.spline&&(c.controller.spline=void 0);var i=!1;if(c.params.freeMode){var r=Math.min(Math.max(c.translate,c.maxTranslate()),c.minTranslate());c.setWrapperTranslate(r),c.updateActiveIndex(),c.updateClasses(),c.params.autoHeight&&c.updateAutoHeight()}else c.updateClasses(),i=("auto"===c.params.slidesPerView||c.params.slidesPerView>1)&&c.isEnd&&!c.params.centeredSlides?c.slideTo(c.slides.length-1,0,!1,!0):c.slideTo(c.activeIndex,0,!1,!0);c.params.lazyLoading&&!i&&c.lazy&&c.lazy.load(),c.params.allowSwipeToPrev=a,c.params.allowSwipeToNext=t};var h=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?h=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(h=["MSPointerDown","MSPointerMove","MSPointerUp"]),c.touchEvents={start:c.support.touch||!c.params.simulateTouch?"touchstart":h[0],move:c.support.touch||!c.params.simulateTouch?"touchmove":h[1],end:c.support.touch||!c.params.simulateTouch?"touchend":h[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===c.params.touchEventsTarget?c.container:c.wrapper).addClass("swiper-wp8-"+c.params.direction),c.initEvents=function(e){var a=e?"off":"on",t=e?"removeEventListener":"addEventListener",r="container"===c.params.touchEventsTarget?c.container[0]:c.wrapper[0],s=c.support.touch?r:document,n=!!c.params.nested;c.browser.ie?(r[t](c.touchEvents.start,c.onTouchStart,!1),s[t](c.touchEvents.move,c.onTouchMove,n),s[t](c.touchEvents.end,c.onTouchEnd,!1)):(c.support.touch&&(r[t](c.touchEvents.start,c.onTouchStart,!1),r[t](c.touchEvents.move,c.onTouchMove,n),r[t](c.touchEvents.end,c.onTouchEnd,!1)),!i.simulateTouch||c.device.ios||c.device.android||(r[t]("mousedown",c.onTouchStart,!1),document[t]("mousemove",c.onTouchMove,n),document[t]("mouseup",c.onTouchEnd,!1))),window[t]("resize",c.onResize),c.params.nextButton&&c.nextButton&&c.nextButton.length>0&&(c.nextButton[a]("click",c.onClickNext),c.params.a11y&&c.a11y&&c.nextButton[a]("keydown",c.a11y.onEnterKey)),c.params.prevButton&&c.prevButton&&c.prevButton.length>0&&(c.prevButton[a]("click",c.onClickPrev),c.params.a11y&&c.a11y&&c.prevButton[a]("keydown",c.a11y.onEnterKey)),c.params.pagination&&c.params.paginationClickable&&(c.paginationContainer[a]("click","."+c.params.bulletClass,c.onClickIndex),c.params.a11y&&c.a11y&&c.paginationContainer[a]("keydown","."+c.params.bulletClass,c.a11y.onEnterKey)),(c.params.preventClicks||c.params.preventClicksPropagation)&&r[t]("click",c.preventClicks,!0)},c.attachEvents=function(){c.initEvents()},c.detachEvents=function(){c.initEvents(!0)},c.allowClick=!0,c.preventClicks=function(e){c.allowClick||(c.params.preventClicks&&e.preventDefault(),c.params.preventClicksPropagation&&c.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},c.onClickNext=function(e){e.preventDefault(),c.isEnd&&!c.params.loop||c.slideNext()},c.onClickPrev=function(e){e.preventDefault(),c.isBeginning&&!c.params.loop||c.slidePrev()},c.onClickIndex=function(a){a.preventDefault();var t=e(this).index()*c.params.slidesPerGroup;c.params.loop&&(t+=c.loopedSlides),c.slideTo(t)},c.updateClickedSlide=function(a){var t=H(a,"."+c.params.slideClass),i=!1;if(t)for(var r=0;rc.slides.length-c.loopedSlides+c.params.slidesPerView/2?(c.fixLoop(),n=c.wrapper.children("."+c.params.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){c.slideTo(n)},0)):c.slideTo(n):n>c.slides.length-c.params.slidesPerView?(c.fixLoop(),n=c.wrapper.children("."+c.params.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){c.slideTo(n)},0)):c.slideTo(n)}else c.slideTo(n)}};var f,g,v,w,b,y,x,T,S,C,z,M,E="input, select, textarea, button",P=Date.now(),k=[];if(c.animating=!1,c.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0},c.onTouchStart=function(a){if(a.originalEvent&&(a=a.originalEvent),(z="touchstart"===a.type)||!("which"in a)||3!==a.which)if(c.params.noSwiping&&H(a,"."+c.params.noSwipingClass))c.allowClick=!0;else if(!c.params.swipeHandler||H(a,c.params.swipeHandler)){var t=c.touches.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,i=c.touches.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;if(!(c.device.ios&&c.params.iOSEdgeSwipeDetection&&t<=c.params.iOSEdgeSwipeThreshold)){if(f=!0,g=!1,v=!0,b=void 0,M=void 0,c.touches.startX=t,c.touches.startY=i,w=Date.now(),c.allowClick=!0,c.updateContainerSize(),c.swipeDirection=void 0,c.params.threshold>0&&(T=!1),"touchstart"!==a.type){var r=!0;e(a.target).is(E)&&(r=!1),document.activeElement&&e(document.activeElement).is(E)&&document.activeElement.blur(),r&&a.preventDefault()}c.emit("onTouchStart",c,a)}}},c.onTouchMove=function(a){if(a.originalEvent&&(a=a.originalEvent),!z||"mousemove"!==a.type){if(a.preventedByNestedSwiper)return c.touches.startX="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,void(c.touches.startY="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY);if(c.params.onlyExternal)return c.allowClick=!1,void(f&&(c.touches.startX=c.touches.currentX="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,c.touches.startY=c.touches.currentY="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY,w=Date.now()));if(z&&document.activeElement&&a.target===document.activeElement&&e(a.target).is(E))return g=!0,void(c.allowClick=!1);if(v&&c.emit("onTouchMove",c,a),!(a.targetTouches&&a.targetTouches.length>1)){if(c.touches.currentX="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,c.touches.currentY="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY,void 0===b){var t=180*Math.atan2(Math.abs(c.touches.currentY-c.touches.startY),Math.abs(c.touches.currentX-c.touches.startX))/Math.PI;b=c.isHorizontal()?t>c.params.touchAngle:90-t>c.params.touchAngle}if(b&&c.emit("onTouchMoveOpposite",c,a),void 0===M&&c.browser.ieTouch&&(c.touches.currentX===c.touches.startX&&c.touches.currentY===c.touches.startY||(M=!0)),f)if(b)f=!1;else if(M||!c.browser.ieTouch){c.allowClick=!1,c.emit("onSliderMove",c,a),a.preventDefault(),c.params.touchMoveStopPropagation&&!c.params.nested&&a.stopPropagation(),g||(i.loop&&c.fixLoop(),x=c.getWrapperTranslate(),c.setWrapperTransition(0),c.animating&&c.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),c.params.autoplay&&c.autoplaying&&(c.params.autoplayDisableOnInteraction?c.stopAutoplay():c.pauseAutoplay()),C=!1,c.params.grabCursor&&(c.container[0].style.cursor="move",c.container[0].style.cursor="-webkit-grabbing",c.container[0].style.cursor="-moz-grabbin",c.container[0].style.cursor="grabbing")),g=!0;var r=c.touches.diff=c.isHorizontal()?c.touches.currentX-c.touches.startX:c.touches.currentY-c.touches.startY;r*=c.params.touchRatio,c.rtl&&(r=-r),c.swipeDirection=r>0?"prev":"next",y=r+x;var s=!0;if(r>0&&y>c.minTranslate()?(s=!1,c.params.resistance&&(y=c.minTranslate()-1+Math.pow(-c.minTranslate()+x+r,c.params.resistanceRatio))):r<0&&yx&&(y=x),c.params.followFinger){if(c.params.threshold>0){if(!(Math.abs(r)>c.params.threshold||T))return void(y=x);if(!T)return T=!0,c.touches.startX=c.touches.currentX,c.touches.startY=c.touches.currentY,y=x,void(c.touches.diff=c.isHorizontal()?c.touches.currentX-c.touches.startX:c.touches.currentY-c.touches.startY)}(c.params.freeMode||c.params.watchSlidesProgress)&&c.updateActiveIndex(),c.params.freeMode&&(0===k.length&&k.push({position:c.touches[c.isHorizontal()?"startX":"startY"],time:w}),k.push({position:c.touches[c.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),c.updateProgress(y),c.setWrapperTranslate(y)}}}}},c.onTouchEnd=function(a){if(a.originalEvent&&(a=a.originalEvent),v&&c.emit("onTouchEnd",c,a),v=!1,f){c.params.grabCursor&&g&&f&&(c.container[0].style.cursor="move",c.container[0].style.cursor="-webkit-grab",c.container[0].style.cursor="-moz-grab",c.container[0].style.cursor="grab");var t,i=Date.now(),r=i-w;if(c.allowClick&&(c.updateClickedSlide(a),c.emit("onTap",c,a),r<300&&i-P>300&&(S&&clearTimeout(S),S=setTimeout(function(){c&&(c.params.paginationHide&&c.paginationContainer.length>0&&!e(a.target).hasClass(c.params.bulletClass)&&c.paginationContainer.toggleClass(c.params.paginationHiddenClass),c.emit("onClick",c,a))},300)),r<300&&i-P<300&&(S&&clearTimeout(S),c.emit("onDoubleTap",c,a))),P=Date.now(),setTimeout(function(){c&&(c.allowClick=!0)},0),f&&g&&c.swipeDirection&&0!==c.touches.diff&&y!==x)if(f=g=!1,t=c.params.followFinger?c.rtl?c.translate:-c.translate:-y,c.params.freeMode){if(t<-c.minTranslate())return void c.slideTo(c.activeIndex);if(t>-c.maxTranslate())return void(c.slides.length1){var s=k.pop(),n=k.pop(),o=s.position-n.position,l=s.time-n.time;c.velocity=o/l,c.velocity=c.velocity/2,Math.abs(c.velocity)150||(new window.Date).getTime()-s.time>300)&&(c.velocity=0)}else c.velocity=0;k.length=0;var p=1e3*c.params.freeModeMomentumRatio,d=c.velocity*p,u=c.translate+d;c.rtl&&(u=-u);var m,h=!1,b=20*Math.abs(c.velocity)*c.params.freeModeMomentumBounceRatio;if(uc.minTranslate())c.params.freeModeMomentumBounce?(u-c.minTranslate()>b&&(u=c.minTranslate()+b),m=c.minTranslate(),h=!0,C=!0):u=c.minTranslate();else if(c.params.freeModeSticky){var T,z=0;for(z=0;z-u){T=z;break}u=Math.abs(c.snapGrid[T]-u)=c.params.longSwipesMs)&&(c.updateProgress(),c.updateActiveIndex())}else{var M,E=0,I=c.slidesSizesGrid[0];for(M=0;M=c.slidesGrid[M]&&t=c.slidesGrid[M]&&(E=M,I=c.slidesGrid[c.slidesGrid.length-1]-c.slidesGrid[c.slidesGrid.length-2]);var L=(t-c.slidesGrid[E])/I;if(r>c.params.longSwipesMs){if(!c.params.longSwipes)return void c.slideTo(c.activeIndex);"next"===c.swipeDirection&&(L>=c.params.longSwipesRatio?c.slideTo(E+c.params.slidesPerGroup):c.slideTo(E)),"prev"===c.swipeDirection&&(L>1-c.params.longSwipesRatio?c.slideTo(E+c.params.slidesPerGroup):c.slideTo(E))}else{if(!c.params.shortSwipes)return void c.slideTo(c.activeIndex);"next"===c.swipeDirection&&c.slideTo(E+c.params.slidesPerGroup),"prev"===c.swipeDirection&&c.slideTo(E)}}else f=g=!1}},c._slideTo=function(e,a){return c.slideTo(e,a,!0,!0)},c.slideTo=function(e,a,t,i){void 0===t&&(t=!0),void 0===e&&(e=0),e<0&&(e=0),c.snapIndex=Math.floor(e/c.params.slidesPerGroup),c.snapIndex>=c.snapGrid.length&&(c.snapIndex=c.snapGrid.length-1);var r=-c.snapGrid[c.snapIndex];c.params.autoplay&&c.autoplaying&&(i||!c.params.autoplayDisableOnInteraction?c.pauseAutoplay(a):c.stopAutoplay()),c.updateProgress(r);for(var s=0;s=Math.floor(100*c.slidesGrid[s])&&(e=s);return!(!c.params.allowSwipeToNext&&rc.translate&&r>c.maxTranslate()&&(c.activeIndex||0)!==e)&&(void 0===a&&(a=c.params.speed),c.previousIndex=c.activeIndex||0,c.activeIndex=e,c.rtl&&-r===c.translate||!c.rtl&&r===c.translate?(c.params.autoHeight&&c.updateAutoHeight(),c.updateClasses(),"slide"!==c.params.effect&&c.setWrapperTranslate(r),!1):(c.updateClasses(),c.onTransitionStart(t),0===a?(c.setWrapperTranslate(r),c.setWrapperTransition(0),c.onTransitionEnd(t)):(c.setWrapperTranslate(r),c.setWrapperTransition(a),c.animating||(c.animating=!0,c.wrapper.transitionEnd(function(){c&&c.onTransitionEnd(t)}))),!0)))},c.onTransitionStart=function(e){void 0===e&&(e=!0),c.params.autoHeight&&c.updateAutoHeight(),c.lazy&&c.lazy.onTransitionStart(),e&&(c.emit("onTransitionStart",c),c.activeIndex!==c.previousIndex&&(c.emit("onSlideChangeStart",c),c.activeIndex>c.previousIndex?c.emit("onSlideNextStart",c):c.emit("onSlidePrevStart",c)))},c.onTransitionEnd=function(e){c.animating=!1,c.setWrapperTransition(0),void 0===e&&(e=!0),c.lazy&&c.lazy.onTransitionEnd(),e&&(c.emit("onTransitionEnd",c),c.activeIndex!==c.previousIndex&&(c.emit("onSlideChangeEnd",c),c.activeIndex>c.previousIndex?c.emit("onSlideNextEnd",c):c.emit("onSlidePrevEnd",c))),c.params.hashnav&&c.hashnav&&c.hashnav.setHash()},c.slideNext=function(e,a,t){if(c.params.loop){if(c.animating)return!1;c.fixLoop();c.container[0].clientLeft;return c.slideTo(c.activeIndex+c.params.slidesPerGroup,a,e,t)}return c.slideTo(c.activeIndex+c.params.slidesPerGroup,a,e,t)},c._slideNext=function(e){return c.slideNext(!0,e,!0)},c.slidePrev=function(e,a,t){if(c.params.loop){if(c.animating)return!1;c.fixLoop();c.container[0].clientLeft;return c.slideTo(c.activeIndex-1,a,e,t)}return c.slideTo(c.activeIndex-1,a,e,t)},c._slidePrev=function(e){return c.slidePrev(!0,e,!0)},c.slideReset=function(e,a,t){return c.slideTo(c.activeIndex,a,e)},c.setWrapperTransition=function(e,a){c.wrapper.transition(e),"slide"!==c.params.effect&&c.effects[c.params.effect]&&c.effects[c.params.effect].setTransition(e),c.params.parallax&&c.parallax&&c.parallax.setTransition(e),c.params.scrollbar&&c.scrollbar&&c.scrollbar.setTransition(e),c.params.control&&c.controller&&c.controller.setTransition(e,a),c.emit("onSetTransition",c,e)},c.setWrapperTranslate=function(e,a,t){var i=0,r=0;c.isHorizontal()?i=c.rtl?-e:e:r=e,c.params.roundLengths&&(i=B(i),r=B(r)),c.params.virtualTranslate||(c.support.transforms3d?c.wrapper.transform("translate3d("+i+"px, "+r+"px, 0px)"):c.wrapper.transform("translate("+i+"px, "+r+"px)")),c.translate=c.isHorizontal()?i:r;var s=c.maxTranslate()-c.minTranslate();(0===s?0:(e-c.minTranslate())/s)!==c.progress&&c.updateProgress(e),a&&c.updateActiveIndex(),"slide"!==c.params.effect&&c.effects[c.params.effect]&&c.effects[c.params.effect].setTranslate(c.translate),c.params.parallax&&c.parallax&&c.parallax.setTranslate(c.translate),c.params.scrollbar&&c.scrollbar&&c.scrollbar.setTranslate(c.translate),c.params.control&&c.controller&&c.controller.setTranslate(c.translate,t),c.emit("onSetTranslate",c,c.translate)},c.getTranslate=function(e,a){var t,i,r,s;return void 0===a&&(a="x"),c.params.virtualTranslate?c.rtl?-c.translate:c.translate:(r=window.getComputedStyle(e,null),window.WebKitCSSMatrix?((i=r.transform||r.webkitTransform).split(",").length>6&&(i=i.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),s=new window.WebKitCSSMatrix("none"===i?"":i)):t=(s=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===a&&(i=window.WebKitCSSMatrix?s.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===a&&(i=window.WebKitCSSMatrix?s.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),c.rtl&&i&&(i=-i),i||0)},c.getWrapperTranslate=function(e){return void 0===e&&(e=c.isHorizontal()?"x":"y"),c.getTranslate(c.wrapper[0],e)},c.observers=[],c.initObservers=function(){if(c.params.observeParents)for(var e=c.container.parents(),a=0;aa.length&&(c.loopedSlides=a.length);var t,i=[],r=[];for(a.each(function(t,s){var n=e(this);t=a.length-c.loopedSlides&&i.push(s),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)c.wrapper.prepend(e(i[t].cloneNode(!0)).addClass(c.params.slideDuplicateClass))},c.destroyLoop=function(){c.wrapper.children("."+c.params.slideClass+"."+c.params.slideDuplicateClass).remove(),c.slides.removeAttr("data-swiper-slide-index")},c.reLoop=function(e){var a=c.activeIndex-c.loopedSlides;c.destroyLoop(),c.createLoop(),c.updateSlidesSize(),e&&c.slideTo(a+c.loopedSlides,0,!1)},c.fixLoop=function(){var e;c.activeIndex=2*c.loopedSlides||c.activeIndex>c.slides.length-2*c.params.slidesPerView)&&(e=-c.slides.length+c.activeIndex+c.loopedSlides,e+=c.loopedSlides,c.slideTo(e,0,!1,!0))},c.appendSlide=function(e){if(c.params.loop&&c.destroyLoop(),"object"==typeof e&&e.length)for(var a=0;a'),t.append(l)),0===p.length&&(p=e('
'),t.append(p)),l.length&&(l[0].style.opacity=Math.max(-i,0)),p.length&&(p[0].style.opacity=Math.max(i,0))}t.transform("translate3d("+n+"px, "+o+"px, 0px) rotateX("+s+"deg) rotateY("+r+"deg)")}},setTransition:function(a){if(c.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),c.params.virtualTranslate&&0!==a){var t=!1;c.slides.eq(c.activeIndex).transitionEnd(function(){if(!t&&c&&e(this).hasClass(c.params.slideActiveClass)){t=!0,c.animating=!1;for(var a=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=0;i'),c.wrapper.append(a)),a.css({height:c.width+"px"})):0===(a=c.container.find(".swiper-cube-shadow")).length&&(a=e('
'),c.container.append(a)));for(var i=0;i-1&&(t=90*i+90*o,c.rtl&&(t=90*-i-90*o)),r.transform(u),c.params.cube.slideShadows){var m=c.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),h=c.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===m.length&&(m=e('
'),r.append(m)),0===h.length&&(h=e('
'),r.append(h)),m.length&&(m[0].style.opacity=Math.max(-o,0)),h.length&&(h[0].style.opacity=Math.max(o,0))}}if(c.wrapper.css({"-webkit-transform-origin":"50% 50% -"+c.size/2+"px","-moz-transform-origin":"50% 50% -"+c.size/2+"px","-ms-transform-origin":"50% 50% -"+c.size/2+"px","transform-origin":"50% 50% -"+c.size/2+"px"}),c.params.cube.shadow)if(c.isHorizontal())a.transform("translate3d(0px, "+(c.width/2+c.params.cube.shadowOffset)+"px, "+-c.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+c.params.cube.shadowScale+")");else{var f=Math.abs(t)-90*Math.floor(Math.abs(t)/90),g=1.5-(Math.sin(2*f*Math.PI/360)/2+Math.cos(2*f*Math.PI/360)/2),v=c.params.cube.shadowScale,w=c.params.cube.shadowScale/g,b=c.params.cube.shadowOffset;a.transform("scale3d("+v+", 1, "+w+") translate3d(0px, "+(c.height/2+b)+"px, "+-c.height/2/w+"px) rotateX(-90deg)")}var y=c.isSafari||c.isUiWebView?-c.size/2:0;c.wrapper.transform("translate3d(0px,0,"+y+"px) rotateX("+(c.isHorizontal()?0:t)+"deg) rotateY("+(c.isHorizontal()?-t:0)+"deg)")},setTransition:function(e){c.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),c.params.cube.shadow&&!c.isHorizontal()&&c.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var a=c.translate,t=c.isHorizontal()?-a+c.width/2:-a+c.height/2,i=c.isHorizontal()?c.params.coverflow.rotate:-c.params.coverflow.rotate,r=c.params.coverflow.depth,s=0,n=c.slides.length;s'),o.append(v)),0===w.length&&(w=e('
'),o.append(w)),v.length&&(v[0].style.opacity=p>0?p:0),w.length&&(w[0].style.opacity=-p>0?-p:0)}}c.browser.ie&&(c.wrapper[0].style.perspectiveOrigin=t+"px 50%")},setTransition:function(e){c.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},c.lazy={initialImageLoaded:!1,loadImageInSlide:function(a,t){if(void 0!==a&&(void 0===t&&(t=!0),0!==c.slides.length)){var i=c.slides.eq(a),r=i.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!i.hasClass("swiper-lazy")||i.hasClass("swiper-lazy-loaded")||i.hasClass("swiper-lazy-loading")||(r=r.add(i[0])),0!==r.length&&r.each(function(){var a=e(this);a.addClass("swiper-lazy-loading");var r=a.attr("data-background"),s=a.attr("data-src"),n=a.attr("data-srcset");c.loadImage(a[0],s||r,n,!1,function(){if(r?(a.css("background-image",'url("'+r+'")'),a.removeAttr("data-background")):(n&&(a.attr("srcset",n),a.removeAttr("data-srcset")),s&&(a.attr("src",s),a.removeAttr("data-src"))),a.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),i.find(".swiper-lazy-preloader, .preloader").remove(),c.params.loop&&t){var e=i.attr("data-swiper-slide-index");if(i.hasClass(c.params.slideDuplicateClass)){var o=c.wrapper.children('[data-swiper-slide-index="'+e+'"]:not(.'+c.params.slideDuplicateClass+")");c.lazy.loadImageInSlide(o.index(),!1)}else{var l=c.wrapper.children("."+c.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');c.lazy.loadImageInSlide(l.index(),!1)}}c.emit("onLazyImageReady",c,i[0],a[0])}),c.emit("onLazyImageLoad",c,i[0],a[0])})}},load:function(){var a;if(c.params.watchSlidesVisibility)c.wrapper.children("."+c.params.slideVisibleClass).each(function(){c.lazy.loadImageInSlide(e(this).index())});else if(c.params.slidesPerView>1)for(a=c.activeIndex;a1||c.params.lazyLoadingInPrevNextAmount&&c.params.lazyLoadingInPrevNextAmount>1){var t=c.params.lazyLoadingInPrevNextAmount,i=c.params.slidesPerView,r=Math.min(c.activeIndex+i+Math.max(t,i),c.slides.length),s=Math.max(c.activeIndex-Math.max(i,t),0);for(a=c.activeIndex+c.params.slidesPerView;a0&&c.lazy.loadImageInSlide(n.index());var o=c.wrapper.children("."+c.params.slidePrevClass);o.length>0&&c.lazy.loadImageInSlide(o.index())}},onTransitionStart:function(){c.params.lazyLoading&&(c.params.lazyLoadingOnTransitionStart||!c.params.lazyLoadingOnTransitionStart&&!c.lazy.initialImageLoaded)&&c.lazy.load()},onTransitionEnd:function(){c.params.lazyLoading&&!c.params.lazyLoadingOnTransitionStart&&c.lazy.load()}},c.scrollbar={isTouched:!1,setDragPosition:function(e){var a=c.scrollbar,t=(c.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)-a.track.offset()[c.isHorizontal()?"left":"top"]-a.dragSize/2,i=-c.minTranslate()*a.moveDivider,r=-c.maxTranslate()*a.moveDivider;tr&&(t=r),t=-t/a.moveDivider,c.updateProgress(t),c.setWrapperTranslate(t,!0)},dragStart:function(e){var a=c.scrollbar;a.isTouched=!0,e.preventDefault(),e.stopPropagation(),a.setDragPosition(e),clearTimeout(a.dragTimeout),a.track.transition(0),c.params.scrollbarHide&&a.track.css("opacity",1),c.wrapper.transition(100),a.drag.transition(100),c.emit("onScrollbarDragStart",c)},dragMove:function(e){var a=c.scrollbar;a.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,a.setDragPosition(e),c.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),c.emit("onScrollbarDragMove",c))},dragEnd:function(e){var a=c.scrollbar;a.isTouched&&(a.isTouched=!1,c.params.scrollbarHide&&(clearTimeout(a.dragTimeout),a.dragTimeout=setTimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),c.emit("onScrollbarDragEnd",c),c.params.scrollbarSnapOnRelease&&c.slideReset())},enableDraggable:function(){var a=c.scrollbar,t=c.support.touch?a.track:document;e(a.track).on(c.touchEvents.start,a.dragStart),e(t).on(c.touchEvents.move,a.dragMove),e(t).on(c.touchEvents.end,a.dragEnd)},disableDraggable:function(){var a=c.scrollbar,t=c.support.touch?a.track:document;e(a.track).off(c.touchEvents.start,a.dragStart),e(t).off(c.touchEvents.move,a.dragMove),e(t).off(c.touchEvents.end,a.dragEnd)},set:function(){if(c.params.scrollbar){var a=c.scrollbar;a.track=e(c.params.scrollbar),c.params.uniqueNavElements&&"string"==typeof c.params.scrollbar&&a.track.length>1&&1===c.container.find(c.params.scrollbar).length&&(a.track=c.container.find(c.params.scrollbar)),a.drag=a.track.find(".swiper-scrollbar-drag"),0===a.drag.length&&(a.drag=e('
'),a.track.append(a.drag)),a.drag[0].style.width="",a.drag[0].style.height="",a.trackSize=c.isHorizontal()?a.track[0].offsetWidth:a.track[0].offsetHeight,a.divider=c.size/c.virtualSize,a.moveDivider=a.divider*(a.trackSize/c.size),a.dragSize=a.trackSize*a.divider,c.isHorizontal()?a.drag[0].style.width=a.dragSize+"px":a.drag[0].style.height=a.dragSize+"px",a.divider>=1?a.track[0].style.display="none":a.track[0].style.display="",c.params.scrollbarHide&&(a.track[0].style.opacity=0)}},setTranslate:function(){if(c.params.scrollbar){var e,a=c.scrollbar,t=(c.translate,a.dragSize);e=(a.trackSize-a.dragSize)*c.progress,c.rtl&&c.isHorizontal()?(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),c.isHorizontal()?(c.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translateX("+e+"px)"),a.drag[0].style.width=t+"px"):(c.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translateY("+e+"px)"),a.drag[0].style.height=t+"px"),c.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){c.params.scrollbar&&c.scrollbar.drag.transition(e)}},c.controller={LinearSpline:function(e,a){var t,i;this.x=e,this.y=a,this.lastIndex=e.length-1;this.x.length;this.interpolate=function(e){return e?(i=o(this.x,e),t=i-1,(e-this.x[t])*(this.y[i]-this.y[t])/(this.x[i]-this.x[t])+this.y[t]):0};var r,s,n,o=function(e,a){for(s=-1,r=e.length;r-s>1;)e[n=r+s>>1]<=a?s=n:r=n;return r}},getInterpolateFunction:function(e){c.controller.spline||(c.controller.spline=c.params.loop?new c.controller.LinearSpline(c.slidesGrid,e.slidesGrid):new c.controller.LinearSpline(c.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,r,s=c.params.control;function n(a){e=a.rtl&&"horizontal"===a.params.direction?-c.translate:c.translate,"slide"===c.params.controlBy&&(c.controller.getInterpolateFunction(a),r=-c.controller.spline.interpolate(-e)),r&&"container"!==c.params.controlBy||(i=(a.maxTranslate()-a.minTranslate())/(c.maxTranslate()-c.minTranslate()),r=(e-c.minTranslate())*i+a.minTranslate()),c.params.controlInverse&&(r=a.maxTranslate()-r),a.updateProgress(r),a.setWrapperTranslate(r,!1,c),a.updateActiveIndex()}if(c.isArray(s))for(var o=0;o'),notify:function(e){var a=c.a11y.liveRegion;0!==a.length&&(a.html(""),a.html(e))},init:function(){c.params.nextButton&&c.nextButton&&c.nextButton.length>0&&(c.a11y.makeFocusable(c.nextButton),c.a11y.addRole(c.nextButton,"button"),c.a11y.addLabel(c.nextButton,c.params.nextSlideMessage)),c.params.prevButton&&c.prevButton&&c.prevButton.length>0&&(c.a11y.makeFocusable(c.prevButton),c.a11y.addRole(c.prevButton,"button"),c.a11y.addLabel(c.prevButton,c.params.prevSlideMessage)),e(c.container).append(c.a11y.liveRegion)},initPagination:function(){c.params.pagination&&c.params.paginationClickable&&c.bullets&&c.bullets.length&&c.bullets.each(function(){var a=e(this);c.a11y.makeFocusable(a),c.a11y.addRole(a,"button"),c.a11y.addLabel(a,c.params.paginationBulletMessage.replace(/{{index}}/,a.index()+1))})},destroy:function(){c.a11y.liveRegion&&c.a11y.liveRegion.length>0&&c.a11y.liveRegion.remove()}},c.init=function(){c.params.loop&&c.createLoop(),c.updateContainerSize(),c.updateSlidesSize(),c.updatePagination(),c.params.scrollbar&&c.scrollbar&&(c.scrollbar.set(),c.params.scrollbarDraggable&&c.scrollbar.enableDraggable()),"slide"!==c.params.effect&&c.effects[c.params.effect]&&(c.params.loop||c.updateProgress(),c.effects[c.params.effect].setTranslate()),c.params.loop?c.slideTo(c.params.initialSlide+c.loopedSlides,0,c.params.runCallbacksOnInit):(c.slideTo(c.params.initialSlide,0,c.params.runCallbacksOnInit),0===c.params.initialSlide&&(c.parallax&&c.params.parallax&&c.parallax.setTranslate(),c.lazy&&c.params.lazyLoading&&(c.lazy.load(),c.lazy.initialImageLoaded=!0))),c.attachEvents(),c.params.observer&&c.support.observer&&c.initObservers(),c.params.preloadImages&&!c.params.lazyLoading&&c.preloadImages(),c.params.autoplay&&c.startAutoplay(),c.params.keyboardControl&&c.enableKeyboardControl&&c.enableKeyboardControl(),c.params.mousewheelControl&&c.enableMousewheelControl&&c.enableMousewheelControl(),c.params.hashnav&&c.hashnav&&c.hashnav.init(),c.params.a11y&&c.a11y&&c.a11y.init(),c.emit("onInit",c)},c.cleanupStyles=function(){c.container.removeClass(c.classNames.join(" ")).removeAttr("style"),c.wrapper.removeAttr("style"),c.slides&&c.slides.length&&c.slides.removeClass([c.params.slideVisibleClass,c.params.slideActiveClass,c.params.slideNextClass,c.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),c.paginationContainer&&c.paginationContainer.length&&c.paginationContainer.removeClass(c.params.paginationHiddenClass),c.bullets&&c.bullets.length&&c.bullets.removeClass(c.params.bulletActiveClass),c.params.prevButton&&e(c.params.prevButton).removeClass(c.params.buttonDisabledClass),c.params.nextButton&&e(c.params.nextButton).removeClass(c.params.buttonDisabledClass),c.params.scrollbar&&c.scrollbar&&(c.scrollbar.track&&c.scrollbar.track.length&&c.scrollbar.track.removeAttr("style"),c.scrollbar.drag&&c.scrollbar.drag.length&&c.scrollbar.drag.removeAttr("style"))},c.destroy=function(e,a){c.detachEvents(),c.stopAutoplay(),c.params.scrollbar&&c.scrollbar&&c.params.scrollbarDraggable&&c.scrollbar.disableDraggable(),c.params.loop&&c.destroyLoop(),a&&c.cleanupStyles(),c.disconnectObservers(),c.params.keyboardControl&&c.disableKeyboardControl&&c.disableKeyboardControl(),c.params.mousewheelControl&&c.disableMousewheelControl&&c.disableMousewheelControl(),c.params.a11y&&c.a11y&&c.a11y.destroy(),c.emit("onDestroy"),!1!==e&&(c=null)},c.init(),c}function B(e){return Math.floor(e)}function D(){c.autoplayTimeoutId=setTimeout(function(){c.params.loop?(c.fixLoop(),c._slideNext(),c.emit("onAutoplay",c)):c.isEnd?i.autoplayStopOnLast?c.stopAutoplay():(c._slideTo(0),c.emit("onAutoplay",c)):(c._slideNext(),c.emit("onAutoplay",c))},c.params.autoplay)}function H(a,t){var i=e(a.target);if(!i.is(t))if("string"==typeof t)i=i.parents(t);else if(t.nodeType){var r;return i.parents().each(function(e,a){a===t&&(r=t)}),r?t:void 0}if(0!==i.length)return i[0]}function A(e,a){a=a||{};var t=new(window.MutationObserver||window.WebkitMutationObserver)(function(e){e.forEach(function(e){c.onResize(!0),c.emit("onObserverUpdate",c,e)})});t.observe(e,{attributes:void 0===a.attributes||a.attributes,childList:void 0===a.childList||a.childList,characterData:void 0===a.characterData||a.characterData}),c.observers.push(t)}function G(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;if(!c.params.allowSwipeToNext&&(c.isHorizontal()&&39===a||!c.isHorizontal()&&40===a))return!1;if(!c.params.allowSwipeToPrev&&(c.isHorizontal()&&37===a||!c.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(c.container.parents(".swiper-slide").length>0&&0===c.container.parents(".swiper-slide-active").length)return;var i={left:window.pageXOffset,top:window.pageYOffset},r=window.innerWidth,s=window.innerHeight,n=c.container.offset();c.rtl&&(n.left=n.left-c.container[0].scrollLeft);for(var o=[[n.left,n.top],[n.left+c.width,n.top],[n.left,n.top+c.height],[n.left+c.width,n.top+c.height]],l=0;l=i.left&&p[0]<=i.left+r&&p[1]>=i.top&&p[1]<=i.top+s&&(t=!0)}if(!t)return}c.isHorizontal()?(37!==a&&39!==a||(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===a&&!c.rtl||37===a&&c.rtl)&&c.slideNext(),(37===a&&!c.rtl||39===a&&c.rtl)&&c.slidePrev()):(38!==a&&40!==a||(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&c.slideNext(),38===a&&c.slidePrev())}}function O(e){e.originalEvent&&(e=e.originalEvent);var a=c.mousewheel.event,t=0,i=c.rtl?-1:1;if("mousewheel"===a)if(c.params.mousewheelForceToAxis)if(c.isHorizontal()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;t=e.wheelDeltaX*i}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;t=e.wheelDeltaY}else t=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-e.wheelDeltaX*i:-e.wheelDeltaY;else if("DOMMouseScroll"===a)t=-e.detail;else if("wheel"===a)if(c.params.mousewheelForceToAxis)if(c.isHorizontal()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;t=-e.deltaX*i}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*i:-e.deltaY;if(0!==t){if(c.params.mousewheelInvert&&(t=-t),c.params.freeMode){var r=c.getWrapperTranslate()+t*c.params.mousewheelSensitivity,s=c.isBeginning,n=c.isEnd;if(r>=c.minTranslate()&&(r=c.minTranslate()),r<=c.maxTranslate()&&(r=c.maxTranslate()),c.setWrapperTransition(0),c.setWrapperTranslate(r),c.updateProgress(),c.updateActiveIndex(),(!s&&c.isBeginning||!n&&c.isEnd)&&c.updateClasses(),c.params.freeModeSticky?(clearTimeout(c.mousewheel.timeout),c.mousewheel.timeout=setTimeout(function(){c.slideReset()},300)):c.params.lazyLoading&&c.lazy&&c.lazy.load(),0===r||r===c.maxTranslate())return}else{if((new window.Date).getTime()-c.mousewheel.lastScrollTime>60)if(t<0)if(c.isEnd&&!c.params.loop||c.animating){if(c.params.mousewheelReleaseOnEdges)return!0}else c.slideNext();else if(c.isBeginning&&!c.params.loop||c.animating){if(c.params.mousewheelReleaseOnEdges)return!0}else c.slidePrev();c.mousewheel.lastScrollTime=(new window.Date).getTime()}return c.params.autoplay&&c.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function N(a,t){var i,r,s;a=e(a);var n=c.rtl?-1:1;i=a.attr("data-swiper-parallax")||"0",r=a.attr("data-swiper-parallax-x"),s=a.attr("data-swiper-parallax-y"),r||s?(r=r||"0",s=s||"0"):c.isHorizontal()?(r=i,s="0"):(s=i,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*t*n+"%":r*t*n+"px",s=s.indexOf("%")>=0?parseInt(s,10)*t+"%":s*t+"px",a.transform("translate3d("+r+", "+s+",0px)")}function R(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}};i.prototype={isSafari:(t=navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var e=navigator.userAgent,a=e.match(/(Android);?[\s\/]+([\d.]+)?/),t=e.match(/(iPad).*OS\s([\d_]+)/),i=e.match(/(iPod)(.*OS\s([\d_]+))?/),r=!t&&e.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:t||r||i,android:a}}(),support:{touch:window.Modernizr&&!0===Modernizr.touch||!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch),transforms3d:window.Modernizr&&!0===Modernizr.csstransforms3d||(a=document.createElement("div").style,"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a),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])],r=0;r0&&a[0].nodeType)for(r=0;r0?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,i=e.clientTop||t.clientTop||0,r=e.clientLeft||t.clientLeft||0,s=window.pageYOffset||e.scrollTop,n=window.pageXOffset||e.scrollLeft;return{top:a.top+s-i,left:a.left+n-r}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;ti-1?[]:a<0?(t=i+a)<0?[]:[this[t]]:[this[a]])},append:function(a){var t,i;for(t=0;t=0;i--)this[t].insertBefore(r.childNodes[i],this[t].childNodes[0])}else if(a instanceof e)for(i=0;i1)for(var r=0;r1)for(var r=0;r0?t?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(t)?new e([this[0].nextElementSibling]):new e([]):this[0].nextElementSibling?new e([this[0].nextElementSibling]):new e([]):new e([])},nextAll:function(t){var i=[],r=this[0];if(!r)return new e([]);for(;r.nextElementSibling;){var s=r.nextElementSibling;t?a(s).is(t)&&i.push(s):i.push(s),r=s}return new e(i)},prev:function(t){return this.length>0?t?this[0].previousElementSibling&&a(this[0].previousElementSibling).is(t)?new e([this[0].previousElementSibling]):new e([]):this[0].previousElementSibling?new e([this[0].previousElementSibling]):new e([]):new e([])},prevAll:function(t){var i=[],r=this[0];if(!r)return new e([]);for(;r.previousElementSibling;){var s=r.previousElementSibling;t?a(s).is(t)&&i.push(s):i.push(s),r=s}return new e(i)},parent:function(e){for(var t=[],i=0;i