prometeo-design-system 1.5.6 → 1.5.8

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.
@@ -1,2039 +1,44 @@
1
- import { default as Qs } from "./Avatar.es.js";
2
- import { default as ta } from "./Button.es.js";
3
- import { C as ra, a as ia } from "./CardProfile-BZajBGbO.js";
4
- import { default as sa } from "./CheckBox.es.js";
5
- import { default as oa } from "./CheckboxFormik.es.js";
6
- import { default as la, useDialogControl as fa } from "./DialogModal.es.js";
7
- import { default as ha, useDrawerDesktop as da } from "./DrawerDesktop.es.js";
8
- import { default as pa, useDrawerMobile as ma } from "./DrawerMobile.es.js";
9
- import { default as ya } from "./Header.es.js";
10
- import { default as va } from "./Input.es.js";
11
- import { default as wa } from "./InputFormik.es.js";
12
- import { default as Sa } from "./Logo.es.js";
13
- import { Menu as Pa } from "./Menu.es.js";
14
- import { default as Oa } from "./Pagination.es.js";
15
- import { default as Ra } from "./ProgressBar.es.js";
16
- import { default as Aa } from "./Select.es.js";
17
- import { default as Ea } from "./Spinner.es.js";
18
- import { default as Ia } from "./SwipeContainer.es.js";
19
- import { default as La } from "./TabLinks.es.js";
20
- import { Table as Ba, TableBody as qa, TableCaption as Va, TableCell as Ua, TableFooter as Ya, TableHead as Xa, TableHeader as Wa, TableRow as Ga } from "./Table.es.js";
21
- import { default as Ha } from "./TextArea.es.js";
22
- import { default as Za } from "./Tooltip.es.js";
23
- import { u as Yr } from "./LayoutGeneric-jDE96L2N.js";
24
- import { L as Ja, S as to } from "./LayoutGeneric-jDE96L2N.js";
25
- import { j as P } from "./jsx-runtime-ByW6EXIE.js";
26
- import { c as tt } from "./cn-B6yFEsav.js";
27
- import { useRef as ge, useState as Ye, useLayoutEffect as Ki, createContext as Zi, useContext as Qi, forwardRef as Xr, useCallback as Ji, useEffect as Wr } from "react";
28
- import { useGSAP as Gr } from "@gsap/react";
29
- import { Icons as Se } from "./Icons.es.js";
30
- import { motion as Tt, AnimatePresence as $r } from "framer-motion";
31
- import { default as ro } from "./OtpInput.es.js";
32
- import { DropZone as no } from "./DropZone.es.js";
33
- function xt(o) {
34
- if (o === void 0)
35
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
36
- return o;
37
- }
38
- function Hr(o, t) {
39
- o.prototype = Object.create(t.prototype), o.prototype.constructor = o, o.__proto__ = t;
40
- }
41
- /*!
42
- * GSAP 3.13.0
43
- * https://gsap.com
44
- *
45
- * @license Copyright 2008-2025, GreenSock. All rights reserved.
46
- * Subject to the terms at https://gsap.com/standard-license
47
- * @author: Jack Doyle, jack@greensock.com
48
- */
49
- var at = {
50
- autoSleep: 120,
51
- force3D: "auto",
52
- nullTargetWarn: 1,
53
- units: {
54
- lineHeight: ""
55
- }
56
- }, Kt = {
57
- duration: 0.5,
58
- overwrite: !1,
59
- delay: 0
60
- }, or, W, N, ft = 1e8, D = 1 / ft, Xe = Math.PI * 2, tn = Xe / 4, en = 0, Kr = Math.sqrt, rn = Math.cos, nn = Math.sin, U = function(t) {
61
- return typeof t == "string";
62
- }, I = function(t) {
63
- return typeof t == "function";
64
- }, bt = function(t) {
65
- return typeof t == "number";
66
- }, ur = function(t) {
67
- return typeof t > "u";
68
- }, gt = function(t) {
69
- return typeof t == "object";
70
- }, K = function(t) {
71
- return t !== !1;
72
- }, lr = function() {
73
- return typeof window < "u";
74
- }, ve = function(t) {
75
- return I(t) || U(t);
76
- }, Zr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
77
- }, $ = Array.isArray, We = /(?:-?\.?\d|\.)+/gi, Qr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Xt = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ie = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Jr = /[+-]=-?[.\d]+/, ti = /[^,'"\[\]\s]+/gi, sn = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, E, _t, Ge, fr, ot = {}, Ce = {}, ei, ri = function(t) {
78
- return (Ce = Zt(t, ot)) && et;
79
- }, cr = function(t, e) {
80
- return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
81
- }, fe = function(t, e) {
82
- return !e && console.warn(t);
83
- }, ii = function(t, e) {
84
- return t && (ot[t] = e) && Ce && (Ce[t] = e) || ot;
85
- }, ce = function() {
86
- return 0;
87
- }, an = {
88
- suppressEvents: !0,
89
- isStart: !0,
90
- kill: !1
91
- }, be = {
92
- suppressEvents: !0,
93
- kill: !1
94
- }, on = {
95
- suppressEvents: !0
96
- }, hr = {}, kt = [], $e = {}, ni, rt = {}, Fe = {}, Pr = 30, we = [], dr = "", _r = function(t) {
97
- var e = t[0], r, i;
98
- if (gt(e) || I(e) || (t = [t]), !(r = (e._gsap || {}).harness)) {
99
- for (i = we.length; i-- && !we[i].targetTest(e); )
100
- ;
101
- r = we[i];
102
- }
103
- for (i = t.length; i--; )
104
- t[i] && (t[i]._gsap || (t[i]._gsap = new Oi(t[i], r))) || t.splice(i, 1);
105
- return t;
106
- }, Lt = function(t) {
107
- return t._gsap || _r(ct(t))[0]._gsap;
108
- }, si = function(t, e, r) {
109
- return (r = t[e]) && I(r) ? t[e]() : ur(r) && t.getAttribute && t.getAttribute(e) || r;
110
- }, Z = function(t, e) {
111
- return (t = t.split(",")).forEach(e) || t;
112
- }, F = function(t) {
113
- return Math.round(t * 1e5) / 1e5 || 0;
114
- }, B = function(t) {
115
- return Math.round(t * 1e7) / 1e7 || 0;
116
- }, Gt = function(t, e) {
117
- var r = e.charAt(0), i = parseFloat(e.substr(2));
118
- return t = parseFloat(t), r === "+" ? t + i : r === "-" ? t - i : r === "*" ? t * i : t / i;
119
- }, un = function(t, e) {
120
- for (var r = e.length, i = 0; t.indexOf(e[i]) < 0 && ++i < r; )
121
- ;
122
- return i < r;
123
- }, Pe = function() {
124
- var t = kt.length, e = kt.slice(0), r, i;
125
- for ($e = {}, kt.length = 0, r = 0; r < t; r++)
126
- i = e[r], i && i._lazy && (i.render(i._lazy[0], i._lazy[1], !0)._lazy = 0);
127
- }, pr = function(t) {
128
- return !!(t._initted || t._startAt || t.add);
129
- }, ai = function(t, e, r, i) {
130
- kt.length && !W && Pe(), t.render(e, r, !!(W && e < 0 && pr(t))), kt.length && !W && Pe();
131
- }, oi = function(t) {
132
- var e = parseFloat(t);
133
- return (e || e === 0) && (t + "").match(ti).length < 2 ? e : U(t) ? t.trim() : t;
134
- }, ui = function(t) {
135
- return t;
136
- }, ut = function(t, e) {
137
- for (var r in e)
138
- r in t || (t[r] = e[r]);
139
- return t;
140
- }, ln = function(t) {
141
- return function(e, r) {
142
- for (var i in r)
143
- i in e || i === "duration" && t || i === "ease" || (e[i] = r[i]);
144
- };
145
- }, Zt = function(t, e) {
146
- for (var r in e)
147
- t[r] = e[r];
148
- return t;
149
- }, kr = function o(t, e) {
150
- for (var r in e)
151
- r !== "__proto__" && r !== "constructor" && r !== "prototype" && (t[r] = gt(e[r]) ? o(t[r] || (t[r] = {}), e[r]) : e[r]);
152
- return t;
153
- }, ke = function(t, e) {
154
- var r = {}, i;
155
- for (i in t)
156
- i in e || (r[i] = t[i]);
157
- return r;
158
- }, oe = function(t) {
159
- var e = t.parent || E, r = t.keyframes ? ln($(t.keyframes)) : ut;
160
- if (K(t.inherit))
161
- for (; e; )
162
- r(t, e.vars.defaults), e = e.parent || e._dp;
163
- return t;
164
- }, fn = function(t, e) {
165
- for (var r = t.length, i = r === e.length; i && r-- && t[r] === e[r]; )
166
- ;
167
- return r < 0;
168
- }, li = function(t, e, r, i, n) {
169
- var s = t[i], a;
170
- if (n)
171
- for (a = e[n]; s && s[n] > a; )
172
- s = s._prev;
173
- return s ? (e._next = s._next, s._next = e) : (e._next = t[r], t[r] = e), e._next ? e._next._prev = e : t[i] = e, e._prev = s, e.parent = e._dp = t, e;
174
- }, Ne = function(t, e, r, i) {
175
- r === void 0 && (r = "_first"), i === void 0 && (i = "_last");
176
- var n = e._prev, s = e._next;
177
- n ? n._next = s : t[r] === e && (t[r] = s), s ? s._prev = n : t[i] === e && (t[i] = n), e._next = e._prev = e.parent = null;
178
- }, Dt = function(t, e) {
179
- t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
180
- }, jt = function(t, e) {
181
- if (t && (!e || e._end > t._dur || e._start < 0))
182
- for (var r = t; r; )
183
- r._dirty = 1, r = r.parent;
184
- return t;
185
- }, cn = function(t) {
186
- for (var e = t.parent; e && e.parent; )
187
- e._dirty = 1, e.totalDuration(), e = e.parent;
188
- return t;
189
- }, He = function(t, e, r, i) {
190
- return t._startAt && (W ? t._startAt.revert(be) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, i));
191
- }, hn = function o(t) {
192
- return !t || t._ts && o(t.parent);
193
- }, Or = function(t) {
194
- return t._repeat ? Qt(t._tTime, t = t.duration() + t._rDelay) * t : 0;
195
- }, Qt = function(t, e) {
196
- var r = Math.floor(t = B(t / e));
197
- return t && r === t ? r - 1 : r;
198
- }, Oe = function(t, e) {
199
- return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
200
- }, Ee = function(t) {
201
- return t._end = B(t._start + (t._tDur / Math.abs(t._ts || t._rts || D) || 0));
202
- }, ze = function(t, e) {
203
- var r = t._dp;
204
- return r && r.smoothChildTiming && t._ts && (t._start = B(r._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), Ee(t), r._dirty || jt(r, t)), t;
205
- }, fi = function(t, e) {
206
- var r;
207
- if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (r = Oe(t.rawTime(), e), (!e._dur || ye(0, e.totalDuration(), r) - e._tTime > D) && e.render(r, !0)), jt(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
208
- if (t._dur < t.duration())
209
- for (r = t; r._dp; )
210
- r.rawTime() >= 0 && r.totalTime(r._tTime), r = r._dp;
211
- t._zTime = -D;
212
- }
213
- }, pt = function(t, e, r, i) {
214
- return e.parent && Dt(e), e._start = B((bt(r) ? r : r || t !== E ? lt(t, r, e) : t._time) + e._delay), e._end = B(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), li(t, e, "_first", "_last", t._sort ? "_start" : 0), Ke(e) || (t._recent = e), i || fi(t, e), t._ts < 0 && ze(t, t._tTime), t;
215
- }, ci = function(t, e) {
216
- return (ot.ScrollTrigger || cr("scrollTrigger", e)) && ot.ScrollTrigger.create(e, t);
217
- }, hi = function(t, e, r, i, n) {
218
- if (gr(t, e, n), !t._initted)
219
- return 1;
220
- if (!r && t._pt && !W && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && ni !== nt.frame)
221
- return kt.push(t), t._lazy = [n, i], 1;
222
- }, dn = function o(t) {
223
- var e = t.parent;
224
- return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || o(e));
225
- }, Ke = function(t) {
226
- var e = t.data;
227
- return e === "isFromStart" || e === "isStart";
228
- }, _n = function(t, e, r, i) {
229
- var n = t.ratio, s = e < 0 || !e && (!t._start && dn(t) && !(!t._initted && Ke(t)) || (t._ts < 0 || t._dp._ts < 0) && !Ke(t)) ? 0 : 1, a = t._rDelay, u = 0, l, f, h;
230
- if (a && t._repeat && (u = ye(0, t._tDur, e), f = Qt(u, a), t._yoyo && f & 1 && (s = 1 - s), f !== Qt(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || W || i || t._zTime === D || !e && t._zTime) {
231
- if (!t._initted && hi(t, e, i, r, u))
232
- return;
233
- for (h = t._zTime, t._zTime = e || (r ? D : 0), r || (r = e && !h), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = u, l = t._pt; l; )
234
- l.r(s, l.d), l = l._next;
235
- e < 0 && He(t, e, r, !0), t._onUpdate && !r && st(t, "onUpdate"), u && t._repeat && !r && t.parent && st(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Dt(t, 1), !r && !W && (st(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
236
- } else t._zTime || (t._zTime = e);
237
- }, pn = function(t, e, r) {
238
- var i;
239
- if (r > e)
240
- for (i = t._first; i && i._start <= r; ) {
241
- if (i.data === "isPause" && i._start > e)
242
- return i;
243
- i = i._next;
244
- }
245
- else
246
- for (i = t._last; i && i._start >= r; ) {
247
- if (i.data === "isPause" && i._start < e)
248
- return i;
249
- i = i._prev;
250
- }
251
- }, Jt = function(t, e, r, i) {
252
- var n = t._repeat, s = B(e) || 0, a = t._tTime / t._tDur;
253
- return a && !i && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : B(s * (n + 1) + t._rDelay * n) : s, a > 0 && !i && ze(t, t._tTime = t._tDur * a), t.parent && Ee(t), r || jt(t.parent, t), t;
254
- }, Dr = function(t) {
255
- return t instanceof H ? jt(t) : Jt(t, t._dur);
256
- }, mn = {
257
- _start: 0,
258
- endTime: ce,
259
- totalDuration: ce
260
- }, lt = function o(t, e, r) {
261
- var i = t.labels, n = t._recent || mn, s = t.duration() >= ft ? n.endTime(!1) : t._dur, a, u, l;
262
- return U(e) && (isNaN(e) || e in i) ? (u = e.charAt(0), l = e.substr(-1) === "%", a = e.indexOf("="), u === "<" || u === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (u === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (l ? (a < 0 ? n : r).totalDuration() / 100 : 1)) : a < 0 ? (e in i || (i[e] = s), i[e]) : (u = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), l && r && (u = u / 100 * ($(r) ? r[0] : r).totalDuration()), a > 1 ? o(t, e.substr(0, a - 1), r) + u : s + u)) : e == null ? s : +e;
263
- }, ue = function(t, e, r) {
264
- var i = bt(e[1]), n = (i ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, u;
265
- if (i && (s.duration = e[1]), s.parent = r, t) {
266
- for (a = s, u = r; u && !("immediateRender" in a); )
267
- a = u.vars.defaults || {}, u = K(u.vars.inherit) && u.parent;
268
- s.immediateRender = K(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
269
- }
270
- return new j(e[0], s, e[n + 1]);
271
- }, Mt = function(t, e) {
272
- return t || t === 0 ? e(t) : e;
273
- }, ye = function(t, e, r) {
274
- return r < t ? t : r > e ? e : r;
275
- }, G = function(t, e) {
276
- return !U(t) || !(e = sn.exec(t)) ? "" : e[1];
277
- }, gn = function(t, e, r) {
278
- return Mt(r, function(i) {
279
- return ye(t, e, i);
280
- });
281
- }, Ze = [].slice, di = function(t, e) {
282
- return t && gt(t) && "length" in t && (!e && !t.length || t.length - 1 in t && gt(t[0])) && !t.nodeType && t !== _t;
283
- }, yn = function(t, e, r) {
284
- return r === void 0 && (r = []), t.forEach(function(i) {
285
- var n;
286
- return U(i) && !e || di(i, 1) ? (n = r).push.apply(n, ct(i)) : r.push(i);
287
- }) || r;
288
- }, ct = function(t, e, r) {
289
- return N && !e && N.selector ? N.selector(t) : U(t) && !r && (Ge || !te()) ? Ze.call((e || fr).querySelectorAll(t), 0) : $(t) ? yn(t, r) : di(t) ? Ze.call(t, 0) : t ? [t] : [];
290
- }, Qe = function(t) {
291
- return t = ct(t)[0] || fe("Invalid scope") || {}, function(e) {
292
- var r = t.current || t.nativeElement || t;
293
- return ct(e, r.querySelectorAll ? r : r === t ? fe("Invalid scope") || fr.createElement("div") : t);
294
- };
295
- }, _i = function(t) {
296
- return t.sort(function() {
297
- return 0.5 - Math.random();
298
- });
299
- }, pi = function(t) {
300
- if (I(t))
301
- return t;
302
- var e = gt(t) ? t : {
303
- each: t
304
- }, r = Bt(e.ease), i = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = i > 0 && i < 1, u = isNaN(i) || a, l = e.axis, f = i, h = i;
305
- return U(i) ? f = h = {
306
- center: 0.5,
307
- edges: 0.5,
308
- end: 1
309
- }[i] || 0 : !a && u && (f = i[0], h = i[1]), function(d, _, p) {
310
- var c = (p || e).length, m = s[c], y, x, v, b, g, T, S, C, w;
311
- if (!m) {
312
- if (w = e.grid === "auto" ? 0 : (e.grid || [1, ft])[1], !w) {
313
- for (S = -ft; S < (S = p[w++].getBoundingClientRect().left) && w < c; )
314
- ;
315
- w < c && w--;
316
- }
317
- for (m = s[c] = [], y = u ? Math.min(w, c) * f - 0.5 : i % w, x = w === ft ? 0 : u ? c * h / w - 0.5 : i / w | 0, S = 0, C = ft, T = 0; T < c; T++)
318
- v = T % w - y, b = x - (T / w | 0), m[T] = g = l ? Math.abs(l === "y" ? b : v) : Kr(v * v + b * b), g > S && (S = g), g < C && (C = g);
319
- i === "random" && _i(m), m.max = S - C, m.min = C, m.v = c = (parseFloat(e.amount) || parseFloat(e.each) * (w > c ? c - 1 : l ? l === "y" ? c / w : w : Math.max(w, c / w)) || 0) * (i === "edges" ? -1 : 1), m.b = c < 0 ? n - c : n, m.u = G(e.amount || e.each) || 0, r = r && c < 0 ? Ci(r) : r;
320
- }
321
- return c = (m[d] - m.min) / m.max || 0, B(m.b + (r ? r(c) : c) * m.v) + m.u;
322
- };
323
- }, Je = function(t) {
324
- var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
325
- return function(r) {
326
- var i = B(Math.round(parseFloat(r) / t) * t * e);
327
- return (i - i % 1) / e + (bt(r) ? 0 : G(r));
328
- };
329
- }, mi = function(t, e) {
330
- var r = $(t), i, n;
331
- return !r && gt(t) && (i = r = t.radius || ft, t.values ? (t = ct(t.values), (n = !bt(t[0])) && (i *= i)) : t = Je(t.increment)), Mt(e, r ? I(t) ? function(s) {
332
- return n = t(s), Math.abs(n - s) <= i ? n : s;
333
- } : function(s) {
334
- for (var a = parseFloat(n ? s.x : s), u = parseFloat(n ? s.y : 0), l = ft, f = 0, h = t.length, d, _; h--; )
335
- n ? (d = t[h].x - a, _ = t[h].y - u, d = d * d + _ * _) : d = Math.abs(t[h] - a), d < l && (l = d, f = h);
336
- return f = !i || l <= i ? t[f] : s, n || f === s || bt(s) ? f : f + G(s);
337
- } : Je(t));
338
- }, gi = function(t, e, r, i) {
339
- return Mt($(t) ? !e : r === !0 ? !!(r = 0) : !i, function() {
340
- return $(t) ? t[~~(Math.random() * t.length)] : (r = r || 1e-5) && (i = r < 1 ? Math.pow(10, (r + "").length - 2) : 1) && Math.floor(Math.round((t - r / 2 + Math.random() * (e - t + r * 0.99)) / r) * r * i) / i;
341
- });
342
- }, xn = function() {
343
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
344
- e[r] = arguments[r];
345
- return function(i) {
346
- return e.reduce(function(n, s) {
347
- return s(n);
348
- }, i);
349
- };
350
- }, vn = function(t, e) {
351
- return function(r) {
352
- return t(parseFloat(r)) + (e || G(r));
353
- };
354
- }, bn = function(t, e, r) {
355
- return xi(t, e, 0, 1, r);
356
- }, yi = function(t, e, r) {
357
- return Mt(r, function(i) {
358
- return t[~~e(i)];
359
- });
360
- }, wn = function o(t, e, r) {
361
- var i = e - t;
362
- return $(t) ? yi(t, o(0, t.length), e) : Mt(r, function(n) {
363
- return (i + (n - t) % i) % i + t;
364
- });
365
- }, Tn = function o(t, e, r) {
366
- var i = e - t, n = i * 2;
367
- return $(t) ? yi(t, o(0, t.length - 1), e) : Mt(r, function(s) {
368
- return s = (n + (s - t) % n) % n || 0, t + (s > i ? n - s : s);
369
- });
370
- }, he = function(t) {
371
- for (var e = 0, r = "", i, n, s, a; ~(i = t.indexOf("random(", e)); )
372
- s = t.indexOf(")", i), a = t.charAt(i + 7) === "[", n = t.substr(i + 7, s - i - 7).match(a ? ti : We), r += t.substr(e, i - e) + gi(a ? n : +n[0], a ? 0 : +n[1], +n[2] || 1e-5), e = s + 1;
373
- return r + t.substr(e, t.length - e);
374
- }, xi = function(t, e, r, i, n) {
375
- var s = e - t, a = i - r;
376
- return Mt(n, function(u) {
377
- return r + ((u - t) / s * a || 0);
378
- });
379
- }, Sn = function o(t, e, r, i) {
380
- var n = isNaN(t + e) ? 0 : function(_) {
381
- return (1 - _) * t + _ * e;
382
- };
383
- if (!n) {
384
- var s = U(t), a = {}, u, l, f, h, d;
385
- if (r === !0 && (i = 1) && (r = null), s)
386
- t = {
387
- p: t
388
- }, e = {
389
- p: e
390
- };
391
- else if ($(t) && !$(e)) {
392
- for (f = [], h = t.length, d = h - 2, l = 1; l < h; l++)
393
- f.push(o(t[l - 1], t[l]));
394
- h--, n = function(p) {
395
- p *= h;
396
- var c = Math.min(d, ~~p);
397
- return f[c](p - c);
398
- }, r = e;
399
- } else i || (t = Zt($(t) ? [] : {}, t));
400
- if (!f) {
401
- for (u in e)
402
- mr.call(a, t, u, "get", e[u]);
403
- n = function(p) {
404
- return vr(p, a) || (s ? t.p : t);
405
- };
406
- }
407
- }
408
- return Mt(r, n);
409
- }, Rr = function(t, e, r) {
410
- var i = t.labels, n = ft, s, a, u;
411
- for (s in i)
412
- a = i[s] - e, a < 0 == !!r && a && n > (a = Math.abs(a)) && (u = s, n = a);
413
- return u;
414
- }, st = function(t, e, r) {
415
- var i = t.vars, n = i[e], s = N, a = t._ctx, u, l, f;
416
- if (n)
417
- return u = i[e + "Params"], l = i.callbackScope || t, r && kt.length && Pe(), a && (N = a), f = u ? n.apply(l, u) : n.call(l), N = s, f;
418
- }, se = function(t) {
419
- return Dt(t), t.scrollTrigger && t.scrollTrigger.kill(!!W), t.progress() < 1 && st(t, "onInterrupt"), t;
420
- }, Wt, vi = [], bi = function(t) {
421
- if (t)
422
- if (t = !t.name && t.default || t, lr() || t.headless) {
423
- var e = t.name, r = I(t), i = e && !r && t.init ? function() {
424
- this._props = [];
425
- } : t, n = {
426
- init: ce,
427
- render: vr,
428
- add: mr,
429
- kill: Bn,
430
- modifier: jn,
431
- rawVars: 0
432
- }, s = {
433
- targetTest: 0,
434
- get: 0,
435
- getSetter: xr,
436
- aliases: {},
437
- register: 0
438
- };
439
- if (te(), t !== i) {
440
- if (rt[e])
441
- return;
442
- ut(i, ut(ke(t, n), s)), Zt(i.prototype, Zt(n, ke(t, s))), rt[i.prop = e] = i, t.targetTest && (we.push(i), hr[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
443
- }
444
- ii(e, i), t.register && t.register(et, i, Q);
445
- } else
446
- vi.push(t);
447
- }, O = 255, ae = {
448
- aqua: [0, O, O],
449
- lime: [0, O, 0],
450
- silver: [192, 192, 192],
451
- black: [0, 0, 0],
452
- maroon: [128, 0, 0],
453
- teal: [0, 128, 128],
454
- blue: [0, 0, O],
455
- navy: [0, 0, 128],
456
- white: [O, O, O],
457
- olive: [128, 128, 0],
458
- yellow: [O, O, 0],
459
- orange: [O, 165, 0],
460
- gray: [128, 128, 128],
461
- purple: [128, 0, 128],
462
- green: [0, 128, 0],
463
- red: [O, 0, 0],
464
- pink: [O, 192, 203],
465
- cyan: [0, O, O],
466
- transparent: [O, O, O, 0]
467
- }, Le = function(t, e, r) {
468
- return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (r - e) * t * 6 : t < 0.5 ? r : t * 3 < 2 ? e + (r - e) * (2 / 3 - t) * 6 : e) * O + 0.5 | 0;
469
- }, wi = function(t, e, r) {
470
- var i = t ? bt(t) ? [t >> 16, t >> 8 & O, t & O] : 0 : ae.black, n, s, a, u, l, f, h, d, _, p;
471
- if (!i) {
472
- if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ae[t])
473
- i = ae[t];
474
- else if (t.charAt(0) === "#") {
475
- 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)
476
- return i = parseInt(t.substr(1, 6), 16), [i >> 16, i >> 8 & O, i & O, parseInt(t.substr(7), 16) / 255];
477
- t = parseInt(t.substr(1), 16), i = [t >> 16, t >> 8 & O, t & O];
478
- } else if (t.substr(0, 3) === "hsl") {
479
- if (i = p = t.match(We), !e)
480
- u = +i[0] % 360 / 360, l = +i[1] / 100, f = +i[2] / 100, s = f <= 0.5 ? f * (l + 1) : f + l - f * l, n = f * 2 - s, i.length > 3 && (i[3] *= 1), i[0] = Le(u + 1 / 3, n, s), i[1] = Le(u, n, s), i[2] = Le(u - 1 / 3, n, s);
481
- else if (~t.indexOf("="))
482
- return i = t.match(Qr), r && i.length < 4 && (i[3] = 1), i;
483
- } else
484
- i = t.match(We) || ae.transparent;
485
- i = i.map(Number);
486
- }
487
- return e && !p && (n = i[0] / O, s = i[1] / O, a = i[2] / O, h = Math.max(n, s, a), d = Math.min(n, s, a), f = (h + d) / 2, h === d ? u = l = 0 : (_ = h - d, l = f > 0.5 ? _ / (2 - h - d) : _ / (h + d), u = h === n ? (s - a) / _ + (s < a ? 6 : 0) : h === s ? (a - n) / _ + 2 : (n - s) / _ + 4, u *= 60), i[0] = ~~(u + 0.5), i[1] = ~~(l * 100 + 0.5), i[2] = ~~(f * 100 + 0.5)), r && i.length < 4 && (i[3] = 1), i;
488
- }, Ti = function(t) {
489
- var e = [], r = [], i = -1;
490
- return t.split(Ot).forEach(function(n) {
491
- var s = n.match(Xt) || [];
492
- e.push.apply(e, s), r.push(i += s.length + 1);
493
- }), e.c = r, e;
494
- }, Mr = function(t, e, r) {
495
- var i = "", n = (t + i).match(Ot), s = e ? "hsla(" : "rgba(", a = 0, u, l, f, h;
496
- if (!n)
497
- return t;
498
- if (n = n.map(function(d) {
499
- return (d = wi(d, e, 1)) && s + (e ? d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : d.join(",")) + ")";
500
- }), r && (f = Ti(t), u = r.c, u.join(i) !== f.c.join(i)))
501
- for (l = t.replace(Ot, "1").split(Xt), h = l.length - 1; a < h; a++)
502
- i += l[a] + (~u.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (f.length ? f : n.length ? n : r).shift());
503
- if (!l)
504
- for (l = t.split(Ot), h = l.length - 1; a < h; a++)
505
- i += l[a] + n[a];
506
- return i + l[h];
507
- }, Ot = (function() {
508
- var o = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
509
- for (t in ae)
510
- o += "|" + t + "\\b";
511
- return new RegExp(o + ")", "gi");
512
- })(), Cn = /hsl[a]?\(/, Si = function(t) {
513
- var e = t.join(" "), r;
514
- if (Ot.lastIndex = 0, Ot.test(e))
515
- return r = Cn.test(e), t[1] = Mr(t[1], r), t[0] = Mr(t[0], r, Ti(t[1])), !0;
516
- }, de, nt = (function() {
517
- var o = Date.now, t = 500, e = 33, r = o(), i = r, n = 1e3 / 240, s = n, a = [], u, l, f, h, d, _, p = function c(m) {
518
- var y = o() - i, x = m === !0, v, b, g, T;
519
- if ((y > t || y < 0) && (r += y - e), i += y, g = i - r, v = g - s, (v > 0 || x) && (T = ++h.frame, d = g - h.time * 1e3, h.time = g = g / 1e3, s += v + (v >= n ? 4 : n - v), b = 1), x || (u = l(c)), b)
520
- for (_ = 0; _ < a.length; _++)
521
- a[_](g, d, T, m);
522
- };
523
- return h = {
524
- time: 0,
525
- frame: 0,
526
- tick: function() {
527
- p(!0);
528
- },
529
- deltaRatio: function(m) {
530
- return d / (1e3 / (m || 60));
531
- },
532
- wake: function() {
533
- ei && (!Ge && lr() && (_t = Ge = window, fr = _t.document || {}, ot.gsap = et, (_t.gsapVersions || (_t.gsapVersions = [])).push(et.version), ri(Ce || _t.GreenSockGlobals || !_t.gsap && _t || {}), vi.forEach(bi)), f = typeof requestAnimationFrame < "u" && requestAnimationFrame, u && h.sleep(), l = f || function(m) {
534
- return setTimeout(m, s - h.time * 1e3 + 1 | 0);
535
- }, de = 1, p(2));
536
- },
537
- sleep: function() {
538
- (f ? cancelAnimationFrame : clearTimeout)(u), de = 0, l = ce;
539
- },
540
- lagSmoothing: function(m, y) {
541
- t = m || 1 / 0, e = Math.min(y || 33, t);
542
- },
543
- fps: function(m) {
544
- n = 1e3 / (m || 240), s = h.time * 1e3 + n;
545
- },
546
- add: function(m, y, x) {
547
- var v = y ? function(b, g, T, S) {
548
- m(b, g, T, S), h.remove(v);
549
- } : m;
550
- return h.remove(m), a[x ? "unshift" : "push"](v), te(), v;
551
- },
552
- remove: function(m, y) {
553
- ~(y = a.indexOf(m)) && a.splice(y, 1) && _ >= y && _--;
554
- },
555
- _listeners: a
556
- }, h;
557
- })(), te = function() {
558
- return !de && nt.wake();
559
- }, X = {}, Pn = /^[\d.\-M][\d.\-,\s]/, kn = /["']/g, On = function(t) {
560
- for (var e = {}, r = t.substr(1, t.length - 3).split(":"), i = r[0], n = 1, s = r.length, a, u, l; n < s; n++)
561
- u = r[n], a = n !== s - 1 ? u.lastIndexOf(",") : u.length, l = u.substr(0, a), e[i] = isNaN(l) ? l.replace(kn, "").trim() : +l, i = u.substr(a + 1).trim();
562
- return e;
563
- }, Dn = function(t) {
564
- var e = t.indexOf("(") + 1, r = t.indexOf(")"), i = t.indexOf("(", e);
565
- return t.substring(e, ~i && i < r ? t.indexOf(")", r + 1) : r);
566
- }, Rn = function(t) {
567
- var e = (t + "").split("("), r = X[e[0]];
568
- return r && e.length > 1 && r.config ? r.config.apply(null, ~t.indexOf("{") ? [On(e[1])] : Dn(t).split(",").map(oi)) : X._CE && Pn.test(t) ? X._CE("", t) : r;
569
- }, Ci = function(t) {
570
- return function(e) {
571
- return 1 - t(1 - e);
572
- };
573
- }, Pi = function o(t, e) {
574
- for (var r = t._first, i; r; )
575
- r instanceof H ? o(r, e) : r.vars.yoyoEase && (!r._yoyo || !r._repeat) && r._yoyo !== e && (r.timeline ? o(r.timeline, e) : (i = r._ease, r._ease = r._yEase, r._yEase = i, r._yoyo = e)), r = r._next;
576
- }, Bt = function(t, e) {
577
- return t && (I(t) ? t : X[t] || Rn(t)) || e;
578
- }, Ut = function(t, e, r, i) {
579
- r === void 0 && (r = function(u) {
580
- return 1 - e(1 - u);
581
- }), i === void 0 && (i = function(u) {
582
- return u < 0.5 ? e(u * 2) / 2 : 1 - e((1 - u) * 2) / 2;
583
- });
584
- var n = {
585
- easeIn: e,
586
- easeOut: r,
587
- easeInOut: i
588
- }, s;
589
- return Z(t, function(a) {
590
- X[a] = ot[a] = n, X[s = a.toLowerCase()] = r;
591
- for (var u in n)
592
- X[s + (u === "easeIn" ? ".in" : u === "easeOut" ? ".out" : ".inOut")] = X[a + "." + u] = n[u];
593
- }), n;
594
- }, ki = function(t) {
595
- return function(e) {
596
- return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
597
- };
598
- }, je = function o(t, e, r) {
599
- var i = e >= 1 ? e : 1, n = (r || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / Xe * (Math.asin(1 / i) || 0), a = function(f) {
600
- return f === 1 ? 1 : i * Math.pow(2, -10 * f) * nn((f - s) * n) + 1;
601
- }, u = t === "out" ? a : t === "in" ? function(l) {
602
- return 1 - a(1 - l);
603
- } : ki(a);
604
- return n = Xe / n, u.config = function(l, f) {
605
- return o(t, l, f);
606
- }, u;
607
- }, Be = function o(t, e) {
608
- e === void 0 && (e = 1.70158);
609
- var r = function(s) {
610
- return s ? --s * s * ((e + 1) * s + e) + 1 : 0;
611
- }, i = t === "out" ? r : t === "in" ? function(n) {
612
- return 1 - r(1 - n);
613
- } : ki(r);
614
- return i.config = function(n) {
615
- return o(t, n);
616
- }, i;
617
- };
618
- Z("Linear,Quad,Cubic,Quart,Quint,Strong", function(o, t) {
619
- var e = t < 5 ? t + 1 : t;
620
- Ut(o + ",Power" + (e - 1), t ? function(r) {
621
- return Math.pow(r, e);
622
- } : function(r) {
623
- return r;
624
- }, function(r) {
625
- return 1 - Math.pow(1 - r, e);
626
- }, function(r) {
627
- return r < 0.5 ? Math.pow(r * 2, e) / 2 : 1 - Math.pow((1 - r) * 2, e) / 2;
628
- });
629
- });
630
- X.Linear.easeNone = X.none = X.Linear.easeIn;
631
- Ut("Elastic", je("in"), je("out"), je());
632
- (function(o, t) {
633
- var e = 1 / t, r = 2 * e, i = 2.5 * e, n = function(a) {
634
- return a < e ? o * a * a : a < r ? o * Math.pow(a - 1.5 / t, 2) + 0.75 : a < i ? o * (a -= 2.25 / t) * a + 0.9375 : o * Math.pow(a - 2.625 / t, 2) + 0.984375;
635
- };
636
- Ut("Bounce", function(s) {
637
- return 1 - n(1 - s);
638
- }, n);
639
- })(7.5625, 2.75);
640
- Ut("Expo", function(o) {
641
- return Math.pow(2, 10 * (o - 1)) * o + o * o * o * o * o * o * (1 - o);
642
- });
643
- Ut("Circ", function(o) {
644
- return -(Kr(1 - o * o) - 1);
645
- });
646
- Ut("Sine", function(o) {
647
- return o === 1 ? 1 : -rn(o * tn) + 1;
648
- });
649
- Ut("Back", Be("in"), Be("out"), Be());
650
- X.SteppedEase = X.steps = ot.SteppedEase = {
651
- config: function(t, e) {
652
- t === void 0 && (t = 1);
653
- var r = 1 / t, i = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - D;
654
- return function(a) {
655
- return ((i * ye(0, s, a) | 0) + n) * r;
656
- };
657
- }
658
- };
659
- Kt.ease = X["quad.out"];
660
- Z("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(o) {
661
- return dr += o + "," + o + "Params,";
662
- });
663
- var Oi = function(t, e) {
664
- this.id = en++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : si, this.set = e ? e.getSetter : xr;
665
- }, _e = /* @__PURE__ */ (function() {
666
- function o(e) {
667
- 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, Jt(this, +e.duration, 1, 1), this.data = e.data, N && (this._ctx = N, N.data.push(this)), de || nt.wake();
668
- }
669
- var t = o.prototype;
670
- return t.delay = function(r) {
671
- return r || r === 0 ? (this.parent && this.parent.smoothChildTiming && this.startTime(this._start + r - this._delay), this._delay = r, this) : this._delay;
672
- }, t.duration = function(r) {
673
- return arguments.length ? this.totalDuration(this._repeat > 0 ? r + (r + this._rDelay) * this._repeat : r) : this.totalDuration() && this._dur;
674
- }, t.totalDuration = function(r) {
675
- return arguments.length ? (this._dirty = 0, Jt(this, this._repeat < 0 ? r : (r - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
676
- }, t.totalTime = function(r, i) {
677
- if (te(), !arguments.length)
678
- return this._tTime;
679
- var n = this._dp;
680
- if (n && n.smoothChildTiming && this._ts) {
681
- for (ze(this, r), !n._dp || n.parent || fi(n, this); n && n.parent; )
682
- 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;
683
- !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && r < this._tDur || this._ts < 0 && r > 0 || !this._tDur && !r) && pt(this._dp, this, this._start - this._delay);
684
- }
685
- return (this._tTime !== r || !this._dur && !i || this._initted && Math.abs(this._zTime) === D || !r && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = r), ai(this, r, i)), this;
686
- }, t.time = function(r, i) {
687
- return arguments.length ? this.totalTime(Math.min(this.totalDuration(), r + Or(this)) % (this._dur + this._rDelay) || (r ? this._dur : 0), i) : this._time;
688
- }, t.totalProgress = function(r, i) {
689
- return arguments.length ? this.totalTime(this.totalDuration() * r, i) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
690
- }, t.progress = function(r, i) {
691
- return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - r : r) + Or(this), i) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
692
- }, t.iteration = function(r, i) {
693
- var n = this.duration() + this._rDelay;
694
- return arguments.length ? this.totalTime(this._time + (r - 1) * n, i) : this._repeat ? Qt(this._tTime, n) + 1 : 1;
695
- }, t.timeScale = function(r, i) {
696
- if (!arguments.length)
697
- return this._rts === -D ? 0 : this._rts;
698
- if (this._rts === r)
699
- return this;
700
- var n = this.parent && this._ts ? Oe(this.parent._time, this) : this._tTime;
701
- return this._rts = +r || 0, this._ts = this._ps || r === -D ? 0 : this._rts, this.totalTime(ye(-Math.abs(this._delay), this.totalDuration(), n), i !== !1), Ee(this), cn(this);
702
- }, t.paused = function(r) {
703
- return arguments.length ? (this._ps !== r && (this._ps = r, r ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (te(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== D && (this._tTime -= D)))), this) : this._ps;
704
- }, t.startTime = function(r) {
705
- if (arguments.length) {
706
- this._start = r;
707
- var i = this.parent || this._dp;
708
- return i && (i._sort || !this.parent) && pt(i, this, r - this._delay), this;
709
- }
710
- return this._start;
711
- }, t.endTime = function(r) {
712
- return this._start + (K(r) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
713
- }, t.rawTime = function(r) {
714
- var i = this.parent || this._dp;
715
- return i ? r && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Oe(i.rawTime(r), this) : this._tTime : this._tTime;
716
- }, t.revert = function(r) {
717
- r === void 0 && (r = on);
718
- var i = W;
719
- return W = r, pr(this) && (this.timeline && this.timeline.revert(r), this.totalTime(-0.01, r.suppressEvents)), this.data !== "nested" && r.kill !== !1 && this.kill(), W = i, this;
720
- }, t.globalTime = function(r) {
721
- for (var i = this, n = arguments.length ? r : i.rawTime(); i; )
722
- n = i._start + n / (Math.abs(i._ts) || 1), i = i._dp;
723
- return !this.parent && this._sat ? this._sat.globalTime(r) : n;
724
- }, t.repeat = function(r) {
725
- return arguments.length ? (this._repeat = r === 1 / 0 ? -2 : r, Dr(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
726
- }, t.repeatDelay = function(r) {
727
- if (arguments.length) {
728
- var i = this._time;
729
- return this._rDelay = r, Dr(this), i ? this.time(i) : this;
730
- }
731
- return this._rDelay;
732
- }, t.yoyo = function(r) {
733
- return arguments.length ? (this._yoyo = r, this) : this._yoyo;
734
- }, t.seek = function(r, i) {
735
- return this.totalTime(lt(this, r), K(i));
736
- }, t.restart = function(r, i) {
737
- return this.play().totalTime(r ? -this._delay : 0, K(i)), this._dur || (this._zTime = -D), this;
738
- }, t.play = function(r, i) {
739
- return r != null && this.seek(r, i), this.reversed(!1).paused(!1);
740
- }, t.reverse = function(r, i) {
741
- return r != null && this.seek(r || this.totalDuration(), i), this.reversed(!0).paused(!1);
742
- }, t.pause = function(r, i) {
743
- return r != null && this.seek(r, i), this.paused(!0);
744
- }, t.resume = function() {
745
- return this.paused(!1);
746
- }, t.reversed = function(r) {
747
- return arguments.length ? (!!r !== this.reversed() && this.timeScale(-this._rts || (r ? -D : 0)), this) : this._rts < 0;
748
- }, t.invalidate = function() {
749
- return this._initted = this._act = 0, this._zTime = -D, this;
750
- }, t.isActive = function() {
751
- var r = this.parent || this._dp, i = this._start, n;
752
- return !!(!r || this._ts && this._initted && r.isActive() && (n = r.rawTime(!0)) >= i && n < this.endTime(!0) - D);
753
- }, t.eventCallback = function(r, i, n) {
754
- var s = this.vars;
755
- return arguments.length > 1 ? (i ? (s[r] = i, n && (s[r + "Params"] = n), r === "onUpdate" && (this._onUpdate = i)) : delete s[r], this) : s[r];
756
- }, t.then = function(r) {
757
- var i = this;
758
- return new Promise(function(n) {
759
- var s = I(r) ? r : ui, a = function() {
760
- var l = i.then;
761
- i.then = null, I(s) && (s = s(i)) && (s.then || s === i) && (i.then = l), n(s), i.then = l;
762
- };
763
- i._initted && i.totalProgress() === 1 && i._ts >= 0 || !i._tTime && i._ts < 0 ? a() : i._prom = a;
764
- });
765
- }, t.kill = function() {
766
- se(this);
767
- }, o;
768
- })();
769
- ut(_e.prototype, {
770
- _time: 0,
771
- _start: 0,
772
- _end: 0,
773
- _tTime: 0,
774
- _tDur: 0,
775
- _dirty: 0,
776
- _repeat: 0,
777
- _yoyo: !1,
778
- parent: null,
779
- _initted: !1,
780
- _rDelay: 0,
781
- _ts: 1,
782
- _dp: 0,
783
- ratio: 0,
784
- _zTime: -D,
785
- _prom: 0,
786
- _ps: !1,
787
- _rts: 1
788
- });
789
- var H = /* @__PURE__ */ (function(o) {
790
- Hr(t, o);
791
- function t(r, i) {
792
- var n;
793
- return r === void 0 && (r = {}), n = o.call(this, r) || this, n.labels = {}, n.smoothChildTiming = !!r.smoothChildTiming, n.autoRemoveChildren = !!r.autoRemoveChildren, n._sort = K(r.sortChildren), E && pt(r.parent || E, xt(n), i), r.reversed && n.reverse(), r.paused && n.paused(!0), r.scrollTrigger && ci(xt(n), r.scrollTrigger), n;
794
- }
795
- var e = t.prototype;
796
- return e.to = function(i, n, s) {
797
- return ue(0, arguments, this), this;
798
- }, e.from = function(i, n, s) {
799
- return ue(1, arguments, this), this;
800
- }, e.fromTo = function(i, n, s, a) {
801
- return ue(2, arguments, this), this;
802
- }, e.set = function(i, n, s) {
803
- return n.duration = 0, n.parent = this, oe(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new j(i, n, lt(this, s), 1), this;
804
- }, e.call = function(i, n, s) {
805
- return pt(this, j.delayedCall(0, i, n), s);
806
- }, e.staggerTo = function(i, n, s, a, u, l, f) {
807
- return s.duration = n, s.stagger = s.stagger || a, s.onComplete = l, s.onCompleteParams = f, s.parent = this, new j(i, s, lt(this, u)), this;
808
- }, e.staggerFrom = function(i, n, s, a, u, l, f) {
809
- return s.runBackwards = 1, oe(s).immediateRender = K(s.immediateRender), this.staggerTo(i, n, s, a, u, l, f);
810
- }, e.staggerFromTo = function(i, n, s, a, u, l, f, h) {
811
- return a.startAt = s, oe(a).immediateRender = K(a.immediateRender), this.staggerTo(i, n, a, u, l, f, h);
812
- }, e.render = function(i, n, s) {
813
- var a = this._time, u = this._dirty ? this.totalDuration() : this._tDur, l = this._dur, f = i <= 0 ? 0 : B(i), h = this._zTime < 0 != i < 0 && (this._initted || !l), d, _, p, c, m, y, x, v, b, g, T, S;
814
- if (this !== E && f > u && i >= 0 && (f = u), f !== this._tTime || s || h) {
815
- if (a !== this._time && l && (f += this._time - a, i += this._time - a), d = f, b = this._start, v = this._ts, y = !v, h && (l || (a = this._zTime), (i || !n) && (this._zTime = i)), this._repeat) {
816
- if (T = this._yoyo, m = l + this._rDelay, this._repeat < -1 && i < 0)
817
- return this.totalTime(m * 100 + i, n, s);
818
- if (d = B(f % m), f === u ? (c = this._repeat, d = l) : (g = B(f / m), c = ~~g, c && c === g && (d = l, c--), d > l && (d = l)), g = Qt(this._tTime, m), !a && this._tTime && g !== c && this._tTime - g * m - this._dur <= 0 && (g = c), T && c & 1 && (d = l - d, S = 1), c !== g && !this._lock) {
819
- var C = T && g & 1, w = C === (T && c & 1);
820
- if (c < g && (C = !C), a = C ? 0 : f % l ? l : f, this._lock = 1, this.render(a || (S ? 0 : B(c * m)), n, !l)._lock = 0, this._tTime = f, !n && this.parent && st(this, "onRepeat"), this.vars.repeatRefresh && !S && (this.invalidate()._lock = 1), a && a !== this._time || y !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
821
- return this;
822
- if (l = this._dur, u = this._tDur, w && (this._lock = 2, a = C ? l : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !S && this.invalidate()), this._lock = 0, !this._ts && !y)
823
- return this;
824
- Pi(this, S);
825
- }
826
- }
827
- if (this._hasPause && !this._forcing && this._lock < 2 && (x = pn(this, B(a), B(d)), x && (f -= d - (d = x._start))), this._tTime = f, this._time = d, this._act = !v, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = i, a = 0), !a && f && !n && !g && (st(this, "onStart"), this._tTime !== f))
828
- return this;
829
- if (d >= a && i >= 0)
830
- for (_ = this._first; _; ) {
831
- if (p = _._next, (_._act || d >= _._start) && _._ts && x !== _) {
832
- if (_.parent !== this)
833
- return this.render(i, n, s);
834
- if (_.render(_._ts > 0 ? (d - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (d - _._start) * _._ts, n, s), d !== this._time || !this._ts && !y) {
835
- x = 0, p && (f += this._zTime = -D);
836
- break;
837
- }
838
- }
839
- _ = p;
840
- }
841
- else {
842
- _ = this._last;
843
- for (var k = i < 0 ? i : d; _; ) {
844
- if (p = _._prev, (_._act || k <= _._end) && _._ts && x !== _) {
845
- if (_.parent !== this)
846
- return this.render(i, n, s);
847
- if (_.render(_._ts > 0 ? (k - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (k - _._start) * _._ts, n, s || W && pr(_)), d !== this._time || !this._ts && !y) {
848
- x = 0, p && (f += this._zTime = k ? -D : D);
849
- break;
850
- }
851
- }
852
- _ = p;
853
- }
854
- }
855
- if (x && !n && (this.pause(), x.render(d >= a ? 0 : -D)._zTime = d >= a ? 1 : -1, this._ts))
856
- return this._start = b, Ee(this), this.render(i, n, s);
857
- this._onUpdate && !n && st(this, "onUpdate", !0), (f === u && this._tTime >= this.totalDuration() || !f && a) && (b === this._start || Math.abs(v) !== Math.abs(this._ts)) && (this._lock || ((i || !l) && (f === u && this._ts > 0 || !f && this._ts < 0) && Dt(this, 1), !n && !(i < 0 && !a) && (f || a || !u) && (st(this, f === u && i >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(f < u && this.timeScale() > 0) && this._prom())));
858
- }
859
- return this;
860
- }, e.add = function(i, n) {
861
- var s = this;
862
- if (bt(n) || (n = lt(this, n, i)), !(i instanceof _e)) {
863
- if ($(i))
864
- return i.forEach(function(a) {
865
- return s.add(a, n);
866
- }), this;
867
- if (U(i))
868
- return this.addLabel(i, n);
869
- if (I(i))
870
- i = j.delayedCall(0, i);
871
- else
872
- return this;
873
- }
874
- return this !== i ? pt(this, i, n) : this;
875
- }, e.getChildren = function(i, n, s, a) {
876
- i === void 0 && (i = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -ft);
877
- for (var u = [], l = this._first; l; )
878
- l._start >= a && (l instanceof j ? n && u.push(l) : (s && u.push(l), i && u.push.apply(u, l.getChildren(!0, n, s)))), l = l._next;
879
- return u;
880
- }, e.getById = function(i) {
881
- for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
882
- if (n[s].vars.id === i)
883
- return n[s];
884
- }, e.remove = function(i) {
885
- return U(i) ? this.removeLabel(i) : I(i) ? this.killTweensOf(i) : (i.parent === this && Ne(this, i), i === this._recent && (this._recent = this._last), jt(this));
886
- }, e.totalTime = function(i, n) {
887
- return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = B(nt.time - (this._ts > 0 ? i / this._ts : (this.totalDuration() - i) / -this._ts))), o.prototype.totalTime.call(this, i, n), this._forcing = 0, this) : this._tTime;
888
- }, e.addLabel = function(i, n) {
889
- return this.labels[i] = lt(this, n), this;
890
- }, e.removeLabel = function(i) {
891
- return delete this.labels[i], this;
892
- }, e.addPause = function(i, n, s) {
893
- var a = j.delayedCall(0, n || ce, s);
894
- return a.data = "isPause", this._hasPause = 1, pt(this, a, lt(this, i));
895
- }, e.removePause = function(i) {
896
- var n = this._first;
897
- for (i = lt(this, i); n; )
898
- n._start === i && n.data === "isPause" && Dt(n), n = n._next;
899
- }, e.killTweensOf = function(i, n, s) {
900
- for (var a = this.getTweensOf(i, s), u = a.length; u--; )
901
- St !== a[u] && a[u].kill(i, n);
902
- return this;
903
- }, e.getTweensOf = function(i, n) {
904
- for (var s = [], a = ct(i), u = this._first, l = bt(n), f; u; )
905
- u instanceof j ? un(u._targets, a) && (l ? (!St || u._initted && u._ts) && u.globalTime(0) <= n && u.globalTime(u.totalDuration()) > n : !n || u.isActive()) && s.push(u) : (f = u.getTweensOf(a, n)).length && s.push.apply(s, f), u = u._next;
906
- return s;
907
- }, e.tweenTo = function(i, n) {
908
- n = n || {};
909
- var s = this, a = lt(s, i), u = n, l = u.startAt, f = u.onStart, h = u.onStartParams, d = u.immediateRender, _, p = j.to(s, ut({
910
- ease: n.ease || "none",
911
- lazy: !1,
912
- immediateRender: !1,
913
- time: a,
914
- overwrite: "auto",
915
- duration: n.duration || Math.abs((a - (l && "time" in l ? l.time : s._time)) / s.timeScale()) || D,
916
- onStart: function() {
917
- if (s.pause(), !_) {
918
- var m = n.duration || Math.abs((a - (l && "time" in l ? l.time : s._time)) / s.timeScale());
919
- p._dur !== m && Jt(p, m, 0, 1).render(p._time, !0, !0), _ = 1;
920
- }
921
- f && f.apply(p, h || []);
922
- }
923
- }, n));
924
- return d ? p.render(0) : p;
925
- }, e.tweenFromTo = function(i, n, s) {
926
- return this.tweenTo(n, ut({
927
- startAt: {
928
- time: lt(this, i)
929
- }
930
- }, s));
931
- }, e.recent = function() {
932
- return this._recent;
933
- }, e.nextLabel = function(i) {
934
- return i === void 0 && (i = this._time), Rr(this, lt(this, i));
935
- }, e.previousLabel = function(i) {
936
- return i === void 0 && (i = this._time), Rr(this, lt(this, i), 1);
937
- }, e.currentLabel = function(i) {
938
- return arguments.length ? this.seek(i, !0) : this.previousLabel(this._time + D);
939
- }, e.shiftChildren = function(i, n, s) {
940
- s === void 0 && (s = 0);
941
- for (var a = this._first, u = this.labels, l; a; )
942
- a._start >= s && (a._start += i, a._end += i), a = a._next;
943
- if (n)
944
- for (l in u)
945
- u[l] >= s && (u[l] += i);
946
- return jt(this);
947
- }, e.invalidate = function(i) {
948
- var n = this._first;
949
- for (this._lock = 0; n; )
950
- n.invalidate(i), n = n._next;
951
- return o.prototype.invalidate.call(this, i);
952
- }, e.clear = function(i) {
953
- i === void 0 && (i = !0);
954
- for (var n = this._first, s; n; )
955
- s = n._next, this.remove(n), n = s;
956
- return this._dp && (this._time = this._tTime = this._pTime = 0), i && (this.labels = {}), jt(this);
957
- }, e.totalDuration = function(i) {
958
- var n = 0, s = this, a = s._last, u = ft, l, f, h;
959
- if (arguments.length)
960
- return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -i : i));
961
- if (s._dirty) {
962
- for (h = s.parent; a; )
963
- l = a._prev, a._dirty && a.totalDuration(), f = a._start, f > u && s._sort && a._ts && !s._lock ? (s._lock = 1, pt(s, a, f - a._delay, 1)._lock = 0) : u = f, f < 0 && a._ts && (n -= f, (!h && !s._dp || h && h.smoothChildTiming) && (s._start += f / s._ts, s._time -= f, s._tTime -= f), s.shiftChildren(-f, !1, -1 / 0), u = 0), a._end > n && a._ts && (n = a._end), a = l;
964
- Jt(s, s === E && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
965
- }
966
- return s._tDur;
967
- }, t.updateRoot = function(i) {
968
- if (E._ts && (ai(E, Oe(i, E)), ni = nt.frame), nt.frame >= Pr) {
969
- Pr += at.autoSleep || 120;
970
- var n = E._first;
971
- if ((!n || !n._ts) && at.autoSleep && nt._listeners.length < 2) {
972
- for (; n && !n._ts; )
973
- n = n._next;
974
- n || nt.sleep();
975
- }
976
- }
977
- }, t;
978
- })(_e);
979
- ut(H.prototype, {
980
- _lock: 0,
981
- _hasPause: 0,
982
- _forcing: 0
983
- });
984
- var Mn = function(t, e, r, i, n, s, a) {
985
- var u = new Q(this._pt, t, e, 0, 1, Ei, null, n), l = 0, f = 0, h, d, _, p, c, m, y, x;
986
- for (u.b = r, u.e = i, r += "", i += "", (y = ~i.indexOf("random(")) && (i = he(i)), s && (x = [r, i], s(x, t, e), r = x[0], i = x[1]), d = r.match(Ie) || []; h = Ie.exec(i); )
987
- p = h[0], c = i.substring(l, h.index), _ ? _ = (_ + 1) % 5 : c.substr(-5) === "rgba(" && (_ = 1), p !== d[f++] && (m = parseFloat(d[f - 1]) || 0, u._pt = {
988
- _next: u._pt,
989
- p: c || f === 1 ? c : ",",
990
- //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.
991
- s: m,
992
- c: p.charAt(1) === "=" ? Gt(m, p) - m : parseFloat(p) - m,
993
- m: _ && _ < 4 ? Math.round : 0
994
- }, l = Ie.lastIndex);
995
- return u.c = l < i.length ? i.substring(l, i.length) : "", u.fp = a, (Jr.test(i) || y) && (u.e = 0), this._pt = u, u;
996
- }, mr = function(t, e, r, i, n, s, a, u, l, f) {
997
- I(i) && (i = i(n || 0, t, s));
998
- var h = t[e], d = r !== "get" ? r : I(h) ? l ? t[e.indexOf("set") || !I(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](l) : t[e]() : h, _ = I(h) ? l ? In : Ai : yr, p;
999
- if (U(i) && (~i.indexOf("random(") && (i = he(i)), i.charAt(1) === "=" && (p = Gt(d, i) + (G(d) || 0), (p || p === 0) && (i = p))), !f || d !== i || tr)
1000
- return !isNaN(d * i) && i !== "" ? (p = new Q(this._pt, t, e, +d || 0, i - (d || 0), typeof h == "boolean" ? Ln : Ni, 0, _), l && (p.fp = l), a && p.modifier(a, this, t), this._pt = p) : (!h && !(e in t) && cr(e, i), Mn.call(this, t, e, d, i, _, u || at.stringFilter, l));
1001
- }, An = function(t, e, r, i, n) {
1002
- if (I(t) && (t = le(t, n, e, r, i)), !gt(t) || t.style && t.nodeType || $(t) || Zr(t))
1003
- return U(t) ? le(t, n, e, r, i) : t;
1004
- var s = {}, a;
1005
- for (a in t)
1006
- s[a] = le(t[a], n, e, r, i);
1007
- return s;
1008
- }, Di = function(t, e, r, i, n, s) {
1009
- var a, u, l, f;
1010
- if (rt[t] && (a = new rt[t]()).init(n, a.rawVars ? e[t] : An(e[t], i, n, s, r), r, i, s) !== !1 && (r._pt = u = new Q(r._pt, n, t, 0, 1, a.render, a, 0, a.priority), r !== Wt))
1011
- for (l = r._ptLookup[r._targets.indexOf(n)], f = a._props.length; f--; )
1012
- l[a._props[f]] = u;
1013
- return a;
1014
- }, St, tr, gr = function o(t, e, r) {
1015
- var i = t.vars, n = i.ease, s = i.startAt, a = i.immediateRender, u = i.lazy, l = i.onUpdate, f = i.runBackwards, h = i.yoyoEase, d = i.keyframes, _ = i.autoRevert, p = t._dur, c = t._startAt, m = t._targets, y = t.parent, x = y && y.data === "nested" ? y.vars.targets : m, v = t._overwrite === "auto" && !or, b = t.timeline, g, T, S, C, w, k, A, R, M, Y, q, L, V;
1016
- if (b && (!d || !n) && (n = "none"), t._ease = Bt(n, Kt.ease), t._yEase = h ? Ci(Bt(h === !0 ? n : h, Kt.ease)) : 0, h && t._yoyo && !t._repeat && (h = t._yEase, t._yEase = t._ease, t._ease = h), t._from = !b && !!i.runBackwards, !b || d && !i.stagger) {
1017
- if (R = m[0] ? Lt(m[0]).harness : 0, L = R && i[R.prop], g = ke(i, hr), c && (c._zTime < 0 && c.progress(1), e < 0 && f && a && !_ ? c.render(-1, !0) : c.revert(f && p ? be : an), c._lazy = 0), s) {
1018
- if (Dt(t._startAt = j.set(m, ut({
1019
- data: "isStart",
1020
- overwrite: !1,
1021
- parent: y,
1022
- immediateRender: !0,
1023
- lazy: !c && K(u),
1024
- startAt: null,
1025
- delay: 0,
1026
- onUpdate: l && function() {
1027
- return st(t, "onUpdate");
1028
- },
1029
- stagger: 0
1030
- }, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (W || !a && !_) && t._startAt.revert(be), a && p && e <= 0 && r <= 0) {
1031
- e && (t._zTime = e);
1032
- return;
1033
- }
1034
- } else if (f && p && !c) {
1035
- if (e && (a = !1), S = ut({
1036
- overwrite: !1,
1037
- data: "isFromStart",
1038
- //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.
1039
- lazy: a && !c && K(u),
1040
- immediateRender: a,
1041
- //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)
1042
- stagger: 0,
1043
- parent: y
1044
- //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1045
- }, g), L && (S[R.prop] = L), Dt(t._startAt = j.set(m, S)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (W ? t._startAt.revert(be) : t._startAt.render(-1, !0)), t._zTime = e, !a)
1046
- o(t._startAt, D, D);
1047
- else if (!e)
1048
- return;
1049
- }
1050
- for (t._pt = t._ptCache = 0, u = p && K(u) || u && !p, T = 0; T < m.length; T++) {
1051
- if (w = m[T], A = w._gsap || _r(m)[T]._gsap, t._ptLookup[T] = Y = {}, $e[A.id] && kt.length && Pe(), q = x === m ? T : x.indexOf(w), R && (M = new R()).init(w, L || g, t, q, x) !== !1 && (t._pt = C = new Q(t._pt, w, M.name, 0, 1, M.render, M, 0, M.priority), M._props.forEach(function(dt) {
1052
- Y[dt] = C;
1053
- }), M.priority && (k = 1)), !R || L)
1054
- for (S in g)
1055
- rt[S] && (M = Di(S, g, t, q, w, x)) ? M.priority && (k = 1) : Y[S] = C = mr.call(t, w, S, "get", g[S], q, x, 0, i.stringFilter);
1056
- t._op && t._op[T] && t.kill(w, t._op[T]), v && t._pt && (St = t, E.killTweensOf(w, Y, t.globalTime(e)), V = !t.parent, St = 0), t._pt && u && ($e[A.id] = 1);
1057
- }
1058
- k && zi(t), t._onInit && t._onInit(t);
1059
- }
1060
- t._onUpdate = l, t._initted = (!t._op || t._pt) && !V, d && e <= 0 && b.render(ft, !0, !0);
1061
- }, Nn = function(t, e, r, i, n, s, a, u) {
1062
- var l = (t._pt && t._ptCache || (t._ptCache = {}))[e], f, h, d, _;
1063
- if (!l)
1064
- for (l = t._ptCache[e] = [], d = t._ptLookup, _ = t._targets.length; _--; ) {
1065
- if (f = d[_][e], f && f.d && f.d._pt)
1066
- for (f = f.d._pt; f && f.p !== e && f.fp !== e; )
1067
- f = f._next;
1068
- if (!f)
1069
- return tr = 1, t.vars[e] = "+=0", gr(t, a), tr = 0, u ? fe(e + " not eligible for reset") : 1;
1070
- l.push(f);
1071
- }
1072
- for (_ = l.length; _--; )
1073
- h = l[_], f = h._pt || h, f.s = (i || i === 0) && !n ? i : f.s + (i || 0) + s * f.c, f.c = r - f.s, h.e && (h.e = F(r) + G(h.e)), h.b && (h.b = f.s + G(h.b));
1074
- }, En = function(t, e) {
1075
- var r = t[0] ? Lt(t[0]).harness : 0, i = r && r.aliases, n, s, a, u;
1076
- if (!i)
1077
- return e;
1078
- n = Zt({}, e);
1079
- for (s in i)
1080
- if (s in n)
1081
- for (u = i[s].split(","), a = u.length; a--; )
1082
- n[u[a]] = n[s];
1083
- return n;
1084
- }, zn = function(t, e, r, i) {
1085
- var n = e.ease || i || "power1.inOut", s, a;
1086
- if ($(e))
1087
- a = r[t] || (r[t] = []), e.forEach(function(u, l) {
1088
- return a.push({
1089
- t: l / (e.length - 1) * 100,
1090
- v: u,
1091
- e: n
1092
- });
1093
- });
1094
- else
1095
- for (s in e)
1096
- a = r[s] || (r[s] = []), s === "ease" || a.push({
1097
- t: parseFloat(t),
1098
- v: e[s],
1099
- e: n
1100
- });
1101
- }, le = function(t, e, r, i, n) {
1102
- return I(t) ? t.call(e, r, i, n) : U(t) && ~t.indexOf("random(") ? he(t) : t;
1103
- }, Ri = dr + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Mi = {};
1104
- Z(Ri + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
1105
- return Mi[o] = 1;
1106
- });
1107
- var j = /* @__PURE__ */ (function(o) {
1108
- Hr(t, o);
1109
- function t(r, i, n, s) {
1110
- var a;
1111
- typeof i == "number" && (n.duration = i, i = n, n = null), a = o.call(this, s ? i : oe(i)) || this;
1112
- var u = a.vars, l = u.duration, f = u.delay, h = u.immediateRender, d = u.stagger, _ = u.overwrite, p = u.keyframes, c = u.defaults, m = u.scrollTrigger, y = u.yoyoEase, x = i.parent || E, v = ($(r) || Zr(r) ? bt(r[0]) : "length" in i) ? [r] : ct(r), b, g, T, S, C, w, k, A;
1113
- if (a._targets = v.length ? _r(v) : fe("GSAP target " + r + " not found. https://gsap.com", !at.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = _, p || d || ve(l) || ve(f)) {
1114
- if (i = a.vars, b = a.timeline = new H({
1115
- data: "nested",
1116
- defaults: c || {},
1117
- targets: x && x.data === "nested" ? x.vars.targets : v
1118
- }), b.kill(), b.parent = b._dp = xt(a), b._start = 0, d || ve(l) || ve(f)) {
1119
- if (S = v.length, k = d && pi(d), gt(d))
1120
- for (C in d)
1121
- ~Ri.indexOf(C) && (A || (A = {}), A[C] = d[C]);
1122
- for (g = 0; g < S; g++)
1123
- T = ke(i, Mi), T.stagger = 0, y && (T.yoyoEase = y), A && Zt(T, A), w = v[g], T.duration = +le(l, xt(a), g, w, v), T.delay = (+le(f, xt(a), g, w, v) || 0) - a._delay, !d && S === 1 && T.delay && (a._delay = f = T.delay, a._start += f, T.delay = 0), b.to(w, T, k ? k(g, w, v) : 0), b._ease = X.none;
1124
- b.duration() ? l = f = 0 : a.timeline = 0;
1125
- } else if (p) {
1126
- oe(ut(b.vars.defaults, {
1127
- ease: "none"
1128
- })), b._ease = Bt(p.ease || i.ease || "none");
1129
- var R = 0, M, Y, q;
1130
- if ($(p))
1131
- p.forEach(function(L) {
1132
- return b.to(v, L, ">");
1133
- }), b.duration();
1134
- else {
1135
- T = {};
1136
- for (C in p)
1137
- C === "ease" || C === "easeEach" || zn(C, p[C], T, p.easeEach);
1138
- for (C in T)
1139
- for (M = T[C].sort(function(L, V) {
1140
- return L.t - V.t;
1141
- }), R = 0, g = 0; g < M.length; g++)
1142
- Y = M[g], q = {
1143
- ease: Y.e,
1144
- duration: (Y.t - (g ? M[g - 1].t : 0)) / 100 * l
1145
- }, q[C] = Y.v, b.to(v, q, R), R += q.duration;
1146
- b.duration() < l && b.to({}, {
1147
- duration: l - b.duration()
1148
- });
1149
- }
1150
- }
1151
- l || a.duration(l = b.duration());
1152
- } else
1153
- a.timeline = 0;
1154
- return _ === !0 && !or && (St = xt(a), E.killTweensOf(v), St = 0), pt(x, xt(a), n), i.reversed && a.reverse(), i.paused && a.paused(!0), (h || !l && !p && a._start === B(x._time) && K(h) && hn(xt(a)) && x.data !== "nested") && (a._tTime = -D, a.render(Math.max(0, -f) || 0)), m && ci(xt(a), m), a;
1155
- }
1156
- var e = t.prototype;
1157
- return e.render = function(i, n, s) {
1158
- var a = this._time, u = this._tDur, l = this._dur, f = i < 0, h = i > u - D && !f ? u : i < D ? 0 : i, d, _, p, c, m, y, x, v, b;
1159
- if (!l)
1160
- _n(this, i, n, s);
1161
- else if (h !== this._tTime || !i || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== f || this._lazy) {
1162
- if (d = h, v = this.timeline, this._repeat) {
1163
- if (c = l + this._rDelay, this._repeat < -1 && f)
1164
- return this.totalTime(c * 100 + i, n, s);
1165
- if (d = B(h % c), h === u ? (p = this._repeat, d = l) : (m = B(h / c), p = ~~m, p && p === m ? (d = l, p--) : d > l && (d = l)), y = this._yoyo && p & 1, y && (b = this._yEase, d = l - d), m = Qt(this._tTime, c), d === a && !s && this._initted && p === m)
1166
- return this._tTime = h, this;
1167
- p !== m && (v && this._yEase && Pi(v, y), this.vars.repeatRefresh && !y && !this._lock && d !== c && this._initted && (this._lock = s = 1, this.render(B(c * p), !0).invalidate()._lock = 0));
1168
- }
1169
- if (!this._initted) {
1170
- if (hi(this, f ? i : d, s, n, h))
1171
- return this._tTime = 0, this;
1172
- if (a !== this._time && !(s && this.vars.repeatRefresh && p !== m))
1173
- return this;
1174
- if (l !== this._dur)
1175
- return this.render(i, n, s);
1176
- }
1177
- if (this._tTime = h, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = x = (b || this._ease)(d / l), this._from && (this.ratio = x = 1 - x), !a && h && !n && !m && (st(this, "onStart"), this._tTime !== h))
1178
- return this;
1179
- for (_ = this._pt; _; )
1180
- _.r(x, _.d), _ = _._next;
1181
- v && v.render(i < 0 ? i : v._dur * v._ease(d / this._dur), n, s) || this._startAt && (this._zTime = i), this._onUpdate && !n && (f && He(this, i, n, s), st(this, "onUpdate")), this._repeat && p !== m && this.vars.onRepeat && !n && this.parent && st(this, "onRepeat"), (h === this._tDur || !h) && this._tTime === h && (f && !this._onUpdate && He(this, i, !0, !0), (i || !l) && (h === this._tDur && this._ts > 0 || !h && this._ts < 0) && Dt(this, 1), !n && !(f && !a) && (h || a || y) && (st(this, h === u ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < u && this.timeScale() > 0) && this._prom()));
1182
- }
1183
- return this;
1184
- }, e.targets = function() {
1185
- return this._targets;
1186
- }, e.invalidate = function(i) {
1187
- return (!i || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(i), o.prototype.invalidate.call(this, i);
1188
- }, e.resetTo = function(i, n, s, a, u) {
1189
- de || nt.wake(), this._ts || this.play();
1190
- var l = Math.min(this._dur, (this._dp._time - this._start) * this._ts), f;
1191
- return this._initted || gr(this, l), f = this._ease(l / this._dur), Nn(this, i, n, s, a, f, l, u) ? this.resetTo(i, n, s, a, 1) : (ze(this, 0), this.parent || li(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1192
- }, e.kill = function(i, n) {
1193
- if (n === void 0 && (n = "all"), !i && (!n || n === "all"))
1194
- return this._lazy = this._pt = 0, this.parent ? se(this) : this.scrollTrigger && this.scrollTrigger.kill(!!W), this;
1195
- if (this.timeline) {
1196
- var s = this.timeline.totalDuration();
1197
- return this.timeline.killTweensOf(i, n, St && St.vars.overwrite !== !0)._first || se(this), this.parent && s !== this.timeline.totalDuration() && Jt(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1198
- }
1199
- var a = this._targets, u = i ? ct(i) : a, l = this._ptLookup, f = this._pt, h, d, _, p, c, m, y;
1200
- if ((!n || n === "all") && fn(a, u))
1201
- return n === "all" && (this._pt = 0), se(this);
1202
- for (h = this._op = this._op || [], n !== "all" && (U(n) && (c = {}, Z(n, function(x) {
1203
- return c[x] = 1;
1204
- }), n = c), n = En(a, n)), y = a.length; y--; )
1205
- if (~u.indexOf(a[y])) {
1206
- d = l[y], n === "all" ? (h[y] = n, p = d, _ = {}) : (_ = h[y] = h[y] || {}, p = n);
1207
- for (c in p)
1208
- m = d && d[c], m && ((!("kill" in m.d) || m.d.kill(c) === !0) && Ne(this, m, "_pt"), delete d[c]), _ !== "all" && (_[c] = 1);
1209
- }
1210
- return this._initted && !this._pt && f && se(this), this;
1211
- }, t.to = function(i, n) {
1212
- return new t(i, n, arguments[2]);
1213
- }, t.from = function(i, n) {
1214
- return ue(1, arguments);
1215
- }, t.delayedCall = function(i, n, s, a) {
1216
- return new t(n, 0, {
1217
- immediateRender: !1,
1218
- lazy: !1,
1219
- overwrite: !1,
1220
- delay: i,
1221
- onComplete: n,
1222
- onReverseComplete: n,
1223
- onCompleteParams: s,
1224
- onReverseCompleteParams: s,
1225
- callbackScope: a
1226
- });
1227
- }, t.fromTo = function(i, n, s) {
1228
- return ue(2, arguments);
1229
- }, t.set = function(i, n) {
1230
- return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(i, n);
1231
- }, t.killTweensOf = function(i, n, s) {
1232
- return E.killTweensOf(i, n, s);
1233
- }, t;
1234
- })(_e);
1235
- ut(j.prototype, {
1236
- _targets: [],
1237
- _lazy: 0,
1238
- _startAt: 0,
1239
- _op: 0,
1240
- _onInit: 0
1241
- });
1242
- Z("staggerTo,staggerFrom,staggerFromTo", function(o) {
1243
- j[o] = function() {
1244
- var t = new H(), e = Ze.call(arguments, 0);
1245
- return e.splice(o === "staggerFromTo" ? 5 : 4, 0, 0), t[o].apply(t, e);
1246
- };
1247
- });
1248
- var yr = function(t, e, r) {
1249
- return t[e] = r;
1250
- }, Ai = function(t, e, r) {
1251
- return t[e](r);
1252
- }, In = function(t, e, r, i) {
1253
- return t[e](i.fp, r);
1254
- }, Fn = function(t, e, r) {
1255
- return t.setAttribute(e, r);
1256
- }, xr = function(t, e) {
1257
- return I(t[e]) ? Ai : ur(t[e]) && t.setAttribute ? Fn : yr;
1258
- }, Ni = function(t, e) {
1259
- return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
1260
- }, Ln = function(t, e) {
1261
- return e.set(e.t, e.p, !!(e.s + e.c * t), e);
1262
- }, Ei = function(t, e) {
1263
- var r = e._pt, i = "";
1264
- if (!t && e.b)
1265
- i = e.b;
1266
- else if (t === 1 && e.e)
1267
- i = e.e;
1268
- else {
1269
- for (; r; )
1270
- i = r.p + (r.m ? r.m(r.s + r.c * t) : Math.round((r.s + r.c * t) * 1e4) / 1e4) + i, r = r._next;
1271
- i += e.c;
1272
- }
1273
- e.set(e.t, e.p, i, e);
1274
- }, vr = function(t, e) {
1275
- for (var r = e._pt; r; )
1276
- r.r(t, r.d), r = r._next;
1277
- }, jn = function(t, e, r, i) {
1278
- for (var n = this._pt, s; n; )
1279
- s = n._next, n.p === i && n.modifier(t, e, r), n = s;
1280
- }, Bn = function(t) {
1281
- for (var e = this._pt, r, i; e; )
1282
- i = e._next, e.p === t && !e.op || e.op === t ? Ne(this, e, "_pt") : e.dep || (r = 1), e = i;
1283
- return !r;
1284
- }, qn = function(t, e, r, i) {
1285
- i.mSet(t, e, i.m.call(i.tween, r, i.mt), i);
1286
- }, zi = function(t) {
1287
- for (var e = t._pt, r, i, n, s; e; ) {
1288
- for (r = e._next, i = n; i && i.pr > e.pr; )
1289
- i = i._next;
1290
- (e._prev = i ? i._prev : s) ? e._prev._next = e : n = e, (e._next = i) ? i._prev = e : s = e, e = r;
1291
- }
1292
- t._pt = n;
1293
- }, Q = /* @__PURE__ */ (function() {
1294
- function o(e, r, i, n, s, a, u, l, f) {
1295
- this.t = r, this.s = n, this.c = s, this.p = i, this.r = a || Ni, this.d = u || this, this.set = l || yr, this.pr = f || 0, this._next = e, e && (e._prev = this);
1296
- }
1297
- var t = o.prototype;
1298
- return t.modifier = function(r, i, n) {
1299
- this.mSet = this.mSet || this.set, this.set = qn, this.m = r, this.mt = n, this.tween = i;
1300
- }, o;
1301
- })();
1302
- Z(dr + "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(o) {
1303
- return hr[o] = 1;
1304
- });
1305
- ot.TweenMax = ot.TweenLite = j;
1306
- ot.TimelineLite = ot.TimelineMax = H;
1307
- E = new H({
1308
- sortChildren: !1,
1309
- defaults: Kt,
1310
- autoRemoveChildren: !0,
1311
- id: "root",
1312
- smoothChildTiming: !0
1313
- });
1314
- at.stringFilter = Si;
1315
- var qt = [], Te = {}, Vn = [], Ar = 0, Un = 0, qe = function(t) {
1316
- return (Te[t] || Vn).map(function(e) {
1317
- return e();
1318
- });
1319
- }, er = function() {
1320
- var t = Date.now(), e = [];
1321
- t - Ar > 2 && (qe("matchMediaInit"), qt.forEach(function(r) {
1322
- var i = r.queries, n = r.conditions, s, a, u, l;
1323
- for (a in i)
1324
- s = _t.matchMedia(i[a]).matches, s && (u = 1), s !== n[a] && (n[a] = s, l = 1);
1325
- l && (r.revert(), u && e.push(r));
1326
- }), qe("matchMediaRevert"), e.forEach(function(r) {
1327
- return r.onMatch(r, function(i) {
1328
- return r.add(null, i);
1329
- });
1330
- }), Ar = t, qe("matchMedia"));
1331
- }, Ii = /* @__PURE__ */ (function() {
1332
- function o(e, r) {
1333
- this.selector = r && Qe(r), this.data = [], this._r = [], this.isReverted = !1, this.id = Un++, e && this.add(e);
1334
- }
1335
- var t = o.prototype;
1336
- return t.add = function(r, i, n) {
1337
- I(r) && (n = i, i = r, r = I);
1338
- var s = this, a = function() {
1339
- var l = N, f = s.selector, h;
1340
- return l && l !== s && l.data.push(s), n && (s.selector = Qe(n)), N = s, h = i.apply(s, arguments), I(h) && s._r.push(h), N = l, s.selector = f, s.isReverted = !1, h;
1341
- };
1342
- return s.last = a, r === I ? a(s, function(u) {
1343
- return s.add(null, u);
1344
- }) : r ? s[r] = a : a;
1345
- }, t.ignore = function(r) {
1346
- var i = N;
1347
- N = null, r(this), N = i;
1348
- }, t.getTweens = function() {
1349
- var r = [];
1350
- return this.data.forEach(function(i) {
1351
- return i instanceof o ? r.push.apply(r, i.getTweens()) : i instanceof j && !(i.parent && i.parent.data === "nested") && r.push(i);
1352
- }), r;
1353
- }, t.clear = function() {
1354
- this._r.length = this.data.length = 0;
1355
- }, t.kill = function(r, i) {
1356
- var n = this;
1357
- if (r ? (function() {
1358
- for (var a = n.getTweens(), u = n.data.length, l; u--; )
1359
- l = n.data[u], l.data === "isFlip" && (l.revert(), l.getChildren(!0, !0, !1).forEach(function(f) {
1360
- return a.splice(a.indexOf(f), 1);
1361
- }));
1362
- for (a.map(function(f) {
1363
- return {
1364
- g: f._dur || f._delay || f._sat && !f._sat.vars.immediateRender ? f.globalTime(0) : -1 / 0,
1365
- t: f
1366
- };
1367
- }).sort(function(f, h) {
1368
- return h.g - f.g || -1 / 0;
1369
- }).forEach(function(f) {
1370
- return f.t.revert(r);
1371
- }), u = n.data.length; u--; )
1372
- l = n.data[u], l instanceof H ? l.data !== "nested" && (l.scrollTrigger && l.scrollTrigger.revert(), l.kill()) : !(l instanceof j) && l.revert && l.revert(r);
1373
- n._r.forEach(function(f) {
1374
- return f(r, n);
1375
- }), n.isReverted = !0;
1376
- })() : this.data.forEach(function(a) {
1377
- return a.kill && a.kill();
1378
- }), this.clear(), i)
1379
- for (var s = qt.length; s--; )
1380
- qt[s].id === this.id && qt.splice(s, 1);
1381
- }, t.revert = function(r) {
1382
- this.kill(r || {});
1383
- }, o;
1384
- })(), Yn = /* @__PURE__ */ (function() {
1385
- function o(e) {
1386
- this.contexts = [], this.scope = e, N && N.data.push(this);
1387
- }
1388
- var t = o.prototype;
1389
- return t.add = function(r, i, n) {
1390
- gt(r) || (r = {
1391
- matches: r
1392
- });
1393
- var s = new Ii(0, n || this.scope), a = s.conditions = {}, u, l, f;
1394
- N && !s.selector && (s.selector = N.selector), this.contexts.push(s), i = s.add("onMatch", i), s.queries = r;
1395
- for (l in r)
1396
- l === "all" ? f = 1 : (u = _t.matchMedia(r[l]), u && (qt.indexOf(s) < 0 && qt.push(s), (a[l] = u.matches) && (f = 1), u.addListener ? u.addListener(er) : u.addEventListener("change", er)));
1397
- return f && i(s, function(h) {
1398
- return s.add(null, h);
1399
- }), this;
1400
- }, t.revert = function(r) {
1401
- this.kill(r || {});
1402
- }, t.kill = function(r) {
1403
- this.contexts.forEach(function(i) {
1404
- return i.kill(r, !0);
1405
- });
1406
- }, o;
1407
- })(), De = {
1408
- registerPlugin: function() {
1409
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
1410
- e[r] = arguments[r];
1411
- e.forEach(function(i) {
1412
- return bi(i);
1413
- });
1414
- },
1415
- timeline: function(t) {
1416
- return new H(t);
1417
- },
1418
- getTweensOf: function(t, e) {
1419
- return E.getTweensOf(t, e);
1420
- },
1421
- getProperty: function(t, e, r, i) {
1422
- U(t) && (t = ct(t)[0]);
1423
- var n = Lt(t || {}).get, s = r ? ui : oi;
1424
- return r === "native" && (r = ""), t && (e ? s((rt[e] && rt[e].get || n)(t, e, r, i)) : function(a, u, l) {
1425
- return s((rt[a] && rt[a].get || n)(t, a, u, l));
1426
- });
1427
- },
1428
- quickSetter: function(t, e, r) {
1429
- if (t = ct(t), t.length > 1) {
1430
- var i = t.map(function(f) {
1431
- return et.quickSetter(f, e, r);
1432
- }), n = i.length;
1433
- return function(f) {
1434
- for (var h = n; h--; )
1435
- i[h](f);
1436
- };
1437
- }
1438
- t = t[0] || {};
1439
- var s = rt[e], a = Lt(t), u = a.harness && (a.harness.aliases || {})[e] || e, l = s ? function(f) {
1440
- var h = new s();
1441
- Wt._pt = 0, h.init(t, r ? f + r : f, Wt, 0, [t]), h.render(1, h), Wt._pt && vr(1, Wt);
1442
- } : a.set(t, u);
1443
- return s ? l : function(f) {
1444
- return l(t, u, r ? f + r : f, a, 1);
1445
- };
1446
- },
1447
- quickTo: function(t, e, r) {
1448
- var i, n = et.to(t, ut((i = {}, i[e] = "+=0.1", i.paused = !0, i.stagger = 0, i), r || {})), s = function(u, l, f) {
1449
- return n.resetTo(e, u, l, f);
1450
- };
1451
- return s.tween = n, s;
1452
- },
1453
- isTweening: function(t) {
1454
- return E.getTweensOf(t, !0).length > 0;
1455
- },
1456
- defaults: function(t) {
1457
- return t && t.ease && (t.ease = Bt(t.ease, Kt.ease)), kr(Kt, t || {});
1458
- },
1459
- config: function(t) {
1460
- return kr(at, t || {});
1461
- },
1462
- registerEffect: function(t) {
1463
- var e = t.name, r = t.effect, i = t.plugins, n = t.defaults, s = t.extendTimeline;
1464
- (i || "").split(",").forEach(function(a) {
1465
- return a && !rt[a] && !ot[a] && fe(e + " effect requires " + a + " plugin.");
1466
- }), Fe[e] = function(a, u, l) {
1467
- return r(ct(a), ut(u || {}, n), l);
1468
- }, s && (H.prototype[e] = function(a, u, l) {
1469
- return this.add(Fe[e](a, gt(u) ? u : (l = u) && {}, this), l);
1470
- });
1471
- },
1472
- registerEase: function(t, e) {
1473
- X[t] = Bt(e);
1474
- },
1475
- parseEase: function(t, e) {
1476
- return arguments.length ? Bt(t, e) : X;
1477
- },
1478
- getById: function(t) {
1479
- return E.getById(t);
1480
- },
1481
- exportRoot: function(t, e) {
1482
- t === void 0 && (t = {});
1483
- var r = new H(t), i, n;
1484
- for (r.smoothChildTiming = K(t.smoothChildTiming), E.remove(r), r._dp = 0, r._time = r._tTime = E._time, i = E._first; i; )
1485
- n = i._next, (e || !(!i._dur && i instanceof j && i.vars.onComplete === i._targets[0])) && pt(r, i, i._start - i._delay), i = n;
1486
- return pt(E, r, 0), r;
1487
- },
1488
- context: function(t, e) {
1489
- return t ? new Ii(t, e) : N;
1490
- },
1491
- matchMedia: function(t) {
1492
- return new Yn(t);
1493
- },
1494
- matchMediaRefresh: function() {
1495
- return qt.forEach(function(t) {
1496
- var e = t.conditions, r, i;
1497
- for (i in e)
1498
- e[i] && (e[i] = !1, r = 1);
1499
- r && t.revert();
1500
- }) || er();
1501
- },
1502
- addEventListener: function(t, e) {
1503
- var r = Te[t] || (Te[t] = []);
1504
- ~r.indexOf(e) || r.push(e);
1505
- },
1506
- removeEventListener: function(t, e) {
1507
- var r = Te[t], i = r && r.indexOf(e);
1508
- i >= 0 && r.splice(i, 1);
1509
- },
1510
- utils: {
1511
- wrap: wn,
1512
- wrapYoyo: Tn,
1513
- distribute: pi,
1514
- random: gi,
1515
- snap: mi,
1516
- normalize: bn,
1517
- getUnit: G,
1518
- clamp: gn,
1519
- splitColor: wi,
1520
- toArray: ct,
1521
- selector: Qe,
1522
- mapRange: xi,
1523
- pipe: xn,
1524
- unitize: vn,
1525
- interpolate: Sn,
1526
- shuffle: _i
1527
- },
1528
- install: ri,
1529
- effects: Fe,
1530
- ticker: nt,
1531
- updateRoot: H.updateRoot,
1532
- plugins: rt,
1533
- globalTimeline: E,
1534
- core: {
1535
- PropTween: Q,
1536
- globals: ii,
1537
- Tween: j,
1538
- Timeline: H,
1539
- Animation: _e,
1540
- getCache: Lt,
1541
- _removeLinkedListItem: Ne,
1542
- reverting: function() {
1543
- return W;
1544
- },
1545
- context: function(t) {
1546
- return t && N && (N.data.push(t), t._ctx = N), N;
1547
- },
1548
- suppressOverwrites: function(t) {
1549
- return or = t;
1550
- }
1551
- }
1552
- };
1553
- Z("to,from,fromTo,delayedCall,set,killTweensOf", function(o) {
1554
- return De[o] = j[o];
1555
- });
1556
- nt.add(H.updateRoot);
1557
- Wt = De.to({}, {
1558
- duration: 0
1559
- });
1560
- var Xn = function(t, e) {
1561
- for (var r = t._pt; r && r.p !== e && r.op !== e && r.fp !== e; )
1562
- r = r._next;
1563
- return r;
1564
- }, Wn = function(t, e) {
1565
- var r = t._targets, i, n, s;
1566
- for (i in e)
1567
- for (n = r.length; n--; )
1568
- s = t._ptLookup[n][i], s && (s = s.d) && (s._pt && (s = Xn(s, i)), s && s.modifier && s.modifier(e[i], t, r[n], i));
1569
- }, Ve = function(t, e) {
1570
- return {
1571
- name: t,
1572
- headless: 1,
1573
- rawVars: 1,
1574
- //don't pre-process function-based values or "random()" strings.
1575
- init: function(i, n, s) {
1576
- s._onInit = function(a) {
1577
- var u, l;
1578
- if (U(n) && (u = {}, Z(n, function(f) {
1579
- return u[f] = 1;
1580
- }), n = u), e) {
1581
- u = {};
1582
- for (l in n)
1583
- u[l] = e(n[l]);
1584
- n = u;
1585
- }
1586
- Wn(a, n);
1587
- };
1588
- }
1589
- };
1590
- }, et = De.registerPlugin({
1591
- name: "attr",
1592
- init: function(t, e, r, i, n) {
1593
- var s, a, u;
1594
- this.tween = r;
1595
- for (s in e)
1596
- u = t.getAttribute(s) || "", a = this.add(t, "setAttribute", (u || 0) + "", e[s], i, n, 0, 0, s), a.op = s, a.b = u, this._props.push(s);
1597
- },
1598
- render: function(t, e) {
1599
- for (var r = e._pt; r; )
1600
- W ? r.set(r.t, r.p, r.b, r) : r.r(t, r.d), r = r._next;
1601
- }
1602
- }, {
1603
- name: "endArray",
1604
- headless: 1,
1605
- init: function(t, e) {
1606
- for (var r = e.length; r--; )
1607
- this.add(t, r, t[r] || 0, e[r], 0, 0, 0, 0, 0, 1);
1608
- }
1609
- }, Ve("roundProps", Je), Ve("modifiers"), Ve("snap", mi)) || De;
1610
- j.version = H.version = et.version = "3.13.0";
1611
- ei = 1;
1612
- lr() && te();
1613
- /*!
1614
- * CSSPlugin 3.13.0
1615
- * https://gsap.com
1616
- *
1617
- * Copyright 2008-2025, GreenSock. All rights reserved.
1618
- * Subject to the terms at https://gsap.com/standard-license
1619
- * @author: Jack Doyle, jack@greensock.com
1620
- */
1621
- var Nr, Ct, $t, br, Ft, Er, wr, Gn = function() {
1622
- return typeof window < "u";
1623
- }, wt = {}, It = 180 / Math.PI, Ht = Math.PI / 180, Yt = Math.atan2, zr = 1e8, Tr = /([A-Z])/g, $n = /(left|right|width|margin|padding|x)/i, Hn = /[\s,\(]\S/, mt = {
1624
- autoAlpha: "opacity,visibility",
1625
- scale: "scaleX,scaleY",
1626
- alpha: "opacity"
1627
- }, rr = function(t, e) {
1628
- return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1629
- }, Kn = function(t, e) {
1630
- return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1631
- }, Zn = function(t, e) {
1632
- return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
1633
- }, Qn = function(t, e) {
1634
- var r = e.s + e.c * t;
1635
- e.set(e.t, e.p, ~~(r + (r < 0 ? -0.5 : 0.5)) + e.u, e);
1636
- }, Fi = function(t, e) {
1637
- return e.set(e.t, e.p, t ? e.e : e.b, e);
1638
- }, Li = function(t, e) {
1639
- return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
1640
- }, Jn = function(t, e, r) {
1641
- return t.style[e] = r;
1642
- }, ts = function(t, e, r) {
1643
- return t.style.setProperty(e, r);
1644
- }, es = function(t, e, r) {
1645
- return t._gsap[e] = r;
1646
- }, rs = function(t, e, r) {
1647
- return t._gsap.scaleX = t._gsap.scaleY = r;
1648
- }, is = function(t, e, r, i, n) {
1649
- var s = t._gsap;
1650
- s.scaleX = s.scaleY = r, s.renderTransform(n, s);
1651
- }, ns = function(t, e, r, i, n) {
1652
- var s = t._gsap;
1653
- s[e] = r, s.renderTransform(n, s);
1654
- }, z = "transform", J = z + "Origin", ss = function o(t, e) {
1655
- var r = this, i = this.target, n = i.style, s = i._gsap;
1656
- if (t in wt && n) {
1657
- if (this.tfm = this.tfm || {}, t !== "transform")
1658
- t = mt[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
1659
- return r.tfm[a] = vt(i, a);
1660
- }) : this.tfm[t] = s.x ? s[t] : vt(i, t), t === J && (this.tfm.zOrigin = s.zOrigin);
1661
- else
1662
- return mt.transform.split(",").forEach(function(a) {
1663
- return o.call(r, a, e);
1664
- });
1665
- if (this.props.indexOf(z) >= 0)
1666
- return;
1667
- s.svg && (this.svgo = i.getAttribute("data-svg-origin"), this.props.push(J, e, "")), t = z;
1668
- }
1669
- (n || e) && this.props.push(t, e, n[t]);
1670
- }, ji = function(t) {
1671
- t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
1672
- }, as = function() {
1673
- var t = this.props, e = this.target, r = e.style, i = e._gsap, n, s;
1674
- for (n = 0; n < t.length; n += 3)
1675
- t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? r[t[n]] = t[n + 2] : r.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(Tr, "-$1").toLowerCase());
1676
- if (this.tfm) {
1677
- for (s in this.tfm)
1678
- i[s] = this.tfm[s];
1679
- i.svg && (i.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = wr(), (!n || !n.isStart) && !r[z] && (ji(r), i.zOrigin && r[J] && (r[J] += " " + i.zOrigin + "px", i.zOrigin = 0, i.renderTransform()), i.uncache = 1);
1680
- }
1681
- }, Bi = function(t, e) {
1682
- var r = {
1683
- target: t,
1684
- props: [],
1685
- revert: as,
1686
- save: ss
1687
- };
1688
- return t._gsap || et.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(i) {
1689
- return r.save(i);
1690
- }), r;
1691
- }, qi, ir = function(t, e) {
1692
- var r = Ct.createElementNS ? Ct.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Ct.createElement(t);
1693
- return r && r.style ? r : Ct.createElement(t);
1694
- }, ht = function o(t, e, r) {
1695
- var i = getComputedStyle(t);
1696
- return i[e] || i.getPropertyValue(e.replace(Tr, "-$1").toLowerCase()) || i.getPropertyValue(e) || !r && o(t, ee(e) || e, 1) || "";
1697
- }, Ir = "O,Moz,ms,Ms,Webkit".split(","), ee = function(t, e, r) {
1698
- var i = e || Ft, n = i.style, s = 5;
1699
- if (t in n && !r)
1700
- return t;
1701
- for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(Ir[s] + t in n); )
1702
- ;
1703
- return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? Ir[s] : "") + t;
1704
- }, nr = function() {
1705
- Gn() && window.document && (Nr = window, Ct = Nr.document, $t = Ct.documentElement, Ft = ir("div") || {
1706
- style: {}
1707
- }, ir("div"), z = ee(z), J = z + "Origin", Ft.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", qi = !!ee("perspective"), wr = et.core.reverting, br = 1);
1708
- }, Fr = function(t) {
1709
- var e = t.ownerSVGElement, r = ir("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), i = t.cloneNode(!0), n;
1710
- i.style.display = "block", r.appendChild(i), $t.appendChild(r);
1711
- try {
1712
- n = i.getBBox();
1713
- } catch {
1714
- }
1715
- return r.removeChild(i), $t.removeChild(r), n;
1716
- }, Lr = function(t, e) {
1717
- for (var r = e.length; r--; )
1718
- if (t.hasAttribute(e[r]))
1719
- return t.getAttribute(e[r]);
1720
- }, Vi = function(t) {
1721
- var e, r;
1722
- try {
1723
- e = t.getBBox();
1724
- } catch {
1725
- e = Fr(t), r = 1;
1726
- }
1727
- return e && (e.width || e.height) || r || (e = Fr(t)), e && !e.width && !e.x && !e.y ? {
1728
- x: +Lr(t, ["x", "cx", "x1"]) || 0,
1729
- y: +Lr(t, ["y", "cy", "y1"]) || 0,
1730
- width: 0,
1731
- height: 0
1732
- } : e;
1733
- }, Ui = function(t) {
1734
- return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && Vi(t));
1735
- }, Vt = function(t, e) {
1736
- if (e) {
1737
- var r = t.style, i;
1738
- e in wt && e !== J && (e = z), r.removeProperty ? (i = e.substr(0, 2), (i === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), r.removeProperty(i === "--" ? e : e.replace(Tr, "-$1").toLowerCase())) : r.removeAttribute(e);
1739
- }
1740
- }, Pt = function(t, e, r, i, n, s) {
1741
- var a = new Q(t._pt, e, r, 0, 1, s ? Li : Fi);
1742
- return t._pt = a, a.b = i, a.e = n, t._props.push(r), a;
1743
- }, jr = {
1744
- deg: 1,
1745
- rad: 1,
1746
- turn: 1
1747
- }, os = {
1748
- grid: 1,
1749
- flex: 1
1750
- }, Rt = function o(t, e, r, i) {
1751
- var n = parseFloat(r) || 0, s = (r + "").trim().substr((n + "").length) || "px", a = Ft.style, u = $n.test(e), l = t.tagName.toLowerCase() === "svg", f = (l ? "client" : "offset") + (u ? "Width" : "Height"), h = 100, d = i === "px", _ = i === "%", p, c, m, y;
1752
- if (i === s || !n || jr[i] || jr[s])
1753
- return n;
1754
- if (s !== "px" && !d && (n = o(t, e, r, "px")), y = t.getCTM && Ui(t), (_ || s === "%") && (wt[e] || ~e.indexOf("adius")))
1755
- return p = y ? t.getBBox()[u ? "width" : "height"] : t[f], F(_ ? n / p * h : n / 100 * p);
1756
- if (a[u ? "width" : "height"] = h + (d ? s : i), c = i !== "rem" && ~e.indexOf("adius") || i === "em" && t.appendChild && !l ? t : t.parentNode, y && (c = (t.ownerSVGElement || {}).parentNode), (!c || c === Ct || !c.appendChild) && (c = Ct.body), m = c._gsap, m && _ && m.width && u && m.time === nt.time && !m.uncache)
1757
- return F(n / m.width * h);
1758
- if (_ && (e === "height" || e === "width")) {
1759
- var x = t.style[e];
1760
- t.style[e] = h + i, p = t[f], x ? t.style[e] = x : Vt(t, e);
1761
- } else
1762
- (_ || s === "%") && !os[ht(c, "display")] && (a.position = ht(t, "position")), c === t && (a.position = "static"), c.appendChild(Ft), p = Ft[f], c.removeChild(Ft), a.position = "absolute";
1763
- return u && _ && (m = Lt(c), m.time = nt.time, m.width = c[f]), F(d ? p * n / h : p && n ? h / p * n : 0);
1764
- }, vt = function(t, e, r, i) {
1765
- var n;
1766
- return br || nr(), e in mt && e !== "transform" && (e = mt[e], ~e.indexOf(",") && (e = e.split(",")[0])), wt[e] && e !== "transform" ? (n = me(t, i), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Me(ht(t, J)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || i || ~(n + "").indexOf("calc(")) && (n = Re[e] && Re[e](t, e, r) || ht(t, e) || si(t, e) || (e === "opacity" ? 1 : 0))), r && !~(n + "").trim().indexOf(" ") ? Rt(t, e, n, r) + r : n;
1767
- }, us = function(t, e, r, i) {
1768
- if (!r || r === "none") {
1769
- var n = ee(e, t, 1), s = n && ht(t, n, 1);
1770
- s && s !== r ? (e = n, r = s) : e === "borderColor" && (r = ht(t, "borderTopColor"));
1771
- }
1772
- var a = new Q(this._pt, t.style, e, 0, 1, Ei), u = 0, l = 0, f, h, d, _, p, c, m, y, x, v, b, g;
1773
- if (a.b = r, a.e = i, r += "", i += "", i.substring(0, 6) === "var(--" && (i = ht(t, i.substring(4, i.indexOf(")")))), i === "auto" && (c = t.style[e], t.style[e] = i, i = ht(t, e) || i, c ? t.style[e] = c : Vt(t, e)), f = [r, i], Si(f), r = f[0], i = f[1], d = r.match(Xt) || [], g = i.match(Xt) || [], g.length) {
1774
- for (; h = Xt.exec(i); )
1775
- m = h[0], x = i.substring(u, h.index), p ? p = (p + 1) % 5 : (x.substr(-5) === "rgba(" || x.substr(-5) === "hsla(") && (p = 1), m !== (c = d[l++] || "") && (_ = parseFloat(c) || 0, b = c.substr((_ + "").length), m.charAt(1) === "=" && (m = Gt(_, m) + b), y = parseFloat(m), v = m.substr((y + "").length), u = Xt.lastIndex - v.length, v || (v = v || at.units[e] || b, u === i.length && (i += v, a.e += v)), b !== v && (_ = Rt(t, e, c, v) || 0), a._pt = {
1776
- _next: a._pt,
1777
- p: x || l === 1 ? x : ",",
1778
- //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.
1779
- s: _,
1780
- c: y - _,
1781
- m: p && p < 4 || e === "zIndex" ? Math.round : 0
1782
- });
1783
- a.c = u < i.length ? i.substring(u, i.length) : "";
1784
- } else
1785
- a.r = e === "display" && i === "none" ? Li : Fi;
1786
- return Jr.test(i) && (a.e = 0), this._pt = a, a;
1787
- }, Br = {
1788
- top: "0%",
1789
- bottom: "100%",
1790
- left: "0%",
1791
- right: "100%",
1792
- center: "50%"
1793
- }, ls = function(t) {
1794
- var e = t.split(" "), r = e[0], i = e[1] || "50%";
1795
- return (r === "top" || r === "bottom" || i === "left" || i === "right") && (t = r, r = i, i = t), e[0] = Br[r] || r, e[1] = Br[i] || i, e.join(" ");
1796
- }, fs = function(t, e) {
1797
- if (e.tween && e.tween._time === e.tween._dur) {
1798
- var r = e.t, i = r.style, n = e.u, s = r._gsap, a, u, l;
1799
- if (n === "all" || n === !0)
1800
- i.cssText = "", u = 1;
1801
- else
1802
- for (n = n.split(","), l = n.length; --l > -1; )
1803
- a = n[l], wt[a] && (u = 1, a = a === "transformOrigin" ? J : z), Vt(r, a);
1804
- u && (Vt(r, z), s && (s.svg && r.removeAttribute("transform"), i.scale = i.rotate = i.translate = "none", me(r, 1), s.uncache = 1, ji(i)));
1805
- }
1806
- }, Re = {
1807
- clearProps: function(t, e, r, i, n) {
1808
- if (n.data !== "isFromStart") {
1809
- var s = t._pt = new Q(t._pt, e, r, 0, 0, fs);
1810
- return s.u = i, s.pr = -10, s.tween = n, t._props.push(r), 1;
1811
- }
1812
- }
1813
- /* className feature (about 0.4kb gzipped).
1814
- , className(plugin, target, property, endValue, tween) {
1815
- let _renderClassName = (ratio, data) => {
1816
- data.css.render(ratio, data.css);
1817
- if (!ratio || ratio === 1) {
1818
- let inline = data.rmv,
1819
- target = data.t,
1820
- p;
1821
- target.setAttribute("class", ratio ? data.e : data.b);
1822
- for (p in inline) {
1823
- _removeProperty(target, p);
1824
- }
1825
- }
1826
- },
1827
- _getAllStyles = (target) => {
1828
- let styles = {},
1829
- computed = getComputedStyle(target),
1830
- p;
1831
- for (p in computed) {
1832
- if (isNaN(p) && p !== "cssText" && p !== "length") {
1833
- styles[p] = computed[p];
1834
- }
1835
- }
1836
- _setDefaults(styles, _parseTransform(target, 1));
1837
- return styles;
1838
- },
1839
- startClassList = target.getAttribute("class"),
1840
- style = target.style,
1841
- cssText = style.cssText,
1842
- cache = target._gsap,
1843
- classPT = cache.classPT,
1844
- inlineToRemoveAtEnd = {},
1845
- 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) : "")},
1846
- changingVars = {},
1847
- startVars = _getAllStyles(target),
1848
- transformRelated = /(transform|perspective)/i,
1849
- endVars, p;
1850
- if (classPT) {
1851
- classPT.r(1, classPT.d);
1852
- _removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
1853
- }
1854
- target.setAttribute("class", data.e);
1855
- endVars = _getAllStyles(target, true);
1856
- target.setAttribute("class", startClassList);
1857
- for (p in endVars) {
1858
- if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
1859
- changingVars[p] = endVars[p];
1860
- if (!style[p] && style[p] !== "0") {
1861
- inlineToRemoveAtEnd[p] = 1;
1862
- }
1863
- }
1864
- }
1865
- cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
1866
- 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/.
1867
- 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).
1868
- }
1869
- _parseTransform(target, true); //to clear the caching of transforms
1870
- data.css = new gsap.plugins.css();
1871
- data.css.init(target, changingVars, tween);
1872
- plugin._props.push(...data.css._props);
1873
- return 1;
1874
- }
1875
- */
1876
- }, pe = [1, 0, 0, 1, 0, 0], Yi = {}, Xi = function(t) {
1877
- return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
1878
- }, qr = function(t) {
1879
- var e = ht(t, z);
1880
- return Xi(e) ? pe : e.substr(7).match(Qr).map(F);
1881
- }, Sr = function(t, e) {
1882
- var r = t._gsap || Lt(t), i = t.style, n = qr(t), s, a, u, l;
1883
- return r.svg && t.getAttribute("transform") ? (u = t.transform.baseVal.consolidate().matrix, n = [u.a, u.b, u.c, u.d, u.e, u.f], n.join(",") === "1,0,0,1,0,0" ? pe : n) : (n === pe && !t.offsetParent && t !== $t && !r.svg && (u = i.display, i.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (l = 1, a = t.nextElementSibling, $t.appendChild(t)), n = qr(t), u ? i.display = u : Vt(t, "display"), l && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : $t.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1884
- }, sr = function(t, e, r, i, n, s) {
1885
- var a = t._gsap, u = n || Sr(t, !0), l = a.xOrigin || 0, f = a.yOrigin || 0, h = a.xOffset || 0, d = a.yOffset || 0, _ = u[0], p = u[1], c = u[2], m = u[3], y = u[4], x = u[5], v = e.split(" "), b = parseFloat(v[0]) || 0, g = parseFloat(v[1]) || 0, T, S, C, w;
1886
- r ? u !== pe && (S = _ * m - p * c) && (C = b * (m / S) + g * (-c / S) + (c * x - m * y) / S, w = b * (-p / S) + g * (_ / S) - (_ * x - p * y) / S, b = C, g = w) : (T = Vi(t), b = T.x + (~v[0].indexOf("%") ? b / 100 * T.width : b), g = T.y + (~(v[1] || v[0]).indexOf("%") ? g / 100 * T.height : g)), i || i !== !1 && a.smooth ? (y = b - l, x = g - f, a.xOffset = h + (y * _ + x * c) - y, a.yOffset = d + (y * p + x * m) - x) : a.xOffset = a.yOffset = 0, a.xOrigin = b, a.yOrigin = g, a.smooth = !!i, a.origin = e, a.originIsAbsolute = !!r, t.style[J] = "0px 0px", s && (Pt(s, a, "xOrigin", l, b), Pt(s, a, "yOrigin", f, g), Pt(s, a, "xOffset", h, a.xOffset), Pt(s, a, "yOffset", d, a.yOffset)), t.setAttribute("data-svg-origin", b + " " + g);
1887
- }, me = function(t, e) {
1888
- var r = t._gsap || new Oi(t);
1889
- if ("x" in r && !e && !r.uncache)
1890
- return r;
1891
- var i = t.style, n = r.scaleX < 0, s = "px", a = "deg", u = getComputedStyle(t), l = ht(t, J) || "0", f, h, d, _, p, c, m, y, x, v, b, g, T, S, C, w, k, A, R, M, Y, q, L, V, dt, xe, re, ie, At, Cr, yt, Nt;
1892
- return f = h = d = c = m = y = x = v = b = 0, _ = p = 1, r.svg = !!(t.getCTM && Ui(t)), u.translate && ((u.translate !== "none" || u.scale !== "none" || u.rotate !== "none") && (i[z] = (u.translate !== "none" ? "translate3d(" + (u.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (u.rotate !== "none" ? "rotate(" + u.rotate + ") " : "") + (u.scale !== "none" ? "scale(" + u.scale.split(" ").join(",") + ") " : "") + (u[z] !== "none" ? u[z] : "")), i.scale = i.rotate = i.translate = "none"), S = Sr(t, r.svg), r.svg && (r.uncache ? (dt = t.getBBox(), l = r.xOrigin - dt.x + "px " + (r.yOrigin - dt.y) + "px", V = "") : V = !e && t.getAttribute("data-svg-origin"), sr(t, V || l, !!V || r.originIsAbsolute, r.smooth !== !1, S)), g = r.xOrigin || 0, T = r.yOrigin || 0, S !== pe && (A = S[0], R = S[1], M = S[2], Y = S[3], f = q = S[4], h = L = S[5], S.length === 6 ? (_ = Math.sqrt(A * A + R * R), p = Math.sqrt(Y * Y + M * M), c = A || R ? Yt(R, A) * It : 0, x = M || Y ? Yt(M, Y) * It + c : 0, x && (p *= Math.abs(Math.cos(x * Ht))), r.svg && (f -= g - (g * A + T * M), h -= T - (g * R + T * Y))) : (Nt = S[6], Cr = S[7], re = S[8], ie = S[9], At = S[10], yt = S[11], f = S[12], h = S[13], d = S[14], C = Yt(Nt, At), m = C * It, C && (w = Math.cos(-C), k = Math.sin(-C), V = q * w + re * k, dt = L * w + ie * k, xe = Nt * w + At * k, re = q * -k + re * w, ie = L * -k + ie * w, At = Nt * -k + At * w, yt = Cr * -k + yt * w, q = V, L = dt, Nt = xe), C = Yt(-M, At), y = C * It, C && (w = Math.cos(-C), k = Math.sin(-C), V = A * w - re * k, dt = R * w - ie * k, xe = M * w - At * k, yt = Y * k + yt * w, A = V, R = dt, M = xe), C = Yt(R, A), c = C * It, C && (w = Math.cos(C), k = Math.sin(C), V = A * w + R * k, dt = q * w + L * k, R = R * w - A * k, L = L * w - q * k, A = V, q = dt), m && Math.abs(m) + Math.abs(c) > 359.9 && (m = c = 0, y = 180 - y), _ = F(Math.sqrt(A * A + R * R + M * M)), p = F(Math.sqrt(L * L + Nt * Nt)), C = Yt(q, L), x = Math.abs(C) > 2e-4 ? C * It : 0, b = yt ? 1 / (yt < 0 ? -yt : yt) : 0), r.svg && (V = t.getAttribute("transform"), r.forceCSS = t.setAttribute("transform", "") || !Xi(ht(t, z)), V && t.setAttribute("transform", V))), Math.abs(x) > 90 && Math.abs(x) < 270 && (n ? (_ *= -1, x += c <= 0 ? 180 : -180, c += c <= 0 ? 180 : -180) : (p *= -1, x += x <= 0 ? 180 : -180)), e = e || r.uncache, r.x = f - ((r.xPercent = f && (!e && r.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-f) ? -50 : 0))) ? t.offsetWidth * r.xPercent / 100 : 0) + s, r.y = h - ((r.yPercent = h && (!e && r.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? t.offsetHeight * r.yPercent / 100 : 0) + s, r.z = d + s, r.scaleX = F(_), r.scaleY = F(p), r.rotation = F(c) + a, r.rotationX = F(m) + a, r.rotationY = F(y) + a, r.skewX = x + a, r.skewY = v + a, r.transformPerspective = b + s, (r.zOrigin = parseFloat(l.split(" ")[2]) || !e && r.zOrigin || 0) && (i[J] = Me(l)), r.xOffset = r.yOffset = 0, r.force3D = at.force3D, r.renderTransform = r.svg ? hs : qi ? Wi : cs, r.uncache = 0, r;
1893
- }, Me = function(t) {
1894
- return (t = t.split(" "))[0] + " " + t[1];
1895
- }, Ue = function(t, e, r) {
1896
- var i = G(e);
1897
- return F(parseFloat(e) + parseFloat(Rt(t, "x", r + "px", i))) + i;
1898
- }, cs = function(t, e) {
1899
- e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, Wi(t, e);
1900
- }, Et = "0deg", ne = "0px", zt = ") ", Wi = function(t, e) {
1901
- var r = e || this, i = r.xPercent, n = r.yPercent, s = r.x, a = r.y, u = r.z, l = r.rotation, f = r.rotationY, h = r.rotationX, d = r.skewX, _ = r.skewY, p = r.scaleX, c = r.scaleY, m = r.transformPerspective, y = r.force3D, x = r.target, v = r.zOrigin, b = "", g = y === "auto" && t && t !== 1 || y === !0;
1902
- if (v && (h !== Et || f !== Et)) {
1903
- var T = parseFloat(f) * Ht, S = Math.sin(T), C = Math.cos(T), w;
1904
- T = parseFloat(h) * Ht, w = Math.cos(T), s = Ue(x, s, S * w * -v), a = Ue(x, a, -Math.sin(T) * -v), u = Ue(x, u, C * w * -v + v);
1905
- }
1906
- m !== ne && (b += "perspective(" + m + zt), (i || n) && (b += "translate(" + i + "%, " + n + "%) "), (g || s !== ne || a !== ne || u !== ne) && (b += u !== ne || g ? "translate3d(" + s + ", " + a + ", " + u + ") " : "translate(" + s + ", " + a + zt), l !== Et && (b += "rotate(" + l + zt), f !== Et && (b += "rotateY(" + f + zt), h !== Et && (b += "rotateX(" + h + zt), (d !== Et || _ !== Et) && (b += "skew(" + d + ", " + _ + zt), (p !== 1 || c !== 1) && (b += "scale(" + p + ", " + c + zt), x.style[z] = b || "translate(0, 0)";
1907
- }, hs = function(t, e) {
1908
- var r = e || this, i = r.xPercent, n = r.yPercent, s = r.x, a = r.y, u = r.rotation, l = r.skewX, f = r.skewY, h = r.scaleX, d = r.scaleY, _ = r.target, p = r.xOrigin, c = r.yOrigin, m = r.xOffset, y = r.yOffset, x = r.forceCSS, v = parseFloat(s), b = parseFloat(a), g, T, S, C, w;
1909
- u = parseFloat(u), l = parseFloat(l), f = parseFloat(f), f && (f = parseFloat(f), l += f, u += f), u || l ? (u *= Ht, l *= Ht, g = Math.cos(u) * h, T = Math.sin(u) * h, S = Math.sin(u - l) * -d, C = Math.cos(u - l) * d, l && (f *= Ht, w = Math.tan(l - f), w = Math.sqrt(1 + w * w), S *= w, C *= w, f && (w = Math.tan(f), w = Math.sqrt(1 + w * w), g *= w, T *= w)), g = F(g), T = F(T), S = F(S), C = F(C)) : (g = h, C = d, T = S = 0), (v && !~(s + "").indexOf("px") || b && !~(a + "").indexOf("px")) && (v = Rt(_, "x", s, "px"), b = Rt(_, "y", a, "px")), (p || c || m || y) && (v = F(v + p - (p * g + c * S) + m), b = F(b + c - (p * T + c * C) + y)), (i || n) && (w = _.getBBox(), v = F(v + i / 100 * w.width), b = F(b + n / 100 * w.height)), w = "matrix(" + g + "," + T + "," + S + "," + C + "," + v + "," + b + ")", _.setAttribute("transform", w), x && (_.style[z] = w);
1910
- }, ds = function(t, e, r, i, n) {
1911
- var s = 360, a = U(n), u = parseFloat(n) * (a && ~n.indexOf("rad") ? It : 1), l = u - i, f = i + l + "deg", h, d;
1912
- return a && (h = n.split("_")[1], h === "short" && (l %= s, l !== l % (s / 2) && (l += l < 0 ? s : -s)), h === "cw" && l < 0 ? l = (l + s * zr) % s - ~~(l / s) * s : h === "ccw" && l > 0 && (l = (l - s * zr) % s - ~~(l / s) * s)), t._pt = d = new Q(t._pt, e, r, i, l, Kn), d.e = f, d.u = "deg", t._props.push(r), d;
1913
- }, Vr = function(t, e) {
1914
- for (var r in e)
1915
- t[r] = e[r];
1916
- return t;
1917
- }, _s = function(t, e, r) {
1918
- var i = Vr({}, r._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = r.style, a, u, l, f, h, d, _, p;
1919
- i.svg ? (l = r.getAttribute("transform"), r.setAttribute("transform", ""), s[z] = e, a = me(r, 1), Vt(r, z), r.setAttribute("transform", l)) : (l = getComputedStyle(r)[z], s[z] = e, a = me(r, 1), s[z] = l);
1920
- for (u in wt)
1921
- l = i[u], f = a[u], l !== f && n.indexOf(u) < 0 && (_ = G(l), p = G(f), h = _ !== p ? Rt(r, u, l, p) : parseFloat(l), d = parseFloat(f), t._pt = new Q(t._pt, a, u, h, d - h, rr), t._pt.u = p || 0, t._props.push(u));
1922
- Vr(a, i);
1923
- };
1924
- Z("padding,margin,Width,Radius", function(o, t) {
1925
- var e = "Top", r = "Right", i = "Bottom", n = "Left", s = (t < 3 ? [e, r, i, n] : [e + n, e + r, i + r, i + n]).map(function(a) {
1926
- return t < 2 ? o + a : "border" + a + o;
1927
- });
1928
- Re[t > 1 ? "border" + o : o] = function(a, u, l, f, h) {
1929
- var d, _;
1930
- if (arguments.length < 4)
1931
- return d = s.map(function(p) {
1932
- return vt(a, p, l);
1933
- }), _ = d.join(" "), _.split(d[0]).length === 5 ? d[0] : _;
1934
- d = (f + "").split(" "), _ = {}, s.forEach(function(p, c) {
1935
- return _[p] = d[c] = d[c] || d[(c - 1) / 2 | 0];
1936
- }), a.init(u, _, h);
1937
- };
1938
- });
1939
- var Gi = {
1940
- name: "css",
1941
- register: nr,
1942
- targetTest: function(t) {
1943
- return t.style && t.nodeType;
1944
- },
1945
- init: function(t, e, r, i, n) {
1946
- var s = this._props, a = t.style, u = r.vars.startAt, l, f, h, d, _, p, c, m, y, x, v, b, g, T, S, C;
1947
- br || nr(), this.styles = this.styles || Bi(t), C = this.styles.props, this.tween = r;
1948
- for (c in e)
1949
- if (c !== "autoRound" && (f = e[c], !(rt[c] && Di(c, e, r, i, t, n)))) {
1950
- if (_ = typeof f, p = Re[c], _ === "function" && (f = f.call(r, i, t, n), _ = typeof f), _ === "string" && ~f.indexOf("random(") && (f = he(f)), p)
1951
- p(this, t, c, f, r) && (S = 1);
1952
- else if (c.substr(0, 2) === "--")
1953
- l = (getComputedStyle(t).getPropertyValue(c) + "").trim(), f += "", Ot.lastIndex = 0, Ot.test(l) || (m = G(l), y = G(f)), y ? m !== y && (l = Rt(t, c, l, y) + y) : m && (f += m), this.add(a, "setProperty", l, f, i, n, 0, 0, c), s.push(c), C.push(c, 0, a[c]);
1954
- else if (_ !== "undefined") {
1955
- if (u && c in u ? (l = typeof u[c] == "function" ? u[c].call(r, i, t, n) : u[c], U(l) && ~l.indexOf("random(") && (l = he(l)), G(l + "") || l === "auto" || (l += at.units[c] || G(vt(t, c)) || ""), (l + "").charAt(1) === "=" && (l = vt(t, c))) : l = vt(t, c), d = parseFloat(l), x = _ === "string" && f.charAt(1) === "=" && f.substr(0, 2), x && (f = f.substr(2)), h = parseFloat(f), c in mt && (c === "autoAlpha" && (d === 1 && vt(t, "visibility") === "hidden" && h && (d = 0), C.push("visibility", 0, a.visibility), Pt(this, a, "visibility", d ? "inherit" : "hidden", h ? "inherit" : "hidden", !h)), c !== "scale" && c !== "transform" && (c = mt[c], ~c.indexOf(",") && (c = c.split(",")[0]))), v = c in wt, v) {
1956
- if (this.styles.save(c), _ === "string" && f.substring(0, 6) === "var(--" && (f = ht(t, f.substring(4, f.indexOf(")"))), h = parseFloat(f)), b || (g = t._gsap, g.renderTransform && !e.parseTransform || me(t, e.parseTransform), T = e.smoothOrigin !== !1 && g.smooth, b = this._pt = new Q(this._pt, a, z, 0, 1, g.renderTransform, g, 0, -1), b.dep = 1), c === "scale")
1957
- this._pt = new Q(this._pt, g, "scaleY", g.scaleY, (x ? Gt(g.scaleY, x + h) : h) - g.scaleY || 0, rr), this._pt.u = 0, s.push("scaleY", c), c += "X";
1958
- else if (c === "transformOrigin") {
1959
- C.push(J, 0, a[J]), f = ls(f), g.svg ? sr(t, f, 0, T, 0, this) : (y = parseFloat(f.split(" ")[2]) || 0, y !== g.zOrigin && Pt(this, g, "zOrigin", g.zOrigin, y), Pt(this, a, c, Me(l), Me(f)));
1960
- continue;
1961
- } else if (c === "svgOrigin") {
1962
- sr(t, f, 1, T, 0, this);
1963
- continue;
1964
- } else if (c in Yi) {
1965
- ds(this, g, c, d, x ? Gt(d, x + f) : f);
1966
- continue;
1967
- } else if (c === "smoothOrigin") {
1968
- Pt(this, g, "smooth", g.smooth, f);
1969
- continue;
1970
- } else if (c === "force3D") {
1971
- g[c] = f;
1972
- continue;
1973
- } else if (c === "transform") {
1974
- _s(this, f, t);
1975
- continue;
1976
- }
1977
- } else c in a || (c = ee(c) || c);
1978
- if (v || (h || h === 0) && (d || d === 0) && !Hn.test(f) && c in a)
1979
- m = (l + "").substr((d + "").length), h || (h = 0), y = G(f) || (c in at.units ? at.units[c] : m), m !== y && (d = Rt(t, c, l, y)), this._pt = new Q(this._pt, v ? g : a, c, d, (x ? Gt(d, x + h) : h) - d, !v && (y === "px" || c === "zIndex") && e.autoRound !== !1 ? Qn : rr), this._pt.u = y || 0, m !== y && y !== "%" && (this._pt.b = l, this._pt.r = Zn);
1980
- else if (c in a)
1981
- us.call(this, t, c, l, x ? x + f : f);
1982
- else if (c in t)
1983
- this.add(t, c, l || t[c], x ? x + f : f, i, n);
1984
- else if (c !== "parseTransform") {
1985
- cr(c, f);
1986
- continue;
1987
- }
1988
- v || (c in a ? C.push(c, 0, a[c]) : typeof t[c] == "function" ? C.push(c, 2, t[c]()) : C.push(c, 1, l || t[c])), s.push(c);
1989
- }
1990
- }
1991
- S && zi(this);
1992
- },
1993
- render: function(t, e) {
1994
- if (e.tween._time || !wr())
1995
- for (var r = e._pt; r; )
1996
- r.r(t, r.d), r = r._next;
1997
- else
1998
- e.styles.revert();
1999
- },
2000
- get: vt,
2001
- aliases: mt,
2002
- getSetter: function(t, e, r) {
2003
- var i = mt[e];
2004
- return i && i.indexOf(",") < 0 && (e = i), e in wt && e !== J && (t._gsap.x || vt(t, "x")) ? r && Er === r ? e === "scale" ? rs : es : (Er = r || {}) && (e === "scale" ? is : ns) : t.style && !ur(t.style[e]) ? Jn : ~e.indexOf("-") ? ts : xr(t, e);
2005
- },
2006
- core: {
2007
- _removeProperty: Vt,
2008
- _getMatrix: Sr
2009
- }
2010
- };
2011
- et.utils.checkPrefix = ee;
2012
- et.core.getStyleSaver = Bi;
2013
- (function(o, t, e, r) {
2014
- var i = Z(o + "," + t + "," + e, function(n) {
2015
- wt[n] = 1;
2016
- });
2017
- Z(t, function(n) {
2018
- at.units[n] = "deg", Yi[n] = 1;
2019
- }), mt[i[13]] = o + "," + t, Z(r, function(n) {
2020
- var s = n.split(":");
2021
- mt[s[1]] = i[s[0]];
2022
- });
2023
- })("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");
2024
- Z("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(o) {
2025
- at.units[o] = "px";
2026
- });
2027
- et.registerPlugin(Gi);
2028
- var it = et.registerPlugin(Gi) || et;
2029
- const ps = (o, t) => {
2030
- Gr(
1
+ import { default as ve } from "./Avatar.es.js";
2
+ import { default as we } from "./Button.es.js";
3
+ import { C as Ne, a as Ce } from "./CardProfile-BZajBGbO.js";
4
+ import { default as ke } from "./CheckBox.es.js";
5
+ import { default as Be } from "./CheckboxFormik.es.js";
6
+ import { default as Re, useDialogControl as qe } from "./DialogModal.es.js";
7
+ import { default as Ae, useDrawerDesktop as Te } from "./DrawerDesktop.es.js";
8
+ import { default as Ee, useDrawerMobile as Oe } from "./DrawerMobile.es.js";
9
+ import { default as He } from "./Header.es.js";
10
+ import { default as We } from "./Input.es.js";
11
+ import { default as Me } from "./InputFormik.es.js";
12
+ import { default as Ve } from "./Logo.es.js";
13
+ import { Menu as Xe } from "./Menu.es.js";
14
+ import { default as Je } from "./Pagination.es.js";
15
+ import { default as Qe } from "./ProgressBar.es.js";
16
+ import { default as _e } from "./Select.es.js";
17
+ import { default as tt } from "./Spinner.es.js";
18
+ import { default as rt } from "./SwipeContainer.es.js";
19
+ import { default as nt } from "./TabLinks.es.js";
20
+ import { Table as st, TableBody as lt, TableCaption as ct, TableCell as ut, TableFooter as dt, TableHead as ft, TableHeader as pt, TableRow as mt } from "./Table.es.js";
21
+ import { default as bt } from "./TextArea.es.js";
22
+ import { default as gt } from "./Tooltip.es.js";
23
+ import { u as j } from "./LayoutGeneric-jDE96L2N.js";
24
+ import { L as ht, S as wt } from "./LayoutGeneric-jDE96L2N.js";
25
+ import { j as a } from "./jsx-runtime-ByW6EXIE.js";
26
+ import { c as s } from "./cn-B6yFEsav.js";
27
+ import { useRef as p, useState as v, useLayoutEffect as q, createContext as P, useContext as A, forwardRef as N, useCallback as T, useEffect as C } from "react";
28
+ import { useGSAP as S } from "@gsap/react";
29
+ import c from "gsap";
30
+ import { Icons as b } from "./Icons.es.js";
31
+ import { motion as d, AnimatePresence as k } from "framer-motion";
32
+ import { default as Nt } from "./OtpInput.es.js";
33
+ import { DropZone as St } from "./DropZone.es.js";
34
+ const D = (t, e) => {
35
+ S(
2031
36
  () => {
2032
- if (!o.current) return;
2033
- const e = o.current, r = document.querySelector('[data-main-content="true"]');
2034
- if (t) {
2035
- it.fromTo(
2036
- e,
37
+ if (!t.current) return;
38
+ const o = t.current, r = document.querySelector('[data-main-content="true"]');
39
+ if (e) {
40
+ c.fromTo(
41
+ o,
2037
42
  {
2038
43
  width: "0rem",
2039
44
  opacity: 0
@@ -2044,14 +49,14 @@ const ps = (o, t) => {
2044
49
  duration: 0.4,
2045
50
  ease: "power2.out"
2046
51
  }
2047
- ), r && it.to(r, {
2048
- marginLeft: e.offsetWidth + "px",
52
+ ), r && c.to(r, {
53
+ marginLeft: o.offsetWidth + "px",
2049
54
  duration: 0.4,
2050
55
  ease: "power2.out"
2051
56
  });
2052
- const i = e.querySelectorAll(".secondary-bar-content > *");
2053
- i.length > 0 && it.fromTo(
2054
- i,
57
+ const n = o.querySelectorAll(".secondary-bar-content > *");
58
+ n.length > 0 && c.fromTo(
59
+ n,
2055
60
  {
2056
61
  y: 20,
2057
62
  opacity: 0
@@ -2066,117 +71,117 @@ const ps = (o, t) => {
2066
71
  }
2067
72
  );
2068
73
  } else
2069
- it.to(e, {
74
+ c.to(o, {
2070
75
  width: "0rem",
2071
76
  opacity: 0,
2072
77
  duration: 0.3,
2073
78
  ease: "power2.in"
2074
- }), r && it.to(r, {
79
+ }), r && c.to(r, {
2075
80
  marginLeft: "0px",
2076
81
  duration: 0.3,
2077
82
  ease: "power2.in"
2078
83
  });
2079
84
  },
2080
- { scope: o, dependencies: [t] }
85
+ { scope: t, dependencies: [e] }
2081
86
  );
2082
- }, Ur = ({
2083
- children: o,
2084
- isOpen: t = !1,
2085
- className: e = "",
87
+ }, w = ({
88
+ children: t,
89
+ isOpen: e = !1,
90
+ className: o = "",
2086
91
  width: r = "w-96",
2087
- action: i,
2088
- primarySidebarCollapsed: n,
2089
- onClose: s
92
+ action: n,
93
+ primarySidebarCollapsed: i,
94
+ onClose: l
2090
95
  }) => {
2091
- const a = ge(null), [u, l] = Ye({ left: 0, width: 0 }), { primarySidebarRef: f } = Yr();
2092
- return Ki(() => {
2093
- if (f?.current) {
2094
- const h = f.current.getBoundingClientRect();
2095
- l({
2096
- left: h.width,
2097
- width: h.width
96
+ const u = p(null), [f, m] = v({ left: 0, width: 0 }), { primarySidebarRef: x } = j();
97
+ return q(() => {
98
+ if (x?.current) {
99
+ const g = x.current.getBoundingClientRect();
100
+ m({
101
+ left: g.width,
102
+ width: g.width
2098
103
  });
2099
104
  }
2100
- }, [f, t, n]), ps(a, t), /* @__PURE__ */ P.jsx(P.Fragment, { children: t && /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
2101
- /* @__PURE__ */ P.jsx(
105
+ }, [x, e, i]), D(u, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
106
+ /* @__PURE__ */ a.jsx(
2102
107
  "div",
2103
108
  {
2104
109
  className: "fixed inset-0 bg-black/95 z-20",
2105
110
  style: {
2106
- left: u.left
111
+ left: f.left
2107
112
  },
2108
- onClick: s
113
+ onClick: l
2109
114
  }
2110
115
  ),
2111
- /* @__PURE__ */ P.jsx(
116
+ /* @__PURE__ */ a.jsx(
2112
117
  "div",
2113
118
  {
2114
- ref: a,
2115
- className: tt(
119
+ ref: u,
120
+ className: s(
2116
121
  "h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
2117
122
  "absolute top-0 z-30",
2118
123
  r,
2119
- e
124
+ o
2120
125
  ),
2121
126
  style: {
2122
- left: u.left
127
+ left: f.left
2123
128
  },
2124
- "data-action": i,
2125
- children: /* @__PURE__ */ P.jsx("div", { className: "secondary-bar-content", children: o })
129
+ "data-action": n,
130
+ children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
2126
131
  }
2127
132
  )
2128
133
  ] }) });
2129
- }, ms = ({ children: o, className: t }) => /* @__PURE__ */ P.jsx("div", { className: tt("h-16 ", t), children: o }), gs = ({ children: o, className: t }) => /* @__PURE__ */ P.jsx("div", { className: tt("flex-1 overflow-y-auto p-4", t), children: o }), ys = ({ children: o, className: t }) => /* @__PURE__ */ P.jsx("div", { className: tt("p-4 border-t border-neutral-strong-default", t), children: o }), xs = ({ className: o }) => /* @__PURE__ */ P.jsx("div", { className: tt("flex-1", o) }), js = Object.assign(Ur, {
2130
- Root: Ur,
2131
- Header: ms,
2132
- Content: gs,
2133
- Footer: ys,
2134
- Spacer: xs
2135
- }), $i = Zi(
134
+ }, E = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("h-16 ", e), children: t }), O = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("flex-1 overflow-y-auto p-4", e), children: t }), z = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("p-4 border-t border-neutral-strong-default", e), children: t }), H = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: s("flex-1", t) }), ie = Object.assign(w, {
135
+ Root: w,
136
+ Header: E,
137
+ Content: O,
138
+ Footer: z,
139
+ Spacer: H
140
+ }), I = P(
2136
141
  void 0
2137
- ), Bs = () => {
2138
- const o = Qi($i);
2139
- if (!o)
142
+ ), se = () => {
143
+ const t = A(I);
144
+ if (!t)
2140
145
  throw new Error("useSidebar must be used within a Sidebar.Root");
2141
- return o;
2142
- }, vs = ({
2143
- children: o
146
+ return t;
147
+ }, F = ({
148
+ children: t
2144
149
  }) => {
2145
- const [t, e] = Ye(!1), [r, i] = Ye(!1), n = ge(null), s = () => {
2146
- e(!1), i(!1);
2147
- }, a = () => {
2148
- e(!0), i(!1);
2149
- }, d = {
2150
- isCollapsed: t,
2151
- setIsCollapsed: e,
2152
- navbarRef: n,
150
+ const [e, o] = v(!1), [r, n] = v(!1), i = p(null), l = () => {
151
+ o(!1), n(!1);
152
+ }, u = () => {
153
+ o(!0), n(!1);
154
+ }, L = {
155
+ isCollapsed: e,
156
+ setIsCollapsed: o,
157
+ navbarRef: i,
2153
158
  toggleCollapse: () => {
2154
- t ? s() : a();
159
+ e ? l() : u();
2155
160
  },
2156
161
  activeSecondaryBar: r ? "notifications" : null,
2157
162
  openSecondaryBar: () => {
2158
- i(!0);
163
+ n(!0);
2159
164
  },
2160
165
  closeSecondaryBar: () => {
2161
- i(!1);
166
+ n(!1);
2162
167
  },
2163
168
  toggleSecondaryBar: () => {
2164
- i((_) => !_);
169
+ n((R) => !R);
2165
170
  }
2166
171
  };
2167
- return /* @__PURE__ */ P.jsx($i.Provider, { value: d, children: o });
2168
- }, Ae = (o, t, e, r) => t && (Array.isArray(t) ? t.length > 0 : t) ? o.to(t, e, r) : o, bs = (o, t, e) => {
2169
- Gr(
172
+ return /* @__PURE__ */ a.jsx(I.Provider, { value: L, children: t });
173
+ }, y = (t, e, o, r) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, r) : t, W = (t, e, o) => {
174
+ S(
2170
175
  () => {
2171
- if (!o.current) return;
2172
- const r = it.timeline({
176
+ if (!t.current) return;
177
+ const r = c.timeline({
2173
178
  defaults: { duration: 0.7, ease: "power1.out" }
2174
- }), i = {
2175
- navbar: o.current,
2176
- navLabels: it.utils.toArray(".nav-label"),
2177
- navIconWrappers: it.utils.toArray(".nav-icon-wrapper"),
2178
- navIcons: it.utils.toArray(".nav-icon"),
2179
- navLinkItems: it.utils.toArray(".nav-link-item"),
179
+ }), n = {
180
+ navbar: t.current,
181
+ navLabels: c.utils.toArray(".nav-label"),
182
+ navIconWrappers: c.utils.toArray(".nav-icon-wrapper"),
183
+ navIcons: c.utils.toArray(".nav-icon"),
184
+ navLinkItems: c.utils.toArray(".nav-link-item"),
2180
185
  logoutButton: document.querySelector(".logout-button"),
2181
186
  logoutLabel: document.querySelector(".logout-label"),
2182
187
  logoutIcon: document.querySelector(".logout-icon"),
@@ -2204,20 +209,20 @@ const ps = (o, t) => {
2204
209
  ),
2205
210
  // Secondary bar elements
2206
211
  secondaryBar: document.querySelector(".secondary-bar"),
2207
- secondaryBarContent: it.utils.toArray(".secondary-bar *"),
2208
- badgeInLink: it.utils.toArray(".badge-in-link")
212
+ secondaryBarContent: c.utils.toArray(".secondary-bar *"),
213
+ badgeInLink: c.utils.toArray(".badge-in-link")
2209
214
  };
2210
- t ? ws(r, i) : Ts(r, i), i.secondaryBar && Ss(i.secondaryBar);
215
+ e ? $(r, n) : M(r, n), n.secondaryBar && U(n.secondaryBar);
2211
216
  },
2212
- { scope: o, dependencies: [t, e] }
217
+ { scope: t, dependencies: [e, o] }
2213
218
  );
2214
- }, ws = (o, t) => {
2215
- o.to(t.navbar, {
219
+ }, $ = (t, e) => {
220
+ t.to(e.navbar, {
2216
221
  width: "5rem",
2217
222
  duration: 0.2,
2218
223
  ease: "bounce.out"
2219
224
  }).to(
2220
- t.logo.contenedor,
225
+ e.logo.contenedor,
2221
226
  {
2222
227
  height: 48,
2223
228
  width: 48,
@@ -2226,7 +231,7 @@ const ps = (o, t) => {
2226
231
  },
2227
232
  -1
2228
233
  ).to(
2229
- t.logo.text,
234
+ e.logo.text,
2230
235
  {
2231
236
  opacity: 0,
2232
237
  scale: 0.8,
@@ -2234,16 +239,16 @@ const ps = (o, t) => {
2234
239
  ease: "back.in(1.2)"
2235
240
  },
2236
241
  -1
2237
- ).set(t.logo.text, {
242
+ ).set(e.logo.text, {
2238
243
  display: "none"
2239
244
  }).to(
2240
- t.sidebarHeader,
245
+ e.sidebarHeader,
2241
246
  {
2242
247
  justifyContent: "center",
2243
248
  display: "flex"
2244
249
  },
2245
250
  -1
2246
- ).to(t.logo.icon, {
251
+ ).to(e.logo.icon, {
2247
252
  keyframes: {
2248
253
  "0%": { scale: 1 },
2249
254
  "33%": { scale: 1.5 },
@@ -2253,7 +258,7 @@ const ps = (o, t) => {
2253
258
  duration: 0.6,
2254
259
  ease: "power1.inOut"
2255
260
  }).to(
2256
- t.navLinkItems,
261
+ e.navLinkItems,
2257
262
  {
2258
263
  justifyContent: "center",
2259
264
  alignItems: "center",
@@ -2263,47 +268,47 @@ const ps = (o, t) => {
2263
268
  },
2264
269
  -1
2265
270
  ).to(
2266
- t.navLabels,
271
+ e.navLabels,
2267
272
  {
2268
273
  opacity: 0,
2269
274
  width: 30,
2270
275
  marginLeft: 0
2271
276
  },
2272
277
  0
2273
- ).to(t.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), Ae(
2274
- o,
2275
- t.buttonCrevron,
278
+ ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), y(
279
+ t,
280
+ e.buttonCrevron,
2276
281
  {
2277
282
  width: 0,
2278
283
  opacity: 0,
2279
284
  duration: 0.7,
2280
285
  ease: "power1.out",
2281
286
  onComplete: () => {
2282
- t.buttonCrevron.style.display = "none";
287
+ e.buttonCrevron.style.display = "none";
2283
288
  }
2284
289
  },
2285
290
  0
2286
- ), Ae(
2287
- o,
2288
- t.buttonContentChevron,
291
+ ), y(
292
+ t,
293
+ e.buttonContentChevron,
2289
294
  {
2290
295
  display: "none"
2291
296
  },
2292
297
  -1
2293
298
  ).to(
2294
- t.separatorProfile,
299
+ e.separatorProfile,
2295
300
  {
2296
301
  display: "none"
2297
302
  },
2298
303
  -1
2299
304
  ).to(
2300
- t.profileUserInfo,
305
+ e.profileUserInfo,
2301
306
  {
2302
307
  display: "none"
2303
308
  },
2304
309
  -1
2305
310
  ).to(
2306
- t.navLinkItems,
311
+ e.navLinkItems,
2307
312
  {
2308
313
  borderRadius: "8px",
2309
314
  duration: 0.7,
@@ -2311,7 +316,7 @@ const ps = (o, t) => {
2311
316
  },
2312
317
  0.8
2313
318
  ).to(
2314
- t.profileImageWrapper,
319
+ e.profileImageWrapper,
2315
320
  {
2316
321
  width: 52,
2317
322
  height: 52,
@@ -2320,7 +325,7 @@ const ps = (o, t) => {
2320
325
  },
2321
326
  -1
2322
327
  ).to(
2323
- t.buttonProfile,
328
+ e.buttonProfile,
2324
329
  {
2325
330
  height: 44,
2326
331
  width: 58,
@@ -2335,14 +340,14 @@ const ps = (o, t) => {
2335
340
  },
2336
341
  -1
2337
342
  ).to(
2338
- t.containerIconcollapsade,
343
+ e.containerIconcollapsade,
2339
344
  {
2340
345
  justifyContent: "center",
2341
346
  marginRight: 0
2342
347
  },
2343
348
  "=-1"
2344
349
  ).to(
2345
- t.badgeInLink,
350
+ e.badgeInLink,
2346
351
  {
2347
352
  position: "absolute",
2348
353
  right: 1,
@@ -2350,9 +355,9 @@ const ps = (o, t) => {
2350
355
  },
2351
356
  -1
2352
357
  );
2353
- }, Ts = (o, t) => {
2354
- o.to(t.navbar, { width: "20rem" }, -1).to(
2355
- t.navLinkItems,
358
+ }, M = (t, e) => {
359
+ t.to(e.navbar, { width: "20rem" }, -1).to(
360
+ e.navLinkItems,
2356
361
  {
2357
362
  borderRadius: "10px",
2358
363
  duration: 0.3,
@@ -2360,28 +365,28 @@ const ps = (o, t) => {
2360
365
  justifyContent: "flex-start"
2361
366
  },
2362
367
  -1
2363
- ), Ae(
2364
- o,
2365
- t.buttonCrevron,
368
+ ), y(
369
+ t,
370
+ e.buttonCrevron,
2366
371
  {
2367
372
  width: "auto",
2368
373
  opacity: 1,
2369
374
  duration: 0,
2370
375
  ease: "power1.out",
2371
376
  onComplete: () => {
2372
- t.buttonCrevron.style.display = "flex";
377
+ e.buttonCrevron.style.display = "flex";
2373
378
  }
2374
379
  },
2375
380
  0
2376
- ), Ae(
2377
- o,
2378
- t.buttonContentChevron,
381
+ ), y(
382
+ t,
383
+ e.buttonContentChevron,
2379
384
  {
2380
385
  display: "flex"
2381
386
  },
2382
387
  0
2383
388
  ).to(
2384
- t.logo.contenedor,
389
+ e.logo.contenedor,
2385
390
  {
2386
391
  width: 185,
2387
392
  height: 48,
@@ -2389,16 +394,16 @@ const ps = (o, t) => {
2389
394
  },
2390
395
  -1
2391
396
  ).set(
2392
- t.logo.text,
397
+ e.logo.text,
2393
398
  {
2394
399
  display: "flex"
2395
400
  },
2396
401
  -1
2397
- ).to(t.logo.text, {
402
+ ).to(e.logo.text, {
2398
403
  opacity: 1,
2399
404
  duration: 0,
2400
405
  ease: "back.in(1)"
2401
- }).to(t.logo.icon, {
406
+ }).to(e.logo.icon, {
2402
407
  keyframes: {
2403
408
  "0%": { scale: 1 },
2404
409
  "33%": { scale: 1.5 },
@@ -2408,14 +413,14 @@ const ps = (o, t) => {
2408
413
  duration: 0.3,
2409
414
  ease: "power1.inOut"
2410
415
  }).to(
2411
- t.sidebarHeader,
416
+ e.sidebarHeader,
2412
417
  {
2413
418
  justifyContent: "start",
2414
419
  display: "flex"
2415
420
  },
2416
421
  -1
2417
422
  ).to(
2418
- t.profileImageWrapper,
423
+ e.profileImageWrapper,
2419
424
  {
2420
425
  marginRight: 0,
2421
426
  duration: 0.2,
@@ -2423,20 +428,20 @@ const ps = (o, t) => {
2423
428
  },
2424
429
  -1
2425
430
  ).to(
2426
- t.containerIconcollapsade,
431
+ e.containerIconcollapsade,
2427
432
  {
2428
433
  justifyContent: "end",
2429
434
  marginRight: 20
2430
435
  },
2431
436
  -1
2432
437
  ).to(
2433
- t.separatorProfile,
438
+ e.separatorProfile,
2434
439
  {
2435
440
  display: "flex"
2436
441
  },
2437
442
  0
2438
443
  ).to(
2439
- t.badgeInLink,
444
+ e.badgeInLink,
2440
445
  {
2441
446
  position: "static",
2442
447
  right: "auto",
@@ -2447,7 +452,7 @@ const ps = (o, t) => {
2447
452
  },
2448
453
  -1
2449
454
  ).to(
2450
- t.buttonProfile,
455
+ e.buttonProfile,
2451
456
  {
2452
457
  borderTopLeftRadius: "0.375rem",
2453
458
  borderBottomLeftRadius: "0.375rem",
@@ -2457,13 +462,13 @@ const ps = (o, t) => {
2457
462
  },
2458
463
  -1
2459
464
  ).to(
2460
- t.separatorProfile,
465
+ e.separatorProfile,
2461
466
  {
2462
467
  display: "flex"
2463
468
  },
2464
469
  0
2465
470
  ).to(
2466
- t.navLabels,
471
+ e.navLabels,
2467
472
  {
2468
473
  opacity: 1,
2469
474
  width: "auto",
@@ -2471,53 +476,53 @@ const ps = (o, t) => {
2471
476
  },
2472
477
  0
2473
478
  ).to(
2474
- t.profileUserInfo,
479
+ e.profileUserInfo,
2475
480
  {
2476
481
  display: "flex",
2477
482
  ease: "fade.in"
2478
483
  },
2479
484
  0
2480
- ).to(t.navIcons, { scale: 1 }, 0.3);
2481
- }, Ss = (o, t) => {
2482
- it.to(o, {
485
+ ).to(e.navIcons, { scale: 1 }, 0.3);
486
+ }, U = (t, e) => {
487
+ c.to(t, {
2483
488
  x: "-100%",
2484
489
  opacity: 0,
2485
490
  duration: 0.3,
2486
491
  ease: "power2.in"
2487
492
  });
2488
- }, Cs = Xr(
2489
- ({ children: o, isCollapsed: t = !1, className: e = "" }, r) => {
2490
- const i = ge(null), { registerPrimarySidebar: n } = Yr(), s = Ji((a) => {
2491
- i.current = a, typeof r == "function" ? r(a) : r && (r.current = a);
493
+ }, V = N(
494
+ ({ children: t, isCollapsed: e = !1, className: o = "" }, r) => {
495
+ const n = p(null), { registerPrimarySidebar: i } = j(), l = T((u) => {
496
+ n.current = u, typeof r == "function" ? r(u) : r && (r.current = u);
2492
497
  }, [r]);
2493
- return Wr(() => {
2494
- i.current && n(i);
2495
- }, [n]), bs(i, t, !1), /* @__PURE__ */ P.jsx(
498
+ return C(() => {
499
+ n.current && i(n);
500
+ }, [i]), W(n, e, !1), /* @__PURE__ */ a.jsx(
2496
501
  "div",
2497
502
  {
2498
- ref: s,
503
+ ref: l,
2499
504
  className: `bg-neutral-default-default hidden overflow-hidden h-screen md:flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-50 flex-shrink-0
2500
- ${t ? "w-16" : "w-64"} ${e}`,
2501
- children: o
505
+ ${e ? "w-16" : "w-64"} ${o}`,
506
+ children: t
2502
507
  }
2503
508
  );
2504
509
  }
2505
- ), ar = Xr(
2506
- (o, t) => /* @__PURE__ */ P.jsx(vs, { children: /* @__PURE__ */ P.jsx(Cs, { ...o, ref: t }) })
510
+ ), h = N(
511
+ (t, e) => /* @__PURE__ */ a.jsx(F, { children: /* @__PURE__ */ a.jsx(V, { ...t, ref: e }) })
2507
512
  );
2508
- ar.displayName = "SidebarRoot";
2509
- const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("div", { className: tt("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", o && ""), children: /* @__PURE__ */ P.jsx(
513
+ h.displayName = "SidebarRoot";
514
+ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("div", { className: s("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ a.jsx(
2510
515
  "button",
2511
516
  {
2512
- onClick: t,
2513
- title: o ? "Expandir Navbar" : "Contraer Navbar",
2514
- "aria-label": o ? "Expandir Navbar" : "Contraer Navbar",
517
+ onClick: e,
518
+ title: t ? "Expandir Navbar" : "Contraer Navbar",
519
+ "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
2515
520
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
2516
- children: o ? /* @__PURE__ */ P.jsx(Se.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ P.jsx(Se.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
521
+ children: t ? /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
2517
522
  }
2518
- ) }), ks = ({ children: o, className: t }) => /* @__PURE__ */ P.jsx("div", { className: `${t} sidebar-header`, children: o }), Os = ({ className: o }) => /* @__PURE__ */ P.jsx("div", { className: tt("px-3 flex justify-center items-center w-full mb-4", o), children: /* @__PURE__ */ P.jsx("div", { className: "border-b border-neutral-strong-default border-1 w-full" }) }), Ds = ({ children: o, className: t }) => /* @__PURE__ */ P.jsx("div", { className: t, children: o }), Rs = ({ className: o, size: t = "auto" }) => {
2519
- const e = () => {
2520
- switch (t) {
523
+ ) }), X = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), Z = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: s("px-3 flex justify-center items-center w-full mb-4", t), children: /* @__PURE__ */ a.jsx("div", { className: "border-b border-neutral-strong-default border-1 w-full" }) }), J = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), K = ({ className: t, size: e = "auto" }) => {
524
+ const o = () => {
525
+ switch (e) {
2521
526
  case "auto":
2522
527
  return "flex-grow";
2523
528
  case "small":
@@ -2528,102 +533,102 @@ const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("d
2528
533
  return "h-8 w-8";
2529
534
  }
2530
535
  };
2531
- return /* @__PURE__ */ P.jsx("div", { className: tt(e(), o) });
2532
- }, Ms = ({ children: o, className: t }) => /* @__PURE__ */ P.jsx("div", { className: t, children: o }), qs = Object.assign(ar, {
2533
- Root: ar,
2534
- CollapseButton: Ps,
2535
- Header: ks,
2536
- Divider: Os,
2537
- Content: Ds,
2538
- Spacer: Rs,
2539
- Footer: Ms
2540
- }), Vs = ({
2541
- children: o,
2542
- icon: t,
2543
- label: e,
536
+ return /* @__PURE__ */ a.jsx("div", { className: s(o(), t) });
537
+ }, Q = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), le = Object.assign(h, {
538
+ Root: h,
539
+ CollapseButton: G,
540
+ Header: X,
541
+ Divider: Z,
542
+ Content: J,
543
+ Spacer: K,
544
+ Footer: Q
545
+ }), ce = ({
546
+ children: t,
547
+ icon: e,
548
+ label: o,
2544
549
  href: r,
2545
- onClick: i,
2546
- isActive: n = !1,
2547
- className: s
550
+ onClick: n,
551
+ isActive: i = !1,
552
+ className: l
2548
553
  }) => {
2549
- const a = r ? "a" : "button";
2550
- return /* @__PURE__ */ P.jsxs(
2551
- a,
554
+ const u = r ? "a" : "button";
555
+ return /* @__PURE__ */ a.jsxs(
556
+ u,
2552
557
  {
2553
558
  href: r,
2554
- onClick: i,
2555
- className: tt(
559
+ onClick: n,
560
+ className: s(
2556
561
  "nav-link-item",
2557
562
  "flex items-center w-full px-3 py-2 text-left",
2558
563
  "hover:bg-neutral-medium-default transition-colors rounded-lg",
2559
564
  "focus:outline-none focus:ring-2 focus:ring-primary-default-default",
2560
- n && "bg-neutral-medium-default",
2561
- s
565
+ i && "bg-neutral-medium-default",
566
+ l
2562
567
  ),
2563
568
  children: [
2564
- t && /* @__PURE__ */ P.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ P.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: t }) }),
2565
- e && /* @__PURE__ */ P.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: e }),
2566
- o
569
+ e && /* @__PURE__ */ a.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ a.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
570
+ o && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: o }),
571
+ t
2567
572
  ]
2568
573
  }
2569
574
  );
2570
- }, Hi = ({
2571
- count: o,
2572
- maxCount: t = 9,
2573
- className: e = "",
575
+ }, B = ({
576
+ count: t,
577
+ maxCount: e = 9,
578
+ className: o = "",
2574
579
  size: r = "medium",
2575
- variant: i = "primary",
2576
- showZero: n = !1
580
+ variant: n = "primary",
581
+ showZero: i = !1
2577
582
  }) => {
2578
- const s = o, a = s > t ? `+${t}` : s;
2579
- if (s === 0 && !n) return null;
2580
- const u = {
583
+ const l = t, u = l > e ? `+${e}` : l;
584
+ if (l === 0 && !i) return null;
585
+ const f = {
2581
586
  small: "w-4.5 h-4.5 text-xs ",
2582
587
  medium: "w-5 h-5 text-xs",
2583
588
  large: "w-6 h-6 text-sm"
2584
- }, l = {
589
+ }, m = {
2585
590
  primary: "bg-primary-default-default text-neutral-strong-default",
2586
591
  secondary: "bg-neutral-medium-default text-neutral-strong-default",
2587
592
  success: "bg-green-500 text-white",
2588
593
  warning: "bg-yellow-500 text-black",
2589
594
  danger: "bg-red-500 text-white"
2590
595
  };
2591
- return /* @__PURE__ */ P.jsx("div", { className: tt(
596
+ return /* @__PURE__ */ a.jsx("div", { className: s(
2592
597
  "rounded-full flex items-center justify-center font-medium ",
2593
- u[r],
2594
- l[i],
2595
- e
2596
- ), children: /* @__PURE__ */ P.jsx("span", { children: a }) });
2597
- }, Us = ({
2598
- linkActions: o,
2599
- onClick: t,
2600
- activeAction: e
2601
- }) => /* @__PURE__ */ P.jsx("nav", { className: "flex flex-col gap-1", children: o?.map((r, i) => r.isView && r.viewAccess() && /* @__PURE__ */ P.jsx(
2602
- Tt.div,
598
+ f[r],
599
+ m[n],
600
+ o
601
+ ), children: /* @__PURE__ */ a.jsx("span", { children: u }) });
602
+ }, ue = ({
603
+ linkActions: t,
604
+ onClick: e,
605
+ activeAction: o
606
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => r.isView && r.viewAccess() && /* @__PURE__ */ a.jsx(
607
+ d.div,
2603
608
  {
2604
609
  initial: { opacity: 0 },
2605
610
  animate: { opacity: 1 },
2606
611
  transition: {
2607
612
  duration: 0.4,
2608
- delay: i * 0.03,
613
+ delay: n * 0.03,
2609
614
  ease: "easeOut"
2610
615
  },
2611
616
  className: "relative flex justify-center w-full items-center px-3",
2612
- children: /* @__PURE__ */ P.jsxs(
617
+ children: /* @__PURE__ */ a.jsxs(
2613
618
  "button",
2614
619
  {
2615
620
  onClick: () => {
2616
- t?.(r.action);
621
+ e?.(r.action);
2617
622
  },
2618
- className: tt(
623
+ className: s(
2619
624
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
2620
625
  "transition-all duration-300 ease-out w-full",
2621
626
  "group hover:bg-neutral-medium-selected",
2622
- e === r.action ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
627
+ o === r.action ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
2623
628
  ),
2624
629
  children: [
2625
- /* @__PURE__ */ P.jsx($r, { mode: "wait", children: e === r.action && /* @__PURE__ */ P.jsx(
2626
- Tt.div,
630
+ /* @__PURE__ */ a.jsx(k, { mode: "wait", children: o === r.action && /* @__PURE__ */ a.jsx(
631
+ d.div,
2627
632
  {
2628
633
  layoutId: "nav-active-bg",
2629
634
  className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
@@ -2637,25 +642,25 @@ const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("d
2637
642
  }
2638
643
  }
2639
644
  ) }),
2640
- /* @__PURE__ */ P.jsxs(
2641
- Tt.div,
645
+ /* @__PURE__ */ a.jsxs(
646
+ d.div,
2642
647
  {
2643
648
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
2644
649
  animate: {
2645
- x: (e === r.action, 0)
650
+ x: (o === r.action, 0)
2646
651
  },
2647
652
  transition: {
2648
653
  duration: 0.25,
2649
654
  ease: "easeOut"
2650
655
  },
2651
656
  children: [
2652
- /* @__PURE__ */ P.jsxs("div", { className: "flex items-center gap-3", children: [
2653
- /* @__PURE__ */ P.jsx(
2654
- Tt.div,
657
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
658
+ /* @__PURE__ */ a.jsx(
659
+ d.div,
2655
660
  {
2656
661
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
2657
662
  animate: {
2658
- scale: e === r.action ? 1.05 : 1
663
+ scale: o === r.action ? 1.05 : 1
2659
664
  },
2660
665
  transition: {
2661
666
  duration: 0.25,
@@ -2663,16 +668,16 @@ const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("d
2663
668
  },
2664
669
  children: typeof r.icon == "function" ? r.icon({
2665
670
  size: 24,
2666
- className: tt(
671
+ className: s(
2667
672
  "nav-icon transition-colors duration-250 ease-out",
2668
- e === r.action ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
673
+ o === r.action ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
2669
674
  )
2670
675
  }) : null
2671
676
  }
2672
677
  ),
2673
- /* @__PURE__ */ P.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
678
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
2674
679
  ] }),
2675
- /* @__PURE__ */ P.jsx("div", { className: "badge-in-link", children: r.count && r?.count >= 1 ? /* @__PURE__ */ P.jsx(Hi, { count: r.count, maxCount: 9, className: "" }) : "" })
680
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: r.count && r?.count >= 1 ? /* @__PURE__ */ a.jsx(B, { count: r.count, maxCount: 9, className: "" }) : "" })
2676
681
  ]
2677
682
  }
2678
683
  )
@@ -2680,41 +685,41 @@ const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("d
2680
685
  }
2681
686
  )
2682
687
  },
2683
- i
2684
- )) }), Ys = ({
2685
- links: o,
2686
- isLinkActive: t,
2687
- onLinkClick: e
2688
- }) => /* @__PURE__ */ P.jsx("nav", { className: "flex flex-col gap-1", children: o?.map((r, i) => {
2689
- const n = t(r.path) || (r.relatedPaths?.some(
2690
- (s) => t(s)
688
+ n
689
+ )) }), de = ({
690
+ links: t,
691
+ isLinkActive: e,
692
+ onLinkClick: o
693
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => {
694
+ const i = e(r.path) || (r.relatedPaths?.some(
695
+ (l) => e(l)
2691
696
  ) ?? !1);
2692
- return r.isView && r.viewAccess() && /* @__PURE__ */ P.jsx(
2693
- Tt.div,
697
+ return r.isView && r.viewAccess() && /* @__PURE__ */ a.jsx(
698
+ d.div,
2694
699
  {
2695
700
  initial: { opacity: 0 },
2696
701
  animate: { opacity: 1 },
2697
702
  transition: {
2698
703
  duration: 0.4,
2699
- delay: i * 0.03,
704
+ delay: n * 0.03,
2700
705
  ease: "easeOut"
2701
706
  },
2702
707
  className: "relative flex justify-center w-full items-center px-3",
2703
- children: /* @__PURE__ */ P.jsxs(
708
+ children: /* @__PURE__ */ a.jsxs(
2704
709
  "button",
2705
710
  {
2706
711
  onClick: () => {
2707
- e?.(r.path);
712
+ o?.(r.path);
2708
713
  },
2709
- className: tt(
714
+ className: s(
2710
715
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
2711
716
  "transition-all duration-300 ease-out w-full",
2712
717
  "group hover:bg-neutral-medium-selected",
2713
- n ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
718
+ i ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
2714
719
  ),
2715
720
  children: [
2716
- /* @__PURE__ */ P.jsx($r, { mode: "wait", children: n && /* @__PURE__ */ P.jsx(
2717
- Tt.div,
721
+ /* @__PURE__ */ a.jsx(k, { mode: "wait", children: i && /* @__PURE__ */ a.jsx(
722
+ d.div,
2718
723
  {
2719
724
  layoutId: "nav-active-bg",
2720
725
  className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
@@ -2728,8 +733,8 @@ const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("d
2728
733
  }
2729
734
  }
2730
735
  ) }),
2731
- /* @__PURE__ */ P.jsxs(
2732
- Tt.div,
736
+ /* @__PURE__ */ a.jsxs(
737
+ d.div,
2733
738
  {
2734
739
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
2735
740
  animate: {
@@ -2740,13 +745,13 @@ const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("d
2740
745
  ease: "easeOut"
2741
746
  },
2742
747
  children: [
2743
- /* @__PURE__ */ P.jsxs("div", { className: "flex items-center gap-3", children: [
2744
- /* @__PURE__ */ P.jsx(
2745
- Tt.div,
748
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
749
+ /* @__PURE__ */ a.jsx(
750
+ d.div,
2746
751
  {
2747
752
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
2748
753
  animate: {
2749
- scale: n ? 1.05 : 1
754
+ scale: i ? 1.05 : 1
2750
755
  },
2751
756
  transition: {
2752
757
  duration: 0.25,
@@ -2754,16 +759,16 @@ const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("d
2754
759
  },
2755
760
  children: typeof r.icon == "function" ? r.icon({
2756
761
  size: 24,
2757
- className: tt(
762
+ className: s(
2758
763
  "nav-icon transition-colors duration-250 ease-out",
2759
- n ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
764
+ i ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
2760
765
  )
2761
766
  }) : null
2762
767
  }
2763
768
  ),
2764
- /* @__PURE__ */ P.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
769
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
2765
770
  ] }),
2766
- /* @__PURE__ */ P.jsx("div", { className: "badge-in-link", children: r.count && r.count ? /* @__PURE__ */ P.jsx(Hi, { count: r.count, maxCount: 9, className: "" }) : "" })
771
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: r.count && r.count ? /* @__PURE__ */ a.jsx(B, { count: r.count, maxCount: 9, className: "" }) : "" })
2767
772
  ]
2768
773
  }
2769
774
  )
@@ -2771,44 +776,44 @@ const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("d
2771
776
  }
2772
777
  )
2773
778
  },
2774
- i
779
+ n
2775
780
  );
2776
- }) }), Xs = ({
2777
- isActiveModalNotification: o,
2778
- setIsActiveModalNotification: t
781
+ }) }), fe = ({
782
+ isActiveModalNotification: t,
783
+ setIsActiveModalNotification: e
2779
784
  }) => ({ handleNotificationClick: () => {
2780
- t(!0);
2781
- }, isActiveModalNotification: o }), Ws = (o) => {
2782
- const t = ge(null);
785
+ e(!0);
786
+ }, isActiveModalNotification: t }), pe = (t) => {
787
+ const e = p(null);
2783
788
  return {
2784
- isCollapsed: o,
2785
- navbarRef: t
789
+ isCollapsed: t,
790
+ navbarRef: e
2786
791
  };
2787
- }, Gs = ({
2788
- isCollapsed: o,
2789
- onToggle: t
2790
- }) => /* @__PURE__ */ P.jsx("div", { className: "", children: /* @__PURE__ */ P.jsx(
792
+ }, me = ({
793
+ isCollapsed: t,
794
+ onToggle: e
795
+ }) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
2791
796
  "button",
2792
797
  {
2793
- onClick: t,
2794
- title: o ? "Expandir Navbar" : "Contraer Navbar",
2795
- "aria-label": o ? "Expandir Navbar" : "Contraer Navbar",
798
+ onClick: e,
799
+ title: t ? "Expandir Navbar" : "Contraer Navbar",
800
+ "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
2796
801
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
2797
- children: o ? /* @__PURE__ */ P.jsx(Se.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ P.jsx(Se.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
802
+ children: t ? /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
2798
803
  }
2799
- ) }), $s = ({ logoUrl: o, companyName: t }) => /* @__PURE__ */ P.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ P.jsx(
804
+ ) }), xe = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
2800
805
  "img",
2801
806
  {
2802
- src: o,
807
+ src: t,
2803
808
  className: "h-2/3 rounded-full",
2804
- alt: t ?? ""
2805
- }
2806
- ) }), Hs = (o, t = !0) => {
2807
- const e = ge(null);
2808
- return Wr(() => {
2809
- if (!t) return;
2810
- const r = (i) => {
2811
- e.current && !e.current.contains(i.target) && o();
809
+ alt: e ?? ""
810
+ }
811
+ ) }), be = (t, e = !0) => {
812
+ const o = p(null);
813
+ return C(() => {
814
+ if (!e) return;
815
+ const r = (n) => {
816
+ o.current && !o.current.contains(n.target) && t();
2812
817
  };
2813
818
  return document.addEventListener("mousedown", r, {
2814
819
  capture: !0
@@ -2821,59 +826,59 @@ const Ps = ({ isCollapsed: o, onToggleCollapse: t }) => /* @__PURE__ */ P.jsx("d
2821
826
  capture: !0
2822
827
  });
2823
828
  };
2824
- }, [o, t]), e;
829
+ }, [t, e]), o;
2825
830
  };
2826
831
  export {
2827
- Qs as Avatar,
2828
- Hi as Badge,
2829
- ta as Button,
2830
- ra as CardProfile,
2831
- ia as ChangueAccount,
2832
- sa as CheckBox,
2833
- oa as CheckboxFormik,
2834
- $s as CompanyLogo,
2835
- la as DialogModal,
2836
- ha as DrawerDesktop,
2837
- pa as DrawerMobile,
2838
- no as DropZone,
2839
- ya as Header,
2840
- Se as Icons,
2841
- va as Input,
2842
- wa as InputFormik,
2843
- Ja as LayoutGeneric,
2844
- Sa as Logo,
2845
- Pa as Menu,
2846
- Us as NavBarActions,
2847
- Gs as NavbarCollapseButton,
2848
- Ys as NavbarLinks,
2849
- Vs as NavigationLink,
2850
- ro as OtpInput,
2851
- Oa as Pagination,
2852
- Ra as ProgressBar,
2853
- js as SecondaryBar,
2854
- Aa as Select,
2855
- qs as Sidebar,
2856
- vs as SidebarProvider,
2857
- to as SidebarRefProvider,
2858
- Ea as Spinner,
2859
- Ia as SwipeContainer,
2860
- La as TabLinks,
2861
- Ba as Table,
2862
- qa as TableBody,
2863
- Va as TableCaption,
2864
- Ua as TableCell,
2865
- Ya as TableFooter,
2866
- Xa as TableHead,
2867
- Wa as TableHeader,
2868
- Ga as TableRow,
2869
- Ha as TextArea,
2870
- Za as Tooltip,
2871
- Xs as useActionsNavbar,
2872
- Hs as useClickOutside,
2873
- fa as useDialogControl,
2874
- da as useDrawerDesktop,
2875
- ma as useDrawerMobile,
2876
- Ws as useNavbarCollapse,
2877
- Bs as useSidebar,
2878
- Yr as useSidebarContext
832
+ ve as Avatar,
833
+ B as Badge,
834
+ we as Button,
835
+ Ne as CardProfile,
836
+ Ce as ChangueAccount,
837
+ ke as CheckBox,
838
+ Be as CheckboxFormik,
839
+ xe as CompanyLogo,
840
+ Re as DialogModal,
841
+ Ae as DrawerDesktop,
842
+ Ee as DrawerMobile,
843
+ St as DropZone,
844
+ He as Header,
845
+ b as Icons,
846
+ We as Input,
847
+ Me as InputFormik,
848
+ ht as LayoutGeneric,
849
+ Ve as Logo,
850
+ Xe as Menu,
851
+ ue as NavBarActions,
852
+ me as NavbarCollapseButton,
853
+ de as NavbarLinks,
854
+ ce as NavigationLink,
855
+ Nt as OtpInput,
856
+ Je as Pagination,
857
+ Qe as ProgressBar,
858
+ ie as SecondaryBar,
859
+ _e as Select,
860
+ le as Sidebar,
861
+ F as SidebarProvider,
862
+ wt as SidebarRefProvider,
863
+ tt as Spinner,
864
+ rt as SwipeContainer,
865
+ nt as TabLinks,
866
+ st as Table,
867
+ lt as TableBody,
868
+ ct as TableCaption,
869
+ ut as TableCell,
870
+ dt as TableFooter,
871
+ ft as TableHead,
872
+ pt as TableHeader,
873
+ mt as TableRow,
874
+ bt as TextArea,
875
+ gt as Tooltip,
876
+ fe as useActionsNavbar,
877
+ be as useClickOutside,
878
+ qe as useDialogControl,
879
+ Te as useDrawerDesktop,
880
+ Oe as useDrawerMobile,
881
+ pe as useNavbarCollapse,
882
+ se as useSidebar,
883
+ j as useSidebarContext
2879
884
  };