@namuna-nur/ui-kit 1.2.2 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import * as c from "react";
2
- import V, { forwardRef as ce, createElement as Se, useLayoutEffect as fa, useEffect as Po, useState as Ao, useRef as pa } from "react";
2
+ import V, { forwardRef as ce, createElement as Se, useLayoutEffect as pa, useEffect as Ao, useState as _o, useRef as $r } from "react";
3
3
  import { a as O, f as ma } from "./twMerge.js";
4
4
  import * as Tn from "react-dom";
5
- import _o from "react-dom";
5
+ import Oo from "react-dom";
6
6
  import { u as va } from "./useOption.js";
7
7
  var hn = { exports: {} }, Qe = {};
8
8
  /**
@@ -14,10 +14,10 @@ var hn = { exports: {} }, Qe = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var $r;
17
+ var Dr;
18
18
  function ha() {
19
- if ($r) return Qe;
20
- $r = 1;
19
+ if (Dr) return Qe;
20
+ Dr = 1;
21
21
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
22
22
  function n(r, o, s) {
23
23
  var i = null;
@@ -46,9 +46,9 @@ var et = {};
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
48
  */
49
- var Dr;
49
+ var jr;
50
50
  function ga() {
51
- return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && function() {
51
+ return jr || (jr = 1, process.env.NODE_ENV !== "production" && function() {
52
52
  function e(E) {
53
53
  if (E == null) return null;
54
54
  if (typeof E == "function")
@@ -61,7 +61,7 @@ function ga() {
61
61
  return "Profiler";
62
62
  case b:
63
63
  return "StrictMode";
64
- case S:
64
+ case R:
65
65
  return "Suspense";
66
66
  case P:
67
67
  return "SuspenseList";
@@ -74,14 +74,14 @@ function ga() {
74
74
  ), E.$$typeof) {
75
75
  case g:
76
76
  return "Portal";
77
- case y:
78
- return (E.displayName || "Context") + ".Provider";
79
77
  case w:
78
+ return (E.displayName || "Context") + ".Provider";
79
+ case y:
80
80
  return (E._context.displayName || "Context") + ".Consumer";
81
81
  case C:
82
82
  var _ = E.render;
83
83
  return E = E.displayName, E || (E = _.displayName || _.name || "", E = E !== "" ? "ForwardRef(" + E + ")" : "ForwardRef"), E;
84
- case R:
84
+ case S:
85
85
  return _ = E.displayName || null, _ !== null ? _ : e(E.type) || "Memo";
86
86
  case T:
87
87
  _ = E._payload, E = E._init;
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
240
240
  function d(E) {
241
241
  typeof E == "object" && E !== null && E.$$typeof === v && E._store && (E._store.validated = 1);
242
242
  }
243
- var p = V, v = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), y = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), L = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, j = Array.isArray, D = console.createTask ? console.createTask : function() {
243
+ var p = V, v = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), w = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), L = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, j = Array.isArray, D = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
246
  p = {
@@ -523,7 +523,7 @@ const tt = {
523
523
  label: "size-2.5"
524
524
  }
525
525
  }
526
- }, jr = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 38, height: 30, fill: "none", ...e }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "M32.3 3.75h-3.01l-1.9-1.87A7.2 7.2 0 0 0 22.8 0h-7.6c-1.56 0-3.49.79-4.59 1.88l-1.9 1.87H5.7A5.67 5.67 0 0 0 0 9.38v15C0 27.48 2.56 30 5.7 30h26.6c3.14 0 5.7-2.52 5.7-5.62v-15c0-3.1-2.56-5.63-5.7-5.63M19 22.5a6.7 6.7 0 0 1-4.7-1.92 6.5 6.5 0 0 1 0-9.29 6.7 6.7 0 0 1 9.4 0 6.5 6.5 0 0 1 0 9.29A6.7 6.7 0 0 1 19 22.5m11.4-8.81a2.5 2.5 0 0 1-2.28-1.5 2.4 2.4 0 0 1 1.33-3.2 2.5 2.5 0 0 1 2.7.53 2.4 2.4 0 0 1 0 3.45c-.47.46-1.1.72-1.75.72" })), ba = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentFill", ...e }, /* @__PURE__ */ c.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m5.67 7.5 3.1 3.5L15 4M2 7.5 5.11 11m6.22-7L8.97 6.69" })), xa = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", ...e }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "m9.55 15.15 8.48-8.48a.96.96 0 0 1 1.4 0q.3.3.3.72 0 .4-.3.71l-9.18 9.2a.96.96 0 0 1-1.4 0L4.55 13a1 1 0 0 1-.29-.71q.01-.41.32-.71.3-.3.7-.3.42 0 .72.3z" })), Oo = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "none", ...e }, /* @__PURE__ */ c.createElement("g", { mask: "url(#mask0_770_8096)" }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "m7.96 12.63 7.06-7.07a.8.8 0 0 1 1.17 0q.24.25.25.6 0 .34-.25.59l-7.65 7.67a.8.8 0 0 1-1.16 0l-3.59-3.59a.8.8 0 0 1-.24-.59q.01-.34.26-.6a.8.8 0 0 1 .6-.24q.34 0 .59.25z" }))), ya = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 25, fill: "none", ...e }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "m12 15.33-5-5h10z" })), wa = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentFill", viewBox: "0 0 19 19", ...e }, /* @__PURE__ */ c.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ c.createElement("path", { d: "M4.95 5.54a4.55 4.55 0 1 1 9.1 0 4.55 4.55 0 0 1-9.1 0m4.39 5.75h.32l5.77 1.02h.03c1.07.25 2.21.92 2.43 2.24v.02l.1.7c.2 1.58-1.05 2.74-2.54 2.74H3.55c-1.49 0-2.75-1.16-2.54-2.76l.1-.68v-.03c.22-1.29 1.37-2 2.43-2.23h.02z" })), /* @__PURE__ */ c.createElement("defs", null, /* @__PURE__ */ c.createElement("clipPath", { id: "a" }, /* @__PURE__ */ c.createElement("path", { d: "M0 0h19v19H0z" })))), km = ce(
526
+ }, Lr = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 38, height: 30, fill: "none", ...e }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "M32.3 3.75h-3.01l-1.9-1.87A7.2 7.2 0 0 0 22.8 0h-7.6c-1.56 0-3.49.79-4.59 1.88l-1.9 1.87H5.7A5.67 5.67 0 0 0 0 9.38v15C0 27.48 2.56 30 5.7 30h26.6c3.14 0 5.7-2.52 5.7-5.62v-15c0-3.1-2.56-5.63-5.7-5.63M19 22.5a6.7 6.7 0 0 1-4.7-1.92 6.5 6.5 0 0 1 0-9.29 6.7 6.7 0 0 1 9.4 0 6.5 6.5 0 0 1 0 9.29A6.7 6.7 0 0 1 19 22.5m11.4-8.81a2.5 2.5 0 0 1-2.28-1.5 2.4 2.4 0 0 1 1.33-3.2 2.5 2.5 0 0 1 2.7.53 2.4 2.4 0 0 1 0 3.45c-.47.46-1.1.72-1.75.72" })), ba = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentFill", ...e }, /* @__PURE__ */ c.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m5.67 7.5 3.1 3.5L15 4M2 7.5 5.11 11m6.22-7L8.97 6.69" })), xa = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", ...e }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "m9.55 15.15 8.48-8.48a.96.96 0 0 1 1.4 0q.3.3.3.72 0 .4-.3.71l-9.18 9.2a.96.96 0 0 1-1.4 0L4.55 13a1 1 0 0 1-.29-.71q.01-.41.32-.71.3-.3.7-.3.42 0 .72.3z" })), To = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "none", ...e }, /* @__PURE__ */ c.createElement("g", { mask: "url(#mask0_770_8096)" }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "m7.96 12.63 7.06-7.07a.8.8 0 0 1 1.17 0q.24.25.25.6 0 .34-.25.59l-7.65 7.67a.8.8 0 0 1-1.16 0l-3.59-3.59a.8.8 0 0 1-.24-.59q.01-.34.26-.6a.8.8 0 0 1 .6-.24q.34 0 .59.25z" }))), ya = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 25, fill: "none", ...e }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "m12 15.33-5-5h10z" })), wa = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentFill", viewBox: "0 0 19 19", ...e }, /* @__PURE__ */ c.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ c.createElement("path", { d: "M4.95 5.54a4.55 4.55 0 1 1 9.1 0 4.55 4.55 0 0 1-9.1 0m4.39 5.75h.32l5.77 1.02h.03c1.07.25 2.21.92 2.43 2.24v.02l.1.7c.2 1.58-1.05 2.74-2.54 2.74H3.55c-1.49 0-2.75-1.16-2.54-2.76l.1-.68v-.03c.22-1.29 1.37-2 2.43-2.23h.02z" })), /* @__PURE__ */ c.createElement("defs", null, /* @__PURE__ */ c.createElement("clipPath", { id: "a" }, /* @__PURE__ */ c.createElement("path", { d: "M0 0h19v19H0z" })))), km = ce(
527
527
  ({
528
528
  checked: e = !1,
529
529
  className: t = "",
@@ -565,7 +565,7 @@ const tt = {
565
565
  }
566
566
  ),
567
567
  /* @__PURE__ */ h.jsx(
568
- Oo,
568
+ To,
569
569
  {
570
570
  width: 20,
571
571
  height: 18,
@@ -677,7 +677,7 @@ const tt = {
677
677
  }
678
678
  }, jm = c.forwardRef(
679
679
  ({ htmlFor: e, className: t, children: n, disabled: r, ...o }, s) => {
680
- const i = Lr.base, a = Lr.disabled;
680
+ const i = Fr.base, a = Fr.disabled;
681
681
  return /* @__PURE__ */ h.jsx(
682
682
  "label",
683
683
  {
@@ -691,7 +691,7 @@ const tt = {
691
691
  }
692
692
  );
693
693
  }
694
- ), Lr = {
694
+ ), Fr = {
695
695
  base: "text-secondary-10 text-sm font-sans font-semibold leading-none",
696
696
  disabled: "text-dark-30/25 cursor-not-allowed"
697
697
  };
@@ -771,29 +771,29 @@ function ve(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
771
771
  return t == null ? void 0 : t(o);
772
772
  };
773
773
  }
774
- function Fr(e, t) {
774
+ function Wr(e, t) {
775
775
  if (typeof e == "function")
776
776
  return e(t);
777
777
  e != null && (e.current = t);
778
778
  }
779
- function To(...e) {
779
+ function Mo(...e) {
780
780
  return (t) => {
781
781
  let n = !1;
782
782
  const r = e.map((o) => {
783
- const s = Fr(o, t);
783
+ const s = Wr(o, t);
784
784
  return !n && typeof s == "function" && (n = !0), s;
785
785
  });
786
786
  if (n)
787
787
  return () => {
788
788
  for (let o = 0; o < r.length; o++) {
789
789
  const s = r[o];
790
- typeof s == "function" ? s() : Fr(e[o], null);
790
+ typeof s == "function" ? s() : Wr(e[o], null);
791
791
  }
792
792
  };
793
793
  };
794
794
  }
795
795
  function se(...e) {
796
- return c.useCallback(To(...e), e);
796
+ return c.useCallback(Mo(...e), e);
797
797
  }
798
798
  function Lt(e, t = []) {
799
799
  let n = [];
@@ -858,7 +858,7 @@ var gn = c.forwardRef((e, t) => {
858
858
  const { children: n, ...r } = e;
859
859
  if (c.isValidElement(n)) {
860
860
  const o = ka(n), s = Na(r, n.props);
861
- return n.type !== c.Fragment && (s.ref = t ? To(t, o) : o), c.cloneElement(n, s);
861
+ return n.type !== c.Fragment && (s.ref = t ? Mo(t, o) : o), c.cloneElement(n, s);
862
862
  }
863
863
  return c.Children.count(n) > 1 ? c.Children.only(null) : null;
864
864
  });
@@ -893,15 +893,15 @@ function Fm(e) {
893
893
  i.displayName = t;
894
894
  const a = e + "CollectionSlot", l = V.forwardRef(
895
895
  (v, g) => {
896
- const { scope: m, children: b } = v, x = s(a, m), w = se(g, x.collectionRef);
897
- return /* @__PURE__ */ h.jsx(ot, { ref: w, children: b });
896
+ const { scope: m, children: b } = v, x = s(a, m), y = se(g, x.collectionRef);
897
+ return /* @__PURE__ */ h.jsx(ot, { ref: y, children: b });
898
898
  }
899
899
  );
900
900
  l.displayName = a;
901
901
  const u = e + "CollectionItemSlot", f = "data-radix-collection-item", d = V.forwardRef(
902
902
  (v, g) => {
903
- const { scope: m, children: b, ...x } = v, w = V.useRef(null), y = se(g, w), C = s(u, m);
904
- return V.useEffect(() => (C.itemMap.set(w, { ref: w, ...x }), () => void C.itemMap.delete(w))), /* @__PURE__ */ h.jsx(ot, { [f]: "", ref: y, children: b });
903
+ const { scope: m, children: b, ...x } = v, y = V.useRef(null), w = se(g, y), C = s(u, m);
904
+ return V.useEffect(() => (C.itemMap.set(y, { ref: y, ...x }), () => void C.itemMap.delete(y))), /* @__PURE__ */ h.jsx(ot, { [f]: "", ref: w, children: b });
905
905
  }
906
906
  );
907
907
  d.displayName = u;
@@ -912,7 +912,7 @@ function Fm(e) {
912
912
  if (!b) return [];
913
913
  const x = Array.from(b.querySelectorAll(`[${f}]`));
914
914
  return Array.from(g.itemMap.values()).sort(
915
- (C, S) => x.indexOf(C.ref.current) - x.indexOf(S.ref.current)
915
+ (C, R) => x.indexOf(C.ref.current) - x.indexOf(R.ref.current)
916
916
  );
917
917
  }, [g.collectionRef, g.itemMap]);
918
918
  }
@@ -967,7 +967,7 @@ function ja(e, t = globalThis == null ? void 0 : globalThis.document) {
967
967
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
968
968
  }, [n, t]);
969
969
  }
970
- var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLayer.pointerDownOutside", Wa = "dismissableLayer.focusOutside", Wr, Mo = c.createContext({
970
+ var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLayer.pointerDownOutside", Wa = "dismissableLayer.focusOutside", Br, Io = c.createContext({
971
971
  layers: /* @__PURE__ */ new Set(),
972
972
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
973
973
  branches: /* @__PURE__ */ new Set()
@@ -981,47 +981,47 @@ var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLa
981
981
  onInteractOutside: i,
982
982
  onDismiss: a,
983
983
  ...l
984
- } = e, u = c.useContext(Mo), [f, d] = c.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = c.useState({}), g = se(t, (R) => d(R)), m = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(b), w = f ? m.indexOf(f) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= x, S = Ua((R) => {
985
- const T = R.target, k = [...u.branches].some((I) => I.contains(T));
986
- !C || k || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
987
- }, p), P = Va((R) => {
988
- const T = R.target;
989
- [...u.branches].some((I) => I.contains(T)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
984
+ } = e, u = c.useContext(Io), [f, d] = c.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = c.useState({}), g = se(t, (S) => d(S)), m = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(b), y = f ? m.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= x, R = Ua((S) => {
985
+ const T = S.target, k = [...u.branches].some((I) => I.contains(T));
986
+ !C || k || (o == null || o(S), i == null || i(S), S.defaultPrevented || a == null || a());
987
+ }, p), P = Va((S) => {
988
+ const T = S.target;
989
+ [...u.branches].some((I) => I.contains(T)) || (s == null || s(S), i == null || i(S), S.defaultPrevented || a == null || a());
990
990
  }, p);
991
- return ja((R) => {
992
- w === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
991
+ return ja((S) => {
992
+ y === u.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && a && (S.preventDefault(), a()));
993
993
  }, p), c.useEffect(() => {
994
994
  if (f)
995
- return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Wr = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), Br(), () => {
996
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Wr);
995
+ return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Br = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), Ur(), () => {
996
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Br);
997
997
  };
998
998
  }, [f, p, n, u]), c.useEffect(() => () => {
999
- f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Br());
999
+ f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Ur());
1000
1000
  }, [f, u]), c.useEffect(() => {
1001
- const R = () => v({});
1002
- return document.addEventListener(bn, R), () => document.removeEventListener(bn, R);
1001
+ const S = () => v({});
1002
+ return document.addEventListener(bn, S), () => document.removeEventListener(bn, S);
1003
1003
  }, []), /* @__PURE__ */ h.jsx(
1004
1004
  le.div,
1005
1005
  {
1006
1006
  ...l,
1007
1007
  ref: g,
1008
1008
  style: {
1009
- pointerEvents: y ? C ? "auto" : "none" : void 0,
1009
+ pointerEvents: w ? C ? "auto" : "none" : void 0,
1010
1010
  ...e.style
1011
1011
  },
1012
1012
  onFocusCapture: ve(e.onFocusCapture, P.onFocusCapture),
1013
1013
  onBlurCapture: ve(e.onBlurCapture, P.onBlurCapture),
1014
1014
  onPointerDownCapture: ve(
1015
1015
  e.onPointerDownCapture,
1016
- S.onPointerDownCapture
1016
+ R.onPointerDownCapture
1017
1017
  )
1018
1018
  }
1019
1019
  );
1020
1020
  }
1021
1021
  );
1022
1022
  Mn.displayName = La;
