@orangelogic/design-system 4.7.0 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/library/chunks/{asset-link-format.Bi9J8xCQ.js → asset-link-format.CbmsLfvm.js} +1 -1
  2. package/library/chunks/{button.CUeXJXcO.js → button.rJFwhUxT.js} +1 -1
  3. package/library/chunks/button.styles.DoD2bkKL.js +5 -0
  4. package/library/chunks/{color-swatch-group.DMza5xD7.js → color-swatch-group.NkrEGUbN.js} +7 -7
  5. package/library/chunks/{confirm-popover.CeKZ8dF1.js → confirm-popover.B287gNRq.js} +1 -1
  6. package/library/chunks/{document-viewer.BmO1igBN.js → document-viewer.iu_c5JvE.js} +2 -2
  7. package/library/chunks/{folder-select.lF4v6bbN.js → folder-select.CdCc7oLi.js} +1 -1
  8. package/library/chunks/{image.CjdSn_IT.js → image.2ZXc5UiB.js} +1 -1
  9. package/library/chunks/{index.DpHjvpmp.js → index.BiyfXTj7.js} +6 -6
  10. package/library/chunks/{pagination.DCSLKv1u.js → pagination.DiIIZpeU.js} +1 -1
  11. package/library/chunks/{tab-group.Dy2fEfC-.js → tab-group.BAZBrIdM.js} +1010 -951
  12. package/library/chunks/{types.4OaADvOF.js → types.CNqFN3XH.js} +3423 -3398
  13. package/library/components/asset-link-format.js +2 -2
  14. package/library/components/atoms.js +5 -5
  15. package/library/components/button.js +2 -2
  16. package/library/components/color-picker.js +2 -2
  17. package/library/components/color-swatch-group.js +1 -1
  18. package/library/components/color-swatch.js +6 -6
  19. package/library/components/confirm-popover.js +2 -2
  20. package/library/components/document-viewer.js +2 -2
  21. package/library/components/dynamic-select.js +1 -1
  22. package/library/components/element-clamp.js +1 -1
  23. package/library/components/file-on-demand.js +3 -3
  24. package/library/components/folder-select.js +1 -1
  25. package/library/components/image.js +1 -1
  26. package/library/components/line-clamp.js +1 -1
  27. package/library/components/masonry.js +1 -1
  28. package/library/components/molecules.js +2 -2
  29. package/library/components/organisms.js +2 -2
  30. package/library/components/pagination.js +2 -2
  31. package/library/components/radio-button.js +1 -1
  32. package/library/components/select.js +1 -3
  33. package/library/components/tab-group.js +2 -2
  34. package/library/components/tab.js +2 -2
  35. package/library/components/types.js +10 -10
  36. package/library/components/video.js +1 -1
  37. package/library/package.json +1 -1
  38. package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +22 -0
  39. package/library/packages/molecules/src/data-tab-group/data-tab-group.d.ts +2 -0
  40. package/library/packages/molecules/src/mentions/mentions.d.ts +17 -0
  41. package/library/packages/organisms/src/lightbox/lightbox.d.ts +2 -1
  42. package/library/react-web-component.d.ts +12 -0
  43. package/package.json +1 -1
  44. package/library/chunks/button.styles.D3GdfF7I.js +0 -5
@@ -1,35 +1,35 @@
1
1
  import zn from "../components/resize-observer.js";
2
- import { n as wt, C as Bn } from "./lib-cortex-element.CVMmyPMC.js";
2
+ import { n as gt, C as Bn } from "./lib-cortex-element.CVMmyPMC.js";
3
3
  import { c as Fn } from "./component.styles.CAS3c9pM.js";
4
4
  import { c as Nn } from "./custom-element.L4WJXn1j.js";
5
5
  import { L as Ln } from "./i18n.D5L6xAYT.js";
6
6
  import { s as Zi } from "./scroll.xtO5yojm.js";
7
- import { w as ft } from "./watch.DJF5K-8U.js";
7
+ import { w as rt } from "./watch.DJF5K-8U.js";
8
8
  import { i as $n } from "./dom.D0lSUoEI.js";
9
9
  import { s as Un } from "./parse.Cu5nBDTb.js";
10
- import { i as Wn, x as Nt } from "./lit-element.jLBm65_O.js";
11
- import { r as at } from "./state.CSDxrqLd.js";
10
+ import { i as Hn, x as Nt } from "./lit-element.jLBm65_O.js";
11
+ import { r as q } from "./state.CSDxrqLd.js";
12
12
  import { t as Vn } from "./event-options.CYHYGOd8.js";
13
13
  import { e as zt } from "./query.BBf1UFkC.js";
14
- import { r as Hn } from "./query-all.i3PyvTUQ.js";
14
+ import { r as Wn } from "./query-all.i3PyvTUQ.js";
15
15
  import { e as Lt } from "./class-map.BiVq-cVR.js";
16
16
  import { i as Ji } from "./guard.D4axKaMo.js";
17
17
  import { o as tr } from "./map.D8heArFD.js";
18
18
  import { o as Ve } from "./style-map.llVFPd__.js";
19
19
  import { n as Pe } from "./when.Dr1es41R.js";
20
- import { C as Yn } from "./button.CUeXJXcO.js";
20
+ import { C as Yn } from "./button.rJFwhUxT.js";
21
21
  import Xn from "../components/dropdown.js";
22
- import { C as qn } from "./icon-button.BXs29IQE.js";
23
- import Gn from "../components/menu.js";
22
+ import { C as Gn } from "./icon-button.BXs29IQE.js";
23
+ import qn from "../components/menu.js";
24
24
  import { C as Kn } from "./menu-item.Js1qz9h2.js";
25
25
  import jn from "../components/tab.js";
26
- var bi = /* @__PURE__ */ ((o) => (o.Bottom = "bottom", o.End = "end", o.Start = "start", o.Top = "top", o))(bi || {}), Ke = /* @__PURE__ */ ((o) => (o.Center = "center", o.End = "flex-end", o.Start = "flex-start", o))(Ke || {}), wr = /* @__PURE__ */ ((o) => (o.Auto = "auto", o.Manual = "manual", o))(wr || {}), ue = /* @__PURE__ */ ((o) => (o.Button = "button", o.Default = "default", o.Timeline = "timeline", o))(ue || {}), Tt = /* @__PURE__ */ ((o) => (o.Dropdown = "dropdown", o.Pagination = "pagination", o.Scroll = "scroll", o))(Tt || {}), Ut = /* @__PURE__ */ ((o) => (o.Absolute = "absolute", o.DisplayNone = "display-none", o))(Ut || {});
26
+ var bi = /* @__PURE__ */ ((o) => (o.Bottom = "bottom", o.End = "end", o.Start = "start", o.Top = "top", o))(bi || {}), Ke = /* @__PURE__ */ ((o) => (o.Center = "center", o.End = "flex-end", o.Start = "flex-start", o))(Ke || {}), Tr = /* @__PURE__ */ ((o) => (o.Auto = "auto", o.Manual = "manual", o))(Tr || {}), he = /* @__PURE__ */ ((o) => (o.Button = "button", o.Default = "default", o.Timeline = "timeline", o))(he || {}), wt = /* @__PURE__ */ ((o) => (o.Dropdown = "dropdown", o.Pagination = "pagination", o.Scroll = "scroll", o))(wt || {}), Ut = /* @__PURE__ */ ((o) => (o.Absolute = "absolute", o.DisplayNone = "display-none", o))(Ut || {});
27
27
  function Dt(o) {
28
28
  if (o === void 0)
29
29
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
30
30
  return o;
31
31
  }
