/* * swiper 2.7.0 * mobile touch slider and framework with hardware accelerated transitions * * http://www.idangero.us/sliders/swiper/ * * copyright 2010-2014, vladimir kharlampidi * the idangero.us * http://www.idangero.us/ * * licensed under gpl & mit * * released on: august 30, 2014 */ var swiper=function(a,b){"use strict";function c(a,b){return document.queryselectorall?(b||document).queryselectorall(a):jquery(a,b)}function d(a){return"[object array]"===object.prototype.tostring.apply(a)?!0:!1}function e(){var a=f-i;return b.freemode&&(a=f-i),b.slidesperview>c.slides.length&&!b.centeredslides&&(a=0),0>a&&(a=0),a}function f(){function a(a){var c=new image;c.onload=function(){"undefined"!=typeof c&&null!==c&&(void 0!==c.imagesloaded&&c.imagesloaded++,c.imagesloaded===c.imagestoload.length&&(c.reinit(),b.onimagesready&&c.firecallback(b.onimagesready,c)))},c.src=a}var d=c.h.addeventlistener,e="wrapper"===b.eventtarget?c.wrapper:c.container;if(c.browser.ie10||c.browser.ie11?(d(e,c.touchevents.touchstart,p),d(document,c.touchevents.touchmove,q),d(document,c.touchevents.touchend,r)):(c.support.touch&&(d(e,"touchstart",p),d(e,"touchmove",q),d(e,"touchend",r)),b.simulatetouch&&(d(e,"mousedown",p),d(document,"mousemove",q),d(document,"mouseup",r))),b.autoresize&&d(window,"resize",c.resizefix),g(),c._wheelevent=!1,b.mousewheelcontrol){if(void 0!==document.onmousewheel&&(c._wheelevent="mousewheel"),!c._wheelevent)try{new wheelevent("wheel"),c._wheelevent="wheel"}catch(f){}c._wheelevent||(c._wheelevent="dommousescroll"),c._wheelevent&&d(c.container,c._wheelevent,j)}if(b.keyboardcontrol&&d(document,"keydown",i),b.updateonimagesready){c.imagestoload=c("img",c.container);for(var h=0;h=e&&k[0]<=e+g&&k[1]>=f&&k[1]<=f+h&&(c=!0)}if(!c)return}m?((37===b||39===b)&&(a.preventdefault?a.preventdefault():a.returnvalue=!1),39===b&&c.swipenext(),37===b&&c.swipeprev()):((38===b||40===b)&&(a.preventdefault?a.preventdefault():a.returnvalue=!1),40===b&&c.swipenext(),38===b&&c.swipeprev())}}function j(a){var c=c._wheelevent,d=0;if(a.detail)d=-a.detail;else if("mousewheel"===c)if(b.mousewheelcontrolforcetoaxis)if(m){if(!(math.abs(a.wheeldeltax)>math.abs(a.wheeldeltay)))return;d=a.wheeldeltax}else{if(!(math.abs(a.wheeldeltay)>math.abs(a.wheeldeltax)))return;d=a.wheeldeltay}else d=a.wheeldelta;else if("dommousescroll"===c)d=-a.detail;else if("wheel"===c)if(b.mousewheelcontrolforcetoaxis)if(m){if(!(math.abs(a.deltax)>math.abs(a.deltay)))return;d=-a.deltax}else{if(!(math.abs(a.deltay)>math.abs(a.deltax)))return;d=-a.deltay}else d=math.abs(a.deltax)>math.abs(a.deltay)?-a.deltax:-a.deltay;if(b.freemode){var f=c.getwrappertranslate()+d;if(f>0&&(f=0),f<-e()&&(f=-e()),c.setwrappertransition(0),c.setwrappertranslate(f),c.updateactiveslide(f),0===f||f===-e())return}else(new date).gettime()-u>60&&(0>d?c.swipenext():c.swipeprev()),u=(new date).gettime();return b.autoplay&&c.stopautoplay(!0),a.preventdefault?a.preventdefault():a.returnvalue=!1,!1}function k(a){c.allowslideclick&&(m(a),c.firecallback(b.onslideclick,c,a))}function l(a){m(a),c.firecallback(b.onslidetouch,c,a)}function m(a){if(a.currenttarget)c.clickedslide=a.currenttarget;else{var c=a.srcelement;do{if(c.classname.indexof(b.slideclass)>-1)break;c=c.parentnode}while(c);c.clickedslide=c}c.clickedslideindex=c.slides.indexof(c.clickedslide),c.clickedslideloopindex=c.clickedslideindex-(c.loopedslides||0)}function n(a){return c.allowlinks?void 0:(a.preventdefault?a.preventdefault():a.returnvalue=!1,b.preventlinkspropagation&&"stoppropagation"in a&&a.stoppropagation(),!1)}function o(a){return a.stoppropagation?a.stoppropagation():a.returnvalue=!1,!1}function p(a){if(b.preventlinks&&(c.allowlinks=!0),c.istouched||b.onlyexternal)return!1;var c=a.target||a.srcelement;document.activeelement&&document.activeelement!==c&&document.activeelement.blur();var d="input select textarea".split(" ");if(b.noswiping&&c&&s(c))return!1;if($=!1,c.istouched=!0,z="touchstart"===a.type,!z&&"which"in a&&3===a.which)return!1;if(!z||1===a.targettouches.length){c.callplugins("ontouchstartbegin"),!z&&!c.isandroid&&d.indexof(c.tagname.tolowercase())<0&&(a.preventdefault?a.preventdefault():a.returnvalue=!1);var e=z?a.targettouches[0].pagex:a.pagex||a.clientx,f=z?a.targettouches[0].pagey:a.pagey||a.clienty;c.touches.startx=c.touches.currentx=e,c.touches.starty=c.touches.currenty=f,c.touches.start=c.touches.current=m?e:f,c.setwrappertransition(0),c.positions.start=c.positions.current=c.getwrappertranslate(),c.setwrappertranslate(c.positions.start),c.times.start=(new date).gettime(),h=void 0,b.movestartthreshold>0&&(w=!1),b.ontouchstart&&c.firecallback(b.ontouchstart,c,a),c.callplugins("ontouchstartend")}}function q(a){if(c.istouched&&!b.onlyexternal&&(!z||"mousemove"!==a.type)){var c=z?a.targettouches[0].pagex:a.pagex||a.clientx,d=z?a.targettouches[0].pagey:a.pagey||a.clienty;if("undefined"==typeof h&&m&&(h=!!(h||math.abs(d-c.touches.starty)>math.abs(c-c.touches.startx))),"undefined"!=typeof h||m||(h=!!(h||math.abs(d-c.touches.starty)c.touches.startx)return}else if(!b.swipetonext&&dc.touches.starty)return;if(a.assignedtoswiper)return void(c.istouched=!1);if(a.assignedtoswiper=!0,b.preventlinks&&(c.allowlinks=!1),b.onslideclick&&(c.allowslideclick=!1),b.autoplay&&c.stopautoplay(!0),!z||1===a.touches.length){if(c.ismoved||(c.callplugins("ontouchmovestart"),b.loop&&(c.fixloop(),c.positions.start=c.getwrappertranslate()),b.ontouchmovestart&&c.firecallback(b.ontouchmovestart,c)),c.ismoved=!0,a.preventdefault?a.preventdefault():a.returnvalue=!1,c.touches.current=m?c:d,c.positions.current=(c.touches.current-c.touches.start)*b.touchratio+c.positions.start,c.positions.current>0&&b.onresistancebefore&&c.firecallback(b.onresistancebefore,c,c.positions.current),c.positions.current<-e()&&b.onresistanceafter&&c.firecallback(b.onresistanceafter,c,math.abs(c.positions.current+e())),b.resistance&&"100%"!==b.resistance){var f;if(c.positions.current>0&&(f=1-c.positions.current/i/2,c.positions.current=.5>f?i/2:c.positions.current*f),c.positions.current<-e()){var g=(c.touches.current-c.touches.start)*b.touchratio+(e()+c.positions.start);f=(i+g)/i;var h=c.positions.current-g*(1-f)/2,i=-e()-i/2;c.positions.current=i>h||0>=f?i:h}}if(b.resistance&&"100%"===b.resistance&&(c.positions.current>0&&(!b.freemode||b.freemodefluid)&&(c.positions.current=0),c.positions.current<-e()&&(!b.freemode||b.freemodefluid)&&(c.positions.current=-e())),!b.followfinger)return;if(b.movestartthreshold)if(math.abs(c.touches.current-c.touches.start)>b.movestartthreshold||w){if(!w)return w=!0,void(c.touches.start=c.touches.current);c.setwrappertranslate(c.positions.current)}else c.positions.current=c.positions.start;else c.setwrappertranslate(c.positions.current);return(b.freemode||b.watchactiveindex)&&c.updateactiveslide(c.positions.current),b.grabcursor&&(c.container.style.cursor="move",c.container.style.cursor="grabbing",c.container.style.cursor="-moz-grabbin",c.container.style.cursor="-webkit-grabbing"),x||(x=c.touches.current),y||(y=(new date).gettime()),c.velocity=(c.touches.current-x)/((new date).gettime()-y)/2,math.abs(c.touches.current-x)<2&&(c.velocity=0),x=c.touches.current,y=(new date).gettime(),c.callplugins("ontouchmoveend"),b.ontouchmove&&c.firecallback(b.ontouchmove,c,a),!1}}}function r(a){if(h&&c.swipereset(),!b.onlyexternal&&c.istouched){c.istouched=!1,b.grabcursor&&(c.container.style.cursor="move",c.container.style.cursor="grab",c.container.style.cursor="-moz-grab",c.container.style.cursor="-webkit-grab"),c.positions.current||0===c.positions.current||(c.positions.current=c.positions.start),b.followfinger&&c.setwrappertranslate(c.positions.current),c.times.end=(new date).gettime(),c.touches.diff=c.touches.current-c.touches.start,c.touches.abs=math.abs(c.touches.diff),c.positions.diff=c.positions.current-c.positions.start,c.positions.abs=math.abs(c.positions.diff);var c=c.positions.diff,d=c.positions.abs,f=c.times.end-c.times.start;5>d&&300>f&&c.allowlinks===!1&&(b.freemode||0===d||c.swipereset(),b.preventlinks&&(c.allowlinks=!0),b.onslideclick&&(c.allowslideclick=!0)),settimeout(function(){"undefined"!=typeof c&&null!==c&&(b.preventlinks&&(c.allowlinks=!0),b.onslideclick&&(c.allowslideclick=!0))},100);var g=e();if(!c.ismoved&&b.freemode)return c.ismoved=!1,b.ontouchend&&c.firecallback(b.ontouchend,c,a),void c.callplugins("ontouchend");if(!c.ismoved||c.positions.current>0||c.positions.current<-g)return c.swipereset(),b.ontouchend&&c.firecallback(b.ontouchend,c,a),void c.callplugins("ontouchend");if(c.ismoved=!1,b.freemode){if(b.freemodefluid){var h,i=1e3*b.momentumratio,j=c.velocity*i,k=c.positions.current+j,l=!1,m=20*math.abs(c.velocity)*b.momentumbounceratio;-g>k&&(b.momentumbounce&&c.support.transitions?(-m>k+g&&(k=-g-m),h=-g,l=!0,$=!0):k=-g),k>0&&(b.momentumbounce&&c.support.transitions?(k>m&&(k=m),h=0,l=!0,$=!0):k=0),0!==c.velocity&&(i=math.abs((k-c.positions.current)/c.velocity)),c.setwrappertranslate(k),c.setwrappertransition(i),b.momentumbounce&&l&&c.wrappertransitionend(function(){$&&(b.onmomentumbounce&&c.firecallback(b.onmomentumbounce,c),c.callplugins("onmomentumbounce"),c.setwrappertranslate(h),c.setwrappertransition(300))}),c.updateactiveslide(k)}return(!b.freemodefluid||f>=300)&&c.updateactiveslide(c.positions.current),b.ontouchend&&c.firecallback(b.ontouchend,c,a),void c.callplugins("ontouchend")}g=0>c?"tonext":"toprev","tonext"===g&&300>=f&&(30>d||!b.shortswipes?c.swipereset():c.swipenext(!0)),"toprev"===g&&300>=f&&(30>d||!b.shortswipes?c.swipereset():c.swipeprev(!0));var n=0;if("auto"===b.slidesperview){for(var o,p=math.abs(c.getwrappertranslate()),q=0,r=0;rp){n=o;break}n>i&&(n=i)}else n=e*b.slidesperview;"tonext"===g&&f>300&&(d>=n*b.longswipesratio?c.swipenext(!0):c.swipereset()),"toprev"===g&&f>300&&(d>=n*b.longswipesratio?c.swipeprev(!0):c.swipereset()),b.ontouchend&&c.firecallback(b.ontouchend,c,a),c.callplugins("ontouchend")}}function s(a){var c=!1;do a.classname.indexof(b.noswipingclass)>-1&&(c=!0),a=a.parentelement;while(!c&&a.parentelement&&-1===a.classname.indexof(b.wrapperclass));return!c&&a.classname.indexof(b.wrapperclass)>-1&&a.classname.indexof(b.noswipingclass)>-1&&(c=!0),c}function t(a,b){var c,d=document.createelement("div");return d.innerhtml=b,c=d.firstchild,c.classname+=" "+a,c.outerhtml}function u(a,c,d){function e(){var f=+new date,l=f-g;h+=i*l/(1e3/60),k="tonext"===j?h>a:a>h,k?(c.setwrappertranslate(math.ceil(h)),c._domanimating=!0,window.settimeout(function(){e()},1e3/60)):(b.onslidechangeend&&("to"===c?d.runcallbacks===!0&&c.firecallback(b.onslidechangeend,c,j):c.firecallback(b.onslidechangeend,c,j)),c.setwrappertranslate(a),c._domanimating=!1)}var f="to"===c&&d.speed>=0?d.speed:b.speed,g=+new date;if(c.support.transitions||!b.domanimation)c.setwrappertranslate(a),c.setwrappertransition(f);else{var h=c.getwrappertranslate(),i=math.ceil((a-h)/f*(1e3/60)),j=h>a?"tonext":"toprev",k="tonext"===j?h>a:a>h;if(c._domanimating)return;e()}c.updateactiveslide(a),b.onslidenext&&"next"===c&&c.firecallback(b.onslidenext,c,a),b.onslideprev&&"prev"===c&&c.firecallback(b.onslideprev,c,a),b.onslidereset&&"reset"===c&&c.firecallback(b.onslidereset,c,a),("next"===c||"prev"===c||"to"===c&&d.runcallbacks===!0)&&v(c)}function v(a){if(c.callplugins("onslidechangestart"),b.onslidechangestart)if(b.queuestartcallbacks&&c.support.transitions){if(c._queuestartcallbacks)return;c._queuestartcallbacks=!0,c.firecallback(b.onslidechangestart,c,a),c.wrappertransitionend(function(){c._queuestartcallbacks=!1})}else c.firecallback(b.onslidechangestart,c,a);if(b.onslidechangeend)if(c.support.transitions)if(b.queueendcallbacks){if(c._queueendcallbacks)return;c._queueendcallbacks=!0,c.wrappertransitionend(function(c){c.firecallback(b.onslidechangeend,c,a)})}else c.wrappertransitionend(function(c){c.firecallback(b.onslidechangeend,c,a)});else b.domanimation||settimeout(function(){c.firecallback(b.onslidechangeend,c,a)},10)}function w(){var a=c.paginationbuttons;if(a)for(var b=0;b0&&0===c.slides.length&&c.loadslides(),b.loop&&c.createloop(),c.init(),f(),b.pagination&&c.createpagination(!0),b.loop||b.initialslide>0?c.swipeto(b.initialslide,0,!1):c.updateactiveslide(0),b.autoplay&&c.startautoplay(),c.centerindex=c.activeindex,b.onswipercreated&&c.firecallback(b.onswipercreated,c),c.callplugins("onswipercreated")}if(!document.body.outerhtml&&document.body.__definegetter__&&htmlelement){var b=htmlelement.prototype;b.__definegetter__&&b.__definegetter__("outerhtml",function(){return(new xmlserializer).serializetostring(this)})}if(window.getcomputedstyle||(window.getcomputedstyle=function(a){return this.el=a,this.getpropertyvalue=function(b){var c=/(\-([a-z]){1})/g;return"float"===b&&(b="stylefloat"),c.test(b)&&(b=b.replace(c,function(){return arguments[2].touppercase()})),a.currentstyle[b]?a.currentstyle[b]:null},this}),array.prototype.indexof||(array.prototype.indexof=function(a,b){for(var c=b||0,d=this.length;d>c;c++)if(this[c]===a)return c;return-1}),(document.queryselectorall||window.jquery)&&"undefined"!=typeof a&&(a.nodetype||0!==c(a).length)){var c=this;c.touches={start:0,startx:0,starty:0,current:0,currentx:0,currenty:0,diff:0,abs:0},c.positions={start:0,abs:0,diff:0,current:0},c.times={start:0,end:0},c.id=(new date).gettime(),c.container=a.nodetype?a:c(a)[0],c.istouched=!1,c.ismoved=!1,c.activeindex=0,c.centerindex=0,c.activeloaderindex=0,c.activeloopindex=0,c.previousindex=null,c.velocity=0,c.snapgrid=[],c.slidesgrid=[],c.imagestoload=[],c.imagesloaded=0,c.wrapperleft=0,c.wrapperright=0,c.wrappertop=0,c.wrapperbottom=0,c.isandroid=navigator.useragent.tolowercase().indexof("android")>=0;var d,e,f,g,h,i,j={eventtarget:"wrapper",mode:"horizontal",touchratio:1,speed:300,freemode:!1,freemodefluid:!1,momentumratio:1,momentumbounce:!0,momentumbounceratio:1,slidesperview:1,slidespergroup:1,slidesperviewfit:!0,simulatetouch:!0,followfinger:!0,shortswipes:!0,longswipesratio:.5,movestartthreshold:!1,onlyexternal:!1,createpagination:!0,pagination:!1,paginationelement:"span",paginationclickable:!1,paginationasrange:!0,resistance:!0,scrollcontainer:!1,preventlinks:!0,preventlinkspropagation:!1,noswiping:!1,noswipingclass:"swiper-no-swiping",initialslide:0,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelcontrolforcetoaxis:!1,usecss3transforms:!0,autoplay:!1,autoplaydisableoninteraction:!0,autoplaystoponlast:!1,loop:!1,loopadditionalslides:0,roundlengths:!1,calculateheight:!1,csswidthandheight:!1,updateonimagesready:!0,releaseformelements:!0,watchactiveindex:!1,visibilityfullfit:!1,offsetpxbefore:0,offsetpxafter:0,offsetslidesbefore:0,offsetslidesafter:0,centeredslides:!1,queuestartcallbacks:!1,queueendcallbacks:!1,autoresize:!0,resizereinit:!1,domanimation:!0,loader:{slides:[],slideshtmltype:"inner",surroundgroups:1,logic:"reload",loadallslides:!1},swipetoprev:!0,swipetonext:!0,slideelement:"div",slideclass:"swiper-slide",slideactiveclass:"swiper-slide-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",wrapperclass:"swiper-wrapper",paginationelementclass:"swiper-pagination-switch",paginationactiveclass:"swiper-active-switch",paginationvisibleclass:"swiper-visible-switch"};b=b||{};for(var k in j)if(k in b&&"object"==typeof b[k])for(var l in j[k])l in b[k]||(b[k][l]=j[k][l]);else k in b||(b[k]=j[k]);c.params=b,b.scrollcontainer&&(b.freemode=!0,b.freemodefluid=!0),b.loop&&(b.resistance="100%");var m="horizontal"===b.mode,n=["mousedown","mousemove","mouseup"];c.browser.ie10&&(n=["mspointerdown","mspointermove","mspointerup"]),c.browser.ie11&&(n=["pointerdown","pointermove","pointerup"]),c.touchevents={touchstart:c.support.touch||!b.simulatetouch?"touchstart":n[0],touchmove:c.support.touch||!b.simulatetouch?"touchmove":n[1],touchend:c.support.touch||!b.simulatetouch?"touchend":n[2]};for(var o=c.container.childnodes.length-1;o>=0;o--)if(c.container.childnodes[o].classname)for(var p=c.container.childnodes[o].classname.split(/\s+/),q=0;q=0;c--)a===c.slides[c]&&(b=c);return b},a.isactive=function(){return a.index()===c.activeindex?!0:!1},a.swiperslidedatastorage||(a.swiperslidedatastorage={}),a.getdata=function(b){return a.swiperslidedatastorage[b]},a.setdata=function(b,c){return a.swiperslidedatastorage[b]=c,a},a.data=function(b,c){return"undefined"==typeof c?a.getattribute("data-"+b):(a.setattribute("data-"+b,c),a)},a.getwidth=function(b,c){return c.h.getwidth(a,b,c)},a.getheight=function(b,c){return c.h.getheight(a,b,c)},a.getoffset=function(){return c.h.getoffset(a)},a},c.calcslides=function(a){var c=c.slides?c.slides.length:!1;c.slides=[],c.displayslides=[];for(var d=0;d=0;d--)c._extendswiperslide(c.slides[d]);c!==!1&&(c!==c.slides.length||a)&&(h(),g(),c.updateactiveslide(),c.params.pagination&&c.createpagination(),c.callplugins("numberofslideschanged"))},c.createslide=function(a,c,d){c=c||c.params.slideclass,d=d||b.slideelement;var e=document.createelement(d);return e.innerhtml=a||"",e.classname=c,c._extendswiperslide(e)},c.appendslide=function(a,b,c){return a?a.nodetype?c._extendswiperslide(a).append():c.createslide(a,b,c).append():void 0},c.prependslide=function(a,b,c){return a?a.nodetype?c._extendswiperslide(a).prepend():c.createslide(a,b,c).prepend():void 0},c.insertslideafter=function(a,b,c,d){return"undefined"==typeof a?!1:b.nodetype?c._extendswiperslide(b).insertafter(a):c.createslide(b,c,d).insertafter(a)},c.removeslide=function(a){if(c.slides[a]){if(b.loop){if(!c.slides[a+c.loopedslides])return!1;c.slides[a+c.loopedslides].remove(),c.removeloopedslides(),c.calcslides(),c.createloop()}else c.slides[a].remove();return!0}return!1},c.removelastslide=function(){return c.slides.length>0?(b.loop?(c.slides[c.slides.length-1-c.loopedslides].remove(),c.removeloopedslides(),c.calcslides(),c.createloop()):c.slides[c.slides.length-1].remove(),!0):!1},c.removeallslides=function(){for(var a=c.slides.length-1;a>=0;a--)c.slides[a].remove()},c.getslide=function(a){return c.slides[a]},c.getlastslide=function(){return c.slides[c.slides.length-1]},c.getfirstslide=function(){return c.slides[0]},c.activeslide=function(){return c.slides[c.activeindex]},c.firecallback=function(){var a=arguments[0];if("[object array]"===object.prototype.tostring.call(a))for(var c=0;c0&&(m.style.paddingleft="",m.style.paddingright="",m.style.paddingtop="",m.style.paddingbottom=""),m.style.width="",m.style.height="",b.offsetpxbefore>0&&(m?c.wrapperleft=b.offsetpxbefore:c.wrappertop=b.offsetpxbefore),b.offsetpxafter>0&&(m?c.wrapperright=b.offsetpxafter:c.wrapperbottom=b.offsetpxafter),b.centeredslides&&(m?(c.wrapperleft=(i-this.slides[0].getwidth(!0,b.roundlengths))/2,c.wrapperright=(i-c.slides[c.slides.length-1].getwidth(!0,b.roundlengths))/2):(c.wrappertop=(i-c.slides[0].getheight(!0,b.roundlengths))/2,c.wrapperbottom=(i-c.slides[c.slides.length-1].getheight(!0,b.roundlengths))/2)),m?(c.wrapperleft>=0&&(m.style.paddingleft=c.wrapperleft+"px"),c.wrapperright>=0&&(m.style.paddingright=c.wrapperright+"px")):(c.wrappertop>=0&&(m.style.paddingtop=c.wrappertop+"px"),c.wrapperbottom>=0&&(m.style.paddingbottom=c.wrapperbottom+"px")),k=0;var p=0;for(c.snapgrid=[],c.slidesgrid=[],h=0,l=0;li){if(b.slidesperviewfit)c.snapgrid.push(k+c.wrapperleft),c.snapgrid.push(k+q-i+c.wrapperleft);else for(var u=0;u<=math.floor(q/(i+c.wrapperleft));u++)c.snapgrid.push(0===u?k+c.wrapperleft:k+c.wrapperleft+i*u);c.slidesgrid.push(k+c.wrapperleft)}else c.snapgrid.push(p),c.slidesgrid.push(p);p+=q/2+t/2}else{if(q>i)if(b.slidesperviewfit)c.snapgrid.push(k),c.snapgrid.push(k+q-i);else if(0!==i)for(var v=0;v<=math.floor(q/i);v++)c.snapgrid.push(k+i*v);else c.snapgrid.push(k);else c.snapgrid.push(k);c.slidesgrid.push(k)}k+=q,n+=f,o+=g}b.calculateheight&&(c.height=h),m?(f=n+c.wrapperright+c.wrapperleft,m.style.width=n+"px",m.style.height=c.height+"px"):(f=o+c.wrappertop+c.wrapperbottom,m.style.width=c.width+"px",m.style.height=o+"px")}else if(b.scrollcontainer)m.style.width="",m.style.height="",i=c.slides[0].getwidth(!0,b.roundlengths),j=c.slides[0].getheight(!0,b.roundlengths),f=m?i:j,m.style.width=i+"px",m.style.height=j+"px",e=m?i:j;else{if(b.calculateheight){for(h=0,j=0,m||(c.container.style.height=""),m.style.height="",l=0;l0&&(m?c.wrapperleft=e*b.offsetslidesbefore:c.wrappertop=e*b.offsetslidesbefore),b.offsetslidesafter>0&&(m?c.wrapperright=e*b.offsetslidesafter:c.wrapperbottom=e*b.offsetslidesafter),b.offsetpxbefore>0&&(m?c.wrapperleft=b.offsetpxbefore:c.wrappertop=b.offsetpxbefore),b.offsetpxafter>0&&(m?c.wrapperright=b.offsetpxafter:c.wrapperbottom=b.offsetpxafter),b.centeredslides&&(m?(c.wrapperleft=(i-e)/2,c.wrapperright=(i-e)/2):(c.wrappertop=(i-e)/2,c.wrapperbottom=(i-e)/2)),m?(c.wrapperleft>0&&(m.style.paddingleft=c.wrapperleft+"px"),c.wrapperright>0&&(m.style.paddingright=c.wrapperright+"px")):(c.wrappertop>0&&(m.style.paddingtop=c.wrappertop+"px"),c.wrapperbottom>0&&(m.style.paddingbottom=c.wrapperbottom+"px")),f=m?i+c.wrapperright+c.wrapperleft:j+c.wrappertop+c.wrapperbottom,parsefloat(i)>0&&(!b.csswidthandheight||"height"===b.csswidthandheight)&&(m.style.width=i+"px"),parsefloat(j)>0&&(!b.csswidthandheight||"width"===b.csswidthandheight)&&(m.style.height=j+"px"),k=0,c.snapgrid=[],c.slidesgrid=[],l=0;l0&&(!b.csswidthandheight||"height"===b.csswidthandheight)&&(c.slides[l].style.width=f+"px"),parsefloat(g)>0&&(!b.csswidthandheight||"width"===b.csswidthandheight)&&(c.slides[l].style.height=g+"px")}c.initialized?(c.callplugins("oninit"),b.oninit&&c.firecallback(b.oninit,c)):(c.callplugins("onfirstinit"),b.onfirstinit&&c.firecallback(b.onfirstinit,c)),c.initialized=!0}},c.reinit=function(a){c.init(!0,a)},c.resizefix=function(a){c.callplugins("beforeresizefix"),c.init(b.resizereinit||a),b.freemode?c.getwrappertranslate()<-e()&&(c.setwrappertransition(0),c.setwrappertranslate(-e())):(c.swipeto(b.loop?c.activeloopindex:c.activeindex,0,!1),b.autoplay&&(c.support.transitions&&"undefined"!=typeof _?"undefined"!=typeof _&&(cleartimeout(_),_=void 0,c.startautoplay()):"undefined"!=typeof ab&&(clearinterval(ab),ab=void 0,c.startautoplay()))),c.callplugins("afterresizefix")},c.destroy=function(){var a=c.h.removeeventlistener,c="wrapper"===b.eventtarget?c.wrapper:c.container;c.browser.ie10||c.browser.ie11?(a(c,c.touchevents.touchstart,p),a(document,c.touchevents.touchmove,q),a(document,c.touchevents.touchend,r)):(c.support.touch&&(a(c,"touchstart",p),a(c,"touchmove",q),a(c,"touchend",r)),b.simulatetouch&&(a(c,"mousedown",p),a(document,"mousemove",q),a(document,"mouseup",r))),b.autoresize&&a(window,"resize",c.resizefix),h(),b.paginationclickable&&w(),b.mousewheelcontrol&&c._wheelevent&&a(c.container,c._wheelevent,j),b.keyboardcontrol&&a(document,"keydown",i),b.autoplay&&c.stopautoplay(),c.callplugins("ondestroy"),c=null},c.disablekeyboardcontrol=function(){b.keyboardcontrol=!1,c.h.removeeventlistener(document,"keydown",i)},c.enablekeyboardcontrol=function(){b.keyboardcontrol=!0,c.h.addeventlistener(document,"keydown",i)};var u=(new date).gettime();if(c.disablemousewheelcontrol=function(){return c._wheelevent?(b.mousewheelcontrol=!1,c.h.removeeventlistener(c.container,c._wheelevent,j),!0):!1},c.enablemousewheelcontrol=function(){return c._wheelevent?(b.mousewheelcontrol=!0,c.h.addeventlistener(c.container,c._wheelevent,j),!0):!1},b.grabcursor){var v=c.container.style;v.cursor="move",v.cursor="grab",v.cursor="-moz-grab",v.cursor="-webkit-grab"}c.allowslideclick=!0,c.allowlinks=!0;var w,x,y,z=!1,$=!0;c.swipenext=function(a){!a&&b.loop&&c.fixloop(),!a&&b.autoplay&&c.stopautoplay(!0),c.callplugins("onswipenext");var c=c.getwrappertranslate(),d=c;if("auto"===b.slidesperview){for(var f=0;f=c.snapgrid[f]&&-cc.snapgrid[e]&&-d0&&(c=0),c===d?!1:(u(c,"prev"),!0)},c.swipereset=function(){c.callplugins("onswipereset");{var a,c=c.getwrappertranslate(),d=e*b.slidespergroup;-e()}if("auto"===b.slidesperview){a=0;for(var f=0;f=c.snapgrid[f]&&-c0?-c.snapgrid[f+1]:-c.snapgrid[f];break}}-c>=c.snapgrid[c.snapgrid.length-1]&&(a=-c.snapgrid[c.snapgrid.length-1]),c<=-e()&&(a=-e())}else a=0>c?math.round(c/d)*d:0,c<=-e()&&(a=-e());return b.scrollcontainer&&(a=0>c?c:0),a<-e()&&(a=-e()),b.scrollcontainer&&i>e&&(a=0),a===c?!1:(u(a,"reset"),!0)},c.swipeto=function(a,c,d){a=parseint(a,10),c.callplugins("onswipeto",{index:a,speed:c}),b.loop&&(a+=c.loopedslides);var f=c.getwrappertranslate();if(!(a>c.slides.length-1||0>a)){var g;return g="auto"===b.slidesperview?-c.slidesgrid[a]:-a*e,g<-e()&&(g=-e()),g===f?!1:(d=d===!1?!1:!0,u(g,"to",{index:a,speed:c,runcallbacks:d}),!0)}},c._queuestartcallbacks=!1,c._queueendcallbacks=!1,c.updateactiveslide=function(a){if(c.initialized&&0!==c.slides.length){c.previousindex=c.activeindex,"undefined"==typeof a&&(a=c.getwrappertranslate()),a>0&&(a=0);var c;if("auto"===b.slidesperview){if(c.activeindex=c.slidesgrid.indexof(-a),c.activeindex<0){for(c=0;cc.slidesgrid[c]&&-a=d?c:c+1}}else c.activeindex=math[b.visibilityfullfit?"ceil":"round"](-a/e);if(c.activeindex===c.slides.length&&(c.activeindex=c.slides.length-1),c.activeindex<0&&(c.activeindex=0),c.slides[c.activeindex]){if(c.calcvisibleslides(a),c.support.classlist){var f;for(c=0;c=0?f.classlist.add(b.slidevisibleclass):f.classlist.remove(b.slidevisibleclass);c.slides[c.activeindex].classlist.add(b.slideactiveclass)}else{var g=new regexp("\\s*"+b.slideactiveclass),h=new regexp("\\s*"+b.slidevisibleclass);for(c=0;c=0&&(c.slides[c].classname+=" "+b.slidevisibleclass);c.slides[c.activeindex].classname+=" "+b.slideactiveclass}if(b.loop){var i=c.loopedslides;c.activeloopindex=c.activeindex-i,c.activeloopindex>=c.slides.length-2*i&&(c.activeloopindex=c.slides.length-2*i-c.activeloopindex),c.activeloopindex<0&&(c.activeloopindex=c.slides.length-2*i+c.activeloopindex),c.activeloopindex<0&&(c.activeloopindex=0) }else c.activeloopindex=c.activeindex;b.pagination&&c.updatepagination(a)}}},c.createpagination=function(a){if(b.paginationclickable&&c.paginationbuttons&&w(),c.paginationcontainer=b.pagination.nodetype?b.pagination:c(b.pagination)[0],b.createpagination){var d="",e=c.slides.length,f=e;b.loop&&(f-=2*c.loopedslides);for(var g=0;f>g;g++)d+="<"+b.paginationelement+' class="'+b.paginationelementclass+'">";c.paginationcontainer.innerhtml=d}c.paginationbuttons=c("."+b.paginationelementclass,c.paginationcontainer),a||c.updatepagination(),c.callplugins("oncreatepagination"),b.paginationclickable&&x()},c.updatepagination=function(a){if(b.pagination&&!(c.slides.length<1)){var d=c("."+b.paginationactiveclass,c.paginationcontainer);if(d){var e=c.paginationbuttons;if(0!==e.length){for(var f=0;fj&&(j=c.slides.length-2*c.loopedslides+j),b.loop&&j>=c.slides.length-2*c.loopedslides&&(j=c.slides.length-2*c.loopedslides-j,j=math.abs(j)),i.push(j)}for(h=0;h0&&(a+=c.wrapperleft),!m&&c.wrappertop>0&&(a+=c.wrappertop);for(var g=0;g=-a&&-a+i>=f&&(h=!0),-a>=d&&f>=-a+i&&(h=!0)):(f>-a&&-a+i>=f&&(h=!0),d>=-a&&-a+i>d&&(h=!0),-a>d&&f>-a+i&&(h=!0)),h&&c.push(c.slides[g])}0===c.length&&(c=[c.slides[c.activeindex]]),c.visibleslides=c};var _,ab;c.startautoplay=function(){if(c.support.transitions){if("undefined"!=typeof _)return!1;if(!b.autoplay)return;c.callplugins("onautoplaystart"),b.onautoplaystart&&c.firecallback(b.onautoplaystart,c),z()}else{if("undefined"!=typeof ab)return!1;if(!b.autoplay)return;c.callplugins("onautoplaystart"),b.onautoplaystart&&c.firecallback(b.onautoplaystart,c),ab=setinterval(function(){b.loop?(c.fixloop(),c.swipenext(!0)):c.swipenext(!0)||(b.autoplaystoponlast?(clearinterval(ab),ab=void 0):c.swipeto(0))},b.autoplay)}},c.stopautoplay=function(a){if(c.support.transitions){if(!_)return;_&&cleartimeout(_),_=void 0,a&&!b.autoplaydisableoninteraction&&c.wrappertransitionend(function(){z()}),c.callplugins("onautoplaystop"),b.onautoplaystop&&c.firecallback(b.onautoplaystop,c)}else ab&&clearinterval(ab),ab=void 0,c.callplugins("onautoplaystop"),b.onautoplaystop&&c.firecallback(b.onautoplaystop,c)},c.loopcreated=!1,c.removeloopedslides=function(){if(c.loopcreated)for(var a=0;ac.slides.length&&(c.loopedslides=c.slides.length);var a,c="",d="",e="",f=c.slides.length,g=math.floor(c.loopedslides/f),h=c.loopedslides%f;for(a=0;g*f>a;a++){var i=a;if(a>=f){var j=math.floor(a/f);i=a-f*j}e+=c.slides[i].outerhtml}for(a=0;h>a;a++)d+=t(b.slideduplicateclass,c.slides[a].outerhtml);for(a=f-h;f>a;a++)c+=t(b.slideduplicateclass,c.slides[a].outerhtml);var k=c+e+d.innerhtml+e+d;for(d.innerhtml=k,c.loopcreated=!0,c.calcslides(),a=0;a=c.slides.length-c.loopedslides)&&c.slides[a].setdata("looped",!0);c.callplugins("oncreateloop")}},c.fixloop=function(){var a;c.activeindex=2*c.loopedslides||c.activeindex>c.slides.length-2*b.slidesperview)&&(a=-c.slides.length+c.activeindex+c.loopedslides,c.swipeto(a,0,!1))},c.loadslides=function(){var a="";c.activeloaderindex=0;for(var c=b.loader.slides,d=b.loader.loadallslides?c.length:b.slidesperview*(1+b.loader.surroundgroups),e=0;d>e;e++)a+="outer"===b.loader.slideshtmltype?c[e]:"<"+b.slideelement+' class="'+b.slideclass+'" data-swiperindex="'+e+'">'+c[e]+"";c.wrapper.innerhtml=a,c.calcslides(!0),b.loader.loadallslides||c.wrappertransitionend(c.reloadslides,!0)},c.reloadslides=function(){var a=b.loader.slides,c=parseint(c.activeslide().data("swiperindex"),10);if(!(0>c||c>a.length-1)){c.activeloaderindex=c;var d=math.max(0,c-b.slidesperview*b.loader.surroundgroups),e=math.min(c+b.slidesperview*(1+b.loader.surroundgroups)-1,a.length-1);if(c>0){var f=-e*(c-d);c.setwrappertranslate(f),c.setwrappertransition(0)}var g;if("reload"===b.loader.logic){c.wrapper.innerhtml="";var h="";for(g=d;e>=g;g++)h+="outer"===b.loader.slideshtmltype?a[g]:"<"+b.slideelement+' class="'+b.slideclass+'" data-swiperindex="'+g+'">'+a[g]+"";c.wrapper.innerhtml=h}else{var i=1e3,j=0;for(g=0;gk||k>e?c.wrapper.removechild(c.slides[g]):(i=math.min(k,i),j=math.max(k,j))}for(g=d;e>=g;g++){var l;i>g&&(l=document.createelement(b.slideelement),l.classname=b.slideclass,l.setattribute("data-swiperindex",g),l.innerhtml=a[g],c.wrapper.insertbefore(l,c.wrapper.firstchild)),g>j&&(l=document.createelement(b.slideelement),l.classname=b.slideclass,l.setattribute("data-swiperindex",g),l.innerhtml=a[g],c.wrapper.appendchild(l))}}c.reinit(!0)}},a()}};swiper.prototype={plugins:{},wrappertransitionend:function(a,b){"use strict";function c(h){if(h.target===f&&(a(e),e.params.queueendcallbacks&&(e._queueendcallbacks=!1),!b))for(d=0;d0||0>e)&&(e=a.offsetwidth-parsefloat(window.getcomputedstyle(a,null).getpropertyvalue("padding-left"))-parsefloat(window.getcomputedstyle(a,null).getpropertyvalue("padding-right"))),b&&(e+=parsefloat(window.getcomputedstyle(a,null).getpropertyvalue("padding-left"))+parsefloat(window.getcomputedstyle(a,null).getpropertyvalue("padding-right"))),c?math.ceil(e):e},getheight:function(a,b,c){"use strict";if(b)return a.offsetheight;var d=window.getcomputedstyle(a,null).getpropertyvalue("height"),e=parsefloat(d);return(isnan(e)||d.indexof("%")>0||0>e)&&(e=a.offsetheight-parsefloat(window.getcomputedstyle(a,null).getpropertyvalue("padding-top"))-parsefloat(window.getcomputedstyle(a,null).getpropertyvalue("padding-bottom"))),b&&(e+=parsefloat(window.getcomputedstyle(a,null).getpropertyvalue("padding-top"))+parsefloat(window.getcomputedstyle(a,null).getpropertyvalue("padding-bottom"))),c?math.ceil(e):e},getoffset:function(a){"use strict";var b=a.getboundingclientrect(),c=document.body,d=a.clienttop||c.clienttop||0,e=a.clientleft||c.clientleft||0,f=window.pageyoffset||a.scrolltop,g=window.pagexoffset||a.scrollleft;return document.documentelement&&!window.pageyoffset&&(f=document.documentelement.scrolltop,g=document.documentelement.scrollleft),{top:b.top+f-d,left:b.left+g-e}},windowwidth:function(){"use strict";return window.innerwidth?window.innerwidth:document.documentelement&&document.documentelement.clientwidth?document.documentelement.clientwidth:void 0},windowheight:function(){"use strict";return window.innerheight?window.innerheight:document.documentelement&&document.documentelement.clientheight?document.documentelement.clientheight:void 0},windowscroll:function(){"use strict";return"undefined"!=typeof pageyoffset?{left:window.pagexoffset,top:window.pageyoffset}:document.documentelement?{left:document.documentelement.scrollleft,top:document.documentelement.scrolltop}:void 0},addeventlistener:function(a,b,c,d){"use strict";"undefined"==typeof d&&(d=!1),a.addeventlistener?a.addeventlistener(b,c,d):a.attachevent&&a.attachevent("on"+b,c)},removeeventlistener:function(a,b,c,d){"use strict";"undefined"==typeof d&&(d=!1),a.removeeventlistener?a.removeeventlistener(b,c,d):a.detachevent&&a.detachevent("on"+b,c)}},settransform:function(a,b){"use strict";var c=a.style;c.webkittransform=c.mstransform=c.mstransform=c.moztransform=c.otransform=c.transform=b},settranslate:function(a,b){"use strict";var c=a.style,d={x:b.x||0,y:b.y||0,z:b.z||0},e=this.support.transforms3d?"translate3d("+d.x+"px,"+d.y+"px,"+d.z+"px)":"translate("+d.x+"px,"+d.y+"px)";c.webkittransform=c.mstransform=c.mstransform=c.moztransform=c.otransform=c.transform=e,this.support.transforms||(c.left=d.x+"px",c.top=d.y+"px")},settransition:function(a,b){"use strict";var c=a.style;c.webkittransitionduration=c.mstransitionduration=c.mstransitionduration=c.moztransitionduration=c.otransitionduration=c.transitionduration=b+"ms"},support:{touch:window.modernizr&&modernizr.touch===!0||function(){"use strict";return!!("ontouchstart"in window||window.documenttouch&&document instanceof documenttouch)}(),transforms3d:window.modernizr&&modernizr.csstransforms3d===!0||function(){"use strict";var a=document.createelement("div").style;return"webkitperspective"in a||"mozperspective"in a||"operspective"in a||"msperspective"in a||"perspective"in a}(),transforms:window.modernizr&&modernizr.csstransforms===!0||function(){"use strict";var a=document.createelement("div").style;return"transform"in a||"webkittransform"in a||"moztransform"in a||"mstransform"in a||"mstransform"in a||"otransform"in a}(),transitions:window.modernizr&&modernizr.csstransitions===!0||function(){"use strict";var a=document.createelement("div").style;return"transition"in a||"webkittransition"in a||"moztransition"in a||"mstransition"in a||"mstransition"in a||"otransition"in a}(),classlist:function(){"use strict";var a=document.createelement("div");return"classlist"in a}()},browser:{ie8:function(){"use strict";var a=-1;if("microsoft internet explorer"===navigator.appname){var b=navigator.useragent,c=new regexp(/msie ([0-9]{1,}[\.0-9]{0,})/);null!==c.exec(b)&&(a=parsefloat(regexp.$1))}return-1!==a&&9>a}(),ie10:window.navigator.mspointerenabled,ie11:window.navigator.pointerenabled}},(window.jquery||window.zepto)&&!function(a){"use strict";a.fn.swiper=function(b){var c;return this.each(function(d){var e=a(this);if(!e.data("swiper")){var f=new swiper(e[0],b);d||(c=f),e.data("swiper",f)}}),c}}(window.jquery||window.zepto),"undefined"!=typeof module&&(module.exports=swiper),"function"==typeof define&&define.amd&&define([],function(){"use strict";return swiper}); /*! * version: 1.11.7 * date: 2014-04-29 * updates and docs at: http://www.greensock.com * * includes all of the following: tweenlite, tweenmax, timelinelite, timelinemax, easepack, cssplugin, roundpropsplugin, bezierplugin, attrplugin, directionalrotationplugin * * @license copyright (c) 2008-2014, greensock. all rights reserved. * this work is subject to the terms at http://www.greensock.com/terms_of_use.html or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com **/ (window._gsqueue||(window._gsqueue=[])).push(function(){"use strict";window._gsdefine("tweenmax",["core.animation","core.simpletimeline","tweenlite"],function(t,e,i){var s=[].slice,r=function(t,e,s){i.call(this,t,e,s),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._dirty=!0,this.render=r.prototype.render},n=1e-10,a=i._internals.isselector,o=i._internals.isarray,h=r.prototype=i.to({},.1,{}),l=[];r.version="1.11.7",h.constructor=r,h.kill()._gc=!1,r.killtweensof=r.killdelayedcallsto=i.killtweensof,r.gettweensof=i.gettweensof,r.ticker=i.ticker,h.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},h.updateto=function(t,e){var s,r=this.ratio;e&&this._starttime.998){var n=this._time;this.render(0,!0,!1),this._initted=!1,this.render(n,!0,!1)}else if(this._time>0){this._initted=!1,this._init();for(var a,o=1/(1-r),h=this._firstpt;h;)a=h.s+h.c,h.c*=o,h.s=a-h.c,h=h._next}return this},h.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var s,r,a,o,h,_,u,p,c=this._dirty?this.totalduration():this._totalduration,f=this._time,m=this._totaltime,d=this._cycle,g=this._duration;if(t>=c?(this._totaltime=c,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=g,this.ratio=this._ease._calcend?this._ease.getratio(1):1),this._reversed||(s=!0,r="oncomplete"),0===g&&(p=this._rawprevtime,this._starttime===this._timeline._duration&&(t=0),(0===t||0>p||p===n)&&p!==t&&(i=!0,p>n&&(r="onreversecomplete")),this._rawprevtime=p=!e||t||this._rawprevtime===t?t:n)):1e-7>t?(this._totaltime=this._time=this._cycle=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==m||0===g&&this._rawprevtime>0&&this._rawprevtime!==n)&&(r="onreversecomplete",s=this._reversed),0>t?(this._active=!1,0===g&&(this._rawprevtime>=0&&(i=!0),this._rawprevtime=p=!e||t||this._rawprevtime===t?t:n)):this._initted||(i=!0)):(this._totaltime=this._time=t,0!==this._repeat&&(o=g+this._repeatdelay,this._cycle=this._totaltime/o>>0,0!==this._cycle&&this._cycle===this._totaltime/o&&this._cycle--,this._time=this._totaltime-this._cycle*o,this._yoyo&&0!==(1&this._cycle)&&(this._time=g-this._time),this._time>g?this._time=g:0>this._time&&(this._time=0)),this._easetype?(h=this._time/g,_=this._easetype,u=this._easepower,(1===_||3===_&&h>=.5)&&(h=1-h),3===_&&(h*=2),1===u?h*=h:2===u?h*=h*h:3===u?h*=h*h*h:4===u&&(h*=h*h*h*h),this.ratio=1===_?1-h:2===_?h:.5>this._time/g?h/2:1-h/2):this.ratio=this._ease.getratio(this._time/g)),f===this._time&&!i&&d===this._cycle)return m!==this._totaltime&&this._onupdate&&(e||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||l)),void 0;if(!this._initted){if(this._init(),!this._initted||this._gc)return;this._time&&!s?this.ratio=this._ease.getratio(this._time/g):s&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._active||!this._paused&&this._time!==f&&t>=0&&(this._active=!0),0===m&&(this._startat&&(t>=0?this._startat.render(t,e,i):r||(r="_dummygs")),this.vars.onstart&&(0!==this._totaltime||0===g)&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||l))),a=this._firstpt;a;)a.f?a.t[a.p](a.c*this.ratio+a.s):a.t[a.p]=a.c*this.ratio+a.s,a=a._next;this._onupdate&&(0>t&&this._startat&&this._starttime&&this._startat.render(t,e,i),e||(this._totaltime!==m||s)&&this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||l)),this._cycle!==d&&(e||this._gc||this.vars.onrepeat&&this.vars.onrepeat.apply(this.vars.onrepeatscope||this,this.vars.onrepeatparams||l)),r&&(this._gc||(0>t&&this._startat&&!this._onupdate&&this._starttime&&this._startat.render(t,e,i),s&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"scope"]||this,this.vars[r+"params"]||l),0===g&&this._rawprevtime===n&&p!==n&&(this._rawprevtime=0)))},r.to=function(t,e,i){return new r(t,e,i)},r.from=function(t,e,i){return i.runbackwards=!0,i.immediaterender=0!=i.immediaterender,new r(t,e,i)},r.fromto=function(t,e,i,s){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,new r(t,e,s)},r.staggerto=r.allto=function(t,e,n,h,_,u,p){h=h||0;var c,f,m,d,g=n.delay||0,v=[],y=function(){n.oncomplete&&n.oncomplete.apply(n.oncompletescope||this,arguments),_.apply(p||this,u||l)};for(o(t)||("string"==typeof t&&(t=i.selector(t)||t),a(t)&&(t=s.call(t,0))),c=t.length,m=0;c>m;m++){f={};for(d in n)f[d]=n[d];f.delay=g,m===c-1&&_&&(f.oncomplete=y),v[m]=new r(t[m],e,f),g+=h}return v},r.staggerfrom=r.allfrom=function(t,e,i,s,n,a,o){return i.runbackwards=!0,i.immediaterender=0!=i.immediaterender,r.staggerto(t,e,i,s,n,a,o)},r.staggerfromto=r.allfromto=function(t,e,i,s,n,a,o,h){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,r.staggerto(t,e,s,n,a,o,h)},r.delayedcall=function(t,e,i,s,n){return new r(e,0,{delay:t,oncomplete:e,oncompleteparams:i,oncompletescope:s,onreversecomplete:e,onreversecompleteparams:i,onreversecompletescope:s,immediaterender:!1,useframes:n,overwrite:0})},r.set=function(t,e){return new r(t,0,e)},r.istweening=function(t){return i.gettweensof(t,!0).length>0};var _=function(t,e){for(var s=[],r=0,n=t._first;n;)n instanceof i?s[r++]=n:(e&&(s[r++]=n),s=s.concat(_(n,e)),r=s.length),n=n._next;return s},u=r.getalltweens=function(e){return _(t._roottimeline,e).concat(_(t._rootframestimeline,e))};r.killall=function(t,i,s,r){null==i&&(i=!0),null==s&&(s=!0);var n,a,o,h=u(0!=r),l=h.length,_=i&&s&&r;for(o=0;l>o;o++)a=h[o],(_||a instanceof e||(n=a.target===a.vars.oncomplete)&&s||i&&!n)&&(t?a.totaltime(a.totalduration()):a._enabled(!1,!1))},r.killchildtweensof=function(t,e){if(null!=t){var n,h,l,_,u,p=i._tweenlookup;if("string"==typeof t&&(t=i.selector(t)||t),a(t)&&(t=s.call(t,0)),o(t))for(_=t.length;--_>-1;)r.killchildtweensof(t[_],e);else{n=[];for(l in p)for(h=p[l].target.parentnode;h;)h===t&&(n=n.concat(p[l].tweens)),h=h.parentnode;for(u=n.length,_=0;u>_;_++)e&&n[_].totaltime(n[_].totalduration()),n[_]._enabled(!1,!1)}}};var p=function(t,i,s,r){i=i!==!1,s=s!==!1,r=r!==!1;for(var n,a,o=u(r),h=i&&s&&r,l=o.length;--l>-1;)a=o[l],(h||a instanceof e||(n=a.target===a.vars.oncomplete)&&s||i&&!n)&&a.paused(t)};return r.pauseall=function(t,e,i){p(!0,t,e,i)},r.resumeall=function(t,e,i){p(!1,t,e,i)},r.globaltimescale=function(e){var s=t._roottimeline,r=i.ticker.time;return arguments.length?(e=e||n,s._starttime=r-(r-s._starttime)*s._timescale/e,s=t._rootframestimeline,r=i.ticker.frame,s._starttime=r-(r-s._starttime)*s._timescale/e,s._timescale=t._roottimeline._timescale=e,e):s._timescale},h.progress=function(t){return arguments.length?this.totaltime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatdelay),!1):this._time/this.duration()},h.totalprogress=function(t){return arguments.length?this.totaltime(this.totalduration()*t,!1):this._totaltime/this.totalduration()},h.time=function(t,e){return arguments.length?(this._dirty&&this.totalduration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(t,e)):this._time},h.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},h.totalduration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-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)},h.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},h.repeatdelay=function(t){return arguments.length?(this._repeatdelay=t,this._uncache(!0)):this._repeatdelay},h.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},r},!0),window._gsdefine("timelinelite",["core.animation","core.simpletimeline","tweenlite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoremovechildren=this.vars.autoremovechildren===!0,this.smoothchildtiming=this.vars.smoothchildtiming===!0,this._sortchildren=!0,this._onupdate=this.vars.onupdate;var i,s,r=this.vars;for(s in r)i=r[s],a(i)&&-1!==i.join("").indexof("{self}")&&(r[s]=this._swapselfinparams(i));a(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals.isselector,a=i._internals.isarray,o=[],h=window._gsdefine.globals,l=function(t){var e,i={};for(e in t)i[e]=t[e];return i},_=function(t,e,i,s){t._timeline.pause(t._starttime),e&&e.apply(s||t._timeline,i||o)},u=o.slice,p=s.prototype=new e;return s.version="1.11.7",p.constructor=s,p.kill()._gc=!1,p.to=function(t,e,s,r){var n=s.repeat&&h.tweenmax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},p.from=function(t,e,s,r){return this.add((s.repeat&&h.tweenmax||i).from(t,e,s),r)},p.fromto=function(t,e,s,r,n){var a=r.repeat&&h.tweenmax||i;return e?this.add(a.fromto(t,e,s,r),n):this.set(t,r,n)},p.staggerto=function(t,e,r,a,o,h,_,p){var c,f=new s({oncomplete:h,oncompleteparams:_,oncompletescope:p,smoothchildtiming:this.smoothchildtiming});for("string"==typeof t&&(t=i.selector(t)||t),n(t)&&(t=u.call(t,0)),a=a||0,c=0;t.length>c;c++)r.startat&&(r.startat=l(r.startat)),f.to(t[c],e,l(r),c*a);return this.add(f,o)},p.staggerfrom=function(t,e,i,s,r,n,a,o){return i.immediaterender=0!=i.immediaterender,i.runbackwards=!0,this.staggerto(t,e,i,s,r,n,a,o)},p.staggerfromto=function(t,e,i,s,r,n,a,o,h){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,this.staggerto(t,e,s,r,n,a,o,h)},p.call=function(t,e,s,r){return this.add(i.delayedcall(0,t,e,s),r)},p.set=function(t,e,s){return s=this._parsetimeorlabel(s,0,!0),null==e.immediaterender&&(e.immediaterender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportroot=function(t,e){t=t||{},null==t.smoothchildtiming&&(t.smoothchildtiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._starttime=0,a._rawprevtime=a._time=a._totaltime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.oncomplete||a.add(r,r._starttime-r._delay),r=n;return o.add(a,0),a},p.add=function(r,n,o,h){var l,_,u,p,c,f;if("number"!=typeof n&&(n=this._parsetimeorlabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof array||r&&r.push&&a(r)){for(o=o||"normal",h=h||0,l=n,_=r.length,u=0;_>u;u++)a(p=r[u])&&(p=new s({tweens:p})),this.add(p,l),"string"!=typeof p&&"function"!=typeof p&&("sequence"===o?l=p._starttime+p.totalduration()/p._timescale:"start"===o&&(p._starttime-=p.delay())),l+=h;return this._uncache(!0)}if("string"==typeof r)return this.addlabel(r,n);if("function"!=typeof r)throw"cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedcall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._durationr._starttime;c._timeline;)f&&c._timeline.smoothchildtiming?c.totaltime(c._totaltime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},p.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof array||e&&e.push&&a(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removelabel(e):this.kill(null,e)},p._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._starttime+s._totalduration/s._timescale&&(this._time=this.duration(),this._totaltime=this._totalduration):this._time=this._totaltime=this._duration=this._totalduration=0,this},p.append=function(t,e){return this.add(t,this._parsetimeorlabel(null,e,!0,t))},p.insert=p.insertmultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},p.appendmultiple=function(t,e,i,s){return this.add(t,this._parsetimeorlabel(null,e,!0,t),i,s)},p.addlabel=function(t,e){return this._labels[t]=this._parsetimeorlabel(e),this},p.addpause=function(t,e,i,s){return this.call(_,["{self}",e,i,s],this,t)},p.removelabel=function(t){return delete this._labels[t],this},p.getlabeltime=function(t){return null!=this._labels[t]?this._labels[t]:-1},p._parsetimeorlabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof array||r.push&&a(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parsetimeorlabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isnan(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexof("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseint(e.charat(n-1)+"1",10)*number(e.substr(n+1)),e=n>1?this._parsetimeorlabel(e.substr(0,n-1),0,s):this.duration()}return number(e)+i},p.seek=function(t,e){return this.totaltime("number"==typeof t?t:this._parsetimeorlabel(t),e!==!1)},p.stop=function(){return this.paused(!0)},p.gotoandplay=function(t,e){return this.play(t,e)},p.gotoandstop=function(t,e){return this.pause(t,e)},p.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,h,l,_=this._dirty?this.totalduration():this._totalduration,u=this._time,p=this._starttime,c=this._timescale,f=this._paused;if(t>=_?(this._totaltime=this._time=_,this._reversed||this._haspausedchild()||(n=!0,h="oncomplete",0===this._duration&&(0===t||0>this._rawprevtime||this._rawprevtime===r)&&this._rawprevtime!==t&&this._first&&(l=!0,this._rawprevtime>r&&(h="onreversecomplete"))),this._rawprevtime=this._duration||!e||t||this._rawprevtime===t?t:r,t=_+1e-4):1e-7>t?(this._totaltime=this._time=0,(0!==u||0===this._duration&&this._rawprevtime!==r&&(this._rawprevtime>0||0>t&&this._rawprevtime>=0))&&(h="onreversecomplete",n=this._reversed),0>t?(this._active=!1,0===this._duration&&this._rawprevtime>=0&&this._first&&(l=!0),this._rawprevtime=t):(this._rawprevtime=this._duration||!e||t||this._rawprevtime===t?t:r,t=0,this._initted||(l=!0))):this._totaltime=this._time=this._rawprevtime=t,this._time!==u&&this._first||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==u&&t>0&&(this._active=!0),0===u&&this.vars.onstart&&0!==this._time&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||o)),this._time>=u)for(s=this._first;s&&(a=s._next,!this._paused||f);)(s._active||s._starttime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||f);)(s._active||u>=s._starttime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)),s=a;this._onupdate&&(e||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||o)),h&&(this._gc||(p===this._starttime||c!==this._timescale)&&(0===this._time||_>=this.totalduration())&&(n&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[h]&&this.vars[h].apply(this.vars[h+"scope"]||this,this.vars[h+"params"]||o)))}},p._haspausedchild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._haspausedchild())return!0;t=t._next}return!1},p.getchildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._starttime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getchildren(!0,e,s)),o=n.length))),a=a._next;return n},p.gettweensof=function(t,e){for(var s=i.gettweensof(t),r=s.length,n=[],a=0;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(n[a++]=s[r]);return n},p._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},p.shiftchildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._starttime>=i&&(r._starttime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},p._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.gettweensof(e):this.getchildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},p.clear=function(t){var e=this.getchildren(!1,!0,!0),i=e.length;for(this._time=this._totaltime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},p.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return this},p._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},p.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timescale(this._duration/t),this):(this._dirty&&this.totalduration(),this._duration)},p.totalduration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalduration(),r._starttime>n&&this._sortchildren&&!r._paused?this.add(r,r._starttime-r._delay):n=r._starttime,0>r._starttime&&!r._paused&&(s-=r._starttime,this._timeline.smoothchildtiming&&(this._starttime+=r._starttime/this._timescale),this.shiftchildren(-r._starttime,!1,-9999999999),n=0),i=r._starttime+r._totalduration/r._timescale,i>s&&(s=i),r=e;this._duration=this._totalduration=s,this._dirty=!1}return this._totalduration}return 0!==this.totalduration()&&0!==t&&this.timescale(this._totalduration/t),this},p.usesframes=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootframestimeline},p.rawtime=function(){return this._paused?this._totaltime:(this._timeline.rawtime()-this._starttime)*this._timescale},s},!0),window._gsdefine("timelinemax",["timelinelite","tweenlite","easing.ease"],function(t,e,i){var s=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},r=1e-10,n=[],a=new i(null,null,1,0),o=s.prototype=new t;return o.constructor=s,o.kill()._gc=!1,s.version="1.11.7",o.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},o.addcallback=function(t,i,s,r){return this.add(e.delayedcall(0,t,s,r),i)},o.removecallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.gettweensof(t,!1),s=i.length,r=this._parsetimeorlabel(e);--s>-1;)i[s]._starttime===r&&i[s]._enabled(!1,!1);return this},o.tweento=function(t,i){i=i||{};var s,r,o,h={ease:a,overwrite:2,useframes:this.usesframes(),immediaterender:!1};for(r in i)h[r]=i[r];return h.time=this._parsetimeorlabel(t),s=math.abs(number(h.time)-this._time)/this._timescale||.001,o=new e(this,s,h),h.onstart=function(){o.target.paused(!0),o.vars.time!==o.target.time()&&s===o.duration()&&o.duration(math.abs(o.vars.time-o.target.time())/o.target._timescale),i.onstart&&i.onstart.apply(i.onstartscope||o,i.onstartparams||n)},o},o.tweenfromto=function(t,e,i){i=i||{},t=this._parsetimeorlabel(t),i.startat={oncomplete:this.seek,oncompleteparams:[t],oncompletescope:this},i.immediaterender=i.immediaterender!==!1;var s=this.tweento(e,i);return s.duration(math.abs(s.vars.time-t)/this._timescale||.001)},o.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,a,o,h,l,_,u=this._dirty?this.totalduration():this._totalduration,p=this._duration,c=this._time,f=this._totaltime,m=this._starttime,d=this._timescale,g=this._rawprevtime,v=this._paused,y=this._cycle;if(t>=u?(this._locked||(this._totaltime=u,this._cycle=this._repeat),this._reversed||this._haspausedchild()||(a=!0,h="oncomplete",0===this._duration&&(0===t||0>g||g===r)&&g!==t&&this._first&&(l=!0,g>r&&(h="onreversecomplete"))),this._rawprevtime=this._duration||!e||t||this._rawprevtime===t?t:r,this._yoyo&&0!==(1&this._cycle)?this._time=t=0:(this._time=p,t=p+1e-4)):1e-7>t?(this._locked||(this._totaltime=this._cycle=0),this._time=0,(0!==c||0===p&&g!==r&&(g>0||0>t&&g>=0)&&!this._locked)&&(h="onreversecomplete",a=this._reversed),0>t?(this._active=!1,0===p&&g>=0&&this._first&&(l=!0),this._rawprevtime=t):(this._rawprevtime=p||!e||t||this._rawprevtime===t?t:r,t=0,this._initted||(l=!0))):(0===p&&0>g&&(l=!0),this._time=this._rawprevtime=t,this._locked||(this._totaltime=t,0!==this._repeat&&(_=p+this._repeatdelay,this._cycle=this._totaltime/_>>0,0!==this._cycle&&this._cycle===this._totaltime/_&&this._cycle--,this._time=this._totaltime-this._cycle*_,this._yoyo&&0!==(1&this._cycle)&&(this._time=p-this._time),this._time>p?(this._time=p,t=p+1e-4):0>this._time?this._time=t=0:t=this._time))),this._cycle!==y&&!this._locked){var t=this._yoyo&&0!==(1&y),w=t===(this._yoyo&&0!==(1&this._cycle)),x=this._totaltime,b=this._cycle,p=this._rawprevtime,s=this._time;if(this._totaltime=y*p,y>this._cycle?t=!t:this._totaltime+=p,this._time=c,this._rawprevtime=0===p?g-1e-4:g,this._cycle=y,this._locked=!0,c=t?0:p,this.render(c,e,0===p),e||this._gc||this.vars.onrepeat&&this.vars.onrepeat.apply(this.vars.onrepeatscope||this,this.vars.onrepeatparams||n),w&&(c=t?p+1e-4:-1e-4,this.render(c,!0,!1)),this._locked=!1,this._paused&&!v)return;this._time=s,this._totaltime=x,this._cycle=b,this._rawprevtime=p}if(!(this._time!==c&&this._first||i||l))return f!==this._totaltime&&this._onupdate&&(e||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||n)),void 0;if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totaltime!==f&&t>0&&(this._active=!0),0===f&&this.vars.onstart&&0!==this._totaltime&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||n)),this._time>=c)for(s=this._first;s&&(o=s._next,!this._paused||v);)(s._active||s._starttime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)),s=o;else for(s=this._last;s&&(o=s._prev,!this._paused||v);)(s._active||c>=s._starttime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)),s=o;this._onupdate&&(e||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||n)),h&&(this._locked||this._gc||(m===this._starttime||d!==this._timescale)&&(0===this._time||u>=this.totalduration())&&(a&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[h]&&this.vars[h].apply(this.vars[h+"scope"]||this,this.vars[h+"params"]||n)))},o.getactive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var s,r,n=[],a=this.getchildren(t,e,i),o=0,h=a.length;for(s=0;h>s;s++)r=a[s],r.isactive()&&(n[o++]=r);return n},o.getlabelafter=function(t){t||0!==t&&(t=this._time);var e,i=this.getlabelsarray(),s=i.length;for(e=0;s>e;e++)if(i[e].time>t)return i[e].name;return null},o.getlabelbefore=function(t){null==t&&(t=this._time);for(var e=this.getlabelsarray(),i=e.length;--i>-1;)if(t>e[i].time)return e[i].name;return null},o.getlabelsarray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},o.progress=function(t){return arguments.length?this.totaltime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatdelay),!1):this._time/this.duration()},o.totalprogress=function(t){return arguments.length?this.totaltime(this.totalduration()*t,!1):this._totaltime/this.totalduration()},o.totalduration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatdelay)/(this._repeat+1)):(this._dirty&&(t.prototype.totalduration.call(this),this._totalduration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatdelay*this._repeat),this._totalduration)},o.time=function(t,e){return arguments.length?(this._dirty&&this.totalduration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(t,e)):this._time},o.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},o.repeatdelay=function(t){return arguments.length?(this._repeatdelay=t,this._uncache(!0)):this._repeatdelay},o.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},o.currentlabel=function(t){return arguments.length?this.seek(t,!0):this.getlabelbefore(this._time+1e-8)},s},!0),function(){var t=180/math.pi,e=[],i=[],s=[],r={},n=function(t,e,i,s){this.a=t,this.b=e,this.c=i,this.d=s,this.da=s-t,this.ca=i-t,this.ba=e-t},a=",x,y,z,left,top,right,bottom,margintop,marginleft,marginright,marginbottom,paddingleft,paddingtop,paddingright,paddingbottom,backgroundposition,backgroundposition_y,",o=function(t,e,i,s){var r={a:t},n={},a={},o={c:s},h=(t+e)/2,l=(e+i)/2,_=(i+s)/2,u=(h+l)/2,p=(l+_)/2,c=(p-u)/8;return r.b=h+(t-h)/4,n.b=u+c,r.c=n.a=(r.b+n.b)/2,n.c=a.a=(u+p)/2,a.b=p-c,o.b=_+(s-_)/4,a.c=o.a=(a.b+o.b)/2,[r,n,a,o]},h=function(t,r,n,a,h){var l,_,u,p,c,f,m,d,g,v,y,t,w,x=t.length-1,b=0,p=t[0].a;for(l=0;x>l;l++)c=t[b],_=c.a,u=c.d,p=t[b+1].d,h?(y=e[l],t=i[l],w=.25*(t+y)*r/(a?.5:s[l]||.5),f=u-(u-_)*(a?.5*r:0!==y?w/y:0),m=u+(p-u)*(a?.5*r:0!==t?w/t:0),d=u-(f+((m-f)*(3*y/(y+t)+.5)/4||0))):(f=u-.5*(u-_)*r,m=u+.5*(p-u)*r,d=u-(f+m)/2),f+=d,m+=d,c.c=g=f,c.b=0!==l?p:p=c.a+.6*(c.c-c.a),c.da=u-_,c.ca=g-_,c.ba=p-_,n?(v=o(_,p,g,u),t.splice(b,1,v[0],v[1],v[2],v[3]),b+=4):b++,p=m;c=t[b],c.b=p,c.c=p+.4*(c.d-p),c.da=c.d-c.a,c.ca=c.c-c.a,c.ba=p-c.a,n&&(v=o(c.a,p,c.c,c.d),t.splice(b,1,v[0],v[1],v[2],v[3]))},l=function(t,s,r,a){var o,h,l,_,u,p,c=[];if(a)for(t=[a].concat(t),h=t.length;--h>-1;)"string"==typeof(p=t[h][s])&&"="===p.charat(1)&&(t[h][s]=a[s]+number(p.charat(0)+p.substr(2)));if(o=t.length-2,0>o)return c[0]=new n(t[0][s],0,0,t[-1>o?0:1][s]),c;for(h=0;o>h;h++)l=t[h][s],_=t[h+1][s],c[h]=new n(l,0,0,_),r&&(u=t[h+2][s],e[h]=(e[h]||0)+(_-l)*(_-l),i[h]=(i[h]||0)+(u-_)*(u-_));return c[h]=new n(t[h][s],0,0,t[h+1][s]),c},_=function(t,n,o,_,u,p){var c,f,m,d,g,v,y,t,w={},x=[],b=p||t[0];u="string"==typeof u?","+u+",":a,null==n&&(n=1);for(f in t[0])x.push(f);if(t.length>1){for(t=t[t.length-1],y=!0,c=x.length;--c>-1;)if(f=x[c],math.abs(b[f]-t[f])>.05){y=!1;break}y&&(t=t.concat(),p&&t.unshift(p),t.push(t[1]),p=t[t.length-3])}for(e.length=i.length=s.length=0,c=x.length;--c>-1;)f=x[c],r[f]=-1!==u.indexof(","+f+","),w[f]=l(t,f,r[f],p);for(c=e.length;--c>-1;)e[c]=math.sqrt(e[c]),i[c]=math.sqrt(i[c]);if(!_){for(c=x.length;--c>-1;)if(r[f])for(m=w[x[c]],v=m.length-1,d=0;v>d;d++)g=m[d+1].da/i[d]+m[d].da/e[d],s[d]=(s[d]||0)+g*g;for(c=s.length;--c>-1;)s[c]=math.sqrt(s[c])}for(c=x.length,d=o?4:1;--c>-1;)f=x[c],m=w[f],h(m,n,o,_,r[f]),y&&(m.splice(0,d),m.splice(m.length-d,d));return w},u=function(t,e,i){e=e||"soft";var s,r,a,o,h,l,_,u,p,c,f,m={},d="cubic"===e?3:2,g="soft"===e,v=[];if(g&&i&&(t=[i].concat(t)),null==t||d+1>t.length)throw"invalid bezier data";for(p in t[0])v.push(p);for(l=v.length;--l>-1;){for(p=v[l],m[p]=h=[],c=0,u=t.length,_=0;u>_;_++)s=null==i?t[_][p]:"string"==typeof(f=t[_][p])&&"="===f.charat(1)?i[p]+number(f.charat(0)+f.substr(2)):number(f),g&&_>1&&u-1>_&&(h[c++]=(s+h[c-2])/2),h[c++]=s;for(u=c-d+1,c=0,_=0;u>_;_+=d)s=h[_],r=h[_+1],a=h[_+2],o=2===d?0:h[_+3],h[c++]=f=3===d?new n(s,r,a,o):new n(s,(2*r+s)/3,(2*r+a)/3,a);h.length=c}return m},p=function(t,e,i){for(var s,r,n,a,o,h,l,_,u,p,c,f=1/i,m=t.length;--m>-1;)for(p=t[m],n=p.a,a=p.d-n,o=p.c-n,h=p.b-n,s=r=0,_=1;i>=_;_++)l=f*_,u=1-l,s=r-(r=(l*l*a+3*u*(l*o+u*h))*l),c=m*i+_-1,e[c]=(e[c]||0)+s*s},c=function(t,e){e=e>>0||6;var i,s,r,n,a=[],o=[],h=0,l=0,_=e-1,u=[],c=[];for(i in t)p(t[i],a,e);for(r=a.length,s=0;r>s;s++)h+=math.sqrt(a[s]),n=s%e,c[n]=h,n===_&&(l+=h,n=s/e>>0,u[n]=c,o[n]=l,h=0,c=[]);return{length:l,lengths:o,segments:u}},f=window._gsdefine.plugin({propname:"bezier",priority:-1,version:"1.3.2",api:2,global:!0,init:function(t,e,i){this._target=t,e instanceof array&&(e={values:e}),this._func={},this._round={},this._props=[],this._timeres=null==e.timeresolution?6:parseint(e.timeresolution,10);var s,r,n,a,o,h=e.values||[],l={},p=h[0],f=e.autorotate||i.vars.orienttobezier;this._autorotate=f?f instanceof array?f:[["x","y","rotation",f===!0?0:number(f)||0]]:null;for(s in p)this._props.push(s);for(n=this._props.length;--n>-1;)s=this._props[n],this._overwriteprops.push(s),r=this._func[s]="function"==typeof t[s],l[s]=r?t[s.indexof("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]():parsefloat(t[s]),o||l[s]!==h[0][s]&&(o=l);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?_(h,isnan(e.curviness)?1:e.curviness,!1,"thrubasic"===e.type,e.correlate,o):u(h,e.type,l),this._segcount=this._beziers[s].length,this._timeres){var m=c(this._beziers,this._timeres);this._length=m.length,this._lengths=m.lengths,this._segments=m.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(f=this._autorotate)for(this._initialrotations=[],f[0]instanceof array||(this._autorotate=f=[f]),n=f.length;--n>-1;){for(a=0;3>a;a++)s=f[n][a],this._func[s]="function"==typeof t[s]?t[s.indexof("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]:!1;s=f[n][2],this._initialrotations[n]=this._func[s]?this._func[s].call(this._target):this._target[s]}return this._startratio=i.vars.runbackwards?1:0,!0},set:function(e){var i,s,r,n,a,o,h,l,_,u,p=this._segcount,c=this._func,f=this._target,m=e!==this._startratio;if(this._timeres){if(_=this._lengths,u=this._curseg,e*=this._length,r=this._li,e>this._l2&&p-1>r){for(l=p-1;l>r&&e>=(this._l2=_[++r]););this._l1=_[r-1],this._li=r,this._curseg=u=this._segments[r],this._s2=u[this._s1=this._si=0]}else if(this._l1>e&&r>0){for(;r>0&&(this._l1=_[--r])>=e;);0===r&&this._l1>e?this._l1=0:r++,this._l2=_[r],this._li=r,this._curseg=u=this._segments[r],this._s1=u[(this._si=u.length-1)-1]||0,this._s2=u[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&u.length-1>r){for(l=u.length-1;l>r&&e>=(this._s2=u[++r]););this._s1=u[r-1],this._si=r}else if(this._s1>e&&r>0){for(;r>0&&(this._s1=u[--r])>=e;);0===r&&this._s1>e?this._s1=0:r++,this._s2=u[r],this._si=r}o=(r+(e-this._s1)/(this._s2-this._s1))*this._prec}else i=0>e?0:e>=1?p-1:p*e>>0,o=(e-i*(1/p))*p;for(s=1-o,r=this._props.length;--r>-1;)n=this._props[r],a=this._beziers[n][i],h=(o*o*a.da+3*s*(o*a.ca+s*a.ba))*o+a.a,this._round[n]&&(h=math.round(h)),c[n]?f[n](h):f[n]=h;if(this._autorotate){var d,g,v,y,t,w,x,b=this._autorotate;for(r=b.length;--r>-1;)n=b[r][2],w=b[r][3]||0,x=b[r][4]===!0?1:t,a=this._beziers[b[r][0]],d=this._beziers[b[r][1]],a&&d&&(a=a[i],d=d[i],g=a.a+(a.b-a.a)*o,y=a.b+(a.c-a.b)*o,g+=(y-g)*o,y+=(a.c+(a.d-a.c)*o-y)*o,v=d.a+(d.b-d.a)*o,t=d.b+(d.c-d.b)*o,v+=(t-v)*o,t+=(d.c+(d.d-d.c)*o-t)*o,h=m?math.atan2(t-v,y-g)*x+w:this._initialrotations[r],c[n]?f[n](h):f[n]=h)}}}),m=f.prototype;f.bezierthrough=_,f.cubictoquadratic=o,f._autocss=!0,f.quadratictocubic=function(t,e,i){return new n(t,(2*e+t)/3,(2*e+i)/3,i)},f._cssregister=function(){var t=window._gsdefine.globals.cssplugin;if(t){var e=t._internals,i=e._parsetoproxy,s=e._setpluginratio,r=e.cssproptween;e._registercomplexspecialprop("bezier",{parser:function(t,e,n,a,o,h){e instanceof array&&(e={values:e}),h=new f; var l,_,u,p=e.values,c=p.length-1,m=[],d={};if(0>c)return o;for(l=0;c>=l;l++)u=i(t,p[l],a,o,h,c!==l),m[l]=u.end;for(_ in e)d[_]=e[_];return d.values=m,o=new r(t,"bezier",0,0,u.pt,2),o.data=u,o.plugin=h,o.setratio=s,0===d.autorotate&&(d.autorotate=!0),!d.autorotate||d.autorotate instanceof array||(l=d.autorotate===!0?0:number(d.autorotate),d.autorotate=null!=u.end.left?[["left","top","rotation",l,!1]]:null!=u.end.x?[["x","y","rotation",l,!1]]:!1),d.autorotate&&(a._transform||a._enabletransforms(!1),u.autorotate=a._target._gstransform),h._oninittween(u.proxy,d,a._tween),o}})}},m._roundprops=function(t,e){for(var i=this._overwriteprops,s=i.length;--s>-1;)(t[i[s]]||t.bezier||t.bezierthrough)&&(this._round[i[s]]=e)},m._kill=function(t){var e,i,s=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=s.length;--i>-1;)s[i]===e&&s.splice(i,1);return this._super._kill.call(this,t)}}(),window._gsdefine("plugins.cssplugin",["plugins.tweenplugin","tweenlite"],function(t,e){var i,s,r,n,a=function(){t.call(this,"css"),this._overwriteprops.length=0,this.setratio=a.prototype.setratio},o={},h=a.prototype=new t("css");h.constructor=a,a.version="1.11.7",a.api=2,a.defaulttransformperspective=0,a.defaultskewtype="compensated",h="px",a.suffixmap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontsize:h,padding:h,margin:h,perspective:h,lineheight:""};var l,_,u,p,c,f,m=/(?:\d|\-\d|\.\d|\-\.\d)+/g,d=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,g=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-za-z0-9]*(?:%|\b)/gi,v=/[^\d\-\.]/g,y=/(?:\d|\-|\+|=|#|\.)*/g,t=/opacity *= *([^)]*)/,w=/opacity:([^;]*)/,x=/alpha\(opacity *=.+?\)/i,b=/^(rgb|hsl)/,p=/([a-z])/g,s=/-([a-z])/gi,k=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,r=function(t,e){return e.touppercase()},a=/(?:left|right|width)/i,c=/(m11|m12|m21|m22)=[\d\-\.e]+/gi,o=/progid\:dximagetransform\.microsoft\.matrix\(.+?\)/i,d=/,(?=[^\)]*(?:\(|$))/gi,m=math.pi/180,i=180/math.pi,e={},n=document,f=n.createelement("div"),l=n.createelement("img"),x=a._internals={_specialprops:o},z=navigator.useragent,u=function(){var t,e=z.indexof("android"),i=n.createelement("div");return u=-1!==z.indexof("safari")&&-1===z.indexof("chrome")&&(-1===e||number(z.substr(e+8,1))>3),c=u&&6>number(z.substr(z.indexof("version/")+8,1)),p=-1!==z.indexof("firefox"),/msie ([0-9]{1,}[\.0-9]{0,})/.exec(z)&&(f=parsefloat(regexp.$1)),i.innerhtml="a",t=i.getelementsbytagname("a")[0],t?/^0.55/.test(t.style.opacity):!1}(),y=function(t){return t.test("string"==typeof t?t:(t.currentstyle?t.currentstyle.filter:t.style.filter)||"")?parsefloat(regexp.$1)/100:1},j=function(t){window.console&&console.log(t)},b="",q="",v=function(t,e){e=e||f;var i,s,r=e.style;if(void 0!==r[t])return t;for(t=t.charat(0).touppercase()+t.substr(1),i=["o","moz","ms","ms","webkit"],s=5;--s>-1&&void 0===r[i[s]+t];);return s>=0?(q=3===s?"ms":i[s],b="-"+q.tolowercase()+"-",q+t):null},w=n.defaultview?n.defaultview.getcomputedstyle:function(){},g=a.getstyle=function(t,e,i,s,r){var n;return u||"opacity"!==e?(!s&&t.style[e]?n=t.style[e]:(i=i||w(t,null))?n=i[e]||i.getpropertyvalue(e)||i.getpropertyvalue(e.replace(p,"-$1").tolowercase()):t.currentstyle&&(n=t.currentstyle[e]),null==r||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:r):y(t)},$=x.converttopixels=function(t,i,s,r,n){if("px"===r||!r)return s;if("auto"===r||!s)return 0;var o,h,l,_=a.test(i),u=t,p=f.style,c=0>s;if(c&&(s=-s),"%"===r&&-1!==i.indexof("border"))o=s/100*(_?t.clientwidth:t.clientheight);else{if(p.csstext="border:0 solid red;position:"+g(t,"position")+";line-height:0;","%"!==r&&u.appendchild)p[_?"borderleftwidth":"bordertopwidth"]=s+r;else{if(u=t.parentnode||n.body,h=u._gscache,l=e.ticker.frame,h&&_&&h.time===l)return h.width*s/100;p[_?"width":"height"]=s+r}u.appendchild(f),o=parsefloat(f[_?"offsetwidth":"offsetheight"]),u.removechild(f),_&&"%"===r&&a.cachewidths!==!1&&(h=u._gscache=u._gscache||{},h.time=l,h.width=100*(o/s)),0!==o||n||(o=$(t,i,s,r,!0))}return c?-o:o},z=x.calculateoffset=function(t,e,i){if("absolute"!==g(t,"position",i))return 0;var s="left"===e?"left":"top",r=g(t,"margin"+s,i);return t["offset"+s]-($(t,e,parsefloat(r),r.replace(y,""))||0)},q=function(t,e){var i,s,r={};if(e=e||w(t,null))if(i=e.length)for(;--i>-1;)r[e[i].replace(s,r)]=e.getpropertyvalue(e[i]);else for(i in e)r[i]=e[i];else if(e=t.currentstyle||t.style)for(i in e)"string"==typeof i&&void 0===r[i]&&(r[i.replace(s,r)]=e[i]);return u||(r.opacity=y(t)),s=pe(t,e,!1),r.rotation=s.rotation,r.skewx=s.skewx,r.scalex=s.scalex,r.scaley=s.scaley,r.x=s.x,r.y=s.y,xe&&(r.z=s.z,r.rotationx=s.rotationx,r.rotationy=s.rotationy,r.scalez=s.scalez),r.filters&&delete r.filters,r},h=function(t,e,i,s,r){var n,a,o,h={},l=t.style;for(a in i)"csstext"!==a&&"length"!==a&&isnan(a)&&(e[a]!==(n=i[a])||r&&r[a])&&-1===a.indexof("origin")&&("number"==typeof n||"string"==typeof n)&&(h[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(v,"")?n:0:z(t,a),void 0!==l[a]&&(o=new ue(l,a,l[a],o)));if(s)for(a in s)"classname"!==a&&(h[a]=s[a]);return{difs:h,firstmpt:o}},k={width:["left","right"],height:["top","bottom"]},j=["marginleft","marginright","margintop","marginbottom"],te=function(t,e,i){var s=parsefloat("width"===e?t.offsetwidth:t.offsetheight),r=k[e],n=r.length;for(i=i||w(t,null);--n>-1;)s-=parsefloat(g(t,"padding"+r[n],i,!0))||0,s-=parsefloat(g(t,"border"+r[n]+"width",i,!0))||0;return s},ee=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),s=-1!==t.indexof("left")?"0%":-1!==t.indexof("right")?"100%":i[0],r=-1!==t.indexof("top")?"0%":-1!==t.indexof("bottom")?"100%":i[1];return null==r?r="0":"center"===r&&(r="50%"),("center"===s||isnan(parsefloat(s))&&-1===(s+"").indexof("="))&&(s="50%"),e&&(e.oxp=-1!==s.indexof("%"),e.oyp=-1!==r.indexof("%"),e.oxr="="===s.charat(1),e.oyr="="===r.charat(1),e.ox=parsefloat(s.replace(v,"")),e.oy=parsefloat(r.replace(v,""))),s+" "+r+(i.length>2?" "+i[2]:"")},ie=function(t,e){return"string"==typeof t&&"="===t.charat(1)?parseint(t.charat(0)+"1",10)*parsefloat(t.substr(2)):parsefloat(t)-parsefloat(e)},se=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charat(1)?parseint(t.charat(0)+"1",10)*number(t.substr(2))+e:parsefloat(t)},re=function(t,e,i,s){var r,n,a,o,h=1e-6;return null==t?o=e:"number"==typeof t?o=t:(r=360,n=t.split("_"),a=number(n[0].replace(v,""))*(-1===t.indexof("rad")?1:i)-("="===t.charat(1)?0:e),n.length&&(s&&(s[i]=e+a),-1!==t.indexof("short")&&(a%=r,a!==a%(r/2)&&(a=0>a?a+r:a-r)),-1!==t.indexof("_cw")&&0>a?a=(a+9999999999*r)%r-(0|a/r)*r:-1!==t.indexof("ccw")&&a>0&&(a=(a-9999999999*r)%r-(0|a/r)*r)),o=e+a),h>o&&o>-h&&(o=0),o},ne={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]},ae=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},oe=function(t){var e,i,s,r,n,a;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charat(t.length-1)&&(t=t.substr(0,t.length-1)),ne[t]?ne[t]:"#"===t.charat(0)?(4===t.length&&(e=t.charat(1),i=t.charat(2),s=t.charat(3),t="#"+e+e+i+i+s+s),t=parseint(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(m),r=number(t[0])%360/360,n=number(t[1])/100,a=number(t[2])/100,i=.5>=a?a*(n+1):a+n-a*n,e=2*a-i,t.length>3&&(t[3]=number(t[3])),t[0]=ae(r+1/3,e,i),t[1]=ae(r,e,i),t[2]=ae(r-1/3,e,i),t):(t=t.match(m)||ne.transparent,t[0]=number(t[0]),t[1]=number(t[1]),t[2]=number(t[2]),t.length>3&&(t[3]=number(t[3])),t)):ne.black},he="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\b#.+?\\b";for(h in ne)he+="|"+h+"\\b";he=regexp(he+")","gi");var le=function(t,e,i,s){if(null==t)return function(t){return t};var r,n=e?(t.match(he)||[""])[0]:"",a=t.split(n).join("").match(g)||[],o=t.substr(0,t.indexof(a[0])),h=")"===t.charat(t.length-1)?")":"",l=-1!==t.indexof(" ")?" ":",",_=a.length,u=_>0?a[0].replace(m,""):"";return _?r=e?function(t){var e,p,c,f;if("number"==typeof t)t+=u;else if(s&&d.test(t)){for(f=t.replace(d,"|").split("|"),c=0;f.length>c;c++)f[c]=r(f[c]);return f.join(",")}if(e=(t.match(he)||[n])[0],p=t.split(e).join("").match(g)||[],c=p.length,_>c--)for(;_>++c;)p[c]=i?p[0|(c-1)/2]:a[c];return o+p.join(l)+l+e+h+(-1!==t.indexof("inset")?" inset":"")}:function(t){var e,n,p;if("number"==typeof t)t+=u;else if(s&&d.test(t)){for(n=t.replace(d,"|").split("|"),p=0;n.length>p;p++)n[p]=r(n[p]);return n.join(",")}if(e=t.match(g)||[],p=e.length,_>p--)for(;_>++p;)e[p]=i?e[0|(p-1)/2]:a[p];return o+e.join(l)+h}:function(t){return t}},_e=function(t){return t=t.split(","),function(e,i,s,r,n,a,o){var h,l=(i+"").split(" ");for(o={},h=0;4>h;h++)o[t[h]]=l[h]=l[h]||l[(h-1)/2>>0];return r.parse(e,o,n,a)}},ue=(x._setpluginratio=function(t){this.plugin.setratio(t);for(var e,i,s,r,n=this.data,a=n.proxy,o=n.firstmpt,h=1e-6;o;)e=a[o.v],o.r?e=math.round(e):h>e&&e>-h&&(e=0),o.t[o.p]=e,o=o._next;if(n.autorotate&&(n.autorotate.rotation=a.rotation),1===t)for(o=n.firstmpt;o;){if(i=o.t,i.type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,s=1;i.l>s;s++)r+=i["xn"+s]+i["xs"+(s+1)];i.e=r}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,s,r){this.t=t,this.p=e,this.v=i,this.r=r,s&&(s._prev=this,this._next=s)}),pe=(x._parsetoproxy=function(t,e,i,s,r,n){var a,o,h,l,_,u=s,p={},c={},f=i._transform,m=e;for(i._transform=null,e=e,s=_=i.parse(t,e,s,r),e=m,n&&(i._transform=f,u&&(u._prev=null,u._prev&&(u._prev._next=null)));s&&s!==u;){if(1>=s.type&&(o=s.p,c[o]=s.s+s.c,p[o]=s.s,n||(l=new ue(s,"s",o,l,s.r),s.c=0),1===s.type))for(a=s.l;--a>0;)h="xn"+a,o=s.p+"_"+h,c[o]=s.data[h],p[o]=s[h],n||(l=new ue(s,h,o,l,s.rxp[h]));s=s._next}return{proxy:p,end:c,firstmpt:l,pt:_}},x.cssproptween=function(t,e,s,r,a,o,h,l,_,u,p){this.t=t,this.p=e,this.s=s,this.c=r,this.n=h||e,t instanceof pe||n.push(this.n),this.r=l,this.type=o||0,_&&(this.pr=_,i=!0),this.b=void 0===u?s:u,this.e=void 0===p?s+r:p,a&&(this._next=a,a._prev=this)}),ce=a.parsecomplex=function(t,e,i,s,r,n,a,o,h,_){i=i||n||"",a=new pe(t,e,0,0,a,_?2:1,null,!1,o,i,s),s+="";var u,p,c,f,g,v,y,t,w,x,p,s,k=i.split(", ").join(",").split(" "),r=s.split(", ").join(",").split(" "),a=k.length,c=l!==!1;for((-1!==s.indexof(",")||-1!==i.indexof(","))&&(k=k.join(" ").replace(d,", ").split(" "),r=r.join(" ").replace(d,", ").split(" "),a=k.length),a!==r.length&&(k=(n||"").split(" "),a=k.length),a.plugin=h,a.setratio=_,u=0;a>u;u++)if(f=k[u],g=r[u],t=parsefloat(f),t||0===t)a.appendxtra("",t,ie(g,t),g.replace(d,""),c&&-1!==g.indexof("px"),!0);else if(r&&("#"===f.charat(0)||ne[f]||b.test(f)))s=","===g.charat(g.length-1)?"),":")",f=oe(f),g=oe(g),w=f.length+g.length>6,w&&!u&&0===g[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(r[u]).join("transparent")):(u||(w=!1),a.appendxtra(w?"rgba(":"rgb(",f[0],g[0]-f[0],",",!0,!0).appendxtra("",f[1],g[1]-f[1],",",!0).appendxtra("",f[2],g[2]-f[2],w?",":s,!0),w&&(f=4>f.length?1:f[3],a.appendxtra("",f,(4>g.length?1:g[3])-f,s,!1)));else if(v=f.match(m)){if(y=g.match(d),!y||y.length!==v.length)return a;for(c=0,p=0;v.length>p;p++)p=v[p],x=f.indexof(p,c),a.appendxtra(f.substr(c,x-c),number(p),ie(y[p],p),"",c&&"px"===f.substr(x+p.length,2),0===p),c=x+p.length;a["xs"+a.l]+=f.substr(c)}else a["xs"+a.l]+=a.l?" "+f:f;if(-1!==s.indexof("=")&&a.data){for(s=a.xs0+a.data.s,u=1;a.l>u;u++)s+=a["xs"+u]+a.data["xn"+u];a.e=s+a["xs"+u]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},fe=9;for(h=pe.prototype,h.l=h.pr=0;--fe>0;)h["xn"+fe]=0,h["xs"+fe]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setratio=h.rxp=null,h.appendxtra=function(t,e,i,s,r,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setratio?2:1,a["xs"+a.l]=s||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=r,a["xn"+o]=e,a.plugin||(a.xfirst=new pe(a,"xn"+o,e,i,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=r,a)):(a["xs"+o]+=e+(s||""),a)};var me=function(t,e){e=e||{},this.p=e.prefix?v(t)||t:t,o[t]=o[this.p]=this,this.format=e.formatter||le(e.defaultvalue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultvalue,this.pr=e.priority||0},de=x._registercomplexspecialprop=function(t,e,i){"object"!=typeof e&&(e={parser:i});var s,r,n=t.split(","),a=e.defaultvalue;for(i=i||[a],s=0;n.length>s;s++)e.prefix=0===s&&e.prefix,e.defaultvalue=i[s]||a,r=new me(n[s],e)},ge=function(t){if(!o[t]){var e=t.charat(0).touppercase()+t.substr(1)+"plugin";de(t,{parser:function(t,i,s,r,n,a,h){var l=(window.greensockglobals||window).com.greensock.plugins[e];return l?(l._cssregister(),o[s].parse(t,i,s,r,n,a,h)):(j("error: "+e+" js file not loaded."),n)}})}};h=me.prototype,h.parsecomplex=function(t,e,i,s,r,n){var a,o,h,l,_,u,p=this.keyword;if(this.multi&&(d.test(i)||d.test(e)?(o=e.replace(d,"|").split("|"),h=i.replace(d,"|").split("|")):p&&(o=[e],h=[i])),h){for(l=h.length>o.length?h.length:o.length,a=0;l>a;a++)e=o[a]=o[a]||this.dflt,i=h[a]=h[a]||this.dflt,p&&(_=e.indexof(p),u=i.indexof(p),_!==u&&(i=-1===u?h:o,i[a]+=" "+p));e=o.join(", "),i=h.join(", ")}return ce(t,this.p,e,i,this.clrs,this.dflt,s,this.pr,r,n)},h.parse=function(t,e,i,s,n,a){return this.parsecomplex(t.style,this.format(g(t,this.p,r,!1,this.dflt)),this.format(e),n,a)},a.registerspecialprop=function(t,e,i){de(t,{parser:function(t,s,r,n,a,o){var h=new pe(t,r,0,0,a,2,r,!1,i);return h.plugin=o,h.setratio=e(t,s,n._tween,r),h},priority:i})};var ve="scalex,scaley,scalez,x,y,z,skewx,rotation,rotationx,rotationy,perspective".split(","),ye=v("transform"),te=b+"transform",we=v("transformorigin"),xe=null!==v("perspective"),be=x.transform=function(){this.skewy=0},pe=x.gettransform=function(t,e,i,s){if(t._gstransform&&i&&!s)return t._gstransform;var r,n,o,h,l,_,u,p,c,f,m,d,g,v=i?t._gstransform||new be:new be,y=0>v.scalex,t=2e-5,w=1e5,x=179.99,b=x*m,p=xe?parsefloat(g(t,we,e,!1,"0 0 0").split(" ")[2])||v.zorigin||0:0;for(ye?r=g(t,te,e,!0):t.currentstyle&&(r=t.currentstyle.filter.match(c),r=r&&4===r.length?[r[0].substr(4),number(r[2].substr(4)),number(r[1].substr(4)),r[3].substr(4),v.x||0,v.y||0].join(","):""),n=(r||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],o=n.length;--o>-1;)h=number(n[o]),n[o]=(l=h-(h|=0))?(0|l*w+(0>l?-.5:.5))/w+h:h;if(16===n.length){var s=n[8],k=n[9],r=n[10],a=n[12],o=n[13],d=n[14];if(v.zorigin&&(d=-v.zorigin,a=s*d-n[12],o=k*d-n[13],d=r*d+v.zorigin-n[14]),!i||s||null==v.rotationx){var e,n,f,l,x,z,u,y=n[0],j=n[1],b=n[2],q=n[3],v=n[4],w=n[5],$=n[6],z=n[7],q=n[11],h=math.atan2($,r),k=-b>h||h>b;v.rotationx=h*i,h&&(l=math.cos(-h),x=math.sin(-h),e=v*l+s*x,n=w*l+k*x,f=$*l+r*x,s=v*-x+s*l,k=w*-x+k*l,r=$*-x+r*l,q=z*-x+q*l,v=e,w=n,$=f),h=math.atan2(s,y),v.rotationy=h*i,h&&(z=-b>h||h>b,l=math.cos(-h),x=math.sin(-h),e=y*l-s*x,n=j*l-k*x,f=b*l-r*x,k=j*x+k*l,r=b*x+r*l,q=q*x+q*l,y=e,j=n,b=f),h=math.atan2(j,w),v.rotation=h*i,h&&(u=-b>h||h>b,l=math.cos(-h),x=math.sin(-h),y=y*l+v*x,n=j*l+w*x,w=j*-x+w*l,$=b*-x+$*l,j=n),u&&k?v.rotation=v.rotationx=0:u&&z?v.rotation=v.rotationy=0:z&&k&&(v.rotationy=v.rotationx=0),v.scalex=(0|math.sqrt(y*y+j*j)*w+.5)/w,v.scaley=(0|math.sqrt(w*w+k*k)*w+.5)/w,v.scalez=(0|math.sqrt($*$+r*r)*w+.5)/w,v.skewx=0,v.perspective=q?1/(0>q?-q:q):0,v.x=a,v.y=o,v.z=d}}else if(!(xe&&!s&&n.length&&v.x===n[4]&&v.y===n[5]&&(v.rotationx||v.rotationy)||void 0!==v.x&&"none"===g(t,"display",e))){var j=n.length>=6,te=j?n[0]:1,ee=n[1]||0,ie=n[2]||0,se=j?n[3]:1;v.x=n[4]||0,v.y=n[5]||0,_=math.sqrt(te*te+ee*ee),u=math.sqrt(se*se+ie*ie),p=te||ee?math.atan2(ee,te)*i:v.rotation||0,c=ie||se?math.atan2(ie,se)*i+p:v.skewx||0,f=_-math.abs(v.scalex||0),m=u-math.abs(v.scaley||0),math.abs(c)>90&&270>math.abs(c)&&(y?(_*=-1,c+=0>=p?180:-180,p+=0>=p?180:-180):(u*=-1,c+=0>=c?180:-180)),d=(p-v.rotation)%180,g=(c-v.skewx)%180,(void 0===v.skewx||f>t||-t>f||m>t||-t>m||d>-x&&x>d&&false|d*w||g>-x&&x>g&&false|g*w)&&(v.scalex=_,v.scaley=u,v.rotation=p,v.skewx=c),xe&&(v.rotationx=v.rotationy=v.z=0,v.perspective=parsefloat(a.defaulttransformperspective)||0,v.scalez=1)}v.zorigin=p;for(o in v)t>v[o]&&v[o]>-t&&(v[o]=0);return i&&(t._gstransform=v),v},se=function(t){var e,i,s=this.data,r=-s.rotation*m,n=r+s.skewx*m,a=1e5,o=(0|math.cos(r)*s.scalex*a)/a,h=(0|math.sin(r)*s.scalex*a)/a,l=(0|math.sin(n)*-s.scaley*a)/a,_=(0|math.cos(n)*s.scaley*a)/a,u=this.t.style,p=this.t.currentstyle;if(p){i=h,h=-l,l=-i,e=p.filter,u.filter="";var c,m,d=this.t.offsetwidth,g=this.t.offsetheight,v="absolute"!==p.position,w="progid:dximagetransform.microsoft.matrix(m11="+o+", m12="+h+", m21="+l+", m22="+_,x=s.x,b=s.y;if(null!=s.ox&&(c=(s.oxp?.01*d*s.ox:s.ox)-d/2,m=(s.oyp?.01*g*s.oy:s.oy)-g/2,x+=c-(c*o+m*h),b+=m-(c*l+m*_)),v?(c=d/2,m=g/2,w+=", dx="+(c-(c*o+m*h)+x)+", dy="+(m-(c*l+m*_)+b)+")"):w+=", sizingmethod='auto expand')",u.filter=-1!==e.indexof("dximagetransform.microsoft.matrix(")?e.replace(o,w):w+" "+e,(0===t||1===t)&&1===o&&0===h&&0===l&&1===_&&(v&&-1===w.indexof("dx=0, dy=0")||t.test(e)&&100!==parsefloat(regexp.$1)||-1===e.indexof("gradient("&&e.indexof("alpha"))&&u.removeattribute("filter")),!v){var p,s,k,r=8>f?1:-1;for(c=s.ieoffsetx||0,m=s.ieoffsety||0,s.ieoffsetx=math.round((d-((0>o?-o:o)*d+(0>h?-h:h)*g))/2+x),s.ieoffsety=math.round((g-((0>_?-_:_)*g+(0>l?-l:l)*d))/2+b),fe=0;4>fe;fe++)s=j[fe],p=p[s],i=-1!==p.indexof("px")?parsefloat(p):$(this.t,s,parsefloat(p),p.replace(y,""))||0,k=i!==s[s]?2>fe?-s.ieoffsetx:-s.ieoffsety:2>fe?c-s.ieoffsetx:m-s.ieoffsety,u[s]=(s[s]=math.round(i-k*(0===fe||2===fe?1:r)))+"px"}}},ke=x.set3dtransformratio=function(){var t,e,i,s,r,n,a,o,h,l,_,u,c,f,m,d,g,v,y,t,w,x,b,p=this.data,s=this.t.style,k=p.rotation*m,r=p.scalex,a=p.scaley,c=p.scalez,o=p.perspective;if(p){var d=1e-4;d>r&&r>-d&&(r=c=2e-5),d>a&&a>-d&&(a=c=2e-5),!o||p.z||p.rotationx||p.rotationy||(o=0)}if(k||p.skewx)v=math.cos(k),y=math.sin(k),t=v,r=y,p.skewx&&(k-=p.skewx*m,v=math.cos(k),y=math.sin(k),"simple"===p.skewtype&&(t=math.tan(p.skewx*m),t=math.sqrt(1+t*t),v*=t,y*=t)),e=-y,n=v;else{if(!(p.rotationy||p.rotationx||1!==c||o))return s[ye]="translate3d("+p.x+"px,"+p.y+"px,"+p.z+"px)"+(1!==r||1!==a?" scale("+r+","+a+")":""),void 0;t=n=1,e=r=0}_=1,i=s=a=o=h=l=u=c=f=0,m=o?-1/o:0,d=p.zorigin,g=1e5,k=p.rotationy*m,k&&(v=math.cos(k),y=math.sin(k),h=_*-y,c=m*-y,i=t*y,a=r*y,_*=v,m*=v,t*=v,r*=v),k=p.rotationx*m,k&&(v=math.cos(k),y=math.sin(k),t=e*v+i*y,w=n*v+a*y,x=l*v+_*y,b=f*v+m*y,i=e*-y+i*v,a=n*-y+a*v,_=l*-y+_*v,m=f*-y+m*v,e=t,n=w,l=x,f=b),1!==c&&(i*=c,a*=c,_*=c,m*=c),1!==a&&(e*=a,n*=a,l*=a,f*=a),1!==r&&(t*=r,r*=r,h*=r,c*=r),d&&(u-=d,s=i*u,o=a*u,u=_*u+d),s=(t=(s+=p.x)-(s|=0))?(0|t*g+(0>t?-.5:.5))/g+s:s,o=(t=(o+=p.y)-(o|=0))?(0|t*g+(0>t?-.5:.5))/g+o:o,u=(t=(u+=p.z)-(u|=0))?(0|t*g+(0>t?-.5:.5))/g+u:u,s[ye]="matrix3d("+[(0|t*g)/g,(0|r*g)/g,(0|h*g)/g,(0|c*g)/g,(0|e*g)/g,(0|n*g)/g,(0|l*g)/g,(0|f*g)/g,(0|i*g)/g,(0|a*g)/g,(0|_*g)/g,(0|m*g)/g,s,o,u,o?1+-u/o:1].join(",")+")"},re=x.set2dtransformratio=function(t){var e,i,s,r,n,a=this.data,o=this.t,h=o.style;return a.rotationx||a.rotationy||a.z||a.force3d?(this.setratio=ke,ke.call(this,t),void 0):(a.rotation||a.skewx?(e=a.rotation*m,i=e-a.skewx*m,s=1e5,r=a.scalex*s,n=a.scaley*s,h[ye]="matrix("+(0|math.cos(e)*r)/s+","+(0|math.sin(e)*r)/s+","+(0|math.sin(i)*-n)/s+","+(0|math.cos(i)*n)/s+","+a.x+","+a.y+")"):h[ye]="matrix("+a.scalex+",0,0,"+a.scaley+","+a.x+","+a.y+")",void 0)};de("transform,scale,scalex,scaley,scalez,x,y,z,rotation,rotationx,rotationy,rotationz,skewx,skewy,shortrotation,shortrotationx,shortrotationy,shortrotationz,transformorigin,transformperspective,directionalrotation,parsetransform,force3d,skewtype",{parser:function(t,e,i,s,n,o,h){if(s._transform)return n;var l,_,u,p,c,f,m,d=s._transform=pe(t,r,!0,h.parsetransform),g=t.style,v=1e-6,y=ve.length,t=h,w={};if("string"==typeof t.transform&&ye)u=g.csstext,g[ye]=t.transform,g.display="block",l=pe(t,null,!1),g.csstext=u;else if("object"==typeof t){if(l={scalex:se(null!=t.scalex?t.scalex:t.scale,d.scalex),scaley:se(null!=t.scaley?t.scaley:t.scale,d.scaley),scalez:se(t.scalez,d.scalez),x:se(t.x,d.x),y:se(t.y,d.y),z:se(t.z,d.z),perspective:se(t.transformperspective,d.perspective)},m=t.directionalrotation,null!=m)if("object"==typeof m)for(u in m)t[u]=m[u];else t.rotation=m;l.rotation=re("rotation"in t?t.rotation:"shortrotation"in t?t.shortrotation+"_short":"rotationz"in t?t.rotationz:d.rotation,d.rotation,"rotation",w),xe&&(l.rotationx=re("rotationx"in t?t.rotationx:"shortrotationx"in t?t.shortrotationx+"_short":d.rotationx||0,d.rotationx,"rotationx",w),l.rotationy=re("rotationy"in t?t.rotationy:"shortrotationy"in t?t.shortrotationy+"_short":d.rotationy||0,d.rotationy,"rotationy",w)),l.skewx=null==t.skewx?d.skewx:re(t.skewx,d.skewx),l.skewy=null==t.skewy?d.skewy:re(t.skewy,d.skewy),(_=l.skewy-d.skewy)&&(l.skewx+=_,l.rotation+=_)}for(xe&&null!=t.force3d&&(d.force3d=t.force3d,f=!0),d.skewtype=t.skewtype||d.skewtype||a.defaultskewtype,c=d.force3d||d.z||d.rotationx||d.rotationy||l.z||l.rotationx||l.rotationy||l.perspective,c||null==t.scale||(l.scalez=1);--y>-1;)i=ve[y],p=l[i]-d[i],(p>v||-v>p||null!=e[i])&&(f=!0,n=new pe(d,i,d[i],p,n),i in w&&(n.e=w[i]),n.xs0=0,n.plugin=o,s._overwriteprops.push(n.n));return p=t.transformorigin,(p||xe&&c&&d.zorigin)&&(ye?(f=!0,i=we,p=(p||g(t,i,r,!1,"50% 50%"))+"",n=new pe(g,i,0,0,n,-1,"transformorigin"),n.b=g[i],n.plugin=o,xe?(u=d.zorigin,p=p.split(" "),d.zorigin=(p.length>2&&(0===u||"0px"!==p[2])?parsefloat(p[2]):u)||0,n.xs0=n.e=g[i]=p[0]+" "+(p[1]||"50%")+" 0px",n=new pe(d,"zorigin",0,0,n,-1,n.n),n.b=u,n.xs0=n.e=d.zorigin):n.xs0=n.e=g[i]=p):ee(p+"",d)),f&&(s._transformtype=c||3===this._transformtype?3:2),n},prefix:!0}),de("boxshadow",{defaultvalue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),de("borderradius",{defaultvalue:"0px",parser:function(t,e,i,n,a){e=this.format(e);var o,h,l,_,u,p,c,f,m,d,g,v,y,t,w,x,b=["bordertopleftradius","bordertoprightradius","borderbottomrightradius","borderbottomleftradius"],p=t.style;for(m=parsefloat(t.offsetwidth),d=parsefloat(t.offsetheight),o=e.split(" "),h=0;b.length>h;h++)this.p.indexof("border")&&(b[h]=v(b[h])),u=_=g(t,b[h],r,!1,"0px"),-1!==u.indexof(" ")&&(_=u.split(" "),u=_[0],_=_[1]),p=l=o[h],c=parsefloat(u),v=u.substr((c+"").length),y="="===p.charat(1),y?(f=parseint(p.charat(0)+"1",10),p=p.substr(2),f*=parsefloat(p),g=p.substr((f+"").length-(0>f?1:0))||""):(f=parsefloat(p),g=p.substr((f+"").length)),""===g&&(g=s[i]||v),g!==v&&(t=$(t,"borderleft",c,v),w=$(t,"bordertop",c,v),"%"===g?(u=100*(t/m)+"%",_=100*(w/d)+"%"):"em"===g?(x=$(t,"borderleft",1,"em"),u=t/x+"em",_=w/x+"em"):(u=t+"px",_=w+"px"),y&&(p=parsefloat(u)+f+g,l=parsefloat(_)+f+g)),a=ce(p,b[h],u+" "+_,p+" "+l,!1,"0px",a);return a},prefix:!0,formatter:le("0px 0px 0px 0px",!1,!0)}),de("backgroundposition",{defaultvalue:"0 0",parser:function(t,e,i,s,n,a){var o,h,l,_,u,p,c="background-position",m=r||w(t,null),d=this.format((m?f?m.getpropertyvalue(c+"-x")+" "+m.getpropertyvalue(c+"-y"):m.getpropertyvalue(c):t.currentstyle.backgroundpositionx+" "+t.currentstyle.backgroundpositiony)||"0 0"),g=this.format(e);if(-1!==d.indexof("%")!=(-1!==g.indexof("%"))&&(p=g(t,"backgroundimage").replace(k,""),p&&"none"!==p)){for(o=d.split(" "),h=g.split(" "),l.setattribute("src",p),l=2;--l>-1;)d=o[l],_=-1!==d.indexof("%"),_!==(-1!==h[l].indexof("%"))&&(u=0===l?t.offsetwidth-l.width:t.offsetheight-l.height,o[l]=_?parsefloat(d)/100*u+"px":100*(parsefloat(d)/u)+"%");d=o.join(" ")}return this.parsecomplex(t.style,d,g,n,a)},formatter:ee}),de("backgroundsize",{defaultvalue:"0 0",formatter:ee}),de("perspective",{defaultvalue:"0px",prefix:!0}),de("perspectiveorigin",{defaultvalue:"50% 50%",prefix:!0}),de("transformstyle",{prefix:!0}),de("backfacevisibility",{prefix:!0}),de("userselect",{prefix:!0}),de("margin",{parser:_e("margintop,marginright,marginbottom,marginleft")}),de("padding",{parser:_e("paddingtop,paddingright,paddingbottom,paddingleft")}),de("clip",{defaultvalue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,s,n,a){var o,h,l;return 9>f?(h=t.currentstyle,l=8>f?" ":",",o="rect("+h.cliptop+l+h.clipright+l+h.clipbottom+l+h.clipleft+")",e=this.format(e).split(",").join(l)):(o=this.format(g(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parsecomplex(t.style,o,e,n,a)}}),de("textshadow",{defaultvalue:"0px 0px 0px #999",color:!0,multi:!0}),de("autoround,strictunits",{parser:function(t,e,i,s,r){return r}}),de("border",{defaultvalue:"0px solid #000",parser:function(t,e,i,s,n,a){return this.parsecomplex(t.style,this.format(g(t,"bordertopwidth",r,!1,"0px")+" "+g(t,"bordertopstyle",r,!1,"solid")+" "+g(t,"bordertopcolor",r,!1,"#000")),this.format(e),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(he)||["#000"])[0]}}),de("borderwidth",{parser:_e("bordertopwidth,borderrightwidth,borderbottomwidth,borderleftwidth")}),de("float,cssfloat,stylefloat",{parser:function(t,e,i,s,r){var n=t.style,a="cssfloat"in n?"cssfloat":"stylefloat";return new pe(n,a,0,0,r,-1,i,!1,0,n[a],e)}});var ae=function(t){var e,i=this.t,s=i.filter||g(this.data,"filter"),r=0|this.s+this.c*t;100===r&&(-1===s.indexof("atrix(")&&-1===s.indexof("radient(")&&-1===s.indexof("oader(")?(i.removeattribute("filter"),e=!g(this.data,"filter")):(i.filter=s.replace(x,""),e=!0)),e||(this.xn1&&(i.filter=s=s||"alpha(opacity="+r+")"),-1===s.indexof("opacity")?0===r&&this.xn1||(i.filter=s+" alpha(opacity="+r+")"):i.filter=s.replace(t,"opacity="+r))};de("opacity,alpha,autoalpha",{defaultvalue:"1",parser:function(t,e,i,s,n,a){var o=parsefloat(g(t,"opacity",r,!1,"1")),h=t.style,l="autoalpha"===i;return"string"==typeof e&&"="===e.charat(1)&&(e=("-"===e.charat(0)?-1:1)*parsefloat(e.substr(2))+o),l&&1===o&&"hidden"===g(t,"visibility",r)&&0!==e&&(o=0),u?n=new pe(h,"opacity",o,e-o,n):(n=new pe(h,"opacity",100*o,100*(e-o),n),n.xn1=l?1:0,h.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setratio=ae),l&&(n=new pe(h,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",s._overwriteprops.push(n.n),s._overwriteprops.push(i)),n}});var ce=function(t,e){e&&(t.removeproperty?("ms"===e.substr(0,2)&&(e="m"+e.substr(1)),t.removeproperty(e.replace(p,"-$1").tolowercase())):t.removeattribute(e))},oe=function(t){if(this.t._gsclasspt=this,1===t||0===t){this.t.classname=0===t?this.b:this.e;for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ce(i,e.p),e=e._next;1===t&&this.t._gsclasspt===this&&(this.t._gsclasspt=null)}else this.t.classname!==this.e&&(this.t.classname=this.e)};de("classname",{parser:function(t,e,s,n,a,o,h){var l,_,u,p,c,f=t.classname,m=t.style.csstext;if(a=n._classnamept=new pe(t,s,0,0,a,2),a.setratio=oe,a.pr=-11,i=!0,a.b=f,_=q(t,r),u=t._gsclasspt){for(p={},c=u.data;c;)p[c.p]=1,c=c._next;u.setratio(1)}return t._gsclasspt=a,a.e="="!==e.charat(1)?e:f.replace(regexp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charat(0)?" "+e.substr(2):""),n._tween._duration&&(t.classname=a.e,l=h(t,_,q(t),h,p),t.classname=f,a.data=l.firstmpt,t.style.csstext=m,a=a.xfirst=n.parse(t,l.difs,a,o)),a}});var de=function(t){if((1===t||0===t)&&this.data._totaltime===this.data._totalduration&&"isfromstart"!==this.data.data){var e,i,s,r,n=this.t.style,a=o.transform.parse;if("all"===this.e)n.csstext="",r=!0;else for(e=this.e.split(","),s=e.length;--s>-1;)i=e[s],o[i]&&(o[i].parse===a?r=!0:i="transformorigin"===i?we:o[i].p),ce(n,i);r&&(ce(n,ye),this.t._gstransform&&delete this.t._gstransform)}};for(de("clearprops",{parser:function(t,e,s,r,n){return n=new pe(t,s,0,0,n,2),n.setratio=de,n.e=e,n.pr=-10,n.data=r._tween,i=!0,n}}),h="bezier,throwprops,physicsprops,physics2d".split(","),fe=h.length;fe--;)ge(h[fe]);h=a.prototype,h._firstpt=null,h._oninittween=function(t,e,o){if(!t.nodetype)return!1;this._target=t,this._tween=o,this._vars=e,l=e.autoround,i=!1,s=e.suffixmap||a.suffixmap,r=w(t,""),n=this._overwriteprops;var h,p,f,m,d,g,v,y,t,x=t.style;if(_&&""===x.zindex&&(h=g(t,"zindex",r),("auto"===h||""===h)&&(x.zindex=0)),"string"==typeof e&&(m=x.csstext,h=q(t,r),x.csstext=m+";"+e,h=h(t,h,q(t)).difs,!u&&w.test(e)&&(h.opacity=parsefloat(regexp.$1)),e=h,x.csstext=m),this._firstpt=p=this.parse(t,e,null),this._transformtype){for(t=3===this._transformtype,ye?u&&(_=!0,""===x.zindex&&(v=g(t,"zindex",r),("auto"===v||""===v)&&(x.zindex=0)),c&&(x.webkitbackfacevisibility=this._vars.webkitbackfacevisibility||(t?"visible":"hidden"))):x.zoom=1,f=p;f&&f._next;)f=f._next;y=new pe(t,"transform",0,0,null,2),this._linkcssp(y,null,f),y.setratio=t&&xe?ke:ye?re:se,y.data=this._transform||pe(t,r,!0),n.pop()}if(i){for(;p;){for(g=p._next,f=m;f&&f.pr>p.pr;)f=f._next;(p._prev=f?f._prev:d)?p._prev._next=p:m=p,(p._next=f)?f._prev=p:d=p,p=g}this._firstpt=m}return!0},h.parse=function(t,e,i,n){var a,h,_,u,p,c,f,m,d,g,v=t.style;for(a in e)c=e[a],h=o[a],h?i=h.parse(t,c,a,this,i,n,e):(p=g(t,a,r)+"",d="string"==typeof c,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexof("color")||d&&b.test(c)?(d||(c=oe(c),c=(c.length>3?"rgba(":"rgb(")+c.join(",")+")"),i=ce(v,a,p,c,!0,"transparent",i,0,n)):!d||-1===c.indexof(" ")&&-1===c.indexof(",")?(_=parsefloat(p),f=_||0===_?p.substr((_+"").length):"",(""===p||"auto"===p)&&("width"===a||"height"===a?(_=te(t,a,r),f="px"):"left"===a||"top"===a?(_=z(t,a,r),f="px"):(_="opacity"!==a?0:1,f="")),g=d&&"="===c.charat(1),g?(u=parseint(c.charat(0)+"1",10),c=c.substr(2),u*=parsefloat(c),m=c.replace(y,"")):(u=parsefloat(c),m=d?c.substr((u+"").length)||"":""),""===m&&(m=a in s?s[a]:f),c=u||0===u?(g?u+_:u)+m:e[a],f!==m&&""!==m&&(u||0===u)&&_&&(_=$(t,a,_,f),"%"===m?(_/=$(t,a,100,"%")/100,e.strictunits!==!0&&(p=_+"%")):"em"===m?_/=$(t,a,1,"em"):"px"!==m&&(u=$(t,a,u,m),m="px"),g&&(u||0===u)&&(c=u+_+m)),g&&(u+=_),!_&&0!==_||!u&&0!==u?void 0!==v[a]&&(c||"nan"!=c+""&&null!=c)?(i=new pe(v,a,u||_||0,0,i,-1,a,!1,0,p,c),i.xs0="none"!==c||"display"!==a&&-1===a.indexof("style")?c:p):j("invalid "+a+" tween value: "+e[a]):(i=new pe(v,a,_,u-_,i,0,a,l!==!1&&("px"===m||"zindex"===a),0,p,c),i.xs0=m)):i=ce(v,a,p,c,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n);return i},h.setratio=function(t){var e,i,s,r=this._firstpt,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawprevtime===-1e-6)for(;r;){if(e=r.c*t+r.s,r.r?e=math.round(e):n>e&&e>-n&&(e=0),r.type)if(1===r.type)if(s=r.l,2===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,s=1;r.l>s;s++)i+=r["xn"+s]+r["xs"+(s+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setratio&&r.setratio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setratio(t),r=r._next;else for(;r;)2!==r.type?r.t[r.p]=r.e:r.setratio(t),r=r._next},h._enabletransforms=function(t){this._transformtype=t||3===this._transformtype?3:2,this._transform=this._transform||pe(this._target,r,!0)},h._linkcssp=function(t,e,i,s){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstpt===t&&(this._firstpt=t._next,s=!0),i?i._next=t:s||null!==this._firstpt||(this._firstpt=t),t._next=e,t._prev=i),t},h._kill=function(e){var i,s,r,n=e;if(e.autoalpha||e.alpha){n={};for(s in e)n[s]=e[s];n.opacity=1,n.autoalpha&&(n.visibility=1)}return e.classname&&(i=this._classnamept)&&(r=i.xfirst,r&&r._prev?this._linkcssp(r._prev,i._next,r._prev._prev):r===this._firstpt&&(this._firstpt=i._next),i._next&&this._linkcssp(i._next,i._next._next,r._prev),this._classnamept=null),t.prototype._kill.call(this,n)};var me=function(t,e,i){var s,r,n,a;if(t.slice)for(r=t.length;--r>-1;)me(t[r],e,i);else for(s=t.childnodes,r=s.length;--r>-1;)n=s[r],a=n.type,n.style&&(e.push(q(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childnodes.length||me(n,e,i) };return a.cascadeto=function(t,i,s){var r,n,a,o=e.to(t,i,s),h=[o],l=[],_=[],u=[],p=e._internals.reservedprops;for(t=o._targets||o.target,me(t,l,u),o.render(i,!0),me(t,_),o.render(0,!0),o._enabled(!0),r=u.length;--r>-1;)if(n=h(u[r],l[r],_[r]),n.firstmpt){n=n.difs;for(a in s)p[a]&&(n[a]=s[a]);h.push(e.to(u[r],i,n))}return h},t.activate([a]),a},!0),function(){var t=window._gsdefine.plugin({propname:"roundprops",priority:-1,api:2,init:function(t,e,i){return this._tween=i,!0}}),e=t.prototype;e._oninitallprops=function(){for(var t,e,i,s=this._tween,r=s.vars.roundprops instanceof array?s.vars.roundprops:s.vars.roundprops.split(","),n=r.length,a={},o=s._proplookup.roundprops;--n>-1;)a[r[n]]=1;for(n=r.length;--n>-1;)for(t=r[n],e=s._firstpt;e;)i=e._next,e.pg?e.t._roundprops(a,!0):e.n===t&&(this._add(e.t,t,e.s,e.c),i&&(i._prev=e._prev),e._prev?e._prev._next=i:s._firstpt===e&&(s._firstpt=i),e._next=e._prev=null,s._proplookup[t]=o),e=i;return!1},e._add=function(t,e,i,s){this._addtween(t,e,i,i+s,e,!0),this._overwriteprops.push(e)}}(),window._gsdefine.plugin({propname:"attr",api:2,version:"0.2.0",init:function(t,e){var i;if("function"!=typeof t.setattribute)return!1;this._target=t,this._proxy={};for(i in e)this._addtween(this._proxy,i,parsefloat(t.getattribute(i)),e[i],i)&&this._overwriteprops.push(i);return!0},set:function(t){this._super.setratio.call(this,t);for(var e,i=this._overwriteprops,s=i.length;--s>-1;)e=i[s],this._target.setattribute(e,this._proxy[e]+"")}}),window._gsdefine.plugin({propname:"directionalrotation",api:2,version:"0.2.0",init:function(t,e){"object"!=typeof e&&(e={rotation:e}),this.finals={};var i,s,r,n,a,o,h=e.useradians===!0?2*math.pi:360,l=1e-6;for(i in e)"useradians"!==i&&(o=(e[i]+"").split("_"),s=o[0],r=parsefloat("function"!=typeof t[i]?t[i]:t[i.indexof("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]()),n=this.finals[i]="string"==typeof s&&"="===s.charat(1)?r+parseint(s.charat(0)+"1",10)*number(s.substr(2)):number(s)||0,a=n-r,o.length&&(s=o.join("_"),-1!==s.indexof("short")&&(a%=h,a!==a%(h/2)&&(a=0>a?a+h:a-h)),-1!==s.indexof("_cw")&&0>a?a=(a+9999999999*h)%h-(0|a/h)*h:-1!==s.indexof("ccw")&&a>0&&(a=(a-9999999999*h)%h-(0|a/h)*h)),(a>l||-l>a)&&(this._addtween(t,i,r,r+a,i),this._overwriteprops.push(i)));return!0},set:function(t){var e;if(1!==t)this._super.setratio.call(this,t);else for(e=this._firstpt;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autocss=!0,window._gsdefine("easing.back",["easing.ease"],function(t){var e,i,s,r=window.greensockglobals||window,n=r.com.greensock,a=2*math.pi,o=math.pi/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeout:new e,easein:new i,easeinout:new s},!0);return _(r,t),r},p=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},c=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,r.config=function(t){return new s(t)},s},f=u("back",c("backout",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),c("backin",function(t){return t*t*((this._p1+1)*t-this._p1)}),c("backinout",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.slowmo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcend=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getratio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcend?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcend?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcend?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.steppedease",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getratio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.roughease",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),c=u,f=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--c>-1;)i=f?math.random():1/u*c,s=d?d.getratio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),f?s+=math.random()*r-.5*r:c%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new p(1,1,null),c=u;--c>-1;)a=l[c],o=new p(a.x,a.y,o);this._prev=new p(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getratio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("bounce",l("bounceout",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("bouncein",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("bounceinout",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("circ",l("circout",function(t){return math.sqrt(1-(t-=1)*t)}),l("circin",function(t){return-(math.sqrt(1-t*t)-1)}),l("circinout",function(t){return 1>(t*=2)?-.5*(math.sqrt(1-t*t)-1):.5*(math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t||1,this._p2=e||s,this._p3=this._p2/a*(math.asin(1/this._p1)||0)},!0),n=r.prototype=new t;return n.constructor=r,n.getratio=i,n.config=function(t,e){return new r(t,e)},r},u("elastic",s("elasticout",function(t){return this._p1*math.pow(2,-10*t)*math.sin((t-this._p3)*a/this._p2)+1},.3),s("elasticin",function(t){return-(this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*a/this._p2))},.3),s("elasticinout",function(t){return 1>(t*=2)?-.5*this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*a/this._p2):.5*this._p1*math.pow(2,-10*(t-=1))*math.sin((t-this._p3)*a/this._p2)+1},.45)),u("expo",l("expoout",function(t){return 1-math.pow(2,-10*t)}),l("expoin",function(t){return math.pow(2,10*(t-1))-.001}),l("expoinout",function(t){return 1>(t*=2)?.5*math.pow(2,10*(t-1)):.5*(2-math.pow(2,-10*(t-1)))})),u("sine",l("sineout",function(t){return math.sin(t*o)}),l("sinein",function(t){return-math.cos(t*o)+1}),l("sineinout",function(t){return-.5*(math.cos(math.pi*t)-1)})),h("easing.easelookup",{find:function(e){return t.map[e]}},!0),_(r.slowmo,"slowmo","ease,"),_(i,"roughease","ease,"),_(e,"steppedease","ease,"),f},!0)}),function(t){"use strict";var e=t.greensockglobals||t;if(!e.tweenlite){var i,s,r,n,a,o=function(t){var i,s=t.split("."),r=e;for(i=0;s.length>i;i++)r[s[i]]=r=r[s[i]]||{};return r},h=o("com.greensock"),l=1e-10,_=[].slice,u=function(){},p=function(){var t=object.prototype.tostring,e=t.call([]);return function(i){return null!=i&&(i instanceof array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),c={},f=function(i,s,r,n){this.sc=c[i]?c[i].sc:[],c[i]=this,this.gsclass=null,this.func=r;var a=[];this.check=function(h){for(var l,_,u,p,m=s.length,d=m;--m>-1;)(l=c[s[m]]||new f(s[m],[])).gsclass?(a[m]=l.gsclass,d--):h&&l.sc.push(this);if(0===d&&r)for(_=("com.greensock."+i).split("."),u=_.pop(),p=o(_.join("."))[u]=this.gsclass=r.apply(r,a),n&&(e[u]=p,"function"==typeof define&&define.amd?define((t.greensockamdpath?t.greensockamdpath+"/":"")+i.split(".").join("/"),[],function(){return p}):"undefined"!=typeof module&&module.exports&&(module.exports=p)),m=0;this.sc.length>m;m++)this.sc[m].check()},this.check(!0)},m=t._gsdefine=function(t,e,i,s){return new f(t,e,i,s)},d=h._class=function(t,e,i){return e=e||function(){},m(t,[],function(){return e},i),e};m.globals=e;var g=[0,0,1,1],v=[],y=d("easing.ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),t=y.map={},w=y.register=function(t,e,i,s){for(var r,n,a,o,l=e.split(","),_=l.length,u=(i||"easein,easeout,easeinout").split(",");--_>-1;)for(n=l[_],r=s?d("easing."+n,null,!0):h.easing[n]||{},a=u.length;--a>-1;)o=u[a],t[n+"."+o]=t[o+n]=r[o]=t.getratio?t:t[o]||new t};for(r=y.prototype,r._calcend=!1,r.getratio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},i=["linear","quad","cubic","quart","quint,strong"],s=i.length;--s>-1;)r=i[s]+",power"+s,w(new y(null,null,1,s),r,"easeout",!0),w(new y(null,null,2,s),r,"easein"+(0===s?",easenone":"")),w(new y(null,null,3,s),r,"easeinout");t.linear=h.easing.linear.easein,t.swing=h.easing.quad.easeinout;var x=d("events.eventdispatcher",function(t){this._listeners={},this._eventtarget=t||this});r=x.prototype,r.addeventlistener=function(t,e,i,s,r){r=r||0;var o,h,l=this._listeners[t],_=0;for(null==l&&(this._listeners[t]=l=[]),h=l.length;--h>-1;)o=l[h],o.c===e&&o.s===i?l.splice(h,1):0===_&&r>o.pr&&(_=h+1);l.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==n||a||n.wake()},r.removeeventlistener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},r.dispatchevent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventtarget;--e>-1;)s=r[e],s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i)};var b=t.requestanimationframe,p=t.cancelanimationframe,s=date.now||function(){return(new date).gettime()},k=s();for(i=["ms","moz","webkit","o"],s=i.length;--s>-1&&!b;)b=t[i[s]+"requestanimationframe"],p=t[i[s]+"cancelanimationframe"]||t[i[s]+"cancelrequestanimationframe"];d("ticker",function(t,e){var i,s,r,o,h,l=this,_=s(),p=e!==!1&&b,c=function(t){k=s(),l.time=(k-_)/1e3;var e,n=l.time-h;(!i||n>0||t===!0)&&(l.frame++,h+=n+(n>=o?.004:o-n),e=!0),t!==!0&&(r=s(c)),e&&l.dispatchevent("tick")};x.call(l),l.time=l.frame=0,l.tick=function(){c(!0)},l.sleep=function(){null!=r&&(p&&p?p(r):cleartimeout(r),s=u,r=null,l===n&&(a=!1))},l.wake=function(){null!==r&&l.sleep(),s=0===i?u:p&&b?b:function(t){return settimeout(t,0|1e3*(h-l.time)+1)},l===n&&(a=!0),c(2)},l.fps=function(t){return arguments.length?(i=t,o=1/(i||60),h=this.time+o,l.wake(),void 0):i},l.useraf=function(t){return arguments.length?(l.sleep(),p=t,l.fps(i),void 0):p},l.fps(t),settimeout(function(){p&&(!r||5>l.frame)&&l.useraf(!1)},1500)}),r=h.ticker.prototype=new h.events.eventdispatcher,r.constructor=h.ticker;var r=d("core.animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalduration=t||0,this._delay=number(e.delay)||0,this._timescale=1,this._active=e.immediaterender===!0,this.data=e.data,this._reversed=e.reversed===!0,u){a||n.wake();var i=this.vars.useframes?z:u;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});n=r.ticker=new h.ticker,r=r.prototype,r._dirty=r._gc=r._initted=r._paused=!1,r._totaltime=r._time=0,r._rawprevtime=-1,r._next=r._last=r._onupdate=r._timeline=r.timeline=null,r._paused=!1;var a=function(){a&&s()-k>2e3&&n.wake(),settimeout(a,2e3)};a(),r.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},r.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},r.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},r.seek=function(t,e){return this.totaltime(number(t),e!==!1)},r.restart=function(t,e){return this.reversed(!1).paused(!1).totaltime(t?-this._delay:0,e!==!1,!0)},r.reverse=function(t,e){return null!=t&&this.seek(t||this.totalduration(),e),this.reversed(!0).paused(!1)},r.render=function(){},r.invalidate=function(){return this},r.isactive=function(){var t,e=this._timeline,i=this._starttime;return!e||!this._gc&&!this._paused&&e.isactive()&&(t=e.rawtime())>=i&&i+this.totalduration()/this._timescale>t},r._enabled=function(t,e){return a||n.wake(),this._gc=!t,this._active=this.isactive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._starttime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},r._kill=function(){return this._enabled(!1,!1)},r.kill=function(t,e){return this._kill(t,e),this},r._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},r._swapselfinparams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},r.eventcallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"params"]=p(i)&&-1!==i.join("").indexof("{self}")?this._swapselfinparams(i):i,r[t+"scope"]=s),"onupdate"===t&&(this._onupdate=e)}return this},r.delay=function(t){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+t-this._delay),this._delay=t,this):this._delay},r.duration=function(t){return arguments.length?(this._duration=this._totalduration=t,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},r.totaltime=function(t,e,i){if(a||n.wake(),!arguments.length)return this._totaltime;if(this._timeline){if(0>t&&!i&&(t+=this.totalduration()),this._timeline.smoothchildtiming){this._dirty&&this.totalduration();var s=this._totalduration,r=this._timeline;if(t>s&&!i&&(t=s),this._starttime=(this._paused?this._pausetime:r._time)-(this._reversed?s-t:t)/this._timescale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._starttime+r._totaltime)/r._timescale&&r.totaltime(r._totaltime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==t||0===this._duration)&&this.render(t,e,!1)}return this},r.progress=r.totalprogress=function(t,e){return arguments.length?this.totaltime(this.duration()*t,e):this._time/this.duration()},r.starttime=function(t){return arguments.length?(t!==this._starttime&&(this._starttime=t,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,t-this._delay)),this):this._starttime},r.timescale=function(t){if(!arguments.length)return this._timescale;if(t=t||l,this._timeline&&this._timeline.smoothchildtiming){var e=this._pausetime,i=e||0===e?e:this._timeline.totaltime();this._starttime=i-(i-this._starttime)*this._timescale/t}return this._timescale=t,this._uncache(!1)},r.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totaltime(this._timeline&&!this._timeline.smoothchildtiming?this.totalduration()-this._totaltime:this._totaltime,!0)),this):this._reversed},r.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){a||t||n.wake();var e=this._timeline,i=e.rawtime(),s=i-this._pausetime;!t&&e.smoothchildtiming&&(this._starttime+=s,this._uncache(!1)),this._pausetime=t?i:null,this._paused=t,this._active=this.isactive(),!t&&0!==s&&this._initted&&this.duration()&&this.render(e.smoothchildtiming?this._totaltime:(i-this._starttime)/this._timescale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var c=d("core.simpletimeline",function(t){r.call(this,0,t),this.autoremovechildren=this.smoothchildtiming=!0});r=c.prototype=new r,r.constructor=c,r.kill()._gc=!1,r._first=r._last=null,r._sortchildren=!1,r.add=r.insert=function(t,e){var i,s;if(t._starttime=number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pausetime=t._starttime+(this.rawtime()-t._starttime)/t._timescale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortchildren)for(s=t._starttime;i&&i._starttime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._timeline&&this._uncache(!0),this},r._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t.timeline=null,t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),this._timeline&&this._uncache(!0)),this},r.render=function(t,e,i){var s,r=this._first;for(this._totaltime=this._time=this._rawprevtime=t;r;)s=r._next,(r._active||t>=r._starttime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalduration():r._totalduration)-(t-r._starttime)*r._timescale,e,i):r.render((t-r._starttime)*r._timescale,e,i)),r=s},r.rawtime=function(){return a||n.wake(),this._totaltime};var o=d("tweenlite",function(e,i,s){if(r.call(this,i,s),this.render=o.prototype.render,null==e)throw"cannot tween a null target.";this.target=e="string"!=typeof e?e:o.selector(e)||e;var r,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype),h=this.vars.overwrite;if(this._overwrite=h=null==h?x[o.defaultoverwrite]:"number"==typeof h?h>>0:x[h],(o||e instanceof array||e.push&&p(e))&&"number"!=typeof e[0])for(this._targets=a=_.call(e,0),this._proplookup=[],this._siblings=[],r=0;a.length>r;r++)n=a[r],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodetype&&n[0].style&&!n.nodetype)?(a.splice(r--,1),this._targets=a=a.concat(_.call(n,0))):(this._siblings[r]=y(n,this,!1),1===h&&this._siblings[r].length>1&&j(n,this,null,1,this._siblings[r])):(n=a[r--]=o.selector(n),"string"==typeof n&&a.splice(r+1,1)):a.splice(r--,1);else this._proplookup={},this._siblings=y(e,this,!1),1===h&&this._siblings.length>1&&j(e,this,null,1,this._siblings);(this.vars.immediaterender||0===i&&0===this._delay&&this.vars.immediaterender!==!1)&&this.render(-this._delay,!1,!0)},!0),d=function(e){return e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype)},m=function(t,e){var i,s={};for(i in t)l[i]||i in e&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"classname"!==i&&"border"!==i||!(!e[i]||e[i]&&e[i]._autocss)||(s[i]=t[i],delete t[i]);t.css=s};r=o.prototype=new r,r.constructor=o,r.kill()._gc=!1,r.ratio=0,r._firstpt=r._targets=r._overwrittenprops=r._startat=null,r._notifypluginsofenabled=!1,o.version="1.11.7",o.defaultease=r._ease=new y(null,null,1,1),o.defaultoverwrite="auto",o.ticker=n,o.autosleep=!0,o.selector=t.$||t.jquery||function(e){return t.$?(o.selector=t.$,t.$(e)):t.document?t.document.getelementbyid("#"===e.charat(0)?e.substr(1):e):e};var i=o._internals={isarray:p,isselector:d},e=o._plugins={},n=o._tweenlookup={},f=0,l=i.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},x={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},z=r._rootframestimeline=new c,u=r._roottimeline=new c;u._starttime=n.time,z._starttime=n.frame,u._active=z._active=!0,r._updateroot=function(){if(u.render((n.time-u._starttime)*u._timescale,!1,!1),z.render((n.frame-z._starttime)*z._timescale,!1,!1),!(n.frame%120)){var t,e,i;for(i in n){for(e=n[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete n[i]}if(i=u._first,(!i||i._paused)&&o.autosleep&&!z._first&&1===n._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||n.sleep()}}},n.addeventlistener("tick",r._updateroot);var y=function(t,e,i){var s,r,n=t._gstweenid;if(n[n||(t._gstweenid=n="t"+f++)]||(n[n]={target:t,tweens:[]}),e&&(s=n[n].tweens,s[r=s.length]=e,i))for(;--r>-1;)s[r]===e&&s.splice(r,1);return n[n].tweens},j=function(t,e,i,s,r){var n,a,o,h;if(1===s||s>=4){for(h=r.length,n=0;h>n;n++)if((o=r[n])!==e)o._gc||o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var _,u=e._starttime+l,p=[],c=0,f=0===e._duration;for(n=r.length;--n>-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(_=_||b(e,0,f),0===b(o,_,f)&&(p[c++]=o)):u>=o._starttime&&o._starttime+o.totalduration()/o._timescale>u&&((f||!o._initted)&&2e-10>=u-o._starttime||(p[c++]=o)));for(n=c;--n>-1;)o=p[n],2===s&&o._kill(i,t)&&(a=!0),(2!==s||!o._firstpt&&o._initted)&&o._enabled(!1,!1)&&(a=!0);return a},b=function(t,e,i){for(var s=t._timeline,r=s._timescale,n=t._starttime;s._timeline;){if(n+=s._starttime,r*=s._timescale,s._paused)return-100;s=s._timeline}return n/=r,n>e?n-e:i&&n===e||!t._initted&&2*l>n-e?l:(n+=t.totalduration()/t._timescale/r)>e+l?0:n-e-l};r._init=function(){var t,e,i,s,r=this.vars,n=this._overwrittenprops,a=this._duration,o=r.immediaterender,h=r.ease;if(r.startat){if(this._startat&&this._startat.render(-1,!0),r.startat.overwrite=0,r.startat.immediaterender=!0,this._startat=o.to(this.target,0,r.startat),o)if(this._time>0)this._startat=null;else if(0!==a)return}else if(r.runbackwards&&0!==a)if(this._startat)this._startat.render(-1,!0),this._startat=null;else{i={};for(s in r)l[s]&&"autocss"!==s||(i[s]=r[s]);if(i.overwrite=0,i.data="isfromstart",this._startat=o.to(this.target,0,i),r.immediaterender){if(0===this._time)return}else this._startat.render(-1,!0)}if(this._ease=h?h instanceof y?r.easeparams instanceof array?h.config.apply(h,r.easeparams):h:"function"==typeof h?new y(h,r.easeparams):t[h]||o.defaultease:o.defaultease,this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(t=this._targets.length;--t>-1;)this._initprops(this._targets[t],this._proplookup[t]={},this._siblings[t],n?n[t]:null)&&(e=!0);else e=this._initprops(this.target,this._proplookup,this._siblings,n);if(e&&o._onpluginevent("_oninitallprops",this),n&&(this._firstpt||"function"!=typeof this.target&&this._enabled(!1,!1)),r.runbackwards)for(i=this._firstpt;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onupdate=r.onupdate,this._initted=!0},r._initprops=function(e,i,s,r){var n,a,o,h,l,_;if(null==e)return!1;this.vars.css||e.style&&e!==t&&e.nodetype&&e.css&&this.vars.autocss!==!1&&m(this.vars,e);for(n in this.vars){if(_=this.vars[n],l[n])_&&(_ instanceof array||_.push&&p(_))&&-1!==_.join("").indexof("{self}")&&(this.vars[n]=_=this._swapselfinparams(_,this));else if(e[n]&&(h=new e[n])._oninittween(e,this.vars[n],this)){for(this._firstpt=l={_next:this._firstpt,t:h,p:"setratio",s:0,c:1,f:!0,n:n,pg:!0,pr:h._priority},a=h._overwriteprops.length;--a>-1;)i[h._overwriteprops[a]]=this._firstpt;(h._priority||h._oninitallprops)&&(o=!0),(h._ondisable||h._onenable)&&(this._notifypluginsofenabled=!0)}else this._firstpt=i[n]=l={_next:this._firstpt,t:e,p:n,f:"function"==typeof e[n],n:n,pg:!1,pr:0},l.s=l.f?e[n.indexof("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parsefloat(e[n]),l.c="string"==typeof _&&"="===_.charat(1)?parseint(_.charat(0)+"1",10)*number(_.substr(2)):number(_)-l.s||0;l&&l._next&&(l._next._prev=l)}return r&&this._kill(r,e)?this._initprops(e,i,s,r):this._overwrite>1&&this._firstpt&&s.length>1&&j(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initprops(e,i,s,r)):o},r.render=function(t,e,i){var s,r,n,a,o=this._time,h=this._duration;if(t>=h)this._totaltime=this._time=h,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(s=!0,r="oncomplete"),0===h&&(a=this._rawprevtime,this._starttime===this._timeline._duration&&(t=0),(0===t||0>a||a===l)&&a!==t&&(i=!0,a>l&&(r="onreversecomplete")),this._rawprevtime=a=!e||t||this._rawprevtime===t?t:l);else if(1e-7>t)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==o||0===h&&this._rawprevtime>0&&this._rawprevtime!==l)&&(r="onreversecomplete",s=this._reversed),0>t?(this._active=!1,0===h&&(this._rawprevtime>=0&&(i=!0),this._rawprevtime=a=!e||t||this._rawprevtime===t?t:l)):this._initted||(i=!0);else if(this._totaltime=this._time=t,this._easetype){var _=t/h,u=this._easetype,p=this._easepower;(1===u||3===u&&_>=.5)&&(_=1-_),3===u&&(_*=2),1===p?_*=_:2===p?_*=_*_:3===p?_*=_*_*_:4===p&&(_*=_*_*_*_),this.ratio=1===u?1-_:2===u?_:.5>t/h?_/2:1-_/2}else this.ratio=this._ease.getratio(t/h);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;this._time&&!s?this.ratio=this._ease.getratio(this._time/h):s&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startat&&(t>=0?this._startat.render(t,e,i):r||(r="_dummygs")),this.vars.onstart&&(0!==this._time||0===h)&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||v))),n=this._firstpt;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onupdate&&(0>t&&this._startat&&this._starttime&&this._startat.render(t,e,i),e||(this._time!==o||s)&&this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||v)),r&&(this._gc||(0>t&&this._startat&&!this._onupdate&&this._starttime&&this._startat.render(t,e,i),s&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"scope"]||this,this.vars[r+"params"]||v),0===h&&this._rawprevtime===l&&a!==l&&(this._rawprevtime=0)))}},r._kill=function(t,e){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:o.selector(e)||e;var i,s,r,n,a,o,h,l;if((p(e)||d(e))&&"number"!=typeof e[0])for(i=e.length;--i>-1;)this._kill(t,e[i])&&(o=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(e===this._targets[i]){a=this._proplookup[i]||{},this._overwrittenprops=this._overwrittenprops||[],s=this._overwrittenprops[i]=t?this._overwrittenprops[i]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._proplookup,s=this._overwrittenprops=t?this._overwrittenprops||{}:"all"}if(a){h=t||a,l=t!==s&&"all"!==s&&t!==a&&("object"!=typeof t||!t._tempkill);for(r in h)(n=a[r])&&(n.pg&&n.t._kill(h)&&(o=!0),n.pg&&0!==n.t._overwriteprops.length||(n._prev?n._prev._next=n._next:n===this._firstpt&&(this._firstpt=n._next),n._next&&(n._next._prev=n._prev),n._next=n._prev=null),delete a[r]),l&&(s[r]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return o},r.invalidate=function(){return this._notifypluginsofenabled&&o._onpluginevent("_ondisable",this),this._firstpt=null,this._overwrittenprops=null,this._onupdate=null,this._startat=null,this._initted=this._active=this._notifypluginsofenabled=!1,this._proplookup=this._targets?{}:[],this},r._enabled=function(t,e){if(a||n.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=y(s[i],this,!0);else this._siblings=y(this.target,this,!0)}return r.prototype._enabled.call(this,t,e),this._notifypluginsofenabled&&this._firstpt?o._onpluginevent(t?"_onenable":"_ondisable",this):!1},o.to=function(t,e,i){return new o(t,e,i)},o.from=function(t,e,i){return i.runbackwards=!0,i.immediaterender=0!=i.immediaterender,new o(t,e,i)},o.fromto=function(t,e,i,s){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,new o(t,e,s)},o.delayedcall=function(t,e,i,s,r){return new o(e,0,{delay:t,oncomplete:e,oncompleteparams:i,oncompletescope:s,onreversecomplete:e,onreversecompleteparams:i,onreversecompletescope:s,immediaterender:!1,useframes:r,overwrite:0})},o.set=function(t,e){return new o(t,0,e)},o.gettweensof=function(t,e){if(null==t)return[];t="string"!=typeof t?t:o.selector(t)||t;var i,s,r,n;if((p(t)||d(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(o.gettweensof(t[i],e));for(i=s.length;--i>-1;)for(n=s[i],r=i;--r>-1;)n===s[r]&&s.splice(i,1)}else for(s=y(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isactive())&&s.splice(i,1);return s},o.killtweensof=o.killdelayedcallsto=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=o.gettweensof(t,e),r=s.length;--r>-1;)s[r]._kill(i,t)};var q=d("plugins.tweenplugin",function(t,e){this._overwriteprops=(t||"").split(","),this._propname=this._overwriteprops[0],this._priority=e||0,this._super=q.prototype},!0);if(r=q.prototype,q.version="1.10.1",q.api=2,r._firstpt=null,r._addtween=function(t,e,i,s,r,n){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charat(1)?number(s)-i:parseint(s.charat(0)+"1",10)*number(s.substr(2)))?(this._firstpt=o={_next:this._firstpt,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:r||e,r:n},o._next&&(o._next._prev=o),o):void 0},r.setratio=function(t){for(var e,i=this._firstpt,s=1e-6;i;)e=i.c*t+i.s,i.r?e=math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},r._kill=function(t){var e,i=this._overwriteprops,s=this._firstpt;if(null!=t[this._propname])this._overwriteprops=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstpt===s&&(this._firstpt=s._next)),s=s._next;return!1},r._roundprops=function(t,e){for(var i=this._firstpt;i;)(t[this._propname]||null!=i.n&&t[i.n.split(this._propname+"_").join("")])&&(i.r=e),i=i._next},o._onpluginevent=function(t,e){var i,s,r,n,a,o=e._firstpt;if("_oninitallprops"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstpt=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},q.activate=function(t){for(var e=t.length;--e>-1;)t[e].api===q.api&&(e[(new t[e])._propname]=t[e]);return!0},m.plugin=function(t){if(!(t&&t.propname&&t.init&&t.api))throw"illegal plugin definition.";var e,i=t.propname,s=t.priority||0,r=t.overwriteprops,n={init:"_oninittween",set:"setratio",kill:"_kill",round:"_roundprops",initall:"_oninitallprops"},a=d("plugins."+i.charat(0).touppercase()+i.substr(1)+"plugin",function(){q.call(this,i,s),this._overwriteprops=r||[]},t.global===!0),o=a.prototype=new q(i);o.constructor=a,a.api=t.api;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,q.activate([a]),a},i=t._gsqueue){for(s=0;i.length>s;s++)i[s]();for(r in c)c[r].func||t.console.log("gsap encountered missing dependency: com.greensock."+r)}a=!1}}(window);