ynotsoft-dynamic-form 1.0.97 → 1.0.99

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,6 +1,6 @@
1
1
  import { jsx as u, jsxs as D, Fragment as Rt } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
- import Te, { forwardRef as Na, createElement as Tr, useState as ue, useRef as Yt, useCallback as sr, useEffect as He, useLayoutEffect as rc, useMemo as Ta } from "react";
3
+ import Te, { forwardRef as Ta, createElement as Tr, useState as ue, useRef as Yt, useCallback as sr, useEffect as He, useLayoutEffect as rc, useMemo as Vr } from "react";
4
4
  import { toast as Cn } from "react-hot-toast";
5
5
  import ir from "dayjs";
6
6
  import oc from "react-select";
@@ -11,7 +11,7 @@ import { useEditor as ic, EditorContent as cc } from "@tiptap/react";
11
11
  import lc from "@tiptap/starter-kit";
12
12
  import uc from "@tiptap/extension-underline";
13
13
  import dc from "@tiptap/extension-character-count";
14
- import { DayPicker as Vr } from "react-day-picker";
14
+ import { DayPicker as Gr } from "react-day-picker";
15
15
  import "react-day-picker/dist/style.css";
16
16
  function fc(e) {
17
17
  return /* @__PURE__ */ u("input", { type: "hidden", name: e.name, value: e.value }, e.name);
@@ -74,7 +74,7 @@ function mc({
74
74
  const pc = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), hc = (e) => e.replace(
75
75
  /^([A-Z])|[\s-_]+(\w)/g,
76
76
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
77
- ), Ro = (e) => {
77
+ ), Oo = (e) => {
78
78
  const t = hc(e);
79
79
  return t.charAt(0).toUpperCase() + t.slice(1);
80
80
  }, Pa = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), gc = (e) => {
@@ -93,7 +93,7 @@ var bc = {
93
93
  strokeLinecap: "round",
94
94
  strokeLinejoin: "round"
95
95
  };
96
- const vc = Na(
96
+ const vc = Ta(
97
97
  ({
98
98
  color: e = "currentColor",
99
99
  size: t = 24,
@@ -123,19 +123,19 @@ const vc = Na(
123
123
  )
124
124
  );
125
125
  const ae = (e, t) => {
126
- const n = Na(
126
+ const n = Ta(
127
127
  ({ className: r, ...o }, a) => Tr(vc, {
128
128
  ref: a,
129
129
  iconNode: t,
130
130
  className: Pa(
131
- `lucide-${pc(Ro(e))}`,
131
+ `lucide-${pc(Oo(e))}`,
132
132
  `lucide-${e}`,
133
133
  r
134
134
  ),
135
135
  ...o
136
136
  })
137
137
  );
138
- return n.displayName = Ro(e), n;
138
+ return n.displayName = Oo(e), n;
139
139
  };
140
140
  const yc = [
141
141
  [
@@ -256,7 +256,7 @@ const cl = [
256
256
  const ul = [
257
257
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
258
258
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
259
- ], Gr = ae("x", ul);
259
+ ], Yr = ae("x", ul);
260
260
  function dl({
261
261
  field: e,
262
262
  formValues: t,
@@ -267,15 +267,15 @@ function dl({
267
267
  apiClient: s,
268
268
  ...i
269
269
  }) {
270
- const c = a, l = e.selectMode !== "multiple", d = e.returnValueOnly === !0, [m, g] = ue([]), [h, w] = ue(!1), [p, v] = ue(!1), [k, C] = ue(""), [E, x] = ue(-1), [A, I] = ue({}), O = Yt(null), T = Yt(null), z = Yt(null), H = t[e.name], q = sr(() => H ? (Array.isArray(H) ? H : [H]).map((L) => {
270
+ const c = a, l = e.selectMode !== "multiple", d = e.returnValueOnly === !0, [m, g] = ue([]), [h, w] = ue(!1), [p, v] = ue(!1), [E, k] = ue(""), [x, S] = ue(-1), [A, I] = ue({}), O = Yt(null), T = Yt(null), z = Yt(null), H = t[e.name], q = sr(() => H ? (Array.isArray(H) ? H : [H]).map((L) => {
271
271
  if (L && typeof L == "object" && L.value !== void 0)
272
272
  return { value: L.value, label: L.label || L.value };
273
273
  const U = m.find((G) => G.value === L);
274
274
  return U || (A[L] ? A[L] : { value: L, label: L });
275
275
  }) : [], [H, m, A])(), y = sr(
276
- async (S = "") => {
276
+ async (C = "") => {
277
277
  if (e.onSearch) {
278
- const L = await e.onSearch(S, t);
278
+ const L = await e.onSearch(C, t);
279
279
  g(L);
280
280
  return;
281
281
  }
@@ -285,15 +285,15 @@ function dl({
285
285
  label: U[e.labelId || "label"] || U.label || U.name
286
286
  }));
287
287
  g(
288
- S ? L.filter(
289
- (U) => String(U.label).toLowerCase().includes(S.toLowerCase())
288
+ C ? L.filter(
289
+ (U) => String(U.label).toLowerCase().includes(C.toLowerCase())
290
290
  ) : L
291
291
  );
292
292
  return;
293
293
  }
294
294
  w(!0);
295
295
  try {
296
- const L = e.searchParam || "search", U = e.optionsUrl.includes("?") ? "&" : "?", G = `${e.optionsUrl}${U}${L}=${encodeURIComponent(S)}`, ce = await s(G), Y = ce.data || ce, oe = Array.isArray(Y) ? Y : [];
296
+ const L = e.searchParam || "search", U = e.optionsUrl.includes("?") ? "&" : "?", G = `${e.optionsUrl}${U}${L}=${encodeURIComponent(C)}`, ce = await s(G), Y = ce.data || ce, oe = Array.isArray(Y) ? Y : [];
297
297
  g(
298
298
  oe.map((K) => ({
299
299
  value: K[e.valueId || "value"] || K.value || K.id,
@@ -308,18 +308,18 @@ function dl({
308
308
  },
309
309
  [e, s, t]
310
310
  ), N = sr(
311
- (S) => {
312
- if (!S) return;
313
- I((G) => ({ ...G, [S.value]: S }));
314
- const L = d ? S.value : { value: S.value, label: S.label };
311
+ (C) => {
312
+ if (!C) return;
313
+ I((G) => ({ ...G, [C.value]: C }));
314
+ const L = d ? C.value : { value: C.value, label: C.label };
315
315
  let U;
316
316
  if (l)
317
317
  U = [L], v(!1);
318
318
  else {
319
319
  const G = Array.isArray(H) ? H : [];
320
- U = G.some((Y) => (Y?.value ?? Y) === S.value) ? G.filter((Y) => (Y?.value ?? Y) !== S.value) : [...G, L];
320
+ U = G.some((Y) => (Y?.value ?? Y) === C.value) ? G.filter((Y) => (Y?.value ?? Y) !== C.value) : [...G, L];
321
321
  }
322
- n(e.name, U), r(e.name), e.clearSearchOnSelect && C("");
322
+ n(e.name, U), r(e.name), e.clearSearchOnSelect && k("");
323
323
  },
324
324
  [
325
325
  H,
@@ -330,19 +330,19 @@ function dl({
330
330
  l,
331
331
  d
332
332
  ]
333
- ), R = (S) => {
333
+ ), R = (C) => {
334
334
  if (!c)
335
- switch (S.key) {
335
+ switch (C.key) {
336
336
  case "ArrowDown":
337
- S.preventDefault(), p ? x(
337
+ C.preventDefault(), p ? S(
338
338
  (L) => L < m.length - 1 ? L + 1 : L
339
339
  ) : v(!0);
340
340
  break;
341
341
  case "ArrowUp":
342
- S.preventDefault(), p && x((L) => L > 0 ? L - 1 : 0);
342
+ C.preventDefault(), p && S((L) => L > 0 ? L - 1 : 0);
343
343
  break;
344
344
  case "Enter":
345
- S.preventDefault(), p && E >= 0 && m[E] ? N(m[E]) : p || v(!0);
345
+ C.preventDefault(), p && x >= 0 && m[x] ? N(m[x]) : p || v(!0);
346
346
  break;
347
347
  case "Escape":
348
348
  v(!1);
@@ -351,25 +351,26 @@ function dl({
351
351
  v(!1), r(e.name);
352
352
  break;
353
353
  }
354
- }, P = (S) => {
355
- const L = S.target.value;
356
- C(L), x(-1), z.current && clearTimeout(z.current), z.current = setTimeout(() => y(L), 300);
354
+ }, P = (C) => {
355
+ const L = C.target.value;
356
+ k(L), S(-1), z.current && clearTimeout(z.current), z.current = setTimeout(() => y(L), 300);
357
357
  };
358
358
  He(() => {
359
359
  if (p) {
360
- y(k);
361
- const S = setTimeout(() => T.current?.focus(), 50);
362
- return () => clearTimeout(S);
360
+ y(E);
361
+ const C = setTimeout(() => T.current?.focus(), 50);
362
+ return () => clearTimeout(C);
363
363
  } else
364
- x(-1);
365
- }, [p, y, k]), He(() => {
366
- const S = (L) => {
364
+ S(-1);
365
+ }, [p, y, E]), He(() => {
366
+ if (!p) return;
367
+ const C = (L) => {
367
368
  O.current && !O.current.contains(L.target) && (v(!1), r(e.name));
368
369
  };
369
- return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
370
- }, [e.name, r]);
371
- const _ = (S, L) => {
372
- S.stopPropagation();
370
+ return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
371
+ }, [p, e.name, r]);
372
+ const _ = (C, L) => {
373
+ C.stopPropagation();
373
374
  const U = Array.isArray(H) ? H : [], G = l ? [] : U.filter((ce) => (ce?.value ?? ce) !== L);
374
375
  n(e.name, G), r(e.name);
375
376
  };
@@ -397,25 +398,25 @@ function dl({
397
398
  ${c ? "bg-muted opacity-60 cursor-not-allowed" : ""}
398
399
  `,
399
400
  children: [
400
- q.length > 0 ? q.map((S) => /* @__PURE__ */ D(
401
+ q.length > 0 ? q.map((C) => /* @__PURE__ */ D(
401
402
  "span",
402
403
  {
403
404
  className: "inline-flex items-center px-2 py-0.5 bg-primary/10 text-primary text-xs rounded-sm border border-primary/20",
404
405
  children: [
405
- S.label,
406
+ C.label,
406
407
  !c && /* @__PURE__ */ u(
407
408
  "button",
408
409
  {
409
410
  type: "button",
410
- "aria-label": `Remove ${S.label}`,
411
- onClick: (L) => _(L, S.value),
411
+ "aria-label": `Remove ${C.label}`,
412
+ onClick: (L) => _(L, C.value),
412
413
  className: "ml-1 p-0.5 hover:bg-primary/20 rounded-full transition-colors",
413
- children: /* @__PURE__ */ u(Gr, { className: "w-3 h-3" })
414
+ children: /* @__PURE__ */ u(Yr, { className: "w-3 h-3" })
414
415
  }
415
416
  )
416
417
  ]
417
418
  },
418
- S.value
419
+ C.value
419
420
  )) : /* @__PURE__ */ u("span", { className: "text-muted-foreground text-sm leading-tight", children: e.placeholder || "Select..." }),
420
421
  /* @__PURE__ */ D("div", { className: "ml-auto flex items-center gap-2", children: [
421
422
  h && /* @__PURE__ */ u(Oa, { className: "w-4 h-4 animate-spin text-muted-foreground" }),
@@ -439,8 +440,8 @@ function dl({
439
440
  type: "search",
440
441
  "aria-autocomplete": "list",
441
442
  "aria-controls": `${e.name}-listbox`,
442
- "aria-activedescendant": E >= 0 ? `${e.name}-opt-${E}` : void 0,
443
- value: k,
443
+ "aria-activedescendant": x >= 0 ? `${e.name}-opt-${x}` : void 0,
444
+ value: E,
444
445
  onChange: P,
445
446
  onKeyDown: R,
446
447
  className: "w-full h-9 pl-9 pr-3 text-sm bg-transparent border border-input rounded-md focus:outline-none focus:ring-1 focus:ring-ring",
@@ -455,10 +456,10 @@ function dl({
455
456
  role: "listbox",
456
457
  "aria-label": e.label,
457
458
  className: "max-h-60 overflow-y-auto p-1",
458
- children: m.length > 0 ? m.map((S, L) => {
459
+ children: m.length > 0 ? m.map((C, L) => {
459
460
  const U = q.some(
460
- (ce) => ce.value === S.value
461
- ), G = L === E;
461
+ (ce) => ce.value === C.value
462
+ ), G = L === x;
462
463
  return /* @__PURE__ */ D(
463
464
  "div",
464
465
  {
@@ -466,9 +467,9 @@ function dl({
466
467
  role: "option",
467
468
  tabIndex: -1,
468
469
  "aria-selected": U,
469
- onClick: () => N(S),
470
- onKeyDown: (ce) => ce.key === "Enter" && N(S),
471
- onMouseEnter: () => x(L),
470
+ onClick: () => N(C),
471
+ onKeyDown: (ce) => ce.key === "Enter" && N(C),
472
+ onMouseEnter: () => S(L),
472
473
  className: `
473
474
  px-3 py-2 text-sm rounded-md cursor-pointer flex items-center justify-between transition-colors outline-none
474
475
  ${G ? "bg-accent text-accent-foreground" : ""}
@@ -476,11 +477,11 @@ function dl({
476
477
  ${!G && !U ? "hover:bg-muted" : ""}
477
478
  `,
478
479
  children: [
479
- /* @__PURE__ */ u("span", { children: S.label }),
480
+ /* @__PURE__ */ u("span", { children: C.label }),
480
481
  U && /* @__PURE__ */ u(Cc, { className: "w-4 h-4 text-primary" })
481
482
  ]
482
483
  },
483
- S.value
484
+ C.value
484
485
  );
485
486
  }) : /* @__PURE__ */ u("output", { className: "block py-8 text-center text-sm text-muted-foreground", children: h ? "Searching..." : "No results found" })
486
487
  }
@@ -490,7 +491,7 @@ function dl({
490
491
  }
491
492
  );
492
493
  }
493
- function Oo(e, [t, n]) {
494
+ function _o(e, [t, n]) {
494
495
  return Math.min(n, Math.max(t, e));
495
496
  }
496
497
  function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
@@ -547,29 +548,29 @@ function fl(...e) {
547
548
  };
548
549
  return n.scopeName = t.scopeName, n;
549
550
  }
550
- function _o(e, t) {
551
+ function Mo(e, t) {
551
552
  if (typeof e == "function")
552
553
  return e(t);
553
554
  e != null && (e.current = t);
554
555
  }
555
- function Yr(...e) {
556
+ function qr(...e) {
556
557
  return (t) => {
557
558
  let n = !1;
558
559
  const r = e.map((o) => {
559
- const a = _o(o, t);
560
+ const a = Mo(o, t);
560
561
  return !n && typeof a == "function" && (n = !0), a;
561
562
  });
562
563
  if (n)
563
564
  return () => {
564
565
  for (let o = 0; o < r.length; o++) {
565
566
  const a = r[o];
566
- typeof a == "function" ? a() : _o(e[o], null);
567
+ typeof a == "function" ? a() : Mo(e[o], null);
567
568
  }
568
569
  };
569
570
  };
570
571
  }
571
572
  function ie(...e) {
572
- return f.useCallback(Yr(...e), e);
573
+ return f.useCallback(qr(...e), e);
573
574
  }
574
575
  // @__NO_SIDE_EFFECTS__
575
576
  function Ce(e) {
@@ -589,7 +590,7 @@ function ml(e) {
589
590
  const { children: o, ...a } = n;
590
591
  if (f.isValidElement(o)) {
591
592
  const s = bl(o), i = gl(a, o.props);
592
- return o.type !== f.Fragment && (i.ref = r ? Yr(r, s) : s), f.cloneElement(o, i);
593
+ return o.type !== f.Fragment && (i.ref = r ? qr(r, s) : s), f.cloneElement(o, i);
593
594
  }
594
595
  return f.Children.count(o) > 1 ? f.Children.only(null) : null;
595
596
  });
@@ -619,32 +620,32 @@ function _a(e) {
619
620
  t,
620
621
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
621
622
  ), s = (p) => {
622
- const { scope: v, children: k } = p, C = Te.useRef(null), E = Te.useRef(/* @__PURE__ */ new Map()).current;
623
- return /* @__PURE__ */ u(o, { scope: v, itemMap: E, collectionRef: C, children: k });
623
+ const { scope: v, children: E } = p, k = Te.useRef(null), x = Te.useRef(/* @__PURE__ */ new Map()).current;
624
+ return /* @__PURE__ */ u(o, { scope: v, itemMap: x, collectionRef: k, children: E });
624
625
  };
625
626
  s.displayName = t;
626
627
  const i = e + "CollectionSlot", c = /* @__PURE__ */ Ce(i), l = Te.forwardRef(
627
628
  (p, v) => {
628
- const { scope: k, children: C } = p, E = a(i, k), x = ie(v, E.collectionRef);
629
- return /* @__PURE__ */ u(c, { ref: x, children: C });
629
+ const { scope: E, children: k } = p, x = a(i, E), S = ie(v, x.collectionRef);
630
+ return /* @__PURE__ */ u(c, { ref: S, children: k });
630
631
  }
631
632
  );
632
633
  l.displayName = i;
633
634
  const d = e + "CollectionItemSlot", m = "data-radix-collection-item", g = /* @__PURE__ */ Ce(d), h = Te.forwardRef(
634
635
  (p, v) => {
635
- const { scope: k, children: C, ...E } = p, x = Te.useRef(null), A = ie(v, x), I = a(d, k);
636
- return Te.useEffect(() => (I.itemMap.set(x, { ref: x, ...E }), () => void I.itemMap.delete(x))), /* @__PURE__ */ u(g, { [m]: "", ref: A, children: C });
636
+ const { scope: E, children: k, ...x } = p, S = Te.useRef(null), A = ie(v, S), I = a(d, E);
637
+ return Te.useEffect(() => (I.itemMap.set(S, { ref: S, ...x }), () => void I.itemMap.delete(S))), /* @__PURE__ */ u(g, { [m]: "", ref: A, children: k });
637
638
  }
638
639
  );
639
640
  h.displayName = d;
640
641
  function w(p) {
641
642
  const v = a(e + "CollectionConsumer", p);
642
643
  return Te.useCallback(() => {
643
- const C = v.collectionRef.current;
644
- if (!C) return [];
645
- const E = Array.from(C.querySelectorAll(`[${m}]`));
644
+ const k = v.collectionRef.current;
645
+ if (!k) return [];
646
+ const x = Array.from(k.querySelectorAll(`[${m}]`));
646
647
  return Array.from(v.itemMap.values()).sort(
647
- (I, O) => E.indexOf(I.ref.current) - E.indexOf(O.ref.current)
648
+ (I, O) => x.indexOf(I.ref.current) - x.indexOf(O.ref.current)
648
649
  );
649
650
  }, [v.collectionRef, v.itemMap]);
650
651
  }
@@ -655,7 +656,7 @@ function _a(e) {
655
656
  ];
656
657
  }
657
658
  var vl = f.createContext(void 0);
658
- function qr(e) {
659
+ function Kr(e) {
659
660
  const t = f.useContext(vl);
660
661
  return e || t || "ltr";
661
662
  }
@@ -702,11 +703,11 @@ function xl(e, t = globalThis?.document) {
702
703
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
703
704
  }, [n, t]);
704
705
  }
705
- var Sl = "DismissableLayer", Pr = "dismissableLayer.update", Cl = "dismissableLayer.pointerDownOutside", El = "dismissableLayer.focusOutside", Mo, Da = f.createContext({
706
+ var Sl = "DismissableLayer", Pr = "dismissableLayer.update", Cl = "dismissableLayer.pointerDownOutside", El = "dismissableLayer.focusOutside", Do, Da = f.createContext({
706
707
  layers: /* @__PURE__ */ new Set(),
707
708
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
708
709
  branches: /* @__PURE__ */ new Set()
709
- }), Kr = f.forwardRef(
710
+ }), Xr = f.forwardRef(
710
711
  (e, t) => {
711
712
  const {
712
713
  disableOutsidePointerEvents: n = !1,
@@ -716,22 +717,22 @@ var Sl = "DismissableLayer", Pr = "dismissableLayer.update", Cl = "dismissableLa
716
717
  onInteractOutside: s,
717
718
  onDismiss: i,
718
719
  ...c
719
- } = e, l = f.useContext(Da), [d, m] = f.useState(null), g = d?.ownerDocument ?? globalThis?.document, [, h] = f.useState({}), w = ie(t, (O) => m(O)), p = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), k = p.indexOf(v), C = d ? p.indexOf(d) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, x = C >= k, A = Nl((O) => {
720
+ } = e, l = f.useContext(Da), [d, m] = f.useState(null), g = d?.ownerDocument ?? globalThis?.document, [, h] = f.useState({}), w = ie(t, (O) => m(O)), p = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), E = p.indexOf(v), k = d ? p.indexOf(d) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, S = k >= E, A = Nl((O) => {
720
721
  const T = O.target, z = [...l.branches].some((H) => H.contains(T));
721
- !x || z || (o?.(O), s?.(O), O.defaultPrevented || i?.());
722
+ !S || z || (o?.(O), s?.(O), O.defaultPrevented || i?.());
722
723
  }, g), I = Tl((O) => {
723
724
  const T = O.target;
724
725
  [...l.branches].some((H) => H.contains(T)) || (a?.(O), s?.(O), O.defaultPrevented || i?.());
725
726
  }, g);
726
727
  return xl((O) => {
727
- C === l.layers.size - 1 && (r?.(O), !O.defaultPrevented && i && (O.preventDefault(), i()));
728
+ k === l.layers.size - 1 && (r?.(O), !O.defaultPrevented && i && (O.preventDefault(), i()));
728
729
  }, g), f.useEffect(() => {
729
730
  if (d)
730
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Mo = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), Do(), () => {
731
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Mo);
731
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Do = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), Io(), () => {
732
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Do);
732
733
  };
733
734
  }, [d, g, n, l]), f.useEffect(() => () => {
734
- d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), Do());
735
+ d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), Io());
735
736
  }, [d, l]), f.useEffect(() => {
736
737
  const O = () => h({});
737
738
  return document.addEventListener(Pr, O), () => document.removeEventListener(Pr, O);
@@ -741,7 +742,7 @@ var Sl = "DismissableLayer", Pr = "dismissableLayer.update", Cl = "dismissableLa
741
742
  ...c,
742
743
  ref: w,
743
744
  style: {
744
- pointerEvents: E ? x ? "auto" : "none" : void 0,
745
+ pointerEvents: x ? S ? "auto" : "none" : void 0,
745
746
  ...e.style
746
747
  },
747
748
  onFocusCapture: J(e.onFocusCapture, I.onFocusCapture),
@@ -754,7 +755,7 @@ var Sl = "DismissableLayer", Pr = "dismissableLayer.update", Cl = "dismissableLa
754
755
  );
755
756
  }
756
757
  );
757
- Kr.displayName = Sl;
758
+ Xr.displayName = Sl;
758
759
  var kl = "DismissableLayerBranch", Al = f.forwardRef((e, t) => {
759
760
  const n = f.useContext(Da), r = f.useRef(null), o = ie(t, r);
760
761
  return f.useEffect(() => {
@@ -810,7 +811,7 @@ function Tl(e, t = globalThis?.document) {
810
811
  onBlurCapture: () => r.current = !1
811
812
  };
812
813
  }
813
- function Do() {
814
+ function Io() {
814
815
  const e = new CustomEvent(Pr);
815
816
  document.dispatchEvent(e);
816
817
  }
@@ -822,12 +823,12 @@ var cr = 0;
822
823
  function La() {
823
824
  f.useEffect(() => {
824
825
  const e = document.querySelectorAll("[data-radix-focus-guard]");
825
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Io()), document.body.insertAdjacentElement("beforeend", e[1] ?? Io()), cr++, () => {
826
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Lo()), document.body.insertAdjacentElement("beforeend", e[1] ?? Lo()), cr++, () => {
826
827
  cr === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), cr--;
827
828
  };
828
829
  }, []);
829
830
  }
830
- function Io() {
831
+ function Lo() {
831
832
  const e = document.createElement("span");
832
833
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
833
834
  }
@@ -855,7 +856,7 @@ var Pl = [
855
856
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(c, { ...i, ref: a });
856
857
  });
857
858
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
858
- }, {}), lr = "focusScope.autoFocusOnMount", ur = "focusScope.autoFocusOnUnmount", Lo = { bubbles: !1, cancelable: !0 }, Ol = "FocusScope", Xr = f.forwardRef((e, t) => {
859
+ }, {}), lr = "focusScope.autoFocusOnMount", ur = "focusScope.autoFocusOnUnmount", Fo = { bubbles: !1, cancelable: !0 }, Ol = "FocusScope", Qr = f.forwardRef((e, t) => {
859
860
  const {
860
861
  loop: n = !1,
861
862
  trapped: r = !1,
@@ -873,37 +874,37 @@ var Pl = [
873
874
  }).current;
874
875
  f.useEffect(() => {
875
876
  if (r) {
876
- let p = function(E) {
877
+ let p = function(x) {
877
878
  if (h.paused || !i) return;
878
- const x = E.target;
879
- i.contains(x) ? m.current = x : Je(m.current, { select: !0 });
880
- }, v = function(E) {
879
+ const S = x.target;
880
+ i.contains(S) ? m.current = S : Je(m.current, { select: !0 });
881
+ }, v = function(x) {
881
882
  if (h.paused || !i) return;
882
- const x = E.relatedTarget;
883
- x !== null && (i.contains(x) || Je(m.current, { select: !0 }));
884
- }, k = function(E) {
883
+ const S = x.relatedTarget;
884
+ S !== null && (i.contains(S) || Je(m.current, { select: !0 }));
885
+ }, E = function(x) {
885
886
  if (document.activeElement === document.body)
886
- for (const A of E)
887
+ for (const A of x)
887
888
  A.removedNodes.length > 0 && Je(i);
888
889
  };
889
890
  document.addEventListener("focusin", p), document.addEventListener("focusout", v);
890
- const C = new MutationObserver(k);
891
- return i && C.observe(i, { childList: !0, subtree: !0 }), () => {
892
- document.removeEventListener("focusin", p), document.removeEventListener("focusout", v), C.disconnect();
891
+ const k = new MutationObserver(E);
892
+ return i && k.observe(i, { childList: !0, subtree: !0 }), () => {
893
+ document.removeEventListener("focusin", p), document.removeEventListener("focusout", v), k.disconnect();
893
894
  };
894
895
  }
895
896
  }, [r, i, h.paused]), f.useEffect(() => {
896
897
  if (i) {
897
- $o.add(h);
898
+ Wo.add(h);
898
899
  const p = document.activeElement;
899
900
  if (!i.contains(p)) {
900
- const k = new CustomEvent(lr, Lo);
901
- i.addEventListener(lr, l), i.dispatchEvent(k), k.defaultPrevented || (_l(Fl(Fa(i)), { select: !0 }), document.activeElement === p && Je(i));
901
+ const E = new CustomEvent(lr, Fo);
902
+ i.addEventListener(lr, l), i.dispatchEvent(E), E.defaultPrevented || (_l(Fl(Fa(i)), { select: !0 }), document.activeElement === p && Je(i));
902
903
  }
903
904
  return () => {
904
905
  i.removeEventListener(lr, l), setTimeout(() => {
905
- const k = new CustomEvent(ur, Lo);
906
- i.addEventListener(ur, d), i.dispatchEvent(k), k.defaultPrevented || Je(p ?? document.body, { select: !0 }), i.removeEventListener(ur, d), $o.remove(h);
906
+ const E = new CustomEvent(ur, Fo);
907
+ i.addEventListener(ur, d), i.dispatchEvent(E), E.defaultPrevented || Je(p ?? document.body, { select: !0 }), i.removeEventListener(ur, d), Wo.remove(h);
907
908
  }, 0);
908
909
  };
909
910
  }
@@ -911,24 +912,24 @@ var Pl = [
911
912
  const w = f.useCallback(
912
913
  (p) => {
913
914
  if (!n && !r || h.paused) return;
914
- const v = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, k = document.activeElement;
915
- if (v && k) {
916
- const C = p.currentTarget, [E, x] = Ml(C);
917
- E && x ? !p.shiftKey && k === x ? (p.preventDefault(), n && Je(E, { select: !0 })) : p.shiftKey && k === E && (p.preventDefault(), n && Je(x, { select: !0 })) : k === C && p.preventDefault();
915
+ const v = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, E = document.activeElement;
916
+ if (v && E) {
917
+ const k = p.currentTarget, [x, S] = Ml(k);
918
+ x && S ? !p.shiftKey && E === S ? (p.preventDefault(), n && Je(x, { select: !0 })) : p.shiftKey && E === x && (p.preventDefault(), n && Je(S, { select: !0 })) : E === k && p.preventDefault();
918
919
  }
919
920
  },
920
921
  [n, r, h.paused]
921
922
  );
922
923
  return /* @__PURE__ */ u(Rl.div, { tabIndex: -1, ...s, ref: g, onKeyDown: w });
923
924
  });
924
- Xr.displayName = Ol;
925
+ Qr.displayName = Ol;
925
926
  function _l(e, { select: t = !1 } = {}) {
926
927
  const n = document.activeElement;
927
928
  for (const r of e)
928
929
  if (Je(r, { select: t }), document.activeElement !== n) return;
929
930
  }
930
931
  function Ml(e) {
931
- const t = Fa(e), n = Fo(t, e), r = Fo(t.reverse(), e);
932
+ const t = Fa(e), n = $o(t, e), r = $o(t.reverse(), e);
932
933
  return [n, r];
933
934
  }
934
935
  function Fa(e) {
@@ -941,7 +942,7 @@ function Fa(e) {
941
942
  for (; n.nextNode(); ) t.push(n.currentNode);
942
943
  return t;
943
944
  }
944
- function Fo(e, t) {
945
+ function $o(e, t) {
945
946
  for (const n of e)
946
947
  if (!Dl(n, { upTo: t })) return n;
947
948
  }
@@ -963,20 +964,20 @@ function Je(e, { select: t = !1 } = {}) {
963
964
  e.focus({ preventScroll: !0 }), e !== n && Il(e) && t && e.select();
964
965
  }
965
966
  }
966
- var $o = Ll();
967
+ var Wo = Ll();
967
968
  function Ll() {
968
969
  let e = [];
969
970
  return {
970
971
  add(t) {
971
972
  const n = e[0];
972
- t !== n && n?.pause(), e = Wo(e, t), e.unshift(t);
973
+ t !== n && n?.pause(), e = zo(e, t), e.unshift(t);
973
974
  },
974
975
  remove(t) {
975
- e = Wo(e, t), e[0]?.resume();
976
+ e = zo(e, t), e[0]?.resume();
976
977
  }
977
978
  };
978
979
  }
979
- function Wo(e, t) {
980
+ function zo(e, t) {
980
981
  const n = [...e], r = n.indexOf(t);
981
982
  return r !== -1 && n.splice(r, 1), n;
982
983
  }
@@ -1016,22 +1017,22 @@ function Xe(e) {
1016
1017
  function Ot(e) {
1017
1018
  return e.split("-")[1];
1018
1019
  }
1019
- function Qr(e) {
1020
+ function Zr(e) {
1020
1021
  return e === "x" ? "y" : "x";
1021
1022
  }
1022
- function Zr(e) {
1023
+ function Jr(e) {
1023
1024
  return e === "y" ? "height" : "width";
1024
1025
  }
1025
1026
  const Ul = /* @__PURE__ */ new Set(["top", "bottom"]);
1026
1027
  function ze(e) {
1027
1028
  return Ul.has(Xe(e)) ? "y" : "x";
1028
1029
  }
1029
- function Jr(e) {
1030
- return Qr(ze(e));
1030
+ function eo(e) {
1031
+ return Zr(ze(e));
1031
1032
  }
1032
1033
  function jl(e, t, n) {
1033
1034
  n === void 0 && (n = !1);
1034
- const r = Ot(e), o = Jr(e), a = Zr(o);
1035
+ const r = Ot(e), o = eo(e), a = Jr(o);
1035
1036
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1036
1037
  return t.reference[a] > t.floating[a] && (s = kn(s)), [s, kn(s)];
1037
1038
  }
@@ -1042,12 +1043,12 @@ function Vl(e) {
1042
1043
  function Or(e) {
1043
1044
  return e.replace(/start|end/g, (t) => Hl[t]);
1044
1045
  }
1045
- const zo = ["left", "right"], Bo = ["right", "left"], Gl = ["top", "bottom"], Yl = ["bottom", "top"];
1046
+ const Bo = ["left", "right"], Ho = ["right", "left"], Gl = ["top", "bottom"], Yl = ["bottom", "top"];
1046
1047
  function ql(e, t, n) {
1047
1048
  switch (e) {
1048
1049
  case "top":
1049
1050
  case "bottom":
1050
- return n ? t ? Bo : zo : t ? zo : Bo;
1051
+ return n ? t ? Ho : Bo : t ? Bo : Ho;
1051
1052
  case "left":
1052
1053
  case "right":
1053
1054
  return t ? Gl : Yl;
@@ -1098,12 +1099,12 @@ function An(e) {
1098
1099
  y: n
1099
1100
  };
1100
1101
  }
1101
- function Ho(e, t, n) {
1102
+ function Uo(e, t, n) {
1102
1103
  let {
1103
1104
  reference: r,
1104
1105
  floating: o
1105
1106
  } = e;
1106
- const a = ze(t), s = Jr(t), i = Zr(s), c = Xe(t), l = a === "y", d = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, g = r[i] / 2 - o[i] / 2;
1107
+ const a = ze(t), s = eo(t), i = Jr(s), c = Xe(t), l = a === "y", d = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, g = r[i] / 2 - o[i] / 2;
1107
1108
  let h;
1108
1109
  switch (c) {
1109
1110
  case "top":
@@ -1160,17 +1161,17 @@ const Ql = async (e, t, n) => {
1160
1161
  }), {
1161
1162
  x: d,
1162
1163
  y: m
1163
- } = Ho(l, r, c), g = r, h = {}, w = 0;
1164
+ } = Uo(l, r, c), g = r, h = {}, w = 0;
1164
1165
  for (let p = 0; p < i.length; p++) {
1165
1166
  const {
1166
1167
  name: v,
1167
- fn: k
1168
+ fn: E
1168
1169
  } = i[p], {
1169
- x: C,
1170
- y: E,
1171
- data: x,
1170
+ x: k,
1171
+ y: x,
1172
+ data: S,
1172
1173
  reset: A
1173
- } = await k({
1174
+ } = await E({
1174
1175
  x: d,
1175
1176
  y: m,
1176
1177
  initialPlacement: r,
@@ -1184,11 +1185,11 @@ const Ql = async (e, t, n) => {
1184
1185
  floating: t
1185
1186
  }
1186
1187
  });
1187
- d = C ?? d, m = E ?? m, h = {
1188
+ d = k ?? d, m = x ?? m, h = {
1188
1189
  ...h,
1189
1190
  [v]: {
1190
1191
  ...h[v],
1191
- ...x
1192
+ ...S
1192
1193
  }
1193
1194
  }, A && w <= 50 && (w++, typeof A == "object" && (A.placement && (g = A.placement), A.rects && (l = A.rects === !0 ? await s.getElementRects({
1194
1195
  reference: e,
@@ -1197,7 +1198,7 @@ const Ql = async (e, t, n) => {
1197
1198
  }) : A.rects), {
1198
1199
  x: d,
1199
1200
  y: m
1200
- } = Ho(l, g, c)), p = -1);
1201
+ } = Uo(l, g, c)), p = -1);
1201
1202
  }
1202
1203
  return {
1203
1204
  x: d,
@@ -1223,17 +1224,17 @@ async function qt(e, t) {
1223
1224
  elementContext: m = "floating",
1224
1225
  altBoundary: g = !1,
1225
1226
  padding: h = 0
1226
- } = Ke(t, e), w = $a(h), v = i[g ? m === "floating" ? "reference" : "floating" : m], k = An(await a.getClippingRect({
1227
+ } = Ke(t, e), w = $a(h), v = i[g ? m === "floating" ? "reference" : "floating" : m], E = An(await a.getClippingRect({
1227
1228
  element: (n = await (a.isElement == null ? void 0 : a.isElement(v))) == null || n ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
1228
1229
  boundary: l,
1229
1230
  rootBoundary: d,
1230
1231
  strategy: c
1231
- })), C = m === "floating" ? {
1232
+ })), k = m === "floating" ? {
1232
1233
  x: r,
1233
1234
  y: o,
1234
1235
  width: s.floating.width,
1235
1236
  height: s.floating.height
1236
- } : s.reference, E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(i.floating)), x = await (a.isElement == null ? void 0 : a.isElement(E)) ? await (a.getScale == null ? void 0 : a.getScale(E)) || {
1237
+ } : s.reference, x = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(i.floating)), S = await (a.isElement == null ? void 0 : a.isElement(x)) ? await (a.getScale == null ? void 0 : a.getScale(x)) || {
1237
1238
  x: 1,
1238
1239
  y: 1
1239
1240
  } : {
@@ -1241,15 +1242,15 @@ async function qt(e, t) {
1241
1242
  y: 1
1242
1243
  }, A = An(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
1243
1244
  elements: i,
1244
- rect: C,
1245
- offsetParent: E,
1245
+ rect: k,
1246
+ offsetParent: x,
1246
1247
  strategy: c
1247
- }) : C);
1248
+ }) : k);
1248
1249
  return {
1249
- top: (k.top - A.top + w.top) / x.y,
1250
- bottom: (A.bottom - k.bottom + w.bottom) / x.y,
1251
- left: (k.left - A.left + w.left) / x.x,
1252
- right: (A.right - k.right + w.right) / x.x
1250
+ top: (E.top - A.top + w.top) / S.y,
1251
+ bottom: (A.bottom - E.bottom + w.bottom) / S.y,
1252
+ left: (E.left - A.left + w.left) / S.x,
1253
+ right: (A.right - E.right + w.right) / S.x
1253
1254
  };
1254
1255
  }
1255
1256
  const Zl = (e) => ({
@@ -1273,10 +1274,10 @@ const Zl = (e) => ({
1273
1274
  const m = $a(d), g = {
1274
1275
  x: n,
1275
1276
  y: r
1276
- }, h = Jr(o), w = Zr(h), p = await s.getDimensions(l), v = h === "y", k = v ? "top" : "left", C = v ? "bottom" : "right", E = v ? "clientHeight" : "clientWidth", x = a.reference[w] + a.reference[h] - g[h] - a.floating[w], A = g[h] - a.reference[h], I = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1277
- let O = I ? I[E] : 0;
1278
- (!O || !await (s.isElement == null ? void 0 : s.isElement(I))) && (O = i.floating[E] || a.floating[w]);
1279
- const T = x / 2 - A / 2, z = O / 2 - p[w] / 2 - 1, H = tt(m[k], z), V = tt(m[C], z), q = H, y = O - p[w] - V, N = O / 2 - p[w] / 2 + T, R = Rr(q, N, y), P = !c.arrow && Ot(o) != null && N !== R && a.reference[w] / 2 - (N < q ? H : V) - p[w] / 2 < 0, _ = P ? N < q ? N - q : N - y : 0;
1277
+ }, h = eo(o), w = Jr(h), p = await s.getDimensions(l), v = h === "y", E = v ? "top" : "left", k = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", S = a.reference[w] + a.reference[h] - g[h] - a.floating[w], A = g[h] - a.reference[h], I = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1278
+ let O = I ? I[x] : 0;
1279
+ (!O || !await (s.isElement == null ? void 0 : s.isElement(I))) && (O = i.floating[x] || a.floating[w]);
1280
+ const T = S / 2 - A / 2, z = O / 2 - p[w] / 2 - 1, H = tt(m[E], z), V = tt(m[k], z), q = H, y = O - p[w] - V, N = O / 2 - p[w] / 2 + T, R = Rr(q, N, y), P = !c.arrow && Ot(o) != null && N !== R && a.reference[w] / 2 - (N < q ? H : V) - p[w] / 2 < 0, _ = P ? N < q ? N - q : N - y : 0;
1280
1281
  return {
1281
1282
  [h]: g[h] + _,
1282
1283
  data: {
@@ -1313,12 +1314,12 @@ const Zl = (e) => ({
1313
1314
  } = Ke(e, t);
1314
1315
  if ((n = a.arrow) != null && n.alignmentOffset)
1315
1316
  return {};
1316
- const k = Xe(o), C = ze(i), E = Xe(i) === i, x = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), A = g || (E || !p ? [kn(i)] : Vl(i)), I = w !== "none";
1317
- !g && I && A.push(...Kl(i, p, w, x));
1317
+ const E = Xe(o), k = ze(i), x = Xe(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), A = g || (x || !p ? [kn(i)] : Vl(i)), I = w !== "none";
1318
+ !g && I && A.push(...Kl(i, p, w, S));
1318
1319
  const O = [i, ...A], T = await qt(t, v), z = [];
1319
1320
  let H = ((r = a.flip) == null ? void 0 : r.overflows) || [];
1320
- if (d && z.push(T[k]), m) {
1321
- const N = jl(o, s, x);
1321
+ if (d && z.push(T[E]), m) {
1322
+ const N = jl(o, s, S);
1322
1323
  z.push(T[N[0]], T[N[1]]);
1323
1324
  }
1324
1325
  if (H = [...H, {
@@ -1327,9 +1328,9 @@ const Zl = (e) => ({
1327
1328
  }], !z.every((N) => N <= 0)) {
1328
1329
  var V, q;
1329
1330
  const N = (((V = a.flip) == null ? void 0 : V.index) || 0) + 1, R = O[N];
1330
- if (R && (!(m === "alignment" ? C !== ze(R) : !1) || // We leave the current main axis only if every placement on that axis
1331
+ if (R && (!(m === "alignment" ? k !== ze(R) : !1) || // We leave the current main axis only if every placement on that axis
1331
1332
  // overflows the main axis.
1332
- H.every((S) => ze(S.placement) === C ? S.overflows[0] > 0 : !0)))
1333
+ H.every((C) => ze(C.placement) === k ? C.overflows[0] > 0 : !0)))
1333
1334
  return {
1334
1335
  data: {
1335
1336
  index: N,
@@ -1339,20 +1340,20 @@ const Zl = (e) => ({
1339
1340
  placement: R
1340
1341
  }
1341
1342
  };
1342
- let P = (q = H.filter((_) => _.overflows[0] <= 0).sort((_, S) => _.overflows[1] - S.overflows[1])[0]) == null ? void 0 : q.placement;
1343
+ let P = (q = H.filter((_) => _.overflows[0] <= 0).sort((_, C) => _.overflows[1] - C.overflows[1])[0]) == null ? void 0 : q.placement;
1343
1344
  if (!P)
1344
1345
  switch (h) {
1345
1346
  case "bestFit": {
1346
1347
  var y;
1347
- const _ = (y = H.filter((S) => {
1348
+ const _ = (y = H.filter((C) => {
1348
1349
  if (I) {
1349
- const L = ze(S.placement);
1350
- return L === C || // Create a bias to the `y` side axis due to horizontal
1350
+ const L = ze(C.placement);
1351
+ return L === k || // Create a bias to the `y` side axis due to horizontal
1351
1352
  // reading directions favoring greater width.
1352
1353
  L === "y";
1353
1354
  }
1354
1355
  return !0;
1355
- }).map((S) => [S.placement, S.overflows.filter((L) => L > 0).reduce((L, U) => L + U, 0)]).sort((S, L) => S[1] - L[1])[0]) == null ? void 0 : y[0];
1356
+ }).map((C) => [C.placement, C.overflows.filter((L) => L > 0).reduce((L, U) => L + U, 0)]).sort((C, L) => C[1] - L[1])[0]) == null ? void 0 : y[0];
1356
1357
  _ && (P = _);
1357
1358
  break;
1358
1359
  }
@@ -1371,7 +1372,7 @@ const Zl = (e) => ({
1371
1372
  }
1372
1373
  };
1373
1374
  };
1374
- function Uo(e, t) {
1375
+ function jo(e, t) {
1375
1376
  return {
1376
1377
  top: e.top - t.height,
1377
1378
  right: e.right - t.width,
@@ -1379,7 +1380,7 @@ function Uo(e, t) {
1379
1380
  left: e.left - t.width
1380
1381
  };
1381
1382
  }
1382
- function jo(e) {
1383
+ function Vo(e) {
1383
1384
  return zl.some((t) => e[t] >= 0);
1384
1385
  }
1385
1386
  const eu = function(e) {
@@ -1398,11 +1399,11 @@ const eu = function(e) {
1398
1399
  const a = await qt(t, {
1399
1400
  ...o,
1400
1401
  elementContext: "reference"
1401
- }), s = Uo(a, n.reference);
1402
+ }), s = jo(a, n.reference);
1402
1403
  return {
1403
1404
  data: {
1404
1405
  referenceHiddenOffsets: s,
1405
- referenceHidden: jo(s)
1406
+ referenceHidden: Vo(s)
1406
1407
  }
1407
1408
  };
1408
1409
  }
@@ -1410,11 +1411,11 @@ const eu = function(e) {
1410
1411
  const a = await qt(t, {
1411
1412
  ...o,
1412
1413
  altBoundary: !0
1413
- }), s = Uo(a, n.floating);
1414
+ }), s = jo(a, n.floating);
1414
1415
  return {
1415
1416
  data: {
1416
1417
  escapedOffsets: s,
1417
- escaped: jo(s)
1418
+ escaped: Vo(s)
1418
1419
  }
1419
1420
  };
1420
1421
  }
@@ -1488,12 +1489,12 @@ const nu = function(e) {
1488
1489
  limiter: i = {
1489
1490
  fn: (v) => {
1490
1491
  let {
1491
- x: k,
1492
- y: C
1492
+ x: E,
1493
+ y: k
1493
1494
  } = v;
1494
1495
  return {
1495
- x: k,
1496
- y: C
1496
+ x: E,
1497
+ y: k
1497
1498
  };
1498
1499
  }
1499
1500
  },
@@ -1501,15 +1502,15 @@ const nu = function(e) {
1501
1502
  } = Ke(e, t), l = {
1502
1503
  x: n,
1503
1504
  y: r
1504
- }, d = await qt(t, c), m = ze(Xe(o)), g = Qr(m);
1505
+ }, d = await qt(t, c), m = ze(Xe(o)), g = Zr(m);
1505
1506
  let h = l[g], w = l[m];
1506
1507
  if (a) {
1507
- const v = g === "y" ? "top" : "left", k = g === "y" ? "bottom" : "right", C = h + d[v], E = h - d[k];
1508
- h = Rr(C, h, E);
1508
+ const v = g === "y" ? "top" : "left", E = g === "y" ? "bottom" : "right", k = h + d[v], x = h - d[E];
1509
+ h = Rr(k, h, x);
1509
1510
  }
1510
1511
  if (s) {
1511
- const v = m === "y" ? "top" : "left", k = m === "y" ? "bottom" : "right", C = w + d[v], E = w - d[k];
1512
- w = Rr(C, w, E);
1512
+ const v = m === "y" ? "top" : "left", E = m === "y" ? "bottom" : "right", k = w + d[v], x = w - d[E];
1513
+ w = Rr(k, w, x);
1513
1514
  }
1514
1515
  const p = i.fn({
1515
1516
  ...t,
@@ -1546,7 +1547,7 @@ const nu = function(e) {
1546
1547
  } = Ke(e, t), d = {
1547
1548
  x: n,
1548
1549
  y: r
1549
- }, m = ze(o), g = Qr(m);
1550
+ }, m = ze(o), g = Zr(m);
1550
1551
  let h = d[g], w = d[m];
1551
1552
  const p = Ke(i, t), v = typeof p == "number" ? {
1552
1553
  mainAxis: p,
@@ -1557,12 +1558,12 @@ const nu = function(e) {
1557
1558
  ...p
1558
1559
  };
1559
1560
  if (c) {
1560
- const E = g === "y" ? "height" : "width", x = a.reference[g] - a.floating[E] + v.mainAxis, A = a.reference[g] + a.reference[E] - v.mainAxis;
1561
- h < x ? h = x : h > A && (h = A);
1561
+ const x = g === "y" ? "height" : "width", S = a.reference[g] - a.floating[x] + v.mainAxis, A = a.reference[g] + a.reference[x] - v.mainAxis;
1562
+ h < S ? h = S : h > A && (h = A);
1562
1563
  }
1563
1564
  if (l) {
1564
- var k, C;
1565
- const E = g === "y" ? "width" : "height", x = Wa.has(Xe(o)), A = a.reference[m] - a.floating[E] + (x && ((k = s.offset) == null ? void 0 : k[m]) || 0) + (x ? 0 : v.crossAxis), I = a.reference[m] + a.reference[E] + (x ? 0 : ((C = s.offset) == null ? void 0 : C[m]) || 0) - (x ? v.crossAxis : 0);
1565
+ var E, k;
1566
+ const x = g === "y" ? "width" : "height", S = Wa.has(Xe(o)), A = a.reference[m] - a.floating[x] + (S && ((E = s.offset) == null ? void 0 : E[m]) || 0) + (S ? 0 : v.crossAxis), I = a.reference[m] + a.reference[x] + (S ? 0 : ((k = s.offset) == null ? void 0 : k[m]) || 0) - (S ? v.crossAxis : 0);
1566
1567
  w < A ? w = A : w > I && (w = I);
1567
1568
  }
1568
1569
  return {
@@ -1590,11 +1591,11 @@ const nu = function(e) {
1590
1591
  width: w,
1591
1592
  height: p
1592
1593
  } = a.floating;
1593
- let v, k;
1594
- m === "top" || m === "bottom" ? (v = m, k = g === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (k = m, v = g === "end" ? "top" : "bottom");
1595
- const C = p - d.top - d.bottom, E = w - d.left - d.right, x = tt(p - d[v], C), A = tt(w - d[k], E), I = !t.middlewareData.shift;
1596
- let O = x, T = A;
1597
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = E), (r = t.middlewareData.shift) != null && r.enabled.y && (O = C), I && !g) {
1594
+ let v, E;
1595
+ m === "top" || m === "bottom" ? (v = m, E = g === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (E = m, v = g === "end" ? "top" : "bottom");
1596
+ const k = p - d.top - d.bottom, x = w - d.left - d.right, S = tt(p - d[v], k), A = tt(w - d[E], x), I = !t.middlewareData.shift;
1597
+ let O = S, T = A;
1598
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = x), (r = t.middlewareData.shift) != null && r.enabled.y && (O = k), I && !g) {
1598
1599
  const H = Ee(d.left, 0), V = Ee(d.right, 0), q = Ee(d.top, 0), y = Ee(d.bottom, 0);
1599
1600
  h ? T = w - 2 * (H !== 0 || V !== 0 ? H + V : Ee(d.left, d.right)) : O = p - 2 * (q !== 0 || y !== 0 ? q + y : Ee(d.top, d.bottom));
1600
1601
  }
@@ -1635,7 +1636,7 @@ function Me(e) {
1635
1636
  function Ue(e) {
1636
1637
  return Dn() ? e instanceof HTMLElement || e instanceof ke(e).HTMLElement : !1;
1637
1638
  }
1638
- function Vo(e) {
1639
+ function Go(e) {
1639
1640
  return !Dn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ke(e).ShadowRoot;
1640
1641
  }
1641
1642
  const su = /* @__PURE__ */ new Set(["inline", "contents"]);
@@ -1663,14 +1664,14 @@ function In(e) {
1663
1664
  });
1664
1665
  }
1665
1666
  const uu = ["transform", "translate", "scale", "rotate", "perspective"], du = ["transform", "translate", "scale", "rotate", "perspective", "filter"], fu = ["paint", "layout", "strict", "content"];
1666
- function eo(e) {
1667
- const t = to(), n = Me(e) ? De(e) : e;
1667
+ function to(e) {
1668
+ const t = no(), n = Me(e) ? De(e) : e;
1668
1669
  return uu.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) || du.some((r) => (n.willChange || "").includes(r)) || fu.some((r) => (n.contain || "").includes(r));
1669
1670
  }
1670
1671
  function mu(e) {
1671
1672
  let t = nt(e);
1672
1673
  for (; Ue(t) && !Tt(t); ) {
1673
- if (eo(t))
1674
+ if (to(t))
1674
1675
  return t;
1675
1676
  if (In(t))
1676
1677
  return null;
@@ -1678,7 +1679,7 @@ function mu(e) {
1678
1679
  }
1679
1680
  return null;
1680
1681
  }
1681
- function to() {
1682
+ function no() {
1682
1683
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1683
1684
  }
1684
1685
  const pu = /* @__PURE__ */ new Set(["html", "body", "#document"]);
@@ -1704,10 +1705,10 @@ function nt(e) {
1704
1705
  // Step into the shadow DOM of the parent of a slotted node.
1705
1706
  e.assignedSlot || // DOM Element detected.
1706
1707
  e.parentNode || // ShadowRoot detected.
1707
- Vo(e) && e.host || // Fallback.
1708
+ Go(e) && e.host || // Fallback.
1708
1709
  je(e)
1709
1710
  );
1710
- return Vo(t) ? t.host : t;
1711
+ return Go(t) ? t.host : t;
1711
1712
  }
1712
1713
  function Ba(e) {
1713
1714
  const t = nt(e);
@@ -1736,11 +1737,11 @@ function Ha(e) {
1736
1737
  $: i
1737
1738
  };
1738
1739
  }
1739
- function no(e) {
1740
+ function ro(e) {
1740
1741
  return Me(e) ? e : e.contextElement;
1741
1742
  }
1742
1743
  function At(e) {
1743
- const t = no(e);
1744
+ const t = ro(e);
1744
1745
  if (!Ue(t))
1745
1746
  return Be(1);
1746
1747
  const n = t.getBoundingClientRect(), {
@@ -1757,7 +1758,7 @@ function At(e) {
1757
1758
  const hu = /* @__PURE__ */ Be(0);
1758
1759
  function Ua(e) {
1759
1760
  const t = ke(e);
1760
- return !to() || !t.visualViewport ? hu : {
1761
+ return !no() || !t.visualViewport ? hu : {
1761
1762
  x: t.visualViewport.offsetLeft,
1762
1763
  y: t.visualViewport.offsetTop
1763
1764
  };
@@ -1767,7 +1768,7 @@ function gu(e, t, n) {
1767
1768
  }
1768
1769
  function ft(e, t, n, r) {
1769
1770
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1770
- const o = e.getBoundingClientRect(), a = no(e);
1771
+ const o = e.getBoundingClientRect(), a = ro(e);
1771
1772
  let s = Be(1);
1772
1773
  t && (r ? Me(r) && (s = At(r)) : s = At(e));
1773
1774
  const i = gu(a, n, r) ? Ua(a) : Be(0);
@@ -1776,8 +1777,8 @@ function ft(e, t, n, r) {
1776
1777
  const g = ke(a), h = r && Me(r) ? ke(r) : r;
1777
1778
  let w = g, p = _r(w);
1778
1779
  for (; p && r && h !== w; ) {
1779
- const v = At(p), k = p.getBoundingClientRect(), C = De(p), E = k.left + (p.clientLeft + parseFloat(C.paddingLeft)) * v.x, x = k.top + (p.clientTop + parseFloat(C.paddingTop)) * v.y;
1780
- c *= v.x, l *= v.y, d *= v.x, m *= v.y, c += E, l += x, w = ke(p), p = _r(w);
1780
+ const v = At(p), E = p.getBoundingClientRect(), k = De(p), x = E.left + (p.clientLeft + parseFloat(k.paddingLeft)) * v.x, S = E.top + (p.clientTop + parseFloat(k.paddingTop)) * v.y;
1781
+ c *= v.x, l *= v.y, d *= v.x, m *= v.y, c += x, l += S, w = ke(p), p = _r(w);
1781
1782
  }
1782
1783
  }
1783
1784
  return An({
@@ -1839,20 +1840,20 @@ function yu(e) {
1839
1840
  y: i
1840
1841
  };
1841
1842
  }
1842
- const Go = 25;
1843
+ const Yo = 25;
1843
1844
  function wu(e, t) {
1844
1845
  const n = ke(e), r = je(e), o = n.visualViewport;
1845
1846
  let a = r.clientWidth, s = r.clientHeight, i = 0, c = 0;
1846
1847
  if (o) {
1847
1848
  a = o.width, s = o.height;
1848
- const d = to();
1849
+ const d = no();
1849
1850
  (!d || d && t === "fixed") && (i = o.offsetLeft, c = o.offsetTop);
1850
1851
  }
1851
1852
  const l = Fn(r);
1852
1853
  if (l <= 0) {
1853
1854
  const d = r.ownerDocument, m = d.body, g = getComputedStyle(m), h = d.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, w = Math.abs(r.clientWidth - m.clientWidth - h);
1854
- w <= Go && (a -= w);
1855
- } else l <= Go && (a += l);
1855
+ w <= Yo && (a -= w);
1856
+ } else l <= Yo && (a += l);
1856
1857
  return {
1857
1858
  width: a,
1858
1859
  height: s,
@@ -1870,7 +1871,7 @@ function Su(e, t) {
1870
1871
  y: l
1871
1872
  };
1872
1873
  }
1873
- function Yo(e, t, n) {
1874
+ function qo(e, t, n) {
1874
1875
  let r;
1875
1876
  if (t === "viewport")
1876
1877
  r = wu(e, n);
@@ -1901,7 +1902,7 @@ function Cu(e, t) {
1901
1902
  const a = De(e).position === "fixed";
1902
1903
  let s = a ? nt(e) : e;
1903
1904
  for (; Me(s) && !Tt(s); ) {
1904
- const i = De(s), c = eo(s);
1905
+ const i = De(s), c = to(s);
1905
1906
  !c && i.position === "fixed" && (o = null), (a ? !c && !o : !c && i.position === "static" && !!o && xu.has(o.position) || Jt(s) && !c && Va(e, s)) ? r = r.filter((d) => d !== s) : o = i, s = nt(s);
1906
1907
  }
1907
1908
  return t.set(e, r), r;
@@ -1914,9 +1915,9 @@ function Eu(e) {
1914
1915
  strategy: o
1915
1916
  } = e;
1916
1917
  const s = [...n === "clippingAncestors" ? In(t) ? [] : Cu(t, this._c) : [].concat(n), r], i = s[0], c = s.reduce((l, d) => {
1917
- const m = Yo(t, d, o);
1918
+ const m = qo(t, d, o);
1918
1919
  return l.top = Ee(m.top, l.top), l.right = tt(m.right, l.right), l.bottom = tt(m.bottom, l.bottom), l.left = Ee(m.left, l.left), l;
1919
- }, Yo(t, i, o));
1920
+ }, qo(t, i, o));
1920
1921
  return {
1921
1922
  width: c.right - c.left,
1922
1923
  height: c.bottom - c.top,
@@ -1961,7 +1962,7 @@ function Au(e, t, n) {
1961
1962
  function dr(e) {
1962
1963
  return De(e).position === "static";
1963
1964
  }
1964
- function qo(e, t) {
1965
+ function Ko(e, t) {
1965
1966
  if (!Ue(e) || De(e).position === "fixed")
1966
1967
  return null;
1967
1968
  if (t)
@@ -1982,10 +1983,10 @@ function Ga(e, t) {
1982
1983
  }
1983
1984
  return n;
1984
1985
  }
1985
- let r = qo(e, t);
1986
+ let r = Ko(e, t);
1986
1987
  for (; r && cu(r) && dr(r); )
1987
- r = qo(r, t);
1988
- return r && Tt(r) && dr(r) && !eo(r) ? n : r || mu(e) || n;
1988
+ r = Ko(r, t);
1989
+ return r && Tt(r) && dr(r) && !to(r) ? n : r || mu(e) || n;
1989
1990
  }
1990
1991
  const Nu = async function(e) {
1991
1992
  const t = this.getOffsetParent || Ga, n = this.getDimensions, r = await n(e.floating);
@@ -2034,30 +2035,30 @@ function Ru(e, t) {
2034
2035
  } = l;
2035
2036
  if (i || t(), !g || !h)
2036
2037
  return;
2037
- const w = ln(m), p = ln(o.clientWidth - (d + g)), v = ln(o.clientHeight - (m + h)), k = ln(d), E = {
2038
- rootMargin: -w + "px " + -p + "px " + -v + "px " + -k + "px",
2038
+ const w = ln(m), p = ln(o.clientWidth - (d + g)), v = ln(o.clientHeight - (m + h)), E = ln(d), x = {
2039
+ rootMargin: -w + "px " + -p + "px " + -v + "px " + -E + "px",
2039
2040
  threshold: Ee(0, tt(1, c)) || 1
2040
2041
  };
2041
- let x = !0;
2042
+ let S = !0;
2042
2043
  function A(I) {
2043
2044
  const O = I[0].intersectionRatio;
2044
2045
  if (O !== c) {
2045
- if (!x)
2046
+ if (!S)
2046
2047
  return s();
2047
2048
  O ? s(!1, O) : r = setTimeout(() => {
2048
2049
  s(!1, 1e-7);
2049
2050
  }, 1e3);
2050
2051
  }
2051
- O === 1 && !Ya(l, e.getBoundingClientRect()) && s(), x = !1;
2052
+ O === 1 && !Ya(l, e.getBoundingClientRect()) && s(), S = !1;
2052
2053
  }
2053
2054
  try {
2054
2055
  n = new IntersectionObserver(A, {
2055
- ...E,
2056
+ ...x,
2056
2057
  // Handle <iframe>s
2057
2058
  root: o.ownerDocument
2058
2059
  });
2059
2060
  } catch {
2060
- n = new IntersectionObserver(A, E);
2061
+ n = new IntersectionObserver(A, x);
2061
2062
  }
2062
2063
  n.observe(e);
2063
2064
  }
@@ -2071,35 +2072,35 @@ function Ou(e, t, n, r) {
2071
2072
  elementResize: s = typeof ResizeObserver == "function",
2072
2073
  layoutShift: i = typeof IntersectionObserver == "function",
2073
2074
  animationFrame: c = !1
2074
- } = r, l = no(e), d = o || a ? [...l ? Kt(l) : [], ...Kt(t)] : [];
2075
- d.forEach((k) => {
2076
- o && k.addEventListener("scroll", n, {
2075
+ } = r, l = ro(e), d = o || a ? [...l ? Kt(l) : [], ...Kt(t)] : [];
2076
+ d.forEach((E) => {
2077
+ o && E.addEventListener("scroll", n, {
2077
2078
  passive: !0
2078
- }), a && k.addEventListener("resize", n);
2079
+ }), a && E.addEventListener("resize", n);
2079
2080
  });
2080
2081
  const m = l && i ? Ru(l, n) : null;
2081
2082
  let g = -1, h = null;
2082
- s && (h = new ResizeObserver((k) => {
2083
- let [C] = k;
2084
- C && C.target === l && h && (h.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
2085
- var E;
2086
- (E = h) == null || E.observe(t);
2083
+ s && (h = new ResizeObserver((E) => {
2084
+ let [k] = E;
2085
+ k && k.target === l && h && (h.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
2086
+ var x;
2087
+ (x = h) == null || x.observe(t);
2087
2088
  })), n();
2088
2089
  }), l && !c && h.observe(l), h.observe(t));
2089
2090
  let w, p = c ? ft(e) : null;
2090
2091
  c && v();
2091
2092
  function v() {
2092
- const k = ft(e);
2093
- p && !Ya(p, k) && n(), p = k, w = requestAnimationFrame(v);
2093
+ const E = ft(e);
2094
+ p && !Ya(p, E) && n(), p = E, w = requestAnimationFrame(v);
2094
2095
  }
2095
2096
  return n(), () => {
2096
- var k;
2097
- d.forEach((C) => {
2098
- o && C.removeEventListener("scroll", n), a && C.removeEventListener("resize", n);
2099
- }), m?.(), (k = h) == null || k.disconnect(), h = null, c && cancelAnimationFrame(w);
2097
+ var E;
2098
+ d.forEach((k) => {
2099
+ o && k.removeEventListener("scroll", n), a && k.removeEventListener("resize", n);
2100
+ }), m?.(), (E = h) == null || E.disconnect(), h = null, c && cancelAnimationFrame(w);
2100
2101
  };
2101
2102
  }
2102
- const _u = nu, Mu = ru, Du = Jl, Iu = au, Lu = eu, Ko = Zl, Fu = ou, $u = (e, t, n) => {
2103
+ const _u = nu, Mu = ru, Du = Jl, Iu = au, Lu = eu, Xo = Zl, Fu = ou, $u = (e, t, n) => {
2103
2104
  const r = /* @__PURE__ */ new Map(), o = {
2104
2105
  platform: Pu,
2105
2106
  ...n
@@ -2147,7 +2148,7 @@ function Nn(e, t) {
2147
2148
  function qa(e) {
2148
2149
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2149
2150
  }
2150
- function Xo(e, t) {
2151
+ function Qo(e, t) {
2151
2152
  const n = qa(e);
2152
2153
  return Math.round(t * n) / n;
2153
2154
  }
@@ -2180,19 +2181,19 @@ function Bu(e) {
2180
2181
  isPositioned: !1
2181
2182
  }), [g, h] = f.useState(r);
2182
2183
  Nn(g, r) || h(r);
2183
- const [w, p] = f.useState(null), [v, k] = f.useState(null), C = f.useCallback((S) => {
2184
- S !== I.current && (I.current = S, p(S));
2185
- }, []), E = f.useCallback((S) => {
2186
- S !== O.current && (O.current = S, k(S));
2187
- }, []), x = a || w, A = s || v, I = f.useRef(null), O = f.useRef(null), T = f.useRef(d), z = c != null, H = fr(c), V = fr(o), q = fr(l), y = f.useCallback(() => {
2184
+ const [w, p] = f.useState(null), [v, E] = f.useState(null), k = f.useCallback((C) => {
2185
+ C !== I.current && (I.current = C, p(C));
2186
+ }, []), x = f.useCallback((C) => {
2187
+ C !== O.current && (O.current = C, E(C));
2188
+ }, []), S = a || w, A = s || v, I = f.useRef(null), O = f.useRef(null), T = f.useRef(d), z = c != null, H = fr(c), V = fr(o), q = fr(l), y = f.useCallback(() => {
2188
2189
  if (!I.current || !O.current)
2189
2190
  return;
2190
- const S = {
2191
+ const C = {
2191
2192
  placement: t,
2192
2193
  strategy: n,
2193
2194
  middleware: g
2194
2195
  };
2195
- V.current && (S.platform = V.current), $u(I.current, O.current, S).then((L) => {
2196
+ V.current && (C.platform = V.current), $u(I.current, O.current, C).then((L) => {
2196
2197
  const U = {
2197
2198
  ...L,
2198
2199
  // The floating element's position may be recomputed while it's closed
@@ -2207,8 +2208,8 @@ function Bu(e) {
2207
2208
  });
2208
2209
  }, [g, t, n, V, q]);
2209
2210
  yn(() => {
2210
- l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, m((S) => ({
2211
- ...S,
2211
+ l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, m((C) => ({
2212
+ ...C,
2212
2213
  isPositioned: !1
2213
2214
  })));
2214
2215
  }, [l]);
@@ -2216,31 +2217,31 @@ function Bu(e) {
2216
2217
  yn(() => (N.current = !0, () => {
2217
2218
  N.current = !1;
2218
2219
  }), []), yn(() => {
2219
- if (x && (I.current = x), A && (O.current = A), x && A) {
2220
+ if (S && (I.current = S), A && (O.current = A), S && A) {
2220
2221
  if (H.current)
2221
- return H.current(x, A, y);
2222
+ return H.current(S, A, y);
2222
2223
  y();
2223
2224
  }
2224
- }, [x, A, y, H, z]);
2225
+ }, [S, A, y, H, z]);
2225
2226
  const R = f.useMemo(() => ({
2226
2227
  reference: I,
2227
2228
  floating: O,
2228
- setReference: C,
2229
- setFloating: E
2230
- }), [C, E]), P = f.useMemo(() => ({
2231
- reference: x,
2229
+ setReference: k,
2230
+ setFloating: x
2231
+ }), [k, x]), P = f.useMemo(() => ({
2232
+ reference: S,
2232
2233
  floating: A
2233
- }), [x, A]), _ = f.useMemo(() => {
2234
- const S = {
2234
+ }), [S, A]), _ = f.useMemo(() => {
2235
+ const C = {
2235
2236
  position: n,
2236
2237
  left: 0,
2237
2238
  top: 0
2238
2239
  };
2239
2240
  if (!P.floating)
2240
- return S;
2241
- const L = Xo(P.floating, d.x), U = Xo(P.floating, d.y);
2241
+ return C;
2242
+ const L = Qo(P.floating, d.x), U = Qo(P.floating, d.y);
2242
2243
  return i ? {
2243
- ...S,
2244
+ ...C,
2244
2245
  transform: "translate(" + L + "px, " + U + "px)",
2245
2246
  ...qa(P.floating) >= 1.5 && {
2246
2247
  willChange: "transform"
@@ -2271,10 +2272,10 @@ const Hu = (e) => {
2271
2272
  element: r,
2272
2273
  padding: o
2273
2274
  } = typeof e == "function" ? e(n) : e;
2274
- return r && t(r) ? r.current != null ? Ko({
2275
+ return r && t(r) ? r.current != null ? Xo({
2275
2276
  element: r.current,
2276
2277
  padding: o
2277
- }).fn(n) : {} : r ? Ko({
2278
+ }).fn(n) : {} : r ? Xo({
2278
2279
  element: r,
2279
2280
  padding: o
2280
2281
  }).fn(n) : {};
@@ -2389,11 +2390,11 @@ function Qa(e) {
2389
2390
  n(void 0);
2390
2391
  }, [e]), t;
2391
2392
  }
2392
- var ro = "Popper", [Za, $n] = ht(ro), [td, Ja] = Za(ro), es = (e) => {
2393
+ var oo = "Popper", [Za, $n] = ht(oo), [td, Ja] = Za(oo), es = (e) => {
2393
2394
  const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
2394
2395
  return /* @__PURE__ */ u(td, { scope: t, anchor: r, onAnchorChange: o, children: n });
2395
2396
  };
2396
- es.displayName = ro;
2397
+ es.displayName = oo;
2397
2398
  var ts = "PopperAnchor", ns = f.forwardRef(
2398
2399
  (e, t) => {
2399
2400
  const { __scopePopper: n, virtualRef: r, ...o } = e, a = Ja(ts, n), s = f.useRef(null), i = ie(t, s), c = f.useRef(null);
@@ -2404,7 +2405,7 @@ var ts = "PopperAnchor", ns = f.forwardRef(
2404
2405
  }
2405
2406
  );
2406
2407
  ns.displayName = ts;
2407
- var oo = "PopperContent", [nd, rd] = Za(oo), rs = f.forwardRef(
2408
+ var ao = "PopperContent", [nd, rd] = Za(ao), rs = f.forwardRef(
2408
2409
  (e, t) => {
2409
2410
  const {
2410
2411
  __scopePopper: n,
@@ -2421,12 +2422,12 @@ var oo = "PopperContent", [nd, rd] = Za(oo), rs = f.forwardRef(
2421
2422
  updatePositionStrategy: h = "optimized",
2422
2423
  onPlaced: w,
2423
2424
  ...p
2424
- } = e, v = Ja(oo, n), [k, C] = f.useState(null), E = ie(t, (F) => C(F)), [x, A] = f.useState(null), I = Qa(x), O = I?.width ?? 0, T = I?.height ?? 0, z = r + (a !== "center" ? "-" + a : ""), H = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(l) ? l : [l], q = V.length > 0, y = {
2425
+ } = e, v = Ja(ao, n), [E, k] = f.useState(null), x = ie(t, (F) => k(F)), [S, A] = f.useState(null), I = Qa(S), O = I?.width ?? 0, T = I?.height ?? 0, z = r + (a !== "center" ? "-" + a : ""), H = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(l) ? l : [l], q = V.length > 0, y = {
2425
2426
  padding: H,
2426
2427
  boundary: V.filter(ad),
2427
2428
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2428
2429
  altBoundary: q
2429
- }, { refs: N, floatingStyles: R, placement: P, isPositioned: _, middlewareData: S } = Bu({
2430
+ }, { refs: N, floatingStyles: R, placement: P, isPositioned: _, middlewareData: C } = Bu({
2430
2431
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2431
2432
  strategy: "fixed",
2432
2433
  placement: z,
@@ -2452,7 +2453,7 @@ var oo = "PopperContent", [nd, rd] = Za(oo), rs = f.forwardRef(
2452
2453
  fe.setProperty("--radix-popper-available-width", `${le}px`), fe.setProperty("--radix-popper-available-height", `${Z}px`), fe.setProperty("--radix-popper-anchor-width", `${te}px`), fe.setProperty("--radix-popper-anchor-height", `${re}px`);
2453
2454
  }
2454
2455
  }),
2455
- x && Ku({ element: x, padding: i }),
2456
+ S && Ku({ element: S, padding: i }),
2456
2457
  sd({ arrowWidth: O, arrowHeight: T }),
2457
2458
  g && qu({ strategy: "referenceHidden", ...y })
2458
2459
  ]
@@ -2460,10 +2461,10 @@ var oo = "PopperContent", [nd, rd] = Za(oo), rs = f.forwardRef(
2460
2461
  ve(() => {
2461
2462
  _ && G?.();
2462
2463
  }, [_, G]);
2463
- const ce = S.arrow?.x, Y = S.arrow?.y, oe = S.arrow?.centerOffset !== 0, [K, ge] = f.useState();
2464
+ const ce = C.arrow?.x, Y = C.arrow?.y, oe = C.arrow?.centerOffset !== 0, [K, ge] = f.useState();
2464
2465
  return ve(() => {
2465
- k && ge(window.getComputedStyle(k).zIndex);
2466
- }, [k]), /* @__PURE__ */ u(
2466
+ E && ge(window.getComputedStyle(E).zIndex);
2467
+ }, [E]), /* @__PURE__ */ u(
2467
2468
  "div",
2468
2469
  {
2469
2470
  ref: N.setFloating,
@@ -2475,13 +2476,13 @@ var oo = "PopperContent", [nd, rd] = Za(oo), rs = f.forwardRef(
2475
2476
  minWidth: "max-content",
2476
2477
  zIndex: K,
2477
2478
  "--radix-popper-transform-origin": [
2478
- S.transformOrigin?.x,
2479
- S.transformOrigin?.y
2479
+ C.transformOrigin?.x,
2480
+ C.transformOrigin?.y
2480
2481
  ].join(" "),
2481
2482
  // hide the content if using the hide middleware and should be hidden
2482
2483
  // set visibility to hidden and disable pointer events so the UI behaves
2483
2484
  // as if the PopperContent isn't there at all
2484
- ...S.hide?.referenceHidden && {
2485
+ ...C.hide?.referenceHidden && {
2485
2486
  visibility: "hidden",
2486
2487
  pointerEvents: "none"
2487
2488
  }
@@ -2502,7 +2503,7 @@ var oo = "PopperContent", [nd, rd] = Za(oo), rs = f.forwardRef(
2502
2503
  "data-side": L,
2503
2504
  "data-align": U,
2504
2505
  ...p,
2505
- ref: E,
2506
+ ref: x,
2506
2507
  style: {
2507
2508
  ...p.style,
2508
2509
  // if the PopperContent hasn't been placed yet (not all measurements done)
@@ -2517,7 +2518,7 @@ var oo = "PopperContent", [nd, rd] = Za(oo), rs = f.forwardRef(
2517
2518
  );
2518
2519
  }
2519
2520
  );
2520
- rs.displayName = oo;
2521
+ rs.displayName = ao;
2521
2522
  var os = "PopperArrow", od = {
2522
2523
  top: "bottom",
2523
2524
  right: "left",
@@ -2585,7 +2586,7 @@ function ss(e) {
2585
2586
  const [t, n = "center"] = e.split("-");
2586
2587
  return [t, n];
2587
2588
  }
2588
- var is = es, ao = ns, cs = rs, ls = as, id = [
2589
+ var is = es, so = ns, cs = rs, ls = as, id = [
2589
2590
  "a",
2590
2591
  "button",
2591
2592
  "div",
@@ -2609,13 +2610,13 @@ var is = es, ao = ns, cs = rs, ls = as, id = [
2609
2610
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(c, { ...i, ref: a });
2610
2611
  });
2611
2612
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
2612
- }, {}), ld = "Portal", so = f.forwardRef((e, t) => {
2613
+ }, {}), ld = "Portal", io = f.forwardRef((e, t) => {
2613
2614
  const { container: n, ...r } = e, [o, a] = f.useState(!1);
2614
2615
  ve(() => a(!0), []);
2615
2616
  const s = n || o && globalThis?.document?.body;
2616
2617
  return s ? sc.createPortal(/* @__PURE__ */ u(cd.div, { ...r, ref: t }), s) : null;
2617
2618
  });
2618
- so.displayName = ld;
2619
+ io.displayName = ld;
2619
2620
  var ud = [
2620
2621
  "a",
2621
2622
  "button",
@@ -2769,8 +2770,8 @@ var vd = function(e) {
2769
2770
  try {
2770
2771
  var h = g.getAttribute(r), w = h !== null && h !== "false", p = (xt.get(g) || 0) + 1, v = (a.get(g) || 0) + 1;
2771
2772
  xt.set(g, p), a.set(g, v), s.push(g), p === 1 && w && un.set(g, !0), v === 1 && g.setAttribute(n, "true"), w || g.setAttribute(r, "true");
2772
- } catch (k) {
2773
- console.error("aria-hidden: cannot operate on ", g, k);
2773
+ } catch (E) {
2774
+ console.error("aria-hidden: cannot operate on ", g, E);
2774
2775
  }
2775
2776
  });
2776
2777
  };
@@ -2833,7 +2834,7 @@ function Ed(e, t) {
2833
2834
  })[0];
2834
2835
  return n.callback = t, n.facade;
2835
2836
  }
2836
- var kd = typeof window < "u" ? f.useLayoutEffect : f.useEffect, Qo = /* @__PURE__ */ new WeakMap();
2837
+ var kd = typeof window < "u" ? f.useLayoutEffect : f.useEffect, Zo = /* @__PURE__ */ new WeakMap();
2837
2838
  function Ad(e, t) {
2838
2839
  var n = Ed(null, function(r) {
2839
2840
  return e.forEach(function(o) {
@@ -2841,7 +2842,7 @@ function Ad(e, t) {
2841
2842
  });
2842
2843
  });
2843
2844
  return kd(function() {
2844
- var r = Qo.get(n);
2845
+ var r = Zo.get(n);
2845
2846
  if (r) {
2846
2847
  var o = new Set(r), a = new Set(e), s = n.current;
2847
2848
  o.forEach(function(i) {
@@ -2850,7 +2851,7 @@ function Ad(e, t) {
2850
2851
  o.has(i) || pr(i, s);
2851
2852
  });
2852
2853
  }
2853
- Qo.set(n, e);
2854
+ Zo.set(n, e);
2854
2855
  }, [e]), n;
2855
2856
  }
2856
2857
  function Nd(e) {
@@ -2935,12 +2936,12 @@ var gs = Pd(), hr = function() {
2935
2936
  onScrollCapture: hr,
2936
2937
  onWheelCapture: hr,
2937
2938
  onTouchMoveCapture: hr
2938
- }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, m = e.shards, g = e.sideCar, h = e.noRelative, w = e.noIsolation, p = e.inert, v = e.allowPinchZoom, k = e.as, C = k === void 0 ? "div" : k, E = e.gapMode, x = ps(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), A = g, I = Ad([n, t]), O = We(We({}, x), o);
2939
+ }), o = r[0], a = r[1], s = e.forwardProps, i = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, m = e.shards, g = e.sideCar, h = e.noRelative, w = e.noIsolation, p = e.inert, v = e.allowPinchZoom, E = e.as, k = E === void 0 ? "div" : E, x = e.gapMode, S = ps(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), A = g, I = Ad([n, t]), O = We(We({}, S), o);
2939
2940
  return f.createElement(
2940
2941
  f.Fragment,
2941
2942
  null,
2942
- d && f.createElement(A, { sideCar: gs, removeScrollBar: l, shards: m, noRelative: h, noIsolation: w, inert: p, setCallbacks: a, allowPinchZoom: !!v, lockRef: n, gapMode: E }),
2943
- s ? f.cloneElement(f.Children.only(i), We(We({}, O), { ref: I })) : f.createElement(C, We({}, O, { className: c, ref: I }), i)
2943
+ d && f.createElement(A, { sideCar: gs, removeScrollBar: l, shards: m, noRelative: h, noIsolation: w, inert: p, setCallbacks: a, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
2944
+ s ? f.cloneElement(f.Children.only(i), We(We({}, O), { ref: I })) : f.createElement(k, We({}, O, { className: c, ref: I }), i)
2944
2945
  );
2945
2946
  });
2946
2947
  Wn.defaultProps = {
@@ -3060,13 +3061,13 @@ var Id = function() {
3060
3061
  `).concat(Cd, ": ").concat(i, `px;
3061
3062
  }
3062
3063
  `);
3063
- }, Zo = function() {
3064
+ }, Jo = function() {
3064
3065
  var e = parseInt(document.body.getAttribute(Nt) || "0", 10);
3065
3066
  return isFinite(e) ? e : 0;
3066
3067
  }, Hd = function() {
3067
3068
  f.useEffect(function() {
3068
- return document.body.setAttribute(Nt, (Zo() + 1).toString()), function() {
3069
- var e = Zo() - 1;
3069
+ return document.body.setAttribute(Nt, (Jo() + 1).toString()), function() {
3070
+ var e = Jo() - 1;
3070
3071
  e <= 0 ? document.body.removeAttribute(Nt) : document.body.setAttribute(Nt, e.toString());
3071
3072
  };
3072
3073
  }, []);
@@ -3104,7 +3105,7 @@ var St = Mr ? { passive: !1 } : !1, jd = function(e) {
3104
3105
  return vs(e, "overflowY");
3105
3106
  }, Gd = function(e) {
3106
3107
  return vs(e, "overflowX");
3107
- }, Jo = function(e, t) {
3108
+ }, ea = function(e, t) {
3108
3109
  var n = t.ownerDocument, r = t;
3109
3110
  do {
3110
3111
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
@@ -3142,10 +3143,10 @@ var St = Mr ? { passive: !1 } : !1, jd = function(e) {
3142
3143
  do {
3143
3144
  if (!i)
3144
3145
  break;
3145
- var h = ws(e, i), w = h[0], p = h[1], v = h[2], k = p - v - a * w;
3146
- (w || k) && ys(e, i) && (m += k, g += w);
3147
- var C = i.parentNode;
3148
- i = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
3146
+ var h = ws(e, i), w = h[0], p = h[1], v = h[2], E = p - v - a * w;
3147
+ (w || E) && ys(e, i) && (m += E, g += w);
3148
+ var k = i.parentNode;
3149
+ i = k && k.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? k.host : k;
3149
3150
  } while (
3150
3151
  // portaled content
3151
3152
  !c && i !== document.body || // self content
@@ -3154,9 +3155,9 @@ var St = Mr ? { passive: !1 } : !1, jd = function(e) {
3154
3155
  return (d && Math.abs(m) < 1 || !d && Math.abs(g) < 1) && (l = !0), l;
3155
3156
  }, mn = function(e) {
3156
3157
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3157
- }, ea = function(e) {
3158
- return [e.deltaX, e.deltaY];
3159
3158
  }, ta = function(e) {
3159
+ return [e.deltaX, e.deltaY];
3160
+ }, na = function(e) {
3160
3161
  return e && "current" in e ? e.current : e;
3161
3162
  }, Qd = function(e, t) {
3162
3163
  return e[0] === t[0] && e[1] === t[1];
@@ -3173,7 +3174,7 @@ function ef(e) {
3173
3174
  }, [e]), f.useEffect(function() {
3174
3175
  if (e.inert) {
3175
3176
  document.body.classList.add("block-interactivity-".concat(o));
3176
- var p = xd([e.lockRef.current], (e.shards || []).map(ta), !0).filter(Boolean);
3177
+ var p = xd([e.lockRef.current], (e.shards || []).map(na), !0).filter(Boolean);
3177
3178
  return p.forEach(function(v) {
3178
3179
  return v.classList.add("allow-interactivity-".concat(o));
3179
3180
  }), function() {
@@ -3186,46 +3187,46 @@ function ef(e) {
3186
3187
  var i = f.useCallback(function(p, v) {
3187
3188
  if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
3188
3189
  return !s.current.allowPinchZoom;
3189
- var k = mn(p), C = n.current, E = "deltaX" in p ? p.deltaX : C[0] - k[0], x = "deltaY" in p ? p.deltaY : C[1] - k[1], A, I = p.target, O = Math.abs(E) > Math.abs(x) ? "h" : "v";
3190
+ var E = mn(p), k = n.current, x = "deltaX" in p ? p.deltaX : k[0] - E[0], S = "deltaY" in p ? p.deltaY : k[1] - E[1], A, I = p.target, O = Math.abs(x) > Math.abs(S) ? "h" : "v";
3190
3191
  if ("touches" in p && O === "h" && I.type === "range")
3191
3192
  return !1;
3192
- var T = Jo(O, I);
3193
+ var T = ea(O, I);
3193
3194
  if (!T)
3194
3195
  return !0;
3195
- if (T ? A = O : (A = O === "v" ? "h" : "v", T = Jo(O, I)), !T)
3196
+ if (T ? A = O : (A = O === "v" ? "h" : "v", T = ea(O, I)), !T)
3196
3197
  return !1;
3197
- if (!r.current && "changedTouches" in p && (E || x) && (r.current = A), !A)
3198
+ if (!r.current && "changedTouches" in p && (x || S) && (r.current = A), !A)
3198
3199
  return !0;
3199
3200
  var z = r.current || A;
3200
- return Xd(z, v, p, z === "h" ? E : x);
3201
+ return Xd(z, v, p, z === "h" ? x : S);
3201
3202
  }, []), c = f.useCallback(function(p) {
3202
3203
  var v = p;
3203
3204
  if (!(!Ct.length || Ct[Ct.length - 1] !== a)) {
3204
- var k = "deltaY" in v ? ea(v) : mn(v), C = t.current.filter(function(A) {
3205
- return A.name === v.type && (A.target === v.target || v.target === A.shadowParent) && Qd(A.delta, k);
3205
+ var E = "deltaY" in v ? ta(v) : mn(v), k = t.current.filter(function(A) {
3206
+ return A.name === v.type && (A.target === v.target || v.target === A.shadowParent) && Qd(A.delta, E);
3206
3207
  })[0];
3207
- if (C && C.should) {
3208
+ if (k && k.should) {
3208
3209
  v.cancelable && v.preventDefault();
3209
3210
  return;
3210
3211
  }
3211
- if (!C) {
3212
- var E = (s.current.shards || []).map(ta).filter(Boolean).filter(function(A) {
3212
+ if (!k) {
3213
+ var x = (s.current.shards || []).map(na).filter(Boolean).filter(function(A) {
3213
3214
  return A.contains(v.target);
3214
- }), x = E.length > 0 ? i(v, E[0]) : !s.current.noIsolation;
3215
- x && v.cancelable && v.preventDefault();
3215
+ }), S = x.length > 0 ? i(v, x[0]) : !s.current.noIsolation;
3216
+ S && v.cancelable && v.preventDefault();
3216
3217
  }
3217
3218
  }
3218
- }, []), l = f.useCallback(function(p, v, k, C) {
3219
- var E = { name: p, delta: v, target: k, should: C, shadowParent: tf(k) };
3220
- t.current.push(E), setTimeout(function() {
3221
- t.current = t.current.filter(function(x) {
3222
- return x !== E;
3219
+ }, []), l = f.useCallback(function(p, v, E, k) {
3220
+ var x = { name: p, delta: v, target: E, should: k, shadowParent: tf(E) };
3221
+ t.current.push(x), setTimeout(function() {
3222
+ t.current = t.current.filter(function(S) {
3223
+ return S !== x;
3223
3224
  });
3224
3225
  }, 1);
3225
3226
  }, []), d = f.useCallback(function(p) {
3226
3227
  n.current = mn(p), r.current = void 0;
3227
3228
  }, []), m = f.useCallback(function(p) {
3228
- l(p.type, ea(p), p.target, i(p, e.lockRef.current));
3229
+ l(p.type, ta(p), p.target, i(p, e.lockRef.current));
3229
3230
  }, []), g = f.useCallback(function(p) {
3230
3231
  l(p.type, mn(p), p.target, i(p, e.lockRef.current));
3231
3232
  }, []);
@@ -3254,10 +3255,10 @@ function tf(e) {
3254
3255
  return t;
3255
3256
  }
3256
3257
  const nf = Rd(gs, ef);
3257
- var io = f.forwardRef(function(e, t) {
3258
+ var co = f.forwardRef(function(e, t) {
3258
3259
  return f.createElement(Wn, We({}, e, { ref: t, sideCar: nf }));
3259
3260
  });
3260
- io.classNames = Wn.classNames;
3261
+ co.classNames = Wn.classNames;
3261
3262
  var rf = [" ", "Enter", "ArrowUp", "ArrowDown"], of = [" ", "Enter"], mt = "Select", [zn, Bn, af] = _a(mt), [Mt] = ht(mt, [
3262
3263
  af,
3263
3264
  $n
@@ -3277,7 +3278,7 @@ var rf = [" ", "Enter", "ArrowUp", "ArrowDown"], of = [" ", "Enter"], mt = "Sele
3277
3278
  disabled: g,
3278
3279
  required: h,
3279
3280
  form: w
3280
- } = e, p = Hn(t), [v, k] = f.useState(null), [C, E] = f.useState(null), [x, A] = f.useState(!1), I = qr(l), [O, T] = Xt({
3281
+ } = e, p = Hn(t), [v, E] = f.useState(null), [k, x] = f.useState(null), [S, A] = f.useState(!1), I = Kr(l), [O, T] = Xt({
3281
3282
  prop: r,
3282
3283
  defaultProp: o ?? !1,
3283
3284
  onChange: a,
@@ -3294,10 +3295,10 @@ var rf = [" ", "Enter", "ArrowUp", "ArrowDown"], of = [" ", "Enter"], mt = "Sele
3294
3295
  required: h,
3295
3296
  scope: t,
3296
3297
  trigger: v,
3297
- onTriggerChange: k,
3298
- valueNode: C,
3299
- onValueNodeChange: E,
3300
- valueNodeHasChildren: x,
3298
+ onTriggerChange: E,
3299
+ valueNode: k,
3300
+ onValueNodeChange: x,
3301
+ valueNodeHasChildren: S,
3301
3302
  onValueNodeHasChildrenChange: A,
3302
3303
  contentId: Zt(),
3303
3304
  value: z,
@@ -3317,8 +3318,8 @@ var rf = [" ", "Enter", "ArrowUp", "ArrowDown"], of = [" ", "Enter"], mt = "Sele
3317
3318
  }, []),
3318
3319
  onNativeOptionRemove: f.useCallback((P) => {
3319
3320
  N((_) => {
3320
- const S = new Set(_);
3321
- return S.delete(P), S;
3321
+ const C = new Set(_);
3322
+ return C.delete(P), C;
3322
3323
  });
3323
3324
  }, []),
3324
3325
  children: n
@@ -3351,15 +3352,15 @@ xs.displayName = mt;
3351
3352
  var Ss = "SelectTrigger", Cs = f.forwardRef(
3352
3353
  (e, t) => {
3353
3354
  const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = Hn(n), s = ot(Ss, n), i = s.disabled || r, c = ie(t, s.onTriggerChange), l = Bn(n), d = f.useRef("touch"), [m, g, h] = Ys((p) => {
3354
- const v = l().filter((E) => !E.disabled), k = v.find((E) => E.value === s.value), C = qs(v, p, k);
3355
- C !== void 0 && s.onValueChange(C.value);
3355
+ const v = l().filter((x) => !x.disabled), E = v.find((x) => x.value === s.value), k = qs(v, p, E);
3356
+ k !== void 0 && s.onValueChange(k.value);
3356
3357
  }), w = (p) => {
3357
3358
  i || (s.onOpenChange(!0), h()), p && (s.triggerPointerDownPosRef.current = {
3358
3359
  x: Math.round(p.pageX),
3359
3360
  y: Math.round(p.pageY)
3360
3361
  });
3361
3362
  };
3362
- return /* @__PURE__ */ u(ao, { asChild: !0, ...a, children: /* @__PURE__ */ u(
3363
+ return /* @__PURE__ */ u(so, { asChild: !0, ...a, children: /* @__PURE__ */ u(
3363
3364
  Ae.button,
3364
3365
  {
3365
3366
  type: "button",
@@ -3416,7 +3417,7 @@ var uf = "SelectIcon", As = f.forwardRef(
3416
3417
  }
3417
3418
  );
3418
3419
  As.displayName = uf;
3419
- var df = "SelectPortal", Ns = (e) => /* @__PURE__ */ u(so, { asChild: !0, ...e });
3420
+ var df = "SelectPortal", Ns = (e) => /* @__PURE__ */ u(io, { asChild: !0, ...e });
3420
3421
  Ns.displayName = df;
3421
3422
  var pt = "SelectContent", Ts = f.forwardRef(
3422
3423
  (e, t) => {
@@ -3455,13 +3456,13 @@ var Oe = 10, [Ps, at] = Mt(pt), ff = "SelectContentImpl", mf = /* @__PURE__ */ C
3455
3456
  hideWhenDetached: p,
3456
3457
  avoidCollisions: v,
3457
3458
  //
3458
- ...k
3459
- } = e, C = ot(pt, n), [E, x] = f.useState(null), [A, I] = f.useState(null), O = ie(t, (F) => x(F)), [T, z] = f.useState(null), [H, V] = f.useState(
3459
+ ...E
3460
+ } = e, k = ot(pt, n), [x, S] = f.useState(null), [A, I] = f.useState(null), O = ie(t, (F) => S(F)), [T, z] = f.useState(null), [H, V] = f.useState(
3460
3461
  null
3461
3462
  ), q = Bn(n), [y, N] = f.useState(!1), R = f.useRef(!1);
3462
3463
  f.useEffect(() => {
3463
- if (E) return ms(E);
3464
- }, [E]), La();
3464
+ if (x) return ms(x);
3465
+ }, [x]), La();
3465
3466
  const P = f.useCallback(
3466
3467
  (F) => {
3467
3468
  const [ee, ...le] = q().map((re) => re.ref.current), [Z] = le.slice(-1), te = document.activeElement;
@@ -3470,15 +3471,15 @@ var Oe = 10, [Ps, at] = Mt(pt), ff = "SelectContentImpl", mf = /* @__PURE__ */ C
3470
3471
  },
3471
3472
  [q, A]
3472
3473
  ), _ = f.useCallback(
3473
- () => P([T, E]),
3474
- [P, T, E]
3474
+ () => P([T, x]),
3475
+ [P, T, x]
3475
3476
  );
3476
3477
  f.useEffect(() => {
3477
3478
  y && _();
3478
3479
  }, [y, _]);
3479
- const { onOpenChange: S, triggerPointerDownPosRef: L } = C;
3480
+ const { onOpenChange: C, triggerPointerDownPosRef: L } = k;
3480
3481
  f.useEffect(() => {
3481
- if (E) {
3482
+ if (x) {
3482
3483
  let F = { x: 0, y: 0 };
3483
3484
  const ee = (Z) => {
3484
3485
  F = {
@@ -3486,33 +3487,33 @@ var Oe = 10, [Ps, at] = Mt(pt), ff = "SelectContentImpl", mf = /* @__PURE__ */ C
3486
3487
  y: Math.abs(Math.round(Z.pageY) - (L.current?.y ?? 0))
3487
3488
  };
3488
3489
  }, le = (Z) => {
3489
- F.x <= 10 && F.y <= 10 ? Z.preventDefault() : E.contains(Z.target) || S(!1), document.removeEventListener("pointermove", ee), L.current = null;
3490
+ F.x <= 10 && F.y <= 10 ? Z.preventDefault() : x.contains(Z.target) || C(!1), document.removeEventListener("pointermove", ee), L.current = null;
3490
3491
  };
3491
3492
  return L.current !== null && (document.addEventListener("pointermove", ee), document.addEventListener("pointerup", le, { capture: !0, once: !0 })), () => {
3492
3493
  document.removeEventListener("pointermove", ee), document.removeEventListener("pointerup", le, { capture: !0 });
3493
3494
  };
3494
3495
  }
3495
- }, [E, S, L]), f.useEffect(() => {
3496
- const F = () => S(!1);
3496
+ }, [x, C, L]), f.useEffect(() => {
3497
+ const F = () => C(!1);
3497
3498
  return window.addEventListener("blur", F), window.addEventListener("resize", F), () => {
3498
3499
  window.removeEventListener("blur", F), window.removeEventListener("resize", F);
3499
3500
  };
3500
- }, [S]);
3501
+ }, [C]);
3501
3502
  const [U, G] = Ys((F) => {
3502
3503
  const ee = q().filter((te) => !te.disabled), le = ee.find((te) => te.ref.current === document.activeElement), Z = qs(ee, F, le);
3503
3504
  Z && setTimeout(() => Z.ref.current.focus());
3504
3505
  }), ce = f.useCallback(
3505
3506
  (F, ee, le) => {
3506
3507
  const Z = !R.current && !le;
3507
- (C.value !== void 0 && C.value === ee || Z) && (z(F), Z && (R.current = !0));
3508
+ (k.value !== void 0 && k.value === ee || Z) && (z(F), Z && (R.current = !0));
3508
3509
  },
3509
- [C.value]
3510
- ), Y = f.useCallback(() => E?.focus(), [E]), oe = f.useCallback(
3510
+ [k.value]
3511
+ ), Y = f.useCallback(() => x?.focus(), [x]), oe = f.useCallback(
3511
3512
  (F, ee, le) => {
3512
3513
  const Z = !R.current && !le;
3513
- (C.value !== void 0 && C.value === ee || Z) && V(F);
3514
+ (k.value !== void 0 && k.value === ee || Z) && V(F);
3514
3515
  },
3515
- [C.value]
3516
+ [k.value]
3516
3517
  ), K = r === "popper" ? Dr : Os, ge = K === Dr ? {
3517
3518
  side: i,
3518
3519
  sideOffset: c,
@@ -3529,7 +3530,7 @@ var Oe = 10, [Ps, at] = Mt(pt), ff = "SelectContentImpl", mf = /* @__PURE__ */ C
3529
3530
  Ps,
3530
3531
  {
3531
3532
  scope: n,
3532
- content: E,
3533
+ content: x,
3533
3534
  viewport: A,
3534
3535
  onViewportChange: I,
3535
3536
  itemRefCallback: ce,
@@ -3541,35 +3542,35 @@ var Oe = 10, [Ps, at] = Mt(pt), ff = "SelectContentImpl", mf = /* @__PURE__ */ C
3541
3542
  position: r,
3542
3543
  isPositioned: y,
3543
3544
  searchRef: U,
3544
- children: /* @__PURE__ */ u(io, { as: mf, allowPinchZoom: !0, children: /* @__PURE__ */ u(
3545
- Xr,
3545
+ children: /* @__PURE__ */ u(co, { as: mf, allowPinchZoom: !0, children: /* @__PURE__ */ u(
3546
+ Qr,
3546
3547
  {
3547
3548
  asChild: !0,
3548
- trapped: C.open,
3549
+ trapped: k.open,
3549
3550
  onMountAutoFocus: (F) => {
3550
3551
  F.preventDefault();
3551
3552
  },
3552
3553
  onUnmountAutoFocus: J(o, (F) => {
3553
- C.trigger?.focus({ preventScroll: !0 }), F.preventDefault();
3554
+ k.trigger?.focus({ preventScroll: !0 }), F.preventDefault();
3554
3555
  }),
3555
3556
  children: /* @__PURE__ */ u(
3556
- Kr,
3557
+ Xr,
3557
3558
  {
3558
3559
  asChild: !0,
3559
3560
  disableOutsidePointerEvents: !0,
3560
3561
  onEscapeKeyDown: a,
3561
3562
  onPointerDownOutside: s,
3562
3563
  onFocusOutside: (F) => F.preventDefault(),
3563
- onDismiss: () => C.onOpenChange(!1),
3564
+ onDismiss: () => k.onOpenChange(!1),
3564
3565
  children: /* @__PURE__ */ u(
3565
3566
  K,
3566
3567
  {
3567
3568
  role: "listbox",
3568
- id: C.contentId,
3569
- "data-state": C.open ? "open" : "closed",
3570
- dir: C.dir,
3569
+ id: k.contentId,
3570
+ "data-state": k.open ? "open" : "closed",
3571
+ dir: k.dir,
3571
3572
  onContextMenu: (F) => F.preventDefault(),
3572
- ...k,
3573
+ ...E,
3573
3574
  ...ge,
3574
3575
  onPlaced: () => N(!0),
3575
3576
  ref: O,
@@ -3579,9 +3580,9 @@ var Oe = 10, [Ps, at] = Mt(pt), ff = "SelectContentImpl", mf = /* @__PURE__ */ C
3579
3580
  flexDirection: "column",
3580
3581
  // reset the outline by default as the content MAY get focused
3581
3582
  outline: "none",
3582
- ...k.style
3583
+ ...E.style
3583
3584
  },
3584
- onKeyDown: J(k.onKeyDown, (F) => {
3585
+ onKeyDown: J(E.onKeyDown, (F) => {
3585
3586
  const ee = F.ctrlKey || F.altKey || F.metaKey;
3586
3587
  if (F.key === "Tab" && F.preventDefault(), !ee && F.key.length === 1 && G(F.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(F.key)) {
3587
3588
  let Z = q().filter((te) => !te.disabled).map((te) => te.ref.current);
@@ -3604,11 +3605,11 @@ var Oe = 10, [Ps, at] = Mt(pt), ff = "SelectContentImpl", mf = /* @__PURE__ */ C
3604
3605
  );
3605
3606
  Rs.displayName = ff;
3606
3607
  var pf = "SelectItemAlignedPosition", Os = f.forwardRef((e, t) => {
3607
- const { __scopeSelect: n, onPlaced: r, ...o } = e, a = ot(pt, n), s = at(pt, n), [i, c] = f.useState(null), [l, d] = f.useState(null), m = ie(t, (O) => d(O)), g = Bn(n), h = f.useRef(!1), w = f.useRef(!0), { viewport: p, selectedItem: v, selectedItemText: k, focusSelectedItem: C } = s, E = f.useCallback(() => {
3608
- if (a.trigger && a.valueNode && i && l && p && v && k) {
3609
- const O = a.trigger.getBoundingClientRect(), T = l.getBoundingClientRect(), z = a.valueNode.getBoundingClientRect(), H = k.getBoundingClientRect();
3608
+ const { __scopeSelect: n, onPlaced: r, ...o } = e, a = ot(pt, n), s = at(pt, n), [i, c] = f.useState(null), [l, d] = f.useState(null), m = ie(t, (O) => d(O)), g = Bn(n), h = f.useRef(!1), w = f.useRef(!0), { viewport: p, selectedItem: v, selectedItemText: E, focusSelectedItem: k } = s, x = f.useCallback(() => {
3609
+ if (a.trigger && a.valueNode && i && l && p && v && E) {
3610
+ const O = a.trigger.getBoundingClientRect(), T = l.getBoundingClientRect(), z = a.valueNode.getBoundingClientRect(), H = E.getBoundingClientRect();
3610
3611
  if (a.dir !== "rtl") {
3611
- const te = H.left - T.left, re = z.left - te, fe = O.left - re, Ne = O.width + fe, Re = Math.max(Ne, T.width), it = window.innerWidth - Oe, ct = Oo(re, [
3612
+ const te = H.left - T.left, re = z.left - te, fe = O.left - re, Ne = O.width + fe, Re = Math.max(Ne, T.width), it = window.innerWidth - Oe, ct = _o(re, [
3612
3613
  Oe,
3613
3614
  // Prevents the content from going off the starting edge of the
3614
3615
  // viewport. It may still go off the ending edge, but this can be
@@ -3619,13 +3620,13 @@ var pf = "SelectItemAlignedPosition", Os = f.forwardRef((e, t) => {
3619
3620
  ]);
3620
3621
  i.style.minWidth = Ne + "px", i.style.left = ct + "px";
3621
3622
  } else {
3622
- const te = T.right - H.right, re = window.innerWidth - z.right - te, fe = window.innerWidth - O.right - re, Ne = O.width + fe, Re = Math.max(Ne, T.width), it = window.innerWidth - Oe, ct = Oo(re, [
3623
+ const te = T.right - H.right, re = window.innerWidth - z.right - te, fe = window.innerWidth - O.right - re, Ne = O.width + fe, Re = Math.max(Ne, T.width), it = window.innerWidth - Oe, ct = _o(re, [
3623
3624
  Oe,
3624
3625
  Math.max(Oe, it - Re)
3625
3626
  ]);
3626
3627
  i.style.minWidth = Ne + "px", i.style.right = ct + "px";
3627
3628
  }
3628
- const V = g(), q = window.innerHeight - Oe * 2, y = p.scrollHeight, N = window.getComputedStyle(l), R = parseInt(N.borderTopWidth, 10), P = parseInt(N.paddingTop, 10), _ = parseInt(N.borderBottomWidth, 10), S = parseInt(N.paddingBottom, 10), L = R + P + y + S + _, U = Math.min(v.offsetHeight * 5, L), G = window.getComputedStyle(p), ce = parseInt(G.paddingTop, 10), Y = parseInt(G.paddingBottom, 10), oe = O.top + O.height / 2 - Oe, K = q - oe, ge = v.offsetHeight / 2, F = v.offsetTop + ge, ee = R + P + F, le = L - ee;
3629
+ const V = g(), q = window.innerHeight - Oe * 2, y = p.scrollHeight, N = window.getComputedStyle(l), R = parseInt(N.borderTopWidth, 10), P = parseInt(N.paddingTop, 10), _ = parseInt(N.borderBottomWidth, 10), C = parseInt(N.paddingBottom, 10), L = R + P + y + C + _, U = Math.min(v.offsetHeight * 5, L), G = window.getComputedStyle(p), ce = parseInt(G.paddingTop, 10), Y = parseInt(G.paddingBottom, 10), oe = O.top + O.height / 2 - Oe, K = q - oe, ge = v.offsetHeight / 2, F = v.offsetTop + ge, ee = R + P + F, le = L - ee;
3629
3630
  if (ee <= oe) {
3630
3631
  const te = V.length > 0 && v === V[V.length - 1].ref.current;
3631
3632
  i.style.bottom = "0px";
@@ -3655,20 +3656,20 @@ var pf = "SelectItemAlignedPosition", Os = f.forwardRef((e, t) => {
3655
3656
  l,
3656
3657
  p,
3657
3658
  v,
3658
- k,
3659
+ E,
3659
3660
  a.dir,
3660
3661
  r
3661
3662
  ]);
3662
- ve(() => E(), [E]);
3663
- const [x, A] = f.useState();
3663
+ ve(() => x(), [x]);
3664
+ const [S, A] = f.useState();
3664
3665
  ve(() => {
3665
3666
  l && A(window.getComputedStyle(l).zIndex);
3666
3667
  }, [l]);
3667
3668
  const I = f.useCallback(
3668
3669
  (O) => {
3669
- O && w.current === !0 && (E(), C?.(), w.current = !1);
3670
+ O && w.current === !0 && (x(), k?.(), w.current = !1);
3670
3671
  },
3671
- [E, C]
3672
+ [x, k]
3672
3673
  );
3673
3674
  return /* @__PURE__ */ u(
3674
3675
  gf,
@@ -3685,7 +3686,7 @@ var pf = "SelectItemAlignedPosition", Os = f.forwardRef((e, t) => {
3685
3686
  display: "flex",
3686
3687
  flexDirection: "column",
3687
3688
  position: "fixed",
3688
- zIndex: x
3689
+ zIndex: S
3689
3690
  },
3690
3691
  children: /* @__PURE__ */ u(
3691
3692
  Ae.div,
@@ -3737,9 +3738,9 @@ var hf = "SelectPopperPosition", Dr = f.forwardRef((e, t) => {
3737
3738
  );
3738
3739
  });
3739
3740
  Dr.displayName = hf;
3740
- var [gf, co] = Mt(pt, {}), Ir = "SelectViewport", _s = f.forwardRef(
3741
+ var [gf, lo] = Mt(pt, {}), Ir = "SelectViewport", _s = f.forwardRef(
3741
3742
  (e, t) => {
3742
- const { __scopeSelect: n, nonce: r, ...o } = e, a = at(Ir, n), s = co(Ir, n), i = ie(t, a.onViewportChange), c = f.useRef(0);
3743
+ const { __scopeSelect: n, nonce: r, ...o } = e, a = at(Ir, n), s = lo(Ir, n), i = ie(t, a.onViewportChange), c = f.useRef(0);
3743
3744
  return /* @__PURE__ */ D(Rt, { children: [
3744
3745
  /* @__PURE__ */ u(
3745
3746
  "style",
@@ -3775,10 +3776,10 @@ var [gf, co] = Mt(pt, {}), Ir = "SelectViewport", _s = f.forwardRef(
3775
3776
  if (g?.current && m) {
3776
3777
  const h = Math.abs(c.current - d.scrollTop);
3777
3778
  if (h > 0) {
3778
- const w = window.innerHeight - Oe * 2, p = parseFloat(m.style.minHeight), v = parseFloat(m.style.height), k = Math.max(p, v);
3779
- if (k < w) {
3780
- const C = k + h, E = Math.min(w, C), x = C - E;
3781
- m.style.height = E + "px", m.style.bottom === "0px" && (d.scrollTop = x > 0 ? x : 0, m.style.justifyContent = "flex-end");
3779
+ const w = window.innerHeight - Oe * 2, p = parseFloat(m.style.minHeight), v = parseFloat(m.style.height), E = Math.max(p, v);
3780
+ if (E < w) {
3781
+ const k = E + h, x = Math.min(w, k), S = k - x;
3782
+ m.style.height = x + "px", m.style.bottom === "0px" && (d.scrollTop = S > 0 ? S : 0, m.style.justifyContent = "flex-end");
3782
3783
  }
3783
3784
  }
3784
3785
  }
@@ -3814,8 +3815,8 @@ var Tn = "SelectItem", [yf, Fs] = Mt(Tn), $s = f.forwardRef(
3814
3815
  ...s
3815
3816
  } = e, i = ot(Tn, n), c = at(Tn, n), l = i.value === r, [d, m] = f.useState(a ?? ""), [g, h] = f.useState(!1), w = ie(
3816
3817
  t,
3817
- (C) => c.itemRefCallback?.(C, r, o)
3818
- ), p = Zt(), v = f.useRef("touch"), k = () => {
3818
+ (k) => c.itemRefCallback?.(k, r, o)
3819
+ ), p = Zt(), v = f.useRef("touch"), E = () => {
3819
3820
  o || (i.onValueChange(r), i.onOpenChange(!1));
3820
3821
  };
3821
3822
  if (r === "")
@@ -3830,8 +3831,8 @@ var Tn = "SelectItem", [yf, Fs] = Mt(Tn), $s = f.forwardRef(
3830
3831
  disabled: o,
3831
3832
  textId: p,
3832
3833
  isSelected: l,
3833
- onItemTextChange: f.useCallback((C) => {
3834
- m((E) => E || (C?.textContent ?? "").trim());
3834
+ onItemTextChange: f.useCallback((k) => {
3835
+ m((x) => x || (k?.textContent ?? "").trim());
3835
3836
  }, []),
3836
3837
  children: /* @__PURE__ */ u(
3837
3838
  zn.ItemSlot,
@@ -3856,22 +3857,22 @@ var Tn = "SelectItem", [yf, Fs] = Mt(Tn), $s = f.forwardRef(
3856
3857
  onFocus: J(s.onFocus, () => h(!0)),
3857
3858
  onBlur: J(s.onBlur, () => h(!1)),
3858
3859
  onClick: J(s.onClick, () => {
3859
- v.current !== "mouse" && k();
3860
+ v.current !== "mouse" && E();
3860
3861
  }),
3861
3862
  onPointerUp: J(s.onPointerUp, () => {
3862
- v.current === "mouse" && k();
3863
+ v.current === "mouse" && E();
3863
3864
  }),
3864
- onPointerDown: J(s.onPointerDown, (C) => {
3865
- v.current = C.pointerType;
3865
+ onPointerDown: J(s.onPointerDown, (k) => {
3866
+ v.current = k.pointerType;
3866
3867
  }),
3867
- onPointerMove: J(s.onPointerMove, (C) => {
3868
- v.current = C.pointerType, o ? c.onItemLeave?.() : v.current === "mouse" && C.currentTarget.focus({ preventScroll: !0 });
3868
+ onPointerMove: J(s.onPointerMove, (k) => {
3869
+ v.current = k.pointerType, o ? c.onItemLeave?.() : v.current === "mouse" && k.currentTarget.focus({ preventScroll: !0 });
3869
3870
  }),
3870
- onPointerLeave: J(s.onPointerLeave, (C) => {
3871
- C.currentTarget === document.activeElement && c.onItemLeave?.();
3871
+ onPointerLeave: J(s.onPointerLeave, (k) => {
3872
+ k.currentTarget === document.activeElement && c.onItemLeave?.();
3872
3873
  }),
3873
- onKeyDown: J(s.onKeyDown, (C) => {
3874
- c.searchRef?.current !== "" && C.key === " " || (of.includes(C.key) && k(), C.key === " " && C.preventDefault());
3874
+ onKeyDown: J(s.onKeyDown, (k) => {
3875
+ c.searchRef?.current !== "" && k.key === " " || (of.includes(k.key) && E(), k.key === " " && k.preventDefault());
3875
3876
  })
3876
3877
  }
3877
3878
  )
@@ -3886,9 +3887,9 @@ var Gt = "SelectItemText", Ws = f.forwardRef(
3886
3887
  (e, t) => {
3887
3888
  const { __scopeSelect: n, className: r, style: o, ...a } = e, s = ot(Gt, n), i = at(Gt, n), c = Fs(Gt, n), l = lf(Gt, n), [d, m] = f.useState(null), g = ie(
3888
3889
  t,
3889
- (k) => m(k),
3890
+ (E) => m(E),
3890
3891
  c.onItemTextChange,
3891
- (k) => i.itemTextRefCallback?.(k, c.value, c.disabled)
3892
+ (E) => i.itemTextRefCallback?.(E, c.value, c.disabled)
3892
3893
  ), h = d?.textContent, w = f.useMemo(
3893
3894
  () => /* @__PURE__ */ u("option", { value: c.value, disabled: c.disabled, children: h }, c.value),
3894
3895
  [c.disabled, c.value, h]
@@ -3908,7 +3909,7 @@ var zs = "SelectItemIndicator", wf = f.forwardRef(
3908
3909
  );
3909
3910
  wf.displayName = zs;
3910
3911
  var Lr = "SelectScrollUpButton", Bs = f.forwardRef((e, t) => {
3911
- const n = at(Lr, e.__scopeSelect), r = co(Lr, e.__scopeSelect), [o, a] = f.useState(!1), s = ie(t, r.onScrollButtonChange);
3912
+ const n = at(Lr, e.__scopeSelect), r = lo(Lr, e.__scopeSelect), [o, a] = f.useState(!1), s = ie(t, r.onScrollButtonChange);
3912
3913
  return ve(() => {
3913
3914
  if (n.viewport && n.isPositioned) {
3914
3915
  let i = function() {
@@ -3932,7 +3933,7 @@ var Lr = "SelectScrollUpButton", Bs = f.forwardRef((e, t) => {
3932
3933
  });
3933
3934
  Bs.displayName = Lr;
3934
3935
  var Fr = "SelectScrollDownButton", xf = f.forwardRef((e, t) => {
3935
- const n = at(Fr, e.__scopeSelect), r = co(Fr, e.__scopeSelect), [o, a] = f.useState(!1), s = ie(t, r.onScrollButtonChange);
3936
+ const n = at(Fr, e.__scopeSelect), r = lo(Fr, e.__scopeSelect), [o, a] = f.useState(!1), s = ie(t, r.onScrollButtonChange);
3936
3937
  return ve(() => {
3937
3938
  if (n.viewport && n.isPositioned) {
3938
3939
  let i = function() {
@@ -4048,7 +4049,7 @@ function qs(e, t, n) {
4048
4049
  function Ef(e, t) {
4049
4050
  return e.map((n, r) => e[(t + r) % e.length]);
4050
4051
  }
4051
- var kf = xs, Af = Cs, Nf = ks, Tf = As, Pf = Ns, Rf = Ts, Of = _s, _f = Ds, Mf = Ls, Df = $s, If = Ws, Lf = Bs, Ff = Us, na = js;
4052
+ var kf = xs, Af = Cs, Nf = ks, Tf = As, Pf = Ns, Rf = Ts, Of = _s, _f = Ds, Mf = Ls, Df = $s, If = Ws, Lf = Bs, Ff = Us, ra = js;
4052
4053
  function $f({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o, apiClient: a }) {
4053
4054
  const s = t[e.name] || "", i = typeof e.disabled == "function" ? e.disabled(t) : e.disabled, [c, l] = ue(e.options || []), [d, m] = ue(!1);
4054
4055
  return He(() => {
@@ -4061,14 +4062,14 @@ function $f({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o,
4061
4062
  try {
4062
4063
  let h = e.optionsUrl, w = {};
4063
4064
  if (e.queryParams) {
4064
- const E = typeof e.queryParams == "function" ? e.queryParams(t) : e.queryParams;
4065
- typeof E == "string" ? h += E.startsWith("?") ? E : `?${E}` : w = { params: E };
4065
+ const x = typeof e.queryParams == "function" ? e.queryParams(t) : e.queryParams;
4066
+ typeof x == "string" ? h += x.startsWith("?") ? x : `?${x}` : w = { params: x };
4066
4067
  }
4067
- const p = await a(h, w), v = p.data || p, C = (Array.isArray(v) ? v : []).map((E) => ({
4068
- value: E[e.valueId || "key"] || E.key,
4069
- label: E[e.labelId || "value"] || E.value
4068
+ const p = await a(h, w), v = p.data || p, k = (Array.isArray(v) ? v : []).map((x) => ({
4069
+ value: x[e.valueId || "key"] || x.key,
4070
+ label: x[e.labelId || "value"] || x.value
4070
4071
  }));
4071
- l(C), e.name + "_count" in t && n(e.name + "_count", C.length);
4072
+ l(k), e.name + "_count" in t && n(e.name + "_count", k.length);
4072
4073
  } catch (h) {
4073
4074
  console.error("Failed to load options for SelectField:", h), l(e.options || []);
4074
4075
  } finally {
@@ -4118,7 +4119,7 @@ function $f({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o,
4118
4119
  position: "popper",
4119
4120
  sideOffset: 5,
4120
4121
  children: [
4121
- /* @__PURE__ */ u(Lf, { className: "flex items-center justify-center h-6 text-gray-500 bg-gray-50", children: /* @__PURE__ */ u(na, { className: "fill-white stroke-gray-200" }) }),
4122
+ /* @__PURE__ */ u(Lf, { className: "flex items-center justify-center h-6 text-gray-500 bg-gray-50", children: /* @__PURE__ */ u(ra, { className: "fill-white stroke-gray-200" }) }),
4122
4123
  /* @__PURE__ */ D(Of, { className: "p-1", children: [
4123
4124
  e.groupLabel && /* @__PURE__ */ u(_f, { children: /* @__PURE__ */ u(Mf, { className: "px-2 py-1 text-xs text-gray-500 uppercase tracking-wide", children: e.groupLabel }) }),
4124
4125
  c.map((g) => /* @__PURE__ */ u(
@@ -4135,7 +4136,7 @@ function $f({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o,
4135
4136
  )),
4136
4137
  e.separator && /* @__PURE__ */ u(Ff, { className: "my-1 h-px bg-gray-200" })
4137
4138
  ] }),
4138
- /* @__PURE__ */ u(na, { className: "fill-white stroke-gray-200" })
4139
+ /* @__PURE__ */ u(ra, { className: "fill-white stroke-gray-200" })
4139
4140
  ]
4140
4141
  }
4141
4142
  ) })
@@ -4167,7 +4168,7 @@ function Wf({
4167
4168
  }
4168
4169
  ) });
4169
4170
  }
4170
- function ra({
4171
+ function oa({
4171
4172
  field: e,
4172
4173
  formValues: t,
4173
4174
  handleChange: n,
@@ -4265,7 +4266,7 @@ function zf({
4265
4266
  }
4266
4267
  const {
4267
4268
  entries: Ks,
4268
- setPrototypeOf: oa,
4269
+ setPrototypeOf: aa,
4269
4270
  isFrozen: Bf,
4270
4271
  getPrototypeOf: Hf,
4271
4272
  getOwnPropertyDescriptor: Uf
@@ -4294,7 +4295,7 @@ Br || (Br = function(t) {
4294
4295
  r[o - 1] = arguments[o];
4295
4296
  return new t(...r);
4296
4297
  });
4297
- const pn = xe(Array.prototype.forEach), jf = xe(Array.prototype.lastIndexOf), aa = xe(Array.prototype.pop), $t = xe(Array.prototype.push), Vf = xe(Array.prototype.splice), Sn = xe(String.prototype.toLowerCase), br = xe(String.prototype.toString), vr = xe(String.prototype.match), Wt = xe(String.prototype.replace), Gf = xe(String.prototype.indexOf), Yf = xe(String.prototype.trim), _e = xe(Object.prototype.hasOwnProperty), ye = xe(RegExp.prototype.test), zt = qf(TypeError);
4298
+ const pn = xe(Array.prototype.forEach), jf = xe(Array.prototype.lastIndexOf), sa = xe(Array.prototype.pop), $t = xe(Array.prototype.push), Vf = xe(Array.prototype.splice), Sn = xe(String.prototype.toLowerCase), br = xe(String.prototype.toString), vr = xe(String.prototype.match), Wt = xe(String.prototype.replace), Gf = xe(String.prototype.indexOf), Yf = xe(String.prototype.trim), _e = xe(Object.prototype.hasOwnProperty), ye = xe(RegExp.prototype.test), zt = qf(TypeError);
4298
4299
  function xe(e) {
4299
4300
  return function(t) {
4300
4301
  t instanceof RegExp && (t.lastIndex = 0);
@@ -4312,7 +4313,7 @@ function qf(e) {
4312
4313
  }
4313
4314
  function Q(e, t) {
4314
4315
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Sn;
4315
- oa && oa(e, null);
4316
+ aa && aa(e, null);
4316
4317
  let r = t.length;
4317
4318
  for (; r--; ) {
4318
4319
  let o = t[r];
@@ -4351,14 +4352,14 @@ function Bt(e, t) {
4351
4352
  }
4352
4353
  return n;
4353
4354
  }
4354
- const sa = we(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), yr = we(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), wr = we(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Xf = we(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), xr = we(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Qf = we(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ia = we(["#text"]), ca = we(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Sr = we(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), la = we(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), hn = we(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Zf = Pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Jf = Pe(/<%[\w\W]*|[\w\W]*%>/gm), em = Pe(/\$\{[\w\W]*/gm), tm = Pe(/^data-[\-\w.\u00B7-\uFFFF]+$/), nm = Pe(/^aria-[\-\w]+$/), Xs = Pe(
4355
+ const ia = we(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), yr = we(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), wr = we(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Xf = we(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), xr = we(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Qf = we(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ca = we(["#text"]), la = we(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Sr = we(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ua = we(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), hn = we(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Zf = Pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Jf = Pe(/<%[\w\W]*|[\w\W]*%>/gm), em = Pe(/\$\{[\w\W]*/gm), tm = Pe(/^data-[\-\w.\u00B7-\uFFFF]+$/), nm = Pe(/^aria-[\-\w]+$/), Xs = Pe(
4355
4356
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
4356
4357
  // eslint-disable-line no-useless-escape
4357
4358
  ), rm = Pe(/^(?:\w+script|data):/i), om = Pe(
4358
4359
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
4359
4360
  // eslint-disable-line no-control-regex
4360
4361
  ), Qs = Pe(/^html$/i), am = Pe(/^[a-z][.\w]*(-[.\w]+)+$/i);
4361
- var ua = /* @__PURE__ */ Object.freeze({
4362
+ var da = /* @__PURE__ */ Object.freeze({
4362
4363
  __proto__: null,
4363
4364
  ARIA_ATTR: nm,
4364
4365
  ATTR_WHITESPACE: om,
@@ -4399,7 +4400,7 @@ const Ht = {
4399
4400
  } catch {
4400
4401
  return console.warn("TrustedTypes policy " + a + " could not be created."), null;
4401
4402
  }
4402
- }, da = function() {
4403
+ }, fa = function() {
4403
4404
  return {
4404
4405
  afterSanitizeAttributes: [],
4405
4406
  afterSanitizeElements: [],
@@ -4430,12 +4431,12 @@ function Zs() {
4430
4431
  HTMLFormElement: m,
4431
4432
  DOMParser: g,
4432
4433
  trustedTypes: h
4433
- } = e, w = c.prototype, p = Bt(w, "cloneNode"), v = Bt(w, "remove"), k = Bt(w, "nextSibling"), C = Bt(w, "childNodes"), E = Bt(w, "parentNode");
4434
+ } = e, w = c.prototype, p = Bt(w, "cloneNode"), v = Bt(w, "remove"), E = Bt(w, "nextSibling"), k = Bt(w, "childNodes"), x = Bt(w, "parentNode");
4434
4435
  if (typeof s == "function") {
4435
4436
  const j = n.createElement("template");
4436
4437
  j.content && j.content.ownerDocument && (n = j.content.ownerDocument);
4437
4438
  }
4438
- let x, A = "";
4439
+ let S, A = "";
4439
4440
  const {
4440
4441
  implementation: I,
4441
4442
  createNodeIterator: O,
@@ -4444,8 +4445,8 @@ function Zs() {
4444
4445
  } = n, {
4445
4446
  importNode: H
4446
4447
  } = r;
4447
- let V = da();
4448
- t.isSupported = typeof Ks == "function" && typeof E == "function" && I && I.createHTMLDocument !== void 0;
4448
+ let V = fa();
4449
+ t.isSupported = typeof Ks == "function" && typeof x == "function" && I && I.createHTMLDocument !== void 0;
4449
4450
  const {
4450
4451
  MUSTACHE_EXPR: q,
4451
4452
  ERB_EXPR: y,
@@ -4453,15 +4454,15 @@ function Zs() {
4453
4454
  DATA_ATTR: R,
4454
4455
  ARIA_ATTR: P,
4455
4456
  IS_SCRIPT_OR_DATA: _,
4456
- ATTR_WHITESPACE: S,
4457
+ ATTR_WHITESPACE: C,
4457
4458
  CUSTOM_ELEMENT: L
4458
- } = ua;
4459
+ } = da;
4459
4460
  let {
4460
4461
  IS_ALLOWED_URI: U
4461
- } = ua, G = null;
4462
- const ce = Q({}, [...sa, ...yr, ...wr, ...xr, ...ia]);
4462
+ } = da, G = null;
4463
+ const ce = Q({}, [...ia, ...yr, ...wr, ...xr, ...ca]);
4463
4464
  let Y = null;
4464
- const oe = Q({}, [...ca, ...Sr, ...la, ...hn]);
4465
+ const oe = Q({}, [...la, ...Sr, ...ua, ...hn]);
4465
4466
  let K = Object.seal(Wr(null, {
4466
4467
  tagNameCheck: {
4467
4468
  writable: !0,
@@ -4496,14 +4497,14 @@ function Zs() {
4496
4497
  value: null
4497
4498
  }
4498
4499
  }));
4499
- let le = !0, Z = !0, te = !1, re = !0, fe = !1, Ne = !0, Re = !1, it = !1, ct = !1, gt = !1, nn = !1, rn = !1, mo = !0, po = !1;
4500
+ let le = !0, Z = !0, te = !1, re = !0, fe = !1, Ne = !0, Re = !1, it = !1, ct = !1, gt = !1, nn = !1, rn = !1, po = !0, ho = !1;
4500
4501
  const Ki = "user-content-";
4501
4502
  let Zn = !0, Lt = !1, bt = {}, Le = null;
4502
4503
  const Jn = Q({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
4503
- let ho = null;
4504
- const go = Q({}, ["audio", "video", "img", "source", "image", "track"]);
4504
+ let go = null;
4505
+ const bo = Q({}, ["audio", "video", "img", "source", "image", "track"]);
4505
4506
  let er = null;
4506
- const bo = Q({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), on = "http://www.w3.org/1998/Math/MathML", an = "http://www.w3.org/2000/svg", Ve = "http://www.w3.org/1999/xhtml";
4507
+ const vo = Q({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), on = "http://www.w3.org/1998/Math/MathML", an = "http://www.w3.org/2000/svg", Ve = "http://www.w3.org/1999/xhtml";
4507
4508
  let vt = Ve, tr = !1, nr = null;
4508
4509
  const Xi = Q({}, [on, an, Ve], br);
4509
4510
  let sn = Q({}, ["mi", "mo", "mn", "ms", "mtext"]), cn = Q({}, ["annotation-xml"]);
@@ -4511,36 +4512,36 @@ function Zs() {
4511
4512
  let Ft = null;
4512
4513
  const Zi = ["application/xhtml+xml", "text/html"], Ji = "text/html";
4513
4514
  let me = null, yt = null;
4514
- const ec = n.createElement("form"), vo = function(b) {
4515
+ const ec = n.createElement("form"), yo = function(b) {
4515
4516
  return b instanceof RegExp || b instanceof Function;
4516
4517
  }, rr = function() {
4517
4518
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4518
4519
  if (!(yt && yt === b)) {
4519
4520
  if ((!b || typeof b != "object") && (b = {}), b = $e(b), Ft = // eslint-disable-next-line unicorn/prefer-includes
4520
- Zi.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Ji : b.PARSER_MEDIA_TYPE, me = Ft === "application/xhtml+xml" ? br : Sn, G = _e(b, "ALLOWED_TAGS") ? Q({}, b.ALLOWED_TAGS, me) : ce, Y = _e(b, "ALLOWED_ATTR") ? Q({}, b.ALLOWED_ATTR, me) : oe, nr = _e(b, "ALLOWED_NAMESPACES") ? Q({}, b.ALLOWED_NAMESPACES, br) : Xi, er = _e(b, "ADD_URI_SAFE_ATTR") ? Q($e(bo), b.ADD_URI_SAFE_ATTR, me) : bo, ho = _e(b, "ADD_DATA_URI_TAGS") ? Q($e(go), b.ADD_DATA_URI_TAGS, me) : go, Le = _e(b, "FORBID_CONTENTS") ? Q({}, b.FORBID_CONTENTS, me) : Jn, ge = _e(b, "FORBID_TAGS") ? Q({}, b.FORBID_TAGS, me) : $e({}), F = _e(b, "FORBID_ATTR") ? Q({}, b.FORBID_ATTR, me) : $e({}), bt = _e(b, "USE_PROFILES") ? b.USE_PROFILES : !1, le = b.ALLOW_ARIA_ATTR !== !1, Z = b.ALLOW_DATA_ATTR !== !1, te = b.ALLOW_UNKNOWN_PROTOCOLS || !1, re = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, fe = b.SAFE_FOR_TEMPLATES || !1, Ne = b.SAFE_FOR_XML !== !1, Re = b.WHOLE_DOCUMENT || !1, gt = b.RETURN_DOM || !1, nn = b.RETURN_DOM_FRAGMENT || !1, rn = b.RETURN_TRUSTED_TYPE || !1, ct = b.FORCE_BODY || !1, mo = b.SANITIZE_DOM !== !1, po = b.SANITIZE_NAMED_PROPS || !1, Zn = b.KEEP_CONTENT !== !1, Lt = b.IN_PLACE || !1, U = b.ALLOWED_URI_REGEXP || Xs, vt = b.NAMESPACE || Ve, sn = b.MATHML_TEXT_INTEGRATION_POINTS || sn, cn = b.HTML_INTEGRATION_POINTS || cn, K = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && vo(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (K.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && vo(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (K.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), fe && (Z = !1), nn && (gt = !0), bt && (G = Q({}, ia), Y = [], bt.html === !0 && (Q(G, sa), Q(Y, ca)), bt.svg === !0 && (Q(G, yr), Q(Y, Sr), Q(Y, hn)), bt.svgFilters === !0 && (Q(G, wr), Q(Y, Sr), Q(Y, hn)), bt.mathMl === !0 && (Q(G, xr), Q(Y, la), Q(Y, hn))), b.ADD_TAGS && (typeof b.ADD_TAGS == "function" ? ee.tagCheck = b.ADD_TAGS : (G === ce && (G = $e(G)), Q(G, b.ADD_TAGS, me))), b.ADD_ATTR && (typeof b.ADD_ATTR == "function" ? ee.attributeCheck = b.ADD_ATTR : (Y === oe && (Y = $e(Y)), Q(Y, b.ADD_ATTR, me))), b.ADD_URI_SAFE_ATTR && Q(er, b.ADD_URI_SAFE_ATTR, me), b.FORBID_CONTENTS && (Le === Jn && (Le = $e(Le)), Q(Le, b.FORBID_CONTENTS, me)), b.ADD_FORBID_CONTENTS && (Le === Jn && (Le = $e(Le)), Q(Le, b.ADD_FORBID_CONTENTS, me)), Zn && (G["#text"] = !0), Re && Q(G, ["html", "head", "body"]), G.table && (Q(G, ["tbody"]), delete ge.tbody), b.TRUSTED_TYPES_POLICY) {
4521
+ Zi.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Ji : b.PARSER_MEDIA_TYPE, me = Ft === "application/xhtml+xml" ? br : Sn, G = _e(b, "ALLOWED_TAGS") ? Q({}, b.ALLOWED_TAGS, me) : ce, Y = _e(b, "ALLOWED_ATTR") ? Q({}, b.ALLOWED_ATTR, me) : oe, nr = _e(b, "ALLOWED_NAMESPACES") ? Q({}, b.ALLOWED_NAMESPACES, br) : Xi, er = _e(b, "ADD_URI_SAFE_ATTR") ? Q($e(vo), b.ADD_URI_SAFE_ATTR, me) : vo, go = _e(b, "ADD_DATA_URI_TAGS") ? Q($e(bo), b.ADD_DATA_URI_TAGS, me) : bo, Le = _e(b, "FORBID_CONTENTS") ? Q({}, b.FORBID_CONTENTS, me) : Jn, ge = _e(b, "FORBID_TAGS") ? Q({}, b.FORBID_TAGS, me) : $e({}), F = _e(b, "FORBID_ATTR") ? Q({}, b.FORBID_ATTR, me) : $e({}), bt = _e(b, "USE_PROFILES") ? b.USE_PROFILES : !1, le = b.ALLOW_ARIA_ATTR !== !1, Z = b.ALLOW_DATA_ATTR !== !1, te = b.ALLOW_UNKNOWN_PROTOCOLS || !1, re = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, fe = b.SAFE_FOR_TEMPLATES || !1, Ne = b.SAFE_FOR_XML !== !1, Re = b.WHOLE_DOCUMENT || !1, gt = b.RETURN_DOM || !1, nn = b.RETURN_DOM_FRAGMENT || !1, rn = b.RETURN_TRUSTED_TYPE || !1, ct = b.FORCE_BODY || !1, po = b.SANITIZE_DOM !== !1, ho = b.SANITIZE_NAMED_PROPS || !1, Zn = b.KEEP_CONTENT !== !1, Lt = b.IN_PLACE || !1, U = b.ALLOWED_URI_REGEXP || Xs, vt = b.NAMESPACE || Ve, sn = b.MATHML_TEXT_INTEGRATION_POINTS || sn, cn = b.HTML_INTEGRATION_POINTS || cn, K = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && yo(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (K.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && yo(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (K.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), fe && (Z = !1), nn && (gt = !0), bt && (G = Q({}, ca), Y = [], bt.html === !0 && (Q(G, ia), Q(Y, la)), bt.svg === !0 && (Q(G, yr), Q(Y, Sr), Q(Y, hn)), bt.svgFilters === !0 && (Q(G, wr), Q(Y, Sr), Q(Y, hn)), bt.mathMl === !0 && (Q(G, xr), Q(Y, ua), Q(Y, hn))), b.ADD_TAGS && (typeof b.ADD_TAGS == "function" ? ee.tagCheck = b.ADD_TAGS : (G === ce && (G = $e(G)), Q(G, b.ADD_TAGS, me))), b.ADD_ATTR && (typeof b.ADD_ATTR == "function" ? ee.attributeCheck = b.ADD_ATTR : (Y === oe && (Y = $e(Y)), Q(Y, b.ADD_ATTR, me))), b.ADD_URI_SAFE_ATTR && Q(er, b.ADD_URI_SAFE_ATTR, me), b.FORBID_CONTENTS && (Le === Jn && (Le = $e(Le)), Q(Le, b.FORBID_CONTENTS, me)), b.ADD_FORBID_CONTENTS && (Le === Jn && (Le = $e(Le)), Q(Le, b.ADD_FORBID_CONTENTS, me)), Zn && (G["#text"] = !0), Re && Q(G, ["html", "head", "body"]), G.table && (Q(G, ["tbody"]), delete ge.tbody), b.TRUSTED_TYPES_POLICY) {
4521
4522
  if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
4522
4523
  throw zt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4523
4524
  if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
4524
4525
  throw zt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
4525
- x = b.TRUSTED_TYPES_POLICY, A = x.createHTML("");
4526
+ S = b.TRUSTED_TYPES_POLICY, A = S.createHTML("");
4526
4527
  } else
4527
- x === void 0 && (x = im(h, o)), x !== null && typeof A == "string" && (A = x.createHTML(""));
4528
+ S === void 0 && (S = im(h, o)), S !== null && typeof A == "string" && (A = S.createHTML(""));
4528
4529
  we && we(b), yt = b;
4529
4530
  }
4530
- }, yo = Q({}, [...yr, ...wr, ...Xf]), wo = Q({}, [...xr, ...Qf]), tc = function(b) {
4531
- let M = E(b);
4531
+ }, wo = Q({}, [...yr, ...wr, ...Xf]), xo = Q({}, [...xr, ...Qf]), tc = function(b) {
4532
+ let M = x(b);
4532
4533
  (!M || !M.tagName) && (M = {
4533
4534
  namespaceURI: vt,
4534
4535
  tagName: "template"
4535
4536
  });
4536
4537
  const B = Sn(b.tagName), se = Sn(M.tagName);
4537
- return nr[b.namespaceURI] ? b.namespaceURI === an ? M.namespaceURI === Ve ? B === "svg" : M.namespaceURI === on ? B === "svg" && (se === "annotation-xml" || sn[se]) : !!yo[B] : b.namespaceURI === on ? M.namespaceURI === Ve ? B === "math" : M.namespaceURI === an ? B === "math" && cn[se] : !!wo[B] : b.namespaceURI === Ve ? M.namespaceURI === an && !cn[se] || M.namespaceURI === on && !sn[se] ? !1 : !wo[B] && (Qi[B] || !yo[B]) : !!(Ft === "application/xhtml+xml" && nr[b.namespaceURI]) : !1;
4538
+ return nr[b.namespaceURI] ? b.namespaceURI === an ? M.namespaceURI === Ve ? B === "svg" : M.namespaceURI === on ? B === "svg" && (se === "annotation-xml" || sn[se]) : !!wo[B] : b.namespaceURI === on ? M.namespaceURI === Ve ? B === "math" : M.namespaceURI === an ? B === "math" && cn[se] : !!xo[B] : b.namespaceURI === Ve ? M.namespaceURI === an && !cn[se] || M.namespaceURI === on && !sn[se] ? !1 : !xo[B] && (Qi[B] || !wo[B]) : !!(Ft === "application/xhtml+xml" && nr[b.namespaceURI]) : !1;
4538
4539
  }, Fe = function(b) {
4539
4540
  $t(t.removed, {
4540
4541
  element: b
4541
4542
  });
4542
4543
  try {
4543
- E(b).removeChild(b);
4544
+ x(b).removeChild(b);
4544
4545
  } catch {
4545
4546
  v(b);
4546
4547
  }
@@ -4567,7 +4568,7 @@ function Zs() {
4567
4568
  M.setAttribute(b, "");
4568
4569
  } catch {
4569
4570
  }
4570
- }, xo = function(b) {
4571
+ }, So = function(b) {
4571
4572
  let M = null, B = null;
4572
4573
  if (ct)
4573
4574
  b = "<remove></remove>" + b;
@@ -4576,7 +4577,7 @@ function Zs() {
4576
4577
  B = de && de[0];
4577
4578
  }
4578
4579
  Ft === "application/xhtml+xml" && vt === Ve && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
4579
- const se = x ? x.createHTML(b) : b;
4580
+ const se = S ? S.createHTML(b) : b;
4580
4581
  if (vt === Ve)
4581
4582
  try {
4582
4583
  M = new g().parseFromString(se, Ft);
@@ -4591,7 +4592,7 @@ function Zs() {
4591
4592
  }
4592
4593
  const be = M.body || M.documentElement;
4593
4594
  return b && B && be.insertBefore(n.createTextNode(B), be.childNodes[0] || null), vt === Ve ? z.call(M, Re ? "html" : "body")[0] : Re ? M.documentElement : be;
4594
- }, So = function(b) {
4595
+ }, Co = function(b) {
4595
4596
  return O.call(
4596
4597
  b.ownerDocument || b,
4597
4598
  b,
@@ -4601,7 +4602,7 @@ function Zs() {
4601
4602
  );
4602
4603
  }, or = function(b) {
4603
4604
  return b instanceof m && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof d) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
4604
- }, Co = function(b) {
4605
+ }, Eo = function(b) {
4605
4606
  return typeof i == "function" && b instanceof i;
4606
4607
  };
4607
4608
  function Ge(j, b, M) {
@@ -4609,7 +4610,7 @@ function Zs() {
4609
4610
  B.call(t, b, M, yt);
4610
4611
  });
4611
4612
  }
4612
- const Eo = function(b) {
4613
+ const ko = function(b) {
4613
4614
  let M = null;
4614
4615
  if (Ge(V.beforeSanitizeElements, b, null), or(b))
4615
4616
  return Fe(b), !0;
@@ -4617,18 +4618,18 @@ function Zs() {
4617
4618
  if (Ge(V.uponSanitizeElement, b, {
4618
4619
  tagName: B,
4619
4620
  allowedTags: G
4620
- }), Ne && b.hasChildNodes() && !Co(b.firstElementChild) && ye(/<[/\w!]/g, b.innerHTML) && ye(/<[/\w!]/g, b.textContent) || b.nodeType === Ht.progressingInstruction || Ne && b.nodeType === Ht.comment && ye(/<[/\w]/g, b.data))
4621
+ }), Ne && b.hasChildNodes() && !Eo(b.firstElementChild) && ye(/<[/\w!]/g, b.innerHTML) && ye(/<[/\w!]/g, b.textContent) || b.nodeType === Ht.progressingInstruction || Ne && b.nodeType === Ht.comment && ye(/<[/\w]/g, b.data))
4621
4622
  return Fe(b), !0;
4622
4623
  if (!(ee.tagCheck instanceof Function && ee.tagCheck(B)) && (!G[B] || ge[B])) {
4623
- if (!ge[B] && Ao(B) && (K.tagNameCheck instanceof RegExp && ye(K.tagNameCheck, B) || K.tagNameCheck instanceof Function && K.tagNameCheck(B)))
4624
+ if (!ge[B] && No(B) && (K.tagNameCheck instanceof RegExp && ye(K.tagNameCheck, B) || K.tagNameCheck instanceof Function && K.tagNameCheck(B)))
4624
4625
  return !1;
4625
4626
  if (Zn && !Le[B]) {
4626
- const se = E(b) || b.parentNode, be = C(b) || b.childNodes;
4627
+ const se = x(b) || b.parentNode, be = k(b) || b.childNodes;
4627
4628
  if (be && se) {
4628
4629
  const de = be.length;
4629
4630
  for (let Se = de - 1; Se >= 0; --Se) {
4630
4631
  const Ye = p(be[Se], !0);
4631
- Ye.__removalCount = (b.__removalCount || 0) + 1, se.insertBefore(Ye, k(b));
4632
+ Ye.__removalCount = (b.__removalCount || 0) + 1, se.insertBefore(Ye, E(b));
4632
4633
  }
4633
4634
  }
4634
4635
  }
@@ -4639,8 +4640,8 @@ function Zs() {
4639
4640
  }), b.textContent !== M && ($t(t.removed, {
4640
4641
  element: b.cloneNode()
4641
4642
  }), b.textContent = M)), Ge(V.afterSanitizeElements, b, null), !1);
4642
- }, ko = function(b, M, B) {
4643
- if (mo && (M === "id" || M === "name") && (B in n || B in ec))
4643
+ }, Ao = function(b, M, B) {
4644
+ if (po && (M === "id" || M === "name") && (B in n || B in ec))
4644
4645
  return !1;
4645
4646
  if (!(Z && !F[M] && ye(R, M))) {
4646
4647
  if (!(le && ye(P, M))) {
@@ -4650,14 +4651,14 @@ function Zs() {
4650
4651
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
4651
4652
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
4652
4653
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
4653
- !(Ao(b) && (K.tagNameCheck instanceof RegExp && ye(K.tagNameCheck, b) || K.tagNameCheck instanceof Function && K.tagNameCheck(b)) && (K.attributeNameCheck instanceof RegExp && ye(K.attributeNameCheck, M) || K.attributeNameCheck instanceof Function && K.attributeNameCheck(M, b)) || // Alternative, second condition checks if it's an `is`-attribute, AND
4654
+ !(No(b) && (K.tagNameCheck instanceof RegExp && ye(K.tagNameCheck, b) || K.tagNameCheck instanceof Function && K.tagNameCheck(b)) && (K.attributeNameCheck instanceof RegExp && ye(K.attributeNameCheck, M) || K.attributeNameCheck instanceof Function && K.attributeNameCheck(M, b)) || // Alternative, second condition checks if it's an `is`-attribute, AND
4654
4655
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
4655
4656
  M === "is" && K.allowCustomizedBuiltInElements && (K.tagNameCheck instanceof RegExp && ye(K.tagNameCheck, B) || K.tagNameCheck instanceof Function && K.tagNameCheck(B)))
4656
4657
  ) return !1;
4657
4658
  } else if (!er[M]) {
4658
- if (!ye(U, Wt(B, S, ""))) {
4659
- if (!((M === "src" || M === "xlink:href" || M === "href") && b !== "script" && Gf(B, "data:") === 0 && ho[b])) {
4660
- if (!(te && !ye(_, Wt(B, S, "")))) {
4659
+ if (!ye(U, Wt(B, C, ""))) {
4660
+ if (!((M === "src" || M === "xlink:href" || M === "href") && b !== "script" && Gf(B, "data:") === 0 && go[b])) {
4661
+ if (!(te && !ye(_, Wt(B, C, "")))) {
4661
4662
  if (B)
4662
4663
  return !1;
4663
4664
  }
@@ -4668,9 +4669,9 @@ function Zs() {
4668
4669
  }
4669
4670
  }
4670
4671
  return !0;
4671
- }, Ao = function(b) {
4672
- return b !== "annotation-xml" && vr(b, L);
4673
4672
  }, No = function(b) {
4673
+ return b !== "annotation-xml" && vr(b, L);
4674
+ }, To = function(b) {
4674
4675
  Ge(V.beforeSanitizeAttributes, b, null);
4675
4676
  const {
4676
4677
  attributes: M
@@ -4692,7 +4693,7 @@ function Zs() {
4692
4693
  value: Ye
4693
4694
  } = be, wt = me(de), ar = Ye;
4694
4695
  let he = de === "value" ? ar : Yf(ar);
4695
- if (B.attrName = wt, B.attrValue = he, B.keepAttr = !0, B.forceKeepAttr = void 0, Ge(V.uponSanitizeAttribute, b, B), he = B.attrValue, po && (wt === "id" || wt === "name") && (lt(de, b), he = Ki + he), Ne && ye(/((--!?|])>)|<\/(style|title|textarea)/i, he)) {
4696
+ if (B.attrName = wt, B.attrValue = he, B.keepAttr = !0, B.forceKeepAttr = void 0, Ge(V.uponSanitizeAttribute, b, B), he = B.attrValue, ho && (wt === "id" || wt === "name") && (lt(de, b), he = Ki + he), Ne && ye(/((--!?|])>)|<\/(style|title|textarea)/i, he)) {
4696
4697
  lt(de, b);
4697
4698
  continue;
4698
4699
  }
@@ -4710,28 +4711,28 @@ function Zs() {
4710
4711
  lt(de, b);
4711
4712
  continue;
4712
4713
  }
4713
- fe && pn([q, y, N], (Po) => {
4714
- he = Wt(he, Po, " ");
4714
+ fe && pn([q, y, N], (Ro) => {
4715
+ he = Wt(he, Ro, " ");
4715
4716
  });
4716
- const To = me(b.nodeName);
4717
- if (!ko(To, wt, he)) {
4717
+ const Po = me(b.nodeName);
4718
+ if (!Ao(Po, wt, he)) {
4718
4719
  lt(de, b);
4719
4720
  continue;
4720
4721
  }
4721
- if (x && typeof h == "object" && typeof h.getAttributeType == "function" && !Se)
4722
- switch (h.getAttributeType(To, wt)) {
4722
+ if (S && typeof h == "object" && typeof h.getAttributeType == "function" && !Se)
4723
+ switch (h.getAttributeType(Po, wt)) {
4723
4724
  case "TrustedHTML": {
4724
- he = x.createHTML(he);
4725
+ he = S.createHTML(he);
4725
4726
  break;
4726
4727
  }
4727
4728
  case "TrustedScriptURL": {
4728
- he = x.createScriptURL(he);
4729
+ he = S.createScriptURL(he);
4729
4730
  break;
4730
4731
  }
4731
4732
  }
4732
4733
  if (he !== ar)
4733
4734
  try {
4734
- Se ? b.setAttributeNS(Se, de, he) : b.setAttribute(de, he), or(b) ? Fe(b) : aa(t.removed);
4735
+ Se ? b.setAttributeNS(Se, de, he) : b.setAttribute(de, he), or(b) ? Fe(b) : sa(t.removed);
4735
4736
  } catch {
4736
4737
  lt(de, b);
4737
4738
  }
@@ -4739,14 +4740,14 @@ function Zs() {
4739
4740
  Ge(V.afterSanitizeAttributes, b, null);
4740
4741
  }, nc = function j(b) {
4741
4742
  let M = null;
4742
- const B = So(b);
4743
+ const B = Co(b);
4743
4744
  for (Ge(V.beforeSanitizeShadowDOM, b, null); M = B.nextNode(); )
4744
- Ge(V.uponSanitizeShadowNode, M, null), Eo(M), No(M), M.content instanceof a && j(M.content);
4745
+ Ge(V.uponSanitizeShadowNode, M, null), ko(M), To(M), M.content instanceof a && j(M.content);
4745
4746
  Ge(V.afterSanitizeShadowDOM, b, null);
4746
4747
  };
4747
4748
  return t.sanitize = function(j) {
4748
4749
  let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, M = null, B = null, se = null, be = null;
4749
- if (tr = !j, tr && (j = "<!-->"), typeof j != "string" && !Co(j))
4750
+ if (tr = !j, tr && (j = "<!-->"), typeof j != "string" && !Eo(j))
4750
4751
  if (typeof j.toString == "function") {
4751
4752
  if (j = j.toString(), typeof j != "string")
4752
4753
  throw zt("dirty is not a string, aborting");
@@ -4761,18 +4762,18 @@ function Zs() {
4761
4762
  throw zt("root node is forbidden and cannot be sanitized in-place");
4762
4763
  }
4763
4764
  } else if (j instanceof i)
4764
- M = xo("<!---->"), B = M.ownerDocument.importNode(j, !0), B.nodeType === Ht.element && B.nodeName === "BODY" || B.nodeName === "HTML" ? M = B : M.appendChild(B);
4765
+ M = So("<!---->"), B = M.ownerDocument.importNode(j, !0), B.nodeType === Ht.element && B.nodeName === "BODY" || B.nodeName === "HTML" ? M = B : M.appendChild(B);
4765
4766
  else {
4766
4767
  if (!gt && !fe && !Re && // eslint-disable-next-line unicorn/prefer-includes
4767
4768
  j.indexOf("<") === -1)
4768
- return x && rn ? x.createHTML(j) : j;
4769
- if (M = xo(j), !M)
4769
+ return S && rn ? S.createHTML(j) : j;
4770
+ if (M = So(j), !M)
4770
4771
  return gt ? null : rn ? A : "";
4771
4772
  }
4772
4773
  M && ct && Fe(M.firstChild);
4773
- const de = So(Lt ? j : M);
4774
+ const de = Co(Lt ? j : M);
4774
4775
  for (; se = de.nextNode(); )
4775
- Eo(se), No(se), se.content instanceof a && nc(se.content);
4776
+ ko(se), To(se), se.content instanceof a && nc(se.content);
4776
4777
  if (Lt)
4777
4778
  return j;
4778
4779
  if (gt) {
@@ -4787,7 +4788,7 @@ function Zs() {
4787
4788
  return Re && G["!doctype"] && M.ownerDocument && M.ownerDocument.doctype && M.ownerDocument.doctype.name && ye(Qs, M.ownerDocument.doctype.name) && (Se = "<!DOCTYPE " + M.ownerDocument.doctype.name + `>
4788
4789
  ` + Se), fe && pn([q, y, N], (Ye) => {
4789
4790
  Se = Wt(Se, Ye, " ");
4790
- }), x && rn ? x.createHTML(Se) : Se;
4791
+ }), S && rn ? S.createHTML(Se) : Se;
4791
4792
  }, t.setConfig = function() {
4792
4793
  let j = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4793
4794
  rr(j), it = !0;
@@ -4796,7 +4797,7 @@ function Zs() {
4796
4797
  }, t.isValidAttribute = function(j, b, M) {
4797
4798
  yt || rr({});
4798
4799
  const B = me(j), se = me(b);
4799
- return ko(B, se, M);
4800
+ return Ao(B, se, M);
4800
4801
  }, t.addHook = function(j, b) {
4801
4802
  typeof b == "function" && $t(V[j], b);
4802
4803
  }, t.removeHook = function(j, b) {
@@ -4804,11 +4805,11 @@ function Zs() {
4804
4805
  const M = jf(V[j], b);
4805
4806
  return M === -1 ? void 0 : Vf(V[j], M, 1)[0];
4806
4807
  }
4807
- return aa(V[j]);
4808
+ return sa(V[j]);
4808
4809
  }, t.removeHooks = function(j) {
4809
4810
  V[j] = [];
4810
4811
  }, t.removeAllHooks = function() {
4811
- V = da();
4812
+ V = fa();
4812
4813
  }, t;
4813
4814
  }
4814
4815
  var cm = Zs();
@@ -5056,14 +5057,14 @@ function dm({
5056
5057
  setCharCounts: d,
5057
5058
  fileInputRefs: m,
5058
5059
  ...g
5059
- } = s, h = a, w = e.options || [], p = e.inline || e.layout === "inline", v = g["aria-describedby"], k = `
5060
+ } = s, h = a, w = e.options || [], p = e.inline || e.layout === "inline", v = g["aria-describedby"], E = `
5060
5061
  size-4 rounded border-input bg-background transition-all accent-primary
5061
5062
  focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
5062
5063
  disabled:cursor-not-allowed disabled:opacity-50
5063
5064
  `;
5064
5065
  if (w.length > 0) {
5065
- const C = Array.isArray(t[e.name]) ? t[e.name] : [], E = (x, A) => {
5066
- let I = A ? [...C, x] : C.filter((O) => O !== x);
5066
+ const k = Array.isArray(t[e.name]) ? t[e.name] : [], x = (S, A) => {
5067
+ let I = A ? [...k, S] : k.filter((O) => O !== S);
5067
5068
  n(e.name, I), r(e.name);
5068
5069
  };
5069
5070
  return /* @__PURE__ */ D(
@@ -5078,8 +5079,8 @@ function dm({
5078
5079
  "div",
5079
5080
  {
5080
5081
  className: p ? "flex flex-wrap gap-x-6 gap-y-3" : "space-y-4",
5081
- children: w.map((x) => {
5082
- const A = typeof x == "object" ? x.value : x, I = typeof x == "object" ? x.label : x, O = typeof x == "object" ? x.description : null, T = `${e.name}-${A}`, z = C.includes(A);
5082
+ children: w.map((S) => {
5083
+ const A = typeof S == "object" ? S.value : S, I = typeof S == "object" ? S.label : S, O = typeof S == "object" ? S.description : null, T = `${e.name}-${A}`, z = k.includes(A);
5083
5084
  return /* @__PURE__ */ D(
5084
5085
  "div",
5085
5086
  {
@@ -5093,10 +5094,10 @@ function dm({
5093
5094
  type: "checkbox",
5094
5095
  id: T,
5095
5096
  checked: z,
5096
- onChange: (H) => E(A, H.target.checked),
5097
+ onChange: (H) => x(A, H.target.checked),
5097
5098
  onBlur: () => r(e.name),
5098
5099
  disabled: h,
5099
- className: `${k} ${!h && "cursor-pointer hover:border-primary/50"} ${o ? "border-destructive ring-destructive/20" : "border-input"}`
5100
+ className: `${E} ${!h && "cursor-pointer hover:border-primary/50"} ${o ? "border-destructive ring-destructive/20" : "border-input"}`
5100
5101
  }
5101
5102
  ) }),
5102
5103
  /* @__PURE__ */ D("div", { className: "ml-3 text-sm leading-6", children: [
@@ -5136,12 +5137,12 @@ function dm({
5136
5137
  id: e.name,
5137
5138
  type: "checkbox",
5138
5139
  checked: !!t[e.name],
5139
- onChange: (C) => {
5140
- n(e.name, C.target.checked), r(e.name);
5140
+ onChange: (k) => {
5141
+ n(e.name, k.target.checked), r(e.name);
5141
5142
  },
5142
5143
  onBlur: () => r(e.name),
5143
5144
  disabled: h,
5144
- className: `${k} ${!h && "cursor-pointer hover:border-primary/50"} ${o ? "border-destructive" : "border-input"}`
5145
+ className: `${E} ${!h && "cursor-pointer hover:border-primary/50"} ${o ? "border-destructive" : "border-input"}`
5145
5146
  }
5146
5147
  ) }),
5147
5148
  /* @__PURE__ */ u("div", { className: "ml-3 text-sm leading-6", children: /* @__PURE__ */ D(
@@ -5157,9 +5158,9 @@ function dm({
5157
5158
  ) })
5158
5159
  ] });
5159
5160
  }
5160
- const Js = 6048e5, fm = 864e5, fa = Symbol.for("constructDateFrom");
5161
+ const Js = 6048e5, fm = 864e5, ma = Symbol.for("constructDateFrom");
5161
5162
  function rt(e, t) {
5162
- return typeof e == "function" ? e(t) : e && typeof e == "object" && fa in e ? e[fa](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
5163
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && ma in e ? e[ma](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
5163
5164
  }
5164
5165
  function Ie(e, t) {
5165
5166
  return rt(t || e, e);
@@ -5183,7 +5184,7 @@ function ei(e, t) {
5183
5184
  const i = Pn(s);
5184
5185
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
5185
5186
  }
5186
- function ma(e) {
5187
+ function pa(e) {
5187
5188
  const t = Ie(e), n = new Date(
5188
5189
  Date.UTC(
5189
5190
  t.getFullYear(),
@@ -5204,7 +5205,7 @@ function pm(e, ...t) {
5204
5205
  );
5205
5206
  return t.map(n);
5206
5207
  }
5207
- function pa(e, t) {
5208
+ function ha(e, t) {
5208
5209
  const n = Ie(e, t?.in);
5209
5210
  return n.setHours(0, 0, 0, 0), n;
5210
5211
  }
@@ -5213,7 +5214,7 @@ function hm(e, t, n) {
5213
5214
  n?.in,
5214
5215
  e,
5215
5216
  t
5216
- ), a = pa(r), s = pa(o), i = +a - ma(a), c = +s - ma(s);
5217
+ ), a = ha(r), s = ha(o), i = +a - pa(a), c = +s - pa(s);
5217
5218
  return Math.round((i - c) / fm);
5218
5219
  }
5219
5220
  function gm(e, t) {
@@ -5750,7 +5751,7 @@ const Qe = {
5750
5751
  afternoon: "afternoon",
5751
5752
  evening: "evening",
5752
5753
  night: "night"
5753
- }, ha = {
5754
+ }, ga = {
5754
5755
  // Era
5755
5756
  G: function(e, t, n) {
5756
5757
  const r = e.getFullYear() > 0 ? 1 : 0;
@@ -6225,7 +6226,7 @@ const Qe = {
6225
6226
  switch (t) {
6226
6227
  // Hours and optional minutes
6227
6228
  case "X":
6228
- return ba(r);
6229
+ return va(r);
6229
6230
  // Hours, minutes and optional seconds without `:` delimiter
6230
6231
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
6231
6232
  // so this token always has the same output as `XX`
@@ -6248,7 +6249,7 @@ const Qe = {
6248
6249
  switch (t) {
6249
6250
  // Hours and optional minutes
6250
6251
  case "x":
6251
- return ba(r);
6252
+ return va(r);
6252
6253
  // Hours, minutes and optional seconds without `:` delimiter
6253
6254
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
6254
6255
  // so this token always has the same output as `xx`
@@ -6273,7 +6274,7 @@ const Qe = {
6273
6274
  case "O":
6274
6275
  case "OO":
6275
6276
  case "OOO":
6276
- return "GMT" + ga(r, ":");
6277
+ return "GMT" + ba(r, ":");
6277
6278
  // Long
6278
6279
  case "OOOO":
6279
6280
  default:
@@ -6288,7 +6289,7 @@ const Qe = {
6288
6289
  case "z":
6289
6290
  case "zz":
6290
6291
  case "zzz":
6291
- return "GMT" + ga(r, ":");
6292
+ return "GMT" + ba(r, ":");
6292
6293
  // Long
6293
6294
  case "zzzz":
6294
6295
  default:
@@ -6305,18 +6306,18 @@ const Qe = {
6305
6306
  return ne(+e, t.length);
6306
6307
  }
6307
6308
  };
6308
- function ga(e, t = "") {
6309
+ function ba(e, t = "") {
6309
6310
  const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), a = r % 60;
6310
6311
  return a === 0 ? n + String(o) : n + String(o) + t + ne(a, 2);
6311
6312
  }
6312
- function ba(e, t) {
6313
+ function va(e, t) {
6313
6314
  return e % 60 === 0 ? (e > 0 ? "-" : "+") + ne(Math.abs(e) / 60, 2) : dt(e, t);
6314
6315
  }
6315
6316
  function dt(e, t = "") {
6316
6317
  const n = e > 0 ? "-" : "+", r = Math.abs(e), o = ne(Math.trunc(r / 60), 2), a = ne(r % 60, 2);
6317
6318
  return n + o + t + a;
6318
6319
  }
6319
- const va = (e, t) => {
6320
+ const ya = (e, t) => {
6320
6321
  switch (e) {
6321
6322
  case "P":
6322
6323
  return t.date({ width: "short" });
@@ -6343,7 +6344,7 @@ const va = (e, t) => {
6343
6344
  }, np = (e, t) => {
6344
6345
  const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
6345
6346
  if (!o)
6346
- return va(e, t);
6347
+ return ya(e, t);
6347
6348
  let a;
6348
6349
  switch (r) {
6349
6350
  case "P":
@@ -6360,7 +6361,7 @@ const va = (e, t) => {
6360
6361
  a = t.dateTime({ width: "full" });
6361
6362
  break;
6362
6363
  }
6363
- return a.replace("{{date}}", va(r, t)).replace("{{time}}", ri(o, t));
6364
+ return a.replace("{{date}}", ya(r, t)).replace("{{time}}", ri(o, t));
6364
6365
  }, rp = {
6365
6366
  p: ri,
6366
6367
  P: np
@@ -6397,7 +6398,7 @@ function Hr(e, t, n) {
6397
6398
  const m = d[0];
6398
6399
  if (m === "'")
6399
6400
  return { isToken: !1, value: gp(d) };
6400
- if (ha[m])
6401
+ if (ga[m])
6401
6402
  return { isToken: !0, value: d };
6402
6403
  if (m.match(hp))
6403
6404
  throw new RangeError(
@@ -6415,7 +6416,7 @@ function Hr(e, t, n) {
6415
6416
  if (!d.isToken) return d.value;
6416
6417
  const m = d.value;
6417
6418
  (cp(m) || ip(m)) && lp(m, t, String(e));
6418
- const g = ha[m[0]];
6419
+ const g = ga[m[0]];
6419
6420
  return g(i, m, o.localize, l);
6420
6421
  }).join("");
6421
6422
  }
@@ -6548,7 +6549,7 @@ si.displayName = Vn;
6548
6549
  var ii = "PopoverAnchor", Sp = f.forwardRef(
6549
6550
  (e, t) => {
6550
6551
  const { __scopePopover: n, ...r } = e, o = st(ii, n), a = en(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: i } = o;
6551
- return f.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ u(ao, { ...a, ...r, ref: t });
6552
+ return f.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ u(so, { ...a, ...r, ref: t });
6552
6553
  }
6553
6554
  );
6554
6555
  Sp.displayName = ii;
@@ -6567,17 +6568,17 @@ var ci = "PopoverTrigger", li = f.forwardRef(
6567
6568
  onClick: J(e.onClick, o.onOpenToggle)
6568
6569
  }
6569
6570
  );
6570
- return o.hasCustomAnchor ? i : /* @__PURE__ */ u(ao, { asChild: !0, ...a, children: i });
6571
+ return o.hasCustomAnchor ? i : /* @__PURE__ */ u(so, { asChild: !0, ...a, children: i });
6571
6572
  }
6572
6573
  );
6573
6574
  li.displayName = ci;
6574
- var lo = "PopoverPortal", [Cp, Ep] = ai(lo, {
6575
+ var uo = "PopoverPortal", [Cp, Ep] = ai(uo, {
6575
6576
  forceMount: void 0
6576
6577
  }), ui = (e) => {
6577
- const { __scopePopover: t, forceMount: n, children: r, container: o } = e, a = st(lo, t);
6578
- return /* @__PURE__ */ u(Cp, { scope: t, forceMount: n, children: /* @__PURE__ */ u(jn, { present: n || a.open, children: /* @__PURE__ */ u(so, { asChild: !0, container: o, children: r }) }) });
6578
+ const { __scopePopover: t, forceMount: n, children: r, container: o } = e, a = st(uo, t);
6579
+ return /* @__PURE__ */ u(Cp, { scope: t, forceMount: n, children: /* @__PURE__ */ u(jn, { present: n || a.open, children: /* @__PURE__ */ u(io, { asChild: !0, container: o, children: r }) }) });
6579
6580
  };
6580
- ui.displayName = lo;
6581
+ ui.displayName = uo;
6581
6582
  var Pt = "PopoverContent", di = f.forwardRef(
6582
6583
  (e, t) => {
6583
6584
  const n = Ep(Pt, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, a = st(Pt, e.__scopePopover);
@@ -6591,7 +6592,7 @@ var kp = /* @__PURE__ */ Ce("PopoverContent.RemoveScroll"), Ap = f.forwardRef(
6591
6592
  return f.useEffect(() => {
6592
6593
  const s = r.current;
6593
6594
  if (s) return ms(s);
6594
- }, []), /* @__PURE__ */ u(io, { as: kp, allowPinchZoom: !0, children: /* @__PURE__ */ u(
6595
+ }, []), /* @__PURE__ */ u(co, { as: kp, allowPinchZoom: !0, children: /* @__PURE__ */ u(
6595
6596
  fi,
6596
6597
  {
6597
6598
  ...e,
@@ -6653,7 +6654,7 @@ var kp = /* @__PURE__ */ Ce("PopoverContent.RemoveScroll"), Ap = f.forwardRef(
6653
6654
  ...m
6654
6655
  } = e, g = st(Pt, n), h = en(n);
6655
6656
  return La(), /* @__PURE__ */ u(
6656
- Xr,
6657
+ Qr,
6657
6658
  {
6658
6659
  asChild: !0,
6659
6660
  loop: !0,
@@ -6661,7 +6662,7 @@ var kp = /* @__PURE__ */ Ce("PopoverContent.RemoveScroll"), Ap = f.forwardRef(
6661
6662
  onMountAutoFocus: o,
6662
6663
  onUnmountAutoFocus: a,
6663
6664
  children: /* @__PURE__ */ u(
6664
- Kr,
6665
+ Xr,
6665
6666
  {
6666
6667
  asChild: !0,
6667
6668
  disableOutsidePointerEvents: s,
@@ -6747,7 +6748,7 @@ const Lp = (e, t) => {
6747
6748
  nextPart: e,
6748
6749
  validators: t,
6749
6750
  classGroupId: n
6750
- }), Rn = "-", ya = [], $p = "arbitrary..", Wp = (e) => {
6751
+ }), Rn = "-", wa = [], $p = "arbitrary..", Wp = (e) => {
6751
6752
  const t = Bp(e), {
6752
6753
  conflictingClassGroups: n,
6753
6754
  conflictingClassGroupModifiers: r
@@ -6762,9 +6763,9 @@ const Lp = (e, t) => {
6762
6763
  getConflictingClassGroupIds: (s, i) => {
6763
6764
  if (i) {
6764
6765
  const c = r[s], l = n[s];
6765
- return c ? l ? Lp(l, c) : c : l || ya;
6766
+ return c ? l ? Lp(l, c) : c : l || wa;
6766
6767
  }
6767
- return n[s] || ya;
6768
+ return n[s] || wa;
6768
6769
  }
6769
6770
  };
6770
6771
  }, bi = (e, t, n) => {
@@ -6797,10 +6798,10 @@ const Lp = (e, t) => {
6797
6798
  const n = gi();
6798
6799
  for (const r in e) {
6799
6800
  const o = e[r];
6800
- uo(o, n, r, t);
6801
+ fo(o, n, r, t);
6801
6802
  }
6802
6803
  return n;
6803
- }, uo = (e, t, n, r) => {
6804
+ }, fo = (e, t, n, r) => {
6804
6805
  const o = e.length;
6805
6806
  for (let a = 0; a < o; a++) {
6806
6807
  const s = e[a];
@@ -6821,7 +6822,7 @@ const Lp = (e, t) => {
6821
6822
  r.classGroupId = n;
6822
6823
  }, Vp = (e, t, n, r) => {
6823
6824
  if (Yp(e)) {
6824
- uo(e(r), t, n, r);
6825
+ fo(e(r), t, n, r);
6825
6826
  return;
6826
6827
  }
6827
6828
  t.validators === null && (t.validators = []), t.validators.push(Fp(n, e));
@@ -6829,7 +6830,7 @@ const Lp = (e, t) => {
6829
6830
  const o = Object.entries(e), a = o.length;
6830
6831
  for (let s = 0; s < a; s++) {
6831
6832
  const [i, c] = o[s];
6832
- uo(c, vi(t, i), n, r);
6833
+ fo(c, vi(t, i), n, r);
6833
6834
  }
6834
6835
  }, vi = (e, t) => {
6835
6836
  let n = e;
@@ -6864,7 +6865,7 @@ const Lp = (e, t) => {
6864
6865
  a in n ? n[a] = s : o(a, s);
6865
6866
  }
6866
6867
  };
6867
- }, Ur = "!", wa = ":", Kp = [], xa = (e, t, n, r, o) => ({
6868
+ }, Ur = "!", xa = ":", Kp = [], Sa = (e, t, n, r, o) => ({
6868
6869
  modifiers: e,
6869
6870
  hasImportantModifier: t,
6870
6871
  baseClassName: n,
@@ -6882,7 +6883,7 @@ const Lp = (e, t) => {
6882
6883
  for (let p = 0; p < d; p++) {
6883
6884
  const v = o[p];
6884
6885
  if (s === 0 && i === 0) {
6885
- if (v === wa) {
6886
+ if (v === xa) {
6886
6887
  a.push(o.slice(c, p)), c = p + 1;
6887
6888
  continue;
6888
6889
  }
@@ -6903,11 +6904,11 @@ const Lp = (e, t) => {
6903
6904
  m.startsWith(Ur) && (g = m.slice(1), h = !0)
6904
6905
  );
6905
6906
  const w = l && l > c ? l - c : void 0;
6906
- return xa(a, h, g, w);
6907
+ return Sa(a, h, g, w);
6907
6908
  };
6908
6909
  if (t) {
6909
- const o = t + wa, a = r;
6910
- r = (s) => s.startsWith(o) ? a(s.slice(o.length)) : xa(Kp, !1, s, void 0, !0);
6910
+ const o = t + xa, a = r;
6911
+ r = (s) => s.startsWith(o) ? a(s.slice(o.length)) : Sa(Kp, !1, s, void 0, !0);
6911
6912
  }
6912
6913
  if (n) {
6913
6914
  const o = r;
@@ -6955,26 +6956,26 @@ const Lp = (e, t) => {
6955
6956
  c = d + (c.length > 0 ? " " + c : c);
6956
6957
  continue;
6957
6958
  }
6958
- let v = !!p, k = r(v ? w.substring(0, p) : w);
6959
- if (!k) {
6959
+ let v = !!p, E = r(v ? w.substring(0, p) : w);
6960
+ if (!E) {
6960
6961
  if (!v) {
6961
6962
  c = d + (c.length > 0 ? " " + c : c);
6962
6963
  continue;
6963
6964
  }
6964
- if (k = r(w), !k) {
6965
+ if (E = r(w), !E) {
6965
6966
  c = d + (c.length > 0 ? " " + c : c);
6966
6967
  continue;
6967
6968
  }
6968
6969
  v = !1;
6969
6970
  }
6970
- const C = g.length === 0 ? "" : g.length === 1 ? g[0] : a(g).join(":"), E = h ? C + Ur : C, x = E + k;
6971
- if (s.indexOf(x) > -1)
6971
+ const k = g.length === 0 ? "" : g.length === 1 ? g[0] : a(g).join(":"), x = h ? k + Ur : k, S = x + E;
6972
+ if (s.indexOf(S) > -1)
6972
6973
  continue;
6973
- s.push(x);
6974
- const A = o(k, v);
6974
+ s.push(S);
6975
+ const A = o(E, v);
6975
6976
  for (let I = 0; I < A.length; ++I) {
6976
6977
  const O = A[I];
6977
- s.push(E + O);
6978
+ s.push(x + O);
6978
6979
  }
6979
6980
  c = d + (c.length > 0 ? " " + c : c);
6980
6981
  }
@@ -7012,14 +7013,14 @@ const Lp = (e, t) => {
7012
7013
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
7013
7014
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
7014
7015
  sh.test(e) && !ih.test(e)
7015
- ), Si = () => !1, fh = (e) => ch.test(e), mh = (e) => lh.test(e), ph = (e) => !$(e) && !W(e), hh = (e) => Dt(e, ki, Si), $ = (e) => wi.test(e), ut = (e) => Dt(e, Ai, dh), kr = (e) => Dt(e, wh, X), Sa = (e) => Dt(e, Ci, Si), gh = (e) => Dt(e, Ei, mh), bn = (e) => Dt(e, Ni, fh), W = (e) => xi.test(e), Vt = (e) => It(e, Ai), bh = (e) => It(e, xh), Ca = (e) => It(e, Ci), vh = (e) => It(e, ki), yh = (e) => It(e, Ei), vn = (e) => It(e, Ni, !0), Dt = (e, t, n) => {
7016
+ ), Si = () => !1, fh = (e) => ch.test(e), mh = (e) => lh.test(e), ph = (e) => !$(e) && !W(e), hh = (e) => Dt(e, ki, Si), $ = (e) => wi.test(e), ut = (e) => Dt(e, Ai, dh), kr = (e) => Dt(e, wh, X), Ca = (e) => Dt(e, Ci, Si), gh = (e) => Dt(e, Ei, mh), bn = (e) => Dt(e, Ni, fh), W = (e) => xi.test(e), Vt = (e) => It(e, Ai), bh = (e) => It(e, xh), Ea = (e) => It(e, Ci), vh = (e) => It(e, ki), yh = (e) => It(e, Ei), vn = (e) => It(e, Ni, !0), Dt = (e, t, n) => {
7016
7017
  const r = wi.exec(e);
7017
7018
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
7018
7019
  }, It = (e, t, n = !1) => {
7019
7020
  const r = xi.exec(e);
7020
7021
  return r ? r[1] ? t(r[1]) : n : !1;
7021
7022
  }, Ci = (e) => e === "position" || e === "percentage", Ei = (e) => e === "image" || e === "url", ki = (e) => e === "length" || e === "size" || e === "bg-size", Ai = (e) => e === "length", wh = (e) => e === "number", xh = (e) => e === "family-name", Ni = (e) => e === "shadow", Sh = () => {
7022
- const e = pe("color"), t = pe("font"), n = pe("text"), r = pe("font-weight"), o = pe("tracking"), a = pe("leading"), s = pe("breakpoint"), i = pe("container"), c = pe("spacing"), l = pe("radius"), d = pe("shadow"), m = pe("inset-shadow"), g = pe("text-shadow"), h = pe("drop-shadow"), w = pe("blur"), p = pe("perspective"), v = pe("aspect"), k = pe("ease"), C = pe("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [
7023
+ const e = pe("color"), t = pe("font"), n = pe("text"), r = pe("font-weight"), o = pe("tracking"), a = pe("leading"), s = pe("breakpoint"), i = pe("container"), c = pe("spacing"), l = pe("radius"), d = pe("shadow"), m = pe("inset-shadow"), g = pe("text-shadow"), h = pe("drop-shadow"), w = pe("blur"), p = pe("perspective"), v = pe("aspect"), E = pe("ease"), k = pe("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
7023
7024
  "center",
7024
7025
  "top",
7025
7026
  "bottom",
@@ -7037,9 +7038,9 @@ const Lp = (e, t) => {
7037
7038
  "bottom-left",
7038
7039
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
7039
7040
  "left-bottom"
7040
- ], A = () => [...x(), W, $], I = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], T = () => [W, $, c], z = () => [kt, "full", "auto", ...T()], H = () => [Ze, "none", "subgrid", W, $], V = () => ["auto", {
7041
+ ], A = () => [...S(), W, $], I = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], T = () => [W, $, c], z = () => [kt, "full", "auto", ...T()], H = () => [Ze, "none", "subgrid", W, $], V = () => ["auto", {
7041
7042
  span: ["full", Ze, W, $]
7042
- }, Ze, W, $], q = () => [Ze, "auto", W, $], y = () => ["auto", "min", "max", "fr", W, $], N = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], R = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], P = () => ["auto", ...T()], _ = () => [kt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], S = () => [e, W, $], L = () => [...x(), Ca, Sa, {
7043
+ }, Ze, W, $], q = () => [Ze, "auto", W, $], y = () => ["auto", "min", "max", "fr", W, $], N = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], R = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], P = () => ["auto", ...T()], _ = () => [kt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], C = () => [e, W, $], L = () => [...S(), Ea, Ca, {
7043
7044
  position: [W, $]
7044
7045
  }], U = () => ["no-repeat", {
7045
7046
  repeat: ["", "x", "y", "space", "round"]
@@ -7053,7 +7054,7 @@ const Lp = (e, t) => {
7053
7054
  l,
7054
7055
  W,
7055
7056
  $
7056
- ], oe = () => ["", X, Vt, ut], K = () => ["solid", "dashed", "dotted", "double"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => [X, Er, Ca, Sa], ee = () => [
7057
+ ], oe = () => ["", X, Vt, ut], K = () => ["solid", "dashed", "dotted", "double"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => [X, Er, Ea, Ca], ee = () => [
7057
7058
  // Deprecated since Tailwind CSS v4.0.0
7058
7059
  "",
7059
7060
  "none",
@@ -7113,14 +7114,14 @@ const Lp = (e, t) => {
7113
7114
  * @see https://tailwindcss.com/docs/break-after
7114
7115
  */
7115
7116
  "break-after": [{
7116
- "break-after": E()
7117
+ "break-after": x()
7117
7118
  }],
7118
7119
  /**
7119
7120
  * Break Before
7120
7121
  * @see https://tailwindcss.com/docs/break-before
7121
7122
  */
7122
7123
  "break-before": [{
7123
- "break-before": E()
7124
+ "break-before": x()
7124
7125
  }],
7125
7126
  /**
7126
7127
  * Break Inside
@@ -7875,14 +7876,14 @@ const Lp = (e, t) => {
7875
7876
  * @see https://v3.tailwindcss.com/docs/placeholder-color
7876
7877
  */
7877
7878
  "placeholder-color": [{
7878
- placeholder: S()
7879
+ placeholder: C()
7879
7880
  }],
7880
7881
  /**
7881
7882
  * Text Color
7882
7883
  * @see https://tailwindcss.com/docs/text-color
7883
7884
  */
7884
7885
  "text-color": [{
7885
- text: S()
7886
+ text: C()
7886
7887
  }],
7887
7888
  /**
7888
7889
  * Text Decoration
@@ -7908,7 +7909,7 @@ const Lp = (e, t) => {
7908
7909
  * @see https://tailwindcss.com/docs/text-decoration-color
7909
7910
  */
7910
7911
  "text-decoration-color": [{
7911
- decoration: S()
7912
+ decoration: C()
7912
7913
  }],
7913
7914
  /**
7914
7915
  * Text Underline Offset
@@ -8046,7 +8047,7 @@ const Lp = (e, t) => {
8046
8047
  * @see https://tailwindcss.com/docs/background-color
8047
8048
  */
8048
8049
  "bg-color": [{
8049
- bg: S()
8050
+ bg: C()
8050
8051
  }],
8051
8052
  /**
8052
8053
  * Gradient Color Stops From Position
@@ -8074,21 +8075,21 @@ const Lp = (e, t) => {
8074
8075
  * @see https://tailwindcss.com/docs/gradient-color-stops
8075
8076
  */
8076
8077
  "gradient-from": [{
8077
- from: S()
8078
+ from: C()
8078
8079
  }],
8079
8080
  /**
8080
8081
  * Gradient Color Stops Via
8081
8082
  * @see https://tailwindcss.com/docs/gradient-color-stops
8082
8083
  */
8083
8084
  "gradient-via": [{
8084
- via: S()
8085
+ via: C()
8085
8086
  }],
8086
8087
  /**
8087
8088
  * Gradient Color Stops To
8088
8089
  * @see https://tailwindcss.com/docs/gradient-color-stops
8089
8090
  */
8090
8091
  "gradient-to": [{
8091
- to: S()
8092
+ to: C()
8092
8093
  }],
8093
8094
  // ---------------
8094
8095
  // --- Borders ---
@@ -8304,70 +8305,70 @@ const Lp = (e, t) => {
8304
8305
  * @see https://tailwindcss.com/docs/border-color
8305
8306
  */
8306
8307
  "border-color": [{
8307
- border: S()
8308
+ border: C()
8308
8309
  }],
8309
8310
  /**
8310
8311
  * Border Color X
8311
8312
  * @see https://tailwindcss.com/docs/border-color
8312
8313
  */
8313
8314
  "border-color-x": [{
8314
- "border-x": S()
8315
+ "border-x": C()
8315
8316
  }],
8316
8317
  /**
8317
8318
  * Border Color Y
8318
8319
  * @see https://tailwindcss.com/docs/border-color
8319
8320
  */
8320
8321
  "border-color-y": [{
8321
- "border-y": S()
8322
+ "border-y": C()
8322
8323
  }],
8323
8324
  /**
8324
8325
  * Border Color S
8325
8326
  * @see https://tailwindcss.com/docs/border-color
8326
8327
  */
8327
8328
  "border-color-s": [{
8328
- "border-s": S()
8329
+ "border-s": C()
8329
8330
  }],
8330
8331
  /**
8331
8332
  * Border Color E
8332
8333
  * @see https://tailwindcss.com/docs/border-color
8333
8334
  */
8334
8335
  "border-color-e": [{
8335
- "border-e": S()
8336
+ "border-e": C()
8336
8337
  }],
8337
8338
  /**
8338
8339
  * Border Color Top
8339
8340
  * @see https://tailwindcss.com/docs/border-color
8340
8341
  */
8341
8342
  "border-color-t": [{
8342
- "border-t": S()
8343
+ "border-t": C()
8343
8344
  }],
8344
8345
  /**
8345
8346
  * Border Color Right
8346
8347
  * @see https://tailwindcss.com/docs/border-color
8347
8348
  */
8348
8349
  "border-color-r": [{
8349
- "border-r": S()
8350
+ "border-r": C()
8350
8351
  }],
8351
8352
  /**
8352
8353
  * Border Color Bottom
8353
8354
  * @see https://tailwindcss.com/docs/border-color
8354
8355
  */
8355
8356
  "border-color-b": [{
8356
- "border-b": S()
8357
+ "border-b": C()
8357
8358
  }],
8358
8359
  /**
8359
8360
  * Border Color Left
8360
8361
  * @see https://tailwindcss.com/docs/border-color
8361
8362
  */
8362
8363
  "border-color-l": [{
8363
- "border-l": S()
8364
+ "border-l": C()
8364
8365
  }],
8365
8366
  /**
8366
8367
  * Divide Color
8367
8368
  * @see https://tailwindcss.com/docs/divide-color
8368
8369
  */
8369
8370
  "divide-color": [{
8370
- divide: S()
8371
+ divide: C()
8371
8372
  }],
8372
8373
  /**
8373
8374
  * Outline Style
@@ -8395,7 +8396,7 @@ const Lp = (e, t) => {
8395
8396
  * @see https://tailwindcss.com/docs/outline-color
8396
8397
  */
8397
8398
  "outline-color": [{
8398
- outline: S()
8399
+ outline: C()
8399
8400
  }],
8400
8401
  // ---------------
8401
8402
  // --- Effects ---
@@ -8419,7 +8420,7 @@ const Lp = (e, t) => {
8419
8420
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
8420
8421
  */
8421
8422
  "shadow-color": [{
8422
- shadow: S()
8423
+ shadow: C()
8423
8424
  }],
8424
8425
  /**
8425
8426
  * Inset Box Shadow
@@ -8433,7 +8434,7 @@ const Lp = (e, t) => {
8433
8434
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
8434
8435
  */
8435
8436
  "inset-shadow-color": [{
8436
- "inset-shadow": S()
8437
+ "inset-shadow": C()
8437
8438
  }],
8438
8439
  /**
8439
8440
  * Ring Width
@@ -8454,7 +8455,7 @@ const Lp = (e, t) => {
8454
8455
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
8455
8456
  */
8456
8457
  "ring-color": [{
8457
- ring: S()
8458
+ ring: C()
8458
8459
  }],
8459
8460
  /**
8460
8461
  * Ring Offset Width
@@ -8472,7 +8473,7 @@ const Lp = (e, t) => {
8472
8473
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
8473
8474
  */
8474
8475
  "ring-offset-color": [{
8475
- "ring-offset": S()
8476
+ "ring-offset": C()
8476
8477
  }],
8477
8478
  /**
8478
8479
  * Inset Ring Width
@@ -8486,7 +8487,7 @@ const Lp = (e, t) => {
8486
8487
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
8487
8488
  */
8488
8489
  "inset-ring-color": [{
8489
- "inset-ring": S()
8490
+ "inset-ring": C()
8490
8491
  }],
8491
8492
  /**
8492
8493
  * Text Shadow
@@ -8500,7 +8501,7 @@ const Lp = (e, t) => {
8500
8501
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
8501
8502
  */
8502
8503
  "text-shadow-color": [{
8503
- "text-shadow": S()
8504
+ "text-shadow": C()
8504
8505
  }],
8505
8506
  /**
8506
8507
  * Opacity
@@ -8551,10 +8552,10 @@ const Lp = (e, t) => {
8551
8552
  "mask-linear-to": F()
8552
8553
  }],
8553
8554
  "mask-image-linear-from-color": [{
8554
- "mask-linear-from": S()
8555
+ "mask-linear-from": C()
8555
8556
  }],
8556
8557
  "mask-image-linear-to-color": [{
8557
- "mask-linear-to": S()
8558
+ "mask-linear-to": C()
8558
8559
  }],
8559
8560
  "mask-image-t-from-pos": [{
8560
8561
  "mask-t-from": F()
@@ -8563,10 +8564,10 @@ const Lp = (e, t) => {
8563
8564
  "mask-t-to": F()
8564
8565
  }],
8565
8566
  "mask-image-t-from-color": [{
8566
- "mask-t-from": S()
8567
+ "mask-t-from": C()
8567
8568
  }],
8568
8569
  "mask-image-t-to-color": [{
8569
- "mask-t-to": S()
8570
+ "mask-t-to": C()
8570
8571
  }],
8571
8572
  "mask-image-r-from-pos": [{
8572
8573
  "mask-r-from": F()
@@ -8575,10 +8576,10 @@ const Lp = (e, t) => {
8575
8576
  "mask-r-to": F()
8576
8577
  }],
8577
8578
  "mask-image-r-from-color": [{
8578
- "mask-r-from": S()
8579
+ "mask-r-from": C()
8579
8580
  }],
8580
8581
  "mask-image-r-to-color": [{
8581
- "mask-r-to": S()
8582
+ "mask-r-to": C()
8582
8583
  }],
8583
8584
  "mask-image-b-from-pos": [{
8584
8585
  "mask-b-from": F()
@@ -8587,10 +8588,10 @@ const Lp = (e, t) => {
8587
8588
  "mask-b-to": F()
8588
8589
  }],
8589
8590
  "mask-image-b-from-color": [{
8590
- "mask-b-from": S()
8591
+ "mask-b-from": C()
8591
8592
  }],
8592
8593
  "mask-image-b-to-color": [{
8593
- "mask-b-to": S()
8594
+ "mask-b-to": C()
8594
8595
  }],
8595
8596
  "mask-image-l-from-pos": [{
8596
8597
  "mask-l-from": F()
@@ -8599,10 +8600,10 @@ const Lp = (e, t) => {
8599
8600
  "mask-l-to": F()
8600
8601
  }],
8601
8602
  "mask-image-l-from-color": [{
8602
- "mask-l-from": S()
8603
+ "mask-l-from": C()
8603
8604
  }],
8604
8605
  "mask-image-l-to-color": [{
8605
- "mask-l-to": S()
8606
+ "mask-l-to": C()
8606
8607
  }],
8607
8608
  "mask-image-x-from-pos": [{
8608
8609
  "mask-x-from": F()
@@ -8611,10 +8612,10 @@ const Lp = (e, t) => {
8611
8612
  "mask-x-to": F()
8612
8613
  }],
8613
8614
  "mask-image-x-from-color": [{
8614
- "mask-x-from": S()
8615
+ "mask-x-from": C()
8615
8616
  }],
8616
8617
  "mask-image-x-to-color": [{
8617
- "mask-x-to": S()
8618
+ "mask-x-to": C()
8618
8619
  }],
8619
8620
  "mask-image-y-from-pos": [{
8620
8621
  "mask-y-from": F()
@@ -8623,10 +8624,10 @@ const Lp = (e, t) => {
8623
8624
  "mask-y-to": F()
8624
8625
  }],
8625
8626
  "mask-image-y-from-color": [{
8626
- "mask-y-from": S()
8627
+ "mask-y-from": C()
8627
8628
  }],
8628
8629
  "mask-image-y-to-color": [{
8629
- "mask-y-to": S()
8630
+ "mask-y-to": C()
8630
8631
  }],
8631
8632
  "mask-image-radial": [{
8632
8633
  "mask-radial": [W, $]
@@ -8638,10 +8639,10 @@ const Lp = (e, t) => {
8638
8639
  "mask-radial-to": F()
8639
8640
  }],
8640
8641
  "mask-image-radial-from-color": [{
8641
- "mask-radial-from": S()
8642
+ "mask-radial-from": C()
8642
8643
  }],
8643
8644
  "mask-image-radial-to-color": [{
8644
- "mask-radial-to": S()
8645
+ "mask-radial-to": C()
8645
8646
  }],
8646
8647
  "mask-image-radial-shape": [{
8647
8648
  "mask-radial": ["circle", "ellipse"]
@@ -8653,7 +8654,7 @@ const Lp = (e, t) => {
8653
8654
  }]
8654
8655
  }],
8655
8656
  "mask-image-radial-pos": [{
8656
- "mask-radial-at": x()
8657
+ "mask-radial-at": S()
8657
8658
  }],
8658
8659
  "mask-image-conic-pos": [{
8659
8660
  "mask-conic": [X]
@@ -8665,10 +8666,10 @@ const Lp = (e, t) => {
8665
8666
  "mask-conic-to": F()
8666
8667
  }],
8667
8668
  "mask-image-conic-from-color": [{
8668
- "mask-conic-from": S()
8669
+ "mask-conic-from": C()
8669
8670
  }],
8670
8671
  "mask-image-conic-to-color": [{
8671
- "mask-conic-to": S()
8672
+ "mask-conic-to": C()
8672
8673
  }],
8673
8674
  /**
8674
8675
  * Mask Mode
@@ -8775,7 +8776,7 @@ const Lp = (e, t) => {
8775
8776
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
8776
8777
  */
8777
8778
  "drop-shadow-color": [{
8778
- "drop-shadow": S()
8779
+ "drop-shadow": C()
8779
8780
  }],
8780
8781
  /**
8781
8782
  * Grayscale
@@ -8962,7 +8963,7 @@ const Lp = (e, t) => {
8962
8963
  * @see https://tailwindcss.com/docs/transition-timing-function
8963
8964
  */
8964
8965
  ease: [{
8965
- ease: ["linear", "initial", k, W, $]
8966
+ ease: ["linear", "initial", E, W, $]
8966
8967
  }],
8967
8968
  /**
8968
8969
  * Transition Delay
@@ -8976,7 +8977,7 @@ const Lp = (e, t) => {
8976
8977
  * @see https://tailwindcss.com/docs/animation
8977
8978
  */
8978
8979
  animate: [{
8979
- animate: ["none", C, W, $]
8980
+ animate: ["none", k, W, $]
8980
8981
  }],
8981
8982
  // ------------------
8982
8983
  // --- Transforms ---
@@ -9146,7 +9147,7 @@ const Lp = (e, t) => {
9146
9147
  * @see https://tailwindcss.com/docs/accent-color
9147
9148
  */
9148
9149
  accent: [{
9149
- accent: S()
9150
+ accent: C()
9150
9151
  }],
9151
9152
  /**
9152
9153
  * Appearance
@@ -9160,7 +9161,7 @@ const Lp = (e, t) => {
9160
9161
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
9161
9162
  */
9162
9163
  "caret-color": [{
9163
- caret: S()
9164
+ caret: C()
9164
9165
  }],
9165
9166
  /**
9166
9167
  * Color Scheme
@@ -9406,7 +9407,7 @@ const Lp = (e, t) => {
9406
9407
  * @see https://tailwindcss.com/docs/fill
9407
9408
  */
9408
9409
  fill: [{
9409
- fill: ["none", ...S()]
9410
+ fill: ["none", ...C()]
9410
9411
  }],
9411
9412
  /**
9412
9413
  * Stroke Width
@@ -9420,7 +9421,7 @@ const Lp = (e, t) => {
9420
9421
  * @see https://tailwindcss.com/docs/stroke
9421
9422
  */
9422
9423
  stroke: [{
9423
- stroke: ["none", ...S()]
9424
+ stroke: ["none", ...C()]
9424
9425
  }],
9425
9426
  // ---------------------
9426
9427
  // --- Accessibility ---
@@ -9530,7 +9531,7 @@ function Eh({
9530
9531
  error: o,
9531
9532
  disabled: a
9532
9533
  }) {
9533
- const [s, i] = ue(!1), c = t[e.name], l = Ta(() => {
9534
+ const [s, i] = ue(!1), c = t[e.name], l = Vr(() => {
9534
9535
  const g = { from: void 0, to: void 0 };
9535
9536
  if (!c) return g;
9536
9537
  const h = (w) => {
@@ -9587,7 +9588,7 @@ function Eh({
9587
9588
  onClick: d,
9588
9589
  className: "p-1 hover:bg-muted rounded-full transition-colors focus-visible:ring-1 focus-visible:ring-ring outline-none",
9589
9590
  children: /* @__PURE__ */ u(
9590
- Gr,
9591
+ Yr,
9591
9592
  {
9592
9593
  className: "h-3.5 w-3.5 text-muted-foreground",
9593
9594
  "aria-hidden": "true"
@@ -9607,7 +9608,7 @@ function Eh({
9607
9608
  ) }),
9608
9609
  /* @__PURE__ */ D(Kn, { align: "start", className: "w-auto p-0", children: [
9609
9610
  /* @__PURE__ */ u("div", { className: "p-3", children: /* @__PURE__ */ u(
9610
- Vr,
9611
+ Gr,
9611
9612
  {
9612
9613
  mode: "range",
9613
9614
  selected: l,
@@ -9639,7 +9640,7 @@ function Eh({
9639
9640
  ] })
9640
9641
  ] }) });
9641
9642
  }
9642
- function Ea({
9643
+ function ka({
9643
9644
  field: e,
9644
9645
  formValues: t,
9645
9646
  error: n,
@@ -9656,11 +9657,11 @@ function Ea({
9656
9657
  !v && e.uploadEndpoint && console.error(
9657
9658
  `api_URL prop is required when using FileField with upload functionality for field "${e.name}"`
9658
9659
  );
9659
- const k = (y) => {
9660
+ const E = (y) => {
9660
9661
  if (y === 0) return "0 Bytes";
9661
9662
  const N = 1024, R = ["Bytes", "KB", "MB", "GB"], P = Math.floor(Math.log(y) / Math.log(N));
9662
9663
  return `${parseFloat((y / N ** P).toFixed(2))} ${R[P]}`;
9663
- }, C = async (y) => {
9664
+ }, k = async (y) => {
9664
9665
  const N = new FormData();
9665
9666
  N.append("file", y);
9666
9667
  const R = await fetch(`${v}`, {
@@ -9670,26 +9671,26 @@ function Ea({
9670
9671
  if (!R.ok)
9671
9672
  throw Cn.error("Upload failed"), new Error("Upload failed");
9672
9673
  return await R.json();
9673
- }, E = async (y, N) => {
9674
+ }, x = async (y, N) => {
9674
9675
  if (!N) return;
9675
9676
  if (y.maxSize && N.size > y.maxSize)
9676
9677
  throw new Error(
9677
- `File size must not exceed ${k(y.maxSize)}`
9678
+ `File size must not exceed ${E(y.maxSize)}`
9678
9679
  );
9679
- const R = await C(N), P = { ...t, [y.name]: R };
9680
+ const R = await k(N), P = { ...t, [y.name]: R };
9680
9681
  a(y.name, R), s(P);
9681
- }, x = async (y, N) => {
9682
+ }, S = async (y, N) => {
9682
9683
  const R = t[y.name] || [];
9683
9684
  if (y.maxFiles && R.length + N.length > y.maxFiles)
9684
9685
  throw new Error(`Maximum ${y.maxFiles} files allowed`);
9685
- N.forEach((S) => {
9686
- if (y.maxSize && S.size > y.maxSize)
9686
+ N.forEach((C) => {
9687
+ if (y.maxSize && C.size > y.maxSize)
9687
9688
  throw new Error(
9688
- `Each file must not exceed ${k(y.maxSize)}`
9689
+ `Each file must not exceed ${E(y.maxSize)}`
9689
9690
  );
9690
9691
  });
9691
9692
  const P = await Promise.all(
9692
- N.map((S) => C(S))
9693
+ N.map((C) => k(C))
9693
9694
  // Updated call
9694
9695
  ), _ = [...R, ...P];
9695
9696
  a(y.name, _), s({ ...t, [y.name]: _ });
@@ -9697,7 +9698,7 @@ function Ea({
9697
9698
  if (l) return;
9698
9699
  const R = Array.from(N);
9699
9700
  try {
9700
- e.type === "multifile" ? await x(e, R) : await E(e, R[0]), o.current?.[y] && (o.current[y].value = "");
9701
+ e.type === "multifile" ? await S(e, R) : await x(e, R[0]), o.current?.[y] && (o.current[y].value = "");
9701
9702
  } catch (P) {
9702
9703
  Cn.error(`Upload failed: ${P.message}`);
9703
9704
  }
@@ -9711,7 +9712,7 @@ function Ea({
9711
9712
  y.preventDefault(), l || p(!1);
9712
9713
  }, z = (y) => {
9713
9714
  y.preventDefault(), p(!1), !l && y.dataTransfer.files && y.dataTransfer.files.length > 0 && A(e.name, y.dataTransfer.files);
9714
- }, H = e.accept ? e.accept.split(",").map((y) => y.split("/")[1] || y.split(".")[1] || y).join(", ").toUpperCase() : "PNG, JPG, PDF", V = e.maxSize ? `, up to ${k(e.maxSize)}` : "", q = `
9715
+ }, H = e.accept ? e.accept.split(",").map((y) => y.split("/")[1] || y.split(".")[1] || y).join(", ").toUpperCase() : "PNG, JPG, PDF", V = e.maxSize ? `, up to ${E(e.maxSize)}` : "", q = `
9715
9716
  w-full flex flex-col items-center justify-center p-6 border-2 border-dashed rounded-lg transition-all duration-200
9716
9717
  // Ensure focus styling is handled correctly for the button element
9717
9718
  focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50
@@ -9784,7 +9785,7 @@ function Ea({
9784
9785
  /* @__PURE__ */ u("span", { className: "text-sm truncate", children: R }),
9785
9786
  P && /* @__PURE__ */ D("span", { className: "text-xs text-gray-500 flex-shrink-0", children: [
9786
9787
  "(",
9787
- k(P),
9788
+ E(P),
9788
9789
  ")"
9789
9790
  ] })
9790
9791
  ] }),
@@ -9900,13 +9901,13 @@ function Ah({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
9900
9901
  }, v = () => {
9901
9902
  let A = parseInt(d);
9902
9903
  A = (A + 5) % 60, h(l, A.toString(), m);
9903
- }, k = () => {
9904
+ }, E = () => {
9904
9905
  let A = parseInt(d);
9905
9906
  A = A === 0 ? 55 : A - 5, h(l, A.toString(), m);
9906
- }, C = () => {
9907
+ }, k = () => {
9907
9908
  h(l, d, m === "AM" ? "PM" : "AM");
9908
- }, E = () => n(e.name, null), x = [];
9909
- return e.maxDate && x.push({ after: new Date(e.maxDate) }), e.minDate && x.push({ before: new Date(e.minDate) }), /* @__PURE__ */ D("div", { className: "relative", children: [
9909
+ }, x = () => n(e.name, null), S = [];
9910
+ return e.maxDate && S.push({ after: new Date(e.maxDate) }), e.minDate && S.push({ before: new Date(e.minDate) }), /* @__PURE__ */ D("div", { className: "relative", children: [
9910
9911
  /* @__PURE__ */ D(Yn, { open: a, onOpenChange: s, children: [
9911
9912
  /* @__PURE__ */ u(qn, { asChild: !0, children: /* @__PURE__ */ D(
9912
9913
  "button",
@@ -9960,13 +9961,13 @@ function Ah({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
9960
9961
  className: "z-50 w-auto p-0 bg-white rounded-xl shadow-xl border border-slate-200",
9961
9962
  children: [
9962
9963
  /* @__PURE__ */ u("div", { className: "p-3", children: /* @__PURE__ */ u(
9963
- Vr,
9964
+ Gr,
9964
9965
  {
9965
9966
  mode: "single",
9966
9967
  selected: c,
9967
9968
  onSelect: g,
9968
9969
  showOutsideDays: !0,
9969
- disabled: x,
9970
+ disabled: S,
9970
9971
  className: "p-0",
9971
9972
  classNames: {
9972
9973
  day_selected: "bg-blue-600 text-white hover:bg-blue-600 hover:text-white focus:bg-blue-600 focus:text-white rounded-md",
@@ -9987,7 +9988,7 @@ function Ah({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
9987
9988
  /* @__PURE__ */ D("div", { className: "flex flex-col items-center gap-1", children: [
9988
9989
  /* @__PURE__ */ u("button", { type: "button", onClick: v, className: "p-1 h-6 w-6 flex items-center justify-center text-slate-400 hover:text-slate-700 hover:bg-slate-200 rounded-full transition-all", children: /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ u("path", { d: "m18 15-6-6-6 6" }) }) }),
9989
9990
  /* @__PURE__ */ u("div", { className: "w-12 h-10 flex items-center justify-center bg-white border border-slate-200 rounded-lg text-lg font-semibold shadow-sm text-slate-700", children: d }),
9990
- /* @__PURE__ */ u("button", { type: "button", onClick: k, className: "p-1 h-6 w-6 flex items-center justify-center text-slate-400 hover:text-slate-700 hover:bg-slate-200 rounded-full transition-all", children: /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ u("path", { d: "m6 9 6 6 6-6" }) }) })
9991
+ /* @__PURE__ */ u("button", { type: "button", onClick: E, className: "p-1 h-6 w-6 flex items-center justify-center text-slate-400 hover:text-slate-700 hover:bg-slate-200 rounded-full transition-all", children: /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ u("path", { d: "m6 9 6 6 6-6" }) }) })
9991
9992
  ] })
9992
9993
  ] }),
9993
9994
  /* @__PURE__ */ D("div", { className: "flex flex-col gap-1 bg-white p-1 rounded-lg border border-slate-200 shadow-sm", children: [
@@ -9995,7 +9996,7 @@ function Ah({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
9995
9996
  "button",
9996
9997
  {
9997
9998
  type: "button",
9998
- onClick: () => m !== "AM" && C(),
9999
+ onClick: () => m !== "AM" && k(),
9999
10000
  className: `px-3 py-1 text-xs font-bold rounded-md transition-all ${m === "AM" ? "bg-blue-50 text-blue-600" : "text-slate-400 hover:text-slate-600"}`,
10000
10001
  children: "AM"
10001
10002
  }
@@ -10004,7 +10005,7 @@ function Ah({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
10004
10005
  "button",
10005
10006
  {
10006
10007
  type: "button",
10007
- onClick: () => m !== "PM" && C(),
10008
+ onClick: () => m !== "PM" && k(),
10008
10009
  className: `px-3 py-1 text-xs font-bold rounded-md transition-all ${m === "PM" ? "bg-blue-50 text-blue-600" : "text-slate-400 hover:text-slate-600"}`,
10009
10010
  children: "PM"
10010
10011
  }
@@ -10016,7 +10017,7 @@ function Ah({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
10016
10017
  "button",
10017
10018
  {
10018
10019
  type: "button",
10019
- onClick: E,
10020
+ onClick: x,
10020
10021
  className: "inline-flex items-center justify-center rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-slate-500 hover:text-slate-900 hover:bg-slate-100 h-9 px-4 py-2",
10021
10022
  children: "Clear"
10022
10023
  }
@@ -10065,7 +10066,7 @@ function Rh(e) {
10065
10066
  let { children: o, ...a } = n;
10066
10067
  if (Ti(o) && typeof On == "function" && (o = On(o._payload)), f.isValidElement(o)) {
10067
10068
  const s = Dh(o), i = Mh(a, o.props);
10068
- return o.type !== f.Fragment && (i.ref = r ? Yr(r, s) : s), f.cloneElement(o, i);
10069
+ return o.type !== f.Fragment && (i.ref = r ? qr(r, s) : s), f.cloneElement(o, i);
10069
10070
  }
10070
10071
  return f.Children.count(o) > 1 ? f.Children.only(null) : null;
10071
10072
  });
@@ -10114,8 +10115,8 @@ var Ih = [
10114
10115
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(c, { ...i, ref: a });
10115
10116
  });
10116
10117
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
10117
- }, {}), Fh = "Separator", ka = "horizontal", $h = ["horizontal", "vertical"], Pi = f.forwardRef((e, t) => {
10118
- const { decorative: n, orientation: r = ka, ...o } = e, a = Wh(r) ? r : ka, i = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
10118
+ }, {}), Fh = "Separator", Aa = "horizontal", $h = ["horizontal", "vertical"], Pi = f.forwardRef((e, t) => {
10119
+ const { decorative: n, orientation: r = Aa, ...o } = e, a = Wh(r) ? r : Aa, i = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
10119
10120
  return /* @__PURE__ */ u(
10120
10121
  Lh.div,
10121
10122
  {
@@ -10225,17 +10226,17 @@ var Kh = f.forwardRef((e, t) => {
10225
10226
  onEntryFocus: l,
10226
10227
  preventScrollOnEntryFocus: d = !1,
10227
10228
  ...m
10228
- } = e, g = f.useRef(null), h = ie(t, g), w = qr(a), [p, v] = Xt({
10229
+ } = e, g = f.useRef(null), h = ie(t, g), w = Kr(a), [p, v] = Xt({
10229
10230
  prop: s,
10230
10231
  defaultProp: i ?? null,
10231
10232
  onChange: c,
10232
10233
  caller: tn
10233
- }), [k, C] = f.useState(!1), E = et(l), x = Oi(n), A = f.useRef(!1), [I, O] = f.useState(0);
10234
+ }), [E, k] = f.useState(!1), x = et(l), S = Oi(n), A = f.useRef(!1), [I, O] = f.useState(0);
10234
10235
  return f.useEffect(() => {
10235
10236
  const T = g.current;
10236
10237
  if (T)
10237
- return T.addEventListener(Nr, E), () => T.removeEventListener(Nr, E);
10238
- }, [E]), /* @__PURE__ */ u(
10238
+ return T.addEventListener(Nr, x), () => T.removeEventListener(Nr, x);
10239
+ }, [x]), /* @__PURE__ */ u(
10239
10240
  Yh,
10240
10241
  {
10241
10242
  scope: n,
@@ -10247,7 +10248,7 @@ var Kh = f.forwardRef((e, t) => {
10247
10248
  (T) => v(T),
10248
10249
  [v]
10249
10250
  ),
10250
- onItemShiftTab: f.useCallback(() => C(!0), []),
10251
+ onItemShiftTab: f.useCallback(() => k(!0), []),
10251
10252
  onFocusableItemAdd: f.useCallback(
10252
10253
  () => O((T) => T + 1),
10253
10254
  []
@@ -10259,7 +10260,7 @@ var Kh = f.forwardRef((e, t) => {
10259
10260
  children: /* @__PURE__ */ u(
10260
10261
  Ri.div,
10261
10262
  {
10262
- tabIndex: k || I === 0 ? -1 : 0,
10263
+ tabIndex: E || I === 0 ? -1 : 0,
10263
10264
  "data-orientation": r,
10264
10265
  ...m,
10265
10266
  ref: h,
@@ -10269,10 +10270,10 @@ var Kh = f.forwardRef((e, t) => {
10269
10270
  }),
10270
10271
  onFocus: J(e.onFocus, (T) => {
10271
10272
  const z = !A.current;
10272
- if (T.target === T.currentTarget && z && !k) {
10273
+ if (T.target === T.currentTarget && z && !E) {
10273
10274
  const H = new CustomEvent(Nr, jh);
10274
10275
  if (T.currentTarget.dispatchEvent(H), !H.defaultPrevented) {
10275
- const V = x().filter((P) => P.focusable), q = V.find((P) => P.active), y = V.find((P) => P.id === p), R = [q, y, ...V].filter(
10276
+ const V = S().filter((P) => P.focusable), q = V.find((P) => P.active), y = V.find((P) => P.id === p), R = [q, y, ...V].filter(
10276
10277
  Boolean
10277
10278
  ).map((P) => P.ref.current);
10278
10279
  Li(R, d);
@@ -10280,7 +10281,7 @@ var Kh = f.forwardRef((e, t) => {
10280
10281
  }
10281
10282
  A.current = !1;
10282
10283
  }),
10283
- onBlur: J(e.onBlur, () => C(!1))
10284
+ onBlur: J(e.onBlur, () => k(!1))
10284
10285
  }
10285
10286
  )
10286
10287
  }
@@ -10322,18 +10323,18 @@ var Kh = f.forwardRef((e, t) => {
10322
10323
  return;
10323
10324
  }
10324
10325
  if (v.target !== v.currentTarget) return;
10325
- const k = Zh(v, d.orientation, d.dir);
10326
- if (k !== void 0) {
10326
+ const E = Zh(v, d.orientation, d.dir);
10327
+ if (E !== void 0) {
10327
10328
  if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
10328
10329
  v.preventDefault();
10329
- let E = g().filter((x) => x.focusable).map((x) => x.ref.current);
10330
- if (k === "last") E.reverse();
10331
- else if (k === "prev" || k === "next") {
10332
- k === "prev" && E.reverse();
10333
- const x = E.indexOf(v.currentTarget);
10334
- E = d.loop ? Jh(E, x + 1) : E.slice(x + 1);
10330
+ let x = g().filter((S) => S.focusable).map((S) => S.ref.current);
10331
+ if (E === "last") x.reverse();
10332
+ else if (E === "prev" || E === "next") {
10333
+ E === "prev" && x.reverse();
10334
+ const S = x.indexOf(v.currentTarget);
10335
+ x = d.loop ? Jh(x, S + 1) : x.slice(S + 1);
10335
10336
  }
10336
- setTimeout(() => Li(E));
10337
+ setTimeout(() => Li(x));
10337
10338
  }
10338
10339
  }),
10339
10340
  children: typeof s == "function" ? s({ isCurrentTabStop: m, hasTabStop: p != null }) : s
@@ -10370,7 +10371,7 @@ function Li(e, t = !1) {
10370
10371
  function Jh(e, t) {
10371
10372
  return e.map((n, r) => e[(t + r) % e.length]);
10372
10373
  }
10373
- var eg = Mi, tg = Ii, fo = "Radio", [ng, Fi] = ht(fo), [rg, og] = ng(fo), $i = f.forwardRef(
10374
+ var eg = Mi, tg = Ii, mo = "Radio", [ng, Fi] = ht(mo), [rg, og] = ng(mo), $i = f.forwardRef(
10374
10375
  (e, t) => {
10375
10376
  const {
10376
10377
  __scopeRadio: n,
@@ -10418,7 +10419,7 @@ var eg = Mi, tg = Ii, fo = "Radio", [ng, Fi] = ht(fo), [rg, og] = ng(fo), $i = f
10418
10419
  ] });
10419
10420
  }
10420
10421
  );
10421
- $i.displayName = fo;
10422
+ $i.displayName = mo;
10422
10423
  var Wi = "RadioIndicator", zi = f.forwardRef(
10423
10424
  (e, t) => {
10424
10425
  const { __scopeRadio: n, forceMount: r, ...o } = e, a = og(Wi, n);
@@ -10496,7 +10497,7 @@ var sg = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Qn = "RadioGroup",
10496
10497
  loop: d = !0,
10497
10498
  onValueChange: m,
10498
10499
  ...g
10499
- } = e, h = Ui(n), w = qr(l), [p, v] = Xt({
10500
+ } = e, h = Ui(n), w = Kr(l), [p, v] = Xt({
10500
10501
  prop: a,
10501
10502
  defaultProp: o ?? null,
10502
10503
  onChange: m,
@@ -10600,7 +10601,7 @@ function pg({
10600
10601
  }
10601
10602
  );
10602
10603
  }
10603
- function Aa({
10604
+ function Na({
10604
10605
  className: e,
10605
10606
  ...t
10606
10607
  }) {
@@ -10645,13 +10646,13 @@ function hg({
10645
10646
  setCharCounts: d,
10646
10647
  fileInputRefs: m,
10647
10648
  ...g
10648
- } = s, h = t[e.name] || "", w = a, p = e.options || [], v = e.inline || !1, k = e.renderType === "segment", C = g["aria-describedby"], E = k ? "mt-2 inline-flex w-full p-1 rounded-lg bg-muted/50 border border-border shadow-inner" : v ? "flex flex-wrap gap-6 mt-2" : "space-y-4 mt-2";
10649
+ } = s, h = t[e.name] || "", w = a, p = e.options || [], v = e.inline || !1, E = e.renderType === "segment", k = g["aria-describedby"], x = E ? "mt-2 inline-flex w-full p-1 rounded-lg bg-muted/50 border border-border shadow-inner" : v ? "flex flex-wrap gap-6 mt-2" : "space-y-4 mt-2";
10649
10650
  return /* @__PURE__ */ D(
10650
10651
  "fieldset",
10651
10652
  {
10652
10653
  className: `mb-4 ${e.fieldClass ? e.fieldClass : "col-span-full"}`,
10653
10654
  "aria-labelledby": `${e.name}-legend`,
10654
- "aria-describedby": o ? C : void 0,
10655
+ "aria-describedby": o ? k : void 0,
10655
10656
  children: [
10656
10657
  /* @__PURE__ */ u("legend", { className: "sr-only", children: e.label }),
10657
10658
  /* @__PURE__ */ u(
@@ -10659,14 +10660,14 @@ function hg({
10659
10660
  {
10660
10661
  ...g,
10661
10662
  value: h,
10662
- onValueChange: (x) => {
10663
- n(e.name, x), r(e.name);
10663
+ onValueChange: (S) => {
10664
+ n(e.name, S), r(e.name);
10664
10665
  },
10665
10666
  disabled: w,
10666
- className: E,
10667
- children: p.map((x) => {
10668
- const A = typeof x == "object" ? x.value : x, I = typeof x == "object" ? x.label : x, O = typeof x == "object" ? x.description : null, T = `${e.name}-${A}`, z = h === A;
10669
- return k ? /* @__PURE__ */ D(
10667
+ className: x,
10668
+ children: p.map((S) => {
10669
+ const A = typeof S == "object" ? S.value : S, I = typeof S == "object" ? S.label : S, O = typeof S == "object" ? S.description : null, T = `${e.name}-${A}`, z = h === A;
10670
+ return E ? /* @__PURE__ */ D(
10670
10671
  "label",
10671
10672
  {
10672
10673
  htmlFor: T,
@@ -10679,7 +10680,7 @@ function hg({
10679
10680
  `,
10680
10681
  children: [
10681
10682
  /* @__PURE__ */ u(
10682
- Aa,
10683
+ Na,
10683
10684
  {
10684
10685
  value: A,
10685
10686
  id: T,
@@ -10693,7 +10694,7 @@ function hg({
10693
10694
  A
10694
10695
  ) : /* @__PURE__ */ D("div", { className: "relative flex items-start group", children: [
10695
10696
  /* @__PURE__ */ u("div", { className: "flex h-6 items-center", children: /* @__PURE__ */ u(
10696
- Aa,
10697
+ Na,
10697
10698
  {
10698
10699
  value: A,
10699
10700
  id: T,
@@ -10778,30 +10779,33 @@ function bg({
10778
10779
  disabled: a,
10779
10780
  ...s
10780
10781
  }) {
10781
- const i = (C) => {
10782
- if (!C) return null;
10783
- const E = new Date(C);
10784
- return Number.isNaN(E.getTime()) ? null : E;
10785
- }, [c, l] = ue(!1), d = a, m = i(t[e.name]), [g, h] = ue(m || /* @__PURE__ */ new Date());
10782
+ const i = (x) => {
10783
+ if (!x) return null;
10784
+ const S = new Date(x);
10785
+ return Number.isNaN(S.getTime()) ? null : S;
10786
+ }, [c, l] = ue(!1), d = a, m = t[e.name], g = Vr(() => i(m), [m]), [h, w] = ue(g || /* @__PURE__ */ new Date());
10786
10787
  s["aria-describedby"], He(() => {
10787
- c && h(m || /* @__PURE__ */ new Date());
10788
- }, [c, m]);
10789
- const w = [];
10790
- e.maxDate && w.push({ after: new Date(e.maxDate) }), e.minDate && w.push({ before: new Date(e.minDate) });
10791
- const p = (C) => {
10792
- n(e.name, C || null), C && h(C), e.closeOnSelect !== !1 && l(!1), r(e.name);
10793
- }, v = () => {
10794
- const C = /* @__PURE__ */ new Date();
10795
- n(e.name, C), h(C), e.closeOnSelect !== !1 && l(!1), r(e.name);
10796
- }, k = (C) => {
10797
- C.preventDefault(), C.stopPropagation(), n(e.name, null), h(/* @__PURE__ */ new Date()), r(e.name);
10788
+ if (c) {
10789
+ const x = g || /* @__PURE__ */ new Date();
10790
+ w((S) => S.getFullYear() === x.getFullYear() && S.getMonth() === x.getMonth() ? S : x);
10791
+ }
10792
+ }, [c, g]);
10793
+ const p = [];
10794
+ e.maxDate && p.push({ after: new Date(e.maxDate) }), e.minDate && p.push({ before: new Date(e.minDate) });
10795
+ const v = (x) => {
10796
+ n(e.name, x || null), x && w(x), e.closeOnSelect !== !1 && l(!1), r(e.name);
10797
+ }, E = () => {
10798
+ const x = /* @__PURE__ */ new Date();
10799
+ n(e.name, x), w(x), e.closeOnSelect !== !1 && l(!1), r(e.name);
10800
+ }, k = (x) => {
10801
+ x.preventDefault(), x.stopPropagation(), n(e.name, null), w(/* @__PURE__ */ new Date()), r(e.name);
10798
10802
  };
10799
10803
  return /* @__PURE__ */ u("div", { className: "relative w-full", children: /* @__PURE__ */ D(
10800
10804
  Yn,
10801
10805
  {
10802
10806
  open: c,
10803
- onOpenChange: (C) => {
10804
- l(C), C || r(e.name);
10807
+ onOpenChange: (x) => {
10808
+ l(x), x || r(e.name);
10805
10809
  },
10806
10810
  children: [
10807
10811
  /* @__PURE__ */ u(qn, { asChild: !0, children: /* @__PURE__ */ D(
@@ -10813,8 +10817,8 @@ function bg({
10813
10817
  "aria-controls": e.name + "-calendar",
10814
10818
  tabIndex: d ? -1 : 0,
10815
10819
  onClick: () => !d && l(!0),
10816
- onKeyDown: (C) => {
10817
- d || (C.key === "Enter" || C.key === " ") && (C.preventDefault(), l(!0));
10820
+ onKeyDown: (x) => {
10821
+ d || (x.key === "Enter" || x.key === " ") && (x.preventDefault(), l(!0));
10818
10822
  },
10819
10823
  className: `
10820
10824
  flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm
@@ -10831,10 +10835,10 @@ function bg({
10831
10835
  "aria-hidden": "true"
10832
10836
  }
10833
10837
  ),
10834
- m ? /* @__PURE__ */ u("span", { className: "truncate", children: Hr(m, "PPP") }) : /* @__PURE__ */ u("span", { className: "text-muted-foreground truncate", children: e.placeholder || "Pick a date" })
10838
+ g ? /* @__PURE__ */ u("span", { className: "truncate", children: Hr(g, "PPP") }) : /* @__PURE__ */ u("span", { className: "text-muted-foreground truncate", children: e.placeholder || "Pick a date" })
10835
10839
  ] }),
10836
10840
  /* @__PURE__ */ D("div", { className: "flex items-center gap-1", children: [
10837
- m && !d && /* @__PURE__ */ u(
10841
+ g && !d && /* @__PURE__ */ u(
10838
10842
  "button",
10839
10843
  {
10840
10844
  type: "button",
@@ -10842,7 +10846,7 @@ function bg({
10842
10846
  onClick: k,
10843
10847
  className: "p-1 hover:bg-muted rounded-full transition-colors focus-visible:ring-1 focus-visible:ring-ring outline-none relative z-10",
10844
10848
  children: /* @__PURE__ */ u(
10845
- Gr,
10849
+ Yr,
10846
10850
  {
10847
10851
  className: "h-3.5 w-3.5 text-muted-foreground",
10848
10852
  "aria-hidden": "true"
@@ -10869,15 +10873,15 @@ function bg({
10869
10873
  className: "z-50 w-auto p-0 bg-popover border border-border rounded-lg shadow-xl",
10870
10874
  children: [
10871
10875
  /* @__PURE__ */ u("div", { className: "p-3", children: /* @__PURE__ */ u(
10872
- Vr,
10876
+ Gr,
10873
10877
  {
10874
10878
  mode: "single",
10875
- selected: m,
10876
- month: g,
10877
- onMonthChange: h,
10878
- onSelect: p,
10879
+ selected: g,
10880
+ month: h,
10881
+ onMonthChange: w,
10882
+ onSelect: v,
10879
10883
  showOutsideDays: !0,
10880
- disabled: w,
10884
+ disabled: p,
10881
10885
  classNames: {
10882
10886
  day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground",
10883
10887
  day_today: "bg-accent text-accent-foreground font-bold",
@@ -10892,7 +10896,7 @@ function bg({
10892
10896
  "button",
10893
10897
  {
10894
10898
  type: "button",
10895
- onClick: v,
10899
+ onClick: E,
10896
10900
  className: "text-xs font-medium px-4 py-2 rounded-md border border-input bg-background hover:bg-muted transition-all focus-visible:ring-2 focus-visible:ring-ring",
10897
10901
  children: "Today"
10898
10902
  }
@@ -10918,27 +10922,27 @@ function vg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
10918
10922
  const [a, s] = ue(!1), [i, c] = ue("12"), [l, d] = ue("00"), [m, g] = ue("PM"), h = t[e.name] || "";
10919
10923
  Te.useEffect(() => {
10920
10924
  if (h) {
10921
- const x = h.match(/(\d{1,2}):(\d{2})\s*(AM|PM)/i);
10922
- x && (c(x[1].padStart(2, "0")), d(x[2]), g(x[3].toUpperCase()));
10925
+ const S = h.match(/(\d{1,2}):(\d{2})\s*(AM|PM)/i);
10926
+ S && (c(S[1].padStart(2, "0")), d(S[2]), g(S[3].toUpperCase()));
10923
10927
  }
10924
10928
  }, [h]);
10925
10929
  const w = () => {
10926
- const x = `${i}:${l} ${m}`;
10927
- n(e.name, x), s(!1);
10930
+ const S = `${i}:${l} ${m}`;
10931
+ n(e.name, S), s(!1);
10928
10932
  }, p = () => {
10929
10933
  n(e.name, ""), c("12"), d("00"), g("PM");
10930
10934
  }, v = () => {
10931
- const x = parseInt(i);
10932
- c((x % 12 + 1).toString().padStart(2, "0"));
10933
- }, k = () => {
10934
- const x = parseInt(i);
10935
- c((x === 1 ? 12 : x - 1).toString().padStart(2, "0"));
10936
- }, C = () => {
10937
- const x = parseInt(l);
10938
- d(((x + 5) % 60).toString().padStart(2, "0"));
10935
+ const S = parseInt(i);
10936
+ c((S % 12 + 1).toString().padStart(2, "0"));
10939
10937
  }, E = () => {
10940
- const x = parseInt(l);
10941
- d((x === 0 ? 55 : x - 5).toString().padStart(2, "0"));
10938
+ const S = parseInt(i);
10939
+ c((S === 1 ? 12 : S - 1).toString().padStart(2, "0"));
10940
+ }, k = () => {
10941
+ const S = parseInt(l);
10942
+ d(((S + 5) % 60).toString().padStart(2, "0"));
10943
+ }, x = () => {
10944
+ const S = parseInt(l);
10945
+ d((S === 0 ? 55 : S - 5).toString().padStart(2, "0"));
10942
10946
  };
10943
10947
  return /* @__PURE__ */ u("div", { children: /* @__PURE__ */ D(Yn, { open: a, onOpenChange: s, children: [
10944
10948
  /* @__PURE__ */ u(qn, { asChild: !0, children: /* @__PURE__ */ D(
@@ -11017,8 +11021,8 @@ function vg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
11017
11021
  {
11018
11022
  type: "text",
11019
11023
  value: i,
11020
- onChange: (x) => {
11021
- const A = x.target.value.replace(/\D/g, "");
11024
+ onChange: (S) => {
11025
+ const A = S.target.value.replace(/\D/g, "");
11022
11026
  (A === "" || parseInt(A) >= 1 && parseInt(A) <= 12) && c(A.padStart(2, "0"));
11023
11027
  },
11024
11028
  className: "w-14 text-center text-2xl font-semibold border-0 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded py-2",
@@ -11029,7 +11033,7 @@ function vg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
11029
11033
  "button",
11030
11034
  {
11031
11035
  type: "button",
11032
- onClick: k,
11036
+ onClick: E,
11033
11037
  className: "p-1 hover:bg-gray-100 rounded",
11034
11038
  children: /* @__PURE__ */ u(
11035
11039
  "svg",
@@ -11053,7 +11057,7 @@ function vg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
11053
11057
  "button",
11054
11058
  {
11055
11059
  type: "button",
11056
- onClick: C,
11060
+ onClick: k,
11057
11061
  className: "p-1 hover:bg-gray-100 rounded",
11058
11062
  children: /* @__PURE__ */ u(
11059
11063
  "svg",
@@ -11075,8 +11079,8 @@ function vg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
11075
11079
  {
11076
11080
  type: "text",
11077
11081
  value: l,
11078
- onChange: (x) => {
11079
- const A = x.target.value.replace(/\D/g, "");
11082
+ onChange: (S) => {
11083
+ const A = S.target.value.replace(/\D/g, "");
11080
11084
  (A === "" || parseInt(A) >= 0 && parseInt(A) <= 59) && d(A.padStart(2, "0"));
11081
11085
  },
11082
11086
  className: "w-14 text-center text-2xl font-semibold border-0 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded py-2",
@@ -11087,7 +11091,7 @@ function vg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
11087
11091
  "button",
11088
11092
  {
11089
11093
  type: "button",
11090
- onClick: E,
11094
+ onClick: x,
11091
11095
  className: "p-1 hover:bg-gray-100 rounded",
11092
11096
  children: /* @__PURE__ */ u(
11093
11097
  "svg",
@@ -11234,10 +11238,10 @@ const $g = ({
11234
11238
  },
11235
11239
  debugMode: l = !1
11236
11240
  }) => {
11237
- const [d, m] = ue({ ...i }), [g, h] = ue({}), [w, p] = ue({}), [v, k] = ue({}), C = Yt({}), E = ["hidden", "linebreak", "header", "alert"], x = Ta(
11241
+ const [d, m] = ue({ ...i }), [g, h] = ue({}), [w, p] = ue({}), [v, E] = ue({}), k = Yt({}), x = ["hidden", "linebreak", "header", "alert"], S = Vr(
11238
11242
  () => ({
11239
- file: Ea,
11240
- multifile: Ea,
11243
+ file: ka,
11244
+ multifile: ka,
11241
11245
  dateRange: Eh,
11242
11246
  date: bg,
11243
11247
  dayTimePicker: Ah,
@@ -11250,7 +11254,7 @@ const $g = ({
11250
11254
  html: um,
11251
11255
  checkbox: dm,
11252
11256
  radiogroup: hg,
11253
- input: ra,
11257
+ input: oa,
11254
11258
  number: zf,
11255
11259
  textarea: kh,
11256
11260
  header: gg,
@@ -11307,8 +11311,8 @@ const $g = ({
11307
11311
  if (_ && !y.required)
11308
11312
  return null;
11309
11313
  if (y.validate) {
11310
- const S = y.validate(N, R);
11311
- if (S) return S;
11314
+ const C = y.validate(N, R);
11315
+ if (C) return C;
11312
11316
  }
11313
11317
  if (y.type === "email" && N && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(N))
11314
11318
  return "Please enter a valid email address";
@@ -11333,13 +11337,13 @@ const $g = ({
11333
11337
  }
11334
11338
  ] : R.type === "dayTimePicker" ? P[y] = N ? ir(N).format("YYYY-MM-DD HH:mm:ss") : "" : R.type === "number" ? P[y] = N === "" ? "" : Number(N) : P[y] = N, R.type === "select" && r.fields.forEach((_) => {
11335
11339
  if (_.showIf && !_.showIf(P)) {
11336
- const S = _.type === "multiselect" || _.type === "searchselect" || _.type === "checkbox" && _.options && _.options.length > 0;
11337
- P[_.name] = S ? [] : "";
11340
+ const C = _.type === "multiselect" || _.type === "searchselect" || _.type === "checkbox" && _.options && _.options.length > 0;
11341
+ P[_.name] = C ? [] : "";
11338
11342
  }
11339
11343
  }), r.fields.forEach((_) => {
11340
11344
  if (typeof _.disabled == "function" && _.disabled(P)) {
11341
- const S = _.type === "multiselect" || _.type === "searchselect" || _.type === "checkbox" && _.options && _.options.length > 0;
11342
- P[_.name] = S ? [] : "";
11345
+ const C = _.type === "multiselect" || _.type === "searchselect" || _.type === "checkbox" && _.options && _.options.length > 0;
11346
+ P[_.name] = C ? [] : "";
11343
11347
  }
11344
11348
  }), m(P);
11345
11349
  }, T = (y) => {
@@ -11357,35 +11361,35 @@ const $g = ({
11357
11361
  _ && (R[P.name] = _);
11358
11362
  }
11359
11363
  }), h(R), Object.keys(R).length === 0) {
11360
- const P = (S, L) => {
11361
- if (S === "" || S === null || S === void 0) return null;
11364
+ const P = (C, L) => {
11365
+ if (C === "" || C === null || C === void 0) return null;
11362
11366
  const U = L?.toLowerCase();
11363
- if (Array.isArray(S))
11364
- return U === "number" || U === "integer" ? S.map((G) => G === "" ? null : Number(G)) : S;
11367
+ if (Array.isArray(C))
11368
+ return U === "number" || U === "integer" ? C.map((G) => G === "" ? null : Number(G)) : C;
11365
11369
  switch (U) {
11366
11370
  case "number":
11367
11371
  case "integer":
11368
11372
  case "float":
11369
- return Number(S);
11373
+ return Number(C);
11370
11374
  case "boolean":
11371
11375
  case "bool":
11372
- return String(S).toLowerCase() === "true" || S === !0;
11376
+ return String(C).toLowerCase() === "true" || C === !0;
11373
11377
  case "date":
11374
11378
  case "datetime": {
11375
- const G = ir(S);
11376
- return G.isValid() ? G.toISOString() : S;
11379
+ const G = ir(C);
11380
+ return G.isValid() ? G.toISOString() : C;
11377
11381
  }
11378
11382
  default:
11379
- return S;
11383
+ return C;
11380
11384
  }
11381
11385
  }, _ = {};
11382
- r.fields.forEach((S) => {
11383
- if (S.name) {
11384
- const L = d[S.name], U = S.fieldType || "string", G = P(L, U);
11385
- o ? _[S.name] = {
11386
+ r.fields.forEach((C) => {
11387
+ if (C.name) {
11388
+ const L = d[C.name], U = C.fieldType || "string", G = P(L, U);
11389
+ o ? _[C.name] = {
11386
11390
  value: G,
11387
11391
  fieldType: U
11388
- } : _[S.name] = G;
11392
+ } : _[C.name] = G;
11389
11393
  }
11390
11394
  }), l ? console.log("Form submitted with values:", _) : a(_);
11391
11395
  } else
@@ -11411,9 +11415,9 @@ const $g = ({
11411
11415
  `[fieldFormat RENDER] Rendering error for ${N.name}: ${R}`
11412
11416
  ) : g[N.name] && console.log(
11413
11417
  `[fieldFormat RENDER] Error exists in state for ${N.name} but not passed in props!`
11414
- )), E.includes(N.type))
11418
+ )), x.includes(N.type))
11415
11419
  return /* @__PURE__ */ u("div", { className: N.class || "col-span-full", children: y });
11416
- const _ = N.containerStyle, S = N.color || "blue", L = _ === "card" ? `rounded-lg border text-card-foreground shadow-sm p-4 ${N.containerClassName || H[S] || H.blue}` : "", U = /* @__PURE__ */ D(Rt, { children: [
11420
+ const _ = N.containerStyle, C = N.color || "blue", L = _ === "card" ? `rounded-lg border text-card-foreground shadow-sm p-4 ${N.containerClassName || H[C] || H.blue}` : "", U = /* @__PURE__ */ D(Rt, { children: [
11417
11421
  N.label && /* @__PURE__ */ D(
11418
11422
  "label",
11419
11423
  {
@@ -11437,7 +11441,7 @@ const $g = ({
11437
11441
  }
11438
11442
  const q = (y) => {
11439
11443
  if (y.showIf && !y.showIf(d)) return null;
11440
- const N = x[y.type] || ra;
11444
+ const N = S[y.type] || oa;
11441
11445
  if (d[y.name] === void 0) {
11442
11446
  const _ = y.type === "multiselect" || y.type === "searchselect" || y.type === "checkbox" && y.options && y.options.length > 0;
11443
11447
  d[y.name] = y.value !== void 0 ? y.value : _ ? [] : "";
@@ -11451,11 +11455,11 @@ const $g = ({
11451
11455
  formValues: d,
11452
11456
  handleChange: O,
11453
11457
  handleBlur: () => T(y.name),
11454
- setCharCounts: k,
11458
+ setCharCounts: E,
11455
11459
  charCount: v[y.name] || 0,
11456
11460
  api_URL: t,
11457
11461
  error: R,
11458
- fileInputRefs: C,
11462
+ fileInputRefs: k,
11459
11463
  disabled: P,
11460
11464
  apiClient: e
11461
11465
  }