@dss-kit/ui-kit 0.1.5 → 0.1.7

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 (58) hide show
  1. package/README.md +21 -21
  2. package/dist/components/builders/Box/Box.d.ts.map +1 -1
  3. package/dist/components/builders/Loader/Loader.d.ts.map +1 -1
  4. package/dist/components/builders/Modal/Modal.d.ts.map +1 -1
  5. package/dist/components/builders/Modal/Modal.stories.d.ts.map +1 -1
  6. package/dist/components/builders/Modal/ModalFooter/ModalFooter.d.ts.map +1 -1
  7. package/dist/components/builders/Modal/ModalHeader/ModalHeader.d.ts.map +1 -1
  8. package/dist/components/builders/Modal/ModalMain/ModalMain.d.ts +1 -1
  9. package/dist/components/builders/Modal/ModalMain/ModalMain.d.ts.map +1 -1
  10. package/dist/components/builders/Modal/index.d.ts.map +1 -1
  11. package/dist/components/builders/Ripple/Ripple.d.ts.map +1 -1
  12. package/dist/components/builders/Text/Text.d.ts.map +1 -1
  13. package/dist/components/builders/Text/Text.stories.d.ts.map +1 -1
  14. package/dist/components/builders/Text/utils/systemToClass.d.ts +1 -0
  15. package/dist/components/builders/Text/utils/systemToClass.d.ts.map +1 -1
  16. package/dist/components/controls/Button/Button.d.ts +1 -1
  17. package/dist/components/controls/Button/Button.d.ts.map +1 -1
  18. package/dist/components/controls/Button/styles.d.ts.map +1 -1
  19. package/dist/components/controls/Button/types.d.ts.map +1 -1
  20. package/dist/components/controls/Checkbox/Checkbox.d.ts.map +1 -1
  21. package/dist/components/controls/IconButton/IconButton.stories.d.ts.map +1 -1
  22. package/dist/components/controls/IconButton/IconButton.types.d.ts +1 -1
  23. package/dist/components/controls/IconButton/IconButton.types.d.ts.map +1 -1
  24. package/dist/components/controls/Input/Input.d.ts.map +1 -1
  25. package/dist/components/controls/Input/Input.stories.d.ts.map +1 -1
  26. package/dist/components/controls/Select/Select.d.ts.map +1 -1
  27. package/dist/components/controls/Select/Select.stories.d.ts.map +1 -1
  28. package/dist/components/controls/Switch/Switch.d.ts.map +1 -1
  29. package/dist/components/controls/Switch/Switch.stories.d.ts.map +1 -1
  30. package/dist/components/shared/Avatar/Avatar.stories.d.ts.map +1 -1
  31. package/dist/components/shared/Hint/Hint.d.ts.map +1 -1
  32. package/dist/components/shared/Hint/Hint.stories.d.ts.map +1 -1
  33. package/dist/components/shared/Portal/Portal.d.ts.map +1 -1
  34. package/dist/components/shared/Tag/Tag.d.ts.map +1 -1
  35. package/dist/components/shared/Tag/Tag.stories.d.ts.map +1 -1
  36. package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.d.ts +1 -1
  37. package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.d.ts.map +1 -1
  38. package/dist/root.css +1 -1
  39. package/dist/styles/utils/breakpoints/base.scss +11 -11
  40. package/dist/styles/utils/breakpoints/index.scss +3 -3
  41. package/dist/styles/utils/breakpoints/screen.scss +61 -61
  42. package/dist/styles/utils/breakpoints/semantic.scss +31 -31
  43. package/dist/styles/utils/fonts/font-family.scss +3 -3
  44. package/dist/styles/utils/fonts/index.scss +1 -1
  45. package/dist/styles/utils/index.scss +5 -5
  46. package/dist/styles/utils/size/index.scss +1 -1
  47. package/dist/styles/utils/size/modifiers.scss +29 -29
  48. package/dist/styles/utils/style/index.scss +1 -1
  49. package/dist/styles/utils/style/variants.scss +34 -34
  50. package/dist/styles/utils/typography/_font-weight.scss +33 -33
  51. package/dist/styles/utils/typography/_variants.scss +85 -85
  52. package/dist/styles/utils/typography/index.scss +2 -2
  53. package/dist/ui-kit.cjs.js +5 -5
  54. package/dist/ui-kit.cjs.js.map +1 -1
  55. package/dist/ui-kit.css +1 -1
  56. package/dist/ui-kit.es.js +1269 -1091
  57. package/dist/ui-kit.es.js.map +1 -1
  58. package/package.json +69 -80
package/dist/ui-kit.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { jsx as b, jsxs as L, Fragment as Ze } from "react/jsx-runtime";
1
+ import { jsx as x, jsxs as L, Fragment as Ze } from "react/jsx-runtime";
2
2
  import * as A from "react";
3
- import { forwardRef as ht, useMemo as K, useRef as H, useState as wt, useCallback as bt, useImperativeHandle as Je, useEffect as xt, useLayoutEffect as br, createContext as ne, useId as Qn, useContext as J, useInsertionEffect as wr, Children as _r, isValidElement as Ta, Fragment as Tr, createElement as Sa, Component as Ca } from "react";
3
+ import { forwardRef as dt, useMemo as U, useRef as H, useState as _t, useCallback as wt, useImperativeHandle as Je, useEffect as bt, useLayoutEffect as xr, createContext as ne, useId as Qn, useContext as J, useInsertionEffect as wr, Children as _r, isValidElement as Ta, Fragment as Tr, createElement as Sa, Component as Ca } from "react";
4
4
  import { createPortal as Pa, flushSync as Ea } from "react-dom";