1023
- var Ba = "DismissableLayerBranch", Io = c.forwardRef((e, t) => {
1024
- const n = c.useContext(Mo), r = c.useRef(null), o = se(t, r);
1023
+ var Ba = "DismissableLayerBranch", No = c.forwardRef((e, t) => {
1024
+ const n = c.useContext(Io), r = c.useRef(null), o = se(t, r);
1025
1025
  return c.useEffect(() => {
1026
1026
  const s = r.current;
1027
1027
  if (s)
@@ -1030,7 +1030,7 @@ var Ba = "DismissableLayerBranch", Io = c.forwardRef((e, t) => {
1030
1030
  };
1031
1031
  }, [n.branches]), /* @__PURE__ */ h.jsx(le.div, { ...e, ref: o });
1032
1032
  });
1033
- Io.displayName = Ba;
1033
+ No.displayName = Ba;
1034
1034
  function Ua(e, t = globalThis == null ? void 0 : globalThis.document) {
1035
1035
  const n = Re(e), r = c.useRef(!1), o = c.useRef(() => {
1036
1036
  });
@@ -1038,7 +1038,7 @@ function Ua(e, t = globalThis == null ? void 0 : globalThis.document) {
1038
1038
  const s = (a) => {
1039
1039
  if (a.target && !r.current) {
1040
1040
  let l = function() {
1041
- No(
1041
+ ko(
1042
1042
  Fa,
1043
1043
  n,
1044
1044
  u,
@@ -1065,7 +1065,7 @@ function Va(e, t = globalThis == null ? void 0 : globalThis.document) {
1065
1065
  const n = Re(e), r = c.useRef(!1);
1066
1066
  return c.useEffect(() => {
1067
1067
  const o = (s) => {
1068
- s.target && !r.current && No(Wa, n, { originalEvent: s }, {
1068
+ s.target && !r.current && ko(Wa, n, { originalEvent: s }, {
1069
1069
  discrete: !1
1070
1070
  });
1071
1071
  };
@@ -1075,23 +1075,23 @@ function Va(e, t = globalThis == null ? void 0 : globalThis.document) {
1075
1075
  onBlurCapture: () => r.current = !1
1076
1076
  };
1077
1077
  }
1078
- function Br() {
1078
+ function Ur() {
1079
1079
  const e = new CustomEvent(bn);
1080
1080
  document.dispatchEvent(e);
1081
1081
  }
1082
- function No(e, t, n, { discrete: r }) {
1082
+ function ko(e, t, n, { discrete: r }) {
1083
1083
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1084
1084
  t && o.addEventListener(e, t, { once: !0 }), r ? Da(o, s) : o.dispatchEvent(s);
1085
1085
  }
1086
- var Wm = Mn, Bm = Io, ke = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
1087
- }, za = "Portal", ko = c.forwardRef((e, t) => {
1086
+ var Wm = Mn, Bm = No, ke = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
1087
+ }, za = "Portal", $o = c.forwardRef((e, t) => {
1088
1088
  var a;
1089
1089
  const { container: n, ...r } = e, [o, s] = c.useState(!1);
1090
1090
  ke(() => s(!0), []);
1091
1091
  const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
1092
- return i ? _o.createPortal(/* @__PURE__ */ h.jsx(le.div, { ...r, ref: t }), i) : null;
1092
+ return i ? Oo.createPortal(/* @__PURE__ */ h.jsx(le.div, { ...r, ref: t }), i) : null;
1093
1093
  });
1094
- ko.displayName = za;
1094
+ $o.displayName = za;
1095
1095
  function Ga(e, t) {
1096
1096
  return c.useReducer((n, r) => t[n][r] ?? n, e);
1097
1097
  }
@@ -1157,7 +1157,7 @@ function Ha(e) {
1157
1157
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
1158
1158
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
1159
1159
  }
1160
- function $o({
1160
+ function Do({
1161
1161
  prop: e,
1162
1162
  defaultProp: t,
1163
1163
  onChange: n = () => {
@@ -1363,11 +1363,11 @@ const ye = {
1363
1363
  }) => /* @__PURE__ */ h.jsx(
1364
1364
  he,
1365
1365
  {
1366
- className: O(Ur.base, Ur.status[t], n),
1366
+ className: O(Vr.base, Vr.status[t], n),
1367
1367
  "data-testid": "status",
1368
1368
  children: e
1369
1369
  }
1370
- ), Ur = {
1370
+ ), Vr = {
1371
1371
  base: "inline-flex rounded-[50px] cursor-pointer px-2.5 py-1.5 text-dark-40/[.80] text-xs font-medium leading-none",
1372
1372
  status: {
1373
1373
  success: "bg-success-30",
@@ -1381,7 +1381,7 @@ function Za(e) {
1381
1381
  const t = c.useRef({ value: e, previous: e });
1382
1382
  return c.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
1383
1383
  }
1384
- function Do(e) {
1384
+ function jo(e) {
1385
1385
  const [t, n] = c.useState(void 0);
1386
1386
  return ke(() => {
1387
1387
  if (e) {
@@ -1416,7 +1416,7 @@ var Nn = "Switch", [Ja, Qa] = Lt(Nn), [ec, tc] = Ja(Nn), kn = c.forwardRef(
1416
1416
  onCheckedChange: u,
1417
1417
  form: f,
1418
1418
  ...d
1419
- } = e, [p, v] = c.useState(null), g = se(t, (y) => v(y)), m = c.useRef(!1), b = p ? f || !!p.closest("form") : !0, [x = !1, w] = $o({
1419
+ } = e, [p, v] = c.useState(null), g = se(t, (w) => v(w)), m = c.useRef(!1), b = p ? f || !!p.closest("form") : !0, [x = !1, y] = Do({
1420
1420
  prop: o,
1421
1421
  defaultProp: s,
1422
1422
  onChange: u
@@ -1429,14 +1429,14 @@ var Nn = "Switch", [Ja, Qa] = Lt(Nn), [ec, tc] = Ja(Nn), kn = c.forwardRef(
1429
1429
  role: "switch",
1430
1430
  "aria-checked": x,
1431
1431
  "aria-required": i,
1432
- "data-state": Lo(x),
1432
+ "data-state": Fo(x),
1433
1433
  "data-disabled": a ? "" : void 0,
1434
1434
  disabled: a,
1435
1435
  value: l,
1436
1436
  ...d,
1437
1437
  ref: g,
1438
- onClick: ve(e.onClick, (y) => {
1439
- w((C) => !C), b && (m.current = y.isPropagationStopped(), m.current || y.stopPropagation());
1438
+ onClick: ve(e.onClick, (w) => {
1439
+ y((C) => !C), b && (m.current = w.isPropagationStopped(), m.current || w.stopPropagation());
1440
1440
  })
1441
1441
  }
1442
1442
  ),
@@ -1458,13 +1458,13 @@ var Nn = "Switch", [Ja, Qa] = Lt(Nn), [ec, tc] = Ja(Nn), kn = c.forwardRef(
1458
1458
  }
1459
1459
  );
1460
1460
  kn.displayName = Nn;
1461
- var jo = "SwitchThumb", $n = c.forwardRef(
1461
+ var Lo = "SwitchThumb", $n = c.forwardRef(
1462
1462
  (e, t) => {
1463
- const { __scopeSwitch: n, ...r } = e, o = tc(jo, n);
1463
+ const { __scopeSwitch: n, ...r } = e, o = tc(Lo, n);
1464
1464
  return /* @__PURE__ */ h.jsx(
1465
1465
  le.span,
1466
1466
  {
1467
- "data-state": Lo(o.checked),
1467
+ "data-state": Fo(o.checked),
1468
1468
  "data-disabled": o.disabled ? "" : void 0,
1469
1469
  ...r,
1470
1470
  ref: t
@@ -1472,9 +1472,9 @@ var jo = "SwitchThumb", $n = c.forwardRef(
1472
1472
  );
1473
1473
  }
1474
1474
  );
1475
- $n.displayName = jo;
1475
+ $n.displayName = Lo;
1476
1476
  var nc = (e) => {
1477
- const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = c.useRef(null), i = Za(n), a = Do(t);
1477
+ const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = c.useRef(null), i = Za(n), a = jo(t);
1478
1478
  return c.useEffect(() => {
1479
1479
  const l = s.current, u = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(u, "checked").set;
1480
1480
  if (i !== n && d) {
@@ -1501,7 +1501,7 @@ var nc = (e) => {
1501
1501
  }
1502
1502
  );
1503
1503
  };
1504
- function Lo(e) {
1504
+ function Fo(e) {
1505
1505
  return e ? "checked" : "unchecked";
1506
1506
  }
1507
1507
  var rc = kn, oc = $n;
@@ -1609,7 +1609,7 @@ const sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1609
1609
  maxLength: a,
1610
1610
  ...l
1611
1611
  }, u) => {
1612
- var x, w;
1612
+ var x, y;
1613
1613
  const f = we.base, d = we.state, p = we.disabled, v = we.styles, g = we.maxLength, m = we.message;
1614
1614
  return /* @__PURE__ */ h.jsxs("div", { className: we.root, children: [
1615
1615
  /* @__PURE__ */ h.jsx(
@@ -1644,7 +1644,7 @@ const sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1644
1644
  String(l.value).length === a ? "bg-danger-10 text-sidebar-10" : "bg-transparent"
1645
1645
  ),
1646
1646
  children: [
1647
- (w = (x = l.value || "") == null ? void 0 : x.toString()) == null ? void 0 : w.length,
1647
+ (y = (x = l.value || "") == null ? void 0 : x.toString()) == null ? void 0 : y.length,
1648
1648
  "/",
1649
1649
  a
1650
1650
  ]
@@ -1810,7 +1810,7 @@ function bc(e) {
1810
1810
  ...e
1811
1811
  };
1812
1812
  }
1813
- function Fo(e) {
1813
+ function Wo(e) {
1814
1814
  return typeof e != "number" ? bc(e) : {
1815
1815
  top: e,
1816
1816
  right: e,
@@ -1836,7 +1836,7 @@ function Tt(e) {
1836
1836
  y: n
1837
1837
  };
1838
1838
  }
1839
- function Vr(e, t, n) {
1839
+ function zr(e, t, n) {
1840
1840
  let {
1841
1841
  reference: r,
1842
1842
  floating: o
@@ -1898,16 +1898,16 @@ const xc = async (e, t, n) => {
1898
1898
  }), {
1899
1899
  x: f,
1900
1900
  y: d
1901
- } = Vr(u, r, l), p = r, v = {}, g = 0;
1901
+ } = zr(u, r, l), p = r, v = {}, g = 0;
1902
1902
  for (let m = 0; m < a.length; m++) {
1903
1903
  const {
1904
1904
  name: b,
1905
1905
  fn: x
1906
1906
  } = a[m], {
1907
- x: w,
1908
- y,
1907
+ x: y,
1908
+ y: w,
1909
1909
  data: C,
1910
- reset: S
1910
+ reset: R
1911
1911
  } = await x({
1912
1912
  x: f,
1913
1913
  y: d,
@@ -1922,20 +1922,20 @@ const xc = async (e, t, n) => {
1922
1922
  floating: t
1923
1923
  }
1924
1924
  });
1925
- f = w ?? f, d = y ?? d, v = {
1925
+ f = y ?? f, d = w ?? d, v = {
1926
1926
  ...v,
1927
1927
  [b]: {
1928
1928
  ...v[b],
1929
1929
  ...C
1930
1930
  }
1931
- }, S && g <= 50 && (g++, typeof S == "object" && (S.placement && (p = S.placement), S.rects && (u = S.rects === !0 ? await i.getElementRects({
1931
+ }, R && g <= 50 && (g++, typeof R == "object" && (R.placement && (p = R.placement), R.rects && (u = R.rects === !0 ? await i.getElementRects({
1932
1932
  reference: e,
1933
1933
  floating: t,
1934
1934
  strategy: o
1935
- }) : S.rects), {
1935
+ }) : R.rects), {
1936
1936
  x: f,
1937
1937
  y: d
1938
- } = Vr(u, p, l)), m = -1);
1938
+ } = zr(u, p, l)), m = -1);
1939
1939
  }
1940
1940
  return {
1941
1941
  x: f,
@@ -1961,33 +1961,33 @@ async function st(e, t) {
1961
1961
  elementContext: d = "floating",
1962
1962
  altBoundary: p = !1,
1963
1963
  padding: v = 0
1964
- } = ge(t, e), g = Fo(v), b = a[p ? d === "floating" ? "reference" : "floating" : d], x = Tt(await s.getClippingRect({
1964
+ } = ge(t, e), g = Wo(v), b = a[p ? d === "floating" ? "reference" : "floating" : d], x = Tt(await s.getClippingRect({
1965
1965
  element: (n = await (s.isElement == null ? void 0 : s.isElement(b))) == null || n ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
1966
1966
  boundary: u,
1967
1967
  rootBoundary: f,
1968
1968
  strategy: l
1969
- })), w = d === "floating" ? {
1969
+ })), y = d === "floating" ? {
1970
1970
  x: r,
1971
1971
  y: o,
1972
1972
  width: i.floating.width,
1973
1973
  height: i.floating.height
1974
- } : i.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), C = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
1974
+ } : i.reference, w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), C = await (s.isElement == null ? void 0 : s.isElement(w)) ? await (s.getScale == null ? void 0 : s.getScale(w)) || {
1975
1975
  x: 1,
1976
1976
  y: 1
1977
1977
  } : {
1978
1978
  x: 1,
1979
1979
  y: 1
1980
- }, S = Tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
1980
+ }, R = Tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
1981
1981
  elements: a,
1982
- rect: w,
1983
- offsetParent: y,
1982
+ rect: y,
1983
+ offsetParent: w,
1984
1984
  strategy: l
1985
- }) : w);
1985
+ }) : y);
1986
1986
  return {
1987
- top: (x.top - S.top + g.top) / C.y,
1988
- bottom: (S.bottom - x.bottom + g.bottom) / C.y,
1989
- left: (x.left - S.left + g.left) / C.x,
1990
- right: (S.right - x.right + g.right) / C.x
1987
+ top: (x.top - R.top + g.top) / C.y,
1988
+ bottom: (R.bottom - x.bottom + g.bottom) / C.y,
1989
+ left: (x.left - R.left + g.left) / C.x,
1990
+ right: (R.right - x.right + g.right) / C.x
1991
1991
  };
1992
1992
  }
1993
1993
  const yc = (e) => ({
@@ -2008,13 +2008,13 @@ const yc = (e) => ({
2008
2008
  } = ge(e, t) || {};
2009
2009
  if (u == null)
2010
2010
  return {};
2011
- const d = Fo(f), p = {
2011
+ const d = Wo(f), p = {
2012
2012
  x: n,
2013
2013
  y: r
2014
- }, v = Ln(o), g = jn(v), m = await i.getDimensions(u), b = v === "y", x = b ? "top" : "left", w = b ? "bottom" : "right", y = b ? "clientHeight" : "clientWidth", C = s.reference[g] + s.reference[v] - p[v] - s.floating[g], S = p[v] - s.reference[v], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
2015
- let R = P ? P[y] : 0;
2016
- (!R || !await (i.isElement == null ? void 0 : i.isElement(P))) && (R = a.floating[y] || s.floating[g]);
2017
- const T = C / 2 - S / 2, k = R / 2 - m[g] / 2 - 1, I = Pe(d[x], k), L = Pe(d[w], k), W = I, j = R - m[g] - L, D = R / 2 - m[g] / 2 + T, G = xn(W, D, j), $ = !l.arrow && Xe(o) != null && D !== G && s.reference[g] / 2 - (D < W ? I : L) - m[g] / 2 < 0, F = $ ? D < W ? D - W : D - j : 0;
2014
+ }, v = Ln(o), g = jn(v), m = await i.getDimensions(u), b = v === "y", x = b ? "top" : "left", y = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", C = s.reference[g] + s.reference[v] - p[v] - s.floating[g], R = p[v] - s.reference[v], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
2015
+ let S = P ? P[w] : 0;
2016
+ (!S || !await (i.isElement == null ? void 0 : i.isElement(P))) && (S = a.floating[w] || s.floating[g]);
2017
+ const T = C / 2 - R / 2, k = S / 2 - m[g] / 2 - 1, I = Pe(d[x], k), L = Pe(d[y], k), W = I, j = S - m[g] - L, D = S / 2 - m[g] / 2 + T, G = xn(W, D, j), $ = !l.arrow && Xe(o) != null && D !== G && s.reference[g] / 2 - (D < W ? I : L) - m[g] / 2 < 0, F = $ ? D < W ? D - W : D - j : 0;
2018
2018
  return {
2019
2019
  [v]: p[v] + F,
2020
2020
  data: {
@@ -2051,9 +2051,9 @@ const yc = (e) => ({
2051
2051
  } = ge(e, t);
2052
2052
  if ((n = s.arrow) != null && n.alignmentOffset)
2053
2053
  return {};
2054
- const x = be(o), w = Ae(a), y = be(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = p || (y || !m ? [Ot(a)] : vc(a)), P = g !== "none";
2055
- !p && P && S.push(...gc(a, m, g, C));
2056
- const R = [a, ...S], T = await st(t, b), k = [];
2054
+ const x = be(o), y = Ae(a), w = be(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), R = p || (w || !m ? [Ot(a)] : vc(a)), P = g !== "none";
2055
+ !p && P && R.push(...gc(a, m, g, C));
2056
+ const S = [a, ...R], T = await st(t, b), k = [];
2057
2057
  let I = ((r = s.flip) == null ? void 0 : r.overflows) || [];
2058
2058
  if (f && k.push(T[x]), d) {
2059
2059
  const D = mc(o, i, C);
@@ -2064,7 +2064,7 @@ const yc = (e) => ({
2064
2064
  overflows: k
2065
2065
  }], !k.every((D) => D <= 0)) {
2066
2066
  var L, W;
2067
- const D = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, G = R[D];
2067
+ const D = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, G = S[D];
2068
2068
  if (G)
2069
2069
  return {
2070
2070
  data: {
@@ -2083,7 +2083,7 @@ const yc = (e) => ({
2083
2083
  const F = (j = I.filter((M) => {
2084
2084
  if (P) {
2085
2085
  const A = Ae(M.placement);
2086
- return A === w || // Create a bias to the `y` side axis due to horizontal
2086
+ return A === y || // Create a bias to the `y` side axis due to horizontal
2087
2087
  // reading directions favoring greater width.
2088
2088
  A === "y";
2089
2089
  }
@@ -2107,7 +2107,7 @@ const yc = (e) => ({
2107
2107
  }
2108
2108
  };
2109
2109
  };
2110
- function zr(e, t) {
2110
+ function Gr(e, t) {
2111
2111
  return {
2112
2112
  top: e.top - t.height,
2113
2113
  right: e.right - t.width,
@@ -2115,7 +2115,7 @@ function zr(e, t) {
2115
2115
  left: e.left - t.width
2116
2116
  };
2117
2117
  }
2118
- function Gr(e) {
2118
+ function Kr(e) {
2119
2119
  return dc.some((t) => e[t] >= 0);
2120
2120
  }
2121
2121
  const Cc = function(e) {
@@ -2134,11 +2134,11 @@ const Cc = function(e) {
2134
2134
  const s = await st(t, {
2135
2135
  ...o,
2136
2136
  elementContext: "reference"
2137
- }), i = zr(s, n.reference);
2137
+ }), i = Gr(s, n.reference);
2138
2138
  return {
2139
2139
  data: {
2140
2140
  referenceHiddenOffsets: i,
2141
- referenceHidden: Gr(i)
2141
+ referenceHidden: Kr(i)
2142
2142
  }
2143
2143
  };
2144
2144
  }
@@ -2146,11 +2146,11 @@ const Cc = function(e) {
2146
2146
  const s = await st(t, {
2147
2147
  ...o,
2148
2148
  altBoundary: !0
2149
- }), i = zr(s, n.floating);
2149
+ }), i = Gr(s, n.floating);
2150
2150
  return {
2151
2151
  data: {
2152
2152
  escapedOffsets: i,
2153
- escaped: Gr(i)
2153
+ escaped: Kr(i)
2154
2154
  }
2155
2155
  };
2156
2156
  }
@@ -2225,11 +2225,11 @@ const Sc = function(e) {
2225
2225
  fn: (b) => {
2226
2226
  let {
2227
2227
  x,
2228
- y: w
2228
+ y
2229
2229
  } = b;
2230
2230
  return {
2231
2231
  x,
2232
- y: w
2232
+ y
2233
2233
  };
2234
2234
  }
2235
2235
  },
@@ -2240,12 +2240,12 @@ const Sc = function(e) {
2240
2240
  }, f = await st(t, l), d = Ae(be(o)), p = Dn(d);
2241
2241
  let v = u[p], g = u[d];
2242
2242
  if (s) {
2243
- const b = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", w = v + f[b], y = v - f[x];
2244
- v = xn(w, v, y);
2243
+ const b = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", y = v + f[b], w = v - f[x];
2244
+ v = xn(y, v, w);
2245
2245
  }
2246
2246
  if (i) {
2247
- const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", w = g + f[b], y = g - f[x];
2248
- g = xn(w, g, y);
2247
+ const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = g + f[b], w = g - f[x];
2248
+ g = xn(y, g, w);
2249
2249
  }
2250
2250
  const m = a.fn({
2251
2251
  ...t,
@@ -2293,13 +2293,13 @@ const Sc = function(e) {
2293
2293
  ...m
2294
2294
  };
2295
2295
  if (l) {
2296
- const y = p === "y" ? "height" : "width", C = s.reference[p] - s.floating[y] + b.mainAxis, S = s.reference[p] + s.reference[y] - b.mainAxis;
2297
- v < C ? v = C : v > S && (v = S);
2296
+ const w = p === "y" ? "height" : "width", C = s.reference[p] - s.floating[w] + b.mainAxis, R = s.reference[p] + s.reference[w] - b.mainAxis;
2297
+ v < C ? v = C : v > R && (v = R);
2298
2298
  }
2299
2299
  if (u) {
2300
- var x, w;
2301
- const y = p === "y" ? "width" : "height", C = ["top", "left"].includes(be(o)), S = s.reference[d] - s.floating[y] + (C && ((x = i.offset) == null ? void 0 : x[d]) || 0) + (C ? 0 : b.crossAxis), P = s.reference[d] + s.reference[y] + (C ? 0 : ((w = i.offset) == null ? void 0 : w[d]) || 0) - (C ? b.crossAxis : 0);
2302
- g < S ? g = S : g > P && (g = P);
2300
+ var x, y;
2301
+ const w = p === "y" ? "width" : "height", C = ["top", "left"].includes(be(o)), R = s.reference[d] - s.floating[w] + (C && ((x = i.offset) == null ? void 0 : x[d]) || 0) + (C ? 0 : b.crossAxis), P = s.reference[d] + s.reference[w] + (C ? 0 : ((y = i.offset) == null ? void 0 : y[d]) || 0) - (C ? b.crossAxis : 0);
2302
+ g < R ? g = R : g > P && (g = P);
2303
2303
  }
2304
2304
  return {
2305
2305
  [p]: v,
@@ -2328,16 +2328,16 @@ const Sc = function(e) {
2328
2328
  } = s.floating;
2329
2329
  let b, x;
2330
2330
  d === "top" || d === "bottom" ? (b = d, x = p === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (x = d, b = p === "end" ? "top" : "bottom");
2331
- const w = m - f.top - f.bottom, y = g - f.left - f.right, C = Pe(m - f[b], w), S = Pe(g - f[x], y), P = !t.middlewareData.shift;
2332
- let R = C, T = S;
2333
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = y), (r = t.middlewareData.shift) != null && r.enabled.y && (R = w), P && !p) {
2331
+ const y = m - f.top - f.bottom, w = g - f.left - f.right, C = Pe(m - f[b], y), R = Pe(g - f[x], w), P = !t.middlewareData.shift;
2332
+ let S = C, T = R;
2333
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = w), (r = t.middlewareData.shift) != null && r.enabled.y && (S = y), P && !p) {
2334
2334
  const I = J(f.left, 0), L = J(f.right, 0), W = J(f.top, 0), j = J(f.bottom, 0);
2335
- v ? T = g - 2 * (I !== 0 || L !== 0 ? I + L : J(f.left, f.right)) : R = m - 2 * (W !== 0 || j !== 0 ? W + j : J(f.top, f.bottom));
2335
+ v ? T = g - 2 * (I !== 0 || L !== 0 ? I + L : J(f.left, f.right)) : S = m - 2 * (W !== 0 || j !== 0 ? W + j : J(f.top, f.bottom));
2336
2336
  }
2337
2337
  await l({
2338
2338
  ...t,
2339
2339
  availableWidth: T,
2340
- availableHeight: R
2340
+ availableHeight: S
2341
2341
  });
2342
2342
  const k = await i.getDimensions(a.floating);
2343
2343
  return g !== k.width || m !== k.height ? {
@@ -2352,7 +2352,7 @@ function Ft() {
2352
2352
  return typeof window < "u";
2353
2353
  }
2354
2354
  function qe(e) {
2355
- return Wo(e) ? (e.nodeName || "").toLowerCase() : "#document";
2355
+ return Bo(e) ? (e.nodeName || "").toLowerCase() : "#document";
2356
2356
  }
2357
2357
  function Q(e) {
2358
2358
  var t;
@@ -2360,9 +2360,9 @@ function Q(e) {
2360
2360
  }
2361
2361
  function pe(e) {
2362
2362
  var t;
2363
- return (t = (Wo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2363
+ return (t = (Bo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2364
2364
  }
2365
- function Wo(e) {
2365
+ function Bo(e) {
2366
2366
  return Ft() ? e instanceof Node || e instanceof Q(e).Node : !1;
2367
2367
  }
2368
2368
  function ie(e) {
@@ -2371,7 +2371,7 @@ function ie(e) {
2371
2371
  function fe(e) {
2372
2372
  return Ft() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
2373
2373
  }
2374
- function Kr(e) {
2374
+ function Hr(e) {
2375
2375
  return !Ft() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
2376
2376
  }
2377
2377
  function lt(e) {
@@ -2435,19 +2435,19 @@ function _e(e) {
2435
2435
  // Step into the shadow DOM of the parent of a slotted node.
2436
2436
  e.assignedSlot || // DOM Element detected.
2437
2437
  e.parentNode || // ShadowRoot detected.
2438
- Kr(e) && e.host || // Fallback.
2438
+ Hr(e) && e.host || // Fallback.
2439
2439
  pe(e)
2440
2440
  );
2441
- return Kr(t) ? t.host : t;
2441
+ return Hr(t) ? t.host : t;
2442
2442
  }
2443
- function Bo(e) {
2443
+ function Uo(e) {
2444
2444
  const t = _e(e);
2445
- return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : fe(t) && lt(t) ? t : Bo(t);
2445
+ return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : fe(t) && lt(t) ? t : Uo(t);
2446
2446
  }
2447
2447
  function it(e, t, n) {
2448
2448
  var r;
2449
2449
  t === void 0 && (t = []), n === void 0 && (n = !0);
2450
- const o = Bo(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Q(o);
2450
+ const o = Uo(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Q(o);
2451
2451
  if (s) {
2452
2452
  const a = wn(i);
2453
2453
  return t.concat(i, i.visualViewport || [], lt(o) ? o : [], a && n ? it(a) : []);
@@ -2457,7 +2457,7 @@ function it(e, t, n) {
2457
2457
  function wn(e) {
2458
2458
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2459
2459
  }
2460
- function Uo(e) {
2460
+ function Vo(e) {
2461
2461
  const t = ae(e);
2462
2462
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
2463
2463
  const o = fe(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = _t(n) !== s || _t(r) !== i;
@@ -2478,7 +2478,7 @@ function ze(e) {
2478
2478
  width: r,
2479
2479
  height: o,
2480
2480
  $: s
2481
- } = Uo(t);
2481
+ } = Vo(t);
2482
2482
  let i = (s ? _t(n.width) : n.width) / r, a = (s ? _t(n.height) : n.height) / o;
2483
2483
  return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
2484
2484
  x: i,
@@ -2486,7 +2486,7 @@ function ze(e) {
2486
2486
  };
2487
2487
  }
2488
2488
  const Tc = /* @__PURE__ */ de(0);
2489
- function Vo(e) {
2489
+ function zo(e) {
2490
2490
  const t = Q(e);
2491
2491
  return !Wn() || !t.visualViewport ? Tc : {
2492
2492
  x: t.visualViewport.offsetLeft,
@@ -2501,14 +2501,14 @@ function $e(e, t, n, r) {
2501
2501
  const o = e.getBoundingClientRect(), s = Bn(e);
2502
2502
  let i = de(1);
2503
2503
  t && (r ? ie(r) && (i = ze(r)) : i = ze(e));
2504
- const a = Mc(s, n, r) ? Vo(s) : de(0);
2504
+ const a = Mc(s, n, r) ? zo(s) : de(0);
2505
2505
  let l = (o.left + a.x) / i.x, u = (o.top + a.y) / i.y, f = o.width / i.x, d = o.height / i.y;
2506
2506
  if (s) {
2507
2507
  const p = Q(s), v = r && ie(r) ? Q(r) : r;
2508
2508
  let g = p, m = wn(g);
2509
2509
  for (; m && r && v !== g; ) {
2510
- const b = ze(m), x = m.getBoundingClientRect(), w = ae(m), y = x.left + (m.clientLeft + parseFloat(w.paddingLeft)) * b.x, C = x.top + (m.clientTop + parseFloat(w.paddingTop)) * b.y;
2511
- l *= b.x, u *= b.y, f *= b.x, d *= b.y, l += y, u += C, g = Q(m), m = wn(g);
2510
+ const b = ze(m), x = m.getBoundingClientRect(), y = ae(m), w = x.left + (m.clientLeft + parseFloat(y.paddingLeft)) * b.x, C = x.top + (m.clientTop + parseFloat(y.paddingTop)) * b.y;
2511
+ l *= b.x, u *= b.y, f *= b.x, d *= b.y, l += w, u += C, g = Q(m), m = wn(g);
2512
2512
  }
2513
2513
  }
2514
2514
  return Tt({
@@ -2522,7 +2522,7 @@ function Un(e, t) {
2522
2522
  const n = Bt(e).scrollLeft;
2523
2523
  return t ? t.left + n : $e(pe(e)).left + n;
2524
2524
  }
2525
- function zo(e, t, n) {
2525
+ function Go(e, t, n) {
2526
2526
  n === void 0 && (n = !1);
2527
2527
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
2528
2528
  // RTL <body> scrollbar.
@@ -2552,7 +2552,7 @@ function Ic(e) {
2552
2552
  const v = $e(r);
2553
2553
  u = ze(r), f.x = v.x + r.clientLeft, f.y = v.y + r.clientTop;
2554
2554
  }
2555
- const p = i && !d && !s ? zo(i, l, !0) : de(0);
2555
+ const p = i && !d && !s ? Go(i, l, !0) : de(0);
2556
2556
  return {
2557
2557
  width: n.width * u.x,
2558
2558
  height: n.height * u.y,
@@ -2598,7 +2598,7 @@ function Dc(e, t) {
2598
2598
  y: u
2599
2599
  };
2600
2600
  }
2601
- function Hr(e, t, n) {
2601
+ function Yr(e, t, n) {
2602
2602
  let r;
2603
2603
  if (t === "viewport")
2604
2604
  r = $c(e, n);
@@ -2607,7 +2607,7 @@ function Hr(e, t, n) {
2607
2607
  else if (ie(t))
2608
2608
  r = Dc(t, n);
2609
2609
  else {
2610
- const o = Vo(e);
2610
+ const o = zo(e);
2611
2611
  r = {
2612
2612
  x: t.x - o.x,
2613
2613
  y: t.y - o.y,
@@ -2617,9 +2617,9 @@ function Hr(e, t, n) {
2617
2617
  }
2618
2618
  return Tt(r);
2619
2619
  }
2620
- function Go(e, t) {
2620
+ function Ko(e, t) {
2621
2621
  const n = _e(e);
2622
- return n === t || !ie(n) || He(n) ? !1 : ae(n).position === "fixed" || Go(n, t);
2622
+ return n === t || !ie(n) || He(n) ? !1 : ae(n).position === "fixed" || Ko(n, t);
2623
2623
  }
2624
2624
  function jc(e, t) {
2625
2625
  const n = t.get(e);
@@ -2630,7 +2630,7 @@ function jc(e, t) {
2630
2630
  let i = s ? _e(e) : e;
2631
2631
  for (; ie(i) && !He(i); ) {
2632
2632
  const a = ae(i), l = Fn(i);
2633
- !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(i) && !l && Go(e, i)) ? r = r.filter((f) => f !== i) : o = a, i = _e(i);
2633
+ !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(i) && !l && Ko(e, i)) ? r = r.filter((f) => f !== i) : o = a, i = _e(i);
2634
2634
  }
2635
2635
  return t.set(e, r), r;
2636
2636
  }
@@ -2642,9 +2642,9 @@ function Lc(e) {
2642
2642
  strategy: o
2643
2643
  } = e;
2644
2644
  const i = [...n === "clippingAncestors" ? Wt(t) ? [] : jc(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((u, f) => {
2645
- const d = Hr(t, f, o);
2645
+ const d = Yr(t, f, o);
2646
2646
  return u.top = J(d.top, u.top), u.right = Pe(d.right, u.right), u.bottom = Pe(d.bottom, u.bottom), u.left = J(d.left, u.left), u;
2647
- }, Hr(t, a, o));
2647
+ }, Yr(t, a, o));
2648
2648
  return {
2649
2649
  width: l.right - l.left,
2650
2650
  height: l.bottom - l.top,
@@ -2656,7 +2656,7 @@ function Fc(e) {
2656
2656
  const {
2657
2657
  width: t,
2658
2658
  height: n
2659
- } = Uo(e);
2659
+ } = Vo(e);
2660
2660
  return {
2661
2661
  width: t,
2662
2662
  height: n
@@ -2674,7 +2674,7 @@ function Wc(e, t, n) {
2674
2674
  const p = $e(t, !0, s, t);
2675
2675
  l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
2676
2676
  } else o && (l.x = Un(o));
2677
- const u = o && !r && !s ? zo(o, a) : de(0), f = i.left + a.scrollLeft - l.x - u.x, d = i.top + a.scrollTop - l.y - u.y;
2677
+ const u = o && !r && !s ? Go(o, a) : de(0), f = i.left + a.scrollLeft - l.x - u.x, d = i.top + a.scrollTop - l.y - u.y;
2678
2678
  return {
2679
2679
  x: f,
2680
2680
  y: d,
@@ -2685,7 +2685,7 @@ function Wc(e, t, n) {
2685
2685
  function Qt(e) {
2686
2686
  return ae(e).position === "static";
2687
2687
  }
2688
- function Yr(e, t) {
2688
+ function Xr(e, t) {
2689
2689
  if (!fe(e) || ae(e).position === "fixed")
2690
2690
  return null;
2691
2691
  if (t)
@@ -2693,7 +2693,7 @@ function Yr(e, t) {
2693
2693
  let n = e.offsetParent;
2694
2694
  return pe(e) === n && (n = n.ownerDocument.body), n;
2695
2695
  }
2696
- function Ko(e, t) {
2696
+ function Ho(e, t) {
2697
2697
  const n = Q(e);
2698
2698
  if (Wt(e))
2699
2699
  return n;
@@ -2706,13 +2706,13 @@ function Ko(e, t) {
2706
2706
  }
2707
2707
  return n;
2708
2708
  }
2709
- let r = Yr(e, t);
2709
+ let r = Xr(e, t);
2710
2710
  for (; r && _c(r) && Qt(r); )
2711
- r = Yr(r, t);
2711
+ r = Xr(r, t);
2712
2712
  return r && He(r) && Qt(r) && !Fn(r) ? n : r || Oc(e) || n;
2713
2713
  }
2714
2714
  const Bc = async function(e) {
2715
- const t = this.getOffsetParent || Ko, n = this.getDimensions, r = await n(e.floating);
2715
+ const t = this.getOffsetParent || Ho, n = this.getDimensions, r = await n(e.floating);
2716
2716
  return {
2717
2717
  reference: Wc(e.reference, await t(e.floating), e.strategy),
2718
2718
  floating: {
@@ -2730,7 +2730,7 @@ const Vc = {
2730
2730
  convertOffsetParentRelativeRectToViewportRelativeRect: Ic,
2731
2731
  getDocumentElement: pe,
2732
2732
  getClippingRect: Lc,
2733
- getOffsetParent: Ko,
2733
+ getOffsetParent: Ho,
2734
2734
  getElementRects: Bc,
2735
2735
  getClientRects: Nc,
2736
2736
  getDimensions: Fc,
@@ -2738,7 +2738,7 @@ const Vc = {
2738
2738
  isElement: ie,
2739
2739
  isRTL: Uc
2740
2740
  };
2741
- function Ho(e, t) {
2741
+ function Yo(e, t) {
2742
2742
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2743
2743
  }
2744
2744
  function zc(e, t) {
@@ -2758,36 +2758,36 @@ function zc(e, t) {
2758
2758
  } = u;
2759
2759
  if (a || t(), !p || !v)
2760
2760
  return;
2761
- const g = gt(d), m = gt(o.clientWidth - (f + p)), b = gt(o.clientHeight - (d + v)), x = gt(f), y = {
2761
+ const g = gt(d), m = gt(o.clientWidth - (f + p)), b = gt(o.clientHeight - (d + v)), x = gt(f), w = {
2762
2762
  rootMargin: -g + "px " + -m + "px " + -b + "px " + -x + "px",
2763
2763
  threshold: J(0, Pe(1, l)) || 1
2764
2764
  };
2765
2765
  let C = !0;
2766
- function S(P) {
2767
- const R = P[0].intersectionRatio;
2768
- if (R !== l) {
2766
+ function R(P) {
2767
+ const S = P[0].intersectionRatio;
2768
+ if (S !== l) {
2769
2769
  if (!C)
2770
2770
  return i();
2771
- R ? i(!1, R) : r = setTimeout(() => {
2771
+ S ? i(!1, S) : r = setTimeout(() => {
2772
2772
  i(!1, 1e-7);
2773
2773
  }, 1e3);
2774
2774
  }
2775
- R === 1 && !Ho(u, e.getBoundingClientRect()) && i(), C = !1;
2775
+ S === 1 && !Yo(u, e.getBoundingClientRect()) && i(), C = !1;
2776
2776
  }
2777
2777
  try {
2778
- n = new IntersectionObserver(S, {
2779
- ...y,
2778
+ n = new IntersectionObserver(R, {
2779
+ ...w,
2780
2780
  // Handle <iframe>s
2781
2781
  root: o.ownerDocument
2782
2782
  });
2783
2783
  } catch {
2784
- n = new IntersectionObserver(S, y);
2784
+ n = new IntersectionObserver(R, w);
2785
2785
  }
2786
2786
  n.observe(e);
2787
2787
  }
2788
2788
  return i(!0), s;
2789
2789
  }
2790
- function Yo(e, t, n, r) {
2790
+ function Xo(e, t, n, r) {
2791
2791
  r === void 0 && (r = {});
2792
2792
  const {
2793
2793
  ancestorScroll: o = !0,
@@ -2804,26 +2804,26 @@ function Yo(e, t, n, r) {
2804
2804
  const d = u && a ? zc(u, n) : null;
2805
2805
  let p = -1, v = null;
2806
2806
  i && (v = new ResizeObserver((x) => {
2807
- let [w] = x;
2808
- w && w.target === u && v && (v.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
2809
- var y;
2810
- (y = v) == null || y.observe(t);
2807
+ let [y] = x;
2808
+ y && y.target === u && v && (v.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
2809
+ var w;
2810
+ (w = v) == null || w.observe(t);
2811
2811
  })), n();
2812
2812
  }), u && !l && v.observe(u), v.observe(t));
2813
2813
  let g, m = l ? $e(e) : null;
2814
2814
  l && b();
2815
2815
  function b() {
2816
2816
  const x = $e(e);
2817
- m && !Ho(m, x) && n(), m = x, g = requestAnimationFrame(b);
2817
+ m && !Yo(m, x) && n(), m = x, g = requestAnimationFrame(b);
2818
2818
  }
2819
2819
  return n(), () => {
2820
2820
  var x;
2821
- f.forEach((w) => {
2822
- o && w.removeEventListener("scroll", n), s && w.removeEventListener("resize", n);
2821
+ f.forEach((y) => {
2822
+ o && y.removeEventListener("scroll", n), s && y.removeEventListener("resize", n);
2823
2823
  }), d == null || d(), (x = v) == null || x.disconnect(), v = null, l && cancelAnimationFrame(g);
2824
2824
  };
2825
2825
  }
2826
- const Gc = Sc, Kc = Rc, Hc = wc, Yc = Ac, Xc = Cc, Xr = yc, qc = Pc, Zc = (e, t, n) => {
2826
+ const Gc = Sc, Kc = Rc, Hc = wc, Yc = Ac, Xc = Cc, qr = yc, qc = Pc, Zc = (e, t, n) => {
2827
2827
  const r = /* @__PURE__ */ new Map(), o = {
2828
2828
  platform: Vc,
2829
2829
  ...n
@@ -2836,7 +2836,7 @@ const Gc = Sc, Kc = Rc, Hc = wc, Yc = Ac, Xc = Cc, Xr = yc, qc = Pc, Zc = (e, t,
2836
2836
  platform: s
2837
2837
  });
2838
2838
  };
2839
- var Rt = typeof document < "u" ? fa : Po;
2839
+ var Rt = typeof document < "u" ? pa : Ao;
2840
2840
  function Mt(e, t) {
2841
2841
  if (e === t)
2842
2842
  return !0;
@@ -2867,11 +2867,11 @@ function Mt(e, t) {
2867
2867
  }
2868
2868
  return e !== e && t !== t;
2869
2869
  }
2870
- function Xo(e) {
2870
+ function qo(e) {
2871
2871
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2872
2872
  }
2873
- function qr(e, t) {
2874
- const n = Xo(e);
2873
+ function Zr(e, t) {
2874
+ const n = qo(e);
2875
2875
  return Math.round(t * n) / n;
2876
2876
  }
2877
2877
  function en(e) {
@@ -2880,7 +2880,7 @@ function en(e) {
2880
2880
  t.current = e;
2881
2881
  }), t;
2882
2882
  }
2883
- function qo(e) {
2883
+ function Zo(e) {
2884
2884
  e === void 0 && (e = {});
2885
2885
  const {
2886
2886
  placement: t = "bottom",
@@ -2903,19 +2903,19 @@ function qo(e) {
2903
2903
  isPositioned: !1
2904
2904
  }), [p, v] = c.useState(r);
2905
2905
  Mt(p, r) || v(r);
2906
- const [g, m] = c.useState(null), [b, x] = c.useState(null), w = c.useCallback((M) => {
2906
+ const [g, m] = c.useState(null), [b, x] = c.useState(null), y = c.useCallback((M) => {
2907
2907
  M !== P.current && (P.current = M, m(M));
2908
- }, []), y = c.useCallback((M) => {
2909
- M !== R.current && (R.current = M, x(M));
2910
- }, []), C = s || g, S = i || b, P = c.useRef(null), R = c.useRef(null), T = c.useRef(f), k = l != null, I = en(l), L = en(o), W = en(u), j = c.useCallback(() => {
2911
- if (!P.current || !R.current)
2908
+ }, []), w = c.useCallback((M) => {
2909
+ M !== S.current && (S.current = M, x(M));
2910
+ }, []), C = s || g, R = i || b, P = c.useRef(null), S = c.useRef(null), T = c.useRef(f), k = l != null, I = en(l), L = en(o), W = en(u), j = c.useCallback(() => {
2911
+ if (!P.current || !S.current)
2912
2912
  return;
2913
2913
  const M = {
2914
2914
  placement: t,
2915
2915
  strategy: n,
2916
2916
  middleware: p
2917
2917
  };
2918
- L.current && (M.platform = L.current), Zc(P.current, R.current, M).then((A) => {
2918
+ L.current && (M.platform = L.current), Zc(P.current, S.current, M).then((A) => {
2919
2919
  const E = {
2920
2920
  ...A,
2921
2921
  // The floating element's position may be recomputed while it's closed
@@ -2939,21 +2939,21 @@ function qo(e) {
2939
2939
  Rt(() => (D.current = !0, () => {
2940
2940
  D.current = !1;
2941
2941
  }), []), Rt(() => {
2942
- if (C && (P.current = C), S && (R.current = S), C && S) {
2942
+ if (C && (P.current = C), R && (S.current = R), C && R) {
2943
2943
  if (I.current)
2944
- return I.current(C, S, j);
2944
+ return I.current(C, R, j);
2945
2945
  j();
2946
2946
  }
2947
- }, [C, S, j, I, k]);
2947
+ }, [C, R, j, I, k]);
2948
2948
  const G = c.useMemo(() => ({
2949
2949
  reference: P,
2950
- floating: R,
2951
- setReference: w,
2952
- setFloating: y
2953
- }), [w, y]), $ = c.useMemo(() => ({
2950
+ floating: S,
2951
+ setReference: y,
2952
+ setFloating: w
2953
+ }), [y, w]), $ = c.useMemo(() => ({
2954
2954
  reference: C,
2955
- floating: S
2956
- }), [C, S]), F = c.useMemo(() => {
2955
+ floating: R
2956
+ }), [C, R]), F = c.useMemo(() => {
2957
2957
  const M = {
2958
2958
  position: n,
2959
2959
  left: 0,
@@ -2961,11 +2961,11 @@ function qo(e) {
2961
2961
  };
2962
2962
  if (!$.floating)
2963
2963
  return M;
2964
- const A = qr($.floating, f.x), E = qr($.floating, f.y);
2964
+ const A = Zr($.floating, f.x), E = Zr($.floating, f.y);
2965
2965
  return a ? {
2966
2966
  ...M,
2967
2967
  transform: "translate(" + A + "px, " + E + "px)",
2968
- ...Xo($.floating) >= 1.5 && {
2968
+ ...qo($.floating) >= 1.5 && {
2969
2969
  willChange: "transform"
2970
2970
  }
2971
2971
  } : {
@@ -2994,38 +2994,38 @@ const Jc = (e) => {
2994
2994
  element: r,
2995
2995
  padding: o
2996
2996
  } = typeof e == "function" ? e(n) : e;
2997
- return r && t(r) ? r.current != null ? Xr({
2997
+ return r && t(r) ? r.current != null ? qr({
2998
2998
  element: r.current,
2999
2999
  padding: o
3000
- }).fn(n) : {} : r ? Xr({
3000
+ }).fn(n) : {} : r ? qr({
3001
3001
  element: r,
3002
3002
  padding: o
3003
3003
  }).fn(n) : {};
3004
3004
  }
3005
3005
  };
3006
- }, Zo = (e, t) => ({
3006
+ }, Jo = (e, t) => ({
3007
3007
  ...Gc(e),
3008
3008
  options: [e, t]
3009
- }), Jo = (e, t) => ({
3009
+ }), Qo = (e, t) => ({
3010
3010
  ...Kc(e),
3011
3011
  options: [e, t]
3012
- }), Qo = (e, t) => ({
3012
+ }), es = (e, t) => ({
3013
3013
  ...qc(e),
3014
3014
  options: [e, t]
3015
- }), es = (e, t) => ({
3015
+ }), ts = (e, t) => ({
3016
3016
  ...Hc(e),
3017
3017
  options: [e, t]
3018
- }), ts = (e, t) => ({
3018
+ }), ns = (e, t) => ({
3019
3019
  ...Yc(e),
3020
3020
  options: [e, t]
3021
- }), ns = (e, t) => ({
3021
+ }), rs = (e, t) => ({
3022
3022
  ...Xc(e),
3023
3023
  options: [e, t]
3024
- }), rs = (e, t) => ({
3024
+ }), os = (e, t) => ({
3025
3025
  ...Jc(e),
3026
3026
  options: [e, t]
3027
3027
  });
3028
- var Qc = "Arrow", os = c.forwardRef((e, t) => {
3028
+ var Qc = "Arrow", ss = c.forwardRef((e, t) => {
3029
3029
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
3030
3030
  return /* @__PURE__ */ h.jsx(
3031
3031
  le.svg,
@@ -3040,22 +3040,22 @@ var Qc = "Arrow", os = c.forwardRef((e, t) => {
3040
3040
  }
3041
3041
  );
3042
3042
  });
3043
- os.displayName = Qc;
3044
- var el = os, Vn = "Popper", [ss, is] = Lt(Vn), [tl, as] = ss(Vn), cs = (e) => {
3043
+ ss.displayName = Qc;
3044
+ var el = ss, Vn = "Popper", [is, as] = Lt(Vn), [tl, cs] = is(Vn), ls = (e) => {
3045
3045
  const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
3046
3046
  return /* @__PURE__ */ h.jsx(tl, { scope: t, anchor: r, onAnchorChange: o, children: n });
3047
3047
  };
3048
- cs.displayName = Vn;
3049
- var ls = "PopperAnchor", us = c.forwardRef(
3048
+ ls.displayName = Vn;
3049
+ var us = "PopperAnchor", ds = c.forwardRef(
3050
3050
  (e, t) => {
3051
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = as(ls, n), i = c.useRef(null), a = se(t, i);
3051
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = cs(us, n), i = c.useRef(null), a = se(t, i);
3052
3052
  return c.useEffect(() => {
3053
3053
  s.onAnchorChange((r == null ? void 0 : r.current) || i.current);
3054
3054
  }), r ? null : /* @__PURE__ */ h.jsx(le.div, { ...o, ref: a });
3055
3055
  }
3056
3056
  );
3057
- us.displayName = ls;
3058
- var zn = "PopperContent", [nl, rl] = ss(zn), ds = c.forwardRef(
3057
+ ds.displayName = us;
3058
+ var zn = "PopperContent", [nl, rl] = is(zn), fs = c.forwardRef(
3059
3059
  (e, t) => {
3060
3060
  var X, B, K, te, Me, Ze;
3061
3061
  const {
@@ -3073,42 +3073,42 @@ var zn = "PopperContent", [nl, rl] = ss(zn), ds = c.forwardRef(
3073
3073
  updatePositionStrategy: v = "optimized",
3074
3074
  onPlaced: g,
3075
3075
  ...m
3076
- } = e, b = as(zn, n), [x, w] = c.useState(null), y = se(t, (oe) => w(oe)), [C, S] = c.useState(null), P = Do(C), R = (P == null ? void 0 : P.width) ?? 0, T = (P == null ? void 0 : P.height) ?? 0, k = r + (s !== "center" ? "-" + s : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, L = Array.isArray(u) ? u : [u], W = L.length > 0, j = {
3076
+ } = e, b = cs(zn, n), [x, y] = c.useState(null), w = se(t, (oe) => y(oe)), [C, R] = c.useState(null), P = jo(C), S = (P == null ? void 0 : P.width) ?? 0, T = (P == null ? void 0 : P.height) ?? 0, k = r + (s !== "center" ? "-" + s : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, L = Array.isArray(u) ? u : [u], W = L.length > 0, j = {
3077
3077
  padding: I,
3078
3078
  boundary: L.filter(sl),
3079
3079
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3080
3080
  altBoundary: W
3081
- }, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = qo({
3081
+ }, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = Zo({
3082
3082
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
3083
3083
  strategy: "fixed",
3084
3084
  placement: k,
3085
- whileElementsMounted: (...oe) => Yo(...oe, {
3085
+ whileElementsMounted: (...oe) => Xo(...oe, {
3086
3086
  animationFrame: v === "always"
3087
3087
  }),
3088
3088
  elements: {
3089
3089
  reference: b.anchor
3090
3090
  },
3091
3091
  middleware: [
3092
- Zo({ mainAxis: o + T, alignmentAxis: i }),
3093
- l && Jo({
3092
+ Jo({ mainAxis: o + T, alignmentAxis: i }),
3093
+ l && Qo({
3094
3094
  mainAxis: !0,
3095
3095
  crossAxis: !1,
3096
- limiter: d === "partial" ? Qo() : void 0,
3096
+ limiter: d === "partial" ? es() : void 0,
3097
3097
  ...j
3098
3098
  }),
3099
- l && es({ ...j }),
3100
- ts({
3099
+ l && ts({ ...j }),
3100
+ ns({
3101
3101
  ...j,
3102
3102
  apply: ({ elements: oe, rects: Je, availableWidth: Yt, availableHeight: Xt }) => {
3103
3103
  const { width: qt, height: Zt } = Je.reference, me = oe.floating.style;
3104
3104
  me.setProperty("--radix-popper-available-width", `${Yt}px`), me.setProperty("--radix-popper-available-height", `${Xt}px`), me.setProperty("--radix-popper-anchor-width", `${qt}px`), me.setProperty("--radix-popper-anchor-height", `${Zt}px`);
3105
3105
  }
3106
3106
  }),
3107
- C && rs({ element: C, padding: a }),
3108
- il({ arrowWidth: R, arrowHeight: T }),
3109
- p && ns({ strategy: "referenceHidden", ...j })
3107
+ C && os({ element: C, padding: a }),
3108
+ il({ arrowWidth: S, arrowHeight: T }),
3109
+ p && rs({ strategy: "referenceHidden", ...j })
3110
3110
  ]
3111
- }), [A, E] = ms($), _ = Re(g);
3111
+ }), [A, E] = vs($), _ = Re(g);
3112
3112
  ke(() => {
3113
3113
  F && (_ == null || _());
3114
3114
  }, [F, _]);
@@ -3144,7 +3144,7 @@ var zn = "PopperContent", [nl, rl] = ss(zn), ds = c.forwardRef(
3144
3144
  {
3145
3145
  scope: n,
3146
3146
  placedSide: A,
3147
- onArrowChange: S,
3147
+ onArrowChange: R,
3148
3148
  arrowX: N,
3149
3149
  arrowY: U,
3150
3150
  shouldHideArrow: Y,
@@ -3154,7 +3154,7 @@ var zn = "PopperContent", [nl, rl] = ss(zn), ds = c.forwardRef(
3154
3154
  "data-side": A,
3155
3155
  "data-align": E,
3156
3156
  ...m,
3157
- ref: y,
3157
+ ref: w,
3158
3158
  style: {
3159
3159
  ...m.style,
3160
3160
  // if the PopperContent hasn't been placed yet (not all measurements done)
@@ -3169,14 +3169,14 @@ var zn = "PopperContent", [nl, rl] = ss(zn), ds = c.forwardRef(
3169
3169
  );
3170
3170
  }
3171
3171
  );
3172
- ds.displayName = zn;
3173
- var fs = "PopperArrow", ol = {
3172
+ fs.displayName = zn;
3173
+ var ps = "PopperArrow", ol = {
3174
3174
  top: "bottom",
3175
3175
  right: "left",
3176
3176
  bottom: "top",
3177
3177
  left: "right"
3178
- }, ps = c.forwardRef(function(t, n) {
3179
- const { __scopePopper: r, ...o } = t, s = rl(fs, r), i = ol[s.placedSide];
3178
+ }, ms = c.forwardRef(function(t, n) {
3179
+ const { __scopePopper: r, ...o } = t, s = rl(ps, r), i = ol[s.placedSide];
3180
3180
  return (
3181
3181
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
3182
3182
  // doesn't report size as we'd expect on SVG elements.
@@ -3220,7 +3220,7 @@ var fs = "PopperArrow", ol = {
3220
3220
  )
3221
3221
  );
3222
3222
  });
3223
- ps.displayName = fs;
3223
+ ms.displayName = ps;
3224
3224
  function sl(e) {
3225
3225
  return e !== null;
3226
3226
  }
@@ -3228,30 +3228,30 @@ var il = (e) => ({
3228
3228
  name: "transformOrigin",
3229
3229
  options: e,
3230
3230
  fn(t) {
3231
- var b, x, w;
3232
- const { placement: n, rects: r, middlewareData: o } = t, i = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, f] = ms(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + a / 2, v = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + l / 2;
3231
+ var b, x, y;
3232
+ const { placement: n, rects: r, middlewareData: o } = t, i = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, f] = vs(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + a / 2, v = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + l / 2;
3233
3233
  let g = "", m = "";
3234
3234
  return u === "bottom" ? (g = i ? d : `${p}px`, m = `${-l}px`) : u === "top" ? (g = i ? d : `${p}px`, m = `${r.floating.height + l}px`) : u === "right" ? (g = `${-l}px`, m = i ? d : `${v}px`) : u === "left" && (g = `${r.floating.width + l}px`, m = i ? d : `${v}px`), { data: { x: g, y: m } };
3235
3235
  }
3236
3236
  });
3237
- function ms(e) {
3237
+ function vs(e) {
3238
3238
  const [t, n = "center"] = e.split("-");
3239
3239
  return [t, n];
3240
3240
  }
3241
- var al = cs, vs = us, cl = ds, ll = ps, tn = 0;
3241
+ var al = ls, hs = ds, cl = fs, ll = ms, tn = 0;
3242
3242
  function ul() {
3243
3243
  c.useEffect(() => {
3244
3244
  const e = document.querySelectorAll("[data-radix-focus-guard]");
3245
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Zr()), document.body.insertAdjacentElement("beforeend", e[1] ?? Zr()), tn++, () => {
3245
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Jr()), document.body.insertAdjacentElement("beforeend", e[1] ?? Jr()), tn++, () => {
3246
3246
  tn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), tn--;
3247
3247
  };
3248
3248
  }, []);
3249
3249
  }
3250
- function Zr() {
3250
+ function Jr() {
3251
3251
  const e = document.createElement("span");
3252
3252
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
3253
3253
  }
3254
- var nn = "focusScope.autoFocusOnMount", rn = "focusScope.autoFocusOnUnmount", Jr = { bubbles: !1, cancelable: !0 }, dl = "FocusScope", hs = c.forwardRef((e, t) => {
3254
+ var nn = "focusScope.autoFocusOnMount", rn = "focusScope.autoFocusOnUnmount", Qr = { bubbles: !1, cancelable: !0 }, dl = "FocusScope", gs = c.forwardRef((e, t) => {
3255
3255
  const {
3256
3256
  loop: n = !1,
3257
3257
  trapped: r = !1,
@@ -3269,37 +3269,37 @@ var nn = "focusScope.autoFocusOnMount", rn = "focusScope.autoFocusOnUnmount", Jr
3269
3269
  }).current;
3270
3270
  c.useEffect(() => {
3271
3271
  if (r) {
3272
- let m = function(y) {
3272
+ let m = function(w) {
3273
3273
  if (v.paused || !a) return;
3274
- const C = y.target;
3274
+ const C = w.target;
3275
3275
  a.contains(C) ? d.current = C : Ce(d.current, { select: !0 });
3276
- }, b = function(y) {
3276
+ }, b = function(w) {
3277
3277
  if (v.paused || !a) return;
3278
- const C = y.relatedTarget;
3278
+ const C = w.relatedTarget;
3279
3279
  C !== null && (a.contains(C) || Ce(d.current, { select: !0 }));
3280
- }, x = function(y) {
3280
+ }, x = function(w) {
3281
3281
  if (document.activeElement === document.body)
3282
- for (const S of y)
3283
- S.removedNodes.length > 0 && Ce(a);
3282
+ for (const R of w)
3283
+ R.removedNodes.length > 0 && Ce(a);
3284
3284
  };
3285
3285
  document.addEventListener("focusin", m), document.addEventListener("focusout", b);
3286
- const w = new MutationObserver(x);
3287
- return a && w.observe(a, { childList: !0, subtree: !0 }), () => {
3288
- document.removeEventListener("focusin", m), document.removeEventListener("focusout", b), w.disconnect();
3286
+ const y = new MutationObserver(x);
3287
+ return a && y.observe(a, { childList: !0, subtree: !0 }), () => {
3288
+ document.removeEventListener("focusin", m), document.removeEventListener("focusout", b), y.disconnect();
3289
3289
  };
3290
3290
  }
3291
3291
  }, [r, a, v.paused]), c.useEffect(() => {
3292
3292
  if (a) {
3293
- eo.add(v);
3293
+ to.add(v);
3294
3294
  const m = document.activeElement;
3295
3295
  if (!a.contains(m)) {
3296
- const x = new CustomEvent(nn, Jr);
3297
- a.addEventListener(nn, u), a.dispatchEvent(x), x.defaultPrevented || (fl(gl(gs(a)), { select: !0 }), document.activeElement === m && Ce(a));
3296
+ const x = new CustomEvent(nn, Qr);
3297
+ a.addEventListener(nn, u), a.dispatchEvent(x), x.defaultPrevented || (fl(gl(bs(a)), { select: !0 }), document.activeElement === m && Ce(a));
3298
3298
  }
3299
3299
  return () => {
3300
3300
  a.removeEventListener(nn, u), setTimeout(() => {
3301
- const x = new CustomEvent(rn, Jr);
3302
- a.addEventListener(rn, f), a.dispatchEvent(x), x.defaultPrevented || Ce(m ?? document.body, { select: !0 }), a.removeEventListener(rn, f), eo.remove(v);
3301
+ const x = new CustomEvent(rn, Qr);
3302
+ a.addEventListener(rn, f), a.dispatchEvent(x), x.defaultPrevented || Ce(m ?? document.body, { select: !0 }), a.removeEventListener(rn, f), to.remove(v);
3303
3303
  }, 0);
3304
3304
  };
3305
3305
  }
@@ -3309,25 +3309,25 @@ var nn = "focusScope.autoFocusOnMount", rn = "focusScope.autoFocusOnUnmount", Jr
3309
3309
  if (!n && !r || v.paused) return;
3310
3310
  const b = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, x = document.activeElement;
3311
3311
  if (b && x) {
3312
- const w = m.currentTarget, [y, C] = pl(w);
3313
- y && C ? !m.shiftKey && x === C ? (m.preventDefault(), n && Ce(y, { select: !0 })) : m.shiftKey && x === y && (m.preventDefault(), n && Ce(C, { select: !0 })) : x === w && m.preventDefault();
3312
+ const y = m.currentTarget, [w, C] = pl(y);
3313
+ w && C ? !m.shiftKey && x === C ? (m.preventDefault(), n && Ce(w, { select: !0 })) : m.shiftKey && x === w && (m.preventDefault(), n && Ce(C, { select: !0 })) : x === y && m.preventDefault();
3314
3314
  }
3315
3315
  },
3316
3316
  [n, r, v.paused]
3317
3317
  );
3318
3318
  return /* @__PURE__ */ h.jsx(le.div, { tabIndex: -1, ...i, ref: p, onKeyDown: g });
3319
3319
  });
3320
- hs.displayName = dl;
3320
+ gs.displayName = dl;
3321
3321
  function fl(e, { select: t = !1 } = {}) {
3322
3322
  const n = document.activeElement;
3323
3323
  for (const r of e)
3324
3324
  if (Ce(r, { select: t }), document.activeElement !== n) return;
3325
3325
  }
3326
3326
  function pl(e) {
3327
- const t = gs(e), n = Qr(t, e), r = Qr(t.reverse(), e);
3327
+ const t = bs(e), n = eo(t, e), r = eo(t.reverse(), e);
3328
3328
  return [n, r];
3329
3329
  }
3330
- function gs(e) {
3330
+ function bs(e) {
3331
3331
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
3332
3332
  acceptNode: (r) => {
3333
3333
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -3337,7 +3337,7 @@ function gs(e) {
3337
3337
  for (; n.nextNode(); ) t.push(n.currentNode);
3338
3338
  return t;
3339
3339
  }
3340
- function Qr(e, t) {
3340
+ function eo(e, t) {
3341
3341
  for (const n of e)
3342
3342
  if (!ml(n, { upTo: t })) return n;
3343
3343
  }
@@ -3359,21 +3359,21 @@ function Ce(e, { select: t = !1 } = {}) {
3359
3359
  e.focus({ preventScroll: !0 }), e !== n && vl(e) && t && e.select();
3360
3360
  }
3361
3361
  }
3362
- var eo = hl();
3362
+ var to = hl();
3363
3363
  function hl() {
3364
3364
  let e = [];
3365
3365
  return {
3366
3366
  add(t) {
3367
3367
  const n = e[0];
3368
- t !== n && (n == null || n.pause()), e = to(e, t), e.unshift(t);
3368
+ t !== n && (n == null || n.pause()), e = no(e, t), e.unshift(t);
3369
3369
  },
3370
3370
  remove(t) {
3371
3371
  var n;
3372
- e = to(e, t), (n = e[0]) == null || n.resume();
3372
+ e = no(e, t), (n = e[0]) == null || n.resume();
3373
3373
  }
3374
3374
  };
3375
3375
  }
3376
- function to(e, t) {
3376
+ function no(e, t) {
3377
3377
  const n = [...e], r = n.indexOf(t);
3378
3378
  return r !== -1 && n.splice(r, 1), n;
3379
3379
  }
@@ -3385,13 +3385,13 @@ var bl = function(e) {
3385
3385
  return null;
3386
3386
  var t = Array.isArray(e) ? e[0] : e;
3387
3387
  return t.ownerDocument.body;
3388
- }, Be = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = {}, on = 0, bs = function(e) {
3389
- return e && (e.host || bs(e.parentNode));
3388
+ }, Be = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = {}, on = 0, xs = function(e) {
3389
+ return e && (e.host || xs(e.parentNode));
3390
3390
  }, xl = function(e, t) {
3391
3391
  return t.map(function(n) {
3392
3392
  if (e.contains(n))
3393
3393
  return n;
3394
- var r = bs(n);
3394
+ var r = xs(n);
3395
3395
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
3396
3396
  }).filter(function(n) {
3397
3397
  return !!n;
@@ -3422,7 +3422,7 @@ var bl = function(e) {
3422
3422
  Be.set(d, p), s.set(d, v), p || (bt.has(d) || d.removeAttribute(r), bt.delete(d)), v || d.removeAttribute(n);
3423
3423
  }), on--, on || (Be = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = {});
3424
3424
  };
3425
- }, xs = function(e, t, n) {
3425
+ }, ys = function(e, t, n) {
3426
3426
  n === void 0 && (n = "data-aria-hidden");
3427
3427
  var r = Array.from(Array.isArray(e) ? e : [e]), o = bl(e);
3428
3428
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), yl(r, o, n, "aria-hidden")) : function() {
@@ -3437,7 +3437,7 @@ var bl = function(e) {
3437
3437
  return t;
3438
3438
  }, ue.apply(this, arguments);
3439
3439
  };
3440
- function ys(e, t) {
3440
+ function ws(e, t) {
3441
3441
  var n = {};
3442
3442
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3443
3443
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3455,7 +3455,7 @@ function sn(e, t) {
3455
3455
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3456
3456
  }
3457
3457
  function Sl(e, t) {
3458
- var n = Ao(function() {
3458
+ var n = _o(function() {
3459
3459
  return {
3460
3460
  // value
3461
3461
  value: e,
@@ -3475,7 +3475,7 @@ function Sl(e, t) {
3475
3475
  })[0];
3476
3476
  return n.callback = t, n.facade;
3477
3477
  }
3478
- var Rl = typeof window < "u" ? c.useLayoutEffect : c.useEffect, no = /* @__PURE__ */ new WeakMap();
3478
+ var Rl = typeof window < "u" ? c.useLayoutEffect : c.useEffect, ro = /* @__PURE__ */ new WeakMap();
3479
3479
  function Pl(e, t) {
3480
3480
  var n = Sl(null, function(r) {
3481
3481
  return e.forEach(function(o) {
@@ -3483,7 +3483,7 @@ function Pl(e, t) {
3483
3483
  });
3484
3484
  });
3485
3485
  return Rl(function() {
3486
- var r = no.get(n);
3486
+ var r = ro.get(n);
3487
3487
  if (r) {
3488
3488
  var o = new Set(r), s = new Set(e), i = n.current;
3489
3489
  o.forEach(function(a) {
@@ -3492,7 +3492,7 @@ function Pl(e, t) {
3492
3492
  o.has(a) || sn(a, i);
3493
3493
  });
3494
3494
  }
3495
- no.set(n, e);
3495
+ ro.set(n, e);
3496
3496
  }, [e]), n;
3497
3497
  }
3498
3498
  function Al(e) {
@@ -3558,8 +3558,8 @@ function Ol(e) {
3558
3558
  var t = _l(null);
3559
3559
  return t.options = ue({ async: !0, ssr: !1 }, e), t;
3560
3560
  }
3561
- var ws = function(e) {
3562
- var t = e.sideCar, n = ys(e, ["sideCar"]);
3561
+ var Cs = function(e) {
3562
+ var t = e.sideCar, n = ws(e, ["sideCar"]);
3563
3563
  if (!t)
3564
3564
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
3565
3565
  var r = t.read();
@@ -3567,22 +3567,22 @@ var ws = function(e) {
3567
3567
  throw new Error("Sidecar medium not found");
3568
3568
  return c.createElement(r, ue({}, n));
3569
3569
  };
3570
- ws.isSideCarExport = !0;
3570
+ Cs.isSideCarExport = !0;
3571
3571
  function Tl(e, t) {
3572
- return e.useMedium(t), ws;
3572
+ return e.useMedium(t), Cs;
3573
3573
  }
3574
- var Cs = Ol(), an = function() {
3574
+ var Es = Ol(), an = function() {
3575
3575
  }, Ut = c.forwardRef(function(e, t) {
3576
3576
  var n = c.useRef(null), r = c.useState({
3577
3577
  onScrollCapture: an,
3578
3578
  onWheelCapture: an,
3579
3579
  onTouchMoveCapture: an
3580
- }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, v = e.noIsolation, g = e.inert, m = e.allowPinchZoom, b = e.as, x = b === void 0 ? "div" : b, w = e.gapMode, y = ys(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = p, S = Pl([n, t]), P = ue(ue({}, y), o);
3580
+ }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, v = e.noIsolation, g = e.inert, m = e.allowPinchZoom, b = e.as, x = b === void 0 ? "div" : b, y = e.gapMode, w = ws(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = p, R = Pl([n, t]), P = ue(ue({}, w), o);
3581
3581
  return c.createElement(
3582
3582
  c.Fragment,
3583
3583
  null,
3584
- f && c.createElement(C, { sideCar: Cs, removeScrollBar: u, shards: d, noIsolation: v, inert: g, setCallbacks: s, allowPinchZoom: !!m, lockRef: n, gapMode: w }),
3585
- i ? c.cloneElement(c.Children.only(a), ue(ue({}, P), { ref: S })) : c.createElement(x, ue({}, P, { className: l, ref: S }), a)
3584
+ f && c.createElement(C, { sideCar: Es, removeScrollBar: u, shards: d, noIsolation: v, inert: g, setCallbacks: s, allowPinchZoom: !!m, lockRef: n, gapMode: y }),
3585
+ i ? c.cloneElement(c.Children.only(a), ue(ue({}, P), { ref: R })) : c.createElement(x, ue({}, P, { className: l, ref: R }), a)
3586
3586
  );
3587
3587
  });
3588
3588
  Ut.defaultProps = {
@@ -3632,7 +3632,7 @@ var $l = function() {
3632
3632
  };
3633
3633
  }, [t && n]);
3634
3634
  };
3635
- }, Es = function() {
3635
+ }, Ss = function() {
3636
3636
  var e = Dl(), t = function(n) {
3637
3637
  var r = n.styles, o = n.dynamic;
3638
3638
  return e(r, o), null;
@@ -3658,7 +3658,7 @@ var $l = function() {
3658
3658
  right: t[2],
3659
3659
  gap: Math.max(0, r - n + t[2] - t[0])
3660
3660
  };
3661
- }, Wl = Es(), Ge = "data-scroll-locked", Bl = function(e, t, n, r) {
3661
+ }, Wl = Ss(), Ge = "data-scroll-locked", Bl = function(e, t, n, r) {
3662
3662
  var o = e.left, s = e.top, i = e.right, a = e.gap;
3663
3663
  return n === void 0 && (n = "margin"), `
3664
3664
  .`.concat(Cl, ` {
@@ -3702,13 +3702,13 @@ var $l = function() {
3702
3702
  `).concat(El, ": ").concat(a, `px;
3703
3703
  }
3704
3704
  `);
3705
- }, ro = function() {
3705
+ }, oo = function() {
3706
3706
  var e = parseInt(document.body.getAttribute(Ge) || "0", 10);
3707
3707
  return isFinite(e) ? e : 0;
3708
3708
  }, Ul = function() {
3709
3709
  c.useEffect(function() {
3710
- return document.body.setAttribute(Ge, (ro() + 1).toString()), function() {
3711
- var e = ro() - 1;
3710
+ return document.body.setAttribute(Ge, (oo() + 1).toString()), function() {
3711
+ var e = oo() - 1;
3712
3712
  e <= 0 ? document.body.removeAttribute(Ge) : document.body.setAttribute(Ge, e.toString());
3713
3713
  };
3714
3714
  }, []);
@@ -3733,7 +3733,7 @@ if (typeof window < "u")
3733
3733
  }
3734
3734
  var Ue = Cn ? { passive: !1 } : !1, zl = function(e) {
3735
3735
  return e.tagName === "TEXTAREA";
3736
- }, Ss = function(e, t) {
3736
+ }, Rs = function(e, t) {
3737
3737
  if (!(e instanceof Element))
3738
3738
  return !1;
3739
3739
  var n = window.getComputedStyle(e);
@@ -3743,16 +3743,16 @@ var Ue = Cn ? { passive: !1 } : !1, zl = function(e) {
3743
3743
  !(n.overflowY === n.overflowX && !zl(e) && n[t] === "visible")
3744
3744
  );
3745
3745
  }, Gl = function(e) {
3746
- return Ss(e, "overflowY");
3746
+ return Rs(e, "overflowY");
3747
3747
  }, Kl = function(e) {
3748
- return Ss(e, "overflowX");
3749
- }, oo = function(e, t) {
3748
+ return Rs(e, "overflowX");
3749
+ }, so = function(e, t) {
3750
3750
  var n = t.ownerDocument, r = t;
3751
3751
  do {
3752
3752
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
3753
- var o = Rs(e, r);
3753
+ var o = Ps(e, r);
3754
3754
  if (o) {
3755
- var s = Ps(e, r), i = s[1], a = s[2];
3755
+ var s = As(e, r), i = s[1], a = s[2];
3756
3756
  if (i > a)
3757
3757
  return !0;
3758
3758
  }
@@ -3773,17 +3773,17 @@ var Ue = Cn ? { passive: !1 } : !1, zl = function(e) {
3773
3773
  n,
3774
3774
  r
3775
3775
  ];
3776
- }, Rs = function(e, t) {
3777
- return e === "v" ? Gl(t) : Kl(t);
3778
3776
  }, Ps = function(e, t) {
3777
+ return e === "v" ? Gl(t) : Kl(t);
3778
+ }, As = function(e, t) {
3779
3779
  return e === "v" ? Hl(t) : Yl(t);
3780
3780
  }, Xl = function(e, t) {
3781
3781
  return e === "h" && t === "rtl" ? -1 : 1;
3782
3782
  }, ql = function(e, t, n, r, o) {
3783
3783
  var s = Xl(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, l = t.contains(a), u = !1, f = i > 0, d = 0, p = 0;
3784
3784
  do {
3785
- var v = Ps(e, a), g = v[0], m = v[1], b = v[2], x = m - b - s * g;
3786
- (g || x) && Rs(e, a) && (d += x, p += g), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
3785
+ var v = As(e, a), g = v[0], m = v[1], b = v[2], x = m - b - s * g;
3786
+ (g || x) && Ps(e, a) && (d += x, p += g), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
3787
3787
  } while (
3788
3788
  // portaled content
3789
3789
  !l && a !== document.body || // self content
@@ -3792,9 +3792,9 @@ var Ue = Cn ? { passive: !1 } : !1, zl = function(e) {
3792
3792
  return (f && Math.abs(d) < 1 || !f && Math.abs(p) < 1) && (u = !0), u;
3793
3793
  }, wt = function(e) {
3794
3794
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3795
- }, so = function(e) {
3796
- return [e.deltaX, e.deltaY];
3797
3795
  }, io = function(e) {
3796
+ return [e.deltaX, e.deltaY];
3797
+ }, ao = function(e) {
3798
3798
  return e && "current" in e ? e.current : e;
3799
3799
  }, Zl = function(e, t) {
3800
3800
  return e[0] === t[0] && e[1] === t[1];
@@ -3805,13 +3805,13 @@ var Ue = Cn ? { passive: !1 } : !1, zl = function(e) {
3805
3805
  `);
3806
3806
  }, Ql = 0, Ve = [];
3807
3807
  function eu(e) {
3808
- var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Ql++)[0], s = c.useState(Es)[0], i = c.useRef(e);
3808
+ var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Ql++)[0], s = c.useState(Ss)[0], i = c.useRef(e);
3809
3809
  c.useEffect(function() {
3810
3810
  i.current = e;
3811
3811
  }, [e]), c.useEffect(function() {
3812
3812
  if (e.inert) {
3813
3813
  document.body.classList.add("block-interactivity-".concat(o));
3814
- var m = wl([e.lockRef.current], (e.shards || []).map(io), !0).filter(Boolean);
3814
+ var m = wl([e.lockRef.current], (e.shards || []).map(ao), !0).filter(Boolean);
3815
3815
  return m.forEach(function(b) {
3816
3816
  return b.classList.add("allow-interactivity-".concat(o));
3817
3817
  }), function() {
@@ -3824,46 +3824,46 @@ function eu(e) {
3824
3824
  var a = c.useCallback(function(m, b) {
3825
3825
  if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
3826
3826
  return !i.current.allowPinchZoom;
3827
- var x = wt(m), w = n.current, y = "deltaX" in m ? m.deltaX : w[0] - x[0], C = "deltaY" in m ? m.deltaY : w[1] - x[1], S, P = m.target, R = Math.abs(y) > Math.abs(C) ? "h" : "v";
3828
- if ("touches" in m && R === "h" && P.type === "range")
3827
+ var x = wt(m), y = n.current, w = "deltaX" in m ? m.deltaX : y[0] - x[0], C = "deltaY" in m ? m.deltaY : y[1] - x[1], R, P = m.target, S = Math.abs(w) > Math.abs(C) ? "h" : "v";
3828
+ if ("touches" in m && S === "h" && P.type === "range")
3829
3829
  return !1;
3830
- var T = oo(R, P);
3830
+ var T = so(S, P);
3831
3831
  if (!T)
3832
3832
  return !0;
3833
- if (T ? S = R : (S = R === "v" ? "h" : "v", T = oo(R, P)), !T)
3833
+ if (T ? R = S : (R = S === "v" ? "h" : "v", T = so(S, P)), !T)
3834
3834
  return !1;
3835
- if (!r.current && "changedTouches" in m && (y || C) && (r.current = S), !S)
3835
+ if (!r.current && "changedTouches" in m && (w || C) && (r.current = R), !R)
3836
3836
  return !0;
3837
- var k = r.current || S;
3838
- return ql(k, b, m, k === "h" ? y : C);
3837
+ var k = r.current || R;
3838
+ return ql(k, b, m, k === "h" ? w : C);
3839
3839
  }, []), l = c.useCallback(function(m) {
3840
3840
  var b = m;
3841
3841
  if (!(!Ve.length || Ve[Ve.length - 1] !== s)) {
3842
- var x = "deltaY" in b ? so(b) : wt(b), w = t.current.filter(function(S) {
3843
- return S.name === b.type && (S.target === b.target || b.target === S.shadowParent) && Zl(S.delta, x);
3842
+ var x = "deltaY" in b ? io(b) : wt(b), y = t.current.filter(function(R) {
3843
+ return R.name === b.type && (R.target === b.target || b.target === R.shadowParent) && Zl(R.delta, x);
3844
3844
  })[0];
3845
- if (w && w.should) {
3845
+ if (y && y.should) {
3846
3846
  b.cancelable && b.preventDefault();
3847
3847
  return;
3848
3848
  }
3849
- if (!w) {
3850
- var y = (i.current.shards || []).map(io).filter(Boolean).filter(function(S) {
3851
- return S.contains(b.target);
3852
- }), C = y.length > 0 ? a(b, y[0]) : !i.current.noIsolation;
3849
+ if (!y) {
3850
+ var w = (i.current.shards || []).map(ao).filter(Boolean).filter(function(R) {
3851
+ return R.contains(b.target);
3852
+ }), C = w.length > 0 ? a(b, w[0]) : !i.current.noIsolation;
3853
3853
  C && b.cancelable && b.preventDefault();
3854
3854
  }
3855
3855
  }
3856
- }, []), u = c.useCallback(function(m, b, x, w) {
3857
- var y = { name: m, delta: b, target: x, should: w, shadowParent: tu(x) };
3858
- t.current.push(y), setTimeout(function() {
3856
+ }, []), u = c.useCallback(function(m, b, x, y) {
3857
+ var w = { name: m, delta: b, target: x, should: y, shadowParent: tu(x) };
3858
+ t.current.push(w), setTimeout(function() {
3859
3859
  t.current = t.current.filter(function(C) {
3860
- return C !== y;
3860
+ return C !== w;
3861
3861
  });
3862
3862
  }, 1);
3863
3863
  }, []), f = c.useCallback(function(m) {
3864
3864
  n.current = wt(m), r.current = void 0;
3865
3865
  }, []), d = c.useCallback(function(m) {
3866
- u(m.type, so(m), m.target, a(m, e.lockRef.current));
3866
+ u(m.type, io(m), m.target, a(m, e.lockRef.current));
3867
3867
  }, []), p = c.useCallback(function(m) {
3868
3868
  u(m.type, wt(m), m.target, a(m, e.lockRef.current));
3869
3869
  }, []);
@@ -3891,14 +3891,14 @@ function tu(e) {
3891
3891
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3892
3892
  return t;
3893
3893
  }
3894
- const nu = Tl(Cs, eu);
3894
+ const nu = Tl(Es, eu);
3895
3895
  var Gn = c.forwardRef(function(e, t) {
3896
3896
  return c.createElement(Ut, ue({}, e, { ref: t, sideCar: nu }));
3897
3897
  });
3898
3898
  Gn.classNames = Ut.classNames;
3899
- var Kn = "Popover", [As, ru] = Lt(Kn, [
3900
- is
3901
- ]), ut = is(), [ou, Oe] = As(Kn), Hn = (e) => {
3899
+ var Kn = "Popover", [_s, ru] = Lt(Kn, [
3900
+ as
3901
+ ]), ut = as(), [ou, Oe] = _s(Kn), Hn = (e) => {
3902
3902
  const {
3903
3903
  __scopePopover: t,
3904
3904
  children: n,
@@ -3906,7 +3906,7 @@ var Kn = "Popover", [As, ru] = Lt(Kn, [
3906
3906
  defaultOpen: o,
3907
3907
  onOpenChange: s,
3908
3908
  modal: i = !1
3909
- } = e, a = ut(t), l = c.useRef(null), [u, f] = c.useState(!1), [d = !1, p] = $o({
3909
+ } = e, a = ut(t), l = c.useRef(null), [u, f] = c.useState(!1), [d = !1, p] = Do({
3910
3910
  prop: r,
3911
3911
  defaultProp: o,
3912
3912
  onChange: s
@@ -3929,37 +3929,37 @@ var Kn = "Popover", [As, ru] = Lt(Kn, [
3929
3929
  ) });
3930
3930
  };
3931
3931
  Hn.displayName = Kn;
3932
- var _s = "PopoverAnchor", Yn = c.forwardRef(
3932
+ var Os = "PopoverAnchor", Yn = c.forwardRef(
3933
3933
  (e, t) => {
3934
- const { __scopePopover: n, ...r } = e, o = Oe(_s, n), s = ut(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = o;
3935
- return c.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ h.jsx(vs, { ...s, ...r, ref: t });
3934
+ const { __scopePopover: n, ...r } = e, o = Oe(Os, n), s = ut(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = o;
3935
+ return c.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ h.jsx(hs, { ...s, ...r, ref: t });
3936
3936
  }
3937
3937
  );
3938
- Yn.displayName = _s;
3939
- var Os = "PopoverTrigger", Xn = c.forwardRef(
3938
+ Yn.displayName = Os;
3939
+ var Ts = "PopoverTrigger", Xn = c.forwardRef(
3940
3940
  (e, t) => {
3941
- const { __scopePopover: n, ...r } = e, o = Oe(Os, n), s = ut(n), i = se(t, o.triggerRef), a = /* @__PURE__ */ h.jsx(
3941
+ const { __scopePopover: n, ...r } = e, o = Oe(Ts, n), s = ut(n), i = se(t, o.triggerRef), a = /* @__PURE__ */ h.jsx(
3942
3942
  le.button,
3943
3943
  {
3944
3944
  type: "button",
3945
3945
  "aria-haspopup": "dialog",
3946
3946
  "aria-expanded": o.open,
3947
3947
  "aria-controls": o.contentId,
3948
- "data-state": Is(o.open),
3948
+ "data-state": Ns(o.open),
3949
3949
  ...r,
3950
3950
  ref: i,
3951
3951
  onClick: ve(e.onClick, o.onOpenToggle)
3952
3952
  }
3953
3953
  );
3954
- return o.hasCustomAnchor ? a : /* @__PURE__ */ h.jsx(vs, { asChild: !0, ...s, children: a });
3954
+ return o.hasCustomAnchor ? a : /* @__PURE__ */ h.jsx(hs, { asChild: !0, ...s, children: a });
3955
3955
  }
3956
3956
  );
3957
- Xn.displayName = Os;
3958
- var qn = "PopoverPortal", [su, iu] = As(qn, {
3957
+ Xn.displayName = Ts;
3958
+ var qn = "PopoverPortal", [su, iu] = _s(qn, {
3959
3959
  forceMount: void 0
3960
3960
  }), Zn = (e) => {
3961
3961
  const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = Oe(qn, t);
3962
- return /* @__PURE__ */ h.jsx(su, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(In, { present: n || s.open, children: /* @__PURE__ */ h.jsx(ko, { asChild: !0, container: o, children: r }) }) });
3962
+ return /* @__PURE__ */ h.jsx(su, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(In, { present: n || s.open, children: /* @__PURE__ */ h.jsx($o, { asChild: !0, container: o, children: r }) }) });
3963
3963
  };
3964
3964
  Zn.displayName = qn;
3965
3965
  var Ye = "PopoverContent", Jn = c.forwardRef(
@@ -3974,9 +3974,9 @@ var au = c.forwardRef(
3974
3974
  const n = Oe(Ye, e.__scopePopover), r = c.useRef(null), o = se(t, r), s = c.useRef(!1);
3975
3975
  return c.useEffect(() => {
3976
3976
  const i = r.current;
3977
- if (i) return xs(i);
3977
+ if (i) return ys(i);
3978
3978
  }, []), /* @__PURE__ */ h.jsx(Gn, { as: ot, allowPinchZoom: !0, children: /* @__PURE__ */ h.jsx(
3979
- Ts,
3979
+ Ms,
3980
3980
  {
3981
3981
  ...e,
3982
3982
  ref: o,
@@ -4006,7 +4006,7 @@ var au = c.forwardRef(
4006
4006
  (e, t) => {
4007
4007
  const n = Oe(Ye, e.__scopePopover), r = c.useRef(!1), o = c.useRef(!1);
4008
4008
  return /* @__PURE__ */ h.jsx(
4009
- Ts,
4009
+ Ms,
4010
4010
  {
4011
4011
  ...e,
4012
4012
  ref: t,
@@ -4025,7 +4025,7 @@ var au = c.forwardRef(
4025
4025
  }
4026
4026
  );
4027
4027
  }
4028
- ), Ts = c.forwardRef(
4028
+ ), Ms = c.forwardRef(
4029
4029
  (e, t) => {
4030
4030
  const {
4031
4031
  __scopePopover: n,
@@ -4040,7 +4040,7 @@ var au = c.forwardRef(
4040
4040
  ...d
4041
4041
  } = e, p = Oe(Ye, n), v = ut(n);
4042
4042
  return ul(), /* @__PURE__ */ h.jsx(
4043
- hs,
4043
+ gs,
4044
4044
  {
4045
4045
  asChild: !0,
4046
4046
  loop: !0,
@@ -4060,7 +4060,7 @@ var au = c.forwardRef(
4060
4060
  children: /* @__PURE__ */ h.jsx(
4061
4061
  cl,
4062
4062
  {
4063
- "data-state": Is(p.open),
4063
+ "data-state": Ns(p.open),
4064
4064
  role: "dialog",
4065
4065
  id: p.contentId,
4066
4066
  ...v,
@@ -4081,9 +4081,9 @@ var au = c.forwardRef(
4081
4081
  }
4082
4082
  );
4083
4083
  }
4084
- ), Ms = "PopoverClose", Qn = c.forwardRef(
4084
+ ), Is = "PopoverClose", Qn = c.forwardRef(
4085
4085
  (e, t) => {
4086
- const { __scopePopover: n, ...r } = e, o = Oe(Ms, n);
4086
+ const { __scopePopover: n, ...r } = e, o = Oe(Is, n);
4087
4087
  return /* @__PURE__ */ h.jsx(
4088
4088
  le.button,
4089
4089
  {
@@ -4095,7 +4095,7 @@ var au = c.forwardRef(
4095
4095
  );
4096
4096
  }
4097
4097
  );
4098
- Qn.displayName = Ms;
4098
+ Qn.displayName = Is;
4099
4099
  var lu = "PopoverArrow", er = c.forwardRef(
4100
4100
  (e, t) => {
4101
4101
  const { __scopePopover: n, ...r } = e, o = ut(n);
@@ -4103,10 +4103,10 @@ var lu = "PopoverArrow", er = c.forwardRef(
4103
4103
  }
4104
4104
  );
4105
4105
  er.displayName = lu;
4106
- function Is(e) {
4106
+ function Ns(e) {
4107
4107
  return e ? "open" : "closed";
4108
4108
  }
4109
- var Ns = Hn, uu = Yn, ks = Xn, du = Zn, fu = Jn, pu = Qn, mu = er;
4109
+ var ks = Hn, uu = Yn, $s = Xn, du = Zn, fu = Jn, pu = Qn, mu = er;
4110
4110
  const vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4111
4111
  __proto__: null,
4112
4112
  Anchor: uu,
@@ -4121,45 +4121,47 @@ const vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4121
4121
  PopoverPortal: Zn,
4122
4122
  PopoverTrigger: Xn,
4123
4123
  Portal: du,
4124
- Root: Ns,
4125
- Trigger: ks,
4124
+ Root: ks,
4125
+ Trigger: $s,
4126
4126
  createPopoverScope: ru
4127
- }, Symbol.toStringTag, { value: "Module" })), { Content: hu, Portal: gu } = vu, bu = Ns, xu = ks, yu = c.forwardRef(({ align: e = "center", className: t, sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ h.jsx(gu, { children: /* @__PURE__ */ h.jsx(
4128
- hu,
4129
- {
4130
- ref: o,
4131
- align: e,
4132
- sideOffset: n,
4133
- className: O(
4134
- "z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
4135
- t
4136
- ),
4137
- ...r
4138
- }
4139
- ) }));
4127
+ }, Symbol.toStringTag, { value: "Module" })), { Content: hu, Portal: gu } = vu, bu = ks, xu = $s, yu = c.forwardRef(
4128
+ ({ align: e = "center", className: t, sideOffset: n = 4, container: r, ...o }, s) => /* @__PURE__ */ h.jsx(gu, { container: r, children: /* @__PURE__ */ h.jsx(
4129
+ hu,
4130
+ {
4131
+ ref: s,
4132
+ align: e,
4133
+ sideOffset: n,
4134
+ className: O(
4135
+ "z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
4136
+ t
4137
+ ),
4138
+ ...o
4139
+ }
4140
+ ) })
4141
+ );
4140
4142
  function It(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
4141
4143
  return function(o) {
4142
4144
  if (e == null || e(o), n === !1 || !o.defaultPrevented)
4143
4145
  return t == null ? void 0 : t(o);
4144
4146
  };
4145
4147
  }
4146
- function ao(e, t) {
4148
+ function co(e, t) {
4147
4149
  if (typeof e == "function")
4148
4150
  return e(t);
4149
4151
  e != null && (e.current = t);
4150
4152
  }
4151
- function $s(...e) {
4153
+ function Ds(...e) {
4152
4154
  return (t) => {
4153
4155
  let n = !1;
4154
4156
  const r = e.map((o) => {
4155
- const s = ao(o, t);
4157
+ const s = co(o, t);
4156
4158
  return !n && typeof s == "function" && (n = !0), s;
4157
4159
  });
4158
4160
  if (n)
4159
4161
  return () => {
4160
4162
  for (let o = 0; o < r.length; o++) {
4161
4163
  const s = r[o];
4162
- typeof s == "function" ? s() : ao(e[o], null);
4164
+ typeof s == "function" ? s() : co(e[o], null);
4163
4165
  }
4164
4166
  };
4165
4167
  };
@@ -4214,9 +4216,9 @@ function Cu(...e) {
4214
4216
  };
4215
4217
  return n.scopeName = t.scopeName, n;
4216
4218
  }
4217
- var Ds = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
4218
- }, Eu = c[" useInsertionEffect ".trim().toString()] || Ds;
4219
- function js({
4219
+ var js = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
4220
+ }, Eu = c[" useInsertionEffect ".trim().toString()] || js;
4221
+ function Ls({
4220
4222
  prop: e,
4221
4223
  defaultProp: t,
4222
4224
  onChange: n = () => {
@@ -4282,7 +4284,7 @@ function Au(e) {
4282
4284
  const { children: o, ...s } = n;
4283
4285
  if (c.isValidElement(o)) {
4284
4286
  const i = Mu(o), a = Tu(s, o.props);
4285
- return o.type !== c.Fragment && (a.ref = r ? $s(r, i) : i), c.cloneElement(o, a);
4287
+ return o.type !== c.Fragment && (a.ref = r ? Ds(r, i) : i), c.cloneElement(o, a);
4286
4288
  }
4287
4289
  return c.Children.count(o) > 1 ? c.Children.only(null) : null;
4288
4290
  });
@@ -4389,7 +4391,7 @@ function ku(...e) {
4389
4391
  };
4390
4392
  return n.scopeName = t.scopeName, n;
4391
4393
  }
4392
- function co(e, t) {
4394
+ function lo(e, t) {
4393
4395
  if (typeof e == "function")
4394
4396
  return e(t);
4395
4397
  e != null && (e.current = t);
@@ -4398,14 +4400,14 @@ function nr(...e) {
4398
4400
  return (t) => {
4399
4401
  let n = !1;
4400
4402
  const r = e.map((o) => {
4401
- const s = co(o, t);
4403
+ const s = lo(o, t);
4402
4404
  return !n && typeof s == "function" && (n = !0), s;
4403
4405
  });
4404
4406
  if (n)
4405
4407
  return () => {
4406
4408
  for (let o = 0; o < r.length; o++) {
4407
4409
  const s = r[o];
4408
- typeof s == "function" ? s() : co(e[o], null);
4410
+ typeof s == "function" ? s() : lo(e[o], null);
4409
4411
  }
4410
4412
  };
4411
4413
  };
@@ -4462,32 +4464,32 @@ function Wu(e) {
4462
4464
  t,
4463
4465
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
4464
4466
  ), i = (m) => {
4465
- const { scope: b, children: x } = m, w = V.useRef(null), y = V.useRef(/* @__PURE__ */ new Map()).current;
4466
- return /* @__PURE__ */ h.jsx(o, { scope: b, itemMap: y, collectionRef: w, children: x });
4467
+ const { scope: b, children: x } = m, y = V.useRef(null), w = V.useRef(/* @__PURE__ */ new Map()).current;
4468
+ return /* @__PURE__ */ h.jsx(o, { scope: b, itemMap: w, collectionRef: y, children: x });
4467
4469
  };
4468
4470
  i.displayName = t;
4469
4471
  const a = e + "CollectionSlot", l = /* @__PURE__ */ Nt(a), u = V.forwardRef(
4470
4472
  (m, b) => {
4471
- const { scope: x, children: w } = m, y = s(a, x), C = ee(b, y.collectionRef);
4472
- return /* @__PURE__ */ h.jsx(l, { ref: C, children: w });
4473
+ const { scope: x, children: y } = m, w = s(a, x), C = ee(b, w.collectionRef);
4474
+ return /* @__PURE__ */ h.jsx(l, { ref: C, children: y });
4473
4475
  }
4474
4476
  );
4475
4477
  u.displayName = a;
4476
4478
  const f = e + "CollectionItemSlot", d = "data-radix-collection-item", p = /* @__PURE__ */ Nt(f), v = V.forwardRef(
4477
4479
  (m, b) => {
4478
- const { scope: x, children: w, ...y } = m, C = V.useRef(null), S = ee(b, C), P = s(f, x);
4479
- return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...y }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: S, children: w });
4480
+ const { scope: x, children: y, ...w } = m, C = V.useRef(null), R = ee(b, C), P = s(f, x);
4481
+ return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...w }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: R, children: y });
4480
4482
  }
4481
4483
  );
4482
4484
  v.displayName = f;
4483
4485
  function g(m) {
4484
4486
  const b = s(e + "CollectionConsumer", m);
4485
4487
  return V.useCallback(() => {
4486
- const w = b.collectionRef.current;
4487
- if (!w) return [];
4488
- const y = Array.from(w.querySelectorAll(`[${d}]`));
4488
+ const y = b.collectionRef.current;
4489
+ if (!y) return [];
4490
+ const w = Array.from(y.querySelectorAll(`[${d}]`));
4489
4491
  return Array.from(b.itemMap.values()).sort(
4490
- (P, R) => y.indexOf(P.ref.current) - y.indexOf(R.ref.current)
4492
+ (P, S) => w.indexOf(P.ref.current) - w.indexOf(S.ref.current)
4491
4493
  );
4492
4494
  }, [b.collectionRef, b.itemMap]);
4493
4495
  }
@@ -4527,7 +4529,7 @@ var Vu = [
4527
4529
  });
4528
4530
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
4529
4531
  }, {});
4530
- function Ls(e, t) {
4532
+ function Fs(e, t) {
4531
4533
  e && Tn.flushSync(() => e.dispatchEvent(t));
4532
4534
  }
4533
4535
  function xe(e) {
@@ -4548,11 +4550,11 @@ function zu(e, t = globalThis == null ? void 0 : globalThis.document) {
4548
4550
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
4549
4551
  }, [n, t]);
4550
4552
  }
4551
- var Gu = "DismissableLayer", En = "dismissableLayer.update", Ku = "dismissableLayer.pointerDownOutside", Hu = "dismissableLayer.focusOutside", lo, Fs = c.createContext({
4553
+ var Gu = "DismissableLayer", En = "dismissableLayer.update", Ku = "dismissableLayer.pointerDownOutside", Hu = "dismissableLayer.focusOutside", uo, Ws = c.createContext({
4552
4554
  layers: /* @__PURE__ */ new Set(),
4553
4555
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
4554
4556
  branches: /* @__PURE__ */ new Set()
4555
- }), Ws = c.forwardRef(
4557
+ }), Bs = c.forwardRef(
4556
4558
  (e, t) => {
4557
4559
  const {
4558
4560
  disableOutsidePointerEvents: n = !1,
@@ -4562,47 +4564,47 @@ var Gu = "DismissableLayer", En = "dismissableLayer.update", Ku = "dismissableLa
4562
4564
  onInteractOutside: i,
4563
4565
  onDismiss: a,
4564
4566
  ...l
4565
- } = e, u = c.useContext(Fs), [f, d] = c.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = c.useState({}), g = ee(t, (R) => d(R)), m = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(b), w = f ? m.indexOf(f) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= x, S = qu((R) => {
4566
- const T = R.target, k = [...u.branches].some((I) => I.contains(T));
4567
- !C || k || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
4568
- }, p), P = Zu((R) => {
4569
- const T = R.target;
4570
- [...u.branches].some((I) => I.contains(T)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
4567
+ } = e, u = c.useContext(Ws), [f, d] = c.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = c.useState({}), g = ee(t, (S) => d(S)), m = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(b), y = f ? m.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= x, R = qu((S) => {
4568
+ const T = S.target, k = [...u.branches].some((I) => I.contains(T));
4569
+ !C || k || (o == null || o(S), i == null || i(S), S.defaultPrevented || a == null || a());
4570
+ }, p), P = Zu((S) => {
4571
+ const T = S.target;
4572
+ [...u.branches].some((I) => I.contains(T)) || (s == null || s(S), i == null || i(S), S.defaultPrevented || a == null || a());
4571
4573
  }, p);
4572
- return zu((R) => {
4573
- w === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
4574
+ return zu((S) => {
4575
+ y === u.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && a && (S.preventDefault(), a()));
4574
4576
  }, p), c.useEffect(() => {
4575
4577
  if (f)
4576
- return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (lo = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), uo(), () => {
4577
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = lo);
4578
+ return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (uo = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), fo(), () => {
4579
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = uo);
4578
4580
  };
4579
4581
  }, [f, p, n, u]), c.useEffect(() => () => {
4580
- f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), uo());
4582
+ f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), fo());
4581
4583
  }, [f, u]), c.useEffect(() => {
4582
- const R = () => v({});
4583
- return document.addEventListener(En, R), () => document.removeEventListener(En, R);
4584
+ const S = () => v({});
4585
+ return document.addEventListener(En, S), () => document.removeEventListener(En, S);
4584
4586
  }, []), /* @__PURE__ */ h.jsx(
4585
4587
  re.div,
4586
4588
  {
4587
4589
  ...l,
4588
4590
  ref: g,
4589
4591
  style: {
4590
- pointerEvents: y ? C ? "auto" : "none" : void 0,
4592
+ pointerEvents: w ? C ? "auto" : "none" : void 0,
4591
4593
  ...e.style
4592
4594
  },
4593
4595
  onFocusCapture: z(e.onFocusCapture, P.onFocusCapture),
4594
4596
  onBlurCapture: z(e.onBlurCapture, P.onBlurCapture),
4595
4597
  onPointerDownCapture: z(
4596
4598
  e.onPointerDownCapture,
4597
- S.onPointerDownCapture
4599
+ R.onPointerDownCapture
4598
4600
  )
4599
4601
  }
4600
4602
  );
4601
4603
  }
4602
4604
  );
4603
- Ws.displayName = Gu;
4605
+ Bs.displayName = Gu;
4604
4606
  var Yu = "DismissableLayerBranch", Xu = c.forwardRef((e, t) => {
4605
- const n = c.useContext(Fs), r = c.useRef(null), o = ee(t, r);
4607
+ const n = c.useContext(Ws), r = c.useRef(null), o = ee(t, r);
4606
4608
  return c.useEffect(() => {
4607
4609
  const s = r.current;
4608
4610
  if (s)
@@ -4619,7 +4621,7 @@ function qu(e, t = globalThis == null ? void 0 : globalThis.document) {
4619
4621
  const s = (a) => {
4620
4622
  if (a.target && !r.current) {
4621
4623
  let l = function() {
4622
- Bs(
4624
+ Us(
4623
4625
  Ku,
4624
4626
  n,
4625
4627
  u,
@@ -4646,7 +4648,7 @@ function Zu(e, t = globalThis == null ? void 0 : globalThis.document) {
4646
4648
  const n = xe(e), r = c.useRef(!1);
4647
4649
  return c.useEffect(() => {
4648
4650
  const o = (s) => {
4649
- s.target && !r.current && Bs(Hu, n, { originalEvent: s }, {
4651
+ s.target && !r.current && Us(Hu, n, { originalEvent: s }, {
4650
4652
  discrete: !1
4651
4653
  });
4652
4654
  };
@@ -4656,28 +4658,28 @@ function Zu(e, t = globalThis == null ? void 0 : globalThis.document) {
4656
4658
  onBlurCapture: () => r.current = !1
4657
4659
  };
4658
4660
  }
4659
- function uo() {
4661
+ function fo() {
4660
4662
  const e = new CustomEvent(En);
4661
4663
  document.dispatchEvent(e);
4662
4664
  }
4663
- function Bs(e, t, n, { discrete: r }) {
4665
+ function Us(e, t, n, { discrete: r }) {
4664
4666
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
4665
- t && o.addEventListener(e, t, { once: !0 }), r ? Ls(o, s) : o.dispatchEvent(s);
4667
+ t && o.addEventListener(e, t, { once: !0 }), r ? Fs(o, s) : o.dispatchEvent(s);
4666
4668
  }
4667
4669
  var ln = 0;
4668
4670
  function Ju() {
4669
4671
  c.useEffect(() => {
4670
4672
  const e = document.querySelectorAll("[data-radix-focus-guard]");
4671
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? fo()), document.body.insertAdjacentElement("beforeend", e[1] ?? fo()), ln++, () => {
4673
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? po()), document.body.insertAdjacentElement("beforeend", e[1] ?? po()), ln++, () => {
4672
4674
  ln === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ln--;
4673
4675
  };
4674
4676
  }, []);
4675
4677
  }
4676
- function fo() {
4678
+ function po() {
4677
4679
  const e = document.createElement("span");
4678
4680
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
4679
4681
  }
4680
- var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", po = { bubbles: !1, cancelable: !0 }, Qu = "FocusScope", Us = c.forwardRef((e, t) => {
4682
+ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", mo = { bubbles: !1, cancelable: !0 }, Qu = "FocusScope", Vs = c.forwardRef((e, t) => {
4681
4683
  const {
4682
4684
  loop: n = !1,
4683
4685
  trapped: r = !1,
@@ -4695,37 +4697,37 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", po
4695
4697
  }).current;
4696
4698
  c.useEffect(() => {
4697
4699
  if (r) {
4698
- let m = function(y) {
4700
+ let m = function(w) {
4699
4701
  if (v.paused || !a) return;
4700
- const C = y.target;
4702
+ const C = w.target;
4701
4703
  a.contains(C) ? d.current = C : Ee(d.current, { select: !0 });
4702
- }, b = function(y) {
4704
+ }, b = function(w) {
4703
4705
  if (v.paused || !a) return;
4704
- const C = y.relatedTarget;
4706
+ const C = w.relatedTarget;
4705
4707
  C !== null && (a.contains(C) || Ee(d.current, { select: !0 }));
4706
- }, x = function(y) {
4708
+ }, x = function(w) {
4707
4709
  if (document.activeElement === document.body)
4708
- for (const S of y)
4709
- S.removedNodes.length > 0 && Ee(a);
4710
+ for (const R of w)
4711
+ R.removedNodes.length > 0 && Ee(a);
4710
4712
  };
4711
4713
  document.addEventListener("focusin", m), document.addEventListener("focusout", b);
4712
- const w = new MutationObserver(x);
4713
- return a && w.observe(a, { childList: !0, subtree: !0 }), () => {
4714
- document.removeEventListener("focusin", m), document.removeEventListener("focusout", b), w.disconnect();
4714
+ const y = new MutationObserver(x);
4715
+ return a && y.observe(a, { childList: !0, subtree: !0 }), () => {
4716
+ document.removeEventListener("focusin", m), document.removeEventListener("focusout", b), y.disconnect();
4715
4717
  };
4716
4718
  }
4717
4719
  }, [r, a, v.paused]), c.useEffect(() => {
4718
4720
  if (a) {
4719
- vo.add(v);
4721
+ ho.add(v);
4720
4722
  const m = document.activeElement;
4721
4723
  if (!a.contains(m)) {
4722
- const x = new CustomEvent(un, po);
4723
- a.addEventListener(un, u), a.dispatchEvent(x), x.defaultPrevented || (ed(sd(Vs(a)), { select: !0 }), document.activeElement === m && Ee(a));
4724
+ const x = new CustomEvent(un, mo);
4725
+ a.addEventListener(un, u), a.dispatchEvent(x), x.defaultPrevented || (ed(sd(zs(a)), { select: !0 }), document.activeElement === m && Ee(a));
4724
4726
  }
4725
4727
  return () => {
4726
4728
  a.removeEventListener(un, u), setTimeout(() => {
4727
- const x = new CustomEvent(dn, po);
4728
- a.addEventListener(dn, f), a.dispatchEvent(x), x.defaultPrevented || Ee(m ?? document.body, { select: !0 }), a.removeEventListener(dn, f), vo.remove(v);
4729
+ const x = new CustomEvent(dn, mo);
4730
+ a.addEventListener(dn, f), a.dispatchEvent(x), x.defaultPrevented || Ee(m ?? document.body, { select: !0 }), a.removeEventListener(dn, f), ho.remove(v);
4729
4731
  }, 0);
4730
4732
  };
4731
4733
  }
@@ -4735,25 +4737,25 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", po
4735
4737
  if (!n && !r || v.paused) return;
4736
4738
  const b = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, x = document.activeElement;
4737
4739
  if (b && x) {
4738
- const w = m.currentTarget, [y, C] = td(w);
4739
- y && C ? !m.shiftKey && x === C ? (m.preventDefault(), n && Ee(y, { select: !0 })) : m.shiftKey && x === y && (m.preventDefault(), n && Ee(C, { select: !0 })) : x === w && m.preventDefault();
4740
+ const y = m.currentTarget, [w, C] = td(y);
4741
+ w && C ? !m.shiftKey && x === C ? (m.preventDefault(), n && Ee(w, { select: !0 })) : m.shiftKey && x === w && (m.preventDefault(), n && Ee(C, { select: !0 })) : x === y && m.preventDefault();
4740
4742
  }
4741
4743
  },
4742
4744
  [n, r, v.paused]
4743
4745
  );
4744
4746
  return /* @__PURE__ */ h.jsx(re.div, { tabIndex: -1, ...i, ref: p, onKeyDown: g });
4745
4747
  });
4746
- Us.displayName = Qu;
4748
+ Vs.displayName = Qu;
4747
4749
  function ed(e, { select: t = !1 } = {}) {
4748
4750
  const n = document.activeElement;
4749
4751
  for (const r of e)
4750
4752
  if (Ee(r, { select: t }), document.activeElement !== n) return;
4751
4753
  }
4752
4754
  function td(e) {
4753
- const t = Vs(e), n = mo(t, e), r = mo(t.reverse(), e);
4755
+ const t = zs(e), n = vo(t, e), r = vo(t.reverse(), e);
4754
4756
  return [n, r];
4755
4757
  }
4756
- function Vs(e) {
4758
+ function zs(e) {
4757
4759
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
4758
4760
  acceptNode: (r) => {
4759
4761
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -4763,7 +4765,7 @@ function Vs(e) {
4763
4765
  for (; n.nextNode(); ) t.push(n.currentNode);
4764
4766
  return t;
4765
4767
  }
4766
- function mo(e, t) {
4768
+ function vo(e, t) {
4767
4769
  for (const n of e)
4768
4770
  if (!nd(n, { upTo: t })) return n;
4769
4771
  }
@@ -4785,21 +4787,21 @@ function Ee(e, { select: t = !1 } = {}) {
4785
4787
  e.focus({ preventScroll: !0 }), e !== n && rd(e) && t && e.select();
4786
4788
  }
4787
4789
  }
4788
- var vo = od();
4790
+ var ho = od();
4789
4791
  function od() {
4790
4792
  let e = [];
4791
4793
  return {
4792
4794
  add(t) {
4793
4795
  const n = e[0];
4794
- t !== n && (n == null || n.pause()), e = ho(e, t), e.unshift(t);
4796
+ t !== n && (n == null || n.pause()), e = go(e, t), e.unshift(t);
4795
4797
  },
4796
4798
  remove(t) {
4797
4799
  var n;
4798
- e = ho(e, t), (n = e[0]) == null || n.resume();
4800
+ e = go(e, t), (n = e[0]) == null || n.resume();
4799
4801
  }
4800
4802
  };
4801
4803
  }
4802
- function ho(e, t) {
4804
+ function go(e, t) {
4803
4805
  const n = [...e], r = n.indexOf(t);
4804
4806
  return r !== -1 && n.splice(r, 1), n;
4805
4807
  }
@@ -4809,13 +4811,13 @@ function sd(e) {
4809
4811
  var De = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
4810
4812
  }, id = c[" useId ".trim().toString()] || (() => {
4811
4813
  }), ad = 0;
4812
- function go(e) {
4814
+ function bo(e) {
4813
4815
  const [t, n] = c.useState(id());
4814
4816
  return De(() => {
4815
4817
  n((r) => r ?? String(ad++));
4816
4818
  }, [e]), e || (t ? `radix-${t}` : "");
4817
4819
  }
4818
- var cd = "Arrow", zs = c.forwardRef((e, t) => {
4820
+ var cd = "Arrow", Gs = c.forwardRef((e, t) => {
4819
4821
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
4820
4822
  return /* @__PURE__ */ h.jsx(
4821
4823
  re.svg,
@@ -4830,8 +4832,8 @@ var cd = "Arrow", zs = c.forwardRef((e, t) => {
4830
4832
  }
4831
4833
  );
4832
4834
  });
4833
- zs.displayName = cd;
4834
- var ld = zs;
4835
+ Gs.displayName = cd;
4836
+ var ld = Gs;
4835
4837
  function ud(e) {
4836
4838
  const [t, n] = c.useState(void 0);
4837
4839
  return De(() => {
@@ -4854,21 +4856,21 @@ function ud(e) {
4854
4856
  n(void 0);
4855
4857
  }, [e]), t;
4856
4858
  }
4857
- var rr = "Popper", [Gs, Ks] = tr(rr), [dd, Hs] = Gs(rr), Ys = (e) => {
4859
+ var rr = "Popper", [Ks, Hs] = tr(rr), [dd, Ys] = Ks(rr), Xs = (e) => {
4858
4860
  const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
4859
4861
  return /* @__PURE__ */ h.jsx(dd, { scope: t, anchor: r, onAnchorChange: o, children: n });
4860
4862
  };
4861
- Ys.displayName = rr;
4862
- var Xs = "PopperAnchor", qs = c.forwardRef(
4863
+ Xs.displayName = rr;
4864
+ var qs = "PopperAnchor", Zs = c.forwardRef(
4863
4865
  (e, t) => {
4864
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = Hs(Xs, n), i = c.useRef(null), a = ee(t, i);
4866
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = Ys(qs, n), i = c.useRef(null), a = ee(t, i);
4865
4867
  return c.useEffect(() => {
4866
4868
  s.onAnchorChange((r == null ? void 0 : r.current) || i.current);
4867
4869
  }), r ? null : /* @__PURE__ */ h.jsx(re.div, { ...o, ref: a });
4868
4870
  }
4869
4871
  );
4870
- qs.displayName = Xs;
4871
- var or = "PopperContent", [fd, pd] = Gs(or), Zs = c.forwardRef(
4872
+ Zs.displayName = qs;
4873
+ var or = "PopperContent", [fd, pd] = Ks(or), Js = c.forwardRef(
4872
4874
  (e, t) => {
4873
4875
  var X, B, K, te, Me, Ze;
4874
4876
  const {
@@ -4886,42 +4888,42 @@ var or = "PopperContent", [fd, pd] = Gs(or), Zs = c.forwardRef(
4886
4888
  updatePositionStrategy: v = "optimized",
4887
4889
  onPlaced: g,
4888
4890
  ...m
4889
- } = e, b = Hs(or, n), [x, w] = c.useState(null), y = ee(t, (oe) => w(oe)), [C, S] = c.useState(null), P = ud(C), R = (P == null ? void 0 : P.width) ?? 0, T = (P == null ? void 0 : P.height) ?? 0, k = r + (s !== "center" ? "-" + s : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, L = Array.isArray(u) ? u : [u], W = L.length > 0, j = {
4891
+ } = e, b = Ys(or, n), [x, y] = c.useState(null), w = ee(t, (oe) => y(oe)), [C, R] = c.useState(null), P = ud(C), S = (P == null ? void 0 : P.width) ?? 0, T = (P == null ? void 0 : P.height) ?? 0, k = r + (s !== "center" ? "-" + s : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, L = Array.isArray(u) ? u : [u], W = L.length > 0, j = {
4890
4892
  padding: I,
4891
4893
  boundary: L.filter(vd),
4892
4894
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
4893
4895
  altBoundary: W
4894
- }, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = qo({
4896
+ }, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = Zo({
4895
4897
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
4896
4898
  strategy: "fixed",
4897
4899
  placement: k,
4898
- whileElementsMounted: (...oe) => Yo(...oe, {
4900
+ whileElementsMounted: (...oe) => Xo(...oe, {
4899
4901
  animationFrame: v === "always"
4900
4902
  }),
4901
4903
  elements: {
4902
4904
  reference: b.anchor
4903
4905
  },
4904
4906
  middleware: [
4905
- Zo({ mainAxis: o + T, alignmentAxis: i }),
4906
- l && Jo({
4907
+ Jo({ mainAxis: o + T, alignmentAxis: i }),
4908
+ l && Qo({
4907
4909
  mainAxis: !0,
4908
4910
  crossAxis: !1,
4909
- limiter: d === "partial" ? Qo() : void 0,
4911
+ limiter: d === "partial" ? es() : void 0,
4910
4912
  ...j
4911
4913
  }),
4912
- l && es({ ...j }),
4913
- ts({
4914
+ l && ts({ ...j }),
4915
+ ns({
4914
4916
  ...j,
4915
4917
  apply: ({ elements: oe, rects: Je, availableWidth: Yt, availableHeight: Xt }) => {
4916
4918
  const { width: qt, height: Zt } = Je.reference, me = oe.floating.style;
4917
4919
  me.setProperty("--radix-popper-available-width", `${Yt}px`), me.setProperty("--radix-popper-available-height", `${Xt}px`), me.setProperty("--radix-popper-anchor-width", `${qt}px`), me.setProperty("--radix-popper-anchor-height", `${Zt}px`);
4918
4920
  }
4919
4921
  }),
4920
- C && rs({ element: C, padding: a }),
4921
- hd({ arrowWidth: R, arrowHeight: T }),
4922
- p && ns({ strategy: "referenceHidden", ...j })
4922
+ C && os({ element: C, padding: a }),
4923
+ hd({ arrowWidth: S, arrowHeight: T }),
4924
+ p && rs({ strategy: "referenceHidden", ...j })
4923
4925
  ]
4924
- }), [A, E] = ei($), _ = xe(g);
4926
+ }), [A, E] = ti($), _ = xe(g);
4925
4927
  De(() => {
4926
4928
  F && (_ == null || _());
4927
4929
  }, [F, _]);
@@ -4957,7 +4959,7 @@ var or = "PopperContent", [fd, pd] = Gs(or), Zs = c.forwardRef(
4957
4959
  {
4958
4960
  scope: n,
4959
4961
  placedSide: A,
4960
- onArrowChange: S,
4962
+ onArrowChange: R,
4961
4963
  arrowX: N,
4962
4964
  arrowY: U,
4963
4965
  shouldHideArrow: Y,
@@ -4967,7 +4969,7 @@ var or = "PopperContent", [fd, pd] = Gs(or), Zs = c.forwardRef(
4967
4969
  "data-side": A,
4968
4970
  "data-align": E,
4969
4971
  ...m,
4970
- ref: y,
4972
+ ref: w,
4971
4973
  style: {
4972
4974
  ...m.style,
4973
4975
  // if the PopperContent hasn't been placed yet (not all measurements done)
@@ -4982,14 +4984,14 @@ var or = "PopperContent", [fd, pd] = Gs(or), Zs = c.forwardRef(
4982
4984
  );
4983
4985
  }
4984
4986
  );
4985
- Zs.displayName = or;
4986
- var Js = "PopperArrow", md = {
4987
+ Js.displayName = or;
4988
+ var Qs = "PopperArrow", md = {
4987
4989
  top: "bottom",
4988
4990
  right: "left",
4989
4991
  bottom: "top",
4990
4992
  left: "right"
4991
- }, Qs = c.forwardRef(function(t, n) {
4992
- const { __scopePopper: r, ...o } = t, s = pd(Js, r), i = md[s.placedSide];
4993
+ }, ei = c.forwardRef(function(t, n) {
4994
+ const { __scopePopper: r, ...o } = t, s = pd(Qs, r), i = md[s.placedSide];
4993
4995
  return (
4994
4996
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
4995
4997
  // doesn't report size as we'd expect on SVG elements.
@@ -5033,7 +5035,7 @@ var Js = "PopperArrow", md = {
5033
5035
  )
5034
5036
  );
5035
5037
  });
5036
- Qs.displayName = Js;
5038
+ ei.displayName = Qs;
5037
5039
  function vd(e) {
5038
5040
  return e !== null;
5039
5041
  }
@@ -5041,24 +5043,24 @@ var hd = (e) => ({
5041
5043
  name: "transformOrigin",
5042
5044
  options: e,
5043
5045
  fn(t) {
5044
- var b, x, w;
5045
- const { placement: n, rects: r, middlewareData: o } = t, i = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, f] = ei(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + a / 2, v = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + l / 2;
5046
+ var b, x, y;
5047
+ const { placement: n, rects: r, middlewareData: o } = t, i = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, f] = ti(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + a / 2, v = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + l / 2;
5046
5048
  let g = "", m = "";
5047
5049
  return u === "bottom" ? (g = i ? d : `${p}px`, m = `${-l}px`) : u === "top" ? (g = i ? d : `${p}px`, m = `${r.floating.height + l}px`) : u === "right" ? (g = `${-l}px`, m = i ? d : `${v}px`) : u === "left" && (g = `${r.floating.width + l}px`, m = i ? d : `${v}px`), { data: { x: g, y: m } };
5048
5050
  }
5049
5051
  });
5050
- function ei(e) {
5052
+ function ti(e) {
5051
5053
  const [t, n = "center"] = e.split("-");
5052
5054
  return [t, n];
5053
5055
  }
5054
- var ti = Ys, gd = qs, bd = Zs, xd = Qs, yd = "Portal", ni = c.forwardRef((e, t) => {
5056
+ var ni = Xs, gd = Zs, bd = Js, xd = ei, yd = "Portal", ri = c.forwardRef((e, t) => {
5055
5057
  var a;
5056
5058
  const { container: n, ...r } = e, [o, s] = c.useState(!1);
5057
5059
  De(() => s(!0), []);
5058
5060
  const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
5059
- return i ? _o.createPortal(/* @__PURE__ */ h.jsx(re.div, { ...r, ref: t }), i) : null;
5061
+ return i ? Oo.createPortal(/* @__PURE__ */ h.jsx(re.div, { ...r, ref: t }), i) : null;
5060
5062
  });
5061
- ni.displayName = yd;
5063
+ ri.displayName = yd;
5062
5064
  function wd(e, t) {
5063
5065
  return c.useReducer((n, r) => t[n][r] ?? n, e);
5064
5066
  }
@@ -5130,7 +5132,7 @@ function Ke(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
5130
5132
  return t == null ? void 0 : t(o);
5131
5133
  };
5132
5134
  }
5133
- function ri(e, t = []) {
5135
+ function oi(e, t = []) {
5134
5136
  let n = [];
5135
5137
  function r(s, i) {
5136
5138
  const a = c.createContext(i), l = n.length;
@@ -5180,29 +5182,29 @@ function Sd(...e) {
5180
5182
  };
5181
5183
  return n.scopeName = t.scopeName, n;
5182
5184
  }
5183
- function bo(e, t) {
5185
+ function xo(e, t) {
5184
5186
  if (typeof e == "function")
5185
5187
  return e(t);
5186
5188
  e != null && (e.current = t);
5187
5189
  }
5188
- function oi(...e) {
5190
+ function si(...e) {
5189
5191
  return (t) => {
5190
5192
  let n = !1;
5191
5193
  const r = e.map((o) => {
5192
- const s = bo(o, t);
5194
+ const s = xo(o, t);
5193
5195
  return !n && typeof s == "function" && (n = !0), s;
5194
5196
  });
5195
5197
  if (n)
5196
5198
  return () => {
5197
5199
  for (let o = 0; o < r.length; o++) {
5198
5200
  const s = r[o];
5199
- typeof s == "function" ? s() : bo(e[o], null);
5201
+ typeof s == "function" ? s() : xo(e[o], null);
5200
5202
  }
5201
5203
  };
5202
5204
  };
5203
5205
  }
5204
5206
  function Sn(...e) {
5205
- return c.useCallback(oi(...e), e);
5207
+ return c.useCallback(si(...e), e);
5206
5208
  }
5207
5209
  // @__NO_SIDE_EFFECTS__
5208
5210
  function Rn(e) {
@@ -5222,7 +5224,7 @@ function Rd(e) {
5222
5224
  const { children: o, ...s } = n;
5223
5225
  if (c.isValidElement(o)) {
5224
5226
  const i = Od(o), a = _d(s, o.props);
5225
- return o.type !== c.Fragment && (a.ref = r ? oi(r, i) : i), c.cloneElement(o, a);
5227
+ return o.type !== c.Fragment && (a.ref = r ? si(r, i) : i), c.cloneElement(o, a);
5226
5228
  }
5227
5229
  return c.Children.count(o) > 1 ? c.Children.only(null) : null;
5228
5230
  });
@@ -5249,36 +5251,36 @@ function Od(e) {
5249
5251
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
5250
5252
  }
5251
5253
  function Td(e) {
5252
- const t = e + "CollectionProvider", [n, r] = ri(t), [o, s] = n(
5254
+ const t = e + "CollectionProvider", [n, r] = oi(t), [o, s] = n(
5253
5255
  t,
5254
5256
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
5255
5257
  ), i = (m) => {
5256
- const { scope: b, children: x } = m, w = V.useRef(null), y = V.useRef(/* @__PURE__ */ new Map()).current;
5257
- return /* @__PURE__ */ h.jsx(o, { scope: b, itemMap: y, collectionRef: w, children: x });
5258
+ const { scope: b, children: x } = m, y = V.useRef(null), w = V.useRef(/* @__PURE__ */ new Map()).current;
5259
+ return /* @__PURE__ */ h.jsx(o, { scope: b, itemMap: w, collectionRef: y, children: x });
5258
5260
  };
5259
5261
  i.displayName = t;
5260
5262
  const a = e + "CollectionSlot", l = /* @__PURE__ */ Rn(a), u = V.forwardRef(
5261
5263
  (m, b) => {
5262
- const { scope: x, children: w } = m, y = s(a, x), C = Sn(b, y.collectionRef);
5263
- return /* @__PURE__ */ h.jsx(l, { ref: C, children: w });
5264
+ const { scope: x, children: y } = m, w = s(a, x), C = Sn(b, w.collectionRef);
5265
+ return /* @__PURE__ */ h.jsx(l, { ref: C, children: y });
5264
5266
  }
5265
5267
  );
5266
5268
  u.displayName = a;
5267
5269
  const f = e + "CollectionItemSlot", d = "data-radix-collection-item", p = /* @__PURE__ */ Rn(f), v = V.forwardRef(
5268
5270
  (m, b) => {
5269
- const { scope: x, children: w, ...y } = m, C = V.useRef(null), S = Sn(b, C), P = s(f, x);
5270
- return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...y }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: S, children: w });
5271
+ const { scope: x, children: y, ...w } = m, C = V.useRef(null), R = Sn(b, C), P = s(f, x);
5272
+ return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...w }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: R, children: y });
5271
5273
  }
5272
5274
  );
5273
5275
  v.displayName = f;
5274
5276
  function g(m) {
5275
5277
  const b = s(e + "CollectionConsumer", m);
5276
5278
  return V.useCallback(() => {
5277
- const w = b.collectionRef.current;
5278
- if (!w) return [];
5279
- const y = Array.from(w.querySelectorAll(`[${d}]`));
5279
+ const y = b.collectionRef.current;
5280
+ if (!y) return [];
5281
+ const w = Array.from(y.querySelectorAll(`[${d}]`));
5280
5282
  return Array.from(b.itemMap.values()).sort(
5281
- (P, R) => y.indexOf(P.ref.current) - y.indexOf(R.ref.current)
5283
+ (P, S) => w.indexOf(P.ref.current) - w.indexOf(S.ref.current)
5282
5284
  );
5283
5285
  }, [b.collectionRef, b.itemMap]);
5284
5286
  }
@@ -5288,12 +5290,12 @@ function Td(e) {
5288
5290
  r
5289
5291
  ];
5290
5292
  }
5291
- var si = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
5293
+ var ii = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
5292
5294
  }, Md = c[" useId ".trim().toString()] || (() => {
5293
5295
  }), Id = 0;
5294
5296
  function Nd(e) {
5295
5297
  const [t, n] = c.useState(Md());
5296
- return si(() => {
5298
+ return ii(() => {
5297
5299
  n((r) => r ?? String(Id++));
5298
5300
  }, [e]), t ? `radix-${t}` : "";
5299
5301
  }
@@ -5315,7 +5317,7 @@ var kd = [
5315
5317
  "span",
5316
5318
  "svg",
5317
5319
  "ul"
5318
- ], ii = kd.reduce((e, t) => {
5320
+ ], ai = kd.reduce((e, t) => {
5319
5321
  const n = /* @__PURE__ */ Rn(`Primitive.${t}`), r = c.forwardRef((o, s) => {
5320
5322
  const { asChild: i, ...a } = o, l = i ? n : t;
5321
5323
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h.jsx(l, { ...a, ref: s });
@@ -5331,7 +5333,7 @@ function $d(e) {
5331
5333
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
5332
5334
  }, []);
5333
5335
  }
5334
- var Dd = c[" useInsertionEffect ".trim().toString()] || si;
5336
+ var Dd = c[" useInsertionEffect ".trim().toString()] || ii;
5335
5337
  function jd({
5336
5338
  prop: e,
5337
5339
  defaultProp: t,
@@ -5385,13 +5387,13 @@ function Bd(e) {
5385
5387
  const t = c.useContext(Wd);
5386
5388
  return e || t || "ltr";
5387
5389
  }
5388
- var fn = "rovingFocusGroup.onEntryFocus", Ud = { bubbles: !1, cancelable: !0 }, ft = "RovingFocusGroup", [Pn, ai, Vd] = Td(ft), [zd, Vt] = ri(
5390
+ var fn = "rovingFocusGroup.onEntryFocus", Ud = { bubbles: !1, cancelable: !0 }, ft = "RovingFocusGroup", [Pn, ci, Vd] = Td(ft), [zd, Vt] = oi(
5389
5391
  ft,
5390
5392
  [Vd]
5391
- ), [Gd, Kd] = zd(ft), ci = c.forwardRef(
5393
+ ), [Gd, Kd] = zd(ft), li = c.forwardRef(
5392
5394
  (e, t) => /* @__PURE__ */ h.jsx(Pn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx(Pn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx(Hd, { ...e, ref: t }) }) })
5393
5395
  );
5394
- ci.displayName = ft;
5396
+ li.displayName = ft;
5395
5397
  var Hd = c.forwardRef((e, t) => {
5396
5398
  const {
5397
5399
  __scopeRovingFocusGroup: n,
@@ -5409,12 +5411,12 @@ var Hd = c.forwardRef((e, t) => {
5409
5411
  defaultProp: a ?? null,
5410
5412
  onChange: l,
5411
5413
  caller: ft
5412
- }), [x, w] = c.useState(!1), y = $d(u), C = ai(n), S = c.useRef(!1), [P, R] = c.useState(0);
5414
+ }), [x, y] = c.useState(!1), w = $d(u), C = ci(n), R = c.useRef(!1), [P, S] = c.useState(0);
5413
5415
  return c.useEffect(() => {
5414
5416
  const T = p.current;
5415
5417
  if (T)
5416
- return T.addEventListener(fn, y), () => T.removeEventListener(fn, y);
5417
- }, [y]), /* @__PURE__ */ h.jsx(
5418
+ return T.addEventListener(fn, w), () => T.removeEventListener(fn, w);
5419
+ }, [w]), /* @__PURE__ */ h.jsx(
5418
5420
  Gd,
5419
5421
  {
5420
5422
  scope: n,
@@ -5426,17 +5428,17 @@ var Hd = c.forwardRef((e, t) => {
5426
5428
  (T) => b(T),
5427
5429
  [b]
5428
5430
  ),
5429
- onItemShiftTab: c.useCallback(() => w(!0), []),
5431
+ onItemShiftTab: c.useCallback(() => y(!0), []),
5430
5432
  onFocusableItemAdd: c.useCallback(
5431
- () => R((T) => T + 1),
5433
+ () => S((T) => T + 1),
5432
5434
  []
5433
5435
  ),
5434
5436
  onFocusableItemRemove: c.useCallback(
5435
- () => R((T) => T - 1),
5437
+ () => S((T) => T - 1),
5436
5438
  []
5437
5439
  ),
5438
5440
  children: /* @__PURE__ */ h.jsx(
5439
- ii.div,
5441
+ ai.div,
5440
5442
  {
5441
5443
  tabIndex: x || P === 0 ? -1 : 0,
5442
5444
  "data-orientation": r,
@@ -5444,27 +5446,27 @@ var Hd = c.forwardRef((e, t) => {
5444
5446
  ref: v,
5445
5447
  style: { outline: "none", ...e.style },
5446
5448
  onMouseDown: Ke(e.onMouseDown, () => {
5447
- S.current = !0;
5449
+ R.current = !0;
5448
5450
  }),
5449
5451
  onFocus: Ke(e.onFocus, (T) => {
5450
- const k = !S.current;
5452
+ const k = !R.current;
5451
5453
  if (T.target === T.currentTarget && k && !x) {
5452
5454
  const I = new CustomEvent(fn, Ud);
5453
5455
  if (T.currentTarget.dispatchEvent(I), !I.defaultPrevented) {
5454
5456
  const L = C().filter(($) => $.focusable), W = L.find(($) => $.active), j = L.find(($) => $.id === m), G = [W, j, ...L].filter(
5455
5457
  Boolean
5456
5458
  ).map(($) => $.ref.current);
5457
- di(G, f);
5459
+ fi(G, f);
5458
5460
  }
5459
5461
  }
5460
- S.current = !1;
5462
+ R.current = !1;
5461
5463
  }),
5462
- onBlur: Ke(e.onBlur, () => w(!1))
5464
+ onBlur: Ke(e.onBlur, () => y(!1))
5463
5465
  }
5464
5466
  )
5465
5467
  }
5466
5468
  );
5467
- }), li = "RovingFocusGroupItem", ui = c.forwardRef(
5469
+ }), ui = "RovingFocusGroupItem", di = c.forwardRef(
5468
5470
  (e, t) => {
5469
5471
  const {
5470
5472
  __scopeRovingFocusGroup: n,
@@ -5473,7 +5475,7 @@ var Hd = c.forwardRef((e, t) => {
5473
5475
  tabStopId: s,
5474
5476
  children: i,
5475
5477
  ...a
5476
- } = e, l = Nd(), u = s || l, f = Kd(li, n), d = f.currentTabStopId === u, p = ai(n), { onFocusableItemAdd: v, onFocusableItemRemove: g, currentTabStopId: m } = f;
5478
+ } = e, l = Nd(), u = s || l, f = Kd(ui, n), d = f.currentTabStopId === u, p = ci(n), { onFocusableItemAdd: v, onFocusableItemRemove: g, currentTabStopId: m } = f;
5477
5479
  return c.useEffect(() => {
5478
5480
  if (r)
5479
5481
  return v(), () => g();
@@ -5485,7 +5487,7 @@ var Hd = c.forwardRef((e, t) => {
5485
5487
  focusable: r,
5486
5488
  active: o,
5487
5489
  children: /* @__PURE__ */ h.jsx(
5488
- ii.span,
5490
+ ai.span,
5489
5491
  {
5490
5492
  tabIndex: d ? 0 : -1,
5491
5493
  "data-orientation": f.orientation,
@@ -5505,14 +5507,14 @@ var Hd = c.forwardRef((e, t) => {
5505
5507
  if (x !== void 0) {
5506
5508
  if (b.metaKey || b.ctrlKey || b.altKey || b.shiftKey) return;
5507
5509
  b.preventDefault();
5508
- let y = p().filter((C) => C.focusable).map((C) => C.ref.current);
5509
- if (x === "last") y.reverse();
5510
+ let w = p().filter((C) => C.focusable).map((C) => C.ref.current);
5511
+ if (x === "last") w.reverse();
5510
5512
  else if (x === "prev" || x === "next") {
5511
- x === "prev" && y.reverse();
5512
- const C = y.indexOf(b.currentTarget);
5513
- y = f.loop ? Zd(y, C + 1) : y.slice(C + 1);
5513
+ x === "prev" && w.reverse();
5514
+ const C = w.indexOf(b.currentTarget);
5515
+ w = f.loop ? Zd(w, C + 1) : w.slice(C + 1);
5514
5516
  }
5515
- setTimeout(() => di(y));
5517
+ setTimeout(() => fi(w));
5516
5518
  }
5517
5519
  }),
5518
5520
  children: typeof i == "function" ? i({ isCurrentTabStop: d, hasTabStop: m != null }) : i
@@ -5522,7 +5524,7 @@ var Hd = c.forwardRef((e, t) => {
5522
5524
  );
5523
5525
  }
5524
5526
  );
5525
- ui.displayName = li;
5527
+ di.displayName = ui;
5526
5528
  var Yd = {
5527
5529
  ArrowLeft: "prev",
5528
5530
  ArrowUp: "prev",
@@ -5541,7 +5543,7 @@ function qd(e, t, n) {
5541
5543
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
5542
5544
  return Yd[r];
5543
5545
  }
5544
- function di(e, t = !1) {
5546
+ function fi(e, t = !1) {
5545
5547
  const n = document.activeElement;
5546
5548
  for (const r of e)
5547
5549
  if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
@@ -5549,17 +5551,17 @@ function di(e, t = !1) {
5549
5551
  function Zd(e, t) {
5550
5552
  return e.map((n, r) => e[(t + r) % e.length]);
5551
5553
  }
5552
- var fi = ci, pi = ui, An = ["Enter", " "], Jd = ["ArrowDown", "PageUp", "Home"], mi = ["ArrowUp", "PageDown", "End"], Qd = [...Jd, ...mi], ef = {
5554
+ var pi = li, mi = di, An = ["Enter", " "], Jd = ["ArrowDown", "PageUp", "Home"], vi = ["ArrowUp", "PageDown", "End"], Qd = [...Jd, ...vi], ef = {
5553
5555
  ltr: [...An, "ArrowRight"],
5554
5556
  rtl: [...An, "ArrowLeft"]
5555
5557
  }, tf = {
5556
5558
  ltr: ["ArrowLeft"],
5557
5559
  rtl: ["ArrowRight"]
5558
- }, pt = "Menu", [at, nf, rf] = Wu(pt), [je, vi] = tr(pt, [
5560
+ }, pt = "Menu", [at, nf, rf] = Wu(pt), [je, hi] = tr(pt, [
5559
5561
  rf,
5560
- Ks,
5562
+ Hs,
5561
5563
  Vt
5562
- ]), mt = Ks(), hi = Vt(), [gi, Te] = je(pt), [of, vt] = je(pt), bi = (e) => {
5564
+ ]), mt = Hs(), gi = Vt(), [bi, Te] = je(pt), [of, vt] = je(pt), xi = (e) => {
5563
5565
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = mt(t), [l, u] = c.useState(null), f = c.useRef(!1), d = xe(s), p = Uu(o);
5564
5566
  return c.useEffect(() => {
5565
5567
  const v = () => {
@@ -5568,8 +5570,8 @@ var fi = ci, pi = ui, An = ["Enter", " "], Jd = ["ArrowDown", "PageUp", "Home"],
5568
5570
  return document.addEventListener("keydown", v, { capture: !0 }), () => {
5569
5571
  document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
5570
5572
  };
5571
- }, []), /* @__PURE__ */ h.jsx(ti, { ...a, children: /* @__PURE__ */ h.jsx(
5572
- gi,
5573
+ }, []), /* @__PURE__ */ h.jsx(ni, { ...a, children: /* @__PURE__ */ h.jsx(
5574
+ bi,
5573
5575
  {
5574
5576
  scope: t,
5575
5577
  open: n,
@@ -5590,7 +5592,7 @@ var fi = ci, pi = ui, An = ["Enter", " "], Jd = ["ArrowDown", "PageUp", "Home"],
5590
5592
  }
5591
5593
  ) });
5592
5594
  };
5593
- bi.displayName = pt;
5595
+ xi.displayName = pt;
5594
5596
  var sf = "MenuAnchor", sr = c.forwardRef(
5595
5597
  (e, t) => {
5596
5598
  const { __scopeMenu: n, ...r } = e, o = mt(n);
@@ -5598,16 +5600,16 @@ var sf = "MenuAnchor", sr = c.forwardRef(
5598
5600
  }
5599
5601
  );
5600
5602
  sr.displayName = sf;
5601
- var ir = "MenuPortal", [af, xi] = je(ir, {
5603
+ var ir = "MenuPortal", [af, yi] = je(ir, {
5602
5604
  forceMount: void 0
5603
- }), yi = (e) => {
5605
+ }), wi = (e) => {
5604
5606
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(ir, t);
5605
- return /* @__PURE__ */ h.jsx(af, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(dt, { present: n || s.open, children: /* @__PURE__ */ h.jsx(ni, { asChild: !0, container: o, children: r }) }) });
5607
+ return /* @__PURE__ */ h.jsx(af, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(dt, { present: n || s.open, children: /* @__PURE__ */ h.jsx(ri, { asChild: !0, container: o, children: r }) }) });
5606
5608
  };
5607
- yi.displayName = ir;
5608
- var ne = "MenuContent", [cf, ar] = je(ne), wi = c.forwardRef(
5609
+ wi.displayName = ir;
5610
+ var ne = "MenuContent", [cf, ar] = je(ne), Ci = c.forwardRef(
5609
5611
  (e, t) => {
5610
- const n = xi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu);
5612
+ const n = yi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu);
5611
5613
  return /* @__PURE__ */ h.jsx(at.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ h.jsx(dt, { present: r || s.open, children: /* @__PURE__ */ h.jsx(at.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ h.jsx(lf, { ...o, ref: t }) : /* @__PURE__ */ h.jsx(uf, { ...o, ref: t }) }) }) });
5612
5614
  }
5613
5615
  ), lf = c.forwardRef(
@@ -5615,7 +5617,7 @@ var ne = "MenuContent", [cf, ar] = je(ne), wi = c.forwardRef(
5615
5617
  const n = Te(ne, e.__scopeMenu), r = c.useRef(null), o = ee(t, r);
5616
5618
  return c.useEffect(() => {
5617
5619
  const s = r.current;
5618
- if (s) return xs(s);
5620
+ if (s) return ys(s);
5619
5621
  }, []), /* @__PURE__ */ h.jsx(
5620
5622
  cr,
5621
5623
  {
@@ -5663,7 +5665,7 @@ var ne = "MenuContent", [cf, ar] = je(ne), wi = c.forwardRef(
5663
5665
  onDismiss: v,
5664
5666
  disableOutsideScroll: g,
5665
5667
  ...m
5666
- } = e, b = Te(ne, n), x = vt(ne, n), w = mt(n), y = hi(n), C = nf(n), [S, P] = c.useState(null), R = c.useRef(null), T = ee(t, R, b.onContentChange), k = c.useRef(0), I = c.useRef(""), L = c.useRef(0), W = c.useRef(null), j = c.useRef("right"), D = c.useRef(0), G = g ? Gn : c.Fragment, $ = g ? { as: df, allowPinchZoom: !0 } : void 0, F = (A) => {
5668
+ } = e, b = Te(ne, n), x = vt(ne, n), y = mt(n), w = gi(n), C = nf(n), [R, P] = c.useState(null), S = c.useRef(null), T = ee(t, S, b.onContentChange), k = c.useRef(0), I = c.useRef(""), L = c.useRef(0), W = c.useRef(null), j = c.useRef("right"), D = c.useRef(0), G = g ? Gn : c.Fragment, $ = g ? { as: df, allowPinchZoom: !0 } : void 0, F = (A) => {
5667
5669
  var X, B;
5668
5670
  const E = I.current + A, _ = C().filter((K) => !K.disabled), N = document.activeElement, U = (X = _.find((K) => K.ref.current === N)) == null ? void 0 : X.textValue, Y = _.map((K) => K.textValue), H = Ef(Y, E, U), Z = (B = _.find((K) => K.textValue === H)) == null ? void 0 : B.ref.current;
5669
5671
  (function K(te) {
@@ -5689,7 +5691,7 @@ var ne = "MenuContent", [cf, ar] = je(ne), wi = c.forwardRef(
5689
5691
  onItemLeave: c.useCallback(
5690
5692
  (A) => {
5691
5693
  var E;
5692
- M(A) || ((E = R.current) == null || E.focus(), P(null));
5694
+ M(A) || ((E = S.current) == null || E.focus(), P(null));
5693
5695
  },
5694
5696
  [M]
5695
5697
  ),
@@ -5704,17 +5706,17 @@ var ne = "MenuContent", [cf, ar] = je(ne), wi = c.forwardRef(
5704
5706
  W.current = A;
5705
5707
  }, []),
5706
5708
  children: /* @__PURE__ */ h.jsx(G, { ...$, children: /* @__PURE__ */ h.jsx(
5707
- Us,
5709
+ Vs,
5708
5710
  {
5709
5711
  asChild: !0,
5710
5712
  trapped: o,
5711
5713
  onMountAutoFocus: z(s, (A) => {
5712
5714
  var E;
5713
- A.preventDefault(), (E = R.current) == null || E.focus({ preventScroll: !0 });
5715
+ A.preventDefault(), (E = S.current) == null || E.focus({ preventScroll: !0 });
5714
5716
  }),
5715
5717
  onUnmountAutoFocus: i,
5716
5718
  children: /* @__PURE__ */ h.jsx(
5717
- Ws,
5719
+ Bs,
5718
5720
  {
5719
5721
  asChild: !0,
5720
5722
  disableOutsidePointerEvents: a,
@@ -5724,14 +5726,14 @@ var ne = "MenuContent", [cf, ar] = je(ne), wi = c.forwardRef(
5724
5726
  onInteractOutside: p,
5725
5727
  onDismiss: v,
5726
5728
  children: /* @__PURE__ */ h.jsx(
5727
- fi,
5729
+ pi,
5728
5730
  {
5729
5731
  asChild: !0,
5730
- ...y,
5732
+ ...w,
5731
5733
  dir: x.dir,
5732
5734
  orientation: "vertical",
5733
5735
  loop: r,
5734
- currentTabStopId: S,
5736
+ currentTabStopId: R,
5735
5737
  onCurrentTabStopIdChange: P,
5736
5738
  onEntryFocus: z(l, (A) => {
5737
5739
  x.isUsingKeyboardRef.current || A.preventDefault();
@@ -5742,21 +5744,21 @@ var ne = "MenuContent", [cf, ar] = je(ne), wi = c.forwardRef(
5742
5744
  {
5743
5745
  role: "menu",
5744
5746
  "aria-orientation": "vertical",
5745
- "data-state": Li(b.open),
5747
+ "data-state": Fi(b.open),
5746
5748
  "data-radix-menu-content": "",
5747
5749
  dir: x.dir,
5748
- ...w,
5750
+ ...y,
5749
5751
  ...m,
5750
5752
  ref: T,
5751
5753
  style: { outline: "none", ...m.style },
5752
5754
  onKeyDown: z(m.onKeyDown, (A) => {
5753
5755
  const _ = A.target.closest("[data-radix-menu-content]") === A.currentTarget, N = A.ctrlKey || A.altKey || A.metaKey, U = A.key.length === 1;
5754
5756
  _ && (A.key === "Tab" && A.preventDefault(), !N && U && F(A.key));
5755
- const Y = R.current;
5757
+ const Y = S.current;
5756
5758
  if (A.target !== Y || !Qd.includes(A.key)) return;
5757
5759
  A.preventDefault();
5758
5760
  const Z = C().filter((X) => !X.disabled).map((X) => X.ref.current);
5759
- mi.includes(A.key) && Z.reverse(), wf(Z);
5761
+ vi.includes(A.key) && Z.reverse(), wf(Z);
5760
5762
  }),
5761
5763
  onBlur: z(e.onBlur, (A) => {
5762
5764
  A.currentTarget.contains(A.target) || (window.clearTimeout(k.current), I.current = "");
@@ -5783,7 +5785,7 @@ var ne = "MenuContent", [cf, ar] = je(ne), wi = c.forwardRef(
5783
5785
  );
5784
5786
  }
5785
5787
  );
5786
- wi.displayName = ne;
5788
+ Ci.displayName = ne;
5787
5789
  var ff = "MenuGroup", lr = c.forwardRef(
5788
5790
  (e, t) => {
5789
5791
  const { __scopeMenu: n, ...r } = e;
@@ -5791,24 +5793,24 @@ var ff = "MenuGroup", lr = c.forwardRef(
5791
5793
  }
5792
5794
  );
5793
5795
  lr.displayName = ff;
5794
- var pf = "MenuLabel", Ci = c.forwardRef(
5796
+ var pf = "MenuLabel", Ei = c.forwardRef(
5795
5797
  (e, t) => {
5796
5798
  const { __scopeMenu: n, ...r } = e;
5797
5799
  return /* @__PURE__ */ h.jsx(re.div, { ...r, ref: t });
5798
5800
  }
5799
5801
  );
5800
- Ci.displayName = pf;
5801
- var kt = "MenuItem", xo = "menu.itemSelect", zt = c.forwardRef(
5802
+ Ei.displayName = pf;
5803
+ var kt = "MenuItem", yo = "menu.itemSelect", zt = c.forwardRef(
5802
5804
  (e, t) => {
5803
5805
  const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = vt(kt, e.__scopeMenu), a = ar(kt, e.__scopeMenu), l = ee(t, s), u = c.useRef(!1), f = () => {
5804
5806
  const d = s.current;
5805
5807
  if (!n && d) {
5806
- const p = new CustomEvent(xo, { bubbles: !0, cancelable: !0 });
5807
- d.addEventListener(xo, (v) => r == null ? void 0 : r(v), { once: !0 }), Ls(d, p), p.defaultPrevented ? u.current = !1 : i.onClose();
5808
+ const p = new CustomEvent(yo, { bubbles: !0, cancelable: !0 });
5809
+ d.addEventListener(yo, (v) => r == null ? void 0 : r(v), { once: !0 }), Fs(d, p), p.defaultPrevented ? u.current = !1 : i.onClose();
5808
5810
  }
5809
5811
  };
5810
5812
  return /* @__PURE__ */ h.jsx(
5811
- Ei,
5813
+ Si,
5812
5814
  {
5813
5815
  ...o,
5814
5816
  ref: l,
@@ -5831,9 +5833,9 @@ var kt = "MenuItem", xo = "menu.itemSelect", zt = c.forwardRef(
5831
5833
  }
5832
5834
  );
5833
5835
  zt.displayName = kt;
5834
- var Ei = c.forwardRef(
5836
+ var Si = c.forwardRef(
5835
5837
  (e, t) => {
5836
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = ar(kt, n), a = hi(n), l = c.useRef(null), u = ee(t, l), [f, d] = c.useState(!1), [p, v] = c.useState("");
5838
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = ar(kt, n), a = gi(n), l = c.useRef(null), u = ee(t, l), [f, d] = c.useState(!1), [p, v] = c.useState("");
5837
5839
  return c.useEffect(() => {
5838
5840
  const g = l.current;
5839
5841
  g && v((g.textContent ?? "").trim());
@@ -5843,7 +5845,7 @@ var Ei = c.forwardRef(
5843
5845
  scope: n,
5844
5846
  disabled: r,
5845
5847
  textValue: o ?? p,
5846
- children: /* @__PURE__ */ h.jsx(pi, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ h.jsx(
5848
+ children: /* @__PURE__ */ h.jsx(mi, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ h.jsx(
5847
5849
  re.div,
5848
5850
  {
5849
5851
  role: "menuitem",
@@ -5869,10 +5871,10 @@ var Ei = c.forwardRef(
5869
5871
  }
5870
5872
  );
5871
5873
  }
5872
- ), mf = "MenuCheckboxItem", Si = c.forwardRef(
5874
+ ), mf = "MenuCheckboxItem", Ri = c.forwardRef(
5873
5875
  (e, t) => {
5874
5876
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
5875
- return /* @__PURE__ */ h.jsx(Oi, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ h.jsx(
5877
+ return /* @__PURE__ */ h.jsx(Ti, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ h.jsx(
5876
5878
  zt,
5877
5879
  {
5878
5880
  role: "menuitemcheckbox",
@@ -5889,22 +5891,22 @@ var Ei = c.forwardRef(
5889
5891
  ) });
5890
5892
  }
5891
5893
  );
5892
- Si.displayName = mf;
5893
- var Ri = "MenuRadioGroup", [vf, hf] = je(
5894
- Ri,
5894
+ Ri.displayName = mf;
5895
+ var Pi = "MenuRadioGroup", [vf, hf] = je(
5896
+ Pi,
5895
5897
  { value: void 0, onValueChange: () => {
5896
5898
  } }
5897
- ), Pi = c.forwardRef(
5899
+ ), Ai = c.forwardRef(
5898
5900
  (e, t) => {
5899
5901
  const { value: n, onValueChange: r, ...o } = e, s = xe(r);
5900
5902
  return /* @__PURE__ */ h.jsx(vf, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ h.jsx(lr, { ...o, ref: t }) });
5901
5903
  }
5902
5904
  );
5903
- Pi.displayName = Ri;
5904
- var Ai = "MenuRadioItem", _i = c.forwardRef(
5905
+ Ai.displayName = Pi;
5906
+ var _i = "MenuRadioItem", Oi = c.forwardRef(
5905
5907
  (e, t) => {
5906
- const { value: n, ...r } = e, o = hf(Ai, e.__scopeMenu), s = n === o.value;
5907
- return /* @__PURE__ */ h.jsx(Oi, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ h.jsx(
5908
+ const { value: n, ...r } = e, o = hf(_i, e.__scopeMenu), s = n === o.value;
5909
+ return /* @__PURE__ */ h.jsx(Ti, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ h.jsx(
5908
5910
  zt,
5909
5911
  {
5910
5912
  role: "menuitemradio",
@@ -5924,11 +5926,11 @@ var Ai = "MenuRadioItem", _i = c.forwardRef(
5924
5926
  ) });
5925
5927
  }
5926
5928
  );
5927
- _i.displayName = Ai;
5928
- var ur = "MenuItemIndicator", [Oi, gf] = je(
5929
+ Oi.displayName = _i;
5930
+ var ur = "MenuItemIndicator", [Ti, gf] = je(
5929
5931
  ur,
5930
5932
  { checked: !1 }
5931
- ), Ti = c.forwardRef(
5933
+ ), Mi = c.forwardRef(
5932
5934
  (e, t) => {
5933
5935
  const { __scopeMenu: n, forceMount: r, ...o } = e, s = gf(ur, n);
5934
5936
  return /* @__PURE__ */ h.jsx(
@@ -5947,8 +5949,8 @@ var ur = "MenuItemIndicator", [Oi, gf] = je(
5947
5949
  );
5948
5950
  }
5949
5951
  );
5950
- Ti.displayName = ur;
5951
- var bf = "MenuSeparator", Mi = c.forwardRef(
5952
+ Mi.displayName = ur;
5953
+ var bf = "MenuSeparator", Ii = c.forwardRef(
5952
5954
  (e, t) => {
5953
5955
  const { __scopeMenu: n, ...r } = e;
5954
5956
  return /* @__PURE__ */ h.jsx(
@@ -5962,18 +5964,18 @@ var bf = "MenuSeparator", Mi = c.forwardRef(
5962
5964
  );
5963
5965
  }
5964
5966
  );
5965
- Mi.displayName = bf;
5966
- var xf = "MenuArrow", Ii = c.forwardRef(
5967
+ Ii.displayName = bf;
5968
+ var xf = "MenuArrow", Ni = c.forwardRef(
5967
5969
  (e, t) => {
5968
5970
  const { __scopeMenu: n, ...r } = e, o = mt(n);
5969
5971
  return /* @__PURE__ */ h.jsx(xd, { ...o, ...r, ref: t });
5970
5972
  }
5971
5973
  );
5972
- Ii.displayName = xf;
5973
- var dr = "MenuSub", [yf, Ni] = je(dr), ki = (e) => {
5974
+ Ni.displayName = xf;
5975
+ var dr = "MenuSub", [yf, ki] = je(dr), $i = (e) => {
5974
5976
  const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(dr, t), i = mt(t), [a, l] = c.useState(null), [u, f] = c.useState(null), d = xe(o);
5975
- return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ h.jsx(ti, { ...i, children: /* @__PURE__ */ h.jsx(
5976
- gi,
5977
+ return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ h.jsx(ni, { ...i, children: /* @__PURE__ */ h.jsx(
5978
+ bi,
5977
5979
  {
5978
5980
  scope: t,
5979
5981
  open: r,
@@ -5984,8 +5986,8 @@ var dr = "MenuSub", [yf, Ni] = je(dr), ki = (e) => {
5984
5986
  yf,
5985
5987
  {
5986
5988
  scope: t,
5987
- contentId: go(),
5988
- triggerId: go(),
5989
+ contentId: bo(),
5990
+ triggerId: bo(),
5989
5991
  trigger: a,
5990
5992
  onTriggerChange: l,
5991
5993
  children: n
@@ -5994,10 +5996,10 @@ var dr = "MenuSub", [yf, Ni] = je(dr), ki = (e) => {
5994
5996
  }
5995
5997
  ) });
5996
5998
  };
5997
- ki.displayName = dr;
5998
- var rt = "MenuSubTrigger", $i = c.forwardRef(
5999
+ $i.displayName = dr;
6000
+ var rt = "MenuSubTrigger", Di = c.forwardRef(
5999
6001
  (e, t) => {
6000
- const n = Te(rt, e.__scopeMenu), r = vt(rt, e.__scopeMenu), o = Ni(rt, e.__scopeMenu), s = ar(rt, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, u = { __scopeMenu: e.__scopeMenu }, f = c.useCallback(() => {
6002
+ const n = Te(rt, e.__scopeMenu), r = vt(rt, e.__scopeMenu), o = ki(rt, e.__scopeMenu), s = ar(rt, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, u = { __scopeMenu: e.__scopeMenu }, f = c.useCallback(() => {
6001
6003
  i.current && window.clearTimeout(i.current), i.current = null;
6002
6004
  }, []);
6003
6005
  return c.useEffect(() => f, [f]), c.useEffect(() => {
@@ -6006,13 +6008,13 @@ var rt = "MenuSubTrigger", $i = c.forwardRef(
6006
6008
  window.clearTimeout(d), l(null);
6007
6009
  };
6008
6010
  }, [a, l]), /* @__PURE__ */ h.jsx(sr, { asChild: !0, ...u, children: /* @__PURE__ */ h.jsx(
6009
- Ei,
6011
+ Si,
6010
6012
  {
6011
6013
  id: o.triggerId,
6012
6014
  "aria-haspopup": "menu",
6013
6015
  "aria-expanded": n.open,
6014
6016
  "aria-controls": o.contentId,
6015
- "data-state": Li(n.open),
6017
+ "data-state": Fi(n.open),
6016
6018
  ...e,
6017
6019
  ref: nr(t, o.onTriggerChange),
6018
6020
  onClick: (d) => {
@@ -6034,16 +6036,16 @@ var rt = "MenuSubTrigger", $i = c.forwardRef(
6034
6036
  f();
6035
6037
  const p = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
6036
6038
  if (p) {
6037
- const m = (g = n.content) == null ? void 0 : g.dataset.side, b = m === "right", x = b ? -5 : 5, w = p[b ? "left" : "right"], y = p[b ? "right" : "left"];
6039
+ const m = (g = n.content) == null ? void 0 : g.dataset.side, b = m === "right", x = b ? -5 : 5, y = p[b ? "left" : "right"], w = p[b ? "right" : "left"];
6038
6040
  s.onPointerGraceIntentChange({
6039
6041
  area: [
6040
6042
  // Apply a bleed on clientX to ensure that our exit point is
6041
6043
  // consistently within polygon bounds
6042
6044
  { x: d.clientX + x, y: d.clientY },
6043
- { x: w, y: p.top },
6044
6045
  { x: y, y: p.top },
6045
- { x: y, y: p.bottom },
6046
- { x: w, y: p.bottom }
6046
+ { x: w, y: p.top },
6047
+ { x: w, y: p.bottom },
6048
+ { x: y, y: p.bottom }
6047
6049
  ],
6048
6050
  side: m
6049
6051
  }), window.clearTimeout(a.current), a.current = window.setTimeout(
@@ -6065,10 +6067,10 @@ var rt = "MenuSubTrigger", $i = c.forwardRef(
6065
6067
  ) });
6066
6068
  }
6067
6069
  );
6068
- $i.displayName = rt;
6069
- var Di = "MenuSubContent", ji = c.forwardRef(
6070
+ Di.displayName = rt;
6071
+ var ji = "MenuSubContent", Li = c.forwardRef(
6070
6072
  (e, t) => {
6071
- const n = xi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu), a = Ni(Di, e.__scopeMenu), l = c.useRef(null), u = ee(t, l);
6073
+ const n = yi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu), a = ki(ji, e.__scopeMenu), l = c.useRef(null), u = ee(t, l);
6072
6074
  return /* @__PURE__ */ h.jsx(at.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ h.jsx(dt, { present: r || s.open, children: /* @__PURE__ */ h.jsx(at.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ h.jsx(
6073
6075
  cr,
6074
6076
  {
@@ -6101,8 +6103,8 @@ var Di = "MenuSubContent", ji = c.forwardRef(
6101
6103
  ) }) }) });
6102
6104
  }
6103
6105
  );
6104
- ji.displayName = Di;
6105
- function Li(e) {
6106
+ Li.displayName = ji;
6107
+ function Fi(e) {
6106
6108
  return e ? "open" : "closed";
6107
6109
  }
6108
6110
  function $t(e) {
@@ -6145,18 +6147,18 @@ function Rf(e, t) {
6145
6147
  function ct(e) {
6146
6148
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
6147
6149
  }
6148
- var Pf = bi, Af = sr, _f = yi, Of = wi, Tf = lr, Mf = Ci, If = zt, Nf = Si, kf = Pi, $f = _i, Df = Ti, jf = Mi, Lf = Ii, Ff = ki, Wf = $i, Bf = ji, Uf = c[" useId ".trim().toString()] || (() => {
6150
+ var Pf = xi, Af = sr, _f = wi, Of = Ci, Tf = lr, Mf = Ei, If = zt, Nf = Ri, kf = Ai, $f = Oi, Df = Mi, jf = Ii, Lf = Ni, Ff = $i, Wf = Di, Bf = Li, Uf = c[" useId ".trim().toString()] || (() => {
6149
6151
  }), Vf = 0;
6150
- function yo(e) {
6152
+ function wo(e) {
6151
6153
  const [t, n] = c.useState(Uf());
6152
- return Ds(() => {
6154
+ return js(() => {
6153
6155
  n((r) => r ?? String(Vf++));
6154
6156
  }, [e]), e || (t ? `radix-${t}` : "");
6155
6157
  }
6156
6158
  var Gt = "DropdownMenu", [zf, Gf] = wu(
6157
6159
  Gt,
6158
- [vi]
6159
- ), q = vi(), [Kf, Fi] = zf(Gt), pr = (e) => {
6160
+ [hi]
6161
+ ), q = hi(), [Kf, Wi] = zf(Gt), pr = (e) => {
6160
6162
  const {
6161
6163
  __scopeDropdownMenu: t,
6162
6164
  children: n,
@@ -6165,7 +6167,7 @@ var Gt = "DropdownMenu", [zf, Gf] = wu(
6165
6167
  defaultOpen: s,
6166
6168
  onOpenChange: i,
6167
6169
  modal: a = !0
6168
- } = e, l = q(t), u = c.useRef(null), [f, d] = js({
6170
+ } = e, l = q(t), u = c.useRef(null), [f, d] = Ls({
6169
6171
  prop: o,
6170
6172
  defaultProp: s ?? !1,
6171
6173
  onChange: i,
@@ -6175,9 +6177,9 @@ var Gt = "DropdownMenu", [zf, Gf] = wu(
6175
6177
  Kf,
6176
6178
  {
6177
6179
  scope: t,
6178
- triggerId: yo(),
6180
+ triggerId: wo(),
6179
6181
  triggerRef: u,
6180
- contentId: yo(),
6182
+ contentId: wo(),
6181
6183
  open: f,
6182
6184
  onOpenChange: d,
6183
6185
  onOpenToggle: c.useCallback(() => d((p) => !p), [d]),
@@ -6187,9 +6189,9 @@ var Gt = "DropdownMenu", [zf, Gf] = wu(
6187
6189
  );
6188
6190
  };
6189
6191
  pr.displayName = Gt;
6190
- var Wi = "DropdownMenuTrigger", mr = c.forwardRef(
6192
+ var Bi = "DropdownMenuTrigger", mr = c.forwardRef(
6191
6193
  (e, t) => {
6192
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Fi(Wi, n), i = q(n);
6194
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Wi(Bi, n), i = q(n);
6193
6195
  return /* @__PURE__ */ h.jsx(Af, { asChild: !0, ...i, children: /* @__PURE__ */ h.jsx(
6194
6196
  Nu.button,
6195
6197
  {
@@ -6202,7 +6204,7 @@ var Wi = "DropdownMenuTrigger", mr = c.forwardRef(
6202
6204
  "data-disabled": r ? "" : void 0,
6203
6205
  disabled: r,
6204
6206
  ...o,
6205
- ref: $s(t, s.triggerRef),
6207
+ ref: Ds(t, s.triggerRef),
6206
6208
  onPointerDown: It(e.onPointerDown, (a) => {
6207
6209
  !r && a.button === 0 && a.ctrlKey === !1 && (s.onOpenToggle(), s.open || a.preventDefault());
6208
6210
  }),
@@ -6213,15 +6215,15 @@ var Wi = "DropdownMenuTrigger", mr = c.forwardRef(
6213
6215
  ) });
6214
6216
  }
6215
6217
  );
6216
- mr.displayName = Wi;
6218
+ mr.displayName = Bi;
6217
6219
  var Hf = "DropdownMenuPortal", vr = (e) => {
6218
6220
  const { __scopeDropdownMenu: t, ...n } = e, r = q(t);
6219
6221
  return /* @__PURE__ */ h.jsx(_f, { ...r, ...n });
6220
6222
  };
6221
6223
  vr.displayName = Hf;
6222
- var Bi = "DropdownMenuContent", hr = c.forwardRef(
6224
+ var Ui = "DropdownMenuContent", hr = c.forwardRef(
6223
6225
  (e, t) => {
6224
- const { __scopeDropdownMenu: n, ...r } = e, o = Fi(Bi, n), s = q(n), i = c.useRef(!1);
6226
+ const { __scopeDropdownMenu: n, ...r } = e, o = Wi(Ui, n), s = q(n), i = c.useRef(!1);
6225
6227
  return /* @__PURE__ */ h.jsx(
6226
6228
  Of,
6227
6229
  {
@@ -6250,7 +6252,7 @@ var Bi = "DropdownMenuContent", hr = c.forwardRef(
6250
6252
  );
6251
6253
  }
6252
6254
  );
6253
- hr.displayName = Bi;
6255
+ hr.displayName = Ui;
6254
6256
  var Yf = "DropdownMenuGroup", gr = c.forwardRef(
6255
6257
  (e, t) => {
6256
6258
  const { __scopeDropdownMenu: n, ...r } = e, o = q(n);
@@ -6304,8 +6306,8 @@ var np = "DropdownMenuArrow", Rr = c.forwardRef(
6304
6306
  }
6305
6307
  );
6306
6308
  Rr.displayName = np;
6307
- var Ui = (e) => {
6308
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = q(t), [a, l] = js({
6309
+ var Vi = (e) => {
6310
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = q(t), [a, l] = Ls({
6309
6311
  prop: r,
6310
6312
  defaultProp: s ?? !1,
6311
6313
  onChange: o,
@@ -6337,7 +6339,7 @@ var op = "DropdownMenuSubContent", Ar = c.forwardRef((e, t) => {
6337
6339
  );
6338
6340
  });
6339
6341
  Ar.displayName = op;
6340
- var sp = pr, ip = mr, ap = vr, cp = hr, lp = gr, Vi = br, up = xr, dp = yr, fp = wr, zi = Cr, Gi = Er, Ki = Sr, pp = Rr, mp = Ui, Hi = Pr, Yi = Ar;
6342
+ var sp = pr, ip = mr, ap = vr, cp = hr, lp = gr, zi = br, up = xr, dp = yr, fp = wr, Gi = Cr, Ki = Er, Hi = Sr, pp = Rr, mp = Vi, Yi = Pr, Xi = Ar;
6341
6343
  const vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6342
6344
  __proto__: null,
6343
6345
  Arrow: pp,
@@ -6355,29 +6357,29 @@ const vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6355
6357
  DropdownMenuRadioGroup: wr,
6356
6358
  DropdownMenuRadioItem: Cr,
6357
6359
  DropdownMenuSeparator: Sr,
6358
- DropdownMenuSub: Ui,
6360
+ DropdownMenuSub: Vi,
6359
6361
  DropdownMenuSubContent: Ar,
6360
6362
  DropdownMenuSubTrigger: Pr,
6361
6363
  DropdownMenuTrigger: mr,
6362
6364
  Group: lp,
6363
6365
  Item: up,
6364
- ItemIndicator: Gi,
6365
- Label: Vi,
6366
+ ItemIndicator: Ki,
6367
+ Label: zi,
6366
6368
  Portal: ap,
6367
6369
  RadioGroup: fp,
6368
- RadioItem: zi,
6370
+ RadioItem: Gi,
6369
6371
  Root: sp,
6370
- Separator: Ki,
6372
+ Separator: Hi,
6371
6373
  Sub: mp,
6372
- SubContent: Yi,
6373
- SubTrigger: Hi,
6374
+ SubContent: Xi,
6375
+ SubTrigger: Yi,
6374
6376
  Trigger: ip,
6375
6377
  createDropdownMenuScope: Gf
6376
6378
  }, Symbol.toStringTag, { value: "Module" })), {
6377
- CheckboxItem: Xi,
6378
- Content: qi,
6379
+ CheckboxItem: qi,
6380
+ Content: Zi,
6379
6381
  SubContent: hp,
6380
- Item: Zi,
6382
+ Item: Ji,
6381
6383
  ItemIndicator: gp,
6382
6384
  Portal: bp,
6383
6385
  Root: xp,
@@ -6387,7 +6389,7 @@ const vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6387
6389
  Label: Ep,
6388
6390
  Separator: Sp
6389
6391
  } = vp, Km = xp, Hm = yp, Rp = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ h.jsxs(
6390
- Hi,
6392
+ Yi,
6391
6393
  {
6392
6394
  ref: o,
6393
6395
  className: O(
@@ -6404,7 +6406,7 @@ const vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6404
6406
  ));
6405
6407
  Rp.displayName = wp.displayName;
6406
6408
  const Pp = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ h.jsx(bp, { children: /* @__PURE__ */ h.jsx(
6407
- qi,
6409
+ Zi,
6408
6410
  {
6409
6411
  ref: r,
6410
6412
  sideOffset: t,
@@ -6416,9 +6418,9 @@ const Pp = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
6416
6418
  ...n
6417
6419
  }
6418
6420
  ) }));
6419
- Pp.displayName = qi.displayName;
6421
+ Pp.displayName = Zi.displayName;
6420
6422
  const Ap = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6421
- Yi,
6423
+ Xi,
6422
6424
  {
6423
6425
  ref: n,
6424
6426
  className: O(
@@ -6430,7 +6432,7 @@ const Ap = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6430
6432
  ));
6431
6433
  Ap.displayName = hp.displayName;
6432
6434
  const _p = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ h.jsx(
6433
- Zi,
6435
+ Ji,
6434
6436
  {
6435
6437
  ref: r,
6436
6438
  className: O(
@@ -6441,9 +6443,9 @@ const _p = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
6441
6443
  ...n
6442
6444
  }
6443
6445
  ));
6444
- _p.displayName = Zi.displayName;
6446
+ _p.displayName = Ji.displayName;
6445
6447
  const Op = c.forwardRef(({ checked: e, children: t, className: n, ...r }, o) => /* @__PURE__ */ h.jsxs(
6446
- Xi,
6448
+ qi,
6447
6449
  {
6448
6450
  ref: o,
6449
6451
  className: O(
@@ -6458,9 +6460,9 @@ const Op = c.forwardRef(({ checked: e, children: t, className: n, ...r }, o) =>
6458
6460
  ]
6459
6461
  }
6460
6462
  ));
6461
- Op.displayName = Xi.displayName;
6463
+ Op.displayName = qi.displayName;
6462
6464
  const Tp = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h.jsxs(
6463
- zi,
6465
+ Gi,
6464
6466
  {
6465
6467
  ref: r,
6466
6468
  className: O(
@@ -6469,14 +6471,14 @@ const Tp = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
6469
6471
  ),
6470
6472
  ...n,
6471
6473
  children: [
6472
- /* @__PURE__ */ h.jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ h.jsx(Gi, { children: /* @__PURE__ */ h.jsx(Oa, { className: "size-2 fill-current" }) }) }),
6474
+ /* @__PURE__ */ h.jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ h.jsx(Ki, { children: /* @__PURE__ */ h.jsx(Oa, { className: "size-2 fill-current" }) }) }),
6473
6475
  t
6474
6476
  ]
6475
6477
  }
6476
6478
  ));
6477
6479
  Tp.displayName = Cp.displayName;
6478
6480
  const Mp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ h.jsx(
6479
- Vi,
6481
+ zi,
6480
6482
  {
6481
6483
  ref: r,
6482
6484
  className: O(
@@ -6489,7 +6491,7 @@ const Mp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
6489
6491
  ));
6490
6492
  Mp.displayName = Ep.displayName;
6491
6493
  const Ip = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6492
- Ki,
6494
+ Hi,
6493
6495
  {
6494
6496
  ref: n,
6495
6497
  className: O(
@@ -6556,40 +6558,40 @@ function kp(...e) {
6556
6558
  };
6557
6559
  return n.scopeName = t.scopeName, n;
6558
6560
  }
6559
- function wo(e, t) {
6561
+ function Co(e, t) {
6560
6562
  if (typeof e == "function")
6561
6563
  return e(t);
6562
6564
  e != null && (e.current = t);
6563
6565
  }
6564
- function Ji(...e) {
6566
+ function Qi(...e) {
6565
6567
  return (t) => {
6566
6568
  let n = !1;
6567
6569
  const r = e.map((o) => {
6568
- const s = wo(o, t);
6570
+ const s = Co(o, t);
6569
6571
  return !n && typeof s == "function" && (n = !0), s;
6570
6572
  });
6571
6573
  if (n)
6572
6574
  return () => {
6573
6575
  for (let o = 0; o < r.length; o++) {
6574
6576
  const s = r[o];
6575
- typeof s == "function" ? s() : wo(e[o], null);
6577
+ typeof s == "function" ? s() : Co(e[o], null);
6576
6578
  }
6577
6579
  };
6578
6580
  };
6579
6581
  }
6580
6582
  function $p(...e) {
6581
- return c.useCallback(Ji(...e), e);
6583
+ return c.useCallback(Qi(...e), e);
6582
6584
  }
6583
6585
  var Dt = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
6584
6586
  };
6585
6587
  function Dp(e, t) {
6586
6588
  return c.useReducer((n, r) => t[n][r] ?? n, e);
6587
6589
  }
6588
- var Qi = (e) => {
6590
+ var ea = (e) => {
6589
6591
  const { present: t, children: n } = e, r = jp(t), o = typeof n == "function" ? n({ present: r.isPresent }) : c.Children.only(n), s = $p(r.ref, Lp(o));
6590
6592
  return typeof n == "function" || r.isPresent ? c.cloneElement(o, { ref: s }) : null;
6591
6593
  };
6592
- Qi.displayName = "Presence";
6594
+ ea.displayName = "Presence";
6593
6595
  function jp(e) {
6594
6596
  const [t, n] = c.useState(), r = c.useRef(null), o = c.useRef(e), s = c.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] = Dp(i, {
6595
6597
  mounted: {
@@ -6665,7 +6667,7 @@ function Wp(e) {
6665
6667
  const { children: o, ...s } = n;
6666
6668
  if (c.isValidElement(o)) {
6667
6669
  const i = zp(o), a = Vp(s, o.props);
6668
- return o.type !== c.Fragment && (a.ref = r ? Ji(r, i) : i), c.cloneElement(o, a);
6670
+ return o.type !== c.Fragment && (a.ref = r ? Qi(r, i) : i), c.cloneElement(o, a);
6669
6671
  }
6670
6672
  return c.Children.count(o) > 1 ? c.Children.only(null) : null;
6671
6673
  });
@@ -6779,7 +6781,7 @@ function em(e) {
6779
6781
  }
6780
6782
  var Ht = "Tabs", [tm, nm] = Np(Ht, [
6781
6783
  Vt
6782
- ]), ea = Vt(), [rm, _r] = tm(Ht), Or = c.forwardRef(
6784
+ ]), ta = Vt(), [rm, _r] = tm(Ht), Or = c.forwardRef(
6783
6785
  (e, t) => {
6784
6786
  const {
6785
6787
  __scopeTabs: n,
@@ -6820,11 +6822,11 @@ var Ht = "Tabs", [tm, nm] = Np(Ht, [
6820
6822
  }
6821
6823
  );
6822
6824
  Or.displayName = Ht;
6823
- var ta = "TabsList", Tr = c.forwardRef(
6825
+ var na = "TabsList", Tr = c.forwardRef(
6824
6826
  (e, t) => {
6825
- const { __scopeTabs: n, loop: r = !0, ...o } = e, s = _r(ta, n), i = ea(n);
6827
+ const { __scopeTabs: n, loop: r = !0, ...o } = e, s = _r(na, n), i = ta(n);
6826
6828
  return /* @__PURE__ */ h.jsx(
6827
- fi,
6829
+ pi,
6828
6830
  {
6829
6831
  asChild: !0,
6830
6832
  ...i,
@@ -6844,12 +6846,12 @@ var ta = "TabsList", Tr = c.forwardRef(
6844
6846
  );
6845
6847
  }
6846
6848
  );
6847
- Tr.displayName = ta;
6848
- var na = "TabsTrigger", Mr = c.forwardRef(
6849
+ Tr.displayName = na;
6850
+ var ra = "TabsTrigger", Mr = c.forwardRef(
6849
6851
  (e, t) => {
6850
- const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, i = _r(na, n), a = ea(n), l = oa(i.baseId, r), u = sa(i.baseId, r), f = r === i.value;
6852
+ const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, i = _r(ra, n), a = ta(n), l = sa(i.baseId, r), u = ia(i.baseId, r), f = r === i.value;
6851
6853
  return /* @__PURE__ */ h.jsx(
6852
- pi,
6854
+ mi,
6853
6855
  {
6854
6856
  asChild: !0,
6855
6857
  ...a,
@@ -6884,14 +6886,14 @@ var na = "TabsTrigger", Mr = c.forwardRef(
6884
6886
  );
6885
6887
  }
6886
6888
  );
6887
- Mr.displayName = na;
6888
- var ra = "TabsContent", Ir = c.forwardRef(
6889
+ Mr.displayName = ra;
6890
+ var oa = "TabsContent", Ir = c.forwardRef(
6889
6891
  (e, t) => {
6890
- const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = _r(ra, n), l = oa(a.baseId, r), u = sa(a.baseId, r), f = r === a.value, d = c.useRef(f);
6892
+ const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = _r(oa, n), l = sa(a.baseId, r), u = ia(a.baseId, r), f = r === a.value, d = c.useRef(f);
6891
6893
  return c.useEffect(() => {
6892
6894
  const p = requestAnimationFrame(() => d.current = !1);
6893
6895
  return () => cancelAnimationFrame(p);
6894
- }, []), /* @__PURE__ */ h.jsx(Qi, { present: o || f, children: ({ present: p }) => /* @__PURE__ */ h.jsx(
6896
+ }, []), /* @__PURE__ */ h.jsx(ea, { present: o || f, children: ({ present: p }) => /* @__PURE__ */ h.jsx(
6895
6897
  Kt.div,
6896
6898
  {
6897
6899
  "data-state": f ? "active" : "inactive",
@@ -6912,11 +6914,11 @@ var ra = "TabsContent", Ir = c.forwardRef(
6912
6914
  ) });
6913
6915
  }
6914
6916
  );
6915
- Ir.displayName = ra;
6916
- function oa(e, t) {
6917
+ Ir.displayName = oa;
6918
+ function sa(e, t) {
6917
6919
  return `${e}-trigger-${t}`;
6918
6920
  }
6919
- function sa(e, t) {
6921
+ function ia(e, t) {
6920
6922
  return `${e}-content-${t}`;
6921
6923
  }
6922
6924
  var om = Or, sm = Tr, im = Mr, am = Ir;
@@ -6942,24 +6944,24 @@ const Ym = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6942
6944
  value: i,
6943
6945
  isDotable: a
6944
6946
  }, l) => {
6945
- const [u, f] = Ao(!1), p = va(o)(i), v = pa(null), g = Ne.base, m = Ne.options, b = Ne.message.base, x = Ne.message.styles, w = Ne.disabled.trigger, y = Ne.disabled.triggerText, C = ({
6946
- className: S,
6947
- text: P = ""
6947
+ const [u, f] = _o(!1), p = va(o)(i), v = $r(null), g = $r(null), m = Ne.base, b = Ne.options, x = Ne.message.base, y = Ne.message.styles, w = Ne.disabled.trigger, C = Ne.disabled.triggerText, R = ({
6948
+ className: P,
6949
+ text: S = ""
6948
6950
  }) => /* @__PURE__ */ h.jsx(
6949
6951
  he,
6950
6952
  {
6951
6953
  className: O(
6952
- g.placeholder,
6953
- t && y,
6954
- S
6954
+ m.placeholder,
6955
+ t && C,
6956
+ P
6955
6957
  ),
6956
- children: P
6958
+ children: S
6957
6959
  }
6958
6960
  );
6959
- return Po(() => {
6961
+ return Ao(() => {
6960
6962
  u && setTimeout(() => {
6961
- var S;
6962
- (S = v.current) == null || S.scrollIntoView({ block: "center" });
6963
+ var P;
6964
+ (P = v.current) == null || P.scrollIntoView({ block: "center" });
6963
6965
  }, 0);
6964
6966
  }, [u]), /* @__PURE__ */ h.jsxs("div", { className: O("w-full", e == null ? void 0 : e.parent), children: [
6965
6967
  /* @__PURE__ */ h.jsxs(bu, { open: u, onOpenChange: f, children: [
@@ -6969,26 +6971,26 @@ const Ym = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6969
6971
  role: "listbox",
6970
6972
  disabled: t,
6971
6973
  className: O(
6972
- g.trigger,
6974
+ m.trigger,
6973
6975
  t && w,
6974
- !u && n && x[n == null ? void 0 : n.type].trigger,
6975
- u && g.focus,
6976
- !u && !t && g.hover,
6976
+ !u && n && y[n == null ? void 0 : n.type].trigger,
6977
+ u && m.focus,
6978
+ !u && !t && m.hover,
6977
6979
  e == null ? void 0 : e.trigger
6978
6980
  ),
6979
6981
  children: [
6980
6982
  i ? /* @__PURE__ */ h.jsx(
6981
- C,
6983
+ R,
6982
6984
  {
6983
6985
  text: p == null ? void 0 : p.label,
6984
6986
  className: O(
6985
- g.selected,
6987
+ m.selected,
6986
6988
  t && Ne.disabled.selectedDisabled,
6987
6989
  e == null ? void 0 : e.selected
6988
6990
  )
6989
6991
  }
6990
6992
  ) : /* @__PURE__ */ h.jsx(
6991
- C,
6993
+ R,
6992
6994
  {
6993
6995
  text: s,
6994
6996
  className: e == null ? void 0 : e.placeholder
@@ -6998,8 +7000,8 @@ const Ym = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6998
7000
  ya,
6999
7001
  {
7000
7002
  className: O(
7001
- g.icon,
7002
- t && g.iconDisabled,
7003
+ m.icon,
7004
+ t && m.iconDisabled,
7003
7005
  u && "rotate-180"
7004
7006
  )
7005
7007
  }
@@ -7007,44 +7009,45 @@ const Ym = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7007
7009
  ]
7008
7010
  }
7009
7011
  ),
7010
- /* @__PURE__ */ h.jsx(
7012
+ /* @__PURE__ */ h.jsx("div", { ref: g, children: /* @__PURE__ */ h.jsx(
7011
7013
  yu,
7012
7014
  {
7013
- className: O(m.content, e == null ? void 0 : e.content),
7015
+ container: g.current,
7016
+ className: O(b.content, e == null ? void 0 : e.content),
7014
7017
  style: { minWidth: "var(--radix-popper-anchor-width)" },
7015
7018
  ref: l,
7016
- children: o && (o == null ? void 0 : o.map((S) => /* @__PURE__ */ h.jsx(
7019
+ children: o && (o == null ? void 0 : o.map((P) => /* @__PURE__ */ h.jsx(
7017
7020
  "div",
7018
7021
  {
7019
- className: O(m.items),
7020
- onClick: (P) => {
7021
- P.preventDefault(), P.stopPropagation(), r(S.value), f(!1);
7022
+ className: O(b.items),
7023
+ onClick: (S) => {
7024
+ S.preventDefault(), S.stopPropagation(), r(P.value), f(!1);
7022
7025
  },
7023
7026
  children: /* @__PURE__ */ h.jsx(
7024
7027
  he,
7025
7028
  {
7026
7029
  className: O(
7027
- m.itemsText,
7028
- !a && i === S.value && m.active,
7029
- a && m.dot,
7030
- a && i === S.value && "before:bg-dark-10 !font-bold"
7030
+ b.itemsText,
7031
+ !a && i === P.value && b.active,
7032
+ a && b.dot,
7033
+ a && i === P.value && "before:bg-dark-10 !font-bold"
7031
7034
  ),
7032
- children: S.label
7035
+ children: P.label
7033
7036
  }
7034
7037
  )
7035
7038
  },
7036
- S.value
7039
+ P.value
7037
7040
  )))
7038
7041
  }
7039
- )
7042
+ ) })
7040
7043
  ] }),
7041
7044
  n && /* @__PURE__ */ h.jsx(
7042
7045
  he,
7043
7046
  {
7044
7047
  variant: "span",
7045
7048
  className: O(
7046
- b,
7047
- x[n.type].message
7049
+ x,
7050
+ y[n.type].message
7048
7051
  ),
7049
7052
  children: n.text
7050
7053
  }
@@ -7157,7 +7160,7 @@ function dm(e) {
7157
7160
  }
7158
7161
  var _n = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
7159
7162
  };
7160
- function Co(e, t) {
7163
+ function Eo(e, t) {
7161
7164
  if (typeof e == "function")
7162
7165
  return e(t);
7163
7166
  e != null && (e.current = t);
@@ -7166,14 +7169,14 @@ function fm(...e) {
7166
7169
  return (t) => {
7167
7170
  let n = !1;
7168
7171
  const r = e.map((o) => {
7169
- const s = Co(o, t);
7172
+ const s = Eo(o, t);
7170
7173
  return !n && typeof s == "function" && (n = !0), s;
7171
7174
  });
7172
7175
  if (n)
7173
7176
  return () => {
7174
7177
  for (let o = 0; o < r.length; o++) {
7175
7178
  const s = r[o];
7176
- typeof s == "function" ? s() : Co(e[o], null);
7179
+ typeof s == "function" ? s() : Eo(e[o], null);
7177
7180
  }
7178
7181
  };
7179
7182
  };
@@ -7256,10 +7259,10 @@ var xm = [
7256
7259
  * This source code is licensed under the MIT license found in the
7257
7260
  * LICENSE file in the root directory of this source tree.
7258
7261
  */
7259
- var Eo;
7262
+ var So;
7260
7263
  function ym() {
7261
- if (Eo) return mn;
7262
- Eo = 1;
7264
+ if (So) return mn;
7265
+ So = 1;
7263
7266
  var e = V;
7264
7267
  function t(d, p) {
7265
7268
  return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
@@ -7307,9 +7310,9 @@ var vn = {};
7307
7310
  * This source code is licensed under the MIT license found in the
7308
7311
  * LICENSE file in the root directory of this source tree.
7309
7312
  */
7310
- var So;
7313
+ var Ro;
7311
7314
  function wm() {
7312
- return So || (So = 1, process.env.NODE_ENV !== "production" && function() {
7315
+ return Ro || (Ro = 1, process.env.NODE_ENV !== "production" && function() {
7313
7316
  function e(v, g) {
7314
7317
  return v === g && (v !== 0 || 1 / v === 1 / g) || v !== v && g !== g;
7315
7318
  }
@@ -7327,16 +7330,16 @@ function wm() {
7327
7330
  b = i({
7328
7331
  inst: { value: m, getSnapshot: g }
7329
7332
  });
7330
- var x = b[0].inst, w = b[1];
7333
+ var x = b[0].inst, y = b[1];
7331
7334
  return l(
7332
7335
  function() {
7333
- x.value = m, x.getSnapshot = g, n(x) && w({ inst: x });
7336
+ x.value = m, x.getSnapshot = g, n(x) && y({ inst: x });
7334
7337
  },
7335
7338
  [v, m, g]
7336
7339
  ), a(
7337
7340
  function() {
7338
- return n(x) && w({ inst: x }), v(function() {
7339
- n(x) && w({ inst: x });
7341
+ return n(x) && y({ inst: x }), v(function() {
7342
+ n(x) && y({ inst: x });
7340
7343
  });
7341
7344
  },
7342
7345
  [v]
@@ -7373,7 +7376,7 @@ function Sm() {
7373
7376
  return () => {
7374
7377
  };
7375
7378
  }
7376
- var kr = "Avatar", [Rm, Xm] = lm(kr), [Pm, ia] = Rm(kr), aa = c.forwardRef(
7379
+ var kr = "Avatar", [Rm, Xm] = lm(kr), [Pm, aa] = Rm(kr), ca = c.forwardRef(
7377
7380
  (e, t) => {
7378
7381
  const { __scopeAvatar: n, ...r } = e, [o, s] = c.useState("idle");
7379
7382
  return /* @__PURE__ */ h.jsx(
@@ -7387,11 +7390,11 @@ var kr = "Avatar", [Rm, Xm] = lm(kr), [Pm, ia] = Rm(kr), aa = c.forwardRef(
7387
7390
  );
7388
7391
  }
7389
7392
  );
7390
- aa.displayName = kr;
7391
- var ca = "AvatarImage", la = c.forwardRef(
7393
+ ca.displayName = kr;
7394
+ var la = "AvatarImage", ua = c.forwardRef(
7392
7395
  (e, t) => {
7393
7396
  const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
7394
- }, ...s } = e, i = ia(ca, n), a = Am(r, s), l = dm((u) => {
7397
+ }, ...s } = e, i = aa(la, n), a = Am(r, s), l = dm((u) => {
7395
7398
  o(u), i.onImageLoadingStatusChange(u);
7396
7399
  });
7397
7400
  return _n(() => {
@@ -7399,10 +7402,10 @@ var ca = "AvatarImage", la = c.forwardRef(
7399
7402
  }, [a, l]), a === "loaded" ? /* @__PURE__ */ h.jsx(Nr.img, { ...s, ref: t, src: r }) : null;
7400
7403
  }
7401
7404
  );
7402
- la.displayName = ca;
7403
- var ua = "AvatarFallback", da = c.forwardRef(
7405
+ ua.displayName = la;
7406
+ var da = "AvatarFallback", fa = c.forwardRef(
7404
7407
  (e, t) => {
7405
- const { __scopeAvatar: n, delayMs: r, ...o } = e, s = ia(ua, n), [i, a] = c.useState(r === void 0);
7408
+ const { __scopeAvatar: n, delayMs: r, ...o } = e, s = aa(da, n), [i, a] = c.useState(r === void 0);
7406
7409
  return c.useEffect(() => {
7407
7410
  if (r !== void 0) {
7408
7411
  const l = window.setTimeout(() => a(!0), r);
@@ -7411,16 +7414,16 @@ var ua = "AvatarFallback", da = c.forwardRef(
7411
7414
  }, [r]), i && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ h.jsx(Nr.span, { ...o, ref: t }) : null;
7412
7415
  }
7413
7416
  );
7414
- da.displayName = ua;
7415
- function Ro(e, t) {
7417
+ fa.displayName = da;
7418
+ function Po(e, t) {
7416
7419
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
7417
7420
  }
7418
7421
  function Am(e, { referrerPolicy: t, crossOrigin: n }) {
7419
7422
  const r = Em(), o = c.useRef(null), s = r ? (o.current || (o.current = new window.Image()), o.current) : null, [i, a] = c.useState(
7420
- () => Ro(s, e)
7423
+ () => Po(s, e)
7421
7424
  );
7422
7425
  return _n(() => {
7423
- a(Ro(s, e));
7426
+ a(Po(s, e));
7424
7427
  }, [s, e]), _n(() => {
7425
7428
  const l = (d) => () => {
7426
7429
  a(d);
@@ -7443,7 +7446,7 @@ const qm = ({
7443
7446
  }) => {
7444
7447
  const a = St.root, l = St.image, u = St.badge;
7445
7448
  return /* @__PURE__ */ h.jsxs(
7446
- aa,
7449
+ ca,
7447
7450
  {
7448
7451
  role: "group",
7449
7452
  "data-testid": "avatar-root",
@@ -7455,7 +7458,7 @@ const qm = ({
7455
7458
  ),
7456
7459
  children: [
7457
7460
  e ? /* @__PURE__ */ h.jsx(
7458
- la,
7461
+ ua,
7459
7462
  {
7460
7463
  role: "img",
7461
7464
  "data-testid": "avatar-img",
@@ -7463,8 +7466,8 @@ const qm = ({
7463
7466
  alt: t ?? "empty-avatar",
7464
7467
  className: O(l, i == null ? void 0 : i.img)
7465
7468
  }
7466
- ) : /* @__PURE__ */ h.jsx(da, { children: s ? /* @__PURE__ */ h.jsx(
7467
- jr,
7469
+ ) : /* @__PURE__ */ h.jsx(fa, { children: s ? /* @__PURE__ */ h.jsx(
7470
+ Lr,
7468
7471
  {
7469
7472
  width: 38,
7470
7473
  height: 30,
@@ -7491,7 +7494,7 @@ const qm = ({
7491
7494
  "data-testid": "avatar-badge",
7492
7495
  className: O(u.wrapper, i == null ? void 0 : i.badge),
7493
7496
  children: o ? /* @__PURE__ */ h.jsx(
7494
- Oo,
7497
+ To,
7495
7498
  {
7496
7499
  width: 14,
7497
7500
  height: 14,
@@ -7499,7 +7502,7 @@ const qm = ({
7499
7502
  className: "fill-sidebar-10"
7500
7503
  }
7501
7504
  ) : /* @__PURE__ */ h.jsx(
7502
- jr,
7505
+ Lr,
7503
7506
  {
7504
7507
  width: 16,
7505
7508
  height: 13,
@@ -7527,7 +7530,7 @@ export {
7527
7530
  km as C,
7528
7531
  Re as D,
7529
7532
  Wm as E,
7530
- ko as F,
7533
+ $o as F,
7531
7534
  Da as G,
7532
7535
  $m as H,
7533
7536
  Nm as I,
@@ -7536,7 +7539,7 @@ export {
7536
7539
  jm as L,
7537
7540
  Xa as M,
7538
7541
  sc as N,
7539
- is as O,
7542
+ as as O,
7540
7543
  le as P,
7541
7544
  ll as Q,
7542
7545
  qa as R,
@@ -7544,7 +7547,7 @@ export {
7544
7547
  Vm as T,
7545
7548
  uc as U,
7546
7549
  al as V,
7547
- vs as W,
7550
+ hs as W,
7548
7551
  Mn as X,
7549
7552
  cl as Y,
7550
7553
  Ma as Z,
@@ -7571,19 +7574,19 @@ export {
7571
7574
  Le as i,
7572
7575
  Jt as j,
7573
7576
  cm as k,
7574
- Lr as l,
7577
+ Fr as l,
7575
7578
  We as m,
7576
7579
  Ne as n,
7577
7580
  St as o,
7578
7581
  h as p,
7579
7582
  Fm as q,
7580
7583
  ye as r,
7581
- Ur as s,
7584
+ Vr as s,
7582
7585
  nt as t,
7583
7586
  Lt as u,
7584
7587
  se as v,
7585
7588
  Bm as w,
7586
- $o as x,
7589
+ Do as x,
7587
7590
  In as y,
7588
7591
  ve as z
7589
7592
  };