TweenMax.min.js 164 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418
  1. /*!
  2. * VERSION: 1.20.3
  3. * DATE: 2017-10-02
  4. * UPDATES AND DOCS AT: http://greensock.com
  5. *
  6. * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
  7. *
  8. * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
  9. * This work is subject to the terms at http://greensock.com/standard-license or for
  10. * Club GreenSock members, the software agreement that was issued with your membership.
  11. *
  12. * @author: Jack Doyle, jack@greensock.com
  13. **/
  14. var _gsScope = "undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window;
  15. (_gsScope._gsQueue || (_gsScope._gsQueue = [])).push(function() {
  16. "use strict";
  17. _gsScope._gsDefine("TweenMax", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function(a, b, c) {
  18. var d = function(a) {
  19. var b, c = [],
  20. d = a.length;
  21. for (b = 0; b !== d; c.push(a[b++]));
  22. return c
  23. },
  24. e = function(a, b, c) {
  25. var d, e, f = a.cycle;
  26. for (d in f) e = f[d], a[d] = "function" == typeof e ? e(c, b[c]) : e[c % e.length];
  27. delete a.cycle
  28. },
  29. f = function(a, b, d) {
  30. c.call(this, a, b, d), this._cycle = 0, this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._repeat && this._uncache(!0), this.render = f.prototype.render
  31. },
  32. g = 1e-10,
  33. h = c._internals,
  34. i = h.isSelector,
  35. j = h.isArray,
  36. k = f.prototype = c.to({}, .1, {}),
  37. l = [];
  38. f.version = "1.20.3", k.constructor = f, k.kill()._gc = !1, f.killTweensOf = f.killDelayedCallsTo = c.killTweensOf, f.getTweensOf = c.getTweensOf, f.lagSmoothing = c.lagSmoothing, f.ticker = c.ticker, f.render = c.render, k.invalidate = function() {
  39. return this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._yoyoEase = null, this._uncache(!0), c.prototype.invalidate.call(this)
  40. }, k.updateTo = function(a, b) {
  41. var d, e = this.ratio,
  42. f = this.vars.immediateRender || a.immediateRender;
  43. b && this._startTime < this._timeline._time && (this._startTime = this._timeline._time, this._uncache(!1), this._gc ? this._enabled(!0, !1) : this._timeline.insert(this, this._startTime - this._delay));
  44. for (d in a) this.vars[d] = a[d];
  45. if (this._initted || f)
  46. if (b) this._initted = !1, f && this.render(0, !0, !0);
  47. else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT && c._onPluginEvent("_onDisable", this), this._time / this._duration > .998) {
  48. var g = this._totalTime;
  49. this.render(0, !0, !1), this._initted = !1, this.render(g, !0, !1)
  50. } else if (this._initted = !1, this._init(), this._time > 0 || f)
  51. for (var h, i = 1 / (1 - e), j = this._firstPT; j;) h = j.s + j.c, j.c *= i, j.s = h - j.c, j = j._next;
  52. return this
  53. }, k.render = function(a, b, d) {
  54. this._initted || 0 === this._duration && this.vars.repeat && this.invalidate();
  55. var e, f, i, j, k, l, m, n, o, p = this._dirty ? this.totalDuration() : this._totalDuration,
  56. q = this._time,
  57. r = this._totalTime,
  58. s = this._cycle,
  59. t = this._duration,
  60. u = this._rawPrevTime;
  61. if (a >= p - 1e-7 && a >= 0 ? (this._totalTime = p, this._cycle = this._repeat, this._yoyo && 0 !== (1 & this._cycle) ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = t, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (e = !0, f = "onComplete", d = d || this._timeline.autoRemoveChildren), 0 === t && (this._initted || !this.vars.lazy || d) && (this._startTime === this._timeline._duration && (a = 0), (0 > u || 0 >= a && a >= -1e-7 || u === g && "isPause" !== this.data) && u !== a && (d = !0, u > g && (f = "onReverseComplete")), this._rawPrevTime = n = !b || a || u === a ? a : g)) : 1e-7 > a ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== r || 0 === t && u > 0) && (f = "onReverseComplete", e = this._reversed), 0 > a && (this._active = !1, 0 === t && (this._initted || !this.vars.lazy || d) && (u >= 0 && (d = !0), this._rawPrevTime = n = !b || a || u === a ? a : g)), this._initted || (d = !0)) : (this._totalTime = this._time = a, 0 !== this._repeat && (j = t + this._repeatDelay, this._cycle = this._totalTime / j >> 0, 0 !== this._cycle && this._cycle === this._totalTime / j && a >= r && this._cycle--, this._time = this._totalTime - this._cycle * j, this._yoyo && 0 !== (1 & this._cycle) && (this._time = t - this._time, o = this._yoyoEase || this.vars.yoyoEase, o && (this._yoyoEase || (o !== !0 || this._initted ? this._yoyoEase = o = o === !0 ? this._ease : o instanceof Ease ? o : Ease.map[o] : (o = this.vars.ease, this._yoyoEase = o = o ? o instanceof Ease ? o : "function" == typeof o ? new Ease(o, this.vars.easeParams) : Ease.map[o] || c.defaultEase : c.defaultEase)), this.ratio = o ? 1 - o.getRatio((t - this._time) / t) : 0)), this._time > t ? this._time = t : this._time < 0 && (this._time = 0)), this._easeType && !o ? (k = this._time / t, l = this._easeType, m = this._easePower, (1 === l || 3 === l && k >= .5) && (k = 1 - k), 3 === l && (k *= 2), 1 === m ? k *= k : 2 === m ? k *= k * k : 3 === m ? k *= k * k * k : 4 === m && (k *= k * k * k * k), 1 === l ? this.ratio = 1 - k : 2 === l ? this.ratio = k : this._time / t < .5 ? this.ratio = k / 2 : this.ratio = 1 - k / 2) : o || (this.ratio = this._ease.getRatio(this._time / t))), q === this._time && !d && s === this._cycle) return void(r !== this._totalTime && this._onUpdate && (b || this._callback("onUpdate")));
  62. if (!this._initted) {
  63. if (this._init(), !this._initted || this._gc) return;
  64. if (!d && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration)) return this._time = q, this._totalTime = r, this._rawPrevTime = u, this._cycle = s, h.lazyTweens.push(this), void(this._lazy = [a, b]);
  65. !this._time || e || o ? e && this._ease._calcEnd && !o && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)) : this.ratio = this._ease.getRatio(this._time / t)
  66. }
  67. for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== q && a >= 0 && (this._active = !0), 0 === r && (2 === this._initted && a > 0 && this._init(), this._startAt && (a >= 0 ? this._startAt.render(a, !0, d) : f || (f = "_dummyGS")), this.vars.onStart && (0 !== this._totalTime || 0 === t) && (b || this._callback("onStart"))), i = this._firstPT; i;) i.f ? i.t[i.p](i.c * this.ratio + i.s) : i.t[i.p] = i.c * this.ratio + i.s, i = i._next;
  68. this._onUpdate && (0 > a && this._startAt && this._startTime && this._startAt.render(a, !0, d), b || (this._totalTime !== r || f) && this._callback("onUpdate")), this._cycle !== s && (b || this._gc || this.vars.onRepeat && this._callback("onRepeat")), f && (!this._gc || d) && (0 > a && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(a, !0, d), e && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[f] && this._callback(f), 0 === t && this._rawPrevTime === g && n !== g && (this._rawPrevTime = 0))
  69. }, f.to = function(a, b, c) {
  70. return new f(a, b, c)
  71. }, f.from = function(a, b, c) {
  72. return c.runBackwards = !0, c.immediateRender = 0 != c.immediateRender, new f(a, b, c)
  73. }, f.fromTo = function(a, b, c, d) {
  74. return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, new f(a, b, d)
  75. }, f.staggerTo = f.allTo = function(a, b, g, h, k, m, n) {
  76. h = h || 0;
  77. var o, p, q, r, s = 0,
  78. t = [],
  79. u = function() {
  80. g.onComplete && g.onComplete.apply(g.onCompleteScope || this, arguments), k.apply(n || g.callbackScope || this, m || l)
  81. },
  82. v = g.cycle,
  83. w = g.startAt && g.startAt.cycle;
  84. for (j(a) || ("string" == typeof a && (a = c.selector(a) || a), i(a) && (a = d(a))), a = a || [], 0 > h && (a = d(a), a.reverse(), h *= -1), o = a.length - 1, q = 0; o >= q; q++) {
  85. p = {};
  86. for (r in g) p[r] = g[r];
  87. if (v && (e(p, a, q), null != p.duration && (b = p.duration, delete p.duration)), w) {
  88. w = p.startAt = {};
  89. for (r in g.startAt) w[r] = g.startAt[r];
  90. e(p.startAt, a, q)
  91. }
  92. p.delay = s + (p.delay || 0), q === o && k && (p.onComplete = u), t[q] = new f(a[q], b, p), s += h
  93. }
  94. return t
  95. }, f.staggerFrom = f.allFrom = function(a, b, c, d, e, g, h) {
  96. return c.runBackwards = !0, c.immediateRender = 0 != c.immediateRender, f.staggerTo(a, b, c, d, e, g, h)
  97. }, f.staggerFromTo = f.allFromTo = function(a, b, c, d, e, g, h, i) {
  98. return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, f.staggerTo(a, b, d, e, g, h, i)
  99. }, f.delayedCall = function(a, b, c, d, e) {
  100. return new f(b, 0, {
  101. delay: a,
  102. onComplete: b,
  103. onCompleteParams: c,
  104. callbackScope: d,
  105. onReverseComplete: b,
  106. onReverseCompleteParams: c,
  107. immediateRender: !1,
  108. useFrames: e,
  109. overwrite: 0
  110. })
  111. }, f.set = function(a, b) {
  112. return new f(a, 0, b)
  113. }, f.isTweening = function(a) {
  114. return c.getTweensOf(a, !0).length > 0
  115. };
  116. var m = function(a, b) {
  117. for (var d = [], e = 0, f = a._first; f;) f instanceof c ? d[e++] = f : (b && (d[e++] = f), d = d.concat(m(f, b)), e = d.length), f = f._next;
  118. return d
  119. },
  120. n = f.getAllTweens = function(b) {
  121. return m(a._rootTimeline, b).concat(m(a._rootFramesTimeline, b))
  122. };
  123. f.killAll = function(a, c, d, e) {
  124. null == c && (c = !0), null == d && (d = !0);
  125. var f, g, h, i = n(0 != e),
  126. j = i.length,
  127. k = c && d && e;
  128. for (h = 0; j > h; h++) g = i[h], (k || g instanceof b || (f = g.target === g.vars.onComplete) && d || c && !f) && (a ? g.totalTime(g._reversed ? 0 : g.totalDuration()) : g._enabled(!1, !1))
  129. }, f.killChildTweensOf = function(a, b) {
  130. if (null != a) {
  131. var e, g, k, l, m, n = h.tweenLookup;
  132. if ("string" == typeof a && (a = c.selector(a) || a), i(a) && (a = d(a)), j(a))
  133. for (l = a.length; --l > -1;) f.killChildTweensOf(a[l], b);
  134. else {
  135. e = [];
  136. for (k in n)
  137. for (g = n[k].target.parentNode; g;) g === a && (e = e.concat(n[k].tweens)), g = g.parentNode;
  138. for (m = e.length, l = 0; m > l; l++) b && e[l].totalTime(e[l].totalDuration()), e[l]._enabled(!1, !1)
  139. }
  140. }
  141. };
  142. var o = function(a, c, d, e) {
  143. c = c !== !1, d = d !== !1, e = e !== !1;
  144. for (var f, g, h = n(e), i = c && d && e, j = h.length; --j > -1;) g = h[j], (i || g instanceof b || (f = g.target === g.vars.onComplete) && d || c && !f) && g.paused(a)
  145. };
  146. return f.pauseAll = function(a, b, c) {
  147. o(!0, a, b, c)
  148. }, f.resumeAll = function(a, b, c) {
  149. o(!1, a, b, c)
  150. }, f.globalTimeScale = function(b) {
  151. var d = a._rootTimeline,
  152. e = c.ticker.time;
  153. return arguments.length ? (b = b || g, d._startTime = e - (e - d._startTime) * d._timeScale / b, d = a._rootFramesTimeline, e = c.ticker.frame, d._startTime = e - (e - d._startTime) * d._timeScale / b, d._timeScale = a._rootTimeline._timeScale = b, b) : d._timeScale
  154. }, k.progress = function(a, b) {
  155. return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - a : a) + this._cycle * (this._duration + this._repeatDelay), b) : this._time / this.duration()
  156. }, k.totalProgress = function(a, b) {
  157. return arguments.length ? this.totalTime(this.totalDuration() * a, b) : this._totalTime / this.totalDuration()
  158. }, k.time = function(a, b) {
  159. return arguments.length ? (this._dirty && this.totalDuration(), a > this._duration && (a = this._duration), this._yoyo && 0 !== (1 & this._cycle) ? a = this._duration - a + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (a += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(a, b)) : this._time
  160. }, k.duration = function(b) {
  161. return arguments.length ? a.prototype.duration.call(this, b) : this._duration
  162. }, k.totalDuration = function(a) {
  163. return arguments.length ? -1 === this._repeat ? this : this.duration((a - this._repeat * this._repeatDelay) / (this._repeat + 1)) : (this._dirty && (this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat, this._dirty = !1), this._totalDuration)
  164. }, k.repeat = function(a) {
  165. return arguments.length ? (this._repeat = a, this._uncache(!0)) : this._repeat
  166. }, k.repeatDelay = function(a) {
  167. return arguments.length ? (this._repeatDelay = a, this._uncache(!0)) : this._repeatDelay
  168. }, k.yoyo = function(a) {
  169. return arguments.length ? (this._yoyo = a, this) : this._yoyo
  170. }, f
  171. }, !0), _gsScope._gsDefine("TimelineLite", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function(a, b, c) {
  172. var d = function(a) {
  173. b.call(this, a), this._labels = {}, this.autoRemoveChildren = this.vars.autoRemoveChildren === !0, this.smoothChildTiming = this.vars.smoothChildTiming === !0, this._sortChildren = !0, this._onUpdate = this.vars.onUpdate;
  174. var c, d, e = this.vars;
  175. for (d in e) c = e[d], i(c) && -1 !== c.join("").indexOf("{self}") && (e[d] = this._swapSelfInParams(c));
  176. i(e.tweens) && this.add(e.tweens, 0, e.align, e.stagger)
  177. },
  178. e = 1e-10,
  179. f = c._internals,
  180. g = d._internals = {},
  181. h = f.isSelector,
  182. i = f.isArray,
  183. j = f.lazyTweens,
  184. k = f.lazyRender,
  185. l = _gsScope._gsDefine.globals,
  186. m = function(a) {
  187. var b, c = {};
  188. for (b in a) c[b] = a[b];
  189. return c
  190. },
  191. n = function(a, b, c) {
  192. var d, e, f = a.cycle;
  193. for (d in f) e = f[d], a[d] = "function" == typeof e ? e(c, b[c]) : e[c % e.length];
  194. delete a.cycle
  195. },
  196. o = g.pauseCallback = function() {},
  197. p = function(a) {
  198. var b, c = [],
  199. d = a.length;
  200. for (b = 0; b !== d; c.push(a[b++]));
  201. return c
  202. },
  203. q = d.prototype = new b;
  204. return d.version = "1.20.3", q.constructor = d, q.kill()._gc = q._forcingPlayhead = q._hasPause = !1, q.to = function(a, b, d, e) {
  205. var f = d.repeat && l.TweenMax || c;
  206. return b ? this.add(new f(a, b, d), e) : this.set(a, d, e)
  207. }, q.from = function(a, b, d, e) {
  208. return this.add((d.repeat && l.TweenMax || c).from(a, b, d), e)
  209. }, q.fromTo = function(a, b, d, e, f) {
  210. var g = e.repeat && l.TweenMax || c;
  211. return b ? this.add(g.fromTo(a, b, d, e), f) : this.set(a, e, f)
  212. }, q.staggerTo = function(a, b, e, f, g, i, j, k) {
  213. var l, o, q = new d({
  214. onComplete: i,
  215. onCompleteParams: j,
  216. callbackScope: k,
  217. smoothChildTiming: this.smoothChildTiming
  218. }),
  219. r = e.cycle;
  220. for ("string" == typeof a && (a = c.selector(a) || a), a = a || [], h(a) && (a = p(a)), f = f || 0, 0 > f && (a = p(a), a.reverse(), f *= -1), o = 0; o < a.length; o++) l = m(e), l.startAt && (l.startAt = m(l.startAt), l.startAt.cycle && n(l.startAt, a, o)), r && (n(l, a, o), null != l.duration && (b = l.duration, delete l.duration)), q.to(a[o], b, l, o * f);
  221. return this.add(q, g)
  222. }, q.staggerFrom = function(a, b, c, d, e, f, g, h) {
  223. return c.immediateRender = 0 != c.immediateRender, c.runBackwards = !0, this.staggerTo(a, b, c, d, e, f, g, h)
  224. }, q.staggerFromTo = function(a, b, c, d, e, f, g, h, i) {
  225. return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, this.staggerTo(a, b, d, e, f, g, h, i)
  226. }, q.call = function(a, b, d, e) {
  227. return this.add(c.delayedCall(0, a, b, d), e)
  228. }, q.set = function(a, b, d) {
  229. return d = this._parseTimeOrLabel(d, 0, !0), null == b.immediateRender && (b.immediateRender = d === this._time && !this._paused), this.add(new c(a, 0, b), d)
  230. }, d.exportRoot = function(a, b) {
  231. a = a || {}, null == a.smoothChildTiming && (a.smoothChildTiming = !0);
  232. var e, f, g, h, i = new d(a),
  233. j = i._timeline;
  234. for (null == b && (b = !0), j._remove(i, !0), i._startTime = 0, i._rawPrevTime = i._time = i._totalTime = j._time, g = j._first; g;) h = g._next, b && g instanceof c && g.target === g.vars.onComplete || (f = g._startTime - g._delay, 0 > f && (e = 1), i.add(g, f)), g = h;
  235. return j.add(i, 0), e && i.totalDuration(), i
  236. }, q.add = function(e, f, g, h) {
  237. var j, k, l, m, n, o;
  238. if ("number" != typeof f && (f = this._parseTimeOrLabel(f, 0, !0, e)), !(e instanceof a)) {
  239. if (e instanceof Array || e && e.push && i(e)) {
  240. for (g = g || "normal", h = h || 0, j = f, k = e.length, l = 0; k > l; l++) i(m = e[l]) && (m = new d({
  241. tweens: m
  242. })), 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;
  243. return this._uncache(!0)
  244. }
  245. if ("string" == typeof e) return this.addLabel(e, f);
  246. if ("function" != typeof e) throw "Cannot add " + e + " into the timeline; it is not a tween, timeline, function, or string.";
  247. e = c.delayedCall(0, e)
  248. }
  249. if (b.prototype.add.call(this, e, f), e._time && e.render((this.rawTime() - e._startTime) * e._timeScale, !1, !1), (this._gc || this._time === this._duration) && !this._paused && this._duration < this.duration())
  250. for (n = this, o = n.rawTime() > e._startTime; n._timeline;) o && n._timeline.smoothChildTiming ? n.totalTime(n._totalTime, !0) : n._gc && n._enabled(!0, !1), n = n._timeline;
  251. return this
  252. }, q.remove = function(b) {
  253. if (b instanceof a) {
  254. this._remove(b, !1);
  255. var c = b._timeline = b.vars.useFrames ? a._rootFramesTimeline : a._rootTimeline;
  256. return b._startTime = (b._paused ? b._pauseTime : c._time) - (b._reversed ? b.totalDuration() - b._totalTime : b._totalTime) / b._timeScale, this
  257. }
  258. if (b instanceof Array || b && b.push && i(b)) {
  259. for (var d = b.length; --d > -1;) this.remove(b[d]);
  260. return this
  261. }
  262. return "string" == typeof b ? this.removeLabel(b) : this.kill(null, b)
  263. }, q._remove = function(a, c) {
  264. b.prototype._remove.call(this, a, c);
  265. var d = this._last;
  266. return d ? this._time > this.duration() && (this._time = this._duration, this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this
  267. }, q.append = function(a, b) {
  268. return this.add(a, this._parseTimeOrLabel(null, b, !0, a))
  269. }, q.insert = q.insertMultiple = function(a, b, c, d) {
  270. return this.add(a, b || 0, c, d)
  271. }, q.appendMultiple = function(a, b, c, d) {
  272. return this.add(a, this._parseTimeOrLabel(null, b, !0, a), c, d)
  273. }, q.addLabel = function(a, b) {
  274. return this._labels[a] = this._parseTimeOrLabel(b), this
  275. }, q.addPause = function(a, b, d, e) {
  276. var f = c.delayedCall(0, o, d, e || this);
  277. return f.vars.onComplete = f.vars.onReverseComplete = b, f.data = "isPause", this._hasPause = !0, this.add(f, a)
  278. }, q.removeLabel = function(a) {
  279. return delete this._labels[a], this
  280. }, q.getLabelTime = function(a) {
  281. return null != this._labels[a] ? this._labels[a] : -1
  282. }, q._parseTimeOrLabel = function(b, c, d, e) {
  283. var f, g;
  284. if (e instanceof a && e.timeline === this) this.remove(e);
  285. else if (e && (e instanceof Array || e.push && i(e)))
  286. for (g = e.length; --g > -1;) e[g] instanceof a && e[g].timeline === this && this.remove(e[g]);
  287. if (f = "number" != typeof b || c ? this.duration() > 99999999999 ? this.recent().endTime(!1) : this._duration : 0, "string" == typeof c) return this._parseTimeOrLabel(c, d && "number" == typeof b && null == this._labels[c] ? b - f : 0, d);
  288. if (c = c || 0, "string" != typeof b || !isNaN(b) && null == this._labels[b]) null == b && (b = f);
  289. else {
  290. if (g = b.indexOf("="), -1 === g) return null == this._labels[b] ? d ? this._labels[b] = f + c : c : this._labels[b] + c;
  291. c = parseInt(b.charAt(g - 1) + "1", 10) * Number(b.substr(g + 1)), b = g > 1 ? this._parseTimeOrLabel(b.substr(0, g - 1), 0, d) : f
  292. }
  293. return Number(b) + c
  294. }, q.seek = function(a, b) {
  295. return this.totalTime("number" == typeof a ? a : this._parseTimeOrLabel(a), b !== !1)
  296. }, q.stop = function() {
  297. return this.paused(!0)
  298. }, q.gotoAndPlay = function(a, b) {
  299. return this.play(a, b)
  300. }, q.gotoAndStop = function(a, b) {
  301. return this.pause(a, b)
  302. }, q.render = function(a, b, c) {
  303. this._gc && this._enabled(!0, !1);
  304. var d, f, g, h, i, l, m, n = this._time,
  305. o = this._dirty ? this.totalDuration() : this._totalDuration,
  306. p = this._startTime,
  307. q = this._timeScale,
  308. r = this._paused;
  309. if (n !== this._time && (a += this._time - n), a >= o - 1e-7 && a >= 0) this._totalTime = this._time = o, 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 = o + 1e-4;
  310. else if (1e-7 > a)
  311. if (this._totalTime = this._time = 0, (0 !== n || 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;
  312. else {
  313. if (this._rawPrevTime = this._duration || !b || a || this._rawPrevTime === a ? a : e, 0 === a && f)
  314. for (d = this._first; d && 0 === d._startTime;) d._duration || (f = !1), d = d._next;
  315. a = 0, this._initted || (i = !0)
  316. }
  317. else {
  318. if (this._hasPause && !this._forcingPlayhead && !b) {
  319. if (a >= n)
  320. 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;
  321. else
  322. for (d = this._last; d && d._startTime >= a && !l;) d._duration || "isPause" === d.data && d._rawPrevTime > 0 && (l = d), d = d._prev;
  323. l && (this._time = a = l._startTime, this._totalTime = a + this._cycle * (this._totalDuration + this._repeatDelay))
  324. }
  325. this._totalTime = this._time = this._rawPrevTime = a
  326. }
  327. if (this._time !== n && this._first || c || i || l) {
  328. if (this._initted || (this._initted = !0), this._active || !this._paused && this._time !== n && a > 0 && (this._active = !0), 0 === n && this.vars.onStart && (0 === this._time && this._duration || b || this._callback("onStart")), m = this._time, m >= n)
  329. 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;
  330. else
  331. for (d = this._last; d && (g = d._prev, m === this._time && (!this._paused || r));) {
  332. if (d._active || d._startTime <= n && !d._paused && !d._gc) {
  333. if (l === d) {
  334. 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;
  335. l = null, this.pause()
  336. }
  337. 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)
  338. }
  339. d = g
  340. }
  341. this._onUpdate && (b || (j.length && k(), this._callback("onUpdate"))), h && (this._gc || (p === this._startTime || q !== this._timeScale) && (0 === this._time || o >= this.totalDuration()) && (f && (j.length && k(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[h] && this._callback(h)))
  342. }
  343. }, q._hasPausedChild = function() {
  344. for (var a = this._first; a;) {
  345. if (a._paused || a instanceof d && a._hasPausedChild()) return !0;
  346. a = a._next
  347. }
  348. return !1
  349. }, q.getChildren = function(a, b, d, e) {
  350. e = e || -9999999999;
  351. for (var f = [], g = this._first, h = 0; g;) g._startTime < e || (g instanceof c ? b !== !1 && (f[h++] = g) : (d !== !1 && (f[h++] = g), a !== !1 && (f = f.concat(g.getChildren(!0, b, d)), h = f.length))), g = g._next;
  352. return f
  353. }, q.getTweensOf = function(a, b) {
  354. var d, e, f = this._gc,
  355. g = [],
  356. h = 0;
  357. for (f && this._enabled(!0, !0), d = c.getTweensOf(a), e = d.length; --e > -1;)(d[e].timeline === this || b && this._contains(d[e])) && (g[h++] = d[e]);
  358. return f && this._enabled(!1, !0), g
  359. }, q.recent = function() {
  360. return this._recent
  361. }, q._contains = function(a) {
  362. for (var b = a.timeline; b;) {
  363. if (b === this) return !0;
  364. b = b.timeline
  365. }
  366. return !1
  367. }, q.shiftChildren = function(a, b, c) {
  368. c = c || 0;
  369. for (var d, e = this._first, f = this._labels; e;) e._startTime >= c && (e._startTime += a), e = e._next;
  370. if (b)
  371. for (d in f) f[d] >= c && (f[d] += a);
  372. return this._uncache(!0)
  373. }, q._kill = function(a, b) {
  374. if (!a && !b) return this._enabled(!1, !1);
  375. 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);
  376. return e
  377. }, q.clear = function(a) {
  378. var b = this.getChildren(!1, !0, !0),
  379. c = b.length;
  380. for (this._time = this._totalTime = 0; --c > -1;) b[c]._enabled(!1, !1);
  381. return a !== !1 && (this._labels = {}), this._uncache(!0)
  382. }, q.invalidate = function() {
  383. for (var b = this._first; b;) b.invalidate(), b = b._next;
  384. return a.prototype.invalidate.call(this)
  385. }, q._enabled = function(a, c) {
  386. if (a === this._gc)
  387. for (var d = this._first; d;) d._enabled(a, !0), d = d._next;
  388. return b.prototype._enabled.call(this, a, c)
  389. }, q.totalTime = function(b, c, d) {
  390. this._forcingPlayhead = !0;
  391. var e = a.prototype.totalTime.apply(this, arguments);
  392. return this._forcingPlayhead = !1, e
  393. }, q.duration = function(a) {
  394. return arguments.length ? (0 !== this.duration() && 0 !== a && this.timeScale(this._duration / a), this) : (this._dirty && this.totalDuration(), this._duration)
  395. }, q.totalDuration = function(a) {
  396. if (!arguments.length) {
  397. if (this._dirty) {
  398. 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._calculatingDuration ? (this._calculatingDuration = 1, this.add(e, e._startTime - e._delay), this._calculatingDuration = 0) : f = e._startTime, e._startTime < 0 && !e._paused && (d -= e._startTime, this._timeline.smoothChildTiming && (this._startTime += e._startTime / this._timeScale, this._time -= e._startTime, this._totalTime -= e._startTime, this._rawPrevTime -= e._startTime), this.shiftChildren(-e._startTime, !1, -9999999999), f = 0), c = e._startTime + e._totalDuration / e._timeScale, c > d && (d = c), e = b;
  399. this._duration = this._totalDuration = d, this._dirty = !1
  400. }
  401. return this._totalDuration
  402. }
  403. return a && this.totalDuration() ? this.timeScale(this._totalDuration / a) : this
  404. }, q.paused = function(b) {
  405. if (!b)
  406. for (var c = this._first, d = this._time; c;) c._startTime === d && "isPause" === c.data && (c._rawPrevTime = 0), c = c._next;
  407. return a.prototype.paused.apply(this, arguments)
  408. }, q.usesFrames = function() {
  409. for (var b = this._timeline; b._timeline;) b = b._timeline;
  410. return b === a._rootFramesTimeline
  411. }, q.rawTime = function(a) {
  412. return a && (this._paused || this._repeat && this.time() > 0 && this.totalProgress() < 1) ? this._totalTime % (this._duration + this._repeatDelay) : this._paused ? this._totalTime : (this._timeline.rawTime(a) - this._startTime) * this._timeScale
  413. }, d
  414. }, !0), _gsScope._gsDefine("TimelineMax", ["TimelineLite", "TweenLite", "easing.Ease"], function(a, b, c) {
  415. var d = function(b) {
  416. a.call(this, b), this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._dirty = !0
  417. },
  418. e = 1e-10,
  419. f = b._internals,
  420. g = f.lazyTweens,
  421. h = f.lazyRender,
  422. i = _gsScope._gsDefine.globals,
  423. j = new c(null, null, 1, 0),
  424. k = d.prototype = new a;
  425. return k.constructor = d, k.kill()._gc = !1, d.version = "1.20.3", k.invalidate = function() {
  426. return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), a.prototype.invalidate.call(this)
  427. }, k.addCallback = function(a, c, d, e) {
  428. return this.add(b.delayedCall(0, a, d, e), c)
  429. }, k.removeCallback = function(a, b) {
  430. if (a)
  431. if (null == b) this._kill(null, a);
  432. else
  433. for (var c = this.getTweensOf(a, !1), d = c.length, e = this._parseTimeOrLabel(b); --d > -1;) c[d]._startTime === e && c[d]._enabled(!1, !1);
  434. return this
  435. }, k.removePause = function(b) {
  436. return this.removeCallback(a._internals.pauseCallback, b)
  437. }, k.tweenTo = function(a, c) {
  438. c = c || {};
  439. var d, e, f, g = {
  440. ease: j,
  441. useFrames: this.usesFrames(),
  442. immediateRender: !1
  443. },
  444. h = c.repeat && i.TweenMax || b;
  445. for (e in c) g[e] = c[e];
  446. return g.time = this._parseTimeOrLabel(a), d = Math.abs(Number(g.time) - this._time) / this._timeScale || .001, f = new h(this, d, g), g.onStart = function() {
  447. f.target.paused(!0), f.vars.time !== f.target.time() && d === f.duration() && f.duration(Math.abs(f.vars.time - f.target.time()) / f.target._timeScale), c.onStart && c.onStart.apply(c.onStartScope || c.callbackScope || f, c.onStartParams || [])
  448. }, f
  449. }, k.tweenFromTo = function(a, b, c) {
  450. c = c || {}, a = this._parseTimeOrLabel(a), c.startAt = {
  451. onComplete: this.seek,
  452. onCompleteParams: [a],
  453. callbackScope: this
  454. }, c.immediateRender = c.immediateRender !== !1;
  455. var d = this.tweenTo(b, c);
  456. return d.duration(Math.abs(d.vars.time - a) / this._timeScale || .001)
  457. }, k.render = function(a, b, c) {
  458. this._gc && this._enabled(!0, !1);
  459. var d, f, i, j, k, l, m, n, o = this._time,
  460. p = this._dirty ? this.totalDuration() : this._totalDuration,
  461. q = this._duration,
  462. r = this._totalTime,
  463. s = this._startTime,
  464. t = this._timeScale,
  465. u = this._rawPrevTime,
  466. v = this._paused,
  467. w = this._cycle;
  468. if (o !== this._time && (a += this._time - o), a >= p - 1e-7 && a >= 0) this._locked || (this._totalTime = p, this._cycle = this._repeat), this._reversed || this._hasPausedChild() || (f = !0, j = "onComplete", k = !!this._timeline.autoRemoveChildren, 0 === this._duration && (0 >= a && a >= -1e-7 || 0 > u || u === e) && u !== a && this._first && (k = !0, u > e && (j = "onReverseComplete"))), this._rawPrevTime = this._duration || !b || a || this._rawPrevTime === a ? a : e, this._yoyo && 0 !== (1 & this._cycle) ? this._time = a = 0 : (this._time = q, a = q + 1e-4);
  469. else if (1e-7 > a)
  470. if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (0 !== o || 0 === q && u !== e && (u > 0 || 0 > a && u >= 0) && !this._locked) && (j = "onReverseComplete", f = this._reversed), 0 > a) this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (k = f = !0, j = "onReverseComplete") : u >= 0 && this._first && (k = !0), this._rawPrevTime = a;
  471. else {
  472. if (this._rawPrevTime = q || !b || a || this._rawPrevTime === a ? a : e, 0 === a && f)
  473. for (d = this._first; d && 0 === d._startTime;) d._duration || (f = !1), d = d._next;
  474. a = 0, this._initted || (k = !0)
  475. }
  476. else if (0 === q && 0 > u && (k = !0), this._time = this._rawPrevTime = a, this._locked || (this._totalTime = a, 0 !== this._repeat && (l = q + this._repeatDelay, this._cycle = this._totalTime / l >> 0, 0 !== this._cycle && this._cycle === this._totalTime / l && a >= r && this._cycle--, this._time = this._totalTime - this._cycle * l, this._yoyo && 0 !== (1 & this._cycle) && (this._time = q - this._time), this._time > q ? (this._time = q, a = q + 1e-4) : this._time < 0 ? this._time = a = 0 : a = this._time)), this._hasPause && !this._forcingPlayhead && !b) {
  477. if (a = this._time, a >= o || this._repeat && w !== this._cycle)
  478. for (d = this._first; d && d._startTime <= a && !m;) d._duration || "isPause" !== d.data || d.ratio || 0 === d._startTime && 0 === this._rawPrevTime || (m = d), d = d._next;
  479. else
  480. for (d = this._last; d && d._startTime >= a && !m;) d._duration || "isPause" === d.data && d._rawPrevTime > 0 && (m = d), d = d._prev;
  481. m && m._startTime < q && (this._time = a = m._startTime, this._totalTime = a + this._cycle * (this._totalDuration + this._repeatDelay))
  482. }
  483. if (this._cycle !== w && !this._locked) {
  484. var x = this._yoyo && 0 !== (1 & w),
  485. y = x === (this._yoyo && 0 !== (1 & this._cycle)),
  486. z = this._totalTime,
  487. A = this._cycle,
  488. B = this._rawPrevTime,
  489. C = this._time;
  490. if (this._totalTime = w * q, this._cycle < w ? x = !x : this._totalTime += q, this._time = o, this._rawPrevTime = 0 === q ? u - 1e-4 : u, this._cycle = w, this._locked = !0, o = x ? 0 : q, this.render(o, b, 0 === q), b || this._gc || this.vars.onRepeat && (this._cycle = A, this._locked = !1, this._callback("onRepeat")), o !== this._time) return;
  491. if (y && (this._cycle = w, this._locked = !0, o = x ? q + 1e-4 : -1e-4, this.render(o, !0, !1)), this._locked = !1, this._paused && !v) return;
  492. this._time = C, this._totalTime = z, this._cycle = A, this._rawPrevTime = B
  493. }
  494. if (!(this._time !== o && this._first || c || k || m)) return void(r !== this._totalTime && this._onUpdate && (b || this._callback("onUpdate")));
  495. if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== r && a > 0 && (this._active = !0), 0 === r && this.vars.onStart && (0 === this._totalTime && this._totalDuration || b || this._callback("onStart")), n = this._time, n >= o)
  496. for (d = this._first; d && (i = d._next, n === this._time && (!this._paused || v));)(d._active || d._startTime <= this._time && !d._paused && !d._gc) && (m === d && this.pause(), d._reversed ? d.render((d._dirty ? d.totalDuration() : d._totalDuration) - (a - d._startTime) * d._timeScale, b, c) : d.render((a - d._startTime) * d._timeScale, b, c)), d = i;
  497. else
  498. for (d = this._last; d && (i = d._prev, n === this._time && (!this._paused || v));) {
  499. if (d._active || d._startTime <= o && !d._paused && !d._gc) {
  500. if (m === d) {
  501. for (m = d._prev; m && m.endTime() > this._time;) m.render(m._reversed ? m.totalDuration() - (a - m._startTime) * m._timeScale : (a - m._startTime) * m._timeScale, b, c), m = m._prev;
  502. m = null, this.pause()
  503. }
  504. 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)
  505. }
  506. d = i
  507. }
  508. this._onUpdate && (b || (g.length && h(), this._callback("onUpdate"))), j && (this._locked || this._gc || (s === this._startTime || t !== this._timeScale) && (0 === this._time || p >= this.totalDuration()) && (f && (g.length && h(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[j] && this._callback(j)))
  509. }, k.getActive = function(a, b, c) {
  510. null == a && (a = !0), null == b && (b = !0), null == c && (c = !1);
  511. var d, e, f = [],
  512. g = this.getChildren(a, b, c),
  513. h = 0,
  514. i = g.length;
  515. for (d = 0; i > d; d++) e = g[d], e.isActive() && (f[h++] = e);
  516. return f
  517. }, k.getLabelAfter = function(a) {
  518. a || 0 !== a && (a = this._time);
  519. var b, c = this.getLabelsArray(),
  520. d = c.length;
  521. for (b = 0; d > b; b++)
  522. if (c[b].time > a) return c[b].name;
  523. return null
  524. }, k.getLabelBefore = function(a) {
  525. null == a && (a = this._time);
  526. for (var b = this.getLabelsArray(), c = b.length; --c > -1;)
  527. if (b[c].time < a) return b[c].name;
  528. return null
  529. }, k.getLabelsArray = function() {
  530. var a, b = [],
  531. c = 0;
  532. for (a in this._labels) b[c++] = {
  533. time: this._labels[a],
  534. name: a
  535. };
  536. return b.sort(function(a, b) {
  537. return a.time - b.time
  538. }), b
  539. }, k.invalidate = function() {
  540. return this._locked = !1, a.prototype.invalidate.call(this)
  541. }, k.progress = function(a, b) {
  542. return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - a : a) + this._cycle * (this._duration + this._repeatDelay), b) : this._time / this.duration() || 0
  543. }, k.totalProgress = function(a, b) {
  544. return arguments.length ? this.totalTime(this.totalDuration() * a, b) : this._totalTime / this.totalDuration() || 0
  545. }, k.totalDuration = function(b) {
  546. return arguments.length ? -1 !== this._repeat && b ? this.timeScale(this.totalDuration() / b) : this : (this._dirty && (a.prototype.totalDuration.call(this), this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat), this._totalDuration)
  547. }, k.time = function(a, b) {
  548. return arguments.length ? (this._dirty && this.totalDuration(), a > this._duration && (a = this._duration), this._yoyo && 0 !== (1 & this._cycle) ? a = this._duration - a + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (a += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(a, b)) : this._time
  549. }, k.repeat = function(a) {
  550. return arguments.length ? (this._repeat = a, this._uncache(!0)) : this._repeat
  551. }, k.repeatDelay = function(a) {
  552. return arguments.length ? (this._repeatDelay = a, this._uncache(!0)) : this._repeatDelay
  553. }, k.yoyo = function(a) {
  554. return arguments.length ? (this._yoyo = a, this) : this._yoyo
  555. }, k.currentLabel = function(a) {
  556. return arguments.length ? this.seek(a, !0) : this.getLabelBefore(this._time + 1e-8)
  557. }, d
  558. }, !0),
  559. function() {
  560. var a = 180 / Math.PI,
  561. b = [],
  562. c = [],
  563. d = [],
  564. e = {},
  565. f = _gsScope._gsDefine.globals,
  566. g = function(a, b, c, d) {
  567. c === d && (c = d - (d - b) / 1e6), a === b && (b = a + (c - a) / 1e6), this.a = a, this.b = b, this.c = c, this.d = d, this.da = d - a, this.ca = c - a, this.ba = b - a
  568. },
  569. h = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",
  570. i = function(a, b, c, d) {
  571. var e = {
  572. a: a
  573. },
  574. f = {},
  575. g = {},
  576. h = {
  577. c: d
  578. },
  579. i = (a + b) / 2,
  580. j = (b + c) / 2,
  581. k = (c + d) / 2,
  582. l = (i + j) / 2,
  583. m = (j + k) / 2,
  584. n = (m - l) / 8;
  585. return e.b = i + (a - i) / 4, f.b = l + n, e.c = f.a = (e.b + f.b) / 2, f.c = g.a = (l + m) / 2, g.b = m - n, h.b = k + (d - k) / 4, g.c = h.a = (g.b + h.b) / 2, [e, f, g, h]
  586. },
  587. j = function(a, e, f, g, h) {
  588. var j, k, l, m, n, o, p, q, r, s, t, u, v, w = a.length - 1,
  589. x = 0,
  590. y = a[0].a;
  591. for (j = 0; w > j; j++) n = a[x], k = n.a, l = n.d, m = a[x + 1].d, h ? (t = b[j], u = c[j], v = (u + t) * e * .25 / (g ? .5 : d[j] || .5), o = l - (l - k) * (g ? .5 * e : 0 !== t ? v / t : 0), p = l + (m - l) * (g ? .5 * e : 0 !== u ? v / u : 0), q = l - (o + ((p - o) * (3 * t / (t + u) + .5) / 4 || 0))) : (o = l - (l - k) * e * .5, p = l + (m - l) * e * .5, q = l - (o + p) / 2), o += q, p += q, n.c = r = o, 0 !== j ? n.b = y : n.b = y = n.a + .6 * (n.c - n.a), n.da = l - k, n.ca = r - k, n.ba = y - k, f ? (s = i(k, y, r, l), a.splice(x, 1, s[0], s[1], s[2], s[3]), x += 4) : x++, y = p;
  592. n = a[x], n.b = y, n.c = y + .4 * (n.d - y), n.da = n.d - n.a, n.ca = n.c - n.a, n.ba = y - n.a, f && (s = i(n.a, y, n.c, n.d), a.splice(x, 1, s[0], s[1], s[2], s[3]))
  593. },
  594. k = function(a, d, e, f) {
  595. var h, i, j, k, l, m, n = [];
  596. if (f)
  597. for (a = [f].concat(a), i = a.length; --i > -1;) "string" == typeof(m = a[i][d]) && "=" === m.charAt(1) && (a[i][d] = f[d] + Number(m.charAt(0) + m.substr(2)));
  598. if (h = a.length - 2, 0 > h) return n[0] = new g(a[0][d], 0, 0, a[0][d]), n;
  599. for (i = 0; h > i; i++) j = a[i][d], k = a[i + 1][d], n[i] = new g(j, 0, 0, k), e && (l = a[i + 2][d], b[i] = (b[i] || 0) + (k - j) * (k - j), c[i] = (c[i] || 0) + (l - k) * (l - k));
  600. return n[i] = new g(a[i][d], 0, 0, a[i + 1][d]), n
  601. },
  602. l = function(a, f, g, i, l, m) {
  603. var n, o, p, q, r, s, t, u, v = {},
  604. w = [],
  605. x = m || a[0];
  606. l = "string" == typeof l ? "," + l + "," : h, null == f && (f = 1);
  607. for (o in a[0]) w.push(o);
  608. if (a.length > 1) {
  609. for (u = a[a.length - 1], t = !0, n = w.length; --n > -1;)
  610. if (o = w[n], Math.abs(x[o] - u[o]) > .05) {
  611. t = !1;
  612. break
  613. } t && (a = a.concat(), m && a.unshift(m), a.push(a[1]), m = a[a.length - 3])
  614. }
  615. for (b.length = c.length = d.length = 0, n = w.length; --n > -1;) o = w[n], e[o] = -1 !== l.indexOf("," + o + ","), v[o] = k(a, o, e[o], m);
  616. for (n = b.length; --n > -1;) b[n] = Math.sqrt(b[n]), c[n] = Math.sqrt(c[n]);
  617. if (!i) {
  618. for (n = w.length; --n > -1;)
  619. if (e[o])
  620. for (p = v[w[n]], s = p.length - 1, q = 0; s > q; q++) r = p[q + 1].da / c[q] + p[q].da / b[q] || 0,
  621. d[q] = (d[q] || 0) + r * r;
  622. for (n = d.length; --n > -1;) d[n] = Math.sqrt(d[n])
  623. }
  624. for (n = w.length, q = g ? 4 : 1; --n > -1;) o = w[n], p = v[o], j(p, f, g, i, e[o]), t && (p.splice(0, q), p.splice(p.length - q, q));
  625. return v
  626. },
  627. m = function(a, b, c) {
  628. b = b || "soft";
  629. var d, e, f, h, i, j, k, l, m, n, o, p = {},
  630. q = "cubic" === b ? 3 : 2,
  631. r = "soft" === b,
  632. s = [];
  633. if (r && c && (a = [c].concat(a)), null == a || a.length < q + 1) throw "invalid Bezier data";
  634. for (m in a[0]) s.push(m);
  635. for (j = s.length; --j > -1;) {
  636. for (m = s[j], p[m] = i = [], n = 0, l = a.length, k = 0; l > k; k++) d = null == c ? a[k][m] : "string" == typeof(o = a[k][m]) && "=" === o.charAt(1) ? c[m] + Number(o.charAt(0) + o.substr(2)) : Number(o), r && k > 1 && l - 1 > k && (i[n++] = (d + i[n - 2]) / 2), i[n++] = d;
  637. for (l = n - q + 1, n = 0, k = 0; l > k; k += q) d = i[k], e = i[k + 1], f = i[k + 2], h = 2 === q ? 0 : i[k + 3], i[n++] = o = 3 === q ? new g(d, e, f, h) : new g(d, (2 * e + d) / 3, (2 * e + f) / 3, f);
  638. i.length = n
  639. }
  640. return p
  641. },
  642. n = function(a, b, c) {
  643. for (var d, e, f, g, h, i, j, k, l, m, n, o = 1 / c, p = a.length; --p > -1;)
  644. for (m = a[p], f = m.a, g = m.d - f, h = m.c - f, i = m.b - f, d = e = 0, k = 1; c >= k; k++) j = o * k, l = 1 - j, d = e - (e = (j * j * g + 3 * l * (j * h + l * i)) * j), n = p * c + k - 1, b[n] = (b[n] || 0) + d * d
  645. },
  646. o = function(a, b) {
  647. b = b >> 0 || 6;
  648. var c, d, e, f, g = [],
  649. h = [],
  650. i = 0,
  651. j = 0,
  652. k = b - 1,
  653. l = [],
  654. m = [];
  655. for (c in a) n(a[c], g, b);
  656. for (e = g.length, d = 0; e > d; d++) i += Math.sqrt(g[d]), f = d % b, m[f] = i, f === k && (j += i, f = d / b >> 0, l[f] = m, h[f] = j, i = 0, m = []);
  657. return {
  658. length: j,
  659. lengths: h,
  660. segments: l
  661. }
  662. },
  663. p = _gsScope._gsDefine.plugin({
  664. propName: "bezier",
  665. priority: -1,
  666. version: "1.3.8",
  667. API: 2,
  668. global: !0,
  669. init: function(a, b, c) {
  670. this._target = a, b instanceof Array && (b = {
  671. values: b
  672. }), this._func = {}, this._mod = {}, this._props = [], this._timeRes = null == b.timeResolution ? 6 : parseInt(b.timeResolution, 10);
  673. var d, e, f, g, h, i = b.values || [],
  674. j = {},
  675. k = i[0],
  676. n = b.autoRotate || c.vars.orientToBezier;
  677. this._autoRotate = n ? n instanceof Array ? n : [
  678. ["x", "y", "rotation", n === !0 ? 0 : Number(n) || 0]
  679. ] : null;
  680. for (d in k) this._props.push(d);
  681. for (f = this._props.length; --f > -1;) d = this._props[f], this._overwriteProps.push(d), e = this._func[d] = "function" == typeof a[d], j[d] = e ? a[d.indexOf("set") || "function" != typeof a["get" + d.substr(3)] ? d : "get" + d.substr(3)]() : parseFloat(a[d]), h || j[d] !== i[0][d] && (h = j);
  682. if (this._beziers = "cubic" !== b.type && "quadratic" !== b.type && "soft" !== b.type ? l(i, isNaN(b.curviness) ? 1 : b.curviness, !1, "thruBasic" === b.type, b.correlate, h) : m(i, b.type, j), this._segCount = this._beziers[d].length, this._timeRes) {
  683. var p = o(this._beziers, this._timeRes);
  684. this._length = p.length, this._lengths = p.lengths, this._segments = p.segments, this._l1 = this._li = this._s1 = this._si = 0, this._l2 = this._lengths[0], this._curSeg = this._segments[0], this._s2 = this._curSeg[0], this._prec = 1 / this._curSeg.length
  685. }
  686. if (n = this._autoRotate)
  687. for (this._initialRotations = [], n[0] instanceof Array || (this._autoRotate = n = [n]), f = n.length; --f > -1;) {
  688. for (g = 0; 3 > g; g++) d = n[f][g], this._func[d] = "function" == typeof a[d] ? a[d.indexOf("set") || "function" != typeof a["get" + d.substr(3)] ? d : "get" + d.substr(3)] : !1;
  689. d = n[f][2], this._initialRotations[f] = (this._func[d] ? this._func[d].call(this._target) : this._target[d]) || 0, this._overwriteProps.push(d)
  690. }
  691. return this._startRatio = c.vars.runBackwards ? 1 : 0, !0
  692. },
  693. set: function(b) {
  694. var c, d, e, f, g, h, i, j, k, l, m = this._segCount,
  695. n = this._func,
  696. o = this._target,
  697. p = b !== this._startRatio;
  698. if (this._timeRes) {
  699. if (k = this._lengths, l = this._curSeg, b *= this._length, e = this._li, b > this._l2 && m - 1 > e) {
  700. for (j = m - 1; j > e && (this._l2 = k[++e]) <= b;);
  701. this._l1 = k[e - 1], this._li = e, this._curSeg = l = this._segments[e], this._s2 = l[this._s1 = this._si = 0]
  702. } else if (b < this._l1 && e > 0) {
  703. for (; e > 0 && (this._l1 = k[--e]) >= b;);
  704. 0 === e && b < this._l1 ? this._l1 = 0 : e++, this._l2 = k[e], this._li = e, this._curSeg = l = this._segments[e], this._s1 = l[(this._si = l.length - 1) - 1] || 0, this._s2 = l[this._si]
  705. }
  706. if (c = e, b -= this._l1, e = this._si, b > this._s2 && e < l.length - 1) {
  707. for (j = l.length - 1; j > e && (this._s2 = l[++e]) <= b;);
  708. this._s1 = l[e - 1], this._si = e
  709. } else if (b < this._s1 && e > 0) {
  710. for (; e > 0 && (this._s1 = l[--e]) >= b;);
  711. 0 === e && b < this._s1 ? this._s1 = 0 : e++, this._s2 = l[e], this._si = e
  712. }
  713. h = (e + (b - this._s1) / (this._s2 - this._s1)) * this._prec || 0
  714. } else c = 0 > b ? 0 : b >= 1 ? m - 1 : m * b >> 0, h = (b - c * (1 / m)) * m;
  715. for (d = 1 - h, e = this._props.length; --e > -1;) f = this._props[e], g = this._beziers[f][c], i = (h * h * g.da + 3 * d * (h * g.ca + d * g.ba)) * h + g.a, this._mod[f] && (i = this._mod[f](i, o)), n[f] ? o[f](i) : o[f] = i;
  716. if (this._autoRotate) {
  717. var q, r, s, t, u, v, w, x = this._autoRotate;
  718. for (e = x.length; --e > -1;) f = x[e][2], v = x[e][3] || 0, w = x[e][4] === !0 ? 1 : a, g = this._beziers[x[e][0]], q = this._beziers[x[e][1]], g && q && (g = g[c], q = q[c], r = g.a + (g.b - g.a) * h, t = g.b + (g.c - g.b) * h, r += (t - r) * h, t += (g.c + (g.d - g.c) * h - t) * h, s = q.a + (q.b - q.a) * h, u = q.b + (q.c - q.b) * h, s += (u - s) * h, u += (q.c + (q.d - q.c) * h - u) * h, i = p ? Math.atan2(u - s, t - r) * w + v : this._initialRotations[e], this._mod[f] && (i = this._mod[f](i, o)), n[f] ? o[f](i) : o[f] = i)
  719. }
  720. }
  721. }),
  722. q = p.prototype;
  723. p.bezierThrough = l, p.cubicToQuadratic = i, p._autoCSS = !0, p.quadraticToCubic = function(a, b, c) {
  724. return new g(a, (2 * b + a) / 3, (2 * b + c) / 3, c)
  725. }, p._cssRegister = function() {
  726. var a = f.CSSPlugin;
  727. if (a) {
  728. var b = a._internals,
  729. c = b._parseToProxy,
  730. d = b._setPluginRatio,
  731. e = b.CSSPropTween;
  732. b._registerComplexSpecialProp("bezier", {
  733. parser: function(a, b, f, g, h, i) {
  734. b instanceof Array && (b = {
  735. values: b
  736. }), i = new p;
  737. var j, k, l, m = b.values,
  738. n = m.length - 1,
  739. o = [],
  740. q = {};
  741. if (0 > n) return h;
  742. for (j = 0; n >= j; j++) l = c(a, m[j], g, h, i, n !== j), o[j] = l.end;
  743. for (k in b) q[k] = b[k];
  744. return q.values = o, h = new e(a, "bezier", 0, 0, l.pt, 2), h.data = l, h.plugin = i, h.setRatio = d, 0 === q.autoRotate && (q.autoRotate = !0), !q.autoRotate || q.autoRotate instanceof Array || (j = q.autoRotate === !0 ? 0 : Number(q.autoRotate), q.autoRotate = null != l.end.left ? [
  745. ["left", "top", "rotation", j, !1]
  746. ] : null != l.end.x ? [
  747. ["x", "y", "rotation", j, !1]
  748. ] : !1), q.autoRotate && (g._transform || g._enableTransforms(!1), l.autoRotate = g._target._gsTransform, l.proxy.rotation = l.autoRotate.rotation || 0, g._overwriteProps.push("rotation")), i._onInitTween(l.proxy, q, g._tween), h
  749. }
  750. })
  751. }
  752. }, q._mod = function(a) {
  753. for (var b, c = this._overwriteProps, d = c.length; --d > -1;) b = a[c[d]], b && "function" == typeof b && (this._mod[c[d]] = b)
  754. }, q._kill = function(a) {
  755. var b, c, d = this._props;
  756. for (b in this._beziers)
  757. if (b in a)
  758. for (delete this._beziers[b], delete this._func[b], c = d.length; --c > -1;) d[c] === b && d.splice(c, 1);
  759. if (d = this._autoRotate)
  760. for (c = d.length; --c > -1;) a[d[c][2]] && d.splice(c, 1);
  761. return this._super._kill.call(this, a)
  762. }
  763. }(), _gsScope._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin", "TweenLite"], function(a, b) {
  764. var c, d, e, f, g = function() {
  765. a.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = g.prototype.setRatio
  766. },
  767. h = _gsScope._gsDefine.globals,
  768. i = {},
  769. j = g.prototype = new a("css");
  770. j.constructor = g, g.version = "1.20.3", g.API = 2, g.defaultTransformPerspective = 0, g.defaultSkewType = "compensated", g.defaultSmoothOrigin = !0, j = "px", g.suffixMap = {
  771. top: j,
  772. right: j,
  773. bottom: j,
  774. left: j,
  775. width: j,
  776. height: j,
  777. fontSize: j,
  778. padding: j,
  779. margin: j,
  780. perspective: j,
  781. lineHeight: ""
  782. };
  783. var k, l, m, n, o, p, q, r, s = /(?:\-|\.|\b)(\d|\.|e\-)+/g,
  784. t = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,
  785. u = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,
  786. v = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,
  787. w = /(?:\d|\-|\+|=|#|\.)*/g,
  788. x = /opacity *= *([^)]*)/i,
  789. y = /opacity:([^;]*)/i,
  790. z = /alpha\(opacity *=.+?\)/i,
  791. A = /^(rgb|hsl)/,
  792. B = /([A-Z])/g,
  793. C = /-([a-z])/gi,
  794. D = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,
  795. E = function(a, b) {
  796. return b.toUpperCase()
  797. },
  798. F = /(?:Left|Right|Width)/i,
  799. G = /(M11|M12|M21|M22)=[\d\-\.e]+/gi,
  800. H = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,
  801. I = /,(?=[^\)]*(?:\(|$))/gi,
  802. J = /[\s,\(]/i,
  803. K = Math.PI / 180,
  804. L = 180 / Math.PI,
  805. M = {},
  806. N = {
  807. style: {}
  808. },
  809. O = _gsScope.document || {
  810. createElement: function() {
  811. return N
  812. }
  813. },
  814. P = function(a, b) {
  815. return O.createElementNS ? O.createElementNS(b || "http://www.w3.org/1999/xhtml", a) : O.createElement(a)
  816. },
  817. Q = P("div"),
  818. R = P("img"),
  819. S = g._internals = {
  820. _specialProps: i
  821. },
  822. T = (_gsScope.navigator || {}).userAgent || "",
  823. U = function() {
  824. var a = T.indexOf("Android"),
  825. b = P("a");
  826. return m = -1 !== T.indexOf("Safari") && -1 === T.indexOf("Chrome") && (-1 === a || parseFloat(T.substr(a + 8, 2)) > 3), o = m && parseFloat(T.substr(T.indexOf("Version/") + 8, 2)) < 6, n = -1 !== T.indexOf("Firefox"), (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T)) && (p = parseFloat(RegExp.$1)), b ? (b.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(b.style.opacity)) : !1
  827. }(),
  828. V = function(a) {
  829. return x.test("string" == typeof a ? a : (a.currentStyle ? a.currentStyle.filter : a.style.filter) || "") ? parseFloat(RegExp.$1) / 100 : 1
  830. },
  831. W = function(a) {
  832. _gsScope.console && console.log(a)
  833. },
  834. X = "",
  835. Y = "",
  836. Z = function(a, b) {
  837. b = b || Q;
  838. var c, d, e = b.style;
  839. if (void 0 !== e[a]) return a;
  840. 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];);
  841. return d >= 0 ? (Y = 3 === d ? "ms" : c[d], X = "-" + Y.toLowerCase() + "-", Y + a) : null
  842. },
  843. $ = O.defaultView ? O.defaultView.getComputedStyle : function() {},
  844. _ = g.getStyle = function(a, b, c, d, e) {
  845. var f;
  846. return U || "opacity" !== b ? (!d && a.style[b] ? f = a.style[b] : (c = c || $(a)) ? f = c[b] || c.getPropertyValue(b) || c.getPropertyValue(b.replace(B, "-$1").toLowerCase()) : a.currentStyle && (f = a.currentStyle[b]), null == e || f && "none" !== f && "auto" !== f && "auto auto" !== f ? f : e) : V(a)
  847. },
  848. aa = S.convertToPixels = function(a, c, d, e, f) {
  849. if ("px" === e || !e && "lineHeight" !== c) return d;
  850. if ("auto" === e || !d) return 0;
  851. var h, i, j, k = F.test(c),
  852. l = a,
  853. m = Q.style,
  854. n = 0 > d,
  855. o = 1 === d;
  856. if (n && (d = -d), o && (d *= 100), "lineHeight" !== c || e)
  857. if ("%" === e && -1 !== c.indexOf("border")) h = d / 100 * (k ? a.clientWidth : a.clientHeight);
  858. else {
  859. if (m.cssText = "border:0 solid red;position:" + _(a, "position") + ";line-height:0;", "%" !== e && l.appendChild && "v" !== e.charAt(0) && "rem" !== e) m[k ? "borderLeftWidth" : "borderTopWidth"] = d + e;
  860. else {
  861. if (l = a.parentNode || O.body, -1 !== _(l, "display").indexOf("flex") && (m.position = "absolute"), i = l._gsCache, j = b.ticker.frame, i && k && i.time === j) return i.width * d / 100;
  862. m[k ? "width" : "height"] = d + e
  863. }
  864. l.appendChild(Q), h = parseFloat(Q[k ? "offsetWidth" : "offsetHeight"]), l.removeChild(Q), k && "%" === e && g.cacheWidths !== !1 && (i = l._gsCache = l._gsCache || {}, i.time = j, i.width = h / d * 100), 0 !== h || f || (h = aa(a, c, d, e, !0))
  865. }
  866. else i = $(a).lineHeight, a.style.lineHeight = d, h = parseFloat($(a).lineHeight), a.style.lineHeight = i;
  867. return o && (h /= 100), n ? -h : h
  868. },
  869. ba = S.calculateOffset = function(a, b, c) {
  870. if ("absolute" !== _(a, "position", c)) return 0;
  871. var d = "left" === b ? "Left" : "Top",
  872. e = _(a, "margin" + d, c);
  873. return a["offset" + d] - (aa(a, b, parseFloat(e), e.replace(w, "")) || 0)
  874. },
  875. ca = function(a, b) {
  876. var c, d, e, f = {};
  877. if (b = b || $(a, null))
  878. if (c = b.length)
  879. for (; --c > -1;) e = b[c], (-1 === e.indexOf("-transform") || Da === e) && (f[e.replace(C, E)] = b.getPropertyValue(e));
  880. else
  881. for (c in b)(-1 === c.indexOf("Transform") || Ca === c) && (f[c] = b[c]);
  882. else if (b = a.currentStyle || a.style)
  883. for (c in b) "string" == typeof c && void 0 === f[c] && (f[c.replace(C, E)] = b[c]);
  884. return U || (f.opacity = V(a)), d = Ra(a, b, !1), f.rotation = d.rotation, f.skewX = d.skewX, f.scaleX = d.scaleX, f.scaleY = d.scaleY, f.x = d.x, f.y = d.y, Fa && (f.z = d.z, f.rotationX = d.rotationX, f.rotationY = d.rotationY, f.scaleZ = d.scaleZ), f.filters && delete f.filters, f
  885. },
  886. da = function(a, b, c, d, e) {
  887. var f, g, h, i = {},
  888. j = a.style;
  889. for (g in c) "cssText" !== g && "length" !== g && isNaN(g) && (b[g] !== (f = c[g]) || e && e[g]) && -1 === g.indexOf("Origin") && ("number" == typeof f || "string" == typeof f) && (i[g] = "auto" !== f || "left" !== g && "top" !== g ? "" !== f && "auto" !== f && "none" !== f || "string" != typeof b[g] || "" === b[g].replace(v, "") ? f : 0 : ba(a, g), void 0 !== j[g] && (h = new sa(j, g, j[g], h)));
  890. if (d)
  891. for (g in d) "className" !== g && (i[g] = d[g]);
  892. return {
  893. difs: i,
  894. firstMPT: h
  895. }
  896. },
  897. ea = {
  898. width: ["Left", "Right"],
  899. height: ["Top", "Bottom"]
  900. },
  901. fa = ["marginLeft", "marginRight", "marginTop", "marginBottom"],
  902. ga = function(a, b, c) {
  903. if ("svg" === (a.nodeName + "").toLowerCase()) return (c || $(a))[b] || 0;
  904. if (a.getCTM && Oa(a)) return a.getBBox()[b] || 0;
  905. var d = parseFloat("width" === b ? a.offsetWidth : a.offsetHeight),
  906. e = ea[b],
  907. f = e.length;
  908. for (c = c || $(a, null); --f > -1;) d -= parseFloat(_(a, "padding" + e[f], c, !0)) || 0, d -= parseFloat(_(a, "border" + e[f] + "Width", c, !0)) || 0;
  909. return d
  910. },
  911. ha = function(a, b) {
  912. if ("contain" === a || "auto" === a || "auto auto" === a) return a + " ";
  913. (null == a || "" === a) && (a = "0 0");
  914. var c, d = a.split(" "),
  915. e = -1 !== a.indexOf("left") ? "0%" : -1 !== a.indexOf("right") ? "100%" : d[0],
  916. f = -1 !== a.indexOf("top") ? "0%" : -1 !== a.indexOf("bottom") ? "100%" : d[1];
  917. if (d.length > 3 && !b) {
  918. for (d = a.split(", ").join(",").split(","), a = [], c = 0; c < d.length; c++) a.push(ha(d[c]));
  919. return a.join(",")
  920. }
  921. return null == f ? f = "center" === e ? "50%" : "0" : "center" === f && (f = "50%"), ("center" === e || isNaN(parseFloat(e)) && -1 === (e + "").indexOf("=")) && (e = "50%"), a = e + " " + f + (d.length > 2 ? " " + d[2] : ""), b && (b.oxp = -1 !== e.indexOf("%"), b.oyp = -1 !== f.indexOf("%"), b.oxr = "=" === e.charAt(1), b.oyr = "=" === f.charAt(1), b.ox = parseFloat(e.replace(v, "")), b.oy = parseFloat(f.replace(v, "")), b.v = a), b || a
  922. },
  923. ia = function(a, b) {
  924. return "function" == typeof a && (a = a(r, q)), "string" == typeof a && "=" === a.charAt(1) ? parseInt(a.charAt(0) + "1", 10) * parseFloat(a.substr(2)) : parseFloat(a) - parseFloat(b) || 0
  925. },
  926. ja = function(a, b) {
  927. return "function" == typeof a && (a = a(r, q)), null == a ? b : "string" == typeof a && "=" === a.charAt(1) ? parseInt(a.charAt(0) + "1", 10) * parseFloat(a.substr(2)) + b : parseFloat(a) || 0
  928. },
  929. ka = function(a, b, c, d) {
  930. var e, f, g, h, i, j = 1e-6;
  931. return "function" == typeof a && (a = a(r, q)), null == a ? h = b : "number" == typeof a ? h = a : (e = 360, f = a.split("_"), i = "=" === a.charAt(1), g = (i ? parseInt(a.charAt(0) + "1", 10) * parseFloat(f[0].substr(2)) : parseFloat(f[0])) * (-1 === a.indexOf("rad") ? 1 : L) - (i ? 0 : b), f.length && (d && (d[c] = b + g), -1 !== a.indexOf("short") && (g %= e, g !== g % (e / 2) && (g = 0 > g ? g + e : g - e)), -1 !== a.indexOf("_cw") && 0 > g ? g = (g + 9999999999 * e) % e - (g / e | 0) * e : -1 !== a.indexOf("ccw") && g > 0 && (g = (g - 9999999999 * e) % e - (g / e | 0) * e)), h = b + g), j > h && h > -j && (h = 0), h
  932. },
  933. la = {
  934. aqua: [0, 255, 255],
  935. lime: [0, 255, 0],
  936. silver: [192, 192, 192],
  937. black: [0, 0, 0],
  938. maroon: [128, 0, 0],
  939. teal: [0, 128, 128],
  940. blue: [0, 0, 255],
  941. navy: [0, 0, 128],
  942. white: [255, 255, 255],
  943. fuchsia: [255, 0, 255],
  944. olive: [128, 128, 0],
  945. yellow: [255, 255, 0],
  946. orange: [255, 165, 0],
  947. gray: [128, 128, 128],
  948. purple: [128, 0, 128],
  949. green: [0, 128, 0],
  950. red: [255, 0, 0],
  951. pink: [255, 192, 203],
  952. cyan: [0, 255, 255],
  953. transparent: [255, 255, 255, 0]
  954. },
  955. ma = function(a, b, c) {
  956. 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
  957. },
  958. na = g.parseColor = function(a, b) {
  959. var c, d, e, f, g, h, i, j, k, l, m;
  960. if (a)
  961. if ("number" == typeof a) c = [a >> 16, a >> 8 & 255, 255 & a];
  962. else {
  963. if ("," === a.charAt(a.length - 1) && (a = a.substr(0, a.length - 1)), la[a]) c = la[a];
  964. 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];
  965. else if ("hsl" === a.substr(0, 3))
  966. if (c = m = a.match(s), b) {
  967. if (-1 !== a.indexOf("=")) return a.match(t)
  968. } 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(c[3])), c[0] = ma(g + 1 / 3, d, e), c[1] = ma(g, d, e), c[2] = ma(g - 1 / 3, d, e);
  969. else c = a.match(s) || la.transparent;
  970. c[0] = Number(c[0]), c[1] = Number(c[1]), c[2] = Number(c[2]), c.length > 3 && (c[3] = Number(c[3]))
  971. }
  972. else c = la.black;
  973. 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
  974. },
  975. oa = function(a, b) {
  976. var c, d, e, f = a.match(pa) || [],
  977. g = 0,
  978. h = "";
  979. if (!f.length) return a;
  980. for (c = 0; c < f.length; c++) d = f[c], e = a.substr(g, a.indexOf(d, g) - g), g += e.length + d.length, d = na(d, b), 3 === d.length && d.push(1), h += e + (b ? "hsla(" + d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : "rgba(" + d.join(",")) + ")";
  981. return h + a.substr(g)
  982. },
  983. pa = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";
  984. for (j in la) pa += "|" + j + "\\b";
  985. pa = new RegExp(pa + ")", "gi"), g.colorStringFilter = function(a) {
  986. var b, c = a[0] + " " + a[1];
  987. pa.test(c) && (b = -1 !== c.indexOf("hsl(") || -1 !== c.indexOf("hsla("), a[0] = oa(a[0], b), a[1] = oa(a[1], b)), pa.lastIndex = 0
  988. }, b.defaultStringFilter || (b.defaultStringFilter = g.colorStringFilter);
  989. var qa = function(a, b, c, d) {
  990. if (null == a) return function(a) {
  991. return a
  992. };
  993. var e, f = b ? (a.match(pa) || [""])[0] : "",
  994. g = a.split(f).join("").match(u) || [],
  995. h = a.substr(0, a.indexOf(g[0])),
  996. i = ")" === a.charAt(a.length - 1) ? ")" : "",
  997. j = -1 !== a.indexOf(" ") ? " " : ",",
  998. k = g.length,
  999. l = k > 0 ? g[0].replace(s, "") : "";
  1000. return k ? e = b ? function(a) {
  1001. var b, m, n, o;
  1002. if ("number" == typeof a) a += l;
  1003. else if (d && I.test(a)) {
  1004. for (o = a.replace(I, "|").split("|"), n = 0; n < o.length; n++) o[n] = e(o[n]);
  1005. return o.join(",")
  1006. }
  1007. if (b = (a.match(pa) || [f])[0], m = a.split(b).join("").match(u) || [], n = m.length, k > n--)
  1008. for (; ++n < k;) m[n] = c ? m[(n - 1) / 2 | 0] : g[n];
  1009. return h + m.join(j) + j + b + i + (-1 !== a.indexOf("inset") ? " inset" : "")
  1010. } : function(a) {
  1011. var b, f, m;
  1012. if ("number" == typeof a) a += l;
  1013. else if (d && I.test(a)) {
  1014. for (f = a.replace(I, "|").split("|"), m = 0; m < f.length; m++) f[m] = e(f[m]);
  1015. return f.join(",")
  1016. }
  1017. if (b = a.match(u) || [], m = b.length, k > m--)
  1018. for (; ++m < k;) b[m] = c ? b[(m - 1) / 2 | 0] : g[m];
  1019. return h + b.join(j) + i
  1020. } : function(a) {
  1021. return a
  1022. }
  1023. },
  1024. ra = function(a) {
  1025. return a = a.split(","),
  1026. function(b, c, d, e, f, g, h) {
  1027. var i, j = (c + "").split(" ");
  1028. for (h = {}, i = 0; 4 > i; i++) h[a[i]] = j[i] = j[i] || j[(i - 1) / 2 >> 0];
  1029. return e.parse(b, h, f, g)
  1030. }
  1031. },
  1032. sa = (S._setPluginRatio = function(a) {
  1033. this.plugin.setRatio(a);
  1034. 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;
  1035. if (g.autoRotate && (g.autoRotate.rotation = g.mod ? g.mod(h.rotation, this.t) : h.rotation), 1 === a || 0 === a)
  1036. for (i = g.firstMPT, f = 1 === a ? "e" : "b"; i;) {
  1037. if (c = i.t, c.type) {
  1038. if (1 === c.type) {
  1039. for (e = c.xs0 + c.s + c.xs1, d = 1; d < c.l; d++) e += c["xn" + d] + c["xs" + (d + 1)];
  1040. c[f] = e
  1041. }
  1042. } else c[f] = c.s + c.xs0;
  1043. i = i._next
  1044. }
  1045. }, function(a, b, c, d, e) {
  1046. this.t = a, this.p = b, this.v = c, this.r = e, d && (d._prev = this, this._next = d)
  1047. }),
  1048. ta = (S._parseToProxy = function(a, b, c, d, e, f) {
  1049. var g, h, i, j, k, l = d,
  1050. m = {},
  1051. n = {},
  1052. o = c._transform,
  1053. p = M;
  1054. for (c._transform = null, M = b, d = k = c.parse(a, b, d, e), M = p, f && (c._transform = o, l && (l._prev = null, l._prev && (l._prev._next = null))); d && d !== l;) {
  1055. if (d.type <= 1 && (h = d.p, n[h] = d.s + d.c, m[h] = d.s, f || (j = new sa(d, "s", h, j, d.r), d.c = 0), 1 === d.type))
  1056. for (g = d.l; --g > 0;) i = "xn" + g, h = d.p + "_" + i, n[h] = d.data[i], m[h] = d[i], f || (j = new sa(d, i, h, j, d.rxp[i]));
  1057. d = d._next
  1058. }
  1059. return {
  1060. proxy: m,
  1061. end: n,
  1062. firstMPT: j,
  1063. pt: k
  1064. }
  1065. }, S.CSSPropTween = function(a, b, d, e, g, h, i, j, k, l, m) {
  1066. this.t = a, this.p = b, this.s = d, this.c = e, this.n = i || b, a instanceof ta || f.push(this.n), this.r = j, this.type = h || 0, k && (this.pr = k, c = !0), this.b = void 0 === l ? d : l, this.e = void 0 === m ? d + e : m, g && (this._next = g, g._prev = this)
  1067. }),
  1068. ua = function(a, b, c, d, e, f) {
  1069. var g = new ta(a, b, c, d - c, e, -1, f);
  1070. return g.b = c, g.e = g.xs0 = d, g
  1071. },
  1072. va = g.parseComplex = function(a, b, c, d, e, f, h, i, j, l) {
  1073. c = c || f || "", "function" == typeof d && (d = d(r, q)), h = new ta(a, b, 0, 0, h, l ? 2 : 1, null, !1, i, c, d), d += "", e && pa.test(d + c) && (d = [c, d], g.colorStringFilter(d), c = d[0], d = d[1]);
  1074. var m, n, o, p, u, v, w, x, y, z, A, B, C, D = c.split(", ").join(",").split(" "),
  1075. E = d.split(", ").join(",").split(" "),
  1076. F = D.length,
  1077. G = k !== !1;
  1078. for ((-1 !== d.indexOf(",") || -1 !== c.indexOf(",")) && (-1 !== (d + c).indexOf("rgb") || -1 !== (d + c).indexOf("hsl") ? (D = D.join(" ").replace(I, ", ").split(" "), E = E.join(" ").replace(I, ", ").split(" ")) : (D = D.join(" ").split(",").join(", ").split(" "), E = E.join(" ").split(",").join(", ").split(" ")), F = D.length), F !== E.length && (D = (f || "").split(" "), F = D.length), h.plugin = j, h.setRatio = l, pa.lastIndex = 0, m = 0; F > m; m++)
  1079. if (p = D[m], u = E[m], x = parseFloat(p), x || 0 === x) h.appendXtra("", x, ia(u, x), u.replace(t, ""), G && -1 !== u.indexOf("px"), !0);
  1080. else if (e && pa.test(p)) B = u.indexOf(")") + 1, B = ")" + (B ? u.substr(B) : ""), C = -1 !== u.indexOf("hsl") && U, z = u, p = na(p, C), u = na(u, C), y = p.length + u.length > 6, y && !U && 0 === u[3] ? (h["xs" + h.l] += h.l ? " transparent" : "transparent", h.e = h.e.split(E[m]).join("transparent")) : (U || (y = !1), C ? h.appendXtra(z.substr(0, z.indexOf("hsl")) + (y ? "hsla(" : "hsl("), p[0], ia(u[0], p[0]), ",", !1, !0).appendXtra("", p[1], ia(u[1], p[1]), "%,", !1).appendXtra("", p[2], ia(u[2], p[2]), y ? "%," : "%" + B, !1) : h.appendXtra(z.substr(0, z.indexOf("rgb")) + (y ? "rgba(" : "rgb("), p[0], u[0] - p[0], ",", !0, !0).appendXtra("", p[1], u[1] - p[1], ",", !0).appendXtra("", p[2], u[2] - p[2], y ? "," : B, !0), y && (p = p.length < 4 ? 1 : p[3], h.appendXtra("", p, (u.length < 4 ? 1 : u[3]) - p, B, !1))), pa.lastIndex = 0;
  1081. else if (v = p.match(s)) {
  1082. if (w = u.match(t), !w || w.length !== v.length) return h;
  1083. for (o = 0, n = 0; n < v.length; n++) A = v[n], z = p.indexOf(A, o), h.appendXtra(p.substr(o, z - o), Number(A), ia(w[n], A), "", G && "px" === p.substr(z + A.length, 2), 0 === n), o = z + A.length;
  1084. h["xs" + h.l] += p.substr(o)
  1085. } else h["xs" + h.l] += h.l || h["xs" + h.l] ? " " + u : u;
  1086. if (-1 !== d.indexOf("=") && h.data) {
  1087. for (B = h.xs0 + h.data.s, m = 1; m < h.l; m++) B += h["xs" + m] + h.data["xn" + m];
  1088. h.e = B + h["xs" + m]
  1089. }
  1090. return h.l || (h.type = -1, h.xs0 = h.e), h.xfirst || h
  1091. },
  1092. wa = 9;
  1093. for (j = ta.prototype, j.l = j.pr = 0; --wa > 0;) j["xn" + wa] = 0, j["xs" + wa] = "";
  1094. 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) {
  1095. var g = this,
  1096. h = g.l;
  1097. return g["xs" + h] += f && (h || g["xs" + h]) ? " " + a : a || "", c || 0 === h || g.plugin ? (g.l++, g.type = g.setRatio ? 2 : 1, g["xs" + g.l] = d || "", h > 0 ? (g.data["xn" + h] = b + c, g.rxp["xn" + h] = e, g["xn" + h] = b, g.plugin || (g.xfirst = new ta(g, "xn" + h, b, c, g.xfirst || g, 0, g.n, e, g.pr), g.xfirst.xs0 = 0), g) : (g.data = {
  1098. s: b + c
  1099. }, g.rxp = {}, g.s = b, g.c = c, g.r = e, g)) : (g["xs" + h] += b + (d || ""), g)
  1100. };
  1101. var xa = function(a, b) {
  1102. b = b || {}, this.p = b.prefix ? Z(a) || a : a, i[a] = i[this.p] = this, this.format = b.formatter || qa(b.defaultValue, b.color, b.collapsible, b.multi), b.parser && (this.parse = b.parser), this.clrs = b.color, this.multi = b.multi, this.keyword = b.keyword, this.dflt = b.defaultValue, this.pr = b.priority || 0
  1103. },
  1104. ya = S._registerComplexSpecialProp = function(a, b, c) {
  1105. "object" != typeof b && (b = {
  1106. parser: c
  1107. });
  1108. var d, e, f = a.split(","),
  1109. g = b.defaultValue;
  1110. for (c = c || [g], d = 0; d < f.length; d++) b.prefix = 0 === d && b.prefix, b.defaultValue = c[d] || g, e = new xa(f[d], b)
  1111. },
  1112. za = S._registerPluginProp = function(a) {
  1113. if (!i[a]) {
  1114. var b = a.charAt(0).toUpperCase() + a.substr(1) + "Plugin";
  1115. ya(a, {
  1116. parser: function(a, c, d, e, f, g, j) {
  1117. var k = h.com.greensock.plugins[b];
  1118. return k ? (k._cssRegister(), i[d].parse(a, c, d, e, f, g, j)) : (W("Error: " + b + " js file not loaded."), f)
  1119. }
  1120. })
  1121. }
  1122. };
  1123. j = xa.prototype, j.parseComplex = function(a, b, c, d, e, f) {
  1124. var g, h, i, j, k, l, m = this.keyword;
  1125. if (this.multi && (I.test(c) || I.test(b) ? (h = b.replace(I, "|").split("|"), i = c.replace(I, "|").split("|")) : m && (h = [b], i = [c])), i) {
  1126. for (j = i.length > h.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)));
  1127. b = h.join(", "), c = i.join(", ")
  1128. }
  1129. return va(a, this.p, b, c, this.clrs, this.dflt, d, this.pr, e, f)
  1130. }, j.parse = function(a, b, c, d, f, g, h) {
  1131. return this.parseComplex(a.style, this.format(_(a, this.p, e, !1, this.dflt)), this.format(b), f, g)
  1132. }, g.registerSpecialProp = function(a, b, c) {
  1133. ya(a, {
  1134. parser: function(a, d, e, f, g, h, i) {
  1135. var j = new ta(a, e, 0, 0, g, 2, e, !1, c);
  1136. return j.plugin = h, j.setRatio = b(a, d, f._tween, e), j
  1137. },
  1138. priority: c
  1139. })
  1140. }, g.useSVGTransformAttr = !0;
  1141. var Aa, Ba = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),
  1142. Ca = Z("transform"),
  1143. Da = X + "transform",
  1144. Ea = Z("transformOrigin"),
  1145. Fa = null !== Z("perspective"),
  1146. Ga = S.Transform = function() {
  1147. this.perspective = parseFloat(g.defaultTransformPerspective) || 0, this.force3D = g.defaultForce3D !== !1 && Fa ? g.defaultForce3D || "auto" : !1
  1148. },
  1149. Ha = _gsScope.SVGElement,
  1150. Ia = function(a, b, c) {
  1151. var d, e = O.createElementNS("http://www.w3.org/2000/svg", a),
  1152. f = /([a-z])([A-Z])/g;
  1153. for (d in c) e.setAttributeNS(null, d.replace(f, "$1-$2").toLowerCase(), c[d]);
  1154. return b.appendChild(e), e
  1155. },
  1156. Ja = O.documentElement || {},
  1157. Ka = function() {
  1158. var a, b, c, d = p || /Android/i.test(T) && !_gsScope.chrome;
  1159. return O.createElementNS && !d && (a = Ia("svg", Ja), b = Ia("rect", a, {
  1160. width: 100,
  1161. height: 50,
  1162. x: 100
  1163. }), c = b.getBoundingClientRect().width, b.style[Ea] = "50% 50%", b.style[Ca] = "scaleX(0.5)", d = c === b.getBoundingClientRect().width && !(n && Fa), Ja.removeChild(a)), d
  1164. }(),
  1165. La = function(a, b, c, d, e, f) {
  1166. var h, i, j, k, l, m, n, o, p, q, r, s, t, u, v = a._gsTransform,
  1167. w = Qa(a, !0);
  1168. v && (t = v.xOrigin, u = v.yOrigin), (!d || (h = d.split(" ")).length < 2) && (n = a.getBBox(), 0 === n.x && 0 === n.y && n.width + n.height === 0 && (n = {
  1169. x: parseFloat(a.hasAttribute("x") ? a.getAttribute("x") : a.hasAttribute("cx") ? a.getAttribute("cx") : 0) || 0,
  1170. y: parseFloat(a.hasAttribute("y") ? a.getAttribute("y") : a.hasAttribute("cy") ? a.getAttribute("cy") : 0) || 0,
  1171. width: 0,
  1172. height: 0
  1173. }), b = ha(b).split(" "), h = [(-1 !== b[0].indexOf("%") ? parseFloat(b[0]) / 100 * n.width : parseFloat(b[0])) + n.x, (-1 !== b[1].indexOf("%") ? parseFloat(b[1]) / 100 * n.height : parseFloat(b[1])) + n.y]), c.xOrigin = k = parseFloat(h[0]), c.yOrigin = l = parseFloat(h[1]), d && w !== Pa && (m = w[0], n = w[1], o = w[2], p = w[3], q = w[4], r = w[5], s = m * p - n * o, s && (i = k * (p / s) + l * (-o / s) + (o * r - p * q) / s, j = k * (-n / s) + l * (m / s) - (m * r - n * q) / s, k = c.xOrigin = h[0] = i, l = c.yOrigin = h[1] = j)), v && (f && (c.xOffset = v.xOffset, c.yOffset = v.yOffset, v = c), e || e !== !1 && g.defaultSmoothOrigin !== !1 ? (i = k - t, j = l - u, v.xOffset += i * w[0] + j * w[2] - i, v.yOffset += i * w[1] + j * w[3] - j) : v.xOffset = v.yOffset = 0), f || a.setAttribute("data-svg-origin", h.join(" "))
  1174. },
  1175. Ma = function(a) {
  1176. var b, c = P("svg", this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"),
  1177. d = this.parentNode,
  1178. e = this.nextSibling,
  1179. f = this.style.cssText;
  1180. if (Ja.appendChild(c), c.appendChild(this), this.style.display = "block", a) try {
  1181. b = this.getBBox(), this._originalGetBBox = this.getBBox, this.getBBox = Ma
  1182. } catch (g) {} else this._originalGetBBox && (b = this._originalGetBBox());
  1183. return e ? d.insertBefore(this, e) : d.appendChild(this), Ja.removeChild(c), this.style.cssText = f, b
  1184. },
  1185. Na = function(a) {
  1186. try {
  1187. return a.getBBox()
  1188. } catch (b) {
  1189. return Ma.call(a, !0)
  1190. }
  1191. },
  1192. Oa = function(a) {
  1193. return !(!Ha || !a.getCTM || a.parentNode && !a.ownerSVGElement || !Na(a))
  1194. },
  1195. Pa = [1, 0, 0, 1, 0, 0],
  1196. Qa = function(a, b) {
  1197. var c, d, e, f, g, h, i = a._gsTransform || new Ga,
  1198. j = 1e5,
  1199. k = a.style;
  1200. if (Ca ? d = _(a, Da, null, !0) : a.currentStyle && (d = a.currentStyle.filter.match(G), d = d && 4 === d.length ? [d[0].substr(4), Number(d[2].substr(4)), Number(d[1].substr(4)), d[3].substr(4), i.x || 0, i.y || 0].join(",") : ""), c = !d || "none" === d || "matrix(1, 0, 0, 1, 0, 0)" === d, !Ca || !(h = !$(a) || "none" === $(a).display) && a.parentNode || (h && (f = k.display, k.display = "block"), a.parentNode || (g = 1, Ja.appendChild(a)), d = _(a, Da, null, !0), c = !d || "none" === d || "matrix(1, 0, 0, 1, 0, 0)" === d, f ? k.display = f : h && Va(k, "display"), g && Ja.removeChild(a)), (i.svg || a.getCTM && Oa(a)) && (c && -1 !== (k[Ca] + "").indexOf("matrix") && (d = k[Ca], c = 0), e = a.getAttribute("transform"), c && e && (-1 !== e.indexOf("matrix") ? (d = e, c = 0) : -1 !== e.indexOf("translate") && (d = "matrix(1,0,0,1," + e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",") + ")", c = 0))), c) return Pa;
  1201. for (e = (d || "").match(s) || [], wa = e.length; --wa > -1;) f = Number(e[wa]), e[wa] = (g = f - (f |= 0)) ? (g * j + (0 > g ? -.5 : .5) | 0) / j + f : f;
  1202. return b && e.length > 6 ? [e[0], e[1], e[4], e[5], e[12], e[13]] : e
  1203. },
  1204. Ra = S.getTransform = function(a, c, d, e) {
  1205. if (a._gsTransform && d && !e) return a._gsTransform;
  1206. var f, h, i, j, k, l, m = d ? a._gsTransform || new Ga : new Ga,
  1207. n = m.scaleX < 0,
  1208. o = 2e-5,
  1209. p = 1e5,
  1210. q = Fa ? parseFloat(_(a, Ea, c, !1, "0 0 0").split(" ")[2]) || m.zOrigin || 0 : 0,
  1211. r = parseFloat(g.defaultTransformPerspective) || 0;
  1212. if (m.svg = !(!a.getCTM || !Oa(a)), m.svg && (La(a, _(a, Ea, c, !1, "50% 50%") + "", m, a.getAttribute("data-svg-origin")), Aa = g.useSVGTransformAttr || Ka), f = Qa(a), f !== Pa) {
  1213. if (16 === f.length) {
  1214. var s, t, u, v, w, x = f[0],
  1215. y = f[1],
  1216. z = f[2],
  1217. A = f[3],
  1218. B = f[4],
  1219. C = f[5],
  1220. D = f[6],
  1221. E = f[7],
  1222. F = f[8],
  1223. G = f[9],
  1224. H = f[10],
  1225. I = f[12],
  1226. J = f[13],
  1227. K = f[14],
  1228. M = f[11],
  1229. N = Math.atan2(D, H);
  1230. m.zOrigin && (K = -m.zOrigin, I = F * K - f[12], J = G * K - f[13], K = H * K + m.zOrigin - f[14]), m.rotationX = N * L, N && (v = Math.cos(-N), w = Math.sin(-N), s = B * v + F * w, t = C * v + G * w, u = D * v + H * w, F = B * -w + F * v, G = C * -w + G * v, H = D * -w + H * v, M = E * -w + M * v, B = s, C = t, D = u), N = Math.atan2(-z, H), m.rotationY = N * L, N && (v = Math.cos(-N), w = Math.sin(-N), s = x * v - F * w, t = y * v - G * w, u = z * v - H * w, G = y * w + G * v, H = z * w + H * v, M = A * w + M * v, x = s, y = t, z = u), N = Math.atan2(y, x), m.rotation = N * L, N && (v = Math.cos(N), w = Math.sin(N), s = x * v + y * w, t = B * v + C * w, u = F * v + G * w, y = y * v - x * w, C = C * v - B * w, G = G * v - F * w, x = s, B = t, F = u), m.rotationX && Math.abs(m.rotationX) + Math.abs(m.rotation) > 359.9 && (m.rotationX = m.rotation = 0, m.rotationY = 180 - m.rotationY), N = Math.atan2(B, C), m.scaleX = (Math.sqrt(x * x + y * y + z * z) * p + .5 | 0) / p, m.scaleY = (Math.sqrt(C * C + D * D) * p + .5 | 0) / p, m.scaleZ = (Math.sqrt(F * F + G * G + H * H) * p + .5 | 0) / p, x /= m.scaleX, B /= m.scaleY, y /= m.scaleX, C /= m.scaleY, Math.abs(N) > o ? (m.skewX = N * L, B = 0, "simple" !== m.skewType && (m.scaleY *= 1 / Math.cos(N))) : m.skewX = 0, m.perspective = M ? 1 / (0 > M ? -M : M) : 0, m.x = I, m.y = J, m.z = K, m.svg && (m.x -= m.xOrigin - (m.xOrigin * x - m.yOrigin * B), m.y -= m.yOrigin - (m.yOrigin * y - m.xOrigin * C))
  1231. } else if (!Fa || e || !f.length || m.x !== f[4] || m.y !== f[5] || !m.rotationX && !m.rotationY) {
  1232. var O = f.length >= 6,
  1233. P = O ? f[0] : 1,
  1234. Q = f[1] || 0,
  1235. R = f[2] || 0,
  1236. S = O ? f[3] : 1;
  1237. m.x = f[4] || 0, m.y = f[5] || 0, i = Math.sqrt(P * P + Q * Q), j = Math.sqrt(S * S + R * R), k = P || Q ? Math.atan2(Q, P) * L : m.rotation || 0, l = R || S ? Math.atan2(R, S) * L + k : m.skewX || 0, m.scaleX = i, m.scaleY = j, m.rotation = k, m.skewX = l, Fa && (m.rotationX = m.rotationY = m.z = 0, m.perspective = r, m.scaleZ = 1), m.svg && (m.x -= m.xOrigin - (m.xOrigin * P + m.yOrigin * R), m.y -= m.yOrigin - (m.xOrigin * Q + m.yOrigin * S))
  1238. }
  1239. Math.abs(m.skewX) > 90 && Math.abs(m.skewX) < 270 && (n ? (m.scaleX *= -1, m.skewX += m.rotation <= 0 ? 180 : -180, m.rotation += m.rotation <= 0 ? 180 : -180) : (m.scaleY *= -1, m.skewX += m.skewX <= 0 ? 180 : -180)), m.zOrigin = q;
  1240. for (h in m) m[h] < o && m[h] > -o && (m[h] = 0)
  1241. }
  1242. return d && (a._gsTransform = m, m.svg && (Aa && a.style[Ca] ? b.delayedCall(.001, function() {
  1243. Va(a.style, Ca)
  1244. }) : !Aa && a.getAttribute("transform") && b.delayedCall(.001, function() {
  1245. a.removeAttribute("transform")
  1246. }))), m
  1247. },
  1248. Sa = function(a) {
  1249. var b, c, d = this.data,
  1250. e = -d.rotation * K,
  1251. f = e + d.skewX * K,
  1252. g = 1e5,
  1253. h = (Math.cos(e) * d.scaleX * g | 0) / g,
  1254. i = (Math.sin(e) * d.scaleX * g | 0) / g,
  1255. j = (Math.sin(f) * -d.scaleY * g | 0) / g,
  1256. k = (Math.cos(f) * d.scaleY * g | 0) / g,
  1257. l = this.t.style,
  1258. m = this.t.currentStyle;
  1259. if (m) {
  1260. c = i, i = -j, j = -c, b = m.filter, l.filter = "";
  1261. var n, o, q = this.t.offsetWidth,
  1262. r = this.t.offsetHeight,
  1263. s = "absolute" !== m.position,
  1264. t = "progid:DXImageTransform.Microsoft.Matrix(M11=" + h + ", M12=" + i + ", M21=" + j + ", M22=" + k,
  1265. u = d.x + q * d.xPercent / 100,
  1266. v = d.y + r * d.yPercent / 100;
  1267. if (null != d.ox && (n = (d.oxp ? q * d.ox * .01 : d.ox) - q / 2, o = (d.oyp ? r * d.oy * .01 : d.oy) - r / 2, u += n - (n * h + o * i), v += o - (n * j + o * k)), s ? (n = q / 2, o = r / 2, t += ", Dx=" + (n - (n * h + o * i) + u) + ", Dy=" + (o - (n * j + o * k) + v) + ")") : t += ", sizingMethod='auto expand')", -1 !== b.indexOf("DXImageTransform.Microsoft.Matrix(") ? l.filter = b.replace(H, t) : l.filter = t + " " + b, (0 === a || 1 === a) && 1 === h && 0 === i && 0 === j && 1 === k && (s && -1 === t.indexOf("Dx=0, Dy=0") || x.test(b) && 100 !== parseFloat(RegExp.$1) || -1 === b.indexOf(b.indexOf("Alpha")) && l.removeAttribute("filter")), !s) {
  1268. var y, z, A, B = 8 > p ? 1 : -1;
  1269. for (n = d.ieOffsetX || 0, o = d.ieOffsetY || 0, d.ieOffsetX = Math.round((q - ((0 > h ? -h : h) * q + (0 > i ? -i : i) * r)) / 2 + u), d.ieOffsetY = Math.round((r - ((0 > k ? -k : k) * r + (0 > j ? -j : j) * q)) / 2 + v), wa = 0; 4 > wa; wa++) z = fa[wa], y = m[z], c = -1 !== y.indexOf("px") ? parseFloat(y) : aa(this.t, z, parseFloat(y), y.replace(w, "")) || 0, A = c !== d[z] ? 2 > wa ? -d.ieOffsetX : -d.ieOffsetY : 2 > wa ? n - d.ieOffsetX : o - d.ieOffsetY, l[z] = (d[z] = Math.round(c - A * (0 === wa || 2 === wa ? 1 : B))) + "px"
  1270. }
  1271. }
  1272. },
  1273. Ta = S.set3DTransformRatio = S.setTransformRatio = function(a) {
  1274. 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,
  1275. A = this.t.style,
  1276. B = z.rotation,
  1277. C = z.rotationX,
  1278. D = z.rotationY,
  1279. E = z.scaleX,
  1280. F = z.scaleY,
  1281. G = z.scaleZ,
  1282. H = z.x,
  1283. I = z.y,
  1284. J = z.z,
  1285. L = z.svg,
  1286. M = z.perspective,
  1287. N = z.force3D,
  1288. O = z.skewY,
  1289. P = z.skewX;
  1290. if (O && (P += O, B += O), ((1 === a || 0 === a) && "auto" === N && (this.tween._totalTime === this.tween._totalDuration || !this.tween._totalTime) || !N) && !J && !M && !D && !C && 1 === G || Aa && L || !Fa) return void(B || P || L ? (B *= K, x = P * K, y = 1e5, c = Math.cos(B) * E, f = Math.sin(B) * E, d = Math.sin(B - x) * -F, g = Math.cos(B - x) * F, x && "simple" === z.skewType && (b = Math.tan(x - O * K), b = Math.sqrt(1 + b * b), d *= b, g *= b, O && (b = Math.tan(O * K), b = Math.sqrt(1 + b * b), c *= b, f *= b)), L && (H += z.xOrigin - (z.xOrigin * c + z.yOrigin * d) + z.xOffset, I += z.yOrigin - (z.xOrigin * f + z.yOrigin * g) + z.yOffset, Aa && (z.xPercent || z.yPercent) && (q = this.t.getBBox(), H += .01 * z.xPercent * q.width, I += .01 * z.yPercent * q.height), q = 1e-6, q > H && H > -q && (H = 0), q > I && I > -q && (I = 0)), u = (c * y | 0) / y + "," + (f * y | 0) / y + "," + (d * y | 0) / y + "," + (g * y | 0) / y + "," + H + "," + I + ")", L && Aa ? this.t.setAttribute("transform", "matrix(" + u) : A[Ca] = (z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) matrix(" : "matrix(") + u) : A[Ca] = (z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) matrix(" : "matrix(") + E + ",0,0," + F + "," + H + "," + I + ")");
  1291. if (n && (q = 1e-4, q > E && E > -q && (E = G = 2e-5), q > F && F > -q && (F = G = 2e-5), !M || z.z || z.rotationX || z.rotationY || (M = 0)), B || P) B *= K, r = c = Math.cos(B), s = f = Math.sin(B), P && (B -= P * K, r = Math.cos(B), s = Math.sin(B), "simple" === z.skewType && (b = Math.tan((P - O) * K), b = Math.sqrt(1 + b * b), r *= b, s *= b, z.skewY && (b = Math.tan(O * K), b = Math.sqrt(1 + b * b), c *= b, f *= b))), d = -s, g = r;
  1292. else {
  1293. if (!(D || C || 1 !== G || M || L)) return void(A[Ca] = (z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) translate3d(" : "translate3d(") + H + "px," + I + "px," + J + "px)" + (1 !== E || 1 !== F ? " scale(" + E + "," + F + ")" : ""));
  1294. c = g = 1, d = f = 0
  1295. }
  1296. k = 1, e = h = i = j = l = m = 0, o = M ? -1 / M : 0, p = z.zOrigin, q = 1e-6, v = ",", w = "0", B = D * K, B && (r = Math.cos(B), s = Math.sin(B), i = -s, l = o * -s, e = c * s, h = f * s, k = r, o *= r, c *= r, f *= r), B = C * K, B && (r = Math.cos(B), s = Math.sin(B), b = d * r + e * s, t = g * r + h * s, j = k * s, m = o * s, e = d * -s + e * r, h = g * -s + h * r, k *= r, o *= r, d = b, g = t), 1 !== G && (e *= G, h *= G, k *= G, o *= G), 1 !== F && (d *= F, g *= F, j *= F, m *= F), 1 !== E && (c *= E, f *= E, i *= E, l *= E), (p || L) && (p && (H += e * -p, I += h * -p, J += k * -p + p), L && (H += z.xOrigin - (z.xOrigin * c + z.yOrigin * d) + z.xOffset, I += z.yOrigin - (z.xOrigin * f + z.yOrigin * g) + z.yOffset), q > H && H > -q && (H = w), q > I && I > -q && (I = w), q > J && J > -q && (J = 0)), u = z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) matrix3d(" : "matrix3d(", u += (q > c && c > -q ? w : c) + v + (q > f && f > -q ? w : f) + v + (q > i && i > -q ? w : i), u += v + (q > l && l > -q ? w : l) + v + (q > d && d > -q ? w : d) + v + (q > g && g > -q ? w : g), C || D || 1 !== G ? (u += v + (q > j && j > -q ? w : j) + v + (q > m && m > -q ? w : m) + v + (q > e && e > -q ? w : e), u += v + (q > h && h > -q ? w : h) + v + (q > k && k > -q ? w : k) + v + (q > o && o > -q ? w : o) + v) : u += ",0,0,0,0,1,0,", u += H + v + I + v + J + v + (M ? 1 + -J / M : 1) + ")", A[Ca] = u
  1297. };
  1298. j = Ga.prototype, j.x = j.y = j.z = j.skewX = j.skewY = j.rotation = j.rotationX = j.rotationY = j.zOrigin = j.xPercent = j.yPercent = j.xOffset = j.yOffset = 0, j.scaleX = j.scaleY = j.scaleZ = 1, ya("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin", {
  1299. parser: function(a, b, c, d, f, h, i) {
  1300. if (d._lastParsedTransform === i) return f;
  1301. d._lastParsedTransform = i;
  1302. var j, k = i.scale && "function" == typeof i.scale ? i.scale : 0;
  1303. "function" == typeof i[c] && (j = i[c], i[c] = b), k && (i.scale = k(r, a));
  1304. var l, m, n, o, p, s, t, u, v, w = a._gsTransform,
  1305. x = a.style,
  1306. y = 1e-6,
  1307. z = Ba.length,
  1308. A = i,
  1309. B = {},
  1310. C = "transformOrigin",
  1311. D = Ra(a, e, !0, A.parseTransform),
  1312. E = A.transform && ("function" == typeof A.transform ? A.transform(r, q) : A.transform);
  1313. if (D.skewType = A.skewType || D.skewType || g.defaultSkewType, d._transform = D, E && "string" == typeof E && Ca) m = Q.style, m[Ca] = E, m.display = "block", m.position = "absolute", O.body.appendChild(Q), l = Ra(Q, null, !1), "simple" === D.skewType && (l.scaleY *= Math.cos(l.skewX * K)), D.svg && (s = D.xOrigin, t = D.yOrigin, l.x -= D.xOffset, l.y -= D.yOffset, (A.transformOrigin || A.svgOrigin) && (E = {}, La(a, ha(A.transformOrigin), E, A.svgOrigin, A.smoothOrigin, !0), s = E.xOrigin, t = E.yOrigin, l.x -= E.xOffset - D.xOffset, l.y -= E.yOffset - D.yOffset), (s || t) && (u = Qa(Q, !0), l.x -= s - (s * u[0] + t * u[2]), l.y -= t - (s * u[1] + t * u[3]))), O.body.removeChild(Q), l.perspective || (l.perspective = D.perspective), null != A.xPercent && (l.xPercent = ja(A.xPercent, D.xPercent)), null != A.yPercent && (l.yPercent = ja(A.yPercent, D.yPercent));
  1314. else if ("object" == typeof A) {
  1315. if (l = {
  1316. scaleX: ja(null != A.scaleX ? A.scaleX : A.scale, D.scaleX),
  1317. scaleY: ja(null != A.scaleY ? A.scaleY : A.scale, D.scaleY),
  1318. scaleZ: ja(A.scaleZ, D.scaleZ),
  1319. x: ja(A.x, D.x),
  1320. y: ja(A.y, D.y),
  1321. z: ja(A.z, D.z),
  1322. xPercent: ja(A.xPercent, D.xPercent),
  1323. yPercent: ja(A.yPercent, D.yPercent),
  1324. perspective: ja(A.transformPerspective, D.perspective)
  1325. }, p = A.directionalRotation, null != p)
  1326. if ("object" == typeof p)
  1327. for (m in p) A[m] = p[m];
  1328. else A.rotation = p;
  1329. "string" == typeof A.x && -1 !== A.x.indexOf("%") && (l.x = 0, l.xPercent = ja(A.x, D.xPercent)), "string" == typeof A.y && -1 !== A.y.indexOf("%") && (l.y = 0, l.yPercent = ja(A.y, D.yPercent)), l.rotation = ka("rotation" in A ? A.rotation : "shortRotation" in A ? A.shortRotation + "_short" : "rotationZ" in A ? A.rotationZ : D.rotation, D.rotation, "rotation", B), Fa && (l.rotationX = ka("rotationX" in A ? A.rotationX : "shortRotationX" in A ? A.shortRotationX + "_short" : D.rotationX || 0, D.rotationX, "rotationX", B), l.rotationY = ka("rotationY" in A ? A.rotationY : "shortRotationY" in A ? A.shortRotationY + "_short" : D.rotationY || 0, D.rotationY, "rotationY", B)), l.skewX = ka(A.skewX, D.skewX), l.skewY = ka(A.skewY, D.skewY)
  1330. }
  1331. for (Fa && null != A.force3D && (D.force3D = A.force3D, o = !0), n = D.force3D || D.z || D.rotationX || D.rotationY || l.z || l.rotationX || l.rotationY || l.perspective, n || null == A.scale || (l.scaleZ = 1); --z > -1;) v = Ba[z], E = l[v] - D[v], (E > y || -y > E || null != A[v] || null != M[v]) && (o = !0, f = new ta(D, v, D[v], E, f), v in B && (f.e = B[v]), f.xs0 = 0, f.plugin = h, d._overwriteProps.push(f.n));
  1332. return E = A.transformOrigin, D.svg && (E || A.svgOrigin) && (s = D.xOffset, t = D.yOffset, La(a, ha(E), l, A.svgOrigin, A.smoothOrigin), f = ua(D, "xOrigin", (w ? D : l).xOrigin, l.xOrigin, f, C), f = ua(D, "yOrigin", (w ? D : l).yOrigin, l.yOrigin, f, C), (s !== D.xOffset || t !== D.yOffset) && (f = ua(D, "xOffset", w ? s : D.xOffset, D.xOffset, f, C), f = ua(D, "yOffset", w ? t : D.yOffset, D.yOffset, f, C)), E = "0px 0px"), (E || Fa && n && D.zOrigin) && (Ca ? (o = !0, v = Ea, E = (E || _(a, v, e, !1, "50% 50%")) + "", f = new ta(x, v, 0, 0, f, -1, C), f.b = x[v], f.plugin = h, Fa ? (m = D.zOrigin, E = E.split(" "), D.zOrigin = (E.length > 2 && (0 === m || "0px" !== E[2]) ? parseFloat(E[2]) : m) || 0, f.xs0 = f.e = E[0] + " " + (E[1] || "50%") + " 0px", f = new ta(D, "zOrigin", 0, 0, f, -1, f.n), f.b = m, f.xs0 = f.e = D.zOrigin) : f.xs0 = f.e = E) : ha(E + "", D)), o && (d._transformType = D.svg && Aa || !n && 3 !== this._transformType ? 2 : 3), j && (i[c] = j), k && (i.scale = k), f
  1333. },
  1334. prefix: !0
  1335. }), ya("boxShadow", {
  1336. defaultValue: "0px 0px 0px 0px #999",
  1337. prefix: !0,
  1338. color: !0,
  1339. multi: !0,
  1340. keyword: "inset"
  1341. }), ya("borderRadius", {
  1342. defaultValue: "0px",
  1343. parser: function(a, b, c, f, g, h) {
  1344. b = this.format(b);
  1345. var i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y = ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"],
  1346. z = a.style;
  1347. for (q = parseFloat(a.offsetWidth), r = parseFloat(a.offsetHeight), i = b.split(" "), j = 0; j < y.length; j++) this.p.indexOf("border") && (y[j] = Z(y[j])), m = l = _(a, y[j], e, !1, "0px"), -1 !== m.indexOf(" ") && (l = m.split(" "), m = l[0], l = l[1]), n = k = i[j], o = parseFloat(m), t = m.substr((o + "").length), u = "=" === n.charAt(1), u ? (p = parseInt(n.charAt(0) + "1", 10), n = n.substr(2), p *= parseFloat(n), s = n.substr((p + "").length - (0 > p ? 1 : 0)) || "") : (p = parseFloat(n), s = n.substr((p + "").length)), "" === s && (s = d[c] || t), s !== t && (v = aa(a, "borderLeft", o, t), w = aa(a, "borderTop", o, t), "%" === s ? (m = v / q * 100 + "%", l = w / r * 100 + "%") : "em" === s ? (x = aa(a, "borderLeft", 1, "em"), m = v / x + "em", l = w / x + "em") : (m = v + "px", l = w + "px"), u && (n = parseFloat(m) + p + s, k = parseFloat(l) + p + s)), g = va(z, y[j], m + " " + l, n + " " + k, !1, "0px", g);
  1348. return g
  1349. },
  1350. prefix: !0,
  1351. formatter: qa("0px 0px 0px 0px", !1, !0)
  1352. }), ya("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius", {
  1353. defaultValue: "0px",
  1354. parser: function(a, b, c, d, f, g) {
  1355. return va(a.style, c, this.format(_(a, c, e, !1, "0px 0px")), this.format(b), !1, "0px", f)
  1356. },
  1357. prefix: !0,
  1358. formatter: qa("0px 0px", !1, !0)
  1359. }), ya("backgroundPosition", {
  1360. defaultValue: "0 0",
  1361. parser: function(a, b, c, d, f, g) {
  1362. var h, i, j, k, l, m, n = "background-position",
  1363. o = e || $(a, null),
  1364. q = this.format((o ? p ? o.getPropertyValue(n + "-x") + " " + o.getPropertyValue(n + "-y") : o.getPropertyValue(n) : a.currentStyle.backgroundPositionX + " " + a.currentStyle.backgroundPositionY) || "0 0"),
  1365. r = this.format(b);
  1366. if (-1 !== q.indexOf("%") != (-1 !== r.indexOf("%")) && r.split(",").length < 2 && (m = _(a, "backgroundImage").replace(D, ""), m && "none" !== m)) {
  1367. for (h = q.split(" "), i = r.split(" "), R.setAttribute("src", m), j = 2; --j > -1;) q = h[j], k = -1 !== q.indexOf("%"), k !== (-1 !== i[j].indexOf("%")) && (l = 0 === j ? a.offsetWidth - R.width : a.offsetHeight - R.height, h[j] = k ? parseFloat(q) / 100 * l + "px" : parseFloat(q) / l * 100 + "%");
  1368. q = h.join(" ")
  1369. }
  1370. return this.parseComplex(a.style, q, r, f, g)
  1371. },
  1372. formatter: ha
  1373. }), ya("backgroundSize", {
  1374. defaultValue: "0 0",
  1375. formatter: function(a) {
  1376. return a += "", ha(-1 === a.indexOf(" ") ? a + " " + a : a)
  1377. }
  1378. }), ya("perspective", {
  1379. defaultValue: "0px",
  1380. prefix: !0
  1381. }), ya("perspectiveOrigin", {
  1382. defaultValue: "50% 50%",
  1383. prefix: !0
  1384. }), ya("transformStyle", {
  1385. prefix: !0
  1386. }), ya("backfaceVisibility", {
  1387. prefix: !0
  1388. }), ya("userSelect", {
  1389. prefix: !0
  1390. }), ya("margin", {
  1391. parser: ra("marginTop,marginRight,marginBottom,marginLeft")
  1392. }), ya("padding", {
  1393. parser: ra("paddingTop,paddingRight,paddingBottom,paddingLeft")
  1394. }), ya("clip", {
  1395. defaultValue: "rect(0px,0px,0px,0px)",
  1396. parser: function(a, b, c, d, f, g) {
  1397. var h, i, j;
  1398. return 9 > p ? (i = a.currentStyle, j = 8 > p ? " " : ",", h = "rect(" + i.clipTop + j + i.clipRight + j + i.clipBottom + j + i.clipLeft + ")", b = this.format(b).split(",").join(j)) : (h = this.format(_(a, this.p, e, !1, this.dflt)), b = this.format(b)), this.parseComplex(a.style, h, b, f, g)
  1399. }
  1400. }), ya("textShadow", {
  1401. defaultValue: "0px 0px 0px #999",
  1402. color: !0,
  1403. multi: !0
  1404. }), ya("autoRound,strictUnits", {
  1405. parser: function(a, b, c, d, e) {
  1406. return e
  1407. }
  1408. }), ya("border", {
  1409. defaultValue: "0px solid #000",
  1410. parser: function(a, b, c, d, f, g) {
  1411. var h = _(a, "borderTopWidth", e, !1, "0px"),
  1412. i = this.format(b).split(" "),
  1413. j = i[0].replace(w, "");
  1414. return "px" !== j && (h = parseFloat(h) / aa(a, "borderTopWidth", 1, j) + j), this.parseComplex(a.style, this.format(h + " " + _(a, "borderTopStyle", e, !1, "solid") + " " + _(a, "borderTopColor", e, !1, "#000")), i.join(" "), f, g)
  1415. },
  1416. color: !0,
  1417. formatter: function(a) {
  1418. var b = a.split(" ");
  1419. return b[0] + " " + (b[1] || "solid") + " " + (a.match(pa) || ["#000"])[0]
  1420. }
  1421. }), ya("borderWidth", {
  1422. parser: ra("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")
  1423. }), ya("float,cssFloat,styleFloat", {
  1424. parser: function(a, b, c, d, e, f) {
  1425. var g = a.style,
  1426. h = "cssFloat" in g ? "cssFloat" : "styleFloat";
  1427. return new ta(g, h, 0, 0, e, -1, c, !1, 0, g[h], b)
  1428. }
  1429. });
  1430. var Ua = function(a) {
  1431. var b, c = this.t,
  1432. d = c.filter || _(this.data, "filter") || "",
  1433. e = this.s + this.c * a | 0;
  1434. 100 === e && (-1 === d.indexOf("atrix(") && -1 === d.indexOf("radient(") && -1 === d.indexOf("oader(") ? (c.removeAttribute("filter"), b = !_(this.data, "filter")) : (c.filter = d.replace(z, ""), b = !0)), b || (this.xn1 && (c.filter = d = d || "alpha(opacity=" + e + ")"), -1 === d.indexOf("pacity") ? 0 === e && this.xn1 || (c.filter = d + " alpha(opacity=" + e + ")") : c.filter = d.replace(x, "opacity=" + e))
  1435. };
  1436. ya("opacity,alpha,autoAlpha", {
  1437. defaultValue: "1",
  1438. parser: function(a, b, c, d, f, g) {
  1439. var h = parseFloat(_(a, "opacity", e, !1, "1")),
  1440. i = a.style,
  1441. j = "autoAlpha" === c;
  1442. return "string" == typeof b && "=" === b.charAt(1) && (b = ("-" === b.charAt(0) ? -1 : 1) * parseFloat(b.substr(2)) + h), j && 1 === h && "hidden" === _(a, "visibility", e) && 0 !== b && (h = 0), U ? f = new ta(i, "opacity", h, b - h, f) : (f = new ta(i, "opacity", 100 * h, 100 * (b - h), f), f.xn1 = j ? 1 : 0, i.zoom = 1, f.type = 2, f.b = "alpha(opacity=" + f.s + ")", f.e = "alpha(opacity=" + (f.s + f.c) + ")", f.data = a, f.plugin = g, f.setRatio = Ua), j && (f = new ta(i, "visibility", 0, 0, f, -1, null, !1, 0, 0 !== h ? "inherit" : "hidden", 0 === b ? "hidden" : "inherit"), f.xs0 = "inherit", d._overwriteProps.push(f.n), d._overwriteProps.push(c)), f
  1443. }
  1444. });
  1445. var Va = function(a, b) {
  1446. b && (a.removeProperty ? (("ms" === b.substr(0, 2) || "webkit" === b.substr(0, 6)) && (b = "-" + b), a.removeProperty(b.replace(B, "-$1").toLowerCase())) : a.removeAttribute(b))
  1447. },
  1448. Wa = function(a) {
  1449. if (this.t._gsClassPT = this, 1 === a || 0 === a) {
  1450. this.t.setAttribute("class", 0 === a ? this.b : this.e);
  1451. for (var b = this.data, c = this.t.style; b;) b.v ? c[b.p] = b.v : Va(c, b.p), b = b._next;
  1452. 1 === a && this.t._gsClassPT === this && (this.t._gsClassPT = null)
  1453. } else this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e)
  1454. };
  1455. ya("className", {
  1456. parser: function(a, b, d, f, g, h, i) {
  1457. var j, k, l, m, n, o = a.getAttribute("class") || "",
  1458. p = a.style.cssText;
  1459. if (g = f._classNamePT = new ta(a, d, 0, 0, g, 2), g.setRatio = Wa, g.pr = -11, c = !0, g.b = o, k = ca(a, e), l = a._gsClassPT) {
  1460. for (m = {}, n = l.data; n;) m[n.p] = 1, n = n._next;
  1461. l.setRatio(1)
  1462. }
  1463. return a._gsClassPT = g, g.e = "=" !== b.charAt(1) ? b : o.replace(new RegExp("(?:\\s|^)" + b.substr(2) + "(?![\\w-])"), "") + ("+" === b.charAt(0) ? " " + b.substr(2) : ""), a.setAttribute("class", g.e), j = da(a, k, ca(a), i, m), a.setAttribute("class", o), g.data = j.firstMPT, a.style.cssText = p, g = g.xfirst = f.parse(a, j.difs, g, h)
  1464. }
  1465. });
  1466. var Xa = function(a) {
  1467. if ((1 === a || 0 === a) && this.data._totalTime === this.data._totalDuration && "isFromStart" !== this.data.data) {
  1468. var b, c, d, e, f, g = this.t.style,
  1469. h = i.transform.parse;
  1470. if ("all" === this.e) g.cssText = "", e = !0;
  1471. else
  1472. for (b = this.e.split(" ").join("").split(","), d = b.length; --d > -1;) c = b[d], i[c] && (i[c].parse === h ? e = !0 : c = "transformOrigin" === c ? Ea : i[c].p), Va(g, c);
  1473. e && (Va(g, Ca), f = this.t._gsTransform, f && (f.svg && (this.t.removeAttribute("data-svg-origin"), this.t.removeAttribute("transform")), delete this.t._gsTransform))
  1474. }
  1475. };
  1476. for (ya("clearProps", {
  1477. parser: function(a, b, d, e, f) {
  1478. return f = new ta(a, d, 0, 0, f, 2), f.setRatio = Xa, f.e = b, f.pr = -10, f.data = e._tween, c = !0, f
  1479. }
  1480. }), j = "bezier,throwProps,physicsProps,physics2D".split(","), wa = j.length; wa--;) za(j[wa]);
  1481. j = g.prototype, j._firstPT = j._lastParsedTransform = j._transform = null, j._onInitTween = function(a, b, h, j) {
  1482. if (!a.nodeType) return !1;
  1483. this._target = q = a, this._tween = h, this._vars = b, r = j, k = b.autoRound, c = !1, d = b.suffixMap || g.suffixMap, e = $(a, ""), f = this._overwriteProps;
  1484. var n, p, s, t, u, v, w, x, z, A = a.style;
  1485. if (l && "" === A.zIndex && (n = _(a, "zIndex", e), ("auto" === n || "" === n) && this._addLazySet(A, "zIndex", 0)), "string" == typeof b && (t = A.cssText, n = ca(a, e), A.cssText = t + ";" + b, n = da(a, n, ca(a)).difs, !U && y.test(b) && (n.opacity = parseFloat(RegExp.$1)), b = n, A.cssText = t), b.className ? this._firstPT = p = i.className.parse(a, b.className, "className", this, null, null, b) : this._firstPT = p = this.parse(a, b, null), this._transformType) {
  1486. for (z = 3 === this._transformType, Ca ? m && (l = !0, "" === A.zIndex && (w = _(a, "zIndex", e), ("auto" === w || "" === w) && this._addLazySet(A, "zIndex", 0)), o && this._addLazySet(A, "WebkitBackfaceVisibility", this._vars.WebkitBackfaceVisibility || (z ? "visible" : "hidden"))) : A.zoom = 1, s = p; s && s._next;) s = s._next;
  1487. x = new ta(a, "transform", 0, 0, null, 2), this._linkCSSP(x, null, s), x.setRatio = Ca ? Ta : Sa, x.data = this._transform || Ra(a, e, !0), x.tween = h, x.pr = -1, f.pop()
  1488. }
  1489. if (c) {
  1490. for (; p;) {
  1491. for (v = p._next, s = t; s && s.pr > p.pr;) s = s._next;
  1492. (p._prev = s ? s._prev : u) ? p._prev._next = p: t = p, (p._next = s) ? s._prev = p : u = p, p = v
  1493. }
  1494. this._firstPT = t
  1495. }
  1496. return !0
  1497. }, j.parse = function(a, b, c, f) {
  1498. var g, h, j, l, m, n, o, p, s, t, u = a.style;
  1499. for (g in b) {
  1500. if (n = b[g], "function" == typeof n && (n = n(r, q)), h = i[g]) c = h.parse(a, n, g, this, c, f, b);
  1501. else {
  1502. if ("--" === g.substr(0, 2)) {
  1503. this._tween._propLookup[g] = this._addTween.call(this._tween, a.style, "setProperty", $(a).getPropertyValue(g) + "", n + "", g, !1, g);
  1504. continue
  1505. }
  1506. m = _(a, g, e) + "", s = "string" == typeof n, "color" === g || "fill" === g || "stroke" === g || -1 !== g.indexOf("Color") || s && A.test(n) ? (s || (n = na(n), n = (n.length > 3 ? "rgba(" : "rgb(") + n.join(",") + ")"), c = va(u, g, m, n, !0, "transparent", c, 0, f)) : s && J.test(n) ? c = va(u, g, m, n, !0, null, c, 0, f) : (j = parseFloat(m), o = j || 0 === j ? m.substr((j + "").length) : "", ("" === m || "auto" === m) && ("width" === g || "height" === g ? (j = ga(a, g, e), o = "px") : "left" === g || "top" === g ? (j = ba(a, g, e), o = "px") : (j = "opacity" !== g ? 0 : 1, o = "")), t = s && "=" === n.charAt(1), t ? (l = parseInt(n.charAt(0) + "1", 10), n = n.substr(2), l *= parseFloat(n), p = n.replace(w, "")) : (l = parseFloat(n), p = s ? n.replace(w, "") : ""), "" === p && (p = g in d ? d[g] : o), n = l || 0 === l ? (t ? l + j : l) + p : b[g], o !== p && ("" !== p || "lineHeight" === g) && (l || 0 === l) && j && (j = aa(a, g, j, o), "%" === p ? (j /= aa(a, g, 100, "%") / 100, b.strictUnits !== !0 && (m = j + "%")) : "em" === p || "rem" === p || "vw" === p || "vh" === p ? j /= aa(a, g, 1, p) : "px" !== p && (l = aa(a, g, l, p), p = "px"), t && (l || 0 === l) && (n = l + j + p)), t && (l += j), !j && 0 !== j || !l && 0 !== l ? void 0 !== u[g] && (n || n + "" != "NaN" && null != n) ? (c = new ta(u, g, l || j || 0, 0, c, -1, g, !1, 0, m, n), c.xs0 = "none" !== n || "display" !== g && -1 === g.indexOf("Style") ? n : m) : W("invalid " + g + " tween value: " + b[g]) : (c = new ta(u, g, j, l - j, c, 0, g, k !== !1 && ("px" === p || "zIndex" === g), 0, m, n), c.xs0 = p))
  1507. }
  1508. f && c && !c.plugin && (c.plugin = f)
  1509. }
  1510. return c
  1511. }, j.setRatio = function(a) {
  1512. var b, c, d, e = this._firstPT,
  1513. f = 1e-6;
  1514. if (1 !== a || this._tween._time !== this._tween._duration && 0 !== this._tween._time)
  1515. if (a || this._tween._time !== this._tween._duration && 0 !== this._tween._time || this._tween._rawPrevTime === -1e-6)
  1516. for (; e;) {
  1517. if (b = e.c * a + e.s, e.r ? b = Math.round(b) : f > b && b > -f && (b = 0), e.type)
  1518. if (1 === e.type)
  1519. if (d = e.l, 2 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2;
  1520. else if (3 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2 + e.xn2 + e.xs3;
  1521. 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;
  1522. 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;
  1523. else {
  1524. for (c = e.xs0 + b + e.xs1, d = 1; d < e.l; d++) c += e["xn" + d] + e["xs" + (d + 1)];
  1525. e.t[e.p] = c
  1526. } else -1 === e.type ? e.t[e.p] = e.xs0 : e.setRatio && e.setRatio(a);
  1527. else e.t[e.p] = b + e.xs0;
  1528. e = e._next
  1529. } else
  1530. for (; e;) 2 !== e.type ? e.t[e.p] = e.b : e.setRatio(a), e = e._next;
  1531. else
  1532. for (; e;) {
  1533. if (2 !== e.type)
  1534. if (e.r && -1 !== e.type)
  1535. if (b = Math.round(e.s + e.c), e.type) {
  1536. if (1 === e.type) {
  1537. for (d = e.l, c = e.xs0 + b + e.xs1, d = 1; d < e.l; d++) c += e["xn" + d] + e["xs" + (d + 1)];
  1538. e.t[e.p] = c
  1539. }
  1540. } else e.t[e.p] = b + e.xs0;
  1541. else e.t[e.p] = e.e;
  1542. else e.setRatio(a);
  1543. e = e._next
  1544. }
  1545. }, j._enableTransforms = function(a) {
  1546. this._transform = this._transform || Ra(this._target, e, !0), this._transformType = this._transform.svg && Aa || !a && 3 !== this._transformType ? 2 : 3
  1547. };
  1548. var Ya = function(a) {
  1549. this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0)
  1550. };
  1551. j._addLazySet = function(a, b, c) {
  1552. var d = this._firstPT = new ta(a, b, 0, 0, this._firstPT, 2);
  1553. d.e = c, d.setRatio = Ya, d.data = this
  1554. }, j._linkCSSP = function(a, b, c, d) {
  1555. return a && (b && (b._prev = a), a._next && (a._next._prev = a._prev), a._prev ? a._prev._next = a._next : this._firstPT === a && (this._firstPT = a._next, d = !0), c ? c._next = a : d || null !== this._firstPT || (this._firstPT = a), a._next = b, a._prev = c), a
  1556. }, j._mod = function(a) {
  1557. for (var b = this._firstPT; b;) "function" == typeof a[b.p] && a[b.p] === Math.round && (b.r = 1), b = b._next
  1558. }, j._kill = function(b) {
  1559. var c, d, e, f = b;
  1560. if (b.autoAlpha || b.alpha) {
  1561. f = {};
  1562. for (d in b) f[d] = b[d];
  1563. f.opacity = 1, f.autoAlpha && (f.visibility = 1)
  1564. }
  1565. for (b.className && (c = this._classNamePT) && (e = c.xfirst, e && e._prev ? this._linkCSSP(e._prev, c._next, e._prev._prev) : e === this._firstPT && (this._firstPT = c._next), c._next && this._linkCSSP(c._next, c._next._next, e._prev), this._classNamePT = null), c = this._firstPT; c;) c.plugin && c.plugin !== d && c.plugin._kill && (c.plugin._kill(b), d = c.plugin), c = c._next;
  1566. return a.prototype._kill.call(this, f)
  1567. };
  1568. var Za = function(a, b, c) {
  1569. var d, e, f, g;
  1570. if (a.slice)
  1571. for (e = a.length; --e > -1;) Za(a[e], b, c);
  1572. else
  1573. for (d = a.childNodes, e = d.length; --e > -1;) f = d[e], g = f.type, f.style && (b.push(ca(f)), c && c.push(f)), 1 !== g && 9 !== g && 11 !== g || !f.childNodes.length || Za(f, b, c)
  1574. };
  1575. return g.cascadeTo = function(a, c, d) {
  1576. var e, f, g, h, i = b.to(a, c, d),
  1577. j = [i],
  1578. k = [],
  1579. l = [],
  1580. m = [],
  1581. n = b._internals.reservedProps;
  1582. for (a = i._targets || i.target, Za(a, k, m), i.render(c, !0, !0), Za(a, l), i.render(0, !0, !0), i._enabled(!0), e = m.length; --e > -1;)
  1583. if (f = da(m[e], k[e], l[e]), f.firstMPT) {
  1584. f = f.difs;
  1585. for (g in d) n[g] && (f[g] = d[g]);
  1586. h = {};
  1587. for (g in f) h[g] = k[e][g];
  1588. j.push(b.fromTo(m[e], c, h, f))
  1589. } return j
  1590. }, a.activate([g]), g
  1591. }, !0),
  1592. function() {
  1593. var a = _gsScope._gsDefine.plugin({
  1594. propName: "roundProps",
  1595. version: "1.6.0",
  1596. priority: -1,
  1597. API: 2,
  1598. init: function(a, b, c) {
  1599. return this._tween = c, !0
  1600. }
  1601. }),
  1602. b = function(a) {
  1603. for (; a;) a.f || a.blob || (a.m = Math.round), a = a._next
  1604. },
  1605. c = a.prototype;
  1606. c._onInitAllProps = function() {
  1607. for (var a, c, d, e = this._tween, f = e.vars.roundProps.join ? e.vars.roundProps : e.vars.roundProps.split(","), g = f.length, h = {}, i = e._propLookup.roundProps; --g > -1;) h[f[g]] = Math.round;
  1608. for (g = f.length; --g > -1;)
  1609. for (a = f[g], c = e._firstPT; c;) d = c._next, c.pg ? c.t._mod(h) : c.n === a && (2 === c.f && c.t ? b(c.t._firstPT) : (this._add(c.t, a, c.s, c.c), d && (d._prev = c._prev), c._prev ? c._prev._next = d : e._firstPT === c && (e._firstPT = d), c._next = c._prev = null, e._propLookup[a] = i)), c = d;
  1610. return !1
  1611. }, c._add = function(a, b, c, d) {
  1612. this._addTween(a, b, c, c + d, b, Math.round), this._overwriteProps.push(b)
  1613. }
  1614. }(),
  1615. function() {
  1616. _gsScope._gsDefine.plugin({
  1617. propName: "attr",
  1618. API: 2,
  1619. version: "0.6.1",
  1620. init: function(a, b, c, d) {
  1621. var e, f;
  1622. if ("function" != typeof a.setAttribute) return !1;
  1623. for (e in b) f = b[e], "function" == typeof f && (f = f(d, a)), this._addTween(a, "setAttribute", a.getAttribute(e) + "", f + "", e, !1, e), this._overwriteProps.push(e);
  1624. return !0
  1625. }
  1626. })
  1627. }(), _gsScope._gsDefine.plugin({
  1628. propName: "directionalRotation",
  1629. version: "0.3.1",
  1630. API: 2,
  1631. init: function(a, b, c, d) {
  1632. "object" != typeof b && (b = {
  1633. rotation: b
  1634. }), this.finals = {};
  1635. var e, f, g, h, i, j, k = b.useRadians === !0 ? 2 * Math.PI : 360,
  1636. l = 1e-6;
  1637. for (e in b) "useRadians" !== e && (h = b[e], "function" == typeof h && (h = h(d, a)), j = (h + "").split("_"), f = j[0], g = parseFloat("function" != typeof a[e] ? a[e] : a[e.indexOf("set") || "function" != typeof a["get" + e.substr(3)] ? e : "get" + e.substr(3)]()), h = this.finals[e] = "string" == typeof f && "=" === f.charAt(1) ? g + parseInt(f.charAt(0) + "1", 10) * Number(f.substr(2)) : Number(f) || 0, i = h - g, j.length && (f = j.join("_"), -1 !== f.indexOf("short") && (i %= k, i !== i % (k / 2) && (i = 0 > i ? i + k : i - k)), -1 !== f.indexOf("_cw") && 0 > i ? i = (i + 9999999999 * k) % k - (i / k | 0) * k : -1 !== f.indexOf("ccw") && i > 0 && (i = (i - 9999999999 * k) % k - (i / k | 0) * k)), (i > l || -l > i) && (this._addTween(a, e, g, g + i, e), this._overwriteProps.push(e)));
  1638. return !0
  1639. },
  1640. set: function(a) {
  1641. var b;
  1642. if (1 !== a) this._super.setRatio.call(this, a);
  1643. else
  1644. for (b = this._firstPT; b;) b.f ? b.t[b.p](this.finals[b.p]) : b.t[b.p] = this.finals[b.p], b = b._next
  1645. }
  1646. })._autoCSS = !0, _gsScope._gsDefine("easing.Back", ["easing.Ease"], function(a) {
  1647. var b, c, d, e = _gsScope.GreenSockGlobals || _gsScope,
  1648. f = e.com.greensock,
  1649. g = 2 * Math.PI,
  1650. h = Math.PI / 2,
  1651. i = f._class,
  1652. j = function(b, c) {
  1653. var d = i("easing." + b, function() {}, !0),
  1654. e = d.prototype = new a;
  1655. return e.constructor = d, e.getRatio = c, d
  1656. },
  1657. k = a.register || function() {},
  1658. l = function(a, b, c, d, e) {
  1659. var f = i("easing." + a, {
  1660. easeOut: new b,
  1661. easeIn: new c,
  1662. easeInOut: new d
  1663. }, !0);
  1664. return k(f, a), f
  1665. },
  1666. m = function(a, b, c) {
  1667. this.t = a, this.v = b, c && (this.next = c, c.prev = this, this.c = c.v - b, this.gap = c.t - a)
  1668. },
  1669. n = function(b, c) {
  1670. var d = i("easing." + b, function(a) {
  1671. this._p1 = a || 0 === a ? a : 1.70158, this._p2 = 1.525 * this._p1
  1672. }, !0),
  1673. e = d.prototype = new a;
  1674. return e.constructor = d, e.getRatio = c, e.config = function(a) {
  1675. return new d(a)
  1676. }, d
  1677. },
  1678. o = l("Back", n("BackOut", function(a) {
  1679. return (a -= 1) * a * ((this._p1 + 1) * a + this._p1) + 1
  1680. }), n("BackIn", function(a) {
  1681. return a * a * ((this._p1 + 1) * a - this._p1)
  1682. }), n("BackInOut", function(a) {
  1683. return (a *= 2) < 1 ? .5 * a * a * ((this._p2 + 1) * a - this._p2) : .5 * ((a -= 2) * a * ((this._p2 + 1) * a + this._p2) + 2)
  1684. })),
  1685. p = i("easing.SlowMo", function(a, b, c) {
  1686. 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
  1687. }, !0),
  1688. q = p.prototype = new a;
  1689. return q.constructor = p, q.getRatio = function(a) {
  1690. var b = a + (.5 - a) * this._p;
  1691. return a < this._p1 ? this._calcEnd ? 1 - (a = 1 - a / this._p1) * a : b - (a = 1 - a / this._p1) * a * a * a * b : a > this._p3 ? this._calcEnd ? 1 === a ? 0 : 1 - (a = (a - this._p3) / this._p1) * a : b + (a - b) * (a = (a - this._p3) / this._p1) * a * a * a : this._calcEnd ? 1 : b
  1692. }, p.ease = new p(.7, .7), q.config = p.config = function(a, b, c) {
  1693. return new p(a, b, c)
  1694. }, b = i("easing.SteppedEase", function(a, b) {
  1695. a = a || 1, this._p1 = 1 / a, this._p2 = a + (b ? 0 : 1), this._p3 = b ? 1 : 0
  1696. }, !0), q = b.prototype = new a, q.constructor = b, q.getRatio = function(a) {
  1697. return 0 > a ? a = 0 : a >= 1 && (a = .999999999), ((this._p2 * a | 0) + this._p3) * this._p1
  1698. }, q.config = b.config = function(a, c) {
  1699. return new b(a, c)
  1700. }, c = i("easing.RoughEase", function(b) {
  1701. b = b || {};
  1702. 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++] = {
  1703. x: c,
  1704. y: d
  1705. };
  1706. for (j.sort(function(a, b) {
  1707. return a.x - b.x
  1708. }), h = new m(1, 1, null), n = l; --n > -1;) g = j[n], h = new m(g.x, g.y, h);
  1709. this._prev = new m(0, 0, 0 !== h.t ? h : h.next)
  1710. }, !0), q = c.prototype = new a, q.constructor = c, q.getRatio = function(a) {
  1711. var b = this._prev;
  1712. if (a > b.t) {
  1713. for (; b.next && a >= b.t;) b = b.next;
  1714. b = b.prev
  1715. } else
  1716. for (; b.prev && a <= b.t;) b = b.prev;
  1717. return this._prev = b, b.v + (a - b.t) / b.gap * b.c
  1718. }, q.config = function(a) {
  1719. return new c(a)
  1720. }, c.ease = new c, l("Bounce", j("BounceOut", function(a) {
  1721. 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
  1722. }), j("BounceIn", function(a) {
  1723. 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)
  1724. }), j("BounceInOut", function(a) {
  1725. var b = .5 > a;
  1726. 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
  1727. })), l("Circ", j("CircOut", function(a) {
  1728. return Math.sqrt(1 - (a -= 1) * a)
  1729. }), j("CircIn", function(a) {
  1730. return -(Math.sqrt(1 - a * a) - 1)
  1731. }), j("CircInOut", function(a) {
  1732. return (a *= 2) < 1 ? -.5 * (Math.sqrt(1 - a * a) - 1) : .5 * (Math.sqrt(1 - (a -= 2) * a) + 1)
  1733. })), d = function(b, c, d) {
  1734. var e = i("easing." + b, function(a, b) {
  1735. 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
  1736. }, !0),
  1737. f = e.prototype = new a;
  1738. return f.constructor = e, f.getRatio = c, f.config = function(a, b) {
  1739. return new e(a, b)
  1740. }, e
  1741. }, l("Elastic", d("ElasticOut", function(a) {
  1742. return this._p1 * Math.pow(2, -10 * a) * Math.sin((a - this._p3) * this._p2) + 1
  1743. }, .3), d("ElasticIn", function(a) {
  1744. return -(this._p1 * Math.pow(2, 10 * (a -= 1)) * Math.sin((a - this._p3) * this._p2))
  1745. }, .3), d("ElasticInOut", function(a) {
  1746. 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
  1747. }, .45)), l("Expo", j("ExpoOut", function(a) {
  1748. return 1 - Math.pow(2, -10 * a)
  1749. }), j("ExpoIn", function(a) {
  1750. return Math.pow(2, 10 * (a - 1)) - .001
  1751. }), j("ExpoInOut", function(a) {
  1752. return (a *= 2) < 1 ? .5 * Math.pow(2, 10 * (a - 1)) : .5 * (2 - Math.pow(2, -10 * (a - 1)))
  1753. })), l("Sine", j("SineOut", function(a) {
  1754. return Math.sin(a * h)
  1755. }), j("SineIn", function(a) {
  1756. return -Math.cos(a * h) + 1
  1757. }), j("SineInOut", function(a) {
  1758. return -.5 * (Math.cos(Math.PI * a) - 1)
  1759. })), i("easing.EaseLookup", {
  1760. find: function(b) {
  1761. return a.map[b]
  1762. }
  1763. }, !0), k(e.SlowMo, "SlowMo", "ease,"), k(c, "RoughEase", "ease,"), k(b, "SteppedEase", "ease,"), o
  1764. }, !0)
  1765. }), _gsScope._gsDefine && _gsScope._gsQueue.pop()(),
  1766. function(a, b) {
  1767. "use strict";
  1768. var c = {},
  1769. d = a.document,
  1770. e = a.GreenSockGlobals = a.GreenSockGlobals || a;
  1771. if (!e.TweenLite) {
  1772. var f, g, h, i, j, k = function(a) {
  1773. var b, c = a.split("."),
  1774. d = e;
  1775. for (b = 0; b < c.length; b++) d[c[b]] = d = d[c[b]] || {};
  1776. return d
  1777. },
  1778. l = k("com.greensock"),
  1779. m = 1e-10,
  1780. n = function(a) {
  1781. var b, c = [],
  1782. d = a.length;
  1783. for (b = 0; b !== d; c.push(a[b++]));
  1784. return c
  1785. },
  1786. o = function() {},
  1787. p = function() {
  1788. var a = Object.prototype.toString,
  1789. b = a.call([]);
  1790. return function(c) {
  1791. return null != c && (c instanceof Array || "object" == typeof c && !!c.push && a.call(c) === b)
  1792. }
  1793. }(),
  1794. q = {},
  1795. r = function(d, f, g, h) {
  1796. this.sc = q[d] ? q[d].sc : [], q[d] = this, this.gsClass = null, this.func = g;
  1797. var i = [];
  1798. this.check = function(j) {
  1799. for (var l, m, n, o, p = f.length, s = p; --p > -1;)(l = q[f[p]] || new r(f[p], [])).gsClass ? (i[p] = l.gsClass, s--) : j && l.sc.push(this);
  1800. if (0 === s && g) {
  1801. if (m = ("com.greensock." + d).split("."), n = m.pop(), o = k(m.join("."))[n] = this.gsClass = g.apply(g, i), h)
  1802. if (e[n] = c[n] = o, "undefined" != typeof module && module.exports)
  1803. if (d === b) {
  1804. module.exports = c[b] = o;
  1805. for (p in c) o[p] = c[p]
  1806. } else c[b] && (c[b][n] = o);
  1807. else "function" == typeof define && define.amd && define((a.GreenSockAMDPath ? a.GreenSockAMDPath + "/" : "") + d.split(".").pop(), [], function() {
  1808. return o
  1809. });
  1810. for (p = 0; p < this.sc.length; p++) this.sc[p].check()
  1811. }
  1812. }, this.check(!0)
  1813. },
  1814. s = a._gsDefine = function(a, b, c, d) {
  1815. return new r(a, b, c, d)
  1816. },
  1817. t = l._class = function(a, b, c) {
  1818. return b = b || function() {}, s(a, [], function() {
  1819. return b
  1820. }, c), b
  1821. };
  1822. s.globals = e;
  1823. var u = [0, 0, 1, 1],
  1824. v = t("easing.Ease", function(a, b, c, d) {
  1825. this._func = a, this._type = c || 0, this._power = d || 0, this._params = b ? u.concat(b) : u
  1826. }, !0),
  1827. w = v.map = {},
  1828. x = v.register = function(a, b, c, d) {
  1829. for (var e, f, g, h, i = b.split(","), j = i.length, k = (c || "easeIn,easeOut,easeInOut").split(","); --j > -1;)
  1830. for (f = i[j], e = d ? t("easing." + f, null, !0) : l.easing[f] || {}, g = k.length; --g > -1;) h = k[g], w[f + "." + h] = w[h + f] = e[h] = a.getRatio ? a : a[h] || new a
  1831. };
  1832. for (h = v.prototype, h._calcEnd = !1, h.getRatio = function(a) {
  1833. if (this._func) return this._params[0] = a, this._func.apply(null, this._params);
  1834. var b = this._type,
  1835. c = this._power,
  1836. d = 1 === b ? 1 - a : 2 === b ? a : .5 > a ? 2 * a : 2 * (1 - a);
  1837. 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
  1838. }, f = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], g = f.length; --g > -1;) h = f[g] + ",Power" + g, x(new v(null, null, 1, g), h, "easeOut", !0), x(new v(null, null, 2, g), h, "easeIn" + (0 === g ? ",easeNone" : "")), x(new v(null, null, 3, g), h, "easeInOut");
  1839. w.linear = l.easing.Linear.easeIn, w.swing = l.easing.Quad.easeInOut;
  1840. var y = t("events.EventDispatcher", function(a) {
  1841. this._listeners = {}, this._eventTarget = a || this
  1842. });
  1843. h = y.prototype, h.addEventListener = function(a, b, c, d, e) {
  1844. e = e || 0;
  1845. var f, g, h = this._listeners[a],
  1846. k = 0;
  1847. for (this !== i || j || i.wake(), null == h && (this._listeners[a] = h = []), g = h.length; --g > -1;) f = h[g], f.c === b && f.s === c ? h.splice(g, 1) : 0 === k && f.pr < e && (k = g + 1);
  1848. h.splice(k, 0, {
  1849. c: b,
  1850. s: c,
  1851. up: d,
  1852. pr: e
  1853. })
  1854. }, h.removeEventListener = function(a, b) {
  1855. var c, d = this._listeners[a];
  1856. if (d)
  1857. for (c = d.length; --c > -1;)
  1858. if (d[c].c === b) return void d.splice(c, 1)
  1859. }, h.dispatchEvent = function(a) {
  1860. var b, c, d, e = this._listeners[a];
  1861. if (e)
  1862. for (b = e.length, b > 1 && (e = e.slice(0)), c = this._eventTarget; --b > -1;) d = e[b], d && (d.up ? d.c.call(d.s || c, {
  1863. type: a,
  1864. target: c
  1865. }) : d.c.call(d.s || c))
  1866. };
  1867. var z = a.requestAnimationFrame,
  1868. A = a.cancelAnimationFrame,
  1869. B = Date.now || function() {
  1870. return (new Date).getTime()
  1871. },
  1872. C = B();
  1873. for (f = ["ms", "moz", "webkit", "o"], g = f.length; --g > -1 && !z;) z = a[f[g] + "RequestAnimationFrame"], A = a[f[g] + "CancelAnimationFrame"] || a[f[g] + "CancelRequestAnimationFrame"];
  1874. t("Ticker", function(a, b) {
  1875. var c, e, f, g, h, k = this,
  1876. l = B(),
  1877. n = b !== !1 && z ? "auto" : !1,
  1878. p = 500,
  1879. q = 33,
  1880. r = "tick",
  1881. s = function(a) {
  1882. var b, d, i = B() - C;
  1883. i > p && (l += i - q), C += i, k.time = (C - l) / 1e3, b = k.time - h, (!c || b > 0 || a === !0) && (k.frame++, h += b + (b >= g ? .004 : g - b), d = !0), a !== !0 && (f = e(s)), d && k.dispatchEvent(r)
  1884. };
  1885. y.call(k), k.time = k.frame = 0, k.tick = function() {
  1886. s(!0)
  1887. }, k.lagSmoothing = function(a, b) {
  1888. return arguments.length ? (p = a || 1 / m, void(q = Math.min(b, p, 0))) : 1 / m > p
  1889. }, k.sleep = function() {
  1890. null != f && (n && A ? A(f) : clearTimeout(f), e = o, f = null, k === i && (j = !1))
  1891. }, k.wake = function(a) {
  1892. null !== f ? k.sleep() : a ? l += -C + (C = B()) : k.frame > 10 && (C = B() - p + 5), e = 0 === c ? o : n && z ? z : function(a) {
  1893. return setTimeout(a, 1e3 * (h - k.time) + 1 | 0)
  1894. }, k === i && (j = !0), s(2)
  1895. }, k.fps = function(a) {
  1896. return arguments.length ? (c = a, g = 1 / (c || 60), h = this.time + g, void k.wake()) : c
  1897. }, k.useRAF = function(a) {
  1898. return arguments.length ? (k.sleep(), n = a, void k.fps(c)) : n
  1899. }, k.fps(a), setTimeout(function() {
  1900. "auto" === n && k.frame < 5 && "hidden" !== d.visibilityState && k.useRAF(!1)
  1901. }, 1500)
  1902. }), h = l.Ticker.prototype = new l.events.EventDispatcher, h.constructor = l.Ticker;
  1903. var D = t("core.Animation", function(a, b) {
  1904. if (this.vars = b = b || {}, this._duration = this._totalDuration = a || 0, this._delay = Number(b.delay) || 0, this._timeScale = 1, this._active = b.immediateRender === !0, this.data = b.data, this._reversed = b.reversed === !0, X) {
  1905. j || i.wake();
  1906. var c = this.vars.useFrames ? W : X;
  1907. c.add(this, c._time), this.vars.paused && this.paused(!0)
  1908. }
  1909. });
  1910. i = D.ticker = new l.Ticker, h = D.prototype, h._dirty = h._gc = h._initted = h._paused = !1, h._totalTime = h._time = 0, h._rawPrevTime = -1, h._next = h._last = h._onUpdate = h._timeline = h.timeline = null, h._paused = !1;
  1911. var E = function() {
  1912. j && B() - C > 2e3 && ("hidden" !== d.visibilityState || !i.lagSmoothing()) && i.wake();
  1913. var a = setTimeout(E, 2e3);
  1914. a.unref && a.unref()
  1915. };
  1916. E(), h.play = function(a, b) {
  1917. return null != a && this.seek(a, b), this.reversed(!1).paused(!1)
  1918. }, h.pause = function(a, b) {
  1919. return null != a && this.seek(a, b), this.paused(!0)
  1920. }, h.resume = function(a, b) {
  1921. return null != a && this.seek(a, b), this.paused(!1)
  1922. }, h.seek = function(a, b) {
  1923. return this.totalTime(Number(a), b !== !1)
  1924. }, h.restart = function(a, b) {
  1925. return this.reversed(!1).paused(!1).totalTime(a ? -this._delay : 0, b !== !1, !0)
  1926. }, h.reverse = function(a, b) {
  1927. return null != a && this.seek(a || this.totalDuration(), b), this.reversed(!0).paused(!1)
  1928. }, h.render = function(a, b, c) {}, h.invalidate = function() {
  1929. return this._time = this._totalTime = 0, this._initted = this._gc = !1, this._rawPrevTime = -1, (this._gc || !this.timeline) && this._enabled(!0), this
  1930. }, h.isActive = function() {
  1931. var a, b = this._timeline,
  1932. c = this._startTime;
  1933. return !b || !this._gc && !this._paused && b.isActive() && (a = b.rawTime(!0)) >= c && a < c + this.totalDuration() / this._timeScale - 1e-7
  1934. }, h._enabled = function(a, b) {
  1935. return j || i.wake(), this._gc = !a, this._active = this.isActive(), b !== !0 && (a && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !a && this.timeline && this._timeline._remove(this, !0)), !1
  1936. }, h._kill = function(a, b) {
  1937. return this._enabled(!1, !1)
  1938. }, h.kill = function(a, b) {
  1939. return this._kill(a, b), this
  1940. }, h._uncache = function(a) {
  1941. for (var b = a ? this : this.timeline; b;) b._dirty = !0, b = b.timeline;
  1942. return this
  1943. }, h._swapSelfInParams = function(a) {
  1944. for (var b = a.length, c = a.concat(); --b > -1;) "{self}" === a[b] && (c[b] = this);
  1945. return c
  1946. }, h._callback = function(a) {
  1947. var b = this.vars,
  1948. c = b[a],
  1949. d = b[a + "Params"],
  1950. e = b[a + "Scope"] || b.callbackScope || this,
  1951. f = d ? d.length : 0;
  1952. switch (f) {
  1953. case 0:
  1954. c.call(e);
  1955. break;
  1956. case 1:
  1957. c.call(e, d[0]);
  1958. break;
  1959. case 2:
  1960. c.call(e, d[0], d[1]);
  1961. break;
  1962. default:
  1963. c.apply(e, d)
  1964. }
  1965. }, h.eventCallback = function(a, b, c, d) {
  1966. if ("on" === (a || "").substr(0, 2)) {
  1967. var e = this.vars;
  1968. if (1 === arguments.length) return e[a];
  1969. null == b ? delete e[a] : (e[a] = b, e[a + "Params"] = p(c) && -1 !== c.join("").indexOf("{self}") ? this._swapSelfInParams(c) : c, e[a + "Scope"] = d), "onUpdate" === a && (this._onUpdate = b)
  1970. }
  1971. return this
  1972. }, h.delay = function(a) {
  1973. return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + a - this._delay), this._delay = a, this) : this._delay
  1974. }, h.duration = function(a) {
  1975. return arguments.length ? (this._duration = this._totalDuration = a, this._uncache(!0), this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && 0 !== a && this.totalTime(this._totalTime * (a / this._duration), !0), this) : (this._dirty = !1, this._duration)
  1976. }, h.totalDuration = function(a) {
  1977. return this._dirty = !1, arguments.length ? this.duration(a) : this._totalDuration
  1978. }, h.time = function(a, b) {
  1979. return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(a > this._duration ? this._duration : a, b)) : this._time
  1980. }, h.totalTime = function(a, b, c) {
  1981. if (j || i.wake(), !arguments.length) return this._totalTime;
  1982. if (this._timeline) {
  1983. if (0 > a && !c && (a += this.totalDuration()), this._timeline.smoothChildTiming) {
  1984. this._dirty && this.totalDuration();
  1985. var d = this._totalDuration,
  1986. e = this._timeline;
  1987. 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)
  1988. for (; e._timeline;) e._timeline._time !== (e._startTime + e._totalTime) / e._timeScale && e.totalTime(e._totalTime, !0), e = e._timeline
  1989. }
  1990. this._gc && this._enabled(!0, !1), (this._totalTime !== a || 0 === this._duration) && (J.length && Z(), this.render(a, b, !1), J.length && Z())
  1991. }
  1992. return this
  1993. }, h.progress = h.totalProgress = function(a, b) {
  1994. var c = this.duration();
  1995. return arguments.length ? this.totalTime(c * a, b) : c ? this._time / c : this.ratio
  1996. }, h.startTime = function(a) {
  1997. return arguments.length ? (a !== this._startTime && (this._startTime = a, this.timeline && this.timeline._sortChildren && this.timeline.add(this, a - this._delay)), this) : this._startTime
  1998. }, h.endTime = function(a) {
  1999. return this._startTime + (0 != a ? this.totalDuration() : this.duration()) / this._timeScale
  2000. }, h.timeScale = function(a) {
  2001. if (!arguments.length) return this._timeScale;
  2002. var b, c;
  2003. for (a = a || m, this._timeline && this._timeline.smoothChildTiming && (b = this._pauseTime, c = b || 0 === b ? b : this._timeline.totalTime(), this._startTime = c - (c - this._startTime) * this._timeScale / a), this._timeScale = a, c = this.timeline; c && c.timeline;) c._dirty = !0, c.totalDuration(), c = c.timeline;
  2004. return this
  2005. }, h.reversed = function(a) {
  2006. 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
  2007. }, h.paused = function(a) {
  2008. if (!arguments.length) return this._paused;
  2009. var b, c, d = this._timeline;
  2010. return a != this._paused && d && (j || a || i.wake(), b = d.rawTime(), c = b - this._pauseTime, !a && d.smoothChildTiming && (this._startTime += c,
  2011. 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
  2012. };
  2013. var F = t("core.SimpleTimeline", function(a) {
  2014. D.call(this, 0, a), this.autoRemoveChildren = this.smoothChildTiming = !0
  2015. });
  2016. h = F.prototype = new D, h.constructor = F, h.kill()._gc = !1, h._first = h._last = h._recent = null, h._sortChildren = !1, h.add = h.insert = function(a, b, c, d) {
  2017. var e, f;
  2018. 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)
  2019. for (f = a._startTime; e && e._startTime > f;) e = e._prev;
  2020. 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
  2021. }, h._remove = function(a, b) {
  2022. 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
  2023. }, h.render = function(a, b, c) {
  2024. var d, e = this._first;
  2025. for (this._totalTime = this._time = this._rawPrevTime = a; e;) d = e._next, (e._active || a >= e._startTime && !e._paused && !e._gc) && (e._reversed ? e.render((e._dirty ? e.totalDuration() : e._totalDuration) - (a - e._startTime) * e._timeScale, b, c) : e.render((a - e._startTime) * e._timeScale, b, c)), e = d
  2026. }, h.rawTime = function() {
  2027. return j || i.wake(), this._totalTime
  2028. };
  2029. var G = t("TweenLite", function(b, c, d) {
  2030. if (D.call(this, c, d), this.render = G.prototype.render, null == b) throw "Cannot tween a null target.";
  2031. this.target = b = "string" != typeof b ? b : G.selector(b) || b;
  2032. var e, f, g, h = b.jquery || b.length && b !== a && b[0] && (b[0] === a || b[0].nodeType && b[0].style && !b.nodeType),
  2033. i = this.vars.overwrite;
  2034. if (this._overwrite = i = null == i ? V[G.defaultOverwrite] : "number" == typeof i ? i >> 0 : V[i], (h || b instanceof Array || b.push && p(b)) && "number" != typeof b[0])
  2035. for (this._targets = g = n(b), this._propLookup = [], this._siblings = [], e = 0; e < g.length; e++) f = g[e], f ? "string" != typeof f ? f.length && f !== a && f[0] && (f[0] === a || f[0].nodeType && f[0].style && !f.nodeType) ? (g.splice(e--, 1), this._targets = g = g.concat(n(f))) : (this._siblings[e] = $(f, this, !1), 1 === i && this._siblings[e].length > 1 && aa(f, this, null, 1, this._siblings[e])) : (f = g[e--] = G.selector(f), "string" == typeof f && g.splice(e + 1, 1)) : g.splice(e--, 1);
  2036. else this._propLookup = {}, this._siblings = $(b, this, !1), 1 === i && this._siblings.length > 1 && aa(b, this, null, 1, this._siblings);
  2037. (this.vars.immediateRender || 0 === c && 0 === this._delay && this.vars.immediateRender !== !1) && (this._time = -m, this.render(Math.min(0, -this._delay)))
  2038. }, !0),
  2039. H = function(b) {
  2040. return b && b.length && b !== a && b[0] && (b[0] === a || b[0].nodeType && b[0].style && !b.nodeType)
  2041. },
  2042. I = function(a, b) {
  2043. var c, d = {};
  2044. for (c in a) U[c] || c in b && "transform" !== c && "x" !== c && "y" !== c && "width" !== c && "height" !== c && "className" !== c && "border" !== c || !(!R[c] || R[c] && R[c]._autoCSS) || (d[c] = a[c], delete a[c]);
  2045. a.css = d
  2046. };
  2047. h = G.prototype = new D, h.constructor = G, h.kill()._gc = !1, h.ratio = 0, h._firstPT = h._targets = h._overwrittenProps = h._startAt = null, h._notifyPluginsOfEnabled = h._lazy = !1, G.version = "1.20.3", G.defaultEase = h._ease = new v(null, null, 1, 1), G.defaultOverwrite = "auto", G.ticker = i, G.autoSleep = 120, G.lagSmoothing = function(a, b) {
  2048. i.lagSmoothing(a, b)
  2049. }, G.selector = a.$ || a.jQuery || function(b) {
  2050. var c = a.$ || a.jQuery;
  2051. return c ? (G.selector = c, c(b)) : "undefined" == typeof d ? b : d.querySelectorAll ? d.querySelectorAll(b) : d.getElementById("#" === b.charAt(0) ? b.substr(1) : b)
  2052. };
  2053. var J = [],
  2054. K = {},
  2055. L = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,
  2056. M = /[\+-]=-?[\.\d]/,
  2057. N = function(a) {
  2058. for (var b, c = this._firstPT, d = 1e-6; c;) b = c.blob ? 1 === a && null != this.end ? this.end : a ? this.join("") : this.start : c.c * a + c.s, c.m ? b = c.m(b, this._target || c.t) : d > b && b > -d && !c.blob && (b = 0), c.f ? c.fp ? c.t[c.p](c.fp, b) : c.t[c.p](b) : c.t[c.p] = b, c = c._next
  2059. },
  2060. O = function(a, b, c, d) {
  2061. var e, f, g, h, i, j, k, l = [],
  2062. m = 0,
  2063. n = "",
  2064. o = 0;
  2065. for (l.start = a, l.end = b, a = l[0] = a + "", b = l[1] = b + "", c && (c(l), a = l[0], b = l[1]), l.length = 0, e = a.match(L) || [], f = b.match(L) || [], d && (d._next = null, d.blob = 1, l._firstPT = l._applyPT = d), i = f.length, h = 0; i > h; h++) k = f[h], j = b.substr(m, b.indexOf(k, m) - m), n += j || !h ? j : ",", m += j.length, o ? o = (o + 1) % 5 : "rgba(" === j.substr(-5) && (o = 1), k === e[h] || e.length <= h ? n += k : (n && (l.push(n), n = ""), g = parseFloat(e[h]), l.push(g), l._firstPT = {
  2066. _next: l._firstPT,
  2067. t: l,
  2068. p: l.length - 1,
  2069. s: g,
  2070. c: ("=" === k.charAt(1) ? parseInt(k.charAt(0) + "1", 10) * parseFloat(k.substr(2)) : parseFloat(k) - g) || 0,
  2071. f: 0,
  2072. m: o && 4 > o ? Math.round : 0
  2073. }), m += k.length;
  2074. return n += b.substr(m), n && l.push(n), l.setRatio = N, M.test(b) && (l.end = null), l
  2075. },
  2076. P = function(a, b, c, d, e, f, g, h, i) {
  2077. "function" == typeof d && (d = d(i || 0, a));
  2078. var j, k = typeof a[b],
  2079. l = "function" !== k ? "" : b.indexOf("set") || "function" != typeof a["get" + b.substr(3)] ? b : "get" + b.substr(3),
  2080. m = "get" !== c ? c : l ? g ? a[l](g) : a[l]() : a[b],
  2081. n = "string" == typeof d && "=" === d.charAt(1),
  2082. o = {
  2083. t: a,
  2084. p: b,
  2085. s: m,
  2086. f: "function" === k,
  2087. pg: 0,
  2088. n: e || b,
  2089. m: f ? "function" == typeof f ? f : Math.round : 0,
  2090. pr: 0,
  2091. c: n ? parseInt(d.charAt(0) + "1", 10) * parseFloat(d.substr(2)) : parseFloat(d) - m || 0
  2092. };
  2093. return ("number" != typeof m || "number" != typeof d && !n) && (g || isNaN(m) || !n && isNaN(d) || "boolean" == typeof m || "boolean" == typeof d ? (o.fp = g, j = O(m, n ? parseFloat(o.s) + o.c : d, h || G.defaultStringFilter, o), o = {
  2094. t: j,
  2095. p: "setRatio",
  2096. s: 0,
  2097. c: 1,
  2098. f: 2,
  2099. pg: 0,
  2100. n: e || b,
  2101. pr: 0,
  2102. m: 0
  2103. }) : (o.s = parseFloat(m), n || (o.c = parseFloat(d) - o.s || 0))), o.c ? ((o._next = this._firstPT) && (o._next._prev = o), this._firstPT = o, o) : void 0
  2104. },
  2105. Q = G._internals = {
  2106. isArray: p,
  2107. isSelector: H,
  2108. lazyTweens: J,
  2109. blobDif: O
  2110. },
  2111. R = G._plugins = {},
  2112. S = Q.tweenLookup = {},
  2113. T = 0,
  2114. U = Q.reservedProps = {
  2115. ease: 1,
  2116. delay: 1,
  2117. overwrite: 1,
  2118. onComplete: 1,
  2119. onCompleteParams: 1,
  2120. onCompleteScope: 1,
  2121. useFrames: 1,
  2122. runBackwards: 1,
  2123. startAt: 1,
  2124. onUpdate: 1,
  2125. onUpdateParams: 1,
  2126. onUpdateScope: 1,
  2127. onStart: 1,
  2128. onStartParams: 1,
  2129. onStartScope: 1,
  2130. onReverseComplete: 1,
  2131. onReverseCompleteParams: 1,
  2132. onReverseCompleteScope: 1,
  2133. onRepeat: 1,
  2134. onRepeatParams: 1,
  2135. onRepeatScope: 1,
  2136. easeParams: 1,
  2137. yoyo: 1,
  2138. immediateRender: 1,
  2139. repeat: 1,
  2140. repeatDelay: 1,
  2141. data: 1,
  2142. paused: 1,
  2143. reversed: 1,
  2144. autoCSS: 1,
  2145. lazy: 1,
  2146. onOverwrite: 1,
  2147. callbackScope: 1,
  2148. stringFilter: 1,
  2149. id: 1,
  2150. yoyoEase: 1
  2151. },
  2152. V = {
  2153. none: 0,
  2154. all: 1,
  2155. auto: 2,
  2156. concurrent: 3,
  2157. allOnStart: 4,
  2158. preexisting: 5,
  2159. "true": 1,
  2160. "false": 0
  2161. },
  2162. W = D._rootFramesTimeline = new F,
  2163. X = D._rootTimeline = new F,
  2164. Y = 30,
  2165. Z = Q.lazyRender = function() {
  2166. var a, b = J.length;
  2167. for (K = {}; --b > -1;) a = J[b], a && a._lazy !== !1 && (a.render(a._lazy[0], a._lazy[1], !0), a._lazy = !1);
  2168. J.length = 0
  2169. };
  2170. X._startTime = i.time, W._startTime = i.frame, X._active = W._active = !0, setTimeout(Z, 1), D._updateRoot = G.render = function() {
  2171. var a, b, c;
  2172. if (J.length && Z(), X.render((i.time - X._startTime) * X._timeScale, !1, !1), W.render((i.frame - W._startTime) * W._timeScale, !1, !1), J.length && Z(), i.frame >= Y) {
  2173. Y = i.frame + (parseInt(G.autoSleep, 10) || 120);
  2174. for (c in S) {
  2175. for (b = S[c].tweens, a = b.length; --a > -1;) b[a]._gc && b.splice(a, 1);
  2176. 0 === b.length && delete S[c]
  2177. }
  2178. if (c = X._first, (!c || c._paused) && G.autoSleep && !W._first && 1 === i._listeners.tick.length) {
  2179. for (; c && c._paused;) c = c._next;
  2180. c || i.sleep()
  2181. }
  2182. }
  2183. }, i.addEventListener("tick", D._updateRoot);
  2184. var $ = function(a, b, c) {
  2185. var d, e, f = a._gsTweenID;
  2186. if (S[f || (a._gsTweenID = f = "t" + T++)] || (S[f] = {
  2187. target: a,
  2188. tweens: []
  2189. }), b && (d = S[f].tweens, d[e = d.length] = b, c))
  2190. for (; --e > -1;) d[e] === b && d.splice(e, 1);
  2191. return S[f].tweens
  2192. },
  2193. _ = function(a, b, c, d) {
  2194. var e, f, g = a.vars.onOverwrite;
  2195. return g && (e = g(a, b, c, d)), g = G.onOverwrite, g && (f = g(a, b, c, d)), e !== !1 && f !== !1
  2196. },
  2197. aa = function(a, b, c, d, e) {
  2198. var f, g, h, i;
  2199. if (1 === d || d >= 4) {
  2200. for (i = e.length, f = 0; i > f; f++)
  2201. if ((h = e[f]) !== b) h._gc || h._kill(null, a, b) && (g = !0);
  2202. else if (5 === d) break;
  2203. return g
  2204. }
  2205. var j, k = b._startTime + m,
  2206. l = [],
  2207. n = 0,
  2208. o = 0 === b._duration;
  2209. for (f = e.length; --f > -1;)(h = e[f]) === b || h._gc || h._paused || (h._timeline !== b._timeline ? (j = j || ba(b, 0, o), 0 === ba(h, j, o) && (l[n++] = h)) : h._startTime <= k && h._startTime + h.totalDuration() / h._timeScale > k && ((o || !h._initted) && k - h._startTime <= 2e-10 || (l[n++] = h)));
  2210. for (f = n; --f > -1;)
  2211. if (h = l[f], 2 === d && h._kill(c, a, b) && (g = !0), 2 !== d || !h._firstPT && h._initted) {
  2212. if (2 !== d && !_(h, b)) continue;
  2213. h._enabled(!1, !1) && (g = !0)
  2214. } return g
  2215. },
  2216. ba = function(a, b, c) {
  2217. for (var d = a._timeline, e = d._timeScale, f = a._startTime; d._timeline;) {
  2218. if (f += d._startTime, e *= d._timeScale, d._paused) return -100;
  2219. d = d._timeline
  2220. }
  2221. return f /= e, f > b ? f - b : c && f === b || !a._initted && 2 * m > f - b ? m : (f += a.totalDuration() / a._timeScale / e) > b + m ? 0 : f - b - m
  2222. };
  2223. h._init = function() {
  2224. var a, b, c, d, e, f, g = this.vars,
  2225. h = this._overwrittenProps,
  2226. i = this._duration,
  2227. j = !!g.immediateRender,
  2228. k = g.ease;
  2229. if (g.startAt) {
  2230. this._startAt && (this._startAt.render(-1, !0), this._startAt.kill()), e = {};
  2231. for (d in g.startAt) e[d] = g.startAt[d];
  2232. if (e.data = "isStart", e.overwrite = !1, e.immediateRender = !0, e.lazy = j && g.lazy !== !1, e.startAt = e.delay = null, e.onUpdate = g.onUpdate, e.onUpdateParams = g.onUpdateParams, e.onUpdateScope = g.onUpdateScope || g.callbackScope || this, this._startAt = G.to(this.target, 0, e), j)
  2233. if (this._time > 0) this._startAt = null;
  2234. else if (0 !== i) return
  2235. } else if (g.runBackwards && 0 !== i)
  2236. if (this._startAt) this._startAt.render(-1, !0), this._startAt.kill(), this._startAt = null;
  2237. else {
  2238. 0 !== this._time && (j = !1), c = {};
  2239. for (d in g) U[d] && "autoCSS" !== d || (c[d] = g[d]);
  2240. if (c.overwrite = 0, c.data = "isFromStart", c.lazy = j && g.lazy !== !1, c.immediateRender = j, this._startAt = G.to(this.target, 0, c), j) {
  2241. if (0 === this._time) return
  2242. } else this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null)
  2243. } if (this._ease = k = k ? k instanceof v ? k : "function" == typeof k ? new v(k, g.easeParams) : w[k] || G.defaultEase : G.defaultEase, g.easeParams instanceof Array && k.config && (this._ease = k.config.apply(k, g.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets)
  2244. for (f = this._targets.length, a = 0; f > a; a++) this._initProps(this._targets[a], this._propLookup[a] = {}, this._siblings[a], h ? h[a] : null, a) && (b = !0);
  2245. else b = this._initProps(this.target, this._propLookup, this._siblings, h, 0);
  2246. if (b && G._onPluginEvent("_onInitAllProps", this), h && (this._firstPT || "function" != typeof this.target && this._enabled(!1, !1)), g.runBackwards)
  2247. for (c = this._firstPT; c;) c.s += c.c, c.c = -c.c, c = c._next;
  2248. this._onUpdate = g.onUpdate, this._initted = !0
  2249. }, h._initProps = function(b, c, d, e, f) {
  2250. var g, h, i, j, k, l;
  2251. if (null == b) return !1;
  2252. K[b._gsTweenID] && Z(), this.vars.css || b.style && b !== a && b.nodeType && R.css && this.vars.autoCSS !== !1 && I(this.vars, b);
  2253. for (g in this.vars)
  2254. if (l = this.vars[g], U[g]) l && (l instanceof Array || l.push && p(l)) && -1 !== l.join("").indexOf("{self}") && (this.vars[g] = l = this._swapSelfInParams(l, this));
  2255. else if (R[g] && (j = new R[g])._onInitTween(b, this.vars[g], this, f)) {
  2256. for (this._firstPT = k = {
  2257. _next: this._firstPT,
  2258. t: j,
  2259. p: "setRatio",
  2260. s: 0,
  2261. c: 1,
  2262. f: 1,
  2263. n: g,
  2264. pg: 1,
  2265. pr: j._priority,
  2266. m: 0
  2267. }, h = j._overwriteProps.length; --h > -1;) c[j._overwriteProps[h]] = this._firstPT;
  2268. (j._priority || j._onInitAllProps) && (i = !0), (j._onDisable || j._onEnable) && (this._notifyPluginsOfEnabled = !0), k._next && (k._next._prev = k)
  2269. } else c[g] = P.call(this, b, g, "get", l, g, 0, null, this.vars.stringFilter, f);
  2270. return e && this._kill(e, b) ? this._initProps(b, c, d, e, f) : this._overwrite > 1 && this._firstPT && d.length > 1 && aa(b, this, c, this._overwrite, d) ? (this._kill(c, b), this._initProps(b, c, d, e, f)) : (this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration) && (K[b._gsTweenID] = !0), i)
  2271. }, h.render = function(a, b, c) {
  2272. var d, e, f, g, h = this._time,
  2273. i = this._duration,
  2274. j = this._rawPrevTime;
  2275. if (a >= i - 1e-7 && a >= 0) this._totalTime = this._time = i, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1, this._reversed || (d = !0, e = "onComplete", c = c || this._timeline.autoRemoveChildren), 0 === i && (this._initted || !this.vars.lazy || c) && (this._startTime === this._timeline._duration && (a = 0), (0 > j || 0 >= a && a >= -1e-7 || j === m && "isPause" !== this.data) && j !== a && (c = !0, j > m && (e = "onReverseComplete")), this._rawPrevTime = g = !b || a || j === a ? a : m);
  2276. else if (1e-7 > a) this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== h || 0 === i && j > 0) && (e = "onReverseComplete", d = this._reversed), 0 > a && (this._active = !1, 0 === i && (this._initted || !this.vars.lazy || c) && (j >= 0 && (j !== m || "isPause" !== this.data) && (c = !0), this._rawPrevTime = g = !b || a || j === a ? a : m)), (!this._initted || this._startAt && this._startAt.progress()) && (c = !0);
  2277. else if (this._totalTime = this._time = a, this._easeType) {
  2278. var k = a / i,
  2279. l = this._easeType,
  2280. n = this._easePower;
  2281. (1 === l || 3 === l && k >= .5) && (k = 1 - k), 3 === l && (k *= 2), 1 === n ? k *= k : 2 === n ? k *= k * k : 3 === n ? k *= k * k * k : 4 === n && (k *= k * k * k * k), 1 === l ? this.ratio = 1 - k : 2 === l ? this.ratio = k : .5 > a / i ? this.ratio = k / 2 : this.ratio = 1 - k / 2
  2282. } else this.ratio = this._ease.getRatio(a / i);
  2283. if (this._time !== h || c) {
  2284. if (!this._initted) {
  2285. if (this._init(), !this._initted || this._gc) return;
  2286. 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]);
  2287. 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))
  2288. }
  2289. 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, !0, 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;
  2290. this._onUpdate && (0 > a && this._startAt && a !== -1e-4 && this._startAt.render(a, !0, 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, !0, c), d && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[e] && this._callback(e), 0 === i && this._rawPrevTime === m && g !== m && (this._rawPrevTime = 0))
  2291. }
  2292. }, h._kill = function(a, b, c) {
  2293. if ("all" === a && (a = null), null == a && (null == b || b === this.target)) return this._lazy = !1, this._enabled(!1, !1);
  2294. b = "string" != typeof b ? b || this._targets || this.target : G.selector(b) || b;
  2295. var d, e, f, g, h, i, j, k, l, m = c && this._time && c._startTime === this._startTime && this._timeline === c._timeline;
  2296. if ((p(b) || H(b)) && "number" != typeof b[0])
  2297. for (d = b.length; --d > -1;) this._kill(a, b[d], c) && (i = !0);
  2298. else {
  2299. if (this._targets) {
  2300. for (d = this._targets.length; --d > -1;)
  2301. if (b === this._targets[d]) {
  2302. h = this._propLookup[d] || {}, this._overwrittenProps = this._overwrittenProps || [], e = this._overwrittenProps[d] = a ? this._overwrittenProps[d] || {} : "all";
  2303. break
  2304. }
  2305. } else {
  2306. if (b !== this.target) return !1;
  2307. h = this._propLookup, e = this._overwrittenProps = a ? this._overwrittenProps || {} : "all"
  2308. }
  2309. if (h) {
  2310. if (j = a || h, k = a !== e && "all" !== e && a !== h && ("object" != typeof a || !a._tempKill), c && (G.onOverwrite || this.vars.onOverwrite)) {
  2311. for (f in j) h[f] && (l || (l = []), l.push(f));
  2312. if ((l || !a) && !_(this, c, b, l)) return !1
  2313. }
  2314. 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);
  2315. !this._firstPT && this._initted && this._enabled(!1, !1)
  2316. }
  2317. }
  2318. return i
  2319. }, h.invalidate = function() {
  2320. return this._notifyPluginsOfEnabled && G._onPluginEvent("_onDisable", this), this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], D.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -m, this.render(Math.min(0, -this._delay))), this
  2321. }, h._enabled = function(a, b) {
  2322. if (j || i.wake(), a && this._gc) {
  2323. var c, d = this._targets;
  2324. if (d)
  2325. for (c = d.length; --c > -1;) this._siblings[c] = $(d[c], this, !0);
  2326. else this._siblings = $(this.target, this, !0)
  2327. }
  2328. return D.prototype._enabled.call(this, a, b), this._notifyPluginsOfEnabled && this._firstPT ? G._onPluginEvent(a ? "_onEnable" : "_onDisable", this) : !1
  2329. }, G.to = function(a, b, c) {
  2330. return new G(a, b, c)
  2331. }, G.from = function(a, b, c) {
  2332. return c.runBackwards = !0, c.immediateRender = 0 != c.immediateRender, new G(a, b, c)
  2333. }, G.fromTo = function(a, b, c, d) {
  2334. return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, new G(a, b, d)
  2335. }, G.delayedCall = function(a, b, c, d, e) {
  2336. return new G(b, 0, {
  2337. delay: a,
  2338. onComplete: b,
  2339. onCompleteParams: c,
  2340. callbackScope: d,
  2341. onReverseComplete: b,
  2342. onReverseCompleteParams: c,
  2343. immediateRender: !1,
  2344. lazy: !1,
  2345. useFrames: e,
  2346. overwrite: 0
  2347. })
  2348. }, G.set = function(a, b) {
  2349. return new G(a, 0, b)
  2350. }, G.getTweensOf = function(a, b) {
  2351. if (null == a) return [];
  2352. a = "string" != typeof a ? a : G.selector(a) || a;
  2353. var c, d, e, f;
  2354. if ((p(a) || H(a)) && "number" != typeof a[0]) {
  2355. for (c = a.length, d = []; --c > -1;) d = d.concat(G.getTweensOf(a[c], b));
  2356. for (c = d.length; --c > -1;)
  2357. for (f = d[c], e = c; --e > -1;) f === d[e] && d.splice(c, 1)
  2358. } else if (a._gsTweenID)
  2359. for (d = $(a).concat(), c = d.length; --c > -1;)(d[c]._gc || b && !d[c].isActive()) && d.splice(c, 1);
  2360. return d || []
  2361. }, G.killTweensOf = G.killDelayedCallsTo = function(a, b, c) {
  2362. "object" == typeof b && (c = b, b = !1);
  2363. for (var d = G.getTweensOf(a, b), e = d.length; --e > -1;) d[e]._kill(c, a)
  2364. };
  2365. var ca = t("plugins.TweenPlugin", function(a, b) {
  2366. this._overwriteProps = (a || "").split(","), this._propName = this._overwriteProps[0], this._priority = b || 0, this._super = ca.prototype
  2367. }, !0);
  2368. if (h = ca.prototype, ca.version = "1.19.0", ca.API = 2, h._firstPT = null, h._addTween = P, h.setRatio = N, h._kill = function(a) {
  2369. var b, c = this._overwriteProps,
  2370. d = this._firstPT;
  2371. if (null != a[this._propName]) this._overwriteProps = [];
  2372. else
  2373. for (b = c.length; --b > -1;) null != a[c[b]] && c.splice(b, 1);
  2374. 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;
  2375. return !1
  2376. }, h._mod = h._roundProps = function(a) {
  2377. for (var b, c = this._firstPT; c;) b = a[this._propName] || null != c.n && a[c.n.split(this._propName + "_").join("")], b && "function" == typeof b && (2 === c.f ? c.t._applyPT.m = b : c.m = b), c = c._next
  2378. }, G._onPluginEvent = function(a, b) {
  2379. var c, d, e, f, g, h = b._firstPT;
  2380. if ("_onInitAllProps" === a) {
  2381. for (; h;) {
  2382. for (g = h._next, d = e; d && d.pr > h.pr;) d = d._next;
  2383. (h._prev = d ? d._prev : f) ? h._prev._next = h: e = h, (h._next = d) ? d._prev = h : f = h, h = g
  2384. }
  2385. h = b._firstPT = e
  2386. }
  2387. for (; h;) h.pg && "function" == typeof h.t[a] && h.t[a]() && (c = !0), h = h._next;
  2388. return c
  2389. }, ca.activate = function(a) {
  2390. for (var b = a.length; --b > -1;) a[b].API === ca.API && (R[(new a[b])._propName] = a[b]);
  2391. return !0
  2392. }, s.plugin = function(a) {
  2393. if (!(a && a.propName && a.init && a.API)) throw "illegal plugin definition.";
  2394. var b, c = a.propName,
  2395. d = a.priority || 0,
  2396. e = a.overwriteProps,
  2397. f = {
  2398. init: "_onInitTween",
  2399. set: "setRatio",
  2400. kill: "_kill",
  2401. round: "_mod",
  2402. mod: "_mod",
  2403. initAll: "_onInitAllProps"
  2404. },
  2405. g = t("plugins." + c.charAt(0).toUpperCase() + c.substr(1) + "Plugin", function() {
  2406. ca.call(this, c, d), this._overwriteProps = e || []
  2407. }, a.global === !0),
  2408. h = g.prototype = new ca(c);
  2409. h.constructor = g, g.API = a.API;
  2410. for (b in f) "function" == typeof a[b] && (h[f[b]] = a[b]);
  2411. return g.version = a.version, ca.activate([g]), g
  2412. }, f = a._gsQueue) {
  2413. for (g = 0; g < f.length; g++) f[g]();
  2414. for (h in q) q[h].func || a.console.log("GSAP encountered missing dependency: " + h)
  2415. }
  2416. j = !1
  2417. }
  2418. }("undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window, "TweenMax");