@namuna-nur/ui-kit 1.4.3 → 1.4.5

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 fe, useLayoutEffect as da, useEffect as fa, useState as Po, createElement as Se, useRef as pa } from "react";
2
+ import V, { forwardRef as fe, useLayoutEffect as fa, useEffect as pa, useState as Ao, createElement as Se, 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 Ao from "react-dom";
5
+ import _o 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";
@@ -81,7 +81,7 @@ function ga() {
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"), w = Symbol.for("react.consumer"), y = 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" })), _o = (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" })))), Nm = fe(
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" })), 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" })))), Nm = fe(
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
- _o,
568
+ Oo,
569
569
  {
570
570
  width: 20,
571
571
  height: 18,
@@ -677,7 +677,7 @@ const tt = {
677
677
  }
678
678
  }, Dm = 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
  };
@@ -745,29 +745,29 @@ function Ea(...e) {
745
745
  };
746
746
  return n.scopeName = t.scopeName, n;
747
747
  }
748
- function Fr(e, t) {
748
+ function Wr(e, t) {
749
749
  if (typeof e == "function")
750
750
  return e(t);
751
751
  e != null && (e.current = t);
752
752
  }
753
- function Oo(...e) {
753
+ function To(...e) {
754
754
  return (t) => {
755
755
  let n = !1;
756
756
  const r = e.map((o) => {
757
- const s = Fr(o, t);
757
+ const s = Wr(o, t);
758
758
  return !n && typeof s == "function" && (n = !0), s;
759
759
  });
760
760
  if (n)
761
761
  return () => {
762
762
  for (let o = 0; o < r.length; o++) {
763
763
  const s = r[o];
764
- typeof s == "function" ? s() : Fr(e[o], null);
764
+ typeof s == "function" ? s() : Wr(e[o], null);
765
765
  }
766
766
  };
767
767
  };
768
768
  }
769
769
  function se(...e) {
770
- return c.useCallback(Oo(...e), e);
770
+ return c.useCallback(To(...e), e);
771
771
  }
772
772
  var ot = c.forwardRef((e, t) => {
773
773
  const { children: n, ...r } = e, o = c.Children.toArray(n), s = o.find(Ra);
@@ -782,7 +782,7 @@ var gn = c.forwardRef((e, t) => {
782
782
  const { children: n, ...r } = e;
783
783
  if (c.isValidElement(n)) {
784
784
  const o = Aa(n), s = Pa(r, n.props);
785
- return n.type !== c.Fragment && (s.ref = t ? Oo(t, o) : o), c.cloneElement(n, s);
785
+ return n.type !== c.Fragment && (s.ref = t ? To(t, o) : o), c.cloneElement(n, s);
786
786
  }
787
787
  return c.Children.count(n) > 1 ? c.Children.only(null) : null;
788
788
  });
@@ -836,7 +836,7 @@ function jm(e) {
836
836
  if (!b) return [];
837
837
  const x = Array.from(b.querySelectorAll(`[${f}]`));
838
838
  return Array.from(g.itemMap.values()).sort(
839
- (C, S) => x.indexOf(C.ref.current) - x.indexOf(S.ref.current)
839
+ (C, R) => x.indexOf(C.ref.current) - x.indexOf(R.ref.current)
840
840
  );
841
841
  }, [g.collectionRef, g.itemMap]);
842
842
  }
@@ -861,7 +861,7 @@ function Re(e) {
861
861
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
862
862
  }, []);
863
863
  }
864
- function To({
864
+ function Mo({
865
865
  prop: e,
866
866
  defaultProp: t,
867
867
  onChange: n = () => {
@@ -999,7 +999,7 @@ function ja(e, t = globalThis == null ? void 0 : globalThis.document) {
999
999
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
1000
1000
  }, [n, t]);
1001
1001
  }
1002
- var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLayer.pointerDownOutside", Wa = "dismissableLayer.focusOutside", Wr, Mo = c.createContext({
1002
+ var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLayer.pointerDownOutside", Wa = "dismissableLayer.focusOutside", Br, Io = c.createContext({
1003
1003
  layers: /* @__PURE__ */ new Set(),
1004
1004
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1005
1005
  branches: /* @__PURE__ */ new Set()
@@ -1013,25 +1013,25 @@ var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLa
1013
1013
  onInteractOutside: i,
1014
1014
  onDismiss: a,
1015
1015
  ...l
1016
- } = 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) => {
1017
- const T = R.target, k = [...u.branches].some((I) => I.contains(T));
1018
- !C || k || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
1019
- }, p), P = Va((R) => {
1020
- const T = R.target;
1021
- [...u.branches].some((I) => I.contains(T)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
1016
+ } = 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), w = f ? m.indexOf(f) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= x, R = Ua((S) => {
1017
+ const T = S.target, k = [...u.branches].some((I) => I.contains(T));
1018
+ !C || k || (o == null || o(S), i == null || i(S), S.defaultPrevented || a == null || a());
1019
+ }, p), P = Va((S) => {
1020
+ const T = S.target;
1021
+ [...u.branches].some((I) => I.contains(T)) || (s == null || s(S), i == null || i(S), S.defaultPrevented || a == null || a());
1022
1022
  }, p);
1023
- return ja((R) => {
1024
- w === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
1023
+ return ja((S) => {
1024
+ w === u.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && a && (S.preventDefault(), a()));
1025
1025
  }, p), c.useEffect(() => {
1026
1026
  if (f)
1027
- 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(), () => {
1028
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Wr);
1027
+ 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(), () => {
1028
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Br);
1029
1029
  };
1030
1030
  }, [f, p, n, u]), c.useEffect(() => () => {
1031
- f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Br());
1031
+ f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Ur());
1032
1032
  }, [f, u]), c.useEffect(() => {
1033
- const R = () => v({});
1034
- return document.addEventListener(bn, R), () => document.removeEventListener(bn, R);
1033
+ const S = () => v({});
1034
+ return document.addEventListener(bn, S), () => document.removeEventListener(bn, S);
1035
1035
  }, []), /* @__PURE__ */ h.jsx(
1036
1036
  ce.div,
1037
1037
  {
@@ -1045,15 +1045,15 @@ var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLa
1045
1045
  onBlurCapture: ve(e.onBlurCapture, P.onBlurCapture),
1046
1046
  onPointerDownCapture: ve(
1047
1047
  e.onPointerDownCapture,
1048
- S.onPointerDownCapture
1048
+ R.onPointerDownCapture
1049
1049
  )
1050
1050
  }
1051
1051
  );
1052
1052
  }
1053
1053
  );
1054
1054
  In.displayName = La;