32
- function Tr(o, t) {
32
+ function wr(o, t) {
33
33
  o.prototype = Object.create(t.prototype), o.prototype.constructor = o, o.__proto__ = t;
34
34
  }
35
35
  /*!
@@ -51,7 +51,7 @@ var dt = {
51
51
  duration: 0.5,
52
52
  overwrite: !1,
53
53
  delay: 0
54
- }, Ii, q, F, vt = 1e8, B = 1 / vt, mi = Math.PI * 2, Qn = mi / 4, Zn = 0, Pr = Math.sqrt, Jn = Math.cos, ts = Math.sin, X = function(t) {
54
+ }, Ii, G, F, yt = 1e8, B = 1 / yt, mi = Math.PI * 2, Qn = mi / 4, Zn = 0, Pr = Math.sqrt, Jn = Math.cos, ts = Math.sin, X = function(t) {
55
55
  return typeof t == "string";
56
56
  }, U = function(t) {
57
57
  return typeof t == "function";
@@ -59,23 +59,23 @@ var dt = {
59
59
  return typeof t == "number";
60
60
  }, zi = function(t) {
61
61
  return typeof t > "u";
62
- }, Ot = function(t) {
62
+ }, kt = function(t) {
63
63
  return typeof t == "object";
64
- }, it = function(t) {
64
+ }, nt = function(t) {
65
65
  return t !== !1;
66
66
  }, Bi = function() {
67
67
  return typeof window < "u";
68
- }, He = function(t) {
68
+ }, We = function(t) {
69
69
  return U(t) || X(t);
70
70
  }, Ar = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
71
- }, Q = Array.isArray, vi = /(?:-?\.?\d|\.)+/gi, Sr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, ce = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, hi = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Cr = /[+-]=-?[.\d]+/, kr = /[^,'"\[\]\s]+/gi, es = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, L, At, yi, Fi, _t = {}, Je = {}, Or, Dr = function(t) {
72
- return (Je = me(t, _t)) && ot;
71
+ }, Z = Array.isArray, vi = /(?:-?\.?\d|\.)+/gi, Sr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, ce = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, ui = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Or = /[+-]=-?[.\d]+/, Cr = /[^,'"\[\]\s]+/gi, es = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, L, At, yi, Fi, pt = {}, Je = {}, kr, Dr = function(t) {
72
+ return (Je = me(t, pt)) && lt;
73
73
  }, Ni = function(t, e) {
74
74
  return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
75
75
  }, Re = function(t, e) {
76
76
  return !e && console.warn(t);
77
77
  }, Mr = function(t, e) {
78
- return t && (_t[t] = e) && Je && (Je[t] = e) || _t;
78
+ return t && (pt[t] = e) && Je && (Je[t] = e) || pt;
79
79
  }, Ie = function() {
80
80
  return 0;
81
81
  }, is = {
@@ -87,9 +87,9 @@ var dt = {
87
87
  kill: !1
88
88
  }, rs = {
89
89
  suppressEvents: !0
90
- }, Li = {}, Yt = [], xi = {}, Er, ht = {}, ui = {}, er = 30, Qe = [], $i = "", Ui = function(t) {
90
+ }, Li = {}, Yt = [], xi = {}, Er, ht = {}, hi = {}, er = 30, Qe = [], $i = "", Ui = function(t) {
91
91
  var e = t[0], i, r;
92
- if (Ot(e) || U(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
92
+ if (kt(e) || U(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
93
93
  for (r = Qe.length; r-- && !Qe[r].targetTest(e); )
94
94
  ;
95
95
  i = Qe[r];
@@ -98,14 +98,14 @@ var dt = {
98
98
  t[r] && (t[r]._gsap || (t[r]._gsap = new rn(t[r], i))) || t.splice(r, 1);
99
99
  return t;
100
100
  }, re = function(t) {
101
- return t._gsap || Ui(yt(t))[0]._gsap;
101
+ return t._gsap || Ui(xt(t))[0]._gsap;
102
102
  }, Rr = function(t, e, i) {
103
103
  return (i = t[e]) && U(i) ? t[e]() : zi(i) && t.getAttribute && t.getAttribute(e) || i;
104
- }, rt = function(t, e) {
104
+ }, st = function(t, e) {
105
105
  return (t = t.split(",")).forEach(e) || t;
106
- }, W = function(t) {
107
- return Math.round(t * 1e5) / 1e5 || 0;
108
106
  }, H = function(t) {
107
+ return Math.round(t * 1e5) / 1e5 || 0;
108
+ }, W = function(t) {
109
109
  return Math.round(t * 1e7) / 1e7 || 0;
110
110
  }, de = function(t, e) {
111
111
  var i = e.charAt(0), r = parseFloat(e.substr(2));
@@ -118,16 +118,16 @@ var dt = {
118
118
  var t = Yt.length, e = Yt.slice(0), i, r;
119
119
  for (xi = {}, Yt.length = 0, i = 0; i < t; i++)
120
120
  r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
121
- }, Wi = function(t) {
121
+ }, Hi = function(t) {
122
122
  return !!(t._initted || t._startAt || t.add);
123
123
  }, Ir = function(t, e, i, r) {
124
- Yt.length && !q && ti(), t.render(e, i, !!(q && e < 0 && Wi(t))), Yt.length && !q && ti();
124
+ Yt.length && !G && ti(), t.render(e, i, !!(G && e < 0 && Hi(t))), Yt.length && !G && ti();
125
125
  }, zr = function(t) {
126
126
  var e = parseFloat(t);
127
- return (e || e === 0) && (t + "").match(kr).length < 2 ? e : X(t) ? t.trim() : t;
127
+ return (e || e === 0) && (t + "").match(Cr).length < 2 ? e : X(t) ? t.trim() : t;
128
128
  }, Br = function(t) {
129
129
  return t;
130
- }, pt = function(t, e) {
130
+ }, _t = function(t, e) {
131
131
  for (var i in e)
132
132
  i in t || (t[i] = e[i]);
133
133
  return t;
@@ -142,16 +142,16 @@ var dt = {
142
142
  return t;
143
143
  }, ir = function o(t, e) {
144
144
  for (var i in e)
145
- i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = Ot(e[i]) ? o(t[i] || (t[i] = {}), e[i]) : e[i]);
145
+ i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = kt(e[i]) ? o(t[i] || (t[i] = {}), e[i]) : e[i]);
146
146
  return t;
147
147
  }, ei = function(t, e) {
148
148
  var i = {}, r;
149
149
  for (r in t)
150
150
  r in e || (i[r] = t[r]);
151
151
  return i;
152
- }, Oe = function(t) {
153
- var e = t.parent || L, i = t.keyframes ? ss(Q(t.keyframes)) : pt;
154
- if (it(t.inherit))
152
+ }, ke = function(t) {
153
+ var e = t.parent || L, i = t.keyframes ? ss(Z(t.keyframes)) : _t;
154
+ if (nt(t.inherit))
155
155
  for (; e; )
156
156
  i(t, e.vars.defaults), e = e.parent || e._dp;
157
157
  return t;
@@ -169,7 +169,7 @@ var dt = {
169
169
  i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
170
170
  var n = e._prev, s = e._next;
171
171
  n ? n._next = s : t[i] === e && (t[i] = s), s ? s._prev = n : t[r] === e && (t[r] = n), e._next = e._prev = e.parent = null;
172
- }, Gt = function(t, e) {
172
+ }, qt = function(t, e) {
173
173
  t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
174
174
  }, ne = function(t, e) {
175
175
  if (t && (!e || e._end > t._dur || e._start < 0))
@@ -180,53 +180,53 @@ var dt = {
180
180
  for (var e = t.parent; e && e.parent; )
181
181
  e._dirty = 1, e.totalDuration(), e = e.parent;
182
182
  return t;
183
- }, wi = function(t, e, i, r) {
184
- return t._startAt && (q ? t._startAt.revert(je) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
183
+ }, Ti = function(t, e, i, r) {
184
+ return t._startAt && (G ? t._startAt.revert(je) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
185
185
  }, ls = function o(t) {
186
186
  return !t || t._ts && o(t.parent);
187
187
  }, rr = function(t) {
188
188
  return t._repeat ? ve(t._tTime, t = t.duration() + t._rDelay) * t : 0;
189
189
  }, ve = function(t, e) {
190
- var i = Math.floor(t = H(t / e));
190
+ var i = Math.floor(t = W(t / e));
191
191
  return t && i === t ? i - 1 : i;
192
192
  }, ii = function(t, e) {
193
193
  return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
194
194
  }, ai = function(t) {
195
- return t._end = H(t._start + (t._tDur / Math.abs(t._ts || t._rts || B) || 0));
195
+ return t._end = W(t._start + (t._tDur / Math.abs(t._ts || t._rts || B) || 0));
196
196
  }, li = function(t, e) {
197
197
  var i = t._dp;
198
- return i && i.smoothChildTiming && t._ts && (t._start = H(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), ai(t), i._dirty || ne(i, t)), t;
198
+ return i && i.smoothChildTiming && t._ts && (t._start = W(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), ai(t), i._dirty || ne(i, t)), t;
199
199
  }, Nr = function(t, e) {
200
200
  var i;
201
- if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = ii(t.rawTime(), e), (!e._dur || We(0, e.totalDuration(), i) - e._tTime > B) && e.render(i, !0)), ne(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
201
+ if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = ii(t.rawTime(), e), (!e._dur || He(0, e.totalDuration(), i) - e._tTime > B) && e.render(i, !0)), ne(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
202
202
  if (t._dur < t.duration())
203
203
  for (i = t; i._dp; )
204
204
  i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
205
205
  t._zTime = -B;
206
206
  }
207
207
  }, St = function(t, e, i, r) {
208
- return e.parent && Gt(e), e._start = H((Rt(i) ? i : i || t !== L ? mt(t, i, e) : t._time) + e._delay), e._end = H(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), Fr(t, e, "_first", "_last", t._sort ? "_start" : 0), Ti(e) || (t._recent = e), r || Nr(t, e), t._ts < 0 && li(t, t._tTime), t;
208
+ return e.parent && qt(e), e._start = W((Rt(i) ? i : i || t !== L ? vt(t, i, e) : t._time) + e._delay), e._end = W(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), Fr(t, e, "_first", "_last", t._sort ? "_start" : 0), wi(e) || (t._recent = e), r || Nr(t, e), t._ts < 0 && li(t, t._tTime), t;
209
209
  }, Lr = function(t, e) {
210
- return (_t.ScrollTrigger || Ni("scrollTrigger", e)) && _t.ScrollTrigger.create(e, t);
210
+ return (pt.ScrollTrigger || Ni("scrollTrigger", e)) && pt.ScrollTrigger.create(e, t);
211
211
  }, $r = function(t, e, i, r, n) {
212
- if (Hi(t, e, n), !t._initted)
212
+ if (Wi(t, e, n), !t._initted)
213
213
  return 1;
214
- if (!i && t._pt && !q && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Er !== ut.frame)
214
+ if (!i && t._pt && !G && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Er !== ct.frame)
215
215
  return Yt.push(t), t._lazy = [n, r], 1;
216
- }, hs = function o(t) {
216
+ }, us = function o(t) {
217
217
  var e = t.parent;
218
218
  return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || o(e));
219
- }, Ti = function(t) {
219
+ }, wi = function(t) {
220
220
  var e = t.data;
221
221
  return e === "isFromStart" || e === "isStart";
222
- }, us = function(t, e, i, r) {
223
- var n = t.ratio, s = e < 0 || !e && (!t._start && hs(t) && !(!t._initted && Ti(t)) || (t._ts < 0 || t._dp._ts < 0) && !Ti(t)) ? 0 : 1, a = t._rDelay, l = 0, h, u, f;
224
- if (a && t._repeat && (l = We(0, t._tDur, e), u = ve(l, a), t._yoyo && u & 1 && (s = 1 - s), u !== ve(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || q || r || t._zTime === B || !e && t._zTime) {
225
- if (!t._initted && $r(t, e, r, i, l))
222
+ }, hs = function(t, e, i, r) {
223
+ var n = t.ratio, s = e < 0 || !e && (!t._start && us(t) && !(!t._initted && wi(t)) || (t._ts < 0 || t._dp._ts < 0) && !wi(t)) ? 0 : 1, a = t._rDelay, u = 0, l, h, c;
224
+ if (a && t._repeat && (u = He(0, t._tDur, e), h = ve(u, a), t._yoyo && h & 1 && (s = 1 - s), h !== ve(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || G || r || t._zTime === B || !e && t._zTime) {
225
+ if (!t._initted && $r(t, e, r, i, u))
226
226
  return;
227
- for (f = t._zTime, t._zTime = e || (i ? B : 0), i || (i = e && !f), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = l, h = t._pt; h; )
228
- h.r(s, h.d), h = h._next;
229
- e < 0 && wi(t, e, i, !0), t._onUpdate && !i && ct(t, "onUpdate"), l && t._repeat && !i && t.parent && ct(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Gt(t, 1), !i && !q && (ct(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
227
+ for (c = t._zTime, t._zTime = e || (i ? B : 0), i || (i = e && !c), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = u, l = t._pt; l; )
228
+ l.r(s, l.d), l = l._next;
229
+ e < 0 && Ti(t, e, i, !0), t._onUpdate && !i && ft(t, "onUpdate"), u && t._repeat && !i && t.parent && ft(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && qt(t, 1), !i && !G && (ft(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
230
230
  } else t._zTime || (t._zTime = e);
231
231
  }, cs = function(t, e, i) {
232
232
  var r;
@@ -243,97 +243,97 @@ var dt = {
243
243
  r = r._prev;
244
244
  }
245
245
  }, ye = function(t, e, i, r) {
246
- var n = t._repeat, s = H(e) || 0, a = t._tTime / t._tDur;
247
- return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : H(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r && li(t, t._tTime = t._tDur * a), t.parent && ai(t), i || ne(t.parent, t), t;
246
+ var n = t._repeat, s = W(e) || 0, a = t._tTime / t._tDur;
247
+ return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : W(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r && li(t, t._tTime = t._tDur * a), t.parent && ai(t), i || ne(t.parent, t), t;
248
248
  }, nr = function(t) {
249
- return t instanceof J ? ne(t) : ye(t, t._dur);
249
+ return t instanceof tt ? ne(t) : ye(t, t._dur);
250
250
  }, fs = {
251
251
  _start: 0,
252
252
  endTime: Ie,
253
253
  totalDuration: Ie
254
- }, mt = function o(t, e, i) {
255
- var r = t.labels, n = t._recent || fs, s = t.duration() >= vt ? n.endTime(!1) : t._dur, a, l, h;
256
- return X(e) && (isNaN(e) || e in r) ? (l = e.charAt(0), h = e.substr(-1) === "%", a = e.indexOf("="), l === "<" || l === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (l === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (h ? (a < 0 ? n : i).totalDuration() / 100 : 1)) : a < 0 ? (e in r || (r[e] = s), r[e]) : (l = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), h && i && (l = l / 100 * (Q(i) ? i[0] : i).totalDuration()), a > 1 ? o(t, e.substr(0, a - 1), i) + l : s + l)) : e == null ? s : +e;
254
+ }, vt = function o(t, e, i) {
255
+ var r = t.labels, n = t._recent || fs, s = t.duration() >= yt ? n.endTime(!1) : t._dur, a, u, l;
256
+ return X(e) && (isNaN(e) || e in r) ? (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 : i).totalDuration() / 100 : 1)) : a < 0 ? (e in r || (r[e] = s), r[e]) : (u = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), l && i && (u = u / 100 * (Z(i) ? i[0] : i).totalDuration()), a > 1 ? o(t, e.substr(0, a - 1), i) + u : s + u)) : e == null ? s : +e;
257
257
  }, De = function(t, e, i) {
258
- var r = Rt(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, l;
258
+ var r = Rt(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, u;
259
259
  if (r && (s.duration = e[1]), s.parent = i, t) {
260
- for (a = s, l = i; l && !("immediateRender" in a); )
261
- a = l.vars.defaults || {}, l = it(l.vars.inherit) && l.parent;
262
- s.immediateRender = it(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
260
+ for (a = s, u = i; u && !("immediateRender" in a); )
261
+ a = u.vars.defaults || {}, u = nt(u.vars.inherit) && u.parent;
262
+ s.immediateRender = nt(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
263
263
  }
264
264
  return new V(e[0], s, e[n + 1]);
265
265
  }, jt = function(t, e) {
266
266
  return t || t === 0 ? e(t) : e;
267
- }, We = function(t, e, i) {
267
+ }, He = function(t, e, i) {
268
268
  return i < t ? t : i > e ? e : i;
269
- }, K = function(t, e) {
269
+ }, j = function(t, e) {
270
270
  return !X(t) || !(e = es.exec(t)) ? "" : e[1];
271
271
  }, ds = function(t, e, i) {
272
272
  return jt(i, function(r) {
273
- return We(t, e, r);
273
+ return He(t, e, r);
274
274
  });
275
275
  }, Pi = [].slice, Ur = function(t, e) {
276
- return t && Ot(t) && "length" in t && (!e && !t.length || t.length - 1 in t && Ot(t[0])) && !t.nodeType && t !== At;
277
- }, _s = function(t, e, i) {
276
+ return t && kt(t) && "length" in t && (!e && !t.length || t.length - 1 in t && kt(t[0])) && !t.nodeType && t !== At;
277
+ }, ps = function(t, e, i) {
278
278
  return i === void 0 && (i = []), t.forEach(function(r) {
279
279
  var n;
280
- return X(r) && !e || Ur(r, 1) ? (n = i).push.apply(n, yt(r)) : i.push(r);
280
+ return X(r) && !e || Ur(r, 1) ? (n = i).push.apply(n, xt(r)) : i.push(r);
281
281
  }) || i;
282
- }, yt = function(t, e, i) {
283
- return F && !e && F.selector ? F.selector(t) : X(t) && !i && (yi || !xe()) ? Pi.call((e || Fi).querySelectorAll(t), 0) : Q(t) ? _s(t, i) : Ur(t) ? Pi.call(t, 0) : t ? [t] : [];
282
+ }, xt = function(t, e, i) {
283
+ return F && !e && F.selector ? F.selector(t) : X(t) && !i && (yi || !xe()) ? Pi.call((e || Fi).querySelectorAll(t), 0) : Z(t) ? ps(t, i) : Ur(t) ? Pi.call(t, 0) : t ? [t] : [];
284
284
  }, Ai = function(t) {
285
- return t = yt(t)[0] || Re("Invalid scope") || {}, function(e) {
285
+ return t = xt(t)[0] || Re("Invalid scope") || {}, function(e) {
286
286
  var i = t.current || t.nativeElement || t;
287
- return yt(e, i.querySelectorAll ? i : i === t ? Re("Invalid scope") || Fi.createElement("div") : t);
287
+ return xt(e, i.querySelectorAll ? i : i === t ? Re("Invalid scope") || Fi.createElement("div") : t);
288
288
  };
289
- }, Wr = function(t) {
289
+ }, Hr = function(t) {
290
290
  return t.sort(function() {
291
291
  return 0.5 - Math.random();
292
292
  });
293
293
  }, Vr = function(t) {
294
294
  if (U(t))
295
295
  return t;
296
- var e = Ot(t) ? t : {
296
+ var e = kt(t) ? t : {
297
297
  each: t
298
- }, i = se(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1, l = isNaN(r) || a, h = e.axis, u = r, f = r;
299
- return X(r) ? u = f = {
298
+ }, i = se(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1, u = isNaN(r) || a, l = e.axis, h = r, c = r;
299
+ return X(r) ? h = c = {
300
300
  center: 0.5,
301
301
  edges: 0.5,
302
302
  end: 1
303
- }[r] || 0 : !a && l && (u = r[0], f = r[1]), function(d, _, p) {
304
- var c = (p || e).length, g = s[c], m, b, v, x, y, T, P, A, w;
303
+ }[r] || 0 : !a && u && (h = r[0], c = r[1]), function(d, p, _) {
304
+ var f = (_ || e).length, g = s[f], m, b, v, x, y, w, P, A, T;
305
305
  if (!g) {
306
- if (w = e.grid === "auto" ? 0 : (e.grid || [1, vt])[1], !w) {
307
- for (P = -vt; P < (P = p[w++].getBoundingClientRect().left) && w < c; )
306
+ if (T = e.grid === "auto" ? 0 : (e.grid || [1, yt])[1], !T) {
307
+ for (P = -yt; P < (P = _[T++].getBoundingClientRect().left) && T < f; )
308
308
  ;
309
- w < c && w--;
309
+ T < f && T--;
310
310
  }
311
- for (g = s[c] = [], m = l ? Math.min(w, c) * u - 0.5 : r % w, b = w === vt ? 0 : l ? c * f / w - 0.5 : r / w | 0, P = 0, A = vt, T = 0; T < c; T++)
312
- v = T % w - m, x = b - (T / w | 0), g[T] = y = h ? Math.abs(h === "y" ? x : v) : Pr(v * v + x * x), y > P && (P = y), y < A && (A = y);
313
- r === "random" && Wr(g), g.max = P - A, g.min = A, g.v = c = (parseFloat(e.amount) || parseFloat(e.each) * (w > c ? c - 1 : h ? h === "y" ? c / w : w : Math.max(w, c / w)) || 0) * (r === "edges" ? -1 : 1), g.b = c < 0 ? n - c : n, g.u = K(e.amount || e.each) || 0, i = i && c < 0 ? Jr(i) : i;
311
+ for (g = s[f] = [], m = u ? Math.min(T, f) * h - 0.5 : r % T, b = T === yt ? 0 : u ? f * c / T - 0.5 : r / T | 0, P = 0, A = yt, w = 0; w < f; w++)
312
+ v = w % T - m, x = b - (w / T | 0), g[w] = y = l ? Math.abs(l === "y" ? x : v) : Pr(v * v + x * x), y > P && (P = y), y < A && (A = y);
313
+ r === "random" && Hr(g), g.max = P - A, g.min = A, g.v = f = (parseFloat(e.amount) || parseFloat(e.each) * (T > f ? f - 1 : l ? l === "y" ? f / T : T : Math.max(T, f / T)) || 0) * (r === "edges" ? -1 : 1), g.b = f < 0 ? n - f : n, g.u = j(e.amount || e.each) || 0, i = i && f < 0 ? Jr(i) : i;
314
314
  }
315
- return c = (g[d] - g.min) / g.max || 0, H(g.b + (i ? i(c) : c) * g.v) + g.u;
315
+ return f = (g[d] - g.min) / g.max || 0, W(g.b + (i ? i(f) : f) * g.v) + g.u;
316
316
  };
317
317
  }, Si = function(t) {
318
318
  var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
319
319
  return function(i) {
320
- var r = H(Math.round(parseFloat(i) / t) * t * e);
321
- return (r - r % 1) / e + (Rt(i) ? 0 : K(i));
320
+ var r = W(Math.round(parseFloat(i) / t) * t * e);
321
+ return (r - r % 1) / e + (Rt(i) ? 0 : j(i));
322
322
  };
323
- }, Hr = function(t, e) {
324
- var i = Q(t), r, n;
325
- return !i && Ot(t) && (r = i = t.radius || vt, t.values ? (t = yt(t.values), (n = !Rt(t[0])) && (r *= r)) : t = Si(t.increment)), jt(e, i ? U(t) ? function(s) {
323
+ }, Wr = function(t, e) {
324
+ var i = Z(t), r, n;
325
+ return !i && kt(t) && (r = i = t.radius || yt, t.values ? (t = xt(t.values), (n = !Rt(t[0])) && (r *= r)) : t = Si(t.increment)), jt(e, i ? U(t) ? function(s) {
326
326
  return n = t(s), Math.abs(n - s) <= r ? n : s;
327
327
  } : function(s) {
328
- for (var a = parseFloat(n ? s.x : s), l = parseFloat(n ? s.y : 0), h = vt, u = 0, f = t.length, d, _; f--; )
329
- n ? (d = t[f].x - a, _ = t[f].y - l, d = d * d + _ * _) : d = Math.abs(t[f] - a), d < h && (h = d, u = f);
330
- return u = !r || h <= r ? t[u] : s, n || u === s || Rt(s) ? u : u + K(s);
328
+ for (var a = parseFloat(n ? s.x : s), u = parseFloat(n ? s.y : 0), l = yt, h = 0, c = t.length, d, p; c--; )
329
+ n ? (d = t[c].x - a, p = t[c].y - u, d = d * d + p * p) : d = Math.abs(t[c] - a), d < l && (l = d, h = c);
330
+ return h = !r || l <= r ? t[h] : s, n || h === s || Rt(s) ? h : h + j(s);
331
331
  } : Si(t));
332
332
  }, Yr = function(t, e, i, r) {
333
- return jt(Q(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
334
- return Q(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
333
+ return jt(Z(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
334
+ return Z(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
335
335
  });
336
- }, ps = function() {
336
+ }, _s = function() {
337
337
  for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
338
338
  e[i] = arguments[i];
339
339
  return function(r) {
@@ -343,82 +343,82 @@ var dt = {
343
343
  };
344
344
  }, gs = function(t, e) {
345
345
  return function(i) {
346
- return t(parseFloat(i)) + (e || K(i));
346
+ return t(parseFloat(i)) + (e || j(i));
347
347
  };
348
348
  }, bs = function(t, e, i) {
349
- return qr(t, e, 0, 1, i);
349
+ return Gr(t, e, 0, 1, i);
350
350
  }, Xr = function(t, e, i) {
351
351
  return jt(i, function(r) {
352
352
  return t[~~e(r)];
353
353
  });
354
354
  }, ms = function o(t, e, i) {
355
355
  var r = e - t;
356
- return Q(t) ? Xr(t, o(0, t.length), e) : jt(i, function(n) {
356
+ return Z(t) ? Xr(t, o(0, t.length), e) : jt(i, function(n) {
357
357
  return (r + (n - t) % r) % r + t;
358
358
  });
359
359
  }, vs = function o(t, e, i) {
360
360
  var r = e - t, n = r * 2;
361
- return Q(t) ? Xr(t, o(0, t.length - 1), e) : jt(i, function(s) {
361
+ return Z(t) ? Xr(t, o(0, t.length - 1), e) : jt(i, function(s) {
362
362
  return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
363
363
  });
364
364
  }, ze = function(t) {
365
365
  for (var e = 0, i = "", r, n, s, a; ~(r = t.indexOf("random(", e)); )
366
- s = t.indexOf(")", r), a = t.charAt(r + 7) === "[", n = t.substr(r + 7, s - r - 7).match(a ? kr : vi), i += t.substr(e, r - e) + Yr(a ? n : +n[0], a ? 0 : +n[1], +n[2] || 1e-5), e = s + 1;
366
+ s = t.indexOf(")", r), a = t.charAt(r + 7) === "[", n = t.substr(r + 7, s - r - 7).match(a ? Cr : vi), i += t.substr(e, r - e) + Yr(a ? n : +n[0], a ? 0 : +n[1], +n[2] || 1e-5), e = s + 1;
367
367
  return i + t.substr(e, t.length - e);
368
- }, qr = function(t, e, i, r, n) {
368
+ }, Gr = function(t, e, i, r, n) {
369
369
  var s = e - t, a = r - i;
370
- return jt(n, function(l) {
371
- return i + ((l - t) / s * a || 0);
370
+ return jt(n, function(u) {
371
+ return i + ((u - t) / s * a || 0);
372
372
  });
373
373
  }, ys = function o(t, e, i, r) {
374
- var n = isNaN(t + e) ? 0 : function(_) {
375
- return (1 - _) * t + _ * e;
374
+ var n = isNaN(t + e) ? 0 : function(p) {
375
+ return (1 - p) * t + p * e;
376
376
  };
377
377
  if (!n) {
378
- var s = X(t), a = {}, l, h, u, f, d;
378
+ var s = X(t), a = {}, u, l, h, c, d;
379
379
  if (i === !0 && (r = 1) && (i = null), s)
380
380
  t = {
381
381
  p: t
382
382
  }, e = {
383
383
  p: e
384
384
  };
385
- else if (Q(t) && !Q(e)) {
386
- for (u = [], f = t.length, d = f - 2, h = 1; h < f; h++)
387
- u.push(o(t[h - 1], t[h]));
388
- f--, n = function(p) {
389
- p *= f;
390
- var c = Math.min(d, ~~p);
391
- return u[c](p - c);
385
+ else if (Z(t) && !Z(e)) {
386
+ for (h = [], c = t.length, d = c - 2, l = 1; l < c; l++)
387
+ h.push(o(t[l - 1], t[l]));
388
+ c--, n = function(_) {
389
+ _ *= c;
390
+ var f = Math.min(d, ~~_);
391
+ return h[f](_ - f);
392
392
  }, i = e;
393
- } else r || (t = me(Q(t) ? [] : {}, t));
394
- if (!u) {
395
- for (l in e)
396
- Vi.call(a, t, l, "get", e[l]);
397
- n = function(p) {
398
- return qi(p, a) || (s ? t.p : t);
393
+ } else r || (t = me(Z(t) ? [] : {}, t));
394
+ if (!h) {
395
+ for (u in e)
396
+ Vi.call(a, t, u, "get", e[u]);
397
+ n = function(_) {
398
+ return Gi(_, a) || (s ? t.p : t);
399
399
  };
400
400
  }
401
401
  }
402
402
  return jt(i, n);
403
403
  }, sr = function(t, e, i) {
404
- var r = t.labels, n = vt, s, a, l;
404
+ var r = t.labels, n = yt, s, a, u;
405
405
  for (s in r)
406
- a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (l = s, n = a);
407
- return l;
408
- }, ct = function(t, e, i) {
409
- var r = t.vars, n = r[e], s = F, a = t._ctx, l, h, u;
406
+ a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (u = s, n = a);
407
+ return u;
408
+ }, ft = function(t, e, i) {
409
+ var r = t.vars, n = r[e], s = F, a = t._ctx, u, l, h;
410
410
  if (n)
411
- return l = r[e + "Params"], h = r.callbackScope || t, i && Yt.length && ti(), a && (F = a), u = l ? n.apply(h, l) : n.call(h), F = s, u;
412
- }, Ce = function(t) {
413
- return Gt(t), t.scrollTrigger && t.scrollTrigger.kill(!!q), t.progress() < 1 && ct(t, "onInterrupt"), t;
414
- }, fe, Gr = [], Kr = function(t) {
411
+ return u = r[e + "Params"], l = r.callbackScope || t, i && Yt.length && ti(), a && (F = a), h = u ? n.apply(l, u) : n.call(l), F = s, h;
412
+ }, Oe = function(t) {
413
+ return qt(t), t.scrollTrigger && t.scrollTrigger.kill(!!G), t.progress() < 1 && ft(t, "onInterrupt"), t;
414
+ }, fe, qr = [], Kr = function(t) {
415
415
  if (t)
416
416
  if (t = !t.name && t.default || t, Bi() || t.headless) {
417
417
  var e = t.name, i = U(t), r = e && !i && t.init ? function() {
418
418
  this._props = [];
419
419
  } : t, n = {
420
420
  init: Ie,
421
- render: qi,
421
+ render: Gi,
422
422
  add: Vi,
423
423
  kill: Bs,
424
424
  modifier: zs,
@@ -433,12 +433,12 @@ var dt = {
433
433
  if (xe(), t !== r) {
434
434
  if (ht[e])
435
435
  return;
436
- pt(r, pt(ei(t, n), s)), me(r.prototype, me(n, ei(t, s))), ht[r.prop = e] = r, t.targetTest && (Qe.push(r), Li[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
436
+ _t(r, _t(ei(t, n), s)), me(r.prototype, me(n, ei(t, s))), ht[r.prop = e] = r, t.targetTest && (Qe.push(r), Li[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
437
437
  }
438
- Mr(e, r), t.register && t.register(ot, r, nt);
438
+ Mr(e, r), t.register && t.register(lt, r, ot);
439
439
  } else
440
- Gr.push(t);
441
- }, z = 255, ke = {
440
+ qr.push(t);
441
+ }, z = 255, Ce = {
442
442
  aqua: [0, z, z],
443
443
  lime: [0, z, 0],
444
444
  silver: [192, 192, 192],
@@ -461,24 +461,24 @@ var dt = {
461
461
  }, ci = function(t, e, i) {
462
462
  return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * z + 0.5 | 0;
463
463
  }, jr = function(t, e, i) {
464
- var r = t ? Rt(t) ? [t >> 16, t >> 8 & z, t & z] : 0 : ke.black, n, s, a, l, h, u, f, d, _, p;
464
+ var r = t ? Rt(t) ? [t >> 16, t >> 8 & z, t & z] : 0 : Ce.black, n, s, a, u, l, h, c, d, p, _;
465
465
  if (!r) {
466
- if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ke[t])
467
- r = ke[t];
466
+ if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), Ce[t])
467
+ r = Ce[t];
468
468
  else if (t.charAt(0) === "#") {
469
469
  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)
470
470
  return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & z, r & z, parseInt(t.substr(7), 16) / 255];
471
471
  t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & z, t & z];
472
472
  } else if (t.substr(0, 3) === "hsl") {
473
- if (r = p = t.match(vi), !e)
474
- l = +r[0] % 360 / 360, h = +r[1] / 100, u = +r[2] / 100, s = u <= 0.5 ? u * (h + 1) : u + h - u * h, n = u * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = ci(l + 1 / 3, n, s), r[1] = ci(l, n, s), r[2] = ci(l - 1 / 3, n, s);
473
+ if (r = _ = t.match(vi), !e)
474
+ u = +r[0] % 360 / 360, l = +r[1] / 100, h = +r[2] / 100, s = h <= 0.5 ? h * (l + 1) : h + l - h * l, n = h * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = ci(u + 1 / 3, n, s), r[1] = ci(u, n, s), r[2] = ci(u - 1 / 3, n, s);
475
475
  else if (~t.indexOf("="))
476
476
  return r = t.match(Sr), i && r.length < 4 && (r[3] = 1), r;
477
477
  } else
478
- r = t.match(vi) || ke.transparent;
478
+ r = t.match(vi) || Ce.transparent;
479
479
  r = r.map(Number);
480
480
  }
481
- return e && !p && (n = r[0] / z, s = r[1] / z, a = r[2] / z, f = Math.max(n, s, a), d = Math.min(n, s, a), u = (f + d) / 2, f === d ? l = h = 0 : (_ = f - d, h = u > 0.5 ? _ / (2 - f - d) : _ / (f + d), l = f === n ? (s - a) / _ + (s < a ? 6 : 0) : f === s ? (a - n) / _ + 2 : (n - s) / _ + 4, l *= 60), r[0] = ~~(l + 0.5), r[1] = ~~(h * 100 + 0.5), r[2] = ~~(u * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
481
+ return e && !_ && (n = r[0] / z, s = r[1] / z, a = r[2] / z, c = Math.max(n, s, a), d = Math.min(n, s, a), h = (c + d) / 2, c === d ? u = l = 0 : (p = c - d, l = h > 0.5 ? p / (2 - c - d) : p / (c + d), u = c === n ? (s - a) / p + (s < a ? 6 : 0) : c === s ? (a - n) / p + 2 : (n - s) / p + 4, u *= 60), r[0] = ~~(u + 0.5), r[1] = ~~(l * 100 + 0.5), r[2] = ~~(h * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
482
482
  }, Qr = function(t) {
483
483
  var e = [], i = [], r = -1;
484
484
  return t.split(Xt).forEach(function(n) {
@@ -486,118 +486,118 @@ var dt = {
486
486
  e.push.apply(e, s), i.push(r += s.length + 1);
487
487
  }), e.c = i, e;
488
488
  }, or = function(t, e, i) {
489
- var r = "", n = (t + r).match(Xt), s = e ? "hsla(" : "rgba(", a = 0, l, h, u, f;
489
+ var r = "", n = (t + r).match(Xt), s = e ? "hsla(" : "rgba(", a = 0, u, l, h, c;
490
490
  if (!n)
491
491
  return t;
492
492
  if (n = n.map(function(d) {
493
493
  return (d = jr(d, e, 1)) && s + (e ? d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : d.join(",")) + ")";
494
- }), i && (u = Qr(t), l = i.c, l.join(r) !== u.c.join(r)))
495
- for (h = t.replace(Xt, "1").split(ce), f = h.length - 1; a < f; a++)
496
- r += h[a] + (~l.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (u.length ? u : n.length ? n : i).shift());
497
- if (!h)
498
- for (h = t.split(Xt), f = h.length - 1; a < f; a++)
499
- r += h[a] + n[a];
500
- return r + h[f];
494
+ }), i && (h = Qr(t), u = i.c, u.join(r) !== h.c.join(r)))
495
+ for (l = t.replace(Xt, "1").split(ce), c = l.length - 1; a < c; a++)
496
+ r += l[a] + (~u.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (h.length ? h : n.length ? n : i).shift());
497
+ if (!l)
498
+ for (l = t.split(Xt), c = l.length - 1; a < c; a++)
499
+ r += l[a] + n[a];
500
+ return r + l[c];
501
501
  }, Xt = function() {
502
502
  var o = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
503
- for (t in ke)
503
+ for (t in Ce)
504
504
  o += "|" + t + "\\b";
505
505
  return new RegExp(o + ")", "gi");
506
506
  }(), xs = /hsl[a]?\(/, Zr = function(t) {
507
507
  var e = t.join(" "), i;
508
508
  if (Xt.lastIndex = 0, Xt.test(e))
509
509
  return i = xs.test(e), t[1] = or(t[1], i), t[0] = or(t[0], i, Qr(t[1])), !0;
510
- }, Be, ut = function() {
511
- var o = Date.now, t = 500, e = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [], l, h, u, f, d, _, p = function c(g) {
512
- var m = o() - r, b = g === !0, v, x, y, T;
513
- if ((m > t || m < 0) && (i += m - e), r += m, y = r - i, v = y - s, (v > 0 || b) && (T = ++f.frame, d = y - f.time * 1e3, f.time = y = y / 1e3, s += v + (v >= n ? 4 : n - v), x = 1), b || (l = h(c)), x)
514
- for (_ = 0; _ < a.length; _++)
515
- a[_](y, d, T, g);
510
+ }, Be, ct = function() {
511
+ var o = Date.now, t = 500, e = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [], u, l, h, c, d, p, _ = function f(g) {
512
+ var m = o() - r, b = g === !0, v, x, y, w;
513
+ if ((m > t || m < 0) && (i += m - e), r += m, y = r - i, v = y - s, (v > 0 || b) && (w = ++c.frame, d = y - c.time * 1e3, c.time = y = y / 1e3, s += v + (v >= n ? 4 : n - v), x = 1), b || (u = l(f)), x)
514
+ for (p = 0; p < a.length; p++)
515
+ a[p](y, d, w, g);
516
516
  };
517
- return f = {
517
+ return c = {
518
518
  time: 0,
519
519
  frame: 0,
520
520
  tick: function() {
521
- p(!0);
521
+ _(!0);
522
522
  },
523
523
  deltaRatio: function(g) {
524
524
  return d / (1e3 / (g || 60));
525
525
  },
526
526
  wake: function() {
527
- Or && (!yi && Bi() && (At = yi = window, Fi = At.document || {}, _t.gsap = ot, (At.gsapVersions || (At.gsapVersions = [])).push(ot.version), Dr(Je || At.GreenSockGlobals || !At.gsap && At || {}), Gr.forEach(Kr)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && f.sleep(), h = u || function(g) {
528
- return setTimeout(g, s - f.time * 1e3 + 1 | 0);
529
- }, Be = 1, p(2));
527
+ kr && (!yi && Bi() && (At = yi = window, Fi = At.document || {}, pt.gsap = lt, (At.gsapVersions || (At.gsapVersions = [])).push(lt.version), Dr(Je || At.GreenSockGlobals || !At.gsap && At || {}), qr.forEach(Kr)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, u && c.sleep(), l = h || function(g) {
528
+ return setTimeout(g, s - c.time * 1e3 + 1 | 0);
529
+ }, Be = 1, _(2));
530
530
  },
531
531
  sleep: function() {
532
- (u ? cancelAnimationFrame : clearTimeout)(l), Be = 0, h = Ie;
532
+ (h ? cancelAnimationFrame : clearTimeout)(u), Be = 0, l = Ie;
533
533
  },
534
534
  lagSmoothing: function(g, m) {
535
535
  t = g || 1 / 0, e = Math.min(m || 33, t);
536
536
  },
537
537
  fps: function(g) {
538
- n = 1e3 / (g || 240), s = f.time * 1e3 + n;
538
+ n = 1e3 / (g || 240), s = c.time * 1e3 + n;
539
539
  },
540
540
  add: function(g, m, b) {
541
- var v = m ? function(x, y, T, P) {
542
- g(x, y, T, P), f.remove(v);
541
+ var v = m ? function(x, y, w, P) {
542
+ g(x, y, w, P), c.remove(v);
543
543
  } : g;
544
- return f.remove(g), a[b ? "unshift" : "push"](v), xe(), v;
544
+ return c.remove(g), a[b ? "unshift" : "push"](v), xe(), v;
545
545
  },
546
546
  remove: function(g, m) {
547
- ~(m = a.indexOf(g)) && a.splice(m, 1) && _ >= m && _--;
547
+ ~(m = a.indexOf(g)) && a.splice(m, 1) && p >= m && p--;
548
548
  },
549
549
  _listeners: a
550
- }, f;
550
+ }, c;
551
551
  }(), xe = function() {
552
- return !Be && ut.wake();
553
- }, D = {}, ws = /^[\d.\-M][\d.\-,\s]/, Ts = /["']/g, Ps = function(t) {
554
- for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, l, h; n < s; n++)
555
- l = i[n], a = n !== s - 1 ? l.lastIndexOf(",") : l.length, h = l.substr(0, a), e[r] = isNaN(h) ? h.replace(Ts, "").trim() : +h, r = l.substr(a + 1).trim();
552
+ return !Be && ct.wake();
553
+ }, D = {}, Ts = /^[\d.\-M][\d.\-,\s]/, ws = /["']/g, Ps = function(t) {
554
+ for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, u, l; n < s; n++)
555
+ u = i[n], a = n !== s - 1 ? u.lastIndexOf(",") : u.length, l = u.substr(0, a), e[r] = isNaN(l) ? l.replace(ws, "").trim() : +l, r = u.substr(a + 1).trim();
556
556
  return e;
557
557
  }, As = function(t) {
558
558
  var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
559
559
  return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
560
560
  }, Ss = function(t) {
561
561
  var e = (t + "").split("("), i = D[e[0]];
562
- return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Ps(e[1])] : As(t).split(",").map(zr)) : D._CE && ws.test(t) ? D._CE("", t) : i;
562
+ return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Ps(e[1])] : As(t).split(",").map(zr)) : D._CE && Ts.test(t) ? D._CE("", t) : i;
563
563
  }, Jr = function(t) {
564
564
  return function(e) {
565
565
  return 1 - t(1 - e);
566
566
  };
567
567
  }, tn = function o(t, e) {
568
568
  for (var i = t._first, r; i; )
569
- i instanceof J ? o(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? o(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
569
+ i instanceof tt ? o(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? o(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
570
570
  }, se = function(t, e) {
571
571
  return t && (U(t) ? t : D[t] || Ss(t)) || e;
572
572
  }, le = function(t, e, i, r) {
573
- i === void 0 && (i = function(l) {
574
- return 1 - e(1 - l);
575
- }), r === void 0 && (r = function(l) {
576
- return l < 0.5 ? e(l * 2) / 2 : 1 - e((1 - l) * 2) / 2;
573
+ i === void 0 && (i = function(u) {
574
+ return 1 - e(1 - u);
575
+ }), r === void 0 && (r = function(u) {
576
+ return u < 0.5 ? e(u * 2) / 2 : 1 - e((1 - u) * 2) / 2;
577
577
  });
578
578
  var n = {
579
579
  easeIn: e,
580
580
  easeOut: i,
581
581
  easeInOut: r
582
582
  }, s;
583
- return rt(t, function(a) {
584
- D[a] = _t[a] = n, D[s = a.toLowerCase()] = i;
585
- for (var l in n)
586
- D[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = D[a + "." + l] = n[l];
583
+ return st(t, function(a) {
584
+ D[a] = pt[a] = n, D[s = a.toLowerCase()] = i;
585
+ for (var u in n)
586
+ D[s + (u === "easeIn" ? ".in" : u === "easeOut" ? ".out" : ".inOut")] = D[a + "." + u] = n[u];
587
587
  }), n;
588
588
  }, en = function(t) {
589
589
  return function(e) {
590
590
  return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
591
591
  };
592
592
  }, fi = function o(t, e, i) {
593
- var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / mi * (Math.asin(1 / r) || 0), a = function(u) {
594
- return u === 1 ? 1 : r * Math.pow(2, -10 * u) * ts((u - s) * n) + 1;
595
- }, l = t === "out" ? a : t === "in" ? function(h) {
596
- return 1 - a(1 - h);
593
+ var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / mi * (Math.asin(1 / r) || 0), a = function(h) {
594
+ return h === 1 ? 1 : r * Math.pow(2, -10 * h) * ts((h - s) * n) + 1;
595
+ }, u = t === "out" ? a : t === "in" ? function(l) {
596
+ return 1 - a(1 - l);
597
597
  } : en(a);
598
- return n = mi / n, l.config = function(h, u) {
599
- return o(t, h, u);
600
- }, l;
598
+ return n = mi / n, u.config = function(l, h) {
599
+ return o(t, l, h);
600
+ }, u;
601
601
  }, di = function o(t, e) {
602
602
  e === void 0 && (e = 1.70158);
603
603
  var i = function(s) {
@@ -609,7 +609,7 @@ var dt = {
609
609
  return o(t, n);
610
610
  }, r;
611
611
  };
612
- rt("Linear,Quad,Cubic,Quart,Quint,Strong", function(o, t) {
612
+ st("Linear,Quad,Cubic,Quart,Quint,Strong", function(o, t) {
613
613
  var e = t < 5 ? t + 1 : t;
614
614
  le(o + ",Power" + (e - 1), t ? function(i) {
615
615
  return Math.pow(i, e);
@@ -641,24 +641,24 @@ le("Sine", function(o) {
641
641
  return o === 1 ? 1 : -Jn(o * Qn) + 1;
642
642
  });
643
643
  le("Back", di("in"), di("out"), di());
644
- D.SteppedEase = D.steps = _t.SteppedEase = {
644
+ D.SteppedEase = D.steps = pt.SteppedEase = {
645
645
  config: function(t, e) {
646
646
  t === void 0 && (t = 1);
647
647
  var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - B;
648
648
  return function(a) {
649
- return ((r * We(0, s, a) | 0) + n) * i;
649
+ return ((r * He(0, s, a) | 0) + n) * i;
650
650
  };
651
651
  }
652
652
  };
653
653
  be.ease = D["quad.out"];
654
- rt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(o) {
654
+ st("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(o) {
655
655
  return $i += o + "," + o + "Params,";
656
656
  });
657
657
  var rn = function(t, e) {
658
658
  this.id = Zn++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : Rr, this.set = e ? e.getSetter : Xi;
659
659
  }, Fe = /* @__PURE__ */ function() {
660
660
  function o(e) {
661
- 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, ye(this, +e.duration, 1, 1), this.data = e.data, F && (this._ctx = F, F.data.push(this)), Be || ut.wake();
661
+ 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, ye(this, +e.duration, 1, 1), this.data = e.data, F && (this._ctx = F, F.data.push(this)), Be || ct.wake();
662
662
  }
663
663
  var t = o.prototype;
664
664
  return t.delay = function(i) {
@@ -692,7 +692,7 @@ var rn = function(t, e) {
692
692
  if (this._rts === i)
693
693
  return this;
694
694
  var n = this.parent && this._ts ? ii(this.parent._time, this) : this._tTime;
695
- return this._rts = +i || 0, this._ts = this._ps || i === -B ? 0 : this._rts, this.totalTime(We(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), ai(this), as(this);
695
+ return this._rts = +i || 0, this._ts = this._ps || i === -B ? 0 : this._rts, this.totalTime(He(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), ai(this), as(this);
696
696
  }, t.paused = function(i) {
697
697
  return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (xe(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== B && (this._tTime -= B)))), this) : this._ps;
698
698
  }, t.startTime = function(i) {
@@ -703,14 +703,14 @@ var rn = function(t, e) {
703
703
  }
704
704
  return this._start;
705
705
  }, t.endTime = function(i) {
706
- return this._start + (it(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
706
+ return this._start + (nt(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
707
707
  }, t.rawTime = function(i) {
708
708
  var r = this.parent || this._dp;
709
709
  return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? ii(r.rawTime(i), this) : this._tTime : this._tTime;
710
710
  }, t.revert = function(i) {
711
711
  i === void 0 && (i = rs);
712
- var r = q;
713
- return q = i, Wi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), q = r, this;
712
+ var r = G;
713
+ return G = i, Hi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), G = r, this;
714
714
  }, t.globalTime = function(i) {
715
715
  for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
716
716
  n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
@@ -726,9 +726,9 @@ var rn = function(t, e) {
726
726
  }, t.yoyo = function(i) {
727
727
  return arguments.length ? (this._yoyo = i, this) : this._yoyo;
728
728
  }, t.seek = function(i, r) {
729
- return this.totalTime(mt(this, i), it(r));
729
+ return this.totalTime(vt(this, i), nt(r));
730
730
  }, t.restart = function(i, r) {
731
- return this.play().totalTime(i ? -this._delay : 0, it(r)), this._dur || (this._zTime = -B), this;
731
+ return this.play().totalTime(i ? -this._delay : 0, nt(r)), this._dur || (this._zTime = -B), this;
732
732
  }, t.play = function(i, r) {
733
733
  return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
734
734
  }, t.reverse = function(i, r) {
@@ -751,16 +751,16 @@ var rn = function(t, e) {
751
751
  var r = this;
752
752
  return new Promise(function(n) {
753
753
  var s = U(i) ? i : Br, a = function() {
754
- var h = r.then;
755
- r.then = null, U(s) && (s = s(r)) && (s.then || s === r) && (r.then = h), n(s), r.then = h;
754
+ var l = r.then;
755
+ r.then = null, U(s) && (s = s(r)) && (s.then || s === r) && (r.then = l), n(s), r.then = l;
756
756
  };
757
757
  r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? a() : r._prom = a;
758
758
  });
759
759
  }, t.kill = function() {
760
- Ce(this);
760
+ Oe(this);
761
761
  }, o;
762
762
  }();
763
- pt(Fe.prototype, {
763
+ _t(Fe.prototype, {
764
764
  _time: 0,
765
765
  _start: 0,
766
766
  _end: 0,
@@ -780,11 +780,11 @@ pt(Fe.prototype, {
780
780
  _ps: !1,
781
781
  _rts: 1
782
782
  });
783
- var J = /* @__PURE__ */ function(o) {
784
- Tr(t, o);
783
+ var tt = /* @__PURE__ */ function(o) {
784
+ wr(t, o);
785
785
  function t(i, r) {
786
786
  var n;
787
- return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = it(i.sortChildren), L && St(i.parent || L, Dt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Lr(Dt(n), i.scrollTrigger), n;
787
+ return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = nt(i.sortChildren), L && St(i.parent || L, Dt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Lr(Dt(n), i.scrollTrigger), n;
788
788
  }
789
789
  var e = t.prototype;
790
790
  return e.to = function(r, n, s) {
@@ -794,67 +794,67 @@ var J = /* @__PURE__ */ function(o) {
794
794
  }, e.fromTo = function(r, n, s, a) {
795
795
  return De(2, arguments, this), this;
796
796
  }, e.set = function(r, n, s) {
797
- return n.duration = 0, n.parent = this, Oe(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new V(r, n, mt(this, s), 1), this;
797
+ return n.duration = 0, n.parent = this, ke(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new V(r, n, vt(this, s), 1), this;
798
798
  }, e.call = function(r, n, s) {
799
799
  return St(this, V.delayedCall(0, r, n), s);
800
- }, e.staggerTo = function(r, n, s, a, l, h, u) {
801
- return s.duration = n, s.stagger = s.stagger || a, s.onComplete = h, s.onCompleteParams = u, s.parent = this, new V(r, s, mt(this, l)), this;
802
- }, e.staggerFrom = function(r, n, s, a, l, h, u) {
803
- return s.runBackwards = 1, Oe(s).immediateRender = it(s.immediateRender), this.staggerTo(r, n, s, a, l, h, u);
804
- }, e.staggerFromTo = function(r, n, s, a, l, h, u, f) {
805
- return a.startAt = s, Oe(a).immediateRender = it(a.immediateRender), this.staggerTo(r, n, a, l, h, u, f);
800
+ }, e.staggerTo = function(r, n, s, a, u, l, h) {
801
+ return s.duration = n, s.stagger = s.stagger || a, s.onComplete = l, s.onCompleteParams = h, s.parent = this, new V(r, s, vt(this, u)), this;
802
+ }, e.staggerFrom = function(r, n, s, a, u, l, h) {
803
+ return s.runBackwards = 1, ke(s).immediateRender = nt(s.immediateRender), this.staggerTo(r, n, s, a, u, l, h);
804
+ }, e.staggerFromTo = function(r, n, s, a, u, l, h, c) {
805
+ return a.startAt = s, ke(a).immediateRender = nt(a.immediateRender), this.staggerTo(r, n, a, u, l, h, c);
806
806
  }, e.render = function(r, n, s) {
807
- var a = this._time, l = this._dirty ? this.totalDuration() : this._tDur, h = this._dur, u = r <= 0 ? 0 : H(r), f = this._zTime < 0 != r < 0 && (this._initted || !h), d, _, p, c, g, m, b, v, x, y, T, P;
808
- if (this !== L && u > l && r >= 0 && (u = l), u !== this._tTime || s || f) {
809
- if (a !== this._time && h && (u += this._time - a, r += this._time - a), d = u, x = this._start, v = this._ts, m = !v, f && (h || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
810
- if (T = this._yoyo, g = h + this._rDelay, this._repeat < -1 && r < 0)
807
+ var a = this._time, u = this._dirty ? this.totalDuration() : this._tDur, l = this._dur, h = r <= 0 ? 0 : W(r), c = this._zTime < 0 != r < 0 && (this._initted || !l), d, p, _, f, g, m, b, v, x, y, w, P;
808
+ if (this !== L && h > u && r >= 0 && (h = u), h !== this._tTime || s || c) {
809
+ if (a !== this._time && l && (h += this._time - a, r += this._time - a), d = h, x = this._start, v = this._ts, m = !v, c && (l || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
810
+ if (w = this._yoyo, g = l + this._rDelay, this._repeat < -1 && r < 0)
811
811
  return this.totalTime(g * 100 + r, n, s);
812
- if (d = H(u % g), u === l ? (c = this._repeat, d = h) : (y = H(u / g), c = ~~y, c && c === y && (d = h, c--), d > h && (d = h)), y = ve(this._tTime, g), !a && this._tTime && y !== c && this._tTime - y * g - this._dur <= 0 && (y = c), T && c & 1 && (d = h - d, P = 1), c !== y && !this._lock) {
813
- var A = T && y & 1, w = A === (T && c & 1);
814
- if (c < y && (A = !A), a = A ? 0 : u % h ? h : u, this._lock = 1, this.render(a || (P ? 0 : H(c * g)), n, !h)._lock = 0, this._tTime = u, !n && this.parent && ct(this, "onRepeat"), this.vars.repeatRefresh && !P && (this.invalidate()._lock = 1), a && a !== this._time || m !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
812
+ if (d = W(h % g), h === u ? (f = this._repeat, d = l) : (y = W(h / g), f = ~~y, f && f === y && (d = l, f--), d > l && (d = l)), y = ve(this._tTime, g), !a && this._tTime && y !== f && this._tTime - y * g - this._dur <= 0 && (y = f), w && f & 1 && (d = l - d, P = 1), f !== y && !this._lock) {
813
+ var A = w && y & 1, T = A === (w && f & 1);
814
+ if (f < y && (A = !A), a = A ? 0 : h % l ? l : h, this._lock = 1, this.render(a || (P ? 0 : W(f * g)), n, !l)._lock = 0, this._tTime = h, !n && this.parent && ft(this, "onRepeat"), this.vars.repeatRefresh && !P && (this.invalidate()._lock = 1), a && a !== this._time || m !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
815
815
  return this;
816
- if (h = this._dur, l = this._tDur, w && (this._lock = 2, a = A ? h : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !P && this.invalidate()), this._lock = 0, !this._ts && !m)
816
+ if (l = this._dur, u = this._tDur, T && (this._lock = 2, a = A ? l : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !P && this.invalidate()), this._lock = 0, !this._ts && !m)
817
817
  return this;
818
818
  tn(this, P);
819
819
  }
820
820
  }
821
- if (this._hasPause && !this._forcing && this._lock < 2 && (b = cs(this, H(a), H(d)), b && (u -= d - (d = b._start))), this._tTime = u, this._time = d, this._act = !v, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && u && !n && !y && (ct(this, "onStart"), this._tTime !== u))
821
+ if (this._hasPause && !this._forcing && this._lock < 2 && (b = cs(this, W(a), W(d)), b && (h -= d - (d = b._start))), this._tTime = h, this._time = d, this._act = !v, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && h && !n && !y && (ft(this, "onStart"), this._tTime !== h))
822
822
  return this;
823
823
  if (d >= a && r >= 0)
824
- for (_ = this._first; _; ) {
825
- if (p = _._next, (_._act || d >= _._start) && _._ts && b !== _) {
826
- if (_.parent !== this)
824
+ for (p = this._first; p; ) {
825
+ if (_ = p._next, (p._act || d >= p._start) && p._ts && b !== p) {
826
+ if (p.parent !== this)
827
827
  return this.render(r, n, s);
828
- if (_.render(_._ts > 0 ? (d - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (d - _._start) * _._ts, n, s), d !== this._time || !this._ts && !m) {
829
- b = 0, p && (u += this._zTime = -B);
828
+ if (p.render(p._ts > 0 ? (d - p._start) * p._ts : (p._dirty ? p.totalDuration() : p._tDur) + (d - p._start) * p._ts, n, s), d !== this._time || !this._ts && !m) {
829
+ b = 0, _ && (h += this._zTime = -B);
830
830
  break;
831
831
  }
832
832
  }
833
- _ = p;
833
+ p = _;
834
834
  }
835
835
  else {
836
- _ = this._last;
837
- for (var C = r < 0 ? r : d; _; ) {
838
- if (p = _._prev, (_._act || C <= _._end) && _._ts && b !== _) {
839
- if (_.parent !== this)
836
+ p = this._last;
837
+ for (var C = r < 0 ? r : d; p; ) {
838
+ if (_ = p._prev, (p._act || C <= p._end) && p._ts && b !== p) {
839
+ if (p.parent !== this)
840
840
  return this.render(r, n, s);
841
- if (_.render(_._ts > 0 ? (C - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (C - _._start) * _._ts, n, s || q && Wi(_)), d !== this._time || !this._ts && !m) {
842
- b = 0, p && (u += this._zTime = C ? -B : B);
841
+ if (p.render(p._ts > 0 ? (C - p._start) * p._ts : (p._dirty ? p.totalDuration() : p._tDur) + (C - p._start) * p._ts, n, s || G && Hi(p)), d !== this._time || !this._ts && !m) {
842
+ b = 0, _ && (h += this._zTime = C ? -B : B);
843
843
  break;
844
844
  }
845
845
  }
846
- _ = p;
846
+ p = _;
847
847
  }
848
848
  }
849
849
  if (b && !n && (this.pause(), b.render(d >= a ? 0 : -B)._zTime = d >= a ? 1 : -1, this._ts))
850
850
  return this._start = x, ai(this), this.render(r, n, s);
851
- this._onUpdate && !n && ct(this, "onUpdate", !0), (u === l && this._tTime >= this.totalDuration() || !u && a) && (x === this._start || Math.abs(v) !== Math.abs(this._ts)) && (this._lock || ((r || !h) && (u === l && this._ts > 0 || !u && this._ts < 0) && Gt(this, 1), !n && !(r < 0 && !a) && (u || a || !l) && (ct(this, u === l && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(u < l && this.timeScale() > 0) && this._prom())));
851
+ this._onUpdate && !n && ft(this, "onUpdate", !0), (h === u && this._tTime >= this.totalDuration() || !h && a) && (x === this._start || Math.abs(v) !== Math.abs(this._ts)) && (this._lock || ((r || !l) && (h === u && this._ts > 0 || !h && this._ts < 0) && qt(this, 1), !n && !(r < 0 && !a) && (h || a || !u) && (ft(this, h === u && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < u && this.timeScale() > 0) && this._prom())));
852
852
  }
853
853
  return this;
854
854
  }, e.add = function(r, n) {
855
855
  var s = this;
856
- if (Rt(n) || (n = mt(this, n, r)), !(r instanceof Fe)) {
857
- if (Q(r))
856
+ if (Rt(n) || (n = vt(this, n, r)), !(r instanceof Fe)) {
857
+ if (Z(r))
858
858
  return r.forEach(function(a) {
859
859
  return s.add(a, n);
860
860
  }), this;
@@ -867,10 +867,10 @@ var J = /* @__PURE__ */ function(o) {
867
867
  }
868
868
  return this !== r ? St(this, r, n) : this;
869
869
  }, e.getChildren = function(r, n, s, a) {
870
- r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -vt);
871
- for (var l = [], h = this._first; h; )
872
- h._start >= a && (h instanceof V ? n && l.push(h) : (s && l.push(h), r && l.push.apply(l, h.getChildren(!0, n, s)))), h = h._next;
873
- return l;
870
+ r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -yt);
871
+ for (var u = [], l = this._first; l; )
872
+ l._start >= a && (l instanceof V ? n && u.push(l) : (s && u.push(l), r && u.push.apply(u, l.getChildren(!0, n, s)))), l = l._next;
873
+ return u;
874
874
  }, e.getById = function(r) {
875
875
  for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
876
876
  if (n[s].vars.id === r)
@@ -878,65 +878,65 @@ var J = /* @__PURE__ */ function(o) {
878
878
  }, e.remove = function(r) {
879
879
  return X(r) ? this.removeLabel(r) : U(r) ? this.killTweensOf(r) : (r.parent === this && oi(this, r), r === this._recent && (this._recent = this._last), ne(this));
880
880
  }, e.totalTime = function(r, n) {
881
- return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = H(ut.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), o.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
881
+ return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = W(ct.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), o.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
882
882
  }, e.addLabel = function(r, n) {
883
- return this.labels[r] = mt(this, n), this;
883
+ return this.labels[r] = vt(this, n), this;
884
884
  }, e.removeLabel = function(r) {
885
885
  return delete this.labels[r], this;
886
886
  }, e.addPause = function(r, n, s) {
887
887
  var a = V.delayedCall(0, n || Ie, s);
888
- return a.data = "isPause", this._hasPause = 1, St(this, a, mt(this, r));
888
+ return a.data = "isPause", this._hasPause = 1, St(this, a, vt(this, r));
889
889
  }, e.removePause = function(r) {
890
890
  var n = this._first;
891
- for (r = mt(this, r); n; )
892
- n._start === r && n.data === "isPause" && Gt(n), n = n._next;
891
+ for (r = vt(this, r); n; )
892
+ n._start === r && n.data === "isPause" && qt(n), n = n._next;
893
893
  }, e.killTweensOf = function(r, n, s) {
894
- for (var a = this.getTweensOf(r, s), l = a.length; l--; )
895
- Wt !== a[l] && a[l].kill(r, n);
894
+ for (var a = this.getTweensOf(r, s), u = a.length; u--; )
895
+ Ht !== a[u] && a[u].kill(r, n);
896
896
  return this;
897
897
  }, e.getTweensOf = function(r, n) {
898
- for (var s = [], a = yt(r), l = this._first, h = Rt(n), u; l; )
899
- l instanceof V ? ns(l._targets, a) && (h ? (!Wt || l._initted && l._ts) && l.globalTime(0) <= n && l.globalTime(l.totalDuration()) > n : !n || l.isActive()) && s.push(l) : (u = l.getTweensOf(a, n)).length && s.push.apply(s, u), l = l._next;
898
+ for (var s = [], a = xt(r), u = this._first, l = Rt(n), h; u; )
899
+ u instanceof V ? ns(u._targets, a) && (l ? (!Ht || u._initted && u._ts) && u.globalTime(0) <= n && u.globalTime(u.totalDuration()) > n : !n || u.isActive()) && s.push(u) : (h = u.getTweensOf(a, n)).length && s.push.apply(s, h), u = u._next;
900
900
  return s;
901
901
  }, e.tweenTo = function(r, n) {
902
902
  n = n || {};
903
- var s = this, a = mt(s, r), l = n, h = l.startAt, u = l.onStart, f = l.onStartParams, d = l.immediateRender, _, p = V.to(s, pt({
903
+ var s = this, a = vt(s, r), u = n, l = u.startAt, h = u.onStart, c = u.onStartParams, d = u.immediateRender, p, _ = V.to(s, _t({
904
904
  ease: n.ease || "none",
905
905
  lazy: !1,
906
906
  immediateRender: !1,
907
907
  time: a,
908
908
  overwrite: "auto",
909
- duration: n.duration || Math.abs((a - (h && "time" in h ? h.time : s._time)) / s.timeScale()) || B,
909
+ duration: n.duration || Math.abs((a - (l && "time" in l ? l.time : s._time)) / s.timeScale()) || B,
910
910
  onStart: function() {
911
- if (s.pause(), !_) {
912
- var g = n.duration || Math.abs((a - (h && "time" in h ? h.time : s._time)) / s.timeScale());
913
- p._dur !== g && ye(p, g, 0, 1).render(p._time, !0, !0), _ = 1;
911
+ if (s.pause(), !p) {
912
+ var g = n.duration || Math.abs((a - (l && "time" in l ? l.time : s._time)) / s.timeScale());
913
+ _._dur !== g && ye(_, g, 0, 1).render(_._time, !0, !0), p = 1;
914
914
  }
915
- u && u.apply(p, f || []);
915
+ h && h.apply(_, c || []);
916
916
  }
917
917
  }, n));
918
- return d ? p.render(0) : p;
918
+ return d ? _.render(0) : _;
919
919
  }, e.tweenFromTo = function(r, n, s) {
920
- return this.tweenTo(n, pt({
920
+ return this.tweenTo(n, _t({
921
921
  startAt: {
922
- time: mt(this, r)
922
+ time: vt(this, r)
923
923
  }
924
924
  }, s));
925
925
  }, e.recent = function() {
926
926
  return this._recent;
927
927
  }, e.nextLabel = function(r) {
928
- return r === void 0 && (r = this._time), sr(this, mt(this, r));
928
+ return r === void 0 && (r = this._time), sr(this, vt(this, r));
929
929
  }, e.previousLabel = function(r) {
930
- return r === void 0 && (r = this._time), sr(this, mt(this, r), 1);
930
+ return r === void 0 && (r = this._time), sr(this, vt(this, r), 1);
931
931
  }, e.currentLabel = function(r) {
932
932
  return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + B);
933
933
  }, e.shiftChildren = function(r, n, s) {
934
934
  s === void 0 && (s = 0);
935
- for (var a = this._first, l = this.labels, h; a; )
935
+ for (var a = this._first, u = this.labels, l; a; )
936
936
  a._start >= s && (a._start += r, a._end += r), a = a._next;
937
937
  if (n)
938
- for (h in l)
939
- l[h] >= s && (l[h] += r);
938
+ for (l in u)
939
+ u[l] >= s && (u[l] += r);
940
940
  return ne(this);
941
941
  }, e.invalidate = function(r) {
942
942
  var n = this._first;
@@ -949,139 +949,139 @@ var J = /* @__PURE__ */ function(o) {
949
949
  s = n._next, this.remove(n), n = s;
950
950
  return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), ne(this);
951
951
  }, e.totalDuration = function(r) {
952
- var n = 0, s = this, a = s._last, l = vt, h, u, f;
952
+ var n = 0, s = this, a = s._last, u = yt, l, h, c;
953
953
  if (arguments.length)
954
954
  return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
955
955
  if (s._dirty) {
956
- for (f = s.parent; a; )
957
- h = a._prev, a._dirty && a.totalDuration(), u = a._start, u > l && s._sort && a._ts && !s._lock ? (s._lock = 1, St(s, a, u - a._delay, 1)._lock = 0) : l = u, u < 0 && a._ts && (n -= u, (!f && !s._dp || f && f.smoothChildTiming) && (s._start += u / s._ts, s._time -= u, s._tTime -= u), s.shiftChildren(-u, !1, -1 / 0), l = 0), a._end > n && a._ts && (n = a._end), a = h;
956
+ for (c = s.parent; a; )
957
+ l = a._prev, a._dirty && a.totalDuration(), h = a._start, h > u && s._sort && a._ts && !s._lock ? (s._lock = 1, St(s, a, h - a._delay, 1)._lock = 0) : u = h, h < 0 && a._ts && (n -= h, (!c && !s._dp || c && c.smoothChildTiming) && (s._start += h / s._ts, s._time -= h, s._tTime -= h), s.shiftChildren(-h, !1, -1 / 0), u = 0), a._end > n && a._ts && (n = a._end), a = l;
958
958
  ye(s, s === L && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
959
959
  }
960
960
  return s._tDur;
961
961
  }, t.updateRoot = function(r) {
962
- if (L._ts && (Ir(L, ii(r, L)), Er = ut.frame), ut.frame >= er) {
962
+ if (L._ts && (Ir(L, ii(r, L)), Er = ct.frame), ct.frame >= er) {
963
963
  er += dt.autoSleep || 120;
964
964
  var n = L._first;
965
- if ((!n || !n._ts) && dt.autoSleep && ut._listeners.length < 2) {
965
+ if ((!n || !n._ts) && dt.autoSleep && ct._listeners.length < 2) {
966
966
  for (; n && !n._ts; )
967
967
  n = n._next;
968
- n || ut.sleep();
968
+ n || ct.sleep();
969
969
  }
970
970
  }
971
971
  }, t;
972
972
  }(Fe);
973
- pt(J.prototype, {
973
+ _t(tt.prototype, {
974
974
  _lock: 0,
975
975
  _hasPause: 0,
976
976
  _forcing: 0
977
977
  });
978
- var Cs = function(t, e, i, r, n, s, a) {
979
- var l = new nt(this._pt, t, e, 0, 1, hn, null, n), h = 0, u = 0, f, d, _, p, c, g, m, b;
980
- for (l.b = i, l.e = r, i += "", r += "", (m = ~r.indexOf("random(")) && (r = ze(r)), s && (b = [i, r], s(b, t, e), i = b[0], r = b[1]), d = i.match(hi) || []; f = hi.exec(r); )
981
- p = f[0], c = r.substring(h, f.index), _ ? _ = (_ + 1) % 5 : c.substr(-5) === "rgba(" && (_ = 1), p !== d[u++] && (g = parseFloat(d[u - 1]) || 0, l._pt = {
982
- _next: l._pt,
983
- p: c || u === 1 ? c : ",",
978
+ var Os = function(t, e, i, r, n, s, a) {
979
+ var u = new ot(this._pt, t, e, 0, 1, un, null, n), l = 0, h = 0, c, d, p, _, f, g, m, b;
980
+ for (u.b = i, u.e = r, i += "", r += "", (m = ~r.indexOf("random(")) && (r = ze(r)), s && (b = [i, r], s(b, t, e), i = b[0], r = b[1]), d = i.match(ui) || []; c = ui.exec(r); )
981
+ _ = c[0], f = r.substring(l, c.index), p ? p = (p + 1) % 5 : f.substr(-5) === "rgba(" && (p = 1), _ !== d[h++] && (g = parseFloat(d[h - 1]) || 0, u._pt = {
982
+ _next: u._pt,
983
+ p: f || h === 1 ? f : ",",
984
984
  //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.
985
985
  s: g,
986
- c: p.charAt(1) === "=" ? de(g, p) - g : parseFloat(p) - g,
987
- m: _ && _ < 4 ? Math.round : 0
988
- }, h = hi.lastIndex);
989
- return l.c = h < r.length ? r.substring(h, r.length) : "", l.fp = a, (Cr.test(r) || m) && (l.e = 0), this._pt = l, l;
990
- }, Vi = function(t, e, i, r, n, s, a, l, h, u) {
986
+ c: _.charAt(1) === "=" ? de(g, _) - g : parseFloat(_) - g,
987
+ m: p && p < 4 ? Math.round : 0
988
+ }, l = ui.lastIndex);
989
+ return u.c = l < r.length ? r.substring(l, r.length) : "", u.fp = a, (Or.test(r) || m) && (u.e = 0), this._pt = u, u;
990
+ }, Vi = function(t, e, i, r, n, s, a, u, l, h) {
991
991
  U(r) && (r = r(n || 0, t, s));
992
- var f = t[e], d = i !== "get" ? i : U(f) ? h ? t[e.indexOf("set") || !U(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](h) : t[e]() : f, _ = U(f) ? h ? Es : an : Yi, p;
993
- if (X(r) && (~r.indexOf("random(") && (r = ze(r)), r.charAt(1) === "=" && (p = de(d, r) + (K(d) || 0), (p || p === 0) && (r = p))), !u || d !== r || Ci)
994
- return !isNaN(d * r) && r !== "" ? (p = new nt(this._pt, t, e, +d || 0, r - (d || 0), typeof f == "boolean" ? Is : ln, 0, _), h && (p.fp = h), a && p.modifier(a, this, t), this._pt = p) : (!f && !(e in t) && Ni(e, r), Cs.call(this, t, e, d, r, _, l || dt.stringFilter, h));
995
- }, ks = function(t, e, i, r, n) {
996
- if (U(t) && (t = Me(t, n, e, i, r)), !Ot(t) || t.style && t.nodeType || Q(t) || Ar(t))
992
+ var c = t[e], d = i !== "get" ? i : U(c) ? l ? t[e.indexOf("set") || !U(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](l) : t[e]() : c, p = U(c) ? l ? Es : an : Yi, _;
993
+ if (X(r) && (~r.indexOf("random(") && (r = ze(r)), r.charAt(1) === "=" && (_ = de(d, r) + (j(d) || 0), (_ || _ === 0) && (r = _))), !h || d !== r || Oi)
994
+ return !isNaN(d * r) && r !== "" ? (_ = new ot(this._pt, t, e, +d || 0, r - (d || 0), typeof c == "boolean" ? Is : ln, 0, p), l && (_.fp = l), a && _.modifier(a, this, t), this._pt = _) : (!c && !(e in t) && Ni(e, r), Os.call(this, t, e, d, r, p, u || dt.stringFilter, l));
995
+ }, Cs = function(t, e, i, r, n) {
996
+ if (U(t) && (t = Me(t, n, e, i, r)), !kt(t) || t.style && t.nodeType || Z(t) || Ar(t))
997
997
  return X(t) ? Me(t, n, e, i, r) : t;
998
998
  var s = {}, a;
999
999
  for (a in t)
1000
1000
  s[a] = Me(t[a], n, e, i, r);
1001
1001
  return s;
1002
1002
  }, nn = function(t, e, i, r, n, s) {
1003
- var a, l, h, u;
1004
- if (ht[t] && (a = new ht[t]()).init(n, a.rawVars ? e[t] : ks(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = l = new nt(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== fe))
1005
- for (h = i._ptLookup[i._targets.indexOf(n)], u = a._props.length; u--; )
1006
- h[a._props[u]] = l;
1003
+ var a, u, l, h;
1004
+ if (ht[t] && (a = new ht[t]()).init(n, a.rawVars ? e[t] : Cs(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = u = new ot(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== fe))
1005
+ for (l = i._ptLookup[i._targets.indexOf(n)], h = a._props.length; h--; )
1006
+ l[a._props[h]] = u;
1007
1007
  return a;
1008
- }, Wt, Ci, Hi = function o(t, e, i) {
1009
- var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, h = r.onUpdate, u = r.runBackwards, f = r.yoyoEase, d = r.keyframes, _ = r.autoRevert, p = t._dur, c = t._startAt, g = t._targets, m = t.parent, b = m && m.data === "nested" ? m.vars.targets : g, v = t._overwrite === "auto" && !Ii, x = t.timeline, y, T, P, A, w, C, M, O, E, Y, I, R, N;
1010
- if (x && (!d || !n) && (n = "none"), t._ease = se(n, be.ease), t._yEase = f ? Jr(se(f === !0 ? n : f, be.ease)) : 0, f && t._yoyo && !t._repeat && (f = t._yEase, t._yEase = t._ease, t._ease = f), t._from = !x && !!r.runBackwards, !x || d && !r.stagger) {
1011
- if (O = g[0] ? re(g[0]).harness : 0, R = O && r[O.prop], y = ei(r, Li), c && (c._zTime < 0 && c.progress(1), e < 0 && u && a && !_ ? c.render(-1, !0) : c.revert(u && p ? je : is), c._lazy = 0), s) {
1012
- if (Gt(t._startAt = V.set(g, pt({
1008
+ }, Ht, Oi, Wi = function o(t, e, i) {
1009
+ var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, u = r.lazy, l = r.onUpdate, h = r.runBackwards, c = r.yoyoEase, d = r.keyframes, p = r.autoRevert, _ = t._dur, f = t._startAt, g = t._targets, m = t.parent, b = m && m.data === "nested" ? m.vars.targets : g, v = t._overwrite === "auto" && !Ii, x = t.timeline, y, w, P, A, T, C, M, k, E, Y, I, R, N;
1010
+ if (x && (!d || !n) && (n = "none"), t._ease = se(n, be.ease), t._yEase = c ? Jr(se(c === !0 ? n : c, be.ease)) : 0, c && t._yoyo && !t._repeat && (c = t._yEase, t._yEase = t._ease, t._ease = c), t._from = !x && !!r.runBackwards, !x || d && !r.stagger) {
1011
+ if (k = g[0] ? re(g[0]).harness : 0, R = k && r[k.prop], y = ei(r, Li), f && (f._zTime < 0 && f.progress(1), e < 0 && h && a && !p ? f.render(-1, !0) : f.revert(h && _ ? je : is), f._lazy = 0), s) {
1012
+ if (qt(t._startAt = V.set(g, _t({
1013
1013
  data: "isStart",
1014
1014
  overwrite: !1,
1015
1015
  parent: m,
1016
1016
  immediateRender: !0,
1017
- lazy: !c && it(l),
1017
+ lazy: !f && nt(u),
1018
1018
  startAt: null,
1019
1019
  delay: 0,
1020
- onUpdate: h && function() {
1021
- return ct(t, "onUpdate");
1020
+ onUpdate: l && function() {
1021
+ return ft(t, "onUpdate");
1022
1022
  },
1023
1023
  stagger: 0
1024
- }, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (q || !a && !_) && t._startAt.revert(je), a && p && e <= 0 && i <= 0) {
1024
+ }, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (G || !a && !p) && t._startAt.revert(je), a && _ && e <= 0 && i <= 0) {
1025
1025
  e && (t._zTime = e);
1026
1026
  return;
1027
1027
  }
1028
- } else if (u && p && !c) {
1029
- if (e && (a = !1), P = pt({
1028
+ } else if (h && _ && !f) {
1029
+ if (e && (a = !1), P = _t({
1030
1030
  overwrite: !1,
1031
1031
  data: "isFromStart",
1032
1032
  //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.
1033
- lazy: a && !c && it(l),
1033
+ lazy: a && !f && nt(u),
1034
1034
  immediateRender: a,
1035
1035
  //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)
1036
1036
  stagger: 0,
1037
1037
  parent: m
1038
1038
  //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1039
- }, y), R && (P[O.prop] = R), Gt(t._startAt = V.set(g, P)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (q ? t._startAt.revert(je) : t._startAt.render(-1, !0)), t._zTime = e, !a)
1039
+ }, y), R && (P[k.prop] = R), qt(t._startAt = V.set(g, P)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (G ? t._startAt.revert(je) : t._startAt.render(-1, !0)), t._zTime = e, !a)
1040
1040
  o(t._startAt, B, B);
1041
1041
  else if (!e)
1042
1042
  return;
1043
1043
  }
1044
- for (t._pt = t._ptCache = 0, l = p && it(l) || l && !p, T = 0; T < g.length; T++) {
1045
- if (w = g[T], M = w._gsap || Ui(g)[T]._gsap, t._ptLookup[T] = Y = {}, xi[M.id] && Yt.length && ti(), I = b === g ? T : b.indexOf(w), O && (E = new O()).init(w, R || y, t, I, b) !== !1 && (t._pt = A = new nt(t._pt, w, E.name, 0, 1, E.render, E, 0, E.priority), E._props.forEach(function(G) {
1046
- Y[G] = A;
1047
- }), E.priority && (C = 1)), !O || R)
1044
+ for (t._pt = t._ptCache = 0, u = _ && nt(u) || u && !_, w = 0; w < g.length; w++) {
1045
+ if (T = g[w], M = T._gsap || Ui(g)[w]._gsap, t._ptLookup[w] = Y = {}, xi[M.id] && Yt.length && ti(), I = b === g ? w : b.indexOf(T), k && (E = new k()).init(T, R || y, t, I, b) !== !1 && (t._pt = A = new ot(t._pt, T, E.name, 0, 1, E.render, E, 0, E.priority), E._props.forEach(function(K) {
1046
+ Y[K] = A;
1047
+ }), E.priority && (C = 1)), !k || R)
1048
1048
  for (P in y)
1049
- ht[P] && (E = nn(P, y, t, I, w, b)) ? E.priority && (C = 1) : Y[P] = A = Vi.call(t, w, P, "get", y[P], I, b, 0, r.stringFilter);
1050
- t._op && t._op[T] && t.kill(w, t._op[T]), v && t._pt && (Wt = t, L.killTweensOf(w, Y, t.globalTime(e)), N = !t.parent, Wt = 0), t._pt && l && (xi[M.id] = 1);
1049
+ ht[P] && (E = nn(P, y, t, I, T, b)) ? E.priority && (C = 1) : Y[P] = A = Vi.call(t, T, P, "get", y[P], I, b, 0, r.stringFilter);
1050
+ t._op && t._op[w] && t.kill(T, t._op[w]), v && t._pt && (Ht = t, L.killTweensOf(T, Y, t.globalTime(e)), N = !t.parent, Ht = 0), t._pt && u && (xi[M.id] = 1);
1051
1051
  }
1052
- C && un(t), t._onInit && t._onInit(t);
1053
- }
1054
- t._onUpdate = h, t._initted = (!t._op || t._pt) && !N, d && e <= 0 && x.render(vt, !0, !0);
1055
- }, Os = function(t, e, i, r, n, s, a, l) {
1056
- var h = (t._pt && t._ptCache || (t._ptCache = {}))[e], u, f, d, _;
1057
- if (!h)
1058
- for (h = t._ptCache[e] = [], d = t._ptLookup, _ = t._targets.length; _--; ) {
1059
- if (u = d[_][e], u && u.d && u.d._pt)
1060
- for (u = u.d._pt; u && u.p !== e && u.fp !== e; )
1061
- u = u._next;
1062
- if (!u)
1063
- return Ci = 1, t.vars[e] = "+=0", Hi(t, a), Ci = 0, l ? Re(e + " not eligible for reset") : 1;
1064
- h.push(u);
1052
+ C && hn(t), t._onInit && t._onInit(t);
1053
+ }
1054
+ t._onUpdate = l, t._initted = (!t._op || t._pt) && !N, d && e <= 0 && x.render(yt, !0, !0);
1055
+ }, ks = function(t, e, i, r, n, s, a, u) {
1056
+ var l = (t._pt && t._ptCache || (t._ptCache = {}))[e], h, c, d, p;
1057
+ if (!l)
1058
+ for (l = t._ptCache[e] = [], d = t._ptLookup, p = t._targets.length; p--; ) {
1059
+ if (h = d[p][e], h && h.d && h.d._pt)
1060
+ for (h = h.d._pt; h && h.p !== e && h.fp !== e; )
1061
+ h = h._next;
1062
+ if (!h)
1063
+ return Oi = 1, t.vars[e] = "+=0", Wi(t, a), Oi = 0, u ? Re(e + " not eligible for reset") : 1;
1064
+ l.push(h);
1065
1065
  }
1066
- for (_ = h.length; _--; )
1067
- f = h[_], u = f._pt || f, u.s = (r || r === 0) && !n ? r : u.s + (r || 0) + s * u.c, u.c = i - u.s, f.e && (f.e = W(i) + K(f.e)), f.b && (f.b = u.s + K(f.b));
1066
+ for (p = l.length; p--; )
1067
+ c = l[p], h = c._pt || c, h.s = (r || r === 0) && !n ? r : h.s + (r || 0) + s * h.c, h.c = i - h.s, c.e && (c.e = H(i) + j(c.e)), c.b && (c.b = h.s + j(c.b));
1068
1068
  }, Ds = function(t, e) {
1069
- var i = t[0] ? re(t[0]).harness : 0, r = i && i.aliases, n, s, a, l;
1069
+ var i = t[0] ? re(t[0]).harness : 0, r = i && i.aliases, n, s, a, u;
1070
1070
  if (!r)
1071
1071
  return e;
1072
1072
  n = me({}, e);
1073
1073
  for (s in r)
1074
1074
  if (s in n)
1075
- for (l = r[s].split(","), a = l.length; a--; )
1076
- n[l[a]] = n[s];
1075
+ for (u = r[s].split(","), a = u.length; a--; )
1076
+ n[u[a]] = n[s];
1077
1077
  return n;
1078
1078
  }, Ms = function(t, e, i, r) {
1079
1079
  var n = e.ease || r || "power1.inOut", s, a;
1080
- if (Q(e))
1081
- a = i[t] || (i[t] = []), e.forEach(function(l, h) {
1080
+ if (Z(e))
1081
+ a = i[t] || (i[t] = []), e.forEach(function(u, l) {
1082
1082
  return a.push({
1083
- t: h / (e.length - 1) * 100,
1084
- v: l,
1083
+ t: l / (e.length - 1) * 100,
1084
+ v: u,
1085
1085
  e: n
1086
1086
  });
1087
1087
  });
@@ -1095,113 +1095,113 @@ var Cs = function(t, e, i, r, n, s, a) {
1095
1095
  }, Me = function(t, e, i, r, n) {
1096
1096
  return U(t) ? t.call(e, i, r, n) : X(t) && ~t.indexOf("random(") ? ze(t) : t;
1097
1097
  }, sn = $i + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", on = {};
1098
- rt(sn + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
1098
+ st(sn + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
1099
1099
  return on[o] = 1;
1100
1100
  });
1101
1101
  var V = /* @__PURE__ */ function(o) {
1102
- Tr(t, o);
1102
+ wr(t, o);
1103
1103
  function t(i, r, n, s) {
1104
1104
  var a;
1105
- typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r : Oe(r)) || this;
1106
- var l = a.vars, h = l.duration, u = l.delay, f = l.immediateRender, d = l.stagger, _ = l.overwrite, p = l.keyframes, c = l.defaults, g = l.scrollTrigger, m = l.yoyoEase, b = r.parent || L, v = (Q(i) || Ar(i) ? Rt(i[0]) : "length" in r) ? [i] : yt(i), x, y, T, P, A, w, C, M;
1107
- if (a._targets = v.length ? Ui(v) : Re("GSAP target " + i + " not found. https://gsap.com", !dt.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = _, p || d || He(h) || He(u)) {
1108
- if (r = a.vars, x = a.timeline = new J({
1105
+ typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r : ke(r)) || this;
1106
+ var u = a.vars, l = u.duration, h = u.delay, c = u.immediateRender, d = u.stagger, p = u.overwrite, _ = u.keyframes, f = u.defaults, g = u.scrollTrigger, m = u.yoyoEase, b = r.parent || L, v = (Z(i) || Ar(i) ? Rt(i[0]) : "length" in r) ? [i] : xt(i), x, y, w, P, A, T, C, M;
1107
+ if (a._targets = v.length ? Ui(v) : Re("GSAP target " + i + " not found. https://gsap.com", !dt.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = p, _ || d || We(l) || We(h)) {
1108
+ if (r = a.vars, x = a.timeline = new tt({
1109
1109
  data: "nested",
1110
- defaults: c || {},
1110
+ defaults: f || {},
1111
1111
  targets: b && b.data === "nested" ? b.vars.targets : v
1112
- }), x.kill(), x.parent = x._dp = Dt(a), x._start = 0, d || He(h) || He(u)) {
1113
- if (P = v.length, C = d && Vr(d), Ot(d))
1112
+ }), x.kill(), x.parent = x._dp = Dt(a), x._start = 0, d || We(l) || We(h)) {
1113
+ if (P = v.length, C = d && Vr(d), kt(d))
1114
1114
  for (A in d)
1115
1115
  ~sn.indexOf(A) && (M || (M = {}), M[A] = d[A]);
1116
1116
  for (y = 0; y < P; y++)
1117
- T = ei(r, on), T.stagger = 0, m && (T.yoyoEase = m), M && me(T, M), w = v[y], T.duration = +Me(h, Dt(a), y, w, v), T.delay = (+Me(u, Dt(a), y, w, v) || 0) - a._delay, !d && P === 1 && T.delay && (a._delay = u = T.delay, a._start += u, T.delay = 0), x.to(w, T, C ? C(y, w, v) : 0), x._ease = D.none;
1118
- x.duration() ? h = u = 0 : a.timeline = 0;
1119
- } else if (p) {
1120
- Oe(pt(x.vars.defaults, {
1117
+ w = ei(r, on), w.stagger = 0, m && (w.yoyoEase = m), M && me(w, M), T = v[y], w.duration = +Me(l, Dt(a), y, T, v), w.delay = (+Me(h, Dt(a), y, T, v) || 0) - a._delay, !d && P === 1 && w.delay && (a._delay = h = w.delay, a._start += h, w.delay = 0), x.to(T, w, C ? C(y, T, v) : 0), x._ease = D.none;
1118
+ x.duration() ? l = h = 0 : a.timeline = 0;
1119
+ } else if (_) {
1120
+ ke(_t(x.vars.defaults, {
1121
1121
  ease: "none"
1122
- })), x._ease = se(p.ease || r.ease || "none");
1123
- var O = 0, E, Y, I;
1124
- if (Q(p))
1125
- p.forEach(function(R) {
1122
+ })), x._ease = se(_.ease || r.ease || "none");
1123
+ var k = 0, E, Y, I;
1124
+ if (Z(_))
1125
+ _.forEach(function(R) {
1126
1126
  return x.to(v, R, ">");
1127
1127
  }), x.duration();
1128
1128
  else {
1129
- T = {};
1130
- for (A in p)
1131
- A === "ease" || A === "easeEach" || Ms(A, p[A], T, p.easeEach);
1132
- for (A in T)
1133
- for (E = T[A].sort(function(R, N) {
1129
+ w = {};
1130
+ for (A in _)
1131
+ A === "ease" || A === "easeEach" || Ms(A, _[A], w, _.easeEach);
1132
+ for (A in w)
1133
+ for (E = w[A].sort(function(R, N) {
1134
1134
  return R.t - N.t;
1135
- }), O = 0, y = 0; y < E.length; y++)
1135
+ }), k = 0, y = 0; y < E.length; y++)
1136
1136
  Y = E[y], I = {
1137
1137
  ease: Y.e,
1138
- duration: (Y.t - (y ? E[y - 1].t : 0)) / 100 * h
1139
- }, I[A] = Y.v, x.to(v, I, O), O += I.duration;
1140
- x.duration() < h && x.to({}, {
1141
- duration: h - x.duration()
1138
+ duration: (Y.t - (y ? E[y - 1].t : 0)) / 100 * l
1139
+ }, I[A] = Y.v, x.to(v, I, k), k += I.duration;
1140
+ x.duration() < l && x.to({}, {
1141
+ duration: l - x.duration()
1142
1142
  });
1143
1143
  }
1144
1144
  }
1145
- h || a.duration(h = x.duration());
1145
+ l || a.duration(l = x.duration());
1146
1146
  } else
1147
1147
  a.timeline = 0;
1148
- return _ === !0 && !Ii && (Wt = Dt(a), L.killTweensOf(v), Wt = 0), St(b, Dt(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (f || !h && !p && a._start === H(b._time) && it(f) && ls(Dt(a)) && b.data !== "nested") && (a._tTime = -B, a.render(Math.max(0, -u) || 0)), g && Lr(Dt(a), g), a;
1148
+ return p === !0 && !Ii && (Ht = Dt(a), L.killTweensOf(v), Ht = 0), St(b, Dt(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (c || !l && !_ && a._start === W(b._time) && nt(c) && ls(Dt(a)) && b.data !== "nested") && (a._tTime = -B, a.render(Math.max(0, -h) || 0)), g && Lr(Dt(a), g), a;
1149
1149
  }
1150
1150
  var e = t.prototype;
1151
1151
  return e.render = function(r, n, s) {
1152
- var a = this._time, l = this._tDur, h = this._dur, u = r < 0, f = r > l - B && !u ? l : r < B ? 0 : r, d, _, p, c, g, m, b, v, x;
1153
- if (!h)
1154
- us(this, r, n, s);
1155
- else if (f !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== u || this._lazy) {
1156
- if (d = f, v = this.timeline, this._repeat) {
1157
- if (c = h + this._rDelay, this._repeat < -1 && u)
1158
- return this.totalTime(c * 100 + r, n, s);
1159
- if (d = H(f % c), f === l ? (p = this._repeat, d = h) : (g = H(f / c), p = ~~g, p && p === g ? (d = h, p--) : d > h && (d = h)), m = this._yoyo && p & 1, m && (x = this._yEase, d = h - d), g = ve(this._tTime, c), d === a && !s && this._initted && p === g)
1160
- return this._tTime = f, this;
1161
- p !== g && (v && this._yEase && tn(v, m), this.vars.repeatRefresh && !m && !this._lock && d !== c && this._initted && (this._lock = s = 1, this.render(H(c * p), !0).invalidate()._lock = 0));
1152
+ var a = this._time, u = this._tDur, l = this._dur, h = r < 0, c = r > u - B && !h ? u : r < B ? 0 : r, d, p, _, f, g, m, b, v, x;
1153
+ if (!l)
1154
+ hs(this, r, n, s);
1155
+ else if (c !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== h || this._lazy) {
1156
+ if (d = c, v = this.timeline, this._repeat) {
1157
+ if (f = l + this._rDelay, this._repeat < -1 && h)
1158
+ return this.totalTime(f * 100 + r, n, s);
1159
+ if (d = W(c % f), c === u ? (_ = this._repeat, d = l) : (g = W(c / f), _ = ~~g, _ && _ === g ? (d = l, _--) : d > l && (d = l)), m = this._yoyo && _ & 1, m && (x = this._yEase, d = l - d), g = ve(this._tTime, f), d === a && !s && this._initted && _ === g)
1160
+ return this._tTime = c, this;
1161
+ _ !== g && (v && this._yEase && tn(v, m), this.vars.repeatRefresh && !m && !this._lock && d !== f && this._initted && (this._lock = s = 1, this.render(W(f * _), !0).invalidate()._lock = 0));
1162
1162
  }
1163
1163
  if (!this._initted) {
1164
- if ($r(this, u ? r : d, s, n, f))
1164
+ if ($r(this, h ? r : d, s, n, c))
1165
1165
  return this._tTime = 0, this;
1166
- if (a !== this._time && !(s && this.vars.repeatRefresh && p !== g))
1166
+ if (a !== this._time && !(s && this.vars.repeatRefresh && _ !== g))
1167
1167
  return this;
1168
- if (h !== this._dur)
1168
+ if (l !== this._dur)
1169
1169
  return this.render(r, n, s);
1170
1170
  }
1171
- if (this._tTime = f, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = b = (x || this._ease)(d / h), this._from && (this.ratio = b = 1 - b), !a && f && !n && !g && (ct(this, "onStart"), this._tTime !== f))
1171
+ if (this._tTime = c, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = b = (x || this._ease)(d / l), this._from && (this.ratio = b = 1 - b), !a && c && !n && !g && (ft(this, "onStart"), this._tTime !== c))
1172
1172
  return this;
1173
- for (_ = this._pt; _; )
1174
- _.r(b, _.d), _ = _._next;
1175
- v && v.render(r < 0 ? r : v._dur * v._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (u && wi(this, r, n, s), ct(this, "onUpdate")), this._repeat && p !== g && this.vars.onRepeat && !n && this.parent && ct(this, "onRepeat"), (f === this._tDur || !f) && this._tTime === f && (u && !this._onUpdate && wi(this, r, !0, !0), (r || !h) && (f === this._tDur && this._ts > 0 || !f && this._ts < 0) && Gt(this, 1), !n && !(u && !a) && (f || a || m) && (ct(this, f === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(f < l && this.timeScale() > 0) && this._prom()));
1173
+ for (p = this._pt; p; )
1174
+ p.r(b, p.d), p = p._next;
1175
+ v && v.render(r < 0 ? r : v._dur * v._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (h && Ti(this, r, n, s), ft(this, "onUpdate")), this._repeat && _ !== g && this.vars.onRepeat && !n && this.parent && ft(this, "onRepeat"), (c === this._tDur || !c) && this._tTime === c && (h && !this._onUpdate && Ti(this, r, !0, !0), (r || !l) && (c === this._tDur && this._ts > 0 || !c && this._ts < 0) && qt(this, 1), !n && !(h && !a) && (c || a || m) && (ft(this, c === u ? "onComplete" : "onReverseComplete", !0), this._prom && !(c < u && this.timeScale() > 0) && this._prom()));
1176
1176
  }
1177
1177
  return this;
1178
1178
  }, e.targets = function() {
1179
1179
  return this._targets;
1180
1180
  }, e.invalidate = function(r) {
1181
1181
  return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), o.prototype.invalidate.call(this, r);
1182
- }, e.resetTo = function(r, n, s, a, l) {
1183
- Be || ut.wake(), this._ts || this.play();
1184
- var h = Math.min(this._dur, (this._dp._time - this._start) * this._ts), u;
1185
- return this._initted || Hi(this, h), u = this._ease(h / this._dur), Os(this, r, n, s, a, u, h, l) ? this.resetTo(r, n, s, a, 1) : (li(this, 0), this.parent || Fr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1182
+ }, e.resetTo = function(r, n, s, a, u) {
1183
+ Be || ct.wake(), this._ts || this.play();
1184
+ var l = Math.min(this._dur, (this._dp._time - this._start) * this._ts), h;
1185
+ return this._initted || Wi(this, l), h = this._ease(l / this._dur), ks(this, r, n, s, a, h, l, u) ? this.resetTo(r, n, s, a, 1) : (li(this, 0), this.parent || Fr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1186
1186
  }, e.kill = function(r, n) {
1187
1187
  if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
1188
- return this._lazy = this._pt = 0, this.parent ? Ce(this) : this.scrollTrigger && this.scrollTrigger.kill(!!q), this;
1188
+ return this._lazy = this._pt = 0, this.parent ? Oe(this) : this.scrollTrigger && this.scrollTrigger.kill(!!G), this;
1189
1189
  if (this.timeline) {
1190
1190
  var s = this.timeline.totalDuration();
1191
- return this.timeline.killTweensOf(r, n, Wt && Wt.vars.overwrite !== !0)._first || Ce(this), this.parent && s !== this.timeline.totalDuration() && ye(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1191
+ return this.timeline.killTweensOf(r, n, Ht && Ht.vars.overwrite !== !0)._first || Oe(this), this.parent && s !== this.timeline.totalDuration() && ye(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1192
1192
  }
1193
- var a = this._targets, l = r ? yt(r) : a, h = this._ptLookup, u = this._pt, f, d, _, p, c, g, m;
1194
- if ((!n || n === "all") && os(a, l))
1195
- return n === "all" && (this._pt = 0), Ce(this);
1196
- for (f = this._op = this._op || [], n !== "all" && (X(n) && (c = {}, rt(n, function(b) {
1197
- return c[b] = 1;
1198
- }), n = c), n = Ds(a, n)), m = a.length; m--; )
1199
- if (~l.indexOf(a[m])) {
1200
- d = h[m], n === "all" ? (f[m] = n, p = d, _ = {}) : (_ = f[m] = f[m] || {}, p = n);
1201
- for (c in p)
1202
- g = d && d[c], g && ((!("kill" in g.d) || g.d.kill(c) === !0) && oi(this, g, "_pt"), delete d[c]), _ !== "all" && (_[c] = 1);
1193
+ var a = this._targets, u = r ? xt(r) : a, l = this._ptLookup, h = this._pt, c, d, p, _, f, g, m;
1194
+ if ((!n || n === "all") && os(a, u))
1195
+ return n === "all" && (this._pt = 0), Oe(this);
1196
+ for (c = this._op = this._op || [], n !== "all" && (X(n) && (f = {}, st(n, function(b) {
1197
+ return f[b] = 1;
1198
+ }), n = f), n = Ds(a, n)), m = a.length; m--; )
1199
+ if (~u.indexOf(a[m])) {
1200
+ d = l[m], n === "all" ? (c[m] = n, _ = d, p = {}) : (p = c[m] = c[m] || {}, _ = n);
1201
+ for (f in _)
1202
+ g = d && d[f], g && ((!("kill" in g.d) || g.d.kill(f) === !0) && oi(this, g, "_pt"), delete d[f]), p !== "all" && (p[f] = 1);
1203
1203
  }
1204
- return this._initted && !this._pt && u && Ce(this), this;
1204
+ return this._initted && !this._pt && h && Oe(this), this;
1205
1205
  }, t.to = function(r, n) {
1206
1206
  return new t(r, n, arguments[2]);
1207
1207
  }, t.from = function(r, n) {
@@ -1226,16 +1226,16 @@ var V = /* @__PURE__ */ function(o) {
1226
1226
  return L.killTweensOf(r, n, s);
1227
1227
  }, t;
1228
1228
  }(Fe);
1229
- pt(V.prototype, {
1229
+ _t(V.prototype, {
1230
1230
  _targets: [],
1231
1231
  _lazy: 0,
1232
1232
  _startAt: 0,
1233
1233
  _op: 0,
1234
1234
  _onInit: 0
1235
1235
  });
1236
- rt("staggerTo,staggerFrom,staggerFromTo", function(o) {
1236
+ st("staggerTo,staggerFrom,staggerFromTo", function(o) {
1237
1237
  V[o] = function() {
1238
- var t = new J(), e = Pi.call(arguments, 0);
1238
+ var t = new tt(), e = Pi.call(arguments, 0);
1239
1239
  return e.splice(o === "staggerFromTo" ? 5 : 4, 0, 0), t[o].apply(t, e);
1240
1240
  };
1241
1241
  });
@@ -1253,7 +1253,7 @@ var Yi = function(t, e, i) {
1253
1253
  return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
1254
1254
  }, Is = function(t, e) {
1255
1255
  return e.set(e.t, e.p, !!(e.s + e.c * t), e);
1256
- }, hn = function(t, e) {
1256
+ }, un = function(t, e) {
1257
1257
  var i = e._pt, r = "";
1258
1258
  if (!t && e.b)
1259
1259
  r = e.b;
@@ -1265,7 +1265,7 @@ var Yi = function(t, e, i) {
1265
1265
  r += e.c;
1266
1266
  }
1267
1267
  e.set(e.t, e.p, r, e);
1268
- }, qi = function(t, e) {
1268
+ }, Gi = function(t, e) {
1269
1269
  for (var i = e._pt; i; )
1270
1270
  i.r(t, i.d), i = i._next;
1271
1271
  }, zs = function(t, e, i, r) {
@@ -1277,28 +1277,28 @@ var Yi = function(t, e, i) {
1277
1277
  return !i;
1278
1278
  }, Fs = function(t, e, i, r) {
1279
1279
  r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
1280
- }, un = function(t) {
1280
+ }, hn = function(t) {
1281
1281
  for (var e = t._pt, i, r, n, s; e; ) {
1282
1282
  for (i = e._next, r = n; r && r.pr > e.pr; )
1283
1283
  r = r._next;
1284
1284
  (e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
1285
1285
  }
1286
1286
  t._pt = n;
1287
- }, nt = /* @__PURE__ */ function() {
1288
- function o(e, i, r, n, s, a, l, h, u) {
1289
- this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || ln, this.d = l || this, this.set = h || Yi, this.pr = u || 0, this._next = e, e && (e._prev = this);
1287
+ }, ot = /* @__PURE__ */ function() {
1288
+ function o(e, i, r, n, s, a, u, l, h) {
1289
+ this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || ln, this.d = u || this, this.set = l || Yi, this.pr = h || 0, this._next = e, e && (e._prev = this);
1290
1290
  }
1291
1291
  var t = o.prototype;
1292
1292
  return t.modifier = function(i, r, n) {
1293
1293
  this.mSet = this.mSet || this.set, this.set = Fs, this.m = i, this.mt = n, this.tween = r;
1294
1294
  }, o;
1295
1295
  }();
1296
- rt($i + "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) {
1296
+ st($i + "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) {
1297
1297
  return Li[o] = 1;
1298
1298
  });
1299
- _t.TweenMax = _t.TweenLite = V;
1300
- _t.TimelineLite = _t.TimelineMax = J;
1301
- L = new J({
1299
+ pt.TweenMax = pt.TweenLite = V;
1300
+ pt.TimelineLite = pt.TimelineMax = tt;
1301
+ L = new tt({
1302
1302
  sortChildren: !1,
1303
1303
  defaults: be,
1304
1304
  autoRemoveChildren: !0,
@@ -1306,22 +1306,22 @@ L = new J({
1306
1306
  smoothChildTiming: !0
1307
1307
  });
1308
1308
  dt.stringFilter = Zr;
1309
- var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1309
+ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, pi = function(t) {
1310
1310
  return (Ze[t] || Ns).map(function(e) {
1311
1311
  return e();
1312
1312
  });
1313
- }, ki = function() {
1313
+ }, Ci = function() {
1314
1314
  var t = Date.now(), e = [];
1315
- t - ar > 2 && (_i("matchMediaInit"), oe.forEach(function(i) {
1316
- var r = i.queries, n = i.conditions, s, a, l, h;
1315
+ t - ar > 2 && (pi("matchMediaInit"), oe.forEach(function(i) {
1316
+ var r = i.queries, n = i.conditions, s, a, u, l;
1317
1317
  for (a in r)
1318
- s = At.matchMedia(r[a]).matches, s && (l = 1), s !== n[a] && (n[a] = s, h = 1);
1319
- h && (i.revert(), l && e.push(i));
1320
- }), _i("matchMediaRevert"), e.forEach(function(i) {
1318
+ s = At.matchMedia(r[a]).matches, s && (u = 1), s !== n[a] && (n[a] = s, l = 1);
1319
+ l && (i.revert(), u && e.push(i));
1320
+ }), pi("matchMediaRevert"), e.forEach(function(i) {
1321
1321
  return i.onMatch(i, function(r) {
1322
1322
  return i.add(null, r);
1323
1323
  });
1324
- }), ar = t, _i("matchMedia"));
1324
+ }), ar = t, pi("matchMedia"));
1325
1325
  }, cn = /* @__PURE__ */ function() {
1326
1326
  function o(e, i) {
1327
1327
  this.selector = i && Ai(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Ls++, e && this.add(e);
@@ -1330,11 +1330,11 @@ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1330
1330
  return t.add = function(i, r, n) {
1331
1331
  U(i) && (n = r, r = i, i = U);
1332
1332
  var s = this, a = function() {
1333
- var h = F, u = s.selector, f;
1334
- return h && h !== s && h.data.push(s), n && (s.selector = Ai(n)), F = s, f = r.apply(s, arguments), U(f) && s._r.push(f), F = h, s.selector = u, s.isReverted = !1, f;
1333
+ var l = F, h = s.selector, c;
1334
+ return l && l !== s && l.data.push(s), n && (s.selector = Ai(n)), F = s, c = r.apply(s, arguments), U(c) && s._r.push(c), F = l, s.selector = h, s.isReverted = !1, c;
1335
1335
  };
1336
- return s.last = a, i === U ? a(s, function(l) {
1337
- return s.add(null, l);
1336
+ return s.last = a, i === U ? a(s, function(u) {
1337
+ return s.add(null, u);
1338
1338
  }) : i ? s[i] = a : a;
1339
1339
  }, t.ignore = function(i) {
1340
1340
  var r = F;
@@ -1349,23 +1349,23 @@ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1349
1349
  }, t.kill = function(i, r) {
1350
1350
  var n = this;
1351
1351
  if (i ? function() {
1352
- for (var a = n.getTweens(), l = n.data.length, h; l--; )
1353
- h = n.data[l], h.data === "isFlip" && (h.revert(), h.getChildren(!0, !0, !1).forEach(function(u) {
1354
- return a.splice(a.indexOf(u), 1);
1352
+ for (var a = n.getTweens(), u = n.data.length, l; u--; )
1353
+ l = n.data[u], l.data === "isFlip" && (l.revert(), l.getChildren(!0, !0, !1).forEach(function(h) {
1354
+ return a.splice(a.indexOf(h), 1);
1355
1355
  }));
1356
- for (a.map(function(u) {
1356
+ for (a.map(function(h) {
1357
1357
  return {
1358
- g: u._dur || u._delay || u._sat && !u._sat.vars.immediateRender ? u.globalTime(0) : -1 / 0,
1359
- t: u
1358
+ g: h._dur || h._delay || h._sat && !h._sat.vars.immediateRender ? h.globalTime(0) : -1 / 0,
1359
+ t: h
1360
1360
  };
1361
- }).sort(function(u, f) {
1362
- return f.g - u.g || -1 / 0;
1363
- }).forEach(function(u) {
1364
- return u.t.revert(i);
1365
- }), l = n.data.length; l--; )
1366
- h = n.data[l], h instanceof J ? h.data !== "nested" && (h.scrollTrigger && h.scrollTrigger.revert(), h.kill()) : !(h instanceof V) && h.revert && h.revert(i);
1367
- n._r.forEach(function(u) {
1368
- return u(i, n);
1361
+ }).sort(function(h, c) {
1362
+ return c.g - h.g || -1 / 0;
1363
+ }).forEach(function(h) {
1364
+ return h.t.revert(i);
1365
+ }), u = n.data.length; u--; )
1366
+ l = n.data[u], l instanceof tt ? l.data !== "nested" && (l.scrollTrigger && l.scrollTrigger.revert(), l.kill()) : !(l instanceof V) && l.revert && l.revert(i);
1367
+ n._r.forEach(function(h) {
1368
+ return h(i, n);
1369
1369
  }), n.isReverted = !0;
1370
1370
  }() : this.data.forEach(function(a) {
1371
1371
  return a.kill && a.kill();
@@ -1381,15 +1381,15 @@ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1381
1381
  }
1382
1382
  var t = o.prototype;
1383
1383
  return t.add = function(i, r, n) {
1384
- Ot(i) || (i = {
1384
+ kt(i) || (i = {
1385
1385
  matches: i
1386
1386
  });
1387
- var s = new cn(0, n || this.scope), a = s.conditions = {}, l, h, u;
1387
+ var s = new cn(0, n || this.scope), a = s.conditions = {}, u, l, h;
1388
1388
  F && !s.selector && (s.selector = F.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
1389
- for (h in i)
1390
- h === "all" ? u = 1 : (l = At.matchMedia(i[h]), l && (oe.indexOf(s) < 0 && oe.push(s), (a[h] = l.matches) && (u = 1), l.addListener ? l.addListener(ki) : l.addEventListener("change", ki)));
1391
- return u && r(s, function(f) {
1392
- return s.add(null, f);
1389
+ for (l in i)
1390
+ l === "all" ? h = 1 : (u = At.matchMedia(i[l]), u && (oe.indexOf(s) < 0 && oe.push(s), (a[l] = u.matches) && (h = 1), u.addListener ? u.addListener(Ci) : u.addEventListener("change", Ci)));
1391
+ return h && r(s, function(c) {
1392
+ return s.add(null, c);
1393
1393
  }), this;
1394
1394
  }, t.revert = function(i) {
1395
1395
  this.kill(i || {});
@@ -1407,40 +1407,40 @@ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1407
1407
  });
1408
1408
  },
1409
1409
  timeline: function(t) {
1410
- return new J(t);
1410
+ return new tt(t);
1411
1411
  },
1412
1412
  getTweensOf: function(t, e) {
1413
1413
  return L.getTweensOf(t, e);
1414
1414
  },
1415
1415
  getProperty: function(t, e, i, r) {
1416
- X(t) && (t = yt(t)[0]);
1416
+ X(t) && (t = xt(t)[0]);
1417
1417
  var n = re(t || {}).get, s = i ? Br : zr;
1418
- return i === "native" && (i = ""), t && (e ? s((ht[e] && ht[e].get || n)(t, e, i, r)) : function(a, l, h) {
1419
- return s((ht[a] && ht[a].get || n)(t, a, l, h));
1418
+ return i === "native" && (i = ""), t && (e ? s((ht[e] && ht[e].get || n)(t, e, i, r)) : function(a, u, l) {
1419
+ return s((ht[a] && ht[a].get || n)(t, a, u, l));
1420
1420
  });
1421
1421
  },
1422
1422
  quickSetter: function(t, e, i) {
1423
- if (t = yt(t), t.length > 1) {
1424
- var r = t.map(function(u) {
1425
- return ot.quickSetter(u, e, i);
1423
+ if (t = xt(t), t.length > 1) {
1424
+ var r = t.map(function(h) {
1425
+ return lt.quickSetter(h, e, i);
1426
1426
  }), n = r.length;
1427
- return function(u) {
1428
- for (var f = n; f--; )
1429
- r[f](u);
1427
+ return function(h) {
1428
+ for (var c = n; c--; )
1429
+ r[c](h);
1430
1430
  };
1431
1431
  }
1432
1432
  t = t[0] || {};
1433
- var s = ht[e], a = re(t), l = a.harness && (a.harness.aliases || {})[e] || e, h = s ? function(u) {
1434
- var f = new s();
1435
- fe._pt = 0, f.init(t, i ? u + i : u, fe, 0, [t]), f.render(1, f), fe._pt && qi(1, fe);
1436
- } : a.set(t, l);
1437
- return s ? h : function(u) {
1438
- return h(t, l, i ? u + i : u, a, 1);
1433
+ var s = ht[e], a = re(t), u = a.harness && (a.harness.aliases || {})[e] || e, l = s ? function(h) {
1434
+ var c = new s();
1435
+ fe._pt = 0, c.init(t, i ? h + i : h, fe, 0, [t]), c.render(1, c), fe._pt && Gi(1, fe);
1436
+ } : a.set(t, u);
1437
+ return s ? l : function(h) {
1438
+ return l(t, u, i ? h + i : h, a, 1);
1439
1439
  };
1440
1440
  },
1441
1441
  quickTo: function(t, e, i) {
1442
- var r, n = ot.to(t, pt((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(l, h, u) {
1443
- return n.resetTo(e, l, h, u);
1442
+ var r, n = lt.to(t, _t((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(u, l, h) {
1443
+ return n.resetTo(e, u, l, h);
1444
1444
  };
1445
1445
  return s.tween = n, s;
1446
1446
  },
@@ -1456,11 +1456,11 @@ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1456
1456
  registerEffect: function(t) {
1457
1457
  var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
1458
1458
  (r || "").split(",").forEach(function(a) {
1459
- return a && !ht[a] && !_t[a] && Re(e + " effect requires " + a + " plugin.");
1460
- }), ui[e] = function(a, l, h) {
1461
- return i(yt(a), pt(l || {}, n), h);
1462
- }, s && (J.prototype[e] = function(a, l, h) {
1463
- return this.add(ui[e](a, Ot(l) ? l : (h = l) && {}, this), h);
1459
+ return a && !ht[a] && !pt[a] && Re(e + " effect requires " + a + " plugin.");
1460
+ }), hi[e] = function(a, u, l) {
1461
+ return i(xt(a), _t(u || {}, n), l);
1462
+ }, s && (tt.prototype[e] = function(a, u, l) {
1463
+ return this.add(hi[e](a, kt(u) ? u : (l = u) && {}, this), l);
1464
1464
  });
1465
1465
  },
1466
1466
  registerEase: function(t, e) {
@@ -1474,8 +1474,8 @@ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1474
1474
  },
1475
1475
  exportRoot: function(t, e) {
1476
1476
  t === void 0 && (t = {});
1477
- var i = new J(t), r, n;
1478
- for (i.smoothChildTiming = it(t.smoothChildTiming), L.remove(i), i._dp = 0, i._time = i._tTime = L._time, r = L._first; r; )
1477
+ var i = new tt(t), r, n;
1478
+ for (i.smoothChildTiming = nt(t.smoothChildTiming), L.remove(i), i._dp = 0, i._time = i._tTime = L._time, r = L._first; r; )
1479
1479
  n = r._next, (e || !(!r._dur && r instanceof V && r.vars.onComplete === r._targets[0])) && St(i, r, r._start - r._delay), r = n;
1480
1480
  return St(L, i, 0), i;
1481
1481
  },
@@ -1491,7 +1491,7 @@ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1491
1491
  for (r in e)
1492
1492
  e[r] && (e[r] = !1, i = 1);
1493
1493
  i && t.revert();
1494
- }) || ki();
1494
+ }) || Ci();
1495
1495
  },
1496
1496
  addEventListener: function(t, e) {
1497
1497
  var i = Ze[t] || (Ze[t] = []);
@@ -1506,35 +1506,35 @@ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1506
1506
  wrapYoyo: vs,
1507
1507
  distribute: Vr,
1508
1508
  random: Yr,
1509
- snap: Hr,
1509
+ snap: Wr,
1510
1510
  normalize: bs,
1511
- getUnit: K,
1511
+ getUnit: j,
1512
1512
  clamp: ds,
1513
1513
  splitColor: jr,
1514
- toArray: yt,
1514
+ toArray: xt,
1515
1515
  selector: Ai,
1516
- mapRange: qr,
1517
- pipe: ps,
1516
+ mapRange: Gr,
1517
+ pipe: _s,
1518
1518
  unitize: gs,
1519
1519
  interpolate: ys,
1520
- shuffle: Wr
1520
+ shuffle: Hr
1521
1521
  },
1522
1522
  install: Dr,
1523
- effects: ui,
1524
- ticker: ut,
1525
- updateRoot: J.updateRoot,
1523
+ effects: hi,
1524
+ ticker: ct,
1525
+ updateRoot: tt.updateRoot,
1526
1526
  plugins: ht,
1527
1527
  globalTimeline: L,
1528
1528
  core: {
1529
- PropTween: nt,
1529
+ PropTween: ot,
1530
1530
  globals: Mr,
1531
1531
  Tween: V,
1532
- Timeline: J,
1532
+ Timeline: tt,
1533
1533
  Animation: Fe,
1534
1534
  getCache: re,
1535
1535
  _removeLinkedListItem: oi,
1536
1536
  reverting: function() {
1537
- return q;
1537
+ return G;
1538
1538
  },
1539
1539
  context: function(t) {
1540
1540
  return t && F && (F.data.push(t), t._ctx = F), F;
@@ -1544,10 +1544,10 @@ var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
1544
1544
  }
1545
1545
  }
1546
1546
  };
1547
- rt("to,from,fromTo,delayedCall,set,killTweensOf", function(o) {
1547
+ st("to,from,fromTo,delayedCall,set,killTweensOf", function(o) {
1548
1548
  return ri[o] = V[o];
1549
1549
  });
1550
- ut.add(J.updateRoot);
1550
+ ct.add(tt.updateRoot);
1551
1551
  fe = ri.to({}, {
1552
1552
  duration: 0
1553
1553
  });
@@ -1555,12 +1555,12 @@ var Us = function(t, e) {
1555
1555
  for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
1556
1556
  i = i._next;
1557
1557
  return i;
1558
- }, Ws = function(t, e) {
1558
+ }, Hs = function(t, e) {
1559
1559
  var i = t._targets, r, n, s;
1560
1560
  for (r in e)
1561
1561
  for (n = i.length; n--; )
1562
1562
  s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = Us(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
1563
- }, pi = function(t, e) {
1563
+ }, _i = function(t, e) {
1564
1564
  return {
1565
1565
  name: t,
1566
1566
  headless: 1,
@@ -1568,30 +1568,30 @@ var Us = function(t, e) {
1568
1568
  //don't pre-process function-based values or "random()" strings.
1569
1569
  init: function(r, n, s) {
1570
1570
  s._onInit = function(a) {
1571
- var l, h;
1572
- if (X(n) && (l = {}, rt(n, function(u) {
1573
- return l[u] = 1;
1574
- }), n = l), e) {
1575
- l = {};
1576
- for (h in n)
1577
- l[h] = e(n[h]);
1578
- n = l;
1571
+ var u, l;
1572
+ if (X(n) && (u = {}, st(n, function(h) {
1573
+ return u[h] = 1;
1574
+ }), n = u), e) {
1575
+ u = {};
1576
+ for (l in n)
1577
+ u[l] = e(n[l]);
1578
+ n = u;
1579
1579
  }
1580
- Ws(a, n);
1580
+ Hs(a, n);
1581
1581
  };
1582
1582
  }
1583
1583
  };
1584
- }, ot = ri.registerPlugin({
1584
+ }, lt = ri.registerPlugin({
1585
1585
  name: "attr",
1586
1586
  init: function(t, e, i, r, n) {
1587
- var s, a, l;
1587
+ var s, a, u;
1588
1588
  this.tween = i;
1589
1589
  for (s in e)
1590
- l = t.getAttribute(s) || "", a = this.add(t, "setAttribute", (l || 0) + "", e[s], r, n, 0, 0, s), a.op = s, a.b = l, this._props.push(s);
1590
+ u = t.getAttribute(s) || "", a = this.add(t, "setAttribute", (u || 0) + "", e[s], r, n, 0, 0, s), a.op = s, a.b = u, this._props.push(s);
1591
1591
  },
1592
1592
  render: function(t, e) {
1593
1593
  for (var i = e._pt; i; )
1594
- q ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
1594
+ G ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
1595
1595
  }
1596
1596
  }, {
1597
1597
  name: "endArray",
@@ -1600,9 +1600,9 @@ var Us = function(t, e) {
1600
1600
  for (var i = e.length; i--; )
1601
1601
  this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
1602
1602
  }
1603
- }, pi("roundProps", Si), pi("modifiers"), pi("snap", Hr)) || ri;
1604
- V.version = J.version = ot.version = "3.13.0";
1605
- Or = 1;
1603
+ }, _i("roundProps", Si), _i("modifiers"), _i("snap", Wr)) || ri;
1604
+ V.version = tt.version = lt.version = "3.13.0";
1605
+ kr = 1;
1606
1606
  Bi() && xe();
1607
1607
  D.Power0;
1608
1608
  D.Power1;
@@ -1630,19 +1630,19 @@ D.Circ;
1630
1630
  * Subject to the terms at https://gsap.com/standard-license
1631
1631
  * @author: Jack Doyle, jack@greensock.com
1632
1632
  */
1633
- var lr, Vt, _e, Gi, ee, hr, Ki, Vs = function() {
1633
+ var lr, Vt, pe, qi, ee, ur, Ki, Vs = function() {
1634
1634
  return typeof window < "u";
1635
- }, It = {}, te = 180 / Math.PI, pe = Math.PI / 180, he = Math.atan2, ur = 1e8, ji = /([A-Z])/g, Hs = /(left|right|width|margin|padding|x)/i, Ys = /[\s,\(]\S/, Ct = {
1635
+ }, It = {}, te = 180 / Math.PI, _e = Math.PI / 180, ue = Math.atan2, hr = 1e8, ji = /([A-Z])/g, Ws = /(left|right|width|margin|padding|x)/i, Ys = /[\s,\(]\S/, Ot = {
1636
1636
  autoAlpha: "opacity,visibility",
1637
1637
  scale: "scaleX,scaleY",
1638
1638
  alpha: "opacity"
1639
- }, Oi = function(t, e) {
1639
+ }, ki = function(t, e) {
1640
1640
  return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1641
1641
  }, Xs = function(t, e) {
1642
1642
  return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1643
- }, qs = function(t, e) {
1644
- return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
1645
1643
  }, Gs = function(t, e) {
1644
+ return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
1645
+ }, qs = function(t, e) {
1646
1646
  var i = e.s + e.c * t;
1647
1647
  e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
1648
1648
  }, fn = function(t, e) {
@@ -1663,23 +1663,23 @@ var lr, Vt, _e, Gi, ee, hr, Ki, Vs = function() {
1663
1663
  }, to = function(t, e, i, r, n) {
1664
1664
  var s = t._gsap;
1665
1665
  s[e] = i, s.renderTransform(n, s);
1666
- }, $ = "transform", st = $ + "Origin", eo = function o(t, e) {
1666
+ }, $ = "transform", at = $ + "Origin", eo = function o(t, e) {
1667
1667
  var i = this, r = this.target, n = r.style, s = r._gsap;
1668
1668
  if (t in It && n) {
1669
1669
  if (this.tfm = this.tfm || {}, t !== "transform")
1670
- t = Ct[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
1670
+ t = Ot[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
1671
1671
  return i.tfm[a] = Mt(r, a);
1672
- }) : this.tfm[t] = s.x ? s[t] : Mt(r, t), t === st && (this.tfm.zOrigin = s.zOrigin);
1672
+ }) : this.tfm[t] = s.x ? s[t] : Mt(r, t), t === at && (this.tfm.zOrigin = s.zOrigin);
1673
1673
  else
1674
- return Ct.transform.split(",").forEach(function(a) {
1674
+ return Ot.transform.split(",").forEach(function(a) {
1675
1675
  return o.call(i, a, e);
1676
1676
  });
1677
1677
  if (this.props.indexOf($) >= 0)
1678
1678
  return;
1679
- s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(st, e, "")), t = $;
1679
+ s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(at, e, "")), t = $;
1680
1680
  }
1681
1681
  (n || e) && this.props.push(t, e, n[t]);
1682
- }, _n = function(t) {
1682
+ }, pn = function(t) {
1683
1683
  t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
1684
1684
  }, io = function() {
1685
1685
  var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
@@ -1688,25 +1688,25 @@ var lr, Vt, _e, Gi, ee, hr, Ki, Vs = function() {
1688
1688
  if (this.tfm) {
1689
1689
  for (s in this.tfm)
1690
1690
  r[s] = this.tfm[s];
1691
- r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Ki(), (!n || !n.isStart) && !i[$] && (_n(i), r.zOrigin && i[st] && (i[st] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
1691
+ r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Ki(), (!n || !n.isStart) && !i[$] && (pn(i), r.zOrigin && i[at] && (i[at] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
1692
1692
  }
1693
- }, pn = function(t, e) {
1693
+ }, _n = function(t, e) {
1694
1694
  var i = {
1695
1695
  target: t,
1696
1696
  props: [],
1697
1697
  revert: io,
1698
1698
  save: eo
1699
1699
  };
1700
- return t._gsap || ot.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
1700
+ return t._gsap || lt.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
1701
1701
  return i.save(r);
1702
1702
  }), i;
1703
1703
  }, gn, Di = function(t, e) {
1704
1704
  var i = Vt.createElementNS ? Vt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Vt.createElement(t);
1705
1705
  return i && i.style ? i : Vt.createElement(t);
1706
- }, xt = function o(t, e, i) {
1706
+ }, Tt = function o(t, e, i) {
1707
1707
  var r = getComputedStyle(t);
1708
- return r[e] || r.getPropertyValue(e.replace(ji, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && o(t, we(e) || e, 1) || "";
1709
- }, cr = "O,Moz,ms,Ms,Webkit".split(","), we = function(t, e, i) {
1708
+ return r[e] || r.getPropertyValue(e.replace(ji, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && o(t, Te(e) || e, 1) || "";
1709
+ }, cr = "O,Moz,ms,Ms,Webkit".split(","), Te = function(t, e, i) {
1710
1710
  var r = e || ee, n = r.style, s = 5;
1711
1711
  if (t in n && !i)
1712
1712
  return t;
@@ -1714,17 +1714,17 @@ var lr, Vt, _e, Gi, ee, hr, Ki, Vs = function() {
1714
1714
  ;
1715
1715
  return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? cr[s] : "") + t;
1716
1716
  }, Mi = function() {
1717
- Vs() && window.document && (lr = window, Vt = lr.document, _e = Vt.documentElement, ee = Di("div") || {
1717
+ Vs() && window.document && (lr = window, Vt = lr.document, pe = Vt.documentElement, ee = Di("div") || {
1718
1718
  style: {}
1719
- }, Di("div"), $ = we($), st = $ + "Origin", ee.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", gn = !!we("perspective"), Ki = ot.core.reverting, Gi = 1);
1719
+ }, Di("div"), $ = Te($), at = $ + "Origin", ee.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", gn = !!Te("perspective"), Ki = lt.core.reverting, qi = 1);
1720
1720
  }, fr = function(t) {
1721
1721
  var e = t.ownerSVGElement, i = Di("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
1722
- r.style.display = "block", i.appendChild(r), _e.appendChild(i);
1722
+ r.style.display = "block", i.appendChild(r), pe.appendChild(i);
1723
1723
  try {
1724
1724
  n = r.getBBox();
1725
1725
  } catch {
1726
1726
  }
1727
- return i.removeChild(r), _e.removeChild(i), n;
1727
+ return i.removeChild(r), pe.removeChild(i), n;
1728
1728
  }, dr = function(t, e) {
1729
1729
  for (var i = e.length; i--; )
1730
1730
  if (t.hasAttribute(e[i]))
@@ -1747,12 +1747,12 @@ var lr, Vt, _e, Gi, ee, hr, Ki, Vs = function() {
1747
1747
  }, ae = function(t, e) {
1748
1748
  if (e) {
1749
1749
  var i = t.style, r;
1750
- e in It && e !== st && (e = $), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(ji, "-$1").toLowerCase())) : i.removeAttribute(e);
1750
+ e in It && e !== at && (e = $), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(ji, "-$1").toLowerCase())) : i.removeAttribute(e);
1751
1751
  }
1752
- }, Ht = function(t, e, i, r, n, s) {
1753
- var a = new nt(t._pt, e, i, 0, 1, s ? dn : fn);
1752
+ }, Wt = function(t, e, i, r, n, s) {
1753
+ var a = new ot(t._pt, e, i, 0, 1, s ? dn : fn);
1754
1754
  return t._pt = a, a.b = r, a.e = n, t._props.push(i), a;
1755
- }, _r = {
1755
+ }, pr = {
1756
1756
  deg: 1,
1757
1757
  rad: 1,
1758
1758
  turn: 1
@@ -1760,43 +1760,43 @@ var lr, Vt, _e, Gi, ee, hr, Ki, Vs = function() {
1760
1760
  grid: 1,
1761
1761
  flex: 1
1762
1762
  }, Kt = function o(t, e, i, r) {
1763
- var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = ee.style, l = Hs.test(e), h = t.tagName.toLowerCase() === "svg", u = (h ? "client" : "offset") + (l ? "Width" : "Height"), f = 100, d = r === "px", _ = r === "%", p, c, g, m;
1764
- if (r === s || !n || _r[r] || _r[s])
1763
+ var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = ee.style, u = Ws.test(e), l = t.tagName.toLowerCase() === "svg", h = (l ? "client" : "offset") + (u ? "Width" : "Height"), c = 100, d = r === "px", p = r === "%", _, f, g, m;
1764
+ if (r === s || !n || pr[r] || pr[s])
1765
1765
  return n;
1766
- if (s !== "px" && !d && (n = o(t, e, i, "px")), m = t.getCTM && mn(t), (_ || s === "%") && (It[e] || ~e.indexOf("adius")))
1767
- return p = m ? t.getBBox()[l ? "width" : "height"] : t[u], W(_ ? n / p * f : n / 100 * p);
1768
- if (a[l ? "width" : "height"] = f + (d ? s : r), c = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !h ? t : t.parentNode, m && (c = (t.ownerSVGElement || {}).parentNode), (!c || c === Vt || !c.appendChild) && (c = Vt.body), g = c._gsap, g && _ && g.width && l && g.time === ut.time && !g.uncache)
1769
- return W(n / g.width * f);
1770
- if (_ && (e === "height" || e === "width")) {
1766
+ if (s !== "px" && !d && (n = o(t, e, i, "px")), m = t.getCTM && mn(t), (p || s === "%") && (It[e] || ~e.indexOf("adius")))
1767
+ return _ = m ? t.getBBox()[u ? "width" : "height"] : t[h], H(p ? n / _ * c : n / 100 * _);
1768
+ if (a[u ? "width" : "height"] = c + (d ? s : r), f = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !l ? t : t.parentNode, m && (f = (t.ownerSVGElement || {}).parentNode), (!f || f === Vt || !f.appendChild) && (f = Vt.body), g = f._gsap, g && p && g.width && u && g.time === ct.time && !g.uncache)
1769
+ return H(n / g.width * c);
1770
+ if (p && (e === "height" || e === "width")) {
1771
1771
  var b = t.style[e];
1772
- t.style[e] = f + r, p = t[u], b ? t.style[e] = b : ae(t, e);
1772
+ t.style[e] = c + r, _ = t[h], b ? t.style[e] = b : ae(t, e);
1773
1773
  } else
1774
- (_ || s === "%") && !ro[xt(c, "display")] && (a.position = xt(t, "position")), c === t && (a.position = "static"), c.appendChild(ee), p = ee[u], c.removeChild(ee), a.position = "absolute";
1775
- return l && _ && (g = re(c), g.time = ut.time, g.width = c[u]), W(d ? p * n / f : p && n ? f / p * n : 0);
1774
+ (p || s === "%") && !ro[Tt(f, "display")] && (a.position = Tt(t, "position")), f === t && (a.position = "static"), f.appendChild(ee), _ = ee[h], f.removeChild(ee), a.position = "absolute";
1775
+ return u && p && (g = re(f), g.time = ct.time, g.width = f[h]), H(d ? _ * n / c : _ && n ? c / _ * n : 0);
1776
1776
  }, Mt = function(t, e, i, r) {
1777
1777
  var n;
1778
- return Gi || Mi(), e in Ct && e !== "transform" && (e = Ct[e], ~e.indexOf(",") && (e = e.split(",")[0])), It[e] && e !== "transform" ? (n = Le(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : si(xt(t, st)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = ni[e] && ni[e](t, e, i) || xt(t, e) || Rr(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Kt(t, e, n, i) + i : n;
1778
+ return qi || Mi(), e in Ot && e !== "transform" && (e = Ot[e], ~e.indexOf(",") && (e = e.split(",")[0])), It[e] && e !== "transform" ? (n = Le(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : si(Tt(t, at)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = ni[e] && ni[e](t, e, i) || Tt(t, e) || Rr(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Kt(t, e, n, i) + i : n;
1779
1779
  }, no = function(t, e, i, r) {
1780
1780
  if (!i || i === "none") {
1781
- var n = we(e, t, 1), s = n && xt(t, n, 1);
1782
- s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = xt(t, "borderTopColor"));
1781
+ var n = Te(e, t, 1), s = n && Tt(t, n, 1);
1782
+ s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = Tt(t, "borderTopColor"));
1783
1783
  }
1784
- var a = new nt(this._pt, t.style, e, 0, 1, hn), l = 0, h = 0, u, f, d, _, p, c, g, m, b, v, x, y;
1785
- if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = xt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (c = t.style[e], t.style[e] = r, r = xt(t, e) || r, c ? t.style[e] = c : ae(t, e)), u = [i, r], Zr(u), i = u[0], r = u[1], d = i.match(ce) || [], y = r.match(ce) || [], y.length) {
1786
- for (; f = ce.exec(r); )
1787
- g = f[0], b = r.substring(l, f.index), p ? p = (p + 1) % 5 : (b.substr(-5) === "rgba(" || b.substr(-5) === "hsla(") && (p = 1), g !== (c = d[h++] || "") && (_ = parseFloat(c) || 0, x = c.substr((_ + "").length), g.charAt(1) === "=" && (g = de(_, g) + x), m = parseFloat(g), v = g.substr((m + "").length), l = ce.lastIndex - v.length, v || (v = v || dt.units[e] || x, l === r.length && (r += v, a.e += v)), x !== v && (_ = Kt(t, e, c, v) || 0), a._pt = {
1784
+ var a = new ot(this._pt, t.style, e, 0, 1, un), u = 0, l = 0, h, c, d, p, _, f, g, m, b, v, x, y;
1785
+ if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = Tt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (f = t.style[e], t.style[e] = r, r = Tt(t, e) || r, f ? t.style[e] = f : ae(t, e)), h = [i, r], Zr(h), i = h[0], r = h[1], d = i.match(ce) || [], y = r.match(ce) || [], y.length) {
1786
+ for (; c = ce.exec(r); )
1787
+ g = c[0], b = r.substring(u, c.index), _ ? _ = (_ + 1) % 5 : (b.substr(-5) === "rgba(" || b.substr(-5) === "hsla(") && (_ = 1), g !== (f = d[l++] || "") && (p = parseFloat(f) || 0, x = f.substr((p + "").length), g.charAt(1) === "=" && (g = de(p, g) + x), m = parseFloat(g), v = g.substr((m + "").length), u = ce.lastIndex - v.length, v || (v = v || dt.units[e] || x, u === r.length && (r += v, a.e += v)), x !== v && (p = Kt(t, e, f, v) || 0), a._pt = {
1788
1788
  _next: a._pt,
1789
- p: b || h === 1 ? b : ",",
1789
+ p: b || l === 1 ? b : ",",
1790
1790
  //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.
1791
- s: _,
1792
- c: m - _,
1793
- m: p && p < 4 || e === "zIndex" ? Math.round : 0
1791
+ s: p,
1792
+ c: m - p,
1793
+ m: _ && _ < 4 || e === "zIndex" ? Math.round : 0
1794
1794
  });
1795
- a.c = l < r.length ? r.substring(l, r.length) : "";
1795
+ a.c = u < r.length ? r.substring(u, r.length) : "";
1796
1796
  } else
1797
1797
  a.r = e === "display" && r === "none" ? dn : fn;
1798
- return Cr.test(r) && (a.e = 0), this._pt = a, a;
1799
- }, pr = {
1798
+ return Or.test(r) && (a.e = 0), this._pt = a, a;
1799
+ }, _r = {
1800
1800
  top: "0%",
1801
1801
  bottom: "100%",
1802
1802
  left: "0%",
@@ -1804,21 +1804,21 @@ var lr, Vt, _e, Gi, ee, hr, Ki, Vs = function() {
1804
1804
  center: "50%"
1805
1805
  }, so = function(t) {
1806
1806
  var e = t.split(" "), i = e[0], r = e[1] || "50%";
1807
- return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = pr[i] || i, e[1] = pr[r] || r, e.join(" ");
1807
+ return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = _r[i] || i, e[1] = _r[r] || r, e.join(" ");
1808
1808
  }, oo = function(t, e) {
1809
1809
  if (e.tween && e.tween._time === e.tween._dur) {
1810
- var i = e.t, r = i.style, n = e.u, s = i._gsap, a, l, h;
1810
+ var i = e.t, r = i.style, n = e.u, s = i._gsap, a, u, l;
1811
1811
  if (n === "all" || n === !0)
1812
- r.cssText = "", l = 1;
1812
+ r.cssText = "", u = 1;
1813
1813
  else
1814
- for (n = n.split(","), h = n.length; --h > -1; )
1815
- a = n[h], It[a] && (l = 1, a = a === "transformOrigin" ? st : $), ae(i, a);
1816
- l && (ae(i, $), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Le(i, 1), s.uncache = 1, _n(r)));
1814
+ for (n = n.split(","), l = n.length; --l > -1; )
1815
+ a = n[l], It[a] && (u = 1, a = a === "transformOrigin" ? at : $), ae(i, a);
1816
+ u && (ae(i, $), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Le(i, 1), s.uncache = 1, pn(r)));
1817
1817
  }
1818
1818
  }, ni = {
1819
1819
  clearProps: function(t, e, i, r, n) {
1820
1820
  if (n.data !== "isFromStart") {
1821
- var s = t._pt = new nt(t._pt, e, i, 0, 0, oo);
1821
+ var s = t._pt = new ot(t._pt, e, i, 0, 0, oo);
1822
1822
  return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
1823
1823
  }
1824
1824
  }
@@ -1888,119 +1888,119 @@ var lr, Vt, _e, Gi, ee, hr, Ki, Vs = function() {
1888
1888
  }, Ne = [1, 0, 0, 1, 0, 0], vn = {}, yn = function(t) {
1889
1889
  return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
1890
1890
  }, gr = function(t) {
1891
- var e = xt(t, $);
1892
- return yn(e) ? Ne : e.substr(7).match(Sr).map(W);
1891
+ var e = Tt(t, $);
1892
+ return yn(e) ? Ne : e.substr(7).match(Sr).map(H);
1893
1893
  }, Qi = function(t, e) {
1894
- var i = t._gsap || re(t), r = t.style, n = gr(t), s, a, l, h;
1895
- return i.svg && t.getAttribute("transform") ? (l = t.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ? Ne : n) : (n === Ne && !t.offsetParent && t !== _e && !i.svg && (l = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (h = 1, a = t.nextElementSibling, _e.appendChild(t)), n = gr(t), l ? r.display = l : ae(t, "display"), h && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : _e.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1894
+ var i = t._gsap || re(t), r = t.style, n = gr(t), s, a, u, l;
1895
+ return i.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" ? Ne : n) : (n === Ne && !t.offsetParent && t !== pe && !i.svg && (u = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (l = 1, a = t.nextElementSibling, pe.appendChild(t)), n = gr(t), u ? r.display = u : ae(t, "display"), l && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : pe.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1896
1896
  }, Ei = function(t, e, i, r, n, s) {
1897
- var a = t._gsap, l = n || Qi(t, !0), h = a.xOrigin || 0, u = a.yOrigin || 0, f = a.xOffset || 0, d = a.yOffset || 0, _ = l[0], p = l[1], c = l[2], g = l[3], m = l[4], b = l[5], v = e.split(" "), x = parseFloat(v[0]) || 0, y = parseFloat(v[1]) || 0, T, P, A, w;
1898
- i ? l !== Ne && (P = _ * g - p * c) && (A = x * (g / P) + y * (-c / P) + (c * b - g * m) / P, w = x * (-p / P) + y * (_ / P) - (_ * b - p * m) / P, x = A, y = w) : (T = bn(t), x = T.x + (~v[0].indexOf("%") ? x / 100 * T.width : x), y = T.y + (~(v[1] || v[0]).indexOf("%") ? y / 100 * T.height : y)), r || r !== !1 && a.smooth ? (m = x - h, b = y - u, a.xOffset = f + (m * _ + b * c) - m, a.yOffset = d + (m * p + b * g) - b) : a.xOffset = a.yOffset = 0, a.xOrigin = x, a.yOrigin = y, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[st] = "0px 0px", s && (Ht(s, a, "xOrigin", h, x), Ht(s, a, "yOrigin", u, y), Ht(s, a, "xOffset", f, a.xOffset), Ht(s, a, "yOffset", d, a.yOffset)), t.setAttribute("data-svg-origin", x + " " + y);
1897
+ var a = t._gsap, u = n || Qi(t, !0), l = a.xOrigin || 0, h = a.yOrigin || 0, c = a.xOffset || 0, d = a.yOffset || 0, p = u[0], _ = u[1], f = u[2], g = u[3], m = u[4], b = u[5], v = e.split(" "), x = parseFloat(v[0]) || 0, y = parseFloat(v[1]) || 0, w, P, A, T;
1898
+ i ? u !== Ne && (P = p * g - _ * f) && (A = x * (g / P) + y * (-f / P) + (f * b - g * m) / P, T = x * (-_ / P) + y * (p / P) - (p * b - _ * m) / P, x = A, y = T) : (w = bn(t), x = w.x + (~v[0].indexOf("%") ? x / 100 * w.width : x), y = w.y + (~(v[1] || v[0]).indexOf("%") ? y / 100 * w.height : y)), r || r !== !1 && a.smooth ? (m = x - l, b = y - h, a.xOffset = c + (m * p + b * f) - m, a.yOffset = d + (m * _ + b * g) - b) : a.xOffset = a.yOffset = 0, a.xOrigin = x, a.yOrigin = y, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[at] = "0px 0px", s && (Wt(s, a, "xOrigin", l, x), Wt(s, a, "yOrigin", h, y), Wt(s, a, "xOffset", c, a.xOffset), Wt(s, a, "yOffset", d, a.yOffset)), t.setAttribute("data-svg-origin", x + " " + y);
1899
1899
  }, Le = function(t, e) {
1900
1900
  var i = t._gsap || new rn(t);
1901
1901
  if ("x" in i && !e && !i.uncache)
1902
1902
  return i;
1903
- var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(t), h = xt(t, st) || "0", u, f, d, _, p, c, g, m, b, v, x, y, T, P, A, w, C, M, O, E, Y, I, R, N, G, Qt, Ft, Z, Pt, gt, tt, bt;
1904
- return u = f = d = c = g = m = b = v = x = 0, _ = p = 1, i.svg = !!(t.getCTM && mn(t)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), r.scale = r.rotate = r.translate = "none"), P = Qi(t, i.svg), i.svg && (i.uncache ? (G = t.getBBox(), h = i.xOrigin - G.x + "px " + (i.yOrigin - G.y) + "px", N = "") : N = !e && t.getAttribute("data-svg-origin"), Ei(t, N || h, !!N || i.originIsAbsolute, i.smooth !== !1, P)), y = i.xOrigin || 0, T = i.yOrigin || 0, P !== Ne && (M = P[0], O = P[1], E = P[2], Y = P[3], u = I = P[4], f = R = P[5], P.length === 6 ? (_ = Math.sqrt(M * M + O * O), p = Math.sqrt(Y * Y + E * E), c = M || O ? he(O, M) * te : 0, b = E || Y ? he(E, Y) * te + c : 0, b && (p *= Math.abs(Math.cos(b * pe))), i.svg && (u -= y - (y * M + T * E), f -= T - (y * O + T * Y))) : (bt = P[6], gt = P[7], Ft = P[8], Z = P[9], Pt = P[10], tt = P[11], u = P[12], f = P[13], d = P[14], A = he(bt, Pt), g = A * te, A && (w = Math.cos(-A), C = Math.sin(-A), N = I * w + Ft * C, G = R * w + Z * C, Qt = bt * w + Pt * C, Ft = I * -C + Ft * w, Z = R * -C + Z * w, Pt = bt * -C + Pt * w, tt = gt * -C + tt * w, I = N, R = G, bt = Qt), A = he(-E, Pt), m = A * te, A && (w = Math.cos(-A), C = Math.sin(-A), N = M * w - Ft * C, G = O * w - Z * C, Qt = E * w - Pt * C, tt = Y * C + tt * w, M = N, O = G, E = Qt), A = he(O, M), c = A * te, A && (w = Math.cos(A), C = Math.sin(A), N = M * w + O * C, G = I * w + R * C, O = O * w - M * C, R = R * w - I * C, M = N, I = G), g && Math.abs(g) + Math.abs(c) > 359.9 && (g = c = 0, m = 180 - m), _ = W(Math.sqrt(M * M + O * O + E * E)), p = W(Math.sqrt(R * R + bt * bt)), A = he(I, R), b = Math.abs(A) > 2e-4 ? A * te : 0, x = tt ? 1 / (tt < 0 ? -tt : tt) : 0), i.svg && (N = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !yn(xt(t, $)), N && t.setAttribute("transform", N))), Math.abs(b) > 90 && Math.abs(b) < 270 && (n ? (_ *= -1, b += c <= 0 ? 180 : -180, c += c <= 0 ? 180 : -180) : (p *= -1, b += b <= 0 ? 180 : -180)), e = e || i.uncache, i.x = u - ((i.xPercent = u && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = f - ((i.yPercent = f && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-f) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = d + s, i.scaleX = W(_), i.scaleY = W(p), i.rotation = W(c) + a, i.rotationX = W(g) + a, i.rotationY = W(m) + a, i.skewX = b + a, i.skewY = v + a, i.transformPerspective = x + s, (i.zOrigin = parseFloat(h.split(" ")[2]) || !e && i.zOrigin || 0) && (r[st] = si(h)), i.xOffset = i.yOffset = 0, i.force3D = dt.force3D, i.renderTransform = i.svg ? lo : gn ? xn : ao, i.uncache = 0, i;
1903
+ var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", u = getComputedStyle(t), l = Tt(t, at) || "0", h, c, d, p, _, f, g, m, b, v, x, y, w, P, A, T, C, M, k, E, Y, I, R, N, K, Qt, Ft, J, Pt, bt, et, mt;
1904
+ return h = c = d = f = g = m = b = v = x = 0, p = _ = 1, i.svg = !!(t.getCTM && mn(t)), u.translate && ((u.translate !== "none" || u.scale !== "none" || u.rotate !== "none") && (r[$] = (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[$] !== "none" ? u[$] : "")), r.scale = r.rotate = r.translate = "none"), P = Qi(t, i.svg), i.svg && (i.uncache ? (K = t.getBBox(), l = i.xOrigin - K.x + "px " + (i.yOrigin - K.y) + "px", N = "") : N = !e && t.getAttribute("data-svg-origin"), Ei(t, N || l, !!N || i.originIsAbsolute, i.smooth !== !1, P)), y = i.xOrigin || 0, w = i.yOrigin || 0, P !== Ne && (M = P[0], k = P[1], E = P[2], Y = P[3], h = I = P[4], c = R = P[5], P.length === 6 ? (p = Math.sqrt(M * M + k * k), _ = Math.sqrt(Y * Y + E * E), f = M || k ? ue(k, M) * te : 0, b = E || Y ? ue(E, Y) * te + f : 0, b && (_ *= Math.abs(Math.cos(b * _e))), i.svg && (h -= y - (y * M + w * E), c -= w - (y * k + w * Y))) : (mt = P[6], bt = P[7], Ft = P[8], J = P[9], Pt = P[10], et = P[11], h = P[12], c = P[13], d = P[14], A = ue(mt, Pt), g = A * te, A && (T = Math.cos(-A), C = Math.sin(-A), N = I * T + Ft * C, K = R * T + J * C, Qt = mt * T + Pt * C, Ft = I * -C + Ft * T, J = R * -C + J * T, Pt = mt * -C + Pt * T, et = bt * -C + et * T, I = N, R = K, mt = Qt), A = ue(-E, Pt), m = A * te, A && (T = Math.cos(-A), C = Math.sin(-A), N = M * T - Ft * C, K = k * T - J * C, Qt = E * T - Pt * C, et = Y * C + et * T, M = N, k = K, E = Qt), A = ue(k, M), f = A * te, A && (T = Math.cos(A), C = Math.sin(A), N = M * T + k * C, K = I * T + R * C, k = k * T - M * C, R = R * T - I * C, M = N, I = K), g && Math.abs(g) + Math.abs(f) > 359.9 && (g = f = 0, m = 180 - m), p = H(Math.sqrt(M * M + k * k + E * E)), _ = H(Math.sqrt(R * R + mt * mt)), A = ue(I, R), b = Math.abs(A) > 2e-4 ? A * te : 0, x = et ? 1 / (et < 0 ? -et : et) : 0), i.svg && (N = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !yn(Tt(t, $)), N && t.setAttribute("transform", N))), Math.abs(b) > 90 && Math.abs(b) < 270 && (n ? (p *= -1, b += f <= 0 ? 180 : -180, f += f <= 0 ? 180 : -180) : (_ *= -1, b += b <= 0 ? 180 : -180)), e = e || i.uncache, i.x = h - ((i.xPercent = h && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = c - ((i.yPercent = c && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-c) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = d + s, i.scaleX = H(p), i.scaleY = H(_), i.rotation = H(f) + a, i.rotationX = H(g) + a, i.rotationY = H(m) + a, i.skewX = b + a, i.skewY = v + a, i.transformPerspective = x + s, (i.zOrigin = parseFloat(l.split(" ")[2]) || !e && i.zOrigin || 0) && (r[at] = si(l)), i.xOffset = i.yOffset = 0, i.force3D = dt.force3D, i.renderTransform = i.svg ? lo : gn ? xn : ao, i.uncache = 0, i;
1905
1905
  }, si = function(t) {
1906
1906
  return (t = t.split(" "))[0] + " " + t[1];
1907
1907
  }, gi = function(t, e, i) {
1908
- var r = K(e);
1909
- return W(parseFloat(e) + parseFloat(Kt(t, "x", i + "px", r))) + r;
1908
+ var r = j(e);
1909
+ return H(parseFloat(e) + parseFloat(Kt(t, "x", i + "px", r))) + r;
1910
1910
  }, ao = function(t, e) {
1911
1911
  e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, xn(t, e);
1912
1912
  }, Zt = "0deg", Ae = "0px", Jt = ") ", xn = function(t, e) {
1913
- var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.z, h = i.rotation, u = i.rotationY, f = i.rotationX, d = i.skewX, _ = i.skewY, p = i.scaleX, c = i.scaleY, g = i.transformPerspective, m = i.force3D, b = i.target, v = i.zOrigin, x = "", y = m === "auto" && t && t !== 1 || m === !0;
1914
- if (v && (f !== Zt || u !== Zt)) {
1915
- var T = parseFloat(u) * pe, P = Math.sin(T), A = Math.cos(T), w;
1916
- T = parseFloat(f) * pe, w = Math.cos(T), s = gi(b, s, P * w * -v), a = gi(b, a, -Math.sin(T) * -v), l = gi(b, l, A * w * -v + v);
1913
+ var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, u = i.z, l = i.rotation, h = i.rotationY, c = i.rotationX, d = i.skewX, p = i.skewY, _ = i.scaleX, f = i.scaleY, g = i.transformPerspective, m = i.force3D, b = i.target, v = i.zOrigin, x = "", y = m === "auto" && t && t !== 1 || m === !0;
1914
+ if (v && (c !== Zt || h !== Zt)) {
1915
+ var w = parseFloat(h) * _e, P = Math.sin(w), A = Math.cos(w), T;
1916
+ w = parseFloat(c) * _e, T = Math.cos(w), s = gi(b, s, P * T * -v), a = gi(b, a, -Math.sin(w) * -v), u = gi(b, u, A * T * -v + v);
1917
1917
  }
1918
- g !== Ae && (x += "perspective(" + g + Jt), (r || n) && (x += "translate(" + r + "%, " + n + "%) "), (y || s !== Ae || a !== Ae || l !== Ae) && (x += l !== Ae || y ? "translate3d(" + s + ", " + a + ", " + l + ") " : "translate(" + s + ", " + a + Jt), h !== Zt && (x += "rotate(" + h + Jt), u !== Zt && (x += "rotateY(" + u + Jt), f !== Zt && (x += "rotateX(" + f + Jt), (d !== Zt || _ !== Zt) && (x += "skew(" + d + ", " + _ + Jt), (p !== 1 || c !== 1) && (x += "scale(" + p + ", " + c + Jt), b.style[$] = x || "translate(0, 0)";
1918
+ g !== Ae && (x += "perspective(" + g + Jt), (r || n) && (x += "translate(" + r + "%, " + n + "%) "), (y || s !== Ae || a !== Ae || u !== Ae) && (x += u !== Ae || y ? "translate3d(" + s + ", " + a + ", " + u + ") " : "translate(" + s + ", " + a + Jt), l !== Zt && (x += "rotate(" + l + Jt), h !== Zt && (x += "rotateY(" + h + Jt), c !== Zt && (x += "rotateX(" + c + Jt), (d !== Zt || p !== Zt) && (x += "skew(" + d + ", " + p + Jt), (_ !== 1 || f !== 1) && (x += "scale(" + _ + ", " + f + Jt), b.style[$] = x || "translate(0, 0)";
1919
1919
  }, lo = function(t, e) {
1920
- var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.rotation, h = i.skewX, u = i.skewY, f = i.scaleX, d = i.scaleY, _ = i.target, p = i.xOrigin, c = i.yOrigin, g = i.xOffset, m = i.yOffset, b = i.forceCSS, v = parseFloat(s), x = parseFloat(a), y, T, P, A, w;
1921
- l = parseFloat(l), h = parseFloat(h), u = parseFloat(u), u && (u = parseFloat(u), h += u, l += u), l || h ? (l *= pe, h *= pe, y = Math.cos(l) * f, T = Math.sin(l) * f, P = Math.sin(l - h) * -d, A = Math.cos(l - h) * d, h && (u *= pe, w = Math.tan(h - u), w = Math.sqrt(1 + w * w), P *= w, A *= w, u && (w = Math.tan(u), w = Math.sqrt(1 + w * w), y *= w, T *= w)), y = W(y), T = W(T), P = W(P), A = W(A)) : (y = f, A = d, T = P = 0), (v && !~(s + "").indexOf("px") || x && !~(a + "").indexOf("px")) && (v = Kt(_, "x", s, "px"), x = Kt(_, "y", a, "px")), (p || c || g || m) && (v = W(v + p - (p * y + c * P) + g), x = W(x + c - (p * T + c * A) + m)), (r || n) && (w = _.getBBox(), v = W(v + r / 100 * w.width), x = W(x + n / 100 * w.height)), w = "matrix(" + y + "," + T + "," + P + "," + A + "," + v + "," + x + ")", _.setAttribute("transform", w), b && (_.style[$] = w);
1922
- }, ho = function(t, e, i, r, n) {
1923
- var s = 360, a = X(n), l = parseFloat(n) * (a && ~n.indexOf("rad") ? te : 1), h = l - r, u = r + h + "deg", f, d;
1924
- return a && (f = n.split("_")[1], f === "short" && (h %= s, h !== h % (s / 2) && (h += h < 0 ? s : -s)), f === "cw" && h < 0 ? h = (h + s * ur) % s - ~~(h / s) * s : f === "ccw" && h > 0 && (h = (h - s * ur) % s - ~~(h / s) * s)), t._pt = d = new nt(t._pt, e, i, r, h, Xs), d.e = u, d.u = "deg", t._props.push(i), d;
1920
+ var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, u = i.rotation, l = i.skewX, h = i.skewY, c = i.scaleX, d = i.scaleY, p = i.target, _ = i.xOrigin, f = i.yOrigin, g = i.xOffset, m = i.yOffset, b = i.forceCSS, v = parseFloat(s), x = parseFloat(a), y, w, P, A, T;
1921
+ u = parseFloat(u), l = parseFloat(l), h = parseFloat(h), h && (h = parseFloat(h), l += h, u += h), u || l ? (u *= _e, l *= _e, y = Math.cos(u) * c, w = Math.sin(u) * c, P = Math.sin(u - l) * -d, A = Math.cos(u - l) * d, l && (h *= _e, T = Math.tan(l - h), T = Math.sqrt(1 + T * T), P *= T, A *= T, h && (T = Math.tan(h), T = Math.sqrt(1 + T * T), y *= T, w *= T)), y = H(y), w = H(w), P = H(P), A = H(A)) : (y = c, A = d, w = P = 0), (v && !~(s + "").indexOf("px") || x && !~(a + "").indexOf("px")) && (v = Kt(p, "x", s, "px"), x = Kt(p, "y", a, "px")), (_ || f || g || m) && (v = H(v + _ - (_ * y + f * P) + g), x = H(x + f - (_ * w + f * A) + m)), (r || n) && (T = p.getBBox(), v = H(v + r / 100 * T.width), x = H(x + n / 100 * T.height)), T = "matrix(" + y + "," + w + "," + P + "," + A + "," + v + "," + x + ")", p.setAttribute("transform", T), b && (p.style[$] = T);
1922
+ }, uo = function(t, e, i, r, n) {
1923
+ var s = 360, a = X(n), u = parseFloat(n) * (a && ~n.indexOf("rad") ? te : 1), l = u - r, h = r + l + "deg", c, d;
1924
+ return a && (c = n.split("_")[1], c === "short" && (l %= s, l !== l % (s / 2) && (l += l < 0 ? s : -s)), c === "cw" && l < 0 ? l = (l + s * hr) % s - ~~(l / s) * s : c === "ccw" && l > 0 && (l = (l - s * hr) % s - ~~(l / s) * s)), t._pt = d = new ot(t._pt, e, i, r, l, Xs), d.e = h, d.u = "deg", t._props.push(i), d;
1925
1925
  }, br = function(t, e) {
1926
1926
  for (var i in e)
1927
1927
  t[i] = e[i];
1928
1928
  return t;
1929
- }, uo = function(t, e, i) {
1930
- var r = br({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, l, h, u, f, d, _, p;
1931
- r.svg ? (h = i.getAttribute("transform"), i.setAttribute("transform", ""), s[$] = e, a = Le(i, 1), ae(i, $), i.setAttribute("transform", h)) : (h = getComputedStyle(i)[$], s[$] = e, a = Le(i, 1), s[$] = h);
1932
- for (l in It)
1933
- h = r[l], u = a[l], h !== u && n.indexOf(l) < 0 && (_ = K(h), p = K(u), f = _ !== p ? Kt(i, l, h, p) : parseFloat(h), d = parseFloat(u), t._pt = new nt(t._pt, a, l, f, d - f, Oi), t._pt.u = p || 0, t._props.push(l));
1929
+ }, ho = function(t, e, i) {
1930
+ var r = br({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, u, l, h, c, d, p, _;
1931
+ r.svg ? (l = i.getAttribute("transform"), i.setAttribute("transform", ""), s[$] = e, a = Le(i, 1), ae(i, $), i.setAttribute("transform", l)) : (l = getComputedStyle(i)[$], s[$] = e, a = Le(i, 1), s[$] = l);
1932
+ for (u in It)
1933
+ l = r[u], h = a[u], l !== h && n.indexOf(u) < 0 && (p = j(l), _ = j(h), c = p !== _ ? Kt(i, u, l, _) : parseFloat(l), d = parseFloat(h), t._pt = new ot(t._pt, a, u, c, d - c, ki), t._pt.u = _ || 0, t._props.push(u));
1934
1934
  br(a, r);
1935
1935
  };
1936
- rt("padding,margin,Width,Radius", function(o, t) {
1936
+ st("padding,margin,Width,Radius", function(o, t) {
1937
1937
  var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(a) {
1938
1938
  return t < 2 ? o + a : "border" + a + o;
1939
1939
  });
1940
- ni[t > 1 ? "border" + o : o] = function(a, l, h, u, f) {
1941
- var d, _;
1940
+ ni[t > 1 ? "border" + o : o] = function(a, u, l, h, c) {
1941
+ var d, p;
1942
1942
  if (arguments.length < 4)
1943
- return d = s.map(function(p) {
1944
- return Mt(a, p, h);
1945
- }), _ = d.join(" "), _.split(d[0]).length === 5 ? d[0] : _;
1946
- d = (u + "").split(" "), _ = {}, s.forEach(function(p, c) {
1947
- return _[p] = d[c] = d[c] || d[(c - 1) / 2 | 0];
1948
- }), a.init(l, _, f);
1943
+ return d = s.map(function(_) {
1944
+ return Mt(a, _, l);
1945
+ }), p = d.join(" "), p.split(d[0]).length === 5 ? d[0] : p;
1946
+ d = (h + "").split(" "), p = {}, s.forEach(function(_, f) {
1947
+ return p[_] = d[f] = d[f] || d[(f - 1) / 2 | 0];
1948
+ }), a.init(u, p, c);
1949
1949
  };
1950
1950
  });
1951
- var wn = {
1951
+ var Tn = {
1952
1952
  name: "css",
1953
1953
  register: Mi,
1954
1954
  targetTest: function(t) {
1955
1955
  return t.style && t.nodeType;
1956
1956
  },
1957
1957
  init: function(t, e, i, r, n) {
1958
- var s = this._props, a = t.style, l = i.vars.startAt, h, u, f, d, _, p, c, g, m, b, v, x, y, T, P, A;
1959
- Gi || Mi(), this.styles = this.styles || pn(t), A = this.styles.props, this.tween = i;
1960
- for (c in e)
1961
- if (c !== "autoRound" && (u = e[c], !(ht[c] && nn(c, e, i, r, t, n)))) {
1962
- if (_ = typeof u, p = ni[c], _ === "function" && (u = u.call(i, r, t, n), _ = typeof u), _ === "string" && ~u.indexOf("random(") && (u = ze(u)), p)
1963
- p(this, t, c, u, i) && (P = 1);
1964
- else if (c.substr(0, 2) === "--")
1965
- h = (getComputedStyle(t).getPropertyValue(c) + "").trim(), u += "", Xt.lastIndex = 0, Xt.test(h) || (g = K(h), m = K(u)), m ? g !== m && (h = Kt(t, c, h, m) + m) : g && (u += g), this.add(a, "setProperty", h, u, r, n, 0, 0, c), s.push(c), A.push(c, 0, a[c]);
1966
- else if (_ !== "undefined") {
1967
- if (l && c in l ? (h = typeof l[c] == "function" ? l[c].call(i, r, t, n) : l[c], X(h) && ~h.indexOf("random(") && (h = ze(h)), K(h + "") || h === "auto" || (h += dt.units[c] || K(Mt(t, c)) || ""), (h + "").charAt(1) === "=" && (h = Mt(t, c))) : h = Mt(t, c), d = parseFloat(h), b = _ === "string" && u.charAt(1) === "=" && u.substr(0, 2), b && (u = u.substr(2)), f = parseFloat(u), c in Ct && (c === "autoAlpha" && (d === 1 && Mt(t, "visibility") === "hidden" && f && (d = 0), A.push("visibility", 0, a.visibility), Ht(this, a, "visibility", d ? "inherit" : "hidden", f ? "inherit" : "hidden", !f)), c !== "scale" && c !== "transform" && (c = Ct[c], ~c.indexOf(",") && (c = c.split(",")[0]))), v = c in It, v) {
1968
- if (this.styles.save(c), _ === "string" && u.substring(0, 6) === "var(--" && (u = xt(t, u.substring(4, u.indexOf(")"))), f = parseFloat(u)), x || (y = t._gsap, y.renderTransform && !e.parseTransform || Le(t, e.parseTransform), T = e.smoothOrigin !== !1 && y.smooth, x = this._pt = new nt(this._pt, a, $, 0, 1, y.renderTransform, y, 0, -1), x.dep = 1), c === "scale")
1969
- this._pt = new nt(this._pt, y, "scaleY", y.scaleY, (b ? de(y.scaleY, b + f) : f) - y.scaleY || 0, Oi), this._pt.u = 0, s.push("scaleY", c), c += "X";
1970
- else if (c === "transformOrigin") {
1971
- A.push(st, 0, a[st]), u = so(u), y.svg ? Ei(t, u, 0, T, 0, this) : (m = parseFloat(u.split(" ")[2]) || 0, m !== y.zOrigin && Ht(this, y, "zOrigin", y.zOrigin, m), Ht(this, a, c, si(h), si(u)));
1958
+ var s = this._props, a = t.style, u = i.vars.startAt, l, h, c, d, p, _, f, g, m, b, v, x, y, w, P, A;
1959
+ qi || Mi(), this.styles = this.styles || _n(t), A = this.styles.props, this.tween = i;
1960
+ for (f in e)
1961
+ if (f !== "autoRound" && (h = e[f], !(ht[f] && nn(f, e, i, r, t, n)))) {
1962
+ if (p = typeof h, _ = ni[f], p === "function" && (h = h.call(i, r, t, n), p = typeof h), p === "string" && ~h.indexOf("random(") && (h = ze(h)), _)
1963
+ _(this, t, f, h, i) && (P = 1);
1964
+ else if (f.substr(0, 2) === "--")
1965
+ l = (getComputedStyle(t).getPropertyValue(f) + "").trim(), h += "", Xt.lastIndex = 0, Xt.test(l) || (g = j(l), m = j(h)), m ? g !== m && (l = Kt(t, f, l, m) + m) : g && (h += g), this.add(a, "setProperty", l, h, r, n, 0, 0, f), s.push(f), A.push(f, 0, a[f]);
1966
+ else if (p !== "undefined") {
1967
+ if (u && f in u ? (l = typeof u[f] == "function" ? u[f].call(i, r, t, n) : u[f], X(l) && ~l.indexOf("random(") && (l = ze(l)), j(l + "") || l === "auto" || (l += dt.units[f] || j(Mt(t, f)) || ""), (l + "").charAt(1) === "=" && (l = Mt(t, f))) : l = Mt(t, f), d = parseFloat(l), b = p === "string" && h.charAt(1) === "=" && h.substr(0, 2), b && (h = h.substr(2)), c = parseFloat(h), f in Ot && (f === "autoAlpha" && (d === 1 && Mt(t, "visibility") === "hidden" && c && (d = 0), A.push("visibility", 0, a.visibility), Wt(this, a, "visibility", d ? "inherit" : "hidden", c ? "inherit" : "hidden", !c)), f !== "scale" && f !== "transform" && (f = Ot[f], ~f.indexOf(",") && (f = f.split(",")[0]))), v = f in It, v) {
1968
+ if (this.styles.save(f), p === "string" && h.substring(0, 6) === "var(--" && (h = Tt(t, h.substring(4, h.indexOf(")"))), c = parseFloat(h)), x || (y = t._gsap, y.renderTransform && !e.parseTransform || Le(t, e.parseTransform), w = e.smoothOrigin !== !1 && y.smooth, x = this._pt = new ot(this._pt, a, $, 0, 1, y.renderTransform, y, 0, -1), x.dep = 1), f === "scale")
1969
+ this._pt = new ot(this._pt, y, "scaleY", y.scaleY, (b ? de(y.scaleY, b + c) : c) - y.scaleY || 0, ki), this._pt.u = 0, s.push("scaleY", f), f += "X";
1970
+ else if (f === "transformOrigin") {
1971
+ A.push(at, 0, a[at]), h = so(h), y.svg ? Ei(t, h, 0, w, 0, this) : (m = parseFloat(h.split(" ")[2]) || 0, m !== y.zOrigin && Wt(this, y, "zOrigin", y.zOrigin, m), Wt(this, a, f, si(l), si(h)));
1972
1972
  continue;
1973
- } else if (c === "svgOrigin") {
1974
- Ei(t, u, 1, T, 0, this);
1973
+ } else if (f === "svgOrigin") {
1974
+ Ei(t, h, 1, w, 0, this);
1975
1975
  continue;
1976
- } else if (c in vn) {
1977
- ho(this, y, c, d, b ? de(d, b + u) : u);
1976
+ } else if (f in vn) {
1977
+ uo(this, y, f, d, b ? de(d, b + h) : h);
1978
1978
  continue;
1979
- } else if (c === "smoothOrigin") {
1980
- Ht(this, y, "smooth", y.smooth, u);
1979
+ } else if (f === "smoothOrigin") {
1980
+ Wt(this, y, "smooth", y.smooth, h);
1981
1981
  continue;
1982
- } else if (c === "force3D") {
1983
- y[c] = u;
1982
+ } else if (f === "force3D") {
1983
+ y[f] = h;
1984
1984
  continue;
1985
- } else if (c === "transform") {
1986
- uo(this, u, t);
1985
+ } else if (f === "transform") {
1986
+ ho(this, h, t);
1987
1987
  continue;
1988
1988
  }
1989
- } else c in a || (c = we(c) || c);
1990
- if (v || (f || f === 0) && (d || d === 0) && !Ys.test(u) && c in a)
1991
- g = (h + "").substr((d + "").length), f || (f = 0), m = K(u) || (c in dt.units ? dt.units[c] : g), g !== m && (d = Kt(t, c, h, m)), this._pt = new nt(this._pt, v ? y : a, c, d, (b ? de(d, b + f) : f) - d, !v && (m === "px" || c === "zIndex") && e.autoRound !== !1 ? Gs : Oi), this._pt.u = m || 0, g !== m && m !== "%" && (this._pt.b = h, this._pt.r = qs);
1992
- else if (c in a)
1993
- no.call(this, t, c, h, b ? b + u : u);
1994
- else if (c in t)
1995
- this.add(t, c, h || t[c], b ? b + u : u, r, n);
1996
- else if (c !== "parseTransform") {
1997
- Ni(c, u);
1989
+ } else f in a || (f = Te(f) || f);
1990
+ if (v || (c || c === 0) && (d || d === 0) && !Ys.test(h) && f in a)
1991
+ g = (l + "").substr((d + "").length), c || (c = 0), m = j(h) || (f in dt.units ? dt.units[f] : g), g !== m && (d = Kt(t, f, l, m)), this._pt = new ot(this._pt, v ? y : a, f, d, (b ? de(d, b + c) : c) - d, !v && (m === "px" || f === "zIndex") && e.autoRound !== !1 ? qs : ki), this._pt.u = m || 0, g !== m && m !== "%" && (this._pt.b = l, this._pt.r = Gs);
1992
+ else if (f in a)
1993
+ no.call(this, t, f, l, b ? b + h : h);
1994
+ else if (f in t)
1995
+ this.add(t, f, l || t[f], b ? b + h : h, r, n);
1996
+ else if (f !== "parseTransform") {
1997
+ Ni(f, h);
1998
1998
  continue;
1999
1999
  }
2000
- v || (c in a ? A.push(c, 0, a[c]) : typeof t[c] == "function" ? A.push(c, 2, t[c]()) : A.push(c, 1, h || t[c])), s.push(c);
2000
+ v || (f in a ? A.push(f, 0, a[f]) : typeof t[f] == "function" ? A.push(f, 2, t[f]()) : A.push(f, 1, l || t[f])), s.push(f);
2001
2001
  }
2002
2002
  }
2003
- P && un(this);
2003
+ P && hn(this);
2004
2004
  },
2005
2005
  render: function(t, e) {
2006
2006
  if (e.tween._time || !Ki())
@@ -2010,34 +2010,34 @@ var wn = {
2010
2010
  e.styles.revert();
2011
2011
  },
2012
2012
  get: Mt,
2013
- aliases: Ct,
2013
+ aliases: Ot,
2014
2014
  getSetter: function(t, e, i) {
2015
- var r = Ct[e];
2016
- return r && r.indexOf(",") < 0 && (e = r), e in It && e !== st && (t._gsap.x || Mt(t, "x")) ? i && hr === i ? e === "scale" ? Zs : Qs : (hr = i || {}) && (e === "scale" ? Js : to) : t.style && !zi(t.style[e]) ? Ks : ~e.indexOf("-") ? js : Xi(t, e);
2015
+ var r = Ot[e];
2016
+ return r && r.indexOf(",") < 0 && (e = r), e in It && e !== at && (t._gsap.x || Mt(t, "x")) ? i && ur === i ? e === "scale" ? Zs : Qs : (ur = i || {}) && (e === "scale" ? Js : to) : t.style && !zi(t.style[e]) ? Ks : ~e.indexOf("-") ? js : Xi(t, e);
2017
2017
  },
2018
2018
  core: {
2019
2019
  _removeProperty: ae,
2020
2020
  _getMatrix: Qi
2021
2021
  }
2022
2022
  };
2023
- ot.utils.checkPrefix = we;
2024
- ot.core.getStyleSaver = pn;
2023
+ lt.utils.checkPrefix = Te;
2024
+ lt.core.getStyleSaver = _n;
2025
2025
  (function(o, t, e, i) {
2026
- var r = rt(o + "," + t + "," + e, function(n) {
2026
+ var r = st(o + "," + t + "," + e, function(n) {
2027
2027
  It[n] = 1;
2028
2028
  });
2029
- rt(t, function(n) {
2029
+ st(t, function(n) {
2030
2030
  dt.units[n] = "deg", vn[n] = 1;
2031
- }), Ct[r[13]] = o + "," + t, rt(i, function(n) {
2031
+ }), Ot[r[13]] = o + "," + t, st(i, function(n) {
2032
2032
  var s = n.split(":");
2033
- Ct[s[1]] = r[s[0]];
2033
+ Ot[s[1]] = r[s[0]];
2034
2034
  });
2035
2035
  })("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");
2036
- rt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(o) {
2036
+ st("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(o) {
2037
2037
  dt.units[o] = "px";
2038
2038
  });
2039
- ot.registerPlugin(wn);
2040
- var ie = ot.registerPlugin(wn) || ot;
2039
+ lt.registerPlugin(Tn);
2040
+ var ie = lt.registerPlugin(Tn) || lt;
2041
2041
  ie.core.Tween;
2042
2042
  /*!
2043
2043
  * paths 3.13.0
@@ -2047,71 +2047,71 @@ ie.core.Tween;
2047
2047
  * Subject to the terms at https://gsap.com/standard-license
2048
2048
  * @author: Jack Doyle, jack@greensock.com
2049
2049
  */
2050
- var co = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, fo = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, _o = Math.PI / 180, Ye = Math.sin, Xe = Math.cos, Ee = Math.abs, Se = Math.sqrt, po = function(t) {
2050
+ var co = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, fo = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, po = Math.PI / 180, Ye = Math.sin, Xe = Math.cos, Ee = Math.abs, Se = Math.sqrt, _o = function(t) {
2051
2051
  return typeof t == "number";
2052
2052
  }, mr = 1e5, $t = function(t) {
2053
2053
  return Math.round(t * mr) / mr || 0;
2054
2054
  };
2055
2055
  function go(o, t, e, i, r, n, s) {
2056
- for (var a = o.length, l, h, u, f, d; --a > -1; )
2057
- for (l = o[a], h = l.length, u = 0; u < h; u += 2)
2058
- f = l[u], d = l[u + 1], l[u] = f * t + d * i + n, l[u + 1] = f * e + d * r + s;
2056
+ for (var a = o.length, u, l, h, c, d; --a > -1; )
2057
+ for (u = o[a], l = u.length, h = 0; h < l; h += 2)
2058
+ c = u[h], d = u[h + 1], u[h] = c * t + d * i + n, u[h + 1] = c * e + d * r + s;
2059
2059
  return o._dirty = 1, o;
2060
2060
  }
2061
- function bo(o, t, e, i, r, n, s, a, l) {
2062
- if (!(o === a && t === l)) {
2061
+ function bo(o, t, e, i, r, n, s, a, u) {
2062
+ if (!(o === a && t === u)) {
2063
2063
  e = Ee(e), i = Ee(i);
2064
- var h = r % 360 * _o, u = Xe(h), f = Ye(h), d = Math.PI, _ = d * 2, p = (o - a) / 2, c = (t - l) / 2, g = u * p + f * c, m = -f * p + u * c, b = g * g, v = m * m, x = b / (e * e) + v / (i * i);
2064
+ var l = r % 360 * po, h = Xe(l), c = Ye(l), d = Math.PI, p = d * 2, _ = (o - a) / 2, f = (t - u) / 2, g = h * _ + c * f, m = -c * _ + h * f, b = g * g, v = m * m, x = b / (e * e) + v / (i * i);
2065
2065
  x > 1 && (e = Se(x) * e, i = Se(x) * i);
2066
- var y = e * e, T = i * i, P = (y * T - y * v - T * b) / (y * v + T * b);
2066
+ var y = e * e, w = i * i, P = (y * w - y * v - w * b) / (y * v + w * b);
2067
2067
  P < 0 && (P = 0);
2068
- var A = (n === s ? -1 : 1) * Se(P), w = A * (e * m / i), C = A * -(i * g / e), M = (o + a) / 2, O = (t + l) / 2, E = M + (u * w - f * C), Y = O + (f * w + u * C), I = (g - w) / e, R = (m - C) / i, N = (-g - w) / e, G = (-m - C) / i, Qt = I * I + R * R, Ft = (R < 0 ? -1 : 1) * Math.acos(I / Se(Qt)), Z = (I * G - R * N < 0 ? -1 : 1) * Math.acos((I * N + R * G) / Se(Qt * (N * N + G * G)));
2069
- isNaN(Z) && (Z = d), !s && Z > 0 ? Z -= _ : s && Z < 0 && (Z += _), Ft %= _, Z %= _;
2070
- var Pt = Math.ceil(Ee(Z) / (_ / 4)), gt = [], tt = Z / Pt, bt = 4 / 3 * Ye(tt / 2) / (1 + Xe(tt / 2)), Mn = u * e, En = f * e, Rn = f * -i, In = u * i, lt;
2071
- for (lt = 0; lt < Pt; lt++)
2072
- r = Ft + lt * tt, g = Xe(r), m = Ye(r), I = Xe(r += tt), R = Ye(r), gt.push(g - bt * m, m + bt * g, I + bt * R, R - bt * I, I, R);
2073
- for (lt = 0; lt < gt.length; lt += 2)
2074
- g = gt[lt], m = gt[lt + 1], gt[lt] = g * Mn + m * Rn + E, gt[lt + 1] = g * En + m * In + Y;
2075
- return gt[lt - 2] = a, gt[lt - 1] = l, gt;
2068
+ var A = (n === s ? -1 : 1) * Se(P), T = A * (e * m / i), C = A * -(i * g / e), M = (o + a) / 2, k = (t + u) / 2, E = M + (h * T - c * C), Y = k + (c * T + h * C), I = (g - T) / e, R = (m - C) / i, N = (-g - T) / e, K = (-m - C) / i, Qt = I * I + R * R, Ft = (R < 0 ? -1 : 1) * Math.acos(I / Se(Qt)), J = (I * K - R * N < 0 ? -1 : 1) * Math.acos((I * N + R * K) / Se(Qt * (N * N + K * K)));
2069
+ isNaN(J) && (J = d), !s && J > 0 ? J -= p : s && J < 0 && (J += p), Ft %= p, J %= p;
2070
+ var Pt = Math.ceil(Ee(J) / (p / 4)), bt = [], et = J / Pt, mt = 4 / 3 * Ye(et / 2) / (1 + Xe(et / 2)), Mn = h * e, En = c * e, Rn = c * -i, In = h * i, ut;
2071
+ for (ut = 0; ut < Pt; ut++)
2072
+ r = Ft + ut * et, g = Xe(r), m = Ye(r), I = Xe(r += et), R = Ye(r), bt.push(g - mt * m, m + mt * g, I + mt * R, R - mt * I, I, R);
2073
+ for (ut = 0; ut < bt.length; ut += 2)
2074
+ g = bt[ut], m = bt[ut + 1], bt[ut] = g * Mn + m * Rn + E, bt[ut + 1] = g * En + m * In + Y;
2075
+ return bt[ut - 2] = a, bt[ut - 1] = u, bt;
2076
2076
  }
2077
2077
  }
2078
2078
  function mo(o) {
2079
- var t = (o + "").replace(fo, function(w) {
2080
- var C = +w;
2079
+ var t = (o + "").replace(fo, function(T) {
2080
+ var C = +T;
2081
2081
  return C < 1e-4 && C > -1e-4 ? 0 : C;
2082
- }).match(co) || [], e = [], i = 0, r = 0, n = 2 / 3, s = t.length, a = 0, l = "ERROR: malformed path: " + o, h, u, f, d, _, p, c, g, m, b, v, x, y, T, P, A = function(C, M, O, E) {
2083
- b = (O - C) / 3, v = (E - M) / 3, c.push(C + b, M + v, O - b, E - v, O, E);
2082
+ }).match(co) || [], e = [], i = 0, r = 0, n = 2 / 3, s = t.length, a = 0, u = "ERROR: malformed path: " + o, l, h, c, d, p, _, f, g, m, b, v, x, y, w, P, A = function(C, M, k, E) {
2083
+ b = (k - C) / 3, v = (E - M) / 3, f.push(C + b, M + v, k - b, E - v, k, E);
2084
2084
  };
2085
2085
  if (!o || !isNaN(t[0]) || isNaN(t[1]))
2086
- return console.log(l), e;
2087
- for (h = 0; h < s; h++)
2088
- if (y = _, isNaN(t[h]) ? (_ = t[h].toUpperCase(), p = _ !== t[h]) : h--, f = +t[h + 1], d = +t[h + 2], p && (f += i, d += r), h || (g = f, m = d), _ === "M")
2089
- c && (c.length < 8 ? e.length -= 1 : a += c.length), i = g = f, r = m = d, c = [f, d], e.push(c), h += 2, _ = "L";
2090
- else if (_ === "C")
2091
- c || (c = [0, 0]), p || (i = r = 0), c.push(f, d, i + t[h + 3] * 1, r + t[h + 4] * 1, i += t[h + 5] * 1, r += t[h + 6] * 1), h += 6;
2092
- else if (_ === "S")
2093
- b = i, v = r, (y === "C" || y === "S") && (b += i - c[c.length - 4], v += r - c[c.length - 3]), p || (i = r = 0), c.push(b, v, f, d, i += t[h + 3] * 1, r += t[h + 4] * 1), h += 4;
2094
- else if (_ === "Q")
2095
- b = i + (f - i) * n, v = r + (d - r) * n, p || (i = r = 0), i += t[h + 3] * 1, r += t[h + 4] * 1, c.push(b, v, i + (f - i) * n, r + (d - r) * n, i, r), h += 4;
2096
- else if (_ === "T")
2097
- b = i - c[c.length - 4], v = r - c[c.length - 3], c.push(i + b, r + v, f + (i + b * 1.5 - f) * n, d + (r + v * 1.5 - d) * n, i = f, r = d), h += 2;
2098
- else if (_ === "H")
2099
- A(i, r, i = f, r), h += 1;
2100
- else if (_ === "V")
2101
- A(i, r, i, r = f + (p ? r - i : 0)), h += 1;
2102
- else if (_ === "L" || _ === "Z")
2103
- _ === "Z" && (f = g, d = m, c.closed = !0), (_ === "L" || Ee(i - f) > 0.5 || Ee(r - d) > 0.5) && (A(i, r, f, d), _ === "L" && (h += 2)), i = f, r = d;
2104
- else if (_ === "A") {
2105
- if (T = t[h + 4], P = t[h + 5], b = t[h + 6], v = t[h + 7], u = 7, T.length > 1 && (T.length < 3 ? (v = b, b = P, u--) : (v = P, b = T.substr(2), u -= 2), P = T.charAt(1), T = T.charAt(0)), x = bo(i, r, +t[h + 1], +t[h + 2], +t[h + 3], +T, +P, (p ? i : 0) + b * 1, (p ? r : 0) + v * 1), h += u, x)
2106
- for (u = 0; u < x.length; u++)
2107
- c.push(x[u]);
2108
- i = c[c.length - 2], r = c[c.length - 1];
2086
+ return console.log(u), e;
2087
+ for (l = 0; l < s; l++)
2088
+ if (y = p, isNaN(t[l]) ? (p = t[l].toUpperCase(), _ = p !== t[l]) : l--, c = +t[l + 1], d = +t[l + 2], _ && (c += i, d += r), l || (g = c, m = d), p === "M")
2089
+ f && (f.length < 8 ? e.length -= 1 : a += f.length), i = g = c, r = m = d, f = [c, d], e.push(f), l += 2, p = "L";
2090
+ else if (p === "C")
2091
+ f || (f = [0, 0]), _ || (i = r = 0), f.push(c, d, i + t[l + 3] * 1, r + t[l + 4] * 1, i += t[l + 5] * 1, r += t[l + 6] * 1), l += 6;
2092
+ else if (p === "S")
2093
+ b = i, v = r, (y === "C" || y === "S") && (b += i - f[f.length - 4], v += r - f[f.length - 3]), _ || (i = r = 0), f.push(b, v, c, d, i += t[l + 3] * 1, r += t[l + 4] * 1), l += 4;
2094
+ else if (p === "Q")
2095
+ b = i + (c - i) * n, v = r + (d - r) * n, _ || (i = r = 0), i += t[l + 3] * 1, r += t[l + 4] * 1, f.push(b, v, i + (c - i) * n, r + (d - r) * n, i, r), l += 4;
2096
+ else if (p === "T")
2097
+ b = i - f[f.length - 4], v = r - f[f.length - 3], f.push(i + b, r + v, c + (i + b * 1.5 - c) * n, d + (r + v * 1.5 - d) * n, i = c, r = d), l += 2;
2098
+ else if (p === "H")
2099
+ A(i, r, i = c, r), l += 1;
2100
+ else if (p === "V")
2101
+ A(i, r, i, r = c + (_ ? r - i : 0)), l += 1;
2102
+ else if (p === "L" || p === "Z")
2103
+ p === "Z" && (c = g, d = m, f.closed = !0), (p === "L" || Ee(i - c) > 0.5 || Ee(r - d) > 0.5) && (A(i, r, c, d), p === "L" && (l += 2)), i = c, r = d;
2104
+ else if (p === "A") {
2105
+ if (w = t[l + 4], P = t[l + 5], b = t[l + 6], v = t[l + 7], h = 7, w.length > 1 && (w.length < 3 ? (v = b, b = P, h--) : (v = P, b = w.substr(2), h -= 2), P = w.charAt(1), w = w.charAt(0)), x = bo(i, r, +t[l + 1], +t[l + 2], +t[l + 3], +w, +P, (_ ? i : 0) + b * 1, (_ ? r : 0) + v * 1), l += h, x)
2106
+ for (h = 0; h < x.length; h++)
2107
+ f.push(x[h]);
2108
+ i = f[f.length - 2], r = f[f.length - 1];
2109
2109
  } else
2110
- console.log(l);
2111
- return h = c.length, h < 6 ? (e.pop(), h = 0) : c[0] === c[h - 2] && c[1] === c[h - 1] && (c.closed = !0), e.totalPoints = a + h, e;
2110
+ console.log(u);
2111
+ return l = f.length, l < 6 ? (e.pop(), l = 0) : f[0] === f[l - 2] && f[1] === f[l - 1] && (f.closed = !0), e.totalPoints = a + l, e;
2112
2112
  }
2113
2113
  function vo(o) {
2114
- po(o[0]) && (o = [o]);
2114
+ _o(o[0]) && (o = [o]);
2115
2115
  var t = "", e = o.length, i, r, n, s;
2116
2116
  for (r = 0; r < e; r++) {
2117
2117
  for (s = o[r], t += "M" + $t(s[0]) + "," + $t(s[1]) + " C", i = s.length, n = 2; n < i; n++)
@@ -2128,99 +2128,99 @@ function vo(o) {
2128
2128
  * Subject to the terms at https://gsap.com/standard-license
2129
2129
  * @author: Jack Doyle, jack@greensock.com
2130
2130
  */
2131
- var et, Tn, Pn = function() {
2132
- return et || typeof window < "u" && (et = window.gsap) && et.registerPlugin && et;
2131
+ var it, wn, Pn = function() {
2132
+ return it || typeof window < "u" && (it = window.gsap) && it.registerPlugin && it;
2133
2133
  }, vr = function() {
2134
- et = Pn(), et ? (et.registerEase("_CE", Bt.create), Tn = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
2135
- }, yo = 1e20, qe = function(t) {
2134
+ it = Pn(), it ? (it.registerEase("_CE", Bt.create), wn = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
2135
+ }, yo = 1e20, Ge = function(t) {
2136
2136
  return ~~(t * 1e3 + (t < 0 ? -0.5 : 0.5)) / 1e3;
2137
- }, xo = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi, wo = /[cLlsSaAhHvVtTqQ]/g, To = function(t) {
2137
+ }, xo = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi, To = /[cLlsSaAhHvVtTqQ]/g, wo = function(t) {
2138
2138
  var e = t.length, i = yo, r;
2139
2139
  for (r = 1; r < e; r += 6)
2140
2140
  +t[r] < i && (i = +t[r]);
2141
2141
  return i;
2142
2142
  }, Po = function(t, e, i) {
2143
2143
  !i && i !== 0 && (i = Math.max(+t[t.length - 1], +t[1]));
2144
- var r = +t[0] * -1, n = -i, s = t.length, a = 1 / (+t[s - 2] + r), l = -e || (Math.abs(+t[s - 1] - +t[1]) < 0.01 * (+t[s - 2] - +t[0]) ? To(t) + n : +t[s - 1] + n), h;
2145
- for (l ? l = 1 / l : l = -a, h = 0; h < s; h += 2)
2146
- t[h] = (+t[h] + r) * a, t[h + 1] = (+t[h + 1] + n) * l;
2147
- }, Ao = function o(t, e, i, r, n, s, a, l, h, u, f) {
2148
- var d = (t + i) / 2, _ = (e + r) / 2, p = (i + n) / 2, c = (r + s) / 2, g = (n + a) / 2, m = (s + l) / 2, b = (d + p) / 2, v = (_ + c) / 2, x = (p + g) / 2, y = (c + m) / 2, T = (b + x) / 2, P = (v + y) / 2, A = a - t, w = l - e, C = Math.abs((i - a) * w - (r - l) * A), M = Math.abs((n - a) * w - (s - l) * A), O;
2149
- return u || (u = [{
2144
+ var r = +t[0] * -1, n = -i, s = t.length, a = 1 / (+t[s - 2] + r), u = -e || (Math.abs(+t[s - 1] - +t[1]) < 0.01 * (+t[s - 2] - +t[0]) ? wo(t) + n : +t[s - 1] + n), l;
2145
+ for (u ? u = 1 / u : u = -a, l = 0; l < s; l += 2)
2146
+ t[l] = (+t[l] + r) * a, t[l + 1] = (+t[l + 1] + n) * u;
2147
+ }, Ao = function o(t, e, i, r, n, s, a, u, l, h, c) {
2148
+ var d = (t + i) / 2, p = (e + r) / 2, _ = (i + n) / 2, f = (r + s) / 2, g = (n + a) / 2, m = (s + u) / 2, b = (d + _) / 2, v = (p + f) / 2, x = (_ + g) / 2, y = (f + m) / 2, w = (b + x) / 2, P = (v + y) / 2, A = a - t, T = u - e, C = Math.abs((i - a) * T - (r - u) * A), M = Math.abs((n - a) * T - (s - u) * A), k;
2149
+ return h || (h = [{
2150
2150
  x: t,
2151
2151
  y: e
2152
2152
  }, {
2153
2153
  x: a,
2154
- y: l
2155
- }], f = 1), u.splice(f || u.length - 1, 0, {
2156
- x: T,
2154
+ y: u
2155
+ }], c = 1), h.splice(c || h.length - 1, 0, {
2156
+ x: w,
2157
2157
  y: P
2158
- }), (C + M) * (C + M) > h * (A * A + w * w) && (O = u.length, o(t, e, d, _, b, v, T, P, h, u, f), o(T, P, x, y, g, m, a, l, h, u, f + 1 + (u.length - O))), u;
2158
+ }), (C + M) * (C + M) > l * (A * A + T * T) && (k = h.length, o(t, e, d, p, b, v, w, P, l, h, c), o(w, P, x, y, g, m, a, u, l, h, c + 1 + (h.length - k))), h;
2159
2159
  }, Bt = /* @__PURE__ */ function() {
2160
2160
  function o(e, i, r) {
2161
- Tn || vr(), this.id = e, this.setData(i, r);
2161
+ wn || vr(), this.id = e, this.setData(i, r);
2162
2162
  }
2163
2163
  var t = o.prototype;
2164
2164
  return t.setData = function(i, r) {
2165
2165
  r = r || {}, i = i || "0,0,1,1";
2166
- var n = i.match(xo), s = 1, a = [], l = [], h = r.precision || 1, u = h <= 1, f, d, _, p, c, g, m, b, v;
2167
- if (this.data = i, (wo.test(i) || ~i.indexOf("M") && i.indexOf("C") < 0) && (n = mo(i)[0]), f = n.length, f === 4)
2168
- n.unshift(0, 0), n.push(1, 1), f = 8;
2169
- else if ((f - 2) % 6)
2166
+ var n = i.match(xo), s = 1, a = [], u = [], l = r.precision || 1, h = l <= 1, c, d, p, _, f, g, m, b, v;
2167
+ if (this.data = i, (To.test(i) || ~i.indexOf("M") && i.indexOf("C") < 0) && (n = mo(i)[0]), c = n.length, c === 4)
2168
+ n.unshift(0, 0), n.push(1, 1), c = 8;
2169
+ else if ((c - 2) % 6)
2170
2170
  throw "Invalid CustomEase";
2171
- for ((+n[0] != 0 || +n[f - 2] != 1) && Po(n, r.height, r.originY), this.segment = n, p = 2; p < f; p += 6)
2171
+ for ((+n[0] != 0 || +n[c - 2] != 1) && Po(n, r.height, r.originY), this.segment = n, _ = 2; _ < c; _ += 6)
2172
2172
  d = {
2173
- x: +n[p - 2],
2174
- y: +n[p - 1]
2175
- }, _ = {
2176
- x: +n[p + 4],
2177
- y: +n[p + 5]
2178
- }, a.push(d, _), Ao(d.x, d.y, +n[p], +n[p + 1], +n[p + 2], +n[p + 3], _.x, _.y, 1 / (h * 2e5), a, a.length - 1);
2179
- for (f = a.length, p = 0; p < f; p++)
2180
- m = a[p], b = a[p - 1] || m, (m.x > b.x || b.y !== m.y && b.x === m.x || m === b) && m.x <= 1 ? (b.cx = m.x - b.x, b.cy = m.y - b.y, b.n = m, b.nx = m.x, u && p > 1 && Math.abs(b.cy / b.cx - a[p - 2].cy / a[p - 2].cx) > 2 && (u = 0), b.cx < s && (b.cx ? s = b.cx : (b.cx = 1e-3, p === f - 1 && (b.x -= 1e-3, s = Math.min(s, 1e-3), u = 0)))) : (a.splice(p--, 1), f--);
2181
- if (f = 1 / s + 1 | 0, c = 1 / f, g = 0, m = a[0], u) {
2182
- for (p = 0; p < f; p++)
2183
- v = p * c, m.nx < v && (m = a[++g]), d = m.y + (v - m.x) / m.cx * m.cy, l[p] = {
2173
+ x: +n[_ - 2],
2174
+ y: +n[_ - 1]
2175
+ }, p = {
2176
+ x: +n[_ + 4],
2177
+ y: +n[_ + 5]
2178
+ }, a.push(d, p), Ao(d.x, d.y, +n[_], +n[_ + 1], +n[_ + 2], +n[_ + 3], p.x, p.y, 1 / (l * 2e5), a, a.length - 1);
2179
+ for (c = a.length, _ = 0; _ < c; _++)
2180
+ m = a[_], b = a[_ - 1] || m, (m.x > b.x || b.y !== m.y && b.x === m.x || m === b) && m.x <= 1 ? (b.cx = m.x - b.x, b.cy = m.y - b.y, b.n = m, b.nx = m.x, h && _ > 1 && Math.abs(b.cy / b.cx - a[_ - 2].cy / a[_ - 2].cx) > 2 && (h = 0), b.cx < s && (b.cx ? s = b.cx : (b.cx = 1e-3, _ === c - 1 && (b.x -= 1e-3, s = Math.min(s, 1e-3), h = 0)))) : (a.splice(_--, 1), c--);
2181
+ if (c = 1 / s + 1 | 0, f = 1 / c, g = 0, m = a[0], h) {
2182
+ for (_ = 0; _ < c; _++)
2183
+ v = _ * f, m.nx < v && (m = a[++g]), d = m.y + (v - m.x) / m.cx * m.cy, u[_] = {
2184
2184
  x: v,
2185
- cx: c,
2185
+ cx: f,
2186
2186
  y: d,
2187
2187
  cy: 0,
2188
2188
  nx: 9
2189
- }, p && (l[p - 1].cy = d - l[p - 1].y);
2190
- g = a[a.length - 1], l[f - 1].cy = g.y - d, l[f - 1].cx = g.x - l[l.length - 1].x;
2189
+ }, _ && (u[_ - 1].cy = d - u[_ - 1].y);
2190
+ g = a[a.length - 1], u[c - 1].cy = g.y - d, u[c - 1].cx = g.x - u[u.length - 1].x;
2191
2191
  } else {
2192
- for (p = 0; p < f; p++)
2193
- m.nx < p * c && (m = a[++g]), l[p] = m;
2194
- g < a.length - 1 && (l[p - 1] = a[a.length - 2]);
2192
+ for (_ = 0; _ < c; _++)
2193
+ m.nx < _ * f && (m = a[++g]), u[_] = m;
2194
+ g < a.length - 1 && (u[_ - 1] = a[a.length - 2]);
2195
2195
  }
2196
2196
  return this.ease = function(x) {
2197
- var y = l[x * f | 0] || l[f - 1];
2197
+ var y = u[x * c | 0] || u[c - 1];
2198
2198
  return y.nx < x && (y = y.n), y.y + (x - y.x) / y.cx * y.cy;
2199
- }, this.ease.custom = this, this.id && et && et.registerEase(this.id, this.ease), this;
2199
+ }, this.ease.custom = this, this.id && it && it.registerEase(this.id, this.ease), this;
2200
2200
  }, t.getSVGData = function(i) {
2201
2201
  return o.getSVGData(this, i);
2202
2202
  }, o.create = function(i, r, n) {
2203
2203
  return new o(i, r, n).ease;
2204
2204
  }, o.register = function(i) {
2205
- et = i, vr();
2205
+ it = i, vr();
2206
2206
  }, o.get = function(i) {
2207
- return et.parseEase(i);
2207
+ return it.parseEase(i);
2208
2208
  }, o.getSVGData = function(i, r) {
2209
2209
  r = r || {};
2210
- var n = r.width || 100, s = r.height || 100, a = r.x || 0, l = (r.y || 0) + s, h = et.utils.toArray(r.path)[0], u, f, d, _, p, c, g, m, b, v;
2211
- if (r.invert && (s = -s, l = 0), typeof i == "string" && (i = et.parseEase(i)), i.custom && (i = i.custom), i instanceof o)
2212
- u = vo(go([i.segment], n, 0, 0, -s, a, l));
2210
+ var n = r.width || 100, s = r.height || 100, a = r.x || 0, u = (r.y || 0) + s, l = it.utils.toArray(r.path)[0], h, c, d, p, _, f, g, m, b, v;
2211
+ if (r.invert && (s = -s, u = 0), typeof i == "string" && (i = it.parseEase(i)), i.custom && (i = i.custom), i instanceof o)
2212
+ h = vo(go([i.segment], n, 0, 0, -s, a, u));
2213
2213
  else {
2214
- for (u = [a, l], g = Math.max(5, (r.precision || 1) * 200), _ = 1 / g, g += 2, m = 5 / g, b = qe(a + _ * n), v = qe(l + i(_) * -s), f = (v - l) / (b - a), d = 2; d < g; d++)
2215
- p = qe(a + d * _ * n), c = qe(l + i(d * _) * -s), (Math.abs((c - v) / (p - b) - f) > m || d === g - 1) && (u.push(b, v), f = (c - v) / (p - b)), b = p, v = c;
2216
- u = "M" + u.join(",");
2214
+ for (h = [a, u], g = Math.max(5, (r.precision || 1) * 200), p = 1 / g, g += 2, m = 5 / g, b = Ge(a + p * n), v = Ge(u + i(p) * -s), c = (v - u) / (b - a), d = 2; d < g; d++)
2215
+ _ = Ge(a + d * p * n), f = Ge(u + i(d * p) * -s), (Math.abs((f - v) / (_ - b) - c) > m || d === g - 1) && (h.push(b, v), c = (f - v) / (_ - b)), b = _, v = f;
2216
+ h = "M" + h.join(",");
2217
2217
  }
2218
- return h && h.setAttribute("d", u), u;
2218
+ return l && l.setAttribute("d", h), h;
2219
2219
  }, o;
2220
2220
  }();
2221
2221
  Bt.version = "3.13.0";
2222
2222
  Bt.headless = !0;
2223
- Pn() && et.registerPlugin(Bt);
2223
+ Pn() && it.registerPlugin(Bt);
2224
2224
  /*!
2225
2225
  * ScrollToPlugin 3.13.0
2226
2226
  * https://gsap.com
@@ -2229,25 +2229,25 @@ Pn() && et.registerPlugin(Bt);
2229
2229
  * Subject to the terms at https://gsap.com/standard-license
2230
2230
  * @author: Jack Doyle, jack@greensock.com
2231
2231
  */
2232
- var j, An, Et, kt, qt, Sn, ge, Ge, Cn = function() {
2232
+ var Q, An, Et, Ct, Gt, Sn, ge, qe, On = function() {
2233
2233
  return typeof window < "u";
2234
- }, kn = function() {
2235
- return j || Cn() && (j = window.gsap) && j.registerPlugin && j;
2236
- }, On = function(t) {
2234
+ }, Cn = function() {
2235
+ return Q || On() && (Q = window.gsap) && Q.registerPlugin && Q;
2236
+ }, kn = function(t) {
2237
2237
  return typeof t == "string";
2238
2238
  }, yr = function(t) {
2239
2239
  return typeof t == "function";
2240
2240
  }, $e = function(t, e) {
2241
2241
  var i = e === "x" ? "Width" : "Height", r = "scroll" + i, n = "client" + i;
2242
- return t === Et || t === kt || t === qt ? Math.max(kt[r], qt[r]) - (Et["inner" + i] || kt[n] || qt[n]) : t[r] - t["offset" + i];
2242
+ return t === Et || t === Ct || t === Gt ? Math.max(Ct[r], Gt[r]) - (Et["inner" + i] || Ct[n] || Gt[n]) : t[r] - t["offset" + i];
2243
2243
  }, Ue = function(t, e) {
2244
2244
  var i = "scroll" + (e === "x" ? "Left" : "Top");
2245
- return t === Et && (t.pageXOffset != null ? i = "page" + e.toUpperCase() + "Offset" : t = kt[i] != null ? kt : qt), function() {
2245
+ return t === Et && (t.pageXOffset != null ? i = "page" + e.toUpperCase() + "Offset" : t = Ct[i] != null ? Ct : Gt), function() {
2246
2246
  return t[i];
2247
2247
  };
2248
2248
  }, So = function(t, e, i, r) {
2249
2249
  if (yr(t) && (t = t(e, i, r)), typeof t != "object")
2250
- return On(t) && t !== "max" && t.charAt(1) !== "=" ? {
2250
+ return kn(t) && t !== "max" && t.charAt(1) !== "=" ? {
2251
2251
  x: t,
2252
2252
  y: t
2253
2253
  } : {
@@ -2268,68 +2268,68 @@ var j, An, Et, kt, qt, Sn, ge, Ge, Cn = function() {
2268
2268
  x: 0,
2269
2269
  y: 0
2270
2270
  };
2271
- var i = t.getBoundingClientRect(), r = !e || e === Et || e === qt, n = r ? {
2272
- top: kt.clientTop - (Et.pageYOffset || kt.scrollTop || qt.scrollTop || 0),
2273
- left: kt.clientLeft - (Et.pageXOffset || kt.scrollLeft || qt.scrollLeft || 0)
2271
+ var i = t.getBoundingClientRect(), r = !e || e === Et || e === Gt, n = r ? {
2272
+ top: Ct.clientTop - (Et.pageYOffset || Ct.scrollTop || Gt.scrollTop || 0),
2273
+ left: Ct.clientLeft - (Et.pageXOffset || Ct.scrollLeft || Gt.scrollLeft || 0)
2274
2274
  } : e.getBoundingClientRect(), s = {
2275
2275
  x: i.left - n.left,
2276
2276
  y: i.top - n.top
2277
2277
  };
2278
2278
  return !r && e && (s.x += Ue(e, "x")(), s.y += Ue(e, "y")()), s;
2279
2279
  }, xr = function(t, e, i, r, n) {
2280
- return !isNaN(t) && typeof t != "object" ? parseFloat(t) - n : On(t) && t.charAt(1) === "=" ? parseFloat(t.substr(2)) * (t.charAt(0) === "-" ? -1 : 1) + r - n : t === "max" ? $e(e, i) - n : Math.min($e(e, i), Dn(t, e)[i] - n);
2280
+ return !isNaN(t) && typeof t != "object" ? parseFloat(t) - n : kn(t) && t.charAt(1) === "=" ? parseFloat(t.substr(2)) * (t.charAt(0) === "-" ? -1 : 1) + r - n : t === "max" ? $e(e, i) - n : Math.min($e(e, i), Dn(t, e)[i] - n);
2281
2281
  }, Ri = function() {
2282
- j = kn(), Cn() && j && typeof document < "u" && document.body && (Et = window, qt = document.body, kt = document.documentElement, Sn = j.utils.toArray, j.config({
2282
+ Q = Cn(), On() && Q && typeof document < "u" && document.body && (Et = window, Gt = document.body, Ct = document.documentElement, Sn = Q.utils.toArray, Q.config({
2283
2283
  autoKillThreshold: 7
2284
- }), ge = j.config(), An = 1);
2285
- }, Te = {
2284
+ }), ge = Q.config(), An = 1);
2285
+ }, we = {
2286
2286
  version: "3.13.0",
2287
2287
  name: "scrollTo",
2288
2288
  rawVars: 1,
2289
2289
  register: function(t) {
2290
- j = t, Ri();
2290
+ Q = t, Ri();
2291
2291
  },
2292
2292
  init: function(t, e, i, r, n) {
2293
2293
  An || Ri();
2294
- var s = this, a = j.getProperty(t, "scrollSnapType");
2295
- s.isWin = t === Et, s.target = t, s.tween = i, e = So(e, r, t, n), s.vars = e, s.autoKill = !!("autoKill" in e ? e : ge).autoKill, s.getX = Ue(t, "x"), s.getY = Ue(t, "y"), s.x = s.xPrev = s.getX(), s.y = s.yPrev = s.getY(), Ge || (Ge = j.core.globals().ScrollTrigger), j.getProperty(t, "scrollBehavior") === "smooth" && j.set(t, {
2294
+ var s = this, a = Q.getProperty(t, "scrollSnapType");
2295
+ s.isWin = t === Et, s.target = t, s.tween = i, e = So(e, r, t, n), s.vars = e, s.autoKill = !!("autoKill" in e ? e : ge).autoKill, s.getX = Ue(t, "x"), s.getY = Ue(t, "y"), s.x = s.xPrev = s.getX(), s.y = s.yPrev = s.getY(), qe || (qe = Q.core.globals().ScrollTrigger), Q.getProperty(t, "scrollBehavior") === "smooth" && Q.set(t, {
2296
2296
  scrollBehavior: "auto"
2297
2297
  }), a && a !== "none" && (s.snap = 1, s.snapInline = t.style.scrollSnapType, t.style.scrollSnapType = "none"), e.x != null ? (s.add(s, "x", s.x, xr(e.x, t, "x", s.x, e.offsetX || 0), r, n), s._props.push("scrollTo_x")) : s.skipX = 1, e.y != null ? (s.add(s, "y", s.y, xr(e.y, t, "y", s.y, e.offsetY || 0), r, n), s._props.push("scrollTo_y")) : s.skipY = 1;
2298
2298
  },
2299
2299
  render: function(t, e) {
2300
- for (var i = e._pt, r = e.target, n = e.tween, s = e.autoKill, a = e.xPrev, l = e.yPrev, h = e.isWin, u = e.snap, f = e.snapInline, d, _, p, c, g; i; )
2300
+ for (var i = e._pt, r = e.target, n = e.tween, s = e.autoKill, a = e.xPrev, u = e.yPrev, l = e.isWin, h = e.snap, c = e.snapInline, d, p, _, f, g; i; )
2301
2301
  i.r(t, i.d), i = i._next;
2302
- d = h || !e.skipX ? e.getX() : a, _ = h || !e.skipY ? e.getY() : l, p = _ - l, c = d - a, g = ge.autoKillThreshold, e.x < 0 && (e.x = 0), e.y < 0 && (e.y = 0), s && (!e.skipX && (c > g || c < -g) && d < $e(r, "x") && (e.skipX = 1), !e.skipY && (p > g || p < -g) && _ < $e(r, "y") && (e.skipY = 1), e.skipX && e.skipY && (n.kill(), e.vars.onAutoKill && e.vars.onAutoKill.apply(n, e.vars.onAutoKillParams || []))), h ? Et.scrollTo(e.skipX ? d : e.x, e.skipY ? _ : e.y) : (e.skipY || (r.scrollTop = e.y), e.skipX || (r.scrollLeft = e.x)), u && (t === 1 || t === 0) && (_ = r.scrollTop, d = r.scrollLeft, f ? r.style.scrollSnapType = f : r.style.removeProperty("scroll-snap-type"), r.scrollTop = _ + 1, r.scrollLeft = d + 1, r.scrollTop = _, r.scrollLeft = d), e.xPrev = e.x, e.yPrev = e.y, Ge && Ge.update();
2302
+ d = l || !e.skipX ? e.getX() : a, p = l || !e.skipY ? e.getY() : u, _ = p - u, f = d - a, g = ge.autoKillThreshold, e.x < 0 && (e.x = 0), e.y < 0 && (e.y = 0), s && (!e.skipX && (f > g || f < -g) && d < $e(r, "x") && (e.skipX = 1), !e.skipY && (_ > g || _ < -g) && p < $e(r, "y") && (e.skipY = 1), e.skipX && e.skipY && (n.kill(), e.vars.onAutoKill && e.vars.onAutoKill.apply(n, e.vars.onAutoKillParams || []))), l ? Et.scrollTo(e.skipX ? d : e.x, e.skipY ? p : e.y) : (e.skipY || (r.scrollTop = e.y), e.skipX || (r.scrollLeft = e.x)), h && (t === 1 || t === 0) && (p = r.scrollTop, d = r.scrollLeft, c ? r.style.scrollSnapType = c : r.style.removeProperty("scroll-snap-type"), r.scrollTop = p + 1, r.scrollLeft = d + 1, r.scrollTop = p, r.scrollLeft = d), e.xPrev = e.x, e.yPrev = e.y, qe && qe.update();
2303
2303
  },
2304
2304
  kill: function(t) {
2305
2305
  var e = t === "scrollTo", i = this._props.indexOf(t);
2306
2306
  return (e || t === "scrollTo_x") && (this.skipX = 1), (e || t === "scrollTo_y") && (this.skipY = 1), i > -1 && this._props.splice(i, 1), !this._props.length;
2307
2307
  }
2308
2308
  };
2309
- Te.max = $e;
2310
- Te.getOffset = Dn;
2311
- Te.buildGetter = Ue;
2312
- Te.config = function(o) {
2313
- ge || Ri() || (ge = j.config());
2309
+ we.max = $e;
2310
+ we.getOffset = Dn;
2311
+ we.buildGetter = Ue;
2312
+ we.config = function(o) {
2313
+ ge || Ri() || (ge = Q.config());
2314
2314
  for (var t in o)
2315
2315
  ge[t] = o[t];
2316
2316
  };
2317
- kn() && j.registerPlugin(Te);
2318
- ie.registerPlugin(Te);
2317
+ Cn() && Q.registerPlugin(we);
2318
+ ie.registerPlugin(we);
2319
2319
  ie.registerPlugin(Bt);
2320
2320
  Bt.create("cubic", "0.65, 0, 0.35, 1");
2321
2321
  Bt.create("expo", "0.87, 0, 0.13, 1");
2322
2322
  Bt.create("quad", "0.45, 0, 0.55, 1");
2323
2323
  Bt.create("linear", "0.42, 0, 0.58, 1");
2324
- const Co = Wn`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px;--track-color:var(--cx-color-neutral-200);--track-width:1px;isolation:isolate;display:block}.tab-group{border-radius:0;display:flex}.tab-group__tabs{display:flex;position:relative}.tab-group--button .tab-group__tabs{background-color:var(--cx-color-neutral-100);padding:var(--cx-spacing-2x-small);border-radius:12px;flex:none}.tab-group--button .tab-group__indicator{--indicator-width:0}.tab-group__indicator{transition:var(--cx-transition-fast) translate ease, var(--cx-transition-fast) width ease;position:absolute}.tab-group--timeline .tab-group__indicator{display:none!important}.tab-group__dropdown{z-index:1;align-items:center;height:100%;display:flex;position:absolute;top:0}.tab-group__dropdown__trigger{--color:var(--tab-color,var(--cx-color-neutral-700));--background-color:var(--tab-background-color,transparent);--color-focus:var(--tab-active-color,var(--cx-color-primary));--background-color-focus:var(--tab-active-background-color,transparent);--font-size:var(--cx-font-size-small);--caret-font-size:var(--cx-font-size-medium);--cx-button-text-transform:none;max-width:var(--tab-dropdown-trigger-max-width,150px);flex:1;align-self:center}.tab-group__dropdown__trigger::part(base){height:auto;min-height:auto;line-height:var(--cx-line-height-x-small);padding:var(--tab-padding,var(--cx-spacing-x-small));border-width:0}.tab-group__dropdown__trigger--active{--color:var(--tab-active-color,var(--cx-color-neutral-600));--background-color:var(--tab-active-background-color,transparent)}.tab-group__dropdown__trigger--hidden{visibility:hidden;pointer-events:none}.tab-group__dropdown__menu{gap:var(--cx-spacing-3x-small);flex-direction:column;display:flex}.tab-group__dropdown__menu--reverse{flex-direction:column-reverse}.tab-group__dropdown__menu-item{--label-color:var(--tab-color,var(--cx-color-neutral-700));--cx-menu-item-background-color:var(--tab-background-color,transparent);--cx-menu-item-background-color-hover:var(--tab-background-color,var(--cx-color-neutral-100));--cx-menu-item-background-color-active:var(--tab-active-background-color,var(--cx-menu-item-background-color-hover));--cx-menu-item-background-color-active-hover:var(--tab-active-background-color,var(--cx-color-neutral-200))}.tab-group__dropdown__menu-item:hover:not(.tab-group__dropdown__menu-item--active){--label-color:var(--cx-color-neutral-800)}.tab-group__dropdown__menu-item--active{--label-color:var(--tab-active-color,var(--cx-color-neutral-600))}.tab-group__dropdown__menu-item::part(base){padding:var(--cx-spacing-3x-small) var(--cx-spacing-x-small);min-height:40px}.tab-group__dropdown__menu-item::part(checked-icon),.tab-group__dropdown__menu-item::part(submenu-icon){display:none}.tab-group__nav-container{padding:var(--tab-group-nav-padding,0);overflow:clip}.tab-group--has-scroll-controls .tab-group__nav-container{padding:0 var(--cx-spacing-x-large);position:relative}.tab-group--has-scroll-controls .tab-group__scroll-button--start--hidden,.tab-group--has-scroll-controls .tab-group__scroll-button--end--hidden{visibility:hidden}.tab-group__body{display:block}:host([use-max-panel-height]) .tab-group__body{overflow:auto}:host([hide-panel-variant=absolute]) .tab-group__body{position:relative}:host([hide-panel-variant=absolute]) ::slotted(cx-tab-panel){width:100%;display:block;top:0;left:0;position:absolute!important}:host([hide-panel-variant=absolute]) ::slotted(cx-tab-panel:not([active])){visibility:hidden;opacity:0;pointer-events:none}.tab-group__scroll-button{width:var(--cx-spacing-x-large);justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0}.tab-group__scroll-button--start{left:0}.tab-group__scroll-button--end{right:0}.tab-group--rtl .tab-group__scroll-button--start{left:auto;right:0}.tab-group--rtl .tab-group__scroll-button--end{left:0;right:auto}.tab-group__nav{justify-content:flex-start}.tab-group--top{gap:var(--tab-group-top-gap,var(--cx-spacing-small));flex-direction:column}.tab-group--top .tab-group__nav-container{border-bottom:solid var(--track-width) var(--track-color);order:1}.tab-group--top .tab-group__nav{scrollbar-width:none;display:flex;overflow-x:auto}.tab-group--top.tab-group--has-hidden-tabs .tab-group__nav{width:fit-content;overflow-x:hidden}.tab-group--top .tab-group__nav::-webkit-scrollbar{width:0;height:0}.tab-group--top .tab-group__tabs{flex-direction:row;position:relative}.tab-group--top.tab-group--rtl .tab-group__tabs{flex-direction:row-reverse}.tab-group--default.tab-group--top .tab-group__tabs{flex:auto}.tab-group--top .tab-group__indicator{border-bottom:solid var(--indicator-width) var(--indicator-color);bottom:0}.tab-group--top .tab-group__body{order:3}.tab-group--top ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,var(--cx-spacing-medium))}.tab-group--bottom{flex-direction:column}.tab-group--bottom .tab-group__nav-container{border-top:solid var(--track-width) var(--track-color);order:3}.tab-group--bottom .tab-group__nav{scrollbar-width:none;display:flex;overflow-x:auto}.tab-group--bottom.tab-group--has-hidden-tabs .tab-group__nav{width:fit-content;overflow-x:hidden}.tab-group--bottom .tab-group__nav::-webkit-scrollbar{width:0;height:0}.tab-group--bottom .tab-group__tabs{flex-direction:row;position:relative}.tab-group--bottom.tab-group--rtl .tab-group__tabs{flex-direction:row-reverse}.tab-group--default.tab-group--bottom .tab-group__tabs{flex:auto}.tab-group--bottom .tab-group__indicator{border-top:solid var(--indicator-width) var(--indicator-color);top:0}.tab-group--bottom .tab-group__body{order:1}.tab-group--bottom ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,var(--cx-spacing-medium) 0)}.tab-group--start{flex-direction:row}.tab-group--start .tab-group__nav-container{order:1}.tab-group--start .tab-group__tabs{flex-direction:column;flex:none}.tab-group--start .tab-group__indicator{right:calc(-1 * var(--indicator-width))}.tab-group--default.tab-group--start .tab-group__tabs{border-inline-end:solid var(--track-width) var(--track-color)}.tab-group--default.tab-group--start .tab-group__indicator{border-right:solid var(--indicator-width) var(--indicator-color)}.tab-group--start .tab-group__body{flex:auto;order:3}.tab-group--start ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,0 var(--cx-spacing-medium))}.tab-group--end{flex-direction:row}.tab-group--end .tab-group__nav-container{border-inline-start:solid var(--track-width) var(--track-color);order:3}.tab-group--end .tab-group__tabs{flex-direction:column;flex:none}.tab-group--end .tab-group__indicator{left:calc(-1 * var(--indicator-width))}.tab-group--default.tab-group--end .tab-group__indicator{border-inline-start:solid var(--indicator-width) var(--indicator-color)}.tab-group--end .tab-group__body{flex:auto;order:1}.tab-group--end ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,0 var(--cx-spacing-medium))}.tab-pagination{justify-content:center;gap:var(--cx-spacing-small);flex-wrap:wrap;order:2;display:flex}.tab-pagination__dot{cursor:pointer;border-radius:var(--cx-border-radius-circle);width:var(--cx-spacing-small);height:var(--cx-spacing-small);background:0 0;background-color:var(--cx-color-neutral-300);border:0;margin:0;padding:0;display:block}.tab-pagination__dot--active{background-color:var(--cx-color-neutral-500)}.timeline-line{--offset:var(--min-tab-width);--horizontal-padding:var(--cx-spacing-small);top:18px;left:calc(var(--offset) / 2 + var(--horizontal-padding));width:calc(100% - var(--offset) - 2 * var(--horizontal-padding));background-color:var(--cx-color-neutral-300);height:2px;display:block;position:absolute;transform:translateY(-50%)}`;
2325
- var ko = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, k = (o, t, e, i) => {
2326
- for (var r = i > 1 ? void 0 : i ? Oo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
2324
+ const Oo = Hn`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px;--track-color:var(--cx-color-neutral-200);--track-width:1px;isolation:isolate;display:block}.tab-group{border-radius:0;display:flex}.tab-group__tabs{display:flex;position:relative}.tab-group--button .tab-group__tabs{background-color:var(--cx-color-neutral-100);padding:var(--cx-spacing-2x-small);border-radius:12px;flex:none}.tab-group--button .tab-group__indicator{--indicator-width:0}.tab-group__indicator{transition:var(--cx-transition-fast) translate ease, var(--cx-transition-fast) width ease;position:absolute}.tab-group--timeline .tab-group__indicator{display:none!important}.tab-group__dropdown{z-index:1;align-items:center;display:flex;position:absolute;top:0;bottom:0}.tab-group__dropdown__trigger{--color:var(--tab-color,var(--cx-color-neutral-700));--background-color:var(--tab-background-color,transparent);--color-focus:var(--tab-active-color,var(--cx-color-primary));--background-color-focus:var(--tab-active-background-color,transparent);--font-size:var(--cx-font-size-small);--caret-font-size:var(--cx-font-size-medium);--cx-button-text-transform:none;--button-custom-border-radius:var(--cx-border-radius-small);max-width:var(--tab-dropdown-trigger-max-width,150px);flex:1;align-self:center}.tab-group--button .tab-group__dropdown__trigger{--button-custom-border-radius:var(--tab-border-radius,10px)}.tab-group__dropdown__trigger::part(base){height:auto;min-height:auto;line-height:var(--cx-line-height-x-small);padding:var(--tab-padding,var(--cx-spacing-x-small));border-width:0}.tab-group__dropdown__trigger--active{--color:var(--tab-active-color,var(--cx-color-neutral-600));--background-color:var(--tab-active-background-color,transparent)}.tab-group__dropdown__trigger--hidden{visibility:hidden;pointer-events:none}.tab-group__dropdown__menu{gap:var(--cx-spacing-3x-small);flex-direction:column;display:flex}.tab-group__dropdown__menu--reverse{flex-direction:column-reverse}.tab-group__dropdown__menu-item{--label-color:var(--tab-color,var(--cx-color-neutral-700));--cx-menu-item-background-color:var(--tab-background-color,transparent);--cx-menu-item-background-color-hover:var(--tab-background-color,var(--cx-color-neutral-100));--cx-menu-item-background-color-active:var(--tab-active-background-color,var(--cx-menu-item-background-color-hover));--cx-menu-item-background-color-active-hover:var(--tab-active-background-color,var(--cx-color-neutral-200))}.tab-group__dropdown__menu-item:hover:not(.tab-group__dropdown__menu-item--active){--label-color:var(--cx-color-neutral-800)}.tab-group__dropdown__menu-item--active{--label-color:var(--tab-active-color,var(--cx-color-neutral-600))}.tab-group__dropdown__menu-item::part(base){padding:var(--cx-spacing-3x-small) var(--cx-spacing-x-small);min-height:40px}.tab-group__dropdown__menu-item::part(checked-icon),.tab-group__dropdown__menu-item::part(submenu-icon){display:none}.tab-group__nav-container{padding:var(--tab-group-nav-padding,0);overflow:clip}.tab-group--has-scroll-controls .tab-group__nav-container{padding:0 var(--cx-spacing-x-large);position:relative}.tab-group--has-scroll-controls .tab-group__scroll-button--start--hidden,.tab-group--has-scroll-controls .tab-group__scroll-button--end--hidden{visibility:hidden}.tab-group__body{display:block}:host([use-max-panel-height]) .tab-group__body{overflow:auto}:host([hide-panel-variant=absolute]) .tab-group__body{position:relative}:host([hide-panel-variant=absolute]) ::slotted(cx-tab-panel){width:100%;display:block;top:0;left:0;position:absolute!important}:host([hide-panel-variant=absolute]) ::slotted(cx-tab-panel:not([active])){visibility:hidden;opacity:0;pointer-events:none}.tab-group__scroll-button{width:var(--cx-spacing-x-large);justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0}.tab-group__scroll-button--start{left:0}.tab-group__scroll-button--end{right:0}.tab-group--rtl .tab-group__scroll-button--start{left:auto;right:0}.tab-group--rtl .tab-group__scroll-button--end{left:0;right:auto}.tab-group__nav{justify-content:flex-start}.tab-group--top{gap:var(--tab-group-top-gap,var(--cx-spacing-small));flex-direction:column}.tab-group--top .tab-group__nav-container{border-bottom:solid var(--track-width) var(--track-color);order:1}.tab-group--top .tab-group__nav{scrollbar-width:none;display:flex;overflow-x:auto}.tab-group--top.tab-group--has-hidden-tabs .tab-group__nav{overflow-x:hidden}.tab-group--top .tab-group__nav::-webkit-scrollbar{width:0;height:0}.tab-group--top .tab-group__tabs{flex-direction:row;position:relative}.tab-group--top.tab-group--rtl .tab-group__tabs{flex-direction:row-reverse}.tab-group--default.tab-group--top .tab-group__tabs{flex:auto}.tab-group--top .tab-group__indicator{border-bottom:solid var(--indicator-width) var(--indicator-color);bottom:0}.tab-group--top .tab-group__body{order:3}.tab-group--top ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,var(--cx-spacing-medium))}.tab-group--bottom{flex-direction:column}.tab-group--bottom .tab-group__nav-container{border-top:solid var(--track-width) var(--track-color);order:3}.tab-group--bottom .tab-group__nav{scrollbar-width:none;display:flex;overflow-x:auto}.tab-group--bottom.tab-group--has-hidden-tabs .tab-group__nav{overflow-x:hidden}.tab-group--bottom .tab-group__nav::-webkit-scrollbar{width:0;height:0}.tab-group--bottom .tab-group__tabs{flex-direction:row;position:relative}.tab-group--bottom.tab-group--rtl .tab-group__tabs{flex-direction:row-reverse}.tab-group--default.tab-group--bottom .tab-group__tabs{flex:auto}.tab-group--bottom .tab-group__indicator{border-top:solid var(--indicator-width) var(--indicator-color);top:0}.tab-group--bottom .tab-group__body{order:1}.tab-group--bottom ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,var(--cx-spacing-medium) 0)}.tab-group--start{flex-direction:row}.tab-group--start .tab-group__nav-container{order:1}.tab-group--start .tab-group__tabs{flex-direction:column;flex:none}.tab-group--start .tab-group__indicator{right:calc(-1 * var(--indicator-width))}.tab-group--default.tab-group--start .tab-group__tabs{border-inline-end:solid var(--track-width) var(--track-color)}.tab-group--default.tab-group--start .tab-group__indicator{border-right:solid var(--indicator-width) var(--indicator-color)}.tab-group--start .tab-group__body{flex:auto;order:3}.tab-group--start ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,0 var(--cx-spacing-medium))}.tab-group--end{flex-direction:row}.tab-group--end .tab-group__nav-container{border-inline-start:solid var(--track-width) var(--track-color);order:3}.tab-group--end .tab-group__tabs{flex-direction:column;flex:none}.tab-group--end .tab-group__indicator{left:calc(-1 * var(--indicator-width))}.tab-group--default.tab-group--end .tab-group__indicator{border-inline-start:solid var(--indicator-width) var(--indicator-color)}.tab-group--end .tab-group__body{flex:auto;order:1}.tab-group--end ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,0 var(--cx-spacing-medium))}.tab-pagination{justify-content:center;gap:var(--cx-spacing-small);flex-wrap:wrap;order:2;display:flex}.tab-pagination__dot{cursor:pointer;border-radius:var(--cx-border-radius-circle);width:var(--cx-spacing-small);height:var(--cx-spacing-small);background:0 0;background-color:var(--cx-color-neutral-300);border:0;margin:0;padding:0;display:block}.tab-pagination__dot--active{background-color:var(--cx-color-neutral-500)}.timeline-line{--offset:var(--min-tab-width);--horizontal-padding:var(--cx-spacing-small);top:18px;left:calc(var(--offset) / 2 + var(--horizontal-padding));width:calc(100% - var(--offset) - 2 * var(--horizontal-padding));background-color:var(--cx-color-neutral-300);height:2px;display:block;position:absolute;transform:translateY(-50%)}`;
2325
+ var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, O = (o, t, e, i) => {
2326
+ for (var r = i > 1 ? void 0 : i ? ko(t, e) : t, n = o.length - 1, s; n >= 0; n--)
2327
2327
  (s = o[n]) && (r = (i ? s(t, e, r) : s(r)) || r);
2328
- return i && r && ko(t, e, r), r;
2328
+ return i && r && Co(t, e, r), r;
2329
2329
  };
2330
2330
  let S = class extends Bn {
2331
2331
  constructor() {
2332
- super(...arguments), this.localize = new Ln(this), this.tabs = [], this.focusableTabs = [], this.panels = [], this.hasScrollControls = !1, this.shouldHideScrollStartButton = !1, this.shouldHideScrollEndButton = !1, this.dropdownOffset = 0, this.tabPanelHeight = 0, this.tabAlignmentIndent = 0, this.shouldIgnoreAlignment = !1, this.shouldShowDropdown = !1, this.isActiveTabHidden = !1, this.paginationCount = 0, this.activePaginationIndex = 0, this.tabWidth = 0, this.clampedTabsPerPage = 0, this.placement = bi.Top, this.activation = wr.Auto, this.noScrollControls = !1, this.fixedScrollControls = !1, this.useMaxPanelHeight = !1, this.variant = ue.Default, this.overflowVariant = Tt.Scroll, this.hidePanelVariant = Ut.DisplayNone, this.tabAlignment = Ke.Start, this.dropdownLabel = "", this.tabsPerPage = 0, this.minTabWidth = 120, this.scrollOffset = 1;
2332
+ super(...arguments), this.localize = new Ln(this), this.tabs = [], this.focusableTabs = [], this.panels = [], this.hasScrollControls = !1, this.shouldHideScrollStartButton = !1, this.shouldHideScrollEndButton = !1, this.dropdownOffset = 0, this.tabButtonsLeadingPadding = 0, this.tabButtonsPaddingTop = 0, this.tabButtonsPaddingBottom = 0, this.tabPanelHeight = 0, this.tabAlignmentIndent = 0, this.shouldIgnoreAlignment = !1, this.shouldShowDropdown = !1, this.isActiveTabHidden = !1, this.paginationCount = 0, this.activePaginationIndex = 0, this.tabWidth = 0, this.clampedTabsPerPage = 0, this.placement = bi.Top, this.activation = Tr.Auto, this.noScrollControls = !1, this.fixedScrollControls = !1, this.useMaxPanelHeight = !1, this.variant = he.Default, this.overflowVariant = wt.Scroll, this.hidePanelVariant = Ut.DisplayNone, this.tabAlignment = Ke.Start, this.dropdownLabel = "", this.tabsPerPage = 0, this.minTabWidth = 120, this.promoteActiveOverflowTab = !1, this.scrollOffset = 1;
2333
2333
  }
2334
2334
  connectedCallback() {
2335
2335
  const o = Promise.all([
@@ -2362,7 +2362,7 @@ let S = class extends Bn {
2362
2362
  });
2363
2363
  }
2364
2364
  disconnectedCallback() {
2365
- super.disconnectedCallback(), this.mutationObserver?.disconnect(), this.overflowObserver?.disconnect(), this.cleanupPanelResizeObserver(), this.resizeObserver?.disconnect();
2365
+ super.disconnectedCallback(), this.mutationObserver?.disconnect(), this.overflowObserver?.disconnect(), this.cleanupPanelResizeObserver(), this.nav && this.resizeObserver?.unobserve(this.nav), this.tabButtons && this.resizeObserver?.unobserve(this.tabButtons);
2366
2366
  }
2367
2367
  /**
2368
2368
  * Navigate to the next tab
@@ -2399,7 +2399,16 @@ let S = class extends Bn {
2399
2399
  * If dropdown overflow but placement is start and end, count as scroll overflow
2400
2400
  */
2401
2401
  get allowDropdownOverflow() {
2402
- return this.overflowVariant === Tt.Dropdown && !["start", "end"].includes(this.placement);
2402
+ return this.overflowVariant === wt.Dropdown && !["start", "end"].includes(this.placement);
2403
+ }
2404
+ /**
2405
+ * The promoted tab, but only while promotion is actually in effect. promotedTab is left untouched when
2406
+ * placement or overflow-variant stops allowing a dropdown, so the selection resumes if they flip back;
2407
+ * this getter is what the fit loop reads so a stale reservation can never keep the feature switched on.
2408
+ */
2409
+ get activePromotedTab() {
2410
+ if (!(!this.promoteActiveOverflowTab || !this.allowDropdownOverflow))
2411
+ return this.promotedTab;
2403
2412
  }
2404
2413
  /**
2405
2414
  * Get the height of the body
@@ -2420,7 +2429,7 @@ let S = class extends Bn {
2420
2429
  const r = t.closest("[data-panel]")?.getAttribute("data-panel");
2421
2430
  e = this.tabs.find((n) => n.panel === r) ?? null;
2422
2431
  }
2423
- e?.closest("cx-tab-group") === this && e !== null && (this.setActiveTab(e, { scrollBehavior: "smooth" }), this.isActiveTabHidden = e.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE));
2432
+ e?.closest("cx-tab-group") === this && e !== null && (this.promoteHiddenActiveTab(e), this.setActiveTab(e, { scrollBehavior: "smooth" }), this.isActiveTabHidden = e.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE));
2424
2433
  }
2425
2434
  handleKeyDown(o) {
2426
2435
  const t = o.target;
@@ -2429,7 +2438,7 @@ let S = class extends Bn {
2429
2438
  const r = t.closest("[data-panel]")?.getAttribute("data-panel");
2430
2439
  e = this.tabs.find((n) => n.panel === r) ?? null;
2431
2440
  }
2432
- if (e?.closest("cx-tab-group") === this && (["Enter", " "].includes(o.key) && e !== null && (this.setActiveTab(e, { scrollBehavior: "smooth" }), this.isActiveTabHidden = e.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE), o.preventDefault()), [
2441
+ if (e?.closest("cx-tab-group") === this && (["Enter", " "].includes(o.key) && e !== null && (this.promoteHiddenActiveTab(e), this.setActiveTab(e, { scrollBehavior: "smooth" }), this.isActiveTabHidden = e.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE), o.preventDefault()), [
2433
2442
  "ArrowLeft",
2434
2443
  "ArrowRight",
2435
2444
  "ArrowUp",
@@ -2449,17 +2458,17 @@ let S = class extends Bn {
2449
2458
  break;
2450
2459
  default:
2451
2460
  if (["top", "bottom"].includes(this.placement) && o.key === (n ? "ArrowRight" : "ArrowLeft") || ["start", "end"].includes(this.placement) && o.key === "ArrowUp") {
2452
- const a = this.tabs.findIndex((l) => l === r);
2461
+ const a = this.tabs.findIndex((u) => u === r);
2453
2462
  s = this.findNextFocusableTab(a, "backward");
2454
2463
  } else if (["top", "bottom"].includes(this.placement) && o.key === (n ? "ArrowLeft" : "ArrowRight") || ["start", "end"].includes(this.placement) && o.key === "ArrowDown") {
2455
- const a = this.tabs.findIndex((l) => l === r);
2464
+ const a = this.tabs.findIndex((u) => u === r);
2456
2465
  s = this.findNextFocusableTab(a, "forward");
2457
2466
  }
2458
2467
  }
2459
2468
  if (!s)
2460
2469
  return;
2461
2470
  if (s.tabIndex = 0, s.focus({ preventScroll: !0 }), this.allowDropdownOverflow && this.dropdown !== null && s.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE) && this.dropdown.show(), this.activation === "auto")
2462
- this.setActiveTab(s, { scrollBehavior: "smooth" }), this.isActiveTabHidden = s.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE);
2471
+ this.promoteHiddenActiveTab(s), this.setActiveTab(s, { scrollBehavior: "smooth" }), this.isActiveTabHidden = s.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE);
2463
2472
  else
2464
2473
  for (const a of this.tabs)
2465
2474
  a.tabIndex = a === s ? 0 : -1;
@@ -2467,35 +2476,40 @@ let S = class extends Bn {
2467
2476
  }
2468
2477
  if (this.allowDropdownOverflow && this.dropdown?.open) {
2469
2478
  o.preventDefault();
2470
- const a = this.menu.getAllItems(), l = a.findIndex(
2471
- (d) => d.getAttribute("data-panel") === this.activeTab?.panel
2479
+ const a = this.menu.getAllItems(), u = a.findIndex(
2480
+ (c) => c.getAttribute("data-panel") === this.activeTab?.panel
2472
2481
  );
2473
- let h = -1;
2474
- const u = this.tabs.filter(
2475
- (d) => !d.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE)
2476
- ).length;
2477
- let f = o.key;
2478
- switch (this.placement === bi.Bottom && (f = f === "ArrowUp" && "ArrowDown" || f === "ArrowDown" && "ArrowUp" || f), f) {
2482
+ let l, h = o.key;
2483
+ switch (this.placement === bi.Bottom && (h = h === "ArrowUp" && "ArrowDown" || h === "ArrowDown" && "ArrowUp" || h), h) {
2479
2484
  case "Home":
2480
- this.dropdown.hide(), this.tabs[0].focus(), h = 0;
2485
+ this.dropdown.hide(), this.tabs[0].focus(), l = this.tabs[0];
2481
2486
  break;
2482
2487
  case "ArrowUp":
2483
- if (l === 0) {
2488
+ if (u <= 0) {
2484
2489
  this.dropdown.hide();
2485
- const d = this.tabs.filter((_) => !_.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE)).at(-1);
2486
- d && (d.focus(), h = this.tabs.findIndex(
2487
- (_) => _ === d
2488
- ));
2489
- } else
2490
- this.menu.setCurrentItem(a[l - 1]), a[l - 1].focus(), h = u + l - 1;
2490
+ const c = this.tabs.filter((d) => !d.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE)).at(-1);
2491
+ c && (c.focus(), l = c);
2492
+ } else {
2493
+ const c = a[u - 1];
2494
+ this.menu.setCurrentItem(c), c.focus(), l = this.tabs.find(
2495
+ (d) => d.panel === c.getAttribute("data-panel")
2496
+ );
2497
+ }
2491
2498
  break;
2492
2499
  case "ArrowDown":
2493
- l === a.length - 1 ? (this.dropdown.hide(), this.tabs[0].focus(), h = 0) : (this.menu.setCurrentItem(a[l + 1]), a[l + 1].focus(), h = u + l + 1);
2500
+ if (u === a.length - 1)
2501
+ this.dropdown.hide(), this.tabs[0].focus(), l = this.tabs[0];
2502
+ else {
2503
+ const c = a[u + 1];
2504
+ this.menu.setCurrentItem(c), c.focus(), l = this.tabs.find(
2505
+ (d) => d.panel === c.getAttribute("data-panel")
2506
+ );
2507
+ }
2494
2508
  break;
2495
2509
  }
2496
- this.activation === "auto" && h >= 0 && (this.setActiveTab(this.tabs[h], {
2497
- scrollBehavior: "smooth"
2498
- }), this.isActiveTabHidden = this.tabs[h].hasAttribute(S.HIDDEN_TAB_ATTRIBUTE));
2510
+ this.activation === "auto" && l && (this.promoteHiddenActiveTab(l), this.setActiveTab(l, { scrollBehavior: "smooth" }), this.isActiveTabHidden = l.hasAttribute(
2511
+ S.HIDDEN_TAB_ATTRIBUTE
2512
+ ));
2499
2513
  }
2500
2514
  }
2501
2515
  }
@@ -2513,16 +2527,15 @@ let S = class extends Bn {
2513
2527
  }
2514
2528
  handleDropdownAfterShow() {
2515
2529
  this.dropdown.focusOnTrigger();
2516
- const o = this.tabs.findIndex((r) => r.tabIndex === 0), t = this.tabs.filter(
2517
- (r) => !r.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE)
2518
- ).length;
2519
- if (o === -1)
2520
- return;
2521
- const e = o - t;
2522
- if (e < 0)
2530
+ const o = this.tabs.find((e) => e.tabIndex === 0);
2531
+ if (!o || !o.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE))
2523
2532
  return;
2524
- const i = this.menu.getAllItems()[e];
2525
- this.menu.setCurrentItem(i), i.focus();
2533
+ const t = this.menu.getAllItems().find((e) => e.getAttribute("data-panel") === o.panel);
2534
+ t && (this.menu.setCurrentItem(t), t.focus());
2535
+ }
2536
+ /** Marks tab as promoted (see promotedTab) without moving it in the DOM. */
2537
+ promoteHiddenActiveTab(o) {
2538
+ !this.promoteActiveOverflowTab || !this.allowDropdownOverflow || o.disabled || (this.promotedTab = o, this.syncTabsAndPanels());
2526
2539
  }
2527
2540
  setActiveTab(o, t) {
2528
2541
  if (t = {
@@ -2560,7 +2573,7 @@ let S = class extends Bn {
2560
2573
  });
2561
2574
  }
2562
2575
  }
2563
- t.emitEvents && (e && this.emit("cx-tab-hide", { detail: { name: e.panel } }), this.emit("cx-tab-show", { detail: { name: this.activeTab.panel } })), this.variant === ue.Timeline && this.handleVariantChange();
2576
+ t.emitEvents && (e && this.emit("cx-tab-hide", { detail: { name: e.panel } }), this.emit("cx-tab-show", { detail: { name: this.activeTab.panel } })), this.variant === he.Timeline && this.handleVariantChange();
2564
2577
  }
2565
2578
  }
2566
2579
  setAriaLabels() {
@@ -2570,72 +2583,92 @@ let S = class extends Bn {
2570
2583
  }
2571
2584
  }
2572
2585
  repositionIndicator() {
2573
- let o = this.getActiveTab();
2574
- if (o?.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE) && (o = this.tabs.find((a) => a.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE))), !o)
2586
+ const o = this.getActiveTab();
2587
+ if (!o)
2575
2588
  return;
2576
- const t = o.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE) ? this.dropdownTrigger?.clientWidth ?? 0 : o.clientWidth, e = o.clientHeight, i = this.localize.dir() === "rtl", r = this.getAllTabs(), s = r.slice(0, r.indexOf(o)).reduce(
2577
- (a, l) => ({
2578
- left: a.left + l.clientWidth,
2579
- top: a.top + l.clientHeight
2589
+ const t = o.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE), e = t ? this.dropdownTrigger?.clientWidth ?? 0 : o.clientWidth, i = o.clientHeight, r = this.localize.dir() === "rtl", n = this.getAllTabs(), a = n.slice(0, n.indexOf(o)).reduce(
2590
+ (l, h) => ({
2591
+ left: l.left + h.clientWidth,
2592
+ top: l.top + h.clientHeight
2580
2593
  }),
2581
2594
  { left: 0, top: 0 }
2582
- );
2595
+ ), u = t ? this.dropdownOffset : a.left;
2583
2596
  switch (this.placement) {
2584
2597
  case "top":
2585
2598
  case "bottom":
2586
- this.indicator.style.width = `${t}px`, this.indicator.style.height = "auto", this.indicator.style.translate = i ? `${-1 * s.left}px` : `${s.left}px`;
2599
+ this.indicator.style.width = `${e}px`, this.indicator.style.height = "auto", this.indicator.style.translate = r ? `${-1 * u}px` : `${u}px`;
2587
2600
  break;
2588
2601
  case "start":
2589
2602
  case "end":
2590
- this.indicator.style.width = "auto", this.indicator.style.height = `${e}px`, this.indicator.style.translate = `0 ${s.top}px`;
2603
+ this.indicator.style.width = "auto", this.indicator.style.height = `${i}px`, this.indicator.style.translate = `0 ${a.top}px`;
2591
2604
  break;
2592
2605
  }
2593
2606
  }
2607
+ /**
2608
+ * Returns this.tabs with promotedTab (if any) moved right after the first two entries, for the
2609
+ * fit loop to walk — this.tabs itself is never reordered.
2610
+ */
2611
+ buildPriorityOrder() {
2612
+ const o = this.activePromotedTab, t = this.tabs.slice(0, 2);
2613
+ if (!o || t.includes(o))
2614
+ return this.tabs;
2615
+ const e = this.tabs.slice(2).filter((i) => i !== o);
2616
+ return [...t, o, ...e];
2617
+ }
2594
2618
  /**
2595
2619
  * This stores tabs and panels so we can refer to a cache instead of calling querySelectorAll() multiple times.
2596
2620
  */
2597
2621
  syncTabsAndPanels() {
2598
- if (this.tabs = this.getAllTabs(), this.focusableTabs = this.tabs.filter((o) => !o.disabled), this.panels = this.getAllPanels(), this.syncIndicator(), this.updateComplete.then(() => {
2599
- this.updateScrollControls(), this.updatePagination(), this.variant === ue.Timeline && this.handleVariantChange(), this.hidePanelVariant === Ut.Absolute && (this.setupPanelResizeObserver(), this.calculateTabPanelHeight());
2622
+ if (this.tabs = this.getAllTabs(), this.promotedTab && (!this.tabs.includes(this.promotedTab) || this.promotedTab.disabled) && (this.promotedTab = void 0), this.focusableTabs = this.tabs.filter((o) => !o.disabled), this.panels = this.getAllPanels(), this.syncIndicator(), this.updateComplete.then(() => {
2623
+ this.updateScrollControls(), this.updatePagination(), this.variant === he.Timeline && this.handleVariantChange(), this.hidePanelVariant === Ut.Absolute && (this.setupPanelResizeObserver(), this.calculateTabPanelHeight());
2600
2624
  }), this.allowDropdownOverflow) {
2601
2625
  this.overflowObserver?.disconnect();
2602
2626
  const o = new IntersectionObserver(
2603
- (t) => {
2627
+ () => {
2604
2628
  o.disconnect();
2605
- const e = getComputedStyle(this.tabButtons), i = parseFloat(e.paddingLeft || "0") + parseFloat(e.paddingRight || "0"), r = Number.parseFloat(e.columnGap || "0") || 0;
2606
- this.lastTabGap = r;
2607
- const n = this.container.clientWidth - i, s = this.dropdownTrigger?.clientWidth ?? 0, a = t.length;
2608
- this.dropdownOffset = 0, this.isActiveTabHidden = !1, this.shouldShowDropdown = !1, this.tabs.forEach((l) => {
2609
- l.style.setProperty("--tab-max-width", "unset"), l.offsetWidth;
2629
+ const t = getComputedStyle(this.tabButtons), e = parseFloat(t.paddingLeft || "0") + parseFloat(t.paddingRight || "0");
2630
+ this.tabButtonsLeadingPadding = Number.parseFloat(
2631
+ (this.localize.dir() === "rtl" ? t.paddingRight : t.paddingLeft) || "0"
2632
+ ), this.tabButtonsPaddingTop = Number.parseFloat(
2633
+ t.paddingTop || "0"
2634
+ ), this.tabButtonsPaddingBottom = Number.parseFloat(
2635
+ t.paddingBottom || "0"
2636
+ );
2637
+ const i = Number.parseFloat(t.columnGap || "0") || 0;
2638
+ this.lastTabGap = i;
2639
+ const r = this.container.clientWidth - e, n = this.dropdownTrigger?.clientWidth ?? 0;
2640
+ this.dropdownOffset = 0, this.isActiveTabHidden = !1, this.shouldShowDropdown = !1;
2641
+ let s = !1;
2642
+ this.tabs.forEach((h) => {
2643
+ h.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !1), h.style.setProperty("--tab-max-width", "unset");
2610
2644
  });
2611
- for (const [l, h] of t.entries()) {
2612
- const u = h.target;
2613
- l > 0 && (this.dropdownOffset += r);
2614
- const f = n - this.dropdownOffset, d = u.getBoundingClientRect().width;
2615
- let _ = l === t.length - 1 ? f : f - s - r;
2616
- if (l === 0 || l === 1) {
2617
- let c;
2618
- switch (a) {
2645
+ const a = this.buildPriorityOrder(), u = a.length, l = this.activePromotedTab;
2646
+ for (const [h, c] of a.entries()) {
2647
+ const d = c === l, p = h > 0 ? i : 0, _ = r - this.dropdownOffset - p, f = c.getBoundingClientRect().width;
2648
+ let g = !this.shouldShowDropdown && h === u - 1 ? _ : _ - n - i;
2649
+ if (h === 0 || h === 1) {
2650
+ let b;
2651
+ switch (u) {
2619
2652
  case 1:
2620
- c = n;
2653
+ b = r;
2621
2654
  break;
2622
2655
  case 2:
2623
- c = (n - r) / 2;
2656
+ b = (r - i) / 2;
2624
2657
  break;
2625
2658
  default:
2626
- c = (n - s - 2 * r) / 2;
2659
+ b = (r - n - 2 * i) / 2;
2627
2660
  break;
2628
2661
  }
2629
- _ = l === 1 ? c + Math.max(0, c - this.tabs[0].getBoundingClientRect().width) : c;
2662
+ g = h === 1 ? b + Math.max(0, b - this.tabs[0].getBoundingClientRect().width) : b;
2630
2663
  }
2631
- let p = d > _;
2632
- if (l >= 2 && (p = p && _ > S.MIN_CLAMP_WIDTH), !this.shouldShowDropdown && p) {
2633
- u.style.setProperty("--tab-max-width", `${_}px`), u.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !1), this.dropdownOffset += _;
2664
+ let m = f > g;
2665
+ if (h >= 2 && (m = m && g > S.MIN_CLAMP_WIDTH), !s && m) {
2666
+ c.style.setProperty("--tab-max-width", `${g}px`), c.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !1), this.dropdownOffset += p + g;
2634
2667
  continue;
2635
2668
  }
2636
- this.shouldShowDropdown || d > _ ? (u.active && (this.isActiveTabHidden = !0), u.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !0), this.shouldShowDropdown = !0) : (u.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !1), this.dropdownOffset += u.getBoundingClientRect().width);
2669
+ s || f > g ? (c.active && (this.isActiveTabHidden = !0), c.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !0), this.shouldShowDropdown = !0, d || (s = !0)) : (c.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !1), this.dropdownOffset += p + c.getBoundingClientRect().width);
2637
2670
  }
2638
- this.dropdownOffset = Math.floor(this.dropdownOffset), this.dropdownOffset + s > n && (this.dropdownOffset = n - s), this.tabAlignment !== Ke.Start ? (this.tabAlignmentIndent = n - this.dropdownOffset - (this.shouldShowDropdown ? s : 0), this.tabAlignment === Ke.Center && (this.tabAlignmentIndent = Math.floor(this.tabAlignmentIndent / 2))) : this.tabAlignmentIndent = 0;
2671
+ this.dropdownOffset = Math.floor(this.dropdownOffset), this.dropdownOffset + n > r && (this.dropdownOffset = r - n), this.tabAlignment !== Ke.Start ? (this.tabAlignmentIndent = r - this.dropdownOffset - (this.shouldShowDropdown ? n : 0), this.tabAlignment === Ke.Center && (this.tabAlignmentIndent = Math.floor(this.tabAlignmentIndent / 2))) : this.tabAlignmentIndent = 0;
2639
2672
  },
2640
2673
  {
2641
2674
  root: this.nav,
@@ -2684,22 +2717,24 @@ let S = class extends Bn {
2684
2717
  * overflow variant is dropdown and the direction is rtl
2685
2718
  */
2686
2719
  syncScrollPosition() {
2687
- this.overflowVariant === Tt.Dropdown && this.nav && (this.localize.dir() === "rtl" ? this.nav.scrollLeft = this.nav.scrollWidth : this.nav.scrollLeft = 0);
2720
+ this.overflowVariant === wt.Dropdown && this.nav && (this.localize.dir() === "rtl" ? this.nav.scrollLeft = this.nav.scrollWidth : this.nav.scrollLeft = 0);
2688
2721
  }
2722
+ /** Finds the next non-disabled, non-hidden tab, falling back to the first hidden one crossed. */
2689
2723
  findNextFocusableTab(o, t) {
2690
- let e = null;
2691
- const i = t === "forward" ? 1 : -1;
2692
- let r = o + i;
2724
+ const e = t === "forward" ? 1 : -1;
2725
+ let i = o + e, r = null;
2693
2726
  for (; o < this.tabs.length; ) {
2694
- if (e = this.tabs[r] || null, e === null) {
2695
- t === "forward" ? e = this.focusableTabs[0] : e = this.focusableTabs[this.focusableTabs.length - 1];
2696
- break;
2727
+ const n = this.tabs[i] || null;
2728
+ if (n === null)
2729
+ return r || (t === "forward" ? this.focusableTabs[0] : this.focusableTabs[this.focusableTabs.length - 1]);
2730
+ if (!n.disabled) {
2731
+ if (!n.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE))
2732
+ return n;
2733
+ r ??= n;
2697
2734
  }
2698
- if (!e.disabled)
2699
- break;
2700
- r += i;
2735
+ i += e;
2701
2736
  }
2702
- return e;
2737
+ return null;
2703
2738
  }
2704
2739
  handleScrollEnd() {
2705
2740
  this.updateScrollButtons();
@@ -2723,7 +2758,7 @@ let S = class extends Bn {
2723
2758
  await this.updateComplete;
2724
2759
  const o = this.clampedTabsPerPage > 0 ? this.clampedTabsPerPage : this.tabsPerPage, t = this.tabs.length - this.activePaginationIndex * o;
2725
2760
  this.tabs.forEach((e, i) => {
2726
- this.variant === ue.Timeline && o === 1 ? e.single = !0 : e.single = !1, i === 0 ? e.first = !0 : e.first = !1, i === this.tabs.length - 1 ? e.last = !0 : e.last = !1;
2761
+ this.variant === he.Timeline && o === 1 ? e.single = !0 : e.single = !1, i === 0 ? e.first = !0 : e.first = !1, i === this.tabs.length - 1 ? e.last = !0 : e.last = !1;
2727
2762
  let r = o > 0 ? i % o : i;
2728
2763
  if (o > 0 && t < o) {
2729
2764
  const n = o - t;
@@ -2738,6 +2773,9 @@ let S = class extends Bn {
2738
2773
  handleDropdownLabelChange() {
2739
2774
  this.syncTabsAndPanels();
2740
2775
  }
2776
+ handlePromoteActiveOverflowTabChange() {
2777
+ this.promoteActiveOverflowTab ? this.activeTab && this.promoteHiddenActiveTab(this.activeTab) : this.promotedTab = void 0, this.syncTabsAndPanels();
2778
+ }
2741
2779
  handleAbsoluteHeightChange() {
2742
2780
  if (this.hidePanelVariant === Ut.Absolute)
2743
2781
  this.setupPanelResizeObserver(), this.calculateTabPanelHeight();
@@ -2776,22 +2814,22 @@ let S = class extends Bn {
2776
2814
  /** Shows the specified tab panel. */
2777
2815
  show(o) {
2778
2816
  const t = this.tabs.find((e) => e.panel === o);
2779
- t && this.setActiveTab(t, { scrollBehavior: "smooth" });
2817
+ t && (this.promoteHiddenActiveTab(t), this.setActiveTab(t, { scrollBehavior: "smooth" }), this.isActiveTabHidden = t.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE));
2780
2818
  }
2781
2819
  handleNavContainerResize() {
2782
2820
  const o = this.container.clientWidth, t = this.tabButtons.clientWidth;
2783
- this.shouldIgnoreAlignment = o < t, this.overflowVariant === Tt.Dropdown && (this.syncTabsAndPanels(), this.syncScrollPosition()), this.overflowVariant === Tt.Pagination && this.updatePagination();
2821
+ this.shouldIgnoreAlignment = o < t, this.overflowVariant === wt.Dropdown && (this.syncTabsAndPanels(), this.syncScrollPosition()), this.overflowVariant === wt.Pagination && this.updatePagination();
2784
2822
  }
2785
2823
  handleIndicatorResize(o) {
2786
2824
  o.stopPropagation(), this.syncIndicator(), this.updatePagination();
2787
2825
  }
2788
2826
  /** Guard for dropdown variant */
2789
2827
  getDropdownStyle() {
2790
- const o = this.localize.dir() === "rtl", t = this.tabButtons ? getComputedStyle(this.tabButtons) : void 0, e = Number.parseFloat(
2791
- (o ? t?.paddingRight : t?.paddingLeft) || "0"
2792
- );
2828
+ const o = this.localize.dir() === "rtl";
2793
2829
  return Ve({
2794
- [o ? "right" : "left"]: `${this.dropdownOffset + e}px`
2830
+ [o ? "right" : "left"]: `${this.dropdownOffset + this.tabButtonsLeadingPadding}px`,
2831
+ bottom: `${this.tabButtonsPaddingBottom}px`,
2832
+ top: `${this.tabButtonsPaddingTop}px`
2795
2833
  });
2796
2834
  }
2797
2835
  getDropdownPlacement() {
@@ -2832,19 +2870,19 @@ let S = class extends Bn {
2832
2870
  })} role="tab" type="button" aria-selected=${o === this.activePaginationIndex ? "true" : "false"} aria-label=${this.localize.term("slideNum", t)} tabindex="0" data-index=${o} @click=${this.handlePaginationDotClick} @keydown=${this.handlePaginationDotKeyDown}></button>`;
2833
2871
  }
2834
2872
  render() {
2835
- const o = this.localize.dir() === "rtl", t = this.allowDropdownOverflow && this.isActiveTabHidden, e = this.overflowVariant === Tt.Pagination && this.paginationCount > 1 && Number.isFinite(this.paginationCount);
2873
+ const o = this.localize.dir() === "rtl", t = this.allowDropdownOverflow && this.isActiveTabHidden, e = this.overflowVariant === wt.Pagination && this.paginationCount > 1 && Number.isFinite(this.paginationCount);
2836
2874
  return Nt`<div part="base" class=${Lt({
2837
2875
  "tab-group": !0,
2838
2876
  "tab-group--bottom": this.placement === "bottom",
2839
2877
  "tab-group--end": this.placement === "end",
2840
2878
  "tab-group--has-hidden-tabs": this.allowDropdownOverflow && this.shouldShowDropdown,
2841
- "tab-group--has-scroll-controls": this.hasScrollControls && this.overflowVariant !== Tt.Dropdown,
2879
+ "tab-group--has-scroll-controls": this.hasScrollControls && this.overflowVariant !== wt.Dropdown,
2842
2880
  "tab-group--rtl": o,
2843
2881
  "tab-group--start": this.placement === "start",
2844
2882
  "tab-group--top": this.placement === "top",
2845
2883
  [`tab-group--${this.variant}`]: !0
2846
2884
  })} @click=${this.handleClick} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleNavContainerResize}><div class="tab-group__nav-container" part="nav">${Pe(
2847
- this.overflowVariant === Tt.Scroll && this.hasScrollControls,
2885
+ this.overflowVariant === wt.Scroll && this.hasScrollControls,
2848
2886
  () => Nt`<cx-icon-button part="scroll-button scroll-button--start" exportparts="base:scroll-button__base" class=${Lt({
2849
2887
  "tab-group__scroll-button": !0,
2850
2888
  "tab-group__scroll-button--start": !0,
@@ -2852,10 +2890,10 @@ let S = class extends Bn {
2852
2890
  })} name=${o ? "chevron_right" : "chevron_left"} tabindex="-1" aria-hidden="true" label=${this.localize.term("scrollToStart")} @click=${this.handleScrollToStart}></cx-icon-button>`
2853
2891
  )}<div part="tab-group" class="tab-group__nav" style=${Ve({
2854
2892
  "--min-tab-width": `${this.minTabWidth}px`,
2855
- justifyContent: this.overflowVariant === Tt.Dropdown || this.shouldIgnoreAlignment ? "flex-start" : this.tabAlignment,
2893
+ justifyContent: this.overflowVariant === wt.Dropdown || this.shouldIgnoreAlignment ? "flex-start" : this.tabAlignment,
2856
2894
  transform: `translateX(${this.tabAlignmentIndent}px)`
2857
2895
  })} @scrollend=${this.handleScrollEnd}><div part="tabs" class="tab-group__tabs" role="tablist"><div part="active-tab-indicator" class="tab-group__indicator"></div>${Pe(
2858
- this.variant === ue.Timeline && this.clampedTabsPerPage > 1,
2896
+ this.variant === he.Timeline && this.clampedTabsPerPage > 1,
2859
2897
  () => Nt`<div class="timeline-line"></div>`
2860
2898
  )}<cx-resize-observer @cx-resize=${this.handleIndicatorResize}><slot name="nav" @slotchange=${this.syncTabsAndPanels} style=${Ve(this.tabWidth > 0 ? {
2861
2899
  "--width": `${this.tabWidth}px`
@@ -2864,12 +2902,18 @@ let S = class extends Bn {
2864
2902
  () => Nt`<cx-dropdown class=${Lt({
2865
2903
  "tab-group__dropdown": !0
2866
2904
  })} style=${Ji(
2867
- [o, this.dropdownOffset],
2905
+ [
2906
+ o,
2907
+ this.dropdownOffset,
2908
+ this.tabButtonsLeadingPadding,
2909
+ this.tabButtonsPaddingTop,
2910
+ this.tabButtonsPaddingBottom
2911
+ ],
2868
2912
  () => this.getDropdownStyle()
2869
2913
  )} placement=${Ji(
2870
2914
  [this.placement, o],
2871
2915
  () => this.getDropdownPlacement()
2872
- )} hoist ?disabled=${!this.shouldShowDropdown} ignored-keys="ArrowUp ArrowDown Home" @cx-after-show=${this.handleDropdownAfterShow}><cx-button slot="trigger" tabindex="-1" variant="custom" caret caret-direction=${this.caretDirection} class=${Lt({
2916
+ )} hoist ?disabled=${!this.shouldShowDropdown} ignored-keys="ArrowUp ArrowDown Home" @cx-after-show=${this.handleDropdownAfterShow}><cx-button slot="trigger" tabindex="-1" variant="custom" size="custom" caret caret-direction=${this.caretDirection} class=${Lt({
2873
2917
  "tab-group__dropdown__trigger": !0,
2874
2918
  "tab-group__dropdown__trigger--active": t,
2875
2919
  "tab-group__dropdown__trigger--hidden": !this.shouldShowDropdown
@@ -2886,7 +2930,7 @@ let S = class extends Bn {
2886
2930
  })} aria-active=${i.ariaSelected} aria-disabled=${i.ariaDisabled} ?active=${i.active} ?disabled=${i.disabled} data-panel=${i.panel}>${i.textContent}</cx-menu-item>`
2887
2931
  )}</cx-menu></cx-dropdown>`
2888
2932
  )}</cx-resize-observer></div></div>${Pe(
2889
- this.overflowVariant === Tt.Scroll && this.hasScrollControls,
2933
+ this.overflowVariant === wt.Scroll && this.hasScrollControls,
2890
2934
  () => Nt`<cx-icon-button part="scroll-button scroll-button--end" exportparts="base:scroll-button__base" class=${Lt({
2891
2935
  "tab-group__scroll-button": !0,
2892
2936
  "tab-group__scroll-button--end": !0,
@@ -2904,165 +2948,180 @@ let S = class extends Bn {
2904
2948
  )}</div>`;
2905
2949
  }
2906
2950
  };
2907
- S.styles = [Fn, Co];
2951
+ S.styles = [Fn, Oo];
2908
2952
  S.dependencies = {
2909
2953
  "cx-button": Yn,
2910
2954
  "cx-dropdown": Xn,
2911
- "cx-icon-button": qn,
2912
- "cx-menu": Gn,
2955
+ "cx-icon-button": Gn,
2956
+ "cx-menu": qn,
2913
2957
  "cx-menu-item": Kn,
2914
2958
  "cx-resize-observer": zn,
2915
2959
  "cx-tab": jn
2916
2960
  };
2917
2961
  S.MIN_CLAMP_WIDTH = 100;
2918
2962
  S.HIDDEN_TAB_ATTRIBUTE = "data-cx-tab-group__tab--hidden";
2919
- k([
2963
+ O([
2920
2964
  zt(".tab-group")
2921
2965
  ], S.prototype, "tabGroup", 2);
2922
- k([
2966
+ O([
2923
2967
  zt(".tab-group__body")
2924
2968
  ], S.prototype, "body", 2);
2925
- k([
2969
+ O([
2926
2970
  zt(".tab-group__nav-container")
2927
2971
  ], S.prototype, "container", 2);
2928
- k([
2972
+ O([
2929
2973
  zt(".tab-group__nav")
2930
2974
  ], S.prototype, "nav", 2);
2931
- k([
2975
+ O([
2932
2976
  zt(".tab-group__indicator")
2933
2977
  ], S.prototype, "indicator", 2);
2934
- k([
2978
+ O([
2935
2979
  zt(".tab-group__dropdown")
2936
2980
  ], S.prototype, "dropdown", 2);
2937
- k([
2981
+ O([
2938
2982
  zt(".tab-group__dropdown__menu")
2939
2983
  ], S.prototype, "menu", 2);
2940
- k([
2984
+ O([
2941
2985
  zt(".tab-group__tabs")
2942
2986
  ], S.prototype, "tabButtons", 2);
2943
- k([
2987
+ O([
2944
2988
  zt(".tab-group__dropdown__trigger")
2945
2989
  ], S.prototype, "dropdownTrigger", 2);
2946
- k([
2947
- Hn(".tab-pagination__dot")
2990
+ O([
2991
+ Wn(".tab-pagination__dot")
2948
2992
  ], S.prototype, "allDots", 2);
2949
- k([
2950
- at()
2993
+ O([
2994
+ q()
2951
2995
  ], S.prototype, "activeTab", 2);
2952
- k([
2953
- at()
2996
+ O([
2997
+ q()
2954
2998
  ], S.prototype, "hasScrollControls", 2);
2955
- k([
2956
- at()
2999
+ O([
3000
+ q()
2957
3001
  ], S.prototype, "shouldHideScrollStartButton", 2);
2958
- k([
2959
- at()
3002
+ O([
3003
+ q()
2960
3004
  ], S.prototype, "shouldHideScrollEndButton", 2);
2961
- k([
2962
- at()
3005
+ O([
3006
+ q()
2963
3007
  ], S.prototype, "dropdownOffset", 2);
2964
- k([
2965
- at()
3008
+ O([
3009
+ q()
3010
+ ], S.prototype, "tabButtonsLeadingPadding", 2);
3011
+ O([
3012
+ q()
3013
+ ], S.prototype, "tabButtonsPaddingTop", 2);
3014
+ O([
3015
+ q()
3016
+ ], S.prototype, "tabButtonsPaddingBottom", 2);
3017
+ O([
3018
+ q()
2966
3019
  ], S.prototype, "tabPanelHeight", 2);
2967
- k([
2968
- at()
3020
+ O([
3021
+ q()
2969
3022
  ], S.prototype, "tabAlignmentIndent", 2);
2970
- k([
2971
- at()
3023
+ O([
3024
+ q()
2972
3025
  ], S.prototype, "shouldIgnoreAlignment", 2);
2973
- k([
2974
- at()
3026
+ O([
3027
+ q()
2975
3028
  ], S.prototype, "shouldShowDropdown", 2);
2976
- k([
2977
- at()
3029
+ O([
3030
+ q()
2978
3031
  ], S.prototype, "isActiveTabHidden", 2);
2979
- k([
2980
- at()
3032
+ O([
3033
+ q()
2981
3034
  ], S.prototype, "paginationCount", 2);
2982
- k([
2983
- at()
3035
+ O([
3036
+ q()
2984
3037
  ], S.prototype, "activePaginationIndex", 2);
2985
- k([
2986
- at()
3038
+ O([
3039
+ q()
2987
3040
  ], S.prototype, "tabWidth", 2);
2988
- k([
2989
- at()
3041
+ O([
3042
+ q()
2990
3043
  ], S.prototype, "clampedTabsPerPage", 2);
2991
- k([
2992
- wt()
3044
+ O([
3045
+ gt()
2993
3046
  ], S.prototype, "placement", 2);
2994
- k([
2995
- wt()
3047
+ O([
3048
+ gt()
2996
3049
  ], S.prototype, "activation", 2);
2997
- k([
2998
- wt({ attribute: "no-scroll-controls", type: Boolean })
3050
+ O([
3051
+ gt({ attribute: "no-scroll-controls", type: Boolean })
2999
3052
  ], S.prototype, "noScrollControls", 2);
3000
- k([
3001
- wt({ attribute: "fixed-scroll-controls", type: Boolean })
3053
+ O([
3054
+ gt({ attribute: "fixed-scroll-controls", type: Boolean })
3002
3055
  ], S.prototype, "fixedScrollControls", 2);
3003
- k([
3004
- wt({ attribute: "use-max-panel-height", type: Boolean })
3056
+ O([
3057
+ gt({ attribute: "use-max-panel-height", type: Boolean })
3005
3058
  ], S.prototype, "useMaxPanelHeight", 2);
3006
- k([
3007
- wt({ reflect: !0, type: String })
3059
+ O([
3060
+ gt({ reflect: !0, type: String })
3008
3061
  ], S.prototype, "variant", 2);
3009
- k([
3010
- wt({ attribute: "overflow-variant", reflect: !0, type: String })
3062
+ O([
3063
+ gt({ attribute: "overflow-variant", reflect: !0, type: String })
3011
3064
  ], S.prototype, "overflowVariant", 2);
3012
- k([
3013
- wt({ attribute: "hide-panel-variant", reflect: !0, type: String })
3065
+ O([
3066
+ gt({ attribute: "hide-panel-variant", reflect: !0, type: String })
3014
3067
  ], S.prototype, "hidePanelVariant", 2);
3015
- k([
3016
- wt({ attribute: "tab-alignment", reflect: !0, type: String })
3068
+ O([
3069
+ gt({ attribute: "tab-alignment", reflect: !0, type: String })
3017
3070
  ], S.prototype, "tabAlignment", 2);
3018
- k([
3019
- wt({ attribute: "dropdown-label", type: String })
3071
+ O([
3072
+ gt({ attribute: "dropdown-label", type: String })
3020
3073
  ], S.prototype, "dropdownLabel", 2);
3021
- k([
3022
- wt({ attribute: "tabs-per-page", type: Number })
3074
+ O([
3075
+ gt({ attribute: "tabs-per-page", type: Number })
3023
3076
  ], S.prototype, "tabsPerPage", 2);
3024
- k([
3025
- wt({ attribute: "min-tab-width", type: Number })
3077
+ O([
3078
+ gt({ attribute: "min-tab-width", type: Number })
3026
3079
  ], S.prototype, "minTabWidth", 2);
3027
- k([
3080
+ O([
3081
+ gt({ attribute: "promote-active-overflow-tab", type: Boolean })
3082
+ ], S.prototype, "promoteActiveOverflowTab", 2);
3083
+ O([
3028
3084
  Vn({ passive: !0 })
3029
3085
  ], S.prototype, "handleScrollEnd", 1);
3030
- k([
3031
- ft("noScrollControls", { waitUntilFirstUpdate: !0 })
3086
+ O([
3087
+ rt("noScrollControls", { waitUntilFirstUpdate: !0 })
3032
3088
  ], S.prototype, "updateScrollControls", 1);
3033
- k([
3034
- ft("placement", { waitUntilFirstUpdate: !0 })
3089
+ O([
3090
+ rt("placement", { waitUntilFirstUpdate: !0 })
3035
3091
  ], S.prototype, "syncIndicator", 1);
3036
- k([
3037
- ft("variant", { waitUntilFirstUpdate: !0 }),
3038
- ft("activePaginationIndex", { waitUntilFirstUpdate: !0 }),
3039
- ft("clampedTabsPerPage")
3092
+ O([
3093
+ rt("variant", { waitUntilFirstUpdate: !0 }),
3094
+ rt("activePaginationIndex", { waitUntilFirstUpdate: !0 }),
3095
+ rt("clampedTabsPerPage")
3040
3096
  ], S.prototype, "handleVariantChange", 1);
3041
- k([
3042
- ft("overflowVariant", { waitUntilFirstUpdate: !0 })
3097
+ O([
3098
+ rt("overflowVariant", { waitUntilFirstUpdate: !0 })
3043
3099
  ], S.prototype, "handleOverflowVariantChange", 1);
3044
- k([
3045
- ft("dropdownLabel", { waitUntilFirstUpdate: !0 })
3100
+ O([
3101
+ rt("dropdownLabel", { waitUntilFirstUpdate: !0 })
3046
3102
  ], S.prototype, "handleDropdownLabelChange", 1);
3047
- k([
3048
- ft("hidePanelVariant", { waitUntilFirstUpdate: !0 }),
3049
- ft("useMaxPanelHeight", { waitUntilFirstUpdate: !0 })
3103
+ O([
3104
+ rt("promoteActiveOverflowTab", { waitUntilFirstUpdate: !0 })
3105
+ ], S.prototype, "handlePromoteActiveOverflowTabChange", 1);
3106
+ O([
3107
+ rt("hidePanelVariant", { waitUntilFirstUpdate: !0 }),
3108
+ rt("useMaxPanelHeight", { waitUntilFirstUpdate: !0 })
3050
3109
  ], S.prototype, "handleAbsoluteHeightChange", 1);
3051
- k([
3052
- ft("tabAlignment", { waitUntilFirstUpdate: !0 })
3110
+ O([
3111
+ rt("tabAlignment", { waitUntilFirstUpdate: !0 })
3053
3112
  ], S.prototype, "handleTabAlignmentChange", 1);
3054
- k([
3055
- ft("tabsPerPage", { waitUntilFirstUpdate: !0 }),
3056
- ft("clampedTabsPerPage", { waitUntilFirstUpdate: !0 }),
3057
- ft("minTabWidth", { waitUntilFirstUpdate: !0 })
3113
+ O([
3114
+ rt("tabsPerPage", { waitUntilFirstUpdate: !0 }),
3115
+ rt("clampedTabsPerPage", { waitUntilFirstUpdate: !0 }),
3116
+ rt("minTabWidth", { waitUntilFirstUpdate: !0 })
3058
3117
  ], S.prototype, "handleTabsPerPageChange", 1);
3059
- S = k([
3118
+ S = O([
3060
3119
  Nn("cx-tab-group")
3061
3120
  ], S);
3062
3121
  export {
3063
3122
  S as C,
3064
3123
  Ke as T,
3065
- Tt as a,
3124
+ wt as a,
3066
3125
  Ut as b,
3067
3126
  ie as g
3068
3127
  };