@zhin.js/console 1.0.13 → 1.0.14

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.
package/dist/radix-ui.js CHANGED
@@ -27,20 +27,11 @@ function k(...e) {
27
27
  return s.useCallback($t(...e), e);
28
28
  }
29
29
  var So = { exports: {} }, Tt = {};
30
- /**
31
- * @license React
32
- * react-jsx-runtime.production.js
33
- *
34
- * Copyright (c) Meta Platforms, Inc. and affiliates.
35
- *
36
- * This source code is licensed under the MIT license found in the
37
- * LICENSE file in the root directory of this source tree.
38
- */
39
30
  var tl;
40
31
  function ev() {
41
32
  if (tl) return Tt;
42
33
  tl = 1;
43
- var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
34
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
44
35
  function n(o, r, a) {
45
36
  var i = null;
46
37
  if (a !== void 0 && (i = "" + a), r.key !== void 0 && (i = "" + r.key), "key" in r) {
@@ -88,7 +79,7 @@ function nv(e) {
88
79
  });
89
80
  return t.displayName = `${e}.SlotClone`, t;
90
81
  }
91
- var Yl = Symbol("radix.slottable");
82
+ var Yl = /* @__PURE__ */ Symbol("radix.slottable");
92
83
  // @__NO_SIDE_EFFECTS__
93
84
  function kn(e) {
94
85
  const t = ({ children: n }) => /* @__PURE__ */ u.jsx(u.Fragment, { children: n });
@@ -139,17 +130,17 @@ var iv = [
139
130
  "span",
140
131
  "svg",
141
132
  "ul"
142
- ], I = iv.reduce((e, t) => {
133
+ ], N = iv.reduce((e, t) => {
143
134
  const n = /* @__PURE__ */ Ce(`Primitive.${t}`), o = s.forwardRef((r, a) => {
144
135
  const { asChild: i, ...c } = r, l = i ? n : t;
145
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(l, { ...c, ref: a });
136
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(l, { ...c, ref: a });
146
137
  });
147
138
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
148
139
  }, {});
149
140
  function It(e, t) {
150
141
  e && Ft.flushSync(() => e.dispatchEvent(t));
151
142
  }
152
- var Xl = I, Tr = Object.freeze({
143
+ var Xl = N, Tr = Object.freeze({
153
144
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
154
145
  position: "absolute",
155
146
  border: 0,
@@ -163,7 +154,7 @@ var Xl = I, Tr = Object.freeze({
163
154
  wordWrap: "normal"
164
155
  }), cv = "VisuallyHidden", Vt = s.forwardRef(
165
156
  (e, t) => /* @__PURE__ */ u.jsx(
166
- I.span,
157
+ N.span,
167
158
  {
168
159
  ...e,
169
160
  ref: t,
@@ -279,7 +270,9 @@ function Le(e) {
279
270
  const d = e + "CollectionItemSlot", p = "data-radix-collection-item", v = /* @__PURE__ */ Ce(d), h = W.forwardRef(
280
271
  (m, x) => {
281
272
  const { scope: w, children: b, ...C } = m, y = W.useRef(null), S = k(x, y), T = a(d, w);
282
- return W.useEffect(() => (T.itemMap.set(y, { ref: y, ...C }), () => void T.itemMap.delete(y))), /* @__PURE__ */ u.jsx(v, { [p]: "", ref: S, children: b });
273
+ return W.useEffect(() => (T.itemMap.set(y, { ref: y, ...C }), () => {
274
+ T.itemMap.delete(y);
275
+ })), /* @__PURE__ */ u.jsx(v, { [p]: "", ref: S, children: b });
283
276
  }
284
277
  );
285
278
  h.displayName = d;
@@ -530,27 +523,27 @@ function vv(e) {
530
523
  };
531
524
  c.displayName = t + "Init";
532
525
  const l = (C) => {
533
- const { scope: y, children: S, state: T } = C, E = W.useRef(null), [A, _] = W.useState(
526
+ const { scope: y, children: S, state: T } = C, E = W.useRef(null), [M, _] = W.useState(
534
527
  null
535
- ), P = k(E, _), [M, N] = T;
528
+ ), P = k(E, _), [A, I] = T;
536
529
  return W.useEffect(() => {
537
- if (!A) return;
530
+ if (!M) return;
538
531
  const $ = gv();
539
- return $.observe(A, {
532
+ return $.observe(M, {
540
533
  childList: !0,
541
534
  subtree: !0
542
535
  }), () => {
543
536
  $.disconnect();
544
537
  };
545
- }, [A]), /* @__PURE__ */ u.jsx(
538
+ }, [M]), /* @__PURE__ */ u.jsx(
546
539
  r,
547
540
  {
548
541
  scope: y,
549
- itemMap: M,
550
- setItemMap: N,
542
+ itemMap: A,
543
+ setItemMap: I,
551
544
  collectionRef: P,
552
545
  collectionRefObject: E,
553
- collectionElement: A,
546
+ collectionElement: M,
554
547
  children: S
555
548
  }
556
549
  );
@@ -558,14 +551,14 @@ function vv(e) {
558
551
  l.displayName = t + "Impl";
559
552
  const f = e + "CollectionSlot", d = /* @__PURE__ */ Ce(f), p = W.forwardRef(
560
553
  (C, y) => {
561
- const { scope: S, children: T } = C, E = a(f, S), A = k(y, E.collectionRef);
562
- return /* @__PURE__ */ u.jsx(d, { ref: A, children: T });
554
+ const { scope: S, children: T } = C, E = a(f, S), M = k(y, E.collectionRef);
555
+ return /* @__PURE__ */ u.jsx(d, { ref: M, children: T });
563
556
  }
564
557
  );
565
558
  p.displayName = f;
566
559
  const v = e + "CollectionItemSlot", h = "data-radix-collection-item", g = /* @__PURE__ */ Ce(v), m = W.forwardRef(
567
560
  (C, y) => {
568
- const { scope: S, children: T, ...E } = C, A = W.useRef(null), [_, P] = W.useState(null), M = k(y, A, P), N = a(v, S), { setItemMap: $ } = N, O = W.useRef(E);
561
+ const { scope: S, children: T, ...E } = C, M = W.useRef(null), [_, P] = W.useState(null), A = k(y, M, P), I = a(v, S), { setItemMap: $ } = I, O = W.useRef(E);
569
562
  mv(O.current, E) || (O.current = E);
570
563
  const G = O.current;
571
564
  return W.useEffect(() => {
@@ -573,7 +566,7 @@ function vv(e) {
573
566
  return $((V) => _ ? V.has(_) ? V.set(_, { ...F, element: _ }).toSorted(al) : (V.set(_, { ...F, element: _ }), V.toSorted(al)) : V), () => {
574
567
  $((V) => !_ || !V.has(_) ? V : (V.delete(_), new Ro(V)));
575
568
  };
576
- }, [_, G, $]), /* @__PURE__ */ u.jsx(g, { [h]: "", ref: M, children: T });
569
+ }, [_, G, $]), /* @__PURE__ */ u.jsx(g, { [h]: "", ref: A, children: T });
577
570
  }
578
571
  );
579
572
  m.displayName = v;
@@ -778,7 +771,7 @@ var Fn = "Collapsible", [Pv, Ar] = Y(Fn), [Tv, Mr] = Pv(Fn), Ir = s.forwardRef(
778
771
  open: l,
779
772
  onOpenToggle: s.useCallback(() => f((d) => !d), [f]),
780
773
  children: /* @__PURE__ */ u.jsx(
781
- I.div,
774
+ N.div,
782
775
  {
783
776
  "data-state": jr(l),
784
777
  "data-disabled": a ? "" : void 0,
@@ -795,7 +788,7 @@ var Jl = "CollapsibleTrigger", Nr = s.forwardRef(
795
788
  (e, t) => {
796
789
  const { __scopeCollapsible: n, ...o } = e, r = Mr(Jl, n);
797
790
  return /* @__PURE__ */ u.jsx(
798
- I.button,
791
+ N.button,
799
792
  {
800
793
  type: "button",
801
794
  "aria-controls": r.contentId,
@@ -834,7 +827,7 @@ var _v = s.forwardRef((e, t) => {
834
827
  p.current = C.height, h.current = C.width, x.current || (b.style.transitionDuration = w.current.transitionDuration, b.style.animationName = w.current.animationName), l(o);
835
828
  }
836
829
  }, [i.open, o]), /* @__PURE__ */ u.jsx(
837
- I.div,
830
+ N.div,
838
831
  {
839
832
  "data-state": jr(i.open),
840
833
  "data-disabled": i.disabled ? "" : void 0,
@@ -952,7 +945,7 @@ var [ru, Dv] = $n(Re), [au, jv] = $n(
952
945
  (e, t) => {
953
946
  const { __scopeAccordion: n, disabled: o, dir: r, orientation: a = "vertical", ...i } = e, c = W.useRef(null), l = k(c, t), f = Iv(n), p = de(r) === "ltr", v = R(e.onKeyDown, (h) => {
954
947
  if (!Mv.includes(h.key)) return;
955
- const g = h.target, m = f().filter((A) => !A.ref.current?.disabled), x = m.findIndex((A) => A.ref.current === g), w = m.length;
948
+ const g = h.target, m = f().filter((M) => !M.ref.current?.disabled), x = m.findIndex((M) => M.ref.current === g), w = m.length;
956
949
  if (x === -1) return;
957
950
  h.preventDefault();
958
951
  let b = x;
@@ -992,7 +985,7 @@ var [ru, Dv] = $n(Re), [au, jv] = $n(
992
985
  direction: r,
993
986
  orientation: a,
994
987
  children: /* @__PURE__ */ u.jsx(kr.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(
995
- I.div,
988
+ N.div,
996
989
  {
997
990
  ...i,
998
991
  "data-orientation": a,
@@ -1037,7 +1030,7 @@ var iu = "AccordionHeader", Br = W.forwardRef(
1037
1030
  (e, t) => {
1038
1031
  const { __scopeAccordion: n, ...o } = e, r = Vn(Re, n), a = $r(iu, n);
1039
1032
  return /* @__PURE__ */ u.jsx(
1040
- I.h3,
1033
+ N.h3,
1041
1034
  {
1042
1035
  "data-orientation": r.orientation,
1043
1036
  "data-state": lu(a.open),
@@ -1136,11 +1129,11 @@ var Wv = "DismissableLayer", Go = "dismissableLayer.update", zv = "dismissableLa
1136
1129
  onDismiss: c,
1137
1130
  ...l
1138
1131
  } = e, f = s.useContext(uu), [d, p] = s.useState(null), v = d?.ownerDocument ?? globalThis?.document, [, h] = s.useState({}), g = k(t, (E) => p(E)), m = Array.from(f.layers), [x] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), w = m.indexOf(x), b = d ? m.indexOf(d) : -1, C = f.layersWithOutsidePointerEventsDisabled.size > 0, y = b >= w, S = qv((E) => {
1139
- const A = E.target, _ = [...f.branches].some((P) => P.contains(A));
1132
+ const M = E.target, _ = [...f.branches].some((P) => P.contains(M));
1140
1133
  !y || _ || (r?.(E), i?.(E), E.defaultPrevented || c?.());
1141
1134
  }, v), T = Zv((E) => {
1142
- const A = E.target;
1143
- [...f.branches].some((P) => P.contains(A)) || (a?.(E), i?.(E), E.defaultPrevented || c?.());
1135
+ const M = E.target;
1136
+ [...f.branches].some((P) => P.contains(M)) || (a?.(E), i?.(E), E.defaultPrevented || c?.());
1144
1137
  }, v);
1145
1138
  return Uv((E) => {
1146
1139
  b === f.layers.size - 1 && (o?.(E), !E.defaultPrevented && c && (E.preventDefault(), c()));
@@ -1155,7 +1148,7 @@ var Wv = "DismissableLayer", Go = "dismissableLayer.update", zv = "dismissableLa
1155
1148
  const E = () => h({});
1156
1149
  return document.addEventListener(Go, E), () => document.removeEventListener(Go, E);
1157
1150
  }, []), /* @__PURE__ */ u.jsx(
1158
- I.div,
1151
+ N.div,
1159
1152
  {
1160
1153
  ...l,
1161
1154
  ref: g,
@@ -1182,7 +1175,7 @@ var Xv = "DismissableLayerBranch", du = s.forwardRef((e, t) => {
1182
1175
  return n.branches.add(a), () => {
1183
1176
  n.branches.delete(a);
1184
1177
  };
1185
- }, [n.branches]), /* @__PURE__ */ u.jsx(I.div, { ...e, ref: r });
1178
+ }, [n.branches]), /* @__PURE__ */ u.jsx(N.div, { ...e, ref: r });
1186
1179
  });
1187
1180
  du.displayName = Xv;
1188
1181
  function qv(e, t = globalThis?.document) {
@@ -1301,7 +1294,7 @@ var Jv = Fe, Qv = du, Po = "focusScope.autoFocusOnMount", To = "focusScope.autoF
1301
1294
  },
1302
1295
  [n, o, h.paused]
1303
1296
  );
1304
- return /* @__PURE__ */ u.jsx(I.div, { tabIndex: -1, ...i, ref: v, onKeyDown: g });
1297
+ return /* @__PURE__ */ u.jsx(N.div, { tabIndex: -1, ...i, ref: v, onKeyDown: g });
1305
1298
  });
1306
1299
  Bt.displayName = em;
1307
1300
  function tm(e, { select: t = !1 } = {}) {
@@ -1369,7 +1362,7 @@ var im = "Portal", Ie = s.forwardRef((e, t) => {
1369
1362
  const { container: n, ...o } = e, [r, a] = s.useState(!1);
1370
1363
  te(() => a(!0), []);
1371
1364
  const i = n || r && globalThis?.document?.body;
1372
- return i ? zl.createPortal(/* @__PURE__ */ u.jsx(I.div, { ...o, ref: t }), i) : null;
1365
+ return i ? zl.createPortal(/* @__PURE__ */ u.jsx(N.div, { ...o, ref: t }), i) : null;
1373
1366
  });
1374
1367
  Ie.displayName = im;
1375
1368
  var cm = Ie;
@@ -1794,6 +1787,9 @@ function Gm(e) {
1794
1787
  var w = an(m), b = n.current, C = "deltaX" in m ? m.deltaX : b[0] - w[0], y = "deltaY" in m ? m.deltaY : b[1] - w[1], S, T = m.target, E = Math.abs(C) > Math.abs(y) ? "h" : "v";
1795
1788
  if ("touches" in m && E === "h" && T.type === "range")
1796
1789
  return !1;
1790
+ var M = window.getSelection(), _ = M && M.anchorNode, P = _ ? _ === T || _.contains(T) : !1;
1791
+ if (P)
1792
+ return !1;
1797
1793
  var A = gl(E, T);
1798
1794
  if (!A)
1799
1795
  return !0;
@@ -1801,8 +1797,8 @@ function Gm(e) {
1801
1797
  return !1;
1802
1798
  if (!o.current && "changedTouches" in m && (C || y) && (o.current = S), !S)
1803
1799
  return !0;
1804
- var _ = o.current || S;
1805
- return Fm(_, x, m, _ === "h" ? C : y);
1800
+ var I = o.current || S;
1801
+ return Fm(I, x, m, I === "h" ? C : y);
1806
1802
  }, []), l = s.useCallback(function(m) {
1807
1803
  var x = m;
1808
1804
  if (!(!it.length || it[it.length - 1] !== a)) {
@@ -1947,7 +1943,7 @@ var Su = "DialogTrigger", Wr = s.forwardRef(
1947
1943
  (e, t) => {
1948
1944
  const { __scopeDialog: n, ...o } = e, r = Ee(Su, n), a = k(t, r.triggerRef);
1949
1945
  return /* @__PURE__ */ u.jsx(
1950
- I.button,
1946
+ N.button,
1951
1947
  {
1952
1948
  type: "button",
1953
1949
  "aria-haspopup": "dialog",
@@ -1983,7 +1979,7 @@ var qm = /* @__PURE__ */ Ce("DialogOverlay.RemoveScroll"), Zm = s.forwardRef(
1983
1979
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1984
1980
  // ie. when `Overlay` and `Content` are siblings
1985
1981
  /* @__PURE__ */ u.jsx(Gt, { as: qm, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ u.jsx(
1986
- I.div,
1982
+ N.div,
1987
1983
  {
1988
1984
  "data-state": ta(r.open),
1989
1985
  ...o,
@@ -2084,14 +2080,14 @@ var Jm = s.forwardRef(
2084
2080
  ), Zr = "DialogTitle", Jr = s.forwardRef(
2085
2081
  (e, t) => {
2086
2082
  const { __scopeDialog: n, ...o } = e, r = Ee(Zr, n);
2087
- return /* @__PURE__ */ u.jsx(I.h2, { id: r.titleId, ...o, ref: t });
2083
+ return /* @__PURE__ */ u.jsx(N.h2, { id: r.titleId, ...o, ref: t });
2088
2084
  }
2089
2085
  );
2090
2086
  Jr.displayName = Zr;
2091
2087
  var Pu = "DialogDescription", Qr = s.forwardRef(
2092
2088
  (e, t) => {
2093
2089
  const { __scopeDialog: n, ...o } = e, r = Ee(Pu, n);
2094
- return /* @__PURE__ */ u.jsx(I.p, { id: r.descriptionId, ...o, ref: t });
2090
+ return /* @__PURE__ */ u.jsx(N.p, { id: r.descriptionId, ...o, ref: t });
2095
2091
  }
2096
2092
  );
2097
2093
  Qr.displayName = Pu;
@@ -2099,7 +2095,7 @@ var Tu = "DialogClose", ea = s.forwardRef(
2099
2095
  (e, t) => {
2100
2096
  const { __scopeDialog: n, ...o } = e, r = Ee(Tu, n);
2101
2097
  return /* @__PURE__ */ u.jsx(
2102
- I.button,
2098
+ N.button,
2103
2099
  {
2104
2100
  type: "button",
2105
2101
  ...o,
@@ -2289,7 +2285,7 @@ var yh = "AspectRatio", fa = s.forwardRef(
2289
2285
  },
2290
2286
  "data-radix-aspect-ratio-wrapper": "",
2291
2287
  children: /* @__PURE__ */ u.jsx(
2292
- I.div,
2288
+ N.div,
2293
2289
  {
2294
2290
  ...r,
2295
2291
  ref: t,
@@ -2316,15 +2312,6 @@ const ME = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2316
2312
  Root: Sh
2317
2313
  }, Symbol.toStringTag, { value: "Module" }));
2318
2314
  var Oo = { exports: {} }, Do = {};
2319
- /**
2320
- * @license React
2321
- * use-sync-external-store-shim.production.js
2322
- *
2323
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2324
- *
2325
- * This source code is licensed under the MIT license found in the
2326
- * LICENSE file in the root directory of this source tree.
2327
- */
2328
2315
  var wl;
2329
2316
  function Rh() {
2330
2317
  if (wl) return Do;
@@ -2391,7 +2378,7 @@ var va = "Avatar", [_h, Ah] = Y(va), [Mh, Gu] = _h(va), ma = s.forwardRef(
2391
2378
  scope: n,
2392
2379
  imageLoadingStatus: r,
2393
2380
  onImageLoadingStatusChange: a,
2394
- children: /* @__PURE__ */ u.jsx(I.span, { ...o, ref: t })
2381
+ children: /* @__PURE__ */ u.jsx(N.span, { ...o, ref: t })
2395
2382
  }
2396
2383
  );
2397
2384
  }
@@ -2405,7 +2392,7 @@ var Hu = "AvatarImage", ha = s.forwardRef(
2405
2392
  });
2406
2393
  return te(() => {
2407
2394
  c !== "idle" && l(c);
2408
- }, [c, l]), c === "loaded" ? /* @__PURE__ */ u.jsx(I.img, { ...a, ref: t, src: o }) : null;
2395
+ }, [c, l]), c === "loaded" ? /* @__PURE__ */ u.jsx(N.img, { ...a, ref: t, src: o }) : null;
2409
2396
  }
2410
2397
  );
2411
2398
  ha.displayName = Hu;
@@ -2417,7 +2404,7 @@ var Ku = "AvatarFallback", ga = s.forwardRef(
2417
2404
  const l = window.setTimeout(() => c(!0), o);
2418
2405
  return () => window.clearTimeout(l);
2419
2406
  }
2420
- }, [o]), i && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ u.jsx(I.span, { ...r, ref: t }) : null;
2407
+ }, [o]), i && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ u.jsx(N.span, { ...r, ref: t }) : null;
2421
2408
  }
2422
2409
  );
2423
2410
  ga.displayName = Ku;
@@ -2547,7 +2534,7 @@ var Uu = "CheckboxTrigger", bn = s.forwardRef(
2547
2534
  return w.addEventListener("reset", b), () => w.removeEventListener("reset", b);
2548
2535
  }
2549
2536
  }, [a, p]), /* @__PURE__ */ u.jsx(
2550
- I.button,
2537
+ N.button,
2551
2538
  {
2552
2539
  type: "button",
2553
2540
  role: "checkbox",
@@ -2625,7 +2612,7 @@ var Wu = "CheckboxIndicator", Wo = s.forwardRef(
2625
2612
  {
2626
2613
  present: o || He(a.checked) || a.checked === !0,
2627
2614
  children: /* @__PURE__ */ u.jsx(
2628
- I.span,
2615
+ N.span,
2629
2616
  {
2630
2617
  "data-state": Yu(a.checked),
2631
2618
  "data-disabled": a.disabled ? "" : void 0,
@@ -2668,7 +2655,7 @@ var zu = "CheckboxBubbleInput", wn = s.forwardRef(
2668
2655
  }, [v, m, a, r]);
2669
2656
  const w = s.useRef(He(a) ? !1 : a);
2670
2657
  return /* @__PURE__ */ u.jsx(
2671
- I.input,
2658
+ N.input,
2672
2659
  {
2673
2660
  type: "checkbox",
2674
2661
  "aria-hidden": !0,
@@ -3004,7 +2991,7 @@ const Zh = (e) => ({
3004
2991
  }, h = Ca(r), g = wa(h), m = await i.getDimensions(f), x = h === "y", w = x ? "top" : "left", b = x ? "bottom" : "right", C = x ? "clientHeight" : "clientWidth", y = a.reference[g] + a.reference[h] - v[h] - a.floating[g], S = v[h] - a.reference[h], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(f));
3005
2992
  let E = T ? T[C] : 0;
3006
2993
  (!E || !await (i.isElement == null ? void 0 : i.isElement(T))) && (E = c.floating[C] || a.floating[g]);
3007
- const A = y / 2 - S / 2, _ = E / 2 - m[g] / 2 - 1, P = Ke(p[w], _), M = Ke(p[b], _), N = P, $ = E - m[g] - M, O = E / 2 - m[g] / 2 + A, G = zo(N, O, $), F = !l.arrow && wt(r) != null && O !== G && a.reference[g] / 2 - (O < N ? P : M) - m[g] / 2 < 0, V = F ? O < N ? O - N : O - $ : 0;
2994
+ const M = y / 2 - S / 2, _ = E / 2 - m[g] / 2 - 1, P = Ke(p[w], _), A = Ke(p[b], _), I = P, $ = E - m[g] - A, O = E / 2 - m[g] / 2 + M, G = zo(I, O, $), F = !l.arrow && wt(r) != null && O !== G && a.reference[g] / 2 - (O < I ? P : A) - m[g] / 2 < 0, V = F ? O < I ? O - I : O - $ : 0;
3008
2995
  return {
3009
2996
  [h]: v[h] + V,
3010
2997
  data: {
@@ -3043,18 +3030,18 @@ const Zh = (e) => ({
3043
3030
  return {};
3044
3031
  const w = ke(r), b = _e(c), C = ke(c) === c, y = await (l.isRTL == null ? void 0 : l.isRTL(f.floating)), S = v || (C || !m ? [yn(c)] : Kh(c)), T = g !== "none";
3045
3032
  !v && T && S.push(...Yh(c, m, g, y));
3046
- const E = [c, ...S], A = await Nt(t, x), _ = [];
3033
+ const E = [c, ...S], M = await Nt(t, x), _ = [];
3047
3034
  let P = ((o = a.flip) == null ? void 0 : o.overflows) || [];
3048
- if (d && _.push(A[w]), p) {
3035
+ if (d && _.push(M[w]), p) {
3049
3036
  const O = Hh(r, i, y);
3050
- _.push(A[O[0]], A[O[1]]);
3037
+ _.push(M[O[0]], M[O[1]]);
3051
3038
  }
3052
3039
  if (P = [...P, {
3053
3040
  placement: r,
3054
3041
  overflows: _
3055
3042
  }], !_.every((O) => O <= 0)) {
3056
- var M, N;
3057
- const O = (((M = a.flip) == null ? void 0 : M.index) || 0) + 1, G = E[O];
3043
+ var A, I;
3044
+ const O = (((A = a.flip) == null ? void 0 : A.index) || 0) + 1, G = E[O];
3058
3045
  if (G && (!(p === "alignment" ? b !== _e(G) : !1) || // We leave the current main axis only if every placement on that axis
3059
3046
  // overflows the main axis.
3060
3047
  P.every((L) => _e(L.placement) === b ? L.overflows[0] > 0 : !0)))
@@ -3067,7 +3054,7 @@ const Zh = (e) => ({
3067
3054
  placement: G
3068
3055
  }
3069
3056
  };
3070
- let F = (N = P.filter((V) => V.overflows[0] <= 0).sort((V, L) => V.overflows[1] - L.overflows[1])[0]) == null ? void 0 : N.placement;
3057
+ let F = (I = P.filter((V) => V.overflows[0] <= 0).sort((V, L) => V.overflows[1] - L.overflows[1])[0]) == null ? void 0 : I.placement;
3071
3058
  if (!F)
3072
3059
  switch (h) {
3073
3060
  case "bestFit": {
@@ -3321,14 +3308,14 @@ const tg = function(e) {
3321
3308
  let x, w;
3322
3309
  p === "top" || p === "bottom" ? (x = p, w = v === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = p, x = v === "end" ? "top" : "bottom");
3323
3310
  const b = m - d.top - d.bottom, C = g - d.left - d.right, y = Ke(m - d[x], b), S = Ke(g - d[w], C), T = !t.middlewareData.shift;
3324
- let E = y, A = S;
3325
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = C), (o = t.middlewareData.shift) != null && o.enabled.y && (E = b), T && !v) {
3326
- const P = ve(d.left, 0), M = ve(d.right, 0), N = ve(d.top, 0), $ = ve(d.bottom, 0);
3327
- h ? A = g - 2 * (P !== 0 || M !== 0 ? P + M : ve(d.left, d.right)) : E = m - 2 * (N !== 0 || $ !== 0 ? N + $ : ve(d.top, d.bottom));
3311
+ let E = y, M = S;
3312
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = C), (o = t.middlewareData.shift) != null && o.enabled.y && (E = b), T && !v) {
3313
+ const P = ve(d.left, 0), A = ve(d.right, 0), I = ve(d.top, 0), $ = ve(d.bottom, 0);
3314
+ h ? M = g - 2 * (P !== 0 || A !== 0 ? P + A : ve(d.left, d.right)) : E = m - 2 * (I !== 0 || $ !== 0 ? I + $ : ve(d.top, d.bottom));
3328
3315
  }
3329
3316
  await l({
3330
3317
  ...t,
3331
- availableWidth: A,
3318
+ availableWidth: M,
3332
3319
  availableHeight: E
3333
3320
  });
3334
3321
  const _ = await i.getDimensions(c.floating);
@@ -3912,7 +3899,7 @@ function Vg(e) {
3912
3899
  L !== T.current && (T.current = L, m(L));
3913
3900
  }, []), C = s.useCallback((L) => {
3914
3901
  L !== E.current && (E.current = L, w(L));
3915
- }, []), y = a || g, S = i || x, T = s.useRef(null), E = s.useRef(null), A = s.useRef(d), _ = l != null, P = ko(l), M = ko(r), N = ko(f), $ = s.useCallback(() => {
3902
+ }, []), y = a || g, S = i || x, T = s.useRef(null), E = s.useRef(null), M = s.useRef(d), _ = l != null, P = ko(l), A = ko(r), I = ko(f), $ = s.useCallback(() => {
3916
3903
  if (!T.current || !E.current)
3917
3904
  return;
3918
3905
  const L = {
@@ -3920,22 +3907,22 @@ function Vg(e) {
3920
3907
  strategy: n,
3921
3908
  middleware: v
3922
3909
  };
3923
- M.current && (L.platform = M.current), Lg(T.current, E.current, L).then((D) => {
3910
+ A.current && (L.platform = A.current), Lg(T.current, E.current, L).then((D) => {
3924
3911
  const J = {
3925
3912
  ...D,
3926
3913
  // The floating element's position may be recomputed while it's closed
3927
3914
  // but still mounted (such as when transitioning out). To ensure
3928
3915
  // `isPositioned` will be `false` initially on the next open, avoid
3929
3916
  // setting it to `true` when `open === false` (must be specified).
3930
- isPositioned: N.current !== !1
3917
+ isPositioned: I.current !== !1
3931
3918
  };
3932
- O.current && !Rn(A.current, J) && (A.current = J, Ft.flushSync(() => {
3919
+ O.current && !Rn(M.current, J) && (M.current = J, Ft.flushSync(() => {
3933
3920
  p(J);
3934
3921
  }));
3935
3922
  });
3936
- }, [v, t, n, M, N]);
3923
+ }, [v, t, n, A, I]);
3937
3924
  vn(() => {
3938
- f === !1 && A.current.isPositioned && (A.current.isPositioned = !1, p((L) => ({
3925
+ f === !1 && M.current.isPositioned && (M.current.isPositioned = !1, p((L) => ({
3939
3926
  ...L,
3940
3927
  isPositioned: !1
3941
3928
  })));
@@ -4033,7 +4020,7 @@ const Bg = (e) => {
4033
4020
  var Xg = "Arrow", sd = s.forwardRef((e, t) => {
4034
4021
  const { children: n, width: o = 10, height: r = 5, ...a } = e;
4035
4022
  return /* @__PURE__ */ u.jsx(
4036
- I.svg,
4023
+ N.svg,
4037
4024
  {
4038
4025
  ...a,
4039
4026
  ref: t,
@@ -4057,7 +4044,7 @@ var ud = "PopperAnchor", dd = s.forwardRef(
4057
4044
  return s.useEffect(() => {
4058
4045
  const f = l.current;
4059
4046
  l.current = o?.current || i.current, f !== l.current && a.onAnchorChange(l.current);
4060
- }), o ? null : /* @__PURE__ */ u.jsx(I.div, { ...r, ref: c });
4047
+ }), o ? null : /* @__PURE__ */ u.jsx(N.div, { ...r, ref: c });
4061
4048
  }
4062
4049
  );
4063
4050
  dd.displayName = ud;
@@ -4078,11 +4065,11 @@ var Pa = "PopperContent", [Jg, Qg] = id(Pa), fd = s.forwardRef(
4078
4065
  updatePositionStrategy: h = "optimized",
4079
4066
  onPlaced: g,
4080
4067
  ...m
4081
- } = e, x = cd(Pa, n), [w, b] = s.useState(null), C = k(t, (j) => b(j)), [y, S] = s.useState(null), T = Ht(y), E = T?.width ?? 0, A = T?.height ?? 0, _ = o + (a !== "center" ? "-" + a : ""), P = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, M = Array.isArray(f) ? f : [f], N = M.length > 0, $ = {
4068
+ } = e, x = cd(Pa, n), [w, b] = s.useState(null), C = k(t, (j) => b(j)), [y, S] = s.useState(null), T = Ht(y), E = T?.width ?? 0, M = T?.height ?? 0, _ = o + (a !== "center" ? "-" + a : ""), P = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, A = Array.isArray(f) ? f : [f], I = A.length > 0, $ = {
4082
4069
  padding: P,
4083
- boundary: M.filter(tx),
4070
+ boundary: A.filter(tx),
4084
4071
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
4085
- altBoundary: N
4072
+ altBoundary: I
4086
4073
  }, { refs: O, floatingStyles: G, placement: F, isPositioned: V, middlewareData: L } = Vg({
4087
4074
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
4088
4075
  strategy: "fixed",
@@ -4094,7 +4081,7 @@ var Pa = "PopperContent", [Jg, Qg] = id(Pa), fd = s.forwardRef(
4094
4081
  reference: x.anchor
4095
4082
  },
4096
4083
  middleware: [
4097
- Gg({ mainAxis: r + A, alignmentAxis: i }),
4084
+ Gg({ mainAxis: r + M, alignmentAxis: i }),
4098
4085
  l && Hg({
4099
4086
  mainAxis: !0,
4100
4087
  crossAxis: !1,
@@ -4110,7 +4097,7 @@ var Pa = "PopperContent", [Jg, Qg] = id(Pa), fd = s.forwardRef(
4110
4097
  }
4111
4098
  }),
4112
4099
  y && Yg({ element: y, padding: c }),
4113
- nx({ arrowWidth: E, arrowHeight: A }),
4100
+ nx({ arrowWidth: E, arrowHeight: M }),
4114
4101
  v && zg({ strategy: "referenceHidden", ...$ })
4115
4102
  ]
4116
4103
  }), [D, J] = md(F), re = Z(g);
@@ -4154,7 +4141,7 @@ var Pa = "PopperContent", [Jg, Qg] = id(Pa), fd = s.forwardRef(
4154
4141
  arrowY: se,
4155
4142
  shouldHideArrow: ne,
4156
4143
  children: /* @__PURE__ */ u.jsx(
4157
- I.div,
4144
+ N.div,
4158
4145
  {
4159
4146
  "data-side": D,
4160
4147
  "data-align": J,
@@ -4268,9 +4255,9 @@ var cx = s.forwardRef((e, t) => {
4268
4255
  caller: zt
4269
4256
  }), [w, b] = s.useState(!1), C = Z(f), y = hd(n), S = s.useRef(!1), [T, E] = s.useState(0);
4270
4257
  return s.useEffect(() => {
4271
- const A = v.current;
4272
- if (A)
4273
- return A.addEventListener(Lo, C), () => A.removeEventListener(Lo, C);
4258
+ const M = v.current;
4259
+ if (M)
4260
+ return M.addEventListener(Lo, C), () => M.removeEventListener(Lo, C);
4274
4261
  }, [C]), /* @__PURE__ */ u.jsx(
4275
4262
  sx,
4276
4263
  {
@@ -4280,20 +4267,20 @@ var cx = s.forwardRef((e, t) => {
4280
4267
  loop: r,
4281
4268
  currentTabStopId: m,
4282
4269
  onItemFocus: s.useCallback(
4283
- (A) => x(A),
4270
+ (M) => x(M),
4284
4271
  [x]
4285
4272
  ),
4286
4273
  onItemShiftTab: s.useCallback(() => b(!0), []),
4287
4274
  onFocusableItemAdd: s.useCallback(
4288
- () => E((A) => A + 1),
4275
+ () => E((M) => M + 1),
4289
4276
  []
4290
4277
  ),
4291
4278
  onFocusableItemRemove: s.useCallback(
4292
- () => E((A) => A - 1),
4279
+ () => E((M) => M - 1),
4293
4280
  []
4294
4281
  ),
4295
4282
  children: /* @__PURE__ */ u.jsx(
4296
- I.div,
4283
+ N.div,
4297
4284
  {
4298
4285
  tabIndex: w || T === 0 ? -1 : 0,
4299
4286
  "data-orientation": o,
@@ -4303,12 +4290,12 @@ var cx = s.forwardRef((e, t) => {
4303
4290
  onMouseDown: R(e.onMouseDown, () => {
4304
4291
  S.current = !0;
4305
4292
  }),
4306
- onFocus: R(e.onFocus, (A) => {
4293
+ onFocus: R(e.onFocus, (M) => {
4307
4294
  const _ = !S.current;
4308
- if (A.target === A.currentTarget && _ && !w) {
4295
+ if (M.target === M.currentTarget && _ && !w) {
4309
4296
  const P = new CustomEvent(Lo, ox);
4310
- if (A.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
4311
- const M = y().filter((F) => F.focusable), N = M.find((F) => F.active), $ = M.find((F) => F.id === m), G = [N, $, ...M].filter(
4297
+ if (M.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
4298
+ const A = y().filter((F) => F.focusable), I = A.find((F) => F.active), $ = A.find((F) => F.id === m), G = [I, $, ...A].filter(
4312
4299
  Boolean
4313
4300
  ).map((F) => F.ref.current);
4314
4301
  wd(G, d);
@@ -4342,7 +4329,7 @@ var cx = s.forwardRef((e, t) => {
4342
4329
  focusable: o,
4343
4330
  active: r,
4344
4331
  children: /* @__PURE__ */ u.jsx(
4345
- I.span,
4332
+ N.span,
4346
4333
  {
4347
4334
  tabIndex: p ? 0 : -1,
4348
4335
  "data-orientation": d.orientation,
@@ -4520,14 +4507,14 @@ var he = "MenuContent", [yx, Aa] = rt(he), Td = s.forwardRef(
4520
4507
  onDismiss: h,
4521
4508
  disableOutsideScroll: g,
4522
4509
  ...m
4523
- } = e, x = ze(he, n), w = Zt(he, n), b = qt(n), C = yd(n), y = gx(n), [S, T] = s.useState(null), E = s.useRef(null), A = k(t, E, x.onContentChange), _ = s.useRef(0), P = s.useRef(""), M = s.useRef(0), N = s.useRef(null), $ = s.useRef("right"), O = s.useRef(0), G = g ? Gt : s.Fragment, F = g ? { as: Ex, allowPinchZoom: !0 } : void 0, V = (D) => {
4510
+ } = e, x = ze(he, n), w = Zt(he, n), b = qt(n), C = yd(n), y = gx(n), [S, T] = s.useState(null), E = s.useRef(null), M = k(t, E, x.onContentChange), _ = s.useRef(0), P = s.useRef(""), A = s.useRef(0), I = s.useRef(null), $ = s.useRef("right"), O = s.useRef(0), G = g ? Gt : s.Fragment, F = g ? { as: Ex, allowPinchZoom: !0 } : void 0, V = (D) => {
4524
4511
  const J = P.current + D, re = y().filter((j) => !j.disabled), ae = document.activeElement, se = re.find((j) => j.ref.current === ae)?.textValue, ne = re.map((j) => j.textValue), B = Lx(ne, J, se), X = re.find((j) => j.textValue === B)?.ref.current;
4525
4512
  (function j(U) {
4526
4513
  P.current = U, window.clearTimeout(_.current), U !== "" && (_.current = window.setTimeout(() => j(""), 1e3));
4527
4514
  })(J), X && setTimeout(() => X.focus());
4528
4515
  };
4529
4516
  s.useEffect(() => () => window.clearTimeout(_.current), []), Bn();
4530
- const L = s.useCallback((D) => $.current === N.current?.side && $x(D, N.current?.area), []);
4517
+ const L = s.useCallback((D) => $.current === I.current?.side && $x(D, I.current?.area), []);
4531
4518
  return /* @__PURE__ */ u.jsx(
4532
4519
  yx,
4533
4520
  {
@@ -4551,9 +4538,9 @@ var he = "MenuContent", [yx, Aa] = rt(he), Td = s.forwardRef(
4551
4538
  },
4552
4539
  [L]
4553
4540
  ),
4554
- pointerGraceTimerRef: M,
4541
+ pointerGraceTimerRef: A,
4555
4542
  onPointerGraceIntentChange: s.useCallback((D) => {
4556
- N.current = D;
4543
+ I.current = D;
4557
4544
  }, []),
4558
4545
  children: /* @__PURE__ */ u.jsx(G, { ...F, children: /* @__PURE__ */ u.jsx(
4559
4546
  Bt,
@@ -4598,7 +4585,7 @@ var he = "MenuContent", [yx, Aa] = rt(he), Td = s.forwardRef(
4598
4585
  dir: w.dir,
4599
4586
  ...b,
4600
4587
  ...m,
4601
- ref: A,
4588
+ ref: M,
4602
4589
  style: { outline: "none", ...m.style },
4603
4590
  onKeyDown: R(m.onKeyDown, (D) => {
4604
4591
  const re = D.target.closest("[data-radix-menu-content]") === D.currentTarget, ae = D.ctrlKey || D.altKey || D.metaKey, se = D.key.length === 1;
@@ -4638,14 +4625,14 @@ Td.displayName = he;
4638
4625
  var Px = "MenuGroup", Ia = s.forwardRef(
4639
4626
  (e, t) => {
4640
4627
  const { __scopeMenu: n, ...o } = e;
4641
- return /* @__PURE__ */ u.jsx(I.div, { role: "group", ...o, ref: t });
4628
+ return /* @__PURE__ */ u.jsx(N.div, { role: "group", ...o, ref: t });
4642
4629
  }
4643
4630
  );
4644
4631
  Ia.displayName = Px;
4645
4632
  var Tx = "MenuLabel", _d = s.forwardRef(
4646
4633
  (e, t) => {
4647
4634
  const { __scopeMenu: n, ...o } = e;
4648
- return /* @__PURE__ */ u.jsx(I.div, { ...o, ref: t });
4635
+ return /* @__PURE__ */ u.jsx(N.div, { ...o, ref: t });
4649
4636
  }
4650
4637
  );
4651
4638
  _d.displayName = Tx;
@@ -4693,7 +4680,7 @@ var Ad = s.forwardRef(
4693
4680
  disabled: o,
4694
4681
  textValue: r ?? v,
4695
4682
  children: /* @__PURE__ */ u.jsx(We, { asChild: !0, ...c, focusable: !o, children: /* @__PURE__ */ u.jsx(
4696
- I.div,
4683
+ N.div,
4697
4684
  {
4698
4685
  role: "menuitem",
4699
4686
  "data-highlighted": d ? "" : void 0,
@@ -4782,7 +4769,7 @@ var Na = "MenuItemIndicator", [jd, Ix] = rt(
4782
4769
  {
4783
4770
  present: o || Pn(a.checked) || a.checked === !0,
4784
4771
  children: /* @__PURE__ */ u.jsx(
4785
- I.span,
4772
+ N.span,
4786
4773
  {
4787
4774
  ...r,
4788
4775
  ref: t,
@@ -4798,7 +4785,7 @@ var Nx = "MenuSeparator", Ld = s.forwardRef(
4798
4785
  (e, t) => {
4799
4786
  const { __scopeMenu: n, ...o } = e;
4800
4787
  return /* @__PURE__ */ u.jsx(
4801
- I.div,
4788
+ N.div,
4802
4789
  {
4803
4790
  role: "separator",
4804
4791
  "aria-orientation": "horizontal",
@@ -5027,10 +5014,12 @@ var Wd = "ContextMenuTrigger", Qa = s.forwardRef(
5027
5014
  ), p = (v) => {
5028
5015
  c.current = { x: v.clientX, y: v.clientY }, a.onOpenChange(!0);
5029
5016
  };
5030
- return s.useEffect(() => d, [d]), s.useEffect(() => void (o && d()), [o, d]), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
5017
+ return s.useEffect(() => d, [d]), s.useEffect(() => {
5018
+ o && d();
5019
+ }, [o, d]), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
5031
5020
  /* @__PURE__ */ u.jsx(ka, { ...i, virtualRef: l }),
5032
5021
  /* @__PURE__ */ u.jsx(
5033
- I.span,
5022
+ N.span,
5034
5023
  {
5035
5024
  "data-state": a.open ? "open" : "closed",
5036
5025
  "data-disabled": o ? "" : void 0,
@@ -5257,7 +5246,7 @@ var qd = "DropdownMenuTrigger", ms = s.forwardRef(
5257
5246
  (e, t) => {
5258
5247
  const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, a = Xd(qd, n), i = le(n);
5259
5248
  return /* @__PURE__ */ u.jsx(ka, { asChild: !0, ...i, children: /* @__PURE__ */ u.jsx(
5260
- I.button,
5249
+ N.button,
5261
5250
  {
5262
5251
  type: "button",
5263
5252
  id: a.triggerId,
@@ -5440,7 +5429,7 @@ const DE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5440
5429
  createDropdownMenuScope: xb
5441
5430
  }, Symbol.toStringTag, { value: "Module" }));
5442
5431
  var Yb = "Label", Jn = s.forwardRef((e, t) => /* @__PURE__ */ u.jsx(
5443
- I.label,
5432
+ N.label,
5444
5433
  {
5445
5434
  ...e,
5446
5435
  ref: t,
@@ -5463,45 +5452,45 @@ var [As, qb] = Y("Form"), Ms = "Form", [Zb, Rt] = As(Ms), [Jb, Qd] = As(Ms), Is
5463
5452
  (P) => c[P],
5464
5453
  [c]
5465
5454
  ), d = s.useCallback(
5466
- (P, M) => l((N) => ({
5467
- ...N,
5468
- [P]: { ...N[P] ?? {}, ...M }
5455
+ (P, A) => l((I) => ({
5456
+ ...I,
5457
+ [P]: { ...I[P] ?? {}, ...A }
5469
5458
  })),
5470
5459
  []
5471
5460
  ), p = s.useCallback((P) => {
5472
- l((M) => ({ ...M, [P]: void 0 })), b((M) => ({ ...M, [P]: {} }));
5461
+ l((A) => ({ ...A, [P]: void 0 })), b((A) => ({ ...A, [P]: {} }));
5473
5462
  }, []), [v, h] = s.useState({}), g = s.useCallback(
5474
5463
  (P) => v[P] ?? [],
5475
5464
  [v]
5476
- ), m = s.useCallback((P, M) => {
5477
- h((N) => ({
5478
- ...N,
5479
- [P]: [...N[P] ?? [], M]
5465
+ ), m = s.useCallback((P, A) => {
5466
+ h((I) => ({
5467
+ ...I,
5468
+ [P]: [...I[P] ?? [], A]
5480
5469
  }));
5481
- }, []), x = s.useCallback((P, M) => {
5482
- h((N) => ({
5483
- ...N,
5484
- [P]: (N[P] ?? []).filter(
5485
- ($) => $.id !== M
5470
+ }, []), x = s.useCallback((P, A) => {
5471
+ h((I) => ({
5472
+ ...I,
5473
+ [P]: (I[P] ?? []).filter(
5474
+ ($) => $.id !== A
5486
5475
  )
5487
5476
  }));
5488
5477
  }, []), [w, b] = s.useState({}), C = s.useCallback(
5489
5478
  (P) => w[P] ?? {},
5490
5479
  [w]
5491
- ), y = s.useCallback((P, M) => {
5492
- b((N) => ({
5493
- ...N,
5494
- [P]: { ...N[P] ?? {}, ...M }
5480
+ ), y = s.useCallback((P, A) => {
5481
+ b((I) => ({
5482
+ ...I,
5483
+ [P]: { ...I[P] ?? {}, ...A }
5495
5484
  }));
5496
- }, []), [S, T] = s.useState({}), E = s.useCallback((P, M) => {
5497
- T((N) => {
5498
- const $ = new Set(N[P]).add(M);
5499
- return { ...N, [P]: $ };
5485
+ }, []), [S, T] = s.useState({}), E = s.useCallback((P, A) => {
5486
+ T((I) => {
5487
+ const $ = new Set(I[P]).add(A);
5488
+ return { ...I, [P]: $ };
5500
5489
  });
5501
- }, []), A = s.useCallback((P, M) => {
5502
- T((N) => {
5503
- const $ = new Set(N[P]);
5504
- return $.delete(M), { ...N, [P]: $ };
5490
+ }, []), M = s.useCallback((P, A) => {
5491
+ T((I) => {
5492
+ const $ = new Set(I[P]);
5493
+ return $.delete(A), { ...I, [P]: $ };
5505
5494
  });
5506
5495
  }, []), _ = s.useCallback(
5507
5496
  (P) => Array.from(S[P] ?? []).join(" ") || void 0,
@@ -5524,16 +5513,16 @@ var [As, qb] = Y("Form"), Ms = "Form", [Zb, Rt] = As(Ms), [Jb, Qd] = As(Ms), Is
5524
5513
  {
5525
5514
  scope: n,
5526
5515
  onFieldMessageIdAdd: E,
5527
- onFieldMessageIdRemove: A,
5516
+ onFieldMessageIdRemove: M,
5528
5517
  getFieldDescription: _,
5529
5518
  children: /* @__PURE__ */ u.jsx(
5530
- I.form,
5519
+ N.form,
5531
5520
  {
5532
5521
  ...r,
5533
5522
  ref: i,
5534
5523
  onInvalid: R(e.onInvalid, (P) => {
5535
- const M = ef(P.currentTarget);
5536
- M === P.target && M.focus(), P.preventDefault();
5524
+ const A = ef(P.currentTarget);
5525
+ A === P.target && A.focus(), P.preventDefault();
5537
5526
  }),
5538
5527
  onSubmit: R(e.onSubmit, o, {
5539
5528
  checkForDefaultPrevented: !1
@@ -5552,7 +5541,7 @@ var Ns = "FormField", [Qb, Qn] = As(Ns), Os = s.forwardRef(
5552
5541
  (e, t) => {
5553
5542
  const { __scopeForm: n, name: o, serverInvalid: r = !1, ...a } = e, c = Rt(Ns, n).getFieldValidity(o), l = oe();
5554
5543
  return /* @__PURE__ */ u.jsx(Qb, { scope: n, id: l, name: o, serverInvalid: r, children: /* @__PURE__ */ u.jsx(
5555
- I.div,
5544
+ N.div,
5556
5545
  {
5557
5546
  "data-valid": Vs(c, r),
5558
5547
  "data-invalid": Bs(c, r),
@@ -5584,21 +5573,21 @@ var mn = "FormControl", js = s.forwardRef(
5584
5573
  const { __scopeForm: n, ...o } = e, r = Rt(mn, n), a = Qn(mn, n), i = Qd(mn, n), c = s.useRef(null), l = k(t, c), f = o.name || a.name, d = o.id || a.id, p = r.getFieldCustomMatcherEntries(f), { onFieldValidityChange: v, onFieldCustomErrorsChange: h, onFieldValiditionClear: g } = r, m = s.useCallback(
5585
5574
  async (b) => {
5586
5575
  if (tf(b.validity)) {
5587
- const N = Fo(b.validity);
5588
- v(f, N);
5576
+ const I = Fo(b.validity);
5577
+ v(f, I);
5589
5578
  return;
5590
5579
  }
5591
5580
  const C = b.form ? new FormData(b.form) : new FormData(), y = [b.value, C], S = [], T = [];
5592
- p.forEach((N) => {
5593
- iw(N, y) ? T.push(N) : cw(N) && S.push(N);
5581
+ p.forEach((I) => {
5582
+ iw(I, y) ? T.push(I) : cw(I) && S.push(I);
5594
5583
  });
5595
- const E = S.map(({ id: N, match: $ }) => [N, $(...y)]), A = Object.fromEntries(E), _ = Object.values(A).some(Boolean), P = _;
5584
+ const E = S.map(({ id: I, match: $ }) => [I, $(...y)]), M = Object.fromEntries(E), _ = Object.values(M).some(Boolean), P = _;
5596
5585
  b.setCustomValidity(P ? kt : "");
5597
- const M = Fo(b.validity);
5598
- if (v(f, M), h(f, A), !_ && T.length > 0) {
5599
- const N = T.map(
5586
+ const A = Fo(b.validity);
5587
+ if (v(f, A), h(f, M), !_ && T.length > 0) {
5588
+ const I = T.map(
5600
5589
  ({ id: L, match: D }) => D(...y).then((J) => [L, J])
5601
- ), $ = await Promise.all(N), O = Object.fromEntries($), F = Object.values(O).some(Boolean);
5590
+ ), $ = await Promise.all(I), O = Object.fromEntries($), F = Object.values(O).some(Boolean);
5602
5591
  b.setCustomValidity(F ? kt : "");
5603
5592
  const V = Fo(b.validity);
5604
5593
  v(f, V), h(f, O);
@@ -5630,7 +5619,7 @@ var mn = "FormControl", js = s.forwardRef(
5630
5619
  }, [a.serverInvalid]);
5631
5620
  const w = r.getFieldValidity(f);
5632
5621
  return /* @__PURE__ */ u.jsx(
5633
- I.input,
5622
+ N.input,
5634
5623
  {
5635
5624
  "data-valid": Vs(w, a.serverInvalid),
5636
5625
  "data-invalid": Bs(w, a.serverInvalid),
@@ -5686,7 +5675,7 @@ var tw = s.forwardRef(
5686
5675
  ), Ls = s.forwardRef(
5687
5676
  (e, t) => {
5688
5677
  const { __scopeForm: n, id: o, name: r, ...a } = e, i = Qd(Jt, n), c = oe(), l = o ?? c, { onFieldMessageIdAdd: f, onFieldMessageIdRemove: d } = i;
5689
- return s.useEffect(() => (f(r, l), () => d(r, l)), [r, l, f, d]), /* @__PURE__ */ u.jsx(I.span, { id: l, ...a, ref: t });
5678
+ return s.useEffect(() => (f(r, l), () => d(r, l)), [r, l, f, d]), /* @__PURE__ */ u.jsx(N.span, { id: l, ...a, ref: t });
5690
5679
  }
5691
5680
  ), Qo = "FormValidityState", Fs = (e) => {
5692
5681
  const { __scopeForm: t, name: n, children: o } = e, r = Rt(Qo, t), a = Qn(Qo, t), i = n ?? a.name, c = r.getFieldValidity(i);
@@ -5696,7 +5685,7 @@ Fs.displayName = Qo;
5696
5685
  var ow = "FormSubmit", $s = s.forwardRef(
5697
5686
  (e, t) => {
5698
5687
  const { __scopeForm: n, ...o } = e;
5699
- return /* @__PURE__ */ u.jsx(I.button, { type: "submit", ...o, ref: t });
5688
+ return /* @__PURE__ */ u.jsx(N.button, { type: "submit", ...o, ref: t });
5700
5689
  }
5701
5690
  );
5702
5691
  $s.displayName = ow;
@@ -5807,7 +5796,7 @@ var of = "HoverCardTrigger", Hs = s.forwardRef(
5807
5796
  (e, t) => {
5808
5797
  const { __scopeHoverCard: n, ...o } = e, r = no(of, n), a = to(n);
5809
5798
  return /* @__PURE__ */ u.jsx(St, { asChild: !0, ...a, children: /* @__PURE__ */ u.jsx(
5810
- I.a,
5799
+ N.a,
5811
5800
  {
5812
5801
  "data-state": r.open ? "open" : "closed",
5813
5802
  ...o,
@@ -5991,7 +5980,7 @@ var Qt = "Menubar", [er, Aw, Mw] = Le(Qt), [rf, Iw] = Y(Qt, [
5991
5980
  dir: f,
5992
5981
  currentTabStopId: h,
5993
5982
  onCurrentTabStopIdChange: g,
5994
- children: /* @__PURE__ */ u.jsx(I.div, { role: "menubar", ...l, ref: t })
5983
+ children: /* @__PURE__ */ u.jsx(N.div, { role: "menubar", ...l, ref: t })
5995
5984
  }
5996
5985
  ) }) })
5997
5986
  }
@@ -6040,7 +6029,7 @@ var tr = "MenubarTrigger", Js = s.forwardRef(
6040
6029
  focusable: !o,
6041
6030
  tabStopId: l.value,
6042
6031
  children: /* @__PURE__ */ u.jsx(ka, { asChild: !0, ...i, children: /* @__PURE__ */ u.jsx(
6043
- I.button,
6032
+ N.button,
6044
6033
  {
6045
6034
  type: "button",
6046
6035
  role: "menuitem",
@@ -6058,7 +6047,7 @@ var tr = "MenubarTrigger", Js = s.forwardRef(
6058
6047
  !o && g.button === 0 && g.ctrlKey === !1 && (c.onMenuOpen(l.value), h || g.preventDefault());
6059
6048
  }),
6060
6049
  onPointerEnter: R(e.onPointerEnter, () => {
6061
- !!c.value && !h && (c.onMenuOpen(l.value), f.current?.focus());
6050
+ c.value && !h && (c.onMenuOpen(l.value), f.current?.focus());
6062
6051
  }),
6063
6052
  onKeyDown: R(e.onKeyDown, (g) => {
6064
6053
  o || (["Enter", " "].includes(g.key) && c.onMenuToggle(l.value), g.key === "ArrowDown" && c.onMenuOpen(l.value), ["Enter", " ", "ArrowDown"].includes(g.key) && (l.wasKeyboardTriggerOpenRef.current = !0, g.preventDefault()));
@@ -6091,7 +6080,7 @@ var nr = "MenubarContent", ei = s.forwardRef(
6091
6080
  ref: t,
6092
6081
  align: o,
6093
6082
  onCloseAutoFocus: R(e.onCloseAutoFocus, (d) => {
6094
- !!!i.value && !f.current && c.triggerRef.current?.focus(), f.current = !1, d.preventDefault();
6083
+ !i.value && !f.current && c.triggerRef.current?.focus(), f.current = !1, d.preventDefault();
6095
6084
  }),
6096
6085
  onFocusOutside: R(e.onFocusOutside, (d) => {
6097
6086
  const p = d.target;
@@ -6301,8 +6290,8 @@ var at = "NavigationMenu", [pi, lf, uC] = Le(at), [or, dC, fC] = Le(at), [vi, pC
6301
6290
  } = e, [p, v] = s.useState(null), h = k(t, (_) => v(_)), g = de(f), m = s.useRef(0), x = s.useRef(0), w = s.useRef(0), [b, C] = s.useState(!0), [y, S] = Q({
6302
6291
  prop: o,
6303
6292
  onChange: (_) => {
6304
- const P = _ !== "", M = c > 0;
6305
- P ? (window.clearTimeout(w.current), M && C(!1)) : (window.clearTimeout(w.current), w.current = window.setTimeout(
6293
+ const P = _ !== "", A = c > 0;
6294
+ P ? (window.clearTimeout(w.current), A && C(!1)) : (window.clearTimeout(w.current), w.current = window.setTimeout(
6306
6295
  () => C(!0),
6307
6296
  c
6308
6297
  )), r?.(_);
@@ -6316,7 +6305,7 @@ var at = "NavigationMenu", [pi, lf, uC] = Le(at), [or, dC, fC] = Le(at), [vi, pC
6316
6305
  window.clearTimeout(x.current), S(_);
6317
6306
  },
6318
6307
  [S]
6319
- ), A = s.useCallback(
6308
+ ), M = s.useCallback(
6320
6309
  (_) => {
6321
6310
  y === _ ? window.clearTimeout(x.current) : m.current = window.setTimeout(() => {
6322
6311
  window.clearTimeout(x.current), S(_);
@@ -6336,7 +6325,7 @@ var at = "NavigationMenu", [pi, lf, uC] = Le(at), [or, dC, fC] = Le(at), [vi, pC
6336
6325
  orientation: l,
6337
6326
  rootNavigationMenu: p,
6338
6327
  onTriggerEnter: (_) => {
6339
- window.clearTimeout(m.current), b ? A(_) : E(_);
6328
+ window.clearTimeout(m.current), b ? M(_) : E(_);
6340
6329
  },
6341
6330
  onTriggerLeave: () => {
6342
6331
  window.clearTimeout(m.current), T();
@@ -6348,7 +6337,7 @@ var at = "NavigationMenu", [pi, lf, uC] = Le(at), [or, dC, fC] = Le(at), [vi, pC
6348
6337
  },
6349
6338
  onItemDismiss: () => S(""),
6350
6339
  children: /* @__PURE__ */ u.jsx(
6351
- I.nav,
6340
+ N.nav,
6352
6341
  {
6353
6342
  "aria-label": "Main",
6354
6343
  "data-orientation": l,
@@ -6389,7 +6378,7 @@ var rr = "NavigationMenuSub", hi = s.forwardRef(
6389
6378
  onTriggerEnter: (p) => d(p),
6390
6379
  onItemSelect: (p) => d(p),
6391
6380
  onItemDismiss: () => d(""),
6392
- children: /* @__PURE__ */ u.jsx(I.div, { "data-orientation": i, ...c, ref: t })
6381
+ children: /* @__PURE__ */ u.jsx(N.div, { "data-orientation": i, ...c, ref: t })
6393
6382
  }
6394
6383
  );
6395
6384
  }
@@ -6443,8 +6432,8 @@ var uf = (e) => {
6443
6432
  );
6444
6433
  }, df = "NavigationMenuList", gi = s.forwardRef(
6445
6434
  (e, t) => {
6446
- const { __scopeNavigationMenu: n, ...o } = e, r = ge(df, n), a = /* @__PURE__ */ u.jsx(I.ul, { "data-orientation": r.orientation, ...o, ref: t });
6447
- return /* @__PURE__ */ u.jsx(I.div, { style: { position: "relative" }, ref: r.onIndicatorTrackChange, children: /* @__PURE__ */ u.jsx(pi.Slot, { scope: n, children: r.isRootMenu ? /* @__PURE__ */ u.jsx(mf, { asChild: !0, children: a }) : a }) });
6435
+ const { __scopeNavigationMenu: n, ...o } = e, r = ge(df, n), a = /* @__PURE__ */ u.jsx(N.ul, { "data-orientation": r.orientation, ...o, ref: t });
6436
+ return /* @__PURE__ */ u.jsx(N.div, { style: { position: "relative" }, ref: r.onIndicatorTrackChange, children: /* @__PURE__ */ u.jsx(pi.Slot, { scope: n, children: r.isRootMenu ? /* @__PURE__ */ u.jsx(mf, { asChild: !0, children: a }) : a }) });
6448
6437
  }
6449
6438
  );
6450
6439
  gi.displayName = df;
@@ -6476,7 +6465,7 @@ var ff = "NavigationMenuItem", [gC, pf] = vi(ff), xi = s.forwardRef(
6476
6465
  onFocusProxyEnter: v,
6477
6466
  onRootContentClose: h,
6478
6467
  onContentFocusOutside: h,
6479
- children: /* @__PURE__ */ u.jsx(I.li, { ...r, ref: t })
6468
+ children: /* @__PURE__ */ u.jsx(N.li, { ...r, ref: t })
6480
6469
  }
6481
6470
  );
6482
6471
  }
@@ -6486,7 +6475,7 @@ var ar = "NavigationMenuTrigger", bi = s.forwardRef((e, t) => {
6486
6475
  const { __scopeNavigationMenu: n, disabled: o, ...r } = e, a = ge(ar, e.__scopeNavigationMenu), i = pf(ar, e.__scopeNavigationMenu), c = s.useRef(null), l = k(c, i.triggerRef, t), f = gf(a.baseId, i.value), d = xf(a.baseId, i.value), p = s.useRef(!1), v = s.useRef(!1), h = i.value === a.value;
6487
6476
  return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
6488
6477
  /* @__PURE__ */ u.jsx(pi.ItemSlot, { scope: n, value: i.value, children: /* @__PURE__ */ u.jsx(hf, { asChild: !0, children: /* @__PURE__ */ u.jsx(
6489
- I.button,
6478
+ N.button,
6490
6479
  {
6491
6480
  id: f,
6492
6481
  disabled: o,
@@ -6542,7 +6531,7 @@ var xC = "NavigationMenuLink", jl = "navigationMenu.linkSelect", wi = s.forwardR
6542
6531
  (e, t) => {
6543
6532
  const { __scopeNavigationMenu: n, active: o, onSelect: r, ...a } = e;
6544
6533
  return /* @__PURE__ */ u.jsx(hf, { asChild: !0, children: /* @__PURE__ */ u.jsx(
6545
- I.a,
6534
+ N.a,
6546
6535
  {
6547
6536
  "data-active": o ? "" : void 0,
6548
6537
  "aria-current": o ? "page" : void 0,
@@ -6593,7 +6582,7 @@ var bC = s.forwardRef((e, t) => {
6593
6582
  });
6594
6583
  };
6595
6584
  return ir(i, v), ir(r.indicatorTrack, v), l ? /* @__PURE__ */ u.jsx(
6596
- I.div,
6585
+ N.div,
6597
6586
  {
6598
6587
  "aria-hidden": !0,
6599
6588
  "data-state": p ? "visible" : "hidden",
@@ -6676,12 +6665,12 @@ var wC = s.forwardRef((e, t) => {
6676
6665
  const b = s.useMemo(() => {
6677
6666
  const y = m().map((P) => P.value);
6678
6667
  d.dir === "rtl" && y.reverse();
6679
- const S = y.indexOf(d.value), T = y.indexOf(d.previousValue), E = o === d.value, A = T === y.indexOf(o);
6680
- if (!E && !A) return x.current;
6668
+ const S = y.indexOf(d.value), T = y.indexOf(d.previousValue), E = o === d.value, M = T === y.indexOf(o);
6669
+ if (!E && !M) return x.current;
6681
6670
  const _ = (() => {
6682
6671
  if (S !== T) {
6683
6672
  if (E && T !== -1) return S > T ? "from-end" : "from-start";
6684
- if (A && S !== -1) return S > T ? "to-start" : "to-end";
6673
+ if (M && S !== -1) return S > T ? "to-start" : "to-end";
6685
6674
  }
6686
6675
  return null;
6687
6676
  })();
@@ -6716,7 +6705,7 @@ var wC = s.forwardRef((e, t) => {
6716
6705
  onKeyDown: R(e.onKeyDown, (C) => {
6717
6706
  const y = C.altKey || C.ctrlKey || C.metaKey;
6718
6707
  if (C.key === "Tab" && !y) {
6719
- const T = sr(C.currentTarget), E = document.activeElement, A = T.findIndex((M) => M === E), P = C.shiftKey ? T.slice(0, A).reverse() : T.slice(A + 1, T.length);
6708
+ const T = sr(C.currentTarget), E = document.activeElement, M = T.findIndex((A) => A === E), P = C.shiftKey ? T.slice(0, M).reverse() : T.slice(M + 1, T.length);
6720
6709
  Pi(P) ? C.preventDefault() : a.current?.focus();
6721
6710
  }
6722
6711
  }),
@@ -6738,7 +6727,7 @@ var CC = s.forwardRef((e, t) => {
6738
6727
  return ir(d, () => {
6739
6728
  d && f({ width: d.offsetWidth, height: d.offsetHeight });
6740
6729
  }), /* @__PURE__ */ u.jsx(
6741
- I.div,
6730
+ N.div,
6742
6731
  {
6743
6732
  "data-state": Ti(g),
6744
6733
  "data-orientation": a.orientation,
@@ -6770,13 +6759,13 @@ var CC = s.forwardRef((e, t) => {
6770
6759
  }), yC = "FocusGroup", mf = s.forwardRef(
6771
6760
  (e, t) => {
6772
6761
  const { __scopeNavigationMenu: n, ...o } = e, r = ge(yC, n);
6773
- return /* @__PURE__ */ u.jsx(or.Provider, { scope: n, children: /* @__PURE__ */ u.jsx(or.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(I.div, { dir: r.dir, ...o, ref: t }) }) });
6762
+ return /* @__PURE__ */ u.jsx(or.Provider, { scope: n, children: /* @__PURE__ */ u.jsx(or.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(N.div, { dir: r.dir, ...o, ref: t }) }) });
6774
6763
  }
6775
6764
  ), kl = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], SC = "FocusGroupItem", hf = s.forwardRef(
6776
6765
  (e, t) => {
6777
6766
  const { __scopeNavigationMenu: n, ...o } = e, r = dC(n), a = ge(SC, n);
6778
6767
  return /* @__PURE__ */ u.jsx(or.ItemSlot, { scope: n, children: /* @__PURE__ */ u.jsx(
6779
- I.button,
6768
+ N.button,
6780
6769
  {
6781
6770
  ...o,
6782
6771
  ref: t,
@@ -6918,19 +6907,19 @@ var Mn = {
6918
6907
  sanitizeValue: y,
6919
6908
  ...S
6920
6909
  }, T) {
6921
- const E = bf(t), A = de(b), _ = kC(), [P] = _, M = Mn[C] ? Mn[C] : null, N = s.useCallback(
6910
+ const E = bf(t), M = de(b), _ = kC(), [P] = _, A = Mn[C] ? Mn[C] : null, I = s.useCallback(
6922
6911
  (H) => {
6923
- if (Array.isArray(H) ? H = H.map(Vl).join("") : H = Vl(H), M) {
6924
- const K = new RegExp(M.regexp);
6912
+ if (Array.isArray(H) ? H = H.map(Vl).join("") : H = Vl(H), A) {
6913
+ const K = new RegExp(A.regexp);
6925
6914
  H = H.replace(K, "");
6926
6915
  } else y && (H = y(H));
6927
6916
  return H.split("");
6928
6917
  },
6929
- [M, y]
6930
- ), $ = s.useMemo(() => o != null ? N(o) : void 0, [o, N]), [O, G] = Q({
6918
+ [A, y]
6919
+ ), $ = s.useMemo(() => o != null ? I(o) : void 0, [o, I]), [O, G] = Q({
6931
6920
  caller: "OneTimePasswordField",
6932
6921
  prop: $,
6933
- defaultProp: n != null ? N(n) : [],
6922
+ defaultProp: n != null ? I(n) : [],
6934
6923
  onChange: s.useCallback(
6935
6924
  (H) => r?.(H.join("")),
6936
6925
  [r]
@@ -6946,8 +6935,8 @@ var Mn = {
6946
6935
  }
6947
6936
  if (z === "")
6948
6937
  return;
6949
- if (M) {
6950
- const pe = new RegExp(M.regexp);
6938
+ if (A) {
6939
+ const pe = new RegExp(A.regexp);
6951
6940
  if (z.replace(pe, "") !== z)
6952
6941
  return;
6953
6942
  }
@@ -6983,17 +6972,17 @@ var Mn = {
6983
6972
  return;
6984
6973
  }
6985
6974
  case "PASTE": {
6986
- const { value: K } = H, z = N(K);
6975
+ const { value: K } = H, z = I(K);
6987
6976
  if (!z)
6988
6977
  return;
6989
6978
  lt(() => G(z)), Pe(P.at(z.length - 1)?.element);
6990
6979
  return;
6991
6980
  }
6992
6981
  }
6993
- }), V = s.useRef(M);
6982
+ }), V = s.useRef(A);
6994
6983
  s.useEffect(() => {
6995
- M && V.current?.type !== M.type && (V.current = M, G(N(O.join(""))));
6996
- }, [N, G, M, O]);
6984
+ A && V.current?.type !== A.type && (V.current = A, G(I(O.join(""))));
6985
+ }, [I, G, A, O]);
6997
6986
  const L = s.useRef(null), D = s.useRef(null), J = s.useRef(null), re = k(T, J), ae = P.at(0)?.element, se = s.useCallback(() => {
6998
6987
  let H;
6999
6988
  if (h) {
@@ -7037,14 +7026,14 @@ var Mn = {
7037
7026
  validationType: C,
7038
7027
  orientation: w,
7039
7028
  isHydrated: U,
7040
- sanitizeValue: N,
7029
+ sanitizeValue: I,
7041
7030
  children: /* @__PURE__ */ u.jsx(cr.Provider, { scope: t, state: _, children: /* @__PURE__ */ u.jsx(cr.Slot, { scope: t, children: /* @__PURE__ */ u.jsx(
7042
7031
  ot,
7043
7032
  {
7044
7033
  asChild: !0,
7045
7034
  ...E,
7046
7035
  orientation: w,
7047
- dir: A,
7036
+ dir: M,
7048
7037
  children: /* @__PURE__ */ u.jsx(
7049
7038
  Xl.div,
7050
7039
  {
@@ -7110,30 +7099,30 @@ var Mn = {
7110
7099
  } = r, w = wf(
7111
7100
  "OneTimePasswordFieldInput",
7112
7101
  t
7113
- ), { dispatch: b, userActionRef: C, validationType: y, isHydrated: S, disabled: T } = w, E = DC(t), A = bf(t), _ = s.useRef(null), [P, M] = s.useState(null), N = o ?? (P ? E.indexOf(P) : -1), $ = o != null || S;
7102
+ ), { dispatch: b, userActionRef: C, validationType: y, isHydrated: S, disabled: T } = w, E = DC(t), M = bf(t), _ = s.useRef(null), [P, A] = s.useState(null), I = o ?? (P ? E.indexOf(P) : -1), $ = o != null || S;
7114
7103
  let O;
7115
- $ && w.placeholder && w.value.length === 0 && (O = w.placeholder[N]);
7116
- const G = k(a, _, M), F = w.value[N] ?? "", V = s.useRef(null);
7104
+ $ && w.placeholder && w.value.length === 0 && (O = w.placeholder[I]);
7105
+ const G = k(a, _, A), F = w.value[I] ?? "", V = s.useRef(null);
7117
7106
  s.useEffect(() => () => {
7118
7107
  window.clearTimeout(V.current);
7119
7108
  }, []);
7120
- const L = w.value.join("").trim(), D = mt(L.length, [0, E.size - 1]), J = N <= D, re = y in Mn ? Mn[y] : void 0;
7109
+ const L = w.value.join("").trim(), D = mt(L.length, [0, E.size - 1]), J = I <= D, re = y in Mn ? Mn[y] : void 0;
7121
7110
  return /* @__PURE__ */ u.jsx(cr.ItemSlot, { scope: t, children: /* @__PURE__ */ u.jsx(
7122
7111
  We,
7123
7112
  {
7124
- ...A,
7113
+ ...M,
7125
7114
  asChild: !0,
7126
7115
  focusable: !w.disabled && J,
7127
- active: N === D,
7116
+ active: I === D,
7128
7117
  children: ({ hasTabStop: ae, isCurrentTabStop: se }) => {
7129
- const ne = ae ? se : N === 0;
7118
+ const ne = ae ? se : I === 0;
7130
7119
  return /* @__PURE__ */ u.jsx(
7131
7120
  Xl.input,
7132
7121
  {
7133
7122
  ref: G,
7134
7123
  type: w.type,
7135
7124
  disabled: T,
7136
- "aria-label": `Character ${N + 1} of ${E.size}`,
7125
+ "aria-label": `Character ${I + 1} of ${E.size}`,
7137
7126
  autoComplete: ne ? w.autoComplete : "off",
7138
7127
  "data-1p-ignore": ne ? void 0 : "true",
7139
7128
  "data-lpignore": ne ? void 0 : "true",
@@ -7146,7 +7135,7 @@ var Mn = {
7146
7135
  value: F,
7147
7136
  placeholder: O,
7148
7137
  "data-radix-otp-input": "",
7149
- "data-radix-index": N,
7138
+ "data-radix-index": I,
7150
7139
  ...x,
7151
7140
  onFocus: R(r.onFocus, (B) => {
7152
7141
  B.currentTarget.select();
@@ -7169,13 +7158,13 @@ var Mn = {
7169
7158
  if (C.current = null, j)
7170
7159
  switch (j.type) {
7171
7160
  case "cut":
7172
- b({ type: "CLEAR_CHAR", index: N, reason: "Cut" });
7161
+ b({ type: "CLEAR_CHAR", index: I, reason: "Cut" });
7173
7162
  return;
7174
7163
  case "keydown": {
7175
7164
  if (j.key === "Char")
7176
7165
  return;
7177
7166
  const U = j.key === "Backspace" && (j.metaKey || j.ctrlKey);
7178
- j.key === "Clear" || U ? b({ type: "CLEAR", reason: "Backspace" }) : b({ type: "CLEAR_CHAR", index: N, reason: j.key });
7167
+ j.key === "Clear" || U ? b({ type: "CLEAR", reason: "Backspace" }) : b({ type: "CLEAR_CHAR", index: I, reason: j.key });
7179
7168
  return;
7180
7169
  }
7181
7170
  default:
@@ -7188,9 +7177,9 @@ var Mn = {
7188
7177
  const H = B.nativeEvent.inputType;
7189
7178
  H === "deleteContentBackward" ? U = "Backspace" : H === "deleteByCut" && (U = "Cut");
7190
7179
  }
7191
- b({ type: "CLEAR_CHAR", index: N, reason: U });
7180
+ b({ type: "CLEAR_CHAR", index: I, reason: U });
7192
7181
  } else
7193
- b({ type: "SET_CHAR", char: X, index: N, event: B });
7182
+ b({ type: "SET_CHAR", char: X, index: I, event: B });
7194
7183
  else {
7195
7184
  const U = B.target;
7196
7185
  n?.(U.value), requestAnimationFrame(() => {
@@ -7249,10 +7238,10 @@ var Mn = {
7249
7238
  return;
7250
7239
  {
7251
7240
  const j = E.from(B.currentTarget, 1)?.element, U = E.at(-1)?.element;
7252
- j !== U && B.currentTarget !== U && (B.currentTarget.selectionStart === 0 ? b({ type: "SET_CHAR", char: X, index: N, event: B }) : b({
7241
+ j !== U && B.currentTarget !== U && (B.currentTarget.selectionStart === 0 ? b({ type: "SET_CHAR", char: X, index: I, event: B }) : b({
7253
7242
  type: "SET_CHAR",
7254
7243
  char: X,
7255
- index: N + 1,
7244
+ index: I + 1,
7256
7245
  event: B
7257
7246
  }), C.current = {
7258
7247
  type: "keydown",
@@ -7268,7 +7257,7 @@ var Mn = {
7268
7257
  }),
7269
7258
  onPointerDown: R(r.onPointerDown, (B) => {
7270
7259
  B.preventDefault();
7271
- const X = Math.min(N, D), j = E.at(X)?.element;
7260
+ const X = Math.min(I, D), j = E.at(X)?.element;
7272
7261
  Pe(j);
7273
7262
  })
7274
7263
  }
@@ -7367,7 +7356,7 @@ var Cf = Ye + "Input", ur = s.forwardRef(
7367
7356
  x.abort();
7368
7357
  };
7369
7358
  }, [l, h]), /* @__PURE__ */ u.jsx(
7370
- I.input,
7359
+ N.input,
7371
7360
  {
7372
7361
  ...a,
7373
7362
  id: r ?? f,
@@ -7405,36 +7394,36 @@ var yf = Ye + "Toggle", dr = s.forwardRef(
7405
7394
  e
7406
7395
  ), [b, C] = s.useState(void 0), y = s.useRef(null), S = k(v, y), T = pa();
7407
7396
  s.useEffect(() => {
7408
- const A = y.current;
7409
- if (!A || c) {
7397
+ const M = y.current;
7398
+ if (!M || c) {
7410
7399
  C(void 0);
7411
7400
  return;
7412
7401
  }
7413
7402
  const _ = g ? "Hide password" : "Show password";
7414
- function P(N) {
7415
- C(N || void 0 ? void 0 : _);
7403
+ function P(I) {
7404
+ C(I || void 0 ? void 0 : _);
7416
7405
  }
7417
- P(A.textContent);
7418
- const M = new MutationObserver((N) => {
7406
+ P(M.textContent);
7407
+ const A = new MutationObserver((I) => {
7419
7408
  let $;
7420
- for (const O of N)
7421
- O.type === "characterData" && A.textContent && ($ = A.textContent);
7409
+ for (const O of I)
7410
+ O.type === "characterData" && M.textContent && ($ = M.textContent);
7422
7411
  P($);
7423
7412
  });
7424
- return M.observe(A, { characterData: !0, subtree: !0 }), () => {
7425
- M.disconnect();
7413
+ return A.observe(M, { characterData: !0, subtree: !0 }), () => {
7414
+ A.disconnect();
7426
7415
  };
7427
7416
  }, [g, c]);
7428
7417
  const E = c || b;
7429
7418
  return T ? l ??= x : (f ??= !0, d ??= -1), s.useEffect(() => {
7430
- let A = () => {
7419
+ let M = () => {
7431
7420
  };
7432
- const _ = y.current?.ownerDocument?.defaultView || window, P = () => w.current.clickTriggered = !1, M = () => A = HC(_, P);
7433
- return _.addEventListener("pointerup", M), () => {
7434
- A(), _.removeEventListener("pointerup", M);
7421
+ const _ = y.current?.ownerDocument?.defaultView || window, P = () => w.current.clickTriggered = !1, A = () => M = HC(_, P);
7422
+ return _.addEventListener("pointerup", A), () => {
7423
+ M(), _.removeEventListener("pointerup", A);
7435
7424
  };
7436
7425
  }, [w]), /* @__PURE__ */ u.jsx(
7437
- I.button,
7426
+ N.button,
7438
7427
  {
7439
7428
  "aria-controls": l,
7440
7429
  "aria-hidden": f,
@@ -7445,11 +7434,11 @@ var yf = Ye + "Toggle", dr = s.forwardRef(
7445
7434
  onPointerDown: R(n, () => {
7446
7435
  w.current.clickTriggered = !0;
7447
7436
  }),
7448
- onPointerCancel: (A) => {
7449
- o?.(A), w.current = At;
7437
+ onPointerCancel: (M) => {
7438
+ o?.(M), w.current = At;
7450
7439
  },
7451
- onClick: (A) => {
7452
- if (t?.(A), A.defaultPrevented) {
7440
+ onClick: (M) => {
7441
+ if (t?.(M), M.defaultPrevented) {
7453
7442
  w.current = At;
7454
7443
  return;
7455
7444
  }
@@ -7458,16 +7447,16 @@ var yf = Ye + "Toggle", dr = s.forwardRef(
7458
7447
  }), w.current.clickTriggered) {
7459
7448
  const _ = m.current;
7460
7449
  if (_) {
7461
- const { selectionStart: P, selectionEnd: M } = w.current;
7462
- _.focus(), (P !== null || M !== null) && requestAnimationFrame(() => {
7463
- _.ownerDocument.activeElement === _ && (_.selectionStart = P, _.selectionEnd = M);
7450
+ const { selectionStart: P, selectionEnd: A } = w.current;
7451
+ _.focus(), (P !== null || A !== null) && requestAnimationFrame(() => {
7452
+ _.ownerDocument.activeElement === _ && (_.selectionStart = P, _.selectionEnd = A);
7464
7453
  });
7465
7454
  }
7466
7455
  }
7467
7456
  w.current = At;
7468
7457
  },
7469
- onPointerUp: (A) => {
7470
- r?.(A), setTimeout(() => {
7458
+ onPointerUp: (M) => {
7459
+ r?.(M), setTimeout(() => {
7471
7460
  w.current = At;
7472
7461
  }, 50);
7473
7462
  },
@@ -7503,7 +7492,7 @@ var Rf = Ye + "Icon", pr = s.forwardRef(
7503
7492
  Rf,
7504
7493
  e
7505
7494
  ), { visible: a, hidden: i, ...c } = n;
7506
- return /* @__PURE__ */ u.jsx(I.svg, { ...c, ref: o, "aria-hidden": !0, asChild: !0, children: r ? a : i });
7495
+ return /* @__PURE__ */ u.jsx(N.svg, { ...c, ref: o, "aria-hidden": !0, asChild: !0, children: r ? a : i });
7507
7496
  }
7508
7497
  );
7509
7498
  pr.displayName = Rf;
@@ -7578,7 +7567,7 @@ Mi.displayName = Pf;
7578
7567
  var Tf = "PopoverTrigger", Ii = s.forwardRef(
7579
7568
  (e, t) => {
7580
7569
  const { __scopePopover: n, ...o } = e, r = Xe(Tf, n), a = en(n), i = k(t, r.triggerRef), c = /* @__PURE__ */ u.jsx(
7581
- I.button,
7570
+ N.button,
7582
7571
  {
7583
7572
  type: "button",
7584
7573
  "aria-haspopup": "dialog",
@@ -7721,7 +7710,7 @@ var YC = /* @__PURE__ */ Ce("PopoverContent.RemoveScroll"), XC = s.forwardRef(
7721
7710
  (e, t) => {
7722
7711
  const { __scopePopover: n, ...o } = e, r = Xe(Af, n);
7723
7712
  return /* @__PURE__ */ u.jsx(
7724
- I.button,
7713
+ N.button,
7725
7714
  {
7726
7715
  type: "button",
7727
7716
  ...o,
@@ -7775,7 +7764,7 @@ var Li = "Progress", Fi = 100, [ay, sy] = Y(Li), [iy, cy] = ay(Li), $i = s.forwa
7775
7764
  o !== null && !Gl(o, c) && console.error(dy(`${o}`, "Progress"));
7776
7765
  const l = Gl(o, c) ? o : null, f = In(l) ? a(l, c) : void 0;
7777
7766
  return /* @__PURE__ */ u.jsx(iy, { scope: n, value: l, max: c, children: /* @__PURE__ */ u.jsx(
7778
- I.div,
7767
+ N.div,
7779
7768
  {
7780
7769
  "aria-valuemax": c,
7781
7770
  "aria-valuemin": 0,
@@ -7796,7 +7785,7 @@ var If = "ProgressIndicator", Vi = s.forwardRef(
7796
7785
  (e, t) => {
7797
7786
  const { __scopeProgress: n, ...o } = e, r = cy(If, n);
7798
7787
  return /* @__PURE__ */ u.jsx(
7799
- I.div,
7788
+ N.div,
7800
7789
  {
7801
7790
  "data-state": Nf(r.value, r.max),
7802
7791
  "data-value": r.value ?? void 0,
@@ -7858,7 +7847,7 @@ var Bi = "Radio", [vy, Of] = Y(Bi), [my, hy] = vy(Bi), Df = s.forwardRef(
7858
7847
  } = e, [p, v] = s.useState(null), h = k(t, (x) => v(x)), g = s.useRef(!1), m = p ? f || !!p.closest("form") : !0;
7859
7848
  return /* @__PURE__ */ u.jsxs(my, { scope: n, checked: r, disabled: i, children: [
7860
7849
  /* @__PURE__ */ u.jsx(
7861
- I.button,
7850
+ N.button,
7862
7851
  {
7863
7852
  type: "button",
7864
7853
  role: "radio",
@@ -7896,7 +7885,7 @@ var jf = "RadioIndicator", kf = s.forwardRef(
7896
7885
  (e, t) => {
7897
7886
  const { __scopeRadio: n, forceMount: o, ...r } = e, a = hy(jf, n);
7898
7887
  return /* @__PURE__ */ u.jsx(ee, { present: o || a.checked, children: /* @__PURE__ */ u.jsx(
7899
- I.span,
7888
+ N.span,
7900
7889
  {
7901
7890
  "data-state": Ff(a.checked),
7902
7891
  "data-disabled": a.disabled ? "" : void 0,
@@ -7928,7 +7917,7 @@ var gy = "RadioBubbleInput", Lf = s.forwardRef(
7928
7917
  h.call(d, n), d.dispatchEvent(g);
7929
7918
  }
7930
7919
  }, [l, n, o]), /* @__PURE__ */ u.jsx(
7931
- I.input,
7920
+ N.input,
7932
7921
  {
7933
7922
  type: "radio",
7934
7923
  "aria-hidden": !0,
@@ -7993,7 +7982,7 @@ var xy = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ao = "RadioGroup",
7993
7982
  dir: g,
7994
7983
  loop: d,
7995
7984
  children: /* @__PURE__ */ u.jsx(
7996
- I.div,
7985
+ N.div,
7997
7986
  {
7998
7987
  role: "radiogroup",
7999
7988
  "aria-required": i,
@@ -8081,7 +8070,7 @@ var Ui = "ScrollArea", [Gf, _y] = Y(Ui), [Ay, xe] = Gf(Ui), Wi = s.forwardRef(
8081
8070
  dir: r,
8082
8071
  scrollHideDelay: a = 600,
8083
8072
  ...i
8084
- } = e, [c, l] = s.useState(null), [f, d] = s.useState(null), [p, v] = s.useState(null), [h, g] = s.useState(null), [m, x] = s.useState(null), [w, b] = s.useState(0), [C, y] = s.useState(0), [S, T] = s.useState(!1), [E, A] = s.useState(!1), _ = k(t, (M) => l(M)), P = de(r);
8073
+ } = e, [c, l] = s.useState(null), [f, d] = s.useState(null), [p, v] = s.useState(null), [h, g] = s.useState(null), [m, x] = s.useState(null), [w, b] = s.useState(0), [C, y] = s.useState(0), [S, T] = s.useState(!1), [E, M] = s.useState(!1), _ = k(t, (A) => l(A)), P = de(r);
8085
8074
  return /* @__PURE__ */ u.jsx(
8086
8075
  Ay,
8087
8076
  {
@@ -8101,11 +8090,11 @@ var Ui = "ScrollArea", [Gf, _y] = Y(Ui), [Ay, xe] = Gf(Ui), Wi = s.forwardRef(
8101
8090
  scrollbarY: m,
8102
8091
  onScrollbarYChange: x,
8103
8092
  scrollbarYEnabled: E,
8104
- onScrollbarYEnabledChange: A,
8093
+ onScrollbarYEnabledChange: M,
8105
8094
  onCornerWidthChange: b,
8106
8095
  onCornerHeightChange: y,
8107
8096
  children: /* @__PURE__ */ u.jsx(
8108
- I.div,
8097
+ N.div,
8109
8098
  {
8110
8099
  dir: P,
8111
8100
  ...i,
@@ -8138,7 +8127,7 @@ var Hf = "ScrollAreaViewport", zi = s.forwardRef(
8138
8127
  }
8139
8128
  ),
8140
8129
  /* @__PURE__ */ u.jsx(
8141
- I.div,
8130
+ N.div,
8142
8131
  {
8143
8132
  "data-radix-scroll-area-viewport": "",
8144
8133
  ...a,
@@ -8404,16 +8393,16 @@ var My = s.forwardRef((e, t) => {
8404
8393
  onResize: p,
8405
8394
  ...v
8406
8395
  } = e, h = xe(De, n), [g, m] = s.useState(null), x = k(t, (_) => m(_)), w = s.useRef(null), b = s.useRef(""), C = h.viewport, y = o.content - o.viewport, S = Z(d), T = Z(l), E = io(p, 10);
8407
- function A(_) {
8396
+ function M(_) {
8408
8397
  if (w.current) {
8409
- const P = _.clientX - w.current.left, M = _.clientY - w.current.top;
8410
- f({ x: P, y: M });
8398
+ const P = _.clientX - w.current.left, A = _.clientY - w.current.top;
8399
+ f({ x: P, y: A });
8411
8400
  }
8412
8401
  }
8413
8402
  return s.useEffect(() => {
8414
8403
  const _ = (P) => {
8415
- const M = P.target;
8416
- g?.contains(M) && S(P, y);
8404
+ const A = P.target;
8405
+ g?.contains(A) && S(P, y);
8417
8406
  };
8418
8407
  return document.addEventListener("wheel", _, { passive: !1 }), () => document.removeEventListener("wheel", _, { passive: !1 });
8419
8408
  }, [C, g, y, S]), s.useEffect(T, [o, T]), gt(g, E), gt(h.content, E), /* @__PURE__ */ u.jsx(
@@ -8427,15 +8416,15 @@ var My = s.forwardRef((e, t) => {
8427
8416
  onThumbPositionChange: T,
8428
8417
  onThumbPointerDown: Z(c),
8429
8418
  children: /* @__PURE__ */ u.jsx(
8430
- I.div,
8419
+ N.div,
8431
8420
  {
8432
8421
  ...v,
8433
8422
  ref: x,
8434
8423
  style: { position: "absolute", ...v.style },
8435
8424
  onPointerDown: R(e.onPointerDown, (_) => {
8436
- _.button === 0 && (_.target.setPointerCapture(_.pointerId), w.current = g.getBoundingClientRect(), b.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"), A(_));
8425
+ _.button === 0 && (_.target.setPointerCapture(_.pointerId), w.current = g.getBoundingClientRect(), b.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"), M(_));
8437
8426
  }),
8438
- onPointerMove: R(e.onPointerMove, A),
8427
+ onPointerMove: R(e.onPointerMove, M),
8439
8428
  onPointerUp: R(e.onPointerUp, (_) => {
8440
8429
  const P = _.target;
8441
8430
  P.hasPointerCapture(_.pointerId) && P.releasePointerCapture(_.pointerId), document.body.style.webkitUserSelect = b.current, h.viewport && (h.viewport.style.scrollBehavior = ""), w.current = null;
@@ -8469,7 +8458,7 @@ var My = s.forwardRef((e, t) => {
8469
8458
  return c(), p.addEventListener("scroll", v), () => p.removeEventListener("scroll", v);
8470
8459
  }
8471
8460
  }, [a.viewport, d, c]), /* @__PURE__ */ u.jsx(
8472
- I.div,
8461
+ N.div,
8473
8462
  {
8474
8463
  "data-state": i.hasThumb ? "visible" : "hidden",
8475
8464
  ...r,
@@ -8505,7 +8494,7 @@ var ky = s.forwardRef((e, t) => {
8505
8494
  const d = r.scrollbarY?.offsetWidth || 0;
8506
8495
  r.onCornerWidthChange(d), i(d);
8507
8496
  }), f ? /* @__PURE__ */ u.jsx(
8508
- I.div,
8497
+ N.div,
8509
8498
  {
8510
8499
  ...o,
8511
8500
  ref: t,
@@ -8612,7 +8601,7 @@ var Ky = [" ", "Enter", "ArrowUp", "ArrowDown"], Uy = [" ", "Enter"], tt = "Sele
8612
8601
  disabled: v,
8613
8602
  required: h,
8614
8603
  form: g
8615
- } = e, m = uo(t), [x, w] = s.useState(null), [b, C] = s.useState(null), [y, S] = s.useState(!1), T = de(f), [E, A] = Q({
8604
+ } = e, m = uo(t), [x, w] = s.useState(null), [b, C] = s.useState(null), [y, S] = s.useState(!1), T = de(f), [E, M] = Q({
8616
8605
  prop: o,
8617
8606
  defaultProp: r ?? !1,
8618
8607
  onChange: a,
@@ -8622,7 +8611,7 @@ var Ky = [" ", "Enter", "ArrowUp", "ArrowDown"], Uy = [" ", "Enter"], tt = "Sele
8622
8611
  defaultProp: c,
8623
8612
  onChange: l,
8624
8613
  caller: tt
8625
- }), M = s.useRef(null), N = x ? g || !!x.closest("form") : !0, [$, O] = s.useState(/* @__PURE__ */ new Set()), G = Array.from($).map((F) => F.props.value).join(";");
8614
+ }), A = s.useRef(null), I = x ? g || !!x.closest("form") : !0, [$, O] = s.useState(/* @__PURE__ */ new Set()), G = Array.from($).map((F) => F.props.value).join(";");
8626
8615
  return /* @__PURE__ */ u.jsx(yt, { ...m, children: /* @__PURE__ */ u.jsxs(
8627
8616
  Yy,
8628
8617
  {
@@ -8638,9 +8627,9 @@ var Ky = [" ", "Enter", "ArrowUp", "ArrowDown"], Uy = [" ", "Enter"], tt = "Sele
8638
8627
  value: _,
8639
8628
  onValueChange: P,
8640
8629
  open: E,
8641
- onOpenChange: A,
8630
+ onOpenChange: M,
8642
8631
  dir: T,
8643
- triggerPointerDownPosRef: M,
8632
+ triggerPointerDownPosRef: A,
8644
8633
  disabled: v,
8645
8634
  children: [
8646
8635
  /* @__PURE__ */ u.jsx(co.Provider, { scope: t, children: /* @__PURE__ */ u.jsx(
@@ -8659,7 +8648,7 @@ var Ky = [" ", "Enter", "ArrowUp", "ArrowDown"], Uy = [" ", "Enter"], tt = "Sele
8659
8648
  children: n
8660
8649
  }
8661
8650
  ) }),
8662
- N ? /* @__PURE__ */ u.jsxs(
8651
+ I ? /* @__PURE__ */ u.jsxs(
8663
8652
  sp,
8664
8653
  {
8665
8654
  "aria-hidden": !0,
@@ -8695,7 +8684,7 @@ var qf = "SelectTrigger", ec = s.forwardRef(
8695
8684
  });
8696
8685
  };
8697
8686
  return /* @__PURE__ */ u.jsx(St, { asChild: !0, ...a, children: /* @__PURE__ */ u.jsx(
8698
- I.button,
8687
+ N.button,
8699
8688
  {
8700
8689
  type: "button",
8701
8690
  role: "combobox",
@@ -8733,7 +8722,7 @@ var Zf = "SelectValue", tc = s.forwardRef(
8733
8722
  return te(() => {
8734
8723
  f(d);
8735
8724
  }, [f, d]), /* @__PURE__ */ u.jsx(
8736
- I.span,
8725
+ N.span,
8737
8726
  {
8738
8727
  ...c,
8739
8728
  ref: p,
@@ -8747,7 +8736,7 @@ tc.displayName = Zf;
8747
8736
  var Zy = "SelectIcon", nc = s.forwardRef(
8748
8737
  (e, t) => {
8749
8738
  const { __scopeSelect: n, children: o, ...r } = e;
8750
- return /* @__PURE__ */ u.jsx(I.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
8739
+ return /* @__PURE__ */ u.jsx(N.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
8751
8740
  }
8752
8741
  );
8753
8742
  nc.displayName = Zy;
@@ -8791,22 +8780,22 @@ var we = 10, [Jf, Ze] = Et(nt), Qy = "SelectContentImpl", eS = /* @__PURE__ */ C
8791
8780
  avoidCollisions: x,
8792
8781
  //
8793
8782
  ...w
8794
- } = e, b = qe(nt, n), [C, y] = s.useState(null), [S, T] = s.useState(null), E = k(t, (j) => y(j)), [A, _] = s.useState(null), [P, M] = s.useState(
8783
+ } = e, b = qe(nt, n), [C, y] = s.useState(null), [S, T] = s.useState(null), E = k(t, (j) => y(j)), [M, _] = s.useState(null), [P, A] = s.useState(
8795
8784
  null
8796
- ), N = lo(n), [$, O] = s.useState(!1), G = s.useRef(!1);
8785
+ ), I = lo(n), [$, O] = s.useState(!1), G = s.useRef(!1);
8797
8786
  s.useEffect(() => {
8798
8787
  if (C) return Hn(C);
8799
8788
  }, [C]), Bn();
8800
8789
  const F = s.useCallback(
8801
8790
  (j) => {
8802
- const [U, ...H] = N().map((q) => q.ref.current), [K] = H.slice(-1), z = document.activeElement;
8791
+ const [U, ...H] = I().map((q) => q.ref.current), [K] = H.slice(-1), z = document.activeElement;
8803
8792
  for (const q of j)
8804
8793
  if (q === z || (q?.scrollIntoView({ block: "nearest" }), q === U && S && (S.scrollTop = 0), q === K && S && (S.scrollTop = S.scrollHeight), q?.focus(), document.activeElement !== z)) return;
8805
8794
  },
8806
- [N, S]
8795
+ [I, S]
8807
8796
  ), V = s.useCallback(
8808
- () => F([A, C]),
8809
- [F, A, C]
8797
+ () => F([M, C]),
8798
+ [F, M, C]
8810
8799
  );
8811
8800
  s.useEffect(() => {
8812
8801
  $ && V();
@@ -8834,7 +8823,7 @@ var we = 10, [Jf, Ze] = Et(nt), Qy = "SelectContentImpl", eS = /* @__PURE__ */ C
8834
8823
  };
8835
8824
  }, [L]);
8836
8825
  const [J, re] = cp((j) => {
8837
- const U = N().filter((z) => !z.disabled), H = U.find((z) => z.ref.current === document.activeElement), K = lp(U, j, H);
8826
+ const U = I().filter((z) => !z.disabled), H = U.find((z) => z.ref.current === document.activeElement), K = lp(U, j, H);
8838
8827
  K && setTimeout(() => K.ref.current.focus());
8839
8828
  }), ae = s.useCallback(
8840
8829
  (j, U, H) => {
@@ -8845,7 +8834,7 @@ var we = 10, [Jf, Ze] = Et(nt), Qy = "SelectContentImpl", eS = /* @__PURE__ */ C
8845
8834
  ), se = s.useCallback(() => C?.focus(), [C]), ne = s.useCallback(
8846
8835
  (j, U, H) => {
8847
8836
  const K = !G.current && !H;
8848
- (b.value !== void 0 && b.value === U || K) && M(j);
8837
+ (b.value !== void 0 && b.value === U || K) && A(j);
8849
8838
  },
8850
8839
  [b.value]
8851
8840
  ), B = o === "popper" ? vr : ep, X = B === vr ? {
@@ -8868,7 +8857,7 @@ var we = 10, [Jf, Ze] = Et(nt), Qy = "SelectContentImpl", eS = /* @__PURE__ */ C
8868
8857
  viewport: S,
8869
8858
  onViewportChange: T,
8870
8859
  itemRefCallback: ae,
8871
- selectedItem: A,
8860
+ selectedItem: M,
8872
8861
  onItemLeave: se,
8873
8862
  itemTextRefCallback: ne,
8874
8863
  focusSelectedItem: V,
@@ -8919,7 +8908,7 @@ var we = 10, [Jf, Ze] = Et(nt), Qy = "SelectContentImpl", eS = /* @__PURE__ */ C
8919
8908
  onKeyDown: R(w.onKeyDown, (j) => {
8920
8909
  const U = j.ctrlKey || j.altKey || j.metaKey;
8921
8910
  if (j.key === "Tab" && j.preventDefault(), !U && j.key.length === 1 && re(j.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(j.key)) {
8922
- let K = N().filter((z) => !z.disabled).map((z) => z.ref.current);
8911
+ let K = I().filter((z) => !z.disabled).map((z) => z.ref.current);
8923
8912
  if (["ArrowUp", "End"].includes(j.key) && (K = K.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(j.key)) {
8924
8913
  const z = j.target, q = K.indexOf(z);
8925
8914
  K = K.slice(q + 1);
@@ -8941,9 +8930,9 @@ Qf.displayName = Qy;
8941
8930
  var tS = "SelectItemAlignedPosition", ep = s.forwardRef((e, t) => {
8942
8931
  const { __scopeSelect: n, onPlaced: o, ...r } = e, a = qe(nt, n), i = Ze(nt, n), [c, l] = s.useState(null), [f, d] = s.useState(null), p = k(t, (E) => d(E)), v = lo(n), h = s.useRef(!1), g = s.useRef(!0), { viewport: m, selectedItem: x, selectedItemText: w, focusSelectedItem: b } = i, C = s.useCallback(() => {
8943
8932
  if (a.trigger && a.valueNode && c && f && m && x && w) {
8944
- const E = a.trigger.getBoundingClientRect(), A = f.getBoundingClientRect(), _ = a.valueNode.getBoundingClientRect(), P = w.getBoundingClientRect();
8933
+ const E = a.trigger.getBoundingClientRect(), M = f.getBoundingClientRect(), _ = a.valueNode.getBoundingClientRect(), P = w.getBoundingClientRect();
8945
8934
  if (a.dir !== "rtl") {
8946
- const z = P.left - A.left, q = _.left - z, ie = E.left - q, be = E.width + ie, pe = Math.max(be, A.width), Ve = window.innerWidth - we, yo = mt(q, [
8935
+ const z = P.left - M.left, q = _.left - z, ie = E.left - q, be = E.width + ie, pe = Math.max(be, M.width), Ve = window.innerWidth - we, yo = mt(q, [
8947
8936
  we,
8948
8937
  // Prevents the content from going off the starting edge of the
8949
8938
  // viewport. It may still go off the ending edge, but this can be
@@ -8954,15 +8943,15 @@ var tS = "SelectItemAlignedPosition", ep = s.forwardRef((e, t) => {
8954
8943
  ]);
8955
8944
  c.style.minWidth = be + "px", c.style.left = yo + "px";
8956
8945
  } else {
8957
- const z = A.right - P.right, q = window.innerWidth - _.right - z, ie = window.innerWidth - E.right - q, be = E.width + ie, pe = Math.max(be, A.width), Ve = window.innerWidth - we, yo = mt(q, [
8946
+ const z = M.right - P.right, q = window.innerWidth - _.right - z, ie = window.innerWidth - E.right - q, be = E.width + ie, pe = Math.max(be, M.width), Ve = window.innerWidth - we, yo = mt(q, [
8958
8947
  we,
8959
8948
  Math.max(we, Ve - pe)
8960
8949
  ]);
8961
8950
  c.style.minWidth = be + "px", c.style.right = yo + "px";
8962
8951
  }
8963
- const M = v(), N = window.innerHeight - we * 2, $ = m.scrollHeight, O = window.getComputedStyle(f), G = parseInt(O.borderTopWidth, 10), F = parseInt(O.paddingTop, 10), V = parseInt(O.borderBottomWidth, 10), L = parseInt(O.paddingBottom, 10), D = G + F + $ + L + V, J = Math.min(x.offsetHeight * 5, D), re = window.getComputedStyle(m), ae = parseInt(re.paddingTop, 10), se = parseInt(re.paddingBottom, 10), ne = E.top + E.height / 2 - we, B = N - ne, X = x.offsetHeight / 2, j = x.offsetTop + X, U = G + F + j, H = D - U;
8952
+ const A = v(), I = window.innerHeight - we * 2, $ = m.scrollHeight, O = window.getComputedStyle(f), G = parseInt(O.borderTopWidth, 10), F = parseInt(O.paddingTop, 10), V = parseInt(O.borderBottomWidth, 10), L = parseInt(O.paddingBottom, 10), D = G + F + $ + L + V, J = Math.min(x.offsetHeight * 5, D), re = window.getComputedStyle(m), ae = parseInt(re.paddingTop, 10), se = parseInt(re.paddingBottom, 10), ne = E.top + E.height / 2 - we, B = I - ne, X = x.offsetHeight / 2, j = x.offsetTop + X, U = G + F + j, H = D - U;
8964
8953
  if (U <= ne) {
8965
- const z = M.length > 0 && x === M[M.length - 1].ref.current;
8954
+ const z = A.length > 0 && x === A[A.length - 1].ref.current;
8966
8955
  c.style.bottom = "0px";
8967
8956
  const q = f.clientHeight - m.offsetTop - m.offsetHeight, ie = Math.max(
8968
8957
  B,
@@ -8971,7 +8960,7 @@ var tS = "SelectItemAlignedPosition", ep = s.forwardRef((e, t) => {
8971
8960
  ), be = U + ie;
8972
8961
  c.style.height = be + "px";
8973
8962
  } else {
8974
- const z = M.length > 0 && x === M[0].ref.current;
8963
+ const z = A.length > 0 && x === A[0].ref.current;
8975
8964
  c.style.top = "0px";
8976
8965
  const ie = Math.max(
8977
8966
  ne,
@@ -8980,7 +8969,7 @@ var tS = "SelectItemAlignedPosition", ep = s.forwardRef((e, t) => {
8980
8969
  ) + H;
8981
8970
  c.style.height = ie + "px", m.scrollTop = U - ne + m.offsetTop;
8982
8971
  }
8983
- c.style.margin = `${we}px 0`, c.style.minHeight = J + "px", c.style.maxHeight = N + "px", o?.(), requestAnimationFrame(() => h.current = !0);
8972
+ c.style.margin = `${we}px 0`, c.style.minHeight = J + "px", c.style.maxHeight = I + "px", o?.(), requestAnimationFrame(() => h.current = !0);
8984
8973
  }
8985
8974
  }, [
8986
8975
  v,
@@ -9023,7 +9012,7 @@ var tS = "SelectItemAlignedPosition", ep = s.forwardRef((e, t) => {
9023
9012
  zIndex: y
9024
9013
  },
9025
9014
  children: /* @__PURE__ */ u.jsx(
9026
- I.div,
9015
+ N.div,
9027
9016
  {
9028
9017
  ...r,
9029
9018
  ref: p,
@@ -9086,7 +9075,7 @@ var [oS, ac] = Et(nt, {}), mr = "SelectViewport", sc = s.forwardRef(
9086
9075
  }
9087
9076
  ),
9088
9077
  /* @__PURE__ */ u.jsx(co.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(
9089
- I.div,
9078
+ N.div,
9090
9079
  {
9091
9080
  "data-radix-select-viewport": "",
9092
9081
  role: "presentation",
@@ -9128,14 +9117,14 @@ sc.displayName = mr;
9128
9117
  var tp = "SelectGroup", [rS, aS] = Et(tp), ic = s.forwardRef(
9129
9118
  (e, t) => {
9130
9119
  const { __scopeSelect: n, ...o } = e, r = oe();
9131
- return /* @__PURE__ */ u.jsx(rS, { scope: n, id: r, children: /* @__PURE__ */ u.jsx(I.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
9120
+ return /* @__PURE__ */ u.jsx(rS, { scope: n, id: r, children: /* @__PURE__ */ u.jsx(N.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
9132
9121
  }
9133
9122
  );
9134
9123
  ic.displayName = tp;
9135
9124
  var np = "SelectLabel", cc = s.forwardRef(
9136
9125
  (e, t) => {
9137
9126
  const { __scopeSelect: n, ...o } = e, r = aS(np, n);
9138
- return /* @__PURE__ */ u.jsx(I.div, { id: r.id, ...o, ref: t });
9127
+ return /* @__PURE__ */ u.jsx(N.div, { id: r.id, ...o, ref: t });
9139
9128
  }
9140
9129
  );
9141
9130
  cc.displayName = np;
@@ -9176,7 +9165,7 @@ var Dn = "SelectItem", [sS, op] = Et(Dn), lc = s.forwardRef(
9176
9165
  disabled: r,
9177
9166
  textValue: d,
9178
9167
  children: /* @__PURE__ */ u.jsx(
9179
- I.div,
9168
+ N.div,
9180
9169
  {
9181
9170
  role: "option",
9182
9171
  "aria-labelledby": m,
@@ -9229,7 +9218,7 @@ var Mt = "SelectItemText", uc = s.forwardRef(
9229
9218
  [l.disabled, l.value, h]
9230
9219
  ), { onNativeOptionAdd: m, onNativeOptionRemove: x } = f;
9231
9220
  return te(() => (m(g), () => x(g)), [m, x, g]), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
9232
- /* @__PURE__ */ u.jsx(I.span, { id: l.textId, ...a, ref: v }),
9221
+ /* @__PURE__ */ u.jsx(N.span, { id: l.textId, ...a, ref: v }),
9233
9222
  l.isSelected && i.valueNode && !i.valueNodeHasChildren ? Ft.createPortal(a.children, i.valueNode) : null
9234
9223
  ] });
9235
9224
  }
@@ -9238,7 +9227,7 @@ uc.displayName = Mt;
9238
9227
  var rp = "SelectItemIndicator", dc = s.forwardRef(
9239
9228
  (e, t) => {
9240
9229
  const { __scopeSelect: n, ...o } = e;
9241
- return op(rp, n).isSelected ? /* @__PURE__ */ u.jsx(I.span, { "aria-hidden": !0, ...o, ref: t }) : null;
9230
+ return op(rp, n).isSelected ? /* @__PURE__ */ u.jsx(N.span, { "aria-hidden": !0, ...o, ref: t }) : null;
9242
9231
  }
9243
9232
  );
9244
9233
  dc.displayName = rp;
@@ -9297,7 +9286,7 @@ var ap = s.forwardRef((e, t) => {
9297
9286
  return s.useEffect(() => () => l(), [l]), te(() => {
9298
9287
  c().find((d) => d.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
9299
9288
  }, [c]), /* @__PURE__ */ u.jsx(
9300
- I.div,
9289
+ N.div,
9301
9290
  {
9302
9291
  "aria-hidden": !0,
9303
9292
  ...r,
@@ -9317,7 +9306,7 @@ var ap = s.forwardRef((e, t) => {
9317
9306
  }), iS = "SelectSeparator", vc = s.forwardRef(
9318
9307
  (e, t) => {
9319
9308
  const { __scopeSelect: n, ...o } = e;
9320
- return /* @__PURE__ */ u.jsx(I.div, { "aria-hidden": !0, ...o, ref: t });
9309
+ return /* @__PURE__ */ u.jsx(N.div, { "aria-hidden": !0, ...o, ref: t });
9321
9310
  }
9322
9311
  );
9323
9312
  vc.displayName = iS;
@@ -9343,7 +9332,7 @@ var cS = "SelectBubbleInput", sp = s.forwardRef(
9343
9332
  d.call(c, t), c.dispatchEvent(p);
9344
9333
  }
9345
9334
  }, [i, t]), /* @__PURE__ */ u.jsx(
9346
- I.select,
9335
+ N.select,
9347
9336
  {
9348
9337
  ...n,
9349
9338
  style: { ...Tr, ...n.style },
@@ -9423,7 +9412,7 @@ const WE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9423
9412
  var PS = "Separator", Kl = "horizontal", TS = ["horizontal", "vertical"], hc = s.forwardRef((e, t) => {
9424
9413
  const { decorative: n, orientation: o = Kl, ...r } = e, a = _S(o) ? o : Kl, c = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
9425
9414
  return /* @__PURE__ */ u.jsx(
9426
- I.div,
9415
+ N.div,
9427
9416
  {
9428
9417
  "data-orientation": a,
9429
9418
  ...c,
@@ -9471,25 +9460,25 @@ var dp = ["PageUp", "PageDown"], fp = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
9471
9460
  } = e, x = s.useRef(/* @__PURE__ */ new Set()), w = s.useRef(0), C = i === "horizontal" ? OS : DS, [y = [], S] = Q({
9472
9461
  prop: d,
9473
9462
  defaultProp: f,
9474
- onChange: (M) => {
9475
- [...x.current][w.current]?.focus(), p(M);
9463
+ onChange: (A) => {
9464
+ [...x.current][w.current]?.focus(), p(A);
9476
9465
  }
9477
9466
  }), T = s.useRef(y);
9478
- function E(M) {
9479
- const N = $S(y, M);
9480
- P(M, N);
9467
+ function E(A) {
9468
+ const I = $S(y, A);
9469
+ P(A, I);
9481
9470
  }
9482
- function A(M) {
9483
- P(M, w.current);
9471
+ function M(A) {
9472
+ P(A, w.current);
9484
9473
  }
9485
9474
  function _() {
9486
- const M = T.current[w.current];
9487
- y[w.current] !== M && v(y);
9475
+ const A = T.current[w.current];
9476
+ y[w.current] !== A && v(y);
9488
9477
  }
9489
- function P(M, N, { commit: $ } = { commit: !1 }) {
9490
- const O = HS(a), G = KS(Math.round((M - o) / a) * a + o, O), F = mt(G, [o, r]);
9478
+ function P(A, I, { commit: $ } = { commit: !1 }) {
9479
+ const O = HS(a), G = KS(Math.round((A - o) / a) * a + o, O), F = mt(G, [o, r]);
9491
9480
  S((V = []) => {
9492
- const L = LS(V, F, N);
9481
+ const L = LS(V, F, I);
9493
9482
  if (GS(L, l * a)) {
9494
9483
  w.current = L.indexOf(F);
9495
9484
  const D = String(L) !== String(V);
@@ -9525,13 +9514,13 @@ var dp = ["PageUp", "PageDown"], fp = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
9525
9514
  max: r,
9526
9515
  inverted: h,
9527
9516
  onSlideStart: c ? void 0 : E,
9528
- onSlideMove: c ? void 0 : A,
9517
+ onSlideMove: c ? void 0 : M,
9529
9518
  onSlideEnd: c ? void 0 : _,
9530
9519
  onHomeKeyDown: () => !c && P(o, 0, { commit: !0 }),
9531
9520
  onEndKeyDown: () => !c && P(r, y.length - 1, { commit: !0 }),
9532
- onStepKeyDown: ({ event: M, direction: N }) => {
9521
+ onStepKeyDown: ({ event: A, direction: I }) => {
9533
9522
  if (!c) {
9534
- const G = dp.includes(M.key) || M.shiftKey && fp.includes(M.key) ? 10 : 1, F = w.current, V = y[F], L = a * G * N;
9523
+ const G = dp.includes(A.key) || A.shiftKey && fp.includes(A.key) ? 10 : 1, F = w.current, V = y[F], L = a * G * I;
9535
9524
  P(V + L, F, { commit: !0 });
9536
9525
  }
9537
9526
  }
@@ -9670,7 +9659,7 @@ var [mp, hp] = vp(Pt, {
9670
9659
  ...f
9671
9660
  } = e, d = fo(Pt, n);
9672
9661
  return /* @__PURE__ */ u.jsx(
9673
- I.span,
9662
+ N.span,
9674
9663
  {
9675
9664
  ...f,
9676
9665
  ref: t,
@@ -9695,7 +9684,7 @@ var [mp, hp] = vp(Pt, {
9695
9684
  (e, t) => {
9696
9685
  const { __scopeSlider: n, ...o } = e, r = fo(xp, n);
9697
9686
  return /* @__PURE__ */ u.jsx(
9698
- I.span,
9687
+ N.span,
9699
9688
  {
9700
9689
  "data-disabled": r.disabled ? "" : void 0,
9701
9690
  "data-orientation": r.orientation,
@@ -9712,7 +9701,7 @@ var wr = "SliderRange", bc = s.forwardRef(
9712
9701
  (v) => wp(v, r.min, r.max)
9713
9702
  ), d = l > 1 ? Math.min(...f) : 0, p = 100 - Math.max(...f);
9714
9703
  return /* @__PURE__ */ u.jsx(
9715
- I.span,
9704
+ N.span,
9716
9705
  {
9717
9706
  "data-orientation": r.orientation,
9718
9707
  "data-disabled": r.disabled ? "" : void 0,
@@ -9754,7 +9743,7 @@ var Cr = "SliderThumb", wc = s.forwardRef(
9754
9743
  },
9755
9744
  children: [
9756
9745
  /* @__PURE__ */ u.jsx(br.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ u.jsx(
9757
- I.span,
9746
+ N.span,
9758
9747
  {
9759
9748
  role: "slider",
9760
9749
  "aria-label": e["aria-label"] || m,
@@ -9800,7 +9789,7 @@ var kS = "RadioBubbleInput", bp = s.forwardRef(
9800
9789
  d.call(c, t), c.dispatchEvent(p);
9801
9790
  }
9802
9791
  }, [i, t]), /* @__PURE__ */ u.jsx(
9803
- I.input,
9792
+ N.input,
9804
9793
  {
9805
9794
  style: { display: "none" },
9806
9795
  ...n,
@@ -9889,7 +9878,7 @@ var po = "Switch", [XS, qS] = Y(po), [ZS, JS] = XS(po), yc = s.forwardRef(
9889
9878
  });
9890
9879
  return /* @__PURE__ */ u.jsxs(ZS, { scope: n, checked: w, disabled: c, children: [
9891
9880
  /* @__PURE__ */ u.jsx(
9892
- I.button,
9881
+ N.button,
9893
9882
  {
9894
9883
  type: "button",
9895
9884
  role: "switch",
@@ -9928,7 +9917,7 @@ var Cp = "SwitchThumb", Sc = s.forwardRef(
9928
9917
  (e, t) => {
9929
9918
  const { __scopeSwitch: n, ...o } = e, r = JS(Cp, n);
9930
9919
  return /* @__PURE__ */ u.jsx(
9931
- I.span,
9920
+ N.span,
9932
9921
  {
9933
9922
  "data-state": Sp(r.checked),
9934
9923
  "data-disabled": r.disabled ? "" : void 0,
@@ -10023,7 +10012,7 @@ var vo = "Tabs", [nR, oR] = Y(vo, [
10023
10012
  dir: d,
10024
10013
  activationMode: l,
10025
10014
  children: /* @__PURE__ */ u.jsx(
10026
- I.div,
10015
+ N.div,
10027
10016
  {
10028
10017
  dir: d,
10029
10018
  "data-orientation": i,
@@ -10048,7 +10037,7 @@ var Ep = "TabsList", Pc = s.forwardRef(
10048
10037
  dir: a.dir,
10049
10038
  loop: o,
10050
10039
  children: /* @__PURE__ */ u.jsx(
10051
- I.div,
10040
+ N.div,
10052
10041
  {
10053
10042
  role: "tablist",
10054
10043
  "aria-orientation": a.orientation,
@@ -10072,7 +10061,7 @@ var Pp = "TabsTrigger", Tc = s.forwardRef(
10072
10061
  focusable: !r,
10073
10062
  active: d,
10074
10063
  children: /* @__PURE__ */ u.jsx(
10075
- I.button,
10064
+ N.button,
10076
10065
  {
10077
10066
  type: "button",
10078
10067
  role: "tab",
@@ -10108,7 +10097,7 @@ var Tp = "TabsContent", _c = s.forwardRef(
10108
10097
  const v = requestAnimationFrame(() => p.current = !1);
10109
10098
  return () => cancelAnimationFrame(v);
10110
10099
  }, []), /* @__PURE__ */ u.jsx(ee, { present: r || d, children: ({ present: v }) => /* @__PURE__ */ u.jsx(
10111
- I.div,
10100
+ N.div,
10112
10101
  {
10113
10102
  "data-state": d ? "active" : "inactive",
10114
10103
  "data-orientation": c.orientation,
@@ -10236,7 +10225,7 @@ var Ip = "ToastViewport", pR = ["F8"], yr = "toast.viewportPause", Sr = "toast.v
10236
10225
  f.current?.focus();
10237
10226
  return;
10238
10227
  }
10239
- const _ = m({ tabbingDirection: T ? "backwards" : "forwards" }), P = _.findIndex((M) => M === S);
10228
+ const _ = m({ tabbingDirection: T ? "backwards" : "forwards" }), P = _.findIndex((A) => A === S);
10240
10229
  Vo(_.slice(P + 1)) ? b.preventDefault() : T ? f.current?.focus() : d.current?.focus();
10241
10230
  }
10242
10231
  };
@@ -10263,7 +10252,7 @@ var Ip = "ToastViewport", pR = ["F8"], yr = "toast.viewportPause", Sr = "toast.v
10263
10252
  }
10264
10253
  }
10265
10254
  ),
10266
- /* @__PURE__ */ u.jsx(Mc.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(I.ol, { tabIndex: -1, ...a, ref: v }) }),
10255
+ /* @__PURE__ */ u.jsx(Mc.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(N.ol, { tabIndex: -1, ...a, ref: v }) }),
10267
10256
  g && /* @__PURE__ */ u.jsx(
10268
10257
  Rr,
10269
10258
  {
@@ -10356,30 +10345,30 @@ var [xR, bR] = Mp(tn, {
10356
10345
  onSwipeCancel: v,
10357
10346
  onSwipeEnd: h,
10358
10347
  ...g
10359
- } = e, m = mo(tn, n), [x, w] = s.useState(null), b = k(t, (O) => w(O)), C = s.useRef(null), y = s.useRef(null), S = r || m.duration, T = s.useRef(0), E = s.useRef(S), A = s.useRef(0), { onToastAdd: _, onToastRemove: P } = m, M = Z(() => {
10348
+ } = e, m = mo(tn, n), [x, w] = s.useState(null), b = k(t, (O) => w(O)), C = s.useRef(null), y = s.useRef(null), S = r || m.duration, T = s.useRef(0), E = s.useRef(S), M = s.useRef(0), { onToastAdd: _, onToastRemove: P } = m, A = Z(() => {
10360
10349
  x?.contains(document.activeElement) && m.viewport?.focus(), i();
10361
- }), N = s.useCallback(
10350
+ }), I = s.useCallback(
10362
10351
  (O) => {
10363
- !O || O === 1 / 0 || (window.clearTimeout(A.current), T.current = (/* @__PURE__ */ new Date()).getTime(), A.current = window.setTimeout(M, O));
10352
+ !O || O === 1 / 0 || (window.clearTimeout(M.current), T.current = (/* @__PURE__ */ new Date()).getTime(), M.current = window.setTimeout(A, O));
10364
10353
  },
10365
- [M]
10354
+ [A]
10366
10355
  );
10367
10356
  s.useEffect(() => {
10368
10357
  const O = m.viewport;
10369
10358
  if (O) {
10370
10359
  const G = () => {
10371
- N(E.current), f?.();
10360
+ I(E.current), f?.();
10372
10361
  }, F = () => {
10373
10362
  const V = (/* @__PURE__ */ new Date()).getTime() - T.current;
10374
- E.current = E.current - V, window.clearTimeout(A.current), l?.();
10363
+ E.current = E.current - V, window.clearTimeout(M.current), l?.();
10375
10364
  };
10376
10365
  return O.addEventListener(yr, F), O.addEventListener(Sr, G), () => {
10377
10366
  O.removeEventListener(yr, F), O.removeEventListener(Sr, G);
10378
10367
  };
10379
10368
  }
10380
- }, [m.viewport, S, l, f, N]), s.useEffect(() => {
10381
- a && !m.isClosePausedRef.current && N(S);
10382
- }, [a, S, m.isClosePausedRef, N]), s.useEffect(() => (_(), () => P()), [_, P]);
10369
+ }, [m.viewport, S, l, f, I]), s.useEffect(() => {
10370
+ a && !m.isClosePausedRef.current && I(S);
10371
+ }, [a, S, m.isClosePausedRef, I]), s.useEffect(() => (_(), () => P()), [_, P]);
10383
10372
  const $ = s.useMemo(() => x ? kp(x) : null, [x]);
10384
10373
  return m.viewport ? /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
10385
10374
  $ && /* @__PURE__ */ u.jsx(
@@ -10391,16 +10380,16 @@ var [xR, bR] = Mp(tn, {
10391
10380
  children: $
10392
10381
  }
10393
10382
  ),
10394
- /* @__PURE__ */ u.jsx(xR, { scope: n, onClose: M, children: Ft.createPortal(
10383
+ /* @__PURE__ */ u.jsx(xR, { scope: n, onClose: A, children: Ft.createPortal(
10395
10384
  /* @__PURE__ */ u.jsx(Mc.ItemSlot, { scope: n, children: /* @__PURE__ */ u.jsx(
10396
10385
  Jv,
10397
10386
  {
10398
10387
  asChild: !0,
10399
10388
  onEscapeKeyDown: R(c, () => {
10400
- m.isFocusedToastEscapeKeyDownRef.current || M(), m.isFocusedToastEscapeKeyDownRef.current = !1;
10389
+ m.isFocusedToastEscapeKeyDownRef.current || A(), m.isFocusedToastEscapeKeyDownRef.current = !1;
10401
10390
  }),
10402
10391
  children: /* @__PURE__ */ u.jsx(
10403
- I.li,
10392
+ N.li,
10404
10393
  {
10405
10394
  tabIndex: 0,
10406
10395
  "data-state": a ? "open" : "closed",
@@ -10409,7 +10398,7 @@ var [xR, bR] = Mp(tn, {
10409
10398
  ref: b,
10410
10399
  style: { userSelect: "none", touchAction: "none", ...e.style },
10411
10400
  onKeyDown: R(e.onKeyDown, (O) => {
10412
- O.key === "Escape" && (c?.(O.nativeEvent), O.nativeEvent.defaultPrevented || (m.isFocusedToastEscapeKeyDownRef.current = !0, M()));
10401
+ O.key === "Escape" && (c?.(O.nativeEvent), O.nativeEvent.defaultPrevented || (m.isFocusedToastEscapeKeyDownRef.current = !0, A()));
10413
10402
  }),
10414
10403
  onPointerDown: R(e.onPointerDown, (O) => {
10415
10404
  O.button === 0 && (C.current = { x: O.clientX, y: O.clientY });
@@ -10462,14 +10451,14 @@ var [xR, bR] = Mp(tn, {
10462
10451
  }, yR = "ToastTitle", Dc = s.forwardRef(
10463
10452
  (e, t) => {
10464
10453
  const { __scopeToast: n, ...o } = e;
10465
- return /* @__PURE__ */ u.jsx(I.div, { ...o, ref: t });
10454
+ return /* @__PURE__ */ u.jsx(N.div, { ...o, ref: t });
10466
10455
  }
10467
10456
  );
10468
10457
  Dc.displayName = yR;
10469
10458
  var SR = "ToastDescription", jc = s.forwardRef(
10470
10459
  (e, t) => {
10471
10460
  const { __scopeToast: n, ...o } = e;
10472
- return /* @__PURE__ */ u.jsx(I.div, { ...o, ref: t });
10461
+ return /* @__PURE__ */ u.jsx(N.div, { ...o, ref: t });
10473
10462
  }
10474
10463
  );
10475
10464
  jc.displayName = SR;
@@ -10486,7 +10475,7 @@ var Dp = "ToastClose", ho = s.forwardRef(
10486
10475
  (e, t) => {
10487
10476
  const { __scopeToast: n, ...o } = e, r = bR(Dp, n);
10488
10477
  return /* @__PURE__ */ u.jsx(jp, { asChild: !0, children: /* @__PURE__ */ u.jsx(
10489
- I.button,
10478
+ N.button,
10490
10479
  {
10491
10480
  type: "button",
10492
10481
  ...o,
@@ -10500,7 +10489,7 @@ ho.displayName = Dp;
10500
10489
  var jp = s.forwardRef((e, t) => {
10501
10490
  const { __scopeToast: n, altText: o, ...r } = e;
10502
10491
  return /* @__PURE__ */ u.jsx(
10503
- I.div,
10492
+ N.div,
10504
10493
  {
10505
10494
  "data-radix-toast-announce-exclude": "",
10506
10495
  "data-radix-toast-announce-alt": o || void 0,
@@ -10585,7 +10574,7 @@ var Lp = "Toggle", go = s.forwardRef((e, t) => {
10585
10574
  caller: Lp
10586
10575
  });
10587
10576
  return /* @__PURE__ */ u.jsx(
10588
- I.button,
10577
+ N.button,
10589
10578
  {
10590
10579
  type: "button",
10591
10580
  "aria-pressed": i,
@@ -10696,9 +10685,9 @@ var [LR, FR] = Fp(Je), Gp = W.forwardRef(
10696
10685
  orientation: a,
10697
10686
  dir: d,
10698
10687
  loop: c,
10699
- children: /* @__PURE__ */ u.jsx(I.div, { ...p, ref: t })
10688
+ children: /* @__PURE__ */ u.jsx(N.div, { ...p, ref: t })
10700
10689
  }
10701
- ) : /* @__PURE__ */ u.jsx(I.div, { ...p, ref: t }) });
10690
+ ) : /* @__PURE__ */ u.jsx(N.div, { ...p, ref: t }) });
10702
10691
  }
10703
10692
  ), jn = "ToggleGroupItem", Fc = W.forwardRef(
10704
10693
  (e, t) => {
@@ -10756,7 +10745,7 @@ var $c = "Toolbar", [$R, VR] = Y($c, [
10756
10745
  dir: l,
10757
10746
  loop: a,
10758
10747
  children: /* @__PURE__ */ u.jsx(
10759
- I.div,
10748
+ N.div,
10760
10749
  {
10761
10750
  role: "toolbar",
10762
10751
  "aria-orientation": o,
@@ -10787,7 +10776,7 @@ Gc.displayName = zp;
10787
10776
  var GR = "ToolbarButton", bo = s.forwardRef(
10788
10777
  (e, t) => {
10789
10778
  const { __scopeToolbar: n, ...o } = e, r = Vc(n);
10790
- return /* @__PURE__ */ u.jsx(We, { asChild: !0, ...r, focusable: !e.disabled, children: /* @__PURE__ */ u.jsx(I.button, { type: "button", ...o, ref: t }) });
10779
+ return /* @__PURE__ */ u.jsx(We, { asChild: !0, ...r, focusable: !e.disabled, children: /* @__PURE__ */ u.jsx(N.button, { type: "button", ...o, ref: t }) });
10791
10780
  }
10792
10781
  );
10793
10782
  bo.displayName = GR;
@@ -10795,7 +10784,7 @@ var HR = "ToolbarLink", Hc = s.forwardRef(
10795
10784
  (e, t) => {
10796
10785
  const { __scopeToolbar: n, ...o } = e, r = Vc(n);
10797
10786
  return /* @__PURE__ */ u.jsx(We, { asChild: !0, ...r, focusable: !0, children: /* @__PURE__ */ u.jsx(
10798
- I.a,
10787
+ N.a,
10799
10788
  {
10800
10789
  ...o,
10801
10790
  ref: t,
@@ -10940,7 +10929,7 @@ var Pr = "TooltipTrigger", Xc = s.forwardRef(
10940
10929
  (e, t) => {
10941
10930
  const { __scopeTooltip: n, ...o } = e, r = nn(Pr, n), a = Wc(Pr, n), i = Co(n), c = s.useRef(null), l = k(t, c, r.onTriggerChange), f = s.useRef(!1), d = s.useRef(!1), p = s.useCallback(() => f.current = !1, []);
10942
10931
  return s.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ u.jsx(St, { asChild: !0, ...i, children: /* @__PURE__ */ u.jsx(
10943
- I.button,
10932
+ N.button,
10944
10933
  {
10945
10934
  "aria-describedby": r.open ? r.contentId : void 0,
10946
10935
  "data-state": r.stateAttribute,