1055
- var Ba = "DismissableLayerBranch", Io = c.forwardRef((e, t) => {
1056
- const n = c.useContext(Mo), r = c.useRef(null), o = se(t, r);
1055
+ var Ba = "DismissableLayerBranch", No = c.forwardRef((e, t) => {
1056
+ const n = c.useContext(Io), r = c.useRef(null), o = se(t, r);
1057
1057
  return c.useEffect(() => {
1058
1058
  const s = r.current;
1059
1059
  if (s)
@@ -1062,7 +1062,7 @@ var Ba = "DismissableLayerBranch", Io = c.forwardRef((e, t) => {
1062
1062
  };
1063
1063
  }, [n.branches]), /* @__PURE__ */ h.jsx(ce.div, { ...e, ref: o });
1064
1064
  });
1065
- Io.displayName = Ba;
1065
+ No.displayName = Ba;
1066
1066
  function Ua(e, t = globalThis == null ? void 0 : globalThis.document) {
1067
1067
  const n = Re(e), r = c.useRef(!1), o = c.useRef(() => {
1068
1068
  });
@@ -1070,7 +1070,7 @@ function Ua(e, t = globalThis == null ? void 0 : globalThis.document) {
1070
1070
  const s = (a) => {
1071
1071
  if (a.target && !r.current) {
1072
1072
  let l = function() {
1073
- No(
1073
+ ko(
1074
1074
  Fa,
1075
1075
  n,
1076
1076
  u,
@@ -1097,7 +1097,7 @@ function Va(e, t = globalThis == null ? void 0 : globalThis.document) {
1097
1097
  const n = Re(e), r = c.useRef(!1);
1098
1098
  return c.useEffect(() => {
1099
1099
  const o = (s) => {
1100
- s.target && !r.current && No(Wa, n, { originalEvent: s }, {
1100
+ s.target && !r.current && ko(Wa, n, { originalEvent: s }, {
1101
1101
  discrete: !1
1102
1102
  });
1103
1103
  };
@@ -1107,28 +1107,28 @@ function Va(e, t = globalThis == null ? void 0 : globalThis.document) {
1107
1107
  onBlurCapture: () => r.current = !1
1108
1108
  };
1109
1109
  }
1110
- function Br() {
1110
+ function Ur() {
1111
1111
  const e = new CustomEvent(bn);
1112
1112
  document.dispatchEvent(e);
1113
1113
  }
1114
- function No(e, t, n, { discrete: r }) {
1114
+ function ko(e, t, n, { discrete: r }) {
1115
1115
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1116
1116
  t && o.addEventListener(e, t, { once: !0 }), r ? Ta(o, s) : o.dispatchEvent(s);
1117
1117
  }
1118
- var Lm = In, Fm = Io, Jt = 0;
1118
+ var Lm = In, Fm = No, Jt = 0;
1119
1119
  function za() {
1120
1120
  c.useEffect(() => {
1121
1121
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1122
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Ur()), document.body.insertAdjacentElement("beforeend", e[1] ?? Ur()), Jt++, () => {
1122
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Vr()), document.body.insertAdjacentElement("beforeend", e[1] ?? Vr()), Jt++, () => {
1123
1123
  Jt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Jt--;
1124
1124
  };
1125
1125
  }, []);
1126
1126
  }
1127
- function Ur() {
1127
+ function Vr() {
1128
1128
  const e = document.createElement("span");
1129
1129
  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;
1130
1130
  }
1131
- var Qt = "focusScope.autoFocusOnMount", en = "focusScope.autoFocusOnUnmount", Vr = { bubbles: !1, cancelable: !0 }, Ga = "FocusScope", ko = c.forwardRef((e, t) => {
1131
+ var Qt = "focusScope.autoFocusOnMount", en = "focusScope.autoFocusOnUnmount", zr = { bubbles: !1, cancelable: !0 }, Ga = "FocusScope", $o = c.forwardRef((e, t) => {
1132
1132
  const {
1133
1133
  loop: n = !1,
1134
1134
  trapped: r = !1,
@@ -1156,8 +1156,8 @@ var Qt = "focusScope.autoFocusOnMount", en = "focusScope.autoFocusOnUnmount", Vr
1156
1156
  C !== null && (a.contains(C) || Ce(d.current, { select: !0 }));
1157
1157
  }, x = function(y) {
1158
1158
  if (document.activeElement === document.body)
1159
- for (const S of y)
1160
- S.removedNodes.length > 0 && Ce(a);
1159
+ for (const R of y)
1160
+ R.removedNodes.length > 0 && Ce(a);
1161
1161
  };
1162
1162
  document.addEventListener("focusin", m), document.addEventListener("focusout", b);
1163
1163
  const w = new MutationObserver(x);
@@ -1167,16 +1167,16 @@ var Qt = "focusScope.autoFocusOnMount", en = "focusScope.autoFocusOnUnmount", Vr
1167
1167
  }
1168
1168
  }, [r, a, v.paused]), c.useEffect(() => {
1169
1169
  if (a) {
1170
- Gr.add(v);
1170
+ Kr.add(v);
1171
1171
  const m = document.activeElement;
1172
1172
  if (!a.contains(m)) {
1173
- const x = new CustomEvent(Qt, Vr);
1174
- a.addEventListener(Qt, u), a.dispatchEvent(x), x.defaultPrevented || (Ka(Za($o(a)), { select: !0 }), document.activeElement === m && Ce(a));
1173
+ const x = new CustomEvent(Qt, zr);
1174
+ a.addEventListener(Qt, u), a.dispatchEvent(x), x.defaultPrevented || (Ka(Za(Do(a)), { select: !0 }), document.activeElement === m && Ce(a));
1175
1175
  }
1176
1176
  return () => {
1177
1177
  a.removeEventListener(Qt, u), setTimeout(() => {
1178
- const x = new CustomEvent(en, Vr);
1179
- a.addEventListener(en, f), a.dispatchEvent(x), x.defaultPrevented || Ce(m ?? document.body, { select: !0 }), a.removeEventListener(en, f), Gr.remove(v);
1178
+ const x = new CustomEvent(en, zr);
1179
+ a.addEventListener(en, f), a.dispatchEvent(x), x.defaultPrevented || Ce(m ?? document.body, { select: !0 }), a.removeEventListener(en, f), Kr.remove(v);
1180
1180
  }, 0);
1181
1181
  };
1182
1182
  }
@@ -1194,17 +1194,17 @@ var Qt = "focusScope.autoFocusOnMount", en = "focusScope.autoFocusOnUnmount", Vr
1194
1194
  );
1195
1195
  return /* @__PURE__ */ h.jsx(ce.div, { tabIndex: -1, ...i, ref: p, onKeyDown: g });
1196
1196
  });
1197
- ko.displayName = Ga;
1197
+ $o.displayName = Ga;
1198
1198
  function Ka(e, { select: t = !1 } = {}) {
1199
1199
  const n = document.activeElement;
1200
1200
  for (const r of e)
1201
1201
  if (Ce(r, { select: t }), document.activeElement !== n) return;
1202
1202
  }
1203
1203
  function Ha(e) {
1204
- const t = $o(e), n = zr(t, e), r = zr(t.reverse(), e);
1204
+ const t = Do(e), n = Gr(t, e), r = Gr(t.reverse(), e);
1205
1205
  return [n, r];
1206
1206
  }
1207
- function $o(e) {
1207
+ function Do(e) {
1208
1208
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1209
1209
  acceptNode: (r) => {
1210
1210
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -1214,7 +1214,7 @@ function $o(e) {
1214
1214
  for (; n.nextNode(); ) t.push(n.currentNode);
1215
1215
  return t;
1216
1216
  }
1217
- function zr(e, t) {
1217
+ function Gr(e, t) {
1218
1218
  for (const n of e)
1219
1219
  if (!Ya(n, { upTo: t })) return n;
1220
1220
  }
@@ -1236,21 +1236,21 @@ function Ce(e, { select: t = !1 } = {}) {
1236
1236
  e.focus({ preventScroll: !0 }), e !== n && Xa(e) && t && e.select();
1237
1237
  }
1238
1238
  }
1239
- var Gr = qa();
1239
+ var Kr = qa();
1240
1240
  function qa() {
1241
1241
  let e = [];
1242
1242
  return {
1243
1243
  add(t) {
1244
1244
  const n = e[0];
1245
- t !== n && (n == null || n.pause()), e = Kr(e, t), e.unshift(t);
1245
+ t !== n && (n == null || n.pause()), e = Hr(e, t), e.unshift(t);
1246
1246
  },
1247
1247
  remove(t) {
1248
1248
  var n;
1249
- e = Kr(e, t), (n = e[0]) == null || n.resume();
1249
+ e = Hr(e, t), (n = e[0]) == null || n.resume();
1250
1250
  }
1251
1251
  };
1252
1252
  }
1253
- function Kr(e, t) {
1253
+ function Hr(e, t) {
1254
1254
  const n = [...e], r = n.indexOf(t);
1255
1255
  return r !== -1 && n.splice(r, 1), n;
1256
1256
  }
@@ -1336,7 +1336,7 @@ function sc(e) {
1336
1336
  ...e
1337
1337
  };
1338
1338
  }
1339
- function Do(e) {
1339
+ function jo(e) {
1340
1340
  return typeof e != "number" ? sc(e) : {
1341
1341
  top: e,
1342
1342
  right: e,
@@ -1362,7 +1362,7 @@ function Tt(e) {
1362
1362
  y: n
1363
1363
  };
1364
1364
  }
1365
- function Hr(e, t, n) {
1365
+ function Yr(e, t, n) {
1366
1366
  let {
1367
1367
  reference: r,
1368
1368
  floating: o
@@ -1424,7 +1424,7 @@ const ic = async (e, t, n) => {
1424
1424
  }), {
1425
1425
  x: f,
1426
1426
  y: d
1427
- } = Hr(u, r, l), p = r, v = {}, g = 0;
1427
+ } = Yr(u, r, l), p = r, v = {}, g = 0;
1428
1428
  for (let m = 0; m < a.length; m++) {
1429
1429
  const {
1430
1430
  name: b,
@@ -1433,7 +1433,7 @@ const ic = async (e, t, n) => {
1433
1433
  x: w,
1434
1434
  y,
1435
1435
  data: C,
1436
- reset: S
1436
+ reset: R
1437
1437
  } = await x({
1438
1438
  x: f,
1439
1439
  y: d,
@@ -1454,14 +1454,14 @@ const ic = async (e, t, n) => {
1454
1454
  ...v[b],
1455
1455
  ...C
1456
1456
  }
1457
- }, S && g <= 50 && (g++, typeof S == "object" && (S.placement && (p = S.placement), S.rects && (u = S.rects === !0 ? await i.getElementRects({
1457
+ }, R && g <= 50 && (g++, typeof R == "object" && (R.placement && (p = R.placement), R.rects && (u = R.rects === !0 ? await i.getElementRects({
1458
1458
  reference: e,
1459
1459
  floating: t,
1460
1460
  strategy: o
1461
- }) : S.rects), {
1461
+ }) : R.rects), {
1462
1462
  x: f,
1463
1463
  y: d
1464
- } = Hr(u, p, l)), m = -1);
1464
+ } = Yr(u, p, l)), m = -1);
1465
1465
  }
1466
1466
  return {
1467
1467
  x: f,
@@ -1487,7 +1487,7 @@ async function st(e, t) {
1487
1487
  elementContext: d = "floating",
1488
1488
  altBoundary: p = !1,
1489
1489
  padding: v = 0
1490
- } = ge(t, e), g = Do(v), b = a[p ? d === "floating" ? "reference" : "floating" : d], x = Tt(await s.getClippingRect({
1490
+ } = ge(t, e), g = jo(v), b = a[p ? d === "floating" ? "reference" : "floating" : d], x = Tt(await s.getClippingRect({
1491
1491
  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)),
1492
1492
  boundary: u,
1493
1493
  rootBoundary: f,
@@ -1503,17 +1503,17 @@ async function st(e, t) {
1503
1503
  } : {
1504
1504
  x: 1,
1505
1505
  y: 1
1506
- }, S = Tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
1506
+ }, R = Tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
1507
1507
  elements: a,
1508
1508
  rect: w,
1509
1509
  offsetParent: y,
1510
1510
  strategy: l
1511
1511
  }) : w);
1512
1512
  return {
1513
- top: (x.top - S.top + g.top) / C.y,
1514
- bottom: (S.bottom - x.bottom + g.bottom) / C.y,
1515
- left: (x.left - S.left + g.left) / C.x,
1516
- right: (S.right - x.right + g.right) / C.x
1513
+ top: (x.top - R.top + g.top) / C.y,
1514
+ bottom: (R.bottom - x.bottom + g.bottom) / C.y,
1515
+ left: (x.left - R.left + g.left) / C.x,
1516
+ right: (R.right - x.right + g.right) / C.x
1517
1517
  };
1518
1518
  }
1519
1519
  const ac = (e) => ({
@@ -1534,13 +1534,13 @@ const ac = (e) => ({
1534
1534
  } = ge(e, t) || {};
1535
1535
  if (u == null)
1536
1536
  return {};
1537
- const d = Do(f), p = {
1537
+ const d = jo(f), p = {
1538
1538
  x: n,
1539
1539
  y: r
1540
- }, v = $n(o), g = kn(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));
1541
- let R = P ? P[y] : 0;
1542
- (!R || !await (i.isElement == null ? void 0 : i.isElement(P))) && (R = a.floating[y] || s.floating[g]);
1543
- 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;
1540
+ }, v = $n(o), g = kn(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], R = p[v] - s.reference[v], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
1541
+ let S = P ? P[y] : 0;
1542
+ (!S || !await (i.isElement == null ? void 0 : i.isElement(P))) && (S = a.floating[y] || s.floating[g]);
1543
+ const T = C / 2 - R / 2, k = S / 2 - m[g] / 2 - 1, I = Pe(d[x], k), L = Pe(d[w], 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;
1544
1544
  return {
1545
1545
  [v]: p[v] + F,
1546
1546
  data: {
@@ -1577,9 +1577,9 @@ const ac = (e) => ({
1577
1577
  } = ge(e, t);
1578
1578
  if ((n = s.arrow) != null && n.alignmentOffset)
1579
1579
  return {};
1580
- 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)] : nc(a)), P = g !== "none";
1581
- !p && P && S.push(...oc(a, m, g, C));
1582
- const R = [a, ...S], T = await st(t, b), k = [];
1580
+ const x = be(o), w = Ae(a), y = be(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), R = p || (y || !m ? [Ot(a)] : nc(a)), P = g !== "none";
1581
+ !p && P && R.push(...oc(a, m, g, C));
1582
+ const S = [a, ...R], T = await st(t, b), k = [];
1583
1583
  let I = ((r = s.flip) == null ? void 0 : r.overflows) || [];
1584
1584
  if (f && k.push(T[x]), d) {
1585
1585
  const D = tc(o, i, C);
@@ -1590,7 +1590,7 @@ const ac = (e) => ({
1590
1590
  overflows: k
1591
1591
  }], !k.every((D) => D <= 0)) {
1592
1592
  var L, W;
1593
- const D = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, G = R[D];
1593
+ const D = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, G = S[D];
1594
1594
  if (G)
1595
1595
  return {
1596
1596
  data: {
@@ -1633,7 +1633,7 @@ const ac = (e) => ({
1633
1633
  }
1634
1634
  };
1635
1635
  };
1636
- function Yr(e, t) {
1636
+ function Xr(e, t) {
1637
1637
  return {
1638
1638
  top: e.top - t.height,
1639
1639
  right: e.right - t.width,
@@ -1641,7 +1641,7 @@ function Yr(e, t) {
1641
1641
  left: e.left - t.width
1642
1642
  };
1643
1643
  }
1644
- function Xr(e) {
1644
+ function qr(e) {
1645
1645
  return Ja.some((t) => e[t] >= 0);
1646
1646
  }
1647
1647
  const lc = function(e) {
@@ -1660,11 +1660,11 @@ const lc = function(e) {
1660
1660
  const s = await st(t, {
1661
1661
  ...o,
1662
1662
  elementContext: "reference"
1663
- }), i = Yr(s, n.reference);
1663
+ }), i = Xr(s, n.reference);
1664
1664
  return {
1665
1665
  data: {
1666
1666
  referenceHiddenOffsets: i,
1667
- referenceHidden: Xr(i)
1667
+ referenceHidden: qr(i)
1668
1668
  }
1669
1669
  };
1670
1670
  }
@@ -1672,11 +1672,11 @@ const lc = function(e) {
1672
1672
  const s = await st(t, {
1673
1673
  ...o,
1674
1674
  altBoundary: !0
1675
- }), i = Yr(s, n.floating);
1675
+ }), i = Xr(s, n.floating);
1676
1676
  return {
1677
1677
  data: {
1678
1678
  escapedOffsets: i,
1679
- escaped: Xr(i)
1679
+ escaped: qr(i)
1680
1680
  }
1681
1681
  };
1682
1682
  }
@@ -1819,13 +1819,13 @@ const dc = function(e) {
1819
1819
  ...m
1820
1820
  };
1821
1821
  if (l) {
1822
- const y = p === "y" ? "height" : "width", C = s.reference[p] - s.floating[y] + b.mainAxis, S = s.reference[p] + s.reference[y] - b.mainAxis;
1823
- v < C ? v = C : v > S && (v = S);
1822
+ const y = p === "y" ? "height" : "width", C = s.reference[p] - s.floating[y] + b.mainAxis, R = s.reference[p] + s.reference[y] - b.mainAxis;
1823
+ v < C ? v = C : v > R && (v = R);
1824
1824
  }
1825
1825
  if (u) {
1826
1826
  var x, w;
1827
- 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);
1828
- g < S ? g = S : g > P && (g = P);
1827
+ const y = p === "y" ? "width" : "height", C = ["top", "left"].includes(be(o)), R = 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);
1828
+ g < R ? g = R : g > P && (g = P);
1829
1829
  }
1830
1830
  return {
1831
1831
  [p]: v,
@@ -1854,16 +1854,16 @@ const dc = function(e) {
1854
1854
  } = s.floating;
1855
1855
  let b, x;
1856
1856
  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");
1857
- 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;
1858
- let R = C, T = S;
1859
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = y), (r = t.middlewareData.shift) != null && r.enabled.y && (R = w), P && !p) {
1857
+ const w = m - f.top - f.bottom, y = g - f.left - f.right, C = Pe(m - f[b], w), R = Pe(g - f[x], y), P = !t.middlewareData.shift;
1858
+ let S = C, T = R;
1859
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = y), (r = t.middlewareData.shift) != null && r.enabled.y && (S = w), P && !p) {
1860
1860
  const I = J(f.left, 0), L = J(f.right, 0), W = J(f.top, 0), j = J(f.bottom, 0);
1861
- 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));
1861
+ 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));
1862
1862
  }
1863
1863
  await l({
1864
1864
  ...t,
1865
1865
  availableWidth: T,
1866
- availableHeight: R
1866
+ availableHeight: S
1867
1867
  });
1868
1868
  const k = await i.getDimensions(a.floating);
1869
1869
  return g !== k.width || m !== k.height ? {
@@ -1878,7 +1878,7 @@ function Lt() {
1878
1878
  return typeof window < "u";
1879
1879
  }
1880
1880
  function qe(e) {
1881
- return jo(e) ? (e.nodeName || "").toLowerCase() : "#document";
1881
+ return Lo(e) ? (e.nodeName || "").toLowerCase() : "#document";
1882
1882
  }
1883
1883
  function Q(e) {
1884
1884
  var t;
@@ -1886,9 +1886,9 @@ function Q(e) {
1886
1886
  }
1887
1887
  function pe(e) {
1888
1888
  var t;
1889
- return (t = (jo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1889
+ return (t = (Lo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1890
1890
  }
1891
- function jo(e) {
1891
+ function Lo(e) {
1892
1892
  return Lt() ? e instanceof Node || e instanceof Q(e).Node : !1;
1893
1893
  }
1894
1894
  function ie(e) {
@@ -1897,7 +1897,7 @@ function ie(e) {
1897
1897
  function de(e) {
1898
1898
  return Lt() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
1899
1899
  }
1900
- function qr(e) {
1900
+ function Zr(e) {
1901
1901
  return !Lt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
1902
1902
  }
1903
1903
  function lt(e) {
@@ -1961,19 +1961,19 @@ function _e(e) {
1961
1961
  // Step into the shadow DOM of the parent of a slotted node.
1962
1962
  e.assignedSlot || // DOM Element detected.
1963
1963
  e.parentNode || // ShadowRoot detected.
1964
- qr(e) && e.host || // Fallback.
1964
+ Zr(e) && e.host || // Fallback.
1965
1965
  pe(e)
1966
1966
  );
1967
- return qr(t) ? t.host : t;
1967
+ return Zr(t) ? t.host : t;
1968
1968
  }
1969
- function Lo(e) {
1969
+ function Fo(e) {
1970
1970
  const t = _e(e);
1971
- return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : de(t) && lt(t) ? t : Lo(t);
1971
+ return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : de(t) && lt(t) ? t : Fo(t);
1972
1972
  }
1973
1973
  function it(e, t, n) {
1974
1974
  var r;
1975
1975
  t === void 0 && (t = []), n === void 0 && (n = !0);
1976
- const o = Lo(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Q(o);
1976
+ const o = Fo(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Q(o);
1977
1977
  if (s) {
1978
1978
  const a = wn(i);
1979
1979
  return t.concat(i, i.visualViewport || [], lt(o) ? o : [], a && n ? it(a) : []);
@@ -1983,7 +1983,7 @@ function it(e, t, n) {
1983
1983
  function wn(e) {
1984
1984
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1985
1985
  }
1986
- function Fo(e) {
1986
+ function Wo(e) {
1987
1987
  const t = ae(e);
1988
1988
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1989
1989
  const o = de(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = _t(n) !== s || _t(r) !== i;
@@ -2004,7 +2004,7 @@ function ze(e) {
2004
2004
  width: r,
2005
2005
  height: o,
2006
2006
  $: s
2007
- } = Fo(t);
2007
+ } = Wo(t);
2008
2008
  let i = (s ? _t(n.width) : n.width) / r, a = (s ? _t(n.height) : n.height) / o;
2009
2009
  return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
2010
2010
  x: i,
@@ -2012,7 +2012,7 @@ function ze(e) {
2012
2012
  };
2013
2013
  }
2014
2014
  const gc = /* @__PURE__ */ ue(0);
2015
- function Wo(e) {
2015
+ function Bo(e) {
2016
2016
  const t = Q(e);
2017
2017
  return !jn() || !t.visualViewport ? gc : {
2018
2018
  x: t.visualViewport.offsetLeft,
@@ -2027,7 +2027,7 @@ function $e(e, t, n, r) {
2027
2027
  const o = e.getBoundingClientRect(), s = Ln(e);
2028
2028
  let i = ue(1);
2029
2029
  t && (r ? ie(r) && (i = ze(r)) : i = ze(e));
2030
- const a = bc(s, n, r) ? Wo(s) : ue(0);
2030
+ const a = bc(s, n, r) ? Bo(s) : ue(0);
2031
2031
  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;
2032
2032
  if (s) {
2033
2033
  const p = Q(s), v = r && ie(r) ? Q(r) : r;
@@ -2048,7 +2048,7 @@ function Fn(e, t) {
2048
2048
  const n = Wt(e).scrollLeft;
2049
2049
  return t ? t.left + n : $e(pe(e)).left + n;
2050
2050
  }
2051
- function Bo(e, t, n) {
2051
+ function Uo(e, t, n) {
2052
2052
  n === void 0 && (n = !1);
2053
2053
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
2054
2054
  // RTL <body> scrollbar.
@@ -2078,7 +2078,7 @@ function xc(e) {
2078
2078
  const v = $e(r);
2079
2079
  u = ze(r), f.x = v.x + r.clientLeft, f.y = v.y + r.clientTop;
2080
2080
  }
2081
- const p = i && !d && !s ? Bo(i, l, !0) : ue(0);
2081
+ const p = i && !d && !s ? Uo(i, l, !0) : ue(0);
2082
2082
  return {
2083
2083
  width: n.width * u.x,
2084
2084
  height: n.height * u.y,
@@ -2124,7 +2124,7 @@ function Ec(e, t) {
2124
2124
  y: u
2125
2125
  };
2126
2126
  }
2127
- function Zr(e, t, n) {
2127
+ function Jr(e, t, n) {
2128
2128
  let r;
2129
2129
  if (t === "viewport")
2130
2130
  r = Cc(e, n);
@@ -2133,7 +2133,7 @@ function Zr(e, t, n) {
2133
2133
  else if (ie(t))
2134
2134
  r = Ec(t, n);
2135
2135
  else {
2136
- const o = Wo(e);
2136
+ const o = Bo(e);
2137
2137
  r = {
2138
2138
  x: t.x - o.x,
2139
2139
  y: t.y - o.y,
@@ -2143,9 +2143,9 @@ function Zr(e, t, n) {
2143
2143
  }
2144
2144
  return Tt(r);
2145
2145
  }
2146
- function Uo(e, t) {
2146
+ function Vo(e, t) {
2147
2147
  const n = _e(e);
2148
- return n === t || !ie(n) || He(n) ? !1 : ae(n).position === "fixed" || Uo(n, t);
2148
+ return n === t || !ie(n) || He(n) ? !1 : ae(n).position === "fixed" || Vo(n, t);
2149
2149
  }
2150
2150
  function Sc(e, t) {
2151
2151
  const n = t.get(e);
@@ -2156,7 +2156,7 @@ function Sc(e, t) {
2156
2156
  let i = s ? _e(e) : e;
2157
2157
  for (; ie(i) && !He(i); ) {
2158
2158
  const a = ae(i), l = Dn(i);
2159
- !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(i) && !l && Uo(e, i)) ? r = r.filter((f) => f !== i) : o = a, i = _e(i);
2159
+ !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(i) && !l && Vo(e, i)) ? r = r.filter((f) => f !== i) : o = a, i = _e(i);
2160
2160
  }
2161
2161
  return t.set(e, r), r;
2162
2162
  }
@@ -2168,9 +2168,9 @@ function Rc(e) {
2168
2168
  strategy: o
2169
2169
  } = e;
2170
2170
  const i = [...n === "clippingAncestors" ? Ft(t) ? [] : Sc(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((u, f) => {
2171
- const d = Zr(t, f, o);
2171
+ const d = Jr(t, f, o);
2172
2172
  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;
2173
- }, Zr(t, a, o));
2173
+ }, Jr(t, a, o));
2174
2174
  return {
2175
2175
  width: l.right - l.left,
2176
2176
  height: l.bottom - l.top,
@@ -2182,7 +2182,7 @@ function Pc(e) {
2182
2182
  const {
2183
2183
  width: t,
2184
2184
  height: n
2185
- } = Fo(e);
2185
+ } = Wo(e);
2186
2186
  return {
2187
2187
  width: t,
2188
2188
  height: n
@@ -2200,7 +2200,7 @@ function Ac(e, t, n) {
2200
2200
  const p = $e(t, !0, s, t);
2201
2201
  l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
2202
2202
  } else o && (l.x = Fn(o));
2203
- const u = o && !r && !s ? Bo(o, a) : ue(0), f = i.left + a.scrollLeft - l.x - u.x, d = i.top + a.scrollTop - l.y - u.y;
2203
+ const u = o && !r && !s ? Uo(o, a) : ue(0), f = i.left + a.scrollLeft - l.x - u.x, d = i.top + a.scrollTop - l.y - u.y;
2204
2204
  return {
2205
2205
  x: f,
2206
2206
  y: d,
@@ -2211,7 +2211,7 @@ function Ac(e, t, n) {
2211
2211
  function tn(e) {
2212
2212
  return ae(e).position === "static";
2213
2213
  }
2214
- function Jr(e, t) {
2214
+ function Qr(e, t) {
2215
2215
  if (!de(e) || ae(e).position === "fixed")
2216
2216
  return null;
2217
2217
  if (t)
@@ -2219,7 +2219,7 @@ function Jr(e, t) {
2219
2219
  let n = e.offsetParent;
2220
2220
  return pe(e) === n && (n = n.ownerDocument.body), n;
2221
2221
  }
2222
- function Vo(e, t) {
2222
+ function zo(e, t) {
2223
2223
  const n = Q(e);
2224
2224
  if (Ft(e))
2225
2225
  return n;
@@ -2232,13 +2232,13 @@ function Vo(e, t) {
2232
2232
  }
2233
2233
  return n;
2234
2234
  }
2235
- let r = Jr(e, t);
2235
+ let r = Qr(e, t);
2236
2236
  for (; r && vc(r) && tn(r); )
2237
- r = Jr(r, t);
2237
+ r = Qr(r, t);
2238
2238
  return r && He(r) && tn(r) && !Dn(r) ? n : r || hc(e) || n;
2239
2239
  }
2240
2240
  const _c = async function(e) {
2241
- const t = this.getOffsetParent || Vo, n = this.getDimensions, r = await n(e.floating);
2241
+ const t = this.getOffsetParent || zo, n = this.getDimensions, r = await n(e.floating);
2242
2242
  return {
2243
2243
  reference: Ac(e.reference, await t(e.floating), e.strategy),
2244
2244
  floating: {
@@ -2256,7 +2256,7 @@ const Tc = {
2256
2256
  convertOffsetParentRelativeRectToViewportRelativeRect: xc,
2257
2257
  getDocumentElement: pe,
2258
2258
  getClippingRect: Rc,
2259
- getOffsetParent: Vo,
2259
+ getOffsetParent: zo,
2260
2260
  getElementRects: _c,
2261
2261
  getClientRects: yc,
2262
2262
  getDimensions: Pc,
@@ -2264,7 +2264,7 @@ const Tc = {
2264
2264
  isElement: ie,
2265
2265
  isRTL: Oc
2266
2266
  };
2267
- function zo(e, t) {
2267
+ function Go(e, t) {
2268
2268
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2269
2269
  }
2270
2270
  function Mc(e, t) {
@@ -2289,31 +2289,31 @@ function Mc(e, t) {
2289
2289
  threshold: J(0, Pe(1, l)) || 1
2290
2290
  };
2291
2291
  let C = !0;
2292
- function S(P) {
2293
- const R = P[0].intersectionRatio;
2294
- if (R !== l) {
2292
+ function R(P) {
2293
+ const S = P[0].intersectionRatio;
2294
+ if (S !== l) {
2295
2295
  if (!C)
2296
2296
  return i();
2297
- R ? i(!1, R) : r = setTimeout(() => {
2297
+ S ? i(!1, S) : r = setTimeout(() => {
2298
2298
  i(!1, 1e-7);
2299
2299
  }, 1e3);
2300
2300
  }
2301
- R === 1 && !zo(u, e.getBoundingClientRect()) && i(), C = !1;
2301
+ S === 1 && !Go(u, e.getBoundingClientRect()) && i(), C = !1;
2302
2302
  }
2303
2303
  try {
2304
- n = new IntersectionObserver(S, {
2304
+ n = new IntersectionObserver(R, {
2305
2305
  ...y,
2306
2306
  // Handle <iframe>s
2307
2307
  root: o.ownerDocument
2308
2308
  });
2309
2309
  } catch {
2310
- n = new IntersectionObserver(S, y);
2310
+ n = new IntersectionObserver(R, y);
2311
2311
  }
2312
2312
  n.observe(e);
2313
2313
  }
2314
2314
  return i(!0), s;
2315
2315
  }
2316
- function Go(e, t, n, r) {
2316
+ function Ko(e, t, n, r) {
2317
2317
  r === void 0 && (r = {});
2318
2318
  const {
2319
2319
  ancestorScroll: o = !0,
@@ -2340,7 +2340,7 @@ function Go(e, t, n, r) {
2340
2340
  l && b();
2341
2341
  function b() {
2342
2342
  const x = $e(e);
2343
- m && !zo(m, x) && n(), m = x, g = requestAnimationFrame(b);
2343
+ m && !Go(m, x) && n(), m = x, g = requestAnimationFrame(b);
2344
2344
  }
2345
2345
  return n(), () => {
2346
2346
  var x;
@@ -2349,7 +2349,7 @@ function Go(e, t, n, r) {
2349
2349
  }), d == null || d(), (x = v) == null || x.disconnect(), v = null, l && cancelAnimationFrame(g);
2350
2350
  };
2351
2351
  }
2352
- const Ic = dc, Nc = fc, kc = cc, $c = mc, Dc = lc, Qr = ac, jc = pc, Lc = (e, t, n) => {
2352
+ const Ic = dc, Nc = fc, kc = cc, $c = mc, Dc = lc, eo = ac, jc = pc, Lc = (e, t, n) => {
2353
2353
  const r = /* @__PURE__ */ new Map(), o = {
2354
2354
  platform: Tc,
2355
2355
  ...n
@@ -2362,7 +2362,7 @@ const Ic = dc, Nc = fc, kc = cc, $c = mc, Dc = lc, Qr = ac, jc = pc, Lc = (e, t,
2362
2362
  platform: s
2363
2363
  });
2364
2364
  };
2365
- var Rt = typeof document < "u" ? da : fa;
2365
+ var Rt = typeof document < "u" ? fa : pa;
2366
2366
  function Mt(e, t) {
2367
2367
  if (e === t)
2368
2368
  return !0;
@@ -2393,11 +2393,11 @@ function Mt(e, t) {
2393
2393
  }
2394
2394
  return e !== e && t !== t;
2395
2395
  }
2396
- function Ko(e) {
2396
+ function Ho(e) {
2397
2397
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2398
2398
  }
2399
- function eo(e, t) {
2400
- const n = Ko(e);
2399
+ function to(e, t) {
2400
+ const n = Ho(e);
2401
2401
  return Math.round(t * n) / n;
2402
2402
  }
2403
2403
  function nn(e) {
@@ -2406,7 +2406,7 @@ function nn(e) {
2406
2406
  t.current = e;
2407
2407
  }), t;
2408
2408
  }
2409
- function Ho(e) {
2409
+ function Yo(e) {
2410
2410
  e === void 0 && (e = {});
2411
2411
  const {
2412
2412
  placement: t = "bottom",
@@ -2432,16 +2432,16 @@ function Ho(e) {
2432
2432
  const [g, m] = c.useState(null), [b, x] = c.useState(null), w = c.useCallback((M) => {
2433
2433
  M !== P.current && (P.current = M, m(M));
2434
2434
  }, []), y = c.useCallback((M) => {
2435
- M !== R.current && (R.current = M, x(M));
2436
- }, []), C = s || g, S = i || b, P = c.useRef(null), R = c.useRef(null), T = c.useRef(f), k = l != null, I = nn(l), L = nn(o), W = nn(u), j = c.useCallback(() => {
2437
- if (!P.current || !R.current)
2435
+ M !== S.current && (S.current = M, x(M));
2436
+ }, []), C = s || g, R = i || b, P = c.useRef(null), S = c.useRef(null), T = c.useRef(f), k = l != null, I = nn(l), L = nn(o), W = nn(u), j = c.useCallback(() => {
2437
+ if (!P.current || !S.current)
2438
2438
  return;
2439
2439
  const M = {
2440
2440
  placement: t,
2441
2441
  strategy: n,
2442
2442
  middleware: p
2443
2443
  };
2444
- L.current && (M.platform = L.current), Lc(P.current, R.current, M).then((A) => {
2444
+ L.current && (M.platform = L.current), Lc(P.current, S.current, M).then((A) => {
2445
2445
  const E = {
2446
2446
  ...A,
2447
2447
  // The floating element's position may be recomputed while it's closed
@@ -2465,21 +2465,21 @@ function Ho(e) {
2465
2465
  Rt(() => (D.current = !0, () => {
2466
2466
  D.current = !1;
2467
2467
  }), []), Rt(() => {
2468
- if (C && (P.current = C), S && (R.current = S), C && S) {
2468
+ if (C && (P.current = C), R && (S.current = R), C && R) {
2469
2469
  if (I.current)
2470
- return I.current(C, S, j);
2470
+ return I.current(C, R, j);
2471
2471
  j();
2472
2472
  }
2473
- }, [C, S, j, I, k]);
2473
+ }, [C, R, j, I, k]);
2474
2474
  const G = c.useMemo(() => ({
2475
2475
  reference: P,
2476
- floating: R,
2476
+ floating: S,
2477
2477
  setReference: w,
2478
2478
  setFloating: y
2479
2479
  }), [w, y]), $ = c.useMemo(() => ({
2480
2480
  reference: C,
2481
- floating: S
2482
- }), [C, S]), F = c.useMemo(() => {
2481
+ floating: R
2482
+ }), [C, R]), F = c.useMemo(() => {
2483
2483
  const M = {
2484
2484
  position: n,
2485
2485
  left: 0,
@@ -2487,11 +2487,11 @@ function Ho(e) {
2487
2487
  };
2488
2488
  if (!$.floating)
2489
2489
  return M;
2490
- const A = eo($.floating, f.x), E = eo($.floating, f.y);
2490
+ const A = to($.floating, f.x), E = to($.floating, f.y);
2491
2491
  return a ? {
2492
2492
  ...M,
2493
2493
  transform: "translate(" + A + "px, " + E + "px)",
2494
- ...Ko($.floating) >= 1.5 && {
2494
+ ...Ho($.floating) >= 1.5 && {
2495
2495
  willChange: "transform"
2496
2496
  }
2497
2497
  } : {
@@ -2520,38 +2520,38 @@ const Fc = (e) => {
2520
2520
  element: r,
2521
2521
  padding: o
2522
2522
  } = typeof e == "function" ? e(n) : e;
2523
- return r && t(r) ? r.current != null ? Qr({
2523
+ return r && t(r) ? r.current != null ? eo({
2524
2524
  element: r.current,
2525
2525
  padding: o
2526
- }).fn(n) : {} : r ? Qr({
2526
+ }).fn(n) : {} : r ? eo({
2527
2527
  element: r,
2528
2528
  padding: o
2529
2529
  }).fn(n) : {};
2530
2530
  }
2531
2531
  };
2532
- }, Yo = (e, t) => ({
2532
+ }, Xo = (e, t) => ({
2533
2533
  ...Ic(e),
2534
2534
  options: [e, t]
2535
- }), Xo = (e, t) => ({
2535
+ }), qo = (e, t) => ({
2536
2536
  ...Nc(e),
2537
2537
  options: [e, t]
2538
- }), qo = (e, t) => ({
2538
+ }), Zo = (e, t) => ({
2539
2539
  ...jc(e),
2540
2540
  options: [e, t]
2541
- }), Zo = (e, t) => ({
2541
+ }), Jo = (e, t) => ({
2542
2542
  ...kc(e),
2543
2543
  options: [e, t]
2544
- }), Jo = (e, t) => ({
2544
+ }), Qo = (e, t) => ({
2545
2545
  ...$c(e),
2546
2546
  options: [e, t]
2547
- }), Qo = (e, t) => ({
2547
+ }), es = (e, t) => ({
2548
2548
  ...Dc(e),
2549
2549
  options: [e, t]
2550
- }), es = (e, t) => ({
2550
+ }), ts = (e, t) => ({
2551
2551
  ...Fc(e),
2552
2552
  options: [e, t]
2553
2553
  });
2554
- var Wc = "Arrow", ts = c.forwardRef((e, t) => {
2554
+ var Wc = "Arrow", ns = c.forwardRef((e, t) => {
2555
2555
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
2556
2556
  return /* @__PURE__ */ h.jsx(
2557
2557
  ce.svg,
@@ -2566,9 +2566,9 @@ var Wc = "Arrow", ts = c.forwardRef((e, t) => {
2566
2566
  }
2567
2567
  );
2568
2568
  });
2569
- ts.displayName = Wc;
2570
- var Bc = ts;
2571
- function ns(e) {
2569
+ ns.displayName = Wc;
2570
+ var Bc = ns;
2571
+ function rs(e) {
2572
2572
  const [t, n] = c.useState(void 0);
2573
2573
  return ke(() => {
2574
2574
  if (e) {
@@ -2590,21 +2590,21 @@ function ns(e) {
2590
2590
  n(void 0);
2591
2591
  }, [e]), t;
2592
2592
  }
2593
- var Wn = "Popper", [rs, os] = jt(Wn), [Uc, ss] = rs(Wn), is = (e) => {
2593
+ var Wn = "Popper", [os, ss] = jt(Wn), [Uc, is] = os(Wn), as = (e) => {
2594
2594
  const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
2595
2595
  return /* @__PURE__ */ h.jsx(Uc, { scope: t, anchor: r, onAnchorChange: o, children: n });
2596
2596
  };
2597
- is.displayName = Wn;
2598
- var as = "PopperAnchor", cs = c.forwardRef(
2597
+ as.displayName = Wn;
2598
+ var cs = "PopperAnchor", ls = c.forwardRef(
2599
2599
  (e, t) => {
2600
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = ss(as, n), i = c.useRef(null), a = se(t, i);
2600
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = is(cs, n), i = c.useRef(null), a = se(t, i);
2601
2601
  return c.useEffect(() => {
2602
2602
  s.onAnchorChange((r == null ? void 0 : r.current) || i.current);
2603
2603
  }), r ? null : /* @__PURE__ */ h.jsx(ce.div, { ...o, ref: a });
2604
2604
  }
2605
2605
  );
2606
- cs.displayName = as;
2607
- var Bn = "PopperContent", [Vc, zc] = rs(Bn), ls = c.forwardRef(
2606
+ ls.displayName = cs;
2607
+ var Bn = "PopperContent", [Vc, zc] = os(Bn), us = c.forwardRef(
2608
2608
  (e, t) => {
2609
2609
  var X, B, K, te, Me, Ze;
2610
2610
  const {
@@ -2622,42 +2622,42 @@ var Bn = "PopperContent", [Vc, zc] = rs(Bn), ls = c.forwardRef(
2622
2622
  updatePositionStrategy: v = "optimized",
2623
2623
  onPlaced: g,
2624
2624
  ...m
2625
- } = e, b = ss(Bn, n), [x, w] = c.useState(null), y = se(t, (oe) => w(oe)), [C, S] = c.useState(null), P = ns(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 = {
2625
+ } = e, b = is(Bn, n), [x, w] = c.useState(null), y = se(t, (oe) => w(oe)), [C, R] = c.useState(null), P = rs(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 = {
2626
2626
  padding: I,
2627
2627
  boundary: L.filter(Kc),
2628
2628
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2629
2629
  altBoundary: W
2630
- }, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = Ho({
2630
+ }, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = Yo({
2631
2631
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2632
2632
  strategy: "fixed",
2633
2633
  placement: k,
2634
- whileElementsMounted: (...oe) => Go(...oe, {
2634
+ whileElementsMounted: (...oe) => Ko(...oe, {
2635
2635
  animationFrame: v === "always"
2636
2636
  }),
2637
2637
  elements: {
2638
2638
  reference: b.anchor
2639
2639
  },
2640
2640
  middleware: [
2641
- Yo({ mainAxis: o + T, alignmentAxis: i }),
2642
- l && Xo({
2641
+ Xo({ mainAxis: o + T, alignmentAxis: i }),
2642
+ l && qo({
2643
2643
  mainAxis: !0,
2644
2644
  crossAxis: !1,
2645
- limiter: d === "partial" ? qo() : void 0,
2645
+ limiter: d === "partial" ? Zo() : void 0,
2646
2646
  ...j
2647
2647
  }),
2648
- l && Zo({ ...j }),
2649
- Jo({
2648
+ l && Jo({ ...j }),
2649
+ Qo({
2650
2650
  ...j,
2651
2651
  apply: ({ elements: oe, rects: Je, availableWidth: Yt, availableHeight: Xt }) => {
2652
2652
  const { width: qt, height: Zt } = Je.reference, me = oe.floating.style;
2653
2653
  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`);
2654
2654
  }
2655
2655
  }),
2656
- C && es({ element: C, padding: a }),
2657
- Hc({ arrowWidth: R, arrowHeight: T }),
2658
- p && Qo({ strategy: "referenceHidden", ...j })
2656
+ C && ts({ element: C, padding: a }),
2657
+ Hc({ arrowWidth: S, arrowHeight: T }),
2658
+ p && es({ strategy: "referenceHidden", ...j })
2659
2659
  ]
2660
- }), [A, E] = fs($), _ = Re(g);
2660
+ }), [A, E] = ps($), _ = Re(g);
2661
2661
  ke(() => {
2662
2662
  F && (_ == null || _());
2663
2663
  }, [F, _]);
@@ -2693,7 +2693,7 @@ var Bn = "PopperContent", [Vc, zc] = rs(Bn), ls = c.forwardRef(
2693
2693
  {
2694
2694
  scope: n,
2695
2695
  placedSide: A,
2696
- onArrowChange: S,
2696
+ onArrowChange: R,
2697
2697
  arrowX: N,
2698
2698
  arrowY: U,
2699
2699
  shouldHideArrow: Y,
@@ -2718,14 +2718,14 @@ var Bn = "PopperContent", [Vc, zc] = rs(Bn), ls = c.forwardRef(
2718
2718
  );
2719
2719
  }
2720
2720
  );
2721
- ls.displayName = Bn;
2722
- var us = "PopperArrow", Gc = {
2721
+ us.displayName = Bn;
2722
+ var ds = "PopperArrow", Gc = {
2723
2723
  top: "bottom",
2724
2724
  right: "left",
2725
2725
  bottom: "top",
2726
2726
  left: "right"
2727
- }, ds = c.forwardRef(function(t, n) {
2728
- const { __scopePopper: r, ...o } = t, s = zc(us, r), i = Gc[s.placedSide];
2727
+ }, fs = c.forwardRef(function(t, n) {
2728
+ const { __scopePopper: r, ...o } = t, s = zc(ds, r), i = Gc[s.placedSide];
2729
2729
  return (
2730
2730
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2731
2731
  // doesn't report size as we'd expect on SVG elements.
@@ -2769,7 +2769,7 @@ var us = "PopperArrow", Gc = {
2769
2769
  )
2770
2770
  );
2771
2771
  });
2772
- ds.displayName = us;
2772
+ fs.displayName = ds;
2773
2773
  function Kc(e) {
2774
2774
  return e !== null;
2775
2775
  }
@@ -2778,35 +2778,35 @@ var Hc = (e) => ({
2778
2778
  options: e,
2779
2779
  fn(t) {
2780
2780
  var b, x, w;
2781
- 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] = fs(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;
2781
+ 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] = ps(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;
2782
2782
  let g = "", m = "";
2783
2783
  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 } };
2784
2784
  }
2785
2785
  });
2786
- function fs(e) {
2786
+ function ps(e) {
2787
2787
  const [t, n = "center"] = e.split("-");
2788
2788
  return [t, n];
2789
2789
  }
2790
- var Yc = is, ps = cs, Xc = ls, qc = ds, Zc = "Portal", ms = c.forwardRef((e, t) => {
2790
+ var Yc = as, ms = ls, Xc = us, qc = fs, Zc = "Portal", vs = c.forwardRef((e, t) => {
2791
2791
  var a;
2792
2792
  const { container: n, ...r } = e, [o, s] = c.useState(!1);
2793
2793
  ke(() => s(!0), []);
2794
2794
  const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
2795
- return i ? Ao.createPortal(/* @__PURE__ */ h.jsx(ce.div, { ...r, ref: t }), i) : null;
2795
+ return i ? _o.createPortal(/* @__PURE__ */ h.jsx(ce.div, { ...r, ref: t }), i) : null;
2796
2796
  });
2797
- ms.displayName = Zc;
2797
+ vs.displayName = Zc;
2798
2798
  var Jc = function(e) {
2799
2799
  if (typeof document > "u")
2800
2800
  return null;
2801
2801
  var t = Array.isArray(e) ? e[0] : e;
2802
2802
  return t.ownerDocument.body;
2803
- }, We = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = {}, rn = 0, vs = function(e) {
2804
- return e && (e.host || vs(e.parentNode));
2803
+ }, We = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = {}, rn = 0, hs = function(e) {
2804
+ return e && (e.host || hs(e.parentNode));
2805
2805
  }, Qc = function(e, t) {
2806
2806
  return t.map(function(n) {
2807
2807
  if (e.contains(n))
2808
2808
  return n;
2809
- var r = vs(n);
2809
+ var r = hs(n);
2810
2810
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
2811
2811
  }).filter(function(n) {
2812
2812
  return !!n;
@@ -2837,7 +2837,7 @@ var Jc = function(e) {
2837
2837
  We.set(d, p), s.set(d, v), p || (bt.has(d) || d.removeAttribute(r), bt.delete(d)), v || d.removeAttribute(n);
2838
2838
  }), rn--, rn || (We = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = {});
2839
2839
  };
2840
- }, hs = function(e, t, n) {
2840
+ }, gs = function(e, t, n) {
2841
2841
  n === void 0 && (n = "data-aria-hidden");
2842
2842
  var r = Array.from(Array.isArray(e) ? e : [e]), o = Jc(e);
2843
2843
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), el(r, o, n, "aria-hidden")) : function() {
@@ -2852,7 +2852,7 @@ var Jc = function(e) {
2852
2852
  return t;
2853
2853
  }, le.apply(this, arguments);
2854
2854
  };
2855
- function gs(e, t) {
2855
+ function bs(e, t) {
2856
2856
  var n = {};
2857
2857
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2858
2858
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2870,7 +2870,7 @@ function on(e, t) {
2870
2870
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
2871
2871
  }
2872
2872
  function ol(e, t) {
2873
- var n = Po(function() {
2873
+ var n = Ao(function() {
2874
2874
  return {
2875
2875
  // value
2876
2876
  value: e,
@@ -2890,7 +2890,7 @@ function ol(e, t) {
2890
2890
  })[0];
2891
2891
  return n.callback = t, n.facade;
2892
2892
  }
2893
- var sl = typeof window < "u" ? c.useLayoutEffect : c.useEffect, to = /* @__PURE__ */ new WeakMap();
2893
+ var sl = typeof window < "u" ? c.useLayoutEffect : c.useEffect, no = /* @__PURE__ */ new WeakMap();
2894
2894
  function il(e, t) {
2895
2895
  var n = ol(null, function(r) {
2896
2896
  return e.forEach(function(o) {
@@ -2898,7 +2898,7 @@ function il(e, t) {
2898
2898
  });
2899
2899
  });
2900
2900
  return sl(function() {
2901
- var r = to.get(n);
2901
+ var r = no.get(n);
2902
2902
  if (r) {
2903
2903
  var o = new Set(r), s = new Set(e), i = n.current;
2904
2904
  o.forEach(function(a) {
@@ -2907,7 +2907,7 @@ function il(e, t) {
2907
2907
  o.has(a) || on(a, i);
2908
2908
  });
2909
2909
  }
2910
- to.set(n, e);
2910
+ no.set(n, e);
2911
2911
  }, [e]), n;
2912
2912
  }
2913
2913
  function al(e) {
@@ -2973,8 +2973,8 @@ function ll(e) {
2973
2973
  var t = cl(null);
2974
2974
  return t.options = le({ async: !0, ssr: !1 }, e), t;
2975
2975
  }
2976
- var bs = function(e) {
2977
- var t = e.sideCar, n = gs(e, ["sideCar"]);
2976
+ var xs = function(e) {
2977
+ var t = e.sideCar, n = bs(e, ["sideCar"]);
2978
2978
  if (!t)
2979
2979
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2980
2980
  var r = t.read();
@@ -2982,22 +2982,22 @@ var bs = function(e) {
2982
2982
  throw new Error("Sidecar medium not found");
2983
2983
  return c.createElement(r, le({}, n));
2984
2984
  };
2985
- bs.isSideCarExport = !0;
2985
+ xs.isSideCarExport = !0;
2986
2986
  function ul(e, t) {
2987
- return e.useMedium(t), bs;
2987
+ return e.useMedium(t), xs;
2988
2988
  }
2989
- var xs = ll(), sn = function() {
2989
+ var ys = ll(), sn = function() {
2990
2990
  }, Bt = c.forwardRef(function(e, t) {
2991
2991
  var n = c.useRef(null), r = c.useState({
2992
2992
  onScrollCapture: sn,
2993
2993
  onWheelCapture: sn,
2994
2994
  onTouchMoveCapture: sn
2995
- }), 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 = gs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = p, S = il([n, t]), P = le(le({}, y), o);
2995
+ }), 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 = bs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = p, R = il([n, t]), P = le(le({}, y), o);
2996
2996
  return c.createElement(
2997
2997
  c.Fragment,
2998
2998
  null,
2999
- f && c.createElement(C, { sideCar: xs, removeScrollBar: u, shards: d, noIsolation: v, inert: g, setCallbacks: s, allowPinchZoom: !!m, lockRef: n, gapMode: w }),
3000
- i ? c.cloneElement(c.Children.only(a), le(le({}, P), { ref: S })) : c.createElement(x, le({}, P, { className: l, ref: S }), a)
2999
+ f && c.createElement(C, { sideCar: ys, removeScrollBar: u, shards: d, noIsolation: v, inert: g, setCallbacks: s, allowPinchZoom: !!m, lockRef: n, gapMode: w }),
3000
+ i ? c.cloneElement(c.Children.only(a), le(le({}, P), { ref: R })) : c.createElement(x, le({}, P, { className: l, ref: R }), a)
3001
3001
  );
3002
3002
  });
3003
3003
  Bt.defaultProps = {
@@ -3047,7 +3047,7 @@ var vl = function() {
3047
3047
  };
3048
3048
  }, [t && n]);
3049
3049
  };
3050
- }, ys = function() {
3050
+ }, ws = function() {
3051
3051
  var e = hl(), t = function(n) {
3052
3052
  var r = n.styles, o = n.dynamic;
3053
3053
  return e(r, o), null;
@@ -3073,7 +3073,7 @@ var vl = function() {
3073
3073
  right: t[2],
3074
3074
  gap: Math.max(0, r - n + t[2] - t[0])
3075
3075
  };
3076
- }, yl = ys(), Ge = "data-scroll-locked", wl = function(e, t, n, r) {
3076
+ }, yl = ws(), Ge = "data-scroll-locked", wl = function(e, t, n, r) {
3077
3077
  var o = e.left, s = e.top, i = e.right, a = e.gap;
3078
3078
  return n === void 0 && (n = "margin"), `
3079
3079
  .`.concat(nl, ` {
@@ -3117,13 +3117,13 @@ var vl = function() {
3117
3117
  `).concat(rl, ": ").concat(a, `px;
3118
3118
  }
3119
3119
  `);
3120
- }, no = function() {
3120
+ }, ro = function() {
3121
3121
  var e = parseInt(document.body.getAttribute(Ge) || "0", 10);
3122
3122
  return isFinite(e) ? e : 0;
3123
3123
  }, Cl = function() {
3124
3124
  c.useEffect(function() {
3125
- return document.body.setAttribute(Ge, (no() + 1).toString()), function() {
3126
- var e = no() - 1;
3125
+ return document.body.setAttribute(Ge, (ro() + 1).toString()), function() {
3126
+ var e = ro() - 1;
3127
3127
  e <= 0 ? document.body.removeAttribute(Ge) : document.body.setAttribute(Ge, e.toString());
3128
3128
  };
3129
3129
  }, []);
@@ -3148,7 +3148,7 @@ if (typeof window < "u")
3148
3148
  }
3149
3149
  var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
3150
3150
  return e.tagName === "TEXTAREA";
3151
- }, ws = function(e, t) {
3151
+ }, Cs = function(e, t) {
3152
3152
  if (!(e instanceof Element))
3153
3153
  return !1;
3154
3154
  var n = window.getComputedStyle(e);
@@ -3158,16 +3158,16 @@ var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
3158
3158
  !(n.overflowY === n.overflowX && !Sl(e) && n[t] === "visible")
3159
3159
  );
3160
3160
  }, Rl = function(e) {
3161
- return ws(e, "overflowY");
3161
+ return Cs(e, "overflowY");
3162
3162
  }, Pl = function(e) {
3163
- return ws(e, "overflowX");
3164
- }, ro = function(e, t) {
3163
+ return Cs(e, "overflowX");
3164
+ }, oo = function(e, t) {
3165
3165
  var n = t.ownerDocument, r = t;
3166
3166
  do {
3167
3167
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
3168
- var o = Cs(e, r);
3168
+ var o = Es(e, r);
3169
3169
  if (o) {
3170
- var s = Es(e, r), i = s[1], a = s[2];
3170
+ var s = Ss(e, r), i = s[1], a = s[2];
3171
3171
  if (i > a)
3172
3172
  return !0;
3173
3173
  }
@@ -3188,17 +3188,17 @@ var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
3188
3188
  n,
3189
3189
  r
3190
3190
  ];
3191
- }, Cs = function(e, t) {
3192
- return e === "v" ? Rl(t) : Pl(t);
3193
3191
  }, Es = function(e, t) {
3192
+ return e === "v" ? Rl(t) : Pl(t);
3193
+ }, Ss = function(e, t) {
3194
3194
  return e === "v" ? Al(t) : _l(t);
3195
3195
  }, Ol = function(e, t) {
3196
3196
  return e === "h" && t === "rtl" ? -1 : 1;
3197
3197
  }, Tl = function(e, t, n, r, o) {
3198
3198
  var s = Ol(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, l = t.contains(a), u = !1, f = i > 0, d = 0, p = 0;
3199
3199
  do {
3200
- var v = Es(e, a), g = v[0], m = v[1], b = v[2], x = m - b - s * g;
3201
- (g || x) && Cs(e, a) && (d += x, p += g), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
3200
+ var v = Ss(e, a), g = v[0], m = v[1], b = v[2], x = m - b - s * g;
3201
+ (g || x) && Es(e, a) && (d += x, p += g), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
3202
3202
  } while (
3203
3203
  // portaled content
3204
3204
  !l && a !== document.body || // self content
@@ -3207,9 +3207,9 @@ var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
3207
3207
  return (f && Math.abs(d) < 1 || !f && Math.abs(p) < 1) && (u = !0), u;
3208
3208
  }, wt = function(e) {
3209
3209
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3210
- }, oo = function(e) {
3211
- return [e.deltaX, e.deltaY];
3212
3210
  }, so = function(e) {
3211
+ return [e.deltaX, e.deltaY];
3212
+ }, io = function(e) {
3213
3213
  return e && "current" in e ? e.current : e;
3214
3214
  }, Ml = function(e, t) {
3215
3215
  return e[0] === t[0] && e[1] === t[1];
@@ -3220,13 +3220,13 @@ var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
3220
3220
  `);
3221
3221
  }, Nl = 0, Ue = [];
3222
3222
  function kl(e) {
3223
- var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Nl++)[0], s = c.useState(ys)[0], i = c.useRef(e);
3223
+ var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Nl++)[0], s = c.useState(ws)[0], i = c.useRef(e);
3224
3224
  c.useEffect(function() {
3225
3225
  i.current = e;
3226
3226
  }, [e]), c.useEffect(function() {
3227
3227
  if (e.inert) {
3228
3228
  document.body.classList.add("block-interactivity-".concat(o));
3229
- var m = tl([e.lockRef.current], (e.shards || []).map(so), !0).filter(Boolean);
3229
+ var m = tl([e.lockRef.current], (e.shards || []).map(io), !0).filter(Boolean);
3230
3230
  return m.forEach(function(b) {
3231
3231
  return b.classList.add("allow-interactivity-".concat(o));
3232
3232
  }), function() {
@@ -3239,31 +3239,31 @@ function kl(e) {
3239
3239
  var a = c.useCallback(function(m, b) {
3240
3240
  if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
3241
3241
  return !i.current.allowPinchZoom;
3242
- 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";
3243
- if ("touches" in m && R === "h" && P.type === "range")
3242
+ 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], R, P = m.target, S = Math.abs(y) > Math.abs(C) ? "h" : "v";
3243
+ if ("touches" in m && S === "h" && P.type === "range")
3244
3244
  return !1;
3245
- var T = ro(R, P);
3245
+ var T = oo(S, P);
3246
3246
  if (!T)
3247
3247
  return !0;
3248
- if (T ? S = R : (S = R === "v" ? "h" : "v", T = ro(R, P)), !T)
3248
+ if (T ? R = S : (R = S === "v" ? "h" : "v", T = oo(S, P)), !T)
3249
3249
  return !1;
3250
- if (!r.current && "changedTouches" in m && (y || C) && (r.current = S), !S)
3250
+ if (!r.current && "changedTouches" in m && (y || C) && (r.current = R), !R)
3251
3251
  return !0;
3252
- var k = r.current || S;
3252
+ var k = r.current || R;
3253
3253
  return Tl(k, b, m, k === "h" ? y : C);
3254
3254
  }, []), l = c.useCallback(function(m) {
3255
3255
  var b = m;
3256
3256
  if (!(!Ue.length || Ue[Ue.length - 1] !== s)) {
3257
- var x = "deltaY" in b ? oo(b) : wt(b), w = t.current.filter(function(S) {
3258
- return S.name === b.type && (S.target === b.target || b.target === S.shadowParent) && Ml(S.delta, x);
3257
+ var x = "deltaY" in b ? so(b) : wt(b), w = t.current.filter(function(R) {
3258
+ return R.name === b.type && (R.target === b.target || b.target === R.shadowParent) && Ml(R.delta, x);
3259
3259
  })[0];
3260
3260
  if (w && w.should) {
3261
3261
  b.cancelable && b.preventDefault();
3262
3262
  return;
3263
3263
  }
3264
3264
  if (!w) {
3265
- var y = (i.current.shards || []).map(so).filter(Boolean).filter(function(S) {
3266
- return S.contains(b.target);
3265
+ var y = (i.current.shards || []).map(io).filter(Boolean).filter(function(R) {
3266
+ return R.contains(b.target);
3267
3267
  }), C = y.length > 0 ? a(b, y[0]) : !i.current.noIsolation;
3268
3268
  C && b.cancelable && b.preventDefault();
3269
3269
  }
@@ -3278,7 +3278,7 @@ function kl(e) {
3278
3278
  }, []), f = c.useCallback(function(m) {
3279
3279
  n.current = wt(m), r.current = void 0;
3280
3280
  }, []), d = c.useCallback(function(m) {
3281
- u(m.type, oo(m), m.target, a(m, e.lockRef.current));
3281
+ u(m.type, so(m), m.target, a(m, e.lockRef.current));
3282
3282
  }, []), p = c.useCallback(function(m) {
3283
3283
  u(m.type, wt(m), m.target, a(m, e.lockRef.current));
3284
3284
  }, []);
@@ -3306,14 +3306,14 @@ function $l(e) {
3306
3306
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3307
3307
  return t;
3308
3308
  }
3309
- const Dl = ul(xs, kl);
3309
+ const Dl = ul(ys, kl);
3310
3310
  var Un = c.forwardRef(function(e, t) {
3311
3311
  return c.createElement(Bt, le({}, e, { ref: t, sideCar: Dl }));
3312
3312
  });
3313
3313
  Un.classNames = Bt.classNames;
3314
- var Vn = "Popover", [Ss, jl] = jt(Vn, [
3315
- os
3316
- ]), ut = os(), [Ll, Oe] = Ss(Vn), zn = (e) => {
3314
+ var Vn = "Popover", [Rs, jl] = jt(Vn, [
3315
+ ss
3316
+ ]), ut = ss(), [Ll, Oe] = Rs(Vn), zn = (e) => {
3317
3317
  const {
3318
3318
  __scopePopover: t,
3319
3319
  children: n,
@@ -3321,7 +3321,7 @@ var Vn = "Popover", [Ss, jl] = jt(Vn, [
3321
3321
  defaultOpen: o,
3322
3322
  onOpenChange: s,
3323
3323
  modal: i = !1
3324
- } = e, a = ut(t), l = c.useRef(null), [u, f] = c.useState(!1), [d = !1, p] = To({
3324
+ } = e, a = ut(t), l = c.useRef(null), [u, f] = c.useState(!1), [d = !1, p] = Mo({
3325
3325
  prop: r,
3326
3326
  defaultProp: o,
3327
3327
  onChange: s
@@ -3344,37 +3344,37 @@ var Vn = "Popover", [Ss, jl] = jt(Vn, [
3344
3344
  ) });
3345
3345
  };
3346
3346
  zn.displayName = Vn;
3347
- var Rs = "PopoverAnchor", Gn = c.forwardRef(
3347
+ var Ps = "PopoverAnchor", Gn = c.forwardRef(
3348
3348
  (e, t) => {
3349
- const { __scopePopover: n, ...r } = e, o = Oe(Rs, n), s = ut(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = o;
3350
- return c.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ h.jsx(ps, { ...s, ...r, ref: t });
3349
+ const { __scopePopover: n, ...r } = e, o = Oe(Ps, n), s = ut(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = o;
3350
+ return c.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ h.jsx(ms, { ...s, ...r, ref: t });
3351
3351
  }
3352
3352
  );
3353
- Gn.displayName = Rs;
3354
- var Ps = "PopoverTrigger", Kn = c.forwardRef(
3353
+ Gn.displayName = Ps;
3354
+ var As = "PopoverTrigger", Kn = c.forwardRef(
3355
3355
  (e, t) => {
3356
- const { __scopePopover: n, ...r } = e, o = Oe(Ps, n), s = ut(n), i = se(t, o.triggerRef), a = /* @__PURE__ */ h.jsx(
3356
+ const { __scopePopover: n, ...r } = e, o = Oe(As, n), s = ut(n), i = se(t, o.triggerRef), a = /* @__PURE__ */ h.jsx(
3357
3357
  ce.button,
3358
3358
  {
3359
3359
  type: "button",
3360
3360
  "aria-haspopup": "dialog",
3361
3361
  "aria-expanded": o.open,
3362
3362
  "aria-controls": o.contentId,
3363
- "data-state": Os(o.open),
3363
+ "data-state": Ts(o.open),
3364
3364
  ...r,
3365
3365
  ref: i,
3366
3366
  onClick: ve(e.onClick, o.onOpenToggle)
3367
3367
  }
3368
3368
  );
3369
- return o.hasCustomAnchor ? a : /* @__PURE__ */ h.jsx(ps, { asChild: !0, ...s, children: a });
3369
+ return o.hasCustomAnchor ? a : /* @__PURE__ */ h.jsx(ms, { asChild: !0, ...s, children: a });
3370
3370
  }
3371
3371
  );
3372
- Kn.displayName = Ps;
3373
- var Hn = "PopoverPortal", [Fl, Wl] = Ss(Hn, {
3372
+ Kn.displayName = As;
3373
+ var Hn = "PopoverPortal", [Fl, Wl] = Rs(Hn, {
3374
3374
  forceMount: void 0
3375
3375
  }), Yn = (e) => {
3376
3376
  const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = Oe(Hn, t);
3377
- return /* @__PURE__ */ h.jsx(Fl, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(Mn, { present: n || s.open, children: /* @__PURE__ */ h.jsx(ms, { asChild: !0, container: o, children: r }) }) });
3377
+ return /* @__PURE__ */ h.jsx(Fl, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(Mn, { present: n || s.open, children: /* @__PURE__ */ h.jsx(vs, { asChild: !0, container: o, children: r }) }) });
3378
3378
  };
3379
3379
  Yn.displayName = Hn;
3380
3380
  var Ye = "PopoverContent", Xn = c.forwardRef(
@@ -3389,9 +3389,9 @@ var Bl = c.forwardRef(
3389
3389
  const n = Oe(Ye, e.__scopePopover), r = c.useRef(null), o = se(t, r), s = c.useRef(!1);
3390
3390
  return c.useEffect(() => {
3391
3391
  const i = r.current;
3392
- if (i) return hs(i);
3392
+ if (i) return gs(i);
3393
3393
  }, []), /* @__PURE__ */ h.jsx(Un, { as: ot, allowPinchZoom: !0, children: /* @__PURE__ */ h.jsx(
3394
- As,
3394
+ _s,
3395
3395
  {
3396
3396
  ...e,
3397
3397
  ref: o,
@@ -3421,7 +3421,7 @@ var Bl = c.forwardRef(
3421
3421
  (e, t) => {
3422
3422
  const n = Oe(Ye, e.__scopePopover), r = c.useRef(!1), o = c.useRef(!1);
3423
3423
  return /* @__PURE__ */ h.jsx(
3424
- As,
3424
+ _s,
3425
3425
  {
3426
3426
  ...e,
3427
3427
  ref: t,
@@ -3440,7 +3440,7 @@ var Bl = c.forwardRef(
3440
3440
  }
3441
3441
  );
3442
3442
  }
3443
- ), As = c.forwardRef(
3443
+ ), _s = c.forwardRef(
3444
3444
  (e, t) => {
3445
3445
  const {
3446
3446
  __scopePopover: n,
@@ -3455,7 +3455,7 @@ var Bl = c.forwardRef(
3455
3455
  ...d
3456
3456
  } = e, p = Oe(Ye, n), v = ut(n);
3457
3457
  return za(), /* @__PURE__ */ h.jsx(
3458
- ko,
3458
+ $o,
3459
3459
  {
3460
3460
  asChild: !0,
3461
3461
  loop: !0,
@@ -3475,7 +3475,7 @@ var Bl = c.forwardRef(
3475
3475
  children: /* @__PURE__ */ h.jsx(
3476
3476
  Xc,
3477
3477
  {
3478
- "data-state": Os(p.open),
3478
+ "data-state": Ts(p.open),
3479
3479
  role: "dialog",
3480
3480
  id: p.contentId,
3481
3481
  ...v,
@@ -3496,9 +3496,9 @@ var Bl = c.forwardRef(
3496
3496
  }
3497
3497
  );
3498
3498
  }
3499
- ), _s = "PopoverClose", qn = c.forwardRef(
3499
+ ), Os = "PopoverClose", qn = c.forwardRef(
3500
3500
  (e, t) => {
3501
- const { __scopePopover: n, ...r } = e, o = Oe(_s, n);
3501
+ const { __scopePopover: n, ...r } = e, o = Oe(Os, n);
3502
3502
  return /* @__PURE__ */ h.jsx(
3503
3503
  ce.button,
3504
3504
  {
@@ -3510,7 +3510,7 @@ var Bl = c.forwardRef(
3510
3510
  );
3511
3511
  }
3512
3512
  );
3513
- qn.displayName = _s;
3513
+ qn.displayName = Os;
3514
3514
  var Vl = "PopoverArrow", Zn = c.forwardRef(
3515
3515
  (e, t) => {
3516
3516
  const { __scopePopover: n, ...r } = e, o = ut(n);
@@ -3518,10 +3518,10 @@ var Vl = "PopoverArrow", Zn = c.forwardRef(
3518
3518
  }
3519
3519
  );
3520
3520
  Zn.displayName = Vl;
3521
- function Os(e) {
3521
+ function Ts(e) {
3522
3522
  return e ? "open" : "closed";
3523
3523
  }
3524
- var Ts = zn, zl = Gn, Ms = Kn, Gl = Yn, Kl = Xn, Hl = qn, Yl = Zn;
3524
+ var Ms = zn, zl = Gn, Is = Kn, Gl = Yn, Kl = Xn, Hl = qn, Yl = Zn;
3525
3525
  const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3526
3526
  __proto__: null,
3527
3527
  Anchor: zl,
@@ -3536,10 +3536,10 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3536
3536
  PopoverPortal: Yn,
3537
3537
  PopoverTrigger: Kn,
3538
3538
  Portal: Gl,
3539
- Root: Ts,
3540
- Trigger: Ms,
3539
+ Root: Ms,
3540
+ Trigger: Is,
3541
3541
  createPopoverScope: jl
3542
- }, Symbol.toStringTag, { value: "Module" })), { Content: ql, Portal: Zl } = Xl, Jl = Ts, Ql = Ms, eu = c.forwardRef(
3542
+ }, Symbol.toStringTag, { value: "Module" })), { Content: ql, Portal: Zl } = Xl, Jl = Ms, Ql = Is, eu = c.forwardRef(
3543
3543
  ({ align: e = "center", className: t, sideOffset: n = 4, container: r, ...o }, s) => /* @__PURE__ */ h.jsx(Zl, { container: r, children: /* @__PURE__ */ h.jsx(
3544
3544
  ql,
3545
3545
  {
@@ -3560,23 +3560,23 @@ function It(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
3560
3560
  return t == null ? void 0 : t(o);
3561
3561
  };
3562
3562
  }
3563
- function io(e, t) {
3563
+ function ao(e, t) {
3564
3564
  if (typeof e == "function")
3565
3565
  return e(t);
3566
3566
  e != null && (e.current = t);
3567
3567
  }
3568
- function Is(...e) {
3568
+ function Ns(...e) {
3569
3569
  return (t) => {
3570
3570
  let n = !1;
3571
3571
  const r = e.map((o) => {
3572
- const s = io(o, t);
3572
+ const s = ao(o, t);
3573
3573
  return !n && typeof s == "function" && (n = !0), s;
3574
3574
  });
3575
3575
  if (n)
3576
3576
  return () => {
3577
3577
  for (let o = 0; o < r.length; o++) {
3578
3578
  const s = r[o];
3579
- typeof s == "function" ? s() : io(e[o], null);
3579
+ typeof s == "function" ? s() : ao(e[o], null);
3580
3580
  }
3581
3581
  };
3582
3582
  };
@@ -3631,9 +3631,9 @@ function nu(...e) {
3631
3631
  };
3632
3632
  return n.scopeName = t.scopeName, n;
3633
3633
  }
3634
- var Ns = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
3635
- }, ru = c[" useInsertionEffect ".trim().toString()] || Ns;
3636
- function ks({
3634
+ var ks = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
3635
+ }, ru = c[" useInsertionEffect ".trim().toString()] || ks;
3636
+ function $s({
3637
3637
  prop: e,
3638
3638
  defaultProp: t,
3639
3639
  onChange: n = () => {
@@ -3699,7 +3699,7 @@ function au(e) {
3699
3699
  const { children: o, ...s } = n;
3700
3700
  if (c.isValidElement(o)) {
3701
3701
  const i = du(o), a = uu(s, o.props);
3702
- return o.type !== c.Fragment && (a.ref = r ? Is(r, i) : i), c.cloneElement(o, a);
3702
+ return o.type !== c.Fragment && (a.ref = r ? Ns(r, i) : i), c.cloneElement(o, a);
3703
3703
  }
3704
3704
  return c.Children.count(o) > 1 ? c.Children.only(null) : null;
3705
3705
  });
@@ -3806,7 +3806,7 @@ function mu(...e) {
3806
3806
  };
3807
3807
  return n.scopeName = t.scopeName, n;
3808
3808
  }
3809
- function ao(e, t) {
3809
+ function co(e, t) {
3810
3810
  if (typeof e == "function")
3811
3811
  return e(t);
3812
3812
  e != null && (e.current = t);
@@ -3815,14 +3815,14 @@ function Qn(...e) {
3815
3815
  return (t) => {
3816
3816
  let n = !1;
3817
3817
  const r = e.map((o) => {
3818
- const s = ao(o, t);
3818
+ const s = co(o, t);
3819
3819
  return !n && typeof s == "function" && (n = !0), s;
3820
3820
  });
3821
3821
  if (n)
3822
3822
  return () => {
3823
3823
  for (let o = 0; o < r.length; o++) {
3824
3824
  const s = r[o];
3825
- typeof s == "function" ? s() : ao(e[o], null);
3825
+ typeof s == "function" ? s() : co(e[o], null);
3826
3826
  }
3827
3827
  };
3828
3828
  };
@@ -3892,8 +3892,8 @@ function yu(e) {
3892
3892
  u.displayName = a;
3893
3893
  const f = e + "CollectionItemSlot", d = "data-radix-collection-item", p = /* @__PURE__ */ Nt(f), v = V.forwardRef(
3894
3894
  (m, b) => {
3895
- const { scope: x, children: w, ...y } = m, C = V.useRef(null), S = ee(b, C), P = s(f, x);
3896
- return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...y }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: S, children: w });
3895
+ const { scope: x, children: w, ...y } = m, C = V.useRef(null), R = ee(b, C), P = s(f, x);
3896
+ return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...y }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: R, children: w });
3897
3897
  }
3898
3898
  );
3899
3899
  v.displayName = f;
@@ -3904,7 +3904,7 @@ function yu(e) {
3904
3904
  if (!w) return [];
3905
3905
  const y = Array.from(w.querySelectorAll(`[${d}]`));
3906
3906
  return Array.from(b.itemMap.values()).sort(
3907
- (P, R) => y.indexOf(P.ref.current) - y.indexOf(R.ref.current)
3907
+ (P, S) => y.indexOf(P.ref.current) - y.indexOf(S.ref.current)
3908
3908
  );
3909
3909
  }, [b.collectionRef, b.itemMap]);
3910
3910
  }
@@ -3944,7 +3944,7 @@ var Eu = [
3944
3944
  });
3945
3945
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
3946
3946
  }, {});
3947
- function $s(e, t) {
3947
+ function Ds(e, t) {
3948
3948
  e && Tn.flushSync(() => e.dispatchEvent(t));
3949
3949
  }
3950
3950
  function xe(e) {
@@ -3965,11 +3965,11 @@ function Su(e, t = globalThis == null ? void 0 : globalThis.document) {
3965
3965
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
3966
3966
  }, [n, t]);
3967
3967
  }
3968
- var Ru = "DismissableLayer", En = "dismissableLayer.update", Pu = "dismissableLayer.pointerDownOutside", Au = "dismissableLayer.focusOutside", co, Ds = c.createContext({
3968
+ var Ru = "DismissableLayer", En = "dismissableLayer.update", Pu = "dismissableLayer.pointerDownOutside", Au = "dismissableLayer.focusOutside", lo, js = c.createContext({
3969
3969
  layers: /* @__PURE__ */ new Set(),
3970
3970
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
3971
3971
  branches: /* @__PURE__ */ new Set()
3972
- }), js = c.forwardRef(
3972
+ }), Ls = c.forwardRef(
3973
3973
  (e, t) => {
3974
3974
  const {
3975
3975
  disableOutsidePointerEvents: n = !1,
@@ -3979,25 +3979,25 @@ var Ru = "DismissableLayer", En = "dismissableLayer.update", Pu = "dismissableLa
3979
3979
  onInteractOutside: i,
3980
3980
  onDismiss: a,
3981
3981
  ...l
3982
- } = e, u = c.useContext(Ds), [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 = Tu((R) => {
3983
- const T = R.target, k = [...u.branches].some((I) => I.contains(T));
3984
- !C || k || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
3985
- }, p), P = Mu((R) => {
3986
- const T = R.target;
3987
- [...u.branches].some((I) => I.contains(T)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
3982
+ } = e, u = c.useContext(js), [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), w = f ? m.indexOf(f) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= x, R = Tu((S) => {
3983
+ const T = S.target, k = [...u.branches].some((I) => I.contains(T));
3984
+ !C || k || (o == null || o(S), i == null || i(S), S.defaultPrevented || a == null || a());
3985
+ }, p), P = Mu((S) => {
3986
+ const T = S.target;
3987
+ [...u.branches].some((I) => I.contains(T)) || (s == null || s(S), i == null || i(S), S.defaultPrevented || a == null || a());
3988
3988
  }, p);
3989
- return Su((R) => {
3990
- w === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
3989
+ return Su((S) => {
3990
+ w === u.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && a && (S.preventDefault(), a()));
3991
3991
  }, p), c.useEffect(() => {
3992
3992
  if (f)
3993
- return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (co = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), lo(), () => {
3994
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = co);
3993
+ 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(), () => {
3994
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = lo);
3995
3995
  };
3996
3996
  }, [f, p, n, u]), c.useEffect(() => () => {
3997
- f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), lo());
3997
+ f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), uo());
3998
3998
  }, [f, u]), c.useEffect(() => {
3999
- const R = () => v({});
4000
- return document.addEventListener(En, R), () => document.removeEventListener(En, R);
3999
+ const S = () => v({});
4000
+ return document.addEventListener(En, S), () => document.removeEventListener(En, S);
4001
4001
  }, []), /* @__PURE__ */ h.jsx(
4002
4002
  re.div,
4003
4003
  {
@@ -4011,15 +4011,15 @@ var Ru = "DismissableLayer", En = "dismissableLayer.update", Pu = "dismissableLa
4011
4011
  onBlurCapture: z(e.onBlurCapture, P.onBlurCapture),
4012
4012
  onPointerDownCapture: z(
4013
4013
  e.onPointerDownCapture,
4014
- S.onPointerDownCapture
4014
+ R.onPointerDownCapture
4015
4015
  )
4016
4016
  }
4017
4017
  );
4018
4018
  }
4019
4019
  );
4020
- js.displayName = Ru;
4020
+ Ls.displayName = Ru;
4021
4021
  var _u = "DismissableLayerBranch", Ou = c.forwardRef((e, t) => {
4022
- const n = c.useContext(Ds), r = c.useRef(null), o = ee(t, r);
4022
+ const n = c.useContext(js), r = c.useRef(null), o = ee(t, r);
4023
4023
  return c.useEffect(() => {
4024
4024
  const s = r.current;
4025
4025
  if (s)
@@ -4036,7 +4036,7 @@ function Tu(e, t = globalThis == null ? void 0 : globalThis.document) {
4036
4036
  const s = (a) => {
4037
4037
  if (a.target && !r.current) {
4038
4038
  let l = function() {
4039
- Ls(
4039
+ Fs(
4040
4040
  Pu,
4041
4041
  n,
4042
4042
  u,
@@ -4063,7 +4063,7 @@ function Mu(e, t = globalThis == null ? void 0 : globalThis.document) {
4063
4063
  const n = xe(e), r = c.useRef(!1);
4064
4064
  return c.useEffect(() => {
4065
4065
  const o = (s) => {
4066
- s.target && !r.current && Ls(Au, n, { originalEvent: s }, {
4066
+ s.target && !r.current && Fs(Au, n, { originalEvent: s }, {
4067
4067
  discrete: !1
4068
4068
  });
4069
4069
  };
@@ -4073,28 +4073,28 @@ function Mu(e, t = globalThis == null ? void 0 : globalThis.document) {
4073
4073
  onBlurCapture: () => r.current = !1
4074
4074
  };
4075
4075
  }
4076
- function lo() {
4076
+ function uo() {
4077
4077
  const e = new CustomEvent(En);
4078
4078
  document.dispatchEvent(e);
4079
4079
  }
4080
- function Ls(e, t, n, { discrete: r }) {
4080
+ function Fs(e, t, n, { discrete: r }) {
4081
4081
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
4082
- t && o.addEventListener(e, t, { once: !0 }), r ? $s(o, s) : o.dispatchEvent(s);
4082
+ t && o.addEventListener(e, t, { once: !0 }), r ? Ds(o, s) : o.dispatchEvent(s);
4083
4083
  }
4084
4084
  var cn = 0;
4085
4085
  function Iu() {
4086
4086
  c.useEffect(() => {
4087
4087
  const e = document.querySelectorAll("[data-radix-focus-guard]");
4088
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? uo()), document.body.insertAdjacentElement("beforeend", e[1] ?? uo()), cn++, () => {
4088
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? fo()), document.body.insertAdjacentElement("beforeend", e[1] ?? fo()), cn++, () => {
4089
4089
  cn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), cn--;
4090
4090
  };
4091
4091
  }, []);
4092
4092
  }
4093
- function uo() {
4093
+ function fo() {
4094
4094
  const e = document.createElement("span");
4095
4095
  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;
4096
4096
  }
4097
- var ln = "focusScope.autoFocusOnMount", un = "focusScope.autoFocusOnUnmount", fo = { bubbles: !1, cancelable: !0 }, Nu = "FocusScope", Fs = c.forwardRef((e, t) => {
4097
+ var ln = "focusScope.autoFocusOnMount", un = "focusScope.autoFocusOnUnmount", po = { bubbles: !1, cancelable: !0 }, Nu = "FocusScope", Ws = c.forwardRef((e, t) => {
4098
4098
  const {
4099
4099
  loop: n = !1,
4100
4100
  trapped: r = !1,
@@ -4122,8 +4122,8 @@ var ln = "focusScope.autoFocusOnMount", un = "focusScope.autoFocusOnUnmount", fo
4122
4122
  C !== null && (a.contains(C) || Ee(d.current, { select: !0 }));
4123
4123
  }, x = function(y) {
4124
4124
  if (document.activeElement === document.body)
4125
- for (const S of y)
4126
- S.removedNodes.length > 0 && Ee(a);
4125
+ for (const R of y)
4126
+ R.removedNodes.length > 0 && Ee(a);
4127
4127
  };
4128
4128
  document.addEventListener("focusin", m), document.addEventListener("focusout", b);
4129
4129
  const w = new MutationObserver(x);
@@ -4133,16 +4133,16 @@ var ln = "focusScope.autoFocusOnMount", un = "focusScope.autoFocusOnUnmount", fo
4133
4133
  }
4134
4134
  }, [r, a, v.paused]), c.useEffect(() => {
4135
4135
  if (a) {
4136
- mo.add(v);
4136
+ vo.add(v);
4137
4137
  const m = document.activeElement;
4138
4138
  if (!a.contains(m)) {
4139
- const x = new CustomEvent(ln, fo);
4140
- a.addEventListener(ln, u), a.dispatchEvent(x), x.defaultPrevented || (ku(Fu(Ws(a)), { select: !0 }), document.activeElement === m && Ee(a));
4139
+ const x = new CustomEvent(ln, po);
4140
+ a.addEventListener(ln, u), a.dispatchEvent(x), x.defaultPrevented || (ku(Fu(Bs(a)), { select: !0 }), document.activeElement === m && Ee(a));
4141
4141
  }
4142
4142
  return () => {
4143
4143
  a.removeEventListener(ln, u), setTimeout(() => {
4144
- const x = new CustomEvent(un, fo);
4145
- a.addEventListener(un, f), a.dispatchEvent(x), x.defaultPrevented || Ee(m ?? document.body, { select: !0 }), a.removeEventListener(un, f), mo.remove(v);
4144
+ const x = new CustomEvent(un, po);
4145
+ a.addEventListener(un, f), a.dispatchEvent(x), x.defaultPrevented || Ee(m ?? document.body, { select: !0 }), a.removeEventListener(un, f), vo.remove(v);
4146
4146
  }, 0);
4147
4147
  };
4148
4148
  }
@@ -4160,17 +4160,17 @@ var ln = "focusScope.autoFocusOnMount", un = "focusScope.autoFocusOnUnmount", fo
4160
4160
  );
4161
4161
  return /* @__PURE__ */ h.jsx(re.div, { tabIndex: -1, ...i, ref: p, onKeyDown: g });
4162
4162
  });
4163
- Fs.displayName = Nu;
4163
+ Ws.displayName = Nu;
4164
4164
  function ku(e, { select: t = !1 } = {}) {
4165
4165
  const n = document.activeElement;
4166
4166
  for (const r of e)
4167
4167
  if (Ee(r, { select: t }), document.activeElement !== n) return;
4168
4168
  }
4169
4169
  function $u(e) {
4170
- const t = Ws(e), n = po(t, e), r = po(t.reverse(), e);
4170
+ const t = Bs(e), n = mo(t, e), r = mo(t.reverse(), e);
4171
4171
  return [n, r];
4172
4172
  }
4173
- function Ws(e) {
4173
+ function Bs(e) {
4174
4174
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
4175
4175
  acceptNode: (r) => {
4176
4176
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -4180,7 +4180,7 @@ function Ws(e) {
4180
4180
  for (; n.nextNode(); ) t.push(n.currentNode);
4181
4181
  return t;
4182
4182
  }
4183
- function po(e, t) {
4183
+ function mo(e, t) {
4184
4184
  for (const n of e)
4185
4185
  if (!Du(n, { upTo: t })) return n;
4186
4186
  }
@@ -4202,21 +4202,21 @@ function Ee(e, { select: t = !1 } = {}) {
4202
4202
  e.focus({ preventScroll: !0 }), e !== n && ju(e) && t && e.select();
4203
4203
  }
4204
4204
  }
4205
- var mo = Lu();
4205
+ var vo = Lu();
4206
4206
  function Lu() {
4207
4207
  let e = [];
4208
4208
  return {
4209
4209
  add(t) {
4210
4210
  const n = e[0];
4211
- t !== n && (n == null || n.pause()), e = vo(e, t), e.unshift(t);
4211
+ t !== n && (n == null || n.pause()), e = ho(e, t), e.unshift(t);
4212
4212
  },
4213
4213
  remove(t) {
4214
4214
  var n;
4215
- e = vo(e, t), (n = e[0]) == null || n.resume();
4215
+ e = ho(e, t), (n = e[0]) == null || n.resume();
4216
4216
  }
4217
4217
  };
4218
4218
  }
4219
- function vo(e, t) {
4219
+ function ho(e, t) {
4220
4220
  const n = [...e], r = n.indexOf(t);
4221
4221
  return r !== -1 && n.splice(r, 1), n;
4222
4222
  }
@@ -4226,13 +4226,13 @@ function Fu(e) {
4226
4226
  var De = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
4227
4227
  }, Wu = c[" useId ".trim().toString()] || (() => {
4228
4228
  }), Bu = 0;
4229
- function ho(e) {
4229
+ function go(e) {
4230
4230
  const [t, n] = c.useState(Wu());
4231
4231
  return De(() => {
4232
4232
  n((r) => r ?? String(Bu++));
4233
4233
  }, [e]), e || (t ? `radix-${t}` : "");
4234
4234
  }
4235
- var Uu = "Arrow", Bs = c.forwardRef((e, t) => {
4235
+ var Uu = "Arrow", Us = c.forwardRef((e, t) => {
4236
4236
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
4237
4237
  return /* @__PURE__ */ h.jsx(
4238
4238
  re.svg,
@@ -4247,8 +4247,8 @@ var Uu = "Arrow", Bs = c.forwardRef((e, t) => {
4247
4247
  }
4248
4248
  );
4249
4249
  });
4250
- Bs.displayName = Uu;
4251
- var Vu = Bs;
4250
+ Us.displayName = Uu;
4251
+ var Vu = Us;
4252
4252
  function zu(e) {
4253
4253
  const [t, n] = c.useState(void 0);
4254
4254
  return De(() => {
@@ -4271,21 +4271,21 @@ function zu(e) {
4271
4271
  n(void 0);
4272
4272
  }, [e]), t;
4273
4273
  }
4274
- var er = "Popper", [Us, Vs] = Jn(er), [Gu, zs] = Us(er), Gs = (e) => {
4274
+ var er = "Popper", [Vs, zs] = Jn(er), [Gu, Gs] = Vs(er), Ks = (e) => {
4275
4275
  const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
4276
4276
  return /* @__PURE__ */ h.jsx(Gu, { scope: t, anchor: r, onAnchorChange: o, children: n });
4277
4277
  };
4278
- Gs.displayName = er;
4279
- var Ks = "PopperAnchor", Hs = c.forwardRef(
4278
+ Ks.displayName = er;
4279
+ var Hs = "PopperAnchor", Ys = c.forwardRef(
4280
4280
  (e, t) => {
4281
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = zs(Ks, n), i = c.useRef(null), a = ee(t, i);
4281
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = Gs(Hs, n), i = c.useRef(null), a = ee(t, i);
4282
4282
  return c.useEffect(() => {
4283
4283
  s.onAnchorChange((r == null ? void 0 : r.current) || i.current);
4284
4284
  }), r ? null : /* @__PURE__ */ h.jsx(re.div, { ...o, ref: a });
4285
4285
  }
4286
4286
  );
4287
- Hs.displayName = Ks;
4288
- var tr = "PopperContent", [Ku, Hu] = Us(tr), Ys = c.forwardRef(
4287
+ Ys.displayName = Hs;
4288
+ var tr = "PopperContent", [Ku, Hu] = Vs(tr), Xs = c.forwardRef(
4289
4289
  (e, t) => {
4290
4290
  var X, B, K, te, Me, Ze;
4291
4291
  const {
@@ -4303,42 +4303,42 @@ var tr = "PopperContent", [Ku, Hu] = Us(tr), Ys = c.forwardRef(
4303
4303
  updatePositionStrategy: v = "optimized",
4304
4304
  onPlaced: g,
4305
4305
  ...m
4306
- } = e, b = zs(tr, n), [x, w] = c.useState(null), y = ee(t, (oe) => w(oe)), [C, S] = c.useState(null), P = zu(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 = {
4306
+ } = e, b = Gs(tr, n), [x, w] = c.useState(null), y = ee(t, (oe) => w(oe)), [C, R] = c.useState(null), P = zu(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 = {
4307
4307
  padding: I,
4308
4308
  boundary: L.filter(Xu),
4309
4309
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
4310
4310
  altBoundary: W
4311
- }, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = Ho({
4311
+ }, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = Yo({
4312
4312
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
4313
4313
  strategy: "fixed",
4314
4314
  placement: k,
4315
- whileElementsMounted: (...oe) => Go(...oe, {
4315
+ whileElementsMounted: (...oe) => Ko(...oe, {
4316
4316
  animationFrame: v === "always"
4317
4317
  }),
4318
4318
  elements: {
4319
4319
  reference: b.anchor
4320
4320
  },
4321
4321
  middleware: [
4322
- Yo({ mainAxis: o + T, alignmentAxis: i }),
4323
- l && Xo({
4322
+ Xo({ mainAxis: o + T, alignmentAxis: i }),
4323
+ l && qo({
4324
4324
  mainAxis: !0,
4325
4325
  crossAxis: !1,
4326
- limiter: d === "partial" ? qo() : void 0,
4326
+ limiter: d === "partial" ? Zo() : void 0,
4327
4327
  ...j
4328
4328
  }),
4329
- l && Zo({ ...j }),
4330
- Jo({
4329
+ l && Jo({ ...j }),
4330
+ Qo({
4331
4331
  ...j,
4332
4332
  apply: ({ elements: oe, rects: Je, availableWidth: Yt, availableHeight: Xt }) => {
4333
4333
  const { width: qt, height: Zt } = Je.reference, me = oe.floating.style;
4334
4334
  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`);
4335
4335
  }
4336
4336
  }),
4337
- C && es({ element: C, padding: a }),
4338
- qu({ arrowWidth: R, arrowHeight: T }),
4339
- p && Qo({ strategy: "referenceHidden", ...j })
4337
+ C && ts({ element: C, padding: a }),
4338
+ qu({ arrowWidth: S, arrowHeight: T }),
4339
+ p && es({ strategy: "referenceHidden", ...j })
4340
4340
  ]
4341
- }), [A, E] = Zs($), _ = xe(g);
4341
+ }), [A, E] = Js($), _ = xe(g);
4342
4342
  De(() => {
4343
4343
  F && (_ == null || _());
4344
4344
  }, [F, _]);
@@ -4374,7 +4374,7 @@ var tr = "PopperContent", [Ku, Hu] = Us(tr), Ys = c.forwardRef(
4374
4374
  {
4375
4375
  scope: n,
4376
4376
  placedSide: A,
4377
- onArrowChange: S,
4377
+ onArrowChange: R,
4378
4378
  arrowX: N,
4379
4379
  arrowY: U,
4380
4380
  shouldHideArrow: Y,
@@ -4399,14 +4399,14 @@ var tr = "PopperContent", [Ku, Hu] = Us(tr), Ys = c.forwardRef(
4399
4399
  );
4400
4400
  }
4401
4401
  );
4402
- Ys.displayName = tr;
4403
- var Xs = "PopperArrow", Yu = {
4402
+ Xs.displayName = tr;
4403
+ var qs = "PopperArrow", Yu = {
4404
4404
  top: "bottom",
4405
4405
  right: "left",
4406
4406
  bottom: "top",
4407
4407
  left: "right"
4408
- }, qs = c.forwardRef(function(t, n) {
4409
- const { __scopePopper: r, ...o } = t, s = Hu(Xs, r), i = Yu[s.placedSide];
4408
+ }, Zs = c.forwardRef(function(t, n) {
4409
+ const { __scopePopper: r, ...o } = t, s = Hu(qs, r), i = Yu[s.placedSide];
4410
4410
  return (
4411
4411
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
4412
4412
  // doesn't report size as we'd expect on SVG elements.
@@ -4450,7 +4450,7 @@ var Xs = "PopperArrow", Yu = {
4450
4450
  )
4451
4451
  );
4452
4452
  });
4453
- qs.displayName = Xs;
4453
+ Zs.displayName = qs;
4454
4454
  function Xu(e) {
4455
4455
  return e !== null;
4456
4456
  }
@@ -4459,23 +4459,23 @@ var qu = (e) => ({
4459
4459
  options: e,
4460
4460
  fn(t) {
4461
4461
  var b, x, w;
4462
- 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] = Zs(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;
4462
+ 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] = Js(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;
4463
4463
  let g = "", m = "";
4464
4464
  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 } };
4465
4465
  }
4466
4466
  });
4467
- function Zs(e) {
4467
+ function Js(e) {
4468
4468
  const [t, n = "center"] = e.split("-");
4469
4469
  return [t, n];
4470
4470
  }
4471
- var Js = Gs, Zu = Hs, Ju = Ys, Qu = qs, ed = "Portal", Qs = c.forwardRef((e, t) => {
4471
+ var Qs = Ks, Zu = Ys, Ju = Xs, Qu = Zs, ed = "Portal", ei = c.forwardRef((e, t) => {
4472
4472
  var a;
4473
4473
  const { container: n, ...r } = e, [o, s] = c.useState(!1);
4474
4474
  De(() => s(!0), []);
4475
4475
  const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
4476
- return i ? Ao.createPortal(/* @__PURE__ */ h.jsx(re.div, { ...r, ref: t }), i) : null;
4476
+ return i ? _o.createPortal(/* @__PURE__ */ h.jsx(re.div, { ...r, ref: t }), i) : null;
4477
4477
  });
4478
- Qs.displayName = ed;
4478
+ ei.displayName = ed;
4479
4479
  function td(e, t) {
4480
4480
  return c.useReducer((n, r) => t[n][r] ?? n, e);
4481
4481
  }
@@ -4547,7 +4547,7 @@ function Ke(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
4547
4547
  return t == null ? void 0 : t(o);
4548
4548
  };
4549
4549
  }
4550
- function ei(e, t = []) {
4550
+ function ti(e, t = []) {
4551
4551
  let n = [];
4552
4552
  function r(s, i) {
4553
4553
  const a = c.createContext(i), l = n.length;
@@ -4597,29 +4597,29 @@ function od(...e) {
4597
4597
  };
4598
4598
  return n.scopeName = t.scopeName, n;
4599
4599
  }
4600
- function go(e, t) {
4600
+ function bo(e, t) {
4601
4601
  if (typeof e == "function")
4602
4602
  return e(t);
4603
4603
  e != null && (e.current = t);
4604
4604
  }
4605
- function ti(...e) {
4605
+ function ni(...e) {
4606
4606
  return (t) => {
4607
4607
  let n = !1;
4608
4608
  const r = e.map((o) => {
4609
- const s = go(o, t);
4609
+ const s = bo(o, t);
4610
4610
  return !n && typeof s == "function" && (n = !0), s;
4611
4611
  });
4612
4612
  if (n)
4613
4613
  return () => {
4614
4614
  for (let o = 0; o < r.length; o++) {
4615
4615
  const s = r[o];
4616
- typeof s == "function" ? s() : go(e[o], null);
4616
+ typeof s == "function" ? s() : bo(e[o], null);
4617
4617
  }
4618
4618
  };
4619
4619
  };
4620
4620
  }
4621
4621
  function Sn(...e) {
4622
- return c.useCallback(ti(...e), e);
4622
+ return c.useCallback(ni(...e), e);
4623
4623
  }
4624
4624
  // @__NO_SIDE_EFFECTS__
4625
4625
  function Rn(e) {
@@ -4639,7 +4639,7 @@ function sd(e) {
4639
4639
  const { children: o, ...s } = n;
4640
4640
  if (c.isValidElement(o)) {
4641
4641
  const i = ld(o), a = cd(s, o.props);
4642
- return o.type !== c.Fragment && (a.ref = r ? ti(r, i) : i), c.cloneElement(o, a);
4642
+ return o.type !== c.Fragment && (a.ref = r ? ni(r, i) : i), c.cloneElement(o, a);
4643
4643
  }
4644
4644
  return c.Children.count(o) > 1 ? c.Children.only(null) : null;
4645
4645
  });
@@ -4666,7 +4666,7 @@ function ld(e) {
4666
4666
  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);
4667
4667
  }
4668
4668
  function ud(e) {
4669
- const t = e + "CollectionProvider", [n, r] = ei(t), [o, s] = n(
4669
+ const t = e + "CollectionProvider", [n, r] = ti(t), [o, s] = n(
4670
4670
  t,
4671
4671
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
4672
4672
  ), i = (m) => {
@@ -4683,8 +4683,8 @@ function ud(e) {
4683
4683
  u.displayName = a;
4684
4684
  const f = e + "CollectionItemSlot", d = "data-radix-collection-item", p = /* @__PURE__ */ Rn(f), v = V.forwardRef(
4685
4685
  (m, b) => {
4686
- const { scope: x, children: w, ...y } = m, C = V.useRef(null), S = Sn(b, C), P = s(f, x);
4687
- return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...y }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: S, children: w });
4686
+ const { scope: x, children: w, ...y } = m, C = V.useRef(null), R = Sn(b, C), P = s(f, x);
4687
+ return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...y }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: R, children: w });
4688
4688
  }
4689
4689
  );
4690
4690
  v.displayName = f;
@@ -4695,7 +4695,7 @@ function ud(e) {
4695
4695
  if (!w) return [];
4696
4696
  const y = Array.from(w.querySelectorAll(`[${d}]`));
4697
4697
  return Array.from(b.itemMap.values()).sort(
4698
- (P, R) => y.indexOf(P.ref.current) - y.indexOf(R.ref.current)
4698
+ (P, S) => y.indexOf(P.ref.current) - y.indexOf(S.ref.current)
4699
4699
  );
4700
4700
  }, [b.collectionRef, b.itemMap]);
4701
4701
  }
@@ -4705,12 +4705,12 @@ function ud(e) {
4705
4705
  r
4706
4706
  ];
4707
4707
  }
4708
- var ni = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
4708
+ var ri = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
4709
4709
  }, dd = c[" useId ".trim().toString()] || (() => {
4710
4710
  }), fd = 0;
4711
4711
  function pd(e) {
4712
4712
  const [t, n] = c.useState(dd());
4713
- return ni(() => {
4713
+ return ri(() => {
4714
4714
  n((r) => r ?? String(fd++));
4715
4715
  }, [e]), t ? `radix-${t}` : "";
4716
4716
  }
@@ -4732,7 +4732,7 @@ var md = [
4732
4732
  "span",
4733
4733
  "svg",
4734
4734
  "ul"
4735
- ], ri = md.reduce((e, t) => {
4735
+ ], oi = md.reduce((e, t) => {
4736
4736
  const n = /* @__PURE__ */ Rn(`Primitive.${t}`), r = c.forwardRef((o, s) => {
4737
4737
  const { asChild: i, ...a } = o, l = i ? n : t;
4738
4738
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h.jsx(l, { ...a, ref: s });
@@ -4748,7 +4748,7 @@ function vd(e) {
4748
4748
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
4749
4749
  }, []);
4750
4750
  }
4751
- var hd = c[" useInsertionEffect ".trim().toString()] || ni;
4751
+ var hd = c[" useInsertionEffect ".trim().toString()] || ri;
4752
4752
  function gd({
4753
4753
  prop: e,
4754
4754
  defaultProp: t,
@@ -4802,13 +4802,13 @@ function wd(e) {
4802
4802
  const t = c.useContext(yd);
4803
4803
  return e || t || "ltr";
4804
4804
  }
4805
- var dn = "rovingFocusGroup.onEntryFocus", Cd = { bubbles: !1, cancelable: !0 }, ft = "RovingFocusGroup", [Pn, oi, Ed] = ud(ft), [Sd, Ut] = ei(
4805
+ var dn = "rovingFocusGroup.onEntryFocus", Cd = { bubbles: !1, cancelable: !0 }, ft = "RovingFocusGroup", [Pn, si, Ed] = ud(ft), [Sd, Ut] = ti(
4806
4806
  ft,
4807
4807
  [Ed]
4808
- ), [Rd, Pd] = Sd(ft), si = c.forwardRef(
4808
+ ), [Rd, Pd] = Sd(ft), ii = c.forwardRef(
4809
4809
  (e, t) => /* @__PURE__ */ h.jsx(Pn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx(Pn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx(Ad, { ...e, ref: t }) }) })
4810
4810
  );
4811
- si.displayName = ft;
4811
+ ii.displayName = ft;
4812
4812
  var Ad = c.forwardRef((e, t) => {
4813
4813
  const {
4814
4814
  __scopeRovingFocusGroup: n,
@@ -4826,7 +4826,7 @@ var Ad = c.forwardRef((e, t) => {
4826
4826
  defaultProp: a ?? null,
4827
4827
  onChange: l,
4828
4828
  caller: ft
4829
- }), [x, w] = c.useState(!1), y = vd(u), C = oi(n), S = c.useRef(!1), [P, R] = c.useState(0);
4829
+ }), [x, w] = c.useState(!1), y = vd(u), C = si(n), R = c.useRef(!1), [P, S] = c.useState(0);
4830
4830
  return c.useEffect(() => {
4831
4831
  const T = p.current;
4832
4832
  if (T)
@@ -4845,15 +4845,15 @@ var Ad = c.forwardRef((e, t) => {
4845
4845
  ),
4846
4846
  onItemShiftTab: c.useCallback(() => w(!0), []),
4847
4847
  onFocusableItemAdd: c.useCallback(
4848
- () => R((T) => T + 1),
4848
+ () => S((T) => T + 1),
4849
4849
  []
4850
4850
  ),
4851
4851
  onFocusableItemRemove: c.useCallback(
4852
- () => R((T) => T - 1),
4852
+ () => S((T) => T - 1),
4853
4853
  []
4854
4854
  ),
4855
4855
  children: /* @__PURE__ */ h.jsx(
4856
- ri.div,
4856
+ oi.div,
4857
4857
  {
4858
4858
  tabIndex: x || P === 0 ? -1 : 0,
4859
4859
  "data-orientation": r,
@@ -4861,27 +4861,27 @@ var Ad = c.forwardRef((e, t) => {
4861
4861
  ref: v,
4862
4862
  style: { outline: "none", ...e.style },
4863
4863
  onMouseDown: Ke(e.onMouseDown, () => {
4864
- S.current = !0;
4864
+ R.current = !0;
4865
4865
  }),
4866
4866
  onFocus: Ke(e.onFocus, (T) => {
4867
- const k = !S.current;
4867
+ const k = !R.current;
4868
4868
  if (T.target === T.currentTarget && k && !x) {
4869
4869
  const I = new CustomEvent(dn, Cd);
4870
4870
  if (T.currentTarget.dispatchEvent(I), !I.defaultPrevented) {
4871
4871
  const L = C().filter(($) => $.focusable), W = L.find(($) => $.active), j = L.find(($) => $.id === m), G = [W, j, ...L].filter(
4872
4872
  Boolean
4873
4873
  ).map(($) => $.ref.current);
4874
- ci(G, f);
4874
+ li(G, f);
4875
4875
  }
4876
4876
  }
4877
- S.current = !1;
4877
+ R.current = !1;
4878
4878
  }),
4879
4879
  onBlur: Ke(e.onBlur, () => w(!1))
4880
4880
  }
4881
4881
  )
4882
4882
  }
4883
4883
  );
4884
- }), ii = "RovingFocusGroupItem", ai = c.forwardRef(
4884
+ }), ai = "RovingFocusGroupItem", ci = c.forwardRef(
4885
4885
  (e, t) => {
4886
4886
  const {
4887
4887
  __scopeRovingFocusGroup: n,
@@ -4890,7 +4890,7 @@ var Ad = c.forwardRef((e, t) => {
4890
4890
  tabStopId: s,
4891
4891
  children: i,
4892
4892
  ...a
4893
- } = e, l = pd(), u = s || l, f = Pd(ii, n), d = f.currentTabStopId === u, p = oi(n), { onFocusableItemAdd: v, onFocusableItemRemove: g, currentTabStopId: m } = f;
4893
+ } = e, l = pd(), u = s || l, f = Pd(ai, n), d = f.currentTabStopId === u, p = si(n), { onFocusableItemAdd: v, onFocusableItemRemove: g, currentTabStopId: m } = f;
4894
4894
  return c.useEffect(() => {
4895
4895
  if (r)
4896
4896
  return v(), () => g();
@@ -4902,7 +4902,7 @@ var Ad = c.forwardRef((e, t) => {
4902
4902
  focusable: r,
4903
4903
  active: o,
4904
4904
  children: /* @__PURE__ */ h.jsx(
4905
- ri.span,
4905
+ oi.span,
4906
4906
  {
4907
4907
  tabIndex: d ? 0 : -1,
4908
4908
  "data-orientation": f.orientation,
@@ -4929,7 +4929,7 @@ var Ad = c.forwardRef((e, t) => {
4929
4929
  const C = y.indexOf(b.currentTarget);
4930
4930
  y = f.loop ? Md(y, C + 1) : y.slice(C + 1);
4931
4931
  }
4932
- setTimeout(() => ci(y));
4932
+ setTimeout(() => li(y));
4933
4933
  }
4934
4934
  }),
4935
4935
  children: typeof i == "function" ? i({ isCurrentTabStop: d, hasTabStop: m != null }) : i
@@ -4939,7 +4939,7 @@ var Ad = c.forwardRef((e, t) => {
4939
4939
  );
4940
4940
  }
4941
4941
  );
4942
- ai.displayName = ii;
4942
+ ci.displayName = ai;
4943
4943
  var _d = {
4944
4944
  ArrowLeft: "prev",
4945
4945
  ArrowUp: "prev",
@@ -4958,7 +4958,7 @@ function Td(e, t, n) {
4958
4958
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
4959
4959
  return _d[r];
4960
4960
  }
4961
- function ci(e, t = !1) {
4961
+ function li(e, t = !1) {
4962
4962
  const n = document.activeElement;
4963
4963
  for (const r of e)
4964
4964
  if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
@@ -4966,17 +4966,17 @@ function ci(e, t = !1) {
4966
4966
  function Md(e, t) {
4967
4967
  return e.map((n, r) => e[(t + r) % e.length]);
4968
4968
  }
4969
- var li = si, ui = ai, An = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"], di = ["ArrowUp", "PageDown", "End"], Nd = [...Id, ...di], kd = {
4969
+ var ui = ii, di = ci, An = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"], fi = ["ArrowUp", "PageDown", "End"], Nd = [...Id, ...fi], kd = {
4970
4970
  ltr: [...An, "ArrowRight"],
4971
4971
  rtl: [...An, "ArrowLeft"]
4972
4972
  }, $d = {
4973
4973
  ltr: ["ArrowLeft"],
4974
4974
  rtl: ["ArrowRight"]
4975
- }, pt = "Menu", [at, Dd, jd] = yu(pt), [je, fi] = Jn(pt, [
4975
+ }, pt = "Menu", [at, Dd, jd] = yu(pt), [je, pi] = Jn(pt, [
4976
4976
  jd,
4977
- Vs,
4977
+ zs,
4978
4978
  Ut
4979
- ]), mt = Vs(), pi = Ut(), [mi, Te] = je(pt), [Ld, vt] = je(pt), vi = (e) => {
4979
+ ]), mt = zs(), mi = Ut(), [vi, Te] = je(pt), [Ld, vt] = je(pt), hi = (e) => {
4980
4980
  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 = Cu(o);
4981
4981
  return c.useEffect(() => {
4982
4982
  const v = () => {
@@ -4985,8 +4985,8 @@ var li = si, ui = ai, An = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"],
4985
4985
  return document.addEventListener("keydown", v, { capture: !0 }), () => {
4986
4986
  document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
4987
4987
  };
4988
- }, []), /* @__PURE__ */ h.jsx(Js, { ...a, children: /* @__PURE__ */ h.jsx(
4989
- mi,
4988
+ }, []), /* @__PURE__ */ h.jsx(Qs, { ...a, children: /* @__PURE__ */ h.jsx(
4989
+ vi,
4990
4990
  {
4991
4991
  scope: t,
4992
4992
  open: n,
@@ -5007,7 +5007,7 @@ var li = si, ui = ai, An = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"],
5007
5007
  }
5008
5008
  ) });
5009
5009
  };
5010
- vi.displayName = pt;
5010
+ hi.displayName = pt;
5011
5011
  var Fd = "MenuAnchor", nr = c.forwardRef(
5012
5012
  (e, t) => {
5013
5013
  const { __scopeMenu: n, ...r } = e, o = mt(n);
@@ -5015,16 +5015,16 @@ var Fd = "MenuAnchor", nr = c.forwardRef(
5015
5015
  }
5016
5016
  );
5017
5017
  nr.displayName = Fd;
5018
- var rr = "MenuPortal", [Wd, hi] = je(rr, {
5018
+ var rr = "MenuPortal", [Wd, gi] = je(rr, {
5019
5019
  forceMount: void 0
5020
- }), gi = (e) => {
5020
+ }), bi = (e) => {
5021
5021
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(rr, t);
5022
- return /* @__PURE__ */ h.jsx(Wd, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(dt, { present: n || s.open, children: /* @__PURE__ */ h.jsx(Qs, { asChild: !0, container: o, children: r }) }) });
5022
+ return /* @__PURE__ */ h.jsx(Wd, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(dt, { present: n || s.open, children: /* @__PURE__ */ h.jsx(ei, { asChild: !0, container: o, children: r }) }) });
5023
5023
  };
5024
- gi.displayName = rr;
5025
- var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
5024
+ bi.displayName = rr;
5025
+ var ne = "MenuContent", [Bd, or] = je(ne), xi = c.forwardRef(
5026
5026
  (e, t) => {
5027
- const n = hi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu);
5027
+ const n = gi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu);
5028
5028
  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(Ud, { ...o, ref: t }) : /* @__PURE__ */ h.jsx(Vd, { ...o, ref: t }) }) }) });
5029
5029
  }
5030
5030
  ), Ud = c.forwardRef(
@@ -5032,7 +5032,7 @@ var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
5032
5032
  const n = Te(ne, e.__scopeMenu), r = c.useRef(null), o = ee(t, r);
5033
5033
  return c.useEffect(() => {
5034
5034
  const s = r.current;
5035
- if (s) return hs(s);
5035
+ if (s) return gs(s);
5036
5036
  }, []), /* @__PURE__ */ h.jsx(
5037
5037
  sr,
5038
5038
  {
@@ -5080,7 +5080,7 @@ var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
5080
5080
  onDismiss: v,
5081
5081
  disableOutsideScroll: g,
5082
5082
  ...m
5083
- } = e, b = Te(ne, n), x = vt(ne, n), w = mt(n), y = pi(n), C = Dd(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 ? Un : c.Fragment, $ = g ? { as: zd, allowPinchZoom: !0 } : void 0, F = (A) => {
5083
+ } = e, b = Te(ne, n), x = vt(ne, n), w = mt(n), y = mi(n), C = Dd(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 ? Un : c.Fragment, $ = g ? { as: zd, allowPinchZoom: !0 } : void 0, F = (A) => {
5084
5084
  var X, B;
5085
5085
  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 = nf(Y, E, U), Z = (B = _.find((K) => K.textValue === H)) == null ? void 0 : B.ref.current;
5086
5086
  (function K(te) {
@@ -5106,7 +5106,7 @@ var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
5106
5106
  onItemLeave: c.useCallback(
5107
5107
  (A) => {
5108
5108
  var E;
5109
- M(A) || ((E = R.current) == null || E.focus(), P(null));
5109
+ M(A) || ((E = S.current) == null || E.focus(), P(null));
5110
5110
  },
5111
5111
  [M]
5112
5112
  ),
@@ -5121,17 +5121,17 @@ var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
5121
5121
  W.current = A;
5122
5122
  }, []),
5123
5123
  children: /* @__PURE__ */ h.jsx(G, { ...$, children: /* @__PURE__ */ h.jsx(
5124
- Fs,
5124
+ Ws,
5125
5125
  {
5126
5126
  asChild: !0,
5127
5127
  trapped: o,
5128
5128
  onMountAutoFocus: z(s, (A) => {
5129
5129
  var E;
5130
- A.preventDefault(), (E = R.current) == null || E.focus({ preventScroll: !0 });
5130
+ A.preventDefault(), (E = S.current) == null || E.focus({ preventScroll: !0 });
5131
5131
  }),
5132
5132
  onUnmountAutoFocus: i,
5133
5133
  children: /* @__PURE__ */ h.jsx(
5134
- js,
5134
+ Ls,
5135
5135
  {
5136
5136
  asChild: !0,
5137
5137
  disableOutsidePointerEvents: a,
@@ -5141,14 +5141,14 @@ var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
5141
5141
  onInteractOutside: p,
5142
5142
  onDismiss: v,
5143
5143
  children: /* @__PURE__ */ h.jsx(
5144
- li,
5144
+ ui,
5145
5145
  {
5146
5146
  asChild: !0,
5147
5147
  ...y,
5148
5148
  dir: x.dir,
5149
5149
  orientation: "vertical",
5150
5150
  loop: r,
5151
- currentTabStopId: S,
5151
+ currentTabStopId: R,
5152
5152
  onCurrentTabStopIdChange: P,
5153
5153
  onEntryFocus: z(l, (A) => {
5154
5154
  x.isUsingKeyboardRef.current || A.preventDefault();
@@ -5159,7 +5159,7 @@ var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
5159
5159
  {
5160
5160
  role: "menu",
5161
5161
  "aria-orientation": "vertical",
5162
- "data-state": $i(b.open),
5162
+ "data-state": Di(b.open),
5163
5163
  "data-radix-menu-content": "",
5164
5164
  dir: x.dir,
5165
5165
  ...w,
@@ -5169,11 +5169,11 @@ var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
5169
5169
  onKeyDown: z(m.onKeyDown, (A) => {
5170
5170
  const _ = A.target.closest("[data-radix-menu-content]") === A.currentTarget, N = A.ctrlKey || A.altKey || A.metaKey, U = A.key.length === 1;
5171
5171
  _ && (A.key === "Tab" && A.preventDefault(), !N && U && F(A.key));
5172
- const Y = R.current;
5172
+ const Y = S.current;
5173
5173
  if (A.target !== Y || !Nd.includes(A.key)) return;
5174
5174
  A.preventDefault();
5175
5175
  const Z = C().filter((X) => !X.disabled).map((X) => X.ref.current);
5176
- di.includes(A.key) && Z.reverse(), ef(Z);
5176
+ fi.includes(A.key) && Z.reverse(), ef(Z);
5177
5177
  }),
5178
5178
  onBlur: z(e.onBlur, (A) => {
5179
5179
  A.currentTarget.contains(A.target) || (window.clearTimeout(k.current), I.current = "");
@@ -5200,7 +5200,7 @@ var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
5200
5200
  );
5201
5201
  }
5202
5202
  );
5203
- bi.displayName = ne;
5203
+ xi.displayName = ne;
5204
5204
  var Gd = "MenuGroup", ir = c.forwardRef(
5205
5205
  (e, t) => {
5206
5206
  const { __scopeMenu: n, ...r } = e;
@@ -5208,24 +5208,24 @@ var Gd = "MenuGroup", ir = c.forwardRef(
5208
5208
  }
5209
5209
  );
5210
5210
  ir.displayName = Gd;
5211
- var Kd = "MenuLabel", xi = c.forwardRef(
5211
+ var Kd = "MenuLabel", yi = c.forwardRef(
5212
5212
  (e, t) => {
5213
5213
  const { __scopeMenu: n, ...r } = e;
5214
5214
  return /* @__PURE__ */ h.jsx(re.div, { ...r, ref: t });
5215
5215
  }
5216
5216
  );
5217
- xi.displayName = Kd;
5218
- var kt = "MenuItem", bo = "menu.itemSelect", Vt = c.forwardRef(
5217
+ yi.displayName = Kd;
5218
+ var kt = "MenuItem", xo = "menu.itemSelect", Vt = c.forwardRef(
5219
5219
  (e, t) => {
5220
5220
  const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = vt(kt, e.__scopeMenu), a = or(kt, e.__scopeMenu), l = ee(t, s), u = c.useRef(!1), f = () => {
5221
5221
  const d = s.current;
5222
5222
  if (!n && d) {
5223
- const p = new CustomEvent(bo, { bubbles: !0, cancelable: !0 });
5224
- d.addEventListener(bo, (v) => r == null ? void 0 : r(v), { once: !0 }), $s(d, p), p.defaultPrevented ? u.current = !1 : i.onClose();
5223
+ const p = new CustomEvent(xo, { bubbles: !0, cancelable: !0 });
5224
+ d.addEventListener(xo, (v) => r == null ? void 0 : r(v), { once: !0 }), Ds(d, p), p.defaultPrevented ? u.current = !1 : i.onClose();
5225
5225
  }
5226
5226
  };
5227
5227
  return /* @__PURE__ */ h.jsx(
5228
- yi,
5228
+ wi,
5229
5229
  {
5230
5230
  ...o,
5231
5231
  ref: l,
@@ -5248,9 +5248,9 @@ var kt = "MenuItem", bo = "menu.itemSelect", Vt = c.forwardRef(
5248
5248
  }
5249
5249
  );
5250
5250
  Vt.displayName = kt;
5251
- var yi = c.forwardRef(
5251
+ var wi = c.forwardRef(
5252
5252
  (e, t) => {
5253
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = or(kt, n), a = pi(n), l = c.useRef(null), u = ee(t, l), [f, d] = c.useState(!1), [p, v] = c.useState("");
5253
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = or(kt, n), a = mi(n), l = c.useRef(null), u = ee(t, l), [f, d] = c.useState(!1), [p, v] = c.useState("");
5254
5254
  return c.useEffect(() => {
5255
5255
  const g = l.current;
5256
5256
  g && v((g.textContent ?? "").trim());
@@ -5260,7 +5260,7 @@ var yi = c.forwardRef(
5260
5260
  scope: n,
5261
5261
  disabled: r,
5262
5262
  textValue: o ?? p,
5263
- children: /* @__PURE__ */ h.jsx(ui, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ h.jsx(
5263
+ children: /* @__PURE__ */ h.jsx(di, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ h.jsx(
5264
5264
  re.div,
5265
5265
  {
5266
5266
  role: "menuitem",
@@ -5286,10 +5286,10 @@ var yi = c.forwardRef(
5286
5286
  }
5287
5287
  );
5288
5288
  }
5289
- ), Hd = "MenuCheckboxItem", wi = c.forwardRef(
5289
+ ), Hd = "MenuCheckboxItem", Ci = c.forwardRef(
5290
5290
  (e, t) => {
5291
5291
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
5292
- return /* @__PURE__ */ h.jsx(Pi, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ h.jsx(
5292
+ return /* @__PURE__ */ h.jsx(Ai, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ h.jsx(
5293
5293
  Vt,
5294
5294
  {
5295
5295
  role: "menuitemcheckbox",
@@ -5306,22 +5306,22 @@ var yi = c.forwardRef(
5306
5306
  ) });
5307
5307
  }
5308
5308
  );
5309
- wi.displayName = Hd;
5310
- var Ci = "MenuRadioGroup", [Yd, Xd] = je(
5311
- Ci,
5309
+ Ci.displayName = Hd;
5310
+ var Ei = "MenuRadioGroup", [Yd, Xd] = je(
5311
+ Ei,
5312
5312
  { value: void 0, onValueChange: () => {
5313
5313
  } }
5314
- ), Ei = c.forwardRef(
5314
+ ), Si = c.forwardRef(
5315
5315
  (e, t) => {
5316
5316
  const { value: n, onValueChange: r, ...o } = e, s = xe(r);
5317
5317
  return /* @__PURE__ */ h.jsx(Yd, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ h.jsx(ir, { ...o, ref: t }) });
5318
5318
  }
5319
5319
  );
5320
- Ei.displayName = Ci;
5321
- var Si = "MenuRadioItem", Ri = c.forwardRef(
5320
+ Si.displayName = Ei;
5321
+ var Ri = "MenuRadioItem", Pi = c.forwardRef(
5322
5322
  (e, t) => {
5323
- const { value: n, ...r } = e, o = Xd(Si, e.__scopeMenu), s = n === o.value;
5324
- return /* @__PURE__ */ h.jsx(Pi, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ h.jsx(
5323
+ const { value: n, ...r } = e, o = Xd(Ri, e.__scopeMenu), s = n === o.value;
5324
+ return /* @__PURE__ */ h.jsx(Ai, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ h.jsx(
5325
5325
  Vt,
5326
5326
  {
5327
5327
  role: "menuitemradio",
@@ -5341,11 +5341,11 @@ var Si = "MenuRadioItem", Ri = c.forwardRef(
5341
5341
  ) });
5342
5342
  }
5343
5343
  );
5344
- Ri.displayName = Si;
5345
- var ar = "MenuItemIndicator", [Pi, qd] = je(
5344
+ Pi.displayName = Ri;
5345
+ var ar = "MenuItemIndicator", [Ai, qd] = je(
5346
5346
  ar,
5347
5347
  { checked: !1 }
5348
- ), Ai = c.forwardRef(
5348
+ ), _i = c.forwardRef(
5349
5349
  (e, t) => {
5350
5350
  const { __scopeMenu: n, forceMount: r, ...o } = e, s = qd(ar, n);
5351
5351
  return /* @__PURE__ */ h.jsx(
@@ -5364,8 +5364,8 @@ var ar = "MenuItemIndicator", [Pi, qd] = je(
5364
5364
  );
5365
5365
  }
5366
5366
  );
5367
- Ai.displayName = ar;
5368
- var Zd = "MenuSeparator", _i = c.forwardRef(
5367
+ _i.displayName = ar;
5368
+ var Zd = "MenuSeparator", Oi = c.forwardRef(
5369
5369
  (e, t) => {
5370
5370
  const { __scopeMenu: n, ...r } = e;
5371
5371
  return /* @__PURE__ */ h.jsx(
@@ -5379,18 +5379,18 @@ var Zd = "MenuSeparator", _i = c.forwardRef(
5379
5379
  );
5380
5380
  }
5381
5381
  );
5382
- _i.displayName = Zd;
5383
- var Jd = "MenuArrow", Oi = c.forwardRef(
5382
+ Oi.displayName = Zd;
5383
+ var Jd = "MenuArrow", Ti = c.forwardRef(
5384
5384
  (e, t) => {
5385
5385
  const { __scopeMenu: n, ...r } = e, o = mt(n);
5386
5386
  return /* @__PURE__ */ h.jsx(Qu, { ...o, ...r, ref: t });
5387
5387
  }
5388
5388
  );
5389
- Oi.displayName = Jd;
5390
- var cr = "MenuSub", [Qd, Ti] = je(cr), Mi = (e) => {
5389
+ Ti.displayName = Jd;
5390
+ var cr = "MenuSub", [Qd, Mi] = je(cr), Ii = (e) => {
5391
5391
  const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(cr, t), i = mt(t), [a, l] = c.useState(null), [u, f] = c.useState(null), d = xe(o);
5392
- return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ h.jsx(Js, { ...i, children: /* @__PURE__ */ h.jsx(
5393
- mi,
5392
+ return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ h.jsx(Qs, { ...i, children: /* @__PURE__ */ h.jsx(
5393
+ vi,
5394
5394
  {
5395
5395
  scope: t,
5396
5396
  open: r,
@@ -5401,8 +5401,8 @@ var cr = "MenuSub", [Qd, Ti] = je(cr), Mi = (e) => {
5401
5401
  Qd,
5402
5402
  {
5403
5403
  scope: t,
5404
- contentId: ho(),
5405
- triggerId: ho(),
5404
+ contentId: go(),
5405
+ triggerId: go(),
5406
5406
  trigger: a,
5407
5407
  onTriggerChange: l,
5408
5408
  children: n
@@ -5411,10 +5411,10 @@ var cr = "MenuSub", [Qd, Ti] = je(cr), Mi = (e) => {
5411
5411
  }
5412
5412
  ) });
5413
5413
  };
5414
- Mi.displayName = cr;
5415
- var rt = "MenuSubTrigger", Ii = c.forwardRef(
5414
+ Ii.displayName = cr;
5415
+ var rt = "MenuSubTrigger", Ni = c.forwardRef(
5416
5416
  (e, t) => {
5417
- const n = Te(rt, e.__scopeMenu), r = vt(rt, e.__scopeMenu), o = Ti(rt, e.__scopeMenu), s = or(rt, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, u = { __scopeMenu: e.__scopeMenu }, f = c.useCallback(() => {
5417
+ const n = Te(rt, e.__scopeMenu), r = vt(rt, e.__scopeMenu), o = Mi(rt, e.__scopeMenu), s = or(rt, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, u = { __scopeMenu: e.__scopeMenu }, f = c.useCallback(() => {
5418
5418
  i.current && window.clearTimeout(i.current), i.current = null;
5419
5419
  }, []);
5420
5420
  return c.useEffect(() => f, [f]), c.useEffect(() => {
@@ -5423,13 +5423,13 @@ var rt = "MenuSubTrigger", Ii = c.forwardRef(
5423
5423
  window.clearTimeout(d), l(null);
5424
5424
  };
5425
5425
  }, [a, l]), /* @__PURE__ */ h.jsx(nr, { asChild: !0, ...u, children: /* @__PURE__ */ h.jsx(
5426
- yi,
5426
+ wi,
5427
5427
  {
5428
5428
  id: o.triggerId,
5429
5429
  "aria-haspopup": "menu",
5430
5430
  "aria-expanded": n.open,
5431
5431
  "aria-controls": o.contentId,
5432
- "data-state": $i(n.open),
5432
+ "data-state": Di(n.open),
5433
5433
  ...e,
5434
5434
  ref: Qn(t, o.onTriggerChange),
5435
5435
  onClick: (d) => {
@@ -5482,10 +5482,10 @@ var rt = "MenuSubTrigger", Ii = c.forwardRef(
5482
5482
  ) });
5483
5483
  }
5484
5484
  );
5485
- Ii.displayName = rt;
5486
- var Ni = "MenuSubContent", ki = c.forwardRef(
5485
+ Ni.displayName = rt;
5486
+ var ki = "MenuSubContent", $i = c.forwardRef(
5487
5487
  (e, t) => {
5488
- const n = hi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu), a = Ti(Ni, e.__scopeMenu), l = c.useRef(null), u = ee(t, l);
5488
+ const n = gi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu), a = Mi(ki, e.__scopeMenu), l = c.useRef(null), u = ee(t, l);
5489
5489
  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(
5490
5490
  sr,
5491
5491
  {
@@ -5518,8 +5518,8 @@ var Ni = "MenuSubContent", ki = c.forwardRef(
5518
5518
  ) }) }) });
5519
5519
  }
5520
5520
  );
5521
- ki.displayName = Ni;
5522
- function $i(e) {
5521
+ $i.displayName = ki;
5522
+ function Di(e) {
5523
5523
  return e ? "open" : "closed";
5524
5524
  }
5525
5525
  function $t(e) {
@@ -5562,18 +5562,18 @@ function of(e, t) {
5562
5562
  function ct(e) {
5563
5563
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
5564
5564
  }
5565
- var sf = vi, af = nr, cf = gi, lf = bi, uf = ir, df = xi, ff = Vt, pf = wi, mf = Ei, vf = Ri, hf = Ai, gf = _i, bf = Oi, xf = Mi, yf = Ii, wf = ki, Cf = c[" useId ".trim().toString()] || (() => {
5565
+ var sf = hi, af = nr, cf = bi, lf = xi, uf = ir, df = yi, ff = Vt, pf = Ci, mf = Si, vf = Pi, hf = _i, gf = Oi, bf = Ti, xf = Ii, yf = Ni, wf = $i, Cf = c[" useId ".trim().toString()] || (() => {
5566
5566
  }), Ef = 0;
5567
- function xo(e) {
5567
+ function yo(e) {
5568
5568
  const [t, n] = c.useState(Cf());
5569
- return Ns(() => {
5569
+ return ks(() => {
5570
5570
  n((r) => r ?? String(Ef++));
5571
5571
  }, [e]), e || (t ? `radix-${t}` : "");
5572
5572
  }
5573
5573
  var zt = "DropdownMenu", [Sf, Rf] = tu(
5574
5574
  zt,
5575
- [fi]
5576
- ), q = fi(), [Pf, Di] = Sf(zt), ur = (e) => {
5575
+ [pi]
5576
+ ), q = pi(), [Pf, ji] = Sf(zt), ur = (e) => {
5577
5577
  const {
5578
5578
  __scopeDropdownMenu: t,
5579
5579
  children: n,
@@ -5582,7 +5582,7 @@ var zt = "DropdownMenu", [Sf, Rf] = tu(
5582
5582
  defaultOpen: s,
5583
5583
  onOpenChange: i,
5584
5584
  modal: a = !0
5585
- } = e, l = q(t), u = c.useRef(null), [f, d] = ks({
5585
+ } = e, l = q(t), u = c.useRef(null), [f, d] = $s({
5586
5586
  prop: o,
5587
5587
  defaultProp: s ?? !1,
5588
5588
  onChange: i,
@@ -5592,9 +5592,9 @@ var zt = "DropdownMenu", [Sf, Rf] = tu(
5592
5592
  Pf,
5593
5593
  {
5594
5594
  scope: t,
5595
- triggerId: xo(),
5595
+ triggerId: yo(),
5596
5596
  triggerRef: u,
5597
- contentId: xo(),
5597
+ contentId: yo(),
5598
5598
  open: f,
5599
5599
  onOpenChange: d,
5600
5600
  onOpenToggle: c.useCallback(() => d((p) => !p), [d]),
@@ -5604,9 +5604,9 @@ var zt = "DropdownMenu", [Sf, Rf] = tu(
5604
5604
  );
5605
5605
  };
5606
5606
  ur.displayName = zt;
5607
- var ji = "DropdownMenuTrigger", dr = c.forwardRef(
5607
+ var Li = "DropdownMenuTrigger", dr = c.forwardRef(
5608
5608
  (e, t) => {
5609
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Di(ji, n), i = q(n);
5609
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = ji(Li, n), i = q(n);
5610
5610
  return /* @__PURE__ */ h.jsx(af, { asChild: !0, ...i, children: /* @__PURE__ */ h.jsx(
5611
5611
  pu.button,
5612
5612
  {
@@ -5619,7 +5619,7 @@ var ji = "DropdownMenuTrigger", dr = c.forwardRef(
5619
5619
  "data-disabled": r ? "" : void 0,
5620
5620
  disabled: r,
5621
5621
  ...o,
5622
- ref: Is(t, s.triggerRef),
5622
+ ref: Ns(t, s.triggerRef),
5623
5623
  onPointerDown: It(e.onPointerDown, (a) => {
5624
5624
  !r && a.button === 0 && a.ctrlKey === !1 && (s.onOpenToggle(), s.open || a.preventDefault());
5625
5625
  }),
@@ -5630,15 +5630,15 @@ var ji = "DropdownMenuTrigger", dr = c.forwardRef(
5630
5630
  ) });
5631
5631
  }
5632
5632
  );
5633
- dr.displayName = ji;
5633
+ dr.displayName = Li;
5634
5634
  var Af = "DropdownMenuPortal", fr = (e) => {
5635
5635
  const { __scopeDropdownMenu: t, ...n } = e, r = q(t);
5636
5636
  return /* @__PURE__ */ h.jsx(cf, { ...r, ...n });
5637
5637
  };
5638
5638
  fr.displayName = Af;
5639
- var Li = "DropdownMenuContent", pr = c.forwardRef(
5639
+ var Fi = "DropdownMenuContent", pr = c.forwardRef(
5640
5640
  (e, t) => {
5641
- const { __scopeDropdownMenu: n, ...r } = e, o = Di(Li, n), s = q(n), i = c.useRef(!1);
5641
+ const { __scopeDropdownMenu: n, ...r } = e, o = ji(Fi, n), s = q(n), i = c.useRef(!1);
5642
5642
  return /* @__PURE__ */ h.jsx(
5643
5643
  lf,
5644
5644
  {
@@ -5667,7 +5667,7 @@ var Li = "DropdownMenuContent", pr = c.forwardRef(
5667
5667
  );
5668
5668
  }
5669
5669
  );
5670
- pr.displayName = Li;
5670
+ pr.displayName = Fi;
5671
5671
  var _f = "DropdownMenuGroup", mr = c.forwardRef(
5672
5672
  (e, t) => {
5673
5673
  const { __scopeDropdownMenu: n, ...r } = e, o = q(n);
@@ -5721,8 +5721,8 @@ var Df = "DropdownMenuArrow", Cr = c.forwardRef(
5721
5721
  }
5722
5722
  );
5723
5723
  Cr.displayName = Df;
5724
- var Fi = (e) => {
5725
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = q(t), [a, l] = ks({
5724
+ var Wi = (e) => {
5725
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = q(t), [a, l] = $s({
5726
5726
  prop: r,
5727
5727
  defaultProp: s ?? !1,
5728
5728
  onChange: o,
@@ -5754,7 +5754,7 @@ var Lf = "DropdownMenuSubContent", Sr = c.forwardRef((e, t) => {
5754
5754
  );
5755
5755
  });
5756
5756
  Sr.displayName = Lf;
5757
- var Ff = ur, Wf = dr, Bf = fr, Uf = pr, Vf = mr, Wi = vr, zf = hr, Gf = gr, Kf = br, Bi = xr, Ui = yr, Vi = wr, Hf = Cr, Yf = Fi, zi = Er, Gi = Sr;
5757
+ var Ff = ur, Wf = dr, Bf = fr, Uf = pr, Vf = mr, Bi = vr, zf = hr, Gf = gr, Kf = br, Ui = xr, Vi = yr, zi = wr, Hf = Cr, Yf = Wi, Gi = Er, Ki = Sr;
5758
5758
  const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5759
5759
  __proto__: null,
5760
5760
  Arrow: Hf,
@@ -5772,22 +5772,22 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5772
5772
  DropdownMenuRadioGroup: br,
5773
5773
  DropdownMenuRadioItem: xr,
5774
5774
  DropdownMenuSeparator: wr,
5775
- DropdownMenuSub: Fi,
5775
+ DropdownMenuSub: Wi,
5776
5776
  DropdownMenuSubContent: Sr,
5777
5777
  DropdownMenuSubTrigger: Er,
5778
5778
  DropdownMenuTrigger: dr,
5779
5779
  Group: Vf,
5780
5780
  Item: zf,
5781
- ItemIndicator: Ui,
5782
- Label: Wi,
5781
+ ItemIndicator: Vi,
5782
+ Label: Bi,
5783
5783
  Portal: Bf,
5784
5784
  RadioGroup: Kf,
5785
- RadioItem: Bi,
5785
+ RadioItem: Ui,
5786
5786
  Root: Ff,
5787
- Separator: Vi,
5787
+ Separator: zi,
5788
5788
  Sub: Yf,
5789
- SubContent: Gi,
5790
- SubTrigger: zi,
5789
+ SubContent: Ki,
5790
+ SubTrigger: Gi,
5791
5791
  Trigger: Wf,
5792
5792
  createDropdownMenuScope: Rf
5793
5793
  }, Symbol.toStringTag, { value: "Module" }));
@@ -5862,10 +5862,10 @@ var qf = ["color"], Zf = /* @__PURE__ */ fe(function(e, t) {
5862
5862
  }));
5863
5863
  });
5864
5864
  const {
5865
- CheckboxItem: Ki,
5866
- Content: Hi,
5865
+ CheckboxItem: Hi,
5866
+ Content: Yi,
5867
5867
  SubContent: rp,
5868
- Item: Yi,
5868
+ Item: Xi,
5869
5869
  ItemIndicator: op,
5870
5870
  Portal: sp,
5871
5871
  Root: ip,
@@ -5875,7 +5875,7 @@ const {
5875
5875
  Label: up,
5876
5876
  Separator: dp
5877
5877
  } = Xf, Bm = ip, Um = ap, fp = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ h.jsxs(
5878
- zi,
5878
+ Gi,
5879
5879
  {
5880
5880
  ref: o,
5881
5881
  className: O(
@@ -5892,7 +5892,7 @@ const {
5892
5892
  ));
5893
5893
  fp.displayName = cp.displayName;
5894
5894
  const pp = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ h.jsx(sp, { children: /* @__PURE__ */ h.jsx(
5895
- Hi,
5895
+ Yi,
5896
5896
  {
5897
5897
  ref: r,
5898
5898
  sideOffset: t,
@@ -5904,9 +5904,9 @@ const pp = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
5904
5904
  ...n
5905
5905
  }
5906
5906
  ) }));
5907
- pp.displayName = Hi.displayName;
5907
+ pp.displayName = Yi.displayName;
5908
5908
  const mp = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
5909
- Gi,
5909
+ Ki,
5910
5910
  {
5911
5911
  ref: n,
5912
5912
  className: O(
@@ -5918,7 +5918,7 @@ const mp = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
5918
5918
  ));
5919
5919
  mp.displayName = rp.displayName;
5920
5920
  const vp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ h.jsx(
5921
- Yi,
5921
+ Xi,
5922
5922
  {
5923
5923
  ref: r,
5924
5924
  className: O(
@@ -5929,9 +5929,9 @@ const vp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
5929
5929
  ...n
5930
5930
  }
5931
5931
  ));
5932
- vp.displayName = Yi.displayName;
5932
+ vp.displayName = Xi.displayName;
5933
5933
  const hp = c.forwardRef(({ checked: e, children: t, className: n, ...r }, o) => /* @__PURE__ */ h.jsxs(
5934
- Ki,
5934
+ Hi,
5935
5935
  {
5936
5936
  ref: o,
5937
5937
  className: O(
@@ -5946,9 +5946,9 @@ const hp = c.forwardRef(({ checked: e, children: t, className: n, ...r }, o) =>
5946
5946
  ]
5947
5947
  }
5948
5948
  ));
5949
- hp.displayName = Ki.displayName;
5949
+ hp.displayName = Hi.displayName;
5950
5950
  const gp = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h.jsxs(
5951
- Bi,
5951
+ Ui,
5952
5952
  {
5953
5953
  ref: r,
5954
5954
  className: O(
@@ -5957,14 +5957,14 @@ const gp = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
5957
5957
  ),
5958
5958
  ...n,
5959
5959
  children: [
5960
- /* @__PURE__ */ h.jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ h.jsx(Ui, { children: /* @__PURE__ */ h.jsx(np, { className: "size-2 fill-current" }) }) }),
5960
+ /* @__PURE__ */ h.jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ h.jsx(Vi, { children: /* @__PURE__ */ h.jsx(np, { className: "size-2 fill-current" }) }) }),
5961
5961
  t
5962
5962
  ]
5963
5963
  }
5964
5964
  ));
5965
5965
  gp.displayName = lp.displayName;
5966
5966
  const bp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ h.jsx(
5967
- Wi,
5967
+ Bi,
5968
5968
  {
5969
5969
  ref: r,
5970
5970
  className: O(
@@ -5977,7 +5977,7 @@ const bp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
5977
5977
  ));
5978
5978
  bp.displayName = up.displayName;
5979
5979
  const xp = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
5980
- Vi,
5980
+ zi,
5981
5981
  {
5982
5982
  ref: n,
5983
5983
  className: O(
@@ -6044,40 +6044,40 @@ function wp(...e) {
6044
6044
  };
6045
6045
  return n.scopeName = t.scopeName, n;
6046
6046
  }
6047
- function yo(e, t) {
6047
+ function wo(e, t) {
6048
6048
  if (typeof e == "function")
6049
6049
  return e(t);
6050
6050
  e != null && (e.current = t);
6051
6051
  }
6052
- function Xi(...e) {
6052
+ function qi(...e) {
6053
6053
  return (t) => {
6054
6054
  let n = !1;
6055
6055
  const r = e.map((o) => {
6056
- const s = yo(o, t);
6056
+ const s = wo(o, t);
6057
6057
  return !n && typeof s == "function" && (n = !0), s;
6058
6058
  });
6059
6059
  if (n)
6060
6060
  return () => {
6061
6061
  for (let o = 0; o < r.length; o++) {
6062
6062
  const s = r[o];
6063
- typeof s == "function" ? s() : yo(e[o], null);
6063
+ typeof s == "function" ? s() : wo(e[o], null);
6064
6064
  }
6065
6065
  };
6066
6066
  };
6067
6067
  }
6068
6068
  function Cp(...e) {
6069
- return c.useCallback(Xi(...e), e);
6069
+ return c.useCallback(qi(...e), e);
6070
6070
  }
6071
6071
  var Dt = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
6072
6072
  };
6073
6073
  function Ep(e, t) {
6074
6074
  return c.useReducer((n, r) => t[n][r] ?? n, e);
6075
6075
  }
6076
- var qi = (e) => {
6076
+ var Zi = (e) => {
6077
6077
  const { present: t, children: n } = e, r = Sp(t), o = typeof n == "function" ? n({ present: r.isPresent }) : c.Children.only(n), s = Cp(r.ref, Rp(o));
6078
6078
  return typeof n == "function" || r.isPresent ? c.cloneElement(o, { ref: s }) : null;
6079
6079
  };
6080
- qi.displayName = "Presence";
6080
+ Zi.displayName = "Presence";
6081
6081
  function Sp(e) {
6082
6082
  const [t, n] = c.useState(), r = c.useRef(null), o = c.useRef(e), s = c.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] = Ep(i, {
6083
6083
  mounted: {
@@ -6153,7 +6153,7 @@ function Ap(e) {
6153
6153
  const { children: o, ...s } = n;
6154
6154
  if (c.isValidElement(o)) {
6155
6155
  const i = Mp(o), a = Tp(s, o.props);
6156
- return o.type !== c.Fragment && (a.ref = r ? Xi(r, i) : i), c.cloneElement(o, a);
6156
+ return o.type !== c.Fragment && (a.ref = r ? qi(r, i) : i), c.cloneElement(o, a);
6157
6157
  }
6158
6158
  return c.Children.count(o) > 1 ? c.Children.only(null) : null;
6159
6159
  });
@@ -6267,7 +6267,7 @@ function Bp(e) {
6267
6267
  }
6268
6268
  var Ht = "Tabs", [Up, Vp] = yp(Ht, [
6269
6269
  Ut
6270
- ]), Zi = Ut(), [zp, Rr] = Up(Ht), Pr = c.forwardRef(
6270
+ ]), Ji = Ut(), [zp, Rr] = Up(Ht), Pr = c.forwardRef(
6271
6271
  (e, t) => {
6272
6272
  const {
6273
6273
  __scopeTabs: n,
@@ -6308,11 +6308,11 @@ var Ht = "Tabs", [Up, Vp] = yp(Ht, [
6308
6308
  }
6309
6309
  );
6310
6310
  Pr.displayName = Ht;
6311
- var Ji = "TabsList", Ar = c.forwardRef(
6311
+ var Qi = "TabsList", Ar = c.forwardRef(
6312
6312
  (e, t) => {
6313
- const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Rr(Ji, n), i = Zi(n);
6313
+ const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Rr(Qi, n), i = Ji(n);
6314
6314
  return /* @__PURE__ */ h.jsx(
6315
- li,
6315
+ ui,
6316
6316
  {
6317
6317
  asChild: !0,
6318
6318
  ...i,
@@ -6332,12 +6332,12 @@ var Ji = "TabsList", Ar = c.forwardRef(
6332
6332
  );
6333
6333
  }
6334
6334
  );
6335
- Ar.displayName = Ji;
6336
- var Qi = "TabsTrigger", _r = c.forwardRef(
6335
+ Ar.displayName = Qi;
6336
+ var ea = "TabsTrigger", _r = c.forwardRef(
6337
6337
  (e, t) => {
6338
- const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, i = Rr(Qi, n), a = Zi(n), l = ta(i.baseId, r), u = na(i.baseId, r), f = r === i.value;
6338
+ const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, i = Rr(ea, n), a = Ji(n), l = na(i.baseId, r), u = ra(i.baseId, r), f = r === i.value;
6339
6339
  return /* @__PURE__ */ h.jsx(
6340
- ui,
6340
+ di,
6341
6341
  {
6342
6342
  asChild: !0,
6343
6343
  ...a,
@@ -6372,14 +6372,14 @@ var Qi = "TabsTrigger", _r = c.forwardRef(
6372
6372
  );
6373
6373
  }
6374
6374
  );
6375
- _r.displayName = Qi;
6376
- var ea = "TabsContent", Or = c.forwardRef(
6375
+ _r.displayName = ea;
6376
+ var ta = "TabsContent", Or = c.forwardRef(
6377
6377
  (e, t) => {
6378
- const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = Rr(ea, n), l = ta(a.baseId, r), u = na(a.baseId, r), f = r === a.value, d = c.useRef(f);
6378
+ const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = Rr(ta, n), l = na(a.baseId, r), u = ra(a.baseId, r), f = r === a.value, d = c.useRef(f);
6379
6379
  return c.useEffect(() => {
6380
6380
  const p = requestAnimationFrame(() => d.current = !1);
6381
6381
  return () => cancelAnimationFrame(p);
6382
- }, []), /* @__PURE__ */ h.jsx(qi, { present: o || f, children: ({ present: p }) => /* @__PURE__ */ h.jsx(
6382
+ }, []), /* @__PURE__ */ h.jsx(Zi, { present: o || f, children: ({ present: p }) => /* @__PURE__ */ h.jsx(
6383
6383
  Kt.div,
6384
6384
  {
6385
6385
  "data-state": f ? "active" : "inactive",
@@ -6400,11 +6400,11 @@ var ea = "TabsContent", Or = c.forwardRef(
6400
6400
  ) });
6401
6401
  }
6402
6402
  );
6403
- Or.displayName = ea;
6404
- function ta(e, t) {
6403
+ Or.displayName = ta;
6404
+ function na(e, t) {
6405
6405
  return `${e}-trigger-${t}`;
6406
6406
  }
6407
- function na(e, t) {
6407
+ function ra(e, t) {
6408
6408
  return `${e}-content-${t}`;
6409
6409
  }
6410
6410
  var Gp = Pr, Kp = Ar, Hp = _r, Yp = Or;
@@ -6598,11 +6598,11 @@ const ye = {
6598
6598
  }) => /* @__PURE__ */ h.jsx(
6599
6599
  he,
6600
6600
  {
6601
- className: O(wo.base, wo.status[t], n),
6601
+ className: O(Co.base, Co.status[t], n),
6602
6602
  "data-testid": "status",
6603
6603
  children: e
6604
6604
  }
6605
- ), wo = {
6605
+ ), Co = {
6606
6606
  base: "inline-flex rounded-[50px] cursor-pointer px-2.5 py-1.5 text-dark-40/[.80] text-xs font-medium leading-none",
6607
6607
  status: {
6608
6608
  success: "bg-success-30",
@@ -6629,7 +6629,7 @@ var Tr = "Switch", [Jp, Qp] = jt(Tr), [em, tm] = Jp(Tr), Mr = c.forwardRef(
6629
6629
  onCheckedChange: u,
6630
6630
  form: f,
6631
6631
  ...d
6632
- } = 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] = To({
6632
+ } = 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] = Mo({
6633
6633
  prop: o,
6634
6634
  defaultProp: s,
6635
6635
  onChange: u
@@ -6642,7 +6642,7 @@ var Tr = "Switch", [Jp, Qp] = jt(Tr), [em, tm] = Jp(Tr), Mr = c.forwardRef(
6642
6642
  role: "switch",
6643
6643
  "aria-checked": x,
6644
6644
  "aria-required": i,
6645
- "data-state": oa(x),
6645
+ "data-state": sa(x),
6646
6646
  "data-disabled": a ? "" : void 0,
6647
6647
  disabled: a,
6648
6648
  value: l,
@@ -6671,13 +6671,13 @@ var Tr = "Switch", [Jp, Qp] = jt(Tr), [em, tm] = Jp(Tr), Mr = c.forwardRef(
6671
6671
  }
6672
6672
  );
6673
6673
  Mr.displayName = Tr;
6674
- var ra = "SwitchThumb", Ir = c.forwardRef(
6674
+ var oa = "SwitchThumb", Ir = c.forwardRef(
6675
6675
  (e, t) => {
6676
- const { __scopeSwitch: n, ...r } = e, o = tm(ra, n);
6676
+ const { __scopeSwitch: n, ...r } = e, o = tm(oa, n);
6677
6677
  return /* @__PURE__ */ h.jsx(
6678
6678
  ce.span,
6679
6679
  {
6680
- "data-state": oa(o.checked),
6680
+ "data-state": sa(o.checked),
6681
6681
  "data-disabled": o.disabled ? "" : void 0,
6682
6682
  ...r,
6683
6683
  ref: t
@@ -6685,9 +6685,9 @@ var ra = "SwitchThumb", Ir = c.forwardRef(
6685
6685
  );
6686
6686
  }
6687
6687
  );
6688
- Ir.displayName = ra;
6688
+ Ir.displayName = oa;
6689
6689
  var nm = (e) => {
6690
- const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = c.useRef(null), i = Zp(n), a = ns(t);
6690
+ const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = c.useRef(null), i = Zp(n), a = rs(t);
6691
6691
  return c.useEffect(() => {
6692
6692
  const l = s.current, u = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(u, "checked").set;
6693
6693
  if (i !== n && d) {
@@ -6714,7 +6714,7 @@ var nm = (e) => {
6714
6714
  }
6715
6715
  );
6716
6716
  };
6717
- function oa(e) {
6717
+ function sa(e) {
6718
6718
  return e ? "checked" : "unchecked";
6719
6719
  }
6720
6720
  var rm = Mr, om = Ir;
@@ -6945,31 +6945,31 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6945
6945
  value: i,
6946
6946
  isDotable: a
6947
6947
  }) => {
6948
- const [l, u] = Po(!1), d = va(o)(i), p = pa(null), v = Ne.base, g = Ne.options, m = Ne.message.base, b = Ne.message.styles, x = Ne.disabled.trigger, w = Ne.disabled.triggerText, y = ({
6949
- className: S,
6950
- text: P = ""
6948
+ const [l, u] = Ao(!1), d = va(o)(i), p = $r(null), v = $r(null), g = Ne.base, m = Ne.options, b = Ne.message.base, x = Ne.message.styles, w = Ne.disabled.trigger, y = Ne.disabled.triggerText, C = ({
6949
+ className: P,
6950
+ text: S = ""
6951
6951
  }) => /* @__PURE__ */ h.jsx(
6952
6952
  he,
6953
6953
  {
6954
6954
  className: O(
6955
- v.placeholder,
6956
- t && w,
6957
- S
6955
+ g.placeholder,
6956
+ t && y,
6957
+ P
6958
6958
  ),
6959
- children: P
6959
+ children: S
6960
6960
  }
6961
- ), C = (S) => {
6962
- if (S.preventDefault(), i && p.current) {
6963
- const P = p.current.querySelector(
6961
+ ), R = (P) => {
6962
+ if (P.preventDefault(), i && v.current) {
6963
+ const S = v.current.querySelector(
6964
6964
  `[data-value="${i}"]`
6965
6965
  );
6966
- P && P.scrollIntoView({
6966
+ S && S.scrollIntoView({
6967
6967
  block: "center",
6968
6968
  behavior: "auto"
6969
6969
  });
6970
6970
  }
6971
6971
  };
6972
- return /* @__PURE__ */ h.jsxs("div", { className: O("w-full", e == null ? void 0 : e.parent), children: [
6972
+ return /* @__PURE__ */ h.jsxs("div", { ref: p, className: O("w-full", e == null ? void 0 : e.parent), children: [
6973
6973
  /* @__PURE__ */ h.jsxs(Jl, { open: l, onOpenChange: u, children: [
6974
6974
  /* @__PURE__ */ h.jsxs(
6975
6975
  Ql,
@@ -6977,26 +6977,26 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6977
6977
  role: "listbox",
6978
6978
  disabled: t,
6979
6979
  className: O(
6980
- v.trigger,
6981
- t && x,
6982
- !l && n && b[n == null ? void 0 : n.type].trigger,
6983
- l && v.focus,
6984
- !l && !t && v.hover,
6980
+ g.trigger,
6981
+ t && w,
6982
+ !l && n && x[n == null ? void 0 : n.type].trigger,
6983
+ l && g.focus,
6984
+ !l && !t && g.hover,
6985
6985
  e == null ? void 0 : e.trigger
6986
6986
  ),
6987
6987
  children: [
6988
6988
  i ? /* @__PURE__ */ h.jsx(
6989
- y,
6989
+ C,
6990
6990
  {
6991
6991
  text: d == null ? void 0 : d.label,
6992
6992
  className: O(
6993
- v.selected,
6993
+ g.selected,
6994
6994
  t && Ne.disabled.selectedDisabled,
6995
6995
  e == null ? void 0 : e.selected
6996
6996
  )
6997
6997
  }
6998
6998
  ) : /* @__PURE__ */ h.jsx(
6999
- y,
6999
+ C,
7000
7000
  {
7001
7001
  text: s,
7002
7002
  className: e == null ? void 0 : e.placeholder
@@ -7006,8 +7006,8 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7006
7006
  ya,
7007
7007
  {
7008
7008
  className: O(
7009
- v.icon,
7010
- t && v.iconDisabled,
7009
+ g.icon,
7010
+ t && g.iconDisabled,
7011
7011
  l && "rotate-180"
7012
7012
  )
7013
7013
  }
@@ -7015,46 +7015,47 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7015
7015
  ]
7016
7016
  }
7017
7017
  ),
7018
- /* @__PURE__ */ h.jsx(
7018
+ /* @__PURE__ */ h.jsx("div", { ref: p, children: /* @__PURE__ */ h.jsx(
7019
7019
  eu,
7020
7020
  {
7021
- className: O(g.content, e == null ? void 0 : e.content),
7021
+ container: p.current,
7022
+ className: O(m.content, e == null ? void 0 : e.content),
7022
7023
  style: { minWidth: "var(--radix-popper-anchor-width)" },
7023
- onOpenAutoFocus: C,
7024
- ref: p,
7025
- children: o && (o == null ? void 0 : o.map((S) => /* @__PURE__ */ h.jsx(
7024
+ onOpenAutoFocus: R,
7025
+ ref: v,
7026
+ children: o && (o == null ? void 0 : o.map((P) => /* @__PURE__ */ h.jsx(
7026
7027
  "div",
7027
7028
  {
7028
- "data-value": S.value,
7029
- className: O(g.items),
7030
- onClick: (P) => {
7031
- P.preventDefault(), P.stopPropagation(), r(S.value), u(!1);
7029
+ "data-value": P.value,
7030
+ className: O(m.items),
7031
+ onClick: (S) => {
7032
+ S.preventDefault(), S.stopPropagation(), r(P.value), u(!1);
7032
7033
  },
7033
7034
  children: /* @__PURE__ */ h.jsx(
7034
7035
  he,
7035
7036
  {
7036
7037
  className: O(
7037
- g.itemsText,
7038
- !a && i === S.value && g.active,
7039
- a && g.dot,
7040
- a && i === S.value && "before:bg-dark-10 !font-bold"
7038
+ m.itemsText,
7039
+ !a && i === P.value && m.active,
7040
+ a && m.dot,
7041
+ a && i === P.value && "before:bg-dark-10 !font-bold"
7041
7042
  ),
7042
- children: S.label
7043
+ children: P.label
7043
7044
  }
7044
7045
  )
7045
7046
  },
7046
- S.value
7047
+ P.value
7047
7048
  )))
7048
7049
  }
7049
- )
7050
+ ) })
7050
7051
  ] }),
7051
7052
  n && /* @__PURE__ */ h.jsx(
7052
7053
  he,
7053
7054
  {
7054
7055
  variant: "span",
7055
7056
  className: O(
7056
- m,
7057
- b[n.type].message
7057
+ b,
7058
+ x[n.type].message
7058
7059
  ),
7059
7060
  children: n.text
7060
7061
  }
@@ -7164,7 +7165,7 @@ function um(e) {
7164
7165
  }
7165
7166
  var _n = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
7166
7167
  };
7167
- function Co(e, t) {
7168
+ function Eo(e, t) {
7168
7169
  if (typeof e == "function")
7169
7170
  return e(t);
7170
7171
  e != null && (e.current = t);
@@ -7173,14 +7174,14 @@ function dm(...e) {
7173
7174
  return (t) => {
7174
7175
  let n = !1;
7175
7176
  const r = e.map((o) => {
7176
- const s = Co(o, t);
7177
+ const s = Eo(o, t);
7177
7178
  return !n && typeof s == "function" && (n = !0), s;
7178
7179
  });
7179
7180
  if (n)
7180
7181
  return () => {
7181
7182
  for (let o = 0; o < r.length; o++) {
7182
7183
  const s = r[o];
7183
- typeof s == "function" ? s() : Co(e[o], null);
7184
+ typeof s == "function" ? s() : Eo(e[o], null);
7184
7185
  }
7185
7186
  };
7186
7187
  };
@@ -7263,10 +7264,10 @@ var bm = [
7263
7264
  * This source code is licensed under the MIT license found in the
7264
7265
  * LICENSE file in the root directory of this source tree.
7265
7266
  */
7266
- var Eo;
7267
+ var So;
7267
7268
  function xm() {
7268
- if (Eo) return mn;
7269
- Eo = 1;
7269
+ if (So) return mn;
7270
+ So = 1;
7270
7271
  var e = V;
7271
7272
  function t(d, p) {
7272
7273
  return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
@@ -7314,9 +7315,9 @@ var vn = {};
7314
7315
  * This source code is licensed under the MIT license found in the
7315
7316
  * LICENSE file in the root directory of this source tree.
7316
7317
  */
7317
- var So;
7318
+ var Ro;
7318
7319
  function ym() {
7319
- return So || (So = 1, process.env.NODE_ENV !== "production" && function() {
7320
+ return Ro || (Ro = 1, process.env.NODE_ENV !== "production" && function() {
7320
7321
  function e(v, g) {
7321
7322
  return v === g && (v !== 0 || 1 / v === 1 / g) || v !== v && g !== g;
7322
7323
  }
@@ -7380,7 +7381,7 @@ function Em() {
7380
7381
  return () => {
7381
7382
  };
7382
7383
  }
7383
- var kr = "Avatar", [Sm, Xm] = cm(kr), [Rm, sa] = Sm(kr), ia = c.forwardRef(
7384
+ var kr = "Avatar", [Sm, Xm] = cm(kr), [Rm, ia] = Sm(kr), aa = c.forwardRef(
7384
7385
  (e, t) => {
7385
7386
  const { __scopeAvatar: n, ...r } = e, [o, s] = c.useState("idle");
7386
7387
  return /* @__PURE__ */ h.jsx(
@@ -7394,11 +7395,11 @@ var kr = "Avatar", [Sm, Xm] = cm(kr), [Rm, sa] = Sm(kr), ia = c.forwardRef(
7394
7395
  );
7395
7396
  }
7396
7397
  );
7397
- ia.displayName = kr;
7398
- var aa = "AvatarImage", ca = c.forwardRef(
7398
+ aa.displayName = kr;
7399
+ var ca = "AvatarImage", la = c.forwardRef(
7399
7400
  (e, t) => {
7400
7401
  const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
7401
- }, ...s } = e, i = sa(aa, n), a = Pm(r, s), l = um((u) => {
7402
+ }, ...s } = e, i = ia(ca, n), a = Pm(r, s), l = um((u) => {
7402
7403
  o(u), i.onImageLoadingStatusChange(u);
7403
7404
  });
7404
7405
  return _n(() => {
@@ -7406,10 +7407,10 @@ var aa = "AvatarImage", ca = c.forwardRef(
7406
7407
  }, [a, l]), a === "loaded" ? /* @__PURE__ */ h.jsx(Nr.img, { ...s, ref: t, src: r }) : null;
7407
7408
  }
7408
7409
  );
7409
- ca.displayName = aa;
7410
- var la = "AvatarFallback", ua = c.forwardRef(
7410
+ la.displayName = ca;
7411
+ var ua = "AvatarFallback", da = c.forwardRef(
7411
7412
  (e, t) => {
7412
- const { __scopeAvatar: n, delayMs: r, ...o } = e, s = sa(la, n), [i, a] = c.useState(r === void 0);
7413
+ const { __scopeAvatar: n, delayMs: r, ...o } = e, s = ia(ua, n), [i, a] = c.useState(r === void 0);
7413
7414
  return c.useEffect(() => {
7414
7415
  if (r !== void 0) {
7415
7416
  const l = window.setTimeout(() => a(!0), r);
@@ -7418,16 +7419,16 @@ var la = "AvatarFallback", ua = c.forwardRef(
7418
7419
  }, [r]), i && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ h.jsx(Nr.span, { ...o, ref: t }) : null;
7419
7420
  }
7420
7421
  );
7421
- ua.displayName = la;
7422
- function Ro(e, t) {
7422
+ da.displayName = ua;
7423
+ function Po(e, t) {
7423
7424
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
7424
7425
  }
7425
7426
  function Pm(e, { referrerPolicy: t, crossOrigin: n }) {
7426
7427
  const r = Cm(), o = c.useRef(null), s = r ? (o.current || (o.current = new window.Image()), o.current) : null, [i, a] = c.useState(
7427
- () => Ro(s, e)
7428
+ () => Po(s, e)
7428
7429
  );
7429
7430
  return _n(() => {
7430
- a(Ro(s, e));
7431
+ a(Po(s, e));
7431
7432
  }, [s, e]), _n(() => {
7432
7433
  const l = (d) => () => {
7433
7434
  a(d);
@@ -7450,7 +7451,7 @@ const qm = ({
7450
7451
  }) => {
7451
7452
  const a = St.root, l = St.image, u = St.badge;
7452
7453
  return /* @__PURE__ */ h.jsxs(
7453
- ia,
7454
+ aa,
7454
7455
  {
7455
7456
  role: "group",
7456
7457
  "data-testid": "avatar-root",
@@ -7462,7 +7463,7 @@ const qm = ({
7462
7463
  ),
7463
7464
  children: [
7464
7465
  e ? /* @__PURE__ */ h.jsx(
7465
- ca,
7466
+ la,
7466
7467
  {
7467
7468
  role: "img",
7468
7469
  "data-testid": "avatar-img",
@@ -7470,8 +7471,8 @@ const qm = ({
7470
7471
  alt: t ?? "empty-avatar",
7471
7472
  className: O(l, i == null ? void 0 : i.img)
7472
7473
  }
7473
- ) : /* @__PURE__ */ h.jsx(ua, { children: s ? /* @__PURE__ */ h.jsx(
7474
- jr,
7474
+ ) : /* @__PURE__ */ h.jsx(da, { children: s ? /* @__PURE__ */ h.jsx(
7475
+ Lr,
7475
7476
  {
7476
7477
  width: 38,
7477
7478
  height: 30,
@@ -7498,7 +7499,7 @@ const qm = ({
7498
7499
  "data-testid": "avatar-badge",
7499
7500
  className: O(u.wrapper, i == null ? void 0 : i.badge),
7500
7501
  children: o ? /* @__PURE__ */ h.jsx(
7501
- _o,
7502
+ Oo,
7502
7503
  {
7503
7504
  width: 14,
7504
7505
  height: 14,
@@ -7506,7 +7507,7 @@ const qm = ({
7506
7507
  className: "fill-sidebar-10"
7507
7508
  }
7508
7509
  ) : /* @__PURE__ */ h.jsx(
7509
- jr,
7510
+ Lr,
7510
7511
  {
7511
7512
  width: 16,
7512
7513
  height: 13,
@@ -7534,7 +7535,7 @@ export {
7534
7535
  Nm as C,
7535
7536
  Re as D,
7536
7537
  Lm as E,
7537
- ms as F,
7538
+ vs as F,
7538
7539
  Ta as G,
7539
7540
  km as H,
7540
7541
  Im as I,
@@ -7543,7 +7544,7 @@ export {
7543
7544
  Dm as L,
7544
7545
  Xp as M,
7545
7546
  sm as N,
7546
- os as O,
7547
+ ss as O,
7547
7548
  ce as P,
7548
7549
  qc as Q,
7549
7550
  qp as R,
@@ -7551,7 +7552,7 @@ export {
7551
7552
  Gm as T,
7552
7553
  Da as U,
7553
7554
  Yc as V,
7554
- ps as W,
7555
+ ms as W,
7555
7556
  In as X,
7556
7557
  Xc as Y,
7557
7558
  Sa as Z,
@@ -7578,19 +7579,19 @@ export {
7578
7579
  Le as i,
7579
7580
  pn as j,
7580
7581
  Ym as k,
7581
- Lr as l,
7582
+ Fr as l,
7582
7583
  Ve as m,
7583
7584
  Ne as n,
7584
7585
  St as o,
7585
7586
  h as p,
7586
7587
  jm as q,
7587
7588
  ye as r,
7588
- wo as s,
7589
+ Co as s,
7589
7590
  nt as t,
7590
7591
  jt as u,
7591
7592
  se as v,
7592
7593
  Fm as w,
7593
- To as x,
7594
+ Mo as x,
7594
7595
  Mn as y,
7595
7596
  ve as z
7596
7597
  };