@post-pioneer/ui-kit 0.1.61 → 0.1.63

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.
@@ -715,20 +715,20 @@ const Va = "_accordion_1bao6_780", Ha = "_open_1bao6_789", Ba = "_disabled_1bao6
715
715
  children: o,
716
716
  className: r,
717
717
  textAlign: a = "left",
718
- variant: i = "text-long-m-regular",
719
- truncate: s = !1,
718
+ variant: s = "text-long-m-regular",
719
+ truncate: i = !1,
720
720
  multilineTruncate: c = !1,
721
721
  noWrap: l = !1,
722
722
  breakWord: u = !1,
723
723
  fontFamily: d = "inter",
724
724
  ..._
725
- } = e, m = cs[i], w = I(
725
+ } = e, m = cs[s], w = I(
726
726
  Ne.typography,
727
727
  Ne[m],
728
728
  Ne[`align-${a}`],
729
729
  Ne[`font-${d}`],
730
730
  {
731
- [Ne.truncate]: s,
731
+ [Ne.truncate]: i,
732
732
  [Ne.multilineTruncate]: c,
733
733
  [Ne.noWrap]: l,
734
734
  [Ne.breakWord]: u
@@ -796,17 +796,17 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
796
796
  label: o,
797
797
  labelPosition: r = "bottom"
798
798
  }) => {
799
- const a = !!o, i = [
799
+ const a = !!o, s = [
800
800
  Qe["spinner-container"],
801
801
  a && Qe[`spinner-container--label-${r}`],
802
802
  n
803
- ].filter(Boolean).join(" "), s = [
803
+ ].filter(Boolean).join(" "), i = [
804
804
  Qe.spinner,
805
805
  Qe[`spinner--${e}`],
806
806
  Qe[`spinner--${t}`]
807
807
  ].filter(Boolean).join(" ");
808
- return /* @__PURE__ */ A("div", { className: i, children: [
809
- /* @__PURE__ */ f("div", { className: s, children: (() => {
808
+ return /* @__PURE__ */ A("div", { className: s, children: [
809
+ /* @__PURE__ */ f("div", { className: i, children: (() => {
810
810
  switch (e) {
811
811
  case "xs":
812
812
  return /* @__PURE__ */ f("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.0271 9.32414C11.5487 8.54345 11.8786 7.65462 11.9948 6.7298C12.0466 6.31739 11.7048 5.97912 11.2891 5.97912C10.8735 5.97912 10.5431 6.3186 10.4746 6.72857C10.1176 8.86575 8.25944 10.4946 6.02088 10.4946C3.52695 10.4946 1.50522 8.47291 1.50522 5.97898C1.50522 3.74035 3.13422 1.88219 5.27149 1.52522C5.68143 1.45675 6.02088 1.1264 6.02088 0.710787C6.02088 0.29517 5.68266 -0.0466028 5.27028 0.00521079C4.34544 0.121414 3.45658 0.451289 2.67586 0.972945C1.68573 1.63453 0.914021 2.57486 0.458315 3.67503C0.00260876 4.7752 -0.116625 5.9858 0.115692 7.15374C0.348009 8.32167 0.921443 9.39449 1.76348 10.2365C2.60551 11.0786 3.67833 11.652 4.84627 11.8843C6.0142 12.1166 7.2248 11.9974 8.32497 11.5417C9.42515 11.086 10.3655 10.3143 11.0271 9.32414Z", fill: "currentColor" }) });
@@ -891,8 +891,8 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
891
891
  variant: o = "primary",
892
892
  disabled: r = !1,
893
893
  loading: a = !1,
894
- active: i = !1,
895
- open: s = !1,
894
+ active: s = !1,
895
+ open: i = !1,
896
896
  className: c = "",
897
897
  children: l,
898
898
  icon: u,
@@ -908,8 +908,8 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
908
908
  re[o],
909
909
  r && re.disabled,
910
910
  a && re.loading,
911
- i && re.active,
912
- s && re.open,
911
+ s && re.active,
912
+ i && re.open,
913
913
  v && re.iconOnly,
914
914
  c
915
915
  ].filter(Boolean).join(" "), y = () => /* @__PURE__ */ A(Ee, { children: [
@@ -1000,8 +1000,8 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1000
1000
  color: o = "default",
1001
1001
  className: r = "",
1002
1002
  children: a,
1003
- textPosition: i = "center",
1004
- ...s
1003
+ textPosition: s = "center",
1004
+ ...i
1005
1005
  }) => {
1006
1006
  const c = !!a, l = [
1007
1007
  ke.divider,
@@ -1010,7 +1010,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1010
1010
  ke[`divider--${n}`],
1011
1011
  ke[`divider--${o}`],
1012
1012
  c && ke["divider--with-text"],
1013
- c && ke[`divider--text-${i}`],
1013
+ c && ke[`divider--text-${s}`],
1014
1014
  r
1015
1015
  ].filter(Boolean).join(" ");
1016
1016
  return c && e === "horizontal" ? /* @__PURE__ */ f(
@@ -1019,7 +1019,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1019
1019
  className: l,
1020
1020
  role: "separator",
1021
1021
  "aria-orientation": e,
1022
- ...s,
1022
+ ...i,
1023
1023
  children: /* @__PURE__ */ f("span", { className: ke.divider__text, children: a })
1024
1024
  }
1025
1025
  ) : /* @__PURE__ */ f(
@@ -1028,7 +1028,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1028
1028
  className: l,
1029
1029
  role: "separator",
1030
1030
  "aria-orientation": e,
1031
- ...s
1031
+ ...i
1032
1032
  }
1033
1033
  );
1034
1034
  }, b2 = ({
@@ -1038,12 +1038,12 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1038
1038
  children: o,
1039
1039
  actions: r = [],
1040
1040
  defaultOpen: a = !1,
1041
- disabled: i = !1,
1042
- className: s,
1041
+ disabled: s = !1,
1042
+ className: i,
1043
1043
  toggleText: c = {}
1044
1044
  }) => {
1045
1045
  const [l, u] = W(a), [d, _] = W(a ? "auto" : 0), m = ce(null), w = () => {
1046
- i || (l ? (_(m.current?.scrollHeight || 0), requestAnimationFrame(() => _(0))) : _(m.current?.scrollHeight || 0), u(!l));
1046
+ s || (l ? (_(m.current?.scrollHeight || 0), requestAnimationFrame(() => _(0))) : _(m.current?.scrollHeight || 0), u(!l));
1047
1047
  };
1048
1048
  ae(() => {
1049
1049
  if (l && d === (m.current?.scrollHeight || 0)) {
@@ -1055,7 +1055,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1055
1055
  return /* @__PURE__ */ A(
1056
1056
  "div",
1057
1057
  {
1058
- className: I(J.accordion, l && J.open, i && J.disabled, s),
1058
+ className: I(J.accordion, l && J.open, s && J.disabled, i),
1059
1059
  "data-state": l ? "open" : "closed",
1060
1060
  children: [
1061
1061
  /* @__PURE__ */ A("div", { className: J.header, onClick: w, children: [
@@ -1183,8 +1183,8 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1183
1183
  status: o = null,
1184
1184
  bordered: r = !1,
1185
1185
  backgroundColor: a,
1186
- className: i = "",
1187
- onError: s
1186
+ className: s = "",
1187
+ onError: i
1188
1188
  }) => {
1189
1189
  const c = (m) => {
1190
1190
  const w = m.trim().split(" ");
@@ -1222,7 +1222,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1222
1222
  Ae.avatar,
1223
1223
  Ae[`avatar--${n}`],
1224
1224
  r ? Ae["avatar--bordered"] : "",
1225
- i
1225
+ s
1226
1226
  ].filter(Boolean).join(" "), _ = () => {
1227
1227
  if (e)
1228
1228
  return /* @__PURE__ */ f(
@@ -1231,7 +1231,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1231
1231
  src: e,
1232
1232
  alt: t ? `${t} avatar` : "Avatar",
1233
1233
  className: Ae.avatar__image,
1234
- onError: s
1234
+ onError: i
1235
1235
  }
1236
1236
  );
1237
1237
  if (t) {
@@ -1270,7 +1270,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1270
1270
  overlap: o = !0,
1271
1271
  className: r = ""
1272
1272
  }) => {
1273
- const a = e.slice(0, t), i = e.length - a.length;
1273
+ const a = e.slice(0, t), s = e.length - a.length;
1274
1274
  return /* @__PURE__ */ A(
1275
1275
  "div",
1276
1276
  {
@@ -1280,10 +1280,10 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1280
1280
  r
1281
1281
  ].filter(Boolean).join(" "),
1282
1282
  children: [
1283
- a.map((s, c) => /* @__PURE__ */ f("div", { className: ht.avatarGroup__item, children: /* @__PURE__ */ f(ci, { ...s, size: n }) }, c)),
1284
- i > 0 && /* @__PURE__ */ A("div", { className: `${ht.avatarGroup__item} ${ht.avatarGroup__more}`, children: [
1283
+ a.map((i, c) => /* @__PURE__ */ f("div", { className: ht.avatarGroup__item, children: /* @__PURE__ */ f(ci, { ...i, size: n }) }, c)),
1284
+ s > 0 && /* @__PURE__ */ A("div", { className: `${ht.avatarGroup__item} ${ht.avatarGroup__more}`, children: [
1285
1285
  "+",
1286
- i
1286
+ s
1287
1287
  ] })
1288
1288
  ]
1289
1289
  }
@@ -1559,13 +1559,13 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1559
1559
  indeterminate: o = !1,
1560
1560
  error: r,
1561
1561
  disabled: a,
1562
- checked: i,
1563
- onChange: s,
1562
+ checked: s,
1563
+ onChange: i,
1564
1564
  className: c,
1565
1565
  ...l
1566
1566
  }, u) => {
1567
1567
  const d = (_) => {
1568
- a || s?.(_);
1568
+ a || i?.(_);
1569
1569
  };
1570
1570
  return /* @__PURE__ */ A(
1571
1571
  "label",
@@ -1575,7 +1575,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1575
1575
  _e[t],
1576
1576
  _e[n],
1577
1577
  {
1578
- [_e.checked]: i,
1578
+ [_e.checked]: s,
1579
1579
  [_e.indeterminate]: o,
1580
1580
  [_e.error]: r,
1581
1581
  [_e.disabled]: a
@@ -1589,13 +1589,13 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
1589
1589
  ref: u,
1590
1590
  type: "checkbox",
1591
1591
  className: _e.input,
1592
- checked: i,
1592
+ checked: s,
1593
1593
  disabled: a,
1594
1594
  onChange: d,
1595
1595
  ...l
1596
1596
  }
1597
1597
  ),
1598
- /* @__PURE__ */ f("span", { className: _e.box, children: o ? /* @__PURE__ */ f(Vo, { className: _e.icon }) : i ? /* @__PURE__ */ f(Do, { className: _e.icon }) : null }),
1598
+ /* @__PURE__ */ f("span", { className: _e.box, children: o ? /* @__PURE__ */ f(Vo, { className: _e.icon }) : s ? /* @__PURE__ */ f(Do, { className: _e.icon }) : null }),
1599
1599
  e && /* @__PURE__ */ f("span", { className: _e.label, children: e })
1600
1600
  ]
1601
1601
  }
@@ -1647,8 +1647,8 @@ const Bi = "_focus_1kco8_550", ji = "_swap_1kco8_632", Wi = "_swap__content_1kco
1647
1647
  rounded: o = "default",
1648
1648
  active: r = !1,
1649
1649
  disabled: a = !1,
1650
- className: i,
1651
- onClick: s
1650
+ className: s,
1651
+ onClick: i
1652
1652
  }) => {
1653
1653
  const c = I(
1654
1654
  je.chip,
@@ -1657,10 +1657,10 @@ const Bi = "_focus_1kco8_550", ji = "_swap_1kco8_632", Wi = "_swap__content_1kco
1657
1657
  je[`rounded-${o}`],
1658
1658
  r && je.active,
1659
1659
  a && je.disabled,
1660
- s && je.clickable,
1661
- i
1660
+ i && je.clickable,
1661
+ s
1662
1662
  );
1663
- return /* @__PURE__ */ f("span", { className: c, onClick: a ? void 0 : s, children: e });
1663
+ return /* @__PURE__ */ f("span", { className: c, onClick: a ? void 0 : i, children: e });
1664
1664
  };
1665
1665
  var Xi = (e) => e.type === "checkbox", gt = (e) => e instanceof Date, Hn = (e) => e == null;
1666
1666
  const Wo = (e) => typeof e == "object";
@@ -1690,17 +1690,17 @@ var Uo = (e) => /^\w*$/.test(e), bn = (e) => e === void 0, ec = (e) => Array.isA
1690
1690
  return bn(o) || o === e ? bn(e[t]) ? n : e[t] : o;
1691
1691
  }, sn = (e) => typeof e == "boolean", to = (e, t, n) => {
1692
1692
  let o = -1;
1693
- const r = Uo(t) ? [t] : Zo(t), a = r.length, i = a - 1;
1693
+ const r = Uo(t) ? [t] : Zo(t), a = r.length, s = a - 1;
1694
1694
  for (; ++o < a; ) {
1695
- const s = r[o];
1695
+ const i = r[o];
1696
1696
  let c = n;
1697
- if (o !== i) {
1698
- const l = e[s];
1697
+ if (o !== s) {
1698
+ const l = e[i];
1699
1699
  c = Ue(l) || Array.isArray(l) ? l : isNaN(+r[o + 1]) ? {} : [];
1700
1700
  }
1701
- if (s === "__proto__" || s === "constructor" || s === "prototype")
1701
+ if (i === "__proto__" || i === "constructor" || i === "prototype")
1702
1702
  return;
1703
- e[s] = c, e = e[s];
1703
+ e[i] = c, e = e[i];
1704
1704
  }
1705
1705
  };
1706
1706
  const no = {
@@ -1718,15 +1718,15 @@ var tc = (e, t, n, o = !0) => {
1718
1718
  for (const a in e)
1719
1719
  Object.defineProperty(r, a, {
1720
1720
  get: () => {
1721
- const i = a;
1722
- return t._proxyFormState[i] !== oo.all && (t._proxyFormState[i] = !o || oo.all), n && (n[i] = !0), e[i];
1721
+ const s = a;
1722
+ return t._proxyFormState[s] !== oo.all && (t._proxyFormState[s] = !o || oo.all), n && (n[s] = !0), e[s];
1723
1723
  }
1724
1724
  });
1725
1725
  return r;
1726
1726
  };
1727
1727
  const Xo = typeof window < "u" ? M.useLayoutEffect : M.useEffect;
1728
1728
  function nc(e) {
1729
- const t = Bn(), { control: n = t.control, disabled: o, name: r, exact: a } = e || {}, [i, s] = M.useState(n._formState), c = M.useRef({
1729
+ const t = Bn(), { control: n = t.control, disabled: o, name: r, exact: a } = e || {}, [s, i] = M.useState(n._formState), c = M.useRef({
1730
1730
  isDirty: !1,
1731
1731
  isLoading: !1,
1732
1732
  dirtyFields: !1,
@@ -1741,14 +1741,14 @@ function nc(e) {
1741
1741
  formState: c.current,
1742
1742
  exact: a,
1743
1743
  callback: (l) => {
1744
- !o && s({
1744
+ !o && i({
1745
1745
  ...n._formState,
1746
1746
  ...l
1747
1747
  });
1748
1748
  }
1749
1749
  }), [r, o, a]), M.useEffect(() => {
1750
1750
  c.current.isValid && n._setValid(!0);
1751
- }, [n]), M.useMemo(() => tc(i, n, c.current, !1), [i, n]);
1751
+ }, [n]), M.useMemo(() => tc(s, n, c.current, !1), [s, n]);
1752
1752
  }
1753
1753
  var oc = (e) => typeof e == "string", rc = (e, t, n, o, r) => oc(e) ? ie(n, e, r) : Array.isArray(e) ? e.map((a) => ie(n, a)) : n, ro = (e) => Hn(e) || !Wo(e);
1754
1754
  function Yo(e, t, n = /* @__PURE__ */ new WeakSet()) {
@@ -1763,27 +1763,27 @@ function Yo(e, t, n = /* @__PURE__ */ new WeakSet()) {
1763
1763
  return !0;
1764
1764
  n.add(e), n.add(t);
1765
1765
  for (const a of o) {
1766
- const i = e[a];
1766
+ const s = e[a];
1767
1767
  if (!r.includes(a))
1768
1768
  return !1;
1769
1769
  if (a !== "ref") {
1770
- const s = t[a];
1771
- if (gt(i) && gt(s) || Ue(i) && Ue(s) || Array.isArray(i) && Array.isArray(s) ? !Yo(i, s, n) : i !== s)
1770
+ const i = t[a];
1771
+ if (gt(s) && gt(i) || Ue(s) && Ue(i) || Array.isArray(s) && Array.isArray(i) ? !Yo(s, i, n) : s !== i)
1772
1772
  return !1;
1773
1773
  }
1774
1774
  }
1775
1775
  return !0;
1776
1776
  }
1777
1777
  function ac(e) {
1778
- const t = Bn(), { control: n = t.control, name: o, defaultValue: r, disabled: a, exact: i, compute: s } = e || {}, c = M.useRef(r), l = M.useRef(s), u = M.useRef(void 0);
1779
- l.current = s;
1778
+ const t = Bn(), { control: n = t.control, name: o, defaultValue: r, disabled: a, exact: s, compute: i } = e || {}, c = M.useRef(r), l = M.useRef(i), u = M.useRef(void 0);
1779
+ l.current = i;
1780
1780
  const d = M.useMemo(() => n._getWatch(o, c.current), [n, o]), [_, m] = M.useState(l.current ? l.current(d) : d);
1781
1781
  return Xo(() => n._subscribe({
1782
1782
  name: o,
1783
1783
  formState: {
1784
1784
  values: !0
1785
1785
  },
1786
- exact: i,
1786
+ exact: s,
1787
1787
  callback: (w) => {
1788
1788
  if (!a) {
1789
1789
  const p = rc(o, n._names, w.values || n._formValues, !1, c.current);
@@ -1794,10 +1794,10 @@ function ac(e) {
1794
1794
  m(p);
1795
1795
  }
1796
1796
  }
1797
- }), [n, a, o, i]), M.useEffect(() => n._removeUnmounted()), _;
1797
+ }), [n, a, o, s]), M.useEffect(() => n._removeUnmounted()), _;
1798
1798
  }
1799
1799
  function jn(e) {
1800
- const t = Bn(), { name: n, disabled: o, control: r = t.control, shouldUnregister: a, defaultValue: i } = e, s = Ki(r._names.array, n), c = M.useMemo(() => ie(r._formValues, n, ie(r._defaultValues, n, i)), [r, n, i]), l = ac({
1800
+ const t = Bn(), { name: n, disabled: o, control: r = t.control, shouldUnregister: a, defaultValue: s } = e, i = Ki(r._names.array, n), c = M.useMemo(() => ie(r._formValues, n, ie(r._defaultValues, n, s)), [r, n, s]), l = ac({
1801
1801
  control: r,
1802
1802
  name: n,
1803
1803
  defaultValue: c,
@@ -1863,7 +1863,7 @@ function jn(e) {
1863
1863
  }), [n, o, u.disabled, p, g, v, l]);
1864
1864
  return M.useEffect(() => {
1865
1865
  const b = r._options.shouldUnregister || a, y = _.current;
1866
- y && y !== n && !s && r.unregister(y), r.register(n, {
1866
+ y && y !== n && !i && r.unregister(y), r.register(n, {
1867
1867
  ...d.current.rules,
1868
1868
  ...sn(d.current.disabled) ? { disabled: d.current.disabled } : {}
1869
1869
  });
@@ -1875,10 +1875,10 @@ function jn(e) {
1875
1875
  const E = Fo(ie(r._options.defaultValues, n, d.current.defaultValue));
1876
1876
  to(r._defaultValues, n, E), bn(ie(r._formValues, n)) && to(r._formValues, n, E);
1877
1877
  }
1878
- return !s && r.register(n), _.current = n, () => {
1879
- (s ? b && !r._state.action : b) ? r.unregister(n) : x(n, !1);
1878
+ return !i && r.register(n), _.current = n, () => {
1879
+ (i ? b && !r._state.action : b) ? r.unregister(n) : x(n, !1);
1880
1880
  };
1881
- }, [n, r, s, a]), M.useEffect(() => {
1881
+ }, [n, r, i, a]), M.useEffect(() => {
1882
1882
  r._setDisabledField({
1883
1883
  disabled: o,
1884
1884
  name: n
@@ -1897,32 +1897,32 @@ const R2 = ({
1897
1897
  const {
1898
1898
  field: { value: o, onChange: r, ref: a }
1899
1899
  } = jn({ name: e, control: t });
1900
- return /* @__PURE__ */ f(jo, { ...n, ref: a, checked: !!o, onChange: (i) => r(i.target.checked) });
1901
- }, sc = "_focus_1balm_550", ic = "_swap_1balm_632", cc = "_swap__content_1balm_688", lc = "_root_1balm_780", uc = "_fullWidth_1balm_786", dc = "_wrapper_1balm_791", fc = "_single_1balm_808", _c = "_first_1balm_811", pc = "_middle_1balm_814", hc = "_last_1balm_818", mc = "_error_1balm_825", gc = "_outline_1balm_828", wc = "_fill_1balm_842", vc = "_small_1balm_858", Cc = "_input_1balm_861", bc = "_label_1balm_864", yc = "_medium_1balm_869", xc = "_disabled_1balm_913", Sc = "_clearButton_1balm_925", Ec = "_withPrefix_1balm_931", Lc = "_withSuffix_1balm_934", Pc = "_requiredIcon_1balm_978", $c = "_filled_1balm_990", Rc = "_innerHint_1balm_1039", Nc = "_affix_1balm_1087", kc = "_prefix_1balm_1099", Ac = "_suffix_1balm_1104", Tc = "_errorText_1balm_1113", K = {
1900
+ return /* @__PURE__ */ f(jo, { ...n, ref: a, checked: !!o, onChange: (s) => r(s.target.checked) });
1901
+ }, sc = "_focus_mmaa6_550", ic = "_swap_mmaa6_632", cc = "_swap__content_mmaa6_688", lc = "_root_mmaa6_780", uc = "_fullWidth_mmaa6_786", dc = "_wrapper_mmaa6_791", fc = "_single_mmaa6_808", _c = "_first_mmaa6_811", pc = "_middle_mmaa6_814", hc = "_last_mmaa6_818", mc = "_error_mmaa6_825", gc = "_outline_mmaa6_828", wc = "_fill_mmaa6_842", vc = "_small_mmaa6_858", Cc = "_input_mmaa6_861", bc = "_label_mmaa6_865", yc = "_medium_mmaa6_870", xc = "_disabled_mmaa6_914", Sc = "_clearButton_mmaa6_926", Ec = "_withPrefix_mmaa6_932", Lc = "_withSuffix_mmaa6_935", Pc = "_filled_mmaa6_973", $c = "_requiredIcon_mmaa6_1035", Rc = "_innerHint_mmaa6_1096", Nc = "_affix_mmaa6_1144", kc = "_prefix_mmaa6_1156", Ac = "_suffix_mmaa6_1161", Tc = "_errorText_mmaa6_1170", K = {
1902
1902
  focus: sc,
1903
- "focus--default": "_focus--default_1balm_567",
1904
- "focus--danger": "_focus--danger_1balm_571",
1905
- "focus--visible": "_focus--visible_1balm_577",
1906
- "focus-danger": "_focus-danger_1balm_592",
1907
- "focus-within--default": "_focus-within--default_1balm_598",
1908
- "focus-within--danger": "_focus-within--danger_1balm_602",
1909
- "focus--input": "_focus--input_1balm_607",
1910
- "focus--button": "_focus--button_1balm_612",
1911
- "focus--card": "_focus--card_1balm_617",
1903
+ "focus--default": "_focus--default_mmaa6_567",
1904
+ "focus--danger": "_focus--danger_mmaa6_571",
1905
+ "focus--visible": "_focus--visible_mmaa6_577",
1906
+ "focus-danger": "_focus-danger_mmaa6_592",
1907
+ "focus-within--default": "_focus-within--default_mmaa6_598",
1908
+ "focus-within--danger": "_focus-within--danger_mmaa6_602",
1909
+ "focus--input": "_focus--input_mmaa6_607",
1910
+ "focus--button": "_focus--button_mmaa6_612",
1911
+ "focus--card": "_focus--card_mmaa6_617",
1912
1912
  swap: ic,
1913
- "swap--text": "_swap--text_1balm_641",
1914
- "swap--icon": "_swap--icon_1balm_652",
1915
- "swap--icon-xs": "_swap--icon-xs_1balm_662",
1916
- "swap--icon-s": "_swap--icon-s_1balm_667",
1917
- "swap--icon-m": "_swap--icon-m_1balm_672",
1918
- "swap--icon-l": "_swap--icon-l_1balm_677",
1919
- "swap--icon-xl": "_swap--icon-xl_1balm_682",
1913
+ "swap--text": "_swap--text_mmaa6_641",
1914
+ "swap--icon": "_swap--icon_mmaa6_652",
1915
+ "swap--icon-xs": "_swap--icon-xs_mmaa6_662",
1916
+ "swap--icon-s": "_swap--icon-s_mmaa6_667",
1917
+ "swap--icon-m": "_swap--icon-m_mmaa6_672",
1918
+ "swap--icon-l": "_swap--icon-l_mmaa6_677",
1919
+ "swap--icon-xl": "_swap--icon-xl_mmaa6_682",
1920
1920
  swap__content: cc,
1921
- "swap--group-horizontal": "_swap--group-horizontal_1balm_697",
1922
- "swap--group-vertical": "_swap--group-vertical_1balm_704",
1923
- "swap--with-background": "_swap--with-background_1balm_712",
1924
- "swap--with-border": "_swap--with-border_1balm_718",
1925
- "swap--interactive": "_swap--interactive_1balm_726",
1921
+ "swap--group-horizontal": "_swap--group-horizontal_mmaa6_697",
1922
+ "swap--group-vertical": "_swap--group-vertical_mmaa6_704",
1923
+ "swap--with-background": "_swap--with-background_mmaa6_712",
1924
+ "swap--with-border": "_swap--with-border_mmaa6_718",
1925
+ "swap--interactive": "_swap--interactive_mmaa6_726",
1926
1926
  root: lc,
1927
1927
  fullWidth: uc,
1928
1928
  wrapper: dc,
@@ -1941,8 +1941,8 @@ const R2 = ({
1941
1941
  clearButton: Sc,
1942
1942
  withPrefix: Ec,
1943
1943
  withSuffix: Lc,
1944
- requiredIcon: Pc,
1945
- filled: $c,
1944
+ filled: Pc,
1945
+ requiredIcon: $c,
1946
1946
  innerHint: Rc,
1947
1947
  affix: Nc,
1948
1948
  prefix: kc,
@@ -1956,8 +1956,8 @@ const R2 = ({
1956
1956
  showErrorMessage: o = !0,
1957
1957
  hasError: r = !1,
1958
1958
  hint: a,
1959
- isRequired: i,
1960
- label: s,
1959
+ isRequired: s,
1960
+ label: i,
1961
1961
  id: c,
1962
1962
  clearable: l = !1,
1963
1963
  variant: u = "outline",
@@ -1981,7 +1981,7 @@ const R2 = ({
1981
1981
  target: { value: "" },
1982
1982
  currentTarget: { value: "" }
1983
1983
  });
1984
- }, O = r || !!n, j = d === "medium", z = j ? s : y;
1984
+ }, O = r || !!n, j = d === "medium", z = j ? void 0 : y;
1985
1985
  return /* @__PURE__ */ A("div", { className: I(K.root, b && K.fullWidth, e), children: [
1986
1986
  /* @__PURE__ */ A(
1987
1987
  "div",
@@ -2015,9 +2015,9 @@ const R2 = ({
2015
2015
  ...x
2016
2016
  }
2017
2017
  ),
2018
- s && j && /* @__PURE__ */ A("label", { htmlFor: c, className: I(K.label), children: [
2019
- s,
2020
- i && /* @__PURE__ */ f(Vn, { className: K.requiredIcon })
2018
+ i && j && /* @__PURE__ */ A("label", { htmlFor: c, className: I(K.label), children: [
2019
+ i,
2020
+ s && /* @__PURE__ */ f(Vn, { className: K.requiredIcon })
2021
2021
  ] }),
2022
2022
  a && !j && !O && !T && /* @__PURE__ */ f("span", { className: K.innerHint, children: a }),
2023
2023
  l && T && !t && /* @__PURE__ */ f(
@@ -2102,19 +2102,19 @@ const N2 = ({
2102
2102
  className: o,
2103
2103
  groupError: r,
2104
2104
  showGroupErrorMessage: a = !0,
2105
- ...i
2106
- }, s) => {
2105
+ ...s
2106
+ }, i) => {
2107
2107
  const c = Array.isArray(e) ? e : [e], l = c.length, u = c.map((_) => _.props.error).filter(Boolean), d = r || (u.length > 0 ? u.join(", ") : "");
2108
2108
  return /* @__PURE__ */ A(
2109
2109
  "div",
2110
2110
  {
2111
- ref: s,
2111
+ ref: i,
2112
2112
  className: I(
2113
2113
  Je.root,
2114
2114
  n && Je.fullWidth,
2115
2115
  o
2116
2116
  ),
2117
- ...i,
2117
+ ...s,
2118
2118
  children: [
2119
2119
  /* @__PURE__ */ f("div", { className: I(Je.container, Je[t]), children: c.map((_, m) => {
2120
2120
  const w = m === 0 ? "first" : m === l - 1 ? "last" : "middle", p = M.cloneElement(_, {
@@ -2151,13 +2151,13 @@ const k2 = ({
2151
2151
  const a = e ? jn({
2152
2152
  name: e,
2153
2153
  control: t
2154
- }) : null, s = (n || a?.fieldState.error)?.message || "";
2154
+ }) : null, i = (n || a?.fieldState.error)?.message || "";
2155
2155
  return /* @__PURE__ */ f(
2156
2156
  Ko,
2157
2157
  {
2158
2158
  ...r,
2159
- groupError: s,
2160
- showGroupErrorMessage: !!s,
2159
+ groupError: i,
2160
+ showGroupErrorMessage: !!i,
2161
2161
  children: o
2162
2162
  }
2163
2163
  );
@@ -2229,8 +2229,8 @@ const k2 = ({
2229
2229
  direction: o = "column",
2230
2230
  justify: r = "start",
2231
2231
  align: a = "stretch",
2232
- padding: i = "m",
2233
- margin: s = "none",
2232
+ padding: s = "m",
2233
+ margin: i = "none",
2234
2234
  maxWidth: c = "full",
2235
2235
  className: l
2236
2236
  }) => /* @__PURE__ */ f(
@@ -2240,8 +2240,8 @@ const k2 = ({
2240
2240
  ve.pageContainer,
2241
2241
  ve[t],
2242
2242
  ve[`layout-${n}`],
2243
- ve[`padding-${i}`],
2244
- ve[`margin-${s}`],
2243
+ ve[`padding-${s}`],
2244
+ ve[`margin-${i}`],
2245
2245
  ve[`maxWidth-${c}`],
2246
2246
  l
2247
2247
  ),
@@ -2304,10 +2304,10 @@ const k2 = ({
2304
2304
  size: o = "m",
2305
2305
  variant: r = "default",
2306
2306
  className: a,
2307
- fullWidth: i = !1,
2308
- responsive: s = !0
2307
+ fullWidth: s = !1,
2308
+ responsive: i = !0
2309
2309
  }) => {
2310
- const [c, l] = W(t || e[0]?.value), u = vt(() => s ? e.length > 4 : !1, [e.length, s]), d = (_) => {
2310
+ const [c, l] = W(t || e[0]?.value), u = vt(() => i ? e.length > 4 : !1, [e.length, i]), d = (_) => {
2311
2311
  l(_), n?.(_);
2312
2312
  };
2313
2313
  return /* @__PURE__ */ f(
@@ -2318,8 +2318,8 @@ const k2 = ({
2318
2318
  Te[`size-${o}`],
2319
2319
  Te[`variant-${r}`],
2320
2320
  {
2321
- [Te.fullWidth]: i,
2322
- [Te.scrollable]: u && !i
2321
+ [Te.fullWidth]: s,
2322
+ [Te.scrollable]: u && !s
2323
2323
  },
2324
2324
  a
2325
2325
  ),
@@ -2367,12 +2367,12 @@ function ne(...e) {
2367
2367
  // @__NO_SIDE_EFFECTS__
2368
2368
  function Dt(e) {
2369
2369
  const t = /* @__PURE__ */ il(e), n = h.forwardRef((o, r) => {
2370
- const { children: a, ...i } = o, s = h.Children.toArray(a), c = s.find(ll);
2370
+ const { children: a, ...s } = o, i = h.Children.toArray(a), c = i.find(ll);
2371
2371
  if (c) {
2372
- const l = c.props.children, u = s.map((d) => d === c ? h.Children.count(l) > 1 ? h.Children.only(null) : h.isValidElement(l) ? l.props.children : null : d);
2373
- return /* @__PURE__ */ f(t, { ...i, ref: r, children: h.isValidElement(l) ? h.cloneElement(l, void 0, u) : null });
2372
+ const l = c.props.children, u = i.map((d) => d === c ? h.Children.count(l) > 1 ? h.Children.only(null) : h.isValidElement(l) ? l.props.children : null : d);
2373
+ return /* @__PURE__ */ f(t, { ...s, ref: r, children: h.isValidElement(l) ? h.cloneElement(l, void 0, u) : null });
2374
2374
  }
2375
- return /* @__PURE__ */ f(t, { ...i, ref: r, children: a });
2375
+ return /* @__PURE__ */ f(t, { ...s, ref: r, children: a });
2376
2376
  });
2377
2377
  return n.displayName = `${e}.Slot`, n;
2378
2378
  }
@@ -2381,8 +2381,8 @@ function il(e) {
2381
2381
  const t = h.forwardRef((n, o) => {
2382
2382
  const { children: r, ...a } = n;
2383
2383
  if (h.isValidElement(r)) {
2384
- const i = dl(r), s = ul(a, r.props);
2385
- return r.type !== h.Fragment && (s.ref = o ? Qo(o, i) : i), h.cloneElement(r, s);
2384
+ const s = dl(r), i = ul(a, r.props);
2385
+ return r.type !== h.Fragment && (i.ref = o ? Qo(o, s) : s), h.cloneElement(r, i);
2386
2386
  }
2387
2387
  return h.Children.count(r) > 1 ? h.Children.only(null) : null;
2388
2388
  });
@@ -2396,9 +2396,9 @@ function ul(e, t) {
2396
2396
  const n = { ...t };
2397
2397
  for (const o in t) {
2398
2398
  const r = e[o], a = t[o];
2399
- /^on[A-Z]/.test(o) ? r && a ? n[o] = (...s) => {
2400
- const c = a(...s);
2401
- return r(...s), c;
2399
+ /^on[A-Z]/.test(o) ? r && a ? n[o] = (...i) => {
2400
+ const c = a(...i);
2401
+ return r(...i), c;
2402
2402
  } : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...a } : o === "className" && (n[o] = [r, a].filter(Boolean).join(" "));
2403
2403
  }
2404
2404
  return { ...e, ...n };
@@ -2427,8 +2427,8 @@ var fl = [
2427
2427
  "ul"
2428
2428
  ], G = fl.reduce((e, t) => {
2429
2429
  const n = /* @__PURE__ */ Dt(`Primitive.${t}`), o = h.forwardRef((r, a) => {
2430
- const { asChild: i, ...s } = r, c = i ? n : t;
2431
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...s, ref: a });
2430
+ const { asChild: s, ...i } = r, c = s ? n : t;
2431
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...i, ref: a });
2432
2432
  });
2433
2433
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
2434
2434
  }, {});
@@ -2458,29 +2458,29 @@ function te(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
2458
2458
  }
2459
2459
  function Wn(e, t = []) {
2460
2460
  let n = [];
2461
- function o(a, i) {
2462
- const s = h.createContext(i), c = n.length;
2463
- n = [...n, i];
2461
+ function o(a, s) {
2462
+ const i = h.createContext(s), c = n.length;
2463
+ n = [...n, s];
2464
2464
  const l = (d) => {
2465
- const { scope: _, children: m, ...w } = d, p = _?.[e]?.[c] || s, g = h.useMemo(() => w, Object.values(w));
2465
+ const { scope: _, children: m, ...w } = d, p = _?.[e]?.[c] || i, g = h.useMemo(() => w, Object.values(w));
2466
2466
  return /* @__PURE__ */ f(p.Provider, { value: g, children: m });
2467
2467
  };
2468
2468
  l.displayName = a + "Provider";
2469
2469
  function u(d, _) {
2470
- const m = _?.[e]?.[c] || s, w = h.useContext(m);
2470
+ const m = _?.[e]?.[c] || i, w = h.useContext(m);
2471
2471
  if (w) return w;
2472
- if (i !== void 0) return i;
2472
+ if (s !== void 0) return s;
2473
2473
  throw new Error(`\`${d}\` must be used within \`${a}\``);
2474
2474
  }
2475
2475
  return [l, u];
2476
2476
  }
2477
2477
  const r = () => {
2478
- const a = n.map((i) => h.createContext(i));
2479
- return function(s) {
2480
- const c = s?.[e] || a;
2478
+ const a = n.map((s) => h.createContext(s));
2479
+ return function(i) {
2480
+ const c = i?.[e] || a;
2481
2481
  return h.useMemo(
2482
- () => ({ [`__scope${e}`]: { ...s, [e]: c } }),
2483
- [s, c]
2482
+ () => ({ [`__scope${e}`]: { ...i, [e]: c } }),
2483
+ [i, c]
2484
2484
  );
2485
2485
  };
2486
2486
  };
@@ -2495,11 +2495,11 @@ function ml(...e) {
2495
2495
  scopeName: r.scopeName
2496
2496
  }));
2497
2497
  return function(a) {
2498
- const i = o.reduce((s, { useScope: c, scopeName: l }) => {
2498
+ const s = o.reduce((i, { useScope: c, scopeName: l }) => {
2499
2499
  const d = c(a)[`__scope${l}`];
2500
- return { ...s, ...d };
2500
+ return { ...i, ...d };
2501
2501
  }, {});
2502
- return h.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
2502
+ return h.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
2503
2503
  };
2504
2504
  };
2505
2505
  return n.scopeName = t.scopeName, n;
@@ -2508,18 +2508,18 @@ function gl(e) {
2508
2508
  const t = e + "CollectionProvider", [n, o] = Wn(t), [r, a] = n(
2509
2509
  t,
2510
2510
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
2511
- ), i = (p) => {
2511
+ ), s = (p) => {
2512
2512
  const { scope: g, children: v } = p, C = M.useRef(null), b = M.useRef(/* @__PURE__ */ new Map()).current;
2513
2513
  return /* @__PURE__ */ f(r, { scope: g, itemMap: b, collectionRef: C, children: v });
2514
2514
  };
2515
- i.displayName = t;
2516
- const s = e + "CollectionSlot", c = /* @__PURE__ */ Dt(s), l = M.forwardRef(
2515
+ s.displayName = t;
2516
+ const i = e + "CollectionSlot", c = /* @__PURE__ */ Dt(i), l = M.forwardRef(
2517
2517
  (p, g) => {
2518
- const { scope: v, children: C } = p, b = a(s, v), y = ne(g, b.collectionRef);
2518
+ const { scope: v, children: C } = p, b = a(i, v), y = ne(g, b.collectionRef);
2519
2519
  return /* @__PURE__ */ f(c, { ref: y, children: C });
2520
2520
  }
2521
2521
  );
2522
- l.displayName = s;
2522
+ l.displayName = i;
2523
2523
  const u = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Dt(u), m = M.forwardRef(
2524
2524
  (p, g) => {
2525
2525
  const { scope: v, children: C, ...b } = p, y = M.useRef(null), x = ne(g, y), E = a(u, v);
@@ -2539,7 +2539,7 @@ function gl(e) {
2539
2539
  }, [g.collectionRef, g.itemMap]);
2540
2540
  }
2541
2541
  return [
2542
- { Provider: i, Slot: l, ItemSlot: m },
2542
+ { Provider: s, Slot: l, ItemSlot: m },
2543
2543
  w,
2544
2544
  o
2545
2545
  ];
@@ -2581,18 +2581,18 @@ var bl = "DismissableLayer", yn = "dismissableLayer.update", yl = "dismissableLa
2581
2581
  onEscapeKeyDown: o,
2582
2582
  onPointerDownOutside: r,
2583
2583
  onFocusOutside: a,
2584
- onInteractOutside: i,
2585
- onDismiss: s,
2584
+ onInteractOutside: s,
2585
+ onDismiss: i,
2586
2586
  ...c
2587
2587
  } = e, l = h.useContext(er), [u, d] = h.useState(null), _ = u?.ownerDocument ?? globalThis?.document, [, m] = h.useState({}), w = ne(t, (S) => d(S)), p = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = p.indexOf(g), C = u ? p.indexOf(u) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, y = C >= v, x = Ll((S) => {
2588
2588
  const L = S.target, $ = [...l.branches].some((N) => N.contains(L));
2589
- !y || $ || (r?.(S), i?.(S), S.defaultPrevented || s?.());
2589
+ !y || $ || (r?.(S), s?.(S), S.defaultPrevented || i?.());
2590
2590
  }, _), E = Pl((S) => {
2591
2591
  const L = S.target;
2592
- [...l.branches].some((N) => N.contains(L)) || (a?.(S), i?.(S), S.defaultPrevented || s?.());
2592
+ [...l.branches].some((N) => N.contains(L)) || (a?.(S), s?.(S), S.defaultPrevented || i?.());
2593
2593
  }, _);
2594
2594
  return Cl((S) => {
2595
- C === l.layers.size - 1 && (o?.(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
2595
+ C === l.layers.size - 1 && (o?.(S), !S.defaultPrevented && i && (S.preventDefault(), i()));
2596
2596
  }, _), h.useEffect(() => {
2597
2597
  if (u)
2598
2598
  return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (io = _.body.style.pointerEvents, _.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), co(), () => {
@@ -2638,8 +2638,8 @@ function Ll(e, t = globalThis?.document) {
2638
2638
  const n = Ze(e), o = h.useRef(!1), r = h.useRef(() => {
2639
2639
  });
2640
2640
  return h.useEffect(() => {
2641
- const a = (s) => {
2642
- if (s.target && !o.current) {
2641
+ const a = (i) => {
2642
+ if (i.target && !o.current) {
2643
2643
  let c = function() {
2644
2644
  nr(
2645
2645
  yl,
@@ -2648,16 +2648,16 @@ function Ll(e, t = globalThis?.document) {
2648
2648
  { discrete: !0 }
2649
2649
  );
2650
2650
  };
2651
- const l = { originalEvent: s };
2652
- s.pointerType === "touch" ? (t.removeEventListener("click", r.current), r.current = c, t.addEventListener("click", r.current, { once: !0 })) : c();
2651
+ const l = { originalEvent: i };
2652
+ i.pointerType === "touch" ? (t.removeEventListener("click", r.current), r.current = c, t.addEventListener("click", r.current, { once: !0 })) : c();
2653
2653
  } else
2654
2654
  t.removeEventListener("click", r.current);
2655
2655
  o.current = !1;
2656
- }, i = window.setTimeout(() => {
2656
+ }, s = window.setTimeout(() => {
2657
2657
  t.addEventListener("pointerdown", a);
2658
2658
  }, 0);
2659
2659
  return () => {
2660
- window.clearTimeout(i), t.removeEventListener("pointerdown", a), t.removeEventListener("click", r.current);
2660
+ window.clearTimeout(s), t.removeEventListener("pointerdown", a), t.removeEventListener("click", r.current);
2661
2661
  };
2662
2662
  }, [t, n]), {
2663
2663
  // ensures we check React component tree (not just DOM tree)
@@ -2705,8 +2705,8 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
2705
2705
  trapped: o = !1,
2706
2706
  onMountAutoFocus: r,
2707
2707
  onUnmountAutoFocus: a,
2708
- ...i
2709
- } = e, [s, c] = h.useState(null), l = Ze(r), u = Ze(a), d = h.useRef(null), _ = ne(t, (p) => c(p)), m = h.useRef({
2708
+ ...s
2709
+ } = e, [i, c] = h.useState(null), l = Ze(r), u = Ze(a), d = h.useRef(null), _ = ne(t, (p) => c(p)), m = h.useRef({
2710
2710
  paused: !1,
2711
2711
  pause() {
2712
2712
  this.paused = !0;
@@ -2718,40 +2718,40 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
2718
2718
  h.useEffect(() => {
2719
2719
  if (o) {
2720
2720
  let p = function(b) {
2721
- if (m.paused || !s) return;
2721
+ if (m.paused || !i) return;
2722
2722
  const y = b.target;
2723
- s.contains(y) ? d.current = y : ze(d.current, { select: !0 });
2723
+ i.contains(y) ? d.current = y : ze(d.current, { select: !0 });
2724
2724
  }, g = function(b) {
2725
- if (m.paused || !s) return;
2725
+ if (m.paused || !i) return;
2726
2726
  const y = b.relatedTarget;
2727
- y !== null && (s.contains(y) || ze(d.current, { select: !0 }));
2727
+ y !== null && (i.contains(y) || ze(d.current, { select: !0 }));
2728
2728
  }, v = function(b) {
2729
2729
  if (document.activeElement === document.body)
2730
2730
  for (const x of b)
2731
- x.removedNodes.length > 0 && ze(s);
2731
+ x.removedNodes.length > 0 && ze(i);
2732
2732
  };
2733
2733
  document.addEventListener("focusin", p), document.addEventListener("focusout", g);
2734
2734
  const C = new MutationObserver(v);
2735
- return s && C.observe(s, { childList: !0, subtree: !0 }), () => {
2735
+ return i && C.observe(i, { childList: !0, subtree: !0 }), () => {
2736
2736
  document.removeEventListener("focusin", p), document.removeEventListener("focusout", g), C.disconnect();
2737
2737
  };
2738
2738
  }
2739
- }, [o, s, m.paused]), h.useEffect(() => {
2740
- if (s) {
2739
+ }, [o, i, m.paused]), h.useEffect(() => {
2740
+ if (i) {
2741
2741
  _o.add(m);
2742
2742
  const p = document.activeElement;
2743
- if (!s.contains(p)) {
2743
+ if (!i.contains(p)) {
2744
2744
  const v = new CustomEvent(un, uo);
2745
- s.addEventListener(un, l), s.dispatchEvent(v), v.defaultPrevented || (Nl(Ml(rr(s)), { select: !0 }), document.activeElement === p && ze(s));
2745
+ i.addEventListener(un, l), i.dispatchEvent(v), v.defaultPrevented || (Nl(Ml(rr(i)), { select: !0 }), document.activeElement === p && ze(i));
2746
2746
  }
2747
2747
  return () => {
2748
- s.removeEventListener(un, l), setTimeout(() => {
2748
+ i.removeEventListener(un, l), setTimeout(() => {
2749
2749
  const v = new CustomEvent(dn, uo);
2750
- s.addEventListener(dn, u), s.dispatchEvent(v), v.defaultPrevented || ze(p ?? document.body, { select: !0 }), s.removeEventListener(dn, u), _o.remove(m);
2750
+ i.addEventListener(dn, u), i.dispatchEvent(v), v.defaultPrevented || ze(p ?? document.body, { select: !0 }), i.removeEventListener(dn, u), _o.remove(m);
2751
2751
  }, 0);
2752
2752
  };
2753
2753
  }
2754
- }, [s, l, u, m]);
2754
+ }, [i, l, u, m]);
2755
2755
  const w = h.useCallback(
2756
2756
  (p) => {
2757
2757
  if (!n && !o || m.paused) return;
@@ -2763,7 +2763,7 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
2763
2763
  },
2764
2764
  [n, o, m.paused]
2765
2765
  );
2766
- return /* @__PURE__ */ f(G.div, { tabIndex: -1, ...i, ref: _, onKeyDown: w });
2766
+ return /* @__PURE__ */ f(G.div, { tabIndex: -1, ...s, ref: _, onKeyDown: w });
2767
2767
  });
2768
2768
  or.displayName = Rl;
2769
2769
  function Nl(e, { select: t = !1 } = {}) {
@@ -2876,8 +2876,8 @@ function qn(e) {
2876
2876
  function jl(e, t, n) {
2877
2877
  n === void 0 && (n = !1);
2878
2878
  const o = lt(e), r = qn(e), a = Zn(r);
2879
- let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
2880
- return t.reference[a] > t.floating[a] && (i = Ht(i)), [i, Ht(i)];
2879
+ let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
2880
+ return t.reference[a] > t.floating[a] && (s = Ht(s)), [s, Ht(s)];
2881
2881
  }
2882
2882
  function Wl(e) {
2883
2883
  const t = Ht(e);
@@ -2902,7 +2902,7 @@ function Zl(e, t, n) {
2902
2902
  function ql(e, t, n, o) {
2903
2903
  const r = lt(e);
2904
2904
  let a = Zl(Pe(e), n === "start", o);
2905
- return r && (a = a.map((i) => i + "-" + r), t && (a = a.concat(a.map(Sn)))), a;
2905
+ return r && (a = a.map((s) => s + "-" + r), t && (a = a.concat(a.map(Sn)))), a;
2906
2906
  }
2907
2907
  function Ht(e) {
2908
2908
  return e.replace(/left|right|bottom|top/g, (t) => Vl[t]);
@@ -2947,7 +2947,7 @@ function go(e, t, n) {
2947
2947
  reference: o,
2948
2948
  floating: r
2949
2949
  } = e;
2950
- const a = be(t), i = qn(t), s = Zn(i), c = Pe(t), l = a === "y", u = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, _ = o[s] / 2 - r[s] / 2;
2950
+ const a = be(t), s = qn(t), i = Zn(s), c = Pe(t), l = a === "y", u = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, _ = o[i] / 2 - r[i] / 2;
2951
2951
  let m;
2952
2952
  switch (c) {
2953
2953
  case "top":
@@ -2982,10 +2982,10 @@ function go(e, t, n) {
2982
2982
  }
2983
2983
  switch (lt(t)) {
2984
2984
  case "start":
2985
- m[i] -= _ * (n && l ? -1 : 1);
2985
+ m[s] -= _ * (n && l ? -1 : 1);
2986
2986
  break;
2987
2987
  case "end":
2988
- m[i] += _ * (n && l ? -1 : 1);
2988
+ m[s] += _ * (n && l ? -1 : 1);
2989
2989
  break;
2990
2990
  }
2991
2991
  return m;
@@ -2995,9 +2995,9 @@ const Yl = async (e, t, n) => {
2995
2995
  placement: o = "bottom",
2996
2996
  strategy: r = "absolute",
2997
2997
  middleware: a = [],
2998
- platform: i
2999
- } = n, s = a.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(t));
3000
- let l = await i.getElementRects({
2998
+ platform: s
2999
+ } = n, i = a.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
3000
+ let l = await s.getElementRects({
3001
3001
  reference: e,
3002
3002
  floating: t,
3003
3003
  strategy: r
@@ -3005,11 +3005,11 @@ const Yl = async (e, t, n) => {
3005
3005
  x: u,
3006
3006
  y: d
3007
3007
  } = go(l, o, c), _ = o, m = {}, w = 0;
3008
- for (let p = 0; p < s.length; p++) {
3008
+ for (let p = 0; p < i.length; p++) {
3009
3009
  const {
3010
3010
  name: g,
3011
3011
  fn: v
3012
- } = s[p], {
3012
+ } = i[p], {
3013
3013
  x: C,
3014
3014
  y: b,
3015
3015
  data: y,
@@ -3022,7 +3022,7 @@ const Yl = async (e, t, n) => {
3022
3022
  strategy: r,
3023
3023
  middlewareData: m,
3024
3024
  rects: l,
3025
- platform: i,
3025
+ platform: s,
3026
3026
  elements: {
3027
3027
  reference: e,
3028
3028
  floating: t
@@ -3034,7 +3034,7 @@ const Yl = async (e, t, n) => {
3034
3034
  ...m[g],
3035
3035
  ...y
3036
3036
  }
3037
- }, x && w <= 50 && (w++, typeof x == "object" && (x.placement && (_ = x.placement), x.rects && (l = x.rects === !0 ? await i.getElementRects({
3037
+ }, x && w <= 50 && (w++, typeof x == "object" && (x.placement && (_ = x.placement), x.rects && (l = x.rects === !0 ? await s.getElementRects({
3038
3038
  reference: e,
3039
3039
  floating: t,
3040
3040
  strategy: r
@@ -3058,8 +3058,8 @@ async function Ct(e, t) {
3058
3058
  x: o,
3059
3059
  y: r,
3060
3060
  platform: a,
3061
- rects: i,
3062
- elements: s,
3061
+ rects: s,
3062
+ elements: i,
3063
3063
  strategy: c
3064
3064
  } = e, {
3065
3065
  boundary: l = "clippingAncestors",
@@ -3067,24 +3067,24 @@ async function Ct(e, t) {
3067
3067
  elementContext: d = "floating",
3068
3068
  altBoundary: _ = !1,
3069
3069
  padding: m = 0
3070
- } = Le(t, e), w = ar(m), g = s[_ ? d === "floating" ? "reference" : "floating" : d], v = Bt(await a.getClippingRect({
3071
- element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
3070
+ } = Le(t, e), w = ar(m), g = i[_ ? d === "floating" ? "reference" : "floating" : d], v = Bt(await a.getClippingRect({
3071
+ element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
3072
3072
  boundary: l,
3073
3073
  rootBoundary: u,
3074
3074
  strategy: c
3075
3075
  })), C = d === "floating" ? {
3076
3076
  x: o,
3077
3077
  y: r,
3078
- width: i.floating.width,
3079
- height: i.floating.height
3080
- } : i.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), y = await (a.isElement == null ? void 0 : a.isElement(b)) ? await (a.getScale == null ? void 0 : a.getScale(b)) || {
3078
+ width: s.floating.width,
3079
+ height: s.floating.height
3080
+ } : s.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(i.floating)), y = await (a.isElement == null ? void 0 : a.isElement(b)) ? await (a.getScale == null ? void 0 : a.getScale(b)) || {
3081
3081
  x: 1,
3082
3082
  y: 1
3083
3083
  } : {
3084
3084
  x: 1,
3085
3085
  y: 1
3086
3086
  }, x = Bt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
3087
- elements: s,
3087
+ elements: i,
3088
3088
  rect: C,
3089
3089
  offsetParent: b,
3090
3090
  strategy: c
@@ -3105,8 +3105,8 @@ const Gl = (e) => ({
3105
3105
  y: o,
3106
3106
  placement: r,
3107
3107
  rects: a,
3108
- platform: i,
3109
- elements: s,
3108
+ platform: s,
3109
+ elements: i,
3110
3110
  middlewareData: c
3111
3111
  } = t, {
3112
3112
  element: l,
@@ -3117,9 +3117,9 @@ const Gl = (e) => ({
3117
3117
  const d = ar(u), _ = {
3118
3118
  x: n,
3119
3119
  y: o
3120
- }, m = qn(r), w = Zn(m), p = await i.getDimensions(l), g = m === "y", v = g ? "top" : "left", C = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", y = a.reference[w] + a.reference[m] - _[m] - a.floating[w], x = _[m] - a.reference[m], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
3120
+ }, m = qn(r), w = Zn(m), p = await s.getDimensions(l), g = m === "y", v = g ? "top" : "left", C = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", y = a.reference[w] + a.reference[m] - _[m] - a.floating[w], x = _[m] - a.reference[m], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
3121
3121
  let S = E ? E[b] : 0;
3122
- (!S || !await (i.isElement == null ? void 0 : i.isElement(E))) && (S = s.floating[b] || a.floating[w]);
3122
+ (!S || !await (s.isElement == null ? void 0 : s.isElement(E))) && (S = i.floating[b] || a.floating[w]);
3123
3123
  const L = y / 2 - x / 2, $ = S / 2 - p[w] / 2 - 1, N = Me(d[v], $), T = Me(d[C], $), B = N, H = S - p[w] - T, O = S / 2 - p[w] / 2 + L, j = xn(B, O, H), z = !c.arrow && lt(r) != null && O !== j && a.reference[w] / 2 - (O < B ? N : T) - p[w] / 2 < 0, D = z ? O < B ? O - B : O - H : 0;
3124
3124
  return {
3125
3125
  [m]: _[m] + D,
@@ -3142,8 +3142,8 @@ const Gl = (e) => ({
3142
3142
  const {
3143
3143
  placement: r,
3144
3144
  middlewareData: a,
3145
- rects: i,
3146
- initialPlacement: s,
3145
+ rects: s,
3146
+ initialPlacement: i,
3147
3147
  platform: c,
3148
3148
  elements: l
3149
3149
  } = t, {
@@ -3157,12 +3157,12 @@ const Gl = (e) => ({
3157
3157
  } = Le(e, t);
3158
3158
  if ((n = a.arrow) != null && n.alignmentOffset)
3159
3159
  return {};
3160
- const v = Pe(r), C = be(s), b = Pe(s) === s, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = _ || (b || !p ? [Ht(s)] : Wl(s)), E = w !== "none";
3161
- !_ && E && x.push(...ql(s, p, w, y));
3162
- const S = [s, ...x], L = await Ct(t, g), $ = [];
3160
+ const v = Pe(r), C = be(i), b = Pe(i) === i, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = _ || (b || !p ? [Ht(i)] : Wl(i)), E = w !== "none";
3161
+ !_ && E && x.push(...ql(i, p, w, y));
3162
+ const S = [i, ...x], L = await Ct(t, g), $ = [];
3163
3163
  let N = ((o = a.flip) == null ? void 0 : o.overflows) || [];
3164
3164
  if (u && $.push(L[v]), d) {
3165
- const O = jl(r, i, y);
3165
+ const O = jl(r, s, y);
3166
3166
  $.push(L[O[0]], L[O[1]]);
3167
3167
  }
3168
3168
  if (N = [...N, {
@@ -3201,7 +3201,7 @@ const Gl = (e) => ({
3201
3201
  break;
3202
3202
  }
3203
3203
  case "initialPlacement":
3204
- z = s;
3204
+ z = i;
3205
3205
  break;
3206
3206
  }
3207
3207
  if (r !== z)
@@ -3242,11 +3242,11 @@ const Ql = function(e) {
3242
3242
  const a = await Ct(t, {
3243
3243
  ...r,
3244
3244
  elementContext: "reference"
3245
- }), i = wo(a, n.reference);
3245
+ }), s = wo(a, n.reference);
3246
3246
  return {
3247
3247
  data: {
3248
- referenceHiddenOffsets: i,
3249
- referenceHidden: vo(i)
3248
+ referenceHiddenOffsets: s,
3249
+ referenceHidden: vo(s)
3250
3250
  }
3251
3251
  };
3252
3252
  }
@@ -3254,11 +3254,11 @@ const Ql = function(e) {
3254
3254
  const a = await Ct(t, {
3255
3255
  ...r,
3256
3256
  altBoundary: !0
3257
- }), i = wo(a, n.floating);
3257
+ }), s = wo(a, n.floating);
3258
3258
  return {
3259
3259
  data: {
3260
- escapedOffsets: i,
3261
- escaped: vo(i)
3260
+ escapedOffsets: s,
3261
+ escaped: vo(s)
3262
3262
  }
3263
3263
  };
3264
3264
  }
@@ -3273,7 +3273,7 @@ async function Jl(e, t) {
3273
3273
  placement: n,
3274
3274
  platform: o,
3275
3275
  elements: r
3276
- } = e, a = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = Pe(n), s = lt(n), c = be(n) === "y", l = sr.has(i) ? -1 : 1, u = a && c ? -1 : 1, d = Le(t, e);
3276
+ } = e, a = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = Pe(n), i = lt(n), c = be(n) === "y", l = sr.has(s) ? -1 : 1, u = a && c ? -1 : 1, d = Le(t, e);
3277
3277
  let {
3278
3278
  mainAxis: _,
3279
3279
  crossAxis: m,
@@ -3287,7 +3287,7 @@ async function Jl(e, t) {
3287
3287
  crossAxis: d.crossAxis || 0,
3288
3288
  alignmentAxis: d.alignmentAxis
3289
3289
  };
3290
- return s && typeof w == "number" && (m = s === "end" ? w * -1 : w), c ? {
3290
+ return i && typeof w == "number" && (m = i === "end" ? w * -1 : w), c ? {
3291
3291
  x: m * u,
3292
3292
  y: _ * l
3293
3293
  } : {
@@ -3304,15 +3304,15 @@ const e1 = function(e) {
3304
3304
  const {
3305
3305
  x: r,
3306
3306
  y: a,
3307
- placement: i,
3308
- middlewareData: s
3307
+ placement: s,
3308
+ middlewareData: i
3309
3309
  } = t, c = await Jl(t, e);
3310
- return i === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
3310
+ return s === ((n = i.offset) == null ? void 0 : n.placement) && (o = i.arrow) != null && o.alignmentOffset ? {} : {
3311
3311
  x: r + c.x,
3312
3312
  y: a + c.y,
3313
3313
  data: {
3314
3314
  ...c,
3315
- placement: i
3315
+ placement: s
3316
3316
  }
3317
3317
  };
3318
3318
  }
@@ -3328,8 +3328,8 @@ const e1 = function(e) {
3328
3328
  placement: r
3329
3329
  } = t, {
3330
3330
  mainAxis: a = !0,
3331
- crossAxis: i = !1,
3332
- limiter: s = {
3331
+ crossAxis: s = !1,
3332
+ limiter: i = {
3333
3333
  fn: (g) => {
3334
3334
  let {
3335
3335
  x: v,
@@ -3351,11 +3351,11 @@ const e1 = function(e) {
3351
3351
  const g = _ === "y" ? "top" : "left", v = _ === "y" ? "bottom" : "right", C = m + u[g], b = m - u[v];
3352
3352
  m = xn(C, m, b);
3353
3353
  }
3354
- if (i) {
3354
+ if (s) {
3355
3355
  const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", C = w + u[g], b = w - u[v];
3356
3356
  w = xn(C, w, b);
3357
3357
  }
3358
- const p = s.fn({
3358
+ const p = i.fn({
3359
3359
  ...t,
3360
3360
  [_]: m,
3361
3361
  [d]: w
@@ -3367,7 +3367,7 @@ const e1 = function(e) {
3367
3367
  y: p.y - o,
3368
3368
  enabled: {
3369
3369
  [_]: a,
3370
- [d]: i
3370
+ [d]: s
3371
3371
  }
3372
3372
  }
3373
3373
  };
@@ -3382,9 +3382,9 @@ const e1 = function(e) {
3382
3382
  y: o,
3383
3383
  placement: r,
3384
3384
  rects: a,
3385
- middlewareData: i
3385
+ middlewareData: s
3386
3386
  } = t, {
3387
- offset: s = 0,
3387
+ offset: i = 0,
3388
3388
  mainAxis: c = !0,
3389
3389
  crossAxis: l = !0
3390
3390
  } = Le(e, t), u = {
@@ -3392,7 +3392,7 @@ const e1 = function(e) {
3392
3392
  y: o
3393
3393
  }, d = be(r), _ = Un(d);
3394
3394
  let m = u[_], w = u[d];
3395
- const p = Le(s, t), g = typeof p == "number" ? {
3395
+ const p = Le(i, t), g = typeof p == "number" ? {
3396
3396
  mainAxis: p,
3397
3397
  crossAxis: 0
3398
3398
  } : {
@@ -3406,7 +3406,7 @@ const e1 = function(e) {
3406
3406
  }
3407
3407
  if (l) {
3408
3408
  var v, C;
3409
- const b = _ === "y" ? "width" : "height", y = sr.has(Pe(r)), x = a.reference[d] - a.floating[b] + (y && ((v = i.offset) == null ? void 0 : v[d]) || 0) + (y ? 0 : g.crossAxis), E = a.reference[d] + a.reference[b] + (y ? 0 : ((C = i.offset) == null ? void 0 : C[d]) || 0) - (y ? g.crossAxis : 0);
3409
+ const b = _ === "y" ? "width" : "height", y = sr.has(Pe(r)), x = a.reference[d] - a.floating[b] + (y && ((v = s.offset) == null ? void 0 : v[d]) || 0) + (y ? 0 : g.crossAxis), E = a.reference[d] + a.reference[b] + (y ? 0 : ((C = s.offset) == null ? void 0 : C[d]) || 0) - (y ? g.crossAxis : 0);
3410
3410
  w < x ? w = x : w > E && (w = E);
3411
3411
  }
3412
3412
  return {
@@ -3424,8 +3424,8 @@ const e1 = function(e) {
3424
3424
  const {
3425
3425
  placement: r,
3426
3426
  rects: a,
3427
- platform: i,
3428
- elements: s
3427
+ platform: s,
3428
+ elements: i
3429
3429
  } = t, {
3430
3430
  apply: c = () => {
3431
3431
  },
@@ -3435,7 +3435,7 @@ const e1 = function(e) {
3435
3435
  height: p
3436
3436
  } = a.floating;
3437
3437
  let g, v;
3438
- d === "top" || d === "bottom" ? (g = d, v = _ === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (v = d, g = _ === "end" ? "top" : "bottom");
3438
+ d === "top" || d === "bottom" ? (g = d, v = _ === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (v = d, g = _ === "end" ? "top" : "bottom");
3439
3439
  const C = p - u.top - u.bottom, b = w - u.left - u.right, y = Me(p - u[g], C), x = Me(w - u[v], b), E = !t.middlewareData.shift;
3440
3440
  let S = y, L = x;
3441
3441
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (L = b), (o = t.middlewareData.shift) != null && o.enabled.y && (S = C), E && !_) {
@@ -3447,7 +3447,7 @@ const e1 = function(e) {
3447
3447
  availableWidth: L,
3448
3448
  availableHeight: S
3449
3449
  });
3450
- const $ = await i.getDimensions(s.floating);
3450
+ const $ = await s.getDimensions(i.floating);
3451
3451
  return w !== $.width || p !== $.height ? {
3452
3452
  reset: {
3453
3453
  rects: !0
@@ -3560,10 +3560,10 @@ function cr(e) {
3560
3560
  function bt(e, t, n) {
3561
3561
  var o;
3562
3562
  t === void 0 && (t = []), n === void 0 && (n = !0);
3563
- const r = cr(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = de(r);
3563
+ const r = cr(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = de(r);
3564
3564
  if (a) {
3565
- const s = En(i);
3566
- return t.concat(i, i.visualViewport || [], yt(r) ? r : [], s && n ? bt(s) : []);
3565
+ const i = En(s);
3566
+ return t.concat(s, s.visualViewport || [], yt(r) ? r : [], i && n ? bt(i) : []);
3567
3567
  }
3568
3568
  return t.concat(r, bt(r, [], n));
3569
3569
  }
@@ -3573,11 +3573,11 @@ function En(e) {
3573
3573
  function lr(e) {
3574
3574
  const t = we(e);
3575
3575
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
3576
- const r = xe(e), a = r ? e.offsetWidth : n, i = r ? e.offsetHeight : o, s = Vt(n) !== a || Vt(o) !== i;
3577
- return s && (n = a, o = i), {
3576
+ const r = xe(e), a = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, i = Vt(n) !== a || Vt(o) !== s;
3577
+ return i && (n = a, o = s), {
3578
3578
  width: n,
3579
3579
  height: o,
3580
- $: s
3580
+ $: i
3581
3581
  };
3582
3582
  }
3583
3583
  function Gn(e) {
@@ -3592,10 +3592,10 @@ function rt(e) {
3592
3592
  height: r,
3593
3593
  $: a
3594
3594
  } = lr(t);
3595
- let i = (a ? Vt(n.width) : n.width) / o, s = (a ? Vt(n.height) : n.height) / r;
3596
- return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
3597
- x: i,
3598
- y: s
3595
+ let s = (a ? Vt(n.width) : n.width) / o, i = (a ? Vt(n.height) : n.height) / r;
3596
+ return (!s || !Number.isFinite(s)) && (s = 1), (!i || !Number.isFinite(i)) && (i = 1), {
3597
+ x: s,
3598
+ y: i
3599
3599
  };
3600
3600
  }
3601
3601
  const _1 = /* @__PURE__ */ ye(0);
@@ -3612,10 +3612,10 @@ function p1(e, t, n) {
3612
3612
  function qe(e, t, n, o) {
3613
3613
  t === void 0 && (t = !1), n === void 0 && (n = !1);
3614
3614
  const r = e.getBoundingClientRect(), a = Gn(e);
3615
- let i = ye(1);
3616
- t && (o ? ge(o) && (i = rt(o)) : i = rt(e));
3617
- const s = p1(a, n, o) ? ur(a) : ye(0);
3618
- let c = (r.left + s.x) / i.x, l = (r.top + s.y) / i.y, u = r.width / i.x, d = r.height / i.y;
3615
+ let s = ye(1);
3616
+ t && (o ? ge(o) && (s = rt(o)) : s = rt(e));
3617
+ const i = p1(a, n, o) ? ur(a) : ye(0);
3618
+ let c = (r.left + i.x) / s.x, l = (r.top + i.y) / s.y, u = r.width / s.x, d = r.height / s.y;
3619
3619
  if (a) {
3620
3620
  const _ = de(a), m = o && ge(o) ? de(o) : o;
3621
3621
  let w = _, p = En(w);
@@ -3649,19 +3649,19 @@ function h1(e) {
3649
3649
  offsetParent: o,
3650
3650
  strategy: r
3651
3651
  } = e;
3652
- const a = r === "fixed", i = Se(o), s = t ? Xt(t.floating) : !1;
3653
- if (o === i || s && a)
3652
+ const a = r === "fixed", s = Se(o), i = t ? Xt(t.floating) : !1;
3653
+ if (o === s || i && a)
3654
3654
  return n;
3655
3655
  let c = {
3656
3656
  scrollLeft: 0,
3657
3657
  scrollTop: 0
3658
3658
  }, l = ye(1);
3659
3659
  const u = ye(0), d = xe(o);
3660
- if ((d || !d && !a) && ((ut(o) !== "body" || yt(i)) && (c = Yt(o)), xe(o))) {
3660
+ if ((d || !d && !a) && ((ut(o) !== "body" || yt(s)) && (c = Yt(o)), xe(o))) {
3661
3661
  const m = qe(o);
3662
3662
  l = rt(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
3663
3663
  }
3664
- const _ = i && !d && !a ? dr(i, c) : ye(0);
3664
+ const _ = s && !d && !a ? dr(s, c) : ye(0);
3665
3665
  return {
3666
3666
  width: n.width * l.x,
3667
3667
  height: n.height * l.y,
@@ -3674,23 +3674,23 @@ function m1(e) {
3674
3674
  }
3675
3675
  function g1(e) {
3676
3676
  const t = Se(e), n = Yt(e), o = e.ownerDocument.body, r = ue(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), a = ue(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
3677
- let i = -n.scrollLeft + Gt(e);
3678
- const s = -n.scrollTop;
3679
- return we(o).direction === "rtl" && (i += ue(t.clientWidth, o.clientWidth) - r), {
3677
+ let s = -n.scrollLeft + Gt(e);
3678
+ const i = -n.scrollTop;
3679
+ return we(o).direction === "rtl" && (s += ue(t.clientWidth, o.clientWidth) - r), {
3680
3680
  width: r,
3681
3681
  height: a,
3682
- x: i,
3683
- y: s
3682
+ x: s,
3683
+ y: i
3684
3684
  };
3685
3685
  }
3686
3686
  const bo = 25;
3687
3687
  function w1(e, t) {
3688
3688
  const n = de(e), o = Se(e), r = n.visualViewport;
3689
- let a = o.clientWidth, i = o.clientHeight, s = 0, c = 0;
3689
+ let a = o.clientWidth, s = o.clientHeight, i = 0, c = 0;
3690
3690
  if (r) {
3691
- a = r.width, i = r.height;
3691
+ a = r.width, s = r.height;
3692
3692
  const u = Yn();
3693
- (!u || u && t === "fixed") && (s = r.offsetLeft, c = r.offsetTop);
3693
+ (!u || u && t === "fixed") && (i = r.offsetLeft, c = r.offsetTop);
3694
3694
  }
3695
3695
  const l = Gt(o);
3696
3696
  if (l <= 0) {
@@ -3699,17 +3699,17 @@ function w1(e, t) {
3699
3699
  } else l <= bo && (a += l);
3700
3700
  return {
3701
3701
  width: a,
3702
- height: i,
3703
- x: s,
3702
+ height: s,
3703
+ x: i,
3704
3704
  y: c
3705
3705
  };
3706
3706
  }
3707
3707
  const v1 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
3708
3708
  function C1(e, t) {
3709
- const n = qe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, a = xe(e) ? rt(e) : ye(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, c = r * a.x, l = o * a.y;
3709
+ const n = qe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, a = xe(e) ? rt(e) : ye(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, c = r * a.x, l = o * a.y;
3710
3710
  return {
3711
- width: i,
3712
- height: s,
3711
+ width: s,
3712
+ height: i,
3713
3713
  x: c,
3714
3714
  y: l
3715
3715
  };
@@ -3741,12 +3741,12 @@ function b1(e, t) {
3741
3741
  const n = t.get(e);
3742
3742
  if (n)
3743
3743
  return n;
3744
- let o = bt(e, [], !1).filter((s) => ge(s) && ut(s) !== "body"), r = null;
3744
+ let o = bt(e, [], !1).filter((i) => ge(i) && ut(i) !== "body"), r = null;
3745
3745
  const a = we(e).position === "fixed";
3746
- let i = a ? Ie(e) : e;
3747
- for (; ge(i) && !it(i); ) {
3748
- const s = we(i), c = Xn(i);
3749
- !c && s.position === "fixed" && (r = null), (a ? !c && !r : !c && s.position === "static" && !!r && v1.has(r.position) || yt(i) && !c && fr(e, i)) ? o = o.filter((u) => u !== i) : r = s, i = Ie(i);
3746
+ let s = a ? Ie(e) : e;
3747
+ for (; ge(s) && !it(s); ) {
3748
+ const i = we(s), c = Xn(s);
3749
+ !c && i.position === "fixed" && (r = null), (a ? !c && !r : !c && i.position === "static" && !!r && v1.has(r.position) || yt(s) && !c && fr(e, s)) ? o = o.filter((u) => u !== s) : r = i, s = Ie(s);
3750
3750
  }
3751
3751
  return t.set(e, o), o;
3752
3752
  }
@@ -3757,10 +3757,10 @@ function y1(e) {
3757
3757
  rootBoundary: o,
3758
3758
  strategy: r
3759
3759
  } = e;
3760
- const i = [...n === "clippingAncestors" ? Xt(t) ? [] : b1(t, this._c) : [].concat(n), o], s = i[0], c = i.reduce((l, u) => {
3760
+ const s = [...n === "clippingAncestors" ? Xt(t) ? [] : b1(t, this._c) : [].concat(n), o], i = s[0], c = s.reduce((l, u) => {
3761
3761
  const d = yo(t, u, r);
3762
3762
  return l.top = ue(d.top, l.top), l.right = Me(d.right, l.right), l.bottom = Me(d.bottom, l.bottom), l.left = ue(d.left, l.left), l;
3763
- }, yo(t, s, r));
3763
+ }, yo(t, i, r));
3764
3764
  return {
3765
3765
  width: c.right - c.left,
3766
3766
  height: c.bottom - c.top,
@@ -3779,8 +3779,8 @@ function x1(e) {
3779
3779
  };
3780
3780
  }
3781
3781
  function S1(e, t, n) {
3782
- const o = xe(t), r = Se(t), a = n === "fixed", i = qe(e, !0, a, t);
3783
- let s = {
3782
+ const o = xe(t), r = Se(t), a = n === "fixed", s = qe(e, !0, a, t);
3783
+ let i = {
3784
3784
  scrollLeft: 0,
3785
3785
  scrollTop: 0
3786
3786
  };
@@ -3789,17 +3789,17 @@ function S1(e, t, n) {
3789
3789
  c.x = Gt(r);
3790
3790
  }
3791
3791
  if (o || !o && !a)
3792
- if ((ut(t) !== "body" || yt(r)) && (s = Yt(t)), o) {
3792
+ if ((ut(t) !== "body" || yt(r)) && (i = Yt(t)), o) {
3793
3793
  const m = qe(t, !0, a, t);
3794
3794
  c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
3795
3795
  } else r && l();
3796
3796
  a && !o && r && l();
3797
- const u = r && !o && !a ? dr(r, s) : ye(0), d = i.left + s.scrollLeft - c.x - u.x, _ = i.top + s.scrollTop - c.y - u.y;
3797
+ const u = r && !o && !a ? dr(r, i) : ye(0), d = s.left + i.scrollLeft - c.x - u.x, _ = s.top + i.scrollTop - c.y - u.y;
3798
3798
  return {
3799
3799
  x: d,
3800
3800
  y: _,
3801
- width: i.width,
3802
- height: i.height
3801
+ width: s.width,
3802
+ height: s.height
3803
3803
  };
3804
3804
  }
3805
3805
  function fn(e) {
@@ -3865,18 +3865,18 @@ function $1(e, t) {
3865
3865
  let n = null, o;
3866
3866
  const r = Se(e);
3867
3867
  function a() {
3868
- var s;
3869
- clearTimeout(o), (s = n) == null || s.disconnect(), n = null;
3868
+ var i;
3869
+ clearTimeout(o), (i = n) == null || i.disconnect(), n = null;
3870
3870
  }
3871
- function i(s, c) {
3872
- s === void 0 && (s = !1), c === void 0 && (c = 1), a();
3871
+ function s(i, c) {
3872
+ i === void 0 && (i = !1), c === void 0 && (c = 1), a();
3873
3873
  const l = e.getBoundingClientRect(), {
3874
3874
  left: u,
3875
3875
  top: d,
3876
3876
  width: _,
3877
3877
  height: m
3878
3878
  } = l;
3879
- if (s || t(), !_ || !m)
3879
+ if (i || t(), !_ || !m)
3880
3880
  return;
3881
3881
  const w = $t(d), p = $t(r.clientWidth - (u + _)), g = $t(r.clientHeight - (d + m)), v = $t(u), b = {
3882
3882
  rootMargin: -w + "px " + -p + "px " + -g + "px " + -v + "px",
@@ -3887,12 +3887,12 @@ function $1(e, t) {
3887
3887
  const S = E[0].intersectionRatio;
3888
3888
  if (S !== c) {
3889
3889
  if (!y)
3890
- return i();
3891
- S ? i(!1, S) : o = setTimeout(() => {
3892
- i(!1, 1e-7);
3890
+ return s();
3891
+ S ? s(!1, S) : o = setTimeout(() => {
3892
+ s(!1, 1e-7);
3893
3893
  }, 1e3);
3894
3894
  }
3895
- S === 1 && !pr(l, e.getBoundingClientRect()) && i(), y = !1;
3895
+ S === 1 && !pr(l, e.getBoundingClientRect()) && s(), y = !1;
3896
3896
  }
3897
3897
  try {
3898
3898
  n = new IntersectionObserver(x, {
@@ -3905,15 +3905,15 @@ function $1(e, t) {
3905
3905
  }
3906
3906
  n.observe(e);
3907
3907
  }
3908
- return i(!0), a;
3908
+ return s(!0), a;
3909
3909
  }
3910
3910
  function R1(e, t, n, o) {
3911
3911
  o === void 0 && (o = {});
3912
3912
  const {
3913
3913
  ancestorScroll: r = !0,
3914
3914
  ancestorResize: a = !0,
3915
- elementResize: i = typeof ResizeObserver == "function",
3916
- layoutShift: s = typeof IntersectionObserver == "function",
3915
+ elementResize: s = typeof ResizeObserver == "function",
3916
+ layoutShift: i = typeof IntersectionObserver == "function",
3917
3917
  animationFrame: c = !1
3918
3918
  } = o, l = Gn(e), u = r || a ? [...l ? bt(l) : [], ...bt(t)] : [];
3919
3919
  u.forEach((v) => {
@@ -3921,9 +3921,9 @@ function R1(e, t, n, o) {
3921
3921
  passive: !0
3922
3922
  }), a && v.addEventListener("resize", n);
3923
3923
  });
3924
- const d = l && s ? $1(l, n) : null;
3924
+ const d = l && i ? $1(l, n) : null;
3925
3925
  let _ = -1, m = null;
3926
- i && (m = new ResizeObserver((v) => {
3926
+ s && (m = new ResizeObserver((v) => {
3927
3927
  let [C] = v;
3928
3928
  C && C.target === l && m && (m.unobserve(t), cancelAnimationFrame(_), _ = requestAnimationFrame(() => {
3929
3929
  var b;
@@ -4010,9 +4010,9 @@ function V1(e) {
4010
4010
  platform: r,
4011
4011
  elements: {
4012
4012
  reference: a,
4013
- floating: i
4013
+ floating: s
4014
4014
  } = {},
4015
- transform: s = !0,
4015
+ transform: i = !0,
4016
4016
  whileElementsMounted: c,
4017
4017
  open: l
4018
4018
  } = e, [u, d] = h.useState({
@@ -4028,7 +4028,7 @@ function V1(e) {
4028
4028
  k !== E.current && (E.current = k, p(k));
4029
4029
  }, []), b = h.useCallback((k) => {
4030
4030
  k !== S.current && (S.current = k, v(k));
4031
- }, []), y = a || w, x = i || g, E = h.useRef(null), S = h.useRef(null), L = h.useRef(u), $ = c != null, N = _n(c), T = _n(r), B = _n(l), H = h.useCallback(() => {
4031
+ }, []), y = a || w, x = s || g, E = h.useRef(null), S = h.useRef(null), L = h.useRef(u), $ = c != null, N = _n(c), T = _n(r), B = _n(l), H = h.useCallback(() => {
4032
4032
  if (!E.current || !S.current)
4033
4033
  return;
4034
4034
  const k = {
@@ -4083,7 +4083,7 @@ function V1(e) {
4083
4083
  if (!z.floating)
4084
4084
  return k;
4085
4085
  const F = Eo(z.floating, u.x), se = Eo(z.floating, u.y);
4086
- return s ? {
4086
+ return i ? {
4087
4087
  ...k,
4088
4088
  transform: "translate(" + F + "px, " + se + "px)",
4089
4089
  ...hr(z.floating) >= 1.5 && {
@@ -4094,7 +4094,7 @@ function V1(e) {
4094
4094
  left: F,
4095
4095
  top: se
4096
4096
  };
4097
- }, [n, s, z.floating, u.x, u.y]);
4097
+ }, [n, i, z.floating, u.x, u.y]);
4098
4098
  return h.useMemo(() => ({
4099
4099
  ...u,
4100
4100
  update: H,
@@ -4172,13 +4172,13 @@ function G1(e) {
4172
4172
  if (!Array.isArray(r) || !r.length)
4173
4173
  return;
4174
4174
  const a = r[0];
4175
- let i, s;
4175
+ let s, i;
4176
4176
  if ("borderBoxSize" in a) {
4177
4177
  const c = a.borderBoxSize, l = Array.isArray(c) ? c[0] : c;
4178
- i = l.inlineSize, s = l.blockSize;
4178
+ s = l.inlineSize, i = l.blockSize;
4179
4179
  } else
4180
- i = e.offsetWidth, s = e.offsetHeight;
4181
- n({ width: i, height: s });
4180
+ s = e.offsetWidth, i = e.offsetHeight;
4181
+ n({ width: s, height: i });
4182
4182
  });
4183
4183
  return o.observe(e, { box: "border-box" }), () => o.unobserve(e);
4184
4184
  } else
@@ -4192,11 +4192,11 @@ var Kn = "Popper", [gr, wr] = Wn(Kn), [K1, vr] = gr(Kn), Cr = (e) => {
4192
4192
  Cr.displayName = Kn;
4193
4193
  var br = "PopperAnchor", yr = h.forwardRef(
4194
4194
  (e, t) => {
4195
- const { __scopePopper: n, virtualRef: o, ...r } = e, a = vr(br, n), i = h.useRef(null), s = ne(t, i), c = h.useRef(null);
4195
+ const { __scopePopper: n, virtualRef: o, ...r } = e, a = vr(br, n), s = h.useRef(null), i = ne(t, s), c = h.useRef(null);
4196
4196
  return h.useEffect(() => {
4197
4197
  const l = c.current;
4198
- c.current = o?.current || i.current, l !== c.current && a.onAnchorChange(c.current);
4199
- }), o ? null : /* @__PURE__ */ f(G.div, { ...r, ref: s });
4198
+ c.current = o?.current || s.current, l !== c.current && a.onAnchorChange(c.current);
4199
+ }), o ? null : /* @__PURE__ */ f(G.div, { ...r, ref: i });
4200
4200
  }
4201
4201
  );
4202
4202
  yr.displayName = br;
@@ -4207,8 +4207,8 @@ var Qn = "PopperContent", [Q1, J1] = gr(Qn), xr = h.forwardRef(
4207
4207
  side: o = "bottom",
4208
4208
  sideOffset: r = 0,
4209
4209
  align: a = "center",
4210
- alignOffset: i = 0,
4211
- arrowPadding: s = 0,
4210
+ alignOffset: s = 0,
4211
+ arrowPadding: i = 0,
4212
4212
  avoidCollisions: c = !0,
4213
4213
  collisionBoundary: l = [],
4214
4214
  collisionPadding: u = 0,
@@ -4233,7 +4233,7 @@ var Qn = "PopperContent", [Q1, J1] = gr(Qn), xr = h.forwardRef(
4233
4233
  reference: g.anchor
4234
4234
  },
4235
4235
  middleware: [
4236
- B1({ mainAxis: r + L, alignmentAxis: i }),
4236
+ B1({ mainAxis: r + L, alignmentAxis: s }),
4237
4237
  c && j1({
4238
4238
  mainAxis: !0,
4239
4239
  crossAxis: !1,
@@ -4248,7 +4248,7 @@ var Qn = "PopperContent", [Q1, J1] = gr(Qn), xr = h.forwardRef(
4248
4248
  fe.setProperty("--radix-popper-available-width", `${oe}px`), fe.setProperty("--radix-popper-available-height", `${U}px`), fe.setProperty("--radix-popper-anchor-width", `${Z}px`), fe.setProperty("--radix-popper-anchor-height", `${Q}px`);
4249
4249
  }
4250
4250
  }),
4251
- y && q1({ element: y, padding: s }),
4251
+ y && q1({ element: y, padding: i }),
4252
4252
  nu({ arrowWidth: S, arrowHeight: L }),
4253
4253
  _ && Z1({ strategy: "referenceHidden", ...H })
4254
4254
  ]
@@ -4320,7 +4320,7 @@ var Sr = "PopperArrow", eu = {
4320
4320
  bottom: "top",
4321
4321
  left: "right"
4322
4322
  }, Er = h.forwardRef(function(t, n) {
4323
- const { __scopePopper: o, ...r } = t, a = J1(Sr, o), i = eu[a.placedSide];
4323
+ const { __scopePopper: o, ...r } = t, a = J1(Sr, o), s = eu[a.placedSide];
4324
4324
  return (
4325
4325
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
4326
4326
  // doesn't report size as we'd expect on SVG elements.
@@ -4333,7 +4333,7 @@ var Sr = "PopperArrow", eu = {
4333
4333
  position: "absolute",
4334
4334
  left: a.arrowX,
4335
4335
  top: a.arrowY,
4336
- [i]: 0,
4336
+ [s]: 0,
4337
4337
  transformOrigin: {
4338
4338
  top: "",
4339
4339
  right: "0 0",
@@ -4372,9 +4372,9 @@ var nu = (e) => ({
4372
4372
  name: "transformOrigin",
4373
4373
  options: e,
4374
4374
  fn(t) {
4375
- const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, s = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [l, u] = Lr(n), d = { start: "0%", center: "50%", end: "100%" }[u], _ = (r.arrow?.x ?? 0) + s / 2, m = (r.arrow?.y ?? 0) + c / 2;
4375
+ const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0, i = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [l, u] = Lr(n), d = { start: "0%", center: "50%", end: "100%" }[u], _ = (r.arrow?.x ?? 0) + i / 2, m = (r.arrow?.y ?? 0) + c / 2;
4376
4376
  let w = "", p = "";
4377
- return l === "bottom" ? (w = i ? d : `${_}px`, p = `${-c}px`) : l === "top" ? (w = i ? d : `${_}px`, p = `${o.floating.height + c}px`) : l === "right" ? (w = `${-c}px`, p = i ? d : `${m}px`) : l === "left" && (w = `${o.floating.width + c}px`, p = i ? d : `${m}px`), { data: { x: w, y: p } };
4377
+ return l === "bottom" ? (w = s ? d : `${_}px`, p = `${-c}px`) : l === "top" ? (w = s ? d : `${_}px`, p = `${o.floating.height + c}px`) : l === "right" ? (w = `${-c}px`, p = s ? d : `${m}px`) : l === "left" && (w = `${o.floating.width + c}px`, p = s ? d : `${m}px`), { data: { x: w, y: p } };
4378
4378
  }
4379
4379
  });
4380
4380
  function Lr(e) {
@@ -4384,8 +4384,8 @@ function Lr(e) {
4384
4384
  var ou = Cr, ru = yr, au = xr, su = Er, iu = "Portal", Pr = h.forwardRef((e, t) => {
4385
4385
  const { container: n, ...o } = e, [r, a] = h.useState(!1);
4386
4386
  le(() => a(!0), []);
4387
- const i = n || r && globalThis?.document?.body;
4388
- return i ? va.createPortal(/* @__PURE__ */ f(G.div, { ...o, ref: t }), i) : null;
4387
+ const s = n || r && globalThis?.document?.body;
4388
+ return s ? va.createPortal(/* @__PURE__ */ f(G.div, { ...o, ref: t }), s) : null;
4389
4389
  });
4390
4390
  Pr.displayName = iu;
4391
4391
  var cu = h[" useInsertionEffect ".trim().toString()] || le;
@@ -4396,28 +4396,28 @@ function Lo({
4396
4396
  },
4397
4397
  caller: o
4398
4398
  }) {
4399
- const [r, a, i] = lu({
4399
+ const [r, a, s] = lu({
4400
4400
  defaultProp: t,
4401
4401
  onChange: n
4402
- }), s = e !== void 0, c = s ? e : r;
4402
+ }), i = e !== void 0, c = i ? e : r;
4403
4403
  {
4404
4404
  const u = h.useRef(e !== void 0);
4405
4405
  h.useEffect(() => {
4406
4406
  const d = u.current;
4407
- d !== s && console.warn(
4408
- `${o} is changing from ${d ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
4409
- ), u.current = s;
4410
- }, [s, o]);
4407
+ d !== i && console.warn(
4408
+ `${o} is changing from ${d ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
4409
+ ), u.current = i;
4410
+ }, [i, o]);
4411
4411
  }
4412
4412
  const l = h.useCallback(
4413
4413
  (u) => {
4414
- if (s) {
4414
+ if (i) {
4415
4415
  const d = uu(u) ? u(e) : u;
4416
- d !== e && i.current?.(d);
4416
+ d !== e && s.current?.(d);
4417
4417
  } else
4418
4418
  a(u);
4419
4419
  },
4420
- [s, e, a, i]
4420
+ [i, e, a, s]
4421
4421
  );
4422
4422
  return [c, l];
4423
4423
  }
@@ -4481,25 +4481,25 @@ var pu = function(e) {
4481
4481
  }, mu = function(e, t, n, o) {
4482
4482
  var r = hu(t, Array.isArray(e) ? e : [e]);
4483
4483
  Nt[n] || (Nt[n] = /* @__PURE__ */ new WeakMap());
4484
- var a = Nt[n], i = [], s = /* @__PURE__ */ new Set(), c = new Set(r), l = function(d) {
4485
- !d || s.has(d) || (s.add(d), l(d.parentNode));
4484
+ var a = Nt[n], s = [], i = /* @__PURE__ */ new Set(), c = new Set(r), l = function(d) {
4485
+ !d || i.has(d) || (i.add(d), l(d.parentNode));
4486
4486
  };
4487
4487
  r.forEach(l);
4488
4488
  var u = function(d) {
4489
4489
  !d || c.has(d) || Array.prototype.forEach.call(d.children, function(_) {
4490
- if (s.has(_))
4490
+ if (i.has(_))
4491
4491
  u(_);
4492
4492
  else
4493
4493
  try {
4494
4494
  var m = _.getAttribute(o), w = m !== null && m !== "false", p = (et.get(_) || 0) + 1, g = (a.get(_) || 0) + 1;
4495
- et.set(_, p), a.set(_, g), i.push(_), p === 1 && w && Rt.set(_, !0), g === 1 && _.setAttribute(n, "true"), w || _.setAttribute(o, "true");
4495
+ et.set(_, p), a.set(_, g), s.push(_), p === 1 && w && Rt.set(_, !0), g === 1 && _.setAttribute(n, "true"), w || _.setAttribute(o, "true");
4496
4496
  } catch (v) {
4497
4497
  console.error("aria-hidden: cannot operate on ", _, v);
4498
4498
  }
4499
4499
  });
4500
4500
  };
4501
- return u(t), s.clear(), pn++, function() {
4502
- i.forEach(function(d) {
4501
+ return u(t), i.clear(), pn++, function() {
4502
+ s.forEach(function(d) {
4503
4503
  var _ = et.get(d) - 1, m = a.get(d) - 1;
4504
4504
  et.set(d, _), a.set(d, m), _ || (Rt.has(d) || d.removeAttribute(o), Rt.delete(d)), m || d.removeAttribute(n);
4505
4505
  }), pn--, pn || (et = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Nt = {});
@@ -4567,11 +4567,11 @@ function xu(e, t) {
4567
4567
  return yu(function() {
4568
4568
  var o = Po.get(n);
4569
4569
  if (o) {
4570
- var r = new Set(o), a = new Set(e), i = n.current;
4571
- r.forEach(function(s) {
4572
- a.has(s) || hn(s, null);
4573
- }), a.forEach(function(s) {
4574
- r.has(s) || hn(s, i);
4570
+ var r = new Set(o), a = new Set(e), s = n.current;
4571
+ r.forEach(function(i) {
4572
+ a.has(i) || hn(i, null);
4573
+ }), a.forEach(function(i) {
4574
+ r.has(i) || hn(i, s);
4575
4575
  });
4576
4576
  }
4577
4577
  Po.set(n, e);
@@ -4589,21 +4589,21 @@ function Eu(e, t) {
4589
4589
  return n.length ? n[n.length - 1] : e;
4590
4590
  },
4591
4591
  useMedium: function(a) {
4592
- var i = t(a, o);
4593
- return n.push(i), function() {
4594
- n = n.filter(function(s) {
4595
- return s !== i;
4592
+ var s = t(a, o);
4593
+ return n.push(s), function() {
4594
+ n = n.filter(function(i) {
4595
+ return i !== s;
4596
4596
  });
4597
4597
  };
4598
4598
  },
4599
4599
  assignSyncMedium: function(a) {
4600
4600
  for (o = !0; n.length; ) {
4601
- var i = n;
4602
- n = [], i.forEach(a);
4601
+ var s = n;
4602
+ n = [], s.forEach(a);
4603
4603
  }
4604
4604
  n = {
4605
- push: function(s) {
4606
- return a(s);
4605
+ push: function(i) {
4606
+ return a(i);
4607
4607
  },
4608
4608
  filter: function() {
4609
4609
  return n;
@@ -4612,23 +4612,23 @@ function Eu(e, t) {
4612
4612
  },
4613
4613
  assignMedium: function(a) {
4614
4614
  o = !0;
4615
- var i = [];
4615
+ var s = [];
4616
4616
  if (n.length) {
4617
- var s = n;
4618
- n = [], s.forEach(a), i = n;
4617
+ var i = n;
4618
+ n = [], i.forEach(a), s = n;
4619
4619
  }
4620
4620
  var c = function() {
4621
- var u = i;
4622
- i = [], u.forEach(a);
4621
+ var u = s;
4622
+ s = [], u.forEach(a);
4623
4623
  }, l = function() {
4624
4624
  return Promise.resolve().then(c);
4625
4625
  };
4626
4626
  l(), n = {
4627
4627
  push: function(u) {
4628
- i.push(u), l();
4628
+ s.push(u), l();
4629
4629
  },
4630
4630
  filter: function(u) {
4631
- return i = i.filter(u), n;
4631
+ return s = s.filter(u), n;
4632
4632
  }
4633
4633
  };
4634
4634
  }
@@ -4659,12 +4659,12 @@ var Ar = Lu(), mn = function() {
4659
4659
  onScrollCapture: mn,
4660
4660
  onWheelCapture: mn,
4661
4661
  onTouchMoveCapture: mn
4662
- }), r = o[0], a = o[1], i = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, _ = e.sideCar, m = e.noRelative, w = e.noIsolation, p = e.inert, g = e.allowPinchZoom, v = e.as, C = v === void 0 ? "div" : v, b = e.gapMode, y = Nr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = _, E = xu([n, t]), S = Ce(Ce({}, y), r);
4662
+ }), r = o[0], a = o[1], s = e.forwardProps, i = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, _ = e.sideCar, m = e.noRelative, w = e.noIsolation, p = e.inert, g = e.allowPinchZoom, v = e.as, C = v === void 0 ? "div" : v, b = e.gapMode, y = Nr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = _, E = xu([n, t]), S = Ce(Ce({}, y), r);
4663
4663
  return h.createElement(
4664
4664
  h.Fragment,
4665
4665
  null,
4666
4666
  u && h.createElement(x, { sideCar: Ar, removeScrollBar: l, shards: d, noRelative: m, noIsolation: w, inert: p, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: b }),
4667
- i ? h.cloneElement(h.Children.only(s), Ce(Ce({}, S), { ref: E })) : h.createElement(C, Ce({}, S, { className: c, ref: E }), s)
4667
+ s ? h.cloneElement(h.Children.only(i), Ce(Ce({}, S), { ref: E })) : h.createElement(C, Ce({}, S, { className: c, ref: E }), i)
4668
4668
  );
4669
4669
  });
4670
4670
  Kt.defaultProps = {
@@ -4741,11 +4741,11 @@ var Au = function() {
4741
4741
  gap: Math.max(0, o - n + t[2] - t[0])
4742
4742
  };
4743
4743
  }, Ou = Tr(), at = "data-scroll-locked", Du = function(e, t, n, o) {
4744
- var r = e.left, a = e.top, i = e.right, s = e.gap;
4744
+ var r = e.left, a = e.top, s = e.right, i = e.gap;
4745
4745
  return n === void 0 && (n = "margin"), `
4746
4746
  .`.concat(vu, ` {
4747
4747
  overflow: hidden `).concat(o, `;
4748
- padding-right: `).concat(s, "px ").concat(o, `;
4748
+ padding-right: `).concat(i, "px ").concat(o, `;
4749
4749
  }
4750
4750
  body[`).concat(at, `] {
4751
4751
  overflow: hidden `).concat(o, `;
@@ -4755,21 +4755,21 @@ var Au = function() {
4755
4755
  n === "margin" && `
4756
4756
  padding-left: `.concat(r, `px;
4757
4757
  padding-top: `).concat(a, `px;
4758
- padding-right: `).concat(i, `px;
4758
+ padding-right: `).concat(s, `px;
4759
4759
  margin-left:0;
4760
4760
  margin-top:0;
4761
- margin-right: `).concat(s, "px ").concat(o, `;
4761
+ margin-right: `).concat(i, "px ").concat(o, `;
4762
4762
  `),
4763
- n === "padding" && "padding-right: ".concat(s, "px ").concat(o, ";")
4763
+ n === "padding" && "padding-right: ".concat(i, "px ").concat(o, ";")
4764
4764
  ].filter(Boolean).join(""), `
4765
4765
  }
4766
4766
 
4767
4767
  .`).concat(Mt, ` {
4768
- right: `).concat(s, "px ").concat(o, `;
4768
+ right: `).concat(i, "px ").concat(o, `;
4769
4769
  }
4770
4770
 
4771
4771
  .`).concat(It, ` {
4772
- margin-right: `).concat(s, "px ").concat(o, `;
4772
+ margin-right: `).concat(i, "px ").concat(o, `;
4773
4773
  }
4774
4774
 
4775
4775
  .`).concat(Mt, " .").concat(Mt, ` {
@@ -4781,7 +4781,7 @@ var Au = function() {
4781
4781
  }
4782
4782
 
4783
4783
  body[`).concat(at, `] {
4784
- `).concat(Cu, ": ").concat(s, `px;
4784
+ `).concat(Cu, ": ").concat(i, `px;
4785
4785
  }
4786
4786
  `);
4787
4787
  }, $o = function() {
@@ -4834,8 +4834,8 @@ var tt = Ln ? { passive: !1 } : !1, Bu = function(e) {
4834
4834
  typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
4835
4835
  var r = Mr(e, o);
4836
4836
  if (r) {
4837
- var a = Ir(e, o), i = a[1], s = a[2];
4838
- if (i > s)
4837
+ var a = Ir(e, o), s = a[1], i = a[2];
4838
+ if (s > i)
4839
4839
  return !0;
4840
4840
  }
4841
4841
  o = o.parentNode;
@@ -4862,18 +4862,18 @@ var tt = Ln ? { passive: !1 } : !1, Bu = function(e) {
4862
4862
  }, Zu = function(e, t) {
4863
4863
  return e === "h" && t === "rtl" ? -1 : 1;
4864
4864
  }, qu = function(e, t, n, o, r) {
4865
- var a = Zu(e, window.getComputedStyle(t).direction), i = a * o, s = n.target, c = t.contains(s), l = !1, u = i > 0, d = 0, _ = 0;
4865
+ var a = Zu(e, window.getComputedStyle(t).direction), s = a * o, i = n.target, c = t.contains(i), l = !1, u = s > 0, d = 0, _ = 0;
4866
4866
  do {
4867
- if (!s)
4867
+ if (!i)
4868
4868
  break;
4869
- var m = Ir(e, s), w = m[0], p = m[1], g = m[2], v = p - g - a * w;
4870
- (w || v) && Mr(e, s) && (d += v, _ += w);
4871
- var C = s.parentNode;
4872
- s = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
4869
+ var m = Ir(e, i), w = m[0], p = m[1], g = m[2], v = p - g - a * w;
4870
+ (w || v) && Mr(e, i) && (d += v, _ += w);
4871
+ var C = i.parentNode;
4872
+ i = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
4873
4873
  } while (
4874
4874
  // portaled content
4875
- !c && s !== document.body || // self content
4876
- c && (t.contains(s) || t === s)
4875
+ !c && i !== document.body || // self content
4876
+ c && (t.contains(i) || t === i)
4877
4877
  );
4878
4878
  return (u && Math.abs(d) < 1 || !u && Math.abs(_) < 1) && (l = !0), l;
4879
4879
  }, At = function(e) {
@@ -4891,9 +4891,9 @@ var tt = Ln ? { passive: !1 } : !1, Bu = function(e) {
4891
4891
  `);
4892
4892
  }, Gu = 0, nt = [];
4893
4893
  function Ku(e) {
4894
- var t = h.useRef([]), n = h.useRef([0, 0]), o = h.useRef(), r = h.useState(Gu++)[0], a = h.useState(Tr)[0], i = h.useRef(e);
4894
+ var t = h.useRef([]), n = h.useRef([0, 0]), o = h.useRef(), r = h.useState(Gu++)[0], a = h.useState(Tr)[0], s = h.useRef(e);
4895
4895
  h.useEffect(function() {
4896
- i.current = e;
4896
+ s.current = e;
4897
4897
  }, [e]), h.useEffect(function() {
4898
4898
  if (e.inert) {
4899
4899
  document.body.classList.add("block-interactivity-".concat(r));
@@ -4907,9 +4907,9 @@ function Ku(e) {
4907
4907
  };
4908
4908
  }
4909
4909
  }, [e.inert, e.lockRef.current, e.shards]);
4910
- var s = h.useCallback(function(p, g) {
4910
+ var i = h.useCallback(function(p, g) {
4911
4911
  if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
4912
- return !i.current.allowPinchZoom;
4912
+ return !s.current.allowPinchZoom;
4913
4913
  var v = At(p), C = n.current, b = "deltaX" in p ? p.deltaX : C[0] - v[0], y = "deltaY" in p ? p.deltaY : C[1] - v[1], x, E = p.target, S = Math.abs(b) > Math.abs(y) ? "h" : "v";
4914
4914
  if ("touches" in p && S === "h" && E.type === "range")
4915
4915
  return !1;
@@ -4933,9 +4933,9 @@ function Ku(e) {
4933
4933
  return;
4934
4934
  }
4935
4935
  if (!C) {
4936
- var b = (i.current.shards || []).map(ko).filter(Boolean).filter(function(x) {
4936
+ var b = (s.current.shards || []).map(ko).filter(Boolean).filter(function(x) {
4937
4937
  return x.contains(g.target);
4938
- }), y = b.length > 0 ? s(g, b[0]) : !i.current.noIsolation;
4938
+ }), y = b.length > 0 ? i(g, b[0]) : !s.current.noIsolation;
4939
4939
  y && g.cancelable && g.preventDefault();
4940
4940
  }
4941
4941
  }
@@ -4949,9 +4949,9 @@ function Ku(e) {
4949
4949
  }, []), u = h.useCallback(function(p) {
4950
4950
  n.current = At(p), o.current = void 0;
4951
4951
  }, []), d = h.useCallback(function(p) {
4952
- l(p.type, No(p), p.target, s(p, e.lockRef.current));
4952
+ l(p.type, No(p), p.target, i(p, e.lockRef.current));
4953
4953
  }, []), _ = h.useCallback(function(p) {
4954
- l(p.type, At(p), p.target, s(p, e.lockRef.current));
4954
+ l(p.type, At(p), p.target, i(p, e.lockRef.current));
4955
4955
  }, []);
4956
4956
  h.useEffect(function() {
4957
4957
  return nt.push(a), e.setCallbacks({
@@ -4992,8 +4992,8 @@ var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Sele
4992
4992
  open: o,
4993
4993
  defaultOpen: r,
4994
4994
  onOpenChange: a,
4995
- value: i,
4996
- defaultValue: s,
4995
+ value: s,
4996
+ defaultValue: i,
4997
4997
  onValueChange: c,
4998
4998
  dir: l,
4999
4999
  name: u,
@@ -5007,8 +5007,8 @@ var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Sele
5007
5007
  onChange: a,
5008
5008
  caller: Xe
5009
5009
  }), [$, N] = Lo({
5010
- prop: i,
5011
- defaultProp: s,
5010
+ prop: s,
5011
+ defaultProp: i,
5012
5012
  onChange: c,
5013
5013
  caller: Xe
5014
5014
  }), T = h.useRef(null), B = g ? w || !!g.closest("form") : !0, [H, O] = h.useState(/* @__PURE__ */ new Set()), j = Array.from(H).map((z) => z.props.value).join(";");
@@ -5074,11 +5074,11 @@ var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Sele
5074
5074
  Dr.displayName = Xe;
5075
5075
  var Vr = "SelectTrigger", Hr = h.forwardRef(
5076
5076
  (e, t) => {
5077
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, a = en(n), i = Oe(Vr, n), s = i.disabled || o, c = ne(t, i.onTriggerChange), l = Jt(n), u = h.useRef("touch"), [d, _, m] = aa((p) => {
5078
- const g = l().filter((b) => !b.disabled), v = g.find((b) => b.value === i.value), C = sa(g, p, v);
5079
- C !== void 0 && i.onValueChange(C.value);
5077
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, a = en(n), s = Oe(Vr, n), i = s.disabled || o, c = ne(t, s.onTriggerChange), l = Jt(n), u = h.useRef("touch"), [d, _, m] = aa((p) => {
5078
+ const g = l().filter((b) => !b.disabled), v = g.find((b) => b.value === s.value), C = sa(g, p, v);
5079
+ C !== void 0 && s.onValueChange(C.value);
5080
5080
  }), w = (p) => {
5081
- s || (i.onOpenChange(!0), m()), p && (i.triggerPointerDownPosRef.current = {
5081
+ i || (s.onOpenChange(!0), m()), p && (s.triggerPointerDownPosRef.current = {
5082
5082
  x: Math.round(p.pageX),
5083
5083
  y: Math.round(p.pageY)
5084
5084
  });
@@ -5088,15 +5088,15 @@ var Vr = "SelectTrigger", Hr = h.forwardRef(
5088
5088
  {
5089
5089
  type: "button",
5090
5090
  role: "combobox",
5091
- "aria-controls": i.contentId,
5092
- "aria-expanded": i.open,
5093
- "aria-required": i.required,
5091
+ "aria-controls": s.contentId,
5092
+ "aria-expanded": s.open,
5093
+ "aria-required": s.required,
5094
5094
  "aria-autocomplete": "none",
5095
- dir: i.dir,
5096
- "data-state": i.open ? "open" : "closed",
5097
- disabled: s,
5098
- "data-disabled": s ? "" : void 0,
5099
- "data-placeholder": ra(i.value) ? "" : void 0,
5095
+ dir: s.dir,
5096
+ "data-state": s.open ? "open" : "closed",
5097
+ disabled: i,
5098
+ "data-disabled": i ? "" : void 0,
5099
+ "data-placeholder": ra(s.value) ? "" : void 0,
5100
5100
  ...r,
5101
5101
  ref: c,
5102
5102
  onClick: te(r.onClick, (p) => {
@@ -5118,16 +5118,16 @@ var Vr = "SelectTrigger", Hr = h.forwardRef(
5118
5118
  Hr.displayName = Vr;
5119
5119
  var Br = "SelectValue", jr = h.forwardRef(
5120
5120
  (e, t) => {
5121
- const { __scopeSelect: n, className: o, style: r, children: a, placeholder: i = "", ...s } = e, c = Oe(Br, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = ne(t, c.onValueNodeChange);
5121
+ const { __scopeSelect: n, className: o, style: r, children: a, placeholder: s = "", ...i } = e, c = Oe(Br, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = ne(t, c.onValueNodeChange);
5122
5122
  return le(() => {
5123
5123
  l(u);
5124
5124
  }, [l, u]), /* @__PURE__ */ f(
5125
5125
  G.span,
5126
5126
  {
5127
- ...s,
5127
+ ...i,
5128
5128
  ref: d,
5129
5129
  style: { pointerEvents: "none" },
5130
- children: ra(c.value) ? /* @__PURE__ */ f(Ee, { children: i }) : a
5130
+ children: ra(c.value) ? /* @__PURE__ */ f(Ee, { children: s }) : a
5131
5131
  }
5132
5132
  );
5133
5133
  }
@@ -5165,10 +5165,10 @@ var me = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
5165
5165
  position: o = "item-aligned",
5166
5166
  onCloseAutoFocus: r,
5167
5167
  onEscapeKeyDown: a,
5168
- onPointerDownOutside: i,
5168
+ onPointerDownOutside: s,
5169
5169
  //
5170
5170
  // PopperContent props
5171
- side: s,
5171
+ side: i,
5172
5172
  sideOffset: c,
5173
5173
  align: l,
5174
5174
  alignOffset: u,
@@ -5238,7 +5238,7 @@ var me = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
5238
5238
  },
5239
5239
  [C.value]
5240
5240
  ), Ke = o === "popper" ? Pn : Xr, He = Ke === Pn ? {
5241
- side: s,
5241
+ side: i,
5242
5242
  sideOffset: c,
5243
5243
  align: l,
5244
5244
  alignOffset: u,
@@ -5282,7 +5282,7 @@ var me = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
5282
5282
  asChild: !0,
5283
5283
  disableOutsidePointerEvents: !0,
5284
5284
  onEscapeKeyDown: a,
5285
- onPointerDownOutside: i,
5285
+ onPointerDownOutside: s,
5286
5286
  onFocusOutside: (R) => R.preventDefault(),
5287
5287
  onDismiss: () => C.onOpenChange(!1),
5288
5288
  children: /* @__PURE__ */ f(
@@ -5328,8 +5328,8 @@ var me = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
5328
5328
  );
5329
5329
  qr.displayName = cd;
5330
5330
  var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
5331
- const { __scopeSelect: n, onPlaced: o, ...r } = e, a = Oe(Ye, n), i = De(Ye, n), [s, c] = h.useState(null), [l, u] = h.useState(null), d = ne(t, (S) => u(S)), _ = Jt(n), m = h.useRef(!1), w = h.useRef(!0), { viewport: p, selectedItem: g, selectedItemText: v, focusSelectedItem: C } = i, b = h.useCallback(() => {
5332
- if (a.trigger && a.valueNode && s && l && p && g && v) {
5331
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, a = Oe(Ye, n), s = De(Ye, n), [i, c] = h.useState(null), [l, u] = h.useState(null), d = ne(t, (S) => u(S)), _ = Jt(n), m = h.useRef(!1), w = h.useRef(!0), { viewport: p, selectedItem: g, selectedItemText: v, focusSelectedItem: C } = s, b = h.useCallback(() => {
5332
+ if (a.trigger && a.valueNode && i && l && p && g && v) {
5333
5333
  const S = a.trigger.getBoundingClientRect(), L = l.getBoundingClientRect(), $ = a.valueNode.getBoundingClientRect(), N = v.getBoundingClientRect();
5334
5334
  if (a.dir !== "rtl") {
5335
5335
  const Z = N.left - L.left, Q = $.left - Z, fe = S.left - Q, Be = S.width + fe, on = Math.max(Be, L.width), rn = window.innerWidth - me, an = so(Q, [
@@ -5341,41 +5341,41 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
5341
5341
  // https://github.com/radix-ui/primitives/issues/2049
5342
5342
  Math.max(me, rn - on)
5343
5343
  ]);
5344
- s.style.minWidth = Be + "px", s.style.left = an + "px";
5344
+ i.style.minWidth = Be + "px", i.style.left = an + "px";
5345
5345
  } else {
5346
5346
  const Z = L.right - N.right, Q = window.innerWidth - $.right - Z, fe = window.innerWidth - S.right - Q, Be = S.width + fe, on = Math.max(Be, L.width), rn = window.innerWidth - me, an = so(Q, [
5347
5347
  me,
5348
5348
  Math.max(me, rn - on)
5349
5349
  ]);
5350
- s.style.minWidth = Be + "px", s.style.right = an + "px";
5350
+ i.style.minWidth = Be + "px", i.style.right = an + "px";
5351
5351
  }
5352
5352
  const T = _(), B = window.innerHeight - me * 2, H = p.scrollHeight, O = window.getComputedStyle(l), j = parseInt(O.borderTopWidth, 10), z = parseInt(O.paddingTop, 10), D = parseInt(O.borderBottomWidth, 10), k = parseInt(O.paddingBottom, 10), F = j + z + H + k + D, se = Math.min(g.offsetHeight * 5, F), Ve = window.getComputedStyle(p), ft = parseInt(Ve.paddingTop, 10), _t = parseInt(Ve.paddingBottom, 10), Re = S.top + S.height / 2 - me, Ke = B - Re, He = g.offsetHeight / 2, R = g.offsetTop + He, X = j + z + R, oe = F - X;
5353
5353
  if (X <= Re) {
5354
5354
  const Z = T.length > 0 && g === T[T.length - 1].ref.current;
5355
- s.style.bottom = "0px";
5355
+ i.style.bottom = "0px";
5356
5356
  const Q = l.clientHeight - p.offsetTop - p.offsetHeight, fe = Math.max(
5357
5357
  Ke,
5358
5358
  He + // viewport might have padding bottom, include it to avoid a scrollable viewport
5359
5359
  (Z ? _t : 0) + Q + D
5360
5360
  ), Be = X + fe;
5361
- s.style.height = Be + "px";
5361
+ i.style.height = Be + "px";
5362
5362
  } else {
5363
5363
  const Z = T.length > 0 && g === T[0].ref.current;
5364
- s.style.top = "0px";
5364
+ i.style.top = "0px";
5365
5365
  const fe = Math.max(
5366
5366
  Re,
5367
5367
  j + p.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
5368
5368
  (Z ? ft : 0) + He
5369
5369
  ) + oe;
5370
- s.style.height = fe + "px", p.scrollTop = X - Re + p.offsetTop;
5370
+ i.style.height = fe + "px", p.scrollTop = X - Re + p.offsetTop;
5371
5371
  }
5372
- s.style.margin = `${me}px 0`, s.style.minHeight = se + "px", s.style.maxHeight = B + "px", o?.(), requestAnimationFrame(() => m.current = !0);
5372
+ i.style.margin = `${me}px 0`, i.style.minHeight = se + "px", i.style.maxHeight = B + "px", o?.(), requestAnimationFrame(() => m.current = !0);
5373
5373
  }
5374
5374
  }, [
5375
5375
  _,
5376
5376
  a.trigger,
5377
5377
  a.valueNode,
5378
- s,
5378
+ i,
5379
5379
  l,
5380
5380
  p,
5381
5381
  g,
@@ -5398,7 +5398,7 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
5398
5398
  fd,
5399
5399
  {
5400
5400
  scope: n,
5401
- contentWrapper: s,
5401
+ contentWrapper: i,
5402
5402
  shouldExpandOnScrollRef: m,
5403
5403
  onScrollButtonChange: E,
5404
5404
  children: /* @__PURE__ */ f(
@@ -5438,11 +5438,11 @@ var dd = "SelectPopperPosition", Pn = h.forwardRef((e, t) => {
5438
5438
  align: o = "start",
5439
5439
  collisionPadding: r = me,
5440
5440
  ...a
5441
- } = e, i = en(n);
5441
+ } = e, s = en(n);
5442
5442
  return /* @__PURE__ */ f(
5443
5443
  au,
5444
5444
  {
5445
- ...i,
5445
+ ...s,
5446
5446
  ...a,
5447
5447
  ref: t,
5448
5448
  align: o,
@@ -5463,7 +5463,7 @@ var dd = "SelectPopperPosition", Pn = h.forwardRef((e, t) => {
5463
5463
  Pn.displayName = dd;
5464
5464
  var [fd, Jn] = dt(Ye, {}), $n = "SelectViewport", Yr = h.forwardRef(
5465
5465
  (e, t) => {
5466
- const { __scopeSelect: n, nonce: o, ...r } = e, a = De($n, n), i = Jn($n, n), s = ne(t, a.onViewportChange), c = h.useRef(0);
5466
+ const { __scopeSelect: n, nonce: o, ...r } = e, a = De($n, n), s = Jn($n, n), i = ne(t, a.onViewportChange), c = h.useRef(0);
5467
5467
  return /* @__PURE__ */ A(Ee, { children: [
5468
5468
  /* @__PURE__ */ f(
5469
5469
  "style",
@@ -5480,7 +5480,7 @@ var [fd, Jn] = dt(Ye, {}), $n = "SelectViewport", Yr = h.forwardRef(
5480
5480
  "data-radix-select-viewport": "",
5481
5481
  role: "presentation",
5482
5482
  ...r,
5483
- ref: s,
5483
+ ref: i,
5484
5484
  style: {
5485
5485
  // we use position: 'relative' here on the `viewport` so that when we call
5486
5486
  // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
@@ -5495,7 +5495,7 @@ var [fd, Jn] = dt(Ye, {}), $n = "SelectViewport", Yr = h.forwardRef(
5495
5495
  ...r.style
5496
5496
  },
5497
5497
  onScroll: te(r.onScroll, (l) => {
5498
- const u = l.currentTarget, { contentWrapper: d, shouldExpandOnScrollRef: _ } = i;
5498
+ const u = l.currentTarget, { contentWrapper: d, shouldExpandOnScrollRef: _ } = s;
5499
5499
  if (_?.current && d) {
5500
5500
  const m = Math.abs(c.current - u.scrollTop);
5501
5501
  if (m > 0) {
@@ -5535,12 +5535,12 @@ var Wt = "SelectItem", [gd, Qr] = dt(Wt), Jr = h.forwardRef(
5535
5535
  value: o,
5536
5536
  disabled: r = !1,
5537
5537
  textValue: a,
5538
- ...i
5539
- } = e, s = Oe(Wt, n), c = De(Wt, n), l = s.value === o, [u, d] = h.useState(a ?? ""), [_, m] = h.useState(!1), w = ne(
5538
+ ...s
5539
+ } = e, i = Oe(Wt, n), c = De(Wt, n), l = i.value === o, [u, d] = h.useState(a ?? ""), [_, m] = h.useState(!1), w = ne(
5540
5540
  t,
5541
5541
  (C) => c.itemRefCallback?.(C, o, r)
5542
5542
  ), p = Fn(), g = h.useRef("touch"), v = () => {
5543
- r || (s.onValueChange(o), s.onOpenChange(!1));
5543
+ r || (i.onValueChange(o), i.onOpenChange(!1));
5544
5544
  };
5545
5545
  if (o === "")
5546
5546
  throw new Error(
@@ -5575,26 +5575,26 @@ var Wt = "SelectItem", [gd, Qr] = dt(Wt), Jr = h.forwardRef(
5575
5575
  "aria-disabled": r || void 0,
5576
5576
  "data-disabled": r ? "" : void 0,
5577
5577
  tabIndex: r ? void 0 : -1,
5578
- ...i,
5578
+ ...s,
5579
5579
  ref: w,
5580
- onFocus: te(i.onFocus, () => m(!0)),
5581
- onBlur: te(i.onBlur, () => m(!1)),
5582
- onClick: te(i.onClick, () => {
5580
+ onFocus: te(s.onFocus, () => m(!0)),
5581
+ onBlur: te(s.onBlur, () => m(!1)),
5582
+ onClick: te(s.onClick, () => {
5583
5583
  g.current !== "mouse" && v();
5584
5584
  }),
5585
- onPointerUp: te(i.onPointerUp, () => {
5585
+ onPointerUp: te(s.onPointerUp, () => {
5586
5586
  g.current === "mouse" && v();
5587
5587
  }),
5588
- onPointerDown: te(i.onPointerDown, (C) => {
5588
+ onPointerDown: te(s.onPointerDown, (C) => {
5589
5589
  g.current = C.pointerType;
5590
5590
  }),
5591
- onPointerMove: te(i.onPointerMove, (C) => {
5591
+ onPointerMove: te(s.onPointerMove, (C) => {
5592
5592
  g.current = C.pointerType, r ? c.onItemLeave?.() : g.current === "mouse" && C.currentTarget.focus({ preventScroll: !0 });
5593
5593
  }),
5594
- onPointerLeave: te(i.onPointerLeave, (C) => {
5594
+ onPointerLeave: te(s.onPointerLeave, (C) => {
5595
5595
  C.currentTarget === document.activeElement && c.onItemLeave?.();
5596
5596
  }),
5597
- onKeyDown: te(i.onKeyDown, (C) => {
5597
+ onKeyDown: te(s.onKeyDown, (C) => {
5598
5598
  c.searchRef?.current !== "" && C.key === " " || (td.includes(C.key) && v(), C.key === " " && C.preventDefault());
5599
5599
  })
5600
5600
  }
@@ -5608,18 +5608,18 @@ var Wt = "SelectItem", [gd, Qr] = dt(Wt), Jr = h.forwardRef(
5608
5608
  Jr.displayName = Wt;
5609
5609
  var wt = "SelectItemText", ea = h.forwardRef(
5610
5610
  (e, t) => {
5611
- const { __scopeSelect: n, className: o, style: r, ...a } = e, i = Oe(wt, n), s = De(wt, n), c = Qr(wt, n), l = ad(wt, n), [u, d] = h.useState(null), _ = ne(
5611
+ const { __scopeSelect: n, className: o, style: r, ...a } = e, s = Oe(wt, n), i = De(wt, n), c = Qr(wt, n), l = ad(wt, n), [u, d] = h.useState(null), _ = ne(
5612
5612
  t,
5613
5613
  (v) => d(v),
5614
5614
  c.onItemTextChange,
5615
- (v) => s.itemTextRefCallback?.(v, c.value, c.disabled)
5615
+ (v) => i.itemTextRefCallback?.(v, c.value, c.disabled)
5616
5616
  ), m = u?.textContent, w = h.useMemo(
5617
5617
  () => /* @__PURE__ */ f("option", { value: c.value, disabled: c.disabled, children: m }, c.value),
5618
5618
  [c.disabled, c.value, m]
5619
5619
  ), { onNativeOptionAdd: p, onNativeOptionRemove: g } = l;
5620
5620
  return le(() => (p(w), () => g(w)), [p, g, w]), /* @__PURE__ */ A(Ee, { children: [
5621
5621
  /* @__PURE__ */ f(G.span, { id: c.textId, ...a, ref: _ }),
5622
- c.isSelected && i.valueNode && !i.valueNodeHasChildren ? Zt.createPortal(a.children, i.valueNode) : null
5622
+ c.isSelected && s.valueNode && !s.valueNodeHasChildren ? Zt.createPortal(a.children, s.valueNode) : null
5623
5623
  ] });
5624
5624
  }
5625
5625
  );
@@ -5632,60 +5632,60 @@ var ta = "SelectItemIndicator", wd = h.forwardRef(
5632
5632
  );
5633
5633
  wd.displayName = ta;
5634
5634
  var Rn = "SelectScrollUpButton", vd = h.forwardRef((e, t) => {
5635
- const n = De(Rn, e.__scopeSelect), o = Jn(Rn, e.__scopeSelect), [r, a] = h.useState(!1), i = ne(t, o.onScrollButtonChange);
5635
+ const n = De(Rn, e.__scopeSelect), o = Jn(Rn, e.__scopeSelect), [r, a] = h.useState(!1), s = ne(t, o.onScrollButtonChange);
5636
5636
  return le(() => {
5637
5637
  if (n.viewport && n.isPositioned) {
5638
- let s = function() {
5638
+ let i = function() {
5639
5639
  const l = c.scrollTop > 0;
5640
5640
  a(l);
5641
5641
  };
5642
5642
  const c = n.viewport;
5643
- return s(), c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
5643
+ return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
5644
5644
  }
5645
5645
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
5646
5646
  na,
5647
5647
  {
5648
5648
  ...e,
5649
- ref: i,
5649
+ ref: s,
5650
5650
  onAutoScroll: () => {
5651
- const { viewport: s, selectedItem: c } = n;
5652
- s && c && (s.scrollTop = s.scrollTop - c.offsetHeight);
5651
+ const { viewport: i, selectedItem: c } = n;
5652
+ i && c && (i.scrollTop = i.scrollTop - c.offsetHeight);
5653
5653
  }
5654
5654
  }
5655
5655
  ) : null;
5656
5656
  });
5657
5657
  vd.displayName = Rn;
5658
5658
  var Nn = "SelectScrollDownButton", Cd = h.forwardRef((e, t) => {
5659
- const n = De(Nn, e.__scopeSelect), o = Jn(Nn, e.__scopeSelect), [r, a] = h.useState(!1), i = ne(t, o.onScrollButtonChange);
5659
+ const n = De(Nn, e.__scopeSelect), o = Jn(Nn, e.__scopeSelect), [r, a] = h.useState(!1), s = ne(t, o.onScrollButtonChange);
5660
5660
  return le(() => {
5661
5661
  if (n.viewport && n.isPositioned) {
5662
- let s = function() {
5662
+ let i = function() {
5663
5663
  const l = c.scrollHeight - c.clientHeight, u = Math.ceil(c.scrollTop) < l;
5664
5664
  a(u);
5665
5665
  };
5666
5666
  const c = n.viewport;
5667
- return s(), c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
5667
+ return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
5668
5668
  }
5669
5669
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
5670
5670
  na,
5671
5671
  {
5672
5672
  ...e,
5673
- ref: i,
5673
+ ref: s,
5674
5674
  onAutoScroll: () => {
5675
- const { viewport: s, selectedItem: c } = n;
5676
- s && c && (s.scrollTop = s.scrollTop + c.offsetHeight);
5675
+ const { viewport: i, selectedItem: c } = n;
5676
+ i && c && (i.scrollTop = i.scrollTop + c.offsetHeight);
5677
5677
  }
5678
5678
  }
5679
5679
  ) : null;
5680
5680
  });
5681
5681
  Cd.displayName = Nn;
5682
5682
  var na = h.forwardRef((e, t) => {
5683
- const { __scopeSelect: n, onAutoScroll: o, ...r } = e, a = De("SelectScrollButton", n), i = h.useRef(null), s = Jt(n), c = h.useCallback(() => {
5684
- i.current !== null && (window.clearInterval(i.current), i.current = null);
5683
+ const { __scopeSelect: n, onAutoScroll: o, ...r } = e, a = De("SelectScrollButton", n), s = h.useRef(null), i = Jt(n), c = h.useCallback(() => {
5684
+ s.current !== null && (window.clearInterval(s.current), s.current = null);
5685
5685
  }, []);
5686
5686
  return h.useEffect(() => () => c(), [c]), le(() => {
5687
- s().find((u) => u.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
5688
- }, [s]), /* @__PURE__ */ f(
5687
+ i().find((u) => u.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
5688
+ }, [i]), /* @__PURE__ */ f(
5689
5689
  G.div,
5690
5690
  {
5691
5691
  "aria-hidden": !0,
@@ -5693,10 +5693,10 @@ var na = h.forwardRef((e, t) => {
5693
5693
  ref: t,
5694
5694
  style: { flexShrink: 0, ...r.style },
5695
5695
  onPointerDown: te(r.onPointerDown, () => {
5696
- i.current === null && (i.current = window.setInterval(o, 50));
5696
+ s.current === null && (s.current = window.setInterval(o, 50));
5697
5697
  }),
5698
5698
  onPointerMove: te(r.onPointerMove, () => {
5699
- a.onItemLeave?.(), i.current === null && (i.current = window.setInterval(o, 50));
5699
+ a.onItemLeave?.(), s.current === null && (s.current = window.setInterval(o, 50));
5700
5700
  }),
5701
5701
  onPointerLeave: te(r.onPointerLeave, () => {
5702
5702
  c();
@@ -5712,26 +5712,26 @@ var na = h.forwardRef((e, t) => {
5712
5712
  yd.displayName = bd;
5713
5713
  var kn = "SelectArrow", xd = h.forwardRef(
5714
5714
  (e, t) => {
5715
- const { __scopeSelect: n, ...o } = e, r = en(n), a = Oe(kn, n), i = De(kn, n);
5716
- return a.open && i.position === "popper" ? /* @__PURE__ */ f(su, { ...r, ...o, ref: t }) : null;
5715
+ const { __scopeSelect: n, ...o } = e, r = en(n), a = Oe(kn, n), s = De(kn, n);
5716
+ return a.open && s.position === "popper" ? /* @__PURE__ */ f(su, { ...r, ...o, ref: t }) : null;
5717
5717
  }
5718
5718
  );
5719
5719
  xd.displayName = kn;
5720
5720
  var Sd = "SelectBubbleInput", oa = h.forwardRef(
5721
5721
  ({ __scopeSelect: e, value: t, ...n }, o) => {
5722
- const r = h.useRef(null), a = ne(o, r), i = du(t);
5722
+ const r = h.useRef(null), a = ne(o, r), s = du(t);
5723
5723
  return h.useEffect(() => {
5724
- const s = r.current;
5725
- if (!s) return;
5724
+ const i = r.current;
5725
+ if (!i) return;
5726
5726
  const c = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(
5727
5727
  c,
5728
5728
  "value"
5729
5729
  ).set;
5730
- if (i !== t && u) {
5730
+ if (s !== t && u) {
5731
5731
  const d = new Event("change", { bubbles: !0 });
5732
- u.call(s, t), s.dispatchEvent(d);
5732
+ u.call(i, t), i.dispatchEvent(d);
5733
5733
  }
5734
- }, [i, t]), /* @__PURE__ */ f(
5734
+ }, [s, t]), /* @__PURE__ */ f(
5735
5735
  G.select,
5736
5736
  {
5737
5737
  ...n,
@@ -5748,11 +5748,11 @@ function ra(e) {
5748
5748
  }
5749
5749
  function aa(e) {
5750
5750
  const t = Ze(e), n = h.useRef(""), o = h.useRef(0), r = h.useCallback(
5751
- (i) => {
5752
- const s = n.current + i;
5753
- t(s), (function c(l) {
5751
+ (s) => {
5752
+ const i = n.current + s;
5753
+ t(i), (function c(l) {
5754
5754
  n.current = l, window.clearTimeout(o.current), l !== "" && (o.current = window.setTimeout(() => c(""), 1e3));
5755
- })(s);
5755
+ })(i);
5756
5756
  },
5757
5757
  [t]
5758
5758
  ), a = h.useCallback(() => {
@@ -5762,9 +5762,9 @@ function aa(e) {
5762
5762
  }
5763
5763
  function sa(e, t, n) {
5764
5764
  const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
5765
- let i = Ed(e, Math.max(a, 0));
5766
- r.length === 1 && (i = i.filter((l) => l !== n));
5767
- const c = i.find(
5765
+ let s = Ed(e, Math.max(a, 0));
5766
+ r.length === 1 && (s = s.filter((l) => l !== n));
5767
+ const c = s.find(
5768
5768
  (l) => l.textValue.toLowerCase().startsWith(r.toLowerCase())
5769
5769
  );
5770
5770
  return c !== n ? c : void 0;
@@ -5838,10 +5838,10 @@ function Ge(...e) {
5838
5838
  const ca = /* @__PURE__ */ P((e, t) => {
5839
5839
  const { children: n, ...o } = e, r = ot.toArray(n), a = r.find(n0);
5840
5840
  if (a) {
5841
- const i = a.props.children, s = r.map((c) => c === a ? ot.count(i) > 1 ? ot.only(null) : /* @__PURE__ */ Ot(i) ? i.props.children : null : c);
5841
+ const s = a.props.children, i = r.map((c) => c === a ? ot.count(s) > 1 ? ot.only(null) : /* @__PURE__ */ Ot(s) ? s.props.children : null : c);
5842
5842
  return /* @__PURE__ */ V(An, q({}, o, {
5843
5843
  ref: t
5844
- }), /* @__PURE__ */ Ot(i) ? /* @__PURE__ */ In(i, void 0, s) : null);
5844
+ }), /* @__PURE__ */ Ot(s) ? /* @__PURE__ */ In(s, void 0, i) : null);
5845
5845
  }
5846
5846
  return /* @__PURE__ */ V(An, q({}, o, {
5847
5847
  ref: t
@@ -5866,8 +5866,8 @@ function o0(e, t) {
5866
5866
  };
5867
5867
  for (const o in t) {
5868
5868
  const r = e[o], a = t[o];
5869
- /^on[A-Z]/.test(o) ? r && a ? n[o] = (...s) => {
5870
- a(...s), r(...s);
5869
+ /^on[A-Z]/.test(o) ? r && a ? n[o] = (...i) => {
5870
+ a(...i), r(...i);
5871
5871
  } : r && (n[o] = r) : o === "style" ? n[o] = {
5872
5872
  ...r,
5873
5873
  ...a
@@ -5900,10 +5900,10 @@ const r0 = [
5900
5900
  "ul"
5901
5901
  ], xt = r0.reduce((e, t) => {
5902
5902
  const n = /* @__PURE__ */ P((o, r) => {
5903
- const { asChild: a, ...i } = o, s = a ? ca : t;
5903
+ const { asChild: a, ...s } = o, i = a ? ca : t;
5904
5904
  return ae(() => {
5905
5905
  window[Symbol.for("radix-ui")] = !0;
5906
- }, []), /* @__PURE__ */ V(s, q({}, i, {
5906
+ }, []), /* @__PURE__ */ V(i, q({}, s, {
5907
5907
  ref: r
5908
5908
  }));
5909
5909
  });
@@ -5929,7 +5929,7 @@ const St = (e) => {
5929
5929
  };
5930
5930
  St.displayName = "Presence";
5931
5931
  function s0(e) {
5932
- const [t, n] = W(), o = ce({}), r = ce(e), a = ce("none"), i = e ? "mounted" : "unmounted", [s, c] = a0(i, {
5932
+ const [t, n] = W(), o = ce({}), r = ce(e), a = ce("none"), s = e ? "mounted" : "unmounted", [i, c] = a0(s, {
5933
5933
  mounted: {
5934
5934
  UNMOUNT: "unmounted",
5935
5935
  ANIMATION_OUT: "unmountSuspended"
@@ -5944,9 +5944,9 @@ function s0(e) {
5944
5944
  });
5945
5945
  return ae(() => {
5946
5946
  const l = Tt(o.current);
5947
- a.current = s === "mounted" ? l : "none";
5947
+ a.current = i === "mounted" ? l : "none";
5948
5948
  }, [
5949
- s
5949
+ i
5950
5950
  ]), Tn(() => {
5951
5951
  const l = o.current, u = r.current;
5952
5952
  if (u !== e) {
@@ -5978,7 +5978,7 @@ function s0(e) {
5978
5978
  isPresent: [
5979
5979
  "mounted",
5980
5980
  "unmountSuspended"
5981
- ].includes(s),
5981
+ ].includes(i),
5982
5982
  ref: Mn((l) => {
5983
5983
  l && (o.current = getComputedStyle(l)), n(l);
5984
5984
  }, [])
@@ -5989,14 +5989,14 @@ function Tt(e) {
5989
5989
  }
5990
5990
  function i0(e, t = []) {
5991
5991
  let n = [];
5992
- function o(a, i) {
5993
- const s = /* @__PURE__ */ vn(i), c = n.length;
5992
+ function o(a, s) {
5993
+ const i = /* @__PURE__ */ vn(s), c = n.length;
5994
5994
  n = [
5995
5995
  ...n,
5996
- i
5996
+ s
5997
5997
  ];
5998
5998
  function l(d) {
5999
- const { scope: _, children: m, ...w } = d, p = _?.[e][c] || s, g = vt(
5999
+ const { scope: _, children: m, ...w } = d, p = _?.[e][c] || i, g = vt(
6000
6000
  () => w,
6001
6001
  Object.values(w)
6002
6002
  );
@@ -6005,9 +6005,9 @@ function i0(e, t = []) {
6005
6005
  }, m);
6006
6006
  }
6007
6007
  function u(d, _) {
6008
- const m = _?.[e][c] || s, w = Io(m);
6008
+ const m = _?.[e][c] || i, w = Io(m);
6009
6009
  if (w) return w;
6010
- if (i !== void 0) return i;
6010
+ if (s !== void 0) return s;
6011
6011
  throw new Error(`\`${d}\` must be used within \`${a}\``);
6012
6012
  }
6013
6013
  return l.displayName = a + "Provider", [
@@ -6016,18 +6016,18 @@ function i0(e, t = []) {
6016
6016
  ];
6017
6017
  }
6018
6018
  const r = () => {
6019
- const a = n.map((i) => /* @__PURE__ */ vn(i));
6020
- return function(s) {
6021
- const c = s?.[e] || a;
6019
+ const a = n.map((s) => /* @__PURE__ */ vn(s));
6020
+ return function(i) {
6021
+ const c = i?.[e] || a;
6022
6022
  return vt(
6023
6023
  () => ({
6024
6024
  [`__scope${e}`]: {
6025
- ...s,
6025
+ ...i,
6026
6026
  [e]: c
6027
6027
  }
6028
6028
  }),
6029
6029
  [
6030
- s,
6030
+ i,
6031
6031
  c
6032
6032
  ]
6033
6033
  );
@@ -6049,19 +6049,19 @@ function c0(...e) {
6049
6049
  })
6050
6050
  );
6051
6051
  return function(a) {
6052
- const i = o.reduce((s, { useScope: c, scopeName: l }) => {
6052
+ const s = o.reduce((i, { useScope: c, scopeName: l }) => {
6053
6053
  const d = c(a)[`__scope${l}`];
6054
6054
  return {
6055
- ...s,
6055
+ ...i,
6056
6056
  ...d
6057
6057
  };
6058
6058
  }, {});
6059
6059
  return vt(
6060
6060
  () => ({
6061
- [`__scope${t.scopeName}`]: i
6061
+ [`__scope${t.scopeName}`]: s
6062
6062
  }),
6063
6063
  [
6064
- i
6064
+ s
6065
6065
  ]
6066
6066
  );
6067
6067
  };
@@ -6100,7 +6100,7 @@ function f0(e, t) {
6100
6100
  }, e);
6101
6101
  }
6102
6102
  const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */ P((e, t) => {
6103
- const { __scopeScrollArea: n, type: o = "hover", dir: r, scrollHideDelay: a = 600, ...i } = e, [s, c] = W(null), [l, u] = W(null), [d, _] = W(null), [m, w] = W(null), [p, g] = W(null), [v, C] = W(0), [b, y] = W(0), [x, E] = W(!1), [S, L] = W(!1), $ = Ge(
6103
+ const { __scopeScrollArea: n, type: o = "hover", dir: r, scrollHideDelay: a = 600, ...s } = e, [i, c] = W(null), [l, u] = W(null), [d, _] = W(null), [m, w] = W(null), [p, g] = W(null), [v, C] = W(0), [b, y] = W(0), [x, E] = W(!1), [S, L] = W(!1), $ = Ge(
6104
6104
  t,
6105
6105
  (T) => c(T)
6106
6106
  ), N = u0(r);
@@ -6109,7 +6109,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6109
6109
  type: o,
6110
6110
  dir: N,
6111
6111
  scrollHideDelay: a,
6112
- scrollArea: s,
6112
+ scrollArea: i,
6113
6113
  viewport: l,
6114
6114
  onViewportChange: u,
6115
6115
  content: d,
@@ -6126,7 +6126,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6126
6126
  onCornerHeightChange: y
6127
6127
  }, /* @__PURE__ */ V(xt.div, q({
6128
6128
  dir: N
6129
- }, i, {
6129
+ }, s, {
6130
6130
  ref: $,
6131
6131
  style: {
6132
6132
  position: "relative",
@@ -6137,7 +6137,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6137
6137
  }
6138
6138
  })));
6139
6139
  }), h0 = "ScrollAreaViewport", m0 = /* @__PURE__ */ P((e, t) => {
6140
- const { __scopeScrollArea: n, children: o, ...r } = e, a = he(h0, n), i = ce(null), s = Ge(t, i, a.onViewportChange);
6140
+ const { __scopeScrollArea: n, children: o, ...r } = e, a = he(h0, n), s = ce(null), i = Ge(t, s, a.onViewportChange);
6141
6141
  return /* @__PURE__ */ V(zo, null, /* @__PURE__ */ V("style", {
6142
6142
  dangerouslySetInnerHTML: {
6143
6143
  __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"
@@ -6145,7 +6145,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6145
6145
  }), /* @__PURE__ */ V(xt.div, q({
6146
6146
  "data-radix-scroll-area-viewport": ""
6147
6147
  }, r, {
6148
- ref: s,
6148
+ ref: i,
6149
6149
  style: {
6150
6150
  /**
6151
6151
  * We don't support `visible` because the intention is to have at least one scrollbar
@@ -6170,13 +6170,13 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6170
6170
  }
6171
6171
  }, o)));
6172
6172
  }), $e = "ScrollAreaScrollbar", g0 = /* @__PURE__ */ P((e, t) => {
6173
- const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: i } = r, s = e.orientation === "horizontal";
6174
- return ae(() => (s ? a(!0) : i(!0), () => {
6175
- s ? a(!1) : i(!1);
6173
+ const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: s } = r, i = e.orientation === "horizontal";
6174
+ return ae(() => (i ? a(!0) : s(!0), () => {
6175
+ i ? a(!1) : s(!1);
6176
6176
  }), [
6177
- s,
6177
+ i,
6178
6178
  a,
6179
- i
6179
+ s
6180
6180
  ]), r.type === "hover" ? /* @__PURE__ */ V(w0, q({}, o, {
6181
6181
  ref: t,
6182
6182
  forceMount: n
@@ -6190,21 +6190,21 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6190
6190
  ref: t
6191
6191
  })) : null;
6192
6192
  }), w0 = /* @__PURE__ */ P((e, t) => {
6193
- const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), [a, i] = W(!1);
6193
+ const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), [a, s] = W(!1);
6194
6194
  return ae(() => {
6195
- const s = r.scrollArea;
6195
+ const i = r.scrollArea;
6196
6196
  let c = 0;
6197
- if (s) {
6197
+ if (i) {
6198
6198
  const l = () => {
6199
- window.clearTimeout(c), i(!0);
6199
+ window.clearTimeout(c), s(!0);
6200
6200
  }, u = () => {
6201
6201
  c = window.setTimeout(
6202
- () => i(!1),
6202
+ () => s(!1),
6203
6203
  r.scrollHideDelay
6204
6204
  );
6205
6205
  };
6206
- return s.addEventListener("pointerenter", l), s.addEventListener("pointerleave", u), () => {
6207
- window.clearTimeout(c), s.removeEventListener("pointerenter", l), s.removeEventListener("pointerleave", u);
6206
+ return i.addEventListener("pointerenter", l), i.addEventListener("pointerleave", u), () => {
6207
+ window.clearTimeout(c), i.removeEventListener("pointerenter", l), i.removeEventListener("pointerleave", u);
6208
6208
  };
6209
6209
  }
6210
6210
  }, [
@@ -6218,10 +6218,10 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6218
6218
  ref: t
6219
6219
  })));
6220
6220
  }), v0 = /* @__PURE__ */ P((e, t) => {
6221
- const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), a = e.orientation === "horizontal", i = nn(
6221
+ const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), a = e.orientation === "horizontal", s = nn(
6222
6222
  () => c("SCROLL_END"),
6223
6223
  100
6224
- ), [s, c] = f0("hidden", {
6224
+ ), [i, c] = f0("hidden", {
6225
6225
  hidden: {
6226
6226
  SCROLL: "scrolling"
6227
6227
  },
@@ -6240,7 +6240,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6240
6240
  }
6241
6241
  });
6242
6242
  return ae(() => {
6243
- if (s === "idle") {
6243
+ if (i === "idle") {
6244
6244
  const l = window.setTimeout(
6245
6245
  () => c("HIDE"),
6246
6246
  r.scrollHideDelay
@@ -6248,7 +6248,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6248
6248
  return () => window.clearTimeout(l);
6249
6249
  }
6250
6250
  }, [
6251
- s,
6251
+ i,
6252
6252
  r.scrollHideDelay,
6253
6253
  c
6254
6254
  ]), ae(() => {
@@ -6257,7 +6257,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6257
6257
  let d = l[u];
6258
6258
  const _ = () => {
6259
6259
  const m = l[u];
6260
- d !== m && (c("SCROLL"), i()), d = m;
6260
+ d !== m && (c("SCROLL"), s()), d = m;
6261
6261
  };
6262
6262
  return l.addEventListener("scroll", _), () => l.removeEventListener("scroll", _);
6263
6263
  }
@@ -6265,11 +6265,11 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6265
6265
  r.viewport,
6266
6266
  a,
6267
6267
  c,
6268
- i
6268
+ s
6269
6269
  ]), /* @__PURE__ */ V(St, {
6270
- present: n || s !== "hidden"
6270
+ present: n || i !== "hidden"
6271
6271
  }, /* @__PURE__ */ V(eo, q({
6272
- "data-state": s === "hidden" ? "hidden" : "visible"
6272
+ "data-state": i === "hidden" ? "hidden" : "visible"
6273
6273
  }, o, {
6274
6274
  ref: t,
6275
6275
  onPointerEnter: Fe(
@@ -6282,10 +6282,10 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6282
6282
  )
6283
6283
  })));
6284
6284
  }), da = /* @__PURE__ */ P((e, t) => {
6285
- const n = he($e, e.__scopeScrollArea), { forceMount: o, ...r } = e, [a, i] = W(!1), s = e.orientation === "horizontal", c = nn(() => {
6285
+ const n = he($e, e.__scopeScrollArea), { forceMount: o, ...r } = e, [a, s] = W(!1), i = e.orientation === "horizontal", c = nn(() => {
6286
6286
  if (n.viewport) {
6287
6287
  const l = n.viewport.offsetWidth < n.viewport.scrollWidth, u = n.viewport.offsetHeight < n.viewport.scrollHeight;
6288
- i(s ? l : u);
6288
+ s(i ? l : u);
6289
6289
  }
6290
6290
  }, 10);
6291
6291
  return ct(n.viewport, c), ct(n.content, c), /* @__PURE__ */ V(St, {
@@ -6296,7 +6296,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6296
6296
  ref: t
6297
6297
  })));
6298
6298
  }), eo = /* @__PURE__ */ P((e, t) => {
6299
- const { orientation: n = "vertical", ...o } = e, r = he($e, e.__scopeScrollArea), a = ce(null), i = ce(0), [s, c] = W({
6299
+ const { orientation: n = "vertical", ...o } = e, r = he($e, e.__scopeScrollArea), a = ce(null), s = ce(0), [i, c] = W({
6300
6300
  content: 0,
6301
6301
  viewport: 0,
6302
6302
  scrollbar: {
@@ -6304,23 +6304,23 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6304
6304
  paddingStart: 0,
6305
6305
  paddingEnd: 0
6306
6306
  }
6307
- }), l = ha(s.viewport, s.content), u = {
6307
+ }), l = ha(i.viewport, i.content), u = {
6308
6308
  ...o,
6309
- sizes: s,
6309
+ sizes: i,
6310
6310
  onSizesChange: c,
6311
6311
  hasThumb: l > 0 && l < 1,
6312
6312
  onThumbChange: (_) => a.current = _,
6313
- onThumbPointerUp: () => i.current = 0,
6314
- onThumbPointerDown: (_) => i.current = _
6313
+ onThumbPointerUp: () => s.current = 0,
6314
+ onThumbPointerDown: (_) => s.current = _
6315
6315
  };
6316
6316
  function d(_, m) {
6317
- return L0(_, i.current, s, m);
6317
+ return L0(_, s.current, i, m);
6318
6318
  }
6319
6319
  return n === "horizontal" ? /* @__PURE__ */ V(C0, q({}, u, {
6320
6320
  ref: t,
6321
6321
  onThumbPositionChange: () => {
6322
6322
  if (r.viewport && a.current) {
6323
- const _ = r.viewport.scrollLeft, m = Ao(_, s, r.dir);
6323
+ const _ = r.viewport.scrollLeft, m = Ao(_, i, r.dir);
6324
6324
  a.current.style.transform = `translate3d(${m}px, 0, 0)`;
6325
6325
  }
6326
6326
  },
@@ -6334,7 +6334,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6334
6334
  ref: t,
6335
6335
  onThumbPositionChange: () => {
6336
6336
  if (r.viewport && a.current) {
6337
- const _ = r.viewport.scrollTop, m = Ao(_, s);
6337
+ const _ = r.viewport.scrollTop, m = Ao(_, i);
6338
6338
  a.current.style.transform = `translate3d(0, ${m}px, 0)`;
6339
6339
  }
6340
6340
  },
@@ -6346,9 +6346,9 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6346
6346
  }
6347
6347
  })) : null;
6348
6348
  }), C0 = /* @__PURE__ */ P((e, t) => {
6349
- const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [i, s] = W(), c = ce(null), l = Ge(t, c, a.onScrollbarXChange);
6349
+ const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [s, i] = W(), c = ce(null), l = Ge(t, c, a.onScrollbarXChange);
6350
6350
  return ae(() => {
6351
- c.current && s(getComputedStyle(c.current));
6351
+ c.current && i(getComputedStyle(c.current));
6352
6352
  }, [
6353
6353
  c
6354
6354
  ]), /* @__PURE__ */ V(_a, q({
@@ -6372,21 +6372,21 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6372
6372
  }
6373
6373
  },
6374
6374
  onResize: () => {
6375
- c.current && a.viewport && i && o({
6375
+ c.current && a.viewport && s && o({
6376
6376
  content: a.viewport.scrollWidth,
6377
6377
  viewport: a.viewport.offsetWidth,
6378
6378
  scrollbar: {
6379
6379
  size: c.current.clientWidth,
6380
- paddingStart: Ft(i.paddingLeft),
6381
- paddingEnd: Ft(i.paddingRight)
6380
+ paddingStart: Ft(s.paddingLeft),
6381
+ paddingEnd: Ft(s.paddingRight)
6382
6382
  }
6383
6383
  });
6384
6384
  }
6385
6385
  }));
6386
6386
  }), b0 = /* @__PURE__ */ P((e, t) => {
6387
- const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [i, s] = W(), c = ce(null), l = Ge(t, c, a.onScrollbarYChange);
6387
+ const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [s, i] = W(), c = ce(null), l = Ge(t, c, a.onScrollbarYChange);
6388
6388
  return ae(() => {
6389
- c.current && s(getComputedStyle(c.current));
6389
+ c.current && i(getComputedStyle(c.current));
6390
6390
  }, [
6391
6391
  c
6392
6392
  ]), /* @__PURE__ */ V(_a, q({
@@ -6411,19 +6411,19 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6411
6411
  }
6412
6412
  },
6413
6413
  onResize: () => {
6414
- c.current && a.viewport && i && o({
6414
+ c.current && a.viewport && s && o({
6415
6415
  content: a.viewport.scrollHeight,
6416
6416
  viewport: a.viewport.offsetHeight,
6417
6417
  scrollbar: {
6418
6418
  size: c.current.clientHeight,
6419
- paddingStart: Ft(i.paddingTop),
6420
- paddingEnd: Ft(i.paddingBottom)
6419
+ paddingStart: Ft(s.paddingTop),
6420
+ paddingEnd: Ft(s.paddingBottom)
6421
6421
  }
6422
6422
  });
6423
6423
  }
6424
6424
  }));
6425
6425
  }), [y0, fa] = ua($e), _a = /* @__PURE__ */ P((e, t) => {
6426
- const { __scopeScrollArea: n, sizes: o, hasThumb: r, onThumbChange: a, onThumbPointerUp: i, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ..._ } = e, m = he($e, n), [w, p] = W(null), g = Ge(
6426
+ const { __scopeScrollArea: n, sizes: o, hasThumb: r, onThumbChange: a, onThumbPointerUp: s, onThumbPointerDown: i, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ..._ } = e, m = he($e, n), [w, p] = W(null), g = Ge(
6427
6427
  t,
6428
6428
  ($) => p($)
6429
6429
  ), v = ce(null), C = ce(""), b = m.viewport, y = o.content - o.viewport, x = We(u), E = We(c), S = nn(d, 10);
@@ -6459,9 +6459,9 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6459
6459
  scrollbar: w,
6460
6460
  hasThumb: r,
6461
6461
  onThumbChange: We(a),
6462
- onThumbPointerUp: We(i),
6462
+ onThumbPointerUp: We(s),
6463
6463
  onThumbPositionChange: E,
6464
- onThumbPointerDown: We(s)
6464
+ onThumbPointerDown: We(i)
6465
6465
  }, /* @__PURE__ */ V(xt.div, q({}, _, {
6466
6466
  ref: g,
6467
6467
  style: {
@@ -6485,9 +6485,9 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6485
6485
  ref: t
6486
6486
  }, o)));
6487
6487
  }), x0 = /* @__PURE__ */ P((e, t) => {
6488
- const { __scopeScrollArea: n, style: o, ...r } = e, a = he(zn, n), i = fa(zn, n), { onThumbPositionChange: s } = i, c = Ge(
6488
+ const { __scopeScrollArea: n, style: o, ...r } = e, a = he(zn, n), s = fa(zn, n), { onThumbPositionChange: i } = s, c = Ge(
6489
6489
  t,
6490
- (d) => i.onThumbChange(d)
6490
+ (d) => s.onThumbChange(d)
6491
6491
  ), l = ce(), u = nn(() => {
6492
6492
  l.current && (l.current(), l.current = void 0);
6493
6493
  }, 100);
@@ -6496,18 +6496,18 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6496
6496
  if (d) {
6497
6497
  const _ = () => {
6498
6498
  if (u(), !l.current) {
6499
- const m = P0(d, s);
6500
- l.current = m, s();
6499
+ const m = P0(d, i);
6500
+ l.current = m, i();
6501
6501
  }
6502
6502
  };
6503
- return s(), d.addEventListener("scroll", _), () => d.removeEventListener("scroll", _);
6503
+ return i(), d.addEventListener("scroll", _), () => d.removeEventListener("scroll", _);
6504
6504
  }
6505
6505
  }, [
6506
6506
  a.viewport,
6507
6507
  u,
6508
- s
6508
+ i
6509
6509
  ]), /* @__PURE__ */ V(xt.div, q({
6510
- "data-state": i.hasThumb ? "visible" : "hidden"
6510
+ "data-state": s.hasThumb ? "visible" : "hidden"
6511
6511
  }, r, {
6512
6512
  ref: c,
6513
6513
  style: {
@@ -6517,12 +6517,12 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6517
6517
  },
6518
6518
  onPointerDownCapture: Fe(e.onPointerDownCapture, (d) => {
6519
6519
  const m = d.target.getBoundingClientRect(), w = d.clientX - m.left, p = d.clientY - m.top;
6520
- i.onThumbPointerDown({
6520
+ s.onThumbPointerDown({
6521
6521
  x: w,
6522
6522
  y: p
6523
6523
  });
6524
6524
  }),
6525
- onPointerUp: Fe(e.onPointerUp, i.onThumbPointerUp)
6525
+ onPointerUp: Fe(e.onPointerUp, s.onThumbPointerUp)
6526
6526
  }));
6527
6527
  }), pa = "ScrollAreaCorner", S0 = /* @__PURE__ */ P((e, t) => {
6528
6528
  const n = he(pa, e.__scopeScrollArea), o = !!(n.scrollbarX && n.scrollbarY);
@@ -6530,7 +6530,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6530
6530
  ref: t
6531
6531
  })) : null;
6532
6532
  }), E0 = /* @__PURE__ */ P((e, t) => {
6533
- const { __scopeScrollArea: n, ...o } = e, r = he(pa, n), [a, i] = W(0), [s, c] = W(0), l = !!(a && s);
6533
+ const { __scopeScrollArea: n, ...o } = e, r = he(pa, n), [a, s] = W(0), [i, c] = W(0), l = !!(a && i);
6534
6534
  return ct(r.scrollbarX, () => {
6535
6535
  var u;
6536
6536
  const d = ((u = r.scrollbarX) === null || u === void 0 ? void 0 : u.offsetHeight) || 0;
@@ -6538,12 +6538,12 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
6538
6538
  }), ct(r.scrollbarY, () => {
6539
6539
  var u;
6540
6540
  const d = ((u = r.scrollbarY) === null || u === void 0 ? void 0 : u.offsetWidth) || 0;
6541
- r.onCornerWidthChange(d), i(d);
6541
+ r.onCornerWidthChange(d), s(d);
6542
6542
  }), l ? /* @__PURE__ */ V(xt.div, q({}, o, {
6543
6543
  ref: t,
6544
6544
  style: {
6545
6545
  width: a,
6546
- height: s,
6546
+ height: i,
6547
6547
  position: "absolute",
6548
6548
  right: r.dir === "ltr" ? 0 : void 0,
6549
6549
  left: r.dir === "rtl" ? 0 : void 0,
@@ -6564,7 +6564,7 @@ function tn(e) {
6564
6564
  return Math.max(o, 18);
6565
6565
  }
6566
6566
  function L0(e, t, n, o = "ltr") {
6567
- const r = tn(n), a = r / 2, i = t || a, s = r - i, c = n.scrollbar.paddingStart + i, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = o === "ltr" ? [
6567
+ const r = tn(n), a = r / 2, s = t || a, i = r - s, c = n.scrollbar.paddingStart + s, l = n.scrollbar.size - n.scrollbar.paddingEnd - i, u = n.content - n.viewport, d = o === "ltr" ? [
6568
6568
  0,
6569
6569
  u
6570
6570
  ] : [
@@ -6577,19 +6577,19 @@ function L0(e, t, n, o = "ltr") {
6577
6577
  ], d)(e);
6578
6578
  }
6579
6579
  function Ao(e, t, n = "ltr") {
6580
- const o = tn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - r, i = t.content - t.viewport, s = a - o, c = n === "ltr" ? [
6580
+ const o = tn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - r, s = t.content - t.viewport, i = a - o, c = n === "ltr" ? [
6581
6581
  0,
6582
- i
6582
+ s
6583
6583
  ] : [
6584
- i * -1,
6584
+ s * -1,
6585
6585
  0
6586
6586
  ], l = d0(e, c);
6587
6587
  return ma([
6588
6588
  0,
6589
- i
6589
+ s
6590
6590
  ], [
6591
6591
  0,
6592
- s
6592
+ i
6593
6593
  ])(l);
6594
6594
  }
6595
6595
  function ma(e, t) {
@@ -6612,8 +6612,8 @@ const P0 = (e, t = () => {
6612
6612
  const a = {
6613
6613
  left: e.scrollLeft,
6614
6614
  top: e.scrollTop
6615
- }, i = n.left !== a.left, s = n.top !== a.top;
6616
- (i || s) && t(), n = a, o = window.requestAnimationFrame(r);
6615
+ }, s = n.left !== a.left, i = n.top !== a.top;
6616
+ (s || i) && t(), n = a, o = window.requestAnimationFrame(r);
6617
6617
  })(), () => window.cancelAnimationFrame(o);
6618
6618
  };
6619
6619
  function nn(e, t) {
@@ -6698,8 +6698,8 @@ const $0 = p0, R0 = m0, N0 = S0, k0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
6698
6698
  className: o,
6699
6699
  maxHeight: r = "100%",
6700
6700
  maxWidth: a = "100%",
6701
- size: i = "default",
6702
- theme: s = "light",
6701
+ size: s = "default",
6702
+ theme: i = "light",
6703
6703
  hideScrollbar: c = !1,
6704
6704
  type: l = "auto",
6705
6705
  ...u
@@ -6708,8 +6708,8 @@ const $0 = p0, R0 = m0, N0 = S0, k0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
6708
6708
  maxWidth: _
6709
6709
  }, w = I(
6710
6710
  ee.root,
6711
- ee[i],
6712
6711
  ee[s],
6712
+ ee[i],
6713
6713
  {
6714
6714
  [ee.hideScrollbar]: c
6715
6715
  },
@@ -6732,8 +6732,8 @@ const $0 = p0, R0 = m0, N0 = S0, k0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
6732
6732
  }
6733
6733
  ),
6734
6734
  !c && /* @__PURE__ */ A(Ee, { children: [
6735
- /* @__PURE__ */ f(Ut, { orientation: "vertical", size: i, theme: s }),
6736
- /* @__PURE__ */ f(Ut, { orientation: "horizontal", size: i, theme: s }),
6735
+ /* @__PURE__ */ f(Ut, { orientation: "vertical", size: s, theme: i }),
6736
+ /* @__PURE__ */ f(Ut, { orientation: "horizontal", size: s, theme: i }),
6737
6737
  /* @__PURE__ */ f(N0, { className: ee.corner })
6738
6738
  ] })
6739
6739
  ]
@@ -6743,21 +6743,21 @@ const $0 = p0, R0 = m0, N0 = S0, k0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
6743
6743
  );
6744
6744
  wa.displayName = "ScrollArea";
6745
6745
  const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default", theme: o = "light", ...r }, a) => {
6746
- const [i, s] = W({ height: "20px", width: "20px" });
6746
+ const [s, i] = W({ height: "20px", width: "20px" });
6747
6747
  ae(() => {
6748
6748
  (() => {
6749
6749
  if (t === "vertical") {
6750
6750
  const _ = Math.max(20, 30);
6751
- s({ height: `${_}%`, width: "20px" });
6751
+ i({ height: `${_}%`, width: "20px" });
6752
6752
  } else {
6753
6753
  const _ = Math.max(20, 30);
6754
- s({ height: "20px", width: `${_}%` });
6754
+ i({ height: "20px", width: `${_}%` });
6755
6755
  }
6756
6756
  })();
6757
6757
  }, [t]);
6758
6758
  const c = {
6759
- "--scrollbar-thumb-height": i.height,
6760
- "--scrollbar-thumb-width": i.width
6759
+ "--scrollbar-thumb-height": s.height,
6760
+ "--scrollbar-thumb-width": s.width
6761
6761
  };
6762
6762
  return /* @__PURE__ */ A(
6763
6763
  g0,
@@ -6835,8 +6835,8 @@ const e2 = P((e, t) => {
6835
6835
  disabled: o = !1,
6836
6836
  isOpen: r = !1,
6837
6837
  label: a,
6838
- maxHeight: i = 158,
6839
- name: s,
6838
+ maxHeight: s = 158,
6839
+ name: i,
6840
6840
  onValueChange: c,
6841
6841
  options: l,
6842
6842
  placeholder: u,
@@ -6871,7 +6871,7 @@ const e2 = P((e, t) => {
6871
6871
  Ld,
6872
6872
  {
6873
6873
  disabled: o,
6874
- name: s,
6874
+ name: i,
6875
6875
  open: C,
6876
6876
  onOpenChange: x,
6877
6877
  onValueChange: c,
@@ -6899,7 +6899,7 @@ const e2 = P((e, t) => {
6899
6899
  className: E.content,
6900
6900
  position: "popper",
6901
6901
  sideOffset: -1,
6902
- children: /* @__PURE__ */ f(Ad, { asChild: !0, children: /* @__PURE__ */ A(wa, { maxHeight: i, size: "micro", theme: "colorVariants", children: [
6902
+ children: /* @__PURE__ */ f(Ad, { asChild: !0, children: /* @__PURE__ */ A(wa, { maxHeight: s, size: "micro", theme: "colorVariants", children: [
6903
6903
  l.map((S) => /* @__PURE__ */ f(
6904
6904
  Td,
6905
6905
  {
@@ -6971,8 +6971,8 @@ const t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_swap__content_1jn0
6971
6971
  hint: o,
6972
6972
  isRequired: r,
6973
6973
  label: a,
6974
- id: i,
6975
- maxLength: s,
6974
+ id: s,
6975
+ maxLength: i,
6976
6976
  onChange: c,
6977
6977
  rows: l = 4,
6978
6978
  clearable: u = !1,
@@ -7002,10 +7002,10 @@ const t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_swap__content_1jn0
7002
7002
  /* @__PURE__ */ f(
7003
7003
  "textarea",
7004
7004
  {
7005
- id: i,
7005
+ id: s,
7006
7006
  ref: p,
7007
7007
  disabled: t,
7008
- maxLength: s,
7008
+ maxLength: i,
7009
7009
  rows: l,
7010
7010
  className: pe.textarea,
7011
7011
  value: b,
@@ -7013,7 +7013,7 @@ const t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_swap__content_1jn0
7013
7013
  ...w
7014
7014
  }
7015
7015
  ),
7016
- a && /* @__PURE__ */ A("label", { htmlFor: i, className: pe.label, children: [
7016
+ a && /* @__PURE__ */ A("label", { htmlFor: s, className: pe.label, children: [
7017
7017
  a,
7018
7018
  r && /* @__PURE__ */ f(Vn, { className: pe.required })
7019
7019
  ] }),