ynotsoft-dynamic-form 1.0.97 → 1.0.98

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