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

 

',backdrop:!1,dismissible:!0,onshow:null,onhide:null,abortxhr:!0,autohide:!1,offsettop:0,offsetleft:0,iframeoptions:{frameborder:"0",allowtransparency:"true",id:"",name:"",scrolling:"",onload:"",height:"",width:""},hideempty:!1},j=g+"-rtl",k=[],l=d('
'),m=0,n=!1,o=-2e3,p=d(b),q=function(a,b){return isnan(a)?b||0:number(a)},r=function(a){return a.data("plugin_"+f)},s=function(){for(var a=null,b=0;b").attr("src",this.geturl()),b=this;return d.each(this._defaults.iframeoptions,function(c){"undefined"!=typeof b.options.iframeoptions[c]&&a.attr(c,b.options.iframeoptions[c])}),a},getcontent:function(){if(this.geturl())switch(this.options.type){case"iframe":this.content=this.getiframe();break;case"html":try{this.content=d(this.geturl()),this.content.is(":visible")||this.content.show()}catch(a){throw new error("unable to get popover content. invalid selector specified.")}}else if(!this.content){var b="";if(b=d.isfunction(this.options.content)?this.options.content.apply(this.$element[0],[this]):this.options.content,this.content=this.$element.attr("data-content")||b,!this.content){var c=this.$element.next();c&&c.hasclass(g+"-content")&&(this.content=c)}}return this.content},setcontent:function(a){var b=this.gettarget(),c=this.getcontentelement();"string"==typeof a?c.html(a):a instanceof d&&(c.html(""),this.options.cache?a.removeclass(g+"-content").appendto(c):a.clone(!0,!0).removeclass(g+"-content").appendto(c)),this.$target=b},isasync:function(){return"async"===this.options.type},setcontentasync:function(a){var b=this;this.xhr||(this.xhr=d.ajax({url:this.geturl(),type:this.options.async.type,cache:this.getcache(),beforesend:function(a,c){b.options.async.before&&b.options.async.before(b,a,c)},success:function(c){b.bindbodyevents(),a&&d.isfunction(a)?b.content=a.apply(b.$element[0],[c]):b.content=c,b.setcontent(b.content);var e=b.getcontentelement();e.removeattr("style"),b.displaycontent(),b.options.async.success&&b.options.async.success(b,c)},complete:function(){b.xhr=null},error:function(a,c){b.options.async.error&&b.options.async.error(b,a,c)}}))},bindbodyevents:function(){n||(this.options.dismissible&&"click"===this.gettrigger()?u?p.off("touchstart.webui-popover").on("touchstart.webui-popover",d.proxy(this.bodytouchstarthandler,this)):(p.off("keyup.webui-popover").on("keyup.webui-popover",d.proxy(this.escapehandler,this)),p.off("click.webui-popover").on("click.webui-popover",d.proxy(this.bodyclickhandler,this))):"hover"===this.gettrigger()&&p.off("touchend.webui-popover").on("touchend.webui-popover",d.proxy(this.bodyclickhandler,this)))},mouseenterhandler:function(a){var b=this;a&&this.options.selector&&(b=this.delegate(a.currenttarget)),b._timeout&&cleartimeout(b._timeout),b._entertimeout=settimeout(function(){b.gettarget().is(":visible")||b.show()},this.getdelayshow())},mouseleavehandler:function(){var a=this;cleartimeout(a._entertimeout),a._timeout=settimeout(function(){a.hide()},this.gethidedelay())},escapehandler:function(a){27===a.keycode&&this.hideall()},bodytouchstarthandler:function(a){var b=this,c=d(a.currenttarget);c.on("touchend",function(a){b.bodyclickhandler(a),c.off("touchend")}),c.on("touchmove",function(){c.off("touchend")})},bodyclickhandler:function(a){n=!0;for(var b=!0,c=0;c=f&&j.x<=h&&j.y>=g&&j.y<=i;if(l){b=!1;break}}}b&&s()},inittargetevents:function(){"hover"===this.gettrigger()&&this.$target.off("mouseenter mouseleave").on("mouseenter",d.proxy(this.mouseenterhandler,this)).on("mouseleave",d.proxy(this.mouseleavehandler,this)),this.$target.find(".close").off("click").on("click",d.proxy(this.hide,this,!0))},getplacement:function(a){var b,c=this.options.container,d=c.innerwidth(),e=c.innerheight(),f=c.scrolltop(),g=c.scrollleft(),h=math.max(0,a.left-g),i=math.max(0,a.top-f);b="function"==typeof this.options.placement?this.options.placement.call(this,this.gettarget()[0],this.$element[0]):this.$element.data("placement")||this.options.placement;var j="horizontal"===b,k="vertical"===b,l="auto"===b||j||k;return l?b=d/3>h?e/3>i?j?"right-bottom":"bottom-right":2*e/3>i?k?e/2>=i?"bottom-right":"top-right":"right":j?"right-top":"top-right":2*d/3>h?e/3>i?j?d/2>=h?"right-bottom":"left-bottom":"bottom":2*e/3>i?j?d/2>=h?"right":"left":e/2>=i?"bottom":"top":j?d/2>=h?"right-top":"left-top":"top":e/3>i?j?"left-bottom":"bottom-left":2*e/3>i?k?e/2>=i?"bottom-left":"top-left":"left":j?"left-top":"top-left":"auto-top"===b?b=d/3>h?"top-right":2*d/3>h?"top":"top-left":"auto-bottom"===b?b=d/3>h?"bottom-right":2*d/3>h?"bottom":"bottom-left":"auto-left"===b?b=e/3>i?"left-top":2*e/3>i?"left":"left-bottom":"auto-right"===b&&(b=e/3>i?"right-bottom":2*e/3>i?"right":"right-top"),b},getelementposition:function(){var a=this.$element[0].getboundingclientrect(),c=this.options.container,e=c.css("position");if(c.is(b.body)||"static"===e)return d.extend({},this.$element.offset(),{width:this.$element[0].offsetwidth||a.width,height:this.$element[0].offsetheight||a.height});if("fixed"===e){var f=c[0].getboundingclientrect();return{top:a.top-f.top+c.scrolltop(),left:a.left-f.left+c.scrollleft(),width:a.width,height:a.height}}return"relative"===e?{top:this.$element.offset().top-c.offset().top,left:this.$element.offset().left-c.offset().left,width:this.$element[0].offsetwidth||a.width,height:this.$element[0].offsetheight||a.height}:void 0},gettargetpositin:function(a,c,d,e){var f=a,g=this.options.container,h=this.$element.outerwidth(),i=this.$element.outerheight(),j=b.documentelement.scrolltop+g.scrolltop(),k=b.documentelement.scrollleft+g.scrollleft(),l={},m=null,n=this.options.arrow?20:0,p=10,q=n+p>h?n:0,r=n+p>i?n:0,s=0,t=b.documentelement.clientheight+j,u=b.documentelement.clientwidth+k,v=f.left+f.width/2-q>0,w=f.left+f.width/2+q0,y=f.top+f.height/2+re;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getcomputedstyle(t);return e||a("style returned "+e+". are you running this code in a hidden iframe on firefox? see http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createelement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderstyle="solid",e.style.borderwidth="1px 2px 3px 4px",e.style.boxsizing="border-box";var i=document.body||document.documentelement;i.appendchild(e);var o=n(e);r.isboxsizeouter=s=200==t(o.width),i.removechild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.queryselector(e)),e&&"object"==typeof e&&e.nodetype){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetwidth,a.height=e.offsetheight;for(var d=a.isborderbox="border-box"==r.boxsizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parsefloat(f);a[c]=isnan(m)?0:m}var p=a.paddingleft+a.paddingright,g=a.paddingtop+a.paddingbottom,y=a.marginleft+a.marginright,v=a.margintop+a.marginbottom,_=a.borderleftwidth+a.borderrightwidth,e=a.bordertopwidth+a.borderbottomwidth,z=d&&s,b=t(r.width);b!==!1&&(a.width=b+(z?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(z?0:g+e)),a.innerwidth=a.width-(p+_),a.innerheight=a.height-(g+e),a.outerwidth=a.width+y,a.outerheight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingleft","paddingright","paddingtop","paddingbottom","marginleft","marginright","margintop","marginbottom","borderleftwidth","borderrightwidth","bordertopwidth","borderbottomwidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesselector=e()}(window,function(){"use strict";var t=function(){var t=element.prototype;if(t.matches)return"matches";if(t.matchesselector)return"matchesselector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=math[a](r),this.cols=math.max(r,1)},i.prototype.getcontainerwidth=function(){var t=this._getoption("fitwidth"),i=t?this.element.parentnode:this.element,n=e(i);this.containerwidth=n&&n.innerwidth},i.prototype._getitemlayoutposition=function(t){t.getsize();var e=t.size.outerwidth%this.columnwidth,i=e&&1>e?"round":"ceil",n=math[i](t.size.outerwidth/this.columnwidth);n=math.min(n,this.cols);for(var o=this._getcolgroup(n),r=math.min.apply(math,o),s=o.indexof(r),a={x:this.columnwidth*s,y:r},h=r+t.size.outerheight,u=this.cols+1-o.length,d=0;u>d;d++)this.colys[s+d]=h;return a},i.prototype._getcolgroup=function(t){if(2>t)return this.colys;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colys.slice(n,n+t);e[n]=math.max.apply(math,o)}return e},i.prototype._managestamp=function(t){var i=e(t),n=this._getelementoffset(t),o=this._getoption("originleft"),r=o?n.left:n.right,s=r+i.outerwidth,a=math.floor(r/this.columnwidth);a=math.max(0,a);var h=math.floor(s/this.columnwidth);h-=s%this.columnwidth?0:1,h=math.min(this.cols-1,h);for(var u=this._getoption("origintop"),d=(u?n.top:n.bottom)+i.outerheight,l=a;h>=l;l++)this.colys[l]=math.max(d,this.colys[l])},i.prototype._getcontainersize=function(){this.maxy=math.max.apply(math,this.colys);var t={height:this.maxy};return this._getoption("fitwidth")&&(t.width=this._getcontainerfitwidth()),t},i.prototype._getcontainerfitwidth=function(){for(var t=0,e=this.cols;--e&&0===this.colys[e];)t++;return(this.cols-t)*this.columnwidth-this.gutter},i.prototype.needsresizelayout=function(){var t=this.containerwidth;return this.getcontainerwidth(),t!=this.containerwidth},i}); !function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.evemitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexof(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceevents=this._onceevents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexof(e);return-1!=n&&i.splice(n,1),this}},e.emitevent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceevents&&this._onceevents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesloaded=e(t,t.evemitter)}(window,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(array.isarray(t))e=t;else if("number"==typeof t.length)for(var i=0;i=r}function s(t,i){for(var e in i)i.hasownproperty(e)&&(t[e]=i[e]);return t}function r(t,i){this.el=t,this.options=s(this.defaults,i),this._init()}var a=t.document.documentelement;r.prototype={defaults:{minduration:0,maxduration:0,viewportfactor:0,masonryok:!0},_init:function(){this.items=array.prototype.slice.call(document.queryselectorall("#"+this.el.id+" > li")),this.itemscount=this.items.length,this.itemsrenderedcount=0,this.didscroll=!1;var i=this;imagesloaded(this.el,function(){var e=new masonry(i.el,{itemselector:"li",transitionduration:0});t.nekogrid=e,modernizr.cssanimations&&(i.items.foreach(function(t,e){o(t)&&(i._checktotalrendered(),classie.add(t,"shown"))}),t.addeventlistener("scroll",function(){i._onscrollfn()},!1),t.addeventlistener("resize",function(){i._resizehandler()},!1))})},_onscrollfn:function(){var t=this;this.didscroll||(this.didscroll=!0,settimeout(function(){t._scrollpage()},60))},_scrollpage:function(){var t=this;this.items.foreach(function(n,s){classie.has(n,"shown")||classie.has(n,"animate")||!o(n,t.options.viewportfactor)||settimeout(function(){var o=e()+i()/2;if(t.el.style.webkitperspectiveorigin="50% "+o+"px",t.el.style.mozperspectiveorigin="50% "+o+"px",t.el.style.perspectiveorigin="50% "+o+"px",t._checktotalrendered(),t.options.minduration&&t.options.maxduration){var s=math.random()*(t.options.maxduration-t.options.minduration)+t.options.minduration+"s";n.style.webkitanimationduration=s,n.style.mozanimationduration=s,n.style.animationduration=s}classie.add(n,"animate")},25)}),this.didscroll=!1},_resizehandler:function(){function t(){i._scrollpage(),i.resizetimeout=null}var i=this;this.resizetimeout&&cleartimeout(this.resizetimeout),this.resizetimeout=settimeout(t,1e3)},_checktotalrendered:function(){++this.itemsrenderedcount===this.itemscount&&t.removeeventlistener("scroll",this._onscrollfn)}},t.animonscroll=r}(window); (function($, window, document, undefined) { var $window = $(window), placeholder_base64='data:image/png;base64,ivborw0kggoaaaansuheugaaaaeaaaabcayaaaaffcsjaaaaaxnsr0iars4c6qaaaarnqu1baacxjwv8yquaaaajcehzcwaadsqaaa7eazurdhsaaaansurbvbhxyzh8+pb/aaffa0nnpuclaaaaaelftksuqmcc'; $.fn.lazyload = function(options) { var elements = this; var $container; var settings = { threshold : 30, failure_limit : 1000, event : "scroll", effect : "fadein", effect_speed : null, container : window, data_attribute : "original", data_srcset : 'srcset', skip_invisible : true, appear : null, load : null, placeholder : neko_lazyloadbg, }; function update() { var counter = 0; elements.each(function() { var $this = $(this); if (settings.skip_invisible && !$this.is(":visible")) { return; } if ($.abovethetop(this, settings) || $.leftofbegin(this, settings)) { } else if (!$.belowthefold(this, settings) && !$.rightoffold(this, settings)) { $this.trigger("appear"); counter = 0; } else { if (++counter > settings.failure_limit) { return false; } } }); } if(options) { if (undefined !== options.failurelimit) { options.failure_limit = options.failurelimit; delete options.failurelimit; } if (undefined !== options.effectspeed) { options.effect_speed = options.effectspeed; delete options.effectspeed; } $.extend(settings, options); } $container = (settings.container === undefined || settings.container === window) ? $window : $(settings.container); if (0 === settings.event.indexof("scroll")) { $container.on(settings.event, function() { return update(); }); } if(settings.placeholder=='base64') settings.placeholder=placeholder_base64; this.attr({'data-lazyload':true}); this.each(function(index) { var self = this, $self = $(self), original = $self.attr("data-" + settings.data_attribute), placeholder=settings.placeholder, placeholder_ok=placeholder!=placeholder_base64?true:false; if (original && !$self.hasclass('imgloading')) { if($self.is("img")){ if($self.attr("src")){ return true; }else{ self.loaded = false; $self.attr("src", placeholder); if(placeholder_ok && !$self.hasclass('imgloading')) $self.addclass('imgloading'); } }else{ self.loaded = false; } } $self.one("appear", function() { if (!this.loaded) { if (settings.appear) { var elements_left = elements.length; settings.appear.call(self, elements_left, settings); } var srcset = $self.attr("data-" + settings.data_srcset); $("") .one("load", function() { $self.hide(); if ($self.is("img")) { if(srcset) $self.attr("srcset", srcset); $self.attr("src", original); } else { $self.css("background-image", "url('" + original + "')"); if(srcset) $self.css("background-image", "-webkit-image-set(" + srcset + ")"); } $self[settings.effect](settings.effect_speed); $self.one('load', function() { $self.removeclass('imgloading'); $self.next('canvas').fadeout("normal",function(){ $self.next('canvas').remove(); }); }); self.loaded = true; var temp = $.grep(elements, function(element) { return !element.loaded; }); elements = $(temp); if (settings.load) { var elements_left = elements.length; settings.load.call(self, elements_left, settings); } }).attr({srcset:srcset,src:original}).removeclass('imgloading').next('canvas').fadeout("normal",function(){ $("").next('canvas').remove(); }); } }); if (0 !== settings.event.indexof("scroll")) { $self.on(settings.event, function() { if (!self.loaded) { $self.trigger("appear"); } }); } }); $window.on("resize", function() { update(); }); if ((/(?:iphone|ipod|ipad).*os 5/gi).test(navigator.appversion)) { $window.on("pageshow", function(event) { if (event.originalevent && event.originalevent.persisted) { elements.each(function() { $(this).trigger("appear"); }); } }); } $(document).ready(function() { update(); }); return this; }; $.belowthefold = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = (window.innerheight ? window.innerheight : $window.height()) + $window.scrolltop(); } else { fold = $(settings.container).offset().top + $(settings.container).height(); } return fold <= $(element).offset().top - settings.threshold; }; $.rightoffold = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = $window.width() + $window.scrollleft(); } else { fold = $(settings.container).offset().left + $(settings.container).width(); } return fold <= $(element).offset().left - settings.threshold; }; $.abovethetop = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = $window.scrolltop(); } else { fold = $(settings.container).offset().top; } return fold >= $(element).offset().top + settings.threshold + $(element).height(); }; $.leftofbegin = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = $window.scrollleft(); } else { fold = $(settings.container).offset().left; } return fold >= $(element).offset().left + settings.threshold + $(element).width(); }; $.inviewport = function(element, settings) { return !$.rightoffold(element, settings) && !$.leftofbegin(element, settings) && !$.belowthefold(element, settings) && !$.abovethetop(element, settings); }; $.extend($.expr[":"], { "below-the-fold" : function(a) { return $.belowthefold(a, {threshold : 0}); }, "above-the-top" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, "right-of-screen": function(a) { return $.rightoffold(a, {threshold : 0}); }, "left-of-screen" : function(a) { return !$.rightoffold(a, {threshold : 0}); }, "in-viewport" : function(a) { return $.inviewport(a, {threshold : 0}); }, "above-the-fold" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, "right-of-fold" : function(a) { return $.rightoffold(a, {threshold : 0}); }, "left-of-fold" : function(a) { return !$.rightoffold(a, {threshold : 0}); } }); })(jquery, window, document); (function(){ $(function(){ if($('.neko-product-list').length){ var $nekopro_original=$(".neko-product-list [data-original]"); if($nekopro_original.length){ var $pro_fluid=$(".neko-product-list .container-fluid"); if($pro_fluid.length){ $pro_fluid.each(function(){ var $self=$(this); $(this).width($(this).width()); settimeout(function(){ $self.width(''); },2000) }); } } } if($('#neko-grid').length){ settimeout(function(){ nekoanimonscroll('neko-grid'); },500) } var $neko_showpro_navtab=$('.neko-showproduct-navtabs'); if($neko_showpro_navtab.length) $neko_showpro_navtab.navtabswiper(); var $showprotype2=$('.neko-showproduct.pagetype2'); if($showprotype2.length){ $showprotype2.find('.navbar').wrap('
'); var $pro_navbar=$showprotype2.find('.navbar'), pro_navbar_t=$pro_navbar.offset().top, pro_navbar_fixclass='navbar-fixed-top animation-slide-top', $protype2_navtabs_a=$pro_navbar.find('.neko-showproduct-navtabs li a'), pronavbarstop=0, pronavbarscroll=function(){ var st=$(window).scrolltop(); if(st>pro_navbar_t){ if(!$pro_navbar.hasclass(pro_navbar_fixclass)) $pro_navbar.addclass(pro_navbar_fixclass).parent().height($pro_navbar.height()); }else if($pro_navbar.hasclass(pro_navbar_fixclass)){ $pro_navbar.removeclass(pro_navbar_fixclass).parent().height(''); } if(!pronavbarstop){ $protype2_navtabs_a.each(function(){ var offsettop=protabtop($(this),$pro_navbar); if(st>=(offsettop-50)) pronavactive($(this)); }); } }; pronavbarscroll(); $(window).scroll(function(){ pronavbarscroll(); }); $protype2_navtabs_a.click(function(e){ e.preventdefault(); pronavbarstop=1; var $self=$(this), scrolltopint=setinterval(function(){ var st=$(window).scrolltop(), scroll_goto=protabtop($self,$pro_navbar); pronavactive($self); if(st>=scroll_goto-1 || st+$(window).height()>=$(document).height()-1){ settimeout(function(){ pronavbarstop=0; },300); clearinterval(scrolltopint); } $('html,body').animate({scrolltop:scroll_goto},300,"linear"); },300) }) } if(m.id && $('#neko-imgs-slick').length && $('textarea[name="neko_product_video"]').val()){ $.include('images/js/shop_video.js',function(){ $('#neko-imgs-slick').nekoshopvideo(); }) } }); function pronavactive(dom){ dom.addclass('active').parent().siblings('li').find('.nav-link').removeclass('active'); } function protabtop(dom,topdom){ var offsettop=$(dom.attr("href")).offset().top-topdom.height(); return offsettop; } window.nekoanimonscroll=function(obj){ new animonscroll( document.getelementbyid(obj),{ minduration:0.4, maxduration:0.7, viewportfactor:0.2 }); } })(); (function($){var selectors=[];var check_binded=false;var check_lock=false;var defaults={interval:250,force_process:false};var $window=$(window);var $prior_appeared=[];function process(){check_lock=false;for(var index=0,selectorslength=selectors.length;index=window_top&&top-($element.data('appear-top-offset')||0)<=window_top+$window.height()&&left+$element.width()>=window_left&&left-($element.data('appear-left-offset')||0)<=window_left+$window.width()){return true;}else{return false;}};$.fn.extend({ appear:function(options){var opts=$.extend({},defaults,options||{});var selector=this.selector||this;if(!check_binded){var on_check=function(){if(check_lock){return;}check_lock=true;settimeout(process,opts.interval);};$(window).scroll(on_check).resize(on_check);check_binded=true;}if(opts.force_process){settimeout(process,opts.interval);}add_selector(selector);return $(selector);}});$.extend({ force_appear:function(){if(check_binded){process();return true;}return false;}});})(function(){if(typeof module!=='undefined'){ return require('jquery');}else{return jquery;}}()); !function(global,factory){if("function"==typeof define&&define.amd)define("/plugin/jquery-appear",["exports","jquery","plugin"],factory);else if("undefined"!=typeof exports)factory(exports,require("jquery"),require("plugin"));else{var mod={exports:{}};factory(mod.exports,global.jquery,global.plugin),global.pluginjqueryappear=mod.exports}}(this,function(exports,_jquery,_plugin2){"use strict";object.defineproperty(exports,"__esmodule",{value:!0});var _jquery2=babelhelpers.interoprequiredefault(_jquery),_plugin3=babelhelpers.interoprequiredefault(_plugin2),name="appear",appear=function(_plugin){function appear(){return babelhelpers.classcallcheck(this,appear),babelhelpers.possibleconstructorreturn(this,(appear.__proto__||object.getprototypeof(appear)).apply(this,arguments))}return babelhelpers.inherits(appear,_plugin),babelhelpers.createclass(appear,[{key:"getname",value:function(){return name}},{key:"bind",value:function(){var _this2=this;this.$el.on("appear",function(){_this2.$el.hasclass("appear-no-repeat")||(_this2.$el.removeclass("invisible").addclass("animation-"+_this2.options.animate),_this2.$el.data("repeat")===!1&&_this2.$el.addclass("appear-no-repeat"))}),(0,_jquery2.default)(document).on("disappear",function(){_this2.$el.hasclass("appear-no-repeat")||_this2.$el.addclass("invisible").removeclass("animation-"+_this2.options.animate)})}},{key:"render",value:function(){_jquery2.default.fn.appear&&(this.$el.appear(this.options),this.$el.not(":appeared").addclass("invisible"),this.bind())}}]),appear}(_plugin3.default);_plugin3.default.register(name,appear),exports.default=appear}); !function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createelement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendchild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexof("animation")).tolowercase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertrule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssrules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charat(0).touppercase()+b.slice(1),d=0;d',c)}m.addrule(".spin-vml","behavior:url(#default#vml)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:dximagetransform.microsoft.blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstchild;d=d.shadow&&d.lines||0,e&&b+d>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;kb;b++)if(f===j[b]){j.splice(b,1);break}}};return j.push(f),f}function c(a,b){for(;a.parentnode&&a.tagname!==b;)a=a.parentnode;return b===a.tagname?a:void 0}function d(a){for(var b=["input","textarea","select"],c=[],d=0;dg;g++)!function(){var a=f[g];if("function"==typeof a.addeventlistener){var h=b(a),i=-1;a.addeventlistener("click",function(b){var f=!0,g=c(a,"form");if("undefined"!=typeof g)if("function"==typeof g.checkvalidity)f=g.checkvalidity();else for(var j=d(g),k=0;ka;a++)j[a].stop()}function g(b){var c,d,e=b.offsetheight;0===e&&(e=parsefloat(window.getcomputedstyle(b).height)),e>32&&(e*=.8),b.hasattribute("data-spinner-size")&&(e=parseint(b.getattribute("data-spinner-size"),10)),b.hasattribute("data-spinner-color")&&(c=b.getattribute("data-spinner-color")),b.hasattribute("data-spinner-lines")&&(d=parseint(b.getattribute("data-spinner-lines"),10));var f=.2*e,g=.6*f,h=7>f?2:3;return new a({color:c||"#fff",lines:d||12,radius:f,length:g,width:h,zindex:"auto",top:"auto",left:"auto",classname:""})}function h(a){for(var b=[],c=0;c0 && (pageurl_str+=(pageurl_str.indexof('.php?')>0?'&':'?')+'page='); $nekopagerbtn.click(function(){ if(!$nekopagerbtn.hasclass('disabled')){ $(this).addclass('disabled').prepend('').find('.wb-chevron-down').hide(); page++; if(pageurl_str.indexof('.php')>0){ var pageurl=pageurl_str+page; }else{ var fielename=pageurl_str.split('/').slice(-1)[0], fielename_name=fielename.split('.')[0], delimiter=fielename_name.indexof('-')>0?'-':'_', fielename_names=fielename_name.split(delimiter), last=fielename_names.slice(-1)[0], last_is_nan=isnan(last), new_last=last_is_nan?delimiter+last:''; fielename_name=fielename_names.slice(last_is_nan?-2:-1)[0]; var new_fielename=fielename.replace(fielename_name+new_last+'.',page+new_last+'.'), pageurl=pageurl_str.replace(fielename,new_fielename); } $.ajax({ url:pageurl, type:'get', success:function(data){ var $data=$(data).find('.neko-pager-ajax,.neko-page-ajax'); if(!$data.length){ data='
'+data+'
'; $data=$(data); } $data.find('>').addclass('page'+page).removeclass('shown'); $data.find('.neko_hits').each(function(index, el) { $(this).attr({'data-src':$(this).attr('src')}).removeattr('src'); }); data=$data.html(); $nekopagerajax.append(data); nekopagerajaxfun(page); nekopagerbtntext(); } }); } }); } function nekopagerajaxfun(page){ var $nekopagerajax=$('.neko-pager-ajax,.neko-page-ajax'), nekopager_original='.page'+page+' [data-original]' $data_appear=$nekopagerajax.find('.page'+page+' [data-plugin="appear"]'); if($nekopagerajax.find(nekopager_original).length){ $nekopagerajax.imagesize(nekopager_original); if($nekopagerajax.find(nekopager_original).length) $nekopagerajax.find(nekopager_original).lazyload(); settimeout(function(){ $('html,body').stop().animate({scrolltop:$(window).scrolltop()+2},0); },300) } if($data_appear.length) $data_appear.trigger('appear'); if($('#neko-grid').length){ settimeout(function(){ if(typeof nekoanimonscroll != 'undefined') nekoanimonscroll('neko-grid'); },100) } if($nekopagerajax.find('.page'+page+' .neko_hits').length){ $nekopagerajax.find('.page'+page+' .neko_hits').each(function(index, el) { var $self=$(this); if($(this).data('src')){ $.ajax({ url:$(this).data('src'), type:'post', data:{ajax:1}, success:function(result){ if(result!='') $self.after(parseint(result)); } }); } }); } } })(); (function(){ $(function(){ var $news_headlines=$('.news-headlines-slick'); if($news_headlines.length){ if($news_headlines.find('.slick-slide').length>1){ var headllines_swipe=true; if(m.device_type=='d' && !breakpoints.is('xs')) headllines_swipe=false; $news_headlines.slick({ autoplay:true, dots:true, autoplayspeed:4000, speed:500, swipe:headllines_swipe, prevarrow:neko_prevarrow, nextarrow:neko_nextarrow, lazyloadprevnext:true }); } } }); })(); function swiperanimatecache(){for(allboxes=window.document.documentelement.queryselectorall(".ani"),i=0;i'); $(".scroll-container").css('padding-top', $m.height()+'px'); myswiper = new swiper('.j-scroll-con', { direction: 'vertical', speed: 800, slidesperview: 'auto', mousewheelcontrol: true, pagination: '.j-pagination', paginationclickable: true, paginationtype: 'custom', mousewheel: true, simulatetouch: false, nested: true, paginationcustomrender: function (swiper, currect, total) { var $html = ''; for (var i = 1; i <= total; i++) { if (currect == i) { $html += '
  • '; }else { $html += '
  • '; } } return $html;//返回所有的页码html }, oninit: function(swiper) { swiperanimatecache(swiper); //隐藏动画元素 swiperanimate(swiper); //初始化完成开始动画 }, onslidechangeend: function(swiper) { swiperanimate(swiper); //每个slide切换结束时也运行当前slide动画 }, ontransitionend: function(swiper){ if(swiper.progress==1){ swiper.activeindex=swiper.slides.length-1 } } }) $(".j-pagination").on("click", "li", function(){ var index = $(this).index(); myswiper.slideto(index); }); window.onresize = function(){ myswiper.onresize(); } }, cutfont: function(){ nekoui['head_nav_neko_76_3_1'].find('.j-cut-font').on("click", function(){ var $this = $(this); var text = $this.find('a').text(); if( text == '简体' ){ $("body").s2t(); $this.find('a').text('繁体'); }else if( text == '繁体' ) { $("body").t2s(); $this.find('a').text('简体'); } }); } }; var x = new nekoui(nekoui_fun['head_nav_neko_76_3_1']); nekoui_fun['banner_neko_11_4_2'] = { name: 'banner_neko_11_4_2', init: function() { if (nekoui['banner_neko_11_4_2'].length) { nekobanner_slide='.banner_neko_11_4_2 .slick-slide'; var img = nekoui['banner_neko_11_4_2'].find('.cover-image').eq(0), slide = nekoui['banner_neko_11_4_2'].find('.slick-slide'); if (img.length > 0) { var bh = img.data('height').split('|'), fade = img.data('fade'), autoplayspeed = img.data('autoplayspeed'), speed = img.data('speed'); img.imageloadfun(function() { $(nekobanner_slide+' .banner-text').each(function(index, el) { var position=$(this).data('position').split('|'); $(this).addclass(breakpoints.is('xs')?position[1]:position[0]); }).find('.banner-btn a').hover(function() { var color=$(this).data('style').split('|'); $(this).css({background:color[2],'border-color':color[2],color:color[3]}); }, function() { var color=$(this).data('style').split('|'); $(this).css({background:color[0],'border-color':color[0],color:color[1]}); }); for (var i = 0; i < bh.length; i++) { if (bh[i] == 0) { bh[i] = 'auto'; } } breakpoints.on('md lg', { enter: function() { nekoui['banner_neko_11_4_2'].find('.cover-image').height(bh[0]); } }) breakpoints.on('sm', { enter: function() { nekoui['banner_neko_11_4_2'].find('.cover-image').height(bh[1]); } }) breakpoints.on('xs', { enter: function() { nekoui['banner_neko_11_4_2'].find('.cover-image').height(bh[2]); } }) if (slide.length > 1) { nekoui['banner_neko_11_4_2'].slick({ autoplay: true, autoplayspeed: autoplayspeed, pauseonhover: false, swipe: true, arrow: !1, lazyloadprevnext: true, dots: !0, fade: fade, adaptiveheight: true, cssease: 'ease-out', speed: speed }).on('setposition', function(event, slick) { nekoui['banner_neko_11_4_2'].find('.cover-image').css('display', 'block'); $('.banner_neko_11_4_2 .slick-slide .banner-text').hide(); $('.banner_neko_11_4_2 .slick-slide.slick-active .banner-text').show(); }); } }) } } }, getrgb: function() { var tips = $('.banner_neko_11_4_2-warrper').find('.banner-tips'), background = tips.data('hex'); if (tips.length) { var hex = background.split('|')[0], opacity = background.split('|')[1]; var bgcolor = rgb2color(hex, opacity); tips.css('background', bgcolor); } function rgb2color(hex, opacity) { var reg = /^#([0-9a-fa-f]{3}|[0-9a-fa-f]{6})$/; var c = hex.tolowercase(); if (c && reg.test(c)) { if (c.length === 4) { var a = '#'; for (var i = 1; i < 4; i++) { a += c.slice(i, i + 1).concat(c.slice(i, i + 1)); } c = a; } var b = []; for (var i = 1; i < 7; i += 2) { b.push(parseint('0x' + c.slice(i, i + 2))); } return "rgba(" + b.join(',') + ',' + opacity + ')'; } else { return c } } } }; var banner = nekoui(nekoui_fun['banner_neko_11_4_2']); nekoui_fun['foot_info_neko_65_1_3'] = { name: 'foot_info_neko_65_1_3', cntotc: function() { var b = $('.foot_info_neko_65_1_3 .btn-cntotc'); b.on('click', function(event) { var lang = $(this).attr('data-tolang'); if (lang == 'tc') { $('body').s2t(); $(this).attr('data-tolang', 'cn'); $(this).text('简'); } else if (lang == 'cn') { $('body').t2s(); $(this).attr('data-tolang', 'tc'); $(this).text('繁'); } }); }, bg: function() { $('.foot_info_neko_65_1_3_bottom[data-bg]').each(function(index, el) { var background = $(this).attr('data-bg'), hex = background.split('|')[0], hextwo = background.split('|')[1], opacity = background.split('|')[2], bgcolor = rgb2color(hex, opacity), bgcolortwo = rgb2color(hextwo, opacity), ifbotc = $('.foot_info_neko_65_1_3_bottom').data('ifbotc'); if(ifbotc){ $(this).css('background', bgcolor); }else{ $(this).css('background', bgcolortwo); } }); function rgb2color(hex, opacity) { var reg = /^#([0-9a-fa-f]{3}|[0-9a-fa-f]{6})$/; var c = hex.tolowercase(); if (c && reg.test(c)) { if (c.length === 4) { var a = '#'; for (var i = 1; i < 4; i++) { a += c.slice(i, i + 1).concat(c.slice(i, i + 1)); } c = a; } var b = []; for (var i = 1; i < 7; i += 2) { b.push(parseint('0x' + c.slice(i, i + 2))); } return "rgba(" + b.join(',') + ',' + opacity + ')'; } else { return c } } }, padding:function(){ if(nekoui['foot_info_neko_65_1_3'].length){ var h_m=$('.foot_info_neko_65_1_3_bottom').height(); $(window).resize(function(){ pd(); }) function pd(){ if($('.foot_info_neko_65_1_3_bottom').hasclass('iskeshi') || $(window).width()<768){ nekoui['foot_info_neko_65_1_3'].css("padding-bottom",h_m); $(".shop-product-intro .cart-favorite").css("bottom",h_m); } } pd(); } }, qq:function(){ $(".foot_info_neko_65_1_3_bottom .item").each(function(){ var href=$(this).attr("href"); if(href.indexof("http://wpa.qq.com/")>=0){ var patt1 = /uin=\d+&/; var qq=href.match(patt1); var ua = window.navigator.useragent.tolowercase(); if (/(iphone|ipad|ipod|ios)/i.test(navigator.useragent) || /(android)/i.test(navigator.useragent)) { if(ua.match(/micromessenger/i) != "micromessenger"){ $(this).attr("href","mqqwpa://im/chat?chat_type=wpa&"+qq[0]+"version=1&src_type=web&web_src=oicqzone.com"); } } } }); } }; var foot_info = new nekoui(nekoui_fun['foot_info_neko_65_1_3']); nekoui_fun['back_top_neko_76_1_4'] = { name:'back_top_neko_76_1_4', init: function() { var m = nekoui['back_top_neko_76_1_4'];//此处对应的最外层的那个css类名 m.click(function(){ $('html,body').animate({'scrolltop':0},300); }); m.appendto('body'); $(window).scroll(function(){ if($(this).scrolltop()>$(this).height()){ $(".j-back-to").show(); }else { $(".j-back-to").hide(); } }); } }; var x = new nekoui(nekoui_fun['back_top_neko_76_1_4']); nekoui_fun['subcolumn_nav_neko_94_2_6'] = { name:'subcolumn_nav_neko_94_2_6', init:function (){ } }; var x = new nekoui(nekoui_fun['subcolumn_nav_neko_94_2_6']); nekoui_fun['para_search_neko_21_1_25'] = { name:'para_search_neko_21_1_25', nekoanimonscroll: function() { var $nekocolumn_nav=$('.type-order'); if($nekocolumn_nav.length){ breakpoints.on('lg',{ enter:function(){ $nekocolumn_nav.navtabswiper(); } }) breakpoints.on('md',{ enter:function(){ $nekocolumn_nav.navtabswiper(); } }) breakpoints.on('sm',{ enter:function(){ $nekocolumn_nav.navtabswiper(); } }) breakpoints.on('xs',{ enter:function(){ $nekocolumn_nav.navtabswiper(); } }) } var list=nekoui['para_search_neko_21_1_25'].find('.neko-product-list'); if(list.length){ var $nekopro_original=nekoui['para_search_neko_21_1_25'].find(".neko-product-list [data-original]"); if($nekopro_original.length){ var $pro_fluid=nekoui['para_search_neko_21_1_25'].find(".neko-product-list .container-fluid"); if($pro_fluid.length){ $pro_fluid.each(function(){ var $self=$(this); $(this).width($(this).width()); settimeout(function(){ $self.width(''); },2000) }); } if($('#neko-grid').length){ settimeout(function(){ nekoanimonscroll('neko-grid'); },0) } } } function nekoanimonscroll(obj){ console.log(document.getelementbyid(obj)); new animonscroll( document.getelementbyid(obj),{ minduration:0.4, maxduration:0.7, viewportfactor:0.2 }); } } }; nekoui['para_search_neko_21_1_25'] = new nekoui(nekoui_fun['para_search_neko_21_1_25']);