@courtneyring/components-library 1.0.35 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/assets/FloatingWordsHero.css +1 -1
  2. package/dist/assets/OverlayHero.css +1 -1
  3. package/dist/components/FloatingWordsHero/FloatingWordsHero.js +16 -16
  4. package/dist/components/OverlayHero/OverlayHero.js +27 -27
  5. package/package.json +1 -1
  6. package/dist/AccordionItem-DUGBw5pW 2.js +0 -40
  7. package/dist/ScrollTrigger-6HnikosL 3.js +0 -1086
  8. package/dist/animations/FadeIn 3.js +0 -34
  9. package/dist/assets/AccordionItem 4.css +0 -1
  10. package/dist/assets/Banner 3.css +0 -1
  11. package/dist/assets/BorderedBackground 4.css +0 -1
  12. package/dist/assets/Button 4.css +0 -1
  13. package/dist/assets/ButtonGroup 4.css +0 -1
  14. package/dist/assets/Container 4.css +0 -1
  15. package/dist/assets/Countdown 4.css +0 -1
  16. package/dist/assets/Fifty 4.css +0 -1
  17. package/dist/assets/FloatingWordsHero 4.css +0 -1
  18. package/dist/assets/Footer 4.css +0 -1
  19. package/dist/assets/GenericOverlay 4.css +0 -1
  20. package/dist/assets/GridGallery 4.css +0 -1
  21. package/dist/assets/HorizontalScrollImages 4.css +0 -1
  22. package/dist/assets/IconDetail 4.css +0 -1
  23. package/dist/assets/ImageTextBlock 4.css +0 -1
  24. package/dist/assets/Map 4.css +0 -1
  25. package/dist/assets/MenuButton 4.css +0 -1
  26. package/dist/assets/Navbar 4.css +0 -1
  27. package/dist/assets/Note 4.css +0 -1
  28. package/dist/assets/Overlay 4.css +0 -1
  29. package/dist/assets/OverlayHero 4.css +0 -1
  30. package/dist/assets/PageContainer 4.css +0 -1
  31. package/dist/assets/ParallaxImageGrid 4.css +0 -1
  32. package/dist/assets/PinnedImage 4.css +0 -1
  33. package/dist/assets/PromoGroup 4.css +0 -1
  34. package/dist/assets/RSVPEmbed 4.css +0 -1
  35. package/dist/assets/Schedule 4.css +0 -1
  36. package/dist/assets/TextBlock 4.css +0 -1
  37. package/dist/assets/Timeline 3.css +0 -1
  38. package/dist/assets/Toolbar 3.css +0 -1
  39. package/dist/hooks/useActiveSection 4.js +0 -27
  40. package/dist/hooks/useFadeIn 4.js +0 -52
  41. package/dist/hooks/useImageReveal 4.js +0 -55
  42. package/dist/hooks/useNavColor 4.js +0 -15
  43. package/dist/hooks/useRepeatable 4.js +0 -32
  44. package/dist/hooks/useResize 4.js +0 -23
  45. package/dist/hooks/useResponsive 4.js +0 -15
  46. package/dist/hooks/useReveal 4.js +0 -38
  47. package/dist/hooks/useStagger 4.js +0 -43
  48. package/dist/index 4.js +0 -50
  49. package/dist/index-B2JRaoNz 4.js +0 -48
  50. package/dist/index-BmTo-IS6 4.js +0 -2018
  51. package/dist/index-DyQs5aC7 4.js +0 -388
  52. package/dist/index-K0WrPJ_C 4.js +0 -29
  53. package/dist/index.modern-DPbS1w7M 4.js +0 -1443
  54. package/dist/presets/animations 4.js +0 -24
  55. package/dist/utils/breakpoints 4.js +0 -8
  56. package/dist/utils/gsapSetup 4.js +0 -8
  57. package/dist/utils/parse 4.js +0 -12
