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