/******************************************** - themepunch tools ver. 1.0 - last update of tools 27.02.2015 *********************************************/ /* * @fileoverview touchswipe - jquery plugin * @version 1.6.9 * * @author matt bryson http://www.github.com/mattbryson * @see https://github.com/mattbryson/touchswipe-jquery-plugin * @see http://labs.skinkers.com/touchswipe/ * @see http://plugins.jquery.com/project/touchswipe * * copyright (c) 2010 matt bryson * dual licensed under the mit or gpl version 2 licenses. * */ (function(a){if(typeof define==="function"&&define.amd&&define.amd.jquery){define(["jquery"],a)}else{a(jquery)}}(function(f){var y="1.6.9",p="left",o="right",e="up",x="down",c="in",a="out",m="none",s="auto",l="swipe",t="pinch",b="tap",j="doubletap",b="longtap",z="hold",e="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.mspointerenabled&&!window.navigator.pointerenabled,d=window.navigator.pointerenabled||window.navigator.mspointerenabled,c="touchswipe";var n={fingers:1,threshold:75,cancelthreshold:null,pinchthreshold:20,maxtimethreshold:null,fingerreleasethreshold:250,longtapthreshold:500,doubletapthreshold:200,swipe:null,swipeleft:null,swiperight:null,swipeup:null,swipedown:null,swipestatus:null,pinchin:null,pinchout:null,pinchstatus:null,click:null,tap:null,doubletap:null,longtap:null,hold:null,triggerontouchend:true,triggerontouchleave:false,allowpagescroll:"auto",fallbacktomouseevents:true,excludedelements:"label, button, input, select, textarea, a, .noswipe",preventdefaultevents:true};f.fn.swipetp=function(h){var g=f(this),f=g.data(c);if(f&&typeof h==="string"){if(f[h]){return f[h].apply(this,array.prototype.slice.call(arguments,1))}else{f.error("method "+h+" does not exist on jquery.swipetp")}}else{if(!f&&(typeof h==="object"||!h)){return w.apply(this,arguments)}}return g};f.fn.swipetp.version=y;f.fn.swipetp.defaults=n;f.fn.swipetp.phases={phase_start:g,phase_move:k,phase_end:h,phase_cancel:q};f.fn.swipetp.directions={left:p,right:o,up:e,down:x,in:c,out:a};f.fn.swipetp.pagescroll={none:m,horizontal:e,vertical:u,auto:s};f.fn.swipetp.fingers={one:1,two:2,three:3,all:i};function w(f){if(f&&(f.allowpagescroll===undefined&&(f.swipe!==undefined||f.swipestatus!==undefined))){f.allowpagescroll=m}if(f.click!==undefined&&f.tap===undefined){f.tap=f.click}if(!f){f={}}f=f.extend({},f.fn.swipetp.defaults,f);return this.each(function(){var h=f(this);var g=h.data(c);if(!g){g=new d(this,f);h.data(c,g)}})}function d(a5,aw){var aa=(a||d||!aw.fallbacktomouseevents),k=aa?(d?(v?"mspointerdown":"pointerdown"):"touchstart"):"mousedown",az=aa?(d?(v?"mspointermove":"pointermove"):"touchmove"):"mousemove",v=aa?(d?(v?"mspointerup":"pointerup"):"touchend"):"mouseup",t=aa?null:"mouseleave",ae=(d?(v?"mspointercancel":"pointercancel"):"touchcancel");var ah=0,aq=null,ac=0,a2=0,a0=0,h=1,ar=0,ak=0,n=null;var as=f(a5);var aa="start";var x=0;var ar=null;var u=0,a3=0,a6=0,ae=0,o=0;var ax=null,ag=null;try{as.bind(k,ao);as.bind(ae,ba)}catch(al){f.error("events not supported "+k+","+ae+" on jquery.swipetp")}this.enable=function(){as.bind(k,ao);as.bind(ae,ba);return as};this.disable=function(){al();return as};this.destroy=function(){al();as.data(c,null);as=null};this.option=function(bd,bc){if(aw[bd]!==undefined){if(bc===undefined){return aw[bd]}else{aw[bd]=bc}}else{f.error("option "+bd+" does not exist on jquery.swipetp.options")}return null};function ao(be){if(ac()){return}if(f(be.target).closest(aw.excludedelements,as).length>0){return}var bf=be.originalevent?be.originalevent:be;var bd,bg=bf.touches,bc=bg?bg[0]:bf;aa=g;if(bg){x=bg.length}else{be.preventdefault()}ah=0;aq=null;ak=null;ac=0;a2=0;a0=0;h=1;ar=0;ar=ak();n=ab();s();if(!bg||(x===aw.fingers||aw.fingers===i)||ay()){aj(0,bc);u=au();if(x==2){aj(1,bg[1]);a2=a0=av(ar[0].start,ar[1].start)}if(aw.swipestatus||aw.pinchstatus){bd=p(bf,aa)}}else{bd=false}if(bd===false){aa=q;p(bf,aa);return bd}else{if(aw.hold){ag=settimeout(f.proxy(function(){as.trigger("hold",[bf.target]);if(aw.hold){bd=aw.hold.call(as,bf,bf.target)}},this),aw.longtapthreshold)}ap(true)}return null}function a4(bf){var bi=bf.originalevent?bf.originalevent:bf;if(aa===h||aa===q||an()){return}var be,bj=bi.touches,bd=bj?bj[0]:bi;var bg=ai(bd);a3=au();if(bj){x=bj.length}if(aw.hold){cleartimeout(ag)}aa=k;if(x==2){if(a2==0){aj(1,bj[1]);a2=a0=av(ar[0].start,ar[1].start)}else{ai(bj[1]);a0=av(ar[0].end,ar[1].end);ak=at(ar[0].end,ar[1].end)}h=a8(a2,a0);ar=math.abs(a2-a0)}if((x===aw.fingers||aw.fingers===i)||!bj||ay()){aq=am(bg.start,bg.end);am(bf,aq);ah=at(bg.start,bg.end);ac=an();aj(aq,ah);if(aw.swipestatus||aw.pinchstatus){be=p(bi,aa)}if(!aw.triggerontouchend||aw.triggerontouchleave){var bc=true;if(aw.triggerontouchleave){var bh=az(this);bc=f(bg.end,bh)}if(!aw.triggerontouchend&&bc){aa=ad(k)}else{if(aw.triggerontouchleave&&!bc){aa=ad(h)}}if(aa==q||aa==h){p(bi,aa)}}}else{aa=q;p(bi,aa)}if(be===false){aa=q;p(bi,aa)}}function m(bc){var bd=bc.originalevent?bc.originalevent:bc,be=bd.touches;if(be){if(be.length){g();return true}}if(an()){x=ae}a3=au();ac=an();if(bb()||!ao()){aa=q;p(bd,aa)}else{if(aw.triggerontouchend||(aw.triggerontouchend==false&&aa===k)){bc.preventdefault();aa=h;p(bd,aa)}else{if(!aw.triggerontouchend&&a7()){aa=h;ag(bd,aa,b)}else{if(aa===k){aa=q;p(bd,aa)}}}}ap(false);return null}function ba(){x=0;a3=0;u=0;a2=0;a0=0;h=1;s();ap(false)}function l(bc){var bd=bc.originalevent?bc.originalevent:bc;if(aw.triggerontouchleave){aa=ad(h);p(bd,aa)}}function al(){as.unbind(k,ao);as.unbind(ae,ba);as.unbind(az,a4);as.unbind(v,m);if(t){as.unbind(t,l)}ap(false)}function ad(bg){var bf=bg;var be=ab();var bd=ao();var bc=bb();if(!be||bc){bf=q}else{if(bd&&bg==k&&(!aw.triggerontouchend||aw.triggerontouchleave)){bf=h}else{if(!bd&&bg==h&&aw.triggerontouchleave){bf=q}}}return bf}function p(be,bc){var bd,bf=be.touches;if((j()||w())||(q()||ay())){if(j()||w()){bd=ag(be,bc,l)}if((q()||ay())&&bd!==false){bd=ag(be,bc,t)}}else{if(ah()&&bd!==false){bd=ag(be,bc,j)}else{if(aq()&&bd!==false){bd=ag(be,bc,b)}else{if(ai()&&bd!==false){bd=ag(be,bc,b)}}}}if(bc===q){ba(be)}if(bc===h){if(bf){if(!bf.length){ba(be)}}else{ba(be)}}return bd}function ag(bf,bc,be){var bd;if(be==l){as.trigger("swipestatus",[bc,aq||null,ah||0,ac||0,x,ar]);if(aw.swipestatus){bd=aw.swipestatus.call(as,bf,bc,aq||null,ah||0,ac||0,x,ar);if(bd===false){return false}}if(bc==h&&aw()){as.trigger("swipe",[aq,ah,ac,x,ar]);if(aw.swipe){bd=aw.swipe.call(as,bf,aq,ah,ac,x,ar);if(bd===false){return false}}switch(aq){case p:as.trigger("swipeleft",[aq,ah,ac,x,ar]);if(aw.swipeleft){bd=aw.swipeleft.call(as,bf,aq,ah,ac,x,ar)}break;case o:as.trigger("swiperight",[aq,ah,ac,x,ar]);if(aw.swiperight){bd=aw.swiperight.call(as,bf,aq,ah,ac,x,ar)}break;case e:as.trigger("swipeup",[aq,ah,ac,x,ar]);if(aw.swipeup){bd=aw.swipeup.call(as,bf,aq,ah,ac,x,ar)}break;case x:as.trigger("swipedown",[aq,ah,ac,x,ar]);if(aw.swipedown){bd=aw.swipedown.call(as,bf,aq,ah,ac,x,ar)}break}}}if(be==t){as.trigger("pinchstatus",[bc,ak||null,ar||0,ac||0,x,h,ar]);if(aw.pinchstatus){bd=aw.pinchstatus.call(as,bf,bc,ak||null,ar||0,ac||0,x,h,ar);if(bd===false){return false}}if(bc==h&&a9()){switch(ak){case c:as.trigger("pinchin",[ak||null,ar||0,ac||0,x,h,ar]);if(aw.pinchin){bd=aw.pinchin.call(as,bf,ak||null,ar||0,ac||0,x,h,ar)}break;case a:as.trigger("pinchout",[ak||null,ar||0,ac||0,x,h,ar]);if(aw.pinchout){bd=aw.pinchout.call(as,bf,ak||null,ar||0,ac||0,x,h,ar)}break}}}if(be==b){if(bc===q||bc===h){cleartimeout(ax);cleartimeout(ag);if(z()&&!i()){o=au();ax=settimeout(f.proxy(function(){o=null;as.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(as,bf,bf.target)}},this),aw.doubletapthreshold)}else{o=null;as.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(as,bf,bf.target)}}}}else{if(be==j){if(bc===q||bc===h){cleartimeout(ax);o=null;as.trigger("doubletap",[bf.target]);if(aw.doubletap){bd=aw.doubletap.call(as,bf,bf.target)}}}else{if(be==b){if(bc===q||bc===h){cleartimeout(ax);o=null;as.trigger("longtap",[bf.target]);if(aw.longtap){bd=aw.longtap.call(as,bf,bf.target)}}}}}return bd}function ao(){var bc=true;if(aw.threshold!==null){bc=ah>=aw.threshold}return bc}function bb(){var bc=false;if(aw.cancelthreshold!==null&&aq!==null){bc=(au(aq)-ah)>=aw.cancelthreshold}return bc}function af(){if(aw.pinchthreshold!==null){return ar>=aw.pinchthreshold}return true}function ab(){var bc;if(aw.maxtimethreshold){if(ac>=aw.maxtimethreshold){bc=false}else{bc=true}}else{bc=true}return bc}function am(bc,bd){if(aw.preventdefaultevents===false){return}if(aw.allowpagescroll===m){bc.preventdefault()}else{var be=aw.allowpagescroll===s;switch(bd){case p:if((aw.swipeleft&&be)||(!be&&aw.allowpagescroll!=e)){bc.preventdefault()}break;case o:if((aw.swiperight&&be)||(!be&&aw.allowpagescroll!=e)){bc.preventdefault()}break;case e:if((aw.swipeup&&be)||(!be&&aw.allowpagescroll!=u)){bc.preventdefault()}break;case x:if((aw.swipedown&&be)||(!be&&aw.allowpagescroll!=u)){bc.preventdefault()}break}}}function a9(){var bd=ap();var bc=y();var be=af();return bd&&bc&&be}function ay(){return !!(aw.pinchstatus||aw.pinchin||aw.pinchout)}function q(){return !!(a9()&&ay())}function aw(){var bf=ab();var bh=ao();var be=ap();var bc=y();var bd=bb();var bg=!bd&&bc&&be&&bh&&bf;return bg}function w(){return !!(aw.swipe||aw.swipestatus||aw.swipeleft||aw.swiperight||aw.swipeup||aw.swipedown)}function j(){return !!(aw()&&w())}function ap(){return((x===aw.fingers||aw.fingers===i)||!a)}function y(){return ar[0].end.x!==0}function a7(){return !!(aw.tap)}function z(){return !!(aw.doubletap)}function av(){return !!(aw.longtap)}function r(){if(o==null){return false}var bc=au();return(z()&&((bc-o)<=aw.doubletapthreshold))}function i(){return r()}function ay(){return((x===1||!a)&&(isnan(ah)||ahaw.longtapthreshold)&&(ah=0)){return p}else{if((be<=360)&&(be>=315)){return p}else{if((be>=135)&&(be<=225)){return o}else{if((be>45)&&(be<135)){return x}else{return e}}}}}function au(){var bc=new date();return bc.gettime()}function az(bc){bc=f(bc);var be=bc.offset();var bd={left:be.left,right:be.left+bc.outerwidth(),top:be.top,bottom:be.top+bc.outerheight()};return bd}function f(bc,bd){return(bc.x>bd.left&&bc.xbd.top&&bc.y-1;)(l=p[f[s]]||new q(f[s],[])).gsclass?(i[s]=l.gsclass,t--):k&&l.sc.push(this);if(0===t&&g){if(m=("com.greensock."+e).split("."),n=m.pop(),o=j(m.join("."))[n]=this.gsclass=g.apply(g,i),h)if(d[n]=o,r="undefined"!=typeof module&&module.exports,!r&&"function"==typeof define&&define.amd)define((a.greensockamdpath?a.greensockamdpath+"/":"")+e.split(".").pop(),[],function(){return o});else if(r)if(e===b){module.exports=c[b]=o;for(s in c)o[s]=c[s]}else c[b]&&(c[b][n]=o);for(s=0;s-1;)for(f=i[j],e=d?s("easing."+f,null,!0):k.easing[f]||{},g=l.length;--g>-1;)h=l[g],w[f+"."+h]=w[h+f]=e[h]=a.getratio?a:a[h]||new a};for(g=v.prototype,g._calcend=!1,g.getratio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},e=["linear","quad","cubic","quart","quint,strong"],f=e.length;--f>-1;)g=e[f]+",power"+f,x(new v(null,null,1,f),g,"easeout",!0),x(new v(null,null,2,f),g,"easein"+(0===f?",easenone":"")),x(new v(null,null,3,f),g,"easeinout");w.linear=k.easing.linear.easein,w.swing=k.easing.quad.easeinout;var y=s("events.eventdispatcher",function(a){this._listeners={},this._eventtarget=a||this});g=y.prototype,g.addeventlistener=function(a,b,c,d,e){e=e||0;var f,g,j=this._listeners[a],k=0;for(this!==h||i||h.wake(),null==j&&(this._listeners[a]=j=[]),g=j.length;--g>-1;)f=j[g],f.c===b&&f.s===c?j.splice(g,1):0===k&&f.pr-1;)if(d[c].c===b)return void d.splice(c,1)},g.dispatchevent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,c=this._eventtarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var z=a.requestanimationframe,a=a.cancelanimationframe,b=date.now||function(){return(new date).gettime()},c=b();for(e=["ms","moz","webkit","o"],f=e.length;--f>-1&&!z;)z=a[e[f]+"requestanimationframe"],a=a[e[f]+"cancelanimationframe"]||a[e[f]+"cancelrequestanimationframe"];s("ticker",function(a,b){var c,d,e,f,g,j=this,k=b(),m=b!==!1&&z?"auto":!1,o=500,p=33,q="tick",r=function(a){var b,h,i=b()-c;i>o&&(k+=i-p),c+=i,j.time=(c-k)/1e3,b=j.time-g,(!c||b>0||a===!0)&&(j.frame++,g+=b+(b>=f?.004:f-b),h=!0),a!==!0&&(e=d(r)),h&&j.dispatchevent(q)};y.call(j),j.time=j.frame=0,j.tick=function(){r(!0)},j.lagsmoothing=function(a,b){o=a||1/l,p=math.min(b,o,0)},j.sleep=function(){null!=e&&(m&&a?a(e):cleartimeout(e),d=n,e=null,j===h&&(i=!1))},j.wake=function(a){null!==e?j.sleep():a?k+=-c+(c=b()):j.frame>10&&(c=b()-o+5),d=0===c?n:m&&z?z:function(a){return settimeout(a,1e3*(g-j.time)+1|0)},j===h&&(i=!0),r(2)},j.fps=function(a){return arguments.length?(c=a,f=1/(c||60),g=this.time+f,void j.wake()):c},j.useraf=function(a){return arguments.length?(j.sleep(),m=a,void j.fps(c)):m},j.fps(a),settimeout(function(){"auto"===m&&j.frame<5&&"hidden"!==document.visibilitystate&&j.useraf(!1)},1500)}),g=k.ticker.prototype=new k.events.eventdispatcher,g.constructor=k.ticker;var d=s("core.animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalduration=a||0,this._delay=number(b.delay)||0,this._timescale=1,this._active=b.immediaterender===!0,this.data=b.data,this._reversed=b.reversed===!0,w){i||h.wake();var c=this.vars.useframes?v:w;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});h=d.ticker=new k.ticker,g=d.prototype,g._dirty=g._gc=g._initted=g._paused=!1,g._totaltime=g._time=0,g._rawprevtime=-1,g._next=g._last=g._onupdate=g._timeline=g.timeline=null,g._paused=!1;var e=function(){i&&b()-c>2e3&&h.wake(),settimeout(e,2e3)};e(),g.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},g.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},g.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},g.seek=function(a,b){return this.totaltime(number(a),b!==!1)},g.restart=function(a,b){return this.reversed(!1).paused(!1).totaltime(a?-this._delay:0,b!==!1,!0)},g.reverse=function(a,b){return null!=a&&this.seek(a||this.totalduration(),b),this.reversed(!0).paused(!1)},g.render=function(a,b,c){},g.invalidate=function(){return this._time=this._totaltime=0,this._initted=this._gc=!1,this._rawprevtime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},g.isactive=function(){var a,b=this._timeline,c=this._starttime;return!b||!this._gc&&!this._paused&&b.isactive()&&(a=b.rawtime())>=c&&a-1;)"{self}"===a[b]&&(c[b]=this);return c},g._callback=function(a){var b=this.vars;b[a].apply(b[a+"scope"]||b.callbackscope||this,b[a+"params"]||u)},g.eventcallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"params"]=o(c)&&-1!==c.join("").indexof("{self}")?this._swapselfinparams(c):c,e[a+"scope"]=d),"onupdate"===a&&(this._onupdate=b)}return this},g.delay=function(a){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+a-this._delay),this._delay=a,this):this._delay},g.duration=function(a){return arguments.length?(this._duration=this._totalduration=a,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},g.totaltime=function(a,b,c){if(i||h.wake(),!arguments.length)return this._totaltime;if(this._timeline){if(0>a&&!c&&(a+=this.totalduration()),this._timeline.smoothchildtiming){this._dirty&&this.totalduration();var d=this._totalduration,e=this._timeline;if(a>d&&!c&&(a=d),this._starttime=(this._paused?this._pausetime:e._time)-(this._reversed?d-a:a)/this._timescale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._starttime+e._totaltime)/e._timescale&&e.totaltime(e._totaltime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==a||0===this._duration)&&(j.length&&y(),this.render(a,b,!1),j.length&&y())}return this},g.progress=g.totalprogress=function(a,b){var c=this.duration();return arguments.length?this.totaltime(c*a,b):c?this._time/c:this.ratio},g.starttime=function(a){return arguments.length?(a!==this._starttime&&(this._starttime=a,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,a-this._delay)),this):this._starttime},g.endtime=function(a){return this._starttime+(0!=a?this.totalduration():this.duration())/this._timescale},g.timescale=function(a){if(!arguments.length)return this._timescale;if(a=a||l,this._timeline&&this._timeline.smoothchildtiming){var b=this._pausetime,c=b||0===b?b:this._timeline.totaltime();this._starttime=c-(c-this._starttime)*this._timescale/a}return this._timescale=a,this._uncache(!1)},g.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totaltime(this._timeline&&!this._timeline.smoothchildtiming?this.totalduration()-this._totaltime:this._totaltime,!0)),this):this._reversed},g.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(i||a||h.wake(),b=d.rawtime(),c=b-this._pausetime,!a&&d.smoothchildtiming&&(this._starttime+=c,this._uncache(!1)),this._pausetime=a?b:null,this._paused=a,this._active=this.isactive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothchildtiming?this._totaltime:(b-this._starttime)/this._timescale,this.render(b,b===this._totaltime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var f=s("core.simpletimeline",function(a){d.call(this,0,a),this.autoremovechildren=this.smoothchildtiming=!0});g=f.prototype=new d,g.constructor=f,g.kill()._gc=!1,g._first=g._last=g._recent=null,g._sortchildren=!1,g.add=g.insert=function(a,b,c,d){var e,f;if(a._starttime=number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pausetime=a._starttime+(this.rawtime()-a._starttime)/a._timescale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortchildren)for(f=a._starttime;e&&e._starttime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},g._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},g.render=function(a,b,c){var d,e=this._first;for(this._totaltime=this._time=this._rawprevtime=a;e;)d=e._next,(e._active||a>=e._starttime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalduration():e._totalduration)-(a-e._starttime)*e._timescale,b,c):e.render((a-e._starttime)*e._timescale,b,c)),e=d},g.rawtime=function(){return i||h.wake(),this._totaltime};var g=s("tweenlite",function(b,c,d){if(d.call(this,c,d),this.render=g.prototype.render,null==b)throw"cannot tween a null target.";this.target=b="string"!=typeof b?b:g.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodetype&&b[0].style&&!b.nodetype),i=this.vars.overwrite;if(this._overwrite=i=null==i?u[g.defaultoverwrite]:"number"==typeof i?i>>0:u[i],(h||b instanceof array||b.push&&o(b))&&"number"!=typeof b[0])for(this._targets=g=m(b),this._proplookup=[],this._siblings=[],e=0;e1&&_(f,this,null,1,this._siblings[e])):(f=g[e--]=g.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._proplookup={},this._siblings=z(b,this,!1),1===i&&this._siblings.length>1&&_(b,this,null,1,this._siblings);(this.vars.immediaterender||0===c&&0===this._delay&&this.vars.immediaterender!==!1)&&(this._time=-l,this.render(math.min(0,-this._delay)))},!0),h=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodetype&&b[0].style&&!b.nodetype)},i=function(a,b){var c,d={};for(c in a)t[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"classname"!==c&&"border"!==c||!(!q[c]||q[c]&&q[c]._autocss)||(d[c]=a[c],delete a[c]);a.css=d};g=g.prototype=new d,g.constructor=g,g.kill()._gc=!1,g.ratio=0,g._firstpt=g._targets=g._overwrittenprops=g._startat=null,g._notifypluginsofenabled=g._lazy=!1,g.version="1.18.5",g.defaultease=g._ease=new v(null,null,1,1),g.defaultoverwrite="auto",g.ticker=h,g.autosleep=120,g.lagsmoothing=function(a,b){h.lagsmoothing(a,b)},g.selector=a.$||a.jquery||function(b){var c=a.$||a.jquery;return c?(g.selector=c,c(b)):"undefined"==typeof document?b:document.queryselectorall?document.queryselectorall(b):document.getelementbyid("#"===b.charat(0)?b.substr(1):b)};var j=[],k={},l=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,m=function(a){for(var b,c=this._firstpt,d=1e-6;c;)b=c.blob?a?this.join(""):this.start:c.c*a+c.s,c.r?b=math.round(b):d>b&&b>-d&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},n=function(a,b,c,d){var e,f,g,h,i,j,k,l=[a,b],m=0,n="",o=0;for(l.start=a,c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(l)||[],f=b.match(l)||[],d&&(d._next=null,d.blob=1,l._firstpt=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexof(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parsefloat(e[h]),l.push(g),l._firstpt={_next:l._firstpt,t:l,p:l.length-1,s:g,c:("="===k.charat(1)?parseint(k.charat(0)+"1",10)*parsefloat(k.substr(2)):parsefloat(k)-g)||0,f:0,r:o&&4>o}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setratio=m,l},o=function(a,b,c,d,e,f,g,h){var i,j,k="get"===c?a[b]:c,l=typeof a[b],m="string"==typeof d&&"="===d.charat(1),n={t:a,p:b,s:k,f:"function"===l,pg:0,n:e||b,r:f,pr:0,c:m?parseint(d.charat(0)+"1",10)*parsefloat(d.substr(2)):parsefloat(d)-k||0};return"number"!==l&&("function"===l&&"get"===c&&(j=b.indexof("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),n.s=k=g?a[j](g):a[j]()),"string"==typeof k&&(g||isnan(k))?(n.fp=g,i=n(k,d,h||g.defaultstringfilter,n),n={t:i,p:"setratio",s:0,c:1,f:2,pg:0,n:e||b,pr:0}):m||(n.s=parsefloat(k),n.c=parsefloat(d)-n.s||0)),n.c?((n._next=this._firstpt)&&(n._next._prev=n),this._firstpt=n,n):void 0},p=g._internals={isarray:o,isselector:h,lazytweens:j,blobdif:n},q=g._plugins={},r=p.tweenlookup={},s=0,t=p.reservedprops={ease:1,delay:1,overwrite:1,oncomplete:1,oncompleteparams:1,oncompletescope:1,useframes:1,runbackwards:1,startat:1,onupdate:1,onupdateparams:1,onupdatescope:1,onstart:1,onstartparams:1,onstartscope:1,onreversecomplete:1,onreversecompleteparams:1,onreversecompletescope:1,onrepeat:1,onrepeatparams:1,onrepeatscope:1,easeparams:1,yoyo:1,immediaterender:1,repeat:1,repeatdelay:1,data:1,paused:1,reversed:1,autocss:1,lazy:1,onoverwrite:1,callbackscope:1,stringfilter:1,id:1},u={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},v=d._rootframestimeline=new f,w=d._roottimeline=new f,x=30,y=p.lazyrender=function(){var a,b=j.length;for(k={};--b>-1;)a=j[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);j.length=0};w._starttime=h.time,v._starttime=h.frame,w._active=v._active=!0,settimeout(y,1),d._updateroot=g.render=function(){var a,b,c;if(j.length&&y(),w.render((h.time-w._starttime)*w._timescale,!1,!1),v.render((h.frame-v._starttime)*v._timescale,!1,!1),j.length&&y(),h.frame>=x){x=h.frame+(parseint(g.autosleep,10)||120);for(c in r){for(b=r[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete r[c]}if(c=w._first,(!c||c._paused)&&g.autosleep&&!v._first&&1===h._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||h.sleep()}}},h.addeventlistener("tick",d._updateroot);var z=function(a,b,c){var d,e,f=a._gstweenid;if(r[f||(a._gstweenid=f="t"+s++)]||(r[f]={target:a,tweens:[]}),b&&(d=r[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return r[f].tweens},$=function(a,b,c,d){var e,f,g=a.vars.onoverwrite;return g&&(e=g(a,b,c,d)),g=g.onoverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},_=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._starttime+l,m=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||aa(b,0,o),0===aa(h,j,o)&&(m[n++]=h)):h._starttime<=k&&h._starttime+h.totalduration()/h._timescale>k&&((o||!h._initted)&&k-h._starttime<=2e-10||(m[n++]=h)));for(f=n;--f>-1;)if(h=m[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstpt&&h._initted){if(2!==d&&!$(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},aa=function(a,b,c){for(var d=a._timeline,e=d._timescale,f=a._starttime;d._timeline;){if(f+=d._starttime,e*=d._timescale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*l>f-b?l:(f+=a.totalduration()/a._timescale/e)>b+l?0:f-b-l};g._init=function(){var a,b,c,d,e,f=this.vars,g=this._overwrittenprops,h=this._duration,i=!!f.immediaterender,j=f.ease;if(f.startat){this._startat&&(this._startat.render(-1,!0),this._startat.kill()),e={};for(d in f.startat)e[d]=f.startat[d];if(e.overwrite=!1,e.immediaterender=!0,e.lazy=i&&f.lazy!==!1,e.startat=e.delay=null,this._startat=g.to(this.target,0,e),i)if(this._time>0)this._startat=null;else if(0!==h)return}else if(f.runbackwards&&0!==h)if(this._startat)this._startat.render(-1,!0),this._startat.kill(),this._startat=null;else{0!==this._time&&(i=!1),c={};for(d in f)t[d]&&"autocss"!==d||(c[d]=f[d]);if(c.overwrite=0,c.data="isfromstart",c.lazy=i&&f.lazy!==!1,c.immediaterender=i,this._startat=g.to(this.target,0,c),i){if(0===this._time)return}else this._startat._init(),this._startat._enabled(!1),this.vars.immediaterender&&(this._startat=null)}if(this._ease=j=j?j instanceof v?j:"function"==typeof j?new v(j,f.easeparams):w[j]||g.defaultease:g.defaultease,f.easeparams instanceof array&&j.config&&(this._ease=j.config.apply(j,f.easeparams)),this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(a=this._targets.length;--a>-1;)this._initprops(this._targets[a],this._proplookup[a]={},this._siblings[a],g?g[a]:null)&&(b=!0);else b=this._initprops(this.target,this._proplookup,this._siblings,g);if(b&&g._onpluginevent("_oninitallprops",this),g&&(this._firstpt||"function"!=typeof this.target&&this._enabled(!1,!1)),f.runbackwards)for(c=this._firstpt;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onupdate=f.onupdate,this._initted=!0},g._initprops=function(b,c,d,e){var f,g,h,i,j,k;if(null==b)return!1;k[b._gstweenid]&&y(),this.vars.css||b.style&&b!==a&&b.nodetype&&q.css&&this.vars.autocss!==!1&&i(this.vars,b);for(f in this.vars)if(k=this.vars[f],t[f])k&&(k instanceof array||k.push&&o(k))&&-1!==k.join("").indexof("{self}")&&(this.vars[f]=k=this._swapselfinparams(k,this));else if(q[f]&&(i=new q[f])._oninittween(b,this.vars[f],this)){for(this._firstpt=j={_next:this._firstpt,t:i,p:"setratio",s:0,c:1,f:1,n:f,pg:1,pr:i._priority},g=i._overwriteprops.length;--g>-1;)c[i._overwriteprops[g]]=this._firstpt;(i._priority||i._oninitallprops)&&(h=!0),(i._ondisable||i._onenable)&&(this._notifypluginsofenabled=!0),j._next&&(j._next._prev=j)}else c[f]=o.call(this,b,f,"get",k,f,0,null,this.vars.stringfilter);return e&&this._kill(e,b)?this._initprops(b,c,d,e):this._overwrite>1&&this._firstpt&&d.length>1&&_(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initprops(b,c,d,e)):(this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(k[b._gstweenid]=!0),h)},g.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawprevtime;if(a>=i-1e-7)this._totaltime=this._time=i,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(d=!0,e="oncomplete",c=c||this._timeline.autoremovechildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._starttime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===l&&"ispause"!==this.data)&&j!==a&&(c=!0,j>l&&(e="onreversecomplete")),this._rawprevtime=g=!b||a||j===a?a:l);else if(1e-7>a)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==h||0===i&&j>0)&&(e="onreversecomplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==l||"ispause"!==this.data)&&(c=!0),this._rawprevtime=g=!b||a||j===a?a:l)),this._initted||(c=!0);else if(this._totaltime=this._time=a,this._easetype){var k=a/i,m=this._easetype,n=this._easepower;(1===m||3===m&&k>=.5)&&(k=1-k),3===m&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===m?this.ratio=1-k:2===m?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getratio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totaltime=h,this._rawprevtime=j,j.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getratio(this._time/i):d&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startat&&(a>=0?this._startat.render(a,b,c):e||(e="_dummygs")),this.vars.onstart&&(0!==this._time||0===i)&&(b||this._callback("onstart"))),f=this._firstpt;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onupdate&&(0>a&&this._startat&&a!==-1e-4&&this._startat.render(a,b,c),b||(this._time!==h||d||c)&&this._callback("onupdate")),e&&(!this._gc||c)&&(0>a&&this._startat&&!this._onupdate&&a!==-1e-4&&this._startat.render(a,b,c),d&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawprevtime===l&&g!==l&&(this._rawprevtime=0))}},g._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:g.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._starttime===this._starttime&&this._timeline===c._timeline;if((o(b)||h(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._proplookup[d]||{},this._overwrittenprops=this._overwrittenprops||[],e=this._overwrittenprops[d]=a?this._overwrittenprops[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._proplookup,e=this._overwrittenprops=a?this._overwrittenprops||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempkill),c&&(g.onoverwrite||this.vars.onoverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!$(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteprops.length||(g._prev?g._prev._next=g._next:g===this._firstpt&&(this._firstpt=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return i},g.invalidate=function(){return this._notifypluginsofenabled&&g._onpluginevent("_ondisable",this),this._firstpt=this._overwrittenprops=this._startat=this._onupdate=null,this._notifypluginsofenabled=this._active=this._lazy=!1,this._proplookup=this._targets?{}:[],d.prototype.invalidate.call(this),this.vars.immediaterender&&(this._time=-l,this.render(math.min(0,-this._delay))),this},g._enabled=function(a,b){if(i||h.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=z(d[c],this,!0);else this._siblings=z(this.target,this,!0)}return d.prototype._enabled.call(this,a,b),this._notifypluginsofenabled&&this._firstpt?g._onpluginevent(a?"_onenable":"_ondisable",this):!1},g.to=function(a,b,c){return new g(a,b,c)},g.from=function(a,b,c){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,new g(a,b,c)},g.fromto=function(a,b,c,d){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,new g(a,b,d)},g.delayedcall=function(a,b,c,d,e){return new g(b,0,{delay:a,oncomplete:b,oncompleteparams:c,callbackscope:d,onreversecomplete:b,onreversecompleteparams:c,immediaterender:!1,lazy:!1,useframes:e,overwrite:0})},g.set=function(a,b){return new g(a,0,b)},g.gettweensof=function(a,b){if(null==a)return[];a="string"!=typeof a?a:g.selector(a)||a;var c,d,e,f;if((o(a)||h(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(g.gettweensof(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else for(d=z(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isactive())&&d.splice(c,1);return d},g.killtweensof=g.killdelayedcallsto=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=g.gettweensof(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ba=s("plugins.tweenplugin",function(a,b){this._overwriteprops=(a||"").split(","),this._propname=this._overwriteprops[0],this._priority=b||0,this._super=ba.prototype},!0);if(g=ba.prototype,ba.version="1.18.0",ba.api=2,g._firstpt=null,g._addtween=o,g.setratio=m,g._kill=function(a){var b,c=this._overwriteprops,d=this._firstpt;if(null!=a[this._propname])this._overwriteprops=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstpt===d&&(this._firstpt=d._next)),d=d._next;return!1},g._roundprops=function(a,b){for(var c=this._firstpt;c;)(a[this._propname]||null!=c.n&&a[c.n.split(this._propname+"_").join("")])&&(c.r=b),c=c._next},g._onpluginevent=function(a,b){var c,d,e,f,g,h=b._firstpt;if("_oninitallprops"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstpt=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ba.activate=function(a){for(var b=a.length;--b>-1;)a[b].api===ba.api&&(q[(new a[b])._propname]=a[b]);return!0},r.plugin=function(a){if(!(a&&a.propname&&a.init&&a.api))throw"illegal plugin definition.";var b,c=a.propname,d=a.priority||0,e=a.overwriteprops,f={init:"_oninittween",set:"setratio",kill:"_kill",round:"_roundprops",initall:"_oninitallprops"},g=s("plugins."+c.charat(0).touppercase()+c.substr(1)+"plugin",function(){ba.call(this,c,d),this._overwriteprops=e||[]},a.global===!0),h=g.prototype=new ba(c);h.constructor=g,g.api=a.api;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ba.activate([g]),g},e=a._gsqueue){for(f=0;ff&&(a=p(a),a.reverse(),f*=-1),o=0;ol;l++)i(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._starttime+m.totalduration()/m._timescale:"start"===g&&(m._starttime-=m.delay())),j+=h;return this._uncache(!0)}if("string"==typeof e)return this.addlabel(e,f);if("function"!=typeof e)throw"cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedcall(0,e)}if(b.prototype.add.call(this,e,f),(this._gc||this._time===this._duration)&&!this._paused&&this._duratione._starttime;n._timeline;)o&&n._timeline.smoothchildtiming?n.totaltime(n._totaltime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},q.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useframes?a._rootframestimeline:a._roottimeline;return b._starttime=(b._paused?b._pausetime:c._time)-(b._reversed?b.totalduration()-b._totaltime:b._totaltime)/b._timescale,this}if(b instanceof array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removelabel(b):this.kill(null,b)},q._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>d._starttime+d._totalduration/d._timescale&&(this._time=this.duration(),this._totaltime=this._totalduration):this._time=this._totaltime=this._duration=this._totalduration=0,this},q.append=function(a,b){return this.add(a,this._parsetimeorlabel(null,b,!0,a))},q.insert=q.insertmultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},q.appendmultiple=function(a,b,c,d){return this.add(a,this._parsetimeorlabel(null,b,!0,a),c,d)},q.addlabel=function(a,b){return this._labels[a]=this._parsetimeorlabel(b),this},q.addpause=function(a,b,d,e){var f=c.delayedcall(0,o,d,e||this);return f.vars.oncomplete=f.vars.onreversecomplete=b,f.data="ispause",this._haspause=!0,this.add(f,a)},q.removelabel=function(a){return delete this._labels[a],this},q.getlabeltime=function(a){return null!=this._labels[a]?this._labels[a]:-1},q._parsetimeorlabel=function(b,c,d,e){var f;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof array||e.push&&i(e)))for(f=e.length;--f>-1;)e[f]instanceof a&&e[f].timeline===this&&this.remove(e[f]);if("string"==typeof c)return this._parsetimeorlabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-this.duration():0,d);if(c=c||0,"string"!=typeof b||!isnan(b)&&null==this._labels[b])null==b&&(b=this.duration());else{if(f=b.indexof("="),-1===f)return null==this._labels[b]?d?this._labels[b]=this.duration()+c:c:this._labels[b]+c;c=parseint(b.charat(f-1)+"1",10)*number(b.substr(f+1)),b=f>1?this._parsetimeorlabel(b.substr(0,f-1),0,d):this.duration()}return number(b)+c},q.seek=function(a,b){return this.totaltime("number"==typeof a?a:this._parsetimeorlabel(a),b!==!1)},q.stop=function(){return this.paused(!0)},q.gotoandplay=function(a,b){return this.play(a,b)},q.gotoandstop=function(a,b){return this.pause(a,b)},q.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n=this._dirty?this.totalduration():this._totalduration,o=this._time,p=this._starttime,q=this._timescale,r=this._paused;if(a>=n-1e-7)this._totaltime=this._time=n,this._reversed||this._haspausedchild()||(f=!0,h="oncomplete",i=!!this._timeline.autoremovechildren,0===this._duration&&(0>=a&&a>=-1e-7||this._rawprevtime<0||this._rawprevtime===e)&&this._rawprevtime!==a&&this._first&&(i=!0,this._rawprevtime>e&&(h="onreversecomplete"))),this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,a=n+1e-4;else if(1e-7>a)if(this._totaltime=this._time=0,(0!==o||0===this._duration&&this._rawprevtime!==e&&(this._rawprevtime>0||0>a&&this._rawprevtime>=0))&&(h="onreversecomplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoremovechildren&&this._reversed?(i=f=!0,h="onreversecomplete"):this._rawprevtime>=0&&this._first&&(i=!0),this._rawprevtime=a;else{if(this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._starttime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(i=!0)}else{if(this._haspause&&!this._forcingplayhead&&!b){if(a>=o)for(d=this._first;d&&d._starttime<=a&&!l;)d._duration||"ispause"!==d.data||d.ratio||0===d._starttime&&0===this._rawprevtime||(l=d),d=d._next;else for(d=this._last;d&&d._starttime>=a&&!l;)d._duration||"ispause"===d.data&&d._rawprevtime>0&&(l=d),d=d._prev;l&&(this._time=a=l._starttime,this._totaltime=a+this._cycle*(this._totalduration+this._repeatdelay))}this._totaltime=this._time=this._rawprevtime=a}if(this._time!==o&&this._first||c||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==o&&a>0&&(this._active=!0),0===o&&this.vars.onstart&&(0===this._time&&this._duration||b||this._callback("onstart")),m=this._time,m>=o)for(d=this._first;d&&(g=d._next,m===this._time&&(!this._paused||r));)(d._active||d._starttime<=m&&!d._paused&&!d._gc)&&(l===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,m===this._time&&(!this._paused||r));){if(d._active||d._starttime<=o&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endtime()>this._time;)l.render(l._reversed?l.totalduration()-(a-l._starttime)*l._timescale:(a-l._starttime)*l._timescale,b,c),l=l._prev;l=null,this.pause()}d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)}d=g}this._onupdate&&(b||(j.length&&k(),this._callback("onupdate"))),h&&(this._gc||(p===this._starttime||q!==this._timescale)&&(0===this._time||n>=this.totalduration())&&(f&&(j.length&&k(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[h]&&this._callback(h)))}},q._haspausedchild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._haspausedchild())return!0;a=a._next}return!1},q.getchildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._starttime-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},q.recent=function(){return this._recent},q._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},q.shiftchildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._starttime>=c&&(e._starttime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},q._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.gettweensof(b):this.getchildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},q.clear=function(a){var b=this.getchildren(!1,!0,!0),c=b.length;for(this._time=this._totaltime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},q.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},q._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},q.totaltime=function(b,c,d){this._forcingplayhead=!0;var e=a.prototype.totaltime.apply(this,arguments);return this._forcingplayhead=!1,e},q.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timescale(this._duration/a),this):(this._dirty&&this.totalduration(),this._duration)},q.totalduration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalduration(),e._starttime>f&&this._sortchildren&&!e._paused?this.add(e,e._starttime-e._delay):f=e._starttime,e._starttime<0&&!e._paused&&(d-=e._starttime,this._timeline.smoothchildtiming&&(this._starttime+=e._starttime/this._timescale),this.shiftchildren(-e._starttime,!1,-9999999999),f=0),c=e._starttime+e._totalduration/e._timescale,c>d&&(d=c),e=b;this._duration=this._totalduration=d,this._dirty=!1}return this._totalduration}return a&&this.totalduration()?this.timescale(this._totalduration/a):this},q.paused=function(b){if(!b)for(var c=this._first,d=this._time;c;)c._starttime===d&&"ispause"===c.data&&(c._rawprevtime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},q.usesframes=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootframestimeline},q.rawtime=function(){return this._paused?this._totaltime:(this._timeline.rawtime()-this._starttime)*this._timescale},d},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(a){"use strict";var b=function(){return(_gsscope.greensockglobals||_gsscope)[a]};"function"==typeof define&&define.amd?define(["./tweenlite"],b):"undefined"!=typeof module&&module.exports&&(require("./tweenlite.js"),module.exports=b())}("timelinelite"); /* easing plugin */ /*! * version: 1.15.4 * date: 2016-05-24 * updates and docs at: http://greensock.com * * @license copyright (c) 2008-2016, greensock. all rights reserved. * this work is subject to the terms at http://greensock.com/standard-license or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com **/ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("easing.back",["easing.ease"],function(a){var b,c,d,e=_gsscope.greensockglobals||_gsscope,f=e.com.greensock,g=2*math.pi,h=math.pi/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeout:new b,easein:new c,easeinout:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,e.config=function(a){return new d(a)},d},o=l("back",n("backout",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("backin",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("backinout",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.slowmo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcend=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getratio=function(a){var b=a+(.5-a)*this._p;return athis._p3?this._calcend?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcend?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.steppedease",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=b.prototype=new a,q.constructor=b,q.getratio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},q.config=b.config=function(a){return new b(a)},c=i("easing.roughease",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?math.random():1/l*n,d=q?q.getratio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getratio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("bounce",j("bounceout",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("bouncein",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("bounceinout",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("circ",j("circout",function(a){return math.sqrt(1-(a-=1)*a)}),j("circin",function(a){return-(math.sqrt(1-a*a)-1)}),j("circinout",function(a){return(a*=2)<1?-.5*(math.sqrt(1-a*a)-1):.5*(math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getratio=c,f.config=function(a,b){return new e(a,b)},e},l("elastic",d("elasticout",function(a){return this._p1*math.pow(2,-10*a)*math.sin((a-this._p3)*this._p2)+1},.3),d("elasticin",function(a){return-(this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*this._p2))},.3),d("elasticinout",function(a){return(a*=2)<1?-.5*(this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*this._p2)):this._p1*math.pow(2,-10*(a-=1))*math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("expo",j("expoout",function(a){return 1-math.pow(2,-10*a)}),j("expoin",function(a){return math.pow(2,10*(a-1))-.001}),j("expoinout",function(a){return(a*=2)<1?.5*math.pow(2,10*(a-1)):.5*(2-math.pow(2,-10*(a-1)))})),l("sine",j("sineout",function(a){return math.sin(a*h)}),j("sinein",function(a){return-math.cos(a*h)+1}),j("sineinout",function(a){return-.5*(math.cos(math.pi*a)-1)})),i("easing.easelookup",{find:function(b){return a.map[b]}},!0),k(e.slowmo,"slowmo","ease,"),k(c,"roughease","ease,"),k(b,"steppedease","ease,"),o},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(){"use strict";var a=function(){return _gsscope.greensockglobals||_gsscope};"function"==typeof define&&define.amd?define(["../tweenlite"],a):"undefined"!=typeof module&&module.exports&&(require("../tweenlite.js"),module.exports=a())}(); /* css plugin */ /*! * version: 1.18.5 * date: 2016-05-24 * updates and docs at: http://greensock.com * * @license copyright (c) 2008-2016, greensock. all rights reserved. * this work is subject to the terms at http://greensock.com/standard-license or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com */ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("plugins.cssplugin",["plugins.tweenplugin","tweenlite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteprops.length=0,this.setratio=g.prototype.setratio},h=_gsscope._gsdefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.18.5",g.api=2,g.defaulttransformperspective=0,g.defaultskewtype="compensated",g.defaultsmoothorigin=!0,j="px",g.suffixmap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontsize:j,padding:j,margin:j,perspective:j,lineheight:""};var k,l,m,n,o,p,q=/(?:\-|\.|\b)(\d|\.|e\-)+/g,r=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,s=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-za-z0-9]*(?:%|\b)/gi,t=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,u=/(?:\d|\-|\+|=|#|\.)*/g,v=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,x=/alpha\(opacity *=.+?\)/i,y=/^(rgb|hsl)/,z=/([a-z])/g,a=/-([a-z])/gi,b=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,c=function(a,b){return b.touppercase()},d=/(?:left|right|width)/i,e=/(m11|m12|m21|m22)=[\d\-\.e]+/gi,f=/progid\:dximagetransform\.microsoft\.matrix\(.+?\)/i,g=/,(?=[^\)]*(?:\(|$))/gi,h=/[\s,\(]/i,i=math.pi/180,j=180/math.pi,k={},l=document,m=function(a){return l.createelementns?l.createelementns("http://www.w3.org/1999/xhtml",a):l.createelement(a)},n=m("div"),o=m("img"),p=g._internals={_specialprops:i},q=navigator.useragent,r=function(){var a=q.indexof("android"),b=m("a");return m=-1!==q.indexof("safari")&&-1===q.indexof("chrome")&&(-1===a||number(q.substr(a+8,1))>3),o=m&&number(q.substr(q.indexof("version/")+8,1))<6,n=-1!==q.indexof("firefox"),(/msie ([0-9]{1,}[\.0-9]{0,})/.exec(q)||/trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(q))&&(p=parsefloat(regexp.$1)),b?(b.style.csstext="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),s=function(a){return v.test("string"==typeof a?a:(a.currentstyle?a.currentstyle.filter:a.style.filter)||"")?parsefloat(regexp.$1)/100:1},t=function(a){window.console&&console.log(a)},u="",v="",w=function(a,b){b=b||n;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charat(0).touppercase()+a.substr(1),c=["o","moz","ms","ms","webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(v=3===d?"ms":c[d],u="-"+v.tolowercase()+"-",v+a):null},x=l.defaultview?l.defaultview.getcomputedstyle:function(){},y=g.getstyle=function(a,b,c,d,e){var f;return r||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||x(a))?f=c[b]||c.getpropertyvalue(b)||c.getpropertyvalue(b.replace(z,"-$1").tolowercase()):a.currentstyle&&(f=a.currentstyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):s(a)},z=p.converttopixels=function(a,c,d,e,f){if("px"===e||!e)return d;if("auto"===e||!d)return 0;var h,i,j,k=d.test(c),l=a,m=n.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"%"===e&&-1!==c.indexof("border"))h=d/100*(k?a.clientwidth:a.clientheight);else{if(m.csstext="border:0 solid red;position:"+y(a,"position")+";line-height:0;","%"!==e&&l.appendchild&&"v"!==e.charat(0)&&"rem"!==e)m[k?"borderleftwidth":"bordertopwidth"]=d+e;else{if(l=a.parentnode||l.body,i=l._gscache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendchild(n),h=parsefloat(n[k?"offsetwidth":"offsetheight"]),l.removechild(n),k&&"%"===e&&g.cachewidths!==!1&&(i=l._gscache=l._gscache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=z(a,c,d,e,!0))}return o&&(h/=100),n?-h:h},$=p.calculateoffset=function(a,b,c){if("absolute"!==y(a,"position",c))return 0;var d="left"===b?"left":"top",e=y(a,"margin"+d,c);return a["offset"+d]-(z(a,b,parsefloat(e),e.replace(u,""))||0)},_=function(a,b){var c,d,e,f={};if(b=b||x(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexof("-transform")||aa===e)&&(f[e.replace(a,c)]=b.getpropertyvalue(e));else for(c in b)(-1===c.indexof("transform")||za===c)&&(f[c]=b[c]);else if(b=a.currentstyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(a,c)]=b[c]);return r||(f.opacity=s(a)),d=na(a,b,!1),f.rotation=d.rotation,f.skewx=d.skewx,f.scalex=d.scalex,f.scaley=d.scaley,f.x=d.x,f.y=d.y,ca&&(f.z=d.z,f.rotationx=d.rotationx,f.rotationy=d.rotationy,f.scalez=d.scalez),f.filters&&delete f.filters,f},aa=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"csstext"!==g&&"length"!==g&&isnan(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexof("origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(t,"")?f:0:$(a,g),void 0!==j[g]&&(h=new pa(j,g,j[g],h)));if(d)for(g in d)"classname"!==g&&(i[g]=d[g]);return{difs:i,firstmpt:h}},ba={width:["left","right"],height:["top","bottom"]},ca=["marginleft","marginright","margintop","marginbottom"],da=function(a,b,c){if("svg"===(a.nodename+"").tolowercase())return(c||x(a))[b]||0;if(a.getbbox&&ka(a))return a.getbbox()[b]||0;var d=parsefloat("width"===b?a.offsetwidth:a.offsetheight),e=ba[b],f=e.length;for(c=c||x(a,null);--f>-1;)d-=parsefloat(y(a,"padding"+e[f],c,!0))||0,d-=parsefloat(y(a,"border"+e[f]+"width",c,!0))||0;return d},ea=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexof("left")?"0%":-1!==a.indexof("right")?"100%":d[0],f=-1!==a.indexof("top")?"0%":-1!==a.indexof("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexof("%"),b.oyp=-1!==f.indexof("%"),b.oxr="="===e.charat(1),b.oyr="="===f.charat(1),b.ox=parsefloat(e.replace(t,"")),b.oy=parsefloat(f.replace(t,"")),b.v=a),b||a},fa=function(a,b){return"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*parsefloat(a.substr(2)):parsefloat(a)-parsefloat(b)||0},ga=function(a,b){return null==a?b:"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*parsefloat(a.substr(2))+b:parsefloat(a)||0},ha=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charat(1),g=(i?parseint(a.charat(0)+"1",10)*parsefloat(f[0].substr(2)):parsefloat(f[0]))*(-1===a.indexof("rad")?1:j)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexof("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexof("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexof("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},ia={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]},ja=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},ka=g.parsecolor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charat(a.length-1)&&(a=a.substr(0,a.length-1)),ia[a])c=ia[a];else if("#"===a.charat(0))4===a.length&&(d=a.charat(1),e=a.charat(2),f=a.charat(3),a="#"+d+d+e+e+f+f),a=parseint(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(q),b){if(-1!==a.indexof("="))return a.match(r)}else g=number(c[0])%360/360,h=number(c[1])/100,i=number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=number(a[3])),c[0]=ja(g+1/3,d,e),c[1]=ja(g,d,e),c[2]=ja(g-1/3,d,e);else c=a.match(q)||ia.transparent;c[0]=number(c[0]),c[1]=number(c[1]),c[2]=number(c[2]),c.length>3&&(c[3]=number(c[3]))}else c=ia.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=math.max(d,e,f),k=math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},la=function(a,b){var c,d,e,f=a.match(ma)||[],g=0,h=f.length?"":a;for(c=0;c0?g[0].replace(q,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&g.test(a)){for(o=a.replace(g,"|").split("|"),n=0;nn--)for(;++nm--)for(;++mi;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},pa=(p._setpluginratio=function(a){this.plugin.setratio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstmpt,j=1e-6;i;)b=h[i.v],i.r?b=math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autorotate&&(g.autorotate.rotation=h.rotation),1===a||0===a)for(i=g.firstmpt,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new pa(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstmpt:j,pt:k}},p.cssproptween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof qa||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ra=function(a,b,c,d,e,f){var g=new qa(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},sa=g.parsecomplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"",h=new qa(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&ma.test(d+c)&&(d=[c,d],g.colorstringfilter(d),c=d[0],d=d[1]);var m,n,o,p,s,t,u,v,w,x,y,z,a,b=c.split(", ").join(",").split(" "),c=d.split(", ").join(",").split(" "),d=b.length,e=k!==!1;for((-1!==d.indexof(",")||-1!==c.indexof(","))&&(b=b.join(" ").replace(g,", ").split(" "),c=c.join(" ").replace(g,", ").split(" "),d=b.length),d!==c.length&&(b=(f||"").split(" "),d=b.length),h.plugin=j,h.setratio=l,ma.lastindex=0,m=0;d>m;m++)if(p=b[m],s=c[m],v=parsefloat(p),v||0===v)h.appendxtra("",v,fa(s,v),s.replace(r,""),e&&-1!==s.indexof("px"),!0);else if(e&&ma.test(p))z=s.indexof(")")+1,z=")"+(z?s.substr(z):""),a=-1!==s.indexof("hsl")&&r,p=ka(p,a),s=ka(s,a),w=p.length+s.length>6,w&&!r&&0===s[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(c[m]).join("transparent")):(r||(w=!1),a?h.appendxtra(w?"hsla(":"hsl(",p[0],fa(s[0],p[0]),",",!1,!0).appendxtra("",p[1],fa(s[1],p[1]),"%,",!1).appendxtra("",p[2],fa(s[2],p[2]),w?"%,":"%"+z,!1):h.appendxtra(w?"rgba(":"rgb(",p[0],s[0]-p[0],",",!0,!0).appendxtra("",p[1],s[1]-p[1],",",!0).appendxtra("",p[2],s[2]-p[2],w?",":z,!0),w&&(p=p.length<4?1:p[3],h.appendxtra("",p,(s.length<4?1:s[3])-p,z,!1))),ma.lastindex=0;else if(t=p.match(q)){if(u=s.match(r),!u||u.length!==t.length)return h;for(o=0,n=0;n0;)j["xn"+ta]=0,j["xs"+ta]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setratio=j.rxp=null,j.appendxtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setratio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new qa(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var ua=function(a,b){b=b||{},this.p=b.prefix?w(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||na(b.defaultvalue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultvalue,this.pr=b.priority||0},va=p._registercomplexspecialprop=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultvalue;for(c=c||[g],d=0;dh.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexof(m),l=c.indexof(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return sa(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parsecomplex(a.style,this.format(y(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerspecialprop=function(a,b,c){va(a,{parser:function(a,d,e,f,g,h,i){var j=new qa(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setratio=b(a,d,f._tween,e),j},priority:c})},g.usesvgtransformattr=m||n;var xa,ya="scalex,scaley,scalez,x,y,z,skewx,skewy,rotation,rotationx,rotationy,perspective,xpercent,ypercent".split(","),za=w("transform"),aa=u+"transform",ba=w("transformorigin"),ca=null!==w("perspective"),da=p.transform=function(){this.perspective=parsefloat(g.defaulttransformperspective)||0,this.force3d=g.defaultforce3d!==!1&&ca?g.defaultforce3d||"auto":!1},ea=window.svgelement,fa=function(a,b,c){var d,e=l.createelementns("http://www.w3.org/2000/svg",a),f=/([a-z])([a-z])/g;for(d in c)e.setattributens(null,d.replace(f,"$1-$2").tolowercase(),c[d]);return b.appendchild(e),e},ga=l.documentelement,ha=function(){var a,b,c,d=p||/android/i.test(q)&&!window.chrome;return l.createelementns&&!d&&(a=fa("svg",ga),b=fa("rect",a,{width:100,height:50,x:100}),c=b.getboundingclientrect().width,b.style[ba]="50% 50%",b.style[za]="scalex(0.5)",d=c===b.getboundingclientrect().width&&!(n&&ca),ga.removechild(a)),d}(),ia=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gstransform,w=ma(a,!0);v&&(t=v.xorigin,u=v.yorigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getbbox(),b=ea(b).split(" "),h=[(-1!==b[0].indexof("%")?parsefloat(b[0])/100*n.width:parsefloat(b[0]))+n.x,(-1!==b[1].indexof("%")?parsefloat(b[1])/100*n.height:parsefloat(b[1]))+n.y]),c.xorigin=k=parsefloat(h[0]),c.yorigin=l=parsefloat(h[1]),d&&w!==la&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xorigin=h[0]=i,l=c.yorigin=h[1]=j),v&&(f&&(c.xoffset=v.xoffset,c.yoffset=v.yoffset,v=c),e||e!==!1&&g.defaultsmoothorigin!==!1?(i=k-t,j=l-u,v.xoffset+=i*w[0]+j*w[2]-i,v.yoffset+=i*w[1]+j*w[3]-j):v.xoffset=v.yoffset=0),f||a.setattribute("data-svg-origin",h.join(" "))},ja=function(a){try{return a.getbbox()}catch(a){}},ka=function(a){return!!(ea&&a.getbbox&&a.getctm&&ja(a)&&(!a.parentnode||a.parentnode.getbbox&&a.parentnode.getctm))},la=[1,0,0,1,0,0],ma=function(a,b){var c,d,e,f,g,h,i=a._gstransform||new da,j=1e5,k=a.style;if(za?d=y(a,aa,null,!0):a.currentstyle&&(d=a.currentstyle.filter.match(e),d=d&&4===d.length?[d[0].substr(4),number(d[2].substr(4)),number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,c&&za&&((h="none"===x(a).display)||!a.parentnode)&&(h&&(f=k.display,k.display="block"),a.parentnode||(g=1,ga.appendchild(a)),d=y(a,aa,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&ra(k,"display"),g&&ga.removechild(a)),(i.svg||a.getbbox&&ka(a))&&(c&&-1!==(k[za]+"").indexof("matrix")&&(d=k[za],c=0),e=a.getattribute("transform"),c&&e&&(-1!==e.indexof("matrix")?(d=e,c=0):-1!==e.indexof("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return la;for(e=(d||"").match(q)||[],ta=e.length;--ta>-1;)f=number(e[ta]),e[ta]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},na=p.gettransform=function(a,c,d,e){if(a._gstransform&&d&&!e)return a._gstransform;var f,h,i,j,k,l,m=d?a._gstransform||new da:new da,n=m.scalex<0,o=2e-5,p=1e5,q=ca?parsefloat(y(a,ba,c,!1,"0 0 0").split(" ")[2])||m.zorigin||0:0,r=parsefloat(g.defaulttransformperspective)||0;if(m.svg=!(!a.getbbox||!ka(a)),m.svg&&(ia(a,y(a,ba,c,!1,"50% 50%")+"",m,a.getattribute("data-svg-origin")),xa=g.usesvgtransformattr||ha),f=ma(a),f!==la){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],a=f[3],b=f[4],c=f[5],d=f[6],e=f[7],f=f[8],g=f[9],h=f[10],i=f[12],k=f[13],l=f[14],m=f[11],n=math.atan2(d,h);m.zorigin&&(l=-m.zorigin,i=f*l-f[12],k=g*l-f[13],l=h*l+m.zorigin-f[14]),m.rotationx=n*j,n&&(v=math.cos(-n),w=math.sin(-n),s=b*v+f*w,t=c*v+g*w,u=d*v+h*w,f=b*-w+f*v,g=c*-w+g*v,h=d*-w+h*v,m=e*-w+m*v,b=s,c=t,d=u),n=math.atan2(-z,h),m.rotationy=n*j,n&&(v=math.cos(-n),w=math.sin(-n),s=x*v-f*w,t=y*v-g*w,u=z*v-h*w,g=y*w+g*v,h=z*w+h*v,m=a*w+m*v,x=s,y=t,z=u),n=math.atan2(y,x),m.rotation=n*j,n&&(v=math.cos(-n),w=math.sin(-n),x=x*v+b*w,t=y*v+c*w,c=y*-w+c*v,d=z*-w+d*v,y=t),m.rotationx&&math.abs(m.rotationx)+math.abs(m.rotation)>359.9&&(m.rotationx=m.rotation=0,m.rotationy=180-m.rotationy),m.scalex=(math.sqrt(x*x+y*y)*p+.5|0)/p,m.scaley=(math.sqrt(c*c+g*g)*p+.5|0)/p,m.scalez=(math.sqrt(d*d+h*h)*p+.5|0)/p,m.rotationx||m.rotationy?m.skewx=0:(m.skewx=b||c?math.atan2(b,c)*j+m.rotation:m.skewx||0,math.abs(m.skewx)>90&&math.abs(m.skewx)<270&&(n?(m.scalex*=-1,m.skewx+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaley*=-1,m.skewx+=m.skewx<=0?180:-180))),m.perspective=m?1/(0>m?-m:m):0,m.x=i,m.y=k,m.z=l,m.svg&&(m.x-=m.xorigin-(m.xorigin*x-m.yorigin*b),m.y-=m.yorigin-(m.yorigin*y-m.xorigin*c))}else if(!ca||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationx&&!m.rotationy){var o=f.length>=6,p=o?f[0]:1,q=f[1]||0,r=f[2]||0,s=o?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=math.sqrt(p*p+q*q),j=math.sqrt(s*s+r*r),k=p||q?math.atan2(q,p)*j:m.rotation||0,l=r||s?math.atan2(r,s)*j+k:m.skewx||0,math.abs(l)>90&&math.abs(l)<270&&(n?(i*=-1,l+=0>=k?180:-180,k+=0>=k?180:-180):(j*=-1,l+=0>=l?180:-180)),m.scalex=i,m.scaley=j,m.rotation=k,m.skewx=l,ca&&(m.rotationx=m.rotationy=m.z=0,m.perspective=r,m.scalez=1),m.svg&&(m.x-=m.xorigin-(m.xorigin*p+m.yorigin*r),m.y-=m.yorigin-(m.xorigin*q+m.yorigin*s))}m.zorigin=q;for(h in m)m[h]-o&&(m[h]=0)}return d&&(a._gstransform=m,m.svg&&(xa&&a.style[za]?b.delayedcall(.001,function(){ra(a.style,za)}):!xa&&a.getattribute("transform")&&b.delayedcall(.001,function(){a.removeattribute("transform")}))),m},oa=function(a){var b,c,d=this.data,e=-d.rotation*i,f=e+d.skewx*i,g=1e5,h=(math.cos(e)*d.scalex*g|0)/g,i=(math.sin(e)*d.scalex*g|0)/g,j=(math.sin(f)*-d.scaley*g|0)/g,k=(math.cos(f)*d.scaley*g|0)/g,l=this.t.style,m=this.t.currentstyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetwidth,r=this.t.offsetheight,s="absolute"!==m.position,t="progid:dximagetransform.microsoft.matrix(m11="+h+", m12="+i+", m21="+j+", m22="+k,w=d.x+q*d.xpercent/100,x=d.y+r*d.ypercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,w+=n-(n*h+o*i),x+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", dx="+(n-(n*h+o*i)+w)+", dy="+(o-(n*j+o*k)+x)+")"):t+=", sizingmethod='auto expand')",-1!==b.indexof("dximagetransform.microsoft.matrix(")?l.filter=b.replace(f,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexof("dx=0, dy=0")||v.test(b)&&100!==parsefloat(regexp.$1)||-1===b.indexof(b.indexof("alpha"))&&l.removeattribute("filter")),!s){var y,z,a,b=8>p?1:-1;for(n=d.ieoffsetx||0,o=d.ieoffsety||0,d.ieoffsetx=math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+w),d.ieoffsety=math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+x),ta=0;4>ta;ta++)z=ca[ta],y=m[z],c=-1!==y.indexof("px")?parsefloat(y):z(this.t,z,parsefloat(y),y.replace(u,""))||0,a=c!==d[z]?2>ta?-d.ieoffsetx:-d.ieoffsety:2>ta?n-d.ieoffsetx:o-d.ieoffsety,l[z]=(d[z]=math.round(c-a*(0===ta||2===ta?1:b)))+"px"}}},pa=p.set3dtransformratio=p.settransformratio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,a=this.t.style,b=z.rotation,c=z.rotationx,d=z.rotationy,e=z.scalex,f=z.scaley,g=z.scalez,h=z.x,j=z.y,k=z.z,l=z.svg,m=z.perspective,n=z.force3d;if(((1===a||0===a)&&"auto"===n&&(this.tween._totaltime===this.tween._totalduration||!this.tween._totaltime)||!n)&&!k&&!m&&!d&&!c&&1===g||xa&&l||!ca)return void(b||z.skewx||l?(b*=i,x=z.skewx*i,y=1e5,b=math.cos(b)*e,e=math.sin(b)*e,c=math.sin(b-x)*-f,f=math.cos(b-x)*f,x&&"simple"===z.skewtype&&(s=math.tan(x),s=math.sqrt(1+s*s),c*=s,f*=s,z.skewy&&(b*=s,e*=s)),l&&(h+=z.xorigin-(z.xorigin*b+z.yorigin*c)+z.xoffset,j+=z.yorigin-(z.xorigin*e+z.yorigin*f)+z.yoffset,xa&&(z.xpercent||z.ypercent)&&(p=this.t.getbbox(),h+=.01*z.xpercent*p.width,j+=.01*z.ypercent*p.height),p=1e-6,p>h&&h>-p&&(h=0),p>j&&j>-p&&(j=0)),u=(b*y|0)/y+","+(e*y|0)/y+","+(c*y|0)/y+","+(f*y|0)/y+","+h+","+j+")",l&&xa?this.t.setattribute("transform","matrix("+u):a[za]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix(":"matrix(")+u):a[za]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix(":"matrix(")+e+",0,0,"+f+","+h+","+j+")");if(n&&(p=1e-4,p>e&&e>-p&&(e=g=2e-5),p>f&&f>-p&&(f=g=2e-5),!m||z.z||z.rotationx||z.rotationy||(m=0)),b||z.skewx)b*=i,q=b=math.cos(b),r=e=math.sin(b),z.skewx&&(b-=z.skewx*i,q=math.cos(b),r=math.sin(b),"simple"===z.skewtype&&(s=math.tan(z.skewx*i),s=math.sqrt(1+s*s),q*=s,r*=s,z.skewy&&(b*=s,e*=s))),c=-r,f=q;else{if(!(d||c||1!==g||m||l))return void(a[za]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) translate3d(":"translate3d(")+h+"px,"+j+"px,"+k+"px)"+(1!==e||1!==f?" scale("+e+","+f+")":""));b=f=1,c=e=0}j=1,d=g=h=i=k=l=0,m=m?-1/m:0,o=z.zorigin,p=1e-6,v=",",w="0",b=d*i,b&&(q=math.cos(b),r=math.sin(b),h=-r,k=m*-r,d=b*r,g=e*r,j=q,m*=q,b*=q,e*=q),b=c*i,b&&(q=math.cos(b),r=math.sin(b),s=c*q+d*r,t=f*q+g*r,i=j*r,l=m*r,d=c*-r+d*q,g=f*-r+g*q,j*=q,m*=q,c=s,f=t),1!==g&&(d*=g,g*=g,j*=g,m*=g),1!==f&&(c*=f,f*=f,i*=f,l*=f),1!==e&&(b*=e,e*=e,h*=e,k*=e),(o||l)&&(o&&(h+=d*-o,j+=g*-o,k+=j*-o+o),l&&(h+=z.xorigin-(z.xorigin*b+z.yorigin*c)+z.xoffset,j+=z.yorigin-(z.xorigin*e+z.yorigin*f)+z.yoffset),p>h&&h>-p&&(h=w),p>j&&j>-p&&(j=w),p>k&&k>-p&&(k=0)),u=z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix3d(":"matrix3d(",u+=(p>b&&b>-p?w:b)+v+(p>e&&e>-p?w:e)+v+(p>h&&h>-p?w:h),u+=v+(p>k&&k>-p?w:k)+v+(p>c&&c>-p?w:c)+v+(p>f&&f>-p?w:f),c||d||1!==g?(u+=v+(p>i&&i>-p?w:i)+v+(p>l&&l>-p?w:l)+v+(p>d&&d>-p?w:d),u+=v+(p>g&&g>-p?w:g)+v+(p>j&&j>-p?w:j)+v+(p>m&&m>-p?w:m)+v):u+=",0,0,0,0,1,0,",u+=h+v+j+v+k+v+(m?1+-k/m:1)+")",a[za]=u};j=da.prototype,j.x=j.y=j.z=j.skewx=j.skewy=j.rotation=j.rotationx=j.rotationy=j.zorigin=j.xpercent=j.ypercent=j.xoffset=j.yoffset=0,j.scalex=j.scaley=j.scalez=1,va("transform,scale,scalex,scaley,scalez,x,y,z,rotation,rotationx,rotationy,rotationz,skewx,skewy,shortrotation,shortrotationx,shortrotationy,shortrotationz,transformorigin,svgorigin,transformperspective,directionalrotation,parsetransform,force3d,skewtype,xpercent,ypercent,smoothorigin",{parser:function(a,b,c,d,f,h,i){if(d._lastparsedtransform===i)return f;d._lastparsedtransform=i;var j,k,l,m,n,o,p,q,r,s=a._gstransform,t=a.style,u=1e-6,v=ya.length,w=i,x={},y="transformorigin",z=na(a,e,!0,i.parsetransform);if(d._transform=z,"string"==typeof w.transform&&za)k=n.style,k[za]=w.transform,k.display="block",k.position="absolute",l.body.appendchild(n),j=na(n,null,!1),z.svg&&(p=z.xorigin,q=z.yorigin,j.x-=z.xoffset,j.y-=z.yoffset,(w.transformorigin||w.svgorigin)&&(l={},ia(a,ea(w.transformorigin),l,w.svgorigin,w.smoothorigin,!0),p=l.xorigin,q=l.yorigin,j.x-=l.xoffset-z.xoffset,j.y-=l.yoffset-z.yoffset),(p||q)&&(r=ma(n,!0),j.x-=p-(p*r[0]+q*r[2]),j.y-=q-(p*r[1]+q*r[3]))),l.body.removechild(n),j.perspective||(j.perspective=z.perspective),null!=w.xpercent&&(j.xpercent=ga(w.xpercent,z.xpercent)),null!=w.ypercent&&(j.ypercent=ga(w.ypercent,z.ypercent));else if("object"==typeof w){if(j={scalex:ga(null!=w.scalex?w.scalex:w.scale,z.scalex),scaley:ga(null!=w.scaley?w.scaley:w.scale,z.scaley),scalez:ga(w.scalez,z.scalez),x:ga(w.x,z.x),y:ga(w.y,z.y),z:ga(w.z,z.z),xpercent:ga(w.xpercent,z.xpercent),ypercent:ga(w.ypercent,z.ypercent),perspective:ga(w.transformperspective,z.perspective)},o=w.directionalrotation,null!=o)if("object"==typeof o)for(k in o)w[k]=o[k];else w.rotation=o;"string"==typeof w.x&&-1!==w.x.indexof("%")&&(j.x=0,j.xpercent=ga(w.x,z.xpercent)),"string"==typeof w.y&&-1!==w.y.indexof("%")&&(j.y=0,j.ypercent=ga(w.y,z.ypercent)),j.rotation=ha("rotation"in w?w.rotation:"shortrotation"in w?w.shortrotation+"_short":"rotationz"in w?w.rotationz:z.rotation-z.skewy,z.rotation-z.skewy,"rotation",x),ca&&(j.rotationx=ha("rotationx"in w?w.rotationx:"shortrotationx"in w?w.shortrotationx+"_short":z.rotationx||0,z.rotationx,"rotationx",x),j.rotationy=ha("rotationy"in w?w.rotationy:"shortrotationy"in w?w.shortrotationy+"_short":z.rotationy||0,z.rotationy,"rotationy",x)),j.skewx=ha(w.skewx,z.skewx-z.skewy),(j.skewy=ha(w.skewy,z.skewy))&&(j.skewx+=j.skewy,j.rotation+=j.skewy)}for(ca&&null!=w.force3d&&(z.force3d=w.force3d,n=!0),z.skewtype=w.skewtype||z.skewtype||g.defaultskewtype,m=z.force3d||z.z||z.rotationx||z.rotationy||j.z||j.rotationx||j.rotationy||j.perspective,m||null==w.scale||(j.scalez=1);--v>-1;)c=ya[v],l=j[c]-z[c],(l>u||-u>l||null!=w[c]||null!=k[c])&&(n=!0,f=new qa(z,c,z[c],l,f),c in x&&(f.e=x[c]),f.xs0=0,f.plugin=h,d._overwriteprops.push(f.n));return l=w.transformorigin,z.svg&&(l||w.svgorigin)&&(p=z.xoffset,q=z.yoffset,ia(a,ea(l),j,w.svgorigin,w.smoothorigin),f=ra(z,"xorigin",(s?z:j).xorigin,j.xorigin,f,y),f=ra(z,"yorigin",(s?z:j).yorigin,j.yorigin,f,y),(p!==z.xoffset||q!==z.yoffset)&&(f=ra(z,"xoffset",s?p:z.xoffset,z.xoffset,f,y),f=ra(z,"yoffset",s?q:z.yoffset,z.yoffset,f,y)),l=xa?null:"0px 0px"),(l||ca&&m&&z.zorigin)&&(za?(n=!0,c=ba,l=(l||y(a,c,e,!1,"50% 50%"))+"",f=new qa(t,c,0,0,f,-1,y),f.b=t[c],f.plugin=h,ca?(k=z.zorigin,l=l.split(" "),z.zorigin=(l.length>2&&(0===k||"0px"!==l[2])?parsefloat(l[2]):k)||0,f.xs0=f.e=l[0]+" "+(l[1]||"50%")+" 0px",f=new qa(z,"zorigin",0,0,f,-1,f.n),f.b=k,f.xs0=f.e=z.zorigin):f.xs0=f.e=l):ea(l+"",z)),n&&(d._transformtype=z.svg&&xa||!m&&3!==this._transformtype?2:3),f},prefix:!0}),va("boxshadow",{defaultvalue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),va("borderradius",{defaultvalue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["bordertopleftradius","bordertoprightradius","borderbottomrightradius","borderbottomleftradius"],z=a.style;for(q=parsefloat(a.offsetwidth),r=parsefloat(a.offsetheight),i=b.split(" "),j=0;jp?1:0))||""):(p=parsefloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=z(a,"borderleft",o,t),w=z(a,"bordertop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=z(a,"borderleft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parsefloat(m)+p+s,k=parsefloat(l)+p+s)),g=sa(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:na("0px 0px 0px 0px",!1,!0)}),va("borderbottomleftradius,borderbottomrightradius,bordertopleftradius,bordertoprightradius",{defaultvalue:"0px",parser:function(a,b,c,d,f,g){return sa(a.style,c,this.format(y(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:na("0px 0px",!1,!0)}),va("backgroundposition",{defaultvalue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||x(a,null),q=this.format((o?p?o.getpropertyvalue(n+"-x")+" "+o.getpropertyvalue(n+"-y"):o.getpropertyvalue(n):a.currentstyle.backgroundpositionx+" "+a.currentstyle.backgroundpositiony)||"0 0"),r=this.format(b);if(-1!==q.indexof("%")!=(-1!==r.indexof("%"))&&r.split(",").length<2&&(m=y(a,"backgroundimage").replace(b,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),o.setattribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexof("%"),k!==(-1!==i[j].indexof("%"))&&(l=0===j?a.offsetwidth-o.width:a.offsetheight-o.height,h[j]=k?parsefloat(q)/100*l+"px":parsefloat(q)/l*100+"%");q=h.join(" ")}return this.parsecomplex(a.style,q,r,f,g)},formatter:ea}),va("backgroundsize",{defaultvalue:"0 0",formatter:ea}),va("perspective",{defaultvalue:"0px",prefix:!0}),va("perspectiveorigin",{defaultvalue:"50% 50%",prefix:!0}),va("transformstyle",{prefix:!0}),va("backfacevisibility",{prefix:!0}),va("userselect",{prefix:!0}),va("margin",{parser:oa("margintop,marginright,marginbottom,marginleft")}),va("padding",{parser:oa("paddingtop,paddingright,paddingbottom,paddingleft")}),va("clip",{defaultvalue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentstyle,j=8>p?" ":",",h="rect("+i.cliptop+j+i.clipright+j+i.clipbottom+j+i.clipleft+")",b=this.format(b).split(",").join(j)):(h=this.format(y(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parsecomplex(a.style,h,b,f,g)}}),va("textshadow",{defaultvalue:"0px 0px 0px #999",color:!0,multi:!0}),va("autoround,strictunits",{parser:function(a,b,c,d,e){return e}}),va("border",{defaultvalue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=y(a,"bordertopwidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(u,"");return"px"!==j&&(h=parsefloat(h)/z(a,"bordertopwidth",1,j)+j),this.parsecomplex(a.style,this.format(h+" "+y(a,"bordertopstyle",e,!1,"solid")+" "+y(a,"bordertopcolor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(ma)||["#000"])[0]}}),va("borderwidth",{parser:oa("bordertopwidth,borderrightwidth,borderbottomwidth,borderleftwidth")}),va("float,cssfloat,stylefloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssfloat"in g?"cssfloat":"stylefloat";return new qa(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var qa=function(a){var b,c=this.t,d=c.filter||y(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexof("atrix(")&&-1===d.indexof("radient(")&&-1===d.indexof("oader(")?(c.removeattribute("filter"),b=!y(this.data,"filter")):(c.filter=d.replace(x,""), b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexof("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(v,"opacity="+e))};va("opacity,alpha,autoalpha",{defaultvalue:"1",parser:function(a,b,c,d,f,g){var h=parsefloat(y(a,"opacity",e,!1,"1")),i=a.style,j="autoalpha"===c;return"string"==typeof b&&"="===b.charat(1)&&(b=("-"===b.charat(0)?-1:1)*parsefloat(b.substr(2))+h),j&&1===h&&"hidden"===y(a,"visibility",e)&&0!==b&&(h=0),r?f=new qa(i,"opacity",h,b-h,f):(f=new qa(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setratio=qa),j&&(f=new qa(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteprops.push(f.n),d._overwriteprops.push(c)),f}});var ra=function(a,b){b&&(a.removeproperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeproperty(b.replace(z,"-$1").tolowercase())):a.removeattribute(b))},sa=function(a){if(this.t._gsclasspt=this,1===a||0===a){this.t.setattribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:ra(c,b.p),b=b._next;1===a&&this.t._gsclasspt===this&&(this.t._gsclasspt=null)}else this.t.getattribute("class")!==this.e&&this.t.setattribute("class",this.e)};va("classname",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getattribute("class")||"",p=a.style.csstext;if(g=f._classnamept=new qa(a,d,0,0,g,2),g.setratio=sa,g.pr=-11,c=!0,g.b=o,k=_(a,e),l=a._gsclasspt){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setratio(1)}return a._gsclasspt=g,g.e="="!==b.charat(1)?b:o.replace(new regexp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charat(0)?" "+b.substr(2):""),a.setattribute("class",g.e),j=aa(a,k,_(a),i,m),a.setattribute("class",o),g.data=j.firstmpt,a.style.csstext=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var ta=function(a){if((1===a||0===a)&&this.data._totaltime===this.data._totalduration&&"isfromstart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.csstext="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformorigin"===c?ba:i[c].p),ra(g,c);e&&(ra(g,za),f=this.t._gstransform,f&&(f.svg&&(this.t.removeattribute("data-svg-origin"),this.t.removeattribute("transform")),delete this.t._gstransform))}};for(va("clearprops",{parser:function(a,b,d,e,f){return f=new qa(a,d,0,0,f,2),f.setratio=ta,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwprops,physicsprops,physics2d".split(","),ta=j.length;ta--;)wa(j[ta]);j=g.prototype,j._firstpt=j._lastparsedtransform=j._transform=null,j._oninittween=function(a,b,h){if(!a.nodetype)return!1;this._target=a,this._tween=h,this._vars=b,k=b.autoround,c=!1,d=b.suffixmap||g.suffixmap,e=x(a,""),f=this._overwriteprops;var j,n,p,q,r,s,t,u,v,x=a.style;if(l&&""===x.zindex&&(j=y(a,"zindex",e),("auto"===j||""===j)&&this._addlazyset(x,"zindex",0)),"string"==typeof b&&(q=x.csstext,j=_(a,e),x.csstext=q+";"+b,j=aa(a,j,_(a)).difs,!r&&w.test(b)&&(j.opacity=parsefloat(regexp.$1)),b=j,x.csstext=q),b.classname?this._firstpt=n=i.classname.parse(a,b.classname,"classname",this,null,null,b):this._firstpt=n=this.parse(a,b,null),this._transformtype){for(v=3===this._transformtype,za?m&&(l=!0,""===x.zindex&&(t=y(a,"zindex",e),("auto"===t||""===t)&&this._addlazyset(x,"zindex",0)),o&&this._addlazyset(x,"webkitbackfacevisibility",this._vars.webkitbackfacevisibility||(v?"visible":"hidden"))):x.zoom=1,p=n;p&&p._next;)p=p._next;u=new qa(a,"transform",0,0,null,2),this._linkcssp(u,null,p),u.setratio=za?pa:oa,u.data=this._transform||na(a,e,!0),u.tween=h,u.pr=-1,f.pop()}if(c){for(;n;){for(s=n._next,p=q;p&&p.pr>n.pr;)p=p._next;(n._prev=p?p._prev:r)?n._prev._next=n:q=n,(n._next=p)?p._prev=n:r=n,n=s}this._firstpt=q}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,q,r,s=a.style;for(g in b)n=b[g],h=i[g],h?c=h.parse(a,n,g,this,c,f,b):(m=y(a,g,e)+"",q="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexof("color")||q&&y.test(n)?(q||(n=ka(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=sa(s,g,m,n,!0,"transparent",c,0,f)):q&&h.test(n)?c=sa(s,g,m,n,!0,null,c,0,f):(j=parsefloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=da(a,g,e),o="px"):"left"===g||"top"===g?(j=$(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),r=q&&"="===n.charat(1),r?(l=parseint(n.charat(0)+"1",10),n=n.substr(2),l*=parsefloat(n),p=n.replace(u,"")):(l=parsefloat(n),p=q?n.replace(u,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(r?l+j:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&j&&(j=z(a,g,j,o),"%"===p?(j/=z(a,g,100,"%")/100,b.strictunits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=z(a,g,1,p):"px"!==p&&(l=z(a,g,l,p),p="px"),r&&(l||0===l)&&(n=l+j+p)),r&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==s[g]&&(n||n+""!="nan"&&null!=n)?(c=new qa(s,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexof("style")?n:m):t("invalid "+g+" tween value: "+b[g]):(c=new qa(s,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zindex"===g),0,m,n),c.xs0=p))),f&&c&&!c.plugin&&(c.plugin=f);return c},j.setratio=function(a){var b,c,d,e=this._firstpt,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawprevtime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d-1;)va(a[e],b,c);else for(d=a.childnodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(_(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childnodes.length||va(f,b,c)};return g.cascadeto=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedprops;for(a=i._targets||i.target,va(a,k,m),i.render(c,!0,!0),va(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=aa(m[e],k[e],l[e]),f.firstmpt){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromto(m[e],c,h,f))}return j},a.activate([g]),g},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(a){"use strict";var b=function(){return(_gsscope.greensockglobals||_gsscope)[a]};"function"==typeof define&&define.amd?define(["../tweenlite"],b):"undefined"!=typeof module&&module.exports&&(require("../tweenlite.js"),module.exports=b())}("cssplugin"); /* split text util */ /*! * version: 0.3.5 * date: 2016-05-24 * updates and docs at: http://greensock.com * * @license copyright (c) 2008-2016, greensock. all rights reserved. * splittext is a club greensock membership benefit; you must have a valid membership to use * this code without violating the terms of use. visit http://www.greensock.com/club/ to sign up or get more details. * this work is subject to the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com */ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;!function(a){"use strict";var b=a.greensockglobals||a,c=function(a){var c,d=a.split("."),e=b;for(c=0;cb;b++)if(c=a[b],j(c))for(d=c.length,d=0;d||
)/gi,o=f.all&&!f.addeventlistener,p="
":">")}},r=d.splittext=b.splittext=function(a,b){if("string"==typeof a&&(a=r.selector(a)),!a)throw"cannot split a null element.";this.elements=j(a)?k(a):[a],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=b||{},this.split(b)},s=function(a,b,c){var d=a.nodetype;if(1===d||9===d||11===d)for(a=a.firstchild;a;a=a.nextsibling)s(a,b,c);else(3===d||4===d)&&(a.nodevalue=a.nodevalue.split(b).join(c))},t=function(a,b){for(var c=b.length;--c>-1;)a.push(b[c])},u=function(a,b,c,d,h){n.test(a.innerhtml)&&(a.innerhtml=a.innerhtml.replace(n,m));var j,k,o,p,r,u,v,w,x,y,z,a,b,c,d=e(a),e=b.type||b.split||"chars,words,lines",f=-1!==e.indexof("lines")?[]:null,g=-1!==e.indexof("words"),h=-1!==e.indexof("chars"),i="absolute"===b.position||b.absolute===!0,j=i?"­ ":" ",k=-999,l=g(a),m=i(a,"paddingleft",l),n=i(a,"borderbottomwidth",l)+i(a,"bordertopwidth",l),o=i(a,"borderleftwidth",l)+i(a,"borderrightwidth",l),p=i(a,"paddingtop",l)+i(a,"paddingbottom",l),q=i(a,"paddingleft",l)+i(a,"paddingright",l),r=i(a,"textalign",l,!0),s=a.clientheight,t=a.clientwidth,u="
",v=q(b.wordsclass),w=q(b.charsclass),x=-1!==(b.linesclass||"").indexof("++"),y=b.linesclass,z=-1!==d.indexof("<"),$=!0,_=[],aa=[],ba=[];for(!b.reducewhitespace!=!1&&(d=d.replace(l,"")),x&&(y=y.split("++").join("")),z&&(d=d.split("<").join("{{lt}}")),j=d.length,p=v(),r=0;j>r;r++)if(v=d.charat(r),")"===v&&d.substr(r,20)===m)p+=($?u:"")+"
",$=!1,r!==j-20&&d.substr(r+20,20)!==m&&(p+=" "+v(),$=!0),r+=19;else if(" "===v&&" "!==d.charat(r-1)&&r!==j-1&&d.substr(r-20,20)!==m){for(p+=$?u:"",$=!1;" "===d.charat(r+1);)p+=j,r++;(")"!==d.charat(r+1)||d.substr(r+1,20)!==m)&&(p+=j+v(),$=!0)}else"{"===v&&"{{lt}}"===d.substr(r,6)?(p+=h?w()+"{{lt}}":"{{lt}}",r+=5):p+=h&&" "!==v?w()+v+"":v;for(a.innerhtml=p+($?u:""),z&&s(a,"{{lt}}","<"),u=a.getelementsbytagname("*"),j=u.length,w=[],r=0;j>r;r++)w[r]=u[r];if(f||i)for(r=0;j>r;r++)x=w[r],o=x.parentnode===a,(o||i||h&&!g)&&(y=x.offsettop,f&&o&&y!==k&&"br"!==x.nodename&&(k=[],f.push(k),k=y),i&&(x._x=x.offsetleft,x._y=y,x._w=x.offsetwidth,x._h=x.offsetheight),f&&(g!==o&&h||(k.push(x),x._x-=m),o&&r&&(w[r-1]._wordend=!0),"br"===x.nodename&&x.nextsibling&&"br"===x.nextsibling.nodename&&f.push([])));for(r=0;j>r;r++)x=w[r],o=x.parentnode===a,"br"!==x.nodename?(i&&(a=x.style,g||o||(x._x+=x.parentnode._x,x._y+=x.parentnode._y),a.left=x._x+"px",a.top=x._y+"px",a.position="absolute",a.display="block",a.width=x._w+1+"px",a.height=x._h+"px"),g?o&&""!==x.innerhtml?aa.push(x):h&&_.push(x):o?(a.removechild(x),w.splice(r--,1),j--):!o&&h&&(y=!f&&!i&&x.nextsibling,a.appendchild(x),y||a.appendchild(f.createtextnode(" ")),_.push(x))):f||i?(a.removechild(x),w.splice(r--,1),j--):g||a.appendchild(x);if(f){for(i&&(z=f.createelement("div"),a.appendchild(z),b=z.offsetwidth+"px",y=z.offsetparent===a?0:a.offsetleft,a.removechild(z)),a=a.style.csstext,a.style.csstext="display:none;";a.firstchild;)a.removechild(a.firstchild);for(c=!i||!g&&!h,r=0;ru;u++)"br"!==k[u].nodename&&(x=k[u],z.appendchild(x),c&&(x._wordend||g)&&z.appendchild(f.createtextnode(" ")),i&&(0===u&&(z.style.top=x._y+"px",z.style.left=m+y+"px"),x.style.top="0px",y&&(x.style.left=x._x-y+"px")));0===j&&(z.innerhtml=" "),g||h||(z.innerhtml=e(z).split(string.fromcharcode(160)).join(" ")),i&&(z.style.width=b,z.style.height=x._h+"px"),a.appendchild(z)}a.style.csstext=a}i&&(s>a.clientheight&&(a.style.height=s-p+"px",a.clientheighta.clientwidth&&(a.style.width=t-q+"px",a.clientwidth-1;)this._originals[b]=this.elements[b].innerhtml,u(this.elements[b],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.issplit=!0,this},v.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var a=this._originals.length;--a>-1;)this.elements[a].innerhtml=this._originals[a];return this.chars=[],this.words=[],this.lines=[],this.issplit=!1,this},r.selector=a.$||a.jquery||function(b){var c=a.$||a.jquery;return c?(r.selector=c,c(b)):"undefined"==typeof document?b:document.queryselectorall?document.queryselectorall(b):document.getelementbyid("#"===b.charat(0)?b.substr(1):b)},r.version="0.3.5"}(_gsscope),function(a){"use strict";var b=function(){return(_gsscope.greensockglobals||_gsscope)[a]};"function"==typeof define&&define.amd?define([],b):"undefined"!=typeof module&&module.exports&&(module.exports=b())}("splittext"); try{ window.greensockglobals = null; window._gsqueue = null; window._gsdefine = null; delete(window.greensockglobals); delete(window._gsqueue); delete(window._gsdefine); } catch(e) {} try{ window.greensockglobals = oldgs; window._gsqueue = oldgs_queue; } catch(e) {} if (window.tplogs==true) try { console.groupend(); } catch(e) {} (function(e,t){ e.waitforimages={hasimageproperties:["backgroundimage","liststyleimage","borderimage","bordercornerimage"]};e.expr[":"].uncached=function(t){var n=document.createelement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitforimages=function(t,n,r){if(e.isplainobject(arguments[0])){n=t.each;r=t.waitforall;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isfunction(t)||!e.isfunction(n)){throw new typeerror("an invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitforimages.hasimageproperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})}; })(jquery)