@namuna-nur/ui-kit 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as c from "react";
2
- import ae, { forwardRef as ue, useLayoutEffect as oi, useState as Yr, createElement as xe, useRef as mr } from "react";
2
+ import ae, { forwardRef as ue, useLayoutEffect as oi, useState as Yr, createElement as be, useRef as mr } from "react";
3
3
  import { a as A, f as ai } from "./twMerge.js";
4
4
  import * as Xr from "react-dom";
5
5
  import ii from "react-dom";
@@ -61,9 +61,9 @@ function li() {
61
61
  return "Profiler";
62
62
  case x:
63
63
  return "StrictMode";
64
- case _:
64
+ case P:
65
65
  return "Suspense";
66
- case E:
66
+ case R:
67
67
  return "SuspenseList";
68
68
  case I:
69
69
  return "Activity";
@@ -78,7 +78,7 @@ function li() {
78
78
  return y.displayName || "Context";
79
79
  case S:
80
80
  return (y._context.displayName || "Context") + ".Consumer";
81
- case R:
81
+ case E:
82
82
  var T = y.render;
83
83
  return y = y.displayName, y || (y = T.displayName || T.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
84
84
  case M:
@@ -242,7 +242,7 @@ React keys must be passed directly to JSX without using spread:
242
242
  function p(y) {
243
243
  return typeof y == "object" && y !== null && y.$$typeof === g;
244
244
  }
245
- var h = ae, g = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), C = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, N = Array.isArray, z = console.createTask ? console.createTask : function() {
245
+ var h = ae, g = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), C = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, N = Array.isArray, z = console.createTask ? console.createTask : function() {
246
246
  return null;
247
247
  };
248
248
  h = {
@@ -253,7 +253,7 @@ React keys must be passed directly to JSX without using spread:
253
253
  var j, V = {}, O = h.react_stack_bottom_frame.bind(
254
254
  h,
255
255
  a
256
- )(), P = z(r(a)), B = {};
256
+ )(), _ = z(r(a)), B = {};
257
257
  Ke.Fragment = b, Ke.jsx = function(y, T, F) {
258
258
  var U = 1e4 > W.recentlyCreatedOwnerStacks++;
259
259
  return f(
@@ -262,7 +262,7 @@ React keys must be passed directly to JSX without using spread:
262
262
  F,
263
263
  !1,
264
264
  U ? Error("react-stack-top-frame") : O,
265
- U ? z(r(y)) : P
265
+ U ? z(r(y)) : _
266
266
  );
267
267
  }, Ke.jsxs = function(y, T, F) {
268
268
  var U = 1e4 > W.recentlyCreatedOwnerStacks++;
@@ -272,7 +272,7 @@ React keys must be passed directly to JSX without using spread:
272
272
  F,
273
273
  !0,
274
274
  U ? Error("react-stack-top-frame") : O,
275
- U ? z(r(y)) : P
275
+ U ? z(r(y)) : _
276
276
  );
277
277
  };
278
278
  }()), Ke;