@@ -1,2018 +0,0 @@
1
- function mt(u) {
2
- if (u === void 0)
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- return u;
5
- }
6
- function zi(u, t) {
7
- u.prototype = Object.create(t.prototype), u.prototype.constructor = u, u.__proto__ = t;
8
- }
9
- /*!
10
- * GSAP 3.13.0
11
- * https://gsap.com
12
- *
13
- * @license Copyright 2008-2025, GreenSock. All rights reserved.
14
- * Subject to the terms at https://gsap.com/standard-license
15
- * @author: Jack Doyle, jack@greensock.com
16
- */
17
- var rt = {
18
- autoSleep: 120,
19
- force3D: "auto",
20
- nullTargetWarn: 1,
21
- units: {
22
- lineHeight: ""
23
- }
24
- }, Gt = {
25
- duration: 0.5,
26
- overwrite: !1,
27
- delay: 0
28
- }, He, W, E, ot = 1e8, M = 1 / ot, Ie = Math.PI * 2, Er = Ie / 4, zr = 0, Fi = Math.sqrt, Fr = Math.cos, Lr = Math.sin, X = function(t) {
29
- return typeof t == "string";
30
- }, L = function(t) {
31
- return typeof t == "function";
32
- }, yt = function(t) {
33
- return typeof t == "number";
34
- }, Je = function(t) {
35
- return typeof t > "u";
36
- }, dt = function(t) {
37
- return typeof t == "object";
38
- }, Q = function(t) {
39
- return t !== !1;
40
- }, ti = function() {
41
- return typeof window < "u";
42
- }, pe = function(t) {
43
- return L(t) || X(t);
44
- }, Li = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
45
- }, $ = Array.isArray, Ne = /(?:-?\.?\d|\.)+/gi, Ii = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Ut = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Me = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Ni = /[+-]=-?[.\d]+/, Bi = /[^,'"\[\]\s]+/gi, Ir = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, z, _t, Be, ei, nt = {}, xe = {}, Vi, Ui = function(t) {
46
- return (xe = $t(t, nt)) && J;
47
- }, ii = function(t, e) {
48
- return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
49
- }, ae = function(t, e) {
50
- return !e && console.warn(t);
51
- }, Yi = function(t, e) {
52
- return t && (nt[t] = e) && xe && (xe[t] = e) || nt;
53
- }, oe = function() {
54
- return 0;
55
- }, Nr = {
56
- suppressEvents: !0,
57
- isStart: !0,
58
- kill: !1
59
- }, me = {
60
- suppressEvents: !0,
61
- kill: !1
62
- }, Br = {
63
- suppressEvents: !0
64
- }, ri = {}, wt = [], Ve = {}, Xi, tt = {}, De = {}, gi = 30, ge = [], ni = "", si = function(t) {
65
- var e = t[0], i, r;
66
- if (dt(e) || L(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
67
- for (r = ge.length; r-- && !ge[r].targetTest(e); )
68
- ;
69
- i = ge[r];
70
- }
71
- for (r = t.length; r--; )
72
- t[r] && (t[r]._gsap || (t[r]._gsap = new cr(t[r], i))) || t.splice(r, 1);
73
- return t;
74
- }, zt = function(t) {
75
- return t._gsap || si(ut(t))[0]._gsap;
76
- }, qi = function(t, e, i) {
77
- return (i = t[e]) && L(i) ? t[e]() : Je(i) && t.getAttribute && t.getAttribute(e) || i;
78
- }, Z = function(t, e) {
79
- return (t = t.split(",")).forEach(e) || t;
80
- }, I = function(t) {
81
- return Math.round(t * 1e5) / 1e5 || 0;
82
- }, V = function(t) {
83
- return Math.round(t * 1e7) / 1e7 || 0;
84
- }, Xt = function(t, e) {
85
- var i = e.charAt(0), r = parseFloat(e.substr(2));
86
- return t = parseFloat(t), i === "+" ? t + r : i === "-" ? t - r : i === "*" ? t * r : t / r;
87
- }, Vr = function(t, e) {
88
- for (var i = e.length, r = 0; t.indexOf(e[r]) < 0 && ++r < i; )
89
- ;
90
- return r < i;
91
- }, ve = function() {
92
- var t = wt.length, e = wt.slice(0), i, r;
93
- for (Ve = {}, wt.length = 0, i = 0; i < t; i++)
94
- r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
95
- }, ai = function(t) {
96
- return !!(t._initted || t._startAt || t.add);
97
- }, Wi = function(t, e, i, r) {
98
- wt.length && !W && ve(), t.render(e, i, !!(W && e < 0 && ai(t))), wt.length && !W && ve();
99
- }, Gi = function(t) {
100
- var e = parseFloat(t);
101
- return (e || e === 0) && (t + "").match(Bi).length < 2 ? e : X(t) ? t.trim() : t;
102
- }, $i = function(t) {
103
- return t;
104
- }, st = function(t, e) {
105
- for (var i in e)
106
- i in t || (t[i] = e[i]);
107
- return t;
108
- }, Ur = function(t) {
109
- return function(e, i) {
110
- for (var r in i)
111
- r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
112
- };
113
- }, $t = function(t, e) {
114
- for (var i in e)
115
- t[i] = e[i];
116
- return t;
117
- }, yi = function u(t, e) {
118
- for (var i in e)
119
- i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = dt(e[i]) ? u(t[i] || (t[i] = {}), e[i]) : e[i]);
120
- return t;
121
- }, Te = function(t, e) {
122
- var i = {}, r;
123
- for (r in t)
124
- r in e || (i[r] = t[r]);
125
- return i;
126
- }, re = function(t) {
127
- var e = t.parent || z, i = t.keyframes ? Ur($(t.keyframes)) : st;
128
- if (Q(t.inherit))
129
- for (; e; )
130
- i(t, e.vars.defaults), e = e.parent || e._dp;
131
- return t;
132
- }, Yr = function(t, e) {
133
- for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
134
- ;
135
- return i < 0;
136
- }, Ki = function(t, e, i, r, n) {
137
- var s = t[r], a;
138
- if (n)
139
- for (a = e[n]; s && s[n] > a; )
140
- s = s._prev;
141
- return s ? (e._next = s._next, s._next = e) : (e._next = t[i], t[i] = e), e._next ? e._next._prev = e : t[r] = e, e._prev = s, e.parent = e._dp = t, e;
142
- }, Se = function(t, e, i, r) {
143
- i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
144
- var n = e._prev, s = e._next;
145
- n ? n._next = s : t[i] === e && (t[i] = s), s ? s._prev = n : t[r] === e && (t[r] = n), e._next = e._prev = e.parent = null;
146
- }, Ot = function(t, e) {
147
- t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
148
- }, Ft = function(t, e) {
149
- if (t && (!e || e._end > t._dur || e._start < 0))
150
- for (var i = t; i; )
151
- i._dirty = 1, i = i.parent;
152
- return t;
153
- }, Xr = function(t) {
154
- for (var e = t.parent; e && e.parent; )
155
- e._dirty = 1, e.totalDuration(), e = e.parent;
156
- return t;
157
- }, Ue = function(t, e, i, r) {
158
- return t._startAt && (W ? t._startAt.revert(me) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
159
- }, qr = function u(t) {
160
- return !t || t._ts && u(t.parent);
161
- }, xi = function(t) {
162
- return t._repeat ? Kt(t._tTime, t = t.duration() + t._rDelay) * t : 0;
163
- }, Kt = function(t, e) {
164
- var i = Math.floor(t = V(t / e));
165
- return t && i === t ? i - 1 : i;
166
- }, be = function(t, e) {
167
- return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
168
- }, ke = function(t) {
169
- return t._end = V(t._start + (t._tDur / Math.abs(t._ts || t._rts || M) || 0));
170
- }, Ce = function(t, e) {
171
- var i = t._dp;
172
- return i && i.smoothChildTiming && t._ts && (t._start = V(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), ke(t), i._dirty || Ft(i, t)), t;
173
- }, Qi = function(t, e) {
174
- var i;
175
- if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = be(t.rawTime(), e), (!e._dur || ce(0, e.totalDuration(), i) - e._tTime > M) && e.render(i, !0)), Ft(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
176
- if (t._dur < t.duration())
177
- for (i = t; i._dp; )
178
- i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
179
- t._zTime = -M;
180
- }
181
- }, lt = function(t, e, i, r) {
182
- return e.parent && Ot(e), e._start = V((yt(i) ? i : i || t !== z ? at(t, i, e) : t._time) + e._delay), e._end = V(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), Ki(t, e, "_first", "_last", t._sort ? "_start" : 0), Ye(e) || (t._recent = e), r || Qi(t, e), t._ts < 0 && Ce(t, t._tTime), t;
183
- }, Zi = function(t, e) {
184
- return (nt.ScrollTrigger || ii("scrollTrigger", e)) && nt.ScrollTrigger.create(e, t);
185
- }, ji = function(t, e, i, r, n) {
186
- if (ui(t, e, n), !t._initted)
187
- return 1;
188
- if (!i && t._pt && !W && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Xi !== et.frame)
189
- return wt.push(t), t._lazy = [n, r], 1;
190
- }, Wr = function u(t) {
191
- var e = t.parent;
192
- return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || u(e));
193
- }, Ye = function(t) {
194
- var e = t.data;
195
- return e === "isFromStart" || e === "isStart";
196
- }, Gr = function(t, e, i, r) {
197
- var n = t.ratio, s = e < 0 || !e && (!t._start && Wr(t) && !(!t._initted && Ye(t)) || (t._ts < 0 || t._dp._ts < 0) && !Ye(t)) ? 0 : 1, a = t._rDelay, o = 0, f, h, l;
198
- if (a && t._repeat && (o = ce(0, t._tDur, e), h = Kt(o, a), t._yoyo && h & 1 && (s = 1 - s), h !== Kt(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || W || r || t._zTime === M || !e && t._zTime) {
199
- if (!t._initted && ji(t, e, r, i, o))
200
- return;
201
- for (l = t._zTime, t._zTime = e || (i ? M : 0), i || (i = e && !l), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = o, f = t._pt; f; )
202
- f.r(s, f.d), f = f._next;
203
- e < 0 && Ue(t, e, i, !0), t._onUpdate && !i && it(t, "onUpdate"), o && t._repeat && !i && t.parent && it(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Ot(t, 1), !i && !W && (it(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
204
- } else t._zTime || (t._zTime = e);
205
- }, $r = function(t, e, i) {
206
- var r;
207
- if (i > e)
208
- for (r = t._first; r && r._start <= i; ) {
209
- if (r.data === "isPause" && r._start > e)
210
- return r;
211
- r = r._next;
212
- }
213
- else
214
- for (r = t._last; r && r._start >= i; ) {
215
- if (r.data === "isPause" && r._start < e)
216
- return r;
217
- r = r._prev;
218
- }
219
- }, Qt = function(t, e, i, r) {
220
- var n = t._repeat, s = V(e) || 0, a = t._tTime / t._tDur;
221
- return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : V(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r && Ce(t, t._tTime = t._tDur * a), t.parent && ke(t), i || Ft(t.parent, t), t;
222
- }, vi = function(t) {
223
- return t instanceof K ? Ft(t) : Qt(t, t._dur);
224
- }, Kr = {
225
- _start: 0,
226
- endTime: oe,
227
- totalDuration: oe
228
- }, at = function u(t, e, i) {
229
- var r = t.labels, n = t._recent || Kr, s = t.duration() >= ot ? n.endTime(!1) : t._dur, a, o, f;
230
- return X(e) && (isNaN(e) || e in r) ? (o = e.charAt(0), f = e.substr(-1) === "%", a = e.indexOf("="), o === "<" || o === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (o === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (f ? (a < 0 ? n : i).totalDuration() / 100 : 1)) : a < 0 ? (e in r || (r[e] = s), r[e]) : (o = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), f && i && (o = o / 100 * ($(i) ? i[0] : i).totalDuration()), a > 1 ? u(t, e.substr(0, a - 1), i) + o : s + o)) : e == null ? s : +e;
231
- }, ne = function(t, e, i) {
232
- var r = yt(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, o;
233
- if (r && (s.duration = e[1]), s.parent = i, t) {
234
- for (a = s, o = i; o && !("immediateRender" in a); )
235
- a = o.vars.defaults || {}, o = Q(o.vars.inherit) && o.parent;
236
- s.immediateRender = Q(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
237
- }
238
- return new B(e[0], s, e[n + 1]);
239
- }, kt = function(t, e) {
240
- return t || t === 0 ? e(t) : e;
241
- }, ce = function(t, e, i) {
242
- return i < t ? t : i > e ? e : i;
243
- }, G = function(t, e) {
244
- return !X(t) || !(e = Ir.exec(t)) ? "" : e[1];
245
- }, Qr = function(t, e, i) {
246
- return kt(i, function(r) {
247
- return ce(t, e, r);
248
- });
249
- }, Xe = [].slice, Hi = function(t, e) {
250
- return t && dt(t) && "length" in t && (!e && !t.length || t.length - 1 in t && dt(t[0])) && !t.nodeType && t !== _t;
251
- }, Zr = function(t, e, i) {
252
- return i === void 0 && (i = []), t.forEach(function(r) {
253
- var n;
254
- return X(r) && !e || Hi(r, 1) ? (n = i).push.apply(n, ut(r)) : i.push(r);
255
- }) || i;
256
- }, ut = function(t, e, i) {
257
- return E && !e && E.selector ? E.selector(t) : X(t) && !i && (Be || !Zt()) ? Xe.call((e || ei).querySelectorAll(t), 0) : $(t) ? Zr(t, i) : Hi(t) ? Xe.call(t, 0) : t ? [t] : [];
258
- }, qe = function(t) {
259
- return t = ut(t)[0] || ae("Invalid scope") || {}, function(e) {
260
- var i = t.current || t.nativeElement || t;
261
- return ut(e, i.querySelectorAll ? i : i === t ? ae("Invalid scope") || ei.createElement("div") : t);
262
- };
263
- }, Ji = function(t) {
264
- return t.sort(function() {
265
- return 0.5 - Math.random();
266
- });
267
- }, tr = function(t) {
268
- if (L(t))
269
- return t;
270
- var e = dt(t) ? t : {
271
- each: t
272
- }, i = Lt(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1, o = isNaN(r) || a, f = e.axis, h = r, l = r;
273
- return X(r) ? h = l = {
274
- center: 0.5,
275
- edges: 0.5,
276
- end: 1
277
- }[r] || 0 : !a && o && (h = r[0], l = r[1]), function(c, d, p) {
278
- var _ = (p || e).length, m = s[_], y, x, v, T, g, w, P, O, b;
279
- if (!m) {
280
- if (b = e.grid === "auto" ? 0 : (e.grid || [1, ot])[1], !b) {
281
- for (P = -ot; P < (P = p[b++].getBoundingClientRect().left) && b < _; )
282
- ;
283
- b < _ && b--;
284
- }
285
- for (m = s[_] = [], y = o ? Math.min(b, _) * h - 0.5 : r % b, x = b === ot ? 0 : o ? _ * l / b - 0.5 : r / b | 0, P = 0, O = ot, w = 0; w < _; w++)
286
- v = w % b - y, T = x - (w / b | 0), m[w] = g = f ? Math.abs(f === "y" ? T : v) : Fi(v * v + T * T), g > P && (P = g), g < O && (O = g);
287
- r === "random" && Ji(m), m.max = P - O, m.min = O, m.v = _ = (parseFloat(e.amount) || parseFloat(e.each) * (b > _ ? _ - 1 : f ? f === "y" ? _ / b : b : Math.max(b, _ / b)) || 0) * (r === "edges" ? -1 : 1), m.b = _ < 0 ? n - _ : n, m.u = G(e.amount || e.each) || 0, i = i && _ < 0 ? hr(i) : i;
288
- }
289
- return _ = (m[c] - m.min) / m.max || 0, V(m.b + (i ? i(_) : _) * m.v) + m.u;
290
- };
291
- }, We = function(t) {
292
- var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
293
- return function(i) {
294
- var r = V(Math.round(parseFloat(i) / t) * t * e);
295
- return (r - r % 1) / e + (yt(i) ? 0 : G(i));
296
- };
297
- }, er = function(t, e) {
298
- var i = $(t), r, n;
299
- return !i && dt(t) && (r = i = t.radius || ot, t.values ? (t = ut(t.values), (n = !yt(t[0])) && (r *= r)) : t = We(t.increment)), kt(e, i ? L(t) ? function(s) {
300
- return n = t(s), Math.abs(n - s) <= r ? n : s;
301
- } : function(s) {
302
- for (var a = parseFloat(n ? s.x : s), o = parseFloat(n ? s.y : 0), f = ot, h = 0, l = t.length, c, d; l--; )
303
- n ? (c = t[l].x - a, d = t[l].y - o, c = c * c + d * d) : c = Math.abs(t[l] - a), c < f && (f = c, h = l);
304
- return h = !r || f <= r ? t[h] : s, n || h === s || yt(s) ? h : h + G(s);
305
- } : We(t));
306
- }, ir = function(t, e, i, r) {
307
- return kt($(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
308
- return $(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
309
- });
310
- }, jr = function() {
311
- for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
312
- e[i] = arguments[i];
313
- return function(r) {
314
- return e.reduce(function(n, s) {
315
- return s(n);
316
- }, r);
317
- };
318
- }, Hr = function(t, e) {
319
- return function(i) {
320
- return t(parseFloat(i)) + (e || G(i));
321
- };
322
- }, Jr = function(t, e, i) {
323
- return nr(t, e, 0, 1, i);
324
- }, rr = function(t, e, i) {
325
- return kt(i, function(r) {
326
- return t[~~e(r)];
327
- });
328
- }, tn = function u(t, e, i) {
329
- var r = e - t;
330
- return $(t) ? rr(t, u(0, t.length), e) : kt(i, function(n) {
331
- return (r + (n - t) % r) % r + t;
332
- });
333
- }, en = function u(t, e, i) {
334
- var r = e - t, n = r * 2;
335
- return $(t) ? rr(t, u(0, t.length - 1), e) : kt(i, function(s) {
336
- return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
337
- });
338
- }, ue = function(t) {
339
- for (var e = 0, i = "", r, n, s, a; ~(r = t.indexOf("random(", e)); )
340
- s = t.indexOf(")", r), a = t.charAt(r + 7) === "[", n = t.substr(r + 7, s - r - 7).match(a ? Bi : Ne), i += t.substr(e, r - e) + ir(a ? n : +n[0], a ? 0 : +n[1], +n[2] || 1e-5), e = s + 1;
341
- return i + t.substr(e, t.length - e);
342
- }, nr = function(t, e, i, r, n) {
343
- var s = e - t, a = r - i;
344
- return kt(n, function(o) {
345
- return i + ((o - t) / s * a || 0);
346
- });
347
- }, rn = function u(t, e, i, r) {
348
- var n = isNaN(t + e) ? 0 : function(d) {
349
- return (1 - d) * t + d * e;
350
- };
351
- if (!n) {
352
- var s = X(t), a = {}, o, f, h, l, c;
353
- if (i === !0 && (r = 1) && (i = null), s)
354
- t = {
355
- p: t
356
- }, e = {
357
- p: e
358
- };
359
- else if ($(t) && !$(e)) {
360
- for (h = [], l = t.length, c = l - 2, f = 1; f < l; f++)
361
- h.push(u(t[f - 1], t[f]));
362
- l--, n = function(p) {
363
- p *= l;
364
- var _ = Math.min(c, ~~p);
365
- return h[_](p - _);
366
- }, i = e;
367
- } else r || (t = $t($(t) ? [] : {}, t));
368
- if (!h) {
369
- for (o in e)
370
- oi.call(a, t, o, "get", e[o]);
371
- n = function(p) {
372
- return _i(p, a) || (s ? t.p : t);
373
- };
374
- }
375
- }
376
- return kt(i, n);
377
- }, Ti = function(t, e, i) {
378
- var r = t.labels, n = ot, s, a, o;
379
- for (s in r)
380
- a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (o = s, n = a);
381
- return o;
382
- }, it = function(t, e, i) {
383
- var r = t.vars, n = r[e], s = E, a = t._ctx, o, f, h;
384
- if (n)
385
- return o = r[e + "Params"], f = r.callbackScope || t, i && wt.length && ve(), a && (E = a), h = o ? n.apply(f, o) : n.call(f), E = s, h;
386
- }, ee = function(t) {
387
- return Ot(t), t.scrollTrigger && t.scrollTrigger.kill(!!W), t.progress() < 1 && it(t, "onInterrupt"), t;
388
- }, Yt, sr = [], ar = function(t) {
389
- if (t)
390
- if (t = !t.name && t.default || t, ti() || t.headless) {
391
- var e = t.name, i = L(t), r = e && !i && t.init ? function() {
392
- this._props = [];
393
- } : t, n = {
394
- init: oe,
395
- render: _i,
396
- add: oi,
397
- kill: xn,
398
- modifier: yn,
399
- rawVars: 0
400
- }, s = {
401
- targetTest: 0,
402
- get: 0,
403
- getSetter: hi,
404
- aliases: {},
405
- register: 0
406
- };
407
- if (Zt(), t !== r) {
408
- if (tt[e])
409
- return;
410
- st(r, st(Te(t, n), s)), $t(r.prototype, $t(n, Te(t, s))), tt[r.prop = e] = r, t.targetTest && (ge.push(r), ri[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
411
- }
412
- Yi(e, r), t.register && t.register(J, r, j);
413
- } else
414
- sr.push(t);
415
- }, C = 255, ie = {
416
- aqua: [0, C, C],
417
- lime: [0, C, 0],
418
- silver: [192, 192, 192],
419
- black: [0, 0, 0],
420
- maroon: [128, 0, 0],
421
- teal: [0, 128, 128],
422
- blue: [0, 0, C],
423
- navy: [0, 0, 128],
424
- white: [C, C, C],
425
- olive: [128, 128, 0],
426
- yellow: [C, C, 0],
427
- orange: [C, 165, 0],
428
- gray: [128, 128, 128],
429
- purple: [128, 0, 128],
430
- green: [0, 128, 0],
431
- red: [C, 0, 0],
432
- pink: [C, 192, 203],
433
- cyan: [0, C, C],
434
- transparent: [C, C, C, 0]
435
- }, Ae = function(t, e, i) {
436
- return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * C + 0.5 | 0;
437
- }, or = function(t, e, i) {
438
- var r = t ? yt(t) ? [t >> 16, t >> 8 & C, t & C] : 0 : ie.black, n, s, a, o, f, h, l, c, d, p;
439
- if (!r) {
440
- if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ie[t])
441
- r = ie[t];
442
- else if (t.charAt(0) === "#") {
443
- if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), a = t.charAt(3), t = "#" + n + n + s + s + a + a + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
444
- return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & C, r & C, parseInt(t.substr(7), 16) / 255];
445
- t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & C, t & C];
446
- } else if (t.substr(0, 3) === "hsl") {
447
- if (r = p = t.match(Ne), !e)
448
- o = +r[0] % 360 / 360, f = +r[1] / 100, h = +r[2] / 100, s = h <= 0.5 ? h * (f + 1) : h + f - h * f, n = h * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = Ae(o + 1 / 3, n, s), r[1] = Ae(o, n, s), r[2] = Ae(o - 1 / 3, n, s);
449
- else if (~t.indexOf("="))
450
- return r = t.match(Ii), i && r.length < 4 && (r[3] = 1), r;
451
- } else
452
- r = t.match(Ne) || ie.transparent;
453
- r = r.map(Number);
454
- }
455
- return e && !p && (n = r[0] / C, s = r[1] / C, a = r[2] / C, l = Math.max(n, s, a), c = Math.min(n, s, a), h = (l + c) / 2, l === c ? o = f = 0 : (d = l - c, f = h > 0.5 ? d / (2 - l - c) : d / (l + c), o = l === n ? (s - a) / d + (s < a ? 6 : 0) : l === s ? (a - n) / d + 2 : (n - s) / d + 4, o *= 60), r[0] = ~~(o + 0.5), r[1] = ~~(f * 100 + 0.5), r[2] = ~~(h * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
456
- }, ur = function(t) {
457
- var e = [], i = [], r = -1;
458
- return t.split(Pt).forEach(function(n) {
459
- var s = n.match(Ut) || [];
460
- e.push.apply(e, s), i.push(r += s.length + 1);
461
- }), e.c = i, e;
462
- }, bi = function(t, e, i) {
463
- var r = "", n = (t + r).match(Pt), s = e ? "hsla(" : "rgba(", a = 0, o, f, h, l;
464
- if (!n)
465
- return t;
466
- if (n = n.map(function(c) {
467
- return (c = or(c, e, 1)) && s + (e ? c[0] + "," + c[1] + "%," + c[2] + "%," + c[3] : c.join(",")) + ")";
468
- }), i && (h = ur(t), o = i.c, o.join(r) !== h.c.join(r)))
469
- for (f = t.replace(Pt, "1").split(Ut), l = f.length - 1; a < l; a++)
470
- r += f[a] + (~o.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (h.length ? h : n.length ? n : i).shift());
471
- if (!f)
472
- for (f = t.split(Pt), l = f.length - 1; a < l; a++)
473
- r += f[a] + n[a];
474
- return r + f[l];
475
- }, Pt = (function() {
476
- var u = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
477
- for (t in ie)
478
- u += "|" + t + "\\b";
479
- return new RegExp(u + ")", "gi");
480
- })(), nn = /hsl[a]?\(/, fr = function(t) {
481
- var e = t.join(" "), i;
482
- if (Pt.lastIndex = 0, Pt.test(e))
483
- return i = nn.test(e), t[1] = bi(t[1], i), t[0] = bi(t[0], i, ur(t[1])), !0;
484
- }, fe, et = (function() {
485
- var u = Date.now, t = 500, e = 33, i = u(), r = i, n = 1e3 / 240, s = n, a = [], o, f, h, l, c, d, p = function _(m) {
486
- var y = u() - r, x = m === !0, v, T, g, w;
487
- if ((y > t || y < 0) && (i += y - e), r += y, g = r - i, v = g - s, (v > 0 || x) && (w = ++l.frame, c = g - l.time * 1e3, l.time = g = g / 1e3, s += v + (v >= n ? 4 : n - v), T = 1), x || (o = f(_)), T)
488
- for (d = 0; d < a.length; d++)
489
- a[d](g, c, w, m);
490
- };
491
- return l = {
492
- time: 0,
493
- frame: 0,
494
- tick: function() {
495
- p(!0);
496
- },
497
- deltaRatio: function(m) {
498
- return c / (1e3 / (m || 60));
499
- },
500
- wake: function() {
501
- Vi && (!Be && ti() && (_t = Be = window, ei = _t.document || {}, nt.gsap = J, (_t.gsapVersions || (_t.gsapVersions = [])).push(J.version), Ui(xe || _t.GreenSockGlobals || !_t.gsap && _t || {}), sr.forEach(ar)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, o && l.sleep(), f = h || function(m) {
502
- return setTimeout(m, s - l.time * 1e3 + 1 | 0);
503
- }, fe = 1, p(2));
504
- },
505
- sleep: function() {
506
- (h ? cancelAnimationFrame : clearTimeout)(o), fe = 0, f = oe;
507
- },
508
- lagSmoothing: function(m, y) {
509
- t = m || 1 / 0, e = Math.min(y || 33, t);
510
- },
511
- fps: function(m) {
512
- n = 1e3 / (m || 240), s = l.time * 1e3 + n;
513
- },
514
- add: function(m, y, x) {
515
- var v = y ? function(T, g, w, P) {
516
- m(T, g, w, P), l.remove(v);
517
- } : m;
518
- return l.remove(m), a[x ? "unshift" : "push"](v), Zt(), v;
519
- },
520
- remove: function(m, y) {
521
- ~(y = a.indexOf(m)) && a.splice(y, 1) && d >= y && d--;
522
- },
523
- _listeners: a
524
- }, l;
525
- })(), Zt = function() {
526
- return !fe && et.wake();
527
- }, S = {}, sn = /^[\d.\-M][\d.\-,\s]/, an = /["']/g, on = function(t) {
528
- for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, o, f; n < s; n++)
529
- o = i[n], a = n !== s - 1 ? o.lastIndexOf(",") : o.length, f = o.substr(0, a), e[r] = isNaN(f) ? f.replace(an, "").trim() : +f, r = o.substr(a + 1).trim();
530
- return e;
531
- }, un = function(t) {
532
- var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
533
- return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
534
- }, fn = function(t) {
535
- var e = (t + "").split("("), i = S[e[0]];
536
- return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [on(e[1])] : un(t).split(",").map(Gi)) : S._CE && sn.test(t) ? S._CE("", t) : i;
537
- }, hr = function(t) {
538
- return function(e) {
539
- return 1 - t(1 - e);
540
- };
541
- }, _r = function u(t, e) {
542
- for (var i = t._first, r; i; )
543
- i instanceof K ? u(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? u(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
544
- }, Lt = function(t, e) {
545
- return t && (L(t) ? t : S[t] || fn(t)) || e;
546
- }, Bt = function(t, e, i, r) {
547
- i === void 0 && (i = function(o) {
548
- return 1 - e(1 - o);
549
- }), r === void 0 && (r = function(o) {
550
- return o < 0.5 ? e(o * 2) / 2 : 1 - e((1 - o) * 2) / 2;
551
- });
552
- var n = {
553
- easeIn: e,
554
- easeOut: i,
555
- easeInOut: r
556
- }, s;
557
- return Z(t, function(a) {
558
- S[a] = nt[a] = n, S[s = a.toLowerCase()] = i;
559
- for (var o in n)
560
- S[s + (o === "easeIn" ? ".in" : o === "easeOut" ? ".out" : ".inOut")] = S[a + "." + o] = n[o];
561
- }), n;
562
- }, lr = function(t) {
563
- return function(e) {
564
- return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
565
- };
566
- }, Re = function u(t, e, i) {
567
- var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / Ie * (Math.asin(1 / r) || 0), a = function(h) {
568
- return h === 1 ? 1 : r * Math.pow(2, -10 * h) * Lr((h - s) * n) + 1;
569
- }, o = t === "out" ? a : t === "in" ? function(f) {
570
- return 1 - a(1 - f);
571
- } : lr(a);
572
- return n = Ie / n, o.config = function(f, h) {
573
- return u(t, f, h);
574
- }, o;
575
- }, Ee = function u(t, e) {
576
- e === void 0 && (e = 1.70158);
577
- var i = function(s) {
578
- return s ? --s * s * ((e + 1) * s + e) + 1 : 0;
579
- }, r = t === "out" ? i : t === "in" ? function(n) {
580
- return 1 - i(1 - n);
581
- } : lr(i);
582
- return r.config = function(n) {
583
- return u(t, n);
584
- }, r;
585
- };
586
- Z("Linear,Quad,Cubic,Quart,Quint,Strong", function(u, t) {
587
- var e = t < 5 ? t + 1 : t;
588
- Bt(u + ",Power" + (e - 1), t ? function(i) {
589
- return Math.pow(i, e);
590
- } : function(i) {
591
- return i;
592
- }, function(i) {
593
- return 1 - Math.pow(1 - i, e);
594
- }, function(i) {
595
- return i < 0.5 ? Math.pow(i * 2, e) / 2 : 1 - Math.pow((1 - i) * 2, e) / 2;
596
- });
597
- });
598
- S.Linear.easeNone = S.none = S.Linear.easeIn;
599
- Bt("Elastic", Re("in"), Re("out"), Re());
600
- (function(u, t) {
601
- var e = 1 / t, i = 2 * e, r = 2.5 * e, n = function(a) {
602
- return a < e ? u * a * a : a < i ? u * Math.pow(a - 1.5 / t, 2) + 0.75 : a < r ? u * (a -= 2.25 / t) * a + 0.9375 : u * Math.pow(a - 2.625 / t, 2) + 0.984375;
603
- };
604
- Bt("Bounce", function(s) {
605
- return 1 - n(1 - s);
606
- }, n);
607
- })(7.5625, 2.75);
608
- Bt("Expo", function(u) {
609
- return Math.pow(2, 10 * (u - 1)) * u + u * u * u * u * u * u * (1 - u);
610
- });
611
- Bt("Circ", function(u) {
612
- return -(Fi(1 - u * u) - 1);
613
- });
614
- Bt("Sine", function(u) {
615
- return u === 1 ? 1 : -Fr(u * Er) + 1;
616
- });
617
- Bt("Back", Ee("in"), Ee("out"), Ee());
618
- S.SteppedEase = S.steps = nt.SteppedEase = {
619
- config: function(t, e) {
620
- t === void 0 && (t = 1);
621
- var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - M;
622
- return function(a) {
623
- return ((r * ce(0, s, a) | 0) + n) * i;
624
- };
625
- }
626
- };
627
- Gt.ease = S["quad.out"];
628
- Z("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(u) {
629
- return ni += u + "," + u + "Params,";
630
- });
631
- var cr = function(t, e) {
632
- this.id = zr++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : qi, this.set = e ? e.getSetter : hi;
633
- }, he = /* @__PURE__ */ (function() {
634
- function u(e) {
635
- this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, Qt(this, +e.duration, 1, 1), this.data = e.data, E && (this._ctx = E, E.data.push(this)), fe || et.wake();
636
- }
637
- var t = u.prototype;
638
- return t.delay = function(i) {
639
- return i || i === 0 ? (this.parent && this.parent.smoothChildTiming && this.startTime(this._start + i - this._delay), this._delay = i, this) : this._delay;
640
- }, t.duration = function(i) {
641
- return arguments.length ? this.totalDuration(this._repeat > 0 ? i + (i + this._rDelay) * this._repeat : i) : this.totalDuration() && this._dur;
642
- }, t.totalDuration = function(i) {
643
- return arguments.length ? (this._dirty = 0, Qt(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
644
- }, t.totalTime = function(i, r) {
645
- if (Zt(), !arguments.length)
646
- return this._tTime;
647
- var n = this._dp;
648
- if (n && n.smoothChildTiming && this._ts) {
649
- for (Ce(this, i), !n._dp || n.parent || Qi(n, this); n && n.parent; )
650
- n.parent._time !== n._start + (n._ts >= 0 ? n._tTime / n._ts : (n.totalDuration() - n._tTime) / -n._ts) && n.totalTime(n._tTime, !0), n = n.parent;
651
- !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && lt(this._dp, this, this._start - this._delay);
652
- }
653
- return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === M || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), Wi(this, i, r)), this;
654
- }, t.time = function(i, r) {
655
- return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + xi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
656
- }, t.totalProgress = function(i, r) {
657
- return arguments.length ? this.totalTime(this.totalDuration() * i, r) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
658
- }, t.progress = function(i, r) {
659
- return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + xi(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
660
- }, t.iteration = function(i, r) {
661
- var n = this.duration() + this._rDelay;
662
- return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? Kt(this._tTime, n) + 1 : 1;
663
- }, t.timeScale = function(i, r) {
664
- if (!arguments.length)
665
- return this._rts === -M ? 0 : this._rts;
666
- if (this._rts === i)
667
- return this;
668
- var n = this.parent && this._ts ? be(this.parent._time, this) : this._tTime;
669
- return this._rts = +i || 0, this._ts = this._ps || i === -M ? 0 : this._rts, this.totalTime(ce(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), ke(this), Xr(this);
670
- }, t.paused = function(i) {
671
- return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (Zt(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== M && (this._tTime -= M)))), this) : this._ps;
672
- }, t.startTime = function(i) {
673
- if (arguments.length) {
674
- this._start = i;
675
- var r = this.parent || this._dp;
676
- return r && (r._sort || !this.parent) && lt(r, this, i - this._delay), this;
677
- }
678
- return this._start;
679
- }, t.endTime = function(i) {
680
- return this._start + (Q(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
681
- }, t.rawTime = function(i) {
682
- var r = this.parent || this._dp;
683
- return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? be(r.rawTime(i), this) : this._tTime : this._tTime;
684
- }, t.revert = function(i) {
685
- i === void 0 && (i = Br);
686
- var r = W;
687
- return W = i, ai(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), W = r, this;
688
- }, t.globalTime = function(i) {
689
- for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
690
- n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
691
- return !this.parent && this._sat ? this._sat.globalTime(i) : n;
692
- }, t.repeat = function(i) {
693
- return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, vi(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
694
- }, t.repeatDelay = function(i) {
695
- if (arguments.length) {
696
- var r = this._time;
697
- return this._rDelay = i, vi(this), r ? this.time(r) : this;
698
- }
699
- return this._rDelay;
700
- }, t.yoyo = function(i) {
701
- return arguments.length ? (this._yoyo = i, this) : this._yoyo;
702
- }, t.seek = function(i, r) {
703
- return this.totalTime(at(this, i), Q(r));
704
- }, t.restart = function(i, r) {
705
- return this.play().totalTime(i ? -this._delay : 0, Q(r)), this._dur || (this._zTime = -M), this;
706
- }, t.play = function(i, r) {
707
- return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
708
- }, t.reverse = function(i, r) {
709
- return i != null && this.seek(i || this.totalDuration(), r), this.reversed(!0).paused(!1);
710
- }, t.pause = function(i, r) {
711
- return i != null && this.seek(i, r), this.paused(!0);
712
- }, t.resume = function() {
713
- return this.paused(!1);
714
- }, t.reversed = function(i) {
715
- return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -M : 0)), this) : this._rts < 0;
716
- }, t.invalidate = function() {
717
- return this._initted = this._act = 0, this._zTime = -M, this;
718
- }, t.isActive = function() {
719
- var i = this.parent || this._dp, r = this._start, n;
720
- return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - M);
721
- }, t.eventCallback = function(i, r, n) {
722
- var s = this.vars;
723
- return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
724
- }, t.then = function(i) {
725
- var r = this;
726
- return new Promise(function(n) {
727
- var s = L(i) ? i : $i, a = function() {
728
- var f = r.then;
729
- r.then = null, L(s) && (s = s(r)) && (s.then || s === r) && (r.then = f), n(s), r.then = f;
730
- };
731
- r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? a() : r._prom = a;
732
- });
733
- }, t.kill = function() {
734
- ee(this);
735
- }, u;
736
- })();
737
- st(he.prototype, {
738
- _time: 0,
739
- _start: 0,
740
- _end: 0,
741
- _tTime: 0,
742
- _tDur: 0,
743
- _dirty: 0,
744
- _repeat: 0,
745
- _yoyo: !1,
746
- parent: null,
747
- _initted: !1,
748
- _rDelay: 0,
749
- _ts: 1,
750
- _dp: 0,
751
- ratio: 0,
752
- _zTime: -M,
753
- _prom: 0,
754
- _ps: !1,
755
- _rts: 1
756
- });
757
- var K = /* @__PURE__ */ (function(u) {
758
- zi(t, u);
759
- function t(i, r) {
760
- var n;
761
- return i === void 0 && (i = {}), n = u.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = Q(i.sortChildren), z && lt(i.parent || z, mt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Zi(mt(n), i.scrollTrigger), n;
762
- }
763
- var e = t.prototype;
764
- return e.to = function(r, n, s) {
765
- return ne(0, arguments, this), this;
766
- }, e.from = function(r, n, s) {
767
- return ne(1, arguments, this), this;
768
- }, e.fromTo = function(r, n, s, a) {
769
- return ne(2, arguments, this), this;
770
- }, e.set = function(r, n, s) {
771
- return n.duration = 0, n.parent = this, re(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new B(r, n, at(this, s), 1), this;
772
- }, e.call = function(r, n, s) {
773
- return lt(this, B.delayedCall(0, r, n), s);
774
- }, e.staggerTo = function(r, n, s, a, o, f, h) {
775
- return s.duration = n, s.stagger = s.stagger || a, s.onComplete = f, s.onCompleteParams = h, s.parent = this, new B(r, s, at(this, o)), this;
776
- }, e.staggerFrom = function(r, n, s, a, o, f, h) {
777
- return s.runBackwards = 1, re(s).immediateRender = Q(s.immediateRender), this.staggerTo(r, n, s, a, o, f, h);
778
- }, e.staggerFromTo = function(r, n, s, a, o, f, h, l) {
779
- return a.startAt = s, re(a).immediateRender = Q(a.immediateRender), this.staggerTo(r, n, a, o, f, h, l);
780
- }, e.render = function(r, n, s) {
781
- var a = this._time, o = this._dirty ? this.totalDuration() : this._tDur, f = this._dur, h = r <= 0 ? 0 : V(r), l = this._zTime < 0 != r < 0 && (this._initted || !f), c, d, p, _, m, y, x, v, T, g, w, P;
782
- if (this !== z && h > o && r >= 0 && (h = o), h !== this._tTime || s || l) {
783
- if (a !== this._time && f && (h += this._time - a, r += this._time - a), c = h, T = this._start, v = this._ts, y = !v, l && (f || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
784
- if (w = this._yoyo, m = f + this._rDelay, this._repeat < -1 && r < 0)
785
- return this.totalTime(m * 100 + r, n, s);
786
- if (c = V(h % m), h === o ? (_ = this._repeat, c = f) : (g = V(h / m), _ = ~~g, _ && _ === g && (c = f, _--), c > f && (c = f)), g = Kt(this._tTime, m), !a && this._tTime && g !== _ && this._tTime - g * m - this._dur <= 0 && (g = _), w && _ & 1 && (c = f - c, P = 1), _ !== g && !this._lock) {
787
- var O = w && g & 1, b = O === (w && _ & 1);
788
- if (_ < g && (O = !O), a = O ? 0 : h % f ? f : h, this._lock = 1, this.render(a || (P ? 0 : V(_ * m)), n, !f)._lock = 0, this._tTime = h, !n && this.parent && it(this, "onRepeat"), this.vars.repeatRefresh && !P && (this.invalidate()._lock = 1), a && a !== this._time || y !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
789
- return this;
790
- if (f = this._dur, o = this._tDur, b && (this._lock = 2, a = O ? f : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !P && this.invalidate()), this._lock = 0, !this._ts && !y)
791
- return this;
792
- _r(this, P);
793
- }
794
- }
795
- if (this._hasPause && !this._forcing && this._lock < 2 && (x = $r(this, V(a), V(c)), x && (h -= c - (c = x._start))), this._tTime = h, this._time = c, this._act = !v, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && h && !n && !g && (it(this, "onStart"), this._tTime !== h))
796
- return this;
797
- if (c >= a && r >= 0)
798
- for (d = this._first; d; ) {
799
- if (p = d._next, (d._act || c >= d._start) && d._ts && x !== d) {
800
- if (d.parent !== this)
801
- return this.render(r, n, s);
802
- if (d.render(d._ts > 0 ? (c - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (c - d._start) * d._ts, n, s), c !== this._time || !this._ts && !y) {
803
- x = 0, p && (h += this._zTime = -M);
804
- break;
805
- }
806
- }
807
- d = p;
808
- }
809
- else {
810
- d = this._last;
811
- for (var k = r < 0 ? r : c; d; ) {
812
- if (p = d._prev, (d._act || k <= d._end) && d._ts && x !== d) {
813
- if (d.parent !== this)
814
- return this.render(r, n, s);
815
- if (d.render(d._ts > 0 ? (k - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (k - d._start) * d._ts, n, s || W && ai(d)), c !== this._time || !this._ts && !y) {
816
- x = 0, p && (h += this._zTime = k ? -M : M);
817
- break;
818
- }
819
- }
820
- d = p;
821
- }
822
- }
823
- if (x && !n && (this.pause(), x.render(c >= a ? 0 : -M)._zTime = c >= a ? 1 : -1, this._ts))
824
- return this._start = T, ke(this), this.render(r, n, s);
825
- this._onUpdate && !n && it(this, "onUpdate", !0), (h === o && this._tTime >= this.totalDuration() || !h && a) && (T === this._start || Math.abs(v) !== Math.abs(this._ts)) && (this._lock || ((r || !f) && (h === o && this._ts > 0 || !h && this._ts < 0) && Ot(this, 1), !n && !(r < 0 && !a) && (h || a || !o) && (it(this, h === o && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < o && this.timeScale() > 0) && this._prom())));
826
- }
827
- return this;
828
- }, e.add = function(r, n) {
829
- var s = this;
830
- if (yt(n) || (n = at(this, n, r)), !(r instanceof he)) {
831
- if ($(r))
832
- return r.forEach(function(a) {
833
- return s.add(a, n);
834
- }), this;
835
- if (X(r))
836
- return this.addLabel(r, n);
837
- if (L(r))
838
- r = B.delayedCall(0, r);
839
- else
840
- return this;
841
- }
842
- return this !== r ? lt(this, r, n) : this;
843
- }, e.getChildren = function(r, n, s, a) {
844
- r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -ot);
845
- for (var o = [], f = this._first; f; )
846
- f._start >= a && (f instanceof B ? n && o.push(f) : (s && o.push(f), r && o.push.apply(o, f.getChildren(!0, n, s)))), f = f._next;
847
- return o;
848
- }, e.getById = function(r) {
849
- for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
850
- if (n[s].vars.id === r)
851
- return n[s];
852
- }, e.remove = function(r) {
853
- return X(r) ? this.removeLabel(r) : L(r) ? this.killTweensOf(r) : (r.parent === this && Se(this, r), r === this._recent && (this._recent = this._last), Ft(this));
854
- }, e.totalTime = function(r, n) {
855
- return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = V(et.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), u.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
856
- }, e.addLabel = function(r, n) {
857
- return this.labels[r] = at(this, n), this;
858
- }, e.removeLabel = function(r) {
859
- return delete this.labels[r], this;
860
- }, e.addPause = function(r, n, s) {
861
- var a = B.delayedCall(0, n || oe, s);
862
- return a.data = "isPause", this._hasPause = 1, lt(this, a, at(this, r));
863
- }, e.removePause = function(r) {
864
- var n = this._first;
865
- for (r = at(this, r); n; )
866
- n._start === r && n.data === "isPause" && Ot(n), n = n._next;
867
- }, e.killTweensOf = function(r, n, s) {
868
- for (var a = this.getTweensOf(r, s), o = a.length; o--; )
869
- vt !== a[o] && a[o].kill(r, n);
870
- return this;
871
- }, e.getTweensOf = function(r, n) {
872
- for (var s = [], a = ut(r), o = this._first, f = yt(n), h; o; )
873
- o instanceof B ? Vr(o._targets, a) && (f ? (!vt || o._initted && o._ts) && o.globalTime(0) <= n && o.globalTime(o.totalDuration()) > n : !n || o.isActive()) && s.push(o) : (h = o.getTweensOf(a, n)).length && s.push.apply(s, h), o = o._next;
874
- return s;
875
- }, e.tweenTo = function(r, n) {
876
- n = n || {};
877
- var s = this, a = at(s, r), o = n, f = o.startAt, h = o.onStart, l = o.onStartParams, c = o.immediateRender, d, p = B.to(s, st({
878
- ease: n.ease || "none",
879
- lazy: !1,
880
- immediateRender: !1,
881
- time: a,
882
- overwrite: "auto",
883
- duration: n.duration || Math.abs((a - (f && "time" in f ? f.time : s._time)) / s.timeScale()) || M,
884
- onStart: function() {
885
- if (s.pause(), !d) {
886
- var m = n.duration || Math.abs((a - (f && "time" in f ? f.time : s._time)) / s.timeScale());
887
- p._dur !== m && Qt(p, m, 0, 1).render(p._time, !0, !0), d = 1;
888
- }
889
- h && h.apply(p, l || []);
890
- }
891
- }, n));
892
- return c ? p.render(0) : p;
893
- }, e.tweenFromTo = function(r, n, s) {
894
- return this.tweenTo(n, st({
895
- startAt: {
896
- time: at(this, r)
897
- }
898
- }, s));
899
- }, e.recent = function() {
900
- return this._recent;
901
- }, e.nextLabel = function(r) {
902
- return r === void 0 && (r = this._time), Ti(this, at(this, r));
903
- }, e.previousLabel = function(r) {
904
- return r === void 0 && (r = this._time), Ti(this, at(this, r), 1);
905
- }, e.currentLabel = function(r) {
906
- return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + M);
907
- }, e.shiftChildren = function(r, n, s) {
908
- s === void 0 && (s = 0);
909
- for (var a = this._first, o = this.labels, f; a; )
910
- a._start >= s && (a._start += r, a._end += r), a = a._next;
911
- if (n)
912
- for (f in o)
913
- o[f] >= s && (o[f] += r);
914
- return Ft(this);
915
- }, e.invalidate = function(r) {
916
- var n = this._first;
917
- for (this._lock = 0; n; )
918
- n.invalidate(r), n = n._next;
919
- return u.prototype.invalidate.call(this, r);
920
- }, e.clear = function(r) {
921
- r === void 0 && (r = !0);
922
- for (var n = this._first, s; n; )
923
- s = n._next, this.remove(n), n = s;
924
- return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), Ft(this);
925
- }, e.totalDuration = function(r) {
926
- var n = 0, s = this, a = s._last, o = ot, f, h, l;
927
- if (arguments.length)
928
- return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
929
- if (s._dirty) {
930
- for (l = s.parent; a; )
931
- f = a._prev, a._dirty && a.totalDuration(), h = a._start, h > o && s._sort && a._ts && !s._lock ? (s._lock = 1, lt(s, a, h - a._delay, 1)._lock = 0) : o = h, h < 0 && a._ts && (n -= h, (!l && !s._dp || l && l.smoothChildTiming) && (s._start += h / s._ts, s._time -= h, s._tTime -= h), s.shiftChildren(-h, !1, -1 / 0), o = 0), a._end > n && a._ts && (n = a._end), a = f;
932
- Qt(s, s === z && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
933
- }
934
- return s._tDur;
935
- }, t.updateRoot = function(r) {
936
- if (z._ts && (Wi(z, be(r, z)), Xi = et.frame), et.frame >= gi) {
937
- gi += rt.autoSleep || 120;
938
- var n = z._first;
939
- if ((!n || !n._ts) && rt.autoSleep && et._listeners.length < 2) {
940
- for (; n && !n._ts; )
941
- n = n._next;
942
- n || et.sleep();
943
- }
944
- }
945
- }, t;
946
- })(he);
947
- st(K.prototype, {
948
- _lock: 0,
949
- _hasPause: 0,
950
- _forcing: 0
951
- });
952
- var hn = function(t, e, i, r, n, s, a) {
953
- var o = new j(this._pt, t, e, 0, 1, xr, null, n), f = 0, h = 0, l, c, d, p, _, m, y, x;
954
- for (o.b = i, o.e = r, i += "", r += "", (y = ~r.indexOf("random(")) && (r = ue(r)), s && (x = [i, r], s(x, t, e), i = x[0], r = x[1]), c = i.match(Me) || []; l = Me.exec(r); )
955
- p = l[0], _ = r.substring(f, l.index), d ? d = (d + 1) % 5 : _.substr(-5) === "rgba(" && (d = 1), p !== c[h++] && (m = parseFloat(c[h - 1]) || 0, o._pt = {
956
- _next: o._pt,
957
- p: _ || h === 1 ? _ : ",",
958
- //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
959
- s: m,
960
- c: p.charAt(1) === "=" ? Xt(m, p) - m : parseFloat(p) - m,
961
- m: d && d < 4 ? Math.round : 0
962
- }, f = Me.lastIndex);
963
- return o.c = f < r.length ? r.substring(f, r.length) : "", o.fp = a, (Ni.test(r) || y) && (o.e = 0), this._pt = o, o;
964
- }, oi = function(t, e, i, r, n, s, a, o, f, h) {
965
- L(r) && (r = r(n || 0, t, s));
966
- var l = t[e], c = i !== "get" ? i : L(l) ? f ? t[e.indexOf("set") || !L(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](f) : t[e]() : l, d = L(l) ? f ? pn : gr : fi, p;
967
- if (X(r) && (~r.indexOf("random(") && (r = ue(r)), r.charAt(1) === "=" && (p = Xt(c, r) + (G(c) || 0), (p || p === 0) && (r = p))), !h || c !== r || Ge)
968
- return !isNaN(c * r) && r !== "" ? (p = new j(this._pt, t, e, +c || 0, r - (c || 0), typeof l == "boolean" ? gn : yr, 0, d), f && (p.fp = f), a && p.modifier(a, this, t), this._pt = p) : (!l && !(e in t) && ii(e, r), hn.call(this, t, e, c, r, d, o || rt.stringFilter, f));
969
- }, _n = function(t, e, i, r, n) {
970
- if (L(t) && (t = se(t, n, e, i, r)), !dt(t) || t.style && t.nodeType || $(t) || Li(t))
971
- return X(t) ? se(t, n, e, i, r) : t;
972
- var s = {}, a;
973
- for (a in t)
974
- s[a] = se(t[a], n, e, i, r);
975
- return s;
976
- }, dr = function(t, e, i, r, n, s) {
977
- var a, o, f, h;
978
- if (tt[t] && (a = new tt[t]()).init(n, a.rawVars ? e[t] : _n(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = o = new j(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== Yt))
979
- for (f = i._ptLookup[i._targets.indexOf(n)], h = a._props.length; h--; )
980
- f[a._props[h]] = o;
981
- return a;
982
- }, vt, Ge, ui = function u(t, e, i) {
983
- var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, o = r.lazy, f = r.onUpdate, h = r.runBackwards, l = r.yoyoEase, c = r.keyframes, d = r.autoRevert, p = t._dur, _ = t._startAt, m = t._targets, y = t.parent, x = y && y.data === "nested" ? y.vars.targets : m, v = t._overwrite === "auto" && !He, T = t.timeline, g, w, P, O, b, k, R, D, A, q, U, N, Y;
984
- if (T && (!c || !n) && (n = "none"), t._ease = Lt(n, Gt.ease), t._yEase = l ? hr(Lt(l === !0 ? n : l, Gt.ease)) : 0, l && t._yoyo && !t._repeat && (l = t._yEase, t._yEase = t._ease, t._ease = l), t._from = !T && !!r.runBackwards, !T || c && !r.stagger) {
985
- if (D = m[0] ? zt(m[0]).harness : 0, N = D && r[D.prop], g = Te(r, ri), _ && (_._zTime < 0 && _.progress(1), e < 0 && h && a && !d ? _.render(-1, !0) : _.revert(h && p ? me : Nr), _._lazy = 0), s) {
986
- if (Ot(t._startAt = B.set(m, st({
987
- data: "isStart",
988
- overwrite: !1,
989
- parent: y,
990
- immediateRender: !0,
991
- lazy: !_ && Q(o),
992
- startAt: null,
993
- delay: 0,
994
- onUpdate: f && function() {
995
- return it(t, "onUpdate");
996
- },
997
- stagger: 0
998
- }, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (W || !a && !d) && t._startAt.revert(me), a && p && e <= 0 && i <= 0) {
999
- e && (t._zTime = e);
1000
- return;
1001
- }
1002
- } else if (h && p && !_) {
1003
- if (e && (a = !1), P = st({
1004
- overwrite: !1,
1005
- data: "isFromStart",
1006
- //we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
1007
- lazy: a && !_ && Q(o),
1008
- immediateRender: a,
1009
- //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
1010
- stagger: 0,
1011
- parent: y
1012
- //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1013
- }, g), N && (P[D.prop] = N), Ot(t._startAt = B.set(m, P)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (W ? t._startAt.revert(me) : t._startAt.render(-1, !0)), t._zTime = e, !a)
1014
- u(t._startAt, M, M);
1015
- else if (!e)
1016
- return;
1017
- }
1018
- for (t._pt = t._ptCache = 0, o = p && Q(o) || o && !p, w = 0; w < m.length; w++) {
1019
- if (b = m[w], R = b._gsap || si(m)[w]._gsap, t._ptLookup[w] = q = {}, Ve[R.id] && wt.length && ve(), U = x === m ? w : x.indexOf(b), D && (A = new D()).init(b, N || g, t, U, x) !== !1 && (t._pt = O = new j(t._pt, b, A.name, 0, 1, A.render, A, 0, A.priority), A._props.forEach(function(ht) {
1020
- q[ht] = O;
1021
- }), A.priority && (k = 1)), !D || N)
1022
- for (P in g)
1023
- tt[P] && (A = dr(P, g, t, U, b, x)) ? A.priority && (k = 1) : q[P] = O = oi.call(t, b, P, "get", g[P], U, x, 0, r.stringFilter);
1024
- t._op && t._op[w] && t.kill(b, t._op[w]), v && t._pt && (vt = t, z.killTweensOf(b, q, t.globalTime(e)), Y = !t.parent, vt = 0), t._pt && o && (Ve[R.id] = 1);
1025
- }
1026
- k && vr(t), t._onInit && t._onInit(t);
1027
- }
1028
- t._onUpdate = f, t._initted = (!t._op || t._pt) && !Y, c && e <= 0 && T.render(ot, !0, !0);
1029
- }, ln = function(t, e, i, r, n, s, a, o) {
1030
- var f = (t._pt && t._ptCache || (t._ptCache = {}))[e], h, l, c, d;
1031
- if (!f)
1032
- for (f = t._ptCache[e] = [], c = t._ptLookup, d = t._targets.length; d--; ) {
1033
- if (h = c[d][e], h && h.d && h.d._pt)
1034
- for (h = h.d._pt; h && h.p !== e && h.fp !== e; )
1035
- h = h._next;
1036
- if (!h)
1037
- return Ge = 1, t.vars[e] = "+=0", ui(t, a), Ge = 0, o ? ae(e + " not eligible for reset") : 1;
1038
- f.push(h);
1039
- }
1040
- for (d = f.length; d--; )
1041
- l = f[d], h = l._pt || l, h.s = (r || r === 0) && !n ? r : h.s + (r || 0) + s * h.c, h.c = i - h.s, l.e && (l.e = I(i) + G(l.e)), l.b && (l.b = h.s + G(l.b));
1042
- }, cn = function(t, e) {
1043
- var i = t[0] ? zt(t[0]).harness : 0, r = i && i.aliases, n, s, a, o;
1044
- if (!r)
1045
- return e;
1046
- n = $t({}, e);
1047
- for (s in r)
1048
- if (s in n)
1049
- for (o = r[s].split(","), a = o.length; a--; )
1050
- n[o[a]] = n[s];
1051
- return n;
1052
- }, dn = function(t, e, i, r) {
1053
- var n = e.ease || r || "power1.inOut", s, a;
1054
- if ($(e))
1055
- a = i[t] || (i[t] = []), e.forEach(function(o, f) {
1056
- return a.push({
1057
- t: f / (e.length - 1) * 100,
1058
- v: o,
1059
- e: n
1060
- });
1061
- });
1062
- else
1063
- for (s in e)
1064
- a = i[s] || (i[s] = []), s === "ease" || a.push({
1065
- t: parseFloat(t),
1066
- v: e[s],
1067
- e: n
1068
- });
1069
- }, se = function(t, e, i, r, n) {
1070
- return L(t) ? t.call(e, i, r, n) : X(t) && ~t.indexOf("random(") ? ue(t) : t;
1071
- }, pr = ni + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", mr = {};
1072
- Z(pr + ",id,stagger,delay,duration,paused,scrollTrigger", function(u) {
1073
- return mr[u] = 1;
1074
- });
1075
- var B = /* @__PURE__ */ (function(u) {
1076
- zi(t, u);
1077
- function t(i, r, n, s) {
1078
- var a;
1079
- typeof r == "number" && (n.duration = r, r = n, n = null), a = u.call(this, s ? r : re(r)) || this;
1080
- var o = a.vars, f = o.duration, h = o.delay, l = o.immediateRender, c = o.stagger, d = o.overwrite, p = o.keyframes, _ = o.defaults, m = o.scrollTrigger, y = o.yoyoEase, x = r.parent || z, v = ($(i) || Li(i) ? yt(i[0]) : "length" in r) ? [i] : ut(i), T, g, w, P, O, b, k, R;
1081
- if (a._targets = v.length ? si(v) : ae("GSAP target " + i + " not found. https://gsap.com", !rt.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = d, p || c || pe(f) || pe(h)) {
1082
- if (r = a.vars, T = a.timeline = new K({
1083
- data: "nested",
1084
- defaults: _ || {},
1085
- targets: x && x.data === "nested" ? x.vars.targets : v
1086
- }), T.kill(), T.parent = T._dp = mt(a), T._start = 0, c || pe(f) || pe(h)) {
1087
- if (P = v.length, k = c && tr(c), dt(c))
1088
- for (O in c)
1089
- ~pr.indexOf(O) && (R || (R = {}), R[O] = c[O]);
1090
- for (g = 0; g < P; g++)
1091
- w = Te(r, mr), w.stagger = 0, y && (w.yoyoEase = y), R && $t(w, R), b = v[g], w.duration = +se(f, mt(a), g, b, v), w.delay = (+se(h, mt(a), g, b, v) || 0) - a._delay, !c && P === 1 && w.delay && (a._delay = h = w.delay, a._start += h, w.delay = 0), T.to(b, w, k ? k(g, b, v) : 0), T._ease = S.none;
1092
- T.duration() ? f = h = 0 : a.timeline = 0;
1093
- } else if (p) {
1094
- re(st(T.vars.defaults, {
1095
- ease: "none"
1096
- })), T._ease = Lt(p.ease || r.ease || "none");
1097
- var D = 0, A, q, U;
1098
- if ($(p))
1099
- p.forEach(function(N) {
1100
- return T.to(v, N, ">");
1101
- }), T.duration();
1102
- else {
1103
- w = {};
1104
- for (O in p)
1105
- O === "ease" || O === "easeEach" || dn(O, p[O], w, p.easeEach);
1106
- for (O in w)
1107
- for (A = w[O].sort(function(N, Y) {
1108
- return N.t - Y.t;
1109
- }), D = 0, g = 0; g < A.length; g++)
1110
- q = A[g], U = {
1111
- ease: q.e,
1112
- duration: (q.t - (g ? A[g - 1].t : 0)) / 100 * f
1113
- }, U[O] = q.v, T.to(v, U, D), D += U.duration;
1114
- T.duration() < f && T.to({}, {
1115
- duration: f - T.duration()
1116
- });
1117
- }
1118
- }
1119
- f || a.duration(f = T.duration());
1120
- } else
1121
- a.timeline = 0;
1122
- return d === !0 && !He && (vt = mt(a), z.killTweensOf(v), vt = 0), lt(x, mt(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (l || !f && !p && a._start === V(x._time) && Q(l) && qr(mt(a)) && x.data !== "nested") && (a._tTime = -M, a.render(Math.max(0, -h) || 0)), m && Zi(mt(a), m), a;
1123
- }
1124
- var e = t.prototype;
1125
- return e.render = function(r, n, s) {
1126
- var a = this._time, o = this._tDur, f = this._dur, h = r < 0, l = r > o - M && !h ? o : r < M ? 0 : r, c, d, p, _, m, y, x, v, T;
1127
- if (!f)
1128
- Gr(this, r, n, s);
1129
- else if (l !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== h || this._lazy) {
1130
- if (c = l, v = this.timeline, this._repeat) {
1131
- if (_ = f + this._rDelay, this._repeat < -1 && h)
1132
- return this.totalTime(_ * 100 + r, n, s);
1133
- if (c = V(l % _), l === o ? (p = this._repeat, c = f) : (m = V(l / _), p = ~~m, p && p === m ? (c = f, p--) : c > f && (c = f)), y = this._yoyo && p & 1, y && (T = this._yEase, c = f - c), m = Kt(this._tTime, _), c === a && !s && this._initted && p === m)
1134
- return this._tTime = l, this;
1135
- p !== m && (v && this._yEase && _r(v, y), this.vars.repeatRefresh && !y && !this._lock && c !== _ && this._initted && (this._lock = s = 1, this.render(V(_ * p), !0).invalidate()._lock = 0));
1136
- }
1137
- if (!this._initted) {
1138
- if (ji(this, h ? r : c, s, n, l))
1139
- return this._tTime = 0, this;
1140
- if (a !== this._time && !(s && this.vars.repeatRefresh && p !== m))
1141
- return this;
1142
- if (f !== this._dur)
1143
- return this.render(r, n, s);
1144
- }
1145
- if (this._tTime = l, this._time = c, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = x = (T || this._ease)(c / f), this._from && (this.ratio = x = 1 - x), !a && l && !n && !m && (it(this, "onStart"), this._tTime !== l))
1146
- return this;
1147
- for (d = this._pt; d; )
1148
- d.r(x, d.d), d = d._next;
1149
- v && v.render(r < 0 ? r : v._dur * v._ease(c / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (h && Ue(this, r, n, s), it(this, "onUpdate")), this._repeat && p !== m && this.vars.onRepeat && !n && this.parent && it(this, "onRepeat"), (l === this._tDur || !l) && this._tTime === l && (h && !this._onUpdate && Ue(this, r, !0, !0), (r || !f) && (l === this._tDur && this._ts > 0 || !l && this._ts < 0) && Ot(this, 1), !n && !(h && !a) && (l || a || y) && (it(this, l === o ? "onComplete" : "onReverseComplete", !0), this._prom && !(l < o && this.timeScale() > 0) && this._prom()));
1150
- }
1151
- return this;
1152
- }, e.targets = function() {
1153
- return this._targets;
1154
- }, e.invalidate = function(r) {
1155
- return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), u.prototype.invalidate.call(this, r);
1156
- }, e.resetTo = function(r, n, s, a, o) {
1157
- fe || et.wake(), this._ts || this.play();
1158
- var f = Math.min(this._dur, (this._dp._time - this._start) * this._ts), h;
1159
- return this._initted || ui(this, f), h = this._ease(f / this._dur), ln(this, r, n, s, a, h, f, o) ? this.resetTo(r, n, s, a, 1) : (Ce(this, 0), this.parent || Ki(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1160
- }, e.kill = function(r, n) {
1161
- if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
1162
- return this._lazy = this._pt = 0, this.parent ? ee(this) : this.scrollTrigger && this.scrollTrigger.kill(!!W), this;
1163
- if (this.timeline) {
1164
- var s = this.timeline.totalDuration();
1165
- return this.timeline.killTweensOf(r, n, vt && vt.vars.overwrite !== !0)._first || ee(this), this.parent && s !== this.timeline.totalDuration() && Qt(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1166
- }
1167
- var a = this._targets, o = r ? ut(r) : a, f = this._ptLookup, h = this._pt, l, c, d, p, _, m, y;
1168
- if ((!n || n === "all") && Yr(a, o))
1169
- return n === "all" && (this._pt = 0), ee(this);
1170
- for (l = this._op = this._op || [], n !== "all" && (X(n) && (_ = {}, Z(n, function(x) {
1171
- return _[x] = 1;
1172
- }), n = _), n = cn(a, n)), y = a.length; y--; )
1173
- if (~o.indexOf(a[y])) {
1174
- c = f[y], n === "all" ? (l[y] = n, p = c, d = {}) : (d = l[y] = l[y] || {}, p = n);
1175
- for (_ in p)
1176
- m = c && c[_], m && ((!("kill" in m.d) || m.d.kill(_) === !0) && Se(this, m, "_pt"), delete c[_]), d !== "all" && (d[_] = 1);
1177
- }
1178
- return this._initted && !this._pt && h && ee(this), this;
1179
- }, t.to = function(r, n) {
1180
- return new t(r, n, arguments[2]);
1181
- }, t.from = function(r, n) {
1182
- return ne(1, arguments);
1183
- }, t.delayedCall = function(r, n, s, a) {
1184
- return new t(n, 0, {
1185
- immediateRender: !1,
1186
- lazy: !1,
1187
- overwrite: !1,
1188
- delay: r,
1189
- onComplete: n,
1190
- onReverseComplete: n,
1191
- onCompleteParams: s,
1192
- onReverseCompleteParams: s,
1193
- callbackScope: a
1194
- });
1195
- }, t.fromTo = function(r, n, s) {
1196
- return ne(2, arguments);
1197
- }, t.set = function(r, n) {
1198
- return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
1199
- }, t.killTweensOf = function(r, n, s) {
1200
- return z.killTweensOf(r, n, s);
1201
- }, t;
1202
- })(he);
1203
- st(B.prototype, {
1204
- _targets: [],
1205
- _lazy: 0,
1206
- _startAt: 0,
1207
- _op: 0,
1208
- _onInit: 0
1209
- });
1210
- Z("staggerTo,staggerFrom,staggerFromTo", function(u) {
1211
- B[u] = function() {
1212
- var t = new K(), e = Xe.call(arguments, 0);
1213
- return e.splice(u === "staggerFromTo" ? 5 : 4, 0, 0), t[u].apply(t, e);
1214
- };
1215
- });
1216
- var fi = function(t, e, i) {
1217
- return t[e] = i;
1218
- }, gr = function(t, e, i) {
1219
- return t[e](i);
1220
- }, pn = function(t, e, i, r) {
1221
- return t[e](r.fp, i);
1222
- }, mn = function(t, e, i) {
1223
- return t.setAttribute(e, i);
1224
- }, hi = function(t, e) {
1225
- return L(t[e]) ? gr : Je(t[e]) && t.setAttribute ? mn : fi;
1226
- }, yr = function(t, e) {
1227
- return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
1228
- }, gn = function(t, e) {
1229
- return e.set(e.t, e.p, !!(e.s + e.c * t), e);
1230
- }, xr = function(t, e) {
1231
- var i = e._pt, r = "";
1232
- if (!t && e.b)
1233
- r = e.b;
1234
- else if (t === 1 && e.e)
1235
- r = e.e;
1236
- else {
1237
- for (; i; )
1238
- r = i.p + (i.m ? i.m(i.s + i.c * t) : Math.round((i.s + i.c * t) * 1e4) / 1e4) + r, i = i._next;
1239
- r += e.c;
1240
- }
1241
- e.set(e.t, e.p, r, e);
1242
- }, _i = function(t, e) {
1243
- for (var i = e._pt; i; )
1244
- i.r(t, i.d), i = i._next;
1245
- }, yn = function(t, e, i, r) {
1246
- for (var n = this._pt, s; n; )
1247
- s = n._next, n.p === r && n.modifier(t, e, i), n = s;
1248
- }, xn = function(t) {
1249
- for (var e = this._pt, i, r; e; )
1250
- r = e._next, e.p === t && !e.op || e.op === t ? Se(this, e, "_pt") : e.dep || (i = 1), e = r;
1251
- return !i;
1252
- }, vn = function(t, e, i, r) {
1253
- r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
1254
- }, vr = function(t) {
1255
- for (var e = t._pt, i, r, n, s; e; ) {
1256
- for (i = e._next, r = n; r && r.pr > e.pr; )
1257
- r = r._next;
1258
- (e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
1259
- }
1260
- t._pt = n;
1261
- }, j = /* @__PURE__ */ (function() {
1262
- function u(e, i, r, n, s, a, o, f, h) {
1263
- this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || yr, this.d = o || this, this.set = f || fi, this.pr = h || 0, this._next = e, e && (e._prev = this);
1264
- }
1265
- var t = u.prototype;
1266
- return t.modifier = function(i, r, n) {
1267
- this.mSet = this.mSet || this.set, this.set = vn, this.m = i, this.mt = n, this.tween = r;
1268
- }, u;
1269
- })();
1270
- Z(ni + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(u) {
1271
- return ri[u] = 1;
1272
- });
1273
- nt.TweenMax = nt.TweenLite = B;
1274
- nt.TimelineLite = nt.TimelineMax = K;
1275
- z = new K({
1276
- sortChildren: !1,
1277
- defaults: Gt,
1278
- autoRemoveChildren: !0,
1279
- id: "root",
1280
- smoothChildTiming: !0
1281
- });
1282
- rt.stringFilter = fr;
1283
- var It = [], ye = {}, Tn = [], wi = 0, bn = 0, ze = function(t) {
1284
- return (ye[t] || Tn).map(function(e) {
1285
- return e();
1286
- });
1287
- }, $e = function() {
1288
- var t = Date.now(), e = [];
1289
- t - wi > 2 && (ze("matchMediaInit"), It.forEach(function(i) {
1290
- var r = i.queries, n = i.conditions, s, a, o, f;
1291
- for (a in r)
1292
- s = _t.matchMedia(r[a]).matches, s && (o = 1), s !== n[a] && (n[a] = s, f = 1);
1293
- f && (i.revert(), o && e.push(i));
1294
- }), ze("matchMediaRevert"), e.forEach(function(i) {
1295
- return i.onMatch(i, function(r) {
1296
- return i.add(null, r);
1297
- });
1298
- }), wi = t, ze("matchMedia"));
1299
- }, Tr = /* @__PURE__ */ (function() {
1300
- function u(e, i) {
1301
- this.selector = i && qe(i), this.data = [], this._r = [], this.isReverted = !1, this.id = bn++, e && this.add(e);
1302
- }
1303
- var t = u.prototype;
1304
- return t.add = function(i, r, n) {
1305
- L(i) && (n = r, r = i, i = L);
1306
- var s = this, a = function() {
1307
- var f = E, h = s.selector, l;
1308
- return f && f !== s && f.data.push(s), n && (s.selector = qe(n)), E = s, l = r.apply(s, arguments), L(l) && s._r.push(l), E = f, s.selector = h, s.isReverted = !1, l;
1309
- };
1310
- return s.last = a, i === L ? a(s, function(o) {
1311
- return s.add(null, o);
1312
- }) : i ? s[i] = a : a;
1313
- }, t.ignore = function(i) {
1314
- var r = E;
1315
- E = null, i(this), E = r;
1316
- }, t.getTweens = function() {
1317
- var i = [];
1318
- return this.data.forEach(function(r) {
1319
- return r instanceof u ? i.push.apply(i, r.getTweens()) : r instanceof B && !(r.parent && r.parent.data === "nested") && i.push(r);
1320
- }), i;
1321
- }, t.clear = function() {
1322
- this._r.length = this.data.length = 0;
1323
- }, t.kill = function(i, r) {
1324
- var n = this;
1325
- if (i ? (function() {
1326
- for (var a = n.getTweens(), o = n.data.length, f; o--; )
1327
- f = n.data[o], f.data === "isFlip" && (f.revert(), f.getChildren(!0, !0, !1).forEach(function(h) {
1328
- return a.splice(a.indexOf(h), 1);
1329
- }));
1330
- for (a.map(function(h) {
1331
- return {
1332
- g: h._dur || h._delay || h._sat && !h._sat.vars.immediateRender ? h.globalTime(0) : -1 / 0,
1333
- t: h
1334
- };
1335
- }).sort(function(h, l) {
1336
- return l.g - h.g || -1 / 0;
1337
- }).forEach(function(h) {
1338
- return h.t.revert(i);
1339
- }), o = n.data.length; o--; )
1340
- f = n.data[o], f instanceof K ? f.data !== "nested" && (f.scrollTrigger && f.scrollTrigger.revert(), f.kill()) : !(f instanceof B) && f.revert && f.revert(i);
1341
- n._r.forEach(function(h) {
1342
- return h(i, n);
1343
- }), n.isReverted = !0;
1344
- })() : this.data.forEach(function(a) {
1345
- return a.kill && a.kill();
1346
- }), this.clear(), r)
1347
- for (var s = It.length; s--; )
1348
- It[s].id === this.id && It.splice(s, 1);
1349
- }, t.revert = function(i) {
1350
- this.kill(i || {});
1351
- }, u;
1352
- })(), wn = /* @__PURE__ */ (function() {
1353
- function u(e) {
1354
- this.contexts = [], this.scope = e, E && E.data.push(this);
1355
- }
1356
- var t = u.prototype;
1357
- return t.add = function(i, r, n) {
1358
- dt(i) || (i = {
1359
- matches: i
1360
- });
1361
- var s = new Tr(0, n || this.scope), a = s.conditions = {}, o, f, h;
1362
- E && !s.selector && (s.selector = E.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
1363
- for (f in i)
1364
- f === "all" ? h = 1 : (o = _t.matchMedia(i[f]), o && (It.indexOf(s) < 0 && It.push(s), (a[f] = o.matches) && (h = 1), o.addListener ? o.addListener($e) : o.addEventListener("change", $e)));
1365
- return h && r(s, function(l) {
1366
- return s.add(null, l);
1367
- }), this;
1368
- }, t.revert = function(i) {
1369
- this.kill(i || {});
1370
- }, t.kill = function(i) {
1371
- this.contexts.forEach(function(r) {
1372
- return r.kill(i, !0);
1373
- });
1374
- }, u;
1375
- })(), we = {
1376
- registerPlugin: function() {
1377
- for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
1378
- e[i] = arguments[i];
1379
- e.forEach(function(r) {
1380
- return ar(r);
1381
- });
1382
- },
1383
- timeline: function(t) {
1384
- return new K(t);
1385
- },
1386
- getTweensOf: function(t, e) {
1387
- return z.getTweensOf(t, e);
1388
- },
1389
- getProperty: function(t, e, i, r) {
1390
- X(t) && (t = ut(t)[0]);
1391
- var n = zt(t || {}).get, s = i ? $i : Gi;
1392
- return i === "native" && (i = ""), t && (e ? s((tt[e] && tt[e].get || n)(t, e, i, r)) : function(a, o, f) {
1393
- return s((tt[a] && tt[a].get || n)(t, a, o, f));
1394
- });
1395
- },
1396
- quickSetter: function(t, e, i) {
1397
- if (t = ut(t), t.length > 1) {
1398
- var r = t.map(function(h) {
1399
- return J.quickSetter(h, e, i);
1400
- }), n = r.length;
1401
- return function(h) {
1402
- for (var l = n; l--; )
1403
- r[l](h);
1404
- };
1405
- }
1406
- t = t[0] || {};
1407
- var s = tt[e], a = zt(t), o = a.harness && (a.harness.aliases || {})[e] || e, f = s ? function(h) {
1408
- var l = new s();
1409
- Yt._pt = 0, l.init(t, i ? h + i : h, Yt, 0, [t]), l.render(1, l), Yt._pt && _i(1, Yt);
1410
- } : a.set(t, o);
1411
- return s ? f : function(h) {
1412
- return f(t, o, i ? h + i : h, a, 1);
1413
- };
1414
- },
1415
- quickTo: function(t, e, i) {
1416
- var r, n = J.to(t, st((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(o, f, h) {
1417
- return n.resetTo(e, o, f, h);
1418
- };
1419
- return s.tween = n, s;
1420
- },
1421
- isTweening: function(t) {
1422
- return z.getTweensOf(t, !0).length > 0;
1423
- },
1424
- defaults: function(t) {
1425
- return t && t.ease && (t.ease = Lt(t.ease, Gt.ease)), yi(Gt, t || {});
1426
- },
1427
- config: function(t) {
1428
- return yi(rt, t || {});
1429
- },
1430
- registerEffect: function(t) {
1431
- var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
1432
- (r || "").split(",").forEach(function(a) {
1433
- return a && !tt[a] && !nt[a] && ae(e + " effect requires " + a + " plugin.");
1434
- }), De[e] = function(a, o, f) {
1435
- return i(ut(a), st(o || {}, n), f);
1436
- }, s && (K.prototype[e] = function(a, o, f) {
1437
- return this.add(De[e](a, dt(o) ? o : (f = o) && {}, this), f);
1438
- });
1439
- },
1440
- registerEase: function(t, e) {
1441
- S[t] = Lt(e);
1442
- },
1443
- parseEase: function(t, e) {
1444
- return arguments.length ? Lt(t, e) : S;
1445
- },
1446
- getById: function(t) {
1447
- return z.getById(t);
1448
- },
1449
- exportRoot: function(t, e) {
1450
- t === void 0 && (t = {});
1451
- var i = new K(t), r, n;
1452
- for (i.smoothChildTiming = Q(t.smoothChildTiming), z.remove(i), i._dp = 0, i._time = i._tTime = z._time, r = z._first; r; )
1453
- n = r._next, (e || !(!r._dur && r instanceof B && r.vars.onComplete === r._targets[0])) && lt(i, r, r._start - r._delay), r = n;
1454
- return lt(z, i, 0), i;
1455
- },
1456
- context: function(t, e) {
1457
- return t ? new Tr(t, e) : E;
1458
- },
1459
- matchMedia: function(t) {
1460
- return new wn(t);
1461
- },
1462
- matchMediaRefresh: function() {
1463
- return It.forEach(function(t) {
1464
- var e = t.conditions, i, r;
1465
- for (r in e)
1466
- e[r] && (e[r] = !1, i = 1);
1467
- i && t.revert();
1468
- }) || $e();
1469
- },
1470
- addEventListener: function(t, e) {
1471
- var i = ye[t] || (ye[t] = []);
1472
- ~i.indexOf(e) || i.push(e);
1473
- },
1474
- removeEventListener: function(t, e) {
1475
- var i = ye[t], r = i && i.indexOf(e);
1476
- r >= 0 && i.splice(r, 1);
1477
- },
1478
- utils: {
1479
- wrap: tn,
1480
- wrapYoyo: en,
1481
- distribute: tr,
1482
- random: ir,
1483
- snap: er,
1484
- normalize: Jr,
1485
- getUnit: G,
1486
- clamp: Qr,
1487
- splitColor: or,
1488
- toArray: ut,
1489
- selector: qe,
1490
- mapRange: nr,
1491
- pipe: jr,
1492
- unitize: Hr,
1493
- interpolate: rn,
1494
- shuffle: Ji
1495
- },
1496
- install: Ui,
1497
- effects: De,
1498
- ticker: et,
1499
- updateRoot: K.updateRoot,
1500
- plugins: tt,
1501
- globalTimeline: z,
1502
- core: {
1503
- PropTween: j,
1504
- globals: Yi,
1505
- Tween: B,
1506
- Timeline: K,
1507
- Animation: he,
1508
- getCache: zt,
1509
- _removeLinkedListItem: Se,
1510
- reverting: function() {
1511
- return W;
1512
- },
1513
- context: function(t) {
1514
- return t && E && (E.data.push(t), t._ctx = E), E;
1515
- },
1516
- suppressOverwrites: function(t) {
1517
- return He = t;
1518
- }
1519
- }
1520
- };
1521
- Z("to,from,fromTo,delayedCall,set,killTweensOf", function(u) {
1522
- return we[u] = B[u];
1523
- });
1524
- et.add(K.updateRoot);
1525
- Yt = we.to({}, {
1526
- duration: 0
1527
- });
1528
- var Pn = function(t, e) {
1529
- for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
1530
- i = i._next;
1531
- return i;
1532
- }, On = function(t, e) {
1533
- var i = t._targets, r, n, s;
1534
- for (r in e)
1535
- for (n = i.length; n--; )
1536
- s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = Pn(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
1537
- }, Fe = function(t, e) {
1538
- return {
1539
- name: t,
1540
- headless: 1,
1541
- rawVars: 1,
1542
- //don't pre-process function-based values or "random()" strings.
1543
- init: function(r, n, s) {
1544
- s._onInit = function(a) {
1545
- var o, f;
1546
- if (X(n) && (o = {}, Z(n, function(h) {
1547
- return o[h] = 1;
1548
- }), n = o), e) {
1549
- o = {};
1550
- for (f in n)
1551
- o[f] = e(n[f]);
1552
- n = o;
1553
- }
1554
- On(a, n);
1555
- };
1556
- }
1557
- };
1558
- }, J = we.registerPlugin({
1559
- name: "attr",
1560
- init: function(t, e, i, r, n) {
1561
- var s, a, o;
1562
- this.tween = i;
1563
- for (s in e)
1564
- o = t.getAttribute(s) || "", a = this.add(t, "setAttribute", (o || 0) + "", e[s], r, n, 0, 0, s), a.op = s, a.b = o, this._props.push(s);
1565
- },
1566
- render: function(t, e) {
1567
- for (var i = e._pt; i; )
1568
- W ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
1569
- }
1570
- }, {
1571
- name: "endArray",
1572
- headless: 1,
1573
- init: function(t, e) {
1574
- for (var i = e.length; i--; )
1575
- this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
1576
- }
1577
- }, Fe("roundProps", We), Fe("modifiers"), Fe("snap", er)) || we;
1578
- B.version = K.version = J.version = "3.13.0";
1579
- Vi = 1;
1580
- ti() && Zt();
1581
- S.Power0;
1582
- S.Power1;
1583
- S.Power2;
1584
- S.Power3;
1585
- S.Power4;
1586
- S.Linear;
1587
- S.Quad;
1588
- S.Cubic;
1589
- S.Quart;
1590
- S.Quint;
1591
- S.Strong;
1592
- S.Elastic;
1593
- S.Back;
1594
- S.SteppedEase;
1595
- S.Bounce;
1596
- S.Sine;
1597
- S.Expo;
1598
- S.Circ;
1599
- /*!
1600
- * CSSPlugin 3.13.0
1601
- * https://gsap.com
1602
- *
1603
- * Copyright 2008-2025, GreenSock. All rights reserved.
1604
- * Subject to the terms at https://gsap.com/standard-license
1605
- * @author: Jack Doyle, jack@greensock.com
1606
- */
1607
- var Pi, Tt, qt, li, Et, Oi, ci, Sn = function() {
1608
- return typeof window < "u";
1609
- }, xt = {}, Rt = 180 / Math.PI, Wt = Math.PI / 180, Vt = Math.atan2, Si = 1e8, di = /([A-Z])/g, kn = /(left|right|width|margin|padding|x)/i, Cn = /[\s,\(]\S/, ct = {
1610
- autoAlpha: "opacity,visibility",
1611
- scale: "scaleX,scaleY",
1612
- alpha: "opacity"
1613
- }, Ke = function(t, e) {
1614
- return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1615
- }, Mn = function(t, e) {
1616
- return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1617
- }, Dn = function(t, e) {
1618
- return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
1619
- }, An = function(t, e) {
1620
- var i = e.s + e.c * t;
1621
- e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
1622
- }, br = function(t, e) {
1623
- return e.set(e.t, e.p, t ? e.e : e.b, e);
1624
- }, wr = function(t, e) {
1625
- return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
1626
- }, Rn = function(t, e, i) {
1627
- return t.style[e] = i;
1628
- }, En = function(t, e, i) {
1629
- return t.style.setProperty(e, i);
1630
- }, zn = function(t, e, i) {
1631
- return t._gsap[e] = i;
1632
- }, Fn = function(t, e, i) {
1633
- return t._gsap.scaleX = t._gsap.scaleY = i;
1634
- }, Ln = function(t, e, i, r, n) {
1635
- var s = t._gsap;
1636
- s.scaleX = s.scaleY = i, s.renderTransform(n, s);
1637
- }, In = function(t, e, i, r, n) {
1638
- var s = t._gsap;
1639
- s[e] = i, s.renderTransform(n, s);
1640
- }, F = "transform", H = F + "Origin", Nn = function u(t, e) {
1641
- var i = this, r = this.target, n = r.style, s = r._gsap;
1642
- if (t in xt && n) {
1643
- if (this.tfm = this.tfm || {}, t !== "transform")
1644
- t = ct[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
1645
- return i.tfm[a] = gt(r, a);
1646
- }) : this.tfm[t] = s.x ? s[t] : gt(r, t), t === H && (this.tfm.zOrigin = s.zOrigin);
1647
- else
1648
- return ct.transform.split(",").forEach(function(a) {
1649
- return u.call(i, a, e);
1650
- });
1651
- if (this.props.indexOf(F) >= 0)
1652
- return;
1653
- s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(H, e, "")), t = F;
1654
- }
1655
- (n || e) && this.props.push(t, e, n[t]);
1656
- }, Pr = function(t) {
1657
- t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
1658
- }, Bn = function() {
1659
- var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
1660
- for (n = 0; n < t.length; n += 3)
1661
- t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(di, "-$1").toLowerCase());
1662
- if (this.tfm) {
1663
- for (s in this.tfm)
1664
- r[s] = this.tfm[s];
1665
- r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = ci(), (!n || !n.isStart) && !i[F] && (Pr(i), r.zOrigin && i[H] && (i[H] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
1666
- }
1667
- }, Or = function(t, e) {
1668
- var i = {
1669
- target: t,
1670
- props: [],
1671
- revert: Bn,
1672
- save: Nn
1673
- };
1674
- return t._gsap || J.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
1675
- return i.save(r);
1676
- }), i;
1677
- }, Sr, Qe = function(t, e) {
1678
- var i = Tt.createElementNS ? Tt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Tt.createElement(t);
1679
- return i && i.style ? i : Tt.createElement(t);
1680
- }, ft = function u(t, e, i) {
1681
- var r = getComputedStyle(t);
1682
- return r[e] || r.getPropertyValue(e.replace(di, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && u(t, jt(e) || e, 1) || "";
1683
- }, ki = "O,Moz,ms,Ms,Webkit".split(","), jt = function(t, e, i) {
1684
- var r = e || Et, n = r.style, s = 5;
1685
- if (t in n && !i)
1686
- return t;
1687
- for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(ki[s] + t in n); )
1688
- ;
1689
- return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? ki[s] : "") + t;
1690
- }, Ze = function() {
1691
- Sn() && window.document && (Pi = window, Tt = Pi.document, qt = Tt.documentElement, Et = Qe("div") || {
1692
- style: {}
1693
- }, Qe("div"), F = jt(F), H = F + "Origin", Et.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Sr = !!jt("perspective"), ci = J.core.reverting, li = 1);
1694
- }, Ci = function(t) {
1695
- var e = t.ownerSVGElement, i = Qe("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
1696
- r.style.display = "block", i.appendChild(r), qt.appendChild(i);
1697
- try {
1698
- n = r.getBBox();
1699
- } catch {
1700
- }
1701
- return i.removeChild(r), qt.removeChild(i), n;
1702
- }, Mi = function(t, e) {
1703
- for (var i = e.length; i--; )
1704
- if (t.hasAttribute(e[i]))
1705
- return t.getAttribute(e[i]);
1706
- }, kr = function(t) {
1707
- var e, i;
1708
- try {
1709
- e = t.getBBox();
1710
- } catch {
1711
- e = Ci(t), i = 1;
1712
- }
1713
- return e && (e.width || e.height) || i || (e = Ci(t)), e && !e.width && !e.x && !e.y ? {
1714
- x: +Mi(t, ["x", "cx", "x1"]) || 0,
1715
- y: +Mi(t, ["y", "cy", "y1"]) || 0,
1716
- width: 0,
1717
- height: 0
1718
- } : e;
1719
- }, Cr = function(t) {
1720
- return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && kr(t));
1721
- }, Nt = function(t, e) {
1722
- if (e) {
1723
- var i = t.style, r;
1724
- e in xt && e !== H && (e = F), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(di, "-$1").toLowerCase())) : i.removeAttribute(e);
1725
- }
1726
- }, bt = function(t, e, i, r, n, s) {
1727
- var a = new j(t._pt, e, i, 0, 1, s ? wr : br);
1728
- return t._pt = a, a.b = r, a.e = n, t._props.push(i), a;
1729
- }, Di = {
1730
- deg: 1,
1731
- rad: 1,
1732
- turn: 1
1733
- }, Vn = {
1734
- grid: 1,
1735
- flex: 1
1736
- }, St = function u(t, e, i, r) {
1737
- var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = Et.style, o = kn.test(e), f = t.tagName.toLowerCase() === "svg", h = (f ? "client" : "offset") + (o ? "Width" : "Height"), l = 100, c = r === "px", d = r === "%", p, _, m, y;
1738
- if (r === s || !n || Di[r] || Di[s])
1739
- return n;
1740
- if (s !== "px" && !c && (n = u(t, e, i, "px")), y = t.getCTM && Cr(t), (d || s === "%") && (xt[e] || ~e.indexOf("adius")))
1741
- return p = y ? t.getBBox()[o ? "width" : "height"] : t[h], I(d ? n / p * l : n / 100 * p);
1742
- if (a[o ? "width" : "height"] = l + (c ? s : r), _ = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !f ? t : t.parentNode, y && (_ = (t.ownerSVGElement || {}).parentNode), (!_ || _ === Tt || !_.appendChild) && (_ = Tt.body), m = _._gsap, m && d && m.width && o && m.time === et.time && !m.uncache)
1743
- return I(n / m.width * l);
1744
- if (d && (e === "height" || e === "width")) {
1745
- var x = t.style[e];
1746
- t.style[e] = l + r, p = t[h], x ? t.style[e] = x : Nt(t, e);
1747
- } else
1748
- (d || s === "%") && !Vn[ft(_, "display")] && (a.position = ft(t, "position")), _ === t && (a.position = "static"), _.appendChild(Et), p = Et[h], _.removeChild(Et), a.position = "absolute";
1749
- return o && d && (m = zt(_), m.time = et.time, m.width = _[h]), I(c ? p * n / l : p && n ? l / p * n : 0);
1750
- }, gt = function(t, e, i, r) {
1751
- var n;
1752
- return li || Ze(), e in ct && e !== "transform" && (e = ct[e], ~e.indexOf(",") && (e = e.split(",")[0])), xt[e] && e !== "transform" ? (n = le(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Oe(ft(t, H)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = Pe[e] && Pe[e](t, e, i) || ft(t, e) || qi(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? St(t, e, n, i) + i : n;
1753
- }, Un = function(t, e, i, r) {
1754
- if (!i || i === "none") {
1755
- var n = jt(e, t, 1), s = n && ft(t, n, 1);
1756
- s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = ft(t, "borderTopColor"));
1757
- }
1758
- var a = new j(this._pt, t.style, e, 0, 1, xr), o = 0, f = 0, h, l, c, d, p, _, m, y, x, v, T, g;
1759
- if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = ft(t, r.substring(4, r.indexOf(")")))), r === "auto" && (_ = t.style[e], t.style[e] = r, r = ft(t, e) || r, _ ? t.style[e] = _ : Nt(t, e)), h = [i, r], fr(h), i = h[0], r = h[1], c = i.match(Ut) || [], g = r.match(Ut) || [], g.length) {
1760
- for (; l = Ut.exec(r); )
1761
- m = l[0], x = r.substring(o, l.index), p ? p = (p + 1) % 5 : (x.substr(-5) === "rgba(" || x.substr(-5) === "hsla(") && (p = 1), m !== (_ = c[f++] || "") && (d = parseFloat(_) || 0, T = _.substr((d + "").length), m.charAt(1) === "=" && (m = Xt(d, m) + T), y = parseFloat(m), v = m.substr((y + "").length), o = Ut.lastIndex - v.length, v || (v = v || rt.units[e] || T, o === r.length && (r += v, a.e += v)), T !== v && (d = St(t, e, _, v) || 0), a._pt = {
1762
- _next: a._pt,
1763
- p: x || f === 1 ? x : ",",
1764
- //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
1765
- s: d,
1766
- c: y - d,
1767
- m: p && p < 4 || e === "zIndex" ? Math.round : 0
1768
- });
1769
- a.c = o < r.length ? r.substring(o, r.length) : "";
1770
- } else
1771
- a.r = e === "display" && r === "none" ? wr : br;
1772
- return Ni.test(r) && (a.e = 0), this._pt = a, a;
1773
- }, Ai = {
1774
- top: "0%",
1775
- bottom: "100%",
1776
- left: "0%",
1777
- right: "100%",
1778
- center: "50%"
1779
- }, Yn = function(t) {
1780
- var e = t.split(" "), i = e[0], r = e[1] || "50%";
1781
- return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = Ai[i] || i, e[1] = Ai[r] || r, e.join(" ");
1782
- }, Xn = function(t, e) {
1783
- if (e.tween && e.tween._time === e.tween._dur) {
1784
- var i = e.t, r = i.style, n = e.u, s = i._gsap, a, o, f;
1785
- if (n === "all" || n === !0)
1786
- r.cssText = "", o = 1;
1787
- else
1788
- for (n = n.split(","), f = n.length; --f > -1; )
1789
- a = n[f], xt[a] && (o = 1, a = a === "transformOrigin" ? H : F), Nt(i, a);
1790
- o && (Nt(i, F), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", le(i, 1), s.uncache = 1, Pr(r)));
1791
- }
1792
- }, Pe = {
1793
- clearProps: function(t, e, i, r, n) {
1794
- if (n.data !== "isFromStart") {
1795
- var s = t._pt = new j(t._pt, e, i, 0, 0, Xn);
1796
- return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
1797
- }
1798
- }
1799
- /* className feature (about 0.4kb gzipped).
1800
- , className(plugin, target, property, endValue, tween) {
1801
- let _renderClassName = (ratio, data) => {
1802
- data.css.render(ratio, data.css);
1803
- if (!ratio || ratio === 1) {
1804
- let inline = data.rmv,
1805
- target = data.t,
1806
- p;
1807
- target.setAttribute("class", ratio ? data.e : data.b);
1808
- for (p in inline) {
1809
- _removeProperty(target, p);
1810
- }
1811
- }
1812
- },
1813
- _getAllStyles = (target) => {
1814
- let styles = {},
1815
- computed = getComputedStyle(target),
1816
- p;
1817
- for (p in computed) {
1818
- if (isNaN(p) && p !== "cssText" && p !== "length") {
1819
- styles[p] = computed[p];
1820
- }
1821
- }
1822
- _setDefaults(styles, _parseTransform(target, 1));
1823
- return styles;
1824
- },
1825
- startClassList = target.getAttribute("class"),
1826
- style = target.style,
1827
- cssText = style.cssText,
1828
- cache = target._gsap,
1829
- classPT = cache.classPT,
1830
- inlineToRemoveAtEnd = {},
1831
- data = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== "=") ? endValue : startClassList.replace(new RegExp("(?:\\s|^)" + endValue.substr(2) + "(?![\\w-])"), "") + ((endValue.charAt(0) === "+") ? " " + endValue.substr(2) : "")},
1832
- changingVars = {},
1833
- startVars = _getAllStyles(target),
1834
- transformRelated = /(transform|perspective)/i,
1835
- endVars, p;
1836
- if (classPT) {
1837
- classPT.r(1, classPT.d);
1838
- _removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
1839
- }
1840
- target.setAttribute("class", data.e);
1841
- endVars = _getAllStyles(target, true);
1842
- target.setAttribute("class", startClassList);
1843
- for (p in endVars) {
1844
- if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
1845
- changingVars[p] = endVars[p];
1846
- if (!style[p] && style[p] !== "0") {
1847
- inlineToRemoveAtEnd[p] = 1;
1848
- }
1849
- }
1850
- }
1851
- cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
1852
- if (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://gsap.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.
1853
- style.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).
1854
- }
1855
- _parseTransform(target, true); //to clear the caching of transforms
1856
- data.css = new gsap.plugins.css();
1857
- data.css.init(target, changingVars, tween);
1858
- plugin._props.push(...data.css._props);
1859
- return 1;
1860
- }
1861
- */
1862
- }, _e = [1, 0, 0, 1, 0, 0], Mr = {}, Dr = function(t) {
1863
- return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
1864
- }, Ri = function(t) {
1865
- var e = ft(t, F);
1866
- return Dr(e) ? _e : e.substr(7).match(Ii).map(I);
1867
- }, pi = function(t, e) {
1868
- var i = t._gsap || zt(t), r = t.style, n = Ri(t), s, a, o, f;
1869
- return i.svg && t.getAttribute("transform") ? (o = t.transform.baseVal.consolidate().matrix, n = [o.a, o.b, o.c, o.d, o.e, o.f], n.join(",") === "1,0,0,1,0,0" ? _e : n) : (n === _e && !t.offsetParent && t !== qt && !i.svg && (o = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (f = 1, a = t.nextElementSibling, qt.appendChild(t)), n = Ri(t), o ? r.display = o : Nt(t, "display"), f && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : qt.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1870
- }, je = function(t, e, i, r, n, s) {
1871
- var a = t._gsap, o = n || pi(t, !0), f = a.xOrigin || 0, h = a.yOrigin || 0, l = a.xOffset || 0, c = a.yOffset || 0, d = o[0], p = o[1], _ = o[2], m = o[3], y = o[4], x = o[5], v = e.split(" "), T = parseFloat(v[0]) || 0, g = parseFloat(v[1]) || 0, w, P, O, b;
1872
- i ? o !== _e && (P = d * m - p * _) && (O = T * (m / P) + g * (-_ / P) + (_ * x - m * y) / P, b = T * (-p / P) + g * (d / P) - (d * x - p * y) / P, T = O, g = b) : (w = kr(t), T = w.x + (~v[0].indexOf("%") ? T / 100 * w.width : T), g = w.y + (~(v[1] || v[0]).indexOf("%") ? g / 100 * w.height : g)), r || r !== !1 && a.smooth ? (y = T - f, x = g - h, a.xOffset = l + (y * d + x * _) - y, a.yOffset = c + (y * p + x * m) - x) : a.xOffset = a.yOffset = 0, a.xOrigin = T, a.yOrigin = g, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[H] = "0px 0px", s && (bt(s, a, "xOrigin", f, T), bt(s, a, "yOrigin", h, g), bt(s, a, "xOffset", l, a.xOffset), bt(s, a, "yOffset", c, a.yOffset)), t.setAttribute("data-svg-origin", T + " " + g);
1873
- }, le = function(t, e) {
1874
- var i = t._gsap || new cr(t);
1875
- if ("x" in i && !e && !i.uncache)
1876
- return i;
1877
- var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", o = getComputedStyle(t), f = ft(t, H) || "0", h, l, c, d, p, _, m, y, x, v, T, g, w, P, O, b, k, R, D, A, q, U, N, Y, ht, de, Ht, Jt, Ct, mi, pt, Mt;
1878
- return h = l = c = _ = m = y = x = v = T = 0, d = p = 1, i.svg = !!(t.getCTM && Cr(t)), o.translate && ((o.translate !== "none" || o.scale !== "none" || o.rotate !== "none") && (r[F] = (o.translate !== "none" ? "translate3d(" + (o.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (o.rotate !== "none" ? "rotate(" + o.rotate + ") " : "") + (o.scale !== "none" ? "scale(" + o.scale.split(" ").join(",") + ") " : "") + (o[F] !== "none" ? o[F] : "")), r.scale = r.rotate = r.translate = "none"), P = pi(t, i.svg), i.svg && (i.uncache ? (ht = t.getBBox(), f = i.xOrigin - ht.x + "px " + (i.yOrigin - ht.y) + "px", Y = "") : Y = !e && t.getAttribute("data-svg-origin"), je(t, Y || f, !!Y || i.originIsAbsolute, i.smooth !== !1, P)), g = i.xOrigin || 0, w = i.yOrigin || 0, P !== _e && (R = P[0], D = P[1], A = P[2], q = P[3], h = U = P[4], l = N = P[5], P.length === 6 ? (d = Math.sqrt(R * R + D * D), p = Math.sqrt(q * q + A * A), _ = R || D ? Vt(D, R) * Rt : 0, x = A || q ? Vt(A, q) * Rt + _ : 0, x && (p *= Math.abs(Math.cos(x * Wt))), i.svg && (h -= g - (g * R + w * A), l -= w - (g * D + w * q))) : (Mt = P[6], mi = P[7], Ht = P[8], Jt = P[9], Ct = P[10], pt = P[11], h = P[12], l = P[13], c = P[14], O = Vt(Mt, Ct), m = O * Rt, O && (b = Math.cos(-O), k = Math.sin(-O), Y = U * b + Ht * k, ht = N * b + Jt * k, de = Mt * b + Ct * k, Ht = U * -k + Ht * b, Jt = N * -k + Jt * b, Ct = Mt * -k + Ct * b, pt = mi * -k + pt * b, U = Y, N = ht, Mt = de), O = Vt(-A, Ct), y = O * Rt, O && (b = Math.cos(-O), k = Math.sin(-O), Y = R * b - Ht * k, ht = D * b - Jt * k, de = A * b - Ct * k, pt = q * k + pt * b, R = Y, D = ht, A = de), O = Vt(D, R), _ = O * Rt, O && (b = Math.cos(O), k = Math.sin(O), Y = R * b + D * k, ht = U * b + N * k, D = D * b - R * k, N = N * b - U * k, R = Y, U = ht), m && Math.abs(m) + Math.abs(_) > 359.9 && (m = _ = 0, y = 180 - y), d = I(Math.sqrt(R * R + D * D + A * A)), p = I(Math.sqrt(N * N + Mt * Mt)), O = Vt(U, N), x = Math.abs(O) > 2e-4 ? O * Rt : 0, T = pt ? 1 / (pt < 0 ? -pt : pt) : 0), i.svg && (Y = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !Dr(ft(t, F)), Y && t.setAttribute("transform", Y))), Math.abs(x) > 90 && Math.abs(x) < 270 && (n ? (d *= -1, x += _ <= 0 ? 180 : -180, _ += _ <= 0 ? 180 : -180) : (p *= -1, x += x <= 0 ? 180 : -180)), e = e || i.uncache, i.x = h - ((i.xPercent = h && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = l - ((i.yPercent = l && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-l) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = c + s, i.scaleX = I(d), i.scaleY = I(p), i.rotation = I(_) + a, i.rotationX = I(m) + a, i.rotationY = I(y) + a, i.skewX = x + a, i.skewY = v + a, i.transformPerspective = T + s, (i.zOrigin = parseFloat(f.split(" ")[2]) || !e && i.zOrigin || 0) && (r[H] = Oe(f)), i.xOffset = i.yOffset = 0, i.force3D = rt.force3D, i.renderTransform = i.svg ? Wn : Sr ? Ar : qn, i.uncache = 0, i;
1879
- }, Oe = function(t) {
1880
- return (t = t.split(" "))[0] + " " + t[1];
1881
- }, Le = function(t, e, i) {
1882
- var r = G(e);
1883
- return I(parseFloat(e) + parseFloat(St(t, "x", i + "px", r))) + r;
1884
- }, qn = function(t, e) {
1885
- e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, Ar(t, e);
1886
- }, Dt = "0deg", te = "0px", At = ") ", Ar = function(t, e) {
1887
- var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, o = i.z, f = i.rotation, h = i.rotationY, l = i.rotationX, c = i.skewX, d = i.skewY, p = i.scaleX, _ = i.scaleY, m = i.transformPerspective, y = i.force3D, x = i.target, v = i.zOrigin, T = "", g = y === "auto" && t && t !== 1 || y === !0;
1888
- if (v && (l !== Dt || h !== Dt)) {
1889
- var w = parseFloat(h) * Wt, P = Math.sin(w), O = Math.cos(w), b;
1890
- w = parseFloat(l) * Wt, b = Math.cos(w), s = Le(x, s, P * b * -v), a = Le(x, a, -Math.sin(w) * -v), o = Le(x, o, O * b * -v + v);
1891
- }
1892
- m !== te && (T += "perspective(" + m + At), (r || n) && (T += "translate(" + r + "%, " + n + "%) "), (g || s !== te || a !== te || o !== te) && (T += o !== te || g ? "translate3d(" + s + ", " + a + ", " + o + ") " : "translate(" + s + ", " + a + At), f !== Dt && (T += "rotate(" + f + At), h !== Dt && (T += "rotateY(" + h + At), l !== Dt && (T += "rotateX(" + l + At), (c !== Dt || d !== Dt) && (T += "skew(" + c + ", " + d + At), (p !== 1 || _ !== 1) && (T += "scale(" + p + ", " + _ + At), x.style[F] = T || "translate(0, 0)";
1893
- }, Wn = function(t, e) {
1894
- var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, o = i.rotation, f = i.skewX, h = i.skewY, l = i.scaleX, c = i.scaleY, d = i.target, p = i.xOrigin, _ = i.yOrigin, m = i.xOffset, y = i.yOffset, x = i.forceCSS, v = parseFloat(s), T = parseFloat(a), g, w, P, O, b;
1895
- o = parseFloat(o), f = parseFloat(f), h = parseFloat(h), h && (h = parseFloat(h), f += h, o += h), o || f ? (o *= Wt, f *= Wt, g = Math.cos(o) * l, w = Math.sin(o) * l, P = Math.sin(o - f) * -c, O = Math.cos(o - f) * c, f && (h *= Wt, b = Math.tan(f - h), b = Math.sqrt(1 + b * b), P *= b, O *= b, h && (b = Math.tan(h), b = Math.sqrt(1 + b * b), g *= b, w *= b)), g = I(g), w = I(w), P = I(P), O = I(O)) : (g = l, O = c, w = P = 0), (v && !~(s + "").indexOf("px") || T && !~(a + "").indexOf("px")) && (v = St(d, "x", s, "px"), T = St(d, "y", a, "px")), (p || _ || m || y) && (v = I(v + p - (p * g + _ * P) + m), T = I(T + _ - (p * w + _ * O) + y)), (r || n) && (b = d.getBBox(), v = I(v + r / 100 * b.width), T = I(T + n / 100 * b.height)), b = "matrix(" + g + "," + w + "," + P + "," + O + "," + v + "," + T + ")", d.setAttribute("transform", b), x && (d.style[F] = b);
1896
- }, Gn = function(t, e, i, r, n) {
1897
- var s = 360, a = X(n), o = parseFloat(n) * (a && ~n.indexOf("rad") ? Rt : 1), f = o - r, h = r + f + "deg", l, c;
1898
- return a && (l = n.split("_")[1], l === "short" && (f %= s, f !== f % (s / 2) && (f += f < 0 ? s : -s)), l === "cw" && f < 0 ? f = (f + s * Si) % s - ~~(f / s) * s : l === "ccw" && f > 0 && (f = (f - s * Si) % s - ~~(f / s) * s)), t._pt = c = new j(t._pt, e, i, r, f, Mn), c.e = h, c.u = "deg", t._props.push(i), c;
1899
- }, Ei = function(t, e) {
1900
- for (var i in e)
1901
- t[i] = e[i];
1902
- return t;
1903
- }, $n = function(t, e, i) {
1904
- var r = Ei({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, o, f, h, l, c, d, p;
1905
- r.svg ? (f = i.getAttribute("transform"), i.setAttribute("transform", ""), s[F] = e, a = le(i, 1), Nt(i, F), i.setAttribute("transform", f)) : (f = getComputedStyle(i)[F], s[F] = e, a = le(i, 1), s[F] = f);
1906
- for (o in xt)
1907
- f = r[o], h = a[o], f !== h && n.indexOf(o) < 0 && (d = G(f), p = G(h), l = d !== p ? St(i, o, f, p) : parseFloat(f), c = parseFloat(h), t._pt = new j(t._pt, a, o, l, c - l, Ke), t._pt.u = p || 0, t._props.push(o));
1908
- Ei(a, r);
1909
- };
1910
- Z("padding,margin,Width,Radius", function(u, t) {
1911
- var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(a) {
1912
- return t < 2 ? u + a : "border" + a + u;
1913
- });
1914
- Pe[t > 1 ? "border" + u : u] = function(a, o, f, h, l) {
1915
- var c, d;
1916
- if (arguments.length < 4)
1917
- return c = s.map(function(p) {
1918
- return gt(a, p, f);
1919
- }), d = c.join(" "), d.split(c[0]).length === 5 ? c[0] : d;
1920
- c = (h + "").split(" "), d = {}, s.forEach(function(p, _) {
1921
- return d[p] = c[_] = c[_] || c[(_ - 1) / 2 | 0];
1922
- }), a.init(o, d, l);
1923
- };
1924
- });
1925
- var Rr = {
1926
- name: "css",
1927
- register: Ze,
1928
- targetTest: function(t) {
1929
- return t.style && t.nodeType;
1930
- },
1931
- init: function(t, e, i, r, n) {
1932
- var s = this._props, a = t.style, o = i.vars.startAt, f, h, l, c, d, p, _, m, y, x, v, T, g, w, P, O;
1933
- li || Ze(), this.styles = this.styles || Or(t), O = this.styles.props, this.tween = i;
1934
- for (_ in e)
1935
- if (_ !== "autoRound" && (h = e[_], !(tt[_] && dr(_, e, i, r, t, n)))) {
1936
- if (d = typeof h, p = Pe[_], d === "function" && (h = h.call(i, r, t, n), d = typeof h), d === "string" && ~h.indexOf("random(") && (h = ue(h)), p)
1937
- p(this, t, _, h, i) && (P = 1);
1938
- else if (_.substr(0, 2) === "--")
1939
- f = (getComputedStyle(t).getPropertyValue(_) + "").trim(), h += "", Pt.lastIndex = 0, Pt.test(f) || (m = G(f), y = G(h)), y ? m !== y && (f = St(t, _, f, y) + y) : m && (h += m), this.add(a, "setProperty", f, h, r, n, 0, 0, _), s.push(_), O.push(_, 0, a[_]);
1940
- else if (d !== "undefined") {
1941
- if (o && _ in o ? (f = typeof o[_] == "function" ? o[_].call(i, r, t, n) : o[_], X(f) && ~f.indexOf("random(") && (f = ue(f)), G(f + "") || f === "auto" || (f += rt.units[_] || G(gt(t, _)) || ""), (f + "").charAt(1) === "=" && (f = gt(t, _))) : f = gt(t, _), c = parseFloat(f), x = d === "string" && h.charAt(1) === "=" && h.substr(0, 2), x && (h = h.substr(2)), l = parseFloat(h), _ in ct && (_ === "autoAlpha" && (c === 1 && gt(t, "visibility") === "hidden" && l && (c = 0), O.push("visibility", 0, a.visibility), bt(this, a, "visibility", c ? "inherit" : "hidden", l ? "inherit" : "hidden", !l)), _ !== "scale" && _ !== "transform" && (_ = ct[_], ~_.indexOf(",") && (_ = _.split(",")[0]))), v = _ in xt, v) {
1942
- if (this.styles.save(_), d === "string" && h.substring(0, 6) === "var(--" && (h = ft(t, h.substring(4, h.indexOf(")"))), l = parseFloat(h)), T || (g = t._gsap, g.renderTransform && !e.parseTransform || le(t, e.parseTransform), w = e.smoothOrigin !== !1 && g.smooth, T = this._pt = new j(this._pt, a, F, 0, 1, g.renderTransform, g, 0, -1), T.dep = 1), _ === "scale")
1943
- this._pt = new j(this._pt, g, "scaleY", g.scaleY, (x ? Xt(g.scaleY, x + l) : l) - g.scaleY || 0, Ke), this._pt.u = 0, s.push("scaleY", _), _ += "X";
1944
- else if (_ === "transformOrigin") {
1945
- O.push(H, 0, a[H]), h = Yn(h), g.svg ? je(t, h, 0, w, 0, this) : (y = parseFloat(h.split(" ")[2]) || 0, y !== g.zOrigin && bt(this, g, "zOrigin", g.zOrigin, y), bt(this, a, _, Oe(f), Oe(h)));
1946
- continue;
1947
- } else if (_ === "svgOrigin") {
1948
- je(t, h, 1, w, 0, this);
1949
- continue;
1950
- } else if (_ in Mr) {
1951
- Gn(this, g, _, c, x ? Xt(c, x + h) : h);
1952
- continue;
1953
- } else if (_ === "smoothOrigin") {
1954
- bt(this, g, "smooth", g.smooth, h);
1955
- continue;
1956
- } else if (_ === "force3D") {
1957
- g[_] = h;
1958
- continue;
1959
- } else if (_ === "transform") {
1960
- $n(this, h, t);
1961
- continue;
1962
- }
1963
- } else _ in a || (_ = jt(_) || _);
1964
- if (v || (l || l === 0) && (c || c === 0) && !Cn.test(h) && _ in a)
1965
- m = (f + "").substr((c + "").length), l || (l = 0), y = G(h) || (_ in rt.units ? rt.units[_] : m), m !== y && (c = St(t, _, f, y)), this._pt = new j(this._pt, v ? g : a, _, c, (x ? Xt(c, x + l) : l) - c, !v && (y === "px" || _ === "zIndex") && e.autoRound !== !1 ? An : Ke), this._pt.u = y || 0, m !== y && y !== "%" && (this._pt.b = f, this._pt.r = Dn);
1966
- else if (_ in a)
1967
- Un.call(this, t, _, f, x ? x + h : h);
1968
- else if (_ in t)
1969
- this.add(t, _, f || t[_], x ? x + h : h, r, n);
1970
- else if (_ !== "parseTransform") {
1971
- ii(_, h);
1972
- continue;
1973
- }
1974
- v || (_ in a ? O.push(_, 0, a[_]) : typeof t[_] == "function" ? O.push(_, 2, t[_]()) : O.push(_, 1, f || t[_])), s.push(_);
1975
- }
1976
- }
1977
- P && vr(this);
1978
- },
1979
- render: function(t, e) {
1980
- if (e.tween._time || !ci())
1981
- for (var i = e._pt; i; )
1982
- i.r(t, i.d), i = i._next;
1983
- else
1984
- e.styles.revert();
1985
- },
1986
- get: gt,
1987
- aliases: ct,
1988
- getSetter: function(t, e, i) {
1989
- var r = ct[e];
1990
- return r && r.indexOf(",") < 0 && (e = r), e in xt && e !== H && (t._gsap.x || gt(t, "x")) ? i && Oi === i ? e === "scale" ? Fn : zn : (Oi = i || {}) && (e === "scale" ? Ln : In) : t.style && !Je(t.style[e]) ? Rn : ~e.indexOf("-") ? En : hi(t, e);
1991
- },
1992
- core: {
1993
- _removeProperty: Nt,
1994
- _getMatrix: pi
1995
- }
1996
- };
1997
- J.utils.checkPrefix = jt;
1998
- J.core.getStyleSaver = Or;
1999
- (function(u, t, e, i) {
2000
- var r = Z(u + "," + t + "," + e, function(n) {
2001
- xt[n] = 1;
2002
- });
2003
- Z(t, function(n) {
2004
- rt.units[n] = "deg", Mr[n] = 1;
2005
- }), ct[r[13]] = u + "," + t, Z(i, function(n) {
2006
- var s = n.split(":");
2007
- ct[s[1]] = r[s[0]];
2008
- });
2009
- })("x,y,z,scale,scaleX,scaleY,xPercent,yPercent", "rotation,rotationX,rotationY,skewX,skewY", "transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", "0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");
2010
- Z("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(u) {
2011
- rt.units[u] = "px";
2012
- });
2013
- J.registerPlugin(Rr);
2014
- var Kn = J.registerPlugin(Rr) || J;
2015
- Kn.core.Tween;
2016
- export {
2017
- Kn as g
2018
- };