!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+r 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); var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("tweenmax",["core.animation","core.simpletimeline","tweenlite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},e=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},f=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoease,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._dirty=!0,this.render=f.prototype.render},g=1e-10,h=c._internals,i=h.isselector,j=h.isarray,k=f.prototype=c.to({},.1,{}),l=[];f.version="1.20.2",k.constructor=f,k.kill()._gc=!1,f.killtweensof=f.killdelayedcallsto=c.killtweensof,f.gettweensof=c.gettweensof,f.lagsmoothing=c.lagsmoothing,f.ticker=c.ticker,f.render=c.render,k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoease,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._yoyoease=null,this._uncache(!0),c.prototype.invalidate.call(this)},k.updateto=function(a,b){var d,e=this.ratio,f=this.vars.immediaterender||a.immediaterender;b&&this._starttime.998){var g=this._totaltime;this.render(0,!0,!1),this._initted=!1,this.render(g,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||f)for(var h,i=1/(1-e),j=this._firstpt;j;)h=j.s+j.c,j.c*=i,j.s=h-j.c,j=j._next;return this},k.render=function(a,b,d){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var e,f,i,j,k,l,m,n,o,p=this._dirty?this.totalduration():this._totalduration,q=this._time,r=this._totaltime,s=this._cycle,t=this._duration,u=this._rawprevtime;if(a>=p-1e-7&&a>=0?(this._totaltime=p,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0):(this._time=t,this.ratio=this._ease._calcend?this._ease.getratio(1):1),this._reversed||(e=!0,f="oncomplete",d=d||this._timeline.autoremovechildren),0===t&&(this._initted||!this.vars.lazy||d)&&(this._starttime===this._timeline._duration&&(a=0),(0>u||0>=a&&a>=-1e-7||u===g&&"ispause"!==this.data)&&u!==a&&(d=!0,u>g&&(f="onreversecomplete")),this._rawprevtime=n=!b||a||u===a?a:g)):1e-7>a?(this._totaltime=this._time=this._cycle=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==r||0===t&&u>0)&&(f="onreversecomplete",e=this._reversed),0>a&&(this._active=!1,0===t&&(this._initted||!this.vars.lazy||d)&&(u>=0&&(d=!0),this._rawprevtime=n=!b||a||u===a?a:g)),this._initted||(d=!0)):(this._totaltime=this._time=a,0!==this._repeat&&(j=t+this._repeatdelay,this._cycle=this._totaltime/j>>0,0!==this._cycle&&this._cycle===this._totaltime/j&&a>=r&&this._cycle--,this._time=this._totaltime-this._cycle*j,this._yoyo&&0!==(1&this._cycle)&&(this._time=t-this._time,o=this._yoyoease||this.vars.yoyoease,o&&(this._yoyoease||(o!==!0||this._initted?this._yoyoease=o=o===!0?this._ease:o instanceof ease?o:ease.map[o]:(o=this.vars.ease,this._yoyoease=o=o?o instanceof ease?o:"function"==typeof o?new ease(o,this.vars.easeparams):ease.map[o]||c.defaultease:c.defaultease)),this.ratio=o?1-o.getratio((t-this._time)/t):0)),this._time>t?this._time=t:this._time<0&&(this._time=0)),this._easetype&&!o?(k=this._time/t,l=this._easetype,m=this._easepower,(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===m?k*=k:2===m?k*=k*k:3===m?k*=k*k*k:4===m&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:this._time/t<.5?this.ratio=k/2:this.ratio=1-k/2):o||(this.ratio=this._ease.getratio(this._time/t))),q===this._time&&!d&&s===this._cycle)return void(r!==this._totaltime&&this._onupdate&&(b||this._callback("onupdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!d&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=q,this._totaltime=r,this._rawprevtime=u,this._cycle=s,h.lazytweens.push(this),void(this._lazy=[a,b]);!this._time||e||o?e&&this._ease._calcend&&!o&&(this.ratio=this._ease.getratio(0===this._time?0:1)):this.ratio=this._ease.getratio(this._time/t)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==q&&a>=0&&(this._active=!0),0===r&&(2===this._initted&&a>0&&this._init(),this._startat&&(a>=0?this._startat.render(a,b,d):f||(f="_dummygs")),this.vars.onstart&&(0!==this._totaltime||0===t)&&(b||this._callback("onstart"))),i=this._firstpt;i;)i.f?i.t[i.p](i.c*this.ratio+i.s):i.t[i.p]=i.c*this.ratio+i.s,i=i._next;this._onupdate&&(0>a&&this._startat&&this._starttime&&this._startat.render(a,b,d),b||(this._totaltime!==r||f)&&this._callback("onupdate")),this._cycle!==s&&(b||this._gc||this.vars.onrepeat&&this._callback("onrepeat")),f&&(!this._gc||d)&&(0>a&&this._startat&&!this._onupdate&&this._starttime&&this._startat.render(a,b,d),e&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[f]&&this._callback(f),0===t&&this._rawprevtime===g&&n!==g&&(this._rawprevtime=0))},f.to=function(a,b,c){return new f(a,b,c)},f.from=function(a,b,c){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,new f(a,b,c)},f.fromto=function(a,b,c,d){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,new f(a,b,d)},f.staggerto=f.allto=function(a,b,g,h,k,m,n){h=h||0;var o,p,q,r,s=0,t=[],u=function(){g.oncomplete&&g.oncomplete.apply(g.oncompletescope||this,arguments),k.apply(n||g.callbackscope||this,m||l)},v=g.cycle,w=g.startat&&g.startat.cycle;for(j(a)||("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a))),a=a||[],0>h&&(a=d(a),a.reverse(),h*=-1),o=a.length-1,q=0;o>=q;q++){p={};for(r in g)p[r]=g[r];if(v&&(e(p,a,q),null!=p.duration&&(b=p.duration,delete p.duration)),w){w=p.startat={};for(r in g.startat)w[r]=g.startat[r];e(p.startat,a,q)}p.delay=s+(p.delay||0),q===o&&k&&(p.oncomplete=u),t[q]=new f(a[q],b,p),s+=h}return t},f.staggerfrom=f.allfrom=function(a,b,c,d,e,g,h){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,f.staggerto(a,b,c,d,e,g,h)},f.staggerfromto=f.allfromto=function(a,b,c,d,e,g,h,i){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,f.staggerto(a,b,d,e,g,h,i)},f.delayedcall=function(a,b,c,d,e){return new f(b,0,{delay:a,oncomplete:b,oncompleteparams:c,callbackscope:d,onreversecomplete:b,onreversecompleteparams:c,immediaterender:!1,useframes:e,overwrite:0})},f.set=function(a,b){return new f(a,0,b)},f.istweening=function(a){return c.gettweensof(a,!0).length>0};var m=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(m(f,b)),e=d.length),f=f._next;return d},n=f.getalltweens=function(b){return m(a._roottimeline,b).concat(m(a._rootframestimeline,b))};f.killall=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=n(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.oncomplete)&&d||c&&!f)&&(a?g.totaltime(g._reversed?0:g.totalduration()):g._enabled(!1,!1))},f.killchildtweensof=function(a,b){if(null!=a){var e,g,k,l,m,n=h.tweenlookup;if("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a)),j(a))for(l=a.length;--l>-1;)f.killchildtweensof(a[l],b);else{e=[];for(k in n)for(g=n[k].target.parentnode;g;)g===a&&(e=e.concat(n[k].tweens)),g=g.parentnode;for(m=e.length,l=0;m>l;l++)b&&e[l].totaltime(e[l].totalduration()),e[l]._enabled(!1,!1)}}};var o=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=n(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.oncomplete)&&d||c&&!f)&&g.paused(a)};return f.pauseall=function(a,b,c){o(!0,a,b,c)},f.resumeall=function(a,b,c){o(!1,a,b,c)},f.globaltimescale=function(b){var d=a._roottimeline,e=c.ticker.time;return arguments.length?(b=b||g,d._starttime=e-(e-d._starttime)*d._timescale/b,d=a._rootframestimeline,e=c.ticker.frame,d._starttime=e-(e-d._starttime)*d._timescale/b,d._timescale=a._roottimeline._timescale=b,b):d._timescale},k.progress=function(a,b){return arguments.length?this.totaltime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatdelay),b):this._time/this.duration()},k.totalprogress=function(a,b){return arguments.length?this.totaltime(this.totalduration()*a,b):this._totaltime/this.totalduration()},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalduration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(a,b)):this._time},k.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},k.totalduration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatdelay)/(this._repeat+1)):(this._dirty&&(this._totalduration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatdelay*this._repeat,this._dirty=!1),this._totalduration)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatdelay=function(a){return arguments.length?(this._repeatdelay=a,this._uncache(!0)):this._repeatdelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},f},!0),_gsscope._gsdefine("timelinelite",["core.animation","core.simpletimeline","tweenlite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoremovechildren=this.vars.autoremovechildren===!0,this.smoothchildtiming=this.vars.smoothchildtiming===!0,this._sortchildren=!0,this._onupdate=this.vars.onupdate;var c,d,e=this.vars;for(d in e)c=e[d],i(c)&&-1!==c.join("").indexof("{self}")&&(e[d]=this._swapselfinparams(c));i(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals,g=d._internals={},h=f.isselector,i=f.isarray,j=f.lazytweens,k=f.lazyrender,l=_gsscope._gsdefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},o=g.pausecallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=d.prototype=new b;return d.version="1.20.2",q.constructor=d,q.kill()._gc=q._forcingplayhead=q._haspause=!1,q.to=function(a,b,d,e){var f=d.repeat&&l.tweenmax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},q.from=function(a,b,d,e){return this.add((d.repeat&&l.tweenmax||c).from(a,b,d),e)},q.fromto=function(a,b,d,e,f){var g=e.repeat&&l.tweenmax||c;return b?this.add(g.fromto(a,b,d,e),f):this.set(a,e,f)},q.staggerto=function(a,b,e,f,g,i,j,k){var l,o,q=new d({oncomplete:i,oncompleteparams:j,callbackscope:k,smoothchildtiming:this.smoothchildtiming}),r=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),f=f||0,0>f&&(a=p(a),a.reverse(),f*=-1),o=0;ol;l++)i(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._starttime+m.totalduration()/m._timescale:"start"===g&&(m._starttime-=m.delay())),j+=h;return this._uncache(!0)}if("string"==typeof e)return this.addlabel(e,f);if("function"!=typeof e)throw"cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedcall(0,e)}if(b.prototype.add.call(this,e,f),e._time&&e.render((this.rawtime()-e._starttime)*e._timescale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duratione._starttime;n._timeline;)o&&n._timeline.smoothchildtiming?n.totaltime(n._totaltime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},q.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useframes?a._rootframestimeline:a._roottimeline;return b._starttime=(b._paused?b._pausetime:c._time)-(b._reversed?b.totalduration()-b._totaltime:b._totaltime)/b._timescale,this}if(b instanceof array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removelabel(b):this.kill(null,b)},q._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totaltime=this._totalduration):this._time=this._totaltime=this._duration=this._totalduration=0,this},q.append=function(a,b){return this.add(a,this._parsetimeorlabel(null,b,!0,a))},q.insert=q.insertmultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},q.appendmultiple=function(a,b,c,d){return this.add(a,this._parsetimeorlabel(null,b,!0,a),c,d)},q.addlabel=function(a,b){return this._labels[a]=this._parsetimeorlabel(b),this},q.addpause=function(a,b,d,e){var f=c.delayedcall(0,o,d,e||this);return f.vars.oncomplete=f.vars.onreversecomplete=b,f.data="ispause",this._haspause=!0,this.add(f,a)},q.removelabel=function(a){return delete this._labels[a],this},q.getlabeltime=function(a){return null!=this._labels[a]?this._labels[a]:-1},q._parsetimeorlabel=function(b,c,d,e){var f,g;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof array||e.push&&i(e)))for(g=e.length;--g>-1;)e[g]instanceof a&&e[g].timeline===this&&this.remove(e[g]);if(f=this.duration()>99999999999?this.recent().endtime(!1):this._duration,"string"==typeof c)return this._parsetimeorlabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-f:0,d);if(c=c||0,"string"!=typeof b||!isnan(b)&&null==this._labels[b])null==b&&(b=f);else{if(g=b.indexof("="),-1===g)return null==this._labels[b]?d?this._labels[b]=f+c:c:this._labels[b]+c;c=parseint(b.charat(g-1)+"1",10)*number(b.substr(g+1)),b=g>1?this._parsetimeorlabel(b.substr(0,g-1),0,d):f}return number(b)+c},q.seek=function(a,b){return this.totaltime("number"==typeof a?a:this._parsetimeorlabel(a),b!==!1)},q.stop=function(){return this.paused(!0)},q.gotoandplay=function(a,b){return this.play(a,b)},q.gotoandstop=function(a,b){return this.pause(a,b)},q.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n=this._dirty?this.totalduration():this._totalduration,o=this._time,p=this._starttime,q=this._timescale,r=this._paused;if(a>=n-1e-7&&a>=0)this._totaltime=this._time=n,this._reversed||this._haspausedchild()||(f=!0,h="oncomplete",i=!!this._timeline.autoremovechildren,0===this._duration&&(0>=a&&a>=-1e-7||this._rawprevtime<0||this._rawprevtime===e)&&this._rawprevtime!==a&&this._first&&(i=!0,this._rawprevtime>e&&(h="onreversecomplete"))),this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,a=n+1e-4;else if(1e-7>a)if(this._totaltime=this._time=0,(0!==o||0===this._duration&&this._rawprevtime!==e&&(this._rawprevtime>0||0>a&&this._rawprevtime>=0))&&(h="onreversecomplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoremovechildren&&this._reversed?(i=f=!0,h="onreversecomplete"):this._rawprevtime>=0&&this._first&&(i=!0),this._rawprevtime=a;else{if(this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._starttime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(i=!0)}else{if(this._haspause&&!this._forcingplayhead&&!b){if(a>=o)for(d=this._first;d&&d._starttime<=a&&!l;)d._duration||"ispause"!==d.data||d.ratio||0===d._starttime&&0===this._rawprevtime||(l=d),d=d._next;else for(d=this._last;d&&d._starttime>=a&&!l;)d._duration||"ispause"===d.data&&d._rawprevtime>0&&(l=d),d=d._prev;l&&(this._time=a=l._starttime,this._totaltime=a+this._cycle*(this._totalduration+this._repeatdelay))}this._totaltime=this._time=this._rawprevtime=a}if(this._time!==o&&this._first||c||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==o&&a>0&&(this._active=!0),0===o&&this.vars.onstart&&(0===this._time&&this._duration||b||this._callback("onstart")),m=this._time,m>=o)for(d=this._first;d&&(g=d._next,m===this._time&&(!this._paused||r));)(d._active||d._starttime<=m&&!d._paused&&!d._gc)&&(l===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,m===this._time&&(!this._paused||r));){if(d._active||d._starttime<=o&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endtime()>this._time;)l.render(l._reversed?l.totalduration()-(a-l._starttime)*l._timescale:(a-l._starttime)*l._timescale,b,c),l=l._prev;l=null,this.pause()}d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)}d=g}this._onupdate&&(b||(j.length&&k(),this._callback("onupdate"))),h&&(this._gc||(p===this._starttime||q!==this._timescale)&&(0===this._time||n>=this.totalduration())&&(f&&(j.length&&k(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[h]&&this._callback(h)))}},q._haspausedchild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._haspausedchild())return!0;a=a._next}return!1},q.getchildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._starttime-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},q.recent=function(){return this._recent},q._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},q.shiftchildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._starttime>=c&&(e._starttime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},q._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.gettweensof(b):this.getchildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},q.clear=function(a){var b=this.getchildren(!1,!0,!0),c=b.length;for(this._time=this._totaltime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},q.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},q._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},q.totaltime=function(b,c,d){this._forcingplayhead=!0;var e=a.prototype.totaltime.apply(this,arguments);return this._forcingplayhead=!1,e},q.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timescale(this._duration/a),this):(this._dirty&&this.totalduration(),this._duration)},q.totalduration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalduration(),e._starttime>f&&this._sortchildren&&!e._paused?this.add(e,e._starttime-e._delay):f=e._starttime,e._starttime<0&&!e._paused&&(d-=e._starttime,this._timeline.smoothchildtiming&&(this._starttime+=e._starttime/this._timescale),this.shiftchildren(-e._starttime,!1,-9999999999),f=0),c=e._starttime+e._totalduration/e._timescale,c>d&&(d=c),e=b;this._duration=this._totalduration=d,this._dirty=!1}return this._totalduration}return a&&this.totalduration()?this.timescale(this._totalduration/a):this},q.paused=function(b){if(!b)for(var c=this._first,d=this._time;c;)c._starttime===d&&"ispause"===c.data&&(c._rawprevtime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},q.usesframes=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootframestimeline},q.rawtime=function(a){return a&&(this._paused||this._repeat&&this.time()>0&&this.totalprogress()<1)?this._totaltime%(this._duration+this._repeatdelay):this._paused?this._totaltime:(this._timeline.rawtime(a)-this._starttime)*this._timescale},d},!0),_gsscope._gsdefine("timelinemax",["timelinelite","tweenlite","easing.ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=b._internals,g=f.lazytweens,h=f.lazyrender,i=_gsscope._gsdefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="1.20.2",k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addcallback=function(a,c,d,e){return this.add(b.delayedcall(0,a,d,e),c)},k.removecallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.gettweensof(a,!1),d=c.length,e=this._parsetimeorlabel(b);--d>-1;)c[d]._starttime===e&&c[d]._enabled(!1,!1);return this},k.removepause=function(b){return this.removecallback(a._internals.pausecallback,b)},k.tweento=function(a,c){c=c||{};var d,e,f,g={ease:j,useframes:this.usesframes(),immediaterender:!1},h=c.repeat&&i.tweenmax||b;for(e in c)g[e]=c[e];return g.time=this._parsetimeorlabel(a),d=math.abs(number(g.time)-this._time)/this._timescale||.001,f=new h(this,d,g),g.onstart=function(){f.target.paused(!0),f.vars.time!==f.target.time()&&d===f.duration()&&f.duration(math.abs(f.vars.time-f.target.time())/f.target._timescale),c.onstart&&c.onstart.apply(c.onstartscope||c.callbackscope||f,c.onstartparams||[])},f},k.tweenfromto=function(a,b,c){c=c||{},a=this._parsetimeorlabel(a),c.startat={oncomplete:this.seek,oncompleteparams:[a],callbackscope:this},c.immediaterender=c.immediaterender!==!1;var d=this.tweento(b,c);return d.duration(math.abs(d.vars.time-a)/this._timescale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o=this._dirty?this.totalduration():this._totalduration,p=this._duration,q=this._time,r=this._totaltime,s=this._starttime,t=this._timescale,u=this._rawprevtime,v=this._paused,w=this._cycle;if(a>=o-1e-7&&a>=0)this._locked||(this._totaltime=o,this._cycle=this._repeat),this._reversed||this._haspausedchild()||(f=!0,j="oncomplete",k=!!this._timeline.autoremovechildren,0===this._duration&&(0>=a&&a>=-1e-7||0>u||u===e)&&u!==a&&this._first&&(k=!0,u>e&&(j="onreversecomplete"))),this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=p,a=p+1e-4);else if(1e-7>a)if(this._locked||(this._totaltime=this._cycle=0),this._time=0,(0!==q||0===p&&u!==e&&(u>0||0>a&&u>=0)&&!this._locked)&&(j="onreversecomplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoremovechildren&&this._reversed?(k=f=!0,j="onreversecomplete"):u>=0&&this._first&&(k=!0),this._rawprevtime=a;else{if(this._rawprevtime=p||!b||a||this._rawprevtime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._starttime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(k=!0)}else if(0===p&&0>u&&(k=!0),this._time=this._rawprevtime=a,this._locked||(this._totaltime=a,0!==this._repeat&&(l=p+this._repeatdelay,this._cycle=this._totaltime/l>>0,0!==this._cycle&&this._cycle===this._totaltime/l&&a>=r&&this._cycle--,this._time=this._totaltime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=p-this._time),this._time>p?(this._time=p,a=p+1e-4):this._time<0?this._time=a=0:a=this._time)),this._haspause&&!this._forcingplayhead&&!b){if(a=this._time,a>=q||this._repeat&&w!==this._cycle)for(d=this._first;d&&d._starttime<=a&&!m;)d._duration||"ispause"!==d.data||d.ratio||0===d._starttime&&0===this._rawprevtime||(m=d),d=d._next;else for(d=this._last;d&&d._starttime>=a&&!m;)d._duration||"ispause"===d.data&&d._rawprevtime>0&&(m=d),d=d._prev;m&&m._starttime0&&(this._active=!0),0===r&&this.vars.onstart&&(0===this._totaltime&&this._totalduration||b||this._callback("onstart")),n=this._time,n>=q)for(d=this._first;d&&(i=d._next,n===this._time&&(!this._paused||v));)(d._active||d._starttime<=this._time&&!d._paused&&!d._gc)&&(m===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)),d=i;else for(d=this._last;d&&(i=d._prev,n===this._time&&(!this._paused||v));){if(d._active||d._starttime<=q&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endtime()>this._time;)m.render(m._reversed?m.totalduration()-(a-m._starttime)*m._timescale:(a-m._starttime)*m._timescale,b,c),m=m._prev;m=null,this.pause()}d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)}d=i}this._onupdate&&(b||(g.length&&h(),this._callback("onupdate"))),j&&(this._locked||this._gc||(s===this._starttime||t!==this._timescale)&&(0===this._time||o>=this.totalduration())&&(f&&(g.length&&h(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[j]&&this._callback(j)))},k.getactive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getchildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isactive()&&(f[h++]=e);return f},k.getlabelafter=function(a){a||0!==a&&(a=this._time);var b,c=this.getlabelsarray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getlabelbefore=function(a){null==a&&(a=this._time);for(var b=this.getlabelsarray(),c=b.length;--c>-1;)if(b[c].timethis._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(a,b)):this._time},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatdelay=function(a){return arguments.length?(this._repeatdelay=a,this._uncache(!0)):this._repeatdelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentlabel=function(a){return arguments.length?this.seek(a,!0):this.getlabelbefore(this._time+1e-8)},d},!0),function(){var a=180/math.pi,b=[],c=[],d=[],e={},f=_gsscope._gsdefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,margintop,marginleft,marginright,marginbottom,paddingleft,paddingtop,paddingright,paddingbottom,backgroundposition,backgroundposition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charat(1)&&(a[i][d]=f[d]+number(m.charat(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[0][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexof(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=math.sqrt(b[n]),c[n]=math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=math.sqrt(d[n])}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charat(1)?c[m]+number(o.charat(0)+o.substr(2)):number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h,segments:l}},p=_gsscope._gsdefine.plugin({propname:"bezier",priority:-1,version:"1.3.8",api:2,global:!0,init:function(a,b,c){this._target=a,b instanceof array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeres=null==b.timeresolution?6:parseint(b.timeresolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autorotate||c.vars.orienttobezier;this._autorotate=n?n instanceof array?n:[["x","y","rotation",n===!0?0:number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteprops.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexof("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parsefloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isnan(b.curviness)?1:b.curviness,!1,"thrubasic"===b.type,b.correlate,h):m(i,b.type,j),this._segcount=this._beziers[d].length,this._timeres){var p=o(this._beziers,this._timeres);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curseg=this._segments[0],this._s2=this._curseg[0],this._prec=1/this._curseg.length}if(n=this._autorotate)for(this._initialrotations=[],n[0]instanceof array||(this._autorotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexof("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialrotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteprops.push(d)}return this._startratio=c.vars.runbackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segcount,n=this._func,o=this._target,p=b!==this._startratio;if(this._timeres){if(k=this._lengths,l=this._curseg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curseg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&bthis._s2&&ee&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&bb?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i;if(this._autorotate){var q,r,s,t,u,v,w,x=this._autorotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?math.atan2(u-s,t-r)*w+v:this._initialrotations[e],this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i)}}}),q=p.prototype;p.bezierthrough=l,p.cubictoquadratic=i,p._autocss=!0,p.quadratictocubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssregister=function(){var a=f.cssplugin;if(a){var b=a._internals,c=b._parsetoproxy,d=b._setpluginratio,e=b.cssproptween;b._registercomplexspecialprop("bezier",{parser:function(a,b,f,g,h,i){b instanceof array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setratio=d,0===q.autorotate&&(q.autorotate=!0),!q.autorotate||q.autorotate instanceof array||(j=q.autorotate===!0?0:number(q.autorotate),q.autorotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autorotate&&(g._transform||g._enabletransforms(!1),l.autorotate=g._target._gstransform,l.proxy.rotation=l.autorotate.rotation||0,g._overwriteprops.push("rotation")),i._oninittween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteprops,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autorotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsscope._gsdefine("plugins.cssplugin",["plugins.tweenplugin","tweenlite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteprops.length=0,this.setratio=g.prototype.setratio},h=_gsscope._gsdefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.20.0",g.api=2,g.defaulttransformperspective=0,g.defaultskewtype="compensated",g.defaultsmoothorigin=!0,j="px",g.suffixmap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontsize:j,padding:j,margin:j,perspective:j,lineheight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-za-z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,a=/^(rgb|hsl)/,b=/([a-z])/g,c=/-([a-z])/gi,d=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,e=function(a,b){return b.touppercase()},f=/(?:left|right|width)/i,g=/(m11|m12|m21|m22)=[\d\-\.e]+/gi,h=/progid\:dximagetransform\.microsoft\.matrix\(.+?\)/i,i=/,(?=[^\)]*(?:\(|$))/gi,j=/[\s,\(]/i,k=math.pi/180,l=180/math.pi,m={},n={style:{}},o=_gsscope.document||{createelement:function(){return n}},p=function(a,b){return o.createelementns?o.createelementns(b||"http://www.w3.org/1999/xhtml",a):o.createelement(a)},q=p("div"),r=p("img"),s=g._internals={_specialprops:i},t=(_gsscope.navigator||{}).useragent||"",u=function(){var a=t.indexof("android"),b=p("a");return m=-1!==t.indexof("safari")&&-1===t.indexof("chrome")&&(-1===a||parsefloat(t.substr(a+8,2))>3),o=m&&parsefloat(t.substr(t.indexof("version/")+8,2))<6,n=-1!==t.indexof("firefox"),(/msie ([0-9]{1,}[\.0-9]{0,})/.exec(t)||/trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(t))&&(p=parsefloat(regexp.$1)),b?(b.style.csstext="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),v=function(a){return x.test("string"==typeof a?a:(a.currentstyle?a.currentstyle.filter:a.style.filter)||"")?parsefloat(regexp.$1)/100:1},w=function(a){_gsscope.console&&console.log(a)},x="",y="",z=function(a,b){b=b||q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charat(0).touppercase()+a.substr(1),c=["o","moz","ms","ms","webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(y=3===d?"ms":c[d],x="-"+y.tolowercase()+"-",y+a):null},$=o.defaultview?o.defaultview.getcomputedstyle:function(){},_=g.getstyle=function(a,b,c,d,e){var f;return u||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||$(a))?f=c[b]||c.getpropertyvalue(b)||c.getpropertyvalue(b.replace(b,"-$1").tolowercase()):a.currentstyle&&(f=a.currentstyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):v(a)},aa=s.converttopixels=function(a,c,d,e,f){if("px"===e||!e&&"lineheight"!==c)return d;if("auto"===e||!d)return 0;var h,i,j,k=f.test(c),l=a,m=q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"lineheight"!==c||e)if("%"===e&&-1!==c.indexof("border"))h=d/100*(k?a.clientwidth:a.clientheight);else{if(m.csstext="border:0 solid red;position:"+_(a,"position")+";line-height:0;","%"!==e&&l.appendchild&&"v"!==e.charat(0)&&"rem"!==e)m[k?"borderleftwidth":"bordertopwidth"]=d+e;else{if(l=a.parentnode||o.body,-1!==_(l,"display").indexof("flex")&&(m.position="absolute"),i=l._gscache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendchild(q),h=parsefloat(q[k?"offsetwidth":"offsetheight"]),l.removechild(q),k&&"%"===e&&g.cachewidths!==!1&&(i=l._gscache=l._gscache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=aa(a,c,d,e,!0))}else i=$(a).lineheight,a.style.lineheight=d,h=parsefloat($(a).lineheight),a.style.lineheight=i;return o&&(h/=100),n?-h:h},ba=s.calculateoffset=function(a,b,c){if("absolute"!==_(a,"position",c))return 0;var d="left"===b?"left":"top",e=_(a,"margin"+d,c);return a["offset"+d]-(aa(a,b,parsefloat(e),e.replace(w,""))||0)},ca=function(a,b){var c,d,e,f={};if(b=b||$(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexof("-transform")||da===e)&&(f[e.replace(c,e)]=b.getpropertyvalue(e));else for(c in b)(-1===c.indexof("transform")||ca===c)&&(f[c]=b[c]);else if(b=a.currentstyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(c,e)]=b[c]);return u||(f.opacity=v(a)),d=ra(a,b,!1),f.rotation=d.rotation,f.skewx=d.skewx,f.scalex=d.scalex,f.scaley=d.scaley,f.x=d.x,f.y=d.y,fa&&(f.z=d.z,f.rotationx=d.rotationx,f.rotationy=d.rotationy,f.scalez=d.scalez),f.filters&&delete f.filters,f},da=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"csstext"!==g&&"length"!==g&&isnan(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexof("origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ba(a,g),void 0!==j[g]&&(h=new sa(j,g,j[g],h)));if(d)for(g in d)"classname"!==g&&(i[g]=d[g]);return{difs:i,firstmpt:h}},ea={width:["left","right"],height:["top","bottom"]},fa=["marginleft","marginright","margintop","marginbottom"],ga=function(a,b,c){if("svg"===(a.nodename+"").tolowercase())return(c||$(a))[b]||0;if(a.getctm&&oa(a))return a.getbbox()[b]||0;var d=parsefloat("width"===b?a.offsetwidth:a.offsetheight),e=ea[b],f=e.length;for(c=c||$(a,null);--f>-1;)d-=parsefloat(_(a,"padding"+e[f],c,!0))||0,d-=parsefloat(_(a,"border"+e[f]+"width",c,!0))||0;return d},ha=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexof("left")?"0%":-1!==a.indexof("right")?"100%":d[0],f=-1!==a.indexof("top")?"0%":-1!==a.indexof("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexof("%"),b.oyp=-1!==f.indexof("%"),b.oxr="="===e.charat(1),b.oyr="="===f.charat(1),b.ox=parsefloat(e.replace(v,"")),b.oy=parsefloat(f.replace(v,"")),b.v=a),b||a},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*parsefloat(a.substr(2)):parsefloat(a)-parsefloat(b)||0},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*parsefloat(a.substr(2))+b:parsefloat(a)||0},ka=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charat(1),g=(i?parseint(a.charat(0)+"1",10)*parsefloat(f[0].substr(2)):parsefloat(f[0]))*(-1===a.indexof("rad")?1:l)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexof("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexof("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexof("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},la={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ma=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},na=g.parsecolor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charat(a.length-1)&&(a=a.substr(0,a.length-1)),la[a])c=la[a];else if("#"===a.charat(0))4===a.length&&(d=a.charat(1),e=a.charat(2),f=a.charat(3),a="#"+d+d+e+e+f+f),a=parseint(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexof("="))return a.match(t)}else g=number(c[0])%360/360,h=number(c[1])/100,i=number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=number(a[3])),c[0]=ma(g+1/3,d,e),c[1]=ma(g,d,e),c[2]=ma(g-1/3,d,e);else c=a.match(s)||la.transparent;c[0]=number(c[0]),c[1]=number(c[1]),c[2]=number(c[2]),c.length>3&&(c[3]=number(c[3]))}else c=la.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=math.max(d,e,f),k=math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},oa=function(a,b){var c,d,e,f=a.match(pa)||[],g=0,h="";if(!f.length)return a;for(c=0;c0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&i.test(a)){for(o=a.replace(i,"|").split("|"),n=0;nn--)for(;++nm--)for(;++mi;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},sa=(s._setpluginratio=function(a){this.plugin.setratio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstmpt,j=1e-6;i;)b=h[i.v],i.r?b=math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autorotate&&(g.autorotate.rotation=g.mod?g.mod(h.rotation,this.t):h.rotation),1===a||0===a)for(i=g.firstmpt,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new sa(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstmpt:j,pt:k}},s.cssproptween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ta||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ua=function(a,b,c,d,e,f){var g=new ta(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},va=g.parsecomplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ta(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&pa.test(d+c)&&(d=[c,d],g.colorstringfilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,a,b,c,d=c.split(", ").join(",").split(" "),e=d.split(", ").join(",").split(" "),f=d.length,g=k!==!1;for((-1!==d.indexof(",")||-1!==c.indexof(","))&&(d=d.join(" ").replace(i,", ").split(" "),e=e.join(" ").replace(i,", ").split(" "),f=d.length),f!==e.length&&(d=(f||"").split(" "),f=d.length),h.plugin=j,h.setratio=l,pa.lastindex=0,m=0;f>m;m++)if(p=d[m],u=e[m],x=parsefloat(p),x||0===x)h.appendxtra("",x,ia(u,x),u.replace(t,""),g&&-1!==u.indexof("px"),!0);else if(e&&pa.test(p))b=u.indexof(")")+1,b=")"+(b?u.substr(b):""),c=-1!==u.indexof("hsl")&&u,z=u,p=na(p,c),u=na(u,c),y=p.length+u.length>6,y&&!u&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(e[m]).join("transparent")):(u||(y=!1),c?h.appendxtra(z.substr(0,z.indexof("hsl"))+(y?"hsla(":"hsl("),p[0],ia(u[0],p[0]),",",!1,!0).appendxtra("",p[1],ia(u[1],p[1]),"%,",!1).appendxtra("",p[2],ia(u[2],p[2]),y?"%,":"%"+b,!1):h.appendxtra(z.substr(0,z.indexof("rgb"))+(y?"rgba(":"rgb("),p[0],u[0]-p[0],",",!0,!0).appendxtra("",p[1],u[1]-p[1],",",!0).appendxtra("",p[2],u[2]-p[2],y?",":b,!0),y&&(p=p.length<4?1:p[3],h.appendxtra("",p,(u.length<4?1:u[3])-p,b,!1))),pa.lastindex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n0;)j["xn"+wa]=0,j["xs"+wa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setratio=j.rxp=null,j.appendxtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setratio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ta(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var xa=function(a,b){b=b||{},this.p=b.prefix?z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||qa(b.defaultvalue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultvalue,this.pr=b.priority||0},ya=s._registercomplexspecialprop=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultvalue;for(c=c||[g],d=0;dh.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexof(m),l=c.indexof(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return va(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parsecomplex(a.style,this.format(_(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerspecialprop=function(a,b,c){ya(a,{parser:function(a,d,e,f,g,h,i){var j=new ta(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setratio=b(a,d,f._tween,e),j},priority:c})},g.usesvgtransformattr=!0;var aa,ba="scalex,scaley,scalez,x,y,z,skewx,skewy,rotation,rotationx,rotationy,perspective,xpercent,ypercent".split(","),ca=z("transform"),da=x+"transform",ea=z("transformorigin"),fa=null!==z("perspective"),ga=s.transform=function(){this.perspective=parsefloat(g.defaulttransformperspective)||0,this.force3d=g.defaultforce3d!==!1&&fa?g.defaultforce3d||"auto":!1},ha=_gsscope.svgelement,ia=function(a,b,c){var d,e=o.createelementns("http://www.w3.org/2000/svg",a),f=/([a-z])([a-z])/g;for(d in c)e.setattributens(null,d.replace(f,"$1-$2").tolowercase(),c[d]);return b.appendchild(e),e},ja=o.documentelement||{},ka=function(){var a,b,c,d=p||/android/i.test(t)&&!_gsscope.chrome;return o.createelementns&&!d&&(a=ia("svg",ja),b=ia("rect",a,{width:100,height:50,x:100}),c=b.getboundingclientrect().width,b.style[ea]="50% 50%",b.style[ca]="scalex(0.5)",d=c===b.getboundingclientrect().width&&!(n&&fa),ja.removechild(a)),d}(),la=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gstransform,w=qa(a,!0);v&&(t=v.xorigin,u=v.yorigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getbbox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parsefloat(a.hasattribute("x")?a.getattribute("x"):a.hasattribute("cx")?a.getattribute("cx"):0)||0,y:parsefloat(a.hasattribute("y")?a.getattribute("y"):a.hasattribute("cy")?a.getattribute("cy"):0)||0,width:0,height:0}),b=ha(b).split(" "),h=[(-1!==b[0].indexof("%")?parsefloat(b[0])/100*n.width:parsefloat(b[0]))+n.x,(-1!==b[1].indexof("%")?parsefloat(b[1])/100*n.height:parsefloat(b[1]))+n.y]),c.xorigin=k=parsefloat(h[0]),c.yorigin=l=parsefloat(h[1]),d&&w!==pa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xorigin=h[0]=i,l=c.yorigin=h[1]=j)),v&&(f&&(c.xoffset=v.xoffset,c.yoffset=v.yoffset,v=c),e||e!==!1&&g.defaultsmoothorigin!==!1?(i=k-t,j=l-u,v.xoffset+=i*w[0]+j*w[2]-i,v.yoffset+=i*w[1]+j*w[3]-j):v.xoffset=v.yoffset=0),f||a.setattribute("data-svg-origin",h.join(" "))},ma=function(a){var b,c=p("svg",this.ownersvgelement.getattribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentnode,e=this.nextsibling,f=this.style.csstext;if(ja.appendchild(c),c.appendchild(this),this.style.display="block",a)try{b=this.getbbox(),this._originalgetbbox=this.getbbox,this.getbbox=ma}catch(g){}else this._originalgetbbox&&(b=this._originalgetbbox());return e?d.insertbefore(this,e):d.appendchild(this),ja.removechild(c),this.style.csstext=f,b},na=function(a){try{return a.getbbox()}catch(b){return ma.call(a,!0)}},oa=function(a){return!(!(ha&&a.getctm&&na(a))||a.parentnode&&!a.ownersvgelement)},pa=[1,0,0,1,0,0],qa=function(a,b){var c,d,e,f,g,h,i=a._gstransform||new ga,j=1e5,k=a.style;if(ca?d=_(a,da,null,!0):a.currentstyle&&(d=a.currentstyle.filter.match(g),d=d&&4===d.length?[d[0].substr(4),number(d[2].substr(4)),number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,!ca||!(h="none"===$(a).display)&&a.parentnode||(h&&(f=k.display,k.display="block"),a.parentnode||(g=1,ja.appendchild(a)),d=_(a,da,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&va(k,"display"),g&&ja.removechild(a)),(i.svg||a.getctm&&oa(a))&&(c&&-1!==(k[ca]+"").indexof("matrix")&&(d=k[ca],c=0),e=a.getattribute("transform"),c&&e&&(-1!==e.indexof("matrix")?(d=e,c=0):-1!==e.indexof("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return pa;for(e=(d||"").match(s)||[],wa=e.length;--wa>-1;)f=number(e[wa]),e[wa]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},ra=s.gettransform=function(a,c,d,e){if(a._gstransform&&d&&!e)return a._gstransform;var f,h,i,j,k,l,m=d?a._gstransform||new ga:new ga,n=m.scalex<0,o=2e-5,p=1e5,q=fa?parsefloat(_(a,ea,c,!1,"0 0 0").split(" ")[2])||m.zorigin||0:0,r=parsefloat(g.defaulttransformperspective)||0;if(m.svg=!(!a.getctm||!oa(a)),m.svg&&(la(a,_(a,ea,c,!1,"50% 50%")+"",m,a.getattribute("data-svg-origin")),aa=g.usesvgtransformattr||ka),f=qa(a),f!==pa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],a=f[3],b=f[4],c=f[5],d=f[6],e=f[7],f=f[8],g=f[9],h=f[10],i=f[12],j=f[13],k=f[14],m=f[11],n=math.atan2(d,h);m.zorigin&&(k=-m.zorigin,i=f*k-f[12],j=g*k-f[13],k=h*k+m.zorigin-f[14]),m.rotationx=n*l,n&&(v=math.cos(-n),w=math.sin(-n),s=b*v+f*w,t=c*v+g*w,u=d*v+h*w,f=b*-w+f*v,g=c*-w+g*v,h=d*-w+h*v,m=e*-w+m*v,b=s,c=t,d=u),n=math.atan2(-z,h),m.rotationy=n*l,n&&(v=math.cos(-n),w=math.sin(-n),s=x*v-f*w,t=y*v-g*w,u=z*v-h*w,g=y*w+g*v,h=z*w+h*v,m=a*w+m*v,x=s,y=t,z=u),n=math.atan2(y,x),m.rotation=n*l,n&&(v=math.cos(n),w=math.sin(n),s=x*v+y*w,t=b*v+c*w,u=f*v+g*w,y=y*v-x*w,c=c*v-b*w,g=g*v-f*w,x=s,b=t,f=u),m.rotationx&&math.abs(m.rotationx)+math.abs(m.rotation)>359.9&&(m.rotationx=m.rotation=0,m.rotationy=180-m.rotationy),n=math.atan2(b,c),m.scalex=(math.sqrt(x*x+y*y+z*z)*p+.5|0)/p,m.scaley=(math.sqrt(c*c+d*d)*p+.5|0)/p,m.scalez=(math.sqrt(f*f+g*g+h*h)*p+.5|0)/p,x/=m.scalex,b/=m.scaley,y/=m.scalex,c/=m.scaley,math.abs(n)>o?(m.skewx=n*l,b=0,"simple"!==m.skewtype&&(m.scaley*=1/math.cos(n))):m.skewx=0,m.perspective=m?1/(0>m?-m:m):0,m.x=i,m.y=j,m.z=k,m.svg&&(m.x-=m.xorigin-(m.xorigin*x-m.yorigin*b),m.y-=m.yorigin-(m.yorigin*y-m.xorigin*c))}else if(!fa||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationx&&!m.rotationy){var o=f.length>=6,p=o?f[0]:1,q=f[1]||0,r=f[2]||0,s=o?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=math.sqrt(p*p+q*q),j=math.sqrt(s*s+r*r),k=p||q?math.atan2(q,p)*l:m.rotation||0,l=r||s?math.atan2(r,s)*l+k:m.skewx||0,m.scalex=i,m.scaley=j,m.rotation=k,m.skewx=l,fa&&(m.rotationx=m.rotationy=m.z=0,m.perspective=r,m.scalez=1),m.svg&&(m.x-=m.xorigin-(m.xorigin*p+m.yorigin*r),m.y-=m.yorigin-(m.xorigin*q+m.yorigin*s))}math.abs(m.skewx)>90&&math.abs(m.skewx)<270&&(n?(m.scalex*=-1,m.skewx+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaley*=-1,m.skewx+=m.skewx<=0?180:-180)),m.zorigin=q;for(h in m)m[h]-o&&(m[h]=0)}return d&&(a._gstransform=m,m.svg&&(aa&&a.style[ca]?b.delayedcall(.001,function(){va(a.style,ca)}):!aa&&a.getattribute("transform")&&b.delayedcall(.001,function(){a.removeattribute("transform")}))),m},sa=function(a){var b,c,d=this.data,e=-d.rotation*k,f=e+d.skewx*k,g=1e5,h=(math.cos(e)*d.scalex*g|0)/g,i=(math.sin(e)*d.scalex*g|0)/g,j=(math.sin(f)*-d.scaley*g|0)/g,k=(math.cos(f)*d.scaley*g|0)/g,l=this.t.style,m=this.t.currentstyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetwidth,r=this.t.offsetheight,s="absolute"!==m.position,t="progid:dximagetransform.microsoft.matrix(m11="+h+", m12="+i+", m21="+j+", m22="+k,u=d.x+q*d.xpercent/100,v=d.y+r*d.ypercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", dx="+(n-(n*h+o*i)+u)+", dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingmethod='auto expand')",-1!==b.indexof("dximagetransform.microsoft.matrix(")?l.filter=b.replace(h,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexof("dx=0, dy=0")||x.test(b)&&100!==parsefloat(regexp.$1)||-1===b.indexof(b.indexof("alpha"))&&l.removeattribute("filter")),!s){var y,z,a,b=8>p?1:-1;for(n=d.ieoffsetx||0,o=d.ieoffsety||0,d.ieoffsetx=math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieoffsety=math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),wa=0;4>wa;wa++)z=fa[wa],y=m[z],c=-1!==y.indexof("px")?parsefloat(y):aa(this.t,z,parsefloat(y),y.replace(w,""))||0,a=c!==d[z]?2>wa?-d.ieoffsetx:-d.ieoffsety:2>wa?n-d.ieoffsetx:o-d.ieoffsety,l[z]=(d[z]=math.round(c-a*(0===wa||2===wa?1:b)))+"px"}}},ta=s.set3dtransformratio=s.settransformratio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,a=this.t.style,b=z.rotation,c=z.rotationx,d=z.rotationy,e=z.scalex,f=z.scaley,g=z.scalez,h=z.x,i=z.y,j=z.z,l=z.svg,m=z.perspective,n=z.force3d,o=z.skewy,p=z.skewx;if(o&&(p+=o,b+=o),((1===a||0===a)&&"auto"===n&&(this.tween._totaltime===this.tween._totalduration||!this.tween._totaltime)||!n)&&!j&&!m&&!d&&!c&&1===g||aa&&l||!fa)return void(b||p||l?(b*=k,x=p*k,y=1e5,c=math.cos(b)*e,f=math.sin(b)*e,d=math.sin(b-x)*-f,g=math.cos(b-x)*f,x&&"simple"===z.skewtype&&(b=math.tan(x-o*k),b=math.sqrt(1+b*b),d*=b,g*=b,o&&(b=math.tan(o*k),b=math.sqrt(1+b*b),c*=b,f*=b)),l&&(h+=z.xorigin-(z.xorigin*c+z.yorigin*d)+z.xoffset,i+=z.yorigin-(z.xorigin*f+z.yorigin*g)+z.yoffset,aa&&(z.xpercent||z.ypercent)&&(q=this.t.getbbox(),h+=.01*z.xpercent*q.width,i+=.01*z.ypercent*q.height),q=1e-6,q>h&&h>-q&&(h=0),q>i&&i>-q&&(i=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+h+","+i+")",l&&aa?this.t.setattribute("transform","matrix("+u):a[ca]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix(":"matrix(")+u):a[ca]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix(":"matrix(")+e+",0,0,"+f+","+h+","+i+")");if(n&&(q=1e-4,q>e&&e>-q&&(e=g=2e-5),q>f&&f>-q&&(f=g=2e-5),!m||z.z||z.rotationx||z.rotationy||(m=0)),b||p)b*=k,r=c=math.cos(b),s=f=math.sin(b),p&&(b-=p*k,r=math.cos(b),s=math.sin(b),"simple"===z.skewtype&&(b=math.tan((p-o)*k),b=math.sqrt(1+b*b),r*=b,s*=b,z.skewy&&(b=math.tan(o*k),b=math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(d||c||1!==g||m||l))return void(a[ca]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) translate3d(":"translate3d(")+h+"px,"+i+"px,"+j+"px)"+(1!==e||1!==f?" scale("+e+","+f+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=m?-1/m:0,p=z.zorigin,q=1e-6,v=",",w="0",b=d*k,b&&(r=math.cos(b),s=math.sin(b),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),b=c*k,b&&(r=math.cos(b),s=math.sin(b),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==g&&(e*=g,h*=g,k*=g,o*=g),1!==f&&(d*=f,g*=f,j*=f,m*=f),1!==e&&(c*=e,f*=e,i*=e,l*=e),(p||l)&&(p&&(h+=e*-p,i+=h*-p,j+=k*-p+p),l&&(h+=z.xorigin-(z.xorigin*c+z.yorigin*d)+z.xoffset,i+=z.yorigin-(z.xorigin*f+z.yorigin*g)+z.yoffset),q>h&&h>-q&&(h=w),q>i&&i>-q&&(i=w),q>j&&j>-q&&(j=0)),u=z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),c||d||1!==g?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=h+v+i+v+j+v+(m?1+-j/m:1)+")",a[ca]=u};j=ga.prototype,j.x=j.y=j.z=j.skewx=j.skewy=j.rotation=j.rotationx=j.rotationy=j.zorigin=j.xpercent=j.ypercent=j.xoffset=j.yoffset=0,j.scalex=j.scaley=j.scalez=1,ya("transform,scale,scalex,scaley,scalez,x,y,z,rotation,rotationx,rotationy,rotationz,skewx,skewy,shortrotation,shortrotationx,shortrotationy,shortrotationz,transformorigin,svgorigin,transformperspective,directionalrotation,parsetransform,force3d,skewtype,xpercent,ypercent,smoothorigin",{parser:function(a,b,c,d,f,h,i){if(d._lastparsedtransform===i)return f;d._lastparsedtransform=i;var j,k=i.scale&&"function"==typeof i.scale?i.scale:0;"function"==typeof i[c]&&(j=i[c],i[c]=b),k&&(i.scale=k(r,a));var l,m,n,o,p,s,t,u,v,w=a._gstransform,x=a.style,y=1e-6,z=ba.length,a=i,b={},c="transformorigin",d=ra(a,e,!0,a.parsetransform),e=a.transform&&("function"==typeof a.transform?a.transform(r,q):a.transform);if(d.skewtype=a.skewtype||d.skewtype||g.defaultskewtype,d._transform=d,e&&"string"==typeof e&&ca)m=q.style, m[ca]=e,m.display="block",m.position="absolute",o.body.appendchild(q),l=ra(q,null,!1),"simple"===d.skewtype&&(l.scaley*=math.cos(l.skewx*k)),d.svg&&(s=d.xorigin,t=d.yorigin,l.x-=d.xoffset,l.y-=d.yoffset,(a.transformorigin||a.svgorigin)&&(e={},la(a,ha(a.transformorigin),e,a.svgorigin,a.smoothorigin,!0),s=e.xorigin,t=e.yorigin,l.x-=e.xoffset-d.xoffset,l.y-=e.yoffset-d.yoffset),(s||t)&&(u=qa(q,!0),l.x-=s-(s*u[0]+t*u[2]),l.y-=t-(s*u[1]+t*u[3]))),o.body.removechild(q),l.perspective||(l.perspective=d.perspective),null!=a.xpercent&&(l.xpercent=ja(a.xpercent,d.xpercent)),null!=a.ypercent&&(l.ypercent=ja(a.ypercent,d.ypercent));else if("object"==typeof a){if(l={scalex:ja(null!=a.scalex?a.scalex:a.scale,d.scalex),scaley:ja(null!=a.scaley?a.scaley:a.scale,d.scaley),scalez:ja(a.scalez,d.scalez),x:ja(a.x,d.x),y:ja(a.y,d.y),z:ja(a.z,d.z),xpercent:ja(a.xpercent,d.xpercent),ypercent:ja(a.ypercent,d.ypercent),perspective:ja(a.transformperspective,d.perspective)},p=a.directionalrotation,null!=p)if("object"==typeof p)for(m in p)a[m]=p[m];else a.rotation=p;"string"==typeof a.x&&-1!==a.x.indexof("%")&&(l.x=0,l.xpercent=ja(a.x,d.xpercent)),"string"==typeof a.y&&-1!==a.y.indexof("%")&&(l.y=0,l.ypercent=ja(a.y,d.ypercent)),l.rotation=ka("rotation"in a?a.rotation:"shortrotation"in a?a.shortrotation+"_short":"rotationz"in a?a.rotationz:d.rotation,d.rotation,"rotation",b),fa&&(l.rotationx=ka("rotationx"in a?a.rotationx:"shortrotationx"in a?a.shortrotationx+"_short":d.rotationx||0,d.rotationx,"rotationx",b),l.rotationy=ka("rotationy"in a?a.rotationy:"shortrotationy"in a?a.shortrotationy+"_short":d.rotationy||0,d.rotationy,"rotationy",b)),l.skewx=ka(a.skewx,d.skewx),l.skewy=ka(a.skewy,d.skewy)}for(fa&&null!=a.force3d&&(d.force3d=a.force3d,o=!0),n=d.force3d||d.z||d.rotationx||d.rotationy||l.z||l.rotationx||l.rotationy||l.perspective,n||null==a.scale||(l.scalez=1);--z>-1;)v=ba[z],e=l[v]-d[v],(e>y||-y>e||null!=a[v]||null!=m[v])&&(o=!0,f=new ta(d,v,d[v],e,f),v in b&&(f.e=b[v]),f.xs0=0,f.plugin=h,d._overwriteprops.push(f.n));return e=a.transformorigin,d.svg&&(e||a.svgorigin)&&(s=d.xoffset,t=d.yoffset,la(a,ha(e),l,a.svgorigin,a.smoothorigin),f=ua(d,"xorigin",(w?d:l).xorigin,l.xorigin,f,c),f=ua(d,"yorigin",(w?d:l).yorigin,l.yorigin,f,c),(s!==d.xoffset||t!==d.yoffset)&&(f=ua(d,"xoffset",w?s:d.xoffset,d.xoffset,f,c),f=ua(d,"yoffset",w?t:d.yoffset,d.yoffset,f,c)),e="0px 0px"),(e||fa&&n&&d.zorigin)&&(ca?(o=!0,v=ea,e=(e||_(a,v,e,!1,"50% 50%"))+"",f=new ta(x,v,0,0,f,-1,c),f.b=x[v],f.plugin=h,fa?(m=d.zorigin,e=e.split(" "),d.zorigin=(e.length>2&&(0===m||"0px"!==e[2])?parsefloat(e[2]):m)||0,f.xs0=f.e=e[0]+" "+(e[1]||"50%")+" 0px",f=new ta(d,"zorigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=d.zorigin):f.xs0=f.e=e):ha(e+"",d)),o&&(d._transformtype=d.svg&&aa||!n&&3!==this._transformtype?2:3),j&&(i[c]=j),k&&(i.scale=k),f},prefix:!0}),ya("boxshadow",{defaultvalue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ya("borderradius",{defaultvalue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["bordertopleftradius","bordertoprightradius","borderbottomrightradius","borderbottomleftradius"],z=a.style;for(q=parsefloat(a.offsetwidth),r=parsefloat(a.offsetheight),i=b.split(" "),j=0;jp?1:0))||""):(p=parsefloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=aa(a,"borderleft",o,t),w=aa(a,"bordertop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=aa(a,"borderleft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parsefloat(m)+p+s,k=parsefloat(l)+p+s)),g=va(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:qa("0px 0px 0px 0px",!1,!0)}),ya("borderbottomleftradius,borderbottomrightradius,bordertopleftradius,bordertoprightradius",{defaultvalue:"0px",parser:function(a,b,c,d,f,g){return va(a.style,c,this.format(_(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:qa("0px 0px",!1,!0)}),ya("backgroundposition",{defaultvalue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||$(a,null),q=this.format((o?p?o.getpropertyvalue(n+"-x")+" "+o.getpropertyvalue(n+"-y"):o.getpropertyvalue(n):a.currentstyle.backgroundpositionx+" "+a.currentstyle.backgroundpositiony)||"0 0"),r=this.format(b);if(-1!==q.indexof("%")!=(-1!==r.indexof("%"))&&r.split(",").length<2&&(m=_(a,"backgroundimage").replace(d,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),r.setattribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexof("%"),k!==(-1!==i[j].indexof("%"))&&(l=0===j?a.offsetwidth-r.width:a.offsetheight-r.height,h[j]=k?parsefloat(q)/100*l+"px":parsefloat(q)/l*100+"%");q=h.join(" ")}return this.parsecomplex(a.style,q,r,f,g)},formatter:ha}),ya("backgroundsize",{defaultvalue:"0 0",formatter:function(a){return a+="",ha(-1===a.indexof(" ")?a+" "+a:a)}}),ya("perspective",{defaultvalue:"0px",prefix:!0}),ya("perspectiveorigin",{defaultvalue:"50% 50%",prefix:!0}),ya("transformstyle",{prefix:!0}),ya("backfacevisibility",{prefix:!0}),ya("userselect",{prefix:!0}),ya("margin",{parser:ra("margintop,marginright,marginbottom,marginleft")}),ya("padding",{parser:ra("paddingtop,paddingright,paddingbottom,paddingleft")}),ya("clip",{defaultvalue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentstyle,j=8>p?" ":",",h="rect("+i.cliptop+j+i.clipright+j+i.clipbottom+j+i.clipleft+")",b=this.format(b).split(",").join(j)):(h=this.format(_(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parsecomplex(a.style,h,b,f,g)}}),ya("textshadow",{defaultvalue:"0px 0px 0px #999",color:!0,multi:!0}),ya("autoround,strictunits",{parser:function(a,b,c,d,e){return e}}),ya("border",{defaultvalue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=_(a,"bordertopwidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parsefloat(h)/aa(a,"bordertopwidth",1,j)+j),this.parsecomplex(a.style,this.format(h+" "+_(a,"bordertopstyle",e,!1,"solid")+" "+_(a,"bordertopcolor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(pa)||["#000"])[0]}}),ya("borderwidth",{parser:ra("bordertopwidth,borderrightwidth,borderbottomwidth,borderleftwidth")}),ya("float,cssfloat,stylefloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssfloat"in g?"cssfloat":"stylefloat";return new ta(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var ua=function(a){var b,c=this.t,d=c.filter||_(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexof("atrix(")&&-1===d.indexof("radient(")&&-1===d.indexof("oader(")?(c.removeattribute("filter"),b=!_(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexof("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};ya("opacity,alpha,autoalpha",{defaultvalue:"1",parser:function(a,b,c,d,f,g){var h=parsefloat(_(a,"opacity",e,!1,"1")),i=a.style,j="autoalpha"===c;return"string"==typeof b&&"="===b.charat(1)&&(b=("-"===b.charat(0)?-1:1)*parsefloat(b.substr(2))+h),j&&1===h&&"hidden"===_(a,"visibility",e)&&0!==b&&(h=0),u?f=new ta(i,"opacity",h,b-h,f):(f=new ta(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setratio=ua),j&&(f=new ta(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteprops.push(f.n),d._overwriteprops.push(c)),f}});var va=function(a,b){b&&(a.removeproperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeproperty(b.replace(b,"-$1").tolowercase())):a.removeattribute(b))},wa=function(a){if(this.t._gsclasspt=this,1===a||0===a){this.t.setattribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:va(c,b.p),b=b._next;1===a&&this.t._gsclasspt===this&&(this.t._gsclasspt=null)}else this.t.getattribute("class")!==this.e&&this.t.setattribute("class",this.e)};ya("classname",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getattribute("class")||"",p=a.style.csstext;if(g=f._classnamept=new ta(a,d,0,0,g,2),g.setratio=wa,g.pr=-11,c=!0,g.b=o,k=ca(a,e),l=a._gsclasspt){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setratio(1)}return a._gsclasspt=g,g.e="="!==b.charat(1)?b:o.replace(new regexp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charat(0)?" "+b.substr(2):""),a.setattribute("class",g.e),j=da(a,k,ca(a),i,m),a.setattribute("class",o),g.data=j.firstmpt,a.style.csstext=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var xa=function(a){if((1===a||0===a)&&this.data._totaltime===this.data._totalduration&&"isfromstart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.csstext="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformorigin"===c?ea:i[c].p),va(g,c);e&&(va(g,ca),f=this.t._gstransform,f&&(f.svg&&(this.t.removeattribute("data-svg-origin"),this.t.removeattribute("transform")),delete this.t._gstransform))}};for(ya("clearprops",{parser:function(a,b,d,e,f){return f=new ta(a,d,0,0,f,2),f.setratio=xa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwprops,physicsprops,physics2d".split(","),wa=j.length;wa--;)za(j[wa]);j=g.prototype,j._firstpt=j._lastparsedtransform=j._transform=null,j._oninittween=function(a,b,h,j){if(!a.nodetype)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoround,c=!1,d=b.suffixmap||g.suffixmap,e=$(a,""),f=this._overwriteprops;var n,p,s,t,u,v,w,x,z,a=a.style;if(l&&""===a.zindex&&(n=_(a,"zindex",e),("auto"===n||""===n)&&this._addlazyset(a,"zindex",0)),"string"==typeof b&&(t=a.csstext,n=ca(a,e),a.csstext=t+";"+b,n=da(a,n,ca(a)).difs,!u&&y.test(b)&&(n.opacity=parsefloat(regexp.$1)),b=n,a.csstext=t),b.classname?this._firstpt=p=i.classname.parse(a,b.classname,"classname",this,null,null,b):this._firstpt=p=this.parse(a,b,null),this._transformtype){for(z=3===this._transformtype,ca?m&&(l=!0,""===a.zindex&&(w=_(a,"zindex",e),("auto"===w||""===w)&&this._addlazyset(a,"zindex",0)),o&&this._addlazyset(a,"webkitbackfacevisibility",this._vars.webkitbackfacevisibility||(z?"visible":"hidden"))):a.zoom=1,s=p;s&&s._next;)s=s._next;x=new ta(a,"transform",0,0,null,2),this._linkcssp(x,null,s),x.setratio=ca?ta:sa,x.data=this._transform||ra(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstpt=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b){if(n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g])c=h.parse(a,n,g,this,c,f,b);else{if("--"===g.substr(0,2)){this._tween._proplookup[g]=this._addtween.call(this._tween,a.style,"setproperty",$(a).getpropertyvalue(g)+"",n+"",g,!1,g);continue}m=_(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexof("color")||s&&a.test(n)?(s||(n=na(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=va(u,g,m,n,!0,"transparent",c,0,f)):s&&j.test(n)?c=va(u,g,m,n,!0,null,c,0,f):(j=parsefloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ga(a,g,e),o="px"):"left"===g||"top"===g?(j=ba(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charat(1),t?(l=parseint(n.charat(0)+"1",10),n=n.substr(2),l*=parsefloat(n),p=n.replace(w,"")):(l=parsefloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&(""!==p||"lineheight"===g)&&(l||0===l)&&j&&(j=aa(a,g,j,o),"%"===p?(j/=aa(a,g,100,"%")/100,b.strictunits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=aa(a,g,1,p):"px"!==p&&(l=aa(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="nan"&&null!=n)?(c=new ta(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexof("style")?n:m):w("invalid "+g+" tween value: "+b[g]):(c=new ta(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zindex"===g),0,m,n),c.xs0=p))}f&&c&&!c.plugin&&(c.plugin=f)}return c},j.setratio=function(a){var b,c,d,e=this._firstpt,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawprevtime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d-1;)za(a[e],b,c);else for(d=a.childnodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ca(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childnodes.length||za(f,b,c)};return g.cascadeto=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedprops;for(a=i._targets||i.target,za(a,k,m),i.render(c,!0,!0),za(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=da(m[e],k[e],l[e]),f.firstmpt){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromto(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsscope._gsdefine.plugin({propname:"roundprops",version:"1.6.0",priority:-1,api:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){for(;a;)a.f||a.blob||(a.m=math.round),a=a._next},c=a.prototype;c._oninitallprops=function(){for(var a,c,d,e=this._tween,f=e.vars.roundprops.join?e.vars.roundprops:e.vars.roundprops.split(","),g=f.length,h={},i=e._proplookup.roundprops;--g>-1;)h[f[g]]=math.round;for(g=f.length;--g>-1;)for(a=f[g],c=e._firstpt;c;)d=c._next,c.pg?c.t._mod(h):c.n===a&&(2===c.f&&c.t?b(c.t._firstpt):(this._add(c.t,a,c.s,c.c),d&&(d._prev=c._prev),c._prev?c._prev._next=d:e._firstpt===c&&(e._firstpt=d),c._next=c._prev=null,e._proplookup[a]=i)),c=d;return!1},c._add=function(a,b,c,d){this._addtween(a,b,c,c+d,b,math.round),this._overwriteprops.push(b)}}(),function(){_gsscope._gsdefine.plugin({propname:"attr",api:2,version:"0.6.1",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setattribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addtween(a,"setattribute",a.getattribute(e)+"",f+"",e,!1,e),this._overwriteprops.push(e);return!0}})}(),_gsscope._gsdefine.plugin({propname:"directionalrotation",version:"0.3.1",api:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useradians===!0?2*math.pi:360,l=1e-6;for(e in b)"useradians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parsefloat("function"!=typeof a[e]?a[e]:a[e.indexof("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charat(1)?g+parseint(f.charat(0)+"1",10)*number(f.substr(2)):number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexof("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexof("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexof("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addtween(a,e,g,g+i,e),this._overwriteprops.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setratio.call(this,a);else for(b=this._firstpt;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autocss=!0,_gsscope._gsdefine("easing.back",["easing.ease"],function(a){var b,c,d,e=_gsscope.greensockglobals||_gsscope,f=e.com.greensock,g=2*math.pi,h=math.pi/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeout:new b,easein:new c,easeinout:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,e.config=function(a){return new d(a)},d},o=l("back",n("backout",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("backin",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("backinout",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.slowmo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcend=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getratio=function(a){var b=a+(.5-a)*this._p;return athis._p3?this._calcend?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcend?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.steppedease",function(a,b){a=a||1,this._p1=1/a,this._p2=a+(b?0:1),this._p3=b?1:0},!0),q=b.prototype=new a,q.constructor=b,q.getratio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),((this._p2*a|0)+this._p3)*this._p1},q.config=b.config=function(a,c){return new b(a,c)},c=i("easing.roughease",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?math.random():1/l*n,d=q?q.getratio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getratio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("bounce",j("bounceout",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("bouncein",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("bounceinout",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("circ",j("circout",function(a){return math.sqrt(1-(a-=1)*a)}),j("circin",function(a){return-(math.sqrt(1-a*a)-1)}),j("circinout",function(a){return(a*=2)<1?-.5*(math.sqrt(1-a*a)-1):.5*(math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getratio=c,f.config=function(a,b){return new e(a,b)},e},l("elastic",d("elasticout",function(a){return this._p1*math.pow(2,-10*a)*math.sin((a-this._p3)*this._p2)+1},.3),d("elasticin",function(a){return-(this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*this._p2))},.3),d("elasticinout",function(a){return(a*=2)<1?-.5*(this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*this._p2)):this._p1*math.pow(2,-10*(a-=1))*math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("expo",j("expoout",function(a){return 1-math.pow(2,-10*a)}),j("expoin",function(a){return math.pow(2,10*(a-1))-.001}),j("expoinout",function(a){return(a*=2)<1?.5*math.pow(2,10*(a-1)):.5*(2-math.pow(2,-10*(a-1)))})),l("sine",j("sineout",function(a){return math.sin(a*h)}),j("sinein",function(a){return-math.cos(a*h)+1}),j("sineinout",function(a){return-.5*(math.cos(math.pi*a)-1)})),i("easing.easelookup",{find:function(b){return a.map[b]}},!0),k(e.slowmo,"slowmo","ease,"),k(c,"roughease","ease,"),k(b,"steppedease","ease,"),o},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(a,b){"use strict";var c={},d=a.document,e=a.greensockglobals=a.greensockglobals||a;if(!e.tweenlite){var f,g,h,i,j,k=function(a){var b,c=a.split("."),d=e;for(b=0;b-1;)(l=q[f[p]]||new r(f[p],[])).gsclass?(i[p]=l.gsclass,s--):j&&l.sc.push(this);if(0===s&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=k(m.join("."))[n]=this.gsclass=g.apply(g,i),h)if(e[n]=c[n]=o,"undefined"!=typeof module&&module.exports)if(d===b){module.exports=c[b]=o;for(p in c)o[p]=c[p]}else c[b]&&(c[b][n]=o);else"function"==typeof define&&define.amd&&define((a.greensockamdpath?a.greensockamdpath+"/":"")+d.split(".").pop(),[],function(){return o});for(p=0;p-1;)for(f=i[j],e=d?t("easing."+f,null,!0):l.easing[f]||{},g=k.length;--g>-1;)h=k[g],w[f+"."+h]=w[h+f]=e[h]=a.getratio?a:a[h]||new a};for(h=v.prototype,h._calcend=!1,h.getratio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},f=["linear","quad","cubic","quart","quint,strong"],g=f.length;--g>-1;)h=f[g]+",power"+g,x(new v(null,null,1,g),h,"easeout",!0),x(new v(null,null,2,g),h,"easein"+(0===g?",easenone":"")),x(new v(null,null,3,g),h,"easeinout");w.linear=l.easing.linear.easein,w.swing=l.easing.quad.easeinout;var y=t("events.eventdispatcher",function(a){this._listeners={},this._eventtarget=a||this});h=y.prototype,h.addeventlistener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],k=0;for(this!==i||j||i.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===k&&f.pr-1;)if(d[c].c===b)return void d.splice(c,1)},h.dispatchevent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventtarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var z=a.requestanimationframe,a=a.cancelanimationframe,b=date.now||function(){return(new date).gettime()},c=b();for(f=["ms","moz","webkit","o"],g=f.length;--g>-1&&!z;)z=a[f[g]+"requestanimationframe"],a=a[f[g]+"cancelanimationframe"]||a[f[g]+"cancelrequestanimationframe"];t("ticker",function(a,b){var c,e,f,g,h,k=this,l=b(),n=b!==!1&&z?"auto":!1,p=500,q=33,r="tick",s=function(a){var b,d,i=b()-c;i>p&&(l+=i-q),c+=i,k.time=(c-l)/1e3,b=k.time-h,(!c||b>0||a===!0)&&(k.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&k.dispatchevent(r)};y.call(k),k.time=k.frame=0,k.tick=function(){s(!0)},k.lagsmoothing=function(a,b){p=a||1/m,q=math.min(b,p,0)},k.sleep=function(){null!=f&&(n&&a?a(f):cleartimeout(f),e=o,f=null,k===i&&(j=!1))},k.wake=function(a){null!==f?k.sleep():a?l+=-c+(c=b()):k.frame>10&&(c=b()-p+5),e=0===c?o:n&&z?z:function(a){return settimeout(a,1e3*(h-k.time)+1|0)},k===i&&(j=!0),s(2)},k.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void k.wake()):c},k.useraf=function(a){return arguments.length?(k.sleep(),n=a,void k.fps(c)):n},k.fps(a),settimeout(function(){"auto"===n&&k.frame<5&&"hidden"!==d.visibilitystate&&k.useraf(!1)},1500)}),h=l.ticker.prototype=new l.events.eventdispatcher,h.constructor=l.ticker;var d=t("core.animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalduration=a||0,this._delay=number(b.delay)||0,this._timescale=1,this._active=b.immediaterender===!0,this.data=b.data,this._reversed=b.reversed===!0,x){j||i.wake();var c=this.vars.useframes?w:x;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});i=d.ticker=new l.ticker,h=d.prototype,h._dirty=h._gc=h._initted=h._paused=!1,h._totaltime=h._time=0,h._rawprevtime=-1,h._next=h._last=h._onupdate=h._timeline=h.timeline=null,h._paused=!1;var e=function(){j&&b()-c>2e3&&"hidden"!==d.visibilitystate&&i.wake();var a=settimeout(e,2e3);a.unref&&a.unref()};e(),h.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},h.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},h.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},h.seek=function(a,b){return this.totaltime(number(a),b!==!1)},h.restart=function(a,b){return this.reversed(!1).paused(!1).totaltime(a?-this._delay:0,b!==!1,!0)},h.reverse=function(a,b){return null!=a&&this.seek(a||this.totalduration(),b),this.reversed(!0).paused(!1)},h.render=function(a,b,c){},h.invalidate=function(){return this._time=this._totaltime=0,this._initted=this._gc=!1,this._rawprevtime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},h.isactive=function(){var a,b=this._timeline,c=this._starttime;return!b||!this._gc&&!this._paused&&b.isactive()&&(a=b.rawtime(!0))>=c&&a-1;)"{self}"===a[b]&&(c[b]=this);return c},h._callback=function(a){var b=this.vars,c=b[a],d=b[a+"params"],e=b[a+"scope"]||b.callbackscope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},h.eventcallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"params"]=p(c)&&-1!==c.join("").indexof("{self}")?this._swapselfinparams(c):c,e[a+"scope"]=d),"onupdate"===a&&(this._onupdate=b)}return this},h.delay=function(a){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+a-this._delay),this._delay=a,this):this._delay},h.duration=function(a){return arguments.length?(this._duration=this._totalduration=a,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},h.totaltime=function(a,b,c){if(j||i.wake(),!arguments.length)return this._totaltime;if(this._timeline){if(0>a&&!c&&(a+=this.totalduration()),this._timeline.smoothchildtiming){this._dirty&&this.totalduration();var d=this._totalduration,e=this._timeline;if(a>d&&!c&&(a=d),this._starttime=(this._paused?this._pausetime:e._time)-(this._reversed?d-a:a)/this._timescale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._starttime+e._totaltime)/e._timescale&&e.totaltime(e._totaltime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==a||0===this._duration)&&(j.length&&z(),this.render(a,b,!1),j.length&&z())}return this},h.progress=h.totalprogress=function(a,b){var c=this.duration();return arguments.length?this.totaltime(c*a,b):c?this._time/c:this.ratio},h.starttime=function(a){return arguments.length?(a!==this._starttime&&(this._starttime=a,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,a-this._delay)),this):this._starttime},h.endtime=function(a){return this._starttime+(0!=a?this.totalduration():this.duration())/this._timescale},h.timescale=function(a){if(!arguments.length)return this._timescale;if(a=a||m,this._timeline&&this._timeline.smoothchildtiming){var b=this._pausetime,c=b||0===b?b:this._timeline.totaltime();this._starttime=c-(c-this._starttime)*this._timescale/a}return this._timescale=a,this._uncache(!1)},h.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totaltime(this._timeline&&!this._timeline.smoothchildtiming?this.totalduration()-this._totaltime:this._totaltime,!0)),this):this._reversed},h.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(j||a||i.wake(),b=d.rawtime(),c=b-this._pausetime,!a&&d.smoothchildtiming&&(this._starttime+=c,this._uncache(!1)),this._pausetime=a?b:null,this._paused=a,this._active=this.isactive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothchildtiming?this._totaltime:(b-this._starttime)/this._timescale,this.render(b,b===this._totaltime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var f=t("core.simpletimeline",function(a){d.call(this,0,a),this.autoremovechildren=this.smoothchildtiming=!0});h=f.prototype=new d,h.constructor=f,h.kill()._gc=!1,h._first=h._last=h._recent=null,h._sortchildren=!1,h.add=h.insert=function(a,b,c,d){var e,f;if(a._starttime=number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pausetime=a._starttime+(this.rawtime()-a._starttime)/a._timescale), a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortchildren)for(f=a._starttime;e&&e._starttime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},h._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},h.render=function(a,b,c){var d,e=this._first;for(this._totaltime=this._time=this._rawprevtime=a;e;)d=e._next,(e._active||a>=e._starttime&&!e._paused&&!e._gc)&&(e._reversed?e.render((e._dirty?e.totalduration():e._totalduration)-(a-e._starttime)*e._timescale,b,c):e.render((a-e._starttime)*e._timescale,b,c)),e=d},h.rawtime=function(){return j||i.wake(),this._totaltime};var g=t("tweenlite",function(b,c,d){if(d.call(this,c,d),this.render=g.prototype.render,null==b)throw"cannot tween a null target.";this.target=b="string"!=typeof b?b:g.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodetype&&b[0].style&&!b.nodetype),i=this.vars.overwrite;if(this._overwrite=i=null==i?v[g.defaultoverwrite]:"number"==typeof i?i>>0:v[i],(h||b instanceof array||b.push&&p(b))&&"number"!=typeof b[0])for(this._targets=g=n(b),this._proplookup=[],this._siblings=[],e=0;e1&&aa(f,this,null,1,this._siblings[e])):(f=g[e--]=g.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._proplookup={},this._siblings=$(b,this,!1),1===i&&this._siblings.length>1&&aa(b,this,null,1,this._siblings);(this.vars.immediaterender||0===c&&0===this._delay&&this.vars.immediaterender!==!1)&&(this._time=-m,this.render(math.min(0,-this._delay)))},!0),h=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodetype&&b[0].style&&!b.nodetype)},i=function(a,b){var c,d={};for(c in a)u[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"classname"!==c&&"border"!==c||!(!r[c]||r[c]&&r[c]._autocss)||(d[c]=a[c],delete a[c]);a.css=d};h=g.prototype=new d,h.constructor=g,h.kill()._gc=!1,h.ratio=0,h._firstpt=h._targets=h._overwrittenprops=h._startat=null,h._notifypluginsofenabled=h._lazy=!1,g.version="1.20.2",g.defaultease=h._ease=new v(null,null,1,1),g.defaultoverwrite="auto",g.ticker=i,g.autosleep=120,g.lagsmoothing=function(a,b){i.lagsmoothing(a,b)},g.selector=a.$||a.jquery||function(b){var c=a.$||a.jquery;return c?(g.selector=c,c(b)):"undefined"==typeof d?b:d.queryselectorall?d.queryselectorall(b):d.getelementbyid("#"===b.charat(0)?b.substr(1):b)};var j=[],k={},l=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,m=/[\+-]=-?[\.\d]/,n=function(a){for(var b,c=this._firstpt,d=1e-6;c;)b=c.blob?1===a&&this.end?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m(b,this._target||c.t):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},o=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(l)||[],f=b.match(l)||[],d&&(d._next=null,d.blob=1,l._firstpt=l._applypt=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexof(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parsefloat(e[h]),l.push(g),l._firstpt={_next:l._firstpt,t:l,p:l.length-1,s:g,c:("="===k.charat(1)?parseint(k.charat(0)+"1",10)*parsefloat(k.substr(2)):parsefloat(k)-g)||0,f:0,m:o&&4>o?math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setratio=n,m.test(b)&&(l.end=0),l},p=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexof("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charat(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:math.round:0,pr:0,c:n?parseint(d.charat(0)+"1",10)*parsefloat(d.substr(2)):parsefloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isnan(m)||!n&&isnan(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=o(m,n?parsefloat(o.s)+o.c:d,h||g.defaultstringfilter,o),o={t:j,p:"setratio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parsefloat(m),n||(o.c=parsefloat(d)-o.s||0))),o.c?((o._next=this._firstpt)&&(o._next._prev=o),this._firstpt=o,o):void 0},q=g._internals={isarray:p,isselector:h,lazytweens:j,blobdif:o},r=g._plugins={},s=q.tweenlookup={},t=0,u=q.reservedprops={ease:1,delay:1,overwrite:1,oncomplete:1,oncompleteparams:1,oncompletescope:1,useframes:1,runbackwards:1,startat:1,onupdate:1,onupdateparams:1,onupdatescope:1,onstart:1,onstartparams:1,onstartscope:1,onreversecomplete:1,onreversecompleteparams:1,onreversecompletescope:1,onrepeat:1,onrepeatparams:1,onrepeatscope:1,easeparams:1,yoyo:1,immediaterender:1,repeat:1,repeatdelay:1,data:1,paused:1,reversed:1,autocss:1,lazy:1,onoverwrite:1,callbackscope:1,stringfilter:1,id:1,yoyoease:1},v={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},w=d._rootframestimeline=new f,x=d._roottimeline=new f,y=30,z=q.lazyrender=function(){var a,b=j.length;for(k={};--b>-1;)a=j[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);j.length=0};x._starttime=i.time,w._starttime=i.frame,x._active=w._active=!0,settimeout(z,1),d._updateroot=g.render=function(){var a,b,c;if(j.length&&z(),x.render((i.time-x._starttime)*x._timescale,!1,!1),w.render((i.frame-w._starttime)*w._timescale,!1,!1),j.length&&z(),i.frame>=y){y=i.frame+(parseint(g.autosleep,10)||120);for(c in s){for(b=s[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete s[c]}if(c=x._first,(!c||c._paused)&&g.autosleep&&!w._first&&1===i._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||i.sleep()}}},i.addeventlistener("tick",d._updateroot);var $=function(a,b,c){var d,e,f=a._gstweenid;if(s[f||(a._gstweenid=f="t"+t++)]||(s[f]={target:a,tweens:[]}),b&&(d=s[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return s[f].tweens},_=function(a,b,c,d){var e,f,g=a.vars.onoverwrite;return g&&(e=g(a,b,c,d)),g=g.onoverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},aa=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._starttime+m,l=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||ba(b,0,o),0===ba(h,j,o)&&(l[n++]=h)):h._starttime<=k&&h._starttime+h.totalduration()/h._timescale>k&&((o||!h._initted)&&k-h._starttime<=2e-10||(l[n++]=h)));for(f=n;--f>-1;)if(h=l[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstpt&&h._initted){if(2!==d&&!_(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},ba=function(a,b,c){for(var d=a._timeline,e=d._timescale,f=a._starttime;d._timeline;){if(f+=d._starttime,e*=d._timescale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*m>f-b?m:(f+=a.totalduration()/a._timescale/e)>b+m?0:f-b-m};h._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenprops,i=this._duration,j=!!g.immediaterender,k=g.ease;if(g.startat){this._startat&&(this._startat.render(-1,!0),this._startat.kill()),e={};for(d in g.startat)e[d]=g.startat[d];if(e.overwrite=!1,e.immediaterender=!0,e.lazy=j&&g.lazy!==!1,e.startat=e.delay=null,e.onupdate=g.onupdate,e.onupdatescope=g.onupdatescope||g.callbackscope||this,this._startat=g.to(this.target,0,e),j)if(this._time>0)this._startat=null;else if(0!==i)return}else if(g.runbackwards&&0!==i)if(this._startat)this._startat.render(-1,!0),this._startat.kill(),this._startat=null;else{0!==this._time&&(j=!1),c={};for(d in g)u[d]&&"autocss"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isfromstart",c.lazy=j&&g.lazy!==!1,c.immediaterender=j,this._startat=g.to(this.target,0,c),j){if(0===this._time)return}else this._startat._init(),this._startat._enabled(!1),this.vars.immediaterender&&(this._startat=null)}if(this._ease=k=k?k instanceof v?k:"function"==typeof k?new v(k,g.easeparams):w[k]||g.defaultease:g.defaultease,g.easeparams instanceof array&&k.config&&(this._ease=k.config.apply(k,g.easeparams)),this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initprops(this._targets[a],this._proplookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initprops(this.target,this._proplookup,this._siblings,h,0);if(b&&g._onpluginevent("_oninitallprops",this),h&&(this._firstpt||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runbackwards)for(c=this._firstpt;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onupdate=g.onupdate,this._initted=!0},h._initprops=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;k[b._gstweenid]&&z(),this.vars.css||b.style&&b!==a&&b.nodetype&&r.css&&this.vars.autocss!==!1&&i(this.vars,b);for(g in this.vars)if(l=this.vars[g],u[g])l&&(l instanceof array||l.push&&p(l))&&-1!==l.join("").indexof("{self}")&&(this.vars[g]=l=this._swapselfinparams(l,this));else if(r[g]&&(j=new r[g])._oninittween(b,this.vars[g],this,f)){for(this._firstpt=k={_next:this._firstpt,t:j,p:"setratio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteprops.length;--h>-1;)c[j._overwriteprops[h]]=this._firstpt;(j._priority||j._oninitallprops)&&(i=!0),(j._ondisable||j._onenable)&&(this._notifypluginsofenabled=!0),k._next&&(k._next._prev=k)}else c[g]=p.call(this,b,g,"get",l,g,0,null,this.vars.stringfilter,f);return e&&this._kill(e,b)?this._initprops(b,c,d,e,f):this._overwrite>1&&this._firstpt&&d.length>1&&aa(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initprops(b,c,d,e,f)):(this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(k[b._gstweenid]=!0),i)},h.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawprevtime;if(a>=i-1e-7&&a>=0)this._totaltime=this._time=i,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(d=!0,e="oncomplete",c=c||this._timeline.autoremovechildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._starttime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===m&&"ispause"!==this.data)&&j!==a&&(c=!0,j>m&&(e="onreversecomplete")),this._rawprevtime=g=!b||a||j===a?a:m);else if(1e-7>a)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==h||0===i&&j>0)&&(e="onreversecomplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==m||"ispause"!==this.data)&&(c=!0),this._rawprevtime=g=!b||a||j===a?a:m)),(!this._initted||this._startat&&this._startat.progress())&&(c=!0);else if(this._totaltime=this._time=a,this._easetype){var k=a/i,l=this._easetype,n=this._easepower;(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getratio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totaltime=h,this._rawprevtime=j,j.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getratio(this._time/i):d&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startat&&(a>=0?this._startat.render(a,b,c):e||(e="_dummygs")),this.vars.onstart&&(0!==this._time||0===i)&&(b||this._callback("onstart"))),f=this._firstpt;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onupdate&&(0>a&&this._startat&&a!==-1e-4&&this._startat.render(a,b,c),b||(this._time!==h||d||c)&&this._callback("onupdate")),e&&(!this._gc||c)&&(0>a&&this._startat&&!this._onupdate&&a!==-1e-4&&this._startat.render(a,b,c),d&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawprevtime===m&&g!==m&&(this._rawprevtime=0))}},h._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:g.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._starttime===this._starttime&&this._timeline===c._timeline;if((p(b)||h(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._proplookup[d]||{},this._overwrittenprops=this._overwrittenprops||[],e=this._overwrittenprops[d]=a?this._overwrittenprops[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._proplookup,e=this._overwrittenprops=a?this._overwrittenprops||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempkill),c&&(g.onoverwrite||this.vars.onoverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!_(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteprops.length||(g._prev?g._prev._next=g._next:g===this._firstpt&&(this._firstpt=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return i},h.invalidate=function(){return this._notifypluginsofenabled&&g._onpluginevent("_ondisable",this),this._firstpt=this._overwrittenprops=this._startat=this._onupdate=null,this._notifypluginsofenabled=this._active=this._lazy=!1,this._proplookup=this._targets?{}:[],d.prototype.invalidate.call(this),this.vars.immediaterender&&(this._time=-m,this.render(math.min(0,-this._delay))),this},h._enabled=function(a,b){if(j||i.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=$(d[c],this,!0);else this._siblings=$(this.target,this,!0)}return d.prototype._enabled.call(this,a,b),this._notifypluginsofenabled&&this._firstpt?g._onpluginevent(a?"_onenable":"_ondisable",this):!1},g.to=function(a,b,c){return new g(a,b,c)},g.from=function(a,b,c){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,new g(a,b,c)},g.fromto=function(a,b,c,d){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,new g(a,b,d)},g.delayedcall=function(a,b,c,d,e){return new g(b,0,{delay:a,oncomplete:b,oncompleteparams:c,callbackscope:d,onreversecomplete:b,onreversecompleteparams:c,immediaterender:!1,lazy:!1,useframes:e,overwrite:0})},g.set=function(a,b){return new g(a,0,b)},g.gettweensof=function(a,b){if(null==a)return[];a="string"!=typeof a?a:g.selector(a)||a;var c,d,e,f;if((p(a)||h(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(g.gettweensof(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else if(a._gstweenid)for(d=$(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isactive())&&d.splice(c,1);return d||[]},g.killtweensof=g.killdelayedcallsto=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=g.gettweensof(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ca=t("plugins.tweenplugin",function(a,b){this._overwriteprops=(a||"").split(","),this._propname=this._overwriteprops[0],this._priority=b||0,this._super=ca.prototype},!0);if(h=ca.prototype,ca.version="1.19.0",ca.api=2,h._firstpt=null,h._addtween=p,h.setratio=n,h._kill=function(a){var b,c=this._overwriteprops,d=this._firstpt;if(null!=a[this._propname])this._overwriteprops=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstpt===d&&(this._firstpt=d._next)),d=d._next;return!1},h._mod=h._roundprops=function(a){for(var b,c=this._firstpt;c;)b=a[this._propname]||null!=c.n&&a[c.n.split(this._propname+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applypt.m=b:c.m=b),c=c._next},g._onpluginevent=function(a,b){var c,d,e,f,g,h=b._firstpt;if("_oninitallprops"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstpt=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ca.activate=function(a){for(var b=a.length;--b>-1;)a[b].api===ca.api&&(r[(new a[b])._propname]=a[b]);return!0},s.plugin=function(a){if(!(a&&a.propname&&a.init&&a.api))throw"illegal plugin definition.";var b,c=a.propname,d=a.priority||0,e=a.overwriteprops,f={init:"_oninittween",set:"setratio",kill:"_kill",round:"_mod",mod:"_mod",initall:"_oninitallprops"},g=t("plugins."+c.charat(0).touppercase()+c.substr(1)+"plugin",function(){ca.call(this,c,d),this._overwriteprops=e||[]},a.global===!0),h=g.prototype=new ca(c);h.constructor=g,g.api=a.api;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ca.activate([g]),g},f=a._gsqueue){for(g=0;g0&&(o=window.settimeout(x,u.refreshinterval))},e=function(){return u.vertical?r.get.scrolltop(u.container):r.get.scrollleft(u.container)},s=function(e){u.vertical?p?window.scrollto(r.get.scrollleft(),e):u.container.scrolltop=e:p?window.scrollto(e,r.get.scrolltop()):u.container.scrollleft=e},b=function(){var e=d;d=c.scrollpos();var t=d-e;g=0===t?a.p:t>0?a.f:a.r},f=function(){if(m&&h){var e=r.type.array(h)?h:f.slice(0);g===a.r&&e.reverse(),e.foreach(function(e){e.update(!0)}),0===e.length&&u.loglevel>=3,h=!1}},z=function(){i=r.raf(f)},t=function(e){"resize"==e.type&&(v=u.vertical?r.get.height(u.container):r.get.width(u.container)),b(),h||(h=!0,z())},x=function(){if(!p&&v!=(u.vertical?r.get.height(u.container):r.get.width(u.container))){var e;try{e=new event("resize",{bubbles:!1,cancelable:!1})}catch(t){e=document.createevent("event"),e.initevent("resize",!1,!1)}u.container.dispatchevent(e)}f.foreach(function(e){e.refresh()}),y()};this._options=u;var r=function(e){if(e.length<=1)return e;var t=e.slice(0);return t.sort(function(e,t){return e.scrolloffset()>t.scrolloffset()?1:-1}),t};return this.addscene=function(t){if(r.type.array(t))t.foreach(function(e){c.addscene(e)});else if(t instanceof e.scene)if(t.controller()!==c)t.addto(c);else if(f.indexof(t)<0){f.push(t),f=r(f),t.on("shift.controller_sort",function(){f=r(f)});for(var n in u.globalsceneoptions)t[n]&&t[n].call(t,u.globalsceneoptions[n])}return c},this.removescene=function(e){if(r.type.array(e))e.foreach(function(e){c.removescene(e)});else{var t=f.indexof(e);t>-1&&(e.off("shift.controller_sort"),f.splice(t,1),e.remove())}return c},this.updatescene=function(t,n){return r.type.array(t)?t.foreach(function(e){c.updatescene(e,n)}):n?t.update(!0):h!==!0&&t instanceof e.scene&&(h=h||[],-1==h.indexof(t)&&h.push(t),h=r(h),z()),c},this.update=function(e){return t({type:"resize"}),e&&f(),c},this.scrollto=function(t){if(r.type.number(t))s.call(u.container,t);else if(t instanceof e.scene)t.controller()===c?c.scrollto(t.scrolloffset()):log(2,"scrollto(): the supplied scene does not belong to this controller. scroll cancelled.",t);else if(r.type.function(t))s=t;else{var n=r.get.elements(t)[0];if(n){var i=u.vertical?"top":"left",o=r.get.offset(u.container),s=r.get.offset(n);p||(o[i]-=c.scrollpos()),c.scrollto(s[i]-o[i])}else log(2,"scrollto(): the supplied argument is invalid. scroll cancelled.",t)}return c},this.scrollpos=function(e){return arguments.length?(r.type.function(e)&&(e=e),c):e.call(c)},this.info=function(e){var t={size:v,vertical:u.vertical,scrollpos:d,scrolldirection:g,container:u.container,isdocument:p};return arguments.length?void 0!==t[e]?t[e]:void 0:t},this.loglevel=function(e){return arguments.length?(u.loglevel!=e&&(u.loglevel=e),c):u.loglevel},this.enabled=function(e){return arguments.length?(m!=e&&(m=!!e,c.updatescene(f,!0)),c):m},this.destroy=function(e){window.cleartimeout(o);for(var t=f.length;t--;)f[t].destroy(e);return u.container.removeeventlistener("resize",t),u.container.removeeventlistener("scroll",t),r.caf(i),null},w(),c};var t={defaults:{container:window,vertical:!0,globalsceneoptions:{},loglevel:2,refreshinterval:100}};e.controller.addoption=function(e,n){t.defaults[e]=n},e.controller.extend=function(t){var n=this;e.controller=function(){return n.apply(this,arguments),this.$super=r.extend({},this),t.apply(this,arguments)||this},r.extend(e.controller,n),e.controller.prototype=n.prototype,e.controller.prototype.constructor=e.controller},e.scene=function(t){var i,o,s="data-scrollmagic-pin-spacer",a=n.defaults,l=this,c=r.extend({},a,t),u="before",f=0,h={start:0,end:0},d=0,g=!0,p=function(){for(var e in c)a.hasownproperty(e)||delete c[e];for(var t in a)f(t);s(),l.on("change.internal",function(e){"loglevel"!==e.what&&"tweenchanges"!==e.what&&("triggerelement"===e.what?w():"reverse"===e.what&&l.update())}).on("shift.internal",function(){v(),l.update()})};this.addto=function(t){return t instanceof e.controller&&o!=t&&(o&&o.removescene(l),o=t,s(),m(!0),w(!0),v(),o.info("container").addeventlistener("resize",y),t.addscene(l),l.trigger("add",{controller:o}),l.update()),l},this.enabled=function(e){return arguments.length?(g!=e&&(g=!!e,l.update(!0)),l):g},this.remove=function(){if(o){o.info("container").removeeventlistener("resize",y);var e=o;o=void 0,e.removescene(l),l.trigger("remove")}return l},this.destroy=function(e){return l.trigger("destroy",{reset:e}),l.remove(),l.off("*.*"),null},this.update=function(e){if(o)if(e)if(o.enabled()&&g){var t,n=o.info("scrollpos");t=c.duration>0?(n-h.start)/(h.end-h.start):n>=h.start?1:0,l.trigger("update",{startpos:h.start,endpos:h.end,scrollpos:n}),l.progress(t)}else t&&"during"===u&&r(!0);else o.updatescene(l,!1);return l},this.refresh=function(){return m(),w(),l},this.progress=function(e){if(arguments.length){var t=!1,n=u,r=o?o.info("scrolldirection"):"paused",i=c.reverse||e>=f;if(0===c.duration?(t=f!=e,f=1>e&&i?0:1,u=0===f?"before":"during"):0>=e&&"before"!==u&&i?(f=0,u="before",t=!0):e>0&&1>e&&i?(f=e,u="during",t=!0):e>=1&&"after"!==u?(f=1,u="after",t=!0):"during"!==u||i||r(),t){var s={progress:f,state:u,scrolldirection:r},a=u!=n,h=function(e){l.trigger(e,s)};a&&"during"!==n&&(h("enter"),h("before"===n?"start":"end")),h("progress"),a&&"during"!==u&&(h("before"===u?"start":"end"),h("leave"))}return l}return f};var v=function(){h={start:d+c.offset},o&&c.triggerelement&&(h.start-=o.info("size")*c.triggerhook),h.end=h.start+c.duration},m=function(e){if(i){var t="duration";b(t,i.call(l))&&!e&&(l.trigger("change",{what:t,newval:c[t]}),l.trigger("shift",{reason:t}))}},w=function(e){var t=0,n=c.triggerelement;if(o&&n){for(var i=o.info(),a=r.get.offset(i.container),u=i.vertical?"top":"left";n.parentnode.hasattribute(s);)n=n.parentnode;var f=r.get.offset(n);i.isdocument||(a[u]-=o.scrollpos()),t=f[u]-a[u]}var h=t!=d;d=t,h&&!e&&l.trigger("shift",{reason:"triggerelementposition"})},y=function(){c.triggerhook>0&&l.trigger("shift",{reason:"containerresize"})},e=r.extend(n.validate,{duration:function(e){if(r.type.string(e)&&e.match(/^(\.|\d)*\d+%$/)){var t=parsefloat(e)/100;e=function(){return o?o.info("size")*t:0}}if(r.type.function(e)){i=e;try{e=parsefloat(i())}catch(n){e=-1}}if(e=parsefloat(e),!r.type.number(e)||0>e)throw i?(i=void 0,0):0;return e}}),s=function(e){e=arguments.length?[e]:object.keys(e),e.foreach(function(e){var t;if(e[e])try{t=e[e](c[e])}catch(n){t=a[e]}finally{c[e]=t}})},b=function(e,t){var n=!1,r=c[e];return c[e]!=t&&(c[e]=t,s(e),n=r!=c[e]),n},f=function(e){l[e]||(l[e]=function(t){return arguments.length?("duration"===e&&(i=void 0),b(e,t)&&(l.trigger("change",{what:e,newval:c[e]}),n.shifts.indexof(e)>-1&&l.trigger("shift",{reason:e})),l):c[e]})};this.controller=function(){return o},this.state=function(){return u},this.scrolloffset=function(){return h.start},this.triggerposition=function(){var e=c.offset;return o&&(e+=c.triggerelement?d:o.info("size")*l.triggerhook()),e};var z={};this.on=function(e,t){return r.type.function(t)&&(e=e.trim().split(" "),e.foreach(function(e){var n=e.split("."),r=n[0],i=n[1];"*"!=r&&(z[r]||(z[r]=[]),z[r].push({namespace:i||"",callback:t}))})),l},this.off=function(e,t){return e?(e=e.trim().split(" "),e.foreach(function(e){var n=e.split("."),r=n[0],i=n[1]||"",o="*"===r?object.keys(z):[r];o.foreach(function(e){for(var n=z[e]||[],r=n.length;r--;){var o=n[r];!o||i!==o.namespace&&"*"!==i||t&&t!=o.callback||n.splice(r,1)}n.length||delete z[e]})}),l):l},this.trigger=function(t,n){if(t){var r=t.trim().split("."),i=r[0],o=r[1],s=z[i];s&&s.foreach(function(t){o&&o!==t.namespace||t.callback.call(l,new e.event(i,t.namespace,l,n))})}return l};var t,x;l.on("shift.internal",function(e){var t="duration"===e.reason;("after"===u&&t||"during"===u&&0===c.duration)&&r(),t&&c()}).on("progress.internal",function(){r()}).on("add.internal",function(){c()}).on("destroy.internal",function(e){l.removepin(e.reset)});var r=function(e){if(t&&o){var t=o.info();if(e||"during"!==u){var n={position:x.inflow?"relative":"absolute",top:0,left:0},i=r.css(t,"position")!=n.position;x.pushfollowers?c.duration>0&&("after"===u&&0===parsefloat(r.css(x.spacer,"padding-top"))?i=!0:"before"===u&&0===parsefloat(r.css(x.spacer,"padding-bottom"))&&(i=!0)):n[t.vertical?"top":"left"]=c.duration*f,r.css(t,n),i&&c()}else{"fixed"!=r.css(t,"position")&&(r.css(t,{position:"fixed"}),c());var s=r.get.offset(x.spacer,!0),a=c.reverse||0===c.duration?t.scrollpos-h.start:math.round(f*c.duration*10)/10;s[t.vertical?"top":"left"]+=a,r.css(t,{top:s.top,left:s.left})}}},c=function(){if(t&&o&&x.inflow){var e="during"===u,t=o.info("vertical"),n=x.spacer.children[0],i=r.ismargincollapsetype(r.css(x.spacer,"display")),s={};x.relsize.width||x.relsize.autofullwidth?e?r.get.width(window)==r.get.width(x.spacer.parentnode)?r.css(t,{width:x.relsize.autofullwidth?"100%":"inherit"}):r.css(t,{width:r.get.width(x.spacer)}):r.css(t,{width:"100%"}):(s["min-width"]=r.get.width(t?t:n,!0,!0),s.width=e?s["min-width"]:"auto"),x.relsize.height?e?r.get.height(window)==r.get.height(x.spacer.parentnode)?r.css(t,{height:"inherit"}):r.css(t,{height:r.get.height(x.spacer)}):r.css(t,{height:"100%"}):(s["min-height"]=r.get.height(t?n:t,!0,!i),s.height=e?s["min-height"]:"auto"),x.pushfollowers&&(s["padding"+(t?"top":"left")]=c.duration*f,s["padding"+(t?"bottom":"right")]=c.duration*(1-f)),r.css(x.spacer,s)}},l=function(){o&&t&&"during"===u&&!o.info("isdocument")&&r()},n=function(){o&&t&&"during"===u&&((x.relsize.width||x.relsize.autofullwidth)&&r.get.width(window)!=r.get.width(x.spacer.parentnode)||x.relsize.height&&r.get.height(window)!=r.get.height(x.spacer.parentnode))&&c()},d=function(e){o&&t&&"during"===u&&!o.info("isdocument")&&(e.preventdefault(),o.scrollto(o.info("scrollpos")-(e[o.info("vertical")?"wheeldeltay":"wheeldeltax"]/3||30*-e.detail)))};this.setpin=function(e,t){var n={pushfollowers:!0,spacerclass:"scrollmagic-pin-spacer"};if(t=r.extend({},n,t),e=r.get.elements(e)[0],!e)return l;if("fixed"===r.css(e,"position"))return l;if(t){if(t===e)return l;l.removepin()}t=e;var i=t.parentnode.style.display,o=["top","left","bottom","right","margin","marginleft","marginright","margintop","marginbottom"];t.parentnode.style.display="none";var a="absolute"!=r.css(t,"position"),c=r.css(t,o.concat(["display"])),u=r.css(t,["width","height"]);t.parentnode.style.display=i,!a&&t.pushfollowers&&(t.pushfollowers=!1);var f=t.parentnode.insertbefore(document.createelement("div"),t),h=r.extend(c,{position:a?"relative":"absolute",boxsizing:"content-box",mozboxsizing:"content-box",webkitboxsizing:"content-box"});if(a||r.extend(h,r.css(t,["width","height"])),r.css(f,h),f.setattribute(s,""),r.addclass(f,t.spacerclass),x={spacer:f,relsize:{width:"%"===u.width.slice(-1),height:"%"===u.height.slice(-1),autofullwidth:"auto"===u.width&&a&&r.ismargincollapsetype(c.display)},pushfollowers:t.pushfollowers,inflow:a},!t.___origstyle){t.___origstyle={};var d=t.style,g=o.concat(["width","height","position","boxsizing","mozboxsizing","webkitboxsizing"]);g.foreach(function(e){t.___origstyle[e]=d[e]||""})}return x.relsize.width&&r.css(f,{width:u.width}),x.relsize.height&&r.css(f,{height:u.height}),f.appendchild(t),r.css(t,{position:a?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(x.relsize.width||x.relsize.autofullwidth)&&r.css(t,{boxsizing:"border-box",mozboxsizing:"border-box",webkitboxsizing:"border-box"}),window.addeventlistener("scroll",l),window.addeventlistener("resize",l),window.addeventlistener("resize",n),t.addeventlistener("mousewheel",d),t.addeventlistener("dommousescroll",d),r(),l},this.removepin=function(e){if(t){if("during"===u&&r(!0),e||!o){var t=x.spacer.children[0];if(t.hasattribute(s)){var n=x.spacer.style,i=["margin","marginleft","marginright","margintop","marginbottom"];margins={},i.foreach(function(e){margins[e]=n[e]||""}),r.css(t,margins)}x.spacer.parentnode.insertbefore(t,x.spacer),x.spacer.parentnode.removechild(x.spacer),t.parentnode.hasattribute(s)||(r.css(t,t.___origstyle),delete t.___origstyle)}window.removeeventlistener("scroll",l),window.removeeventlistener("resize",l),window.removeeventlistener("resize",n),t.removeeventlistener("mousewheel",d),t.removeeventlistener("dommousescroll",d),t=void 0}return l};var o,a=[];return l.on("destroy.internal",function(e){l.removeclasstoggle(e.reset)}),this.setclasstoggle=function(e,t){var n=r.get.elements(e);return 0!==n.length&&r.type.string(t)?(a.length>0&&l.removeclasstoggle(),o=t,a=n,l.on("enter.internal_class leave.internal_class",function(e){var t="enter"===e.type?r.addclass:r.removeclass;a.foreach(function(e){t(e,o)})}),l):l},this.removeclasstoggle=function(e){return e&&a.foreach(function(e){r.removeclass(e,o)}),l.off("start.internal_class end.internal_class"),o=void 0,a=[],l},p(),l};var n={defaults:{duration:0,offset:0,triggerelement:void 0,triggerhook:.5,reverse:!0,loglevel:2},validate:{offset:function(e){if(e=parsefloat(e),!r.type.number(e))throw 0;return e},triggerelement:function(e){if(e=e||void 0){var t=r.get.elements(e)[0];if(!t)throw 0;e=t}return e},triggerhook:function(e){var t={oncenter:.5,onenter:1,onleave:0};if(r.type.number(e))e=math.max(0,math.min(parsefloat(e),1));else{if(!(e in t))throw 0;e=t[e]}return e},reverse:function(e){return!!e}},shifts:["duration","offset","triggerhook"]};e.scene.addoption=function(e,t,r,i){e in n.defaults||(n.defaults[e]=t,n.validate[e]=r,i&&n.shifts.push(e))},e.scene.extend=function(t){var n=this;e.scene=function(){return n.apply(this,arguments),this.$super=r.extend({},this),t.apply(this,arguments)||this},r.extend(e.scene,n),e.scene.prototype=n.prototype,e.scene.prototype.constructor=e.scene},e.event=function(e,t,n,r){r=r||{};for(var i in r)this[i]=r[i];return this.type=e,this.target=this.currenttarget=n,this.namespace=t||"",this.timestamp=this.timestamp=date.now(),this};var r=e._util=function(e){var t,n={},r=function(e){return parsefloat(e)||0},i=function(t){return t.currentstyle?t.currentstyle:e.getcomputedstyle(t)},o=function(t,n,o,s){if(n=n===document?e:n,n===e)s=!1;else if(!f.domelement(n))return 0;t=t.charat(0).touppercase()+t.substr(1).tolowercase();var a=(o?n["offset"+t]||n["outer"+t]:n["client"+t]||n["inner"+t])||0;if(o&&s){var l=i(n);a+="height"===t?r(l.margintop)+r(l.marginbottom):r(l.marginleft)+r(l.marginright)}return a},s=function(e){return e.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(e){return e[1].touppercase()})};n.extend=function(e){for(e=e||{},t=1;t-1};var a=0,l=["ms","moz","webkit","o"],c=e.requestanimationframe,u=e.cancelanimationframe;for(t=0;!c&&t=0},f.domelement=function(e){return"object"==typeof htmlelement?e instanceof htmlelement:e&&"object"==typeof e&&null!==e&&1===e.nodetype&&"string"==typeof e.nodename};var h=n.get={};return h.elements=function(t){var n=[];if(f.string(t))try{t=document.queryselectorall(t)}catch(r){return n}if("nodelist"===f(t)||f.array(t))for(var i=0,o=n.length=t.length;o>i;i++){var s=t[i];n[i]=f.domelement(s)?s:h.elements(s)}else(f.domelement(t)||t===document||t===e)&&(n=[t]);return n},h.scrolltop=function(t){return t&&"number"==typeof t.scrolltop?t.scrolltop:e.pageyoffset||0},h.scrollleft=function(t){return t&&"number"==typeof t.scrollleft?t.scrollleft:e.pagexoffset||0},h.width=function(e,t,n){return o("width",e,t,n)},h.height=function(e,t,n){return o("height",e,t,n)},h.offset=function(e,t){var n={top:0,left:0};if(e&&e.getboundingclientrect){var r=e.getboundingclientrect();n.top=r.top,n.left=r.left,t||(n.top+=h.scrolltop(),n.left+=h.scrollleft())}return n},n.addclass=function(e,t){t&&(e.classlist?e.classlist.add(t):e.classname+=" "+t)},n.removeclass=function(e,t){t&&(e.classlist?e.classlist.remove(t):e.classname=e.classname.replace(regexp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},n.css=function(e,t){if(f.string(t))return i(e)[s(t)];if(f.array(t)){var n={},r=i(e);return t.foreach(function(e){n[e]=r[s(e)]}),n}for(var o in t){var a=t[o];a==parsefloat(a)&&(a+="px"),e.style[s(o)]=a}},n}(window||{});return e}); (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 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['service_list_neko_11_1_43'] = { name: 'service_list_neko_11_1_43', init: function() { var list = nekoui['service_list_neko_11_1_43'].find('.service-list'); if (list.length) { var rz = list.attr('data-resize').split('|'); if (rz[0] == '') { return; } list.slick({ slidestoshow: 4, slidestoscroll: 2, prevarrow: '', nextarrow: '', dots: false, responsive: [{ breakpoint: 2000, settings: { slidestoshow: rz[0], slidestoscroll: 1 } }, { breakpoint: 1600, settings: { slidestoshow: rz[1], slidestoscroll: 1 } }, { breakpoint: 991, settings: { slidestoshow: rz[2], slidestoscroll: 1, } }, { breakpoint: 767, settings: { slidestoshow: rz[3], slidestoscroll: 1 } }] }) } }, appear: function() { if (nekoui['service_list_neko_11_1_43'].length) { var repeat = false; function animation() { if (repeat == false) { var title = nekoui['service_list_neko_11_1_43'].find('.title'), subtitle = nekoui['service_list_neko_11_1_43'].find('.subtitle'), desc = nekoui['service_list_neko_11_1_43'].find('.desc'), a = tweenmax.to(title, 0.6, { autoalpha: 1, y: 0, ease: power3.ease, }), b = tweenmax.to(subtitle, 0.6, { autoalpha: 1, y: 0, ease: power3.ease, }), c = tweenmax.to(desc, 0.6, { autoalpha: 1, y: 0, ease: power3.ease, }); var headanimate = new timelinemax(); headanimate.add(a).add(c); var item = nekoui['service_list_neko_11_1_43'].find('.item'); var i = tweenmax.staggerto(item, 0.6, { autoalpha: 1, y: 0, ease: power3.ease, }, 0.1); } } var controller = new scrollmagic.controller(); var scene = new scrollmagic.scene({ triggerelement: '.service_list_neko_11_1_43', offset: -300 }).addto(controller); scene.on("enter", function(event) { animation(); repeat = true; }); $(window).resize(function() { repeat = false; animation(); }) } } }; var x = new nekoui(nekoui_fun['service_list_neko_11_1_43']); nekoui_fun['product_list_neko_83_1_46'] = { name:'product_list_neko_83_1_46', appear:function (){ var indexappear=$('.neko-index-body:eq(0) [data-plugin=appear]'); if(indexappear.length){ indexappear.scrollfun(function(val){ val.appeardiy(); }); } } }; var x = new nekoui(nekoui_fun['product_list_neko_83_1_46']); nekoui_fun['service_list_neko_28_13_45'] = { name:'service_list_neko_28_13_45', getrgb: function() { var t = nekoui['service_list_neko_28_13_45'].find('.hd-live-con'), b = t.data('hex'); if (t.length) { var hex = b.split('|')[0], opacity = b.split('|')[1]; var bgcolor = rgb2color(hex, opacity); t.find(".mask1").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 x = new nekoui(nekoui_fun['service_list_neko_28_13_45']); var countup = function(target, startval, endval, decimals, duration, options) { var lasttime = 0; var vendors = ['webkit', 'moz', 'ms', 'o']; for(var x = 0; x < vendors.length && !window.requestanimationframe; ++x) { window.requestanimationframe = window[vendors[x]+'requestanimationframe']; window.cancelanimationframe = window[vendors[x]+'cancelanimationframe'] || window[vendors[x]+'cancelrequestanimationframe']; } if (!window.requestanimationframe) { window.requestanimationframe = function(callback, element) { var currtime = new date().gettime(); var timetocall = math.max(0, 16 - (currtime - lasttime)); var id = window.settimeout(function() { callback(currtime + timetocall); }, timetocall); lasttime = currtime + timetocall; return id; }; } if (!window.cancelanimationframe) { window.cancelanimationframe = function(id) { cleartimeout(id); }; } var self = this; self.version = function () { return '1.8.5'; }; function formatnumber(num) { num = num.tofixed(self.decimals); num += ''; var x, x1, x2, rgx; x = num.split('.'); x1 = x[0]; x2 = x.length > 1 ? self.options.decimal + x[1] : ''; rgx = /(\d+)(\d{3})/; if (self.options.usegrouping) { while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + self.options.separator + '$2'); } } return self.options.prefix + x1 + x2 + self.options.suffix; } function easeoutexpo(t, b, c, d) { return c * (-math.pow(2, -10 * t / d) + 1) * 1024 / 1023 + b; } function ensurenumber(n) { return (typeof n === 'number' && !isnan(n)); } self.options = { useeasing: true, usegrouping: true, separator: ',', decimal: '.', easingfn: easeoutexpo, formattingfn: formatnumber, prefix: '', suffix: '' }; if (options && typeof options === 'object') { for (var key in self.options) { if (options.hasownproperty(key) && options[key] !== null) { self.options[key] = options[key]; } } } if (self.options.separator === '') self.options.usegrouping = false; self.initialize = function() { if (self.initialized) return true; self.d = (typeof target === 'string') ? document.getelementbyid(target) : target; if (!self.d) { console.error('[countup] target is null or undefined', self.d); return false; } self.startval = number(startval); self.endval = number(endval); if (ensurenumber(self.startval) && ensurenumber(self.endval)) { self.decimals = math.max(0, decimals || 0); self.dec = math.pow(10, self.decimals); self.duration = number(duration) * 1000 || 2000; self.countdown = (self.startval > self.endval); self.frameval = self.startval; self.initialized = true; return true; } else { console.error('[countup] startval or endval is not a number', self.startval, self.endval); return false; } }; self.printvalue = function(value) { var result = self.options.formattingfn(value); if (self.d.tagname === 'input') { this.d.value = result; } else if (self.d.tagname === 'text' || self.d.tagname === 'tspan') { this.d.textcontent = result; } else { this.d.innerhtml = result; } }; self.count = function(timestamp) { if (!self.starttime) { self.starttime = timestamp; } self.timestamp = timestamp; var progress = timestamp - self.starttime; self.remaining = self.duration - progress; if (self.options.useeasing) { if (self.countdown) { self.frameval = self.startval - self.options.easingfn(progress, 0, self.startval - self.endval, self.duration); } else { self.frameval = self.options.easingfn(progress, self.startval, self.endval - self.startval, self.duration); } } else { if (self.countdown) { self.frameval = self.startval - ((self.startval - self.endval) * (progress / self.duration)); } else { self.frameval = self.startval + (self.endval - self.startval) * (progress / self.duration); } } if (self.countdown) { self.frameval = (self.frameval < self.endval) ? self.endval : self.frameval; } else { self.frameval = (self.frameval > self.endval) ? self.endval : self.frameval; } self.frameval = math.round(self.frameval*self.dec)/self.dec; self.printvalue(self.frameval); if (progress < self.duration) { self.raf = requestanimationframe(self.count); } else { if (self.callback) self.callback(); } }; self.start = function(callback) { if (!self.initialize()) return; self.callback = callback; self.raf = requestanimationframe(self.count); }; self.pauseresume = function() { if (!self.paused) { self.paused = true; cancelanimationframe(self.raf); } else { self.paused = false; delete self.starttime; self.duration = self.remaining; self.startval = self.frameval; requestanimationframe(self.count); } }; self.reset = function() { self.paused = false; delete self.starttime; self.initialized = false; if (self.initialize()) { cancelanimationframe(self.raf); self.printvalue(self.startval); } }; self.update = function (newendval) { if (!self.initialize()) return; newendval = number(newendval); if (!ensurenumber(newendval)) { console.error('[countup] update() - new endval is not a number', newendval); return; } if (newendval === self.frameval) return; cancelanimationframe(self.raf); self.paused = false; delete self.starttime; self.startval = self.frameval; self.endval = newendval; self.countdown = (self.startval > self.endval); self.raf = requestanimationframe(self.count); }; if (self.initialize()) self.printvalue(self.startval); }; nekoui_fun['countup_neko_16_2_44'] = { name:'countup_neko_16_2_44', numup: function() { var tur = true, f = nekoui['countup_neko_16_2_44'], b = $(".service-img"), c = $(".service-num"), numto0 = $('#countup_num_0').data('numto'), numto1 = $('#countup_num_1').data('numto'), numto2 = $('#countup_num_2').data('numto'); if (f.length == 0) { return } var d = { useeasing: true, usegrouping: true, separator: ",", decimal: ".", prefix: "", suffix: "" }; var e = new countup("countup_num_0", 0, numto0, 0, 1.5, d); var h = new countup("countup_num_1", 0, numto1, 0, 1.5, d); var g = new countup("countup_num_2", 0, numto2, 0, 1.5, d); $(window).scroll(function() { var i = f.offset().top - window.innerheight; if ($(window).scrolltop() >= i && tur) { b.css({ transform: 'none' }); c.css({ transform: 'none', opacity:1 }); var numup = settimeout(function() { e.start(); h.start(); g.start(); }, 500) tur = false; } }) } }; var a=nekoui(nekoui_fun['countup_neko_16_2_44']); nekoui_fun['news_list_neko_35_5_47'] = { name: 'news_list_neko_35_5_47', bg: function() { $('.news_list_neko_35_5_47 [data-bg]').each(function(index, el) { var background = $(this).attr('data-bg'), hex = background.split('|')[0], opacity = background.split('|')[1], bgcolor = rgb2color(hex, opacity); $(this).hover(function(){ $(this).css('background', bgcolor); console.log(11); },function(){ $(this).css('background', 'transparent'); }) }); 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 x = new nekoui(nekoui_fun['news_list_neko_35_5_47']);