@@ -415,7 +415,7 @@ const Ye = {
415
415
  ...u
416
416
  }, l) => {
417
417
  var v;
418
- const f = ke.icon, d = ke.variants[r], p = f.variants[r], h = (v = ke.shape) == null ? void 0 : v[o], g = f.disabled[r];
418
+ const f = Oe.icon, d = Oe.variants[r], p = f.variants[r], h = (v = Oe.shape) == null ? void 0 : v[o], g = f.disabled[r];
419
419
  return /* @__PURE__ */ m.jsxs(
420
420
  "button",
421
421
  {
@@ -425,18 +425,18 @@ const Ye = {
425
425
  ref: l,
426
426
  disabled: t,
427
427
  className: A(
428
- ke.base,
428
+ Oe.base,
429
429
  d.base,
430
430
  d.focus,
431
431
  h,
432
- a && ke.badgeStyles.base,
432
+ a && Oe.badgeStyles.base,
433
433
  !t && d.hover,
434
434
  !t && d.active,
435
435
  t && d.disabled,
436
436
  e == null ? void 0 : e.button
437
437
  ),
438
438
  children: [
439
- a && /* @__PURE__ */ m.jsx("span", { className: ke.badgeStyles.badgeStyles, children: a }),
439
+ a && /* @__PURE__ */ m.jsx("span", { className: Oe.badgeStyles.badgeStyles, children: a }),
440
440
  !!n && /* @__PURE__ */ m.jsx(
441
441
  n,
442
442
  {
@@ -453,12 +453,12 @@ const Ye = {
453
453
  viewBox: i == null ? void 0 : i.viewBox
454
454
  }
455
455
  ),
456
- !!s && /* @__PURE__ */ m.jsx(pe, { className: e == null ? void 0 : e.text, children: s })
456
+ !!s && /* @__PURE__ */ m.jsx(we, { className: e == null ? void 0 : e.text, children: s })
457
457
  ]
458
458
  }
459
459
  );
460
460
  }
461
- ), ke = {
461
+ ), Oe = {
462
462
  base: "group inline-flex items-center justify-center rounded-[10px] outline-none border",
463
463
  icon: {
464
464
  base: "text-inherit",
@@ -504,7 +504,7 @@ const Ye = {
504
504
  disabled: "disabled:border-transparent disabled:cursor-default"
505
505
  }
506
506
  }
507
- }, Ie = {
507
+ }, ke = {
508
508
  active: "active:bg-tertiary-10 active:border-tertiary-10 outline-none",
509
509
  base: "border border-secondary-10/[.25] hover:border-primary-10 flex items-center justify-center rounded-[6px] cursor-pointer",
510
510
  checked: "bg-primary-10 border-primary-10",
@@ -531,7 +531,7 @@ const Ye = {
531
531
  size: a = "large",
532
532
  ...i
533
533
  }, s) => {
534
- const u = Ie.base, l = Ie.sizes[a];
534
+ const u = ke.base, l = ke.sizes[a];
535
535
  return /* @__PURE__ */ m.jsxs(
536
536
  "label",
537
537
  {
@@ -541,10 +541,10 @@ const Ye = {
541
541
  className: A(
542
542
  l.label,
543
543
  u,
544
- e && Ie.checked,
545
- !n && Ie.active,
546
- !n && e && Ie.hover,
547
- n && Ie.disabled,
544
+ e && ke.checked,
545
+ !n && ke.active,
546
+ !n && e && ke.hover,
547
+ n && ke.disabled,
548
548
  t
549
549
  ),
550
550
  children: [
@@ -635,9 +635,9 @@ const Ye = {
635
635
  placeholder: n
636
636
  }
637
637
  ),
638
- !!a && !!o && /* @__PURE__ */ m.jsx(pe, { className: A(p[o], u == null ? void 0 : u.status), children: a }),
638
+ !!a && !!o && /* @__PURE__ */ m.jsx(we, { className: A(p[o], u == null ? void 0 : u.status), children: a }),
639
639
  i && /* @__PURE__ */ m.jsxs(
640
- pe,
640
+ we,
641
641
  {
642
642
  variant: "span",
643
643
  className: A(
@@ -834,8 +834,8 @@ function Jr(e) {
834
834
  l.displayName = s;
835
835
  const f = e + "CollectionItemSlot", d = "data-radix-collection-item", p = /* @__PURE__ */ Ze(f), h = ae.forwardRef(
836
836
  (v, b) => {
837
- const { scope: x, children: w, ...S } = v, C = ae.useRef(null), R = K(b, C), _ = a(f, x);
838
- return ae.useEffect(() => (_.itemMap.set(C, { ref: C, ...S }), () => void _.itemMap.delete(C))), /* @__PURE__ */ m.jsx(p, { [d]: "", ref: R, children: w });
837
+ const { scope: x, children: w, ...S } = v, C = ae.useRef(null), E = K(b, C), P = a(f, x);
838
+ return ae.useEffect(() => (P.itemMap.set(C, { ref: C, ...S }), () => void P.itemMap.delete(C))), /* @__PURE__ */ m.jsx(p, { [d]: "", ref: E, children: w });
839
839
  }
840
840
  );
841
841
  h.displayName = f;
@@ -846,7 +846,7 @@ function Jr(e) {
846
846
  if (!w) return [];
847
847
  const S = Array.from(w.querySelectorAll(`[${d}]`));
848
848
  return Array.from(b.itemMap.values()).sort(
849
- (_, E) => S.indexOf(_.ref.current) - S.indexOf(E.ref.current)
849
+ (P, R) => S.indexOf(P.ref.current) - S.indexOf(R.ref.current)
850
850
  );
851
851
  }, [b.collectionRef, b.itemMap]);
852
852
  }
@@ -1007,7 +1007,7 @@ function _i(e) {
1007
1007
  }
1008
1008
  var Pi = c[" useId ".trim().toString()] || (() => {
1009
1009
  }), Ai = 0;
1010
- function Te(e) {
1010
+ function Ae(e) {
1011
1011
  const [t, n] = c.useState(Pi());
1012
1012
  return te(() => {
1013
1013
  n((r) => r ?? String(Ai++));
@@ -1050,15 +1050,15 @@ var Oi = "DismissableLayer", tn = "dismissableLayer.update", ki = "dismissableLa
1050
1050
  onInteractOutside: i,
1051
1051
  onDismiss: s,
1052
1052
  ...u
1053
- } = e, l = c.useContext(eo), [f, d] = c.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = c.useState({}), g = K(t, (E) => d(E)), v = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), x = v.indexOf(b), w = f ? v.indexOf(f) : -1, S = l.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= x, R = Di((E) => {
1054
- const M = E.target, D = [...l.branches].some((I) => I.contains(M));
1055
- !C || D || (o == null || o(E), i == null || i(E), E.defaultPrevented || s == null || s());
1056
- }, p), _ = Li((E) => {
1057
- const M = E.target;
1058
- [...l.branches].some((I) => I.contains(M)) || (a == null || a(E), i == null || i(E), E.defaultPrevented || s == null || s());
1053
+ } = e, l = c.useContext(eo), [f, d] = c.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = c.useState({}), g = K(t, (R) => d(R)), v = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), x = v.indexOf(b), w = f ? v.indexOf(f) : -1, S = l.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= x, E = Di((R) => {
1054
+ const M = R.target, D = [...l.branches].some((I) => I.contains(M));
1055
+ !C || D || (o == null || o(R), i == null || i(R), R.defaultPrevented || s == null || s());
1056
+ }, p), P = Li((R) => {
1057
+ const M = R.target;
1058
+ [...l.branches].some((I) => I.contains(M)) || (a == null || a(R), i == null || i(R), R.defaultPrevented || s == null || s());
1059
1059
  }, p);
1060
- return Mi((E) => {
1061
- w === l.layers.size - 1 && (r == null || r(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
1060
+ return Mi((R) => {
1061
+ w === l.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && s && (R.preventDefault(), s()));
1062
1062
  }, p), c.useEffect(() => {
1063
1063
  if (f)
1064
1064
  return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (yr = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), wr(), () => {
@@ -1067,8 +1067,8 @@ var Oi = "DismissableLayer", tn = "dismissableLayer.update", ki = "dismissableLa
1067
1067
  }, [f, p, n, l]), c.useEffect(() => () => {
1068
1068
  f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), wr());
1069
1069
  }, [f, l]), c.useEffect(() => {
1070
- const E = () => h({});
1071
- return document.addEventListener(tn, E), () => document.removeEventListener(tn, E);
1070
+ const R = () => h({});
1071
+ return document.addEventListener(tn, R), () => document.removeEventListener(tn, R);
1072
1072
  }, []), /* @__PURE__ */ m.jsx(
1073
1073
  H.div,
1074
1074
  {
@@ -1078,11 +1078,11 @@ var Oi = "DismissableLayer", tn = "dismissableLayer.update", ki = "dismissableLa
1078
1078
  pointerEvents: S ? C ? "auto" : "none" : void 0,
1079
1079
  ...e.style
1080
1080
  },
1081
- onFocusCapture: k(e.onFocusCapture, _.onFocusCapture),
1082
- onBlurCapture: k(e.onBlurCapture, _.onBlurCapture),
1081
+ onFocusCapture: k(e.onFocusCapture, P.onFocusCapture),
1082
+ onBlurCapture: k(e.onBlurCapture, P.onBlurCapture),
1083
1083
  onPointerDownCapture: k(
1084
1084
  e.onPointerDownCapture,
1085
- R.onPointerDownCapture
1085
+ E.onPointerDownCapture
1086
1086
  )
1087
1087
  }
1088
1088
  );
@@ -1186,15 +1186,15 @@ var Ut = "focusScope.autoFocusOnMount", Vt = "focusScope.autoFocusOnUnmount", Cr
1186
1186
  let v = function(S) {
1187
1187
  if (h.paused || !s) return;
1188
1188
  const C = S.target;
1189
- s.contains(C) ? d.current = C : be(d.current, { select: !0 });
1189
+ s.contains(C) ? d.current = C : ge(d.current, { select: !0 });
1190
1190
  }, b = function(S) {
1191
1191
  if (h.paused || !s) return;
1192
1192
  const C = S.relatedTarget;
1193
- C !== null && (s.contains(C) || be(d.current, { select: !0 }));
1193
+ C !== null && (s.contains(C) || ge(d.current, { select: !0 }));
1194
1194
  }, x = function(S) {
1195
1195
  if (document.activeElement === document.body)
1196
- for (const R of S)
1197
- R.removedNodes.length > 0 && be(s);
1196
+ for (const E of S)
1197
+ E.removedNodes.length > 0 && ge(s);
1198
1198
  };
1199
1199
  document.addEventListener("focusin", v), document.addEventListener("focusout", b);
1200
1200
  const w = new MutationObserver(x);
@@ -1208,12 +1208,12 @@ var Ut = "focusScope.autoFocusOnMount", Vt = "focusScope.autoFocusOnUnmount", Cr
1208
1208
  const v = document.activeElement;
1209
1209
  if (!s.contains(v)) {
1210
1210
  const x = new CustomEvent(Ut, Cr);
1211
- s.addEventListener(Ut, l), s.dispatchEvent(x), x.defaultPrevented || (Fi(Vi(oo(s)), { select: !0 }), document.activeElement === v && be(s));
1211
+ s.addEventListener(Ut, l), s.dispatchEvent(x), x.defaultPrevented || (Fi(Vi(oo(s)), { select: !0 }), document.activeElement === v && ge(s));
1212
1212
  }
1213
1213
  return () => {
1214
1214
  s.removeEventListener(Ut, l), setTimeout(() => {
1215
1215
  const x = new CustomEvent(Vt, Cr);
1216
- s.addEventListener(Vt, f), s.dispatchEvent(x), x.defaultPrevented || be(v ?? document.body, { select: !0 }), s.removeEventListener(Vt, f), Rr.remove(h);
1216
+ s.addEventListener(Vt, f), s.dispatchEvent(x), x.defaultPrevented || ge(v ?? document.body, { select: !0 }), s.removeEventListener(Vt, f), Rr.remove(h);
1217
1217
  }, 0);
1218
1218
  };
1219
1219
  }
@@ -1224,7 +1224,7 @@ var Ut = "focusScope.autoFocusOnMount", Vt = "focusScope.autoFocusOnUnmount", Cr
1224
1224
  const b = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, x = document.activeElement;
1225
1225
  if (b && x) {
1226
1226
  const w = v.currentTarget, [S, C] = $i(w);
1227
- S && C ? !v.shiftKey && x === C ? (v.preventDefault(), n && be(S, { select: !0 })) : v.shiftKey && x === S && (v.preventDefault(), n && be(C, { select: !0 })) : x === w && v.preventDefault();
1227
+ S && C ? !v.shiftKey && x === C ? (v.preventDefault(), n && ge(S, { select: !0 })) : v.shiftKey && x === S && (v.preventDefault(), n && ge(C, { select: !0 })) : x === w && v.preventDefault();
1228
1228
  }
1229
1229
  },
1230
1230
  [n, r, h.paused]
@@ -1235,7 +1235,7 @@ fn.displayName = Ni;
1235
1235
  function Fi(e, { select: t = !1 } = {}) {
1236
1236
  const n = document.activeElement;
1237
1237
  for (const r of e)
1238
- if (be(r, { select: t }), document.activeElement !== n) return;
1238
+ if (ge(r, { select: t }), document.activeElement !== n) return;
1239
1239
  }
1240
1240
  function $i(e) {
1241
1241
  const t = oo(e), n = Er(t, e), r = Er(t.reverse(), e);
@@ -1267,7 +1267,7 @@ function Bi(e, { upTo: t }) {
1267
1267
  function Wi(e) {
1268
1268
  return e instanceof HTMLInputElement && "select" in e;
1269
1269
  }
1270
- function be(e, { select: t = !1 } = {}) {
1270
+ function ge(e, { select: t = !1 } = {}) {
1271
1271
  if (e && e.focus) {
1272
1272
  const n = document.activeElement;
1273
1273
  e.focus({ preventScroll: !0 }), e !== n && Wi(e) && t && e.select();
@@ -1294,7 +1294,7 @@ function _r(e, t) {
1294
1294
  function Vi(e) {
1295
1295
  return e.filter((t) => t.tagName !== "A");
1296
1296
  }
1297
- const Gi = ["top", "right", "bottom", "left"], ye = Math.min, q = Math.max, yt = Math.round, dt = Math.floor, ce = (e) => ({
1297
+ const Gi = ["top", "right", "bottom", "left"], xe = Math.min, q = Math.max, yt = Math.round, dt = Math.floor, ce = (e) => ({
1298
1298
  x: e,
1299
1299
  y: e
1300
1300
  }), Hi = {
@@ -1307,12 +1307,12 @@ const Gi = ["top", "right", "bottom", "left"], ye = Math.min, q = Math.max, yt =
1307
1307
  end: "start"
1308
1308
  };
1309
1309
  function nn(e, t, n) {
1310
- return q(e, ye(t, n));
1310
+ return q(e, xe(t, n));
1311
1311
  }
1312
- function me(e, t) {
1312
+ function pe(e, t) {
1313
1313
  return typeof e == "function" ? e(t) : e;
1314
1314
  }
1315
- function he(e) {
1315
+ function me(e) {
1316
1316
  return e.split("-")[0];
1317
1317
  }
1318
1318
  function Ve(e) {
@@ -1326,7 +1326,7 @@ function mn(e) {
1326
1326
  }
1327
1327
  const Ki = /* @__PURE__ */ new Set(["top", "bottom"]);
1328
1328
  function se(e) {
1329
- return Ki.has(he(e)) ? "y" : "x";
1329
+ return Ki.has(me(e)) ? "y" : "x";
1330
1330
  }
1331
1331
  function hn(e) {
1332
1332
  return pn(se(e));
@@ -1359,7 +1359,7 @@ function Ji(e, t, n) {
1359
1359
  }
1360
1360
  function Qi(e, t, n, r) {
1361
1361
  const o = Ve(e);
1362
- let a = Ji(he(e), n === "start", r);
1362
+ let a = Ji(me(e), n === "start", r);
1363
1363
  return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(rn)))), a;
1364
1364
  }
1365
1365
  function wt(e) {
@@ -1405,7 +1405,7 @@ function Tr(e, t, n) {
1405
1405
  reference: r,
1406
1406
  floating: o
1407
1407
  } = e;
1408
- const a = se(t), i = hn(t), s = mn(i), u = he(t), l = a === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[s] / 2 - o[s] / 2;
1408
+ const a = se(t), i = hn(t), s = mn(i), u = me(t), l = a === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[s] / 2 - o[s] / 2;
1409
1409
  let h;
1410
1410
  switch (u) {
1411
1411
  case "top":
@@ -1471,7 +1471,7 @@ const ts = async (e, t, n) => {
1471
1471
  x: w,
1472
1472
  y: S,
1473
1473
  data: C,
1474
- reset: R
1474
+ reset: E
1475
1475
  } = await x({
1476
1476
  x: f,
1477
1477
  y: d,
@@ -1492,11 +1492,11 @@ const ts = async (e, t, n) => {
1492
1492
  ...h[b],
1493
1493
  ...C
1494
1494
  }
1495
- }, R && g <= 50 && (g++, typeof R == "object" && (R.placement && (p = R.placement), R.rects && (l = R.rects === !0 ? await i.getElementRects({
1495
+ }, E && g <= 50 && (g++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (l = E.rects === !0 ? await i.getElementRects({
1496
1496
  reference: e,
1497
1497
  floating: t,
1498
1498
  strategy: o
1499
- }) : R.rects), {
1499
+ }) : E.rects), {
1500
1500
  x: f,
1501
1501
  y: d
1502
1502
  } = Tr(l, p, u)), v = -1);
@@ -1525,7 +1525,7 @@ async function Je(e, t) {
1525
1525
  elementContext: d = "floating",
1526
1526
  altBoundary: p = !1,
1527
1527
  padding: h = 0
1528
- } = me(t, e), g = ao(h), b = s[p ? d === "floating" ? "reference" : "floating" : d], x = St(await a.getClippingRect({
1528
+ } = pe(t, e), g = ao(h), b = s[p ? d === "floating" ? "reference" : "floating" : d], x = St(await a.getClippingRect({
1529
1529
  element: (n = await (a.isElement == null ? void 0 : a.isElement(b))) == null || n ? b : b.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
1530
1530
  boundary: l,
1531
1531
  rootBoundary: f,
@@ -1541,17 +1541,17 @@ async function Je(e, t) {
1541
1541
  } : {
1542
1542
  x: 1,
1543
1543
  y: 1
1544
- }, R = St(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
1544
+ }, E = St(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
1545
1545
  elements: s,
1546
1546
  rect: w,
1547
1547
  offsetParent: S,
1548
1548
  strategy: u
1549
1549
  }) : w);
1550
1550
  return {
1551
- top: (x.top - R.top + g.top) / C.y,
1552
- bottom: (R.bottom - x.bottom + g.bottom) / C.y,
1553
- left: (x.left - R.left + g.left) / C.x,
1554
- right: (R.right - x.right + g.right) / C.x
1551
+ top: (x.top - E.top + g.top) / C.y,
1552
+ bottom: (E.bottom - x.bottom + g.bottom) / C.y,
1553
+ left: (x.left - E.left + g.left) / C.x,
1554
+ right: (E.right - x.right + g.right) / C.x
1555
1555
  };
1556
1556
  }
1557
1557
  const ns = (e) => ({
@@ -1569,16 +1569,16 @@ const ns = (e) => ({
1569
1569
  } = t, {
1570
1570
  element: l,
1571
1571
  padding: f = 0
1572
- } = me(e, t) || {};
1572
+ } = pe(e, t) || {};
1573
1573
  if (l == null)
1574
1574
  return {};
1575
1575
  const d = ao(f), p = {
1576
1576
  x: n,
1577
1577
  y: r
1578
- }, h = hn(o), g = mn(h), v = await i.getDimensions(l), b = h === "y", x = b ? "top" : "left", w = b ? "bottom" : "right", S = b ? "clientHeight" : "clientWidth", C = a.reference[g] + a.reference[h] - p[h] - a.floating[g], R = p[h] - a.reference[h], _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
1579
- let E = _ ? _[S] : 0;
1580
- (!E || !await (i.isElement == null ? void 0 : i.isElement(_))) && (E = s.floating[S] || a.floating[g]);
1581
- const M = C / 2 - R / 2, D = E / 2 - v[g] / 2 - 1, I = ye(d[x], D), G = ye(d[w], D), W = I, $ = E - v[g] - G, N = E / 2 - v[g] / 2 + M, z = nn(W, N, $), j = !u.arrow && Ve(o) != null && N !== z && a.reference[g] / 2 - (N < W ? I : G) - v[g] / 2 < 0, V = j ? N < W ? N - W : N - $ : 0;
1578
+ }, h = hn(o), g = mn(h), v = await i.getDimensions(l), b = h === "y", x = b ? "top" : "left", w = b ? "bottom" : "right", S = b ? "clientHeight" : "clientWidth", C = a.reference[g] + a.reference[h] - p[h] - a.floating[g], E = p[h] - a.reference[h], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
1579
+ let R = P ? P[S] : 0;
1580
+ (!R || !await (i.isElement == null ? void 0 : i.isElement(P))) && (R = s.floating[S] || a.floating[g]);
1581
+ const M = C / 2 - E / 2, D = R / 2 - v[g] / 2 - 1, I = xe(d[x], D), G = xe(d[w], D), W = I, $ = R - v[g] - G, N = R / 2 - v[g] / 2 + M, z = nn(W, N, $), j = !u.arrow && Ve(o) != null && N !== z && a.reference[g] / 2 - (N < W ? I : G) - v[g] / 2 < 0, V = j ? N < W ? N - W : N - $ : 0;
1582
1582
  return {
1583
1583
  [h]: p[h] + V,
1584
1584
  data: {
@@ -1612,12 +1612,12 @@ const ns = (e) => ({
1612
1612
  fallbackAxisSideDirection: g = "none",
1613
1613
  flipAlignment: v = !0,
1614
1614
  ...b
1615
- } = me(e, t);
1615
+ } = pe(e, t);
1616
1616
  if ((n = a.arrow) != null && n.alignmentOffset)
1617
1617
  return {};
1618
- const x = he(o), w = se(s), S = he(s) === s, C = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), R = p || (S || !v ? [wt(s)] : Xi(s)), _ = g !== "none";
1619
- !p && _ && R.push(...Qi(s, v, g, C));
1620
- const E = [s, ...R], M = await Je(t, b), D = [];
1618
+ const x = me(o), w = se(s), S = me(s) === s, C = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = p || (S || !v ? [wt(s)] : Xi(s)), P = g !== "none";
1619
+ !p && P && E.push(...Qi(s, v, g, C));
1620
+ const R = [s, ...E], M = await Je(t, b), D = [];
1621
1621
  let I = ((r = a.flip) == null ? void 0 : r.overflows) || [];
1622
1622
  if (f && D.push(M[x]), d) {
1623
1623
  const N = Yi(o, i, C);
@@ -1628,7 +1628,7 @@ const ns = (e) => ({
1628
1628
  overflows: D
1629
1629
  }], !D.every((N) => N <= 0)) {
1630
1630
  var G, W;
1631
- const N = (((G = a.flip) == null ? void 0 : G.index) || 0) + 1, z = E[N];
1631
+ const N = (((G = a.flip) == null ? void 0 : G.index) || 0) + 1, z = R[N];
1632
1632
  if (z && (!(d === "alignment" ? w !== se(z) : !1) || // We leave the current main axis only if every placement on that axis
1633
1633
  // overflows the main axis.
1634
1634
  I.every((O) => se(O.placement) === w ? O.overflows[0] > 0 : !0)))
@@ -1647,14 +1647,14 @@ const ns = (e) => ({
1647
1647
  case "bestFit": {
1648
1648
  var $;
1649
1649
  const V = ($ = I.filter((O) => {
1650
- if (_) {
1651
- const P = se(O.placement);
1652
- return P === w || // Create a bias to the `y` side axis due to horizontal
1650
+ if (P) {
1651
+ const _ = se(O.placement);
1652
+ return _ === w || // Create a bias to the `y` side axis due to horizontal
1653
1653
  // reading directions favoring greater width.
1654
- P === "y";
1654
+ _ === "y";
1655
1655
  }
1656
1656
  return !0;
1657
- }).map((O) => [O.placement, O.overflows.filter((P) => P > 0).reduce((P, B) => P + B, 0)]).sort((O, P) => O[1] - P[1])[0]) == null ? void 0 : $[0];
1657
+ }).map((O) => [O.placement, O.overflows.filter((_) => _ > 0).reduce((_, B) => _ + B, 0)]).sort((O, _) => O[1] - _[1])[0]) == null ? void 0 : $[0];
1658
1658
  V && (j = V);
1659
1659
  break;
1660
1660
  }
@@ -1694,7 +1694,7 @@ const os = function(e) {
1694
1694
  } = t, {
1695
1695
  strategy: r = "referenceHidden",
1696
1696
  ...o
1697
- } = me(e, t);
1697
+ } = pe(e, t);
1698
1698
  switch (r) {
1699
1699
  case "referenceHidden": {
1700
1700
  const a = await Je(t, {
@@ -1731,7 +1731,7 @@ async function as(e, t) {
1731
1731
  placement: n,
1732
1732
  platform: r,
1733
1733
  elements: o
1734
- } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = he(n), s = Ve(n), u = se(n) === "y", l = io.has(i) ? -1 : 1, f = a && u ? -1 : 1, d = me(t, e);
1734
+ } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = me(n), s = Ve(n), u = se(n) === "y", l = io.has(i) ? -1 : 1, f = a && u ? -1 : 1, d = pe(t, e);
1735
1735
  let {
1736
1736
  mainAxis: p,
1737
1737
  crossAxis: h,
@@ -1800,10 +1800,10 @@ const is = function(e) {
1800
1800
  }
1801
1801
  },
1802
1802
  ...u
1803
- } = me(e, t), l = {
1803
+ } = pe(e, t), l = {
1804
1804
  x: n,
1805
1805
  y: r
1806
- }, f = await Je(t, u), d = se(he(o)), p = pn(d);
1806
+ }, f = await Je(t, u), d = se(me(o)), p = pn(d);
1807
1807
  let h = l[p], g = l[d];
1808
1808
  if (a) {
1809
1809
  const b = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", w = h + f[b], S = h - f[x];
@@ -1845,12 +1845,12 @@ const is = function(e) {
1845
1845
  offset: s = 0,
1846
1846
  mainAxis: u = !0,
1847
1847
  crossAxis: l = !0
1848
- } = me(e, t), f = {
1848
+ } = pe(e, t), f = {
1849
1849
  x: n,
1850
1850
  y: r
1851
1851
  }, d = se(o), p = pn(d);
1852
1852
  let h = f[p], g = f[d];
1853
- const v = me(s, t), b = typeof v == "number" ? {
1853
+ const v = pe(s, t), b = typeof v == "number" ? {
1854
1854
  mainAxis: v,
1855
1855
  crossAxis: 0
1856
1856
  } : {
@@ -1859,13 +1859,13 @@ const is = function(e) {
1859
1859
  ...v
1860
1860
  };
1861
1861
  if (u) {
1862
- const S = p === "y" ? "height" : "width", C = a.reference[p] - a.floating[S] + b.mainAxis, R = a.reference[p] + a.reference[S] - b.mainAxis;
1863
- h < C ? h = C : h > R && (h = R);
1862
+ const S = p === "y" ? "height" : "width", C = a.reference[p] - a.floating[S] + b.mainAxis, E = a.reference[p] + a.reference[S] - b.mainAxis;
1863
+ h < C ? h = C : h > E && (h = E);
1864
1864
  }
1865
1865
  if (l) {
1866
1866
  var x, w;
1867
- const S = p === "y" ? "width" : "height", C = io.has(he(o)), R = a.reference[d] - a.floating[S] + (C && ((x = i.offset) == null ? void 0 : x[d]) || 0) + (C ? 0 : b.crossAxis), _ = a.reference[d] + a.reference[S] + (C ? 0 : ((w = i.offset) == null ? void 0 : w[d]) || 0) - (C ? b.crossAxis : 0);
1868
- g < R ? g = R : g > _ && (g = _);
1867
+ const S = p === "y" ? "width" : "height", C = io.has(me(o)), E = a.reference[d] - a.floating[S] + (C && ((x = i.offset) == null ? void 0 : x[d]) || 0) + (C ? 0 : b.crossAxis), P = a.reference[d] + a.reference[S] + (C ? 0 : ((w = i.offset) == null ? void 0 : w[d]) || 0) - (C ? b.crossAxis : 0);
1868
+ g < E ? g = E : g > P && (g = P);
1869
1869
  }
1870
1870
  return {
1871
1871
  [p]: h,
@@ -1888,22 +1888,22 @@ const is = function(e) {
1888
1888
  apply: u = () => {
1889
1889
  },
1890
1890
  ...l
1891
- } = me(e, t), f = await Je(t, l), d = he(o), p = Ve(o), h = se(o) === "y", {
1891
+ } = pe(e, t), f = await Je(t, l), d = me(o), p = Ve(o), h = se(o) === "y", {
1892
1892
  width: g,
1893
1893
  height: v
1894
1894
  } = a.floating;
1895
1895
  let b, x;
1896
1896
  d === "top" || d === "bottom" ? (b = d, x = p === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = d, b = p === "end" ? "top" : "bottom");
1897
- const w = v - f.top - f.bottom, S = g - f.left - f.right, C = ye(v - f[b], w), R = ye(g - f[x], S), _ = !t.middlewareData.shift;
1898
- let E = C, M = R;
1899
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = S), (r = t.middlewareData.shift) != null && r.enabled.y && (E = w), _ && !p) {
1897
+ const w = v - f.top - f.bottom, S = g - f.left - f.right, C = xe(v - f[b], w), E = xe(g - f[x], S), P = !t.middlewareData.shift;
1898
+ let R = C, M = E;
1899
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = S), (r = t.middlewareData.shift) != null && r.enabled.y && (R = w), P && !p) {
1900
1900
  const I = q(f.left, 0), G = q(f.right, 0), W = q(f.top, 0), $ = q(f.bottom, 0);
1901
- h ? M = g - 2 * (I !== 0 || G !== 0 ? I + G : q(f.left, f.right)) : E = v - 2 * (W !== 0 || $ !== 0 ? W + $ : q(f.top, f.bottom));
1901
+ h ? M = g - 2 * (I !== 0 || G !== 0 ? I + G : q(f.left, f.right)) : R = v - 2 * (W !== 0 || $ !== 0 ? W + $ : q(f.top, f.bottom));
1902
1902
  }
1903
1903
  await u({
1904
1904
  ...t,
1905
1905
  availableWidth: M,
1906
- availableHeight: E
1906
+ availableHeight: R
1907
1907
  });
1908
1908
  const D = await i.getDimensions(s.floating);
1909
1909
  return g !== D.width || v !== D.height ? {
@@ -1970,13 +1970,13 @@ function vn(e) {
1970
1970
  return ms.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || hs.some((r) => (n.willChange || "").includes(r)) || vs.some((r) => (n.contain || "").includes(r));
1971
1971
  }
1972
1972
  function gs(e) {
1973
- let t = we(e);
1973
+ let t = ye(e);
1974
1974
  for (; le(t) && !Be(t); ) {
1975
1975
  if (vn(t))
1976
1976
  return t;
1977
1977
  if (Tt(t))
1978
1978
  return null;
1979
- t = we(t);
1979
+ t = ye(t);
1980
1980
  }
1981
1981
  return null;
1982
1982
  }
@@ -1999,7 +1999,7 @@ function Mt(e) {
1999
1999
  scrollTop: e.scrollY
2000
2000
  };
2001
2001
  }
2002
- function we(e) {
2002
+ function ye(e) {
2003
2003
  if (Ge(e) === "html")
2004
2004
  return e;
2005
2005
  const t = (
@@ -2012,7 +2012,7 @@ function we(e) {
2012
2012
  return kr(t) ? t.host : t;
2013
2013
  }
2014
2014
  function co(e) {
2015
- const t = we(e);
2015
+ const t = ye(e);
2016
2016
  return Be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && rt(t) ? t : co(t);
2017
2017
  }
2018
2018
  function Qe(e, t, n) {
@@ -2067,7 +2067,7 @@ function uo(e) {
2067
2067
  function ys(e, t, n) {
2068
2068
  return t === void 0 && (t = !1), !n || t && n !== Z(e) ? !1 : t;
2069
2069
  }
2070
- function Me(e, t, n, r) {
2070
+ function Te(e, t, n, r) {
2071
2071
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2072
2072
  const o = e.getBoundingClientRect(), a = bn(e);
2073
2073
  let i = ce(1);
@@ -2091,7 +2091,7 @@ function Me(e, t, n, r) {
2091
2091
  }
2092
2092
  function Ot(e, t) {
2093
2093
  const n = Mt(e).scrollLeft;
2094
- return t ? t.left + n : Me(de(e)).left + n;
2094
+ return t ? t.left + n : Te(de(e)).left + n;
2095
2095
  }
2096
2096
  function fo(e, t) {
2097
2097
  const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Ot(e, n), o = n.top + t.scrollTop;
@@ -2116,7 +2116,7 @@ function ws(e) {
2116
2116
  }, l = ce(1);
2117
2117
  const f = ce(0), d = le(r);
2118
2118
  if ((d || !d && !a) && ((Ge(r) !== "body" || rt(i)) && (u = Mt(r)), le(r))) {
2119
- const h = Me(r);
2119
+ const h = Te(r);
2120
2120
  l = Fe(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
2121
2121
  }
2122
2122
  const p = i && !d && !a ? fo(i, u) : ce(0);
@@ -2164,7 +2164,7 @@ function Es(e, t) {
2164
2164
  }
2165
2165
  const Rs = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2166
2166
  function _s(e, t) {
2167
- const n = Me(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = le(e) ? Fe(e) : ce(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, u = o * a.x, l = r * a.y;
2167
+ const n = Te(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = le(e) ? Fe(e) : ce(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, u = o * a.x, l = r * a.y;
2168
2168
  return {
2169
2169
  width: i,
2170
2170
  height: s,
@@ -2192,7 +2192,7 @@ function jr(e, t, n) {
2192
2192
  return St(r);
2193
2193
  }
2194
2194
  function po(e, t) {
2195
- const n = we(e);
2195
+ const n = ye(e);
2196
2196
  return n === t || !re(n) || Be(n) ? !1 : oe(n).position === "fixed" || po(n, t);
2197
2197
  }
2198
2198
  function Ps(e, t) {
@@ -2201,10 +2201,10 @@ function Ps(e, t) {
2201
2201
  return n;
2202
2202
  let r = Qe(e, [], !1).filter((s) => re(s) && Ge(s) !== "body"), o = null;
2203
2203
  const a = oe(e).position === "fixed";
2204
- let i = a ? we(e) : e;
2204
+ let i = a ? ye(e) : e;
2205
2205
  for (; re(i) && !Be(i); ) {
2206
2206
  const s = oe(i), u = vn(i);
2207
- !u && s.position === "fixed" && (o = null), (a ? !u && !o : !u && s.position === "static" && !!o && Rs.has(o.position) || rt(i) && !u && po(e, i)) ? r = r.filter((f) => f !== i) : o = s, i = we(i);
2207
+ !u && s.position === "fixed" && (o = null), (a ? !u && !o : !u && s.position === "static" && !!o && Rs.has(o.position) || rt(i) && !u && po(e, i)) ? r = r.filter((f) => f !== i) : o = s, i = ye(i);
2208
2208
  }
2209
2209
  return t.set(e, r), r;
2210
2210
  }
@@ -2217,7 +2217,7 @@ function As(e) {
2217
2217
  } = e;
2218
2218
  const i = [...n === "clippingAncestors" ? Tt(t) ? [] : Ps(t, this._c) : [].concat(n), r], s = i[0], u = i.reduce((l, f) => {
2219
2219
  const d = jr(t, f, o);
2220
- return l.top = q(d.top, l.top), l.right = ye(d.right, l.right), l.bottom = ye(d.bottom, l.bottom), l.left = q(d.left, l.left), l;
2220
+ return l.top = q(d.top, l.top), l.right = xe(d.right, l.right), l.bottom = xe(d.bottom, l.bottom), l.left = q(d.left, l.left), l;
2221
2221
  }, jr(t, s, o));
2222
2222
  return {
2223
2223
  width: u.right - u.left,
@@ -2237,7 +2237,7 @@ function Ts(e) {
2237
2237
  };
2238
2238
  }
2239
2239
  function Ms(e, t, n) {
2240
- const r = le(t), o = de(t), a = n === "fixed", i = Me(e, !0, a, t);
2240
+ const r = le(t), o = de(t), a = n === "fixed", i = Te(e, !0, a, t);
2241
2241
  let s = {
2242
2242
  scrollLeft: 0,
2243
2243
  scrollTop: 0
@@ -2248,7 +2248,7 @@ function Ms(e, t, n) {
2248
2248
  }
2249
2249
  if (r || !r && !a)
2250
2250
  if ((Ge(t) !== "body" || rt(o)) && (s = Mt(t)), r) {
2251
- const h = Me(t, !0, a, t);
2251
+ const h = Te(t, !0, a, t);
2252
2252
  u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
2253
2253
  } else o && l();
2254
2254
  a && !r && o && l();
@@ -2276,11 +2276,11 @@ function mo(e, t) {
2276
2276
  if (Tt(e))
2277
2277
  return n;
2278
2278
  if (!le(e)) {
2279
- let o = we(e);
2279
+ let o = ye(e);
2280
2280
  for (; o && !Be(o); ) {
2281
2281
  if (re(o) && !Gt(o))
2282
2282
  return o;
2283
- o = we(o);
2283
+ o = ye(o);
2284
2284
  }
2285
2285
  return n;
2286
2286
  }
@@ -2338,28 +2338,28 @@ function js(e, t) {
2338
2338
  return;
2339
2339
  const g = dt(d), v = dt(o.clientWidth - (f + p)), b = dt(o.clientHeight - (d + h)), x = dt(f), S = {
2340
2340
  rootMargin: -g + "px " + -v + "px " + -b + "px " + -x + "px",
2341
- threshold: q(0, ye(1, u)) || 1
2341
+ threshold: q(0, xe(1, u)) || 1
2342
2342
  };
2343
2343
  let C = !0;
2344
- function R(_) {
2345
- const E = _[0].intersectionRatio;
2346
- if (E !== u) {
2344
+ function E(P) {
2345
+ const R = P[0].intersectionRatio;
2346
+ if (R !== u) {
2347
2347
  if (!C)
2348
2348
  return i();
2349
- E ? i(!1, E) : r = setTimeout(() => {
2349
+ R ? i(!1, R) : r = setTimeout(() => {
2350
2350
  i(!1, 1e-7);
2351
2351
  }, 1e3);
2352
2352
  }
2353
- E === 1 && !ho(l, e.getBoundingClientRect()) && i(), C = !1;
2353
+ R === 1 && !ho(l, e.getBoundingClientRect()) && i(), C = !1;
2354
2354
  }
2355
2355
  try {
2356
- n = new IntersectionObserver(R, {
2356
+ n = new IntersectionObserver(E, {
2357
2357
  ...S,
2358
2358
  // Handle <iframe>s
2359
2359
  root: o.ownerDocument
2360
2360
  });
2361
2361
  } catch {
2362
- n = new IntersectionObserver(R, S);
2362
+ n = new IntersectionObserver(E, S);
2363
2363
  }
2364
2364
  n.observe(e);
2365
2365
  }
@@ -2388,10 +2388,10 @@ function Ds(e, t, n, r) {
2388
2388
  (S = h) == null || S.observe(t);
2389
2389
  })), n();
2390
2390
  }), l && !u && h.observe(l), h.observe(t));
2391
- let g, v = u ? Me(e) : null;
2391
+ let g, v = u ? Te(e) : null;
2392
2392
  u && b();
2393
2393
  function b() {
2394
- const x = Me(e);
2394
+ const x = Te(e);
2395
2395
  v && !ho(v, x) && n(), v = x, g = requestAnimationFrame(b);
2396
2396
  }
2397
2397
  return n(), () => {
@@ -2483,20 +2483,20 @@ function Hs(e) {
2483
2483
  }), [p, h] = c.useState(r);
2484
2484
  Ct(p, r) || h(r);
2485
2485
  const [g, v] = c.useState(null), [b, x] = c.useState(null), w = c.useCallback((O) => {
2486
- O !== _.current && (_.current = O, v(O));
2486
+ O !== P.current && (P.current = O, v(O));
2487
2487
  }, []), S = c.useCallback((O) => {
2488
- O !== E.current && (E.current = O, x(O));
2489
- }, []), C = a || g, R = i || b, _ = c.useRef(null), E = c.useRef(null), M = c.useRef(f), D = u != null, I = Ht(u), G = Ht(o), W = Ht(l), $ = c.useCallback(() => {
2490
- if (!_.current || !E.current)
2488
+ O !== R.current && (R.current = O, x(O));
2489
+ }, []), C = a || g, E = i || b, P = c.useRef(null), R = c.useRef(null), M = c.useRef(f), D = u != null, I = Ht(u), G = Ht(o), W = Ht(l), $ = c.useCallback(() => {
2490
+ if (!P.current || !R.current)
2491
2491
  return;
2492
2492
  const O = {
2493
2493
  placement: t,
2494
2494
  strategy: n,
2495
2495
  middleware: p
2496
2496
  };
2497
- G.current && (O.platform = G.current), Us(_.current, E.current, O).then((P) => {
2497
+ G.current && (O.platform = G.current), Us(P.current, R.current, O).then((_) => {
2498
2498
  const B = {
2499
- ...P,
2499
+ ..._,
2500
2500
  // The floating element's position may be recomputed while it's closed
2501
2501
  // but still mounted (such as when transitioning out). To ensure
2502
2502
  // `isPositioned` will be `false` initially on the next open, avoid
@@ -2518,21 +2518,21 @@ function Hs(e) {
2518
2518
  gt(() => (N.current = !0, () => {
2519
2519
  N.current = !1;
2520
2520
  }), []), gt(() => {
2521
- if (C && (_.current = C), R && (E.current = R), C && R) {
2521
+ if (C && (P.current = C), E && (R.current = E), C && E) {
2522
2522
  if (I.current)
2523
- return I.current(C, R, $);
2523
+ return I.current(C, E, $);
2524
2524
  $();
2525
2525
  }
2526
- }, [C, R, $, I, D]);
2526
+ }, [C, E, $, I, D]);
2527
2527
  const z = c.useMemo(() => ({
2528
- reference: _,
2529
- floating: E,
2528
+ reference: P,
2529
+ floating: R,
2530
2530
  setReference: w,
2531
2531
  setFloating: S
2532
2532
  }), [w, S]), j = c.useMemo(() => ({
2533
2533
  reference: C,
2534
- floating: R
2535
- }), [C, R]), V = c.useMemo(() => {
2534
+ floating: E
2535
+ }), [C, E]), V = c.useMemo(() => {
2536
2536
  const O = {
2537
2537
  position: n,
2538
2538
  left: 0,
@@ -2540,16 +2540,16 @@ function Hs(e) {
2540
2540
  };
2541
2541
  if (!j.floating)
2542
2542
  return O;
2543
- const P = Nr(j.floating, f.x), B = Nr(j.floating, f.y);
2543
+ const _ = Nr(j.floating, f.x), B = Nr(j.floating, f.y);
2544
2544
  return s ? {
2545
2545
  ...O,
2546
- transform: "translate(" + P + "px, " + B + "px)",
2546
+ transform: "translate(" + _ + "px, " + B + "px)",
2547
2547
  ...vo(j.floating) >= 1.5 && {
2548
2548
  willChange: "transform"
2549
2549
  }
2550
2550
  } : {
2551
2551
  position: n,
2552
- left: P,
2552
+ left: _,
2553
2553
  top: B
2554
2554
  };
2555
2555
  }, [n, s, j.floating, f.x, f.y]);
@@ -2676,7 +2676,7 @@ var yn = "PopperContent", [rc, oc] = xo(yn), Eo = c.forwardRef(
2676
2676
  updatePositionStrategy: h = "optimized",
2677
2677
  onPlaced: g,
2678
2678
  ...v
2679
- } = e, b = yo(yn, n), [x, w] = c.useState(null), S = K(t, (He) => w(He)), [C, R] = c.useState(null), _ = bo(C), E = (_ == null ? void 0 : _.width) ?? 0, M = (_ == null ? void 0 : _.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, G = Array.isArray(l) ? l : [l], W = G.length > 0, $ = {
2679
+ } = e, b = yo(yn, n), [x, w] = c.useState(null), S = K(t, (He) => w(He)), [C, E] = c.useState(null), P = bo(C), R = (P == null ? void 0 : P.width) ?? 0, M = (P == null ? void 0 : P.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, G = Array.isArray(l) ? l : [l], W = G.length > 0, $ = {
2680
2680
  padding: I,
2681
2681
  boundary: G.filter(ic),
2682
2682
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -2708,10 +2708,10 @@ var yn = "PopperContent", [rc, oc] = xo(yn), Eo = c.forwardRef(
2708
2708
  }
2709
2709
  }),
2710
2710
  C && Qs({ element: C, padding: s }),
2711
- sc({ arrowWidth: E, arrowHeight: M }),
2711
+ sc({ arrowWidth: R, arrowHeight: M }),
2712
2712
  p && Js({ strategy: "referenceHidden", ...$ })
2713
2713
  ]
2714
- }), [P, B] = Po(j), y = ne(g);
2714
+ }), [_, B] = Po(j), y = ne(g);
2715
2715
  te(() => {
2716
2716
  V && (y == null || y());
2717
2717
  }, [V, y]);
@@ -2746,15 +2746,15 @@ var yn = "PopperContent", [rc, oc] = xo(yn), Eo = c.forwardRef(
2746
2746
  rc,
2747
2747
  {
2748
2748
  scope: n,
2749
- placedSide: P,
2750
- onArrowChange: R,
2749
+ placedSide: _,
2750
+ onArrowChange: E,
2751
2751
  arrowX: T,
2752
2752
  arrowY: F,
2753
2753
  shouldHideArrow: U,
2754
2754
  children: /* @__PURE__ */ m.jsx(
2755
2755
  H.div,
2756
2756
  {
2757
- "data-side": P,
2757
+ "data-side": _,
2758
2758
  "data-align": B,
2759
2759
  ...v,
2760
2760
  ref: S,
@@ -2854,7 +2854,7 @@ var lc = function(e) {
2854
2854
  return null;
2855
2855
  var t = Array.isArray(e) ? e[0] : e;
2856
2856
  return t.ownerDocument.body;
2857
- }, je = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), pt = {}, zt = 0, Mo = function(e) {
2857
+ }, Ie = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), pt = {}, zt = 0, Mo = function(e) {
2858
2858
  return e && (e.host || Mo(e.parentNode));
2859
2859
  }, uc = function(e, t) {
2860
2860
  return t.map(function(n) {
@@ -2878,8 +2878,8 @@ var lc = function(e) {
2878
2878
  f(p);
2879
2879
  else
2880
2880
  try {
2881
- var h = p.getAttribute(r), g = h !== null && h !== "false", v = (je.get(p) || 0) + 1, b = (a.get(p) || 0) + 1;
2882
- je.set(p, v), a.set(p, b), i.push(p), v === 1 && g && ft.set(p, !0), b === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
2881
+ var h = p.getAttribute(r), g = h !== null && h !== "false", v = (Ie.get(p) || 0) + 1, b = (a.get(p) || 0) + 1;
2882
+ Ie.set(p, v), a.set(p, b), i.push(p), v === 1 && g && ft.set(p, !0), b === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
2883
2883
  } catch (x) {
2884
2884
  console.error("aria-hidden: cannot operate on ", p, x);
2885
2885
  }
@@ -2887,9 +2887,9 @@ var lc = function(e) {
2887
2887
  };
2888
2888
  return f(t), s.clear(), zt++, function() {
2889
2889
  i.forEach(function(d) {
2890
- var p = je.get(d) - 1, h = a.get(d) - 1;
2891
- je.set(d, p), a.set(d, h), p || (ft.has(d) || d.removeAttribute(r), ft.delete(d)), h || d.removeAttribute(n);
2892
- }), zt--, zt || (je = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), pt = {});
2890
+ var p = Ie.get(d) - 1, h = a.get(d) - 1;
2891
+ Ie.set(d, p), a.set(d, h), p || (ft.has(d) || d.removeAttribute(r), ft.delete(d)), h || d.removeAttribute(n);
2892
+ }), zt--, zt || (Ie = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), pt = {});
2893
2893
  };
2894
2894
  }, Oo = function(e, t, n) {
2895
2895
  n === void 0 && (n = "data-aria-hidden");
@@ -3149,12 +3149,12 @@ var jo = yc(), Yt = function() {
3149
3149
  onScrollCapture: Yt,
3150
3150
  onWheelCapture: Yt,
3151
3151
  onTouchMoveCapture: Yt
3152
- }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, h = e.noRelative, g = e.noIsolation, v = e.inert, b = e.allowPinchZoom, x = e.as, w = x === void 0 ? "div" : x, S = e.gapMode, C = ko(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = p, _ = gc([n, t]), E = ie(ie({}, C), o);
3152
+ }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, h = e.noRelative, g = e.noIsolation, v = e.inert, b = e.allowPinchZoom, x = e.as, w = x === void 0 ? "div" : x, S = e.gapMode, C = ko(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, P = gc([n, t]), R = ie(ie({}, C), o);
3153
3153
  return c.createElement(
3154
3154
  c.Fragment,
3155
3155
  null,
3156
- f && c.createElement(R, { sideCar: jo, removeScrollBar: l, shards: d, noRelative: h, noIsolation: g, inert: v, setCallbacks: a, allowPinchZoom: !!b, lockRef: n, gapMode: S }),
3157
- i ? c.cloneElement(c.Children.only(s), ie(ie({}, E), { ref: _ })) : c.createElement(w, ie({}, E, { className: u, ref: _ }), s)
3156
+ f && c.createElement(E, { sideCar: jo, removeScrollBar: l, shards: d, noRelative: h, noIsolation: g, inert: v, setCallbacks: a, allowPinchZoom: !!b, lockRef: n, gapMode: S }),
3157
+ i ? c.cloneElement(c.Children.only(s), ie(ie({}, R), { ref: P })) : c.createElement(w, ie({}, R, { className: u, ref: P }), s)
3158
3158
  );
3159
3159
  });
3160
3160
  It.defaultProps = {
@@ -3303,7 +3303,7 @@ if (typeof window < "u")
3303
3303
  } catch {
3304
3304
  sn = !1;
3305
3305
  }
3306
- var De = sn ? { passive: !1 } : !1, Dc = function(e) {
3306
+ var je = sn ? { passive: !1 } : !1, Dc = function(e) {
3307
3307
  return e.tagName === "TEXTAREA";
3308
3308
  }, Lo = function(e, t) {
3309
3309
  if (!(e instanceof Element))
@@ -3379,7 +3379,7 @@ var De = sn ? { passive: !1 } : !1, Dc = function(e) {
3379
3379
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
3380
3380
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
3381
3381
  `);
3382
- }, Gc = 0, Le = [];
3382
+ }, Gc = 0, De = [];
3383
3383
  function Hc(e) {
3384
3384
  var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Gc++)[0], a = c.useState(Do)[0], i = c.useRef(e);
3385
3385
  c.useEffect(function() {
@@ -3400,31 +3400,31 @@ function Hc(e) {
3400
3400
  var s = c.useCallback(function(v, b) {
3401
3401
  if ("touches" in v && v.touches.length === 2 || v.type === "wheel" && v.ctrlKey)
3402
3402
  return !i.current.allowPinchZoom;
3403
- var x = ht(v), w = n.current, S = "deltaX" in v ? v.deltaX : w[0] - x[0], C = "deltaY" in v ? v.deltaY : w[1] - x[1], R, _ = v.target, E = Math.abs(S) > Math.abs(C) ? "h" : "v";
3404
- if ("touches" in v && E === "h" && _.type === "range")
3403
+ var x = ht(v), w = n.current, S = "deltaX" in v ? v.deltaX : w[0] - x[0], C = "deltaY" in v ? v.deltaY : w[1] - x[1], E, P = v.target, R = Math.abs(S) > Math.abs(C) ? "h" : "v";
3404
+ if ("touches" in v && R === "h" && P.type === "range")
3405
3405
  return !1;
3406
- var M = Br(E, _);
3406
+ var M = Br(R, P);
3407
3407
  if (!M)
3408
3408
  return !0;
3409
- if (M ? R = E : (R = E === "v" ? "h" : "v", M = Br(E, _)), !M)
3409
+ if (M ? E = R : (E = R === "v" ? "h" : "v", M = Br(R, P)), !M)
3410
3410
  return !1;
3411
- if (!r.current && "changedTouches" in v && (S || C) && (r.current = R), !R)
3411
+ if (!r.current && "changedTouches" in v && (S || C) && (r.current = E), !E)
3412
3412
  return !0;
3413
- var D = r.current || R;
3413
+ var D = r.current || E;
3414
3414
  return Wc(D, b, v, D === "h" ? S : C);
3415
3415
  }, []), u = c.useCallback(function(v) {
3416
3416
  var b = v;
3417
- if (!(!Le.length || Le[Le.length - 1] !== a)) {
3418
- var x = "deltaY" in b ? Wr(b) : ht(b), w = t.current.filter(function(R) {
3419
- return R.name === b.type && (R.target === b.target || b.target === R.shadowParent) && Uc(R.delta, x);
3417
+ if (!(!De.length || De[De.length - 1] !== a)) {
3418
+ var x = "deltaY" in b ? Wr(b) : ht(b), w = t.current.filter(function(E) {
3419
+ return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) && Uc(E.delta, x);
3420
3420
  })[0];
3421
3421
  if (w && w.should) {
3422
3422
  b.cancelable && b.preventDefault();
3423
3423
  return;
3424
3424
  }
3425
3425
  if (!w) {
3426
- var S = (i.current.shards || []).map(Ur).filter(Boolean).filter(function(R) {
3427
- return R.contains(b.target);
3426
+ var S = (i.current.shards || []).map(Ur).filter(Boolean).filter(function(E) {
3427
+ return E.contains(b.target);
3428
3428
  }), C = S.length > 0 ? s(b, S[0]) : !i.current.noIsolation;
3429
3429
  C && b.cancelable && b.preventDefault();
3430
3430
  }
@@ -3444,14 +3444,14 @@ function Hc(e) {
3444
3444
  l(v.type, ht(v), v.target, s(v, e.lockRef.current));
3445
3445
  }, []);
3446
3446
  c.useEffect(function() {
3447
- return Le.push(a), e.setCallbacks({
3447
+ return De.push(a), e.setCallbacks({
3448
3448
  onScrollCapture: d,
3449
3449
  onWheelCapture: d,
3450
3450
  onTouchMoveCapture: p
3451
- }), document.addEventListener("wheel", u, De), document.addEventListener("touchmove", u, De), document.addEventListener("touchstart", f, De), function() {
3452
- Le = Le.filter(function(v) {
3451
+ }), document.addEventListener("wheel", u, je), document.addEventListener("touchmove", u, je), document.addEventListener("touchstart", f, je), function() {
3452
+ De = De.filter(function(v) {
3453
3453
  return v !== a;
3454
- }), document.removeEventListener("wheel", u, De), document.removeEventListener("touchmove", u, De), document.removeEventListener("touchstart", f, De);
3454
+ }), document.removeEventListener("wheel", u, je), document.removeEventListener("touchmove", u, je), document.removeEventListener("touchstart", f, je);
3455
3455
  };
3456
3456
  }, []);
3457
3457
  var h = e.removeScrollBar, g = e.inert;
@@ -3492,7 +3492,7 @@ var jt = "Popover", [$o, Yc] = Se(jt, [
3492
3492
  Xc,
3493
3493
  {
3494
3494
  scope: t,
3495
- contentId: Te(),
3495
+ contentId: Ae(),
3496
3496
  triggerRef: u,
3497
3497
  open: d,
3498
3498
  onOpenChange: p,
@@ -3740,7 +3740,7 @@ var bl = c.forwardRef((e, t) => {
3740
3740
  defaultProp: s ?? null,
3741
3741
  onChange: u,
3742
3742
  caller: at
3743
- }), [x, w] = c.useState(!1), S = ne(l), C = Ko(n), R = c.useRef(!1), [_, E] = c.useState(0);
3743
+ }), [x, w] = c.useState(!1), S = ne(l), C = Ko(n), E = c.useRef(!1), [P, R] = c.useState(0);
3744
3744
  return c.useEffect(() => {
3745
3745
  const M = p.current;
3746
3746
  if (M)
@@ -3759,26 +3759,26 @@ var bl = c.forwardRef((e, t) => {
3759
3759
  ),
3760
3760
  onItemShiftTab: c.useCallback(() => w(!0), []),
3761
3761
  onFocusableItemAdd: c.useCallback(
3762
- () => E((M) => M + 1),
3762
+ () => R((M) => M + 1),
3763
3763
  []
3764
3764
  ),
3765
3765
  onFocusableItemRemove: c.useCallback(
3766
- () => E((M) => M - 1),
3766
+ () => R((M) => M - 1),
3767
3767
  []
3768
3768
  ),
3769
3769
  children: /* @__PURE__ */ m.jsx(
3770
3770
  H.div,
3771
3771
  {
3772
- tabIndex: x || _ === 0 ? -1 : 0,
3772
+ tabIndex: x || P === 0 ? -1 : 0,
3773
3773
  "data-orientation": r,
3774
3774
  ...d,
3775
3775
  ref: h,
3776
3776
  style: { outline: "none", ...e.style },
3777
3777
  onMouseDown: k(e.onMouseDown, () => {
3778
- R.current = !0;
3778
+ E.current = !0;
3779
3779
  }),
3780
3780
  onFocus: k(e.onFocus, (M) => {
3781
- const D = !R.current;
3781
+ const D = !E.current;
3782
3782
  if (M.target === M.currentTarget && D && !x) {
3783
3783
  const I = new CustomEvent(qt, pl);
3784
3784
  if (M.currentTarget.dispatchEvent(I), !I.defaultPrevented) {
@@ -3788,7 +3788,7 @@ var bl = c.forwardRef((e, t) => {
3788
3788
  Zo(z, f);
3789
3789
  }
3790
3790
  }
3791
- R.current = !1;
3791
+ E.current = !1;
3792
3792
  }),
3793
3793
  onBlur: k(e.onBlur, () => w(!1))
3794
3794
  }
@@ -3804,7 +3804,7 @@ var bl = c.forwardRef((e, t) => {
3804
3804
  tabStopId: a,
3805
3805
  children: i,
3806
3806
  ...s
3807
- } = e, u = Te(), l = a || u, f = gl(Xo, n), d = f.currentTabStopId === l, p = Ko(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: v } = f;
3807
+ } = e, u = Ae(), l = a || u, f = gl(Xo, n), d = f.currentTabStopId === l, p = Ko(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: v } = f;
3808
3808
  return c.useEffect(() => {
3809
3809
  if (r)
3810
3810
  return h(), () => g();
@@ -3886,11 +3886,11 @@ var Jo = Yo, Qo = qo, ln = ["Enter", " "], Cl = ["ArrowDown", "PageUp", "Home"],
3886
3886
  }, _l = {
3887
3887
  ltr: ["ArrowLeft"],
3888
3888
  rtl: ["ArrowRight"]
3889
- }, it = "Menu", [et, Pl, Al] = Jr(it), [Oe, ta] = Se(it, [
3889
+ }, it = "Menu", [et, Pl, Al] = Jr(it), [Me, ta] = Se(it, [
3890
3890
  Al,
3891
3891
  kt,
3892
3892
  Dt
3893
- ]), st = kt(), na = Dt(), [ra, Re] = Oe(it), [Tl, ct] = Oe(it), oa = (e) => {
3893
+ ]), st = kt(), na = Dt(), [ra, Re] = Me(it), [Tl, ct] = Me(it), oa = (e) => {
3894
3894
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: i = !0 } = e, s = st(t), [u, l] = c.useState(null), f = c.useRef(!1), d = ne(a), p = dn(o);
3895
3895
  return c.useEffect(() => {
3896
3896
  const h = () => {
@@ -3929,14 +3929,14 @@ var Ml = "MenuAnchor", In = c.forwardRef(
3929
3929
  }
3930
3930
  );
3931
3931
  In.displayName = Ml;
3932
- var jn = "MenuPortal", [Ol, aa] = Oe(jn, {
3932
+ var jn = "MenuPortal", [Ol, aa] = Me(jn, {
3933
3933
  forceMount: void 0
3934
3934
  }), ia = (e) => {
3935
3935
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, a = Re(jn, t);
3936
3936
  return /* @__PURE__ */ m.jsx(Ol, { scope: t, forceMount: n, children: /* @__PURE__ */ m.jsx(Ce, { present: n || a.open, children: /* @__PURE__ */ m.jsx(Cn, { asChild: !0, container: o, children: r }) }) });
3937
3937
  };
3938
3938
  ia.displayName = jn;
3939
- var Q = "MenuContent", [kl, Dn] = Oe(Q), sa = c.forwardRef(
3939
+ var Q = "MenuContent", [kl, Dn] = Me(Q), sa = c.forwardRef(
3940
3940
  (e, t) => {
3941
3941
  const n = aa(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Re(Q, e.__scopeMenu), i = ct(Q, e.__scopeMenu);
3942
3942
  return /* @__PURE__ */ m.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(Ce, { present: r || a.open, children: /* @__PURE__ */ m.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ m.jsx(Il, { ...o, ref: t }) : /* @__PURE__ */ m.jsx(jl, { ...o, ref: t }) }) }) });
@@ -3994,17 +3994,17 @@ var Q = "MenuContent", [kl, Dn] = Oe(Q), sa = c.forwardRef(
3994
3994
  onDismiss: h,
3995
3995
  disableOutsideScroll: g,
3996
3996
  ...v
3997
- } = e, b = Re(Q, n), x = ct(Q, n), w = st(n), S = na(n), C = Pl(n), [R, _] = c.useState(null), E = c.useRef(null), M = K(t, E, b.onContentChange), D = c.useRef(0), I = c.useRef(""), G = c.useRef(0), W = c.useRef(null), $ = c.useRef("right"), N = c.useRef(0), z = g ? En : c.Fragment, j = g ? { as: Dl, allowPinchZoom: !0 } : void 0, V = (P) => {
3997
+ } = e, b = Re(Q, n), x = ct(Q, n), w = st(n), S = na(n), C = Pl(n), [E, P] = c.useState(null), R = c.useRef(null), M = K(t, R, b.onContentChange), D = c.useRef(0), I = c.useRef(""), G = c.useRef(0), W = c.useRef(null), $ = c.useRef("right"), N = c.useRef(0), z = g ? En : c.Fragment, j = g ? { as: Dl, allowPinchZoom: !0 } : void 0, V = (_) => {
3998
3998
  var L, J;
3999
- const B = I.current + P, y = C().filter((Y) => !Y.disabled), T = document.activeElement, F = (L = y.find((Y) => Y.ref.current === T)) == null ? void 0 : L.textValue, U = y.map((Y) => Y.textValue), fe = Kl(U, B, F), ee = (J = y.find((Y) => Y.textValue === fe)) == null ? void 0 : J.ref.current;
3999
+ const B = I.current + _, y = C().filter((Y) => !Y.disabled), T = document.activeElement, F = (L = y.find((Y) => Y.ref.current === T)) == null ? void 0 : L.textValue, U = y.map((Y) => Y.textValue), fe = Kl(U, B, F), ee = (J = y.find((Y) => Y.textValue === fe)) == null ? void 0 : J.ref.current;
4000
4000
  (function Y(_e) {
4001
4001
  I.current = _e, window.clearTimeout(D.current), _e !== "" && (D.current = window.setTimeout(() => Y(""), 1e3));
4002
4002
  })(B), ee && setTimeout(() => ee.focus());
4003
4003
  };
4004
4004
  c.useEffect(() => () => window.clearTimeout(D.current), []), ro();
4005
- const O = c.useCallback((P) => {
4005
+ const O = c.useCallback((_) => {
4006
4006
  var y, T;
4007
- return $.current === ((y = W.current) == null ? void 0 : y.side) && Xl(P, (T = W.current) == null ? void 0 : T.area);
4007
+ return $.current === ((y = W.current) == null ? void 0 : y.side) && Xl(_, (T = W.current) == null ? void 0 : T.area);
4008
4008
  }, []);
4009
4009
  return /* @__PURE__ */ m.jsx(
4010
4010
  kl,
@@ -4012,36 +4012,36 @@ var Q = "MenuContent", [kl, Dn] = Oe(Q), sa = c.forwardRef(
4012
4012
  scope: n,
4013
4013
  searchRef: I,
4014
4014
  onItemEnter: c.useCallback(
4015
- (P) => {
4016
- O(P) && P.preventDefault();
4015
+ (_) => {
4016
+ O(_) && _.preventDefault();
4017
4017
  },
4018
4018
  [O]
4019
4019
  ),
4020
4020
  onItemLeave: c.useCallback(
4021
- (P) => {
4021
+ (_) => {
4022
4022
  var B;
4023
- O(P) || ((B = E.current) == null || B.focus(), _(null));
4023
+ O(_) || ((B = R.current) == null || B.focus(), P(null));
4024
4024
  },
4025
4025
  [O]
4026
4026
  ),
4027
4027
  onTriggerLeave: c.useCallback(
4028
- (P) => {
4029
- O(P) && P.preventDefault();
4028
+ (_) => {
4029
+ O(_) && _.preventDefault();
4030
4030
  },
4031
4031
  [O]
4032
4032
  ),
4033
4033
  pointerGraceTimerRef: G,
4034
- onPointerGraceIntentChange: c.useCallback((P) => {
4035
- W.current = P;
4034
+ onPointerGraceIntentChange: c.useCallback((_) => {
4035
+ W.current = _;
4036
4036
  }, []),
4037
4037
  children: /* @__PURE__ */ m.jsx(z, { ...j, children: /* @__PURE__ */ m.jsx(
4038
4038
  fn,
4039
4039
  {
4040
4040
  asChild: !0,
4041
4041
  trapped: o,
4042
- onMountAutoFocus: k(a, (P) => {
4042
+ onMountAutoFocus: k(a, (_) => {
4043
4043
  var B;
4044
- P.preventDefault(), (B = E.current) == null || B.focus({ preventScroll: !0 });
4044
+ _.preventDefault(), (B = R.current) == null || B.focus({ preventScroll: !0 });
4045
4045
  }),
4046
4046
  onUnmountAutoFocus: i,
4047
4047
  children: /* @__PURE__ */ m.jsx(
@@ -4062,10 +4062,10 @@ var Q = "MenuContent", [kl, Dn] = Oe(Q), sa = c.forwardRef(
4062
4062
  dir: x.dir,
4063
4063
  orientation: "vertical",
4064
4064
  loop: r,
4065
- currentTabStopId: R,
4066
- onCurrentTabStopIdChange: _,
4067
- onEntryFocus: k(u, (P) => {
4068
- x.isUsingKeyboardRef.current || P.preventDefault();
4065
+ currentTabStopId: E,
4066
+ onCurrentTabStopIdChange: P,
4067
+ onEntryFocus: k(u, (_) => {
4068
+ x.isUsingKeyboardRef.current || _.preventDefault();
4069
4069
  }),
4070
4070
  preventScrollOnEntryFocus: !0,
4071
4071
  children: /* @__PURE__ */ m.jsx(
@@ -4080,25 +4080,25 @@ var Q = "MenuContent", [kl, Dn] = Oe(Q), sa = c.forwardRef(
4080
4080
  ...v,
4081
4081
  ref: M,
4082
4082
  style: { outline: "none", ...v.style },
4083
- onKeyDown: k(v.onKeyDown, (P) => {
4084
- const y = P.target.closest("[data-radix-menu-content]") === P.currentTarget, T = P.ctrlKey || P.altKey || P.metaKey, F = P.key.length === 1;
4085
- y && (P.key === "Tab" && P.preventDefault(), !T && F && V(P.key));
4086
- const U = E.current;
4087
- if (P.target !== U || !El.includes(P.key)) return;
4088
- P.preventDefault();
4083
+ onKeyDown: k(v.onKeyDown, (_) => {
4084
+ const y = _.target.closest("[data-radix-menu-content]") === _.currentTarget, T = _.ctrlKey || _.altKey || _.metaKey, F = _.key.length === 1;
4085
+ y && (_.key === "Tab" && _.preventDefault(), !T && F && V(_.key));
4086
+ const U = R.current;
4087
+ if (_.target !== U || !El.includes(_.key)) return;
4088
+ _.preventDefault();
4089
4089
  const ee = C().filter((L) => !L.disabled).map((L) => L.ref.current);
4090
- ea.includes(P.key) && ee.reverse(), Hl(ee);
4090
+ ea.includes(_.key) && ee.reverse(), Hl(ee);
4091
4091
  }),
4092
- onBlur: k(e.onBlur, (P) => {
4093
- P.currentTarget.contains(P.target) || (window.clearTimeout(D.current), I.current = "");
4092
+ onBlur: k(e.onBlur, (_) => {
4093
+ _.currentTarget.contains(_.target) || (window.clearTimeout(D.current), I.current = "");
4094
4094
  }),
4095
4095
  onPointerMove: k(
4096
4096
  e.onPointerMove,
4097
- tt((P) => {
4098
- const B = P.target, y = N.current !== P.clientX;
4099
- if (P.currentTarget.contains(B) && y) {
4100
- const T = P.clientX > N.current ? "right" : "left";
4101
- $.current = T, N.current = P.clientX;
4097
+ tt((_) => {
4098
+ const B = _.target, y = N.current !== _.clientX;
4099
+ if (_.currentTarget.contains(B) && y) {
4100
+ const T = _.clientX > N.current ? "right" : "left";
4101
+ $.current = T, N.current = _.clientX;
4102
4102
  }
4103
4103
  })
4104
4104
  )
@@ -4221,7 +4221,7 @@ var la = c.forwardRef(
4221
4221
  }
4222
4222
  );
4223
4223
  ua.displayName = Fl;
4224
- var da = "MenuRadioGroup", [$l, Bl] = Oe(
4224
+ var da = "MenuRadioGroup", [$l, Bl] = Me(
4225
4225
  da,
4226
4226
  { value: void 0, onValueChange: () => {
4227
4227
  } }
@@ -4256,7 +4256,7 @@ var pa = "MenuRadioItem", ma = c.forwardRef(
4256
4256
  }
4257
4257
  );
4258
4258
  ma.displayName = pa;
4259
- var Fn = "MenuItemIndicator", [ha, Wl] = Oe(
4259
+ var Fn = "MenuItemIndicator", [ha, Wl] = Me(
4260
4260
  Fn,
4261
4261
  { checked: !1 }
4262
4262
  ), va = c.forwardRef(
@@ -4301,7 +4301,7 @@ var Vl = "MenuArrow", ba = c.forwardRef(
4301
4301
  }
4302
4302
  );
4303
4303
  ba.displayName = Vl;
4304
- var $n = "MenuSub", [Gl, xa] = Oe($n), ya = (e) => {
4304
+ var $n = "MenuSub", [Gl, xa] = Me($n), ya = (e) => {
4305
4305
  const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = Re($n, t), i = st(t), [s, u] = c.useState(null), [l, f] = c.useState(null), d = ne(o);
4306
4306
  return c.useEffect(() => (a.open === !1 && d(!1), () => d(!1)), [a.open, d]), /* @__PURE__ */ m.jsx(wn, { ...i, children: /* @__PURE__ */ m.jsx(
4307
4307
  ra,
@@ -4315,8 +4315,8 @@ var $n = "MenuSub", [Gl, xa] = Oe($n), ya = (e) => {
4315
4315
  Gl,
4316
4316
  {
4317
4317
  scope: t,
4318
- contentId: Te(),
4319
- triggerId: Te(),
4318
+ contentId: Ae(),
4319
+ triggerId: Ae(),
4320
4320
  trigger: s,
4321
4321
  onTriggerChange: u,
4322
4322
  children: n
@@ -4498,9 +4498,9 @@ var ql = oa, Zl = In, Jl = ia, Ql = sa, eu = Nn, tu = ca, nu = Lt, ru = ua, ou =
4498
4498
  mu,
4499
4499
  {
4500
4500
  scope: t,
4501
- triggerId: Te(),
4501
+ triggerId: Ae(),
4502
4502
  triggerRef: l,
4503
- contentId: Te(),
4503
+ contentId: Ae(),
4504
4504
  open: f,
4505
4505
  onOpenChange: d,
4506
4506
  onOpenToggle: c.useCallback(() => d((p) => !p), [d]),
@@ -4706,7 +4706,7 @@ function Ft(e, t) {
4706
4706
  }
4707
4707
  var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4708
4708
  var n = e.color, r = n === void 0 ? "currentColor" : n, o = Ft(e, Fu);
4709
- return xe("svg", Object.assign({
4709
+ return be("svg", Object.assign({
4710
4710
  width: "15",
4711
4711
  height: "15",
4712
4712
  viewBox: "0 0 15 15",
@@ -4714,7 +4714,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4714
4714
  xmlns: "http://www.w3.org/2000/svg"
4715
4715
  }, o, {
4716
4716
  ref: t
4717
- }), xe("path", {
4717
+ }), be("path", {
4718
4718
  d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
4719
4719
  fill: r,
4720
4720
  fillRule: "evenodd",
@@ -4722,7 +4722,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4722
4722
  }));
4723
4723
  }), Bu = ["color"], Wu = /* @__PURE__ */ ue(function(e, t) {
4724
4724
  var n = e.color, r = n === void 0 ? "currentColor" : n, o = Ft(e, Bu);
4725
- return xe("svg", Object.assign({
4725
+ return be("svg", Object.assign({
4726
4726
  width: "15",
4727
4727
  height: "15",
4728
4728
  viewBox: "0 0 15 15",
@@ -4730,7 +4730,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4730
4730
  xmlns: "http://www.w3.org/2000/svg"
4731
4731
  }, o, {
4732
4732
  ref: t
4733
- }), xe("path", {
4733
+ }), be("path", {
4734
4734
  d: "M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",
4735
4735
  fill: r,
4736
4736
  fillRule: "evenodd",
@@ -4738,7 +4738,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4738
4738
  }));
4739
4739
  }), Uu = ["color"], uf = /* @__PURE__ */ ue(function(e, t) {
4740
4740
  var n = e.color, r = n === void 0 ? "currentColor" : n, o = Ft(e, Uu);
4741
- return xe("svg", Object.assign({
4741
+ return be("svg", Object.assign({
4742
4742
  width: "15",
4743
4743
  height: "15",
4744
4744
  viewBox: "0 0 15 15",
@@ -4746,7 +4746,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4746
4746
  xmlns: "http://www.w3.org/2000/svg"
4747
4747
  }, o, {
4748
4748
  ref: t
4749
- }), xe("path", {
4749
+ }), be("path", {
4750
4750
  d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
4751
4751
  fill: r,
4752
4752
  fillRule: "evenodd",
@@ -4754,7 +4754,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4754
4754
  }));
4755
4755
  }), Vu = ["color"], Gu = /* @__PURE__ */ ue(function(e, t) {
4756
4756
  var n = e.color, r = n === void 0 ? "currentColor" : n, o = Ft(e, Vu);
4757
- return xe("svg", Object.assign({
4757
+ return be("svg", Object.assign({
4758
4758
  width: "15",
4759
4759
  height: "15",
4760
4760
  viewBox: "0 0 15 15",
@@ -4762,7 +4762,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4762
4762
  xmlns: "http://www.w3.org/2000/svg"
4763
4763
  }, o, {
4764
4764
  ref: t
4765
- }), xe("path", {
4765
+ }), be("path", {
4766
4766
  d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
4767
4767
  fill: r
4768
4768
  }));
@@ -4917,7 +4917,7 @@ var $t = "Tabs", [cd, ld] = Se($t, [
4917
4917
  ud,
4918
4918
  {
4919
4919
  scope: n,
4920
- baseId: Te(),
4920
+ baseId: Ae(),
4921
4921
  value: d,
4922
4922
  onValueChange: p,
4923
4923
  orientation: i,
@@ -5061,7 +5061,7 @@ const pf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5061
5061
  classNames: u,
5062
5062
  ...l
5063
5063
  }, f) => {
5064
- const d = Ne.base, p = Ne.bubbleTail, h = Ne.wrapper, g = Ne.sender, v = Ne.message, b = Ne.timestamp;
5064
+ const d = Le.base, p = Le.bubbleTail, h = Le.wrapper, g = Le.sender, v = Le.message, b = Le.timestamp;
5065
5065
  return /* @__PURE__ */ m.jsxs(
5066
5066
  "div",
5067
5067
  {
@@ -5141,7 +5141,7 @@ const pf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5141
5141
  }
5142
5142
  );
5143
5143
  hd.displayName = "Message";
5144
- const Ne = {
5144
+ const Le = {
5145
5145
  base: "relative flex gap-3 bg-gray-40 border border-gray-40 rounded-[10px] px-2.5 py-2 min-h-10 w-max",
5146
5146
  bubbleTail: "absolute inline-block w-[34px] h-[17px] bg-gray-40 triangle-up bottom-[-1px]",
5147
5147
  wrapper: {
@@ -5153,19 +5153,19 @@ const Ne = {
5153
5153
  timestamp: "text-xs text-dark-40/50 leading-none"
5154
5154
  }, vd = ue(
5155
5155
  ({ checked: e, disabled: t, id: n, onChange: r, size: o = "large", className: a, ...i }, s) => {
5156
- const u = ve.sizes[o];
5156
+ const u = he.sizes[o];
5157
5157
  return /* @__PURE__ */ m.jsxs(
5158
5158
  "label",
5159
5159
  {
5160
5160
  htmlFor: n,
5161
5161
  "aria-label": "radio-label",
5162
5162
  className: A(
5163
- ve.base,
5163
+ he.base,
5164
5164
  u.label,
5165
- t && ve.disabled,
5166
- !t && ve.active,
5167
- !e && !t && ve.hover,
5168
- !t && e && ve.checked,
5165
+ t && he.disabled,
5166
+ !t && he.active,
5167
+ !e && !t && he.hover,
5168
+ !t && e && he.checked,
5169
5169
  a
5170
5170
  ),
5171
5171
  children: [
@@ -5190,7 +5190,7 @@ const Ne = {
5190
5190
  {
5191
5191
  "aria-hidden": "true",
5192
5192
  className: A(
5193
- e ? [ve.radio.base, ve.radio[o]] : "opacity-0",
5193
+ e ? [he.radio.base, he.radio[o]] : "opacity-0",
5194
5194
  t && "bg-primary-30"
5195
5195
  )
5196
5196
  }
@@ -5201,7 +5201,7 @@ const Ne = {
5201
5201
  }
5202
5202
  );
5203
5203
  vd.displayName = "Radio";
5204
- const ve = {
5204
+ const he = {
5205
5205
  base: "border-2 border-dark-30/[.15] flex items-center justify-center rounded-full cursor-pointer outline-none bg-sidebar-10/[.08]",
5206
5206
  active: "active:border-primary-10",
5207
5207
  hover: "hover:border-primary-20/[.30]",
@@ -5225,7 +5225,7 @@ const ve = {
5225
5225
  variant: t = "default",
5226
5226
  className: n
5227
5227
  }) => /* @__PURE__ */ m.jsx(
5228
- pe,
5228
+ we,
5229
5229
  {
5230
5230
  className: A(Gr.base, Gr.status[t], n),
5231
5231
  "data-testid": "status",
@@ -5446,7 +5446,7 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5446
5446
  }
5447
5447
  );
5448
5448
  }
5449
- ), pe = ({
5449
+ ), we = ({
5450
5450
  children: e,
5451
5451
  className: t = "",
5452
5452
  variant: n = "p",
@@ -5467,8 +5467,8 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5467
5467
  ...u
5468
5468
  }, l) => {
5469
5469
  var x, w;
5470
- const f = ge.base, d = ge.state, p = ge.disabled, h = ge.styles, g = ge.maxLength, v = ge.message;
5471
- return /* @__PURE__ */ m.jsxs("div", { className: ge.root, children: [
5470
+ const f = ve.base, d = ve.state, p = ve.disabled, h = ve.styles, g = ve.maxLength, v = ve.message;
5471
+ return /* @__PURE__ */ m.jsxs("div", { className: ve.root, children: [
5472
5472
  /* @__PURE__ */ m.jsx(
5473
5473
  "textarea",
5474
5474
  {
@@ -5490,10 +5490,10 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5490
5490
  )
5491
5491
  }
5492
5492
  ),
5493
- /* @__PURE__ */ m.jsxs("div", { className: ge.messageContainer, children: [
5494
- i && a && /* @__PURE__ */ m.jsx(pe, { variant: "p", className: v == null ? void 0 : v[a], children: i }),
5493
+ /* @__PURE__ */ m.jsxs("div", { className: ve.messageContainer, children: [
5494
+ i && a && /* @__PURE__ */ m.jsx(we, { variant: "p", className: v == null ? void 0 : v[a], children: i }),
5495
5495
  s && /* @__PURE__ */ m.jsxs(
5496
- pe,
5496
+ we,
5497
5497
  {
5498
5498
  variant: "span",
5499
5499
  className: A(
@@ -5510,7 +5510,7 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5510
5510
  ] })
5511
5511
  ] });
5512
5512
  }
5513
- ), ge = {
5513
+ ), ve = {
5514
5514
  root: "flex flex-col gap-1 w-full",
5515
5515
  base: "w-full min-h-[60px] bg-gray-50 text-sm text-dark-10 font-sans font-medium leading-none px-3.5 py-3 border border-gray-50 rounded-[10px] placeholder:text-sm placeholder:text-dark-40/50 transition-colors duration-200",
5516
5516
  disabled: "text-dark-40/25 bg-dark-30/[.08] cursor-not-allowed",
@@ -5582,133 +5582,120 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5582
5582
  }, bf = ({
5583
5583
  classNames: e,
5584
5584
  disabled: t,
5585
- message: n,
5585
+ status: n,
5586
5586
  onChange: r,
5587
5587
  options: o,
5588
5588
  placeholder: a = "Choose",
5589
5589
  value: i,
5590
5590
  isDotable: s
5591
5591
  }) => {
5592
- const [u, l] = Yr(!1), d = si(o)(i), p = mr(null), h = mr(null), g = Ae.base, v = Ae.options, b = Ae.message.base, x = Ae.message.styles, w = Ae.disabled.trigger, S = Ae.disabled.triggerText, C = ({
5593
- className: _,
5594
- text: E = ""
5592
+ const [u, l] = Yr(!1), d = si(o)(i), p = mr(null), h = mr(null), g = Ne.base, v = Ne.options, b = Ne.status.styles, x = Ne.disabled.trigger, w = Ne.disabled.triggerText, S = ({
5593
+ className: E,
5594
+ text: P = ""
5595
5595
  }) => /* @__PURE__ */ m.jsx(
5596
- pe,
5596
+ we,
5597
5597
  {
5598
5598
  className: A(
5599
5599
  g.placeholder,
5600
- t && S,
5601
- _
5600
+ t && w,
5601
+ E
5602
5602
  ),
5603
- children: E
5603
+ children: P
5604
5604
  }
5605
- ), R = (_) => {
5606
- if (_.preventDefault(), i && h.current) {
5607
- const E = h.current.querySelector(
5605
+ ), C = (E) => {
5606
+ if (E.preventDefault(), i && h.current) {
5607
+ const P = h.current.querySelector(
5608
5608
  `[data-value="${i}"]`
5609
5609
  );
5610
- E && E.scrollIntoView({
5610
+ P && P.scrollIntoView({
5611
5611
  block: "center",
5612
5612
  behavior: "auto"
5613
5613
  });
5614
5614
  }
5615
5615
  };
5616
- return /* @__PURE__ */ m.jsxs("div", { className: A("w-full", e == null ? void 0 : e.parent), children: [
5617
- /* @__PURE__ */ m.jsxs(ul, { open: u, onOpenChange: l, children: [
5618
- /* @__PURE__ */ m.jsxs(
5619
- dl,
5620
- {
5621
- role: "listbox",
5622
- disabled: t,
5623
- className: A(
5624
- g.trigger,
5625
- t && w,
5626
- !u && n && x[n == null ? void 0 : n.type].trigger,
5627
- u && g.focus,
5628
- !u && !t && g.hover,
5629
- e == null ? void 0 : e.trigger
5616
+ return /* @__PURE__ */ m.jsx("div", { className: A("w-full", e == null ? void 0 : e.parent), children: /* @__PURE__ */ m.jsxs(ul, { open: u, onOpenChange: l, children: [
5617
+ /* @__PURE__ */ m.jsxs(
5618
+ dl,
5619
+ {
5620
+ role: "listbox",
5621
+ disabled: t,
5622
+ className: A(
5623
+ g.trigger,
5624
+ t && x,
5625
+ !u && n && b[n].trigger,
5626
+ u && g.focus,
5627
+ !u && !t && g.hover,
5628
+ e == null ? void 0 : e.trigger
5629
+ ),
5630
+ children: [
5631
+ i ? /* @__PURE__ */ m.jsx(
5632
+ S,
5633
+ {
5634
+ text: d == null ? void 0 : d.label,
5635
+ className: A(
5636
+ g.selected,
5637
+ t && Ne.disabled.selectedDisabled,
5638
+ e == null ? void 0 : e.selected
5639
+ )
5640
+ }
5641
+ ) : /* @__PURE__ */ m.jsx(
5642
+ S,
5643
+ {
5644
+ text: a,
5645
+ className: e == null ? void 0 : e.placeholder
5646
+ }
5630
5647
  ),
5631
- children: [
5632
- i ? /* @__PURE__ */ m.jsx(
5633
- C,
5634
- {
5635
- text: d == null ? void 0 : d.label,
5636
- className: A(
5637
- g.selected,
5638
- t && Ae.disabled.selectedDisabled,
5639
- e == null ? void 0 : e.selected
5640
- )
5641
- }
5642
- ) : /* @__PURE__ */ m.jsx(
5643
- C,
5644
- {
5645
- text: a,
5646
- className: e == null ? void 0 : e.placeholder
5647
- }
5648
- ),
5649
- /* @__PURE__ */ m.jsx(
5650
- ui,
5648
+ /* @__PURE__ */ m.jsx(
5649
+ ui,
5650
+ {
5651
+ width: 20,
5652
+ height: 20,
5653
+ viewBox: "0 0 20 20",
5654
+ className: A(
5655
+ g.icon,
5656
+ t && g.iconDisabled,
5657
+ u && "-rotate-180"
5658
+ )
5659
+ }
5660
+ )
5661
+ ]
5662
+ }
5663
+ ),
5664
+ /* @__PURE__ */ m.jsx("div", { ref: p, children: /* @__PURE__ */ m.jsx(
5665
+ fl,
5666
+ {
5667
+ container: p.current,
5668
+ className: A(v.content, e == null ? void 0 : e.content),
5669
+ style: { minWidth: "var(--radix-popper-anchor-width)" },
5670
+ onOpenAutoFocus: C,
5671
+ ref: h,
5672
+ children: o && (o == null ? void 0 : o.map((E) => /* @__PURE__ */ m.jsx(
5673
+ "div",
5674
+ {
5675
+ "data-value": E.value,
5676
+ className: A(v.items),
5677
+ onClick: (P) => {
5678
+ P.preventDefault(), P.stopPropagation(), r(E.value), l(!1);
5679
+ },
5680
+ children: /* @__PURE__ */ m.jsx(
5681
+ we,
5651
5682
  {
5652
- width: 20,
5653
- height: 20,
5654
- viewBox: "0 0 20 20",
5655
5683
  className: A(
5656
- g.icon,
5657
- t && g.iconDisabled,
5658
- u && "-rotate-180"
5659
- )
5684
+ v.itemsText,
5685
+ !s && i === E.value && v.active,
5686
+ s && v.dot,
5687
+ s && i === E.value && "before:bg-dark-10 !font-bold"
5688
+ ),
5689
+ children: E.label
5660
5690
  }
5661
5691
  )
5662
- ]
5663
- }
5664
- ),
5665
- /* @__PURE__ */ m.jsx("div", { ref: p, children: /* @__PURE__ */ m.jsx(
5666
- fl,
5667
- {
5668
- container: p.current,
5669
- className: A(v.content, e == null ? void 0 : e.content),
5670
- style: { minWidth: "var(--radix-popper-anchor-width)" },
5671
- onOpenAutoFocus: R,
5672
- ref: h,
5673
- children: o && (o == null ? void 0 : o.map((_) => /* @__PURE__ */ m.jsx(
5674
- "div",
5675
- {
5676
- "data-value": _.value,
5677
- className: A(v.items),
5678
- onClick: (E) => {
5679
- E.preventDefault(), E.stopPropagation(), r(_.value), l(!1);
5680
- },
5681
- children: /* @__PURE__ */ m.jsx(
5682
- pe,
5683
- {
5684
- className: A(
5685
- v.itemsText,
5686
- !s && i === _.value && v.active,
5687
- s && v.dot,
5688
- s && i === _.value && "before:bg-dark-10 !font-bold"
5689
- ),
5690
- children: _.label
5691
- }
5692
- )
5693
- },
5694
- _.value
5695
- )))
5696
- }
5697
- ) })
5698
- ] }),
5699
- n && /* @__PURE__ */ m.jsx(
5700
- pe,
5701
- {
5702
- variant: "span",
5703
- className: A(
5704
- b,
5705
- x[n.type].message
5706
- ),
5707
- children: n.text
5692
+ },
5693
+ E.value
5694
+ )))
5708
5695
  }
5709
- )
5710
- ] });
5711
- }, Ae = {
5696
+ ) })
5697
+ ] }) });
5698
+ }, Ne = {
5712
5699
  container: "w-full flex items-start flex-col gap-1.5",
5713
5700
  base: {
5714
5701
  icon: "ml-auto fill-sidebar-30/[.70] rounded hover:cursor-pointer transition-transform durantion-300",
@@ -5733,19 +5720,15 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5733
5720
  dot: 'before:content-[""] before:block before:bg-sidebar-10 before:w-2 before:h-2 before:rounded-full before:mr-3.5',
5734
5721
  active: "text-dark-10 font-bold"
5735
5722
  },
5736
- message: {
5737
- base: "text-xs font-normal font-mono pt-[10px] block font-bold",
5723
+ status: {
5738
5724
  styles: {
5739
5725
  danger: {
5740
- message: "text-danger-20",
5741
5726
  trigger: "border-danger-20"
5742
5727
  },
5743
5728
  info: {
5744
- message: "text-primary-10",
5745
5729
  trigger: "border-primary-10"
5746
5730
  },
5747
5731
  success: {
5748
- message: "text-success-20",
5749
5732
  trigger: "border-success-20"
5750
5733
  }
5751
5734
  }
@@ -6176,7 +6159,7 @@ export {
6176
6159
  vd as R,
6177
6160
  mf as S,
6178
6161
  hf as T,
6179
- Te as U,
6162
+ Ae as U,
6180
6163
  wn as V,
6181
6164
  Sn as W,
6182
6165
  Pt as X,
@@ -6202,22 +6185,22 @@ export {
6202
6185
  ie as af,
6203
6186
  lf as ag,
6204
6187
  Ye as b,
6205
- Ie as c,
6188
+ ke as c,
6206
6189
  Pe as d,
6207
- pe as e,
6190
+ we as e,
6208
6191
  vf as f,
6209
- ge as g,
6192
+ ve as g,
6210
6193
  gf as h,
6211
- ke as i,
6194
+ Oe as i,
6212
6195
  Zt as j,
6213
6196
  bf as k,
6214
6197
  br as l,
6215
- Ne as m,
6216
- Ae as n,
6198
+ Le as m,
6199
+ Ne as n,
6217
6200
  vt as o,
6218
6201
  m as p,
6219
6202
  Jr as q,
6220
- ve as r,
6203
+ he as r,
6221
6204
  Gr as s,
6222
6205
  Xe as t,
6223
6206
  Se as u,