5
5
  function Ma(t) {
6
6
  if (t.sheet)
@@ -195,26 +195,26 @@ function Ua(t) {
195
195
  return Ar(Ne("", null, null, null, [""], t = Mr(t), 0, [0], t));
196
196
  }
197
197
  function Ne(t, e, n, i, s, r, o, a, l) {
198
- for (var u = 0, c = 0, h = o, d = 0, f = 0, p = 0, m = 1, v = 1, y = 1, x = 0, g = "", w = s, T = r, C = i, _ = g; v; )
199
- switch (p = x, x = rt()) {
198
+ for (var u = 0, c = 0, h = o, d = 0, f = 0, g = 0, m = 1, v = 1, y = 1, b = 0, p = "", w = s, T = r, C = i, _ = p; v; )
199
+ switch (g = b, b = rt()) {
200
200
  // (
201
201
  case 40:
202
- if (p != 108 && X(_, h - 1) == 58) {
203
- An(_ += R(Be(x), "&", "&\f"), "&\f") != -1 && (y = -1);
202
+ if (g != 108 && X(_, h - 1) == 58) {
203
+ An(_ += R(Be(b), "&", "&\f"), "&\f") != -1 && (y = -1);
204
204
  break;
205
205
  }
206
206
  // " ' [
207
207
  case 34:
208
208
  case 39:
209
209
  case 91:
210
- _ += Be(x);
210
+ _ += Be(b);
211
211
  break;
212
212
  // \t \n \r \s
213
213
  case 9:
214
214
  case 10:
215
215
  case 13:
216
216
  case 32:
217
- _ += $a(p);
217
+ _ += $a(g);
218
218
  break;
219
219
  // \
220
220
  case 92:
@@ -238,7 +238,7 @@ function Ne(t, e, n, i, s, r, o, a, l) {
238
238
  case 125 * m:
239
239
  case 59:
240
240
  case 0:
241
- switch (x) {
241
+ switch (b) {
242
242
  // \0 }
243
243
  case 0:
244
244
  case 125:
@@ -252,7 +252,7 @@ function Ne(t, e, n, i, s, r, o, a, l) {
252
252
  _ += ";";
253
253
  // { rule/at-rule
254
254
  default:
255
- if (Ve(C = zi(_, e, n, u, c, s, a, g, w = [], T = [], h), r), x === 123)
255
+ if (Ve(C = zi(_, e, n, u, c, s, a, p, w = [], T = [], h), r), b === 123)
256
256
  if (c === 0)
257
257
  Ne(_, e, C, C, w, r, h, a, T);
258
258
  else
@@ -262,25 +262,25 @@ function Ne(t, e, n, i, s, r, o, a, l) {
262
262
  case 108:
263
263
  case 109:
264
264
  case 115:
265
- Ne(t, C, C, i && Ve(zi(t, C, C, 0, 0, s, a, g, s, w = [], h), T), s, T, h, a, i ? w : T);
265
+ Ne(t, C, C, i && Ve(zi(t, C, C, 0, 0, s, a, p, s, w = [], h), T), s, T, h, a, i ? w : T);
266
266
  break;
267
267
  default:
268
268
  Ne(_, C, C, C, [""], T, 0, a, T);
269
269
  }
270
270
  }
271
- u = c = f = 0, m = y = 1, g = _ = "", h = o;
271
+ u = c = f = 0, m = y = 1, p = _ = "", h = o;
272
272
  break;
273
273
  // :
274
274
  case 58:
275
- h = 1 + gt(_), f = p;
275
+ h = 1 + gt(_), f = g;
276
276
  default:
277
277
  if (m < 1) {
278
- if (x == 123)
278
+ if (b == 123)
279
279
  --m;
280
- else if (x == 125 && m++ == 0 && Fa() == 125)
280
+ else if (b == 125 && m++ == 0 && Fa() == 125)
281
281
  continue;
282
282
  }
283
- switch (_ += Qe(x), x * m) {
283
+ switch (_ += Qe(b), b * m) {
284
284
  // &
285
285
  case 38:
286
286
  y = c > 0 ? 1 : (_ += "\f", -1);
@@ -291,19 +291,19 @@ function Ne(t, e, n, i, s, r, o, a, l) {
291
291
  break;
292
292
  // @
293
293
  case 64:
294
- yt() === 45 && (_ += Be(rt())), d = yt(), c = h = gt(g = _ += Wa(Ie())), x++;
294
+ yt() === 45 && (_ += Be(rt())), d = yt(), c = h = gt(p = _ += Wa(Ie())), b++;
295
295
  break;
296
296
  // -
297
297
  case 45:
298
- p === 45 && gt(_) == 2 && (m = 0);
298
+ g === 45 && gt(_) == 2 && (m = 0);
299
299
  }
300
300
  }
301
301
  return r;
302
302
  }
303
303
  function zi(t, e, n, i, s, r, o, a, l, u, c) {
304
- for (var h = s - 1, d = s === 0 ? r : [""], f = ni(d), p = 0, m = 0, v = 0; p < i; ++p)
305
- for (var y = 0, x = ye(t, h + 1, h = Da(m = o[p])), g = t; y < f; ++y)
306
- (g = Pr(m > 0 ? d[y] + " " + x : R(x, /&\f/g, d[y]))) && (l[v++] = g);
304
+ for (var h = s - 1, d = s === 0 ? r : [""], f = ni(d), g = 0, m = 0, v = 0; g < i; ++g)
305
+ for (var y = 0, b = ye(t, h + 1, h = Da(m = o[g])), p = t; y < f; ++y)
306
+ (p = Pr(m > 0 ? d[y] + " " + b : R(b, /&\f/g, d[y]))) && (l[v++] = p);
307
307
  return en(t, e, n, s === 0 ? ti : a, l, u, c);
308
308
  }
309
309
  function Ka(t, e, n) {
@@ -600,11 +600,11 @@ var el = function(e, n, i, s) {
600
600
  })], d = Ha(u.concat(s, h)), f = function(v) {
601
601
  return Zt(Ua(v), d);
602
602
  };
603
- l = function(v, y, x, g) {
604
- c = x, f(v ? v + "{" + y.styles + "}" : y.styles), g && (p.inserted[y.name] = !0);
603
+ l = function(v, y, b, p) {
604
+ c = b, f(v ? v + "{" + y.styles + "}" : y.styles), p && (g.inserted[y.name] = !0);
605
605
  };
606
606
  }
607
- var p = {
607
+ var g = {
608
608
  key: n,
609
609
  sheet: new Va({
610
610
  key: n,
@@ -619,7 +619,7 @@ var el = function(e, n, i, s) {
619
619
  registered: {},
620
620
  insert: l
621
621
  };
622
- return p.sheet.hydrate(a), p;
622
+ return g.sheet.hydrate(a), g;
623
623
  };
624
624
  function sl(t) {
625
625
  for (var e = 0, n, i = 0, s = t.length; s >= 4; ++i, s -= 4)
@@ -701,10 +701,10 @@ var rl = {
701
701
  case "animationName":
702
702
  if (typeof n == "string")
703
703
  return n.replace(al, function(i, s, r) {
704
- return Et = {
704
+ return Mt = {
705
705
  name: s,
706
706
  styles: r,
707
- next: Et
707
+ next: Mt
708
708
  }, s;
709
709
  });
710
710
  }
@@ -722,20 +722,20 @@ function Ue(t, e, n) {
722
722
  case "object": {
723
723
  var s = n;
724
724
  if (s.anim === 1)
725
- return Et = {
725
+ return Mt = {
726
726
  name: s.name,
727
727
  styles: s.styles,
728
- next: Et
728
+ next: Mt
729
729
  }, s.name;
730
730
  var r = n;
731
731
  if (r.styles !== void 0) {
732
732
  var o = r.next;
733
733
  if (o !== void 0)
734
734
  for (; o !== void 0; )
735
- Et = {
735
+ Mt = {
736
736
  name: o.name,
737
737
  styles: o.styles,
738
- next: Et
738
+ next: Mt
739
739
  }, o = o.next;
740
740
  var a = r.styles + ";";
741
741
  return a;
@@ -778,12 +778,12 @@ function ll(t, e, n) {
778
778
  }
779
779
  return i;
780
780
  }
781
- var Gi = /label:\s*([^\s;{]+)\s*(;|$)/g, Et;
781
+ var Gi = /label:\s*([^\s;{]+)\s*(;|$)/g, Mt;
782
782
  function cn(t, e, n) {
783
783
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
784
784
  return t[0];
785
785
  var i = !0, s = "";
786
- Et = void 0;
786
+ Mt = void 0;
787
787
  var r = t[0];
788
788
  if (r == null || r.raw === void 0)
789
789
  i = !1, s += Ue(n, e, r);
@@ -803,7 +803,7 @@ function cn(t, e, n) {
803
803
  return {
804
804
  name: h,
805
805
  styles: s,
806
- next: Et
806
+ next: Mt
807
807
  };
808
808
  }
809
809
  function Rr(t, e, n) {
@@ -927,12 +927,12 @@ function fl(t) {
927
927
  px: h,
928
928
  py: d,
929
929
  pt: f,
930
- pr: p,
930
+ pr: g,
931
931
  pb: m,
932
932
  pl: v,
933
933
  xGap: y,
934
- yGap: x,
935
- row: g,
934
+ yGap: b,
935
+ row: p,
936
936
  flex: w,
937
937
  relative: T,
938
938
  absolute: C,
@@ -955,12 +955,12 @@ function fl(t) {
955
955
  px: h,
956
956
  py: d,
957
957
  pt: f,
958
- pr: p,
958
+ pr: g,
959
959
  pb: m,
960
960
  pl: v,
961
961
  xGap: y,
962
- yGap: x,
963
- row: g,
962
+ yGap: b,
963
+ row: p,
964
964
  flex: w,
965
965
  relative: T,
966
966
  absolute: C,
@@ -1015,13 +1015,14 @@ const ml = (t) => Q({
1015
1015
  bottom: 0,
1016
1016
  left: 0
1017
1017
  }
1018
- }), M = ht(
1018
+ }), M = dt(
1019
1019
  ({ className: t, children: e, ...n }, i) => {
1020
- const { spacers: s, rest: r } = fl(n), o = K(() => ml(s), [s]);
1021
- return /* @__PURE__ */ b("div", { ref: i, className: I(o, t), ...r, children: e });
1020
+ const { spacers: s, rest: r } = fl(n), o = U(() => ml(s), [s]);
1021
+ return /* @__PURE__ */ x("div", { ref: i, className: I(o, t), ...r, children: e });
1022
1022
  }
1023
1023
  );
1024
1024
  M.displayName = "Box";
1025
+ const Lr = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M18 6L6 18M6 6L18 18", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
1025
1026
  function pl(t) {
1026
1027
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1027
1028
  }
@@ -1065,11 +1066,11 @@ function gl() {
1065
1066
  })(un)), un.exports;
1066
1067
  }
1067
1068
  var yl = gl();
1068
- const It = /* @__PURE__ */ pl(yl), vl = "_rippleOverlay_s2kim_8", xl = "_ripple_s2kim_8", Xi = {
1069
+ const It = /* @__PURE__ */ pl(yl), vl = "_rippleOverlay_s2kim_8", bl = "_ripple_s2kim_8", Xi = {
1069
1070
  rippleOverlay: vl,
1070
- ripple: xl
1071
+ ripple: bl
1071
1072
  }, hn = "button, a, input, label, [role='button'], [data-ripple']";
1072
- function bl(t) {
1073
+ function xl(t) {
1073
1074
  if (typeof t.composedPath == "function") return t.composedPath();
1074
1075
  const e = [];
1075
1076
  let n = t.target;
@@ -1077,114 +1078,124 @@ function bl(t) {
1077
1078
  e.push(n), n = n.parentNode || n.host;
1078
1079
  return e.push(window), e;
1079
1080
  }
1080
- const nn = ht(({ color: t = "rgba(0,0,0,0.18)", duration: e = 1e3, radius: n = "auto", className: i }, s) => {
1081
- const r = H(null), [o, a] = wt([]), l = H([]), u = H(1), c = H(null), h = () => {
1082
- l.current.forEach((m) => clearTimeout(m)), l.current = [];
1083
- }, d = bt(
1084
- (m, v, y, x) => {
1085
- const g = y.getBoundingClientRect(), w = n === "auto" ? Math.max(g.width, g.height) * 2 : n, T = m - x.left, C = v - x.top, _ = Math.max(0, g.top - x.top), S = Math.max(0, g.left - x.left), E = Math.max(0, x.right - g.right), O = Math.max(0, x.bottom - g.bottom), kt = window.getComputedStyle(y).borderRadius || "0px", Rt = u.current++, Ct = {
1086
- id: Rt,
1087
- left: T - w / 2,
1088
- top: C - w / 2,
1089
- size: Math.ceil(w),
1090
- clip: {
1091
- top: Math.round(_),
1092
- right: Math.round(E),
1093
- bottom: Math.round(O),
1094
- left: Math.round(S)
1095
- },
1096
- borderRadius: kt
1097
- };
1098
- a((jt) => [...jt, Ct]);
1099
- const zt = window.setTimeout(() => {
1100
- a((jt) => jt.filter((z) => z.id !== Rt));
1101
- }, e + 80);
1102
- l.current.push(zt);
1103
- },
1104
- [e, n]
1105
- ), f = bt(
1106
- (m) => {
1107
- try {
1108
- if (!r.current) return;
1081
+ const nn = dt(
1082
+ ({ color: t = "rgba(0,0,0,0.18)", duration: e = 1e3, radius: n = "auto", className: i }, s) => {
1083
+ const r = H(null), [o, a] = _t([]), l = H([]), u = H(1), c = H(null), h = () => {
1084
+ l.current.forEach((m) => clearTimeout(m)), l.current = [];
1085
+ }, d = wt(
1086
+ (m, v, y, b) => {
1087
+ const p = y.getBoundingClientRect(), w = n === "auto" ? Math.max(p.width, p.height) * 2 : n, T = m - b.left, C = v - b.top, _ = Math.max(0, p.top - b.top), S = Math.max(0, p.left - b.left), E = Math.max(0, b.right - p.right), O = Math.max(0, b.bottom - p.bottom), xt = window.getComputedStyle(y).borderRadius || "0px", Rt = u.current++, Pt = {
1088
+ id: Rt,
1089
+ left: T - w / 2,
1090
+ top: C - w / 2,
1091
+ size: Math.ceil(w),
1092
+ clip: {
1093
+ top: Math.round(_),
1094
+ right: Math.round(E),
1095
+ bottom: Math.round(O),
1096
+ left: Math.round(S)
1097
+ },
1098
+ borderRadius: xt
1099
+ };
1100
+ a((jt) => [...jt, Pt]);
1101
+ const zt = window.setTimeout(() => {
1102
+ a((jt) => jt.filter((z) => z.id !== Rt));
1103
+ }, e + 80);
1104
+ l.current.push(zt);
1105
+ },
1106
+ [e, n]
1107
+ ), f = wt(
1108
+ (m) => {
1109
+ try {
1110
+ if (!r.current) return;
1111
+ const v = r.current, y = v.parentElement;
1112
+ if (!y) return;
1113
+ const b = xl(m);
1114
+ let p = null;
1115
+ for (const S of b)
1116
+ if (S instanceof Element) {
1117
+ if (S === y) break;
1118
+ if (S.matches && S.matches(hn)) {
1119
+ p = S;
1120
+ break;
1121
+ }
1122
+ }
1123
+ if (p || (p = y), p.closest && (p.closest("[disabled]") || p.getAttribute("aria-disabled") === "true" || p.classList.contains("ripple-disabled")))
1124
+ return;
1125
+ const w = m.target;
1126
+ if (w && w.closest && (w.closest("[disabled]") || w.getAttribute?.("aria-disabled") === "true"))
1127
+ return;
1128
+ const T = v.getBoundingClientRect(), { clientX: C } = m, { clientY: _ } = m;
1129
+ d(C, _, p, T);
1130
+ } catch {
1131
+ }
1132
+ },
1133
+ [d]
1134
+ ), g = wt(
1135
+ (m) => {
1136
+ if (!r.current || !(m.key === "Enter" || m.key === " ")) return;
1109
1137
  const v = r.current, y = v.parentElement;
1110
1138
  if (!y) return;
1111
- const x = bl(m);
1112
- let g = null;
1113
- for (const S of x)
1114
- if (S instanceof Element) {
1115
- if (S === y) break;
1116
- if (S.matches && S.matches(hn)) {
1117
- g = S;
1118
- break;
1119
- }
1120
- }
1121
- if (g || (g = y), g.closest && (g.closest("[disabled]") || g.getAttribute("aria-disabled") === "true" || g.classList.contains("ripple-disabled")))
1139
+ const b = document.activeElement;
1140
+ let p = null;
1141
+ if (b instanceof Element && b.matches(hn) && (p = b), p || (p = y), p.closest && (p.closest("[disabled]") || p.getAttribute("aria-disabled") === "true"))
1122
1142
  return;
1123
- const w = m.target;
1124
- if (w && w.closest && (w.closest("[disabled]") || w.getAttribute?.("aria-disabled") === "true"))
1125
- return;
1126
- const T = v.getBoundingClientRect(), { clientX: C } = m, { clientY: _ } = m;
1127
- d(C, _, g, T);
1128
- } catch {
1129
- }
1130
- },
1131
- [d]
1132
- ), p = bt(
1133
- (m) => {
1134
- if (!r.current || !(m.key === "Enter" || m.key === " ")) return;
1135
- const v = r.current, y = v.parentElement;
1136
- if (!y) return;
1137
- const x = document.activeElement;
1138
- let g = null;
1139
- if (x instanceof Element && x.matches(hn) && (g = x), g || (g = y), g.closest && (g.closest("[disabled]") || g.getAttribute("aria-disabled") === "true"))
1140
- return;
1141
- const w = v.getBoundingClientRect(), T = g.getBoundingClientRect().left + g.getBoundingClientRect().width / 2, C = g.getBoundingClientRect().top + g.getBoundingClientRect().height / 2;
1142
- d(T, C, g, w);
1143
- },
1144
- [d]
1145
- );
1146
- return Je(
1147
- s,
1148
- () => ({
1149
- trigger: ({ center: m = !0, x: v, y } = {}) => {
1150
- const x = r.current;
1151
- if (!x) return;
1152
- const g = x.parentElement;
1153
- if (!g) return;
1154
- const w = x.getBoundingClientRect(), T = document.activeElement instanceof Element && document.activeElement.matches(hn) ? document.activeElement : g, C = m ? T.getBoundingClientRect().left + T.getBoundingClientRect().width / 2 : v ?? w.left + w.width / 2, _ = m ? T.getBoundingClientRect().top + T.getBoundingClientRect().height / 2 : y ?? w.top + w.height / 2;
1155
- d(C, _, T, w);
1156
- }
1157
- }),
1158
- [d]
1159
- ), xt(() => {
1160
- const m = r.current;
1161
- if (!m) return;
1162
- const v = m.parentElement;
1163
- if (!v) return;
1164
- const y = window.getComputedStyle(v);
1165
- let x = !1;
1166
- return y.position === "static" && (v.style.position = "relative", x = !0, c.current = v), v.addEventListener("pointerdown", f, !0), v.addEventListener("keydown", p), () => {
1167
- v.removeEventListener("pointerdown", f, !0), v.removeEventListener("keydown", p), x && c.current && (c.current.style.position = "", c.current = null), h();
1168
- };
1169
- }, [f, p]), xt(() => () => h(), []), /* @__PURE__ */ b("div", { ref: r, className: `${Xi.rippleOverlay} ${i ?? ""}`, "aria-hidden": !0, children: o.map((m) => /* @__PURE__ */ b(
1170
- "span",
1171
- {
1172
- className: Xi.ripple,
1173
- style: {
1174
- left: `${m.left}px`,
1175
- top: `${m.top}px`,
1176
- width: `${m.size}px`,
1177
- height: `${m.size}px`,
1178
- backgroundColor: t,
1179
- animationDuration: `${e}ms`,
1180
- clipPath: `inset(${m.clip.top}px ${m.clip.right}px ${m.clip.bottom}px ${m.clip.left}px round ${m.borderRadius})`
1143
+ const w = v.getBoundingClientRect(), T = p.getBoundingClientRect().left + p.getBoundingClientRect().width / 2, C = p.getBoundingClientRect().top + p.getBoundingClientRect().height / 2;
1144
+ d(T, C, p, w);
1145
+ },
1146
+ [d]
1147
+ );
1148
+ return Je(
1149
+ s,
1150
+ () => ({
1151
+ trigger: ({ center: m = !0, x: v, y } = {}) => {
1152
+ const b = r.current;
1153
+ if (!b) return;
1154
+ const p = b.parentElement;
1155
+ if (!p) return;
1156
+ const w = b.getBoundingClientRect(), T = document.activeElement instanceof Element && document.activeElement.matches(hn) ? document.activeElement : p, C = m ? T.getBoundingClientRect().left + T.getBoundingClientRect().width / 2 : v ?? w.left + w.width / 2, _ = m ? T.getBoundingClientRect().top + T.getBoundingClientRect().height / 2 : y ?? w.top + w.height / 2;
1157
+ d(C, _, T, w);
1158
+ }
1159
+ }),
1160
+ [d]
1161
+ ), bt(() => {
1162
+ const m = r.current;
1163
+ if (!m) return;
1164
+ const v = m.parentElement;
1165
+ if (!v) return;
1166
+ const y = window.getComputedStyle(v);
1167
+ let b = !1;
1168
+ return y.position === "static" && (v.style.position = "relative", b = !0, c.current = v), v.addEventListener("pointerdown", f, !0), v.addEventListener("keydown", g), () => {
1169
+ v.removeEventListener("pointerdown", f, !0), v.removeEventListener("keydown", g), b && c.current && (c.current.style.position = "", c.current = null), h();
1170
+ };
1171
+ }, [f, g]), bt(() => () => h(), []), /* @__PURE__ */ x(
1172
+ "div",
1173
+ {
1174
+ ref: r,
1175
+ className: `${Xi.rippleOverlay} ${i ?? ""}`,
1176
+ "aria-hidden": !0,
1177
+ children: o.map((m) => /* @__PURE__ */ x(
1178
+ "span",
1179
+ {
1180
+ className: Xi.ripple,
1181
+ style: {
1182
+ left: `${m.left}px`,
1183
+ top: `${m.top}px`,
1184
+ width: `${m.size}px`,
1185
+ height: `${m.size}px`,
1186
+ backgroundColor: t,
1187
+ animationDuration: `${e}ms`,
1188
+ clipPath: `inset(${m.clip.top}px ${m.clip.right}px ${m.clip.bottom}px ${m.clip.left}px round ${m.borderRadius})`
1189
+ }
1190
+ },
1191
+ m.id
1192
+ ))
1181
1193
  }
1182
- },
1183
- m.id
1184
- )) });
1185
- });
1194
+ );
1195
+ }
1196
+ );
1186
1197
  function ii(t, e) {
1187
- const { current: n } = H(t !== void 0), [i, s] = wt(e), r = n ? t : i, o = bt(
1198
+ const { current: n } = H(t !== void 0), [i, s] = _t(e), r = n ? t : i, o = wt(
1188
1199
  (a) => {
1189
1200
  n || s(a);
1190
1201
  },
@@ -1193,8 +1204,8 @@ function ii(t, e) {
1193
1204
  return [r, o];
1194
1205
  }
1195
1206
  const wl = (t, e) => {
1196
- const [n, i] = wt({ top: 0, left: 0, width: 0 });
1197
- return br(() => {
1207
+ const [n, i] = _t({ top: 0, left: 0, width: 0 });
1208
+ return xr(() => {
1198
1209
  if (!e || !t.current) return;
1199
1210
  const s = () => {
1200
1211
  const o = t.current.getBoundingClientRect();
@@ -1218,7 +1229,7 @@ function si(t, e, n, i = "") {
1218
1229
  function Ke(t, e, n) {
1219
1230
  return si(t, e, n, "Size");
1220
1231
  }
1221
- const _l = "_button_12z2f_8", Tl = "_button_primary_12z2f_19", Sl = "_button_secondary_12z2f_22", Cl = "_button_negative_12z2f_25", Pl = "_button_positive_12z2f_28", El = "_button_warning_12z2f_31", Ml = "_button_neutral_12z2f_34", Al = "_button_mdSize_12z2f_94", Vl = "_button_smSize_12z2f_104", kl = "_button_xsSize_12z2f_114", dn = {
1232
+ const _l = "_button_11ykb_8", Tl = "_button_primary_11ykb_19", Sl = "_button_secondary_11ykb_22", Cl = "_button_negative_11ykb_25", Pl = "_button_positive_11ykb_28", El = "_button_warning_11ykb_31", Ml = "_button_neutral_11ykb_34", Al = "_button_mdSize_11ykb_118", Vl = "_button_smSize_11ykb_128", kl = "_button_xsSize_11ykb_138", dn = {
1222
1233
  button: _l,
1223
1234
  button_primary: Tl,
1224
1235
  button_secondary: Sl,
@@ -1226,11 +1237,13 @@ const _l = "_button_12z2f_8", Tl = "_button_primary_12z2f_19", Sl = "_button_sec
1226
1237
  button_positive: Pl,
1227
1238
  button_warning: El,
1228
1239
  button_neutral: Ml,
1240
+ "button_neutral-white": "_button_neutral-white_11ykb_37",
1241
+ "button_no-bg": "_button_no-bg_11ykb_40",
1229
1242
  button_mdSize: Al,
1230
1243
  button_smSize: Vl,
1231
1244
  button_xsSize: kl
1232
1245
  };
1233
- function Lr({
1246
+ function Or({
1234
1247
  attr: t,
1235
1248
  children: e,
1236
1249
  className: n,
@@ -1253,13 +1266,13 @@ function Lr({
1253
1266
  si(dn, a, s)
1254
1267
  ),
1255
1268
  children: [
1256
- /* @__PURE__ */ b(nn, {}),
1269
+ /* @__PURE__ */ x(nn, {}),
1257
1270
  e
1258
1271
  ]
1259
1272
  }
1260
1273
  );
1261
1274
  }
1262
- const Or = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M18 6L6 18M6 6L18 18", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Rl = "_overlay_1udux_8", Dl = "_open_1udux_21", Ll = "_modal_1udux_25", Ol = "_closeButton_1udux_42", Il = "_size_lg_1udux_49", Bl = "_size_md_1udux_52", Nl = "_size_sm_1udux_55", ce = {
1275
+ const Rl = "_overlay_1udux_8", Dl = "_open_1udux_21", Ll = "_modal_1udux_25", Ol = "_closeButton_1udux_42", Il = "_size_lg_1udux_49", Bl = "_size_md_1udux_52", Nl = "_size_sm_1udux_55", ce = {
1263
1276
  overlay: Rl,
1264
1277
  open: Dl,
1265
1278
  modal: Ll,
@@ -1268,7 +1281,7 @@ const Or = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
1268
1281
  size_lg: Il,
1269
1282
  size_md: Bl,
1270
1283
  size_sm: Nl
1271
- }, Ir = ht(
1284
+ }, Ir = dt(
1272
1285
  ({
1273
1286
  isOpen: t = !0,
1274
1287
  onClose: e,
@@ -1281,7 +1294,7 @@ const Or = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
1281
1294
  showAbsoluteCloseButton: l = !1,
1282
1295
  children: u
1283
1296
  }, c) => {
1284
- xt(() => {
1297
+ bt(() => {
1285
1298
  if (a && t && typeof window < "u" && typeof document < "u") {
1286
1299
  const f = window.getComputedStyle(document.body).overflow;
1287
1300
  return document.body.style.overflow = "hidden", () => {
@@ -1289,23 +1302,23 @@ const Or = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
1289
1302
  };
1290
1303
  }
1291
1304
  }, [t, a]);
1292
- const h = bt(
1305
+ const h = wt(
1293
1306
  (f) => {
1294
1307
  f.key === "Escape" && e && e();
1295
1308
  },
1296
1309
  [e]
1297
1310
  );
1298
- xt(() => {
1311
+ bt(() => {
1299
1312
  if (typeof window < "u" && typeof document < "u" && o && t)
1300
1313
  return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
1301
1314
  }, [t, o, h]);
1302
- const d = bt(
1315
+ const d = wt(
1303
1316
  (f) => {
1304
1317
  f.target === f.currentTarget && r && e && e();
1305
1318
  },
1306
1319
  [r, e]
1307
1320
  );
1308
- return /* @__PURE__ */ b(
1321
+ return /* @__PURE__ */ x(
1309
1322
  "div",
1310
1323
  {
1311
1324
  onClick: d,
@@ -1320,13 +1333,17 @@ const Or = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
1320
1333
  M,
1321
1334
  {
1322
1335
  ref: c,
1323
- className: I(
1324
- ce.modal,
1325
- ce[`size_${s}`],
1326
- i
1327
- ),
1336
+ className: I(ce.modal, ce[`size_${s}`], i),
1328
1337
  children: [
1329
- l && /* @__PURE__ */ b(Lr, { className: ce.closeButton, onClick: e, color: "neutral", children: /* @__PURE__ */ b(Or, {}) }),
1338
+ l && /* @__PURE__ */ x(
1339
+ Or,
1340
+ {
1341
+ className: ce.closeButton,
1342
+ onClick: e,
1343
+ color: "neutral",
1344
+ children: /* @__PURE__ */ x(Lr, {})
1345
+ }
1346
+ ),
1330
1347
  u
1331
1348
  ]
1332
1349
  }
@@ -1341,7 +1358,7 @@ function oi(t) {
1341
1358
  const e = H(null);
1342
1359
  return e.current === null && (e.current = t()), e.current;
1343
1360
  }
1344
- const ai = typeof window < "u", Br = ai ? br : xt, sn = /* @__PURE__ */ ne(null);
1361
+ const ai = typeof window < "u", Br = ai ? xr : bt, sn = /* @__PURE__ */ ne(null);
1345
1362
  function li(t, e) {
1346
1363
  t.indexOf(e) === -1 && t.push(e);
1347
1364
  }
@@ -1349,20 +1366,20 @@ function ci(t, e) {
1349
1366
  const n = t.indexOf(e);
1350
1367
  n > -1 && t.splice(n, 1);
1351
1368
  }
1352
- const _t = (t, e, n) => n > e ? e : n < t ? t : n;
1369
+ const Tt = (t, e, n) => n > e ? e : n < t ? t : n;
1353
1370
  function kn(t, e) {
1354
1371
  return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
1355
1372
  }
1356
1373
  let se = () => {
1357
- }, Tt = () => {
1374
+ }, St = () => {
1358
1375
  };
1359
1376
  process.env.NODE_ENV !== "production" && (se = (t, e, n) => {
1360
1377
  !t && typeof console < "u" && console.warn(kn(e, n));
1361
- }, Tt = (t, e, n) => {
1378
+ }, St = (t, e, n) => {
1362
1379
  if (!t)
1363
1380
  throw new Error(kn(e, n));
1364
1381
  });
1365
- const St = {}, Nr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
1382
+ const Ct = {}, Nr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
1366
1383
  function Fr(t) {
1367
1384
  return typeof t == "object" && t !== null;
1368
1385
  }
@@ -1372,7 +1389,7 @@ function ui(t) {
1372
1389
  let e;
1373
1390
  return () => (e === void 0 && (e = t()), e);
1374
1391
  }
1375
- const ut = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Fl = (t, e) => (n) => e(t(n)), Pe = (...t) => t.reduce(Fl), xe = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
1392
+ const ht = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Fl = (t, e) => (n) => e(t(n)), Pe = (...t) => t.reduce(Fl), be = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
1376
1393
  const i = e - t;
1377
1394
  return i === 0 ? 1 : (n - t) / i;
1378
1395
  };
@@ -1401,7 +1418,7 @@ class hi {
1401
1418
  this.subscriptions.length = 0;
1402
1419
  }
1403
1420
  }
1404
- const pt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, ct = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
1421
+ const pt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, ut = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
1405
1422
  function zr(t, e) {
1406
1423
  return e ? t * (1e3 / e) : 0;
1407
1424
  }
@@ -1419,12 +1436,12 @@ function jl(t, e, n, i, s) {
1419
1436
  }
1420
1437
  function Ee(t, e, n, i) {
1421
1438
  if (t === e && n === i)
1422
- return ut;
1439
+ return ht;
1423
1440
  const s = (r) => jl(r, 0, 1, t, n);
1424
1441
  return (r) => r === 0 || r === 1 ? r : jr(s(r), e, i);
1425
1442
  }
1426
1443
  const Wr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ur = (t) => (e) => 1 - t(1 - e), Kr = /* @__PURE__ */ Ee(0.33, 1.53, 0.69, 0.99), fi = /* @__PURE__ */ Ur(Kr), Gr = /* @__PURE__ */ Wr(fi), Hr = (t) => (t *= 2) < 1 ? 0.5 * fi(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), mi = (t) => 1 - Math.sin(Math.acos(t)), qr = Ur(mi), Yr = Wr(mi), Wl = /* @__PURE__ */ Ee(0.42, 0, 1, 1), Ul = /* @__PURE__ */ Ee(0, 0, 0.58, 1), Xr = /* @__PURE__ */ Ee(0.42, 0, 0.58, 1), Kl = (t) => Array.isArray(t) && typeof t[0] != "number", Zr = (t) => Array.isArray(t) && typeof t[0] == "number", Ji = {
1427
- linear: ut,
1444
+ linear: ht,
1428
1445
  easeIn: Wl,
1429
1446
  easeInOut: Xr,
1430
1447
  easeOut: Ul,
@@ -1437,11 +1454,11 @@ const Wr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ur
1437
1454
  anticipate: Hr
1438
1455
  }, Gl = (t) => typeof t == "string", Qi = (t) => {
1439
1456
  if (Zr(t)) {
1440
- Tt(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
1457
+ St(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
1441
1458
  const [e, n, i, s] = t;
1442
1459
  return Ee(e, n, i, s);
1443
1460
  } else if (Gl(t))
1444
- return Tt(Ji[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Ji[t];
1461
+ return St(Ji[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Ji[t];
1445
1462
  return t;
1446
1463
  }, ke = [
1447
1464
  "setup",
@@ -1477,8 +1494,8 @@ function Hl(t, e) {
1477
1494
  * Schedule a process to run on the next frame.
1478
1495
  */
1479
1496
  schedule: (c, h = !1, d = !1) => {
1480
- const p = d && s ? n : i;
1481
- return h && o.add(c), p.has(c) || p.add(c), c;
1497
+ const g = d && s ? n : i;
1498
+ return h && o.add(c), g.has(c) || g.add(c), c;
1482
1499
  },
1483
1500
  /**
1484
1501
  * Cancel the provided callback from running on the next frame.
@@ -1506,27 +1523,27 @@ function Jr(t, e) {
1506
1523
  delta: 0,
1507
1524
  timestamp: 0,
1508
1525
  isProcessing: !1
1509
- }, r = () => n = !0, o = ke.reduce((g, w) => (g[w] = Hl(r), g), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: h, preRender: d, render: f, postRender: p } = o, m = () => {
1510
- const g = St.useManualTiming ? s.timestamp : performance.now();
1511
- n = !1, St.useManualTiming || (s.delta = i ? 1e3 / 60 : Math.max(Math.min(g - s.timestamp, ql), 1)), s.timestamp = g, s.isProcessing = !0, a.process(s), l.process(s), u.process(s), c.process(s), h.process(s), d.process(s), f.process(s), p.process(s), s.isProcessing = !1, n && e && (i = !1, t(m));
1526
+ }, r = () => n = !0, o = ke.reduce((p, w) => (p[w] = Hl(r), p), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: h, preRender: d, render: f, postRender: g } = o, m = () => {
1527
+ const p = Ct.useManualTiming ? s.timestamp : performance.now();
1528
+ n = !1, Ct.useManualTiming || (s.delta = i ? 1e3 / 60 : Math.max(Math.min(p - s.timestamp, ql), 1)), s.timestamp = p, s.isProcessing = !0, a.process(s), l.process(s), u.process(s), c.process(s), h.process(s), d.process(s), f.process(s), g.process(s), s.isProcessing = !1, n && e && (i = !1, t(m));
1512
1529
  }, v = () => {
1513
1530
  n = !0, i = !0, s.isProcessing || t(m);
1514
1531
  };
1515
- return { schedule: ke.reduce((g, w) => {
1532
+ return { schedule: ke.reduce((p, w) => {
1516
1533
  const T = o[w];
1517
- return g[w] = (C, _ = !1, S = !1) => (n || v(), T.schedule(C, _, S)), g;
1518
- }, {}), cancel: (g) => {
1534
+ return p[w] = (C, _ = !1, S = !1) => (n || v(), T.schedule(C, _, S)), p;
1535
+ }, {}), cancel: (p) => {
1519
1536
  for (let w = 0; w < ke.length; w++)
1520
- o[ke[w]].cancel(g);
1537
+ o[ke[w]].cancel(p);
1521
1538
  }, state: s, steps: o };
1522
1539
  }
1523
- const { schedule: N, cancel: Mt, state: Y, steps: fn } = /* @__PURE__ */ Jr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ut, !0);
1540
+ const { schedule: N, cancel: At, state: Y, steps: fn } = /* @__PURE__ */ Jr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ht, !0);
1524
1541
  let Fe;
1525
1542
  function Yl() {
1526
1543
  Fe = void 0;
1527
1544
  }
1528
1545
  const it = {
1529
- now: () => (Fe === void 0 && it.set(Y.isProcessing || St.useManualTiming ? Y.timestamp : performance.now()), Fe),
1546
+ now: () => (Fe === void 0 && it.set(Y.isProcessing || Ct.useManualTiming ? Y.timestamp : performance.now()), Fe),
1530
1547
  set: (t) => {
1531
1548
  Fe = t, queueMicrotask(Yl);
1532
1549
  }
@@ -1534,9 +1551,9 @@ const it = {
1534
1551
  test: (t) => typeof t == "number",
1535
1552
  parse: parseFloat,
1536
1553
  transform: (t) => t
1537
- }, be = {
1554
+ }, xe = {
1538
1555
  ...re,
1539
- transform: (t) => _t(0, 1, t)
1556
+ transform: (t) => Tt(0, 1, t)
1540
1557
  }, Re = {
1541
1558
  ...re,
1542
1559
  default: 1
@@ -1554,13 +1571,13 @@ const Ql = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
1554
1571
  [n]: parseFloat(o),
1555
1572
  alpha: a !== void 0 ? parseFloat(a) : 1
1556
1573
  };
1557
- }, tc = (t) => _t(0, 255, t), mn = {
1574
+ }, tc = (t) => Tt(0, 255, t), mn = {
1558
1575
  ...re,
1559
1576
  transform: (t) => Math.round(tc(t))
1560
1577
  }, Bt = {
1561
1578
  test: /* @__PURE__ */ vi("rgb", "red"),
1562
1579
  parse: /* @__PURE__ */ to("red", "green", "blue"),
1563
- transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + mn.transform(t) + ", " + mn.transform(e) + ", " + mn.transform(n) + ", " + fe(be.transform(i)) + ")"
1580
+ transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + mn.transform(t) + ", " + mn.transform(e) + ", " + mn.transform(n) + ", " + fe(xe.transform(i)) + ")"
1564
1581
  };
1565
1582
  function ec(t) {
1566
1583
  let e = "", n = "", i = "", s = "";
@@ -1579,21 +1596,21 @@ const Rn = {
1579
1596
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
1580
1597
  parse: parseFloat,
1581
1598
  transform: (e) => `${e}${t}`
1582
- }), Pt = /* @__PURE__ */ Me("deg"), vt = /* @__PURE__ */ Me("%"), P = /* @__PURE__ */ Me("px"), nc = /* @__PURE__ */ Me("vh"), ic = /* @__PURE__ */ Me("vw"), ts = {
1599
+ }), Et = /* @__PURE__ */ Me("deg"), vt = /* @__PURE__ */ Me("%"), P = /* @__PURE__ */ Me("px"), nc = /* @__PURE__ */ Me("vh"), ic = /* @__PURE__ */ Me("vw"), ts = {
1583
1600
  ...vt,
1584
1601
  parse: (t) => vt.parse(t) / 100,
1585
1602
  transform: (t) => vt.transform(t * 100)
1586
1603
  }, Kt = {
1587
1604
  test: /* @__PURE__ */ vi("hsl", "hue"),
1588
1605
  parse: /* @__PURE__ */ to("hue", "saturation", "lightness"),
1589
- transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + vt.transform(fe(e)) + ", " + vt.transform(fe(n)) + ", " + fe(be.transform(i)) + ")"
1590
- }, U = {
1606
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + vt.transform(fe(e)) + ", " + vt.transform(fe(n)) + ", " + fe(xe.transform(i)) + ")"
1607
+ }, K = {
1591
1608
  test: (t) => Bt.test(t) || Rn.test(t) || Kt.test(t),
1592
1609
  parse: (t) => Bt.test(t) ? Bt.parse(t) : Kt.test(t) ? Kt.parse(t) : Rn.parse(t),
1593
1610
  transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Bt.transform(t) : Kt.transform(t),
1594
1611
  getAnimatableNone: (t) => {
1595
- const e = U.parse(t);
1596
- return e.alpha = 0, U.transform(e);
1612
+ const e = K.parse(t);
1613
+ return e.alpha = 0, K.transform(e);
1597
1614
  }
1598
1615
  }, sc = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
1599
1616
  function rc(t) {
@@ -1607,7 +1624,7 @@ function we(t) {
1607
1624
  var: []
1608
1625
  }, s = [];
1609
1626
  let r = 0;
1610
- const a = e.replace(lc, (l) => (U.test(l) ? (i.color.push(r), s.push(no), n.push(U.parse(l))) : l.startsWith(ac) ? (i.var.push(r), s.push(oc), n.push(l)) : (i.number.push(r), s.push(eo), n.push(parseFloat(l))), ++r, es)).split(es);
1627
+ const a = e.replace(lc, (l) => (K.test(l) ? (i.color.push(r), s.push(no), n.push(K.parse(l))) : l.startsWith(ac) ? (i.var.push(r), s.push(oc), n.push(l)) : (i.number.push(r), s.push(eo), n.push(parseFloat(l))), ++r, es)).split(es);
1611
1628
  return { values: n, split: a, indexes: i, types: s };
1612
1629
  }
1613
1630
  function io(t) {
@@ -1620,17 +1637,17 @@ function so(t) {
1620
1637
  for (let o = 0; o < i; o++)
1621
1638
  if (r += e[o], s[o] !== void 0) {
1622
1639
  const a = n[o];
1623
- a === eo ? r += fe(s[o]) : a === no ? r += U.transform(s[o]) : r += s[o];
1640
+ a === eo ? r += fe(s[o]) : a === no ? r += K.transform(s[o]) : r += s[o];
1624
1641
  }
1625
1642
  return r;
1626
1643
  };
1627
1644
  }
1628
- const cc = (t) => typeof t == "number" ? 0 : U.test(t) ? U.getAnimatableNone(t) : t;
1645
+ const cc = (t) => typeof t == "number" ? 0 : K.test(t) ? K.getAnimatableNone(t) : t;
1629
1646
  function uc(t) {
1630
1647
  const e = io(t);
1631
1648
  return so(t)(e.map(cc));
1632
1649
  }
1633
- const At = {
1650
+ const Vt = {
1634
1651
  test: rc,
1635
1652
  parse: io,
1636
1653
  createTransformer: so,
@@ -1682,11 +1699,11 @@ function mc(t, e) {
1682
1699
  function pc(t, e) {
1683
1700
  return (n) => $(t, e, n);
1684
1701
  }
1685
- function xi(t) {
1686
- return typeof t == "number" ? pc : typeof t == "string" ? gi(t) ? Ge : U.test(t) ? is : vc : Array.isArray(t) ? ro : typeof t == "object" ? U.test(t) ? is : gc : Ge;
1702
+ function bi(t) {
1703
+ return typeof t == "number" ? pc : typeof t == "string" ? gi(t) ? Ge : K.test(t) ? is : vc : Array.isArray(t) ? ro : typeof t == "object" ? K.test(t) ? is : gc : Ge;
1687
1704
  }
1688
1705
  function ro(t, e) {
1689
- const n = [...t], i = n.length, s = t.map((r, o) => xi(r)(r, e[o]));
1706
+ const n = [...t], i = n.length, s = t.map((r, o) => bi(r)(r, e[o]));
1690
1707
  return (r) => {
1691
1708
  for (let o = 0; o < i; o++)
1692
1709
  n[o] = s[o](r);
@@ -1696,7 +1713,7 @@ function ro(t, e) {
1696
1713
  function gc(t, e) {
1697
1714
  const n = { ...t, ...e }, i = {};
1698
1715
  for (const s in n)
1699
- t[s] !== void 0 && e[s] !== void 0 && (i[s] = xi(t[s])(t[s], e[s]));
1716
+ t[s] !== void 0 && e[s] !== void 0 && (i[s] = bi(t[s])(t[s], e[s]));
1700
1717
  return (s) => {
1701
1718
  for (const r in i)
1702
1719
  n[r] = i[r](s);
@@ -1712,17 +1729,17 @@ function yc(t, e) {
1712
1729
  return n;
1713
1730
  }
1714
1731
  const vc = (t, e) => {
1715
- const n = At.createTransformer(e), i = we(t), s = we(e);
1732
+ const n = Vt.createTransformer(e), i = we(t), s = we(e);
1716
1733
  return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Dn.has(t) && !s.values.length || Dn.has(e) && !i.values.length ? mc(t, e) : Pe(ro(yc(i, s), s.values), n) : (se(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Ge(t, e));
1717
1734
  };
1718
1735
  function oo(t, e, n) {
1719
- return typeof t == "number" && typeof e == "number" && typeof n == "number" ? $(t, e, n) : xi(t)(t, e);
1736
+ return typeof t == "number" && typeof e == "number" && typeof n == "number" ? $(t, e, n) : bi(t)(t, e);
1720
1737
  }
1721
- const xc = (t) => {
1738
+ const bc = (t) => {
1722
1739
  const e = ({ timestamp: n }) => t(n);
1723
1740
  return {
1724
1741
  start: (n = !0) => N.update(e, n),
1725
- stop: () => Mt(e),
1742
+ stop: () => At(e),
1726
1743
  /**
1727
1744
  * If we're processing this frame we can use the
1728
1745
  * framelocked timestamp to keep things in sync.
@@ -1736,7 +1753,7 @@ const xc = (t) => {
1736
1753
  i += Math.round(t(r / (s - 1)) * 1e4) / 1e4 + ", ";
1737
1754
  return `linear(${i.substring(0, i.length - 2)})`;
1738
1755
  }, He = 2e4;
1739
- function bi(t) {
1756
+ function xi(t) {
1740
1757
  let e = 0;
1741
1758
  const n = 50;
1742
1759
  let i = t.next(e);
@@ -1744,12 +1761,12 @@ function bi(t) {
1744
1761
  e += n, i = t.next(e);
1745
1762
  return e >= He ? 1 / 0 : e;
1746
1763
  }
1747
- function bc(t, e = 100, n) {
1748
- const i = n({ ...t, keyframes: [0, e] }), s = Math.min(bi(i), He);
1764
+ function xc(t, e = 100, n) {
1765
+ const i = n({ ...t, keyframes: [0, e] }), s = Math.min(xi(i), He);
1749
1766
  return {
1750
1767
  type: "keyframes",
1751
1768
  ease: (r) => i.next(s * r).value / e,
1752
- duration: /* @__PURE__ */ ct(s)
1769
+ duration: /* @__PURE__ */ ut(s)
1753
1770
  };
1754
1771
  }
1755
1772
  const wc = 5;
@@ -1790,12 +1807,12 @@ function _c({ duration: t = F.duration, bounce: e = F.bounce, velocity: n = F.ve
1790
1807
  let s, r;
1791
1808
  se(t <= /* @__PURE__ */ pt(F.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
1792
1809
  let o = 1 - e;
1793
- o = _t(F.minDamping, F.maxDamping, o), t = _t(F.minDuration, F.maxDuration, /* @__PURE__ */ ct(t)), o < 1 ? (s = (u) => {
1794
- const c = u * o, h = c * t, d = c - n, f = Ln(u, o), p = Math.exp(-h);
1795
- return yn - d / f * p;
1810
+ o = Tt(F.minDamping, F.maxDamping, o), t = Tt(F.minDuration, F.maxDuration, /* @__PURE__ */ ut(t)), o < 1 ? (s = (u) => {
1811
+ const c = u * o, h = c * t, d = c - n, f = Ln(u, o), g = Math.exp(-h);
1812
+ return yn - d / f * g;
1796
1813
  }, r = (u) => {
1797
- const h = u * o * t, d = h * n + n, f = Math.pow(o, 2) * Math.pow(u, 2) * t, p = Math.exp(-h), m = Ln(Math.pow(u, 2), o);
1798
- return (-s(u) + yn > 0 ? -1 : 1) * ((d - f) * p) / m;
1814
+ const h = u * o * t, d = h * n + n, f = Math.pow(o, 2) * Math.pow(u, 2) * t, g = Math.exp(-h), m = Ln(Math.pow(u, 2), o);
1815
+ return (-s(u) + yn > 0 ? -1 : 1) * ((d - f) * g) / m;
1799
1816
  }) : (s = (u) => {
1800
1817
  const c = Math.exp(-u * t), h = (u - n) * t + 1;
1801
1818
  return -yn + c * h;
@@ -1844,7 +1861,7 @@ function Ec(t) {
1844
1861
  };
1845
1862
  if (!ss(t, Pc) && ss(t, Cc))
1846
1863
  if (t.visualDuration) {
1847
- const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), s = i * i, r = 2 * _t(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(s);
1864
+ const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), s = i * i, r = 2 * Tt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(s);
1848
1865
  e = {
1849
1866
  ...e,
1850
1867
  mass: F.mass,
@@ -1870,41 +1887,41 @@ function qe(t = F.visualDuration, e = F.bounce) {
1870
1887
  let { restSpeed: i, restDelta: s } = n;
1871
1888
  const r = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: r }, { stiffness: l, damping: u, mass: c, duration: h, velocity: d, isResolvedFromDuration: f } = Ec({
1872
1889
  ...n,
1873
- velocity: -/* @__PURE__ */ ct(n.velocity || 0)
1874
- }), p = d || 0, m = u / (2 * Math.sqrt(l * c)), v = o - r, y = /* @__PURE__ */ ct(Math.sqrt(l / c)), x = Math.abs(v) < 5;
1875
- i || (i = x ? F.restSpeed.granular : F.restSpeed.default), s || (s = x ? F.restDelta.granular : F.restDelta.default);
1876
- let g;
1890
+ velocity: -/* @__PURE__ */ ut(n.velocity || 0)
1891
+ }), g = d || 0, m = u / (2 * Math.sqrt(l * c)), v = o - r, y = /* @__PURE__ */ ut(Math.sqrt(l / c)), b = Math.abs(v) < 5;
1892
+ i || (i = b ? F.restSpeed.granular : F.restSpeed.default), s || (s = b ? F.restDelta.granular : F.restDelta.default);
1893
+ let p;
1877
1894
  if (m < 1) {
1878
1895
  const T = Ln(y, m);
1879
- g = (C) => {
1896
+ p = (C) => {
1880
1897
  const _ = Math.exp(-m * y * C);
1881
- return o - _ * ((p + m * y * v) / T * Math.sin(T * C) + v * Math.cos(T * C));
1898
+ return o - _ * ((g + m * y * v) / T * Math.sin(T * C) + v * Math.cos(T * C));
1882
1899
  };
1883
1900
  } else if (m === 1)
1884
- g = (T) => o - Math.exp(-y * T) * (v + (p + y * v) * T);
1901
+ p = (T) => o - Math.exp(-y * T) * (v + (g + y * v) * T);
1885
1902
  else {
1886
1903
  const T = y * Math.sqrt(m * m - 1);
1887
- g = (C) => {
1904
+ p = (C) => {
1888
1905
  const _ = Math.exp(-m * y * C), S = Math.min(T * C, 300);
1889
- return o - _ * ((p + m * y * v) * Math.sinh(S) + T * v * Math.cosh(S)) / T;
1906
+ return o - _ * ((g + m * y * v) * Math.sinh(S) + T * v * Math.cosh(S)) / T;
1890
1907
  };
1891
1908
  }
1892
1909
  const w = {
1893
1910
  calculatedDuration: f && h || null,
1894
1911
  next: (T) => {
1895
- const C = g(T);
1912
+ const C = p(T);
1896
1913
  if (f)
1897
1914
  a.done = T >= h;
1898
1915
  else {
1899
- let _ = T === 0 ? p : 0;
1900
- m < 1 && (_ = T === 0 ? /* @__PURE__ */ pt(p) : lo(g, T, C));
1916
+ let _ = T === 0 ? g : 0;
1917
+ m < 1 && (_ = T === 0 ? /* @__PURE__ */ pt(g) : lo(p, T, C));
1901
1918
  const S = Math.abs(_) <= i, E = Math.abs(o - C) <= s;
1902
1919
  a.done = S && E;
1903
1920
  }
1904
1921
  return a.value = a.done ? o : C, a;
1905
1922
  },
1906
1923
  toString: () => {
1907
- const T = Math.min(bi(w), He), C = ao((_) => w.next(T * _).value, T, 30);
1924
+ const T = Math.min(xi(w), He), C = ao((_) => w.next(T * _).value, T, 30);
1908
1925
  return T + "ms " + C;
1909
1926
  },
1910
1927
  toTransition: () => {
@@ -1913,26 +1930,26 @@ function qe(t = F.visualDuration, e = F.bounce) {
1913
1930
  return w;
1914
1931
  }
1915
1932
  qe.applyToOptions = (t) => {
1916
- const e = bc(t, 100, qe);
1933
+ const e = xc(t, 100, qe);
1917
1934
  return t.ease = e.ease, t.duration = /* @__PURE__ */ pt(e.duration), t.type = "keyframes", t;
1918
1935
  };
1919
1936
  function On({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: r = 500, modifyTarget: o, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
1920
1937
  const h = t[0], d = {
1921
1938
  done: !1,
1922
1939
  value: h
1923
- }, f = (S) => a !== void 0 && S < a || l !== void 0 && S > l, p = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
1940
+ }, f = (S) => a !== void 0 && S < a || l !== void 0 && S > l, g = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
1924
1941
  let m = n * e;
1925
1942
  const v = h + m, y = o === void 0 ? v : o(v);
1926
1943
  y !== v && (m = y - h);
1927
- const x = (S) => -m * Math.exp(-S / i), g = (S) => y + x(S), w = (S) => {
1928
- const E = x(S), O = g(S);
1944
+ const b = (S) => -m * Math.exp(-S / i), p = (S) => y + b(S), w = (S) => {
1945
+ const E = b(S), O = p(S);
1929
1946
  d.done = Math.abs(E) <= u, d.value = d.done ? y : O;
1930
1947
  };
1931
1948
  let T, C;
1932
1949
  const _ = (S) => {
1933
1950
  f(d.value) && (T = S, C = qe({
1934
- keyframes: [d.value, p(d.value)],
1935
- velocity: lo(g, S, d.value),
1951
+ keyframes: [d.value, g(d.value)],
1952
+ velocity: lo(p, S, d.value),
1936
1953
  // TODO: This should be passing * 1000
1937
1954
  damping: s,
1938
1955
  stiffness: r,
@@ -1949,11 +1966,11 @@ function On({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
1949
1966
  };
1950
1967
  }
1951
1968
  function Mc(t, e, n) {
1952
- const i = [], s = n || St.mix || oo, r = t.length - 1;
1969
+ const i = [], s = n || Ct.mix || oo, r = t.length - 1;
1953
1970
  for (let o = 0; o < r; o++) {
1954
1971
  let a = s(t[o], t[o + 1]);
1955
1972
  if (e) {
1956
- const l = Array.isArray(e) ? e[o] || ut : e;
1973
+ const l = Array.isArray(e) ? e[o] || ht : e;
1957
1974
  a = Pe(l, a);
1958
1975
  }
1959
1976
  i.push(a);
@@ -1962,7 +1979,7 @@ function Mc(t, e, n) {
1962
1979
  }
1963
1980
  function Ac(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
1964
1981
  const r = t.length;
1965
- if (Tt(r === e.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
1982
+ if (St(r === e.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
1966
1983
  return () => e[0];
1967
1984
  if (r === 2 && e[0] === e[1])
1968
1985
  return () => e[1];
@@ -1975,15 +1992,15 @@ function Ac(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
1975
1992
  if (l > 1)
1976
1993
  for (; h < t.length - 2 && !(c < t[h + 1]); h++)
1977
1994
  ;
1978
- const d = /* @__PURE__ */ xe(t[h], t[h + 1], c);
1995
+ const d = /* @__PURE__ */ be(t[h], t[h + 1], c);
1979
1996
  return a[h](d);
1980
1997
  };
1981
- return n ? (c) => u(_t(t[0], t[r - 1], c)) : u;
1998
+ return n ? (c) => u(Tt(t[0], t[r - 1], c)) : u;
1982
1999
  }
1983
2000
  function Vc(t, e) {
1984
2001
  const n = t[t.length - 1];
1985
2002
  for (let i = 1; i <= e; i++) {
1986
- const s = /* @__PURE__ */ xe(0, e, i);
2003
+ const s = /* @__PURE__ */ be(0, e, i);
1987
2004
  t.push($(n, 1, s));
1988
2005
  }
1989
2006
  }
@@ -2067,13 +2084,13 @@ class Ti extends _i {
2067
2084
  const { type: n = Gt, repeat: i = 0, repeatDelay: s = 0, repeatType: r, velocity: o = 0 } = e;
2068
2085
  let { keyframes: a } = e;
2069
2086
  const l = n || Gt;
2070
- process.env.NODE_ENV !== "production" && l !== Gt && Tt(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== Gt && typeof a[0] != "number" && (this.mixKeyframes = Pe(Ic, oo(a[0], a[1])), a = [0, 100]);
2087
+ process.env.NODE_ENV !== "production" && l !== Gt && St(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== Gt && typeof a[0] != "number" && (this.mixKeyframes = Pe(Ic, oo(a[0], a[1])), a = [0, 100]);
2071
2088
  const u = l({ ...e, keyframes: a });
2072
2089
  r === "mirror" && (this.mirroredGenerator = l({
2073
2090
  ...e,
2074
2091
  keyframes: [...a].reverse(),
2075
2092
  velocity: -o
2076
- })), u.calculatedDuration === null && (u.calculatedDuration = bi(u));
2093
+ })), u.calculatedDuration === null && (u.calculatedDuration = xi(u));
2077
2094
  const { calculatedDuration: c } = u;
2078
2095
  this.calculatedDuration = c, this.resolvedDuration = c + s, this.totalDuration = this.resolvedDuration * (i + 1) - s, this.generator = u;
2079
2096
  }
@@ -2085,22 +2102,22 @@ class Ti extends _i {
2085
2102
  const { generator: i, totalDuration: s, mixKeyframes: r, mirroredGenerator: o, resolvedDuration: a, calculatedDuration: l } = this;
2086
2103
  if (this.startTime === null)
2087
2104
  return i.next(0);
2088
- const { delay: u = 0, keyframes: c, repeat: h, repeatType: d, repeatDelay: f, type: p, onUpdate: m, finalKeyframe: v } = this.options;
2105
+ const { delay: u = 0, keyframes: c, repeat: h, repeatType: d, repeatDelay: f, type: g, onUpdate: m, finalKeyframe: v } = this.options;
2089
2106
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - s / this.speed, this.startTime)), n ? this.currentTime = e : this.updateTime(e);
2090
- const y = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? y < 0 : y > s;
2107
+ const y = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), b = this.playbackSpeed >= 0 ? y < 0 : y > s;
2091
2108
  this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
2092
- let g = this.currentTime, w = i;
2109
+ let p = this.currentTime, w = i;
2093
2110
  if (h) {
2094
2111
  const S = Math.min(this.currentTime, s) / a;
2095
2112
  let E = Math.floor(S), O = S % 1;
2096
- !O && S >= 1 && (O = 1), O === 1 && E--, E = Math.min(E, h + 1), !!(E % 2) && (d === "reverse" ? (O = 1 - O, f && (O -= f / a)) : d === "mirror" && (w = o)), g = _t(0, 1, O) * a;
2113
+ !O && S >= 1 && (O = 1), O === 1 && E--, E = Math.min(E, h + 1), !!(E % 2) && (d === "reverse" ? (O = 1 - O, f && (O -= f / a)) : d === "mirror" && (w = o)), p = Tt(0, 1, O) * a;
2097
2114
  }
2098
- const T = x ? { done: !1, value: c[0] } : w.next(g);
2115
+ const T = b ? { done: !1, value: c[0] } : w.next(p);
2099
2116
  r && (T.value = r(T.value));
2100
2117
  let { done: C } = T;
2101
- !x && l !== null && (C = this.playbackSpeed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
2118
+ !b && l !== null && (C = this.playbackSpeed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
2102
2119
  const _ = this.holdTime === null && (this.state === "finished" || this.state === "running" && C);
2103
- return _ && p !== On && (T.value = wi(c, this.options, v, this.speed)), m && m(T.value), _ && this.finish(), T;
2120
+ return _ && g !== On && (T.value = wi(c, this.options, v, this.speed)), m && m(T.value), _ && this.finish(), T;
2104
2121
  }
2105
2122
  /**
2106
2123
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -2111,14 +2128,14 @@ class Ti extends _i {
2111
2128
  return this.finished.then(e, n);
2112
2129
  }
2113
2130
  get duration() {
2114
- return /* @__PURE__ */ ct(this.calculatedDuration);
2131
+ return /* @__PURE__ */ ut(this.calculatedDuration);
2115
2132
  }
2116
2133
  get iterationDuration() {
2117
2134
  const { delay: e = 0 } = this.options || {};
2118
- return this.duration + /* @__PURE__ */ ct(e);
2135
+ return this.duration + /* @__PURE__ */ ut(e);
2119
2136
  }
2120
2137
  get time() {
2121
- return /* @__PURE__ */ ct(this.currentTime);
2138
+ return /* @__PURE__ */ ut(this.currentTime);
2122
2139
  }
2123
2140
  set time(e) {
2124
2141
  e = /* @__PURE__ */ pt(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
@@ -2129,12 +2146,12 @@ class Ti extends _i {
2129
2146
  set speed(e) {
2130
2147
  this.updateTime(it.now());
2131
2148
  const n = this.playbackSpeed !== e;
2132
- this.playbackSpeed = e, n && (this.time = /* @__PURE__ */ ct(this.currentTime));
2149
+ this.playbackSpeed = e, n && (this.time = /* @__PURE__ */ ut(this.currentTime));
2133
2150
  }
2134
2151
  play() {
2135
2152
  if (this.isStopped)
2136
2153
  return;
2137
- const { driver: e = xc, startTime: n } = this.options;
2154
+ const { driver: e = bc, startTime: n } = this.options;
2138
2155
  this.driver || (this.driver = e((s) => this.tick(s))), this.options.onPlay?.();
2139
2156
  const i = this.driver.now();
2140
2157
  this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = n ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -2394,7 +2411,7 @@ class Qc extends _i {
2394
2411
  if (super(), this.finishedTime = null, this.isStopped = !1, !e)
2395
2412
  return;
2396
2413
  const { element: n, name: i, keyframes: s, pseudoElement: r, allowFlatten: o = !1, finalKeyframe: a, onComplete: l } = e;
2397
- this.isPseudoElement = !!r, this.allowFlatten = o, this.options = e, Tt(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
2414
+ this.isPseudoElement = !!r, this.allowFlatten = o, this.options = e, St(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
2398
2415
  const u = Jc(e);
2399
2416
  this.animation = Zc(n, i, s, u, r), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
2400
2417
  if (this.finishedTime = this.time, !r) {
@@ -2443,14 +2460,14 @@ class Qc extends _i {
2443
2460
  }
2444
2461
  get duration() {
2445
2462
  const e = this.animation.effect?.getComputedTiming?.().duration || 0;
2446
- return /* @__PURE__ */ ct(Number(e));
2463
+ return /* @__PURE__ */ ut(Number(e));
2447
2464
  }
2448
2465
  get iterationDuration() {
2449
2466
  const { delay: e = 0 } = this.options || {};
2450
- return this.duration + /* @__PURE__ */ ct(e);
2467
+ return this.duration + /* @__PURE__ */ ut(e);
2451
2468
  }
2452
2469
  get time() {
2453
- return /* @__PURE__ */ ct(Number(this.animation.currentTime) || 0);
2470
+ return /* @__PURE__ */ ut(Number(this.animation.currentTime) || 0);
2454
2471
  }
2455
2472
  set time(e) {
2456
2473
  this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ pt(e);
@@ -2478,7 +2495,7 @@ class Qc extends _i {
2478
2495
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
2479
2496
  */
2480
2497
  attachTimeline({ timeline: e, observe: n }) {
2481
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && qc() ? (this.animation.timeline = e, ut) : n(this);
2498
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && qc() ? (this.animation.timeline = e, ht) : n(this);
2482
2499
  }
2483
2500
  }
2484
2501
  const go = {
@@ -2521,7 +2538,7 @@ class nu extends Qc {
2521
2538
  }
2522
2539
  }
2523
2540
  const hs = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2524
- (At.test(t) || t === "0") && // And it contains numbers and/or colors
2541
+ (Vt.test(t) || t === "0") && // And it contains numbers and/or colors
2525
2542
  !t.startsWith("url("));
2526
2543
  function iu(t) {
2527
2544
  const e = t[0];
@@ -2580,12 +2597,12 @@ class cu extends _i {
2580
2597
  element: c,
2581
2598
  ...h
2582
2599
  }, f = c?.KeyframeResolver || Si;
2583
- this.keyframeResolver = new f(a, (p, m, v) => this.onKeyframesResolved(p, m, d, !v), l, u, c), this.keyframeResolver?.scheduleResolve();
2600
+ this.keyframeResolver = new f(a, (g, m, v) => this.onKeyframesResolved(g, m, d, !v), l, u, c), this.keyframeResolver?.scheduleResolve();
2584
2601
  }
2585
2602
  onKeyframesResolved(e, n, i, s) {
2586
2603
  this.keyframeResolver = void 0;
2587
2604
  const { name: r, type: o, velocity: a, delay: l, isHandoff: u, onUpdate: c } = i;
2588
- this.resolvedAt = it.now(), su(e, r, o, a) || ((St.instantAnimations || !l) && c?.(wi(e, i, n)), e[0] = e[e.length - 1], Wn(i), i.repeat = 0);
2605
+ this.resolvedAt = it.now(), su(e, r, o, a) || ((Ct.instantAnimations || !l) && c?.(wi(e, i, n)), e[0] = e[e.length - 1], Wn(i), i.repeat = 0);
2589
2606
  const d = {
2590
2607
  startTime: s ? this.resolvedAt ? this.resolvedAt - this.createdAt > lu ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
2591
2608
  finalKeyframe: n,
@@ -2595,7 +2612,7 @@ class cu extends _i {
2595
2612
  ...d,
2596
2613
  element: d.motionValue.owner.current
2597
2614
  }) : new Ti(d);
2598
- f.finished.then(() => this.notifyFinished()).catch(ut), this.pendingTimeline && (this.stopTimeline = f.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = f;
2615
+ f.finished.then(() => this.notifyFinished()).catch(ht), this.pendingTimeline && (this.stopTimeline = f.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = f;
2599
2616
  }
2600
2617
  get finished() {
2601
2618
  return this._animation ? this.animation.finished : this._finished;
@@ -2660,7 +2677,7 @@ function hu(t) {
2660
2677
  }
2661
2678
  const du = 4;
2662
2679
  function yo(t, e, n = 1) {
2663
- Tt(n <= du, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
2680
+ St(n <= du, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
2664
2681
  const [i, s] = hu(t);
2665
2682
  if (!i)
2666
2683
  return;
@@ -2685,7 +2702,7 @@ const vo = /* @__PURE__ */ new Set([
2685
2702
  ]), fu = {
2686
2703
  test: (t) => t === "auto",
2687
2704
  parse: (t) => t
2688
- }, xo = (t) => (e) => e.test(t), bo = [re, P, vt, Pt, ic, nc, fu], ds = (t) => bo.find(xo(t));
2705
+ }, bo = (t) => (e) => e.test(t), xo = [re, P, vt, Et, ic, nc, fu], ds = (t) => xo.find(bo(t));
2689
2706
  function mu(t) {
2690
2707
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || $r(t) : !0;
2691
2708
  }
@@ -2702,7 +2719,7 @@ function gu(t) {
2702
2719
  return i !== n && (r *= 100), e + "(" + r + s + ")";
2703
2720
  }
2704
2721
  const yu = /\b([a-z-]*)\(.*?\)/gu, Un = {
2705
- ...At,
2722
+ ...Vt,
2706
2723
  getAnimatableNone: (t) => {
2707
2724
  const e = t.match(yu);
2708
2725
  return e ? e.map(gu).join(" ") : t;
@@ -2711,17 +2728,17 @@ const yu = /\b([a-z-]*)\(.*?\)/gu, Un = {
2711
2728
  ...re,
2712
2729
  transform: Math.round
2713
2730
  }, vu = {
2714
- rotate: Pt,
2715
- rotateX: Pt,
2716
- rotateY: Pt,
2717
- rotateZ: Pt,
2731
+ rotate: Et,
2732
+ rotateX: Et,
2733
+ rotateY: Et,
2734
+ rotateZ: Et,
2718
2735
  scale: Re,
2719
2736
  scaleX: Re,
2720
2737
  scaleY: Re,
2721
2738
  scaleZ: Re,
2722
- skew: Pt,
2723
- skewX: Pt,
2724
- skewY: Pt,
2739
+ skew: Et,
2740
+ skewX: Et,
2741
+ skewY: Et,
2725
2742
  distance: P,
2726
2743
  translateX: P,
2727
2744
  translateY: P,
@@ -2731,7 +2748,7 @@ const yu = /\b([a-z-]*)\(.*?\)/gu, Un = {
2731
2748
  z: P,
2732
2749
  perspective: P,
2733
2750
  transformPerspective: P,
2734
- opacity: be,
2751
+ opacity: xe,
2735
2752
  originX: ts,
2736
2753
  originY: ts,
2737
2754
  originZ: P
@@ -2774,36 +2791,36 @@ const yu = /\b([a-z-]*)\(.*?\)/gu, Un = {
2774
2791
  ...vu,
2775
2792
  zIndex: fs,
2776
2793
  // SVG
2777
- fillOpacity: be,
2778
- strokeOpacity: be,
2794
+ fillOpacity: xe,
2795
+ strokeOpacity: xe,
2779
2796
  numOctaves: fs
2780
- }, xu = {
2797
+ }, bu = {
2781
2798
  ...Pi,
2782
2799
  // Color props
2783
- color: U,
2784
- backgroundColor: U,
2785
- outlineColor: U,
2786
- fill: U,
2787
- stroke: U,
2800
+ color: K,
2801
+ backgroundColor: K,
2802
+ outlineColor: K,
2803
+ fill: K,
2804
+ stroke: K,
2788
2805
  // Border props
2789
- borderColor: U,
2790
- borderTopColor: U,
2791
- borderRightColor: U,
2792
- borderBottomColor: U,
2793
- borderLeftColor: U,
2806
+ borderColor: K,
2807
+ borderTopColor: K,
2808
+ borderRightColor: K,
2809
+ borderBottomColor: K,
2810
+ borderLeftColor: K,
2794
2811
  filter: Un,
2795
2812
  WebkitFilter: Un
2796
- }, wo = (t) => xu[t];
2813
+ }, wo = (t) => bu[t];
2797
2814
  function _o(t, e) {
2798
2815
  let n = wo(t);
2799
- return n !== Un && (n = At), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2816
+ return n !== Un && (n = Vt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2800
2817
  }
2801
- const bu = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2818
+ const xu = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2802
2819
  function wu(t, e, n) {
2803
2820
  let i = 0, s;
2804
2821
  for (; i < t.length && !s; ) {
2805
2822
  const r = t[i];
2806
- typeof r == "string" && !bu.has(r) && we(r).values.length && (s = t[i]), i++;
2823
+ typeof r == "string" && !xu.has(r) && we(r).values.length && (s = t[i]), i++;
2807
2824
  }
2808
2825
  if (s && n)
2809
2826
  for (const r of e)
@@ -3163,8 +3180,8 @@ function ku(t, e, n = {}) {
3163
3180
  if (!ys(a))
3164
3181
  return;
3165
3182
  $e.add(l);
3166
- const u = e(l, a), c = (f, p) => {
3167
- window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), $e.has(l) && $e.delete(l), ys(f) && typeof u == "function" && u(f, { success: p });
3183
+ const u = e(l, a), c = (f, g) => {
3184
+ window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), $e.has(l) && $e.delete(l), ys(f) && typeof u == "function" && u(f, { success: g });
3168
3185
  }, h = (f) => {
3169
3186
  c(f, l === window || l === document || n.useGlobalTarget || Eo(l, f.target));
3170
3187
  }, d = (f) => {
@@ -3182,7 +3199,7 @@ function Mo(t) {
3182
3199
  function Ru(t) {
3183
3200
  return Mo(t) && t.tagName === "svg";
3184
3201
  }
3185
- const tt = (t) => !!(t && t.getVelocity), Du = [...bo, U, At], Lu = (t) => Du.find(xo(t)), Ai = ne({
3202
+ const tt = (t) => !!(t && t.getVelocity), Du = [...xo, K, Vt], Lu = (t) => Du.find(bo(t)), Ai = ne({
3186
3203
  transformPagePoint: (t) => t,
3187
3204
  isStatic: !1,
3188
3205
  reducedMotion: "never"
@@ -3241,7 +3258,7 @@ function Nu({ children: t, isPresent: e, anchorX: n, root: i }) {
3241
3258
  const { width: u, height: c, top: h, left: d, right: f } = o.current;
3242
3259
  if (e || !r.current || !u || !c)
3243
3260
  return;
3244
- const p = n === "left" ? `left: ${d}` : `right: ${f}`;
3261
+ const g = n === "left" ? `left: ${d}` : `right: ${f}`;
3245
3262
  r.current.dataset.motionPopId = s;
3246
3263
  const m = document.createElement("style");
3247
3264
  a && (m.nonce = a);
@@ -3251,35 +3268,35 @@ function Nu({ children: t, isPresent: e, anchorX: n, root: i }) {
3251
3268
  position: absolute !important;
3252
3269
  width: ${u}px !important;
3253
3270
  height: ${c}px !important;
3254
- ${p}px !important;
3271
+ ${g}px !important;
3255
3272
  top: ${h}px !important;
3256
3273
  }
3257
3274
  `), () => {
3258
3275
  v.contains(m) && v.removeChild(m);
3259
3276
  };
3260
- }, [e]), b(Bu, { isPresent: e, childRef: r, sizeRef: o, children: A.cloneElement(t, { ref: l }) });
3277
+ }, [e]), x(Bu, { isPresent: e, childRef: r, sizeRef: o, children: A.cloneElement(t, { ref: l }) });
3261
3278
  }
3262
3279
  const Fu = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: r, mode: o, anchorX: a, root: l }) => {
3263
3280
  const u = oi($u), c = Qn();
3264
- let h = !0, d = K(() => (h = !1, {
3281
+ let h = !0, d = U(() => (h = !1, {
3265
3282
  id: c,
3266
3283
  initial: e,
3267
3284
  isPresent: n,
3268
3285
  custom: s,
3269
3286
  onExitComplete: (f) => {
3270
3287
  u.set(f, !0);
3271
- for (const p of u.values())
3272
- if (!p)
3288
+ for (const g of u.values())
3289
+ if (!g)
3273
3290
  return;
3274
3291
  i && i();
3275
3292
  },
3276
3293
  register: (f) => (u.set(f, !1), () => u.delete(f))
3277
3294
  }), [n, u, i]);
3278
- return r && h && (d = { ...d }), K(() => {
3279
- u.forEach((f, p) => u.set(p, !1));
3295
+ return r && h && (d = { ...d }), U(() => {
3296
+ u.forEach((f, g) => u.set(g, !1));
3280
3297
  }, [n]), A.useEffect(() => {
3281
3298
  !n && !u.size && i && i();
3282
- }, [n]), o === "popLayout" && (t = b(Nu, { isPresent: n, anchorX: a, root: l, children: t })), b(sn.Provider, { value: d, children: t });
3299
+ }, [n]), o === "popLayout" && (t = x(Nu, { isPresent: n, anchorX: a, root: l, children: t })), x(sn.Provider, { value: d, children: t });
3283
3300
  };
3284
3301
  function $u() {
3285
3302
  return /* @__PURE__ */ new Map();
@@ -3289,42 +3306,42 @@ function Ao(t = !0) {
3289
3306
  if (e === null)
3290
3307
  return [!0, null];
3291
3308
  const { isPresent: n, onExitComplete: i, register: s } = e, r = Qn();
3292
- xt(() => {
3309
+ bt(() => {
3293
3310
  if (t)
3294
3311
  return s(r);
3295
3312
  }, [t]);
3296
- const o = bt(() => t && i && i(r), [r, i, t]);
3313
+ const o = wt(() => t && i && i(r), [r, i, t]);
3297
3314
  return !n && i ? [!1, o] : [!0];
3298
3315
  }
3299
3316
  const De = (t) => t.key || "";
3300
- function xs(t) {
3317
+ function bs(t) {
3301
3318
  const e = [];
3302
3319
  return _r.forEach(t, (n) => {
3303
3320
  Ta(n) && e.push(n);
3304
3321
  }), e;
3305
3322
  }
3306
3323
  const zu = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presenceAffectsLayout: s = !0, mode: r = "sync", propagate: o = !1, anchorX: a = "left", root: l }) => {
3307
- const [u, c] = Ao(o), h = K(() => xs(t), [t]), d = o && !u ? [] : h.map(De), f = H(!0), p = H(h), m = oi(() => /* @__PURE__ */ new Map()), [v, y] = wt(h), [x, g] = wt(h);
3324
+ const [u, c] = Ao(o), h = U(() => bs(t), [t]), d = o && !u ? [] : h.map(De), f = H(!0), g = H(h), m = oi(() => /* @__PURE__ */ new Map()), [v, y] = _t(h), [b, p] = _t(h);
3308
3325
  Br(() => {
3309
- f.current = !1, p.current = h;
3310
- for (let C = 0; C < x.length; C++) {
3311
- const _ = De(x[C]);
3326
+ f.current = !1, g.current = h;
3327
+ for (let C = 0; C < b.length; C++) {
3328
+ const _ = De(b[C]);
3312
3329
  d.includes(_) ? m.delete(_) : m.get(_) !== !0 && m.set(_, !1);
3313
3330
  }
3314
- }, [x, d.length, d.join("-")]);
3331
+ }, [b, d.length, d.join("-")]);
3315
3332
  const w = [];
3316
3333
  if (h !== v) {
3317
3334
  let C = [...h];
3318
- for (let _ = 0; _ < x.length; _++) {
3319
- const S = x[_], E = De(S);
3335
+ for (let _ = 0; _ < b.length; _++) {
3336
+ const S = b[_], E = De(S);
3320
3337
  d.includes(E) || (C.splice(_, 0, S), w.push(S));
3321
3338
  }
3322
- return r === "wait" && w.length && (C = w), g(xs(C)), y(h), null;
3339
+ return r === "wait" && w.length && (C = w), p(bs(C)), y(h), null;
3323
3340
  }
3324
- process.env.NODE_ENV !== "production" && r === "wait" && x.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
3341
+ process.env.NODE_ENV !== "production" && r === "wait" && b.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
3325
3342
  const { forceRender: T } = J(ri);
3326
- return b(Ze, { children: x.map((C) => {
3327
- const _ = De(C), S = o && !u ? !1 : h === x || d.includes(_), E = () => {
3343
+ return x(Ze, { children: b.map((C) => {
3344
+ const _ = De(C), S = o && !u ? !1 : h === b || d.includes(_), E = () => {
3328
3345
  if (m.has(_))
3329
3346
  m.set(_, !0);
3330
3347
  else
@@ -3332,11 +3349,11 @@ const zu = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presen
3332
3349
  let O = !0;
3333
3350
  m.forEach((nt) => {
3334
3351
  nt || (O = !1);
3335
- }), O && (T?.(), g(p.current), o && c?.(), i && i());
3352
+ }), O && (T?.(), p(g.current), o && c?.(), i && i());
3336
3353
  };
3337
- return b(Fu, { isPresent: S, initial: !f.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: s, mode: r, root: l, onExitComplete: S ? void 0 : E, anchorX: a, children: C }, _);
3354
+ return x(Fu, { isPresent: S, initial: !f.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: s, mode: r, root: l, onExitComplete: S ? void 0 : E, anchorX: a, children: C }, _);
3338
3355
  }) });
3339
- }, Vo = ne({ strict: !1 }), bs = {
3356
+ }, Vo = ne({ strict: !1 }), xs = {
3340
3357
  animation: [
3341
3358
  "animate",
3342
3359
  "variants",
@@ -3356,9 +3373,9 @@ const zu = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presen
3356
3373
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
3357
3374
  layout: ["layout", "layoutId"]
3358
3375
  }, ee = {};
3359
- for (const t in bs)
3376
+ for (const t in xs)
3360
3377
  ee[t] = {
3361
- isEnabled: (e) => bs[t].some((n) => !!e[n])
3378
+ isEnabled: (e) => xs[t].some((n) => !!e[n])
3362
3379
  };
3363
3380
  function ju(t) {
3364
3381
  for (const e in t)
@@ -3451,7 +3468,7 @@ function Gu(t, e) {
3451
3468
  }
3452
3469
  function Hu(t) {
3453
3470
  const { initial: e, animate: n } = Gu(t, J(rn));
3454
- return K(() => ({ initial: e, animate: n }), [ws(e), ws(n)]);
3471
+ return U(() => ({ initial: e, animate: n }), [ws(e), ws(n)]);
3455
3472
  }
3456
3473
  function ws(t) {
3457
3474
  return Array.isArray(t) ? t.join(" ") : t;
@@ -3521,7 +3538,7 @@ function Lo(t, e, n) {
3521
3538
  !tt(e[i]) && !Do(i, n) && (t[i] = e[i]);
3522
3539
  }
3523
3540
  function Ju({ transformTemplate: t }, e) {
3524
- return K(() => {
3541
+ return U(() => {
3525
3542
  const n = Di();
3526
3543
  return Ri(n, e, t), Object.assign({}, n.vars, n.style);
3527
3544
  }, [e]);
@@ -3571,7 +3588,7 @@ const Io = () => ({
3571
3588
  attrs: {}
3572
3589
  }), Bo = (t) => typeof t == "string" && t.toLowerCase() === "svg";
3573
3590
  function sh(t, e, n, i) {
3574
- const s = K(() => {
3591
+ const s = U(() => {
3575
3592
  const r = Io();
3576
3593
  return Oo(r, e, Bo(i), t.transformTemplate, t.style), {
3577
3594
  ...r.attrs,
@@ -3632,7 +3649,7 @@ function Li(t) {
3632
3649
  );
3633
3650
  }
3634
3651
  function oh(t, e, n, { latestValues: i }, s, r = !1) {
3635
- const a = (Li(t) ? sh : th)(e, i, s, t), l = Ku(e, typeof t == "string", r), u = t !== Tr ? { ...l, ...a, ref: n } : {}, { children: c } = e, h = K(() => tt(c) ? c.get() : c, [c]);
3652
+ const a = (Li(t) ? sh : th)(e, i, s, t), l = Ku(e, typeof t == "string", r), u = t !== Tr ? { ...l, ...a, ref: n } : {}, { children: c } = e, h = U(() => tt(c) ? c.get() : c, [c]);
3636
3653
  return Sa(t, {
3637
3654
  ...u,
3638
3655
  children: h
@@ -3677,19 +3694,19 @@ function lh(t, e, n, i) {
3677
3694
  if (h && typeof h != "boolean" && !on(h)) {
3678
3695
  const d = Array.isArray(h) ? h : [h];
3679
3696
  for (let f = 0; f < d.length; f++) {
3680
- const p = Oi(t, d[f]);
3681
- if (p) {
3682
- const { transitionEnd: m, transition: v, ...y } = p;
3683
- for (const x in y) {
3684
- let g = y[x];
3685
- if (Array.isArray(g)) {
3686
- const w = c ? g.length - 1 : 0;
3687
- g = g[w];
3697
+ const g = Oi(t, d[f]);
3698
+ if (g) {
3699
+ const { transitionEnd: m, transition: v, ...y } = g;
3700
+ for (const b in y) {
3701
+ let p = y[b];
3702
+ if (Array.isArray(p)) {
3703
+ const w = c ? p.length - 1 : 0;
3704
+ p = p[w];
3688
3705
  }
3689
- g !== null && (s[x] = g);
3706
+ p !== null && (s[b] = p);
3690
3707
  }
3691
- for (const x in m)
3692
- s[x] = m[x];
3708
+ for (const b in m)
3709
+ s[b] = m[b];
3693
3710
  }
3694
3711
  }
3695
3712
  }
@@ -3726,7 +3743,7 @@ function Ht(t) {
3726
3743
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
3727
3744
  }
3728
3745
  function dh(t, e, n) {
3729
- return bt(
3746
+ return wt(
3730
3747
  (i) => {
3731
3748
  i && t.onMount && t.onMount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Ht(n) && (n.current = i));
3732
3749
  },
@@ -3754,13 +3771,13 @@ function mh(t, e, n, i, s) {
3754
3771
  wr(() => {
3755
3772
  c && d.current && c.update(n, a);
3756
3773
  });
3757
- const f = n[$o], p = H(!!f && !window.MotionHandoffIsComplete?.(f) && window.MotionHasOptimisedAnimation?.(f));
3774
+ const f = n[$o], g = H(!!f && !window.MotionHandoffIsComplete?.(f) && window.MotionHasOptimisedAnimation?.(f));
3758
3775
  return Br(() => {
3759
- c && (d.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), c.scheduleRenderMicrotask(), p.current && c.animationState && c.animationState.animateChanges());
3760
- }), xt(() => {
3761
- c && (!p.current && c.animationState && c.animationState.animateChanges(), p.current && (queueMicrotask(() => {
3776
+ c && (d.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), c.scheduleRenderMicrotask(), g.current && c.animationState && c.animationState.animateChanges());
3777
+ }), bt(() => {
3778
+ c && (!g.current && c.animationState && c.animationState.animateChanges(), g.current && (queueMicrotask(() => {
3762
3779
  window.MotionHandoffMarkAsComplete?.(f);
3763
- }), p.current = !1), c.enteringChildren = void 0);
3780
+ }), g.current = !1), c.enteringChildren = void 0);
3764
3781
  }), c;
3765
3782
  }
3766
3783
  function ph(t, e, n, i) {
@@ -3788,7 +3805,7 @@ function jo(t) {
3788
3805
  if (t)
3789
3806
  return t.options.allowProjection !== !1 ? t.projection : jo(t.parent);
3790
3807
  }
3791
- function xn(t, { forwardMotionProps: e = !1 } = {}, n, i) {
3808
+ function bn(t, { forwardMotionProps: e = !1 } = {}, n, i) {
3792
3809
  n && ju(n);
3793
3810
  const s = Li(t) ? uh : ch;
3794
3811
  function r(a, l) {
@@ -3800,13 +3817,13 @@ function xn(t, { forwardMotionProps: e = !1 } = {}, n, i) {
3800
3817
  }, { isStatic: h } = c, d = Hu(a), f = s(a, h);
3801
3818
  if (!h && ai) {
3802
3819
  yh(c, n);
3803
- const p = vh(c);
3804
- u = p.MeasureLayout, d.visualElement = mh(t, f, c, i, p.ProjectionNode);
3820
+ const g = vh(c);
3821
+ u = g.MeasureLayout, d.visualElement = mh(t, f, c, i, g.ProjectionNode);
3805
3822
  }
3806
- return L(rn.Provider, { value: d, children: [u && d.visualElement ? b(u, { visualElement: d.visualElement, ...c }) : null, oh(t, a, dh(f, d.visualElement, l), f, h, e)] });
3823
+ return L(rn.Provider, { value: d, children: [u && d.visualElement ? x(u, { visualElement: d.visualElement, ...c }) : null, oh(t, a, dh(f, d.visualElement, l), f, h, e)] });
3807
3824
  }
3808
3825
  r.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
3809
- const o = ht(r);
3826
+ const o = dt(r);
3810
3827
  return o[hh] = t, o;
3811
3828
  }
3812
3829
  function gh({ layoutId: t }) {
@@ -3817,7 +3834,7 @@ function yh(t, e) {
3817
3834
  const n = J(Vo).strict;
3818
3835
  if (process.env.NODE_ENV !== "production" && e && n) {
3819
3836
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
3820
- t.ignoreStrict ? se(!1, i, "lazy-strict-mode") : Tt(!1, i, "lazy-strict-mode");
3837
+ t.ignoreStrict ? se(!1, i, "lazy-strict-mode") : St(!1, i, "lazy-strict-mode");
3821
3838
  }
3822
3839
  }
3823
3840
  function vh(t) {
@@ -3830,17 +3847,17 @@ function vh(t) {
3830
3847
  ProjectionNode: i.ProjectionNode
3831
3848
  };
3832
3849
  }
3833
- function xh(t, e) {
3850
+ function bh(t, e) {
3834
3851
  if (typeof Proxy > "u")
3835
- return xn;
3836
- const n = /* @__PURE__ */ new Map(), i = (r, o) => xn(r, o, t, e), s = (r, o) => (process.env.NODE_ENV !== "production" && di(!1, "motion() is deprecated. Use motion.create() instead."), i(r, o));
3852
+ return bn;
3853
+ const n = /* @__PURE__ */ new Map(), i = (r, o) => bn(r, o, t, e), s = (r, o) => (process.env.NODE_ENV !== "production" && di(!1, "motion() is deprecated. Use motion.create() instead."), i(r, o));
3837
3854
  return new Proxy(s, {
3838
3855
  /**
3839
3856
  * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
3840
3857
  * The prop name is passed through as `key` and we can use that to generate a `motion`
3841
3858
  * DOM component with that name.
3842
3859
  */
3843
- get: (r, o) => o === "create" ? i : (n.has(o) || n.set(o, xn(o, void 0, t, e)), n.get(o))
3860
+ get: (r, o) => o === "create" ? i : (n.has(o) || n.set(o, bn(o, void 0, t, e)), n.get(o))
3844
3861
  });
3845
3862
  }
3846
3863
  function Wo({ top: t, left: e, right: n, bottom: i }) {
@@ -3849,7 +3866,7 @@ function Wo({ top: t, left: e, right: n, bottom: i }) {
3849
3866
  y: { min: t, max: i }
3850
3867
  };
3851
3868
  }
3852
- function bh({ x: t, y: e }) {
3869
+ function xh({ x: t, y: e }) {
3853
3870
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
3854
3871
  }
3855
3872
  function wh(t, e) {
@@ -3863,11 +3880,11 @@ function wh(t, e) {
3863
3880
  right: i.x
3864
3881
  };
3865
3882
  }
3866
- function bn(t) {
3883
+ function xn(t) {
3867
3884
  return t === void 0 || t === 1;
3868
3885
  }
3869
3886
  function Kn({ scale: t, scaleX: e, scaleY: n }) {
3870
- return !bn(t) || !bn(e) || !bn(n);
3887
+ return !xn(t) || !xn(e) || !xn(n);
3871
3888
  }
3872
3889
  function Ot(t) {
3873
3890
  return Kn(t) || Uo(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
@@ -4005,7 +4022,7 @@ class Eh {
4005
4022
  this.current = e, Ch.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), Ho.current || Sh(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Hn.current, process.env.NODE_ENV !== "production" && di(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
4006
4023
  }
4007
4024
  unmount() {
4008
- this.projection && this.projection.unmount(), Mt(this.notifyUpdate), Mt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
4025
+ this.projection && this.projection.unmount(), At(this.notifyUpdate), At(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
4009
4026
  for (const e in this.events)
4010
4027
  this.events[e].clear();
4011
4028
  for (const e in this.features) {
@@ -4142,7 +4159,7 @@ class Eh {
4142
4159
  */
4143
4160
  readValue(e, n) {
4144
4161
  let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
4145
- return i != null && (typeof i == "string" && (Nr(i) || $r(i)) ? i = parseFloat(i) : !Lu(i) && At.test(n) && (i = _o(e, n)), this.setBaseTarget(e, tt(i) ? i.get() : i)), tt(i) ? i.get() : i;
4162
+ return i != null && (typeof i == "string" && (Nr(i) || $r(i)) ? i = parseFloat(i) : !Lu(i) && Vt.test(n) && (i = _o(e, n)), this.setBaseTarget(e, tt(i) ? i.get() : i)), tt(i) ? i.get() : i;
4146
4163
  }
4147
4164
  /**
4148
4165
  * Set the base target to later animate back to. This is currently
@@ -4319,8 +4336,8 @@ function Yn(t, e) {
4319
4336
  const n = t.getValue("willChange");
4320
4337
  if (Ih(n))
4321
4338
  return n.add(e);
4322
- if (!n && St.WillChange) {
4323
- const i = new St.WillChange("auto");
4339
+ if (!n && Ct.WillChange) {
4340
+ const i = new Ct.WillChange("auto");
4324
4341
  t.addValue("willChange", i), i.add(e);
4325
4342
  }
4326
4343
  }
@@ -4375,7 +4392,7 @@ const Ni = (t, e, n, i = {}, s, r) => (o) => {
4375
4392
  };
4376
4393
  Uh(a) || Object.assign(c, Wh(t, c)), c.duration && (c.duration = /* @__PURE__ */ pt(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ pt(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
4377
4394
  let h = !1;
4378
- if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (Wn(c), c.delay === 0 && (h = !0)), (St.instantAnimations || St.skipAnimations) && (h = !0, Wn(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, h && !r && e.get() !== void 0) {
4395
+ if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (Wn(c), c.delay === 0 && (h = !0)), (Ct.instantAnimations || Ct.skipAnimations) && (h = !0, Wn(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, h && !r && e.get() !== void 0) {
4379
4396
  const d = Nh(c.keyframes, a);
4380
4397
  if (d !== void 0) {
4381
4398
  N.update(() => {
@@ -4401,15 +4418,15 @@ function Jo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
4401
4418
  const f = {
4402
4419
  delay: n,
4403
4420
  ...Ci(r || {}, c)
4404
- }, p = h.get();
4405
- if (p !== void 0 && !h.isAnimating && !Array.isArray(d) && d === p && !f.velocity)
4421
+ }, g = h.get();
4422
+ if (g !== void 0 && !h.isAnimating && !Array.isArray(d) && d === g && !f.velocity)
4406
4423
  continue;
4407
4424
  let m = !1;
4408
4425
  if (window.MotionHandoffAnimation) {
4409
4426
  const y = Zo(t);
4410
4427
  if (y) {
4411
- const x = window.MotionHandoffAnimation(y, c, N);
4412
- x !== null && (f.startTime = x, m = !0);
4428
+ const b = window.MotionHandoffAnimation(y, c, N);
4429
+ b !== null && (f.startTime = b, m = !0);
4413
4430
  }
4414
4431
  }
4415
4432
  Yn(t, c), h.start(Ni(c, h, d, t.shouldReduceMotion && vo.has(c) ? { type: !1 } : f, t, m));
@@ -4500,8 +4517,8 @@ function Jh(t) {
4500
4517
  const s = (l) => (u, c) => {
4501
4518
  const h = Jt(t, c, l === "exit" ? t.presenceContext?.custom : void 0);
4502
4519
  if (h) {
4503
- const { transition: d, transitionEnd: f, ...p } = h;
4504
- u = { ...u, ...p, ...f };
4520
+ const { transition: d, transitionEnd: f, ...g } = h;
4521
+ u = { ...u, ...g, ...f };
4505
4522
  }
4506
4523
  return u;
4507
4524
  };
@@ -4510,39 +4527,39 @@ function Jh(t) {
4510
4527
  }
4511
4528
  function o(l) {
4512
4529
  const { props: u } = t, c = ea(t.parent) || {}, h = [], d = /* @__PURE__ */ new Set();
4513
- let f = {}, p = 1 / 0;
4530
+ let f = {}, g = 1 / 0;
4514
4531
  for (let v = 0; v < Xh; v++) {
4515
- const y = Yh[v], x = n[y], g = u[y] !== void 0 ? u[y] : c[y], w = _e(g), T = y === l ? x.isActive : null;
4516
- T === !1 && (p = v);
4517
- let C = g === c[y] && g !== u[y] && w;
4518
- if (C && i && t.manuallyAnimateOnMount && (C = !1), x.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
4519
- !x.isActive && T === null || // If we didn't and don't have any defined prop for this animation type
4520
- !g && !x.prevProp || // Or if the prop doesn't define an animation
4521
- on(g) || typeof g == "boolean")
4532
+ const y = Yh[v], b = n[y], p = u[y] !== void 0 ? u[y] : c[y], w = _e(p), T = y === l ? b.isActive : null;
4533
+ T === !1 && (g = v);
4534
+ let C = p === c[y] && p !== u[y] && w;
4535
+ if (C && i && t.manuallyAnimateOnMount && (C = !1), b.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
4536
+ !b.isActive && T === null || // If we didn't and don't have any defined prop for this animation type
4537
+ !p && !b.prevProp || // Or if the prop doesn't define an animation
4538
+ on(p) || typeof p == "boolean")
4522
4539
  continue;
4523
- const _ = Qh(x.prevProp, g);
4540
+ const _ = Qh(b.prevProp, p);
4524
4541
  let S = _ || // If we're making this variant active, we want to always make it active
4525
- y === l && x.isActive && !C && w || // If we removed a higher-priority variant (i is in reverse order)
4526
- v > p && w, E = !1;
4527
- const O = Array.isArray(g) ? g : [g];
4542
+ y === l && b.isActive && !C && w || // If we removed a higher-priority variant (i is in reverse order)
4543
+ v > g && w, E = !1;
4544
+ const O = Array.isArray(p) ? p : [p];
4528
4545
  let nt = O.reduce(s(y), {});
4529
4546
  T === !1 && (nt = {});
4530
- const { prevResolvedValues: kt = {} } = x, Rt = {
4531
- ...kt,
4547
+ const { prevResolvedValues: xt = {} } = b, Rt = {
4548
+ ...xt,
4532
4549
  ...nt
4533
- }, Ct = (z) => {
4534
- S = !0, d.has(z) && (E = !0, d.delete(z)), x.needsAnimating[z] = !0;
4550
+ }, Pt = (z) => {
4551
+ S = !0, d.has(z) && (E = !0, d.delete(z)), b.needsAnimating[z] = !0;
4535
4552
  const V = t.getValue(z);
4536
4553
  V && (V.liveStyle = !1);
4537
4554
  };
4538
4555
  for (const z in Rt) {
4539
- const V = nt[z], D = kt[z];
4556
+ const V = nt[z], D = xt[z];
4540
4557
  if (f.hasOwnProperty(z))
4541
4558
  continue;
4542
4559
  let j = !1;
4543
- qn(V) && qn(D) ? j = !ta(V, D) : j = V !== D, j ? V != null ? Ct(z) : d.add(z) : V !== void 0 && d.has(z) ? Ct(z) : x.protectedKeys[z] = !0;
4560
+ qn(V) && qn(D) ? j = !ta(V, D) : j = V !== D, j ? V != null ? Pt(z) : d.add(z) : V !== void 0 && d.has(z) ? Pt(z) : b.protectedKeys[z] = !0;
4544
4561
  }
4545
- x.prevProp = g, x.prevResolvedValues = nt, x.isActive && (f = { ...f, ...nt }), i && t.blockInitialAnimation && (S = !1);
4562
+ b.prevProp = p, b.prevResolvedValues = nt, b.isActive && (f = { ...f, ...nt }), i && t.blockInitialAnimation && (S = !1);
4546
4563
  const zt = C && _;
4547
4564
  S && (!zt || E) && h.push(...O.map((z) => {
4548
4565
  const V = { type: y };
@@ -4566,8 +4583,8 @@ function Jh(t) {
4566
4583
  y && y.transition && (v.transition = y.transition);
4567
4584
  }
4568
4585
  d.forEach((y) => {
4569
- const x = t.getBaseTarget(y), g = t.getValue(y);
4570
- g && (g.liveStyle = !0), v[y] = x ?? null;
4586
+ const b = t.getBaseTarget(y), p = t.getValue(y);
4587
+ p && (p.liveStyle = !0), v[y] = b ?? null;
4571
4588
  }), h.push({ animation: v });
4572
4589
  }
4573
4590
  let m = !!h.length;
@@ -4614,14 +4631,14 @@ function ks() {
4614
4631
  exit: Dt()
4615
4632
  };
4616
4633
  }
4617
- class Vt {
4634
+ class kt {
4618
4635
  constructor(e) {
4619
4636
  this.isMounted = !1, this.node = e;
4620
4637
  }
4621
4638
  update() {
4622
4639
  }
4623
4640
  }
4624
- class td extends Vt {
4641
+ class td extends kt {
4625
4642
  /**
4626
4643
  * We dynamically generate the AnimationState manager as it contains a reference
4627
4644
  * to the underlying animation library. We only want to load that if we load this,
@@ -4649,7 +4666,7 @@ class td extends Vt {
4649
4666
  }
4650
4667
  }
4651
4668
  let ed = 0;
4652
- class nd extends Vt {
4669
+ class nd extends kt {
4653
4670
  constructor() {
4654
4671
  super(...arguments), this.id = ed++;
4655
4672
  }
@@ -4719,7 +4736,7 @@ function Ls(t, e, n) {
4719
4736
  function ge(t, e, n) {
4720
4737
  Ls(t.x, e.x, n.x), Ls(t.y, e.y, n.y);
4721
4738
  }
4722
- function lt(t) {
4739
+ function ct(t) {
4723
4740
  return [t("x"), t("y")];
4724
4741
  }
4725
4742
  const sa = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Os = (t, e) => Math.abs(t - e);
@@ -4732,22 +4749,22 @@ class ra {
4732
4749
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
4733
4750
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
4734
4751
  return;
4735
- const d = _n(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, p = hd(d.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
4736
- if (!f && !p)
4752
+ const d = _n(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, g = hd(d.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
4753
+ if (!f && !g)
4737
4754
  return;
4738
4755
  const { point: m } = d, { timestamp: v } = Y;
4739
4756
  this.history.push({ ...m, timestamp: v });
4740
- const { onStart: y, onMove: x } = this.handlers;
4741
- f || (y && y(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, d);
4757
+ const { onStart: y, onMove: b } = this.handlers;
4758
+ f || (y && y(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, d);
4742
4759
  }, this.handlePointerMove = (d, f) => {
4743
4760
  this.lastMoveEvent = d, this.lastMoveEventInfo = wn(f, this.transformPagePoint), N.update(this.updatePoint, !0);
4744
4761
  }, this.handlePointerUp = (d, f) => {
4745
4762
  this.end();
4746
- const { onEnd: p, onSessionEnd: m, resumeAnimation: v } = this.handlers;
4763
+ const { onEnd: g, onSessionEnd: m, resumeAnimation: v } = this.handlers;
4747
4764
  if (this.dragSnapToOrigin && v && v(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4748
4765
  return;
4749
4766
  const y = _n(d.type === "pointercancel" ? this.lastMoveEventInfo : wn(f, this.transformPagePoint), this.history);
4750
- this.startEvent && p && p(d, y), m && m(d, y);
4767
+ this.startEvent && g && g(d, y), m && m(d, y);
4751
4768
  }, !Mi(e))
4752
4769
  return;
4753
4770
  this.dragSnapToOrigin = r, this.handlers = n, this.transformPagePoint = i, this.distanceThreshold = o, this.contextWindow = s || window;
@@ -4760,7 +4777,7 @@ class ra {
4760
4777
  this.handlers = e;
4761
4778
  }
4762
4779
  end() {
4763
- this.removeListeners && this.removeListeners(), Mt(this.updatePoint);
4780
+ this.removeListeners && this.removeListeners(), At(this.updatePoint);
4764
4781
  }
4765
4782
  }
4766
4783
  function wn(t, e) {
@@ -4792,7 +4809,7 @@ function fd(t, e) {
4792
4809
  n--;
4793
4810
  if (!i)
4794
4811
  return { x: 0, y: 0 };
4795
- const r = /* @__PURE__ */ ct(s.timestamp - i.timestamp);
4812
+ const r = /* @__PURE__ */ ut(s.timestamp - i.timestamp);
4796
4813
  if (r === 0)
4797
4814
  return { x: 0, y: 0 };
4798
4815
  const o = {
@@ -4829,14 +4846,14 @@ function gd(t, e) {
4829
4846
  function yd(t, e) {
4830
4847
  let n = 0.5;
4831
4848
  const i = et(t), s = et(e);
4832
- return s > i ? n = /* @__PURE__ */ xe(e.min, e.max - i, t.min) : i > s && (n = /* @__PURE__ */ xe(t.min, t.max - s, e.min)), _t(0, 1, n);
4849
+ return s > i ? n = /* @__PURE__ */ be(e.min, e.max - i, t.min) : i > s && (n = /* @__PURE__ */ be(t.min, t.max - s, e.min)), Tt(0, 1, n);
4833
4850
  }
4834
4851
  function vd(t, e) {
4835
4852
  const n = {};
4836
4853
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
4837
4854
  }
4838
4855
  const Zn = 0.35;
4839
- function xd(t = Zn) {
4856
+ function bd(t = Zn) {
4840
4857
  return t === !1 ? t = 0 : t === !0 && (t = Zn), {
4841
4858
  x: Fs(t, "left", "right"),
4842
4859
  y: Fs(t, "top", "bottom")
@@ -4851,7 +4868,7 @@ function Fs(t, e, n) {
4851
4868
  function $s(t, e) {
4852
4869
  return typeof t == "number" ? t : t[e] || 0;
4853
4870
  }
4854
- const bd = /* @__PURE__ */ new WeakMap();
4871
+ const xd = /* @__PURE__ */ new WeakMap();
4855
4872
  class wd {
4856
4873
  constructor(e) {
4857
4874
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = W(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
@@ -4864,36 +4881,36 @@ class wd {
4864
4881
  const { dragSnapToOrigin: d } = this.getProps();
4865
4882
  d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ae(h).point);
4866
4883
  }, o = (h, d) => {
4867
- const { drag: f, dragPropagation: p, onDragStart: m } = this.getProps();
4868
- if (f && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = Pu(f), !this.openDragLock))
4884
+ const { drag: f, dragPropagation: g, onDragStart: m } = this.getProps();
4885
+ if (f && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = Pu(f), !this.openDragLock))
4869
4886
  return;
4870
- this.latestPointerEvent = h, this.latestPanInfo = d, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), lt((y) => {
4871
- let x = this.getAxisMotionValue(y).get() || 0;
4872
- if (vt.test(x)) {
4873
- const { projection: g } = this.visualElement;
4874
- if (g && g.layout) {
4875
- const w = g.layout.layoutBox[y];
4876
- w && (x = et(w) * (parseFloat(x) / 100));
4887
+ this.latestPointerEvent = h, this.latestPanInfo = d, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ct((y) => {
4888
+ let b = this.getAxisMotionValue(y).get() || 0;
4889
+ if (vt.test(b)) {
4890
+ const { projection: p } = this.visualElement;
4891
+ if (p && p.layout) {
4892
+ const w = p.layout.layoutBox[y];
4893
+ w && (b = et(w) * (parseFloat(b) / 100));
4877
4894
  }
4878
4895
  }
4879
- this.originPoint[y] = x;
4896
+ this.originPoint[y] = b;
4880
4897
  }), m && N.postRender(() => m(h, d)), Yn(this.visualElement, "transform");
4881
4898
  const { animationState: v } = this.visualElement;
4882
4899
  v && v.setActive("whileDrag", !0);
4883
4900
  }, a = (h, d) => {
4884
4901
  this.latestPointerEvent = h, this.latestPanInfo = d;
4885
- const { dragPropagation: f, dragDirectionLock: p, onDirectionLock: m, onDrag: v } = this.getProps();
4902
+ const { dragPropagation: f, dragDirectionLock: g, onDirectionLock: m, onDrag: v } = this.getProps();
4886
4903
  if (!f && !this.openDragLock)
4887
4904
  return;
4888
4905
  const { offset: y } = d;
4889
- if (p && this.currentDirection === null) {
4906
+ if (g && this.currentDirection === null) {
4890
4907
  this.currentDirection = _d(y), this.currentDirection !== null && m && m(this.currentDirection);
4891
4908
  return;
4892
4909
  }
4893
4910
  this.updateAxis("x", d.point, y), this.updateAxis("y", d.point, y), this.visualElement.render(), v && v(h, d);
4894
4911
  }, l = (h, d) => {
4895
4912
  this.latestPointerEvent = h, this.latestPanInfo = d, this.stop(h, d), this.latestPointerEvent = null, this.latestPanInfo = null;
4896
- }, u = () => lt((h) => this.getAnimationState(h) === "paused" && this.getAxisMotionValue(h).animation?.play()), { dragSnapToOrigin: c } = this.getProps();
4913
+ }, u = () => ct((h) => this.getAnimationState(h) === "paused" && this.getAxisMotionValue(h).animation?.play()), { dragSnapToOrigin: c } = this.getProps();
4897
4914
  this.panSession = new ra(e, {
4898
4915
  onSessionStart: r,
4899
4916
  onStart: o,
@@ -4939,7 +4956,7 @@ class wd {
4939
4956
  }
4940
4957
  resolveConstraints() {
4941
4958
  const { dragConstraints: e, dragElastic: n } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, s = this.constraints;
4942
- e && Ht(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && i ? this.constraints = pd(i.layoutBox, e) : this.constraints = !1, this.elastic = xd(n), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && lt((r) => {
4959
+ e && Ht(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && i ? this.constraints = pd(i.layoutBox, e) : this.constraints = !1, this.elastic = bd(n), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && ct((r) => {
4943
4960
  this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = vd(i.layoutBox[r], this.constraints[r]));
4944
4961
  });
4945
4962
  }
@@ -4948,25 +4965,25 @@ class wd {
4948
4965
  if (!e || !Ht(e))
4949
4966
  return !1;
4950
4967
  const i = e.current;
4951
- Tt(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
4968
+ St(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
4952
4969
  const { projection: s } = this.visualElement;
4953
4970
  if (!s || !s.layout)
4954
4971
  return !1;
4955
4972
  const r = Th(i, s.root, this.visualElement.getTransformPagePoint());
4956
4973
  let o = gd(s.layout.layoutBox, r);
4957
4974
  if (n) {
4958
- const a = n(bh(o));
4975
+ const a = n(xh(o));
4959
4976
  this.hasMutatedConstraints = !!a, a && (o = Wo(a));
4960
4977
  }
4961
4978
  return o;
4962
4979
  }
4963
4980
  startAnimation(e) {
4964
- const { drag: n, dragMomentum: i, dragElastic: s, dragTransition: r, dragSnapToOrigin: o, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u = lt((c) => {
4981
+ const { drag: n, dragMomentum: i, dragElastic: s, dragTransition: r, dragSnapToOrigin: o, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u = ct((c) => {
4965
4982
  if (!Le(c, n, this.currentDirection))
4966
4983
  return;
4967
4984
  let h = l && l[c] || {};
4968
4985
  o && (h = { min: 0, max: 0 });
4969
- const d = s ? 200 : 1e6, f = s ? 40 : 1e7, p = {
4986
+ const d = s ? 200 : 1e6, f = s ? 40 : 1e7, g = {
4970
4987
  type: "inertia",
4971
4988
  velocity: i ? e[c] : 0,
4972
4989
  bounceStiffness: d,
@@ -4977,7 +4994,7 @@ class wd {
4977
4994
  ...r,
4978
4995
  ...h
4979
4996
  };
4980
- return this.startAxisValueAnimation(c, p);
4997
+ return this.startAxisValueAnimation(c, g);
4981
4998
  });
4982
4999
  return Promise.all(u).then(a);
4983
5000
  }
@@ -4986,10 +5003,10 @@ class wd {
4986
5003
  return Yn(this.visualElement, e), i.start(Ni(e, i, 0, n, this.visualElement, !1));
4987
5004
  }
4988
5005
  stopAnimation() {
4989
- lt((e) => this.getAxisMotionValue(e).stop());
5006
+ ct((e) => this.getAxisMotionValue(e).stop());
4990
5007
  }
4991
5008
  pauseAnimation() {
4992
- lt((e) => this.getAxisMotionValue(e).animation?.pause());
5009
+ ct((e) => this.getAxisMotionValue(e).animation?.pause());
4993
5010
  }
4994
5011
  getAnimationState(e) {
4995
5012
  return this.getAxisMotionValue(e).animation?.state;
@@ -5005,7 +5022,7 @@ class wd {
5005
5022
  return s || this.visualElement.getValue(e, (i.initial ? i.initial[e] : void 0) || 0);
5006
5023
  }
5007
5024
  snapToCursor(e) {
5008
- lt((n) => {
5025
+ ct((n) => {
5009
5026
  const { drag: i } = this.getProps();
5010
5027
  if (!Le(n, i, this.currentDirection))
5011
5028
  return;
@@ -5029,7 +5046,7 @@ class wd {
5029
5046
  return;
5030
5047
  this.stopAnimation();
5031
5048
  const s = { x: 0, y: 0 };
5032
- lt((o) => {
5049
+ ct((o) => {
5033
5050
  const a = this.getAxisMotionValue(o);
5034
5051
  if (a && this.constraints !== !1) {
5035
5052
  const l = a.get();
@@ -5037,7 +5054,7 @@ class wd {
5037
5054
  }
5038
5055
  });
5039
5056
  const { transformTemplate: r } = this.visualElement.getProps();
5040
- this.visualElement.current.style.transform = r ? r({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), lt((o) => {
5057
+ this.visualElement.current.style.transform = r ? r({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), ct((o) => {
5041
5058
  if (!Le(o, e, null))
5042
5059
  return;
5043
5060
  const a = this.getAxisMotionValue(o), { min: l, max: u } = this.constraints[o];
@@ -5047,7 +5064,7 @@ class wd {
5047
5064
  addListeners() {
5048
5065
  if (!this.visualElement.current)
5049
5066
  return;
5050
- bd.set(this.visualElement, this);
5067
+ xd.set(this.visualElement, this);
5051
5068
  const e = this.visualElement.current, n = me(e, "pointerdown", (l) => {
5052
5069
  const { drag: u, dragListener: c = !0 } = this.getProps();
5053
5070
  u && c && this.start(l);
@@ -5057,7 +5074,7 @@ class wd {
5057
5074
  }, { projection: s } = this.visualElement, r = s.addEventListener("measure", i);
5058
5075
  s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), N.read(i);
5059
5076
  const o = Se(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: u }) => {
5060
- this.isDragging && u && (lt((c) => {
5077
+ this.isDragging && u && (ct((c) => {
5061
5078
  const h = this.getAxisMotionValue(c);
5062
5079
  h && (this.originPoint[c] += l[c].translate, h.set(h.get() + l[c].translate));
5063
5080
  }), this.visualElement.render());
@@ -5086,13 +5103,13 @@ function _d(t, e = 10) {
5086
5103
  let n = null;
5087
5104
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
5088
5105
  }
5089
- class Td extends Vt {
5106
+ class Td extends kt {
5090
5107
  constructor(e) {
5091
- super(e), this.removeGroupControls = ut, this.removeListeners = ut, this.controls = new wd(e);
5108
+ super(e), this.removeGroupControls = ht, this.removeListeners = ht, this.controls = new wd(e);
5092
5109
  }
5093
5110
  mount() {
5094
5111
  const { dragControls: e } = this.node.getProps();
5095
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || ut;
5112
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || ht;
5096
5113
  }
5097
5114
  unmount() {
5098
5115
  this.removeGroupControls(), this.removeListeners();
@@ -5101,9 +5118,9 @@ class Td extends Vt {
5101
5118
  const zs = (t) => (e, n) => {
5102
5119
  t && N.postRender(() => t(e, n));
5103
5120
  };
5104
- class Sd extends Vt {
5121
+ class Sd extends kt {
5105
5122
  constructor() {
5106
- super(...arguments), this.removePointerDownListener = ut;
5123
+ super(...arguments), this.removePointerDownListener = ht;
5107
5124
  }
5108
5125
  onPointerDown(e) {
5109
5126
  this.session = new ra(e, this.createPanHandlers(), {
@@ -5161,10 +5178,10 @@ const ue = {
5161
5178
  }
5162
5179
  }, Cd = {
5163
5180
  correct: (t, { treeScale: e, projectionDelta: n }) => {
5164
- const i = t, s = At.parse(t);
5181
+ const i = t, s = Vt.parse(t);
5165
5182
  if (s.length > 5)
5166
5183
  return i;
5167
- const r = At.createTransformer(t), o = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
5184
+ const r = Vt.createTransformer(t), o = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
5168
5185
  s[0 + o] /= a, s[1 + o] /= l;
5169
5186
  const u = $(a, l, 0.5);
5170
5187
  return typeof s[2 + o] == "number" && (s[2 + o] /= u), typeof s[3 + o] == "number" && (s[3 + o] /= u), r(s);
@@ -5213,7 +5230,7 @@ class Pd extends Ca {
5213
5230
  }
5214
5231
  function aa(t) {
5215
5232
  const [e, n] = Ao(), i = J(ri);
5216
- return b(Pd, { ...t, layoutGroup: i, switchLayoutGroup: J(zo), isPresent: e, safeToRemove: n });
5233
+ return x(Pd, { ...t, layoutGroup: i, switchLayoutGroup: J(zo), isPresent: e, safeToRemove: n });
5217
5234
  }
5218
5235
  const Ed = {
5219
5236
  borderRadius: {
@@ -5253,9 +5270,9 @@ class Vd {
5253
5270
  function kd(t, e) {
5254
5271
  const n = it.now(), i = ({ timestamp: s }) => {
5255
5272
  const r = s - n;
5256
- r >= e && (Mt(i), t(r - e));
5273
+ r >= e && (At(i), t(r - e));
5257
5274
  };
5258
- return N.setup(i, !0), () => Mt(i);
5275
+ return N.setup(i, !0), () => At(i);
5259
5276
  }
5260
5277
  const la = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Rd = la.length, Ws = (t) => typeof t == "string" ? parseFloat(t) : t, Us = (t) => typeof t == "number" || P.test(t);
5261
5278
  function Dd(t, e, n, i, s, r) {
@@ -5272,9 +5289,9 @@ function Dd(t, e, n, i, s, r) {
5272
5289
  function Ks(t, e) {
5273
5290
  return t[e] !== void 0 ? t[e] : t.borderRadius;
5274
5291
  }
5275
- const Ld = /* @__PURE__ */ ca(0, 0.5, qr), Od = /* @__PURE__ */ ca(0.5, 0.95, ut);
5292
+ const Ld = /* @__PURE__ */ ca(0, 0.5, qr), Od = /* @__PURE__ */ ca(0.5, 0.95, ht);
5276
5293
  function ca(t, e, n) {
5277
- return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ xe(t, e, i));
5294
+ return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ be(t, e, i));
5278
5295
  }
5279
5296
  function Gs(t, e) {
5280
5297
  t.min = e.min, t.max = e.max;
@@ -5383,8 +5400,8 @@ function zd(t, e, n) {
5383
5400
  let i = "";
5384
5401
  const s = t.x.translate / e.x, r = t.y.translate / e.y, o = n?.z || 0;
5385
5402
  if ((s || r || o) && (i = `translate3d(${s}px, ${r}px, ${o}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
5386
- const { transformPerspective: u, rotate: c, rotateX: h, rotateY: d, skewX: f, skewY: p } = n;
5387
- u && (i = `perspective(${u}px) ${i}`), c && (i += `rotate(${c}deg) `), h && (i += `rotateX(${h}deg) `), d && (i += `rotateY(${d}deg) `), f && (i += `skewX(${f}deg) `), p && (i += `skewY(${p}deg) `);
5403
+ const { transformPerspective: u, rotate: c, rotateX: h, rotateY: d, skewX: f, skewY: g } = n;
5404
+ u && (i = `perspective(${u}px) ${i}`), c && (i += `rotate(${c}deg) `), h && (i += `rotateX(${h}deg) `), d && (i += `rotateY(${d}deg) `), f && (i += `skewX(${f}deg) `), g && (i += `skewY(${g}deg) `);
5388
5405
  }
5389
5406
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
5390
5407
  return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
@@ -5454,15 +5471,15 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5454
5471
  this.target = void 0, this.relativeTarget = void 0;
5455
5472
  return;
5456
5473
  }
5457
- const p = this.options.transition || u.getDefaultTransition() || nf, { onLayoutAnimationStart: m, onLayoutAnimationComplete: v } = u.getProps(), y = !this.targetLayout || !ha(this.targetLayout, f), x = !h && d;
5458
- if (this.options.layoutRoot || this.resumeFrom || x || h && (y || !this.currentAnimation)) {
5474
+ const g = this.options.transition || u.getDefaultTransition() || nf, { onLayoutAnimationStart: m, onLayoutAnimationComplete: v } = u.getProps(), y = !this.targetLayout || !ha(this.targetLayout, f), b = !h && d;
5475
+ if (this.options.layoutRoot || this.resumeFrom || b || h && (y || !this.currentAnimation)) {
5459
5476
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
5460
- const g = {
5461
- ...Ci(p, "layout"),
5477
+ const p = {
5478
+ ...Ci(g, "layout"),
5462
5479
  onPlay: m,
5463
5480
  onComplete: v
5464
5481
  };
5465
- (u.shouldReduceMotion || this.options.layoutRoot) && (g.delay = 0, g.type = !1), this.startAnimation(g), this.setAnimationOrigin(c, x);
5482
+ (u.shouldReduceMotion || this.options.layoutRoot) && (p.delay = 0, p.type = !1), this.startAnimation(p), this.setAnimationOrigin(c, b);
5466
5483
  } else
5467
5484
  h || sr(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
5468
5485
  this.targetLayout = f;
@@ -5471,7 +5488,7 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5471
5488
  unmount() {
5472
5489
  this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
5473
5490
  const o = this.getStack();
5474
- o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), Mt(this.updateProjection);
5491
+ o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), At(this.updateProjection);
5475
5492
  }
5476
5493
  // only on the root
5477
5494
  blockUpdate() {
@@ -5523,7 +5540,7 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5523
5540
  }
5524
5541
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Yd), this.nodes.forEach(Ud), this.nodes.forEach(Kd)) : this.nodes.forEach(ir), this.clearAllSnapshots();
5525
5542
  const a = it.now();
5526
- Y.delta = _t(0, 1e3 / 60, a - Y.timestamp), Y.timestamp = a, Y.isProcessing = !0, fn.update.process(Y), fn.preRender.process(Y), fn.render.process(Y), Y.isProcessing = !1;
5543
+ Y.delta = Tt(0, 1e3 / 60, a - Y.timestamp), Y.timestamp = a, Y.isProcessing = !0, fn.update.process(Y), fn.preRender.process(Y), fn.render.process(Y), Y.isProcessing = !1;
5527
5544
  }
5528
5545
  didUpdate() {
5529
5546
  this.updateScheduled || (this.updateScheduled = !0, Ei.read(this.scheduleUpdate));
@@ -5711,16 +5728,16 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5711
5728
  setAnimationOrigin(o, a = !1) {
5712
5729
  const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, h = Xt();
5713
5730
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
5714
- const d = W(), f = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = f !== p, v = this.getStack(), y = !v || v.members.length <= 1, x = !!(m && !y && this.options.crossfade === !0 && !this.path.some(ef));
5731
+ const d = W(), f = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, m = f !== g, v = this.getStack(), y = !v || v.members.length <= 1, b = !!(m && !y && this.options.crossfade === !0 && !this.path.some(ef));
5715
5732
  this.animationProgress = 0;
5716
- let g;
5733
+ let p;
5717
5734
  this.mixTargetDelta = (w) => {
5718
5735
  const T = w / 1e3;
5719
- rr(h.x, o.x, T), rr(h.y, o.y, T), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ge(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), tf(this.relativeTarget, this.relativeTargetOrigin, d, T), g && Fd(this.relativeTarget, g) && (this.isProjectionDirty = !1), g || (g = W()), ot(g, this.relativeTarget)), m && (this.animationValues = c, Dd(c, u, this.latestValues, T, x, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
5736
+ rr(h.x, o.x, T), rr(h.y, o.y, T), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ge(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), tf(this.relativeTarget, this.relativeTargetOrigin, d, T), p && Fd(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = W()), ot(p, this.relativeTarget)), m && (this.animationValues = c, Dd(c, u, this.latestValues, T, b, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
5720
5737
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
5721
5738
  }
5722
5739
  startAnimation(o) {
5723
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (Mt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = N.update(() => {
5740
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (At(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = N.update(() => {
5724
5741
  je.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = te(0)), this.currentAnimation = Md(this.motionValue, [0, 1e3], {
5725
5742
  ...o,
5726
5743
  velocity: 0,
@@ -5832,16 +5849,16 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5832
5849
  l && (h = l(c, h)), o.transform = h;
5833
5850
  const { x: d, y: f } = this.projectionDelta;
5834
5851
  o.transformOrigin = `${d.origin * 100}% ${f.origin * 100}% 0`, u.animationValues ? o.opacity = u === this ? c.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : c.opacityExit : o.opacity = u === this ? c.opacity !== void 0 ? c.opacity : "" : c.opacityExit !== void 0 ? c.opacityExit : 0;
5835
- for (const p in Te) {
5836
- if (c[p] === void 0)
5852
+ for (const g in Te) {
5853
+ if (c[g] === void 0)
5837
5854
  continue;
5838
- const { correct: m, applyTo: v, isCSSVariable: y } = Te[p], x = h === "none" ? c[p] : m(c[p], u);
5855
+ const { correct: m, applyTo: v, isCSSVariable: y } = Te[g], b = h === "none" ? c[g] : m(c[g], u);
5839
5856
  if (v) {
5840
- const g = v.length;
5841
- for (let w = 0; w < g; w++)
5842
- o[v[w]] = x;
5857
+ const p = v.length;
5858
+ for (let w = 0; w < p; w++)
5859
+ o[v[w]] = b;
5843
5860
  } else
5844
- y ? this.options.visualElement.renderState.vars[p] = x : o[p] = x;
5861
+ y ? this.options.visualElement.renderState.vars[g] = b : o[g] = b;
5845
5862
  }
5846
5863
  this.options.layoutId && (o.pointerEvents = u === this ? ze(a?.pointerEvents) || "" : "none");
5847
5864
  }
@@ -5861,10 +5878,10 @@ function Kd(t) {
5861
5878
  const e = t.resumeFrom?.snapshot || t.snapshot;
5862
5879
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
5863
5880
  const { layoutBox: n, measuredBox: i } = t.layout, { animationType: s } = t.options, r = e.source !== t.layout.source;
5864
- s === "size" ? lt((c) => {
5881
+ s === "size" ? ct((c) => {
5865
5882
  const h = r ? e.measuredBox[c] : e.layoutBox[c], d = et(h);
5866
5883
  h.min = n[c].min, h.max = h.min + d;
5867
- }) : ma(s, e.layoutBox, n) && lt((c) => {
5884
+ }) : ma(s, e.layoutBox, n) && ct((c) => {
5868
5885
  const h = r ? e.measuredBox[c] : e.layoutBox[c], d = et(n[c]);
5869
5886
  h.max = h.min + d, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[c].max = t.relativeTarget[c].min + d);
5870
5887
  });
@@ -5881,8 +5898,8 @@ function Kd(t) {
5881
5898
  if (h && d) {
5882
5899
  const f = W();
5883
5900
  ge(f, e.layoutBox, h.layoutBox);
5884
- const p = W();
5885
- ge(p, n, d.layoutBox), ha(f, p) || (u = !0), c.options.layoutRoot && (t.relativeTarget = p, t.relativeTargetOrigin = f, t.relativeParent = c);
5901
+ const g = W();
5902
+ ge(g, n, d.layoutBox), ha(f, g) || (u = !0), c.options.layoutRoot && (t.relativeTarget = g, t.relativeTargetOrigin = f, t.relativeParent = c);
5886
5903
  }
5887
5904
  }
5888
5905
  }
@@ -5949,7 +5966,7 @@ function ef(t) {
5949
5966
  const nf = {
5950
5967
  duration: 0.45,
5951
5968
  ease: [0.4, 0, 0.1, 1]
5952
- }, ar = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), lr = ar("applewebkit/") && !ar("chrome/") ? Math.round : ut;
5969
+ }, ar = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), lr = ar("applewebkit/") && !ar("chrome/") ? Math.round : ht;
5953
5970
  function cr(t) {
5954
5971
  t.min = lr(t.min), t.max = lr(t.max);
5955
5972
  }
@@ -6003,7 +6020,7 @@ function ur(t, e, n) {
6003
6020
  const s = "onHover" + n, r = i[s];
6004
6021
  r && N.postRender(() => r(e, Ae(e)));
6005
6022
  }
6006
- class lf extends Vt {
6023
+ class lf extends kt {
6007
6024
  mount() {
6008
6025
  const { current: e } = this.node;
6009
6026
  e && (this.unmount = Eu(e, (n, i) => (ur(this.node, i, "Start"), (s) => ur(this.node, s, "End"))));
@@ -6011,7 +6028,7 @@ class lf extends Vt {
6011
6028
  unmount() {
6012
6029
  }
6013
6030
  }
6014
- class cf extends Vt {
6031
+ class cf extends kt {
6015
6032
  constructor() {
6016
6033
  super(...arguments), this.isActive = !1;
6017
6034
  }
@@ -6041,7 +6058,7 @@ function hr(t, e, n) {
6041
6058
  const s = "onTap" + (n === "End" ? "" : n), r = i[s];
6042
6059
  r && N.postRender(() => r(e, Ae(e)));
6043
6060
  }
6044
- class uf extends Vt {
6061
+ class uf extends kt {
6045
6062
  mount() {
6046
6063
  const { current: e } = this.node;
6047
6064
  e && (this.unmount = ku(e, (n, i) => (hr(this.node, i, "Start"), (s, { success: r }) => hr(this.node, s, r ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
@@ -6071,7 +6088,7 @@ const pf = {
6071
6088
  some: 0,
6072
6089
  all: 1
6073
6090
  };
6074
- class gf extends Vt {
6091
+ class gf extends kt {
6075
6092
  constructor() {
6076
6093
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
6077
6094
  }
@@ -6119,17 +6136,41 @@ const vf = {
6119
6136
  hover: {
6120
6137
  Feature: lf
6121
6138
  }
6122
- }, xf = {
6139
+ }, bf = {
6123
6140
  layout: {
6124
6141
  ProjectionNode: pa,
6125
6142
  MeasureLayout: aa
6126
6143
  }
6127
- }, bf = {
6144
+ }, xf = {
6128
6145
  ...id,
6129
6146
  ...vf,
6130
6147
  ...af,
6131
- ...xf
6132
- }, Fi = /* @__PURE__ */ xh(bf, Rh), wf = (t) => {
6148
+ ...bf
6149
+ }, Fi = /* @__PURE__ */ bh(xf, Rh), wf = "_primary_13825_8", _f = "_secondary_13825_12", Tf = "_tertiary_13825_16", Sf = "_positive_13825_20", Cf = "_negative_13825_24", Pf = "_warning_13825_28", Ef = "_accent_13825_32", Mf = "_inverse_13825_36", Af = "_text_13825_111", Vf = "_regular_13825_117", kf = "_medium_13825_121", Rf = "_semibold_13825_125", Df = "_bold_13825_129", Oe = {
6150
+ primary: wf,
6151
+ secondary: _f,
6152
+ tertiary: Tf,
6153
+ positive: Sf,
6154
+ negative: Cf,
6155
+ warning: Pf,
6156
+ accent: Ef,
6157
+ inverse: Mf,
6158
+ "title-1": "_title-1_13825_41",
6159
+ "title-2": "_title-2_13825_51",
6160
+ "title-3": "_title-3_13825_61",
6161
+ "headline-1": "_headline-1_13825_76",
6162
+ "headline-2": "_headline-2_13825_81",
6163
+ "headline-3": "_headline-3_13825_86",
6164
+ "body-1": "_body-1_13825_91",
6165
+ "body-2": "_body-2_13825_96",
6166
+ "caption-1": "_caption-1_13825_101",
6167
+ "caption-2": "_caption-2_13825_106",
6168
+ text: Af,
6169
+ regular: Vf,
6170
+ medium: kf,
6171
+ semibold: Rf,
6172
+ bold: Df
6173
+ }, Lf = (t) => {
6133
6174
  let e;
6134
6175
  t.center ? e = "center" : t.left ? e = "left" : t.right && (e = "right");
6135
6176
  let n;
@@ -6146,83 +6187,62 @@ const vf = {
6146
6187
  textDecoration: t.decoration,
6147
6188
  textAlign: e,
6148
6189
  textTransform: n,
6190
+ /** @deprecated TODO: remove this after deprecation of color prop @use colorName or style.color instead */
6149
6191
  color: t.color,
6150
6192
  opacity: t.disabled ? 0.5 : void 0,
6151
6193
  overflow: t.overflow
6152
6194
  });
6153
- }, _f = "_primary_13825_8", Tf = "_secondary_13825_12", Sf = "_tertiary_13825_16", Cf = "_positive_13825_20", Pf = "_negative_13825_24", Ef = "_warning_13825_28", Mf = "_accent_13825_32", Af = "_inverse_13825_36", Vf = "_text_13825_111", kf = "_regular_13825_117", Rf = "_medium_13825_121", Df = "_semibold_13825_125", Lf = "_bold_13825_129", Oe = {
6154
- primary: _f,
6155
- secondary: Tf,
6156
- tertiary: Sf,
6157
- positive: Cf,
6158
- negative: Pf,
6159
- warning: Ef,
6160
- accent: Mf,
6161
- inverse: Af,
6162
- "title-1": "_title-1_13825_41",
6163
- "title-2": "_title-2_13825_51",
6164
- "title-3": "_title-3_13825_61",
6165
- "headline-1": "_headline-1_13825_76",
6166
- "headline-2": "_headline-2_13825_81",
6167
- "headline-3": "_headline-3_13825_86",
6168
- "body-1": "_body-1_13825_91",
6169
- "body-2": "_body-2_13825_96",
6170
- "caption-1": "_caption-1_13825_101",
6171
- "caption-2": "_caption-2_13825_106",
6172
- text: Vf,
6173
- regular: kf,
6174
- medium: Rf,
6175
- semibold: Df,
6176
- bold: Lf
6177
- }, B = ht((t, e) => {
6178
- const {
6179
- children: n,
6180
- className: i,
6181
- variant: s = "body-1",
6182
- fontWeight: r = "medium",
6183
- tag: o = "p",
6184
- colorName: a = "primary",
6185
- style: l,
6186
- clickOpacity: u = 0.5,
6187
- opacityDuration: c = 200,
6188
- onClick: h,
6189
- disabled: d,
6190
- ...f
6191
- } = t, [p, m] = wt(!1), v = !!h, y = () => v && m(!0), x = () => v && m(!1), g = o, w = v ? Q({
6192
- opacity: p ? u : 1,
6193
- transition: `opacity ${c}ms ease`
6194
- }) : "";
6195
- return /* @__PURE__ */ b(
6196
- g,
6197
- {
6198
- ref: e,
6199
- ...f,
6200
- className: I(
6201
- Oe.text,
6202
- Oe[s],
6203
- Oe[r],
6204
- Oe[a],
6205
- wf(t),
6206
- w,
6207
- i
6208
- ),
6195
+ }, B = dt(
6196
+ (t, e) => {
6197
+ const {
6198
+ children: n,
6199
+ className: i,
6200
+ variant: s = "body-1",
6201
+ fontWeight: r = "medium",
6202
+ tag: o = "p",
6203
+ colorName: a = "primary",
6209
6204
  style: l,
6205
+ clickOpacity: u = 0.5,
6206
+ opacityDuration: c = 200,
6210
6207
  onClick: h,
6211
- onMouseDown: y,
6212
- onMouseUp: x,
6213
- onMouseLeave: x,
6214
- onTouchStart: y,
6215
- onTouchEnd: x,
6216
- role: v ? "button" : void 0,
6217
- tabIndex: v ? 0 : void 0,
6218
- children: n
6219
- }
6220
- );
6221
- });
6208
+ disabled: d,
6209
+ ...f
6210
+ } = t, [g, m] = _t(!1), v = !!h, y = () => v && m(!0), b = () => v && m(!1), p = o, w = v ? Q({
6211
+ opacity: g ? u : 1,
6212
+ transition: `opacity ${c}ms ease`
6213
+ }) : "";
6214
+ return /* @__PURE__ */ x(
6215
+ p,
6216
+ {
6217
+ ref: e,
6218
+ ...f,
6219
+ className: I(
6220
+ Oe.text,
6221
+ Oe[s],
6222
+ Oe[a],
6223
+ Oe[r],
6224
+ w,
6225
+ i,
6226
+ Lf(t)
6227
+ ),
6228
+ style: l,
6229
+ onClick: h,
6230
+ onMouseDown: y,
6231
+ onMouseUp: b,
6232
+ onMouseLeave: b,
6233
+ onTouchStart: y,
6234
+ onTouchEnd: b,
6235
+ role: v ? "button" : void 0,
6236
+ tabIndex: v ? 0 : void 0,
6237
+ children: n
6238
+ }
6239
+ );
6240
+ }
6241
+ );
6222
6242
  B.displayName = "Text";
6223
6243
  const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
6224
6244
  loader: If
6225
- }, Nf = ({ color: t = "var(--text-accent)" }) => /* @__PURE__ */ b(
6245
+ }, Nf = ({ color: t = "var(--text-accent)" }) => /* @__PURE__ */ x(
6226
6246
  "span",
6227
6247
  {
6228
6248
  className: I(
@@ -6328,7 +6348,7 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
6328
6348
  default:
6329
6349
  return Q(s);
6330
6350
  }
6331
- }, kp = ({
6351
+ }, Rp = ({
6332
6352
  disabled: t,
6333
6353
  loading: e,
6334
6354
  onClick: n,
@@ -6343,15 +6363,15 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
6343
6363
  textFontWeight: h,
6344
6364
  borderColor: d,
6345
6365
  color: f = "accent",
6346
- borderRadius: p,
6366
+ borderRadius: g,
6347
6367
  width: m = "full",
6348
6368
  size: v = "md",
6349
6369
  iconLeft: y,
6350
- iconRight: x,
6351
- intensity: g = "primary",
6370
+ iconRight: b,
6371
+ intensity: p = "primary",
6352
6372
  ...w
6353
6373
  }) => {
6354
- const T = K(() => {
6374
+ const T = U(() => {
6355
6375
  switch (m) {
6356
6376
  case "full":
6357
6377
  return "100%";
@@ -6360,14 +6380,19 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
6360
6380
  default:
6361
6381
  return m;
6362
6382
  }
6363
- }, [m]), C = K(() => u || (l === "filled" ? f === "neutral" ? "var(--fill-neutral-secondary)" : `var(--fill-${f}-${g})` : "transparent"), [l, t, u, f, g]), _ = K(() => {
6364
- if (c) return c;
6365
- if (g === "primary") {
6383
+ }, [m]), C = U(() => u || (l === "filled" ? f === "neutral" ? "var(--fill-neutral-secondary)" : `var(--fill-${f}-${p})` : "transparent"), [l, t, u, f, p]), _ = U(() => {
6384
+ if (p === "primary") {
6366
6385
  if (f === "neutral") return "var(--text-secondary)";
6367
6386
  if (l === "filled") return "var(--text-inverse)";
6368
- }
6369
- return `var(--text-${f}, #111)`;
6370
- }, [l, t, c, f, g]), S = K(() => d || (l === "outline" ? `var(--border-${f}-${g})` : "transparent"), [l, d, f, g]), E = K(() => {
6387
+ } else if (f === "neutral") return "var(--text-secondary)";
6388
+ return `var(--text-${f})`;
6389
+ }, [p, f, l]), S = U(() => {
6390
+ if (p === "primary") {
6391
+ if (f === "neutral") return "secondary";
6392
+ if (l === "filled") return "inverse";
6393
+ } else if (f === "neutral") return "secondary";
6394
+ return f;
6395
+ }, [l, t, c, f, p]), E = U(() => d || (l === "outline" ? `var(--border-${f}-${p})` : "transparent"), [l, d, f, p]), O = U(() => {
6371
6396
  switch (v) {
6372
6397
  case "lg":
6373
6398
  return he.lg;
@@ -6379,22 +6404,22 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
6379
6404
  default:
6380
6405
  return he.md;
6381
6406
  }
6382
- }, [v]), O = I(
6407
+ }, [v]), nt = I(
6383
6408
  Ff,
6384
- jf(l, f, g, t),
6409
+ jf(l, f, p, t),
6385
6410
  zf[l],
6386
6411
  s,
6387
6412
  t ? r : void 0,
6388
6413
  Q({
6389
- borderRadius: p ? he[p] : E,
6414
+ borderRadius: g ? he[g] : O,
6390
6415
  backgroundColor: C,
6391
- borderColor: S,
6392
- color: _,
6416
+ borderColor: E,
6417
+ color: c,
6393
6418
  width: "100%",
6394
6419
  height: $f[v],
6395
6420
  opacity: t ? 0.7 : 1
6396
6421
  })
6397
- ), nt = K(() => {
6422
+ ), xt = U(() => {
6398
6423
  switch (v) {
6399
6424
  case "lg":
6400
6425
  case "md":
@@ -6406,45 +6431,55 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
6406
6431
  return "body-1";
6407
6432
  }
6408
6433
  }, [v]);
6409
- return /* @__PURE__ */ b(M, { className: I(i), w: T, relative: !0, overflow: "hidden", children: /* @__PURE__ */ L(
6410
- Fi.button,
6434
+ return /* @__PURE__ */ x(
6435
+ M,
6411
6436
  {
6412
- whileTap: !t && !e ? {
6413
- scale: 0.99,
6414
- boxShadow: "inset 0 0 0 10000px rgba(0,0,0,0.1)",
6415
- transition: { duration: 0 }
6416
- } : {},
6417
- className: O,
6418
- disabled: t || e,
6419
- onClick: n,
6420
- ...w,
6421
- children: [
6422
- e ? /* @__PURE__ */ b(Nf, { color: _ }) : /* @__PURE__ */ L(Ze, { children: [
6423
- y,
6424
- /* @__PURE__ */ b(
6425
- Of,
6426
- {
6427
- color: _,
6428
- variant: nt,
6429
- className: o,
6430
- textOverflow: "ellipsis",
6431
- overflow: "hidden",
6432
- children: a
6433
- }
6434
- ),
6435
- x
6436
- ] }),
6437
- /* @__PURE__ */ b(nn, {})
6438
- ]
6437
+ className: I(i),
6438
+ w: T,
6439
+ relative: !0,
6440
+ overflow: "hidden",
6441
+ children: /* @__PURE__ */ L(
6442
+ Fi.button,
6443
+ {
6444
+ whileTap: !t && !e ? {
6445
+ scale: 0.99,
6446
+ boxShadow: "inset 0 0 0 10000px rgba(0,0,0,0.1)",
6447
+ transition: { duration: 0 }
6448
+ } : {},
6449
+ className: nt,
6450
+ disabled: t || e,
6451
+ onClick: n,
6452
+ ...w,
6453
+ children: [
6454
+ e ? /* @__PURE__ */ x(Nf, { color: _ }) : /* @__PURE__ */ L(Ze, { children: [
6455
+ y,
6456
+ /* @__PURE__ */ x(
6457
+ Of,
6458
+ {
6459
+ style: { color: c },
6460
+ colorName: S,
6461
+ variant: xt,
6462
+ className: o,
6463
+ textOverflow: "ellipsis",
6464
+ overflow: "hidden",
6465
+ children: a
6466
+ }
6467
+ ),
6468
+ b
6469
+ ] }),
6470
+ /* @__PURE__ */ x(nn, {})
6471
+ ]
6472
+ }
6473
+ )
6439
6474
  }
6440
- ) });
6475
+ );
6441
6476
  }, Wf = (t) => /* @__PURE__ */ A.createElement("svg", { viewBox: "0 0 24 24", fill: "none", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z", fill: "currentColor" })), Uf = (t) => /* @__PURE__ */ A.createElement("svg", { viewBox: "0 0 24 24", fill: "none", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M19 13H5v-2h14v2z", fill: "currentColor" })), Kf = "_checkbox_1hy9q_8", Gf = "_disabled_1hy9q_15", Hf = "_checkbox__input_1hy9q_27", qf = "_checkbox__box_1hy9q_35", Lt = {
6442
6477
  checkbox: Kf,
6443
6478
  disabled: Gf,
6444
6479
  checkbox__input: Hf,
6445
6480
  checkbox__box: qf,
6446
6481
  "checkbox__box--checked": "_checkbox__box--checked_1hy9q_51"
6447
- }, Yf = { sm: 20, md: 24 }, ga = ht(
6482
+ }, Yf = { sm: 20, md: 24 }, ga = dt(
6448
6483
  ({
6449
6484
  checked: t,
6450
6485
  onChange: e,
@@ -6459,82 +6494,96 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
6459
6494
  value: c,
6460
6495
  required: h
6461
6496
  }, d) => {
6462
- const [f, p] = wt(!1), m = t !== void 0, v = m ? t : f, y = (w) => {
6463
- m || p(w.target.checked), e?.(w);
6464
- }, x = Yf[s], g = v || i;
6465
- return /* @__PURE__ */ L("label", { className: I(Lt.checkbox, {
6466
- [Lt.disabled]: n
6467
- }), children: [
6468
- /* @__PURE__ */ L(
6469
- M,
6470
- {
6471
- relative: !0,
6472
- display: "inline-flex",
6473
- style: {
6474
- "--checkbox-size": `${x}px`,
6475
- "--checkbox-size-double": `${x * 2}px`
6476
- },
6477
- children: [
6478
- /* @__PURE__ */ b(
6479
- "input",
6497
+ const [f, g] = _t(!1), m = t !== void 0, v = m ? t : f, y = (w) => {
6498
+ m || g(w.target.checked), e?.(w);
6499
+ }, b = Yf[s], p = v || i;
6500
+ return /* @__PURE__ */ L(
6501
+ "label",
6502
+ {
6503
+ className: I(Lt.checkbox, {
6504
+ [Lt.disabled]: n
6505
+ }),
6506
+ children: [
6507
+ /* @__PURE__ */ L(
6508
+ M,
6509
+ {
6510
+ relative: !0,
6511
+ display: "inline-flex",
6512
+ style: {
6513
+ "--checkbox-size": `${b}px`,
6514
+ "--checkbox-size-double": `${b * 2}px`
6515
+ },
6516
+ children: [
6517
+ /* @__PURE__ */ x(
6518
+ "input",
6519
+ {
6520
+ ref: d,
6521
+ type: "checkbox",
6522
+ checked: v,
6523
+ onChange: y,
6524
+ onClick: (w) => w.stopPropagation(),
6525
+ disabled: n,
6526
+ name: u,
6527
+ value: c,
6528
+ required: h,
6529
+ className: I(Lt.checkbox__input, {
6530
+ [Lt.disabled]: n
6531
+ })
6532
+ }
6533
+ ),
6534
+ /* @__PURE__ */ x(
6535
+ "div",
6536
+ {
6537
+ className: I(
6538
+ Lt.checkbox__box,
6539
+ p && Lt["checkbox__box--checked"],
6540
+ {
6541
+ [Lt.disabled]: n
6542
+ }
6543
+ ),
6544
+ children: p && (i ? /* @__PURE__ */ x(Uf, { width: b * 0.75, height: b * 0.75 }) : /* @__PURE__ */ x(Wf, { width: b * 0.75, height: b * 0.75 }))
6545
+ }
6546
+ )
6547
+ ]
6548
+ }
6549
+ ),
6550
+ (r || a) && /* @__PURE__ */ L(M, { gap: 4, children: [
6551
+ r && /* @__PURE__ */ x(
6552
+ B,
6480
6553
  {
6481
- ref: d,
6482
- type: "checkbox",
6483
- checked: v,
6484
- onChange: y,
6485
- onClick: (w) => w.stopPropagation(),
6486
- disabled: n,
6487
- name: u,
6488
- value: c,
6489
- required: h,
6490
- className: I(Lt.checkbox__input, {
6491
- [Lt.disabled]: n
6492
- })
6554
+ colorName: o,
6555
+ variant: s === "sm" ? "body-2" : "body-1",
6556
+ children: r
6493
6557
  }
6494
6558
  ),
6495
- /* @__PURE__ */ b(
6496
- "div",
6559
+ a && /* @__PURE__ */ x(
6560
+ B,
6497
6561
  {
6498
- className: I(
6499
- Lt.checkbox__box,
6500
- g && Lt["checkbox__box--checked"],
6501
- {
6502
- [Lt.disabled]: n
6503
- }
6504
- ),
6505
- children: g && (i ? /* @__PURE__ */ b(Uf, { width: x * 0.75, height: x * 0.75 }) : /* @__PURE__ */ b(Wf, { width: x * 0.75, height: x * 0.75 }))
6562
+ variant: "body-2",
6563
+ colorName: l,
6564
+ children: a
6506
6565
  }
6507
6566
  )
6508
- ]
6509
- }
6510
- ),
6511
- (r || a) && /* @__PURE__ */ L(M, { gap: 4, children: [
6512
- r && /* @__PURE__ */ b(
6513
- B,
6514
- {
6515
- colorName: o,
6516
- variant: s === "sm" ? "body-2" : "body-1",
6517
- children: r
6518
- }
6519
- ),
6520
- a && /* @__PURE__ */ b(B, { variant: "body-2", colorName: l, children: a })
6521
- ] })
6522
- ] });
6567
+ ] })
6568
+ ]
6569
+ }
6570
+ );
6523
6571
  }
6524
6572
  );
6525
6573
  ga.displayName = "Checkbox";
6526
- const Xf = (t) => /* @__PURE__ */ A.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("g", { opacity: 0.5 }, /* @__PURE__ */ A.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.0002 17.9999C14.4185 17.9999 18.0002 14.4182 18.0002 9.99991C18.0002 5.58163 14.4185 1.99991 10.0002 1.99991C5.58197 1.99991 2.00024 5.58163 2.00024 9.99991C2.00024 14.4182 5.58197 17.9999 10.0002 17.9999ZM6.46514 6.46446C6.85566 6.07393 7.48883 6.07393 7.87935 6.46446L9.64712 8.23222C9.84238 8.42749 10.159 8.42749 10.3542 8.23222L12.122 6.46446C12.5125 6.07393 13.1457 6.07393 13.5362 6.46446C13.9267 6.85498 13.9267 7.48814 13.5362 7.87867L11.7684 9.64644C11.5732 9.8417 11.5732 10.1583 11.7684 10.3535L13.5362 12.1213C13.9267 12.5118 13.9267 13.145 13.5362 13.5355C13.1457 13.926 12.5125 13.926 12.122 13.5355L10.3542 11.7678C10.159 11.5725 9.84238 11.5725 9.64712 11.7678L7.87935 13.5355C7.48883 13.926 6.85566 13.926 6.46514 13.5355C6.07462 13.145 6.07462 12.5118 6.46514 12.1213L8.23291 10.3535C8.42817 10.1583 8.42817 9.8417 8.23291 9.64644L6.46514 7.87867C6.07462 7.48815 6.07462 6.85498 6.46514 6.46446Z", fill: "currentColor" }))), Zf = "_disabled_15p1l_20", Jf = "_input_15p1l_8", Qf = "_sm_15p1l_61", tm = "_md_15p1l_66", em = "_error_15p1l_71", nm = "_white_15p1l_75", im = "_gray_15p1l_79", dt = {
6527
- "input-container": "_input-container_15p1l_8",
6574
+ const Xf = (t) => /* @__PURE__ */ A.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("g", { opacity: 0.5 }, /* @__PURE__ */ A.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.0002 17.9999C14.4185 17.9999 18.0002 14.4182 18.0002 9.99991C18.0002 5.58163 14.4185 1.99991 10.0002 1.99991C5.58197 1.99991 2.00024 5.58163 2.00024 9.99991C2.00024 14.4182 5.58197 17.9999 10.0002 17.9999ZM6.46514 6.46446C6.85566 6.07393 7.48883 6.07393 7.87935 6.46446L9.64712 8.23222C9.84238 8.42749 10.159 8.42749 10.3542 8.23222L12.122 6.46446C12.5125 6.07393 13.1457 6.07393 13.5362 6.46446C13.9267 6.85498 13.9267 7.48814 13.5362 7.87867L11.7684 9.64644C11.5732 9.8417 11.5732 10.1583 11.7684 10.3535L13.5362 12.1213C13.9267 12.5118 13.9267 13.145 13.5362 13.5355C13.1457 13.926 12.5125 13.926 12.122 13.5355L10.3542 11.7678C10.159 11.5725 9.84238 11.5725 9.64712 11.7678L7.87935 13.5355C7.48883 13.926 6.85566 13.926 6.46514 13.5355C6.07462 13.145 6.07462 12.5118 6.46514 12.1213L8.23291 10.3535C8.42817 10.1583 8.42817 9.8417 8.23291 9.64644L6.46514 7.87867C6.07462 7.48815 6.07462 6.85498 6.46514 6.46446Z", fill: "currentColor" }))), Zf = "_disabled_j0s55_20", Jf = "_multiline_j0s55_24", Qf = "_input_j0s55_8", tm = "_sm_j0s55_64", em = "_md_j0s55_69", nm = "_error_j0s55_74", im = "_white_j0s55_78", sm = "_gray_j0s55_82", at = {
6575
+ "input-container": "_input-container_j0s55_8",
6528
6576
  disabled: Zf,
6529
- input: Jf,
6530
- "input-text-size_sm": "_input-text-size_sm_15p1l_52",
6531
- "input-text-size_md": "_input-text-size_md_15p1l_56",
6532
- sm: Qf,
6533
- md: tm,
6534
- error: em,
6535
- white: nm,
6536
- gray: im,
6537
- "clear-button": "_clear-button_15p1l_83"
6577
+ multiline: Jf,
6578
+ input: Qf,
6579
+ "input-text-size_sm": "_input-text-size_sm_j0s55_55",
6580
+ "input-text-size_md": "_input-text-size_md_j0s55_59",
6581
+ sm: tm,
6582
+ md: em,
6583
+ error: nm,
6584
+ white: im,
6585
+ gray: sm,
6586
+ "clear-button": "_clear-button_j0s55_86"
6538
6587
  };
6539
6588
  function dr(t) {
6540
6589
  return {
@@ -6543,7 +6592,7 @@ function dr(t) {
6543
6592
  currentTarget: t
6544
6593
  };
6545
6594
  }
6546
- const sm = ht((t, e) => {
6595
+ const rm = dt((t, e) => {
6547
6596
  const {
6548
6597
  label: n,
6549
6598
  prompt: i,
@@ -6557,8 +6606,8 @@ const sm = ht((t, e) => {
6557
6606
  disabled: h,
6558
6607
  value: d,
6559
6608
  defaultValue: f,
6560
- ...p
6561
- } = t, m = t.multiline === !0, v = H(null), y = H(null), [x, g] = ii(
6609
+ ...g
6610
+ } = t, m = t.multiline === !0, v = H(null), y = H(null), [b, p] = ii(
6562
6611
  d !== void 0 ? String(d) : void 0,
6563
6612
  f !== void 0 ? String(f) : ""
6564
6613
  );
@@ -6574,7 +6623,7 @@ const sm = ht((t, e) => {
6574
6623
  }
6575
6624
  }));
6576
6625
  const w = (_) => {
6577
- if (g(_.target.value), m) {
6626
+ if (p(_.target.value), m) {
6578
6627
  const S = t.onChange;
6579
6628
  S?.(_);
6580
6629
  } else {
@@ -6582,11 +6631,11 @@ const sm = ht((t, e) => {
6582
6631
  S?.(_);
6583
6632
  }
6584
6633
  };
6585
- xt(() => {
6634
+ bt(() => {
6586
6635
  m && t.autoResize && y.current && (y.current.style.height = "auto", y.current.style.height = `${y.current.scrollHeight}px`);
6587
- }, [x, m, t.autoResize]);
6636
+ }, [b, m, t.autoResize]);
6588
6637
  const T = () => {
6589
- if (g(""), !m) {
6638
+ if (p(""), !m) {
6590
6639
  const S = v.current;
6591
6640
  if (S) {
6592
6641
  S.value = "";
@@ -6606,20 +6655,20 @@ const sm = ht((t, e) => {
6606
6655
  const {
6607
6656
  rows: O,
6608
6657
  autoResize: nt,
6609
- onChange: kt,
6658
+ onChange: xt,
6610
6659
  multiline: Rt,
6611
- ...Ct
6612
- } = p;
6613
- return /* @__PURE__ */ b(
6660
+ ...Pt
6661
+ } = g;
6662
+ return /* @__PURE__ */ x(
6614
6663
  "textarea",
6615
6664
  {
6616
6665
  ref: y,
6617
6666
  rows: t.rows ?? 3,
6618
- className: I(dt.input, { [dt.disabled]: h }),
6667
+ className: I(at.input, { [at.disabled]: h }),
6619
6668
  disabled: h,
6620
6669
  maxLength: t.maxLength,
6621
- ...Ct,
6622
- value: x,
6670
+ ...Pt,
6671
+ value: b,
6623
6672
  onChange: w
6624
6673
  }
6625
6674
  );
@@ -6628,22 +6677,24 @@ const sm = ht((t, e) => {
6628
6677
  onChange: _,
6629
6678
  multiline: S,
6630
6679
  ...E
6631
- } = p;
6632
- return /* @__PURE__ */ b(
6680
+ } = g;
6681
+ return /* @__PURE__ */ x(
6633
6682
  "input",
6634
6683
  {
6635
6684
  ...E,
6636
6685
  ref: v,
6637
- className: I(dt.input, dt[`input-text-size_${o}`], { [dt.disabled]: h }),
6686
+ className: I(at.input, at[`input-text-size_${o}`], {
6687
+ [at.disabled]: h
6688
+ }),
6638
6689
  disabled: h,
6639
6690
  type: t.type ?? "text",
6640
- value: x,
6691
+ value: b,
6641
6692
  onChange: w
6642
6693
  }
6643
6694
  );
6644
6695
  };
6645
6696
  return /* @__PURE__ */ L(M, { w: "full", gap: "var(--spacing-sm)", children: [
6646
- n && /* @__PURE__ */ b(
6697
+ n && /* @__PURE__ */ x(
6647
6698
  B,
6648
6699
  {
6649
6700
  variant: "body-2",
@@ -6656,31 +6707,30 @@ const sm = ht((t, e) => {
6656
6707
  M,
6657
6708
  {
6658
6709
  row: !0,
6659
- alignItems: "center",
6710
+ alignItems: m ? "flex-start" : "center",
6660
6711
  w: "full",
6661
6712
  gap: "var(--spacing-md)",
6662
- className: I(dt["input-container"], dt[u], dt[o], {
6663
- [dt.error]: s,
6664
- [dt.disabled]: h
6665
- }),
6713
+ className: I(
6714
+ at["input-container"],
6715
+ at[u],
6716
+ at[o],
6717
+ {
6718
+ [at.error]: s,
6719
+ [at.disabled]: h,
6720
+ [at.multiline]: m
6721
+ }
6722
+ ),
6666
6723
  children: [
6667
- a && /* @__PURE__ */ b(M, { flex: "none", children: a }),
6668
- /* @__PURE__ */ b(M, { flex: "1", children: C() }),
6669
- c && x && !h && /* @__PURE__ */ b(M, { flex: "none", children: /* @__PURE__ */ b("span", { className: dt["clear-button"], onClick: T, children: /* @__PURE__ */ b(Xf, {}) }) }),
6670
- l && /* @__PURE__ */ b(M, { flex: "none", children: l })
6724
+ a && /* @__PURE__ */ x(M, { flex: "none", children: a }),
6725
+ /* @__PURE__ */ x(M, { flex: "1", children: C() }),
6726
+ c && b && !h && /* @__PURE__ */ x(M, { flex: "none", children: /* @__PURE__ */ x("span", { className: at["clear-button"], onClick: T, children: /* @__PURE__ */ x(Xf, {}) }) }),
6727
+ l && /* @__PURE__ */ x(M, { flex: "none", children: l })
6671
6728
  ]
6672
6729
  }
6673
6730
  ),
6674
6731
  (i || m) && /* @__PURE__ */ L(M, { row: !0, gap: 10, w: "full", children: [
6675
- typeof i == "string" ? /* @__PURE__ */ b(
6676
- B,
6677
- {
6678
- variant: "caption-1",
6679
- colorName: "tertiary",
6680
- children: i
6681
- }
6682
- ) : i,
6683
- m && t.maxLength && /* @__PURE__ */ b(
6732
+ typeof i == "string" ? /* @__PURE__ */ x(B, { variant: "caption-1", colorName: "tertiary", children: i }) : i,
6733
+ m && t.maxLength && /* @__PURE__ */ x(
6684
6734
  B,
6685
6735
  {
6686
6736
  right: !0,
@@ -6688,26 +6738,26 @@ const sm = ht((t, e) => {
6688
6738
  flex: "none",
6689
6739
  variant: "caption-1",
6690
6740
  colorName: "tertiary",
6691
- children: `${x.length}/${t.maxLength}`
6741
+ children: `${b.length}/${t.maxLength}`
6692
6742
  }
6693
6743
  )
6694
6744
  ] }),
6695
- r && s && /* @__PURE__ */ b(B, { variant: "body-2", colorName: "negative", fontWeight: "regular", children: r })
6745
+ r && s && /* @__PURE__ */ x(B, { variant: "body-2", colorName: "negative", fontWeight: "regular", children: r })
6696
6746
  ] });
6697
6747
  });
6698
- sm.displayName = "Input";
6699
- const rm = "_avatar_1oe2p_8", om = "_avatar_primary_1oe2p_22", am = "_avatar_secondary_1oe2p_25", lm = "_avatar_negative_1oe2p_28", cm = "_avatar_positive_1oe2p_31", um = "_avatar_warning_1oe2p_34", hm = "_avatar_lgSize_1oe2p_71", dm = "_avatar_mdSize_1oe2p_85", fm = "_avatar_smSize_1oe2p_99", Mn = {
6700
- avatar: rm,
6701
- avatar_primary: om,
6702
- avatar_secondary: am,
6703
- avatar_negative: lm,
6704
- avatar_positive: cm,
6705
- avatar_warning: um,
6706
- avatar_lgSize: hm,
6707
- avatar_mdSize: dm,
6708
- avatar_smSize: fm
6748
+ rm.displayName = "Input";
6749
+ const om = (t) => /* @__PURE__ */ A.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M6 9L12 15L18 9", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), am = (t) => /* @__PURE__ */ A.createElement("svg", { fill: "currentColor", id: "Capa_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: "0 0 462.035 462.035", xmlSpace: "preserve", ...t }, /* @__PURE__ */ A.createElement("g", null, /* @__PURE__ */ A.createElement("path", { d: "M457.83,158.441c-0.021-0.028-0.033-0.058-0.057-0.087l-50.184-62.48c-0.564-0.701-1.201-1.305-1.879-1.845 c-2.16-2.562-5.355-4.225-8.967-4.225H65.292c-3.615,0-6.804,1.661-8.965,4.225c-0.678,0.54-1.316,1.138-1.885,1.845l-50.178,62.48 c-0.023,0.029-0.034,0.059-0.057,0.087C1.655,160.602,0,163.787,0,167.39v193.07c0,6.5,5.27,11.771,11.77,11.771h438.496 c6.5,0,11.77-5.271,11.77-11.771V167.39C462.037,163.787,460.381,160.602,457.83,158.441z M408.516,134.615l16.873,21.005h-16.873 V134.615z M384.975,113.345v42.274H296.84c-2.514,0-4.955,0.805-6.979,2.293l-58.837,43.299l-58.849-43.305 c-2.023-1.482-4.466-2.287-6.978-2.287H77.061v-42.274H384.975z M53.523,155.62H36.65l16.873-21.005V155.62z M438.498,348.69H23.54 V179.16h137.796l62.711,46.148c4.15,3.046,9.805,3.052,13.954-0.005l62.698-46.144h137.799V348.69L438.498,348.69z" }))), lm = "_avatar_1oe2p_8", cm = "_avatar_primary_1oe2p_22", um = "_avatar_secondary_1oe2p_25", hm = "_avatar_negative_1oe2p_28", dm = "_avatar_positive_1oe2p_31", fm = "_avatar_warning_1oe2p_34", mm = "_avatar_lgSize_1oe2p_71", pm = "_avatar_mdSize_1oe2p_85", gm = "_avatar_smSize_1oe2p_99", Mn = {
6750
+ avatar: lm,
6751
+ avatar_primary: cm,
6752
+ avatar_secondary: um,
6753
+ avatar_negative: hm,
6754
+ avatar_positive: dm,
6755
+ avatar_warning: fm,
6756
+ avatar_lgSize: mm,
6757
+ avatar_mdSize: pm,
6758
+ avatar_smSize: gm
6709
6759
  };
6710
- function Rp({
6760
+ function Dp({
6711
6761
  attr: t,
6712
6762
  children: e,
6713
6763
  className: n,
@@ -6716,7 +6766,7 @@ function Rp({
6716
6766
  ...r
6717
6767
  }) {
6718
6768
  const o = "avatar";
6719
- return /* @__PURE__ */ b(
6769
+ return /* @__PURE__ */ x(
6720
6770
  "div",
6721
6771
  {
6722
6772
  ...t,
@@ -6731,29 +6781,29 @@ function Rp({
6731
6781
  }
6732
6782
  );
6733
6783
  }
6734
- const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "currentColor", fillOpacity: 0.15 }), /* @__PURE__ */ A.createElement("path", { d: "M16 9L10.0337 15L8 12.9548", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), fr = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z", fill: "currentColor", fillOpacity: 0.15 }), /* @__PURE__ */ A.createElement("path", { d: "M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z", fill: "currentColor" }), /* @__PURE__ */ A.createElement("path", { d: "M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z", fill: "currentColor" })), pm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "currentColor", fillOpacity: 0.12 }), /* @__PURE__ */ A.createElement("path", { d: "M16 8L8 16M16 16L8 8", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" })), gm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", color: "black", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), ym = "_hint_prca1_8", vm = "_md_prca1_19", xm = "_sm_prca1_24", bm = "_icon_prca1_29", wm = "_content_prca1_40", _m = "_title_prca1_46", Tm = "_subtitle_prca1_50", Sm = "_disabled_prca1_55", Cm = "_warning_prca1_60", Pm = "_solid_prca1_60", Em = "_negative_prca1_65", Mm = "_positive_prca1_70", Am = "_accent_prca1_75", Vm = "_neutral_prca1_80", km = "_soft_prca1_85", at = {
6735
- hint: ym,
6736
- md: vm,
6737
- sm: xm,
6738
- icon: bm,
6739
- content: wm,
6740
- title: _m,
6741
- subtitle: Tm,
6742
- disabled: Sm,
6743
- warning: Cm,
6744
- solid: Pm,
6745
- negative: Em,
6746
- positive: Mm,
6747
- accent: Am,
6748
- neutral: Vm,
6749
- soft: km
6750
- }, Rm = {
6751
- negative: /* @__PURE__ */ b(pm, {}),
6752
- positive: /* @__PURE__ */ b(mm, {}),
6753
- accent: /* @__PURE__ */ b(fr, {}),
6754
- warning: /* @__PURE__ */ b(fr, {}),
6755
- neutral: /* @__PURE__ */ b(gm, {})
6756
- }, Dp = ({
6784
+ const ym = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "currentColor", fillOpacity: 0.15 }), /* @__PURE__ */ A.createElement("path", { d: "M16 9L10.0337 15L8 12.9548", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), fr = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z", fill: "currentColor", fillOpacity: 0.15 }), /* @__PURE__ */ A.createElement("path", { d: "M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z", fill: "currentColor" }), /* @__PURE__ */ A.createElement("path", { d: "M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z", fill: "currentColor" })), vm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "currentColor", fillOpacity: 0.12 }), /* @__PURE__ */ A.createElement("path", { d: "M16 8L8 16M16 16L8 8", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" })), bm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", color: "black", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), xm = "_hint_prca1_8", wm = "_md_prca1_19", _m = "_sm_prca1_24", Tm = "_icon_prca1_29", Sm = "_content_prca1_40", Cm = "_title_prca1_46", Pm = "_subtitle_prca1_50", Em = "_disabled_prca1_55", Mm = "_warning_prca1_60", Am = "_solid_prca1_60", Vm = "_negative_prca1_65", km = "_positive_prca1_70", Rm = "_accent_prca1_75", Dm = "_neutral_prca1_80", Lm = "_soft_prca1_85", lt = {
6785
+ hint: xm,
6786
+ md: wm,
6787
+ sm: _m,
6788
+ icon: Tm,
6789
+ content: Sm,
6790
+ title: Cm,
6791
+ subtitle: Pm,
6792
+ disabled: Em,
6793
+ warning: Mm,
6794
+ solid: Am,
6795
+ negative: Vm,
6796
+ positive: km,
6797
+ accent: Rm,
6798
+ neutral: Dm,
6799
+ soft: Lm
6800
+ }, Om = {
6801
+ negative: /* @__PURE__ */ x(vm, {}),
6802
+ positive: /* @__PURE__ */ x(ym, {}),
6803
+ accent: /* @__PURE__ */ x(fr, {}),
6804
+ warning: /* @__PURE__ */ x(fr, {}),
6805
+ neutral: /* @__PURE__ */ x(bm, {})
6806
+ }, Lp = ({
6757
6807
  title: t,
6758
6808
  subtitle: e,
6759
6809
  color: n = "warning",
@@ -6764,35 +6814,41 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
6764
6814
  className: a,
6765
6815
  style: l
6766
6816
  }) => {
6767
- const u = r || Rm[n];
6817
+ const u = r || Om[n];
6768
6818
  return /* @__PURE__ */ L(
6769
6819
  "div",
6770
6820
  {
6771
6821
  className: It(
6772
- at.hint,
6773
- at[n],
6774
- at[i],
6775
- at[s],
6776
- o && at.disabled,
6822
+ lt.hint,
6823
+ lt[n],
6824
+ lt[i],
6825
+ lt[s],
6826
+ o && lt.disabled,
6777
6827
  a
6778
6828
  ),
6779
6829
  style: l,
6780
6830
  "aria-disabled": o,
6781
6831
  children: [
6782
- u && /* @__PURE__ */ b("span", { className: It(at.icon, at[n]), children: u }),
6783
- /* @__PURE__ */ L("div", { className: at.content, children: [
6784
- t && /* @__PURE__ */ b(
6832
+ u && /* @__PURE__ */ x("span", { className: It(lt.icon, lt[n]), children: u }),
6833
+ /* @__PURE__ */ L("div", { className: lt.content, children: [
6834
+ t && /* @__PURE__ */ x(
6785
6835
  B,
6786
6836
  {
6787
- className: It(at.title, Ke(at, "title", s)),
6837
+ className: It(
6838
+ lt.title,
6839
+ Ke(lt, "title", s)
6840
+ ),
6788
6841
  variant: s === "md" ? "body-1" : "caption-2",
6789
6842
  children: t
6790
6843
  }
6791
6844
  ),
6792
- e && /* @__PURE__ */ b(
6845
+ e && /* @__PURE__ */ x(
6793
6846
  B,
6794
6847
  {
6795
- className: It(at.subtitle, Ke(at, "subtitle", s)),
6848
+ className: It(
6849
+ lt.subtitle,
6850
+ Ke(lt, "subtitle", s)
6851
+ ),
6796
6852
  variant: s === "md" ? "body-2" : "caption-1",
6797
6853
  children: e
6798
6854
  }
@@ -6801,7 +6857,7 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
6801
6857
  ]
6802
6858
  }
6803
6859
  );
6804
- }, Dm = {
6860
+ }, Im = {
6805
6861
  primary: {
6806
6862
  bg: "var(--status-neutral-tint-low)",
6807
6863
  color: "var(--text-primary)"
@@ -6822,7 +6878,7 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
6822
6878
  bg: "var(--status-negative-tint-low)",
6823
6879
  color: "var(--text-negative)"
6824
6880
  }
6825
- }, Lm = { sm: 28, md: 32, lg: 40 }, ya = ht(
6881
+ }, Bm = { sm: 28, md: 32, lg: 40 }, ya = dt(
6826
6882
  ({
6827
6883
  label: t,
6828
6884
  color: e = "primary",
@@ -6834,7 +6890,7 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
6834
6890
  disabled: a,
6835
6891
  className: l
6836
6892
  }, u) => {
6837
- const c = H(null), h = Dm[e], d = Q({
6893
+ const c = H(null), h = Im[e], d = Q({
6838
6894
  cursor: a ? "not-allowed" : i ? "pointer" : "default",
6839
6895
  opacity: a ? 0.5 : 1,
6840
6896
  userSelect: "none",
@@ -6851,15 +6907,15 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
6851
6907
  return /* @__PURE__ */ L(
6852
6908
  M,
6853
6909
  {
6854
- ref: (p) => {
6855
- c.current = p, typeof u == "function" ? u(p) : u && (u.current = p);
6910
+ ref: (g) => {
6911
+ c.current = g, typeof u == "function" ? u(g) : u && (u.current = g);
6856
6912
  },
6857
6913
  row: !0,
6858
6914
  alignItems: "center",
6859
6915
  gap: 6,
6860
6916
  px: 10,
6861
6917
  py: 4,
6862
- h: Lm[n],
6918
+ h: Bm[n],
6863
6919
  maxWidth: 196,
6864
6920
  overflow: "hidden",
6865
6921
  borderRadius: "var(--corner-sm)",
@@ -6868,25 +6924,25 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
6868
6924
  onClick: i,
6869
6925
  className: I(d, l),
6870
6926
  children: [
6871
- i && /* @__PURE__ */ b(nn, {}),
6872
- r && /* @__PURE__ */ b(M, { w: 20, h: 20, borderRadius: "50%", overflow: "hidden", children: r }),
6873
- o && /* @__PURE__ */ b(M, { children: o }),
6874
- /* @__PURE__ */ b(
6927
+ i && /* @__PURE__ */ x(nn, {}),
6928
+ r && /* @__PURE__ */ x(M, { w: 20, h: 20, borderRadius: "50%", overflow: "hidden", children: r }),
6929
+ o && /* @__PURE__ */ x(M, { children: o }),
6930
+ /* @__PURE__ */ x(
6875
6931
  B,
6876
6932
  {
6877
6933
  variant: "caption-1",
6878
- color: h.color,
6934
+ colorName: e,
6879
6935
  textOverflow: "ellipsis",
6880
6936
  children: t
6881
6937
  }
6882
6938
  ),
6883
- s && !a && /* @__PURE__ */ b(
6939
+ s && !a && /* @__PURE__ */ x(
6884
6940
  B,
6885
6941
  {
6886
6942
  className: f,
6887
6943
  colorName: e,
6888
- onClick: (p) => {
6889
- p.stopPropagation(), s(p);
6944
+ onClick: (g) => {
6945
+ g.stopPropagation(), s(g);
6890
6946
  },
6891
6947
  children: "×"
6892
6948
  }
@@ -6897,45 +6953,45 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
6897
6953
  }
6898
6954
  );
6899
6955
  ya.displayName = "Tag";
6900
- const Om = ({ children: t }) => {
6901
- const [e] = wt(() => document.createElement("div"));
6902
- return xt(() => {
6956
+ const Nm = ({ children: t }) => {
6957
+ const [e] = _t(() => document.createElement("div"));
6958
+ return bt(() => {
6903
6959
  let n = document.getElementById("portal-root");
6904
6960
  return n || (n = document.createElement("div"), n.id = "portal-root", document.body.appendChild(n)), n.appendChild(e), () => {
6905
6961
  n && n.contains(e) && n.removeChild(e);
6906
6962
  };
6907
6963
  }, [e]), Pa(t, e);
6908
- }, Im = (t) => /* @__PURE__ */ A.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M6 9L12 15L18 9", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Bm = (t) => /* @__PURE__ */ A.createElement("svg", { fill: "currentColor", id: "Capa_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: "0 0 462.035 462.035", xmlSpace: "preserve", ...t }, /* @__PURE__ */ A.createElement("g", null, /* @__PURE__ */ A.createElement("path", { d: "M457.83,158.441c-0.021-0.028-0.033-0.058-0.057-0.087l-50.184-62.48c-0.564-0.701-1.201-1.305-1.879-1.845 c-2.16-2.562-5.355-4.225-8.967-4.225H65.292c-3.615,0-6.804,1.661-8.965,4.225c-0.678,0.54-1.316,1.138-1.885,1.845l-50.178,62.48 c-0.023,0.029-0.034,0.059-0.057,0.087C1.655,160.602,0,163.787,0,167.39v193.07c0,6.5,5.27,11.771,11.77,11.771h438.496 c6.5,0,11.77-5.271,11.77-11.771V167.39C462.037,163.787,460.381,160.602,457.83,158.441z M408.516,134.615l16.873,21.005h-16.873 V134.615z M384.975,113.345v42.274H296.84c-2.514,0-4.955,0.805-6.979,2.293l-58.837,43.299l-58.849-43.305 c-2.023-1.482-4.466-2.287-6.978-2.287H77.061v-42.274H384.975z M53.523,155.62H36.65l16.873-21.005V155.62z M438.498,348.69H23.54 V179.16h137.796l62.711,46.148c4.15,3.046,9.805,3.052,13.954-0.005l62.698-46.144h137.799V348.69L438.498,348.69z" }))), Nm = "_disabled_6kgqd_40", Fm = "_open_6kgqd_48", $m = "_error_6kgqd_51", zm = "_hidden_6kgqd_87", jm = "_visible_6kgqd_90", Wm = "_selected_6kgqd_163", q = {
6964
+ }, Fm = "_disabled_6kgqd_40", $m = "_open_6kgqd_48", zm = "_error_6kgqd_51", jm = "_hidden_6kgqd_87", Wm = "_visible_6kgqd_90", Um = "_selected_6kgqd_163", q = {
6909
6965
  "select-container": "_select-container_6kgqd_8",
6910
6966
  "full-width": "_full-width_6kgqd_13",
6911
6967
  "select-input": "_select-input_6kgqd_17",
6912
6968
  "size-xs": "_size-xs_6kgqd_25",
6913
6969
  "size-sm": "_size-sm_6kgqd_30",
6914
6970
  "size-md": "_size-md_6kgqd_35",
6915
- disabled: Nm,
6916
- open: Fm,
6971
+ disabled: Fm,
6972
+ open: $m,
6917
6973
  "select-arrow": "_select-arrow_6kgqd_48",
6918
- error: $m,
6974
+ error: zm,
6919
6975
  "select-value": "_select-value_6kgqd_62",
6920
6976
  "select-value_xs": "_select-value_xs_6kgqd_74",
6921
6977
  "select-placeholder": "_select-placeholder_6kgqd_81",
6922
- hidden: zm,
6923
- visible: jm,
6978
+ hidden: jm,
6979
+ visible: Wm,
6924
6980
  "select-arrow_xs": "_select-arrow_xs_6kgqd_106",
6925
6981
  "select-dropdown": "_select-dropdown_6kgqd_116",
6926
6982
  "select-menu": "_select-menu_6kgqd_126",
6927
6983
  "select-menu-item": "_select-menu-item_6kgqd_145",
6928
6984
  "select-menu-item-first": "_select-menu-item-first_6kgqd_158",
6929
- selected: Wm,
6985
+ selected: Um,
6930
6986
  "overflow-tooltip-container": "_overflow-tooltip-container_6kgqd_167",
6931
6987
  "overflow-tooltip-text": "_overflow-tooltip-text_6kgqd_172",
6932
6988
  "empty-block": "_empty-block_6kgqd_179"
6933
- }, Um = {
6989
+ }, Km = {
6934
6990
  xs: "sm",
6935
6991
  sm: "md",
6936
6992
  md: "lg"
6937
6993
  };
6938
- function Lp({
6994
+ function Op({
6939
6995
  value: t,
6940
6996
  onChange: e,
6941
6997
  multiple: n = !1,
@@ -6950,29 +7006,29 @@ function Lp({
6950
7006
  label: h,
6951
7007
  firstItem: d,
6952
7008
  lastItem: f,
6953
- observer: p,
7009
+ observer: g,
6954
7010
  emptyText: m,
6955
7011
  onBlur: v,
6956
7012
  error: y,
6957
- errorText: x
7013
+ errorText: b
6958
7014
  }) {
6959
- const [g, w] = ii(
7015
+ const [p, w] = ii(
6960
7016
  t,
6961
7017
  n ? [] : null
6962
- ), T = H(null), C = H(null), [_, S] = wt(!1), E = K(
6963
- () => n ? g || [] : g != null ? [g] : [],
6964
- [g, n]
6965
- ), O = K(() => {
7018
+ ), T = H(null), C = H(null), [_, S] = _t(!1), E = U(
7019
+ () => n ? p || [] : p != null ? [p] : [],
7020
+ [p, n]
7021
+ ), O = U(() => {
6966
7022
  const V = /* @__PURE__ */ new Map();
6967
7023
  return o.forEach((D) => V.set(i(D), D)), V;
6968
- }, [o, i]), nt = wl(T, _), kt = !o.length && !y, Rt = (V) => {
7024
+ }, [o, i]), nt = wl(T, _), xt = !o.length && !y, Rt = (V) => {
6969
7025
  const D = i(V);
6970
7026
  if (n) {
6971
7027
  const j = E.includes(D) ? E.filter((Wt) => Wt !== D) : [...E, D];
6972
7028
  w(j), e?.(j);
6973
7029
  } else
6974
7030
  w(D), e?.(D), S(!1);
6975
- }, Ct = (V) => {
7031
+ }, Pt = (V) => {
6976
7032
  if (!n) return;
6977
7033
  const D = E.filter((j) => j !== V);
6978
7034
  w(D), e?.(D);
@@ -6980,7 +7036,7 @@ function Lp({
6980
7036
  const V = n ? [] : null;
6981
7037
  w(V), e?.(V), n || S(!1);
6982
7038
  };
6983
- xt(() => {
7039
+ bt(() => {
6984
7040
  if (!_) return;
6985
7041
  const V = (D) => {
6986
7042
  const j = D.target;
@@ -6990,7 +7046,7 @@ function Lp({
6990
7046
  }, [_]);
6991
7047
  const jt = () => {
6992
7048
  if (!E.length)
6993
- return /* @__PURE__ */ b(
7049
+ return /* @__PURE__ */ x(
6994
7050
  B,
6995
7051
  {
6996
7052
  variant: l === "xs" ? "caption-1" : "body-2",
@@ -7000,15 +7056,15 @@ function Lp({
7000
7056
  }
7001
7057
  );
7002
7058
  if (n)
7003
- return /* @__PURE__ */ b(M, { flexWrap: "wrap", row: !0, gap: 10, children: E.map((j) => {
7059
+ return /* @__PURE__ */ x(M, { flexWrap: "wrap", row: !0, gap: 10, children: E.map((j) => {
7004
7060
  const Wt = O.get(j);
7005
- return Wt ? /* @__PURE__ */ b(
7061
+ return Wt ? /* @__PURE__ */ x(
7006
7062
  ya,
7007
7063
  {
7008
- size: Um[l],
7064
+ size: Km[l],
7009
7065
  label: s(Wt),
7010
7066
  onDelete: (_a) => {
7011
- _a.stopPropagation(), Ct(j);
7067
+ _a.stopPropagation(), Pt(j);
7012
7068
  }
7013
7069
  },
7014
7070
  j
@@ -7016,7 +7072,7 @@ function Lp({
7016
7072
  }) });
7017
7073
  const V = O.get(E[0]);
7018
7074
  if (!V)
7019
- return /* @__PURE__ */ b(
7075
+ return /* @__PURE__ */ x(
7020
7076
  B,
7021
7077
  {
7022
7078
  variant: l === "xs" ? "caption-1" : "body-2",
@@ -7026,7 +7082,7 @@ function Lp({
7026
7082
  }
7027
7083
  );
7028
7084
  const D = s(V);
7029
- return typeof D == "string" ? /* @__PURE__ */ b(
7085
+ return typeof D == "string" ? /* @__PURE__ */ x(
7030
7086
  B,
7031
7087
  {
7032
7088
  variant: l === "xs" ? "caption-1" : "body-2",
@@ -7035,8 +7091,8 @@ function Lp({
7035
7091
  overflow: "hidden",
7036
7092
  children: D
7037
7093
  }
7038
- ) : /* @__PURE__ */ b(Ze, { children: D });
7039
- }, z = _ && /* @__PURE__ */ b(Om, { children: /* @__PURE__ */ b(
7094
+ ) : /* @__PURE__ */ x(Ze, { children: D });
7095
+ }, z = _ && /* @__PURE__ */ x(Nm, { children: /* @__PURE__ */ x(
7040
7096
  Fi.div,
7041
7097
  {
7042
7098
  ref: C,
@@ -7051,19 +7107,28 @@ function Lp({
7051
7107
  zIndex: 1
7052
7108
  },
7053
7109
  children: /* @__PURE__ */ L("ul", { className: q["select-menu"], children: [
7054
- u && !n && /* @__PURE__ */ b(
7110
+ u && !n && /* @__PURE__ */ x(
7055
7111
  M,
7056
7112
  {
7057
7113
  className: q["select-menu-item"],
7058
7114
  role: "option",
7059
7115
  onClick: zt,
7060
- children: /* @__PURE__ */ b(B, { variant: "body-2", children: r })
7116
+ children: /* @__PURE__ */ x(B, { variant: "body-2", children: r })
7117
+ }
7118
+ ),
7119
+ d && /* @__PURE__ */ x(
7120
+ M,
7121
+ {
7122
+ className: I(
7123
+ q["select-menu-item"],
7124
+ q["select-menu-item-first"]
7125
+ ),
7126
+ children: d
7061
7127
  }
7062
7128
  ),
7063
- d && /* @__PURE__ */ b(M, { className: I(q["select-menu-item"], q["select-menu-item-first"]), children: d }),
7064
- kt && /* @__PURE__ */ L(M, { className: q["empty-block"], children: [
7065
- /* @__PURE__ */ b(M, { w: 20, h: 20, children: /* @__PURE__ */ b(Bm, {}) }),
7066
- /* @__PURE__ */ b(B, { variant: "body-2", children: m ?? "There is nothing yet" })
7129
+ xt && /* @__PURE__ */ L(M, { className: q["empty-block"], children: [
7130
+ /* @__PURE__ */ x(M, { w: 20, h: 20, children: /* @__PURE__ */ x(am, {}) }),
7131
+ /* @__PURE__ */ x(B, { variant: "body-2", children: m ?? "There is nothing yet" })
7067
7132
  ] }),
7068
7133
  o.map((V) => {
7069
7134
  const D = i(V), j = E.includes(D);
@@ -7073,199 +7138,284 @@ function Lp({
7073
7138
  row: !0,
7074
7139
  gap: 10,
7075
7140
  alignItems: "center",
7076
- className: I(q["select-menu-item"], { [q.selected]: j }),
7141
+ className: I(q["select-menu-item"], {
7142
+ [q.selected]: j
7143
+ }),
7077
7144
  role: "option",
7078
7145
  relative: !0,
7079
7146
  onClick: () => Rt(V),
7080
7147
  children: [
7081
- n && /* @__PURE__ */ b(ga, { size: "sm", checked: j }),
7082
- typeof s(V) == "string" ? /* @__PURE__ */ b(B, { variant: "body-2", tag: "p", wordBreak: "break-all", whiteSpace: "break-spaces", children: s(V) }) : s(V),
7083
- /* @__PURE__ */ b(nn, {})
7148
+ n && /* @__PURE__ */ x(ga, { size: "sm", checked: j }),
7149
+ typeof s(V) == "string" ? /* @__PURE__ */ x(
7150
+ B,
7151
+ {
7152
+ variant: "body-2",
7153
+ tag: "p",
7154
+ wordBreak: "break-all",
7155
+ whiteSpace: "break-spaces",
7156
+ children: s(V)
7157
+ }
7158
+ ) : s(V),
7159
+ /* @__PURE__ */ x(nn, {})
7084
7160
  ]
7085
7161
  },
7086
7162
  D
7087
7163
  );
7088
7164
  }),
7089
- p,
7090
- f && /* @__PURE__ */ b(M, { className: I(q["select-menu-item"], q["select-menu-item-first"]), children: f })
7165
+ g,
7166
+ f && /* @__PURE__ */ x(
7167
+ M,
7168
+ {
7169
+ className: I(
7170
+ q["select-menu-item"],
7171
+ q["select-menu-item-first"]
7172
+ ),
7173
+ children: f
7174
+ }
7175
+ )
7091
7176
  ] })
7092
7177
  },
7093
7178
  "dropdown"
7094
7179
  ) });
7095
- return /* @__PURE__ */ L(M, { relative: !0, display: "inline-block", minWidth: 120, w: a ? "full" : "auto", children: [
7096
- typeof h == "string" ? /* @__PURE__ */ b(B, { variant: "body-2", colorName: "tertiary", fontWeight: "regular", mb: l === "sm" ? 4 : 8, children: h }) : h,
7097
- /* @__PURE__ */ L(
7098
- M,
7099
- {
7100
- ref: T,
7101
- row: !0,
7102
- gap: 10,
7103
- tabIndex: c ? -1 : 0,
7104
- role: "button",
7105
- alignItems: "flex-start",
7106
- "aria-haspopup": "listbox",
7107
- relative: !0,
7108
- w: "100%",
7109
- className: I(q["select-input"], q[`size-${l}`], {
7110
- [q.error]: y,
7111
- [q.disabled]: c,
7112
- [q.open]: _
7113
- }),
7114
- onClick: () => !c && S((V) => !V),
7115
- onBlur: v,
7116
- children: [
7117
- /* @__PURE__ */ b(M, { className: I(q["select-value"]), children: jt() }),
7118
- /* @__PURE__ */ b(M, { className: I(q["select-arrow"], q[`select-arrow_${l}`]), children: /* @__PURE__ */ b(Im, {}) })
7119
- ]
7120
- }
7121
- ),
7122
- y && x && /* @__PURE__ */ b(B, { tag: "p", colorName: "negative", variant: "body-2", mt: 5, children: x }),
7123
- /* @__PURE__ */ b(zu, { initial: !1, children: z })
7124
- ] });
7125
- }
7126
- const Km = (t) => /* @__PURE__ */ A.createElement("svg", { width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M3.94629 0.220237C3.78013 0.264025 3.64089 0.377624 3.56348 0.53176C3.27371 1.11189 3.05664 1.46395 2.83887 1.74953C2.61807 2.03873 2.38547 2.27579 2.03027 2.63039C1.21079 3.45057 0.799805 4.52619 0.799805 5.60012C0.799838 6.67406 1.21073 7.74968 2.03027 8.56985C3.67062 10.2096 6.32931 10.2095 7.96973 8.56985C8.78929 7.74968 9.20016 6.67408 9.2002 5.60012C9.15131 4.32908 8.43217 3.48543 7.94727 3.05813C7.76902 2.90106 7.40643 3.02424 7.2627 3.2134C7.24031 3.24286 7.21612 3.2739 7.18945 3.30617C6.93211 3.61754 6.56236 3.80807 6.41504 3.83156C6.38264 3.83667 6.36979 3.76513 6.2959 3.58254C5.79455 2.34427 5.78927 2.49365 5.58887 2.01125C5.48847 1.7692 5.05517 1.02727 4.92676 0.828635C4.80206 0.635591 4.64095 0.439873 4.43359 0.301292C4.29028 0.205951 4.1124 0.175957 3.94629 0.220237ZM4.75293 4.17824C5.2689 4.63997 5.60857 5.26651 5.71484 5.95071C6.10631 5.85571 6.46727 5.68318 6.78125 5.45071C6.86578 5.70826 6.89338 5.98123 6.8623 6.25051C6.83115 6.51993 6.74174 6.77966 6.60059 7.01125C6.45944 7.24281 6.27008 7.44117 6.04492 7.59231C5.81977 7.74344 5.56462 7.8443 5.29688 7.88723C5.0292 7.93013 4.75518 7.91446 4.49414 7.84133C4.23299 7.76812 3.99064 7.6383 3.78418 7.46242C3.5778 7.28657 3.41161 7.06792 3.29785 6.8218C3.18419 6.57572 3.12519 6.30771 3.125 6.03664C3.12508 5.58233 3.29054 5.14308 3.58984 4.80129C3.88917 4.4597 4.30271 4.2382 4.75293 4.17824Z", fill: "#FEAD34" })), Gm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M10.1483 8.61509C10.3344 8.26159 9.98299 7.89856 9.58534 7.93723C9.42671 7.95265 9.25857 7.9605 9.07422 7.96035C6.36522 7.9582 4.17129 5.76427 4.16914 3.05527C4.169 2.87115 4.17682 2.70321 4.19221 2.54477C4.23082 2.14712 3.86769 1.79411 3.50976 1.97161C2.03398 2.70343 1.20002 4.02274 1.20002 5.89477C1.20002 8.60377 3.3961 10.7998 6.1051 10.7998C7.97571 10.7998 9.38737 10.06 10.1483 8.61509Z", fill: "white" })), Hm = "_container_e7tan_8", qm = "_disabled_e7tan_17", Ym = "_reverse_e7tan_21", Xm = "_input_e7tan_25", Zm = "_switchContainer_e7tan_35", Jm = "_variant_accent_e7tan_43", Qm = "_variant_secondary_e7tan_47", tp = "_thumb_e7tan_51", ep = "_variant_theme_e7tan_54", np = "_moon_e7tan_58", ip = "_fire_e7tan_61", sp = "_size_sm_e7tan_74", rp = "_size_md_e7tan_80", op = "_size_lg_e7tan_86", ft = {
7127
- container: Hm,
7128
- disabled: qm,
7129
- reverse: Ym,
7130
- input: Xm,
7131
- switchContainer: Zm,
7132
- variant_accent: Jm,
7133
- variant_secondary: Qm,
7134
- switch: "_switch_e7tan_35",
7135
- thumb: tp,
7136
- variant_theme: ep,
7137
- moon: np,
7138
- fire: ip,
7139
- size_sm: sp,
7140
- size_md: rp,
7141
- size_lg: op
7142
- }, ap = ht(({
7143
- title: t,
7144
- text: e,
7145
- icon: n,
7146
- disabled: i,
7147
- onChange: s,
7148
- checked: r,
7149
- defaultValue: o,
7150
- className: a,
7151
- size: l = "md",
7152
- variant: u = "accent",
7153
- reverse: c = !1,
7154
- w: h = "auto",
7155
- ...d
7156
- }, f) => {
7157
- const [p, m] = ii(r, o), v = H(null);
7158
- Je(f, () => ({
7159
- focus: () => {
7160
- v.current?.focus();
7161
- },
7162
- blur: () => {
7163
- v.current?.blur();
7164
- },
7165
- get checked() {
7166
- return p ?? !1;
7167
- },
7168
- setChecked: (w) => {
7169
- m(w), s?.(w);
7170
- },
7171
- toggle: () => {
7172
- const w = !p;
7173
- m(w), s?.(w);
7174
- },
7175
- isFocused: () => document.activeElement === v.current,
7176
- isDisabled: () => i ?? !1,
7177
- getInputElement: () => v.current,
7178
- checkValidity: () => v.current?.checkValidity() ?? !0,
7179
- reset: () => {
7180
- const w = o ?? !1;
7181
- m(w), s?.(w);
7182
- }
7183
- }), [p, m, s, i, o]);
7184
- const y = bt((w) => {
7185
- m(w.target.checked), s?.(w.target.checked);
7186
- }, [s]), x = K(() => typeof t == "string" ? /* @__PURE__ */ b(B, { variant: "body-1", colorName: "primary", fontWeight: "medium", children: t }) : t, [t]), g = K(() => typeof e == "string" ? /* @__PURE__ */ b(B, { variant: "body-2", colorName: "secondary", fontWeight: "regular", children: e }) : e, [e]);
7187
- return /* @__PURE__ */ L(M, { row: !0, w: h, gap: "var(--spacing-sm)", children: [
7188
- /* @__PURE__ */ L("label", { className: I(ft.container, a, {
7189
- [ft.disabled]: i,
7190
- [ft.reverse]: c
7191
- }), children: [
7192
- /* @__PURE__ */ L(M, { className: I(ft.switchContainer, ft[`size_${l}`], ft[`variant_${u}`]), children: [
7193
- /* @__PURE__ */ b(
7194
- "input",
7180
+ return /* @__PURE__ */ L(
7181
+ M,
7182
+ {
7183
+ relative: !0,
7184
+ display: "inline-block",
7185
+ minWidth: 120,
7186
+ w: a ? "full" : "auto",
7187
+ children: [
7188
+ typeof h == "string" ? /* @__PURE__ */ x(
7189
+ B,
7195
7190
  {
7196
- ref: v,
7197
- type: "checkbox",
7198
- checked: p,
7199
- className: ft.input,
7200
- onChange: y,
7201
- disabled: i,
7202
- ...d
7191
+ variant: "body-2",
7192
+ colorName: "tertiary",
7193
+ fontWeight: "regular",
7194
+ mb: l === "sm" ? 4 : 8,
7195
+ children: h
7196
+ }
7197
+ ) : h,
7198
+ /* @__PURE__ */ L(
7199
+ M,
7200
+ {
7201
+ ref: T,
7202
+ row: !0,
7203
+ gap: 10,
7204
+ tabIndex: c ? -1 : 0,
7205
+ role: "button",
7206
+ alignItems: "flex-start",
7207
+ "aria-haspopup": "listbox",
7208
+ relative: !0,
7209
+ w: "100%",
7210
+ className: I(q["select-input"], q[`size-${l}`], {
7211
+ [q.error]: y,
7212
+ [q.disabled]: c,
7213
+ [q.open]: _
7214
+ }),
7215
+ onClick: () => !c && S((V) => !V),
7216
+ onBlur: v,
7217
+ children: [
7218
+ /* @__PURE__ */ x(M, { className: I(q["select-value"]), children: jt() }),
7219
+ /* @__PURE__ */ x(
7220
+ M,
7221
+ {
7222
+ className: I(q["select-arrow"], q[`select-arrow_${l}`]),
7223
+ children: /* @__PURE__ */ x(om, {})
7224
+ }
7225
+ )
7226
+ ]
7203
7227
  }
7204
7228
  ),
7205
- /* @__PURE__ */ b("div", { className: ft.switch, children: /* @__PURE__ */ b("div", { className: ft.thumb, children: u === "theme" && /* @__PURE__ */ L(Ze, { children: [
7206
- /* @__PURE__ */ b(Gm, { className: ft.moon }),
7207
- /* @__PURE__ */ b(Km, { className: ft.fire })
7208
- ] }) }) })
7209
- ] }),
7210
- /* @__PURE__ */ L(M, { gap: "var(--spacing-xs)", children: [
7211
- x,
7212
- g
7213
- ] })
7214
- ] }),
7215
- n
7216
- ] });
7217
- });
7218
- ap.displayName = "Switch";
7219
- const lp = "_header_446to_8", cp = {
7220
- header: lp
7221
- }, va = ht(({
7222
- title: t,
7223
- subtitle: e,
7224
- onClose: n,
7225
- w: i = "full",
7226
- p: s,
7227
- py: r,
7228
- px: o = "var(--spacing-2xl)",
7229
- pt: a = "var(--spacing-2xl)",
7230
- pb: l = "var(--spacing-lg)",
7231
- row: u = !0,
7232
- justifyContent: c = "space-between",
7233
- showCloseButton: h = !0
7234
- }, d) => /* @__PURE__ */ L(
7235
- M,
7236
- {
7237
- w: i,
7229
+ y && b && /* @__PURE__ */ x(B, { tag: "p", colorName: "negative", variant: "body-2", mt: 5, children: b }),
7230
+ /* @__PURE__ */ x(zu, { initial: !1, children: z })
7231
+ ]
7232
+ }
7233
+ );
7234
+ }
7235
+ const Gm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M3.94629 0.220237C3.78013 0.264025 3.64089 0.377624 3.56348 0.53176C3.27371 1.11189 3.05664 1.46395 2.83887 1.74953C2.61807 2.03873 2.38547 2.27579 2.03027 2.63039C1.21079 3.45057 0.799805 4.52619 0.799805 5.60012C0.799838 6.67406 1.21073 7.74968 2.03027 8.56985C3.67062 10.2096 6.32931 10.2095 7.96973 8.56985C8.78929 7.74968 9.20016 6.67408 9.2002 5.60012C9.15131 4.32908 8.43217 3.48543 7.94727 3.05813C7.76902 2.90106 7.40643 3.02424 7.2627 3.2134C7.24031 3.24286 7.21612 3.2739 7.18945 3.30617C6.93211 3.61754 6.56236 3.80807 6.41504 3.83156C6.38264 3.83667 6.36979 3.76513 6.2959 3.58254C5.79455 2.34427 5.78927 2.49365 5.58887 2.01125C5.48847 1.7692 5.05517 1.02727 4.92676 0.828635C4.80206 0.635591 4.64095 0.439873 4.43359 0.301292C4.29028 0.205951 4.1124 0.175957 3.94629 0.220237ZM4.75293 4.17824C5.2689 4.63997 5.60857 5.26651 5.71484 5.95071C6.10631 5.85571 6.46727 5.68318 6.78125 5.45071C6.86578 5.70826 6.89338 5.98123 6.8623 6.25051C6.83115 6.51993 6.74174 6.77966 6.60059 7.01125C6.45944 7.24281 6.27008 7.44117 6.04492 7.59231C5.81977 7.74344 5.56462 7.8443 5.29688 7.88723C5.0292 7.93013 4.75518 7.91446 4.49414 7.84133C4.23299 7.76812 3.99064 7.6383 3.78418 7.46242C3.5778 7.28657 3.41161 7.06792 3.29785 6.8218C3.18419 6.57572 3.12519 6.30771 3.125 6.03664C3.12508 5.58233 3.29054 5.14308 3.58984 4.80129C3.88917 4.4597 4.30271 4.2382 4.75293 4.17824Z", fill: "#FEAD34" })), Hm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ A.createElement("path", { d: "M10.1483 8.61509C10.3344 8.26159 9.98299 7.89856 9.58534 7.93723C9.42671 7.95265 9.25857 7.9605 9.07422 7.96035C6.36522 7.9582 4.17129 5.76427 4.16914 3.05527C4.169 2.87115 4.17682 2.70321 4.19221 2.54477C4.23082 2.14712 3.86769 1.79411 3.50976 1.97161C2.03398 2.70343 1.20002 4.02274 1.20002 5.89477C1.20002 8.60377 3.3961 10.7998 6.1051 10.7998C7.97571 10.7998 9.38737 10.06 10.1483 8.61509Z", fill: "white" })), qm = "_container_e7tan_8", Ym = "_disabled_e7tan_17", Xm = "_reverse_e7tan_21", Zm = "_input_e7tan_25", Jm = "_switchContainer_e7tan_35", Qm = "_variant_accent_e7tan_43", tp = "_variant_secondary_e7tan_47", ep = "_thumb_e7tan_51", np = "_variant_theme_e7tan_54", ip = "_moon_e7tan_58", sp = "_fire_e7tan_61", rp = "_size_sm_e7tan_74", op = "_size_md_e7tan_80", ap = "_size_lg_e7tan_86", ft = {
7236
+ container: qm,
7237
+ disabled: Ym,
7238
+ reverse: Xm,
7239
+ input: Zm,
7240
+ switchContainer: Jm,
7241
+ variant_accent: Qm,
7242
+ variant_secondary: tp,
7243
+ switch: "_switch_e7tan_35",
7244
+ thumb: ep,
7245
+ variant_theme: np,
7246
+ moon: ip,
7247
+ fire: sp,
7248
+ size_sm: rp,
7249
+ size_md: op,
7250
+ size_lg: ap
7251
+ }, lp = dt(
7252
+ ({
7253
+ title: t,
7254
+ text: e,
7255
+ icon: n,
7256
+ disabled: i,
7257
+ onChange: s,
7258
+ checked: r,
7259
+ defaultValue: o,
7260
+ className: a,
7261
+ size: l = "md",
7262
+ variant: u = "accent",
7263
+ reverse: c = !1,
7264
+ w: h = "auto",
7265
+ ...d
7266
+ }, f) => {
7267
+ const [g, m] = ii(r, o), v = H(null);
7268
+ Je(
7269
+ f,
7270
+ () => ({
7271
+ focus: () => {
7272
+ v.current?.focus();
7273
+ },
7274
+ blur: () => {
7275
+ v.current?.blur();
7276
+ },
7277
+ get checked() {
7278
+ return g ?? !1;
7279
+ },
7280
+ setChecked: (w) => {
7281
+ m(w), s?.(w);
7282
+ },
7283
+ toggle: () => {
7284
+ const w = !g;
7285
+ m(w), s?.(w);
7286
+ },
7287
+ isFocused: () => document.activeElement === v.current,
7288
+ isDisabled: () => i ?? !1,
7289
+ getInputElement: () => v.current,
7290
+ checkValidity: () => v.current?.checkValidity() ?? !0,
7291
+ reset: () => {
7292
+ const w = o ?? !1;
7293
+ m(w), s?.(w);
7294
+ }
7295
+ }),
7296
+ [g, m, s, i, o]
7297
+ );
7298
+ const y = wt(
7299
+ (w) => {
7300
+ m(w.target.checked), s?.(w.target.checked);
7301
+ },
7302
+ [s]
7303
+ ), b = U(() => typeof t == "string" ? /* @__PURE__ */ x(B, { variant: "body-1", colorName: "primary", fontWeight: "medium", children: t }) : t, [t]), p = U(() => typeof e == "string" ? /* @__PURE__ */ x(B, { variant: "body-2", colorName: "secondary", fontWeight: "regular", children: e }) : e, [e]);
7304
+ return /* @__PURE__ */ L(M, { row: !0, w: h, gap: "var(--spacing-sm)", children: [
7305
+ /* @__PURE__ */ L(
7306
+ "label",
7307
+ {
7308
+ className: I(ft.container, a, {
7309
+ [ft.disabled]: i,
7310
+ [ft.reverse]: c
7311
+ }),
7312
+ children: [
7313
+ /* @__PURE__ */ L(
7314
+ M,
7315
+ {
7316
+ className: I(
7317
+ ft.switchContainer,
7318
+ ft[`size_${l}`],
7319
+ ft[`variant_${u}`]
7320
+ ),
7321
+ children: [
7322
+ /* @__PURE__ */ x(
7323
+ "input",
7324
+ {
7325
+ ref: v,
7326
+ type: "checkbox",
7327
+ checked: g,
7328
+ className: ft.input,
7329
+ onChange: y,
7330
+ disabled: i,
7331
+ ...d
7332
+ }
7333
+ ),
7334
+ /* @__PURE__ */ x("div", { className: ft.switch, children: /* @__PURE__ */ x("div", { className: ft.thumb, children: u === "theme" && /* @__PURE__ */ L(Ze, { children: [
7335
+ /* @__PURE__ */ x(Hm, { className: ft.moon }),
7336
+ /* @__PURE__ */ x(Gm, { className: ft.fire })
7337
+ ] }) }) })
7338
+ ]
7339
+ }
7340
+ ),
7341
+ /* @__PURE__ */ L(M, { gap: "var(--spacing-xs)", children: [
7342
+ b,
7343
+ p
7344
+ ] })
7345
+ ]
7346
+ }
7347
+ ),
7348
+ n
7349
+ ] });
7350
+ }
7351
+ );
7352
+ lp.displayName = "Switch";
7353
+ const cp = "_header_446to_8", up = {
7354
+ header: cp
7355
+ }, va = dt(
7356
+ ({
7357
+ title: t,
7358
+ subtitle: e,
7359
+ onClose: n,
7360
+ w: i = "full",
7238
7361
  p: s,
7239
7362
  py: r,
7240
- px: o,
7241
- pt: a,
7242
- pb: l,
7243
- row: u,
7244
- justifyContent: c,
7245
- ref: d,
7246
- className: cp.header,
7247
- children: [
7248
- /* @__PURE__ */ L(M, { gap: "var(--spacing-sm)", children: [
7249
- /* @__PURE__ */ b(B, { variant: "title-3", colorName: "primary", fontWeight: "semibold", children: t }),
7250
- /* @__PURE__ */ b(B, { variant: "body-1", colorName: "tertiary", fontWeight: "medium", children: e })
7251
- ] }),
7252
- h && /* @__PURE__ */ b(M, { children: /* @__PURE__ */ b(Lr, { onClick: n, color: "neutral", children: /* @__PURE__ */ b(Or, {}) }) })
7253
- ]
7254
- }
7255
- ));
7363
+ px: o = "var(--spacing-2xl)",
7364
+ pt: a = "var(--spacing-2xl)",
7365
+ pb: l = "var(--spacing-lg)",
7366
+ row: u = !0,
7367
+ justifyContent: c = "space-between",
7368
+ showCloseButton: h = !0
7369
+ }, d) => /* @__PURE__ */ L(
7370
+ M,
7371
+ {
7372
+ w: i,
7373
+ p: s,
7374
+ py: r,
7375
+ px: o,
7376
+ pt: a,
7377
+ pb: l,
7378
+ row: u,
7379
+ justifyContent: c,
7380
+ ref: d,
7381
+ className: up.header,
7382
+ children: [
7383
+ /* @__PURE__ */ L(M, { gap: "var(--spacing-sm)", children: [
7384
+ /* @__PURE__ */ x(B, { variant: "title-3", colorName: "primary", fontWeight: "semibold", children: t }),
7385
+ /* @__PURE__ */ x(B, { variant: "body-1", colorName: "tertiary", fontWeight: "medium", children: e })
7386
+ ] }),
7387
+ h && /* @__PURE__ */ x(M, { children: /* @__PURE__ */ x(Or, { onClick: n, color: "neutral", children: /* @__PURE__ */ x(Lr, {}) }) })
7388
+ ]
7389
+ }
7390
+ )
7391
+ );
7256
7392
  va.displayName = "ModalHeader";
7257
- const up = "_footer_1bo08_8", hp = {
7258
- footer: up
7259
- }, xa = ht(({
7260
- children: t,
7261
- row: e = !0,
7262
- flex: n = !0,
7263
- gap: i = "var(--spacing-lg)",
7264
- p: s = "var(--spacing-2xl)",
7265
- className: r,
7266
- ...o
7267
- }, a) => /* @__PURE__ */ b(M, { flex: n, row: e, gap: i, p: s, className: I(hp.footer, r), ref: a, ...o, children: t }));
7268
- xa.displayName = "ModalFooter";
7393
+ const hp = "_footer_1bo08_8", dp = {
7394
+ footer: hp
7395
+ }, ba = dt(
7396
+ ({
7397
+ children: t,
7398
+ row: e = !0,
7399
+ flex: n = !0,
7400
+ gap: i = "var(--spacing-lg)",
7401
+ p: s = "var(--spacing-2xl)",
7402
+ className: r,
7403
+ ...o
7404
+ }, a) => /* @__PURE__ */ x(
7405
+ M,
7406
+ {
7407
+ flex: n,
7408
+ row: e,
7409
+ gap: i,
7410
+ p: s,
7411
+ className: I(dp.footer, r),
7412
+ ref: a,
7413
+ ...o,
7414
+ children: t
7415
+ }
7416
+ )
7417
+ );
7418
+ ba.displayName = "ModalFooter";
7269
7419
  function Ut(t, e, n) {
7270
7420
  let i = n.initialDeps ?? [], s;
7271
7421
  function r() {
@@ -7273,18 +7423,18 @@ function Ut(t, e, n) {
7273
7423
  let c;
7274
7424
  n.key && ((o = n.debug) != null && o.call(n)) && (c = Date.now());
7275
7425
  const h = t();
7276
- if (!(h.length !== i.length || h.some((p, m) => i[m] !== p)))
7426
+ if (!(h.length !== i.length || h.some((g, m) => i[m] !== g)))
7277
7427
  return s;
7278
7428
  i = h;
7279
7429
  let f;
7280
7430
  if (n.key && ((a = n.debug) != null && a.call(n)) && (f = Date.now()), s = e(...h), n.key && ((l = n.debug) != null && l.call(n))) {
7281
- const p = Math.round((Date.now() - c) * 100) / 100, m = Math.round((Date.now() - f) * 100) / 100, v = m / 16, y = (x, g) => {
7282
- for (x = String(x); x.length < g; )
7283
- x = " " + x;
7284
- return x;
7431
+ const g = Math.round((Date.now() - c) * 100) / 100, m = Math.round((Date.now() - f) * 100) / 100, v = m / 16, y = (b, p) => {
7432
+ for (b = String(b); b.length < p; )
7433
+ b = " " + b;
7434
+ return b;
7285
7435
  };
7286
7436
  console.info(
7287
- `%c⏱ ${y(m, 5)} /${y(p, 5)} ms`,
7437
+ `%c⏱ ${y(m, 5)} /${y(g, 5)} ms`,
7288
7438
  `
7289
7439
  font-size: .6rem;
7290
7440
  font-weight: bold;
@@ -7306,7 +7456,7 @@ function mr(t, e) {
7306
7456
  throw new Error("Unexpected undefined");
7307
7457
  return t;
7308
7458
  }
7309
- const dp = (t, e) => Math.abs(t - e) < 1.01, fp = (t, e, n) => {
7459
+ const fp = (t, e) => Math.abs(t - e) < 1.01, mp = (t, e, n) => {
7310
7460
  let i;
7311
7461
  return function(...s) {
7312
7462
  t.clearTimeout(i), i = t.setTimeout(() => e.apply(this, s), n);
@@ -7314,12 +7464,12 @@ const dp = (t, e) => Math.abs(t - e) < 1.01, fp = (t, e, n) => {
7314
7464
  }, pr = (t) => {
7315
7465
  const { offsetWidth: e, offsetHeight: n } = t;
7316
7466
  return { width: e, height: n };
7317
- }, mp = (t) => t, pp = (t) => {
7467
+ }, pp = (t) => t, gp = (t) => {
7318
7468
  const e = Math.max(t.startIndex - t.overscan, 0), n = Math.min(t.endIndex + t.overscan, t.count - 1), i = [];
7319
7469
  for (let s = e; s <= n; s++)
7320
7470
  i.push(s);
7321
7471
  return i;
7322
- }, gp = (t, e) => {
7472
+ }, yp = (t, e) => {
7323
7473
  const n = t.scrollElement;
7324
7474
  if (!n)
7325
7475
  return;
@@ -7352,7 +7502,7 @@ const dp = (t, e) => Math.abs(t - e) < 1.01, fp = (t, e, n) => {
7352
7502
  };
7353
7503
  }, gr = {
7354
7504
  passive: !0
7355
- }, yr = typeof window > "u" ? !0 : "onscrollend" in window, yp = (t, e) => {
7505
+ }, yr = typeof window > "u" ? !0 : "onscrollend" in window, vp = (t, e) => {
7356
7506
  const n = t.scrollElement;
7357
7507
  if (!n)
7358
7508
  return;
@@ -7361,7 +7511,7 @@ const dp = (t, e) => Math.abs(t - e) < 1.01, fp = (t, e, n) => {
7361
7511
  return;
7362
7512
  let s = 0;
7363
7513
  const r = t.options.useScrollendEvent && yr ? () => {
7364
- } : fp(
7514
+ } : mp(
7365
7515
  i,
7366
7516
  () => {
7367
7517
  e(s, !1);
@@ -7376,7 +7526,7 @@ const dp = (t, e) => Math.abs(t - e) < 1.01, fp = (t, e, n) => {
7376
7526
  return u && n.addEventListener("scrollend", l, gr), () => {
7377
7527
  n.removeEventListener("scroll", a), u && n.removeEventListener("scrollend", l);
7378
7528
  };
7379
- }, vp = (t, e, n) => {
7529
+ }, bp = (t, e, n) => {
7380
7530
  if (e?.borderBoxSize) {
7381
7531
  const i = e.borderBoxSize[0];
7382
7532
  if (i)
@@ -7396,7 +7546,7 @@ const dp = (t, e) => Math.abs(t - e) < 1.01, fp = (t, e, n) => {
7396
7546
  behavior: n
7397
7547
  });
7398
7548
  };
7399
- class bp {
7549
+ class wp {
7400
7550
  constructor(e) {
7401
7551
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
7402
7552
  let n = null;
@@ -7434,11 +7584,11 @@ class bp {
7434
7584
  scrollPaddingStart: 0,
7435
7585
  scrollPaddingEnd: 0,
7436
7586
  horizontal: !1,
7437
- getItemKey: mp,
7438
- rangeExtractor: pp,
7587
+ getItemKey: pp,
7588
+ rangeExtractor: gp,
7439
7589
  onChange: () => {
7440
7590
  },
7441
- measureElement: vp,
7591
+ measureElement: bp,
7442
7592
  initialRect: { width: 0, height: 0 },
7443
7593
  scrollMargin: 0,
7444
7594
  gap: 0,
@@ -7543,7 +7693,7 @@ class bp {
7543
7693
  this.pendingMeasuredCacheIndexes = [];
7544
7694
  const u = this.measurementsCache.slice(0, l);
7545
7695
  for (let c = l; c < n; c++) {
7546
- const h = r(c), d = this.options.lanes === 1 ? u[c - 1] : this.getFurthestMeasurement(u, c), f = d ? d.end + this.options.gap : i + s, p = a.get(h), m = typeof p == "number" ? p : this.options.estimateSize(c), v = f + m, y = d ? d.lane : c % this.options.lanes;
7696
+ const h = r(c), d = this.options.lanes === 1 ? u[c - 1] : this.getFurthestMeasurement(u, c), f = d ? d.end + this.options.gap : i + s, g = a.get(h), m = typeof g == "number" ? g : this.options.estimateSize(c), v = f + m, y = d ? d.lane : c % this.options.lanes;
7547
7697
  u[c] = {
7548
7698
  index: c,
7549
7699
  start: f,
@@ -7566,7 +7716,7 @@ class bp {
7566
7716
  this.getScrollOffset(),
7567
7717
  this.options.lanes
7568
7718
  ],
7569
- (n, i, s, r) => this.range = n.length > 0 && i > 0 ? wp({
7719
+ (n, i, s, r) => this.range = n.length > 0 && i > 0 ? _p({
7570
7720
  measurements: n,
7571
7721
  outerSize: i,
7572
7722
  scrollOffset: s,
@@ -7644,7 +7794,7 @@ class bp {
7644
7794
  const i = this.getMeasurements();
7645
7795
  if (i.length !== 0)
7646
7796
  return mr(
7647
- i[ba(
7797
+ i[xa(
7648
7798
  0,
7649
7799
  i.length - 1,
7650
7800
  (s) => mr(i[s]).start,
@@ -7695,12 +7845,12 @@ class bp {
7695
7845
  }
7696
7846
  const [h, d] = c;
7697
7847
  this._scrollToOffset(h, { adjustments: void 0, behavior: s }), this.targetWindow.requestAnimationFrame(() => {
7698
- const f = this.getScrollOffset(), p = this.getOffsetForIndex(n, d);
7699
- if (!p) {
7848
+ const f = this.getScrollOffset(), g = this.getOffsetForIndex(n, d);
7849
+ if (!g) {
7700
7850
  console.warn("Failed to get offset for index:", n);
7701
7851
  return;
7702
7852
  }
7703
- dp(p[0], f) || l(d);
7853
+ fp(g[0], f) || l(d);
7704
7854
  });
7705
7855
  }, l = (u) => {
7706
7856
  this.targetWindow && (r++, r < o ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", r, o), this.targetWindow.requestAnimationFrame(() => a(u))) : console.warn(
@@ -7746,7 +7896,7 @@ class bp {
7746
7896
  }, this.setOptions(e);
7747
7897
  }
7748
7898
  }
7749
- const ba = (t, e, n, i) => {
7899
+ const xa = (t, e, n, i) => {
7750
7900
  for (; t <= e; ) {
7751
7901
  const s = (t + e) / 2 | 0, r = n(s);
7752
7902
  if (r < i)
@@ -7758,7 +7908,7 @@ const ba = (t, e, n, i) => {
7758
7908
  }
7759
7909
  return t > 0 ? t - 1 : 0;
7760
7910
  };
7761
- function wp({
7911
+ function _p({
7762
7912
  measurements: t,
7763
7913
  outerSize: e,
7764
7914
  scrollOffset: n,
@@ -7770,7 +7920,7 @@ function wp({
7770
7920
  startIndex: 0,
7771
7921
  endIndex: s
7772
7922
  };
7773
- let o = ba(
7923
+ let o = xa(
7774
7924
  0,
7775
7925
  s,
7776
7926
  r,
@@ -7795,7 +7945,7 @@ function wp({
7795
7945
  return { startIndex: o, endIndex: a };
7796
7946
  }
7797
7947
  const vr = typeof document < "u" ? A.useLayoutEffect : A.useEffect;
7798
- function _p(t) {
7948
+ function Tp(t) {
7799
7949
  const e = A.useReducer(() => ({}), {})[1], n = {
7800
7950
  ...t,
7801
7951
  onChange: (s, r) => {
@@ -7803,120 +7953,148 @@ function _p(t) {
7803
7953
  r ? Ea(e) : e(), (o = t.onChange) == null || o.call(t, s, r);
7804
7954
  }
7805
7955
  }, [i] = A.useState(
7806
- () => new bp(n)
7956
+ () => new wp(n)
7807
7957
  );
7808
7958
  return i.setOptions(n), vr(() => i._didMount(), []), vr(() => i._willUpdate()), i;
7809
7959
  }
7810
- function Tp(t) {
7811
- return _p({
7812
- observeElementRect: gp,
7813
- observeElementOffset: yp,
7960
+ function Sp(t) {
7961
+ return Tp({
7962
+ observeElementRect: yp,
7963
+ observeElementOffset: vp,
7814
7964
  scrollToFn: xp,
7815
7965
  ...t
7816
7966
  });
7817
7967
  }
7818
- const Sp = "_main_pl2ip_8", xr = {
7819
- main: Sp
7820
- }, wa = ht(({
7821
- children: t,
7822
- className: e,
7823
- row: n = !1,
7824
- estimatedItemHeight: i = 100,
7825
- virtualize: s = !1
7826
- }, r) => {
7827
- const o = H(null), a = K(() => _r.toArray(t), [t]), l = Tp({
7828
- count: a.length,
7829
- getScrollElement: () => o.current,
7830
- estimateSize: () => i,
7831
- measureElement: (c) => c.getBoundingClientRect().height
7832
- });
7833
- return Je(r, () => ({
7834
- scrollToTop: () => l.scrollToOffset(0, { behavior: "smooth" }),
7835
- scrollToBottom: () => l.scrollToOffset(l.getTotalSize(), { behavior: "smooth" }),
7836
- scrollToIndex: (c, h = {}) => l.scrollToIndex(c, { behavior: "smooth", ...h }),
7837
- scrollToOffset: (c, h = {}) => l.scrollToOffset(c, { behavior: "smooth", ...h }),
7838
- scrollBy: (c) => {
7839
- const h = l.scrollOffset || 0;
7840
- l.scrollToOffset(h + c, { behavior: "smooth" });
7841
- },
7842
- getElement: () => o.current,
7843
- getScrollOffset: () => l.scrollOffset || 0,
7844
- getTotalSize: () => l.getTotalSize()
7845
- }), [l]), K(() => s || a.length > 50, [s, a]) && a.length > 0 ? /* @__PURE__ */ b(
7846
- M,
7847
- {
7848
- ref: o,
7849
- className: I(xr.main, e),
7850
- w: "full",
7851
- row: n,
7852
- p: "var(--spacing-2xl)",
7853
- children: /* @__PURE__ */ b(
7854
- M,
7855
- {
7856
- style: {
7857
- height: `${l.getTotalSize()}px`,
7858
- position: "relative"
7859
- },
7860
- children: l.getVirtualItems().map((c) => /* @__PURE__ */ b(
7861
- M,
7862
- {
7863
- "data-index": c.index,
7864
- ref: l.measureElement,
7865
- style: {
7866
- position: "absolute",
7867
- top: 0,
7868
- left: 0,
7869
- width: "100%",
7870
- transform: `translateY(${c.start}px)`
7871
- },
7872
- children: a[c.index]
7968
+ const Cp = "_main_pl2ip_8", br = {
7969
+ main: Cp
7970
+ }, wa = dt(
7971
+ ({
7972
+ children: t,
7973
+ className: e,
7974
+ row: n = !1,
7975
+ estimatedItemHeight: i = 100,
7976
+ virtualize: s = !1
7977
+ }, r) => {
7978
+ const o = H(null), a = U(() => _r.toArray(t), [t]), l = Sp({
7979
+ count: a.length,
7980
+ getScrollElement: () => o.current,
7981
+ estimateSize: () => i,
7982
+ measureElement: (c) => c.getBoundingClientRect().height
7983
+ });
7984
+ return Je(
7985
+ r,
7986
+ () => ({
7987
+ scrollToTop: () => l.scrollToOffset(0, { behavior: "smooth" }),
7988
+ scrollToBottom: () => l.scrollToOffset(l.getTotalSize(), {
7989
+ behavior: "smooth"
7990
+ }),
7991
+ scrollToIndex: (c, h = {}) => l.scrollToIndex(c, { behavior: "smooth", ...h }),
7992
+ scrollToOffset: (c, h = {}) => l.scrollToOffset(c, {
7993
+ behavior: "smooth",
7994
+ ...h
7995
+ }),
7996
+ scrollBy: (c) => {
7997
+ const h = l.scrollOffset || 0;
7998
+ l.scrollToOffset(h + c, {
7999
+ behavior: "smooth"
8000
+ });
8001
+ },
8002
+ getElement: () => o.current,
8003
+ getScrollOffset: () => l.scrollOffset || 0,
8004
+ getTotalSize: () => l.getTotalSize()
8005
+ }),
8006
+ [l]
8007
+ ), U(
8008
+ () => s || a.length > 50,
8009
+ [s, a]
8010
+ ) && a.length > 0 ? /* @__PURE__ */ x(
8011
+ M,
8012
+ {
8013
+ ref: o,
8014
+ className: I(br.main, e),
8015
+ w: "full",
8016
+ row: n,
8017
+ p: "var(--spacing-2xl)",
8018
+ children: /* @__PURE__ */ x(
8019
+ M,
8020
+ {
8021
+ style: {
8022
+ height: `${l.getTotalSize()}px`,
8023
+ position: "relative"
7873
8024
  },
7874
- c.key
7875
- ))
7876
- }
7877
- )
7878
- }
7879
- ) : /* @__PURE__ */ b(
7880
- M,
7881
- {
7882
- ref: o,
7883
- className: I(xr.main, e),
7884
- w: "full",
7885
- row: n,
7886
- pl: "var(--spacing-2xl)",
7887
- pr: "var(--spacing-xs)",
7888
- children: /* @__PURE__ */ b(M, { py: "var(--spacing-2xl)", pr: "var(--spacing-xl)", children: t })
7889
- }
7890
- );
7891
- });
8025
+ children: l.getVirtualItems().map((c) => /* @__PURE__ */ x(
8026
+ M,
8027
+ {
8028
+ "data-index": c.index,
8029
+ ref: l.measureElement,
8030
+ style: {
8031
+ position: "absolute",
8032
+ top: 0,
8033
+ left: 0,
8034
+ width: "100%",
8035
+ transform: `translateY(${c.start}px)`
8036
+ },
8037
+ children: a[c.index]
8038
+ },
8039
+ c.key
8040
+ ))
8041
+ }
8042
+ )
8043
+ }
8044
+ ) : /* @__PURE__ */ x(
8045
+ M,
8046
+ {
8047
+ ref: o,
8048
+ className: I(br.main, e),
8049
+ w: "full",
8050
+ row: n,
8051
+ pl: "var(--spacing-2xl)",
8052
+ pr: "var(--spacing-xs)",
8053
+ children: /* @__PURE__ */ x(M, { py: "var(--spacing-2xl)", pr: "var(--spacing-xl)", children: t })
8054
+ }
8055
+ );
8056
+ }
8057
+ );
7892
8058
  wa.displayName = "ModalMain";
7893
8059
  const $i = Ir;
7894
8060
  $i.Header = va;
7895
8061
  $i.Main = wa;
7896
- $i.Footer = xa;
7897
- const Cp = "_themeProviderScoped_10kh5_9", Pp = {
7898
- themeProviderScoped: Cp
8062
+ $i.Footer = ba;
8063
+ const Pp = "_themeProviderScoped_uzb80_9", Ep = {
8064
+ themeProviderScoped: Pp
7899
8065
  };
7900
- function Op({ className: t, children: e, theme: n }) {
7901
- return /* @__PURE__ */ b("div", { className: It(Pp.themeProviderScoped, t), id: "theme-provider-scoped", "data-theme": n, children: e });
8066
+ function Ip({
8067
+ className: t,
8068
+ children: e,
8069
+ theme: n
8070
+ }) {
8071
+ return /* @__PURE__ */ x(
8072
+ "div",
8073
+ {
8074
+ className: It(Ep.themeProviderScoped, t),
8075
+ id: "theme-provider-scoped",
8076
+ "data-theme": n,
8077
+ children: e
8078
+ }
8079
+ );
7902
8080
  }
7903
8081
  export {
7904
8082
  Of as AnimatedText,
7905
- Rp as Avatar,
8083
+ Dp as Avatar,
7906
8084
  M as Box,
7907
- kp as Button,
8085
+ Rp as Button,
7908
8086
  ga as Checkbox,
7909
- Dp as Hint,
7910
- Lr as IconButton,
7911
- sm as Input,
8087
+ Lp as Hint,
8088
+ Or as IconButton,
8089
+ rm as Input,
7912
8090
  $i as Modal,
7913
- Om as Portal,
8091
+ Nm as Portal,
7914
8092
  nn as Ripple,
7915
- Lp as Select,
7916
- ap as Switch,
8093
+ Op as Select,
8094
+ lp as Switch,
7917
8095
  ya as Tag,
7918
8096
  B as Text,
7919
- Op as ThemeProviderScoped,
8097
+ Ip as ThemeProviderScoped,
7920
8098
  Ke as getSizeClass,
7921
8099
  si as getStyleClass,
7922
8100
  ii as useControlled,