TweenMax.min.js 143 KB

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