react-lib-tools 0.0.29 → 0.0.30

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.
Files changed (43) hide show
  1. package/dist/CommonQuestionsRoute-CgAJzTXe.js +31 -0
  2. package/dist/{CommonQuestionsRoute-Bc_XQOxV.js.map → CommonQuestionsRoute-CgAJzTXe.js.map} +1 -1
  3. package/dist/CommonQuestionsRoute-n_iD3lwr.cjs +2 -0
  4. package/dist/{CommonQuestionsRoute-BaeYAOSK.cjs.map → CommonQuestionsRoute-n_iD3lwr.cjs.map} +1 -1
  5. package/dist/GettingStartedRoute-BQd7IviG.cjs +2 -0
  6. package/dist/GettingStartedRoute-BQd7IviG.cjs.map +1 -0
  7. package/dist/{GettingStartedRoute-Bo2cbVUj.js → GettingStartedRoute-Dxm39bWR.js} +15 -14
  8. package/dist/GettingStartedRoute-Dxm39bWR.js.map +1 -0
  9. package/dist/{PageNotFound-DaSDuLFe.js → PageNotFound-53YK_X9b.js} +9 -8
  10. package/dist/{PageNotFound-DaSDuLFe.js.map → PageNotFound-53YK_X9b.js.map} +1 -1
  11. package/dist/PageNotFound-CDk6JhhB.cjs +2 -0
  12. package/dist/{PageNotFound-CSaXlfY9.cjs.map → PageNotFound-CDk6JhhB.cjs.map} +1 -1
  13. package/dist/SupportRoute-CubM7tub.cjs +2 -0
  14. package/dist/{SupportRoute-Dp_lOrFo.cjs.map → SupportRoute-CubM7tub.cjs.map} +1 -1
  15. package/dist/{SupportRoute-z6fTrzW6.js → SupportRoute-DqIjoOuN.js} +5 -4
  16. package/dist/{SupportRoute-z6fTrzW6.js.map → SupportRoute-DqIjoOuN.js.map} +1 -1
  17. package/dist/{VersionsRoute-DpavxXiY.js → VersionsRoute-CU6kCScw.js} +18 -17
  18. package/dist/{VersionsRoute-DpavxXiY.js.map → VersionsRoute-CU6kCScw.js.map} +1 -1
  19. package/dist/VersionsRoute-DhLe3vGU.cjs +2 -0
  20. package/dist/{VersionsRoute-DOk3dm3e.cjs.map → VersionsRoute-DhLe3vGU.cjs.map} +1 -1
  21. package/dist/{index-BL-nqm0f.js → index-CmGluDif.js} +513 -518
  22. package/dist/index-CmGluDif.js.map +1 -0
  23. package/dist/{index-ePMHO6oA.cjs → index-CplpUoHk.cjs} +5 -5
  24. package/dist/index-CplpUoHk.cjs.map +1 -0
  25. package/dist/react-lib-tools.cjs +1 -1
  26. package/dist/react-lib-tools.js +6 -6
  27. package/dist/useLibraryContext-BL7MB9JL.cjs +2 -0
  28. package/dist/useLibraryContext-BL7MB9JL.cjs.map +1 -0
  29. package/dist/useLibraryContext-C15B6XV-.js +10 -0
  30. package/dist/useLibraryContext-C15B6XV-.js.map +1 -0
  31. package/package.json +9 -8
  32. package/scripts/compile-examples.ts +3 -1
  33. package/scripts/utils/syntax-highlight.ts +7 -1
  34. package/dist/CommonQuestionsRoute-BaeYAOSK.cjs +0 -2
  35. package/dist/CommonQuestionsRoute-Bc_XQOxV.js +0 -30
  36. package/dist/GettingStartedRoute-Bo2cbVUj.js.map +0 -1
  37. package/dist/GettingStartedRoute-CeEbxuNu.cjs +0 -2
  38. package/dist/GettingStartedRoute-CeEbxuNu.cjs.map +0 -1
  39. package/dist/PageNotFound-CSaXlfY9.cjs +0 -2
  40. package/dist/SupportRoute-Dp_lOrFo.cjs +0 -2
  41. package/dist/VersionsRoute-DOk3dm3e.cjs +0 -2
  42. package/dist/index-BL-nqm0f.js.map +0 -1
  43. package/dist/index-ePMHO6oA.cjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as R, jsxs as Z, Fragment as Et } from "react/jsx-runtime";
3
3
  import * as p from "react";
4
- import _, { createContext as ie, Component as za, createElement as gr, useRef as U, useCallback as J, useEffect as se, useState as te, useMemo as ue, useLayoutEffect as Gt, useContext as ee, forwardRef as Ua, Fragment as _e, isValidElement as _r, cloneElement as Si, useId as qe, useSyncExternalStore as Ga, useReducer as qa, useTransition as Ka, lazy as Mt } from "react";
4
+ import _, { createContext as ie, Component as Wa, createElement as gr, useRef as U, useCallback as J, useEffect as se, useState as ee, useMemo as ue, useLayoutEffect as Gt, useContext as te, forwardRef as za, Fragment as _e, isValidElement as _r, cloneElement as Si, useId as qe, useSyncExternalStore as Ua, useReducer as Ga, useTransition as qa, lazy as Mt } from "react";
5
5
  import * as bn from "react-dom";
6
6
  import { flushSync as wn, createPortal as Ci } from "react-dom";
7
- function Ya({
7
+ function Ka({
8
8
  title: e,
9
9
  titleId: t,
10
10
  ...n
@@ -25,8 +25,8 @@ function Ya({
25
25
  clipRule: "evenodd"
26
26
  }));
27
27
  }
28
- const Xa = /* @__PURE__ */ p.forwardRef(Ya);
29
- function Za({
28
+ const Ya = /* @__PURE__ */ p.forwardRef(Ka);
29
+ function Xa({
30
30
  title: e,
31
31
  titleId: t,
32
32
  ...n
@@ -51,8 +51,8 @@ function Za({
51
51
  clipRule: "evenodd"
52
52
  }));
53
53
  }
54
- const ki = /* @__PURE__ */ p.forwardRef(Za);
55
- function Ja({
54
+ const ki = /* @__PURE__ */ p.forwardRef(Xa);
55
+ function Za({
56
56
  title: e,
57
57
  titleId: t,
58
58
  ...n
@@ -73,8 +73,8 @@ function Ja({
73
73
  clipRule: "evenodd"
74
74
  }));
75
75
  }
76
- const Qa = /* @__PURE__ */ p.forwardRef(Ja);
77
- function es({
76
+ const Ja = /* @__PURE__ */ p.forwardRef(Za);
77
+ function Qa({
78
78
  title: e,
79
79
  titleId: t,
80
80
  ...n
@@ -95,8 +95,8 @@ function es({
95
95
  clipRule: "evenodd"
96
96
  }));
97
97
  }
98
- const ts = /* @__PURE__ */ p.forwardRef(es);
99
- function ns({
98
+ const es = /* @__PURE__ */ p.forwardRef(Qa);
99
+ function ts({
100
100
  title: e,
101
101
  titleId: t,
102
102
  ...n
@@ -117,8 +117,8 @@ function ns({
117
117
  clipRule: "evenodd"
118
118
  }));
119
119
  }
120
- const Pi = /* @__PURE__ */ p.forwardRef(ns);
121
- function rs({
120
+ const Pi = /* @__PURE__ */ p.forwardRef(ts);
121
+ function ns({
122
122
  title: e,
123
123
  titleId: t,
124
124
  ...n
@@ -139,8 +139,8 @@ function rs({
139
139
  clipRule: "evenodd"
140
140
  }));
141
141
  }
142
- const os = /* @__PURE__ */ p.forwardRef(rs);
143
- function is({
142
+ const rs = /* @__PURE__ */ p.forwardRef(ns);
143
+ function os({
144
144
  title: e,
145
145
  titleId: t,
146
146
  ...n
@@ -161,8 +161,8 @@ function is({
161
161
  clipRule: "evenodd"
162
162
  }));
163
163
  }
164
- const ls = /* @__PURE__ */ p.forwardRef(is);
165
- function as({
164
+ const is = /* @__PURE__ */ p.forwardRef(os);
165
+ function ls({
166
166
  title: e,
167
167
  titleId: t,
168
168
  ...n
@@ -183,8 +183,8 @@ function as({
183
183
  clipRule: "evenodd"
184
184
  }));
185
185
  }
186
- const ss = /* @__PURE__ */ p.forwardRef(as);
187
- function cs({
186
+ const as = /* @__PURE__ */ p.forwardRef(ls);
187
+ function ss({
188
188
  title: e,
189
189
  titleId: t,
190
190
  ...n
@@ -203,9 +203,9 @@ function cs({
203
203
  d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"
204
204
  }));
205
205
  }
206
- const us = /* @__PURE__ */ p.forwardRef(cs);
206
+ const cs = /* @__PURE__ */ p.forwardRef(ss);
207
207
  var bo = "popstate";
208
- function ds(e = {}) {
208
+ function us(e = {}) {
209
209
  function t(r, o) {
210
210
  let { pathname: i, search: l, hash: a } = r.location;
211
211
  return vr(
@@ -219,7 +219,7 @@ function ds(e = {}) {
219
219
  function n(r, o) {
220
220
  return typeof o == "string" ? o : Ht(o);
221
221
  }
222
- return ps(
222
+ return fs(
223
223
  t,
224
224
  n,
225
225
  null,
@@ -239,7 +239,7 @@ function Le(e, t) {
239
239
  }
240
240
  }
241
241
  }
242
- function fs() {
242
+ function ds() {
243
243
  return Math.random().toString(36).substring(2, 10);
244
244
  }
245
245
  function wo(e, t) {
@@ -260,7 +260,7 @@ function vr(e, t, n = null, r) {
260
260
  // full Locations now and avoid the need to run through this flow at all
261
261
  // But that's a pretty big refactor to the current test suite so going to
262
262
  // keep as is for the time being and just let any incoming keys take precedence
263
- key: t && t.key || r || fs()
263
+ key: t && t.key || r || ds()
264
264
  };
265
265
  }
266
266
  function Ht({
@@ -280,7 +280,7 @@ function St(e) {
280
280
  }
281
281
  return t;
282
282
  }
283
- function ps(e, t, n, r = {}) {
283
+ function fs(e, t, n, r = {}) {
284
284
  let { window: o = document.defaultView, v5Compat: i = !1 } = r, l = o.history, a = "POP", s = null, c = u();
285
285
  c == null && (c = 0, l.replaceState({ ...l.state, idx: c }, ""));
286
286
  function u() {
@@ -313,7 +313,7 @@ function ps(e, t, n, r = {}) {
313
313
  l.replaceState(w, "", $), i && s && s({ action: a, location: g.location, delta: 0 });
314
314
  }
315
315
  function h(v) {
316
- return ms(v);
316
+ return ps(v);
317
317
  }
318
318
  let g = {
319
319
  get action() {
@@ -349,25 +349,25 @@ function ps(e, t, n, r = {}) {
349
349
  };
350
350
  return g;
351
351
  }
352
- function ms(e, t = !1) {
352
+ function ps(e, t = !1) {
353
353
  let n = "http://localhost";
354
354
  typeof window < "u" && (n = window.location.origin !== "null" ? window.location.origin : window.location.href), ne(n, "No window.location.(origin|href) available to create URL");
355
355
  let r = typeof e == "string" ? e : Ht(e);
356
356
  return r = r.replace(/ $/, "%20"), !t && r.startsWith("//") && (r = n + r), new URL(r, n);
357
357
  }
358
358
  function Ti(e, t, n = "/") {
359
- return hs(e, t, n, !1);
359
+ return ms(e, t, n, !1);
360
360
  }
361
- function hs(e, t, n, r) {
361
+ function ms(e, t, n, r) {
362
362
  let o = typeof t == "string" ? St(t) : t, i = Ue(o.pathname || "/", n);
363
363
  if (i == null)
364
364
  return null;
365
365
  let l = Oi(e);
366
- gs(l);
366
+ hs(l);
367
367
  let a = null;
368
368
  for (let s = 0; a == null && s < l.length; ++s) {
369
369
  let c = Ai(i);
370
- a = Ss(
370
+ a = Rs(
371
371
  l[s],
372
372
  c,
373
373
  r
@@ -405,7 +405,7 @@ function Oi(e, t = [], n = [], r = "", o = !1) {
405
405
  s
406
406
  )), !(l.path == null && !l.index) && t.push({
407
407
  path: f,
408
- score: $s(f, l.index),
408
+ score: Es(f, l.index),
409
409
  routesMeta: m
410
410
  });
411
411
  };
@@ -432,23 +432,23 @@ function Li(e) {
432
432
  (s) => e.startsWith("/") && s === "" ? "/" : s
433
433
  );
434
434
  }
435
- function gs(e) {
435
+ function hs(e) {
436
436
  e.sort(
437
- (t, n) => t.score !== n.score ? n.score - t.score : Rs(
437
+ (t, n) => t.score !== n.score ? n.score - t.score : $s(
438
438
  t.routesMeta.map((r) => r.childrenIndex),
439
439
  n.routesMeta.map((r) => r.childrenIndex)
440
440
  )
441
441
  );
442
442
  }
443
- var vs = /^:[\w-]+$/, bs = 3, ws = 2, ys = 1, xs = 10, Es = -2, yo = (e) => e === "*";
444
- function $s(e, t) {
443
+ var gs = /^:[\w-]+$/, vs = 3, bs = 2, ws = 1, ys = 10, xs = -2, yo = (e) => e === "*";
444
+ function Es(e, t) {
445
445
  let n = e.split("/"), r = n.length;
446
- return n.some(yo) && (r += Es), t && (r += ws), n.filter((o) => !yo(o)).reduce(
447
- (o, i) => o + (vs.test(i) ? bs : i === "" ? ys : xs),
446
+ return n.some(yo) && (r += xs), t && (r += bs), n.filter((o) => !yo(o)).reduce(
447
+ (o, i) => o + (gs.test(i) ? vs : i === "" ? ws : ys),
448
448
  r
449
449
  );
450
450
  }
451
- function Rs(e, t) {
451
+ function $s(e, t) {
452
452
  return e.length === t.length && e.slice(0, -1).every((r, o) => r === t[o]) ? (
453
453
  // If two routes are siblings, we should try to match the earlier sibling
454
454
  // first. This allows people to have fine-grained control over the matching
@@ -461,7 +461,7 @@ function Rs(e, t) {
461
461
  0
462
462
  );
463
463
  }
464
- function Ss(e, t, n = !1) {
464
+ function Rs(e, t, n = !1) {
465
465
  let { routesMeta: r } = e, o = {}, i = "/", l = [];
466
466
  for (let a = 0; a < r.length; ++a) {
467
467
  let s = r[a], c = a === r.length - 1, u = i === "/" ? t : t.slice(i.length) || "/", f = jt(
@@ -481,7 +481,7 @@ function Ss(e, t, n = !1) {
481
481
  // TODO: Can this as be avoided?
482
482
  params: o,
483
483
  pathname: We([i, f.pathname]),
484
- pathnameBase: Ls(
484
+ pathnameBase: Os(
485
485
  We([i, f.pathnameBase])
486
486
  ),
487
487
  route: m
@@ -491,7 +491,7 @@ function Ss(e, t, n = !1) {
491
491
  }
492
492
  function jt(e, t) {
493
493
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
494
- let [n, r] = Cs(
494
+ let [n, r] = Ss(
495
495
  e.path,
496
496
  e.caseSensitive,
497
497
  e.end
@@ -515,7 +515,7 @@ function jt(e, t) {
515
515
  pattern: e
516
516
  };
517
517
  }
518
- function Cs(e, t = !1, n = !0) {
518
+ function Ss(e, t = !1, n = !0) {
519
519
  Le(
520
520
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
521
521
  `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
@@ -543,15 +543,15 @@ function Ue(e, t) {
543
543
  let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
544
544
  return r && r !== "/" ? null : e.slice(n) || "/";
545
545
  }
546
- var ks = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ps = (e) => ks.test(e);
547
- function Ts(e, t = "/") {
546
+ var Cs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ks = (e) => Cs.test(e);
547
+ function Ps(e, t = "/") {
548
548
  let {
549
549
  pathname: n,
550
550
  search: r = "",
551
551
  hash: o = ""
552
552
  } = typeof e == "string" ? St(e) : e, i;
553
553
  if (n)
554
- if (Ps(n))
554
+ if (ks(n))
555
555
  i = n;
556
556
  else {
557
557
  if (n.includes("//")) {
@@ -567,8 +567,8 @@ function Ts(e, t = "/") {
567
567
  i = t;
568
568
  return {
569
569
  pathname: i,
570
- search: As(r),
571
- hash: Ms(o)
570
+ search: Ls(r),
571
+ hash: As(o)
572
572
  };
573
573
  }
574
574
  function xo(e, t) {
@@ -582,13 +582,13 @@ function qn(e, t, n, r) {
582
582
  r
583
583
  )}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
584
584
  }
585
- function Os(e) {
585
+ function Ts(e) {
586
586
  return e.filter(
587
587
  (t, n) => n === 0 || t.route.path && t.route.path.length > 0
588
588
  );
589
589
  }
590
590
  function Mi(e) {
591
- let t = Os(e);
591
+ let t = Ts(e);
592
592
  return t.map(
593
593
  (n, r) => r === t.length - 1 ? n.pathname : n.pathnameBase
594
594
  );
@@ -618,14 +618,14 @@ function Fi(e, t, n, r = !1) {
618
618
  }
619
619
  a = f >= 0 ? t[f] : "/";
620
620
  }
621
- let s = Ts(o, a), c = l && l !== "/" && l.endsWith("/"), u = (i || l === ".") && n.endsWith("/");
621
+ let s = Ps(o, a), c = l && l !== "/" && l.endsWith("/"), u = (i || l === ".") && n.endsWith("/");
622
622
  return !s.pathname.endsWith("/") && (c || u) && (s.pathname += "/"), s;
623
623
  }
624
- var We = (e) => e.join("/").replace(/\/\/+/g, "/"), Ls = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), As = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ms = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
625
- function Fs(e) {
624
+ var We = (e) => e.join("/").replace(/\/\/+/g, "/"), Os = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ls = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, As = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
625
+ function Ms(e) {
626
626
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
627
627
  }
628
- function Is(e) {
628
+ function Fs(e) {
629
629
  return e.map((t) => t.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
630
630
  }
631
631
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
@@ -638,11 +638,11 @@ var Ii = [
638
638
  new Set(
639
639
  Ii
640
640
  );
641
- var Ns = [
641
+ var Is = [
642
642
  "GET",
643
643
  ...Ii
644
644
  ];
645
- new Set(Ns);
645
+ new Set(Is);
646
646
  var Ct = p.createContext(null);
647
647
  Ct.displayName = "DataRouter";
648
648
  var Tn = p.createContext(null);
@@ -652,12 +652,12 @@ var Ni = p.createContext({
652
652
  isTransitioning: !1
653
653
  });
654
654
  Ni.displayName = "ViewTransition";
655
- var Ds = p.createContext(
655
+ var Ns = p.createContext(
656
656
  /* @__PURE__ */ new Map()
657
657
  );
658
- Ds.displayName = "Fetchers";
659
- var _s = p.createContext(null);
660
- _s.displayName = "Await";
658
+ Ns.displayName = "Fetchers";
659
+ var Ds = p.createContext(null);
660
+ Ds.displayName = "Await";
661
661
  var Ae = p.createContext(
662
662
  null
663
663
  );
@@ -674,7 +674,7 @@ var Ke = p.createContext({
674
674
  Ke.displayName = "Route";
675
675
  var Br = p.createContext(null);
676
676
  Br.displayName = "RouteError";
677
- function Bs(e, { relative: t } = {}) {
677
+ function _s(e, { relative: t } = {}) {
678
678
  ne(
679
679
  kt(),
680
680
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -695,7 +695,7 @@ function Ye() {
695
695
  "useLocation() may be used only in the context of a <Router> component."
696
696
  ), p.useContext(qt).location;
697
697
  }
698
- function Hs(e) {
698
+ function Bs(e) {
699
699
  ne(
700
700
  kt(),
701
701
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -714,9 +714,9 @@ function _i(e) {
714
714
  }
715
715
  function Bi() {
716
716
  let { isDataRoute: e } = p.useContext(Ke);
717
- return e ? Qs() : js();
717
+ return e ? Js() : Hs();
718
718
  }
719
- function js() {
719
+ function Hs() {
720
720
  ne(
721
721
  kt(),
722
722
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -767,7 +767,7 @@ function Kt(e, { relative: t } = {}) {
767
767
  [e, o, r, t]
768
768
  );
769
769
  }
770
- function Vs(e, t) {
770
+ function js(e, t) {
771
771
  return Hi(e, t);
772
772
  }
773
773
  function Hi(e, t, n, r, o) {
@@ -810,7 +810,7 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
810
810
  v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0,
811
811
  `Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
812
812
  );
813
- let b = qs(
813
+ let b = Gs(
814
814
  v && v.map(
815
815
  (y) => Object.assign({}, y, {
816
816
  params: Object.assign({}, s, y.params),
@@ -860,14 +860,14 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
860
860
  b
861
861
  ) : b;
862
862
  }
863
- function Ws() {
864
- let e = Js(), t = Fs(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = { padding: "0.5rem", backgroundColor: r }, i = { padding: "2px 4px", backgroundColor: r }, l = null;
863
+ function Vs() {
864
+ let e = Zs(), t = Ms(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = { padding: "0.5rem", backgroundColor: r }, i = { padding: "2px 4px", backgroundColor: r }, l = null;
865
865
  return console.error(
866
866
  "Error handled by React Router default ErrorBoundary:",
867
867
  e
868
868
  ), l = /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ p.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ p.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ p.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ p.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ p.createElement("pre", { style: o }, n) : null, l);
869
869
  }
870
- var zs = /* @__PURE__ */ p.createElement(Ws, null), Us = class extends p.Component {
870
+ var Ws = /* @__PURE__ */ p.createElement(Vs, null), zs = class extends p.Component {
871
871
  constructor(e) {
872
872
  super(e), this.state = {
873
873
  location: e.location,
@@ -905,11 +905,11 @@ var zs = /* @__PURE__ */ p.createElement(Ws, null), Us = class extends p.Compone
905
905
  )) : this.props.children;
906
906
  }
907
907
  };
908
- function Gs({ routeContext: e, match: t, children: n }) {
908
+ function Us({ routeContext: e, match: t, children: n }) {
909
909
  let r = p.useContext(Ct);
910
910
  return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ p.createElement(Ke.Provider, { value: e }, n);
911
911
  }
912
- function qs(e, t = [], n = null, r = null, o = null) {
912
+ function Gs(e, t = [], n = null, r = null, o = null) {
913
913
  if (e == null) {
914
914
  if (!n)
915
915
  return null;
@@ -951,14 +951,14 @@ function qs(e, t = [], n = null, r = null, o = null) {
951
951
  r(u, {
952
952
  location: n.location,
953
953
  params: n.matches?.[0]?.params ?? {},
954
- unstable_pattern: Is(n.matches),
954
+ unstable_pattern: Fs(n.matches),
955
955
  errorInfo: f
956
956
  });
957
957
  } : void 0;
958
958
  return i.reduceRight(
959
959
  (u, f, m) => {
960
960
  let d, h = !1, g = null, v = null;
961
- n && (d = l && f.route.id ? l[f.route.id] : void 0, g = f.route.errorElement || zs, a && (s < 0 && m === 0 ? (ji(
961
+ n && (d = l && f.route.id ? l[f.route.id] : void 0, g = f.route.errorElement || Ws, a && (s < 0 && m === 0 ? (ji(
962
962
  "route-fallback",
963
963
  !1,
964
964
  "No `HydrateFallback` element provided to render during initial hydration"
@@ -966,7 +966,7 @@ function qs(e, t = [], n = null, r = null, o = null) {
966
966
  let b = t.concat(i.slice(0, m + 1)), y = () => {
967
967
  let w;
968
968
  return d ? w = g : h ? w = v : f.route.Component ? w = /* @__PURE__ */ p.createElement(f.route.Component, null) : f.route.element ? w = f.route.element : w = u, /* @__PURE__ */ p.createElement(
969
- Gs,
969
+ Us,
970
970
  {
971
971
  match: f,
972
972
  routeContext: {
@@ -979,7 +979,7 @@ function qs(e, t = [], n = null, r = null, o = null) {
979
979
  );
980
980
  };
981
981
  return n && (f.route.ErrorBoundary || f.route.errorElement || m === 0) ? /* @__PURE__ */ p.createElement(
982
- Us,
982
+ zs,
983
983
  {
984
984
  location: n.location,
985
985
  revalidation: n.revalidation,
@@ -997,33 +997,33 @@ function qs(e, t = [], n = null, r = null, o = null) {
997
997
  function Hr(e) {
998
998
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
999
999
  }
1000
- function Ks(e) {
1000
+ function qs(e) {
1001
1001
  let t = p.useContext(Ct);
1002
1002
  return ne(t, Hr(e)), t;
1003
1003
  }
1004
- function Ys(e) {
1004
+ function Ks(e) {
1005
1005
  let t = p.useContext(Tn);
1006
1006
  return ne(t, Hr(e)), t;
1007
1007
  }
1008
- function Xs(e) {
1008
+ function Ys(e) {
1009
1009
  let t = p.useContext(Ke);
1010
1010
  return ne(t, Hr(e)), t;
1011
1011
  }
1012
1012
  function jr(e) {
1013
- let t = Xs(e), n = t.matches[t.matches.length - 1];
1013
+ let t = Ys(e), n = t.matches[t.matches.length - 1];
1014
1014
  return ne(
1015
1015
  n.route.id,
1016
1016
  `${e} can only be used on routes that contain a unique "id"`
1017
1017
  ), n.route.id;
1018
1018
  }
1019
- function Zs() {
1019
+ function Xs() {
1020
1020
  return jr(
1021
1021
  "useRouteId"
1022
1022
  /* UseRouteId */
1023
1023
  );
1024
1024
  }
1025
- function Js() {
1026
- let e = p.useContext(Br), t = Ys(
1025
+ function Zs() {
1026
+ let e = p.useContext(Br), t = Ks(
1027
1027
  "useRouteError"
1028
1028
  /* UseRouteError */
1029
1029
  ), n = jr(
@@ -1032,8 +1032,8 @@ function Js() {
1032
1032
  );
1033
1033
  return e !== void 0 ? e : t.errors?.[n];
1034
1034
  }
1035
- function Qs() {
1036
- let { router: e } = Ks(
1035
+ function Js() {
1036
+ let { router: e } = qs(
1037
1037
  "useNavigate"
1038
1038
  /* UseNavigateStable */
1039
1039
  ), t = jr(
@@ -1053,8 +1053,8 @@ var Eo = {};
1053
1053
  function ji(e, t, n) {
1054
1054
  !t && !Eo[e] && (Eo[e] = !0, Le(!1, n));
1055
1055
  }
1056
- p.memo(ec);
1057
- function ec({
1056
+ p.memo(Qs);
1057
+ function Qs({
1058
1058
  routes: e,
1059
1059
  future: t,
1060
1060
  state: n,
@@ -1068,7 +1068,7 @@ function Vi(e) {
1068
1068
  "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."
1069
1069
  );
1070
1070
  }
1071
- function tc({
1071
+ function ec({
1072
1072
  basename: e = "/",
1073
1073
  children: t = null,
1074
1074
  location: n,
@@ -1116,11 +1116,11 @@ function tc({
1116
1116
  `<Router basename="${a}"> is not able to match the URL "${c}${u}${f}" because it does not start with the basename, so the <Router> won't render anything.`
1117
1117
  ), h == null ? null : /* @__PURE__ */ p.createElement(Ae.Provider, { value: s }, /* @__PURE__ */ p.createElement(qt.Provider, { children: t, value: h }));
1118
1118
  }
1119
- function nc({
1119
+ function tc({
1120
1120
  children: e,
1121
1121
  location: t
1122
1122
  }) {
1123
- return Vs(br(e), t);
1123
+ return js(br(e), t);
1124
1124
  }
1125
1125
  function br(e, t = []) {
1126
1126
  let n = [];
@@ -1171,25 +1171,25 @@ var fn = "get", pn = "application/x-www-form-urlencoded";
1171
1171
  function On(e) {
1172
1172
  return typeof HTMLElement < "u" && e instanceof HTMLElement;
1173
1173
  }
1174
- function rc(e) {
1174
+ function nc(e) {
1175
1175
  return On(e) && e.tagName.toLowerCase() === "button";
1176
1176
  }
1177
- function oc(e) {
1177
+ function rc(e) {
1178
1178
  return On(e) && e.tagName.toLowerCase() === "form";
1179
1179
  }
1180
- function ic(e) {
1180
+ function oc(e) {
1181
1181
  return On(e) && e.tagName.toLowerCase() === "input";
1182
1182
  }
1183
- function lc(e) {
1183
+ function ic(e) {
1184
1184
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1185
1185
  }
1186
- function ac(e, t) {
1186
+ function lc(e, t) {
1187
1187
  return e.button === 0 && // Ignore everything but left clicks
1188
1188
  (!t || t === "_self") && // Let browser handle "target=_blank" etc.
1189
- !lc(e);
1189
+ !ic(e);
1190
1190
  }
1191
1191
  var en = null;
1192
- function sc() {
1192
+ function ac() {
1193
1193
  if (en === null)
1194
1194
  try {
1195
1195
  new FormData(
@@ -1202,30 +1202,30 @@ function sc() {
1202
1202
  }
1203
1203
  return en;
1204
1204
  }
1205
- var cc = /* @__PURE__ */ new Set([
1205
+ var sc = /* @__PURE__ */ new Set([
1206
1206
  "application/x-www-form-urlencoded",
1207
1207
  "multipart/form-data",
1208
1208
  "text/plain"
1209
1209
  ]);
1210
1210
  function Kn(e) {
1211
- return e != null && !cc.has(e) ? (Le(
1211
+ return e != null && !sc.has(e) ? (Le(
1212
1212
  !1,
1213
1213
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pn}"`
1214
1214
  ), null) : e;
1215
1215
  }
1216
- function uc(e, t) {
1216
+ function cc(e, t) {
1217
1217
  let n, r, o, i, l;
1218
- if (oc(e)) {
1218
+ if (rc(e)) {
1219
1219
  let a = e.getAttribute("action");
1220
1220
  r = a ? Ue(a, t) : null, n = e.getAttribute("method") || fn, o = Kn(e.getAttribute("enctype")) || pn, i = new FormData(e);
1221
- } else if (rc(e) || ic(e) && (e.type === "submit" || e.type === "image")) {
1221
+ } else if (nc(e) || oc(e) && (e.type === "submit" || e.type === "image")) {
1222
1222
  let a = e.form;
1223
1223
  if (a == null)
1224
1224
  throw new Error(
1225
1225
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1226
1226
  );
1227
1227
  let s = e.getAttribute("formaction") || a.getAttribute("action");
1228
- if (r = s ? Ue(s, t) : null, n = e.getAttribute("formmethod") || a.getAttribute("method") || fn, o = Kn(e.getAttribute("formenctype")) || Kn(a.getAttribute("enctype")) || pn, i = new FormData(a, e), !sc()) {
1228
+ if (r = s ? Ue(s, t) : null, n = e.getAttribute("formmethod") || a.getAttribute("method") || fn, o = Kn(e.getAttribute("formenctype")) || Kn(a.getAttribute("enctype")) || pn, i = new FormData(a, e), !ac()) {
1229
1229
  let { name: c, type: u, value: f } = e;
1230
1230
  if (u === "image") {
1231
1231
  let m = c ? `${c}.` : "";
@@ -1246,7 +1246,7 @@ function Vr(e, t) {
1246
1246
  if (e === !1 || e === null || typeof e > "u")
1247
1247
  throw new Error(t);
1248
1248
  }
1249
- function dc(e, t, n) {
1249
+ function uc(e, t, n) {
1250
1250
  let r = typeof e == "string" ? new URL(
1251
1251
  e,
1252
1252
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -1255,7 +1255,7 @@ function dc(e, t, n) {
1255
1255
  ) : e;
1256
1256
  return r.pathname === "/" ? r.pathname = `_root.${n}` : t && Ue(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.${n}` : r.pathname = `${r.pathname.replace(/\/$/, "")}.${n}`, r;
1257
1257
  }
1258
- async function fc(e, t) {
1258
+ async function dc(e, t) {
1259
1259
  if (e.id in t)
1260
1260
  return t[e.id];
1261
1261
  try {
@@ -1272,22 +1272,22 @@ async function fc(e, t) {
1272
1272
  });
1273
1273
  }
1274
1274
  }
1275
- function pc(e) {
1275
+ function fc(e) {
1276
1276
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
1277
1277
  }
1278
- async function mc(e, t, n) {
1278
+ async function pc(e, t, n) {
1279
1279
  let r = await Promise.all(
1280
1280
  e.map(async (o) => {
1281
1281
  let i = t.routes[o.route.id];
1282
1282
  if (i) {
1283
- let l = await fc(i, n);
1283
+ let l = await dc(i, n);
1284
1284
  return l.links ? l.links() : [];
1285
1285
  }
1286
1286
  return [];
1287
1287
  })
1288
1288
  );
1289
- return bc(
1290
- r.flat(1).filter(pc).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
1289
+ return vc(
1290
+ r.flat(1).filter(fc).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
1291
1291
  (o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
1292
1292
  )
1293
1293
  );
@@ -1324,8 +1324,8 @@ function $o(e, t, n, r, o, i) {
1324
1324
  return !0;
1325
1325
  }) : [];
1326
1326
  }
1327
- function hc(e, t, { includeHydrateFallback: n } = {}) {
1328
- return gc(
1327
+ function mc(e, t, { includeHydrateFallback: n } = {}) {
1328
+ return hc(
1329
1329
  e.map((r) => {
1330
1330
  let o = t.routes[r.route.id];
1331
1331
  if (!o) return [];
@@ -1334,19 +1334,19 @@ function hc(e, t, { includeHydrateFallback: n } = {}) {
1334
1334
  }).flat(1)
1335
1335
  );
1336
1336
  }
1337
- function gc(e) {
1337
+ function hc(e) {
1338
1338
  return [...new Set(e)];
1339
1339
  }
1340
- function vc(e) {
1340
+ function gc(e) {
1341
1341
  let t = {}, n = Object.keys(e).sort();
1342
1342
  for (let r of n)
1343
1343
  t[r] = e[r];
1344
1344
  return t;
1345
1345
  }
1346
- function bc(e, t) {
1346
+ function vc(e, t) {
1347
1347
  let n = /* @__PURE__ */ new Set();
1348
1348
  return new Set(t), e.reduce((r, o) => {
1349
- let i = JSON.stringify(vc(o));
1349
+ let i = JSON.stringify(gc(o));
1350
1350
  return n.has(i) || (n.add(i), r.push({ key: i, link: o })), r;
1351
1351
  }, []);
1352
1352
  }
@@ -1357,7 +1357,7 @@ function Wi() {
1357
1357
  "You must render this element inside a <DataRouterContext.Provider> element"
1358
1358
  ), e;
1359
1359
  }
1360
- function wc() {
1360
+ function bc() {
1361
1361
  let e = p.useContext(Tn);
1362
1362
  return Vr(
1363
1363
  e,
@@ -1373,7 +1373,7 @@ function zi() {
1373
1373
  "You must render this element inside a <HydratedRouter> element"
1374
1374
  ), e;
1375
1375
  }
1376
- function yc(e, t) {
1376
+ function wc(e, t) {
1377
1377
  let n = p.useContext(Wr), [r, o] = p.useState(!1), [i, l] = p.useState(!1), { onFocus: a, onBlur: s, onMouseEnter: c, onMouseLeave: u, onTouchStart: f } = t, m = p.useRef(null);
1378
1378
  p.useEffect(() => {
1379
1379
  if (e === "render" && l(!0), e === "viewport") {
@@ -1418,18 +1418,18 @@ function Ft(e, t) {
1418
1418
  e && e(n), n.defaultPrevented || t(n);
1419
1419
  };
1420
1420
  }
1421
- function xc({ page: e, ...t }) {
1421
+ function yc({ page: e, ...t }) {
1422
1422
  let { router: n } = Wi(), r = p.useMemo(
1423
1423
  () => Ti(n.routes, e, n.basename),
1424
1424
  [n.routes, e, n.basename]
1425
1425
  );
1426
- return r ? /* @__PURE__ */ p.createElement($c, { page: e, matches: r, ...t }) : null;
1426
+ return r ? /* @__PURE__ */ p.createElement(Ec, { page: e, matches: r, ...t }) : null;
1427
1427
  }
1428
- function Ec(e) {
1428
+ function xc(e) {
1429
1429
  let { manifest: t, routeModules: n } = zi(), [r, o] = p.useState([]);
1430
1430
  return p.useEffect(() => {
1431
1431
  let i = !1;
1432
- return mc(e, t, n).then(
1432
+ return pc(e, t, n).then(
1433
1433
  (l) => {
1434
1434
  i || o(l);
1435
1435
  }
@@ -1438,12 +1438,12 @@ function Ec(e) {
1438
1438
  };
1439
1439
  }, [e, t, n]), r;
1440
1440
  }
1441
- function $c({
1441
+ function Ec({
1442
1442
  page: e,
1443
1443
  matches: t,
1444
1444
  ...n
1445
1445
  }) {
1446
- let r = Ye(), { manifest: o, routeModules: i } = zi(), { basename: l } = Wi(), { loaderData: a, matches: s } = wc(), c = p.useMemo(
1446
+ let r = Ye(), { manifest: o, routeModules: i } = zi(), { basename: l } = Wi(), { loaderData: a, matches: s } = bc(), c = p.useMemo(
1447
1447
  () => $o(
1448
1448
  e,
1449
1449
  t,
@@ -1472,7 +1472,7 @@ function $c({
1472
1472
  !y || !y.hasLoader || (!c.some((w) => w.route.id === b.route.id) && b.route.id in a && i[b.route.id]?.shouldRevalidate || y.hasClientLoader ? g = !0 : h.add(b.route.id));
1473
1473
  }), h.size === 0)
1474
1474
  return [];
1475
- let v = dc(e, l, "data");
1475
+ let v = uc(e, l, "data");
1476
1476
  return g && h.size > 0 && v.searchParams.set(
1477
1477
  "_routes",
1478
1478
  t.filter((b) => h.has(b.route.id)).map((b) => b.route.id).join(",")
@@ -1487,16 +1487,16 @@ function $c({
1487
1487
  e,
1488
1488
  i
1489
1489
  ]), m = p.useMemo(
1490
- () => hc(u, o),
1490
+ () => mc(u, o),
1491
1491
  [u, o]
1492
- ), d = Ec(u);
1492
+ ), d = xc(u);
1493
1493
  return /* @__PURE__ */ p.createElement(p.Fragment, null, f.map((h) => /* @__PURE__ */ p.createElement("link", { key: h, rel: "prefetch", as: "fetch", href: h, ...n })), m.map((h) => /* @__PURE__ */ p.createElement("link", { key: h, rel: "modulepreload", href: h, ...n })), d.map(({ key: h, link: g }) => (
1494
1494
  // these don't spread `linkProps` because they are full link descriptors
1495
1495
  // already with their own props
1496
1496
  /* @__PURE__ */ p.createElement("link", { key: h, nonce: n.nonce, ...g })
1497
1497
  )));
1498
1498
  }
1499
- function Rc(...e) {
1499
+ function $c(...e) {
1500
1500
  return (t) => {
1501
1501
  e.forEach((n) => {
1502
1502
  typeof n == "function" ? n(t) : n != null && (n.current = t);
@@ -1509,14 +1509,14 @@ try {
1509
1509
  "7.10.1");
1510
1510
  } catch {
1511
1511
  }
1512
- function Sc({
1512
+ function Rc({
1513
1513
  basename: e,
1514
1514
  children: t,
1515
1515
  unstable_useTransitions: n,
1516
1516
  window: r
1517
1517
  }) {
1518
1518
  let o = p.useRef();
1519
- o.current == null && (o.current = ds({ window: r, v5Compat: !0 }));
1519
+ o.current == null && (o.current = us({ window: r, v5Compat: !0 }));
1520
1520
  let i = o.current, [l, a] = p.useState({
1521
1521
  action: i.action,
1522
1522
  location: i.location
@@ -1527,7 +1527,7 @@ function Sc({
1527
1527
  [n]
1528
1528
  );
1529
1529
  return p.useLayoutEffect(() => i.listen(s), [i, s]), /* @__PURE__ */ p.createElement(
1530
- tc,
1530
+ ec,
1531
1531
  {
1532
1532
  basename: e,
1533
1533
  children: t,
@@ -1564,10 +1564,10 @@ var Gi = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, qi = p.forwardRef(
1564
1564
  `<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1565
1565
  );
1566
1566
  }
1567
- let w = Bs(c, { relative: o }), [$, E, k] = yc(
1567
+ let w = _s(c, { relative: o }), [$, E, k] = wc(
1568
1568
  r,
1569
1569
  m
1570
- ), P = Tc(c, {
1570
+ ), P = Pc(c, {
1571
1571
  replace: l,
1572
1572
  state: a,
1573
1573
  target: s,
@@ -1588,17 +1588,17 @@ var Gi = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, qi = p.forwardRef(
1588
1588
  ...k,
1589
1589
  href: b || w,
1590
1590
  onClick: y || i ? t : C,
1591
- ref: Rc(d, E),
1591
+ ref: $c(d, E),
1592
1592
  target: s,
1593
1593
  "data-discover": !v && n === "render" ? "true" : void 0
1594
1594
  }
1595
1595
  )
1596
1596
  );
1597
- return $ && !v ? /* @__PURE__ */ p.createElement(p.Fragment, null, M, /* @__PURE__ */ p.createElement(xc, { page: w })) : M;
1597
+ return $ && !v ? /* @__PURE__ */ p.createElement(p.Fragment, null, M, /* @__PURE__ */ p.createElement(yc, { page: w })) : M;
1598
1598
  }
1599
1599
  );
1600
1600
  qi.displayName = "Link";
1601
- var Cc = p.forwardRef(
1601
+ var Sc = p.forwardRef(
1602
1602
  function({
1603
1603
  "aria-current": t = "page",
1604
1604
  caseSensitive: n = !1,
@@ -1612,7 +1612,7 @@ var Cc = p.forwardRef(
1612
1612
  }, u) {
1613
1613
  let f = Kt(l, { relative: c.relative }), m = Ye(), d = p.useContext(Tn), { navigator: h, basename: g } = p.useContext(Ae), v = d != null && // Conditional usage is OK here because the usage of a data router is static
1614
1614
  // eslint-disable-next-line react-hooks/rules-of-hooks
1615
- Fc(f) && a === !0, b = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, y = m.pathname, w = d && d.navigation && d.navigation.location ? d.navigation.location.pathname : null;
1615
+ Mc(f) && a === !0, b = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, y = m.pathname, w = d && d.navigation && d.navigation.location ? d.navigation.location.pathname : null;
1616
1616
  n || (y = y.toLowerCase(), w = w ? w.toLowerCase() : null, b = b.toLowerCase()), w && g && (w = Ue(w, g) || w);
1617
1617
  const $ = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
1618
1618
  let E = y === b || !o && y.startsWith(b) && y.charAt($) === "/", k = w != null && (w === b || !o && w.startsWith(b) && w.charAt(b.length) === "/"), P = {
@@ -1642,8 +1642,8 @@ var Cc = p.forwardRef(
1642
1642
  );
1643
1643
  }
1644
1644
  );
1645
- Cc.displayName = "NavLink";
1646
- var kc = p.forwardRef(
1645
+ Sc.displayName = "NavLink";
1646
+ var Cc = p.forwardRef(
1647
1647
  ({
1648
1648
  discover: e = "render",
1649
1649
  fetcherKey: t,
@@ -1659,7 +1659,7 @@ var kc = p.forwardRef(
1659
1659
  viewTransition: f,
1660
1660
  ...m
1661
1661
  }, d) => {
1662
- let { unstable_useTransitions: h } = p.useContext(Ae), g = Ac(), v = Mc(a, { relative: c }), b = l.toLowerCase() === "get" ? "get" : "post", y = typeof a == "string" && Gi.test(a), w = ($) => {
1662
+ let { unstable_useTransitions: h } = p.useContext(Ae), g = Lc(), v = Ac(a, { relative: c }), b = l.toLowerCase() === "get" ? "get" : "post", y = typeof a == "string" && Gi.test(a), w = ($) => {
1663
1663
  if (s && s($), $.defaultPrevented) return;
1664
1664
  $.preventDefault();
1665
1665
  let E = $.nativeEvent.submitter, k = E?.getAttribute("formmethod") || l, P = () => g(E || $.currentTarget, {
@@ -1687,15 +1687,15 @@ var kc = p.forwardRef(
1687
1687
  );
1688
1688
  }
1689
1689
  );
1690
- kc.displayName = "Form";
1691
- function Pc(e) {
1690
+ Cc.displayName = "Form";
1691
+ function kc(e) {
1692
1692
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1693
1693
  }
1694
1694
  function Ki(e) {
1695
1695
  let t = p.useContext(Ct);
1696
- return ne(t, Pc(e)), t;
1696
+ return ne(t, kc(e)), t;
1697
1697
  }
1698
- function Tc(e, {
1698
+ function Pc(e, {
1699
1699
  target: t,
1700
1700
  replace: n,
1701
1701
  state: r,
@@ -1707,7 +1707,7 @@ function Tc(e, {
1707
1707
  let s = Bi(), c = Ye(), u = Kt(e, { relative: i });
1708
1708
  return p.useCallback(
1709
1709
  (f) => {
1710
- if (ac(f, t)) {
1710
+ if (lc(f, t)) {
1711
1711
  f.preventDefault();
1712
1712
  let m = n !== void 0 ? n : Ht(c) === Ht(u), d = () => s(e, {
1713
1713
  replace: m,
@@ -1734,20 +1734,20 @@ function Tc(e, {
1734
1734
  ]
1735
1735
  );
1736
1736
  }
1737
- var Oc = 0, Lc = () => `__${String(++Oc)}__`;
1738
- function Ac() {
1737
+ var Tc = 0, Oc = () => `__${String(++Tc)}__`;
1738
+ function Lc() {
1739
1739
  let { router: e } = Ki(
1740
1740
  "useSubmit"
1741
1741
  /* UseSubmit */
1742
- ), { basename: t } = p.useContext(Ae), n = Zs(), r = e.fetch, o = e.navigate;
1742
+ ), { basename: t } = p.useContext(Ae), n = Xs(), r = e.fetch, o = e.navigate;
1743
1743
  return p.useCallback(
1744
1744
  async (i, l = {}) => {
1745
- let { action: a, method: s, encType: c, formData: u, body: f } = uc(
1745
+ let { action: a, method: s, encType: c, formData: u, body: f } = cc(
1746
1746
  i,
1747
1747
  t
1748
1748
  );
1749
1749
  if (l.navigate === !1) {
1750
- let m = l.fetcherKey || Lc();
1750
+ let m = l.fetcherKey || Oc();
1751
1751
  await r(m, n, l.action || a, {
1752
1752
  preventScrollReset: l.preventScrollReset,
1753
1753
  formData: u,
@@ -1773,7 +1773,7 @@ function Ac() {
1773
1773
  [r, o, t, n]
1774
1774
  );
1775
1775
  }
1776
- function Mc(e, { relative: t } = {}) {
1776
+ function Ac(e, { relative: t } = {}) {
1777
1777
  let { basename: n } = p.useContext(Ae), r = p.useContext(Ke);
1778
1778
  ne(r, "useFormAction must be used inside a RouteContext");
1779
1779
  let [o] = r.matches.slice(-1), i = { ...Kt(e || ".", { relative: t }) }, l = Ye();
@@ -1788,7 +1788,7 @@ function Mc(e, { relative: t } = {}) {
1788
1788
  }
1789
1789
  return (!e || e === ".") && o.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (i.pathname = i.pathname === "/" ? n : We([n, i.pathname])), Ht(i);
1790
1790
  }
1791
- function Fc(e, { relative: t } = {}) {
1791
+ function Mc(e, { relative: t } = {}) {
1792
1792
  let n = p.useContext(Ni);
1793
1793
  ne(
1794
1794
  n != null,
@@ -1803,7 +1803,7 @@ function Fc(e, { relative: t } = {}) {
1803
1803
  let i = Ue(n.currentLocation.pathname, r) || n.currentLocation.pathname, l = Ue(n.nextLocation.pathname, r) || n.nextLocation.pathname;
1804
1804
  return jt(o.pathname, l) != null || jt(o.pathname, i) != null;
1805
1805
  }
1806
- const Ic = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-github", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" })), Nc = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", ...e }, /* @__PURE__ */ p.createElement("path", { fill: "currentColor", d: "M2 38.5h124v43.71H64v7.29H36.44v-7.29H2zm6.89 36.43h13.78V53.07h6.89v21.86h6.89V45.79H8.89zm34.44-29.14v36.42h13.78v-7.28h13.78V45.79zm13.78 7.29H64v14.56h-6.89zm20.67-7.29v29.14h13.78V53.07h6.89v21.86h6.89V53.07h6.89v21.86h6.89V45.79z" })), Dc = (e) => /* @__PURE__ */ p.createElement("svg", { width: 50, height: 50, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ p.createElement("rect", { x: 0, y: 0, height: 20, width: 20, fill: "transparent" }), /* @__PURE__ */ p.createElement("circle", { cx: 10, cy: 10, r: 2, fill: "white" }), /* @__PURE__ */ p.createElement("g", { stroke: "white", strokeWidth: 2, fill: "none" }, /* @__PURE__ */ p.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(45, 10, 10)" }), /* @__PURE__ */ p.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(-45, 10, 10)" }))), _c = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 640 640", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M433.2 103.1L581.4 253.4C609.1 281.5 609.1 326.5 581.4 354.6L425 512.9C415.7 522.3 400.5 522.4 391.1 513.1C381.7 503.8 381.6 488.6 390.9 479.2L547.3 320.8C556.5 311.5 556.5 296.4 547.3 287.1L399 136.9C389.7 127.5 389.8 112.3 399.2 103C408.6 93.7 423.8 93.8 433.1 103.2zM64.1 293.5L64.1 160C64.1 124.7 92.8 96 128.1 96L261.6 96C278.6 96 294.9 102.7 306.9 114.7L450.9 258.7C475.9 283.7 475.9 324.2 450.9 349.2L317.4 482.7C292.4 507.7 251.9 507.7 226.9 482.7L82.9 338.7C70.9 326.7 64.2 310.4 64.2 293.4zM208.1 208C208.1 190.3 193.8 176 176.1 176C158.4 176 144.1 190.3 144.1 208C144.1 225.7 158.4 240 176.1 240C193.8 240 208.1 225.7 208.1 208z" })), Yi = ie(null), Ro = (e) => {
1806
+ const Fc = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-github", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" })), Ic = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", ...e }, /* @__PURE__ */ p.createElement("path", { fill: "currentColor", d: "M2 38.5h124v43.71H64v7.29H36.44v-7.29H2zm6.89 36.43h13.78V53.07h6.89v21.86h6.89V45.79H8.89zm34.44-29.14v36.42h13.78v-7.28h13.78V45.79zm13.78 7.29H64v14.56h-6.89zm20.67-7.29v29.14h13.78V53.07h6.89v21.86h6.89V53.07h6.89v21.86h6.89V45.79z" })), Nc = (e) => /* @__PURE__ */ p.createElement("svg", { width: 50, height: 50, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ p.createElement("rect", { x: 0, y: 0, height: 20, width: 20, fill: "transparent" }), /* @__PURE__ */ p.createElement("circle", { cx: 10, cy: 10, r: 2, fill: "white" }), /* @__PURE__ */ p.createElement("g", { stroke: "white", strokeWidth: 2, fill: "none" }, /* @__PURE__ */ p.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(45, 10, 10)" }), /* @__PURE__ */ p.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(-45, 10, 10)" }))), Dc = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 640 640", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M433.2 103.1L581.4 253.4C609.1 281.5 609.1 326.5 581.4 354.6L425 512.9C415.7 522.3 400.5 522.4 391.1 513.1C381.7 503.8 381.6 488.6 390.9 479.2L547.3 320.8C556.5 311.5 556.5 296.4 547.3 287.1L399 136.9C389.7 127.5 389.8 112.3 399.2 103C408.6 93.7 423.8 93.8 433.1 103.2zM64.1 293.5L64.1 160C64.1 124.7 92.8 96 128.1 96L261.6 96C278.6 96 294.9 102.7 306.9 114.7L450.9 258.7C475.9 283.7 475.9 324.2 450.9 349.2L317.4 482.7C292.4 507.7 251.9 507.7 226.9 482.7L82.9 338.7C70.9 326.7 64.2 310.4 64.2 293.4zM208.1 208C208.1 190.3 193.8 176 176.1 176C158.4 176 144.1 190.3 144.1 208C144.1 225.7 158.4 240 176.1 240C193.8 240 208.1 225.7 208.1 208z" })), _c = ie(null), Ro = (e) => {
1807
1807
  let t;
1808
1808
  const n = /* @__PURE__ */ new Set(), r = (c, u) => {
1809
1809
  const f = typeof c == "function" ? c(t) : c;
@@ -1825,23 +1825,23 @@ function jc(e, t = Hc) {
1825
1825
  const So = (e) => {
1826
1826
  const t = Bc(e), n = (r) => jc(t, r);
1827
1827
  return Object.assign(n, t), n;
1828
- }, Vc = ((e) => e ? So(e) : So), Xi = Vc((e) => ({
1828
+ }, Vc = ((e) => e ? So(e) : So), Yi = Vc((e) => ({
1829
1829
  visible: !1,
1830
1830
  hide: () => e({ visible: !1 }),
1831
1831
  show: () => e({ visible: !0 }),
1832
1832
  toggle: () => e((t) => ({ visible: !t.visible }))
1833
1833
  }));
1834
- function Zi(e) {
1834
+ function Xi(e) {
1835
1835
  var t, n, r = "";
1836
1836
  if (typeof e == "string" || typeof e == "number") r += e;
1837
1837
  else if (typeof e == "object") if (Array.isArray(e)) {
1838
1838
  var o = e.length;
1839
- for (t = 0; t < o; t++) e[t] && (n = Zi(e[t])) && (r && (r += " "), r += n);
1839
+ for (t = 0; t < o; t++) e[t] && (n = Xi(e[t])) && (r && (r += " "), r += n);
1840
1840
  } else for (n in e) e[n] && (r && (r += " "), r += n);
1841
1841
  return r;
1842
1842
  }
1843
1843
  function Wc() {
1844
- for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Zi(e)) && (r && (r += " "), r += t);
1844
+ for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Xi(e)) && (r && (r += " "), r += t);
1845
1845
  return r;
1846
1846
  }
1847
1847
  const zc = (e, t) => {
@@ -1854,7 +1854,7 @@ const zc = (e, t) => {
1854
1854
  }, Uc = (e, t) => ({
1855
1855
  classGroupId: e,
1856
1856
  validator: t
1857
- }), Ji = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
1857
+ }), Zi = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
1858
1858
  nextPart: e,
1859
1859
  validators: t,
1860
1860
  classGroupId: n
@@ -1868,7 +1868,7 @@ const zc = (e, t) => {
1868
1868
  if (l.startsWith("[") && l.endsWith("]"))
1869
1869
  return Kc(l);
1870
1870
  const a = l.split(yn), s = a[0] === "" && a.length > 1 ? 1 : 0;
1871
- return Qi(a, s, t);
1871
+ return Ji(a, s, t);
1872
1872
  },
1873
1873
  getConflictingClassGroupIds: (l, a) => {
1874
1874
  if (a) {
@@ -1878,12 +1878,12 @@ const zc = (e, t) => {
1878
1878
  return n[l] || Co;
1879
1879
  }
1880
1880
  };
1881
- }, Qi = (e, t, n) => {
1881
+ }, Ji = (e, t, n) => {
1882
1882
  if (e.length - t === 0)
1883
1883
  return n.classGroupId;
1884
1884
  const o = e[t], i = n.nextPart.get(o);
1885
1885
  if (i) {
1886
- const c = Qi(e, t + 1, i);
1886
+ const c = Ji(e, t + 1, i);
1887
1887
  if (c) return c;
1888
1888
  }
1889
1889
  const l = n.validators;
@@ -1905,7 +1905,7 @@ const zc = (e, t) => {
1905
1905
  } = e;
1906
1906
  return Xc(n, t);
1907
1907
  }, Xc = (e, t) => {
1908
- const n = Ji();
1908
+ const n = Zi();
1909
1909
  for (const r in e) {
1910
1910
  const o = e[r];
1911
1911
  zr(o, n, r, t);
@@ -1928,7 +1928,7 @@ const zc = (e, t) => {
1928
1928
  }
1929
1929
  eu(e, t, n, r);
1930
1930
  }, Jc = (e, t, n) => {
1931
- const r = e === "" ? t : el(t, e);
1931
+ const r = e === "" ? t : Qi(t, e);
1932
1932
  r.classGroupId = n;
1933
1933
  }, Qc = (e, t, n, r) => {
1934
1934
  if (tu(e)) {
@@ -1940,15 +1940,15 @@ const zc = (e, t) => {
1940
1940
  const o = Object.entries(e), i = o.length;
1941
1941
  for (let l = 0; l < i; l++) {
1942
1942
  const [a, s] = o[l];
1943
- zr(s, el(t, a), n, r);
1943
+ zr(s, Qi(t, a), n, r);
1944
1944
  }
1945
- }, el = (e, t) => {
1945
+ }, Qi = (e, t) => {
1946
1946
  let n = e;
1947
1947
  const r = t.split(yn), o = r.length;
1948
1948
  for (let i = 0; i < o; i++) {
1949
1949
  const l = r[i];
1950
1950
  let a = n.nextPart.get(l);
1951
- a || (a = Ji(), n.nextPart.set(l, a)), n = a;
1951
+ a || (a = Zi(), n.nextPart.set(l, a)), n = a;
1952
1952
  }
1953
1953
  return n;
1954
1954
  }, tu = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, nu = (e) => {
@@ -2093,14 +2093,14 @@ const zc = (e, t) => {
2093
2093
  }, cu = (...e) => {
2094
2094
  let t = 0, n, r, o = "";
2095
2095
  for (; t < e.length; )
2096
- (n = e[t++]) && (r = tl(n)) && (o && (o += " "), o += r);
2096
+ (n = e[t++]) && (r = el(n)) && (o && (o += " "), o += r);
2097
2097
  return o;
2098
- }, tl = (e) => {
2098
+ }, el = (e) => {
2099
2099
  if (typeof e == "string")
2100
2100
  return e;
2101
2101
  let t, n = "";
2102
2102
  for (let r = 0; r < e.length; r++)
2103
- e[r] && (t = tl(e[r])) && (n && (n += " "), n += t);
2103
+ e[r] && (t = el(e[r])) && (n && (n += " "), n += t);
2104
2104
  return n;
2105
2105
  }, uu = (e, ...t) => {
2106
2106
  let n, r, o, i;
@@ -2118,18 +2118,18 @@ const zc = (e, t) => {
2118
2118
  }, du = [], ce = (e) => {
2119
2119
  const t = (n) => n[e] || du;
2120
2120
  return t.isThemeGetter = !0, t;
2121
- }, nl = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, rl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fu = /^\d+\/\d+$/, pu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, mu = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, hu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, gu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, vt = (e) => fu.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), Je = (e) => !!e && Number.isInteger(Number(e)), Yn = (e) => e.endsWith("%") && G(e.slice(0, -1)), je = (e) => pu.test(e), bu = () => !0, wu = (e) => (
2121
+ }, tl = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, nl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fu = /^\d+\/\d+$/, pu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, mu = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, hu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, gu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, vt = (e) => fu.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), Je = (e) => !!e && Number.isInteger(Number(e)), Yn = (e) => e.endsWith("%") && G(e.slice(0, -1)), je = (e) => pu.test(e), bu = () => !0, wu = (e) => (
2122
2122
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2123
2123
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2124
2124
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2125
2125
  mu.test(e) && !hu.test(e)
2126
- ), ol = () => !1, yu = (e) => gu.test(e), xu = (e) => vu.test(e), Eu = (e) => !F(e) && !I(e), $u = (e) => Pt(e, al, ol), F = (e) => nl.test(e), it = (e) => Pt(e, sl, wu), Xn = (e) => Pt(e, Pu, G), To = (e) => Pt(e, il, ol), Ru = (e) => Pt(e, ll, xu), tn = (e) => Pt(e, cl, yu), I = (e) => rl.test(e), It = (e) => Tt(e, sl), Su = (e) => Tt(e, Tu), Oo = (e) => Tt(e, il), Cu = (e) => Tt(e, al), ku = (e) => Tt(e, ll), nn = (e) => Tt(e, cl, !0), Pt = (e, t, n) => {
2127
- const r = nl.exec(e);
2126
+ ), rl = () => !1, yu = (e) => gu.test(e), xu = (e) => vu.test(e), Eu = (e) => !F(e) && !I(e), $u = (e) => Pt(e, ll, rl), F = (e) => tl.test(e), it = (e) => Pt(e, al, wu), Xn = (e) => Pt(e, Pu, G), To = (e) => Pt(e, ol, rl), Ru = (e) => Pt(e, il, xu), tn = (e) => Pt(e, sl, yu), I = (e) => nl.test(e), It = (e) => Tt(e, al), Su = (e) => Tt(e, Tu), Oo = (e) => Tt(e, ol), Cu = (e) => Tt(e, ll), ku = (e) => Tt(e, il), nn = (e) => Tt(e, sl, !0), Pt = (e, t, n) => {
2127
+ const r = tl.exec(e);
2128
2128
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
2129
2129
  }, Tt = (e, t, n = !1) => {
2130
- const r = rl.exec(e);
2130
+ const r = nl.exec(e);
2131
2131
  return r ? r[1] ? t(r[1]) : n : !1;
2132
- }, il = (e) => e === "position" || e === "percentage", ll = (e) => e === "image" || e === "url", al = (e) => e === "length" || e === "size" || e === "bg-size", sl = (e) => e === "length", Pu = (e) => e === "number", Tu = (e) => e === "family-name", cl = (e) => e === "shadow", Ou = () => {
2132
+ }, ol = (e) => e === "position" || e === "percentage", il = (e) => e === "image" || e === "url", ll = (e) => e === "length" || e === "size" || e === "bg-size", al = (e) => e === "length", Pu = (e) => e === "number", Tu = (e) => e === "family-name", sl = (e) => e === "shadow", Ou = () => {
2133
2133
  const e = ce("color"), t = ce("font"), n = ce("text"), r = ce("font-weight"), o = ce("tracking"), i = ce("leading"), l = ce("breakpoint"), a = ce("container"), s = ce("spacing"), c = ce("radius"), u = ce("shadow"), f = ce("inset-shadow"), m = ce("text-shadow"), d = ce("drop-shadow"), h = ce("blur"), g = ce("perspective"), v = ce("aspect"), b = ce("ease"), y = ce("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [
2134
2134
  "center",
2135
2135
  "top",
@@ -4667,7 +4667,7 @@ const Au = ie(null), Zn = {
4667
4667
  didCatch: !1,
4668
4668
  error: null
4669
4669
  };
4670
- let Mu = class extends za {
4670
+ let Mu = class extends Wa {
4671
4671
  constructor(t) {
4672
4672
  super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Zn;
4673
4673
  }
@@ -4747,7 +4747,7 @@ function Fu() {
4747
4747
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
4748
4748
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
4749
4749
  }
4750
- function ul({
4750
+ function cl({
4751
4751
  children: e,
4752
4752
  className: t,
4753
4753
  html: n = !1,
@@ -4756,15 +4756,15 @@ function ul({
4756
4756
  minimal: i,
4757
4757
  ...l
4758
4758
  }) {
4759
- let a = ls;
4759
+ let a = is;
4760
4760
  switch (o) {
4761
4761
  case "none":
4762
4762
  case "primary": {
4763
- a = ss;
4763
+ a = as;
4764
4764
  break;
4765
4765
  }
4766
4766
  case "success": {
4767
- a = ts;
4767
+ a = es;
4768
4768
  break;
4769
4769
  }
4770
4770
  }
@@ -4795,10 +4795,10 @@ function Iu(e, t) {
4795
4795
  return t ? "bg-amber-950/65 text-amber-200 [&_svg]:text-amber-300" : "bg-black/10 bg-border border-2 border-amber-400 text-white [&_svg]:text-amber-400 [&_a]:text-amber-400!";
4796
4796
  }
4797
4797
  }
4798
- const dl = typeof document < "u" ? _.useLayoutEffect : () => {
4798
+ const ul = typeof document < "u" ? _.useLayoutEffect : () => {
4799
4799
  };
4800
4800
  var Jn;
4801
- const Nu = (Jn = _.useInsertionEffect) !== null && Jn !== void 0 ? Jn : dl;
4801
+ const Nu = (Jn = _.useInsertionEffect) !== null && Jn !== void 0 ? Jn : ul;
4802
4802
  function Du(e) {
4803
4803
  const t = U(null);
4804
4804
  return Nu(() => {
@@ -4824,7 +4824,7 @@ let Hu = !1;
4824
4824
  function Ur() {
4825
4825
  return Hu;
4826
4826
  }
4827
- function fl(e, t) {
4827
+ function dl(e, t) {
4828
4828
  if (!Ur()) return t && e ? e.contains(t) : !1;
4829
4829
  if (!e || !t) return !1;
4830
4830
  let n = t;
@@ -4841,7 +4841,7 @@ const yr = (e = document) => {
4841
4841
  for (; n && "shadowRoot" in n && (!((t = n.shadowRoot) === null || t === void 0) && t.activeElement); ) n = n.shadowRoot.activeElement;
4842
4842
  return n;
4843
4843
  };
4844
- function pl(e) {
4844
+ function fl(e) {
4845
4845
  return Ur() && e.target.shadowRoot && e.composedPath ? e.composedPath()[0] : e.target;
4846
4846
  }
4847
4847
  function Ln(e) {
@@ -4883,7 +4883,7 @@ const zu = Xe(function() {
4883
4883
  Xe(function() {
4884
4884
  return Ln(/Firefox/i);
4885
4885
  });
4886
- function ml() {
4886
+ function pl() {
4887
4887
  let e = U(/* @__PURE__ */ new Map()), t = J((o, i, l, a) => {
4888
4888
  let s = a?.once ? (...c) => {
4889
4889
  e.current.delete(l), l(...c);
@@ -4916,7 +4916,7 @@ function ml() {
4916
4916
  function Gu(e) {
4917
4917
  return e.pointerType === "" && e.isTrusted ? !0 : Uu() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
4918
4918
  }
4919
- function hl(e) {
4919
+ function ml(e) {
4920
4920
  let t = e;
4921
4921
  return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
4922
4922
  }, t;
@@ -4928,12 +4928,12 @@ function qu(e, t) {
4928
4928
  value: t
4929
4929
  });
4930
4930
  }
4931
- function gl(e) {
4931
+ function hl(e) {
4932
4932
  let t = U({
4933
4933
  isFocused: !1,
4934
4934
  observer: null
4935
4935
  });
4936
- dl(() => {
4936
+ ul(() => {
4937
4937
  const r = t.current;
4938
4938
  return () => {
4939
4939
  r.observer && (r.observer.disconnect(), r.observer = null);
@@ -4947,7 +4947,7 @@ function gl(e) {
4947
4947
  t.current.isFocused = !0;
4948
4948
  let o = r.target, i = (l) => {
4949
4949
  if (t.current.isFocused = !1, o.disabled) {
4950
- let a = hl(l);
4950
+ let a = ml(l);
4951
4951
  n(a);
4952
4952
  }
4953
4953
  t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
@@ -4994,13 +4994,13 @@ function xn(e) {
4994
4994
  function Pe(e) {
4995
4995
  Yt = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (ct = !0, Kr("pointer", e));
4996
4996
  }
4997
- function vl(e) {
4997
+ function gl(e) {
4998
4998
  Gu(e) && (ct = !0, Yt = "virtual");
4999
4999
  }
5000
- function bl(e) {
5000
+ function vl(e) {
5001
5001
  e.target === window || e.target === document || Ku || !e.isTrusted || (!ct && !Er && (Yt = "virtual", Kr("virtual", e)), ct = !1, Er = !1);
5002
5002
  }
5003
- function wl() {
5003
+ function bl() {
5004
5004
  ct = !1, Er = !0;
5005
5005
  }
5006
5006
  function $r(e) {
@@ -5009,27 +5009,27 @@ function $r(e) {
5009
5009
  let r = t.HTMLElement.prototype.focus;
5010
5010
  t.HTMLElement.prototype.focus = function() {
5011
5011
  ct = !0, r.apply(this, arguments);
5012
- }, n.addEventListener("keydown", xn, !0), n.addEventListener("keyup", xn, !0), n.addEventListener("click", vl, !0), t.addEventListener("focus", bl, !0), t.addEventListener("blur", wl, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Pe, !0), n.addEventListener("pointermove", Pe, !0), n.addEventListener("pointerup", Pe, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", Pe, !0), n.addEventListener("mousemove", Pe, !0), n.addEventListener("mouseup", Pe, !0)), t.addEventListener("beforeunload", () => {
5013
- yl(e);
5012
+ }, n.addEventListener("keydown", xn, !0), n.addEventListener("keyup", xn, !0), n.addEventListener("click", gl, !0), t.addEventListener("focus", vl, !0), t.addEventListener("blur", bl, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Pe, !0), n.addEventListener("pointermove", Pe, !0), n.addEventListener("pointerup", Pe, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", Pe, !0), n.addEventListener("mousemove", Pe, !0), n.addEventListener("mouseup", Pe, !0)), t.addEventListener("beforeunload", () => {
5013
+ wl(e);
5014
5014
  }, {
5015
5015
  once: !0
5016
5016
  }), _t.set(t, {
5017
5017
  focus: r
5018
5018
  });
5019
5019
  }
5020
- const yl = (e, t) => {
5020
+ const wl = (e, t) => {
5021
5021
  const n = lt(e), r = ot(e);
5022
- t && r.removeEventListener("DOMContentLoaded", t), _t.has(n) && (n.HTMLElement.prototype.focus = _t.get(n).focus, r.removeEventListener("keydown", xn, !0), r.removeEventListener("keyup", xn, !0), r.removeEventListener("click", vl, !0), n.removeEventListener("focus", bl, !0), n.removeEventListener("blur", wl, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Pe, !0), r.removeEventListener("pointermove", Pe, !0), r.removeEventListener("pointerup", Pe, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", Pe, !0), r.removeEventListener("mousemove", Pe, !0), r.removeEventListener("mouseup", Pe, !0)), _t.delete(n));
5022
+ t && r.removeEventListener("DOMContentLoaded", t), _t.has(n) && (n.HTMLElement.prototype.focus = _t.get(n).focus, r.removeEventListener("keydown", xn, !0), r.removeEventListener("keyup", xn, !0), r.removeEventListener("click", gl, !0), n.removeEventListener("focus", vl, !0), n.removeEventListener("blur", bl, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Pe, !0), r.removeEventListener("pointermove", Pe, !0), r.removeEventListener("pointerup", Pe, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", Pe, !0), r.removeEventListener("mousemove", Pe, !0), r.removeEventListener("mouseup", Pe, !0)), _t.delete(n));
5023
5023
  };
5024
5024
  function Zu(e) {
5025
5025
  const t = ot(e);
5026
5026
  let n;
5027
5027
  return t.readyState !== "loading" ? $r(e) : (n = () => {
5028
5028
  $r(e);
5029
- }, t.addEventListener("DOMContentLoaded", n)), () => yl(e, n);
5029
+ }, t.addEventListener("DOMContentLoaded", n)), () => wl(e, n);
5030
5030
  }
5031
5031
  typeof document < "u" && Zu();
5032
- function xl() {
5032
+ function yl() {
5033
5033
  return Yt !== "pointer";
5034
5034
  }
5035
5035
  const Ju = /* @__PURE__ */ new Set([
@@ -5051,7 +5051,7 @@ function Qu(e, t, n) {
5051
5051
  function ed(e, t, n) {
5052
5052
  $r(), se(() => {
5053
5053
  let r = (o, i) => {
5054
- Qu(!!n?.isTextInput, o, i) && e(xl());
5054
+ Qu(!!n?.isTextInput, o, i) && e(yl());
5055
5055
  };
5056
5056
  return xr.add(r), () => {
5057
5057
  xr.delete(r);
@@ -5066,9 +5066,9 @@ function td(e) {
5066
5066
  }, [
5067
5067
  r,
5068
5068
  o
5069
- ]), l = gl(i), a = J((s) => {
5069
+ ]), l = hl(i), a = J((s) => {
5070
5070
  const c = ot(s.target), u = c ? yr(c) : yr();
5071
- s.target === s.currentTarget && u === pl(s.nativeEvent) && (n && n(s), o && o(!0), l(s));
5071
+ s.target === s.currentTarget && u === fl(s.nativeEvent) && (n && n(s), o && o(!0), l(s));
5072
5072
  }, [
5073
5073
  o,
5074
5074
  n,
@@ -5084,26 +5084,26 @@ function td(e) {
5084
5084
  function nd(e) {
5085
5085
  let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = U({
5086
5086
  isFocusWithin: !1
5087
- }), { addGlobalListener: l, removeAllGlobalListeners: a } = ml(), s = J((f) => {
5087
+ }), { addGlobalListener: l, removeAllGlobalListeners: a } = pl(), s = J((f) => {
5088
5088
  f.currentTarget.contains(f.target) && i.current.isFocusWithin && !f.currentTarget.contains(f.relatedTarget) && (i.current.isFocusWithin = !1, a(), n && n(f), o && o(!1));
5089
5089
  }, [
5090
5090
  n,
5091
5091
  o,
5092
5092
  i,
5093
5093
  a
5094
- ]), c = gl(s), u = J((f) => {
5094
+ ]), c = hl(s), u = J((f) => {
5095
5095
  if (!f.currentTarget.contains(f.target)) return;
5096
5096
  const m = ot(f.target), d = yr(m);
5097
- if (!i.current.isFocusWithin && d === pl(f.nativeEvent)) {
5097
+ if (!i.current.isFocusWithin && d === fl(f.nativeEvent)) {
5098
5098
  r && r(f), o && o(!0), i.current.isFocusWithin = !0, c(f);
5099
5099
  let h = f.currentTarget;
5100
5100
  l(m, "focus", (g) => {
5101
- if (i.current.isFocusWithin && !fl(h, g.target)) {
5101
+ if (i.current.isFocusWithin && !dl(h, g.target)) {
5102
5102
  let v = new m.defaultView.FocusEvent("blur", {
5103
5103
  relatedTarget: g.target
5104
5104
  });
5105
5105
  qu(v, h);
5106
- let b = hl(v);
5106
+ let b = ml(v);
5107
5107
  s(b);
5108
5108
  }
5109
5109
  }, {
@@ -5146,20 +5146,20 @@ function rd() {
5146
5146
  };
5147
5147
  }
5148
5148
  function Yr(e) {
5149
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, l] = te(!1), a = U({
5149
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, l] = ee(!1), a = U({
5150
5150
  isHovered: !1,
5151
5151
  ignoreEmulatedMouseEvents: !1,
5152
5152
  pointerType: "",
5153
5153
  target: null
5154
5154
  }).current;
5155
5155
  se(rd, []);
5156
- let { addGlobalListener: s, removeAllGlobalListeners: c } = ml(), { hoverProps: u, triggerHoverEnd: f } = ue(() => {
5156
+ let { addGlobalListener: s, removeAllGlobalListeners: c } = pl(), { hoverProps: u, triggerHoverEnd: f } = ue(() => {
5157
5157
  let m = (g, v) => {
5158
5158
  if (a.pointerType = v, o || v === "touch" || a.isHovered || !g.currentTarget.contains(g.target)) return;
5159
5159
  a.isHovered = !0;
5160
5160
  let b = g.currentTarget;
5161
5161
  a.target = b, s(ot(g.target), "pointerover", (y) => {
5162
- a.isHovered && a.target && !fl(a.target, y.target) && d(y, y.pointerType);
5162
+ a.isHovered && a.target && !dl(a.target, y.target) && d(y, y.pointerType);
5163
5163
  }, {
5164
5164
  capture: !0
5165
5165
  }), t && t({
@@ -5212,8 +5212,8 @@ function Yr(e) {
5212
5212
  function Xr(e = {}) {
5213
5213
  let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = U({
5214
5214
  isFocused: !1,
5215
- isFocusVisible: t || xl()
5216
- }), [i, l] = te(!1), [a, s] = te(() => o.current.isFocused && o.current.isFocusVisible), c = J(() => s(o.current.isFocused && o.current.isFocusVisible), []), u = J((d) => {
5215
+ isFocusVisible: t || yl()
5216
+ }), [i, l] = ee(!1), [a, s] = ee(() => o.current.isFocused && o.current.isFocusVisible), c = J(() => s(o.current.isFocused && o.current.isFocusVisible), []), u = J((d) => {
5217
5217
  o.current.isFocused = d, l(d), c();
5218
5218
  }, [
5219
5219
  c
@@ -5274,14 +5274,14 @@ function $n(e) {
5274
5274
  var t, n;
5275
5275
  return Ie.isServer ? null : e == null ? document : (n = (t = e?.getRootNode) == null ? void 0 : t.call(e)) != null ? n : document;
5276
5276
  }
5277
- function El(e) {
5277
+ function xl(e) {
5278
5278
  var t, n;
5279
5279
  return (n = (t = $n(e)) == null ? void 0 : t.activeElement) != null ? n : null;
5280
5280
  }
5281
5281
  function ad(e) {
5282
- return El(e) === e;
5282
+ return xl(e) === e;
5283
5283
  }
5284
- function $l(e) {
5284
+ function El(e) {
5285
5285
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
5286
5286
  throw t;
5287
5287
  }));
@@ -5299,7 +5299,7 @@ function Se() {
5299
5299
  return t.add(() => clearTimeout(r));
5300
5300
  }, microTask(...n) {
5301
5301
  let r = { current: !0 };
5302
- return $l(() => {
5302
+ return El(() => {
5303
5303
  r.current && n[0]();
5304
5304
  }), t.add(() => {
5305
5305
  r.current = !1;
@@ -5323,7 +5323,7 @@ function Se() {
5323
5323
  return t;
5324
5324
  }
5325
5325
  function ft() {
5326
- let [e] = te(Se);
5326
+ let [e] = ee(Se);
5327
5327
  return se(() => () => e.dispose(), [e]), e;
5328
5328
  }
5329
5329
  let ae = (e, t) => {
@@ -5347,7 +5347,7 @@ function cd(e, t) {
5347
5347
  return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
5348
5348
  }
5349
5349
  function Zr({ disabled: e = !1 } = {}) {
5350
- let t = U(null), [n, r] = te(!1), o = ft(), i = q(() => {
5350
+ let t = U(null), [n, r] = ee(!1), o = ft(), i = q(() => {
5351
5351
  t.current = null, r(!1), o.dispose();
5352
5352
  }), l = q((a) => {
5353
5353
  if (o.dispose(), t.current === null) {
@@ -5370,7 +5370,7 @@ function Te(e) {
5370
5370
  }
5371
5371
  let ud = ie(void 0);
5372
5372
  function An() {
5373
- return ee(ud);
5373
+ return te(ud);
5374
5374
  }
5375
5375
  function Sr(...e) {
5376
5376
  return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
@@ -5390,7 +5390,7 @@ function fe() {
5390
5390
  }
5391
5391
  function dd({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: l, mergeRefs: a }) {
5392
5392
  a = a ?? pd;
5393
- let s = Rl(t, e);
5393
+ let s = $l(t, e);
5394
5394
  if (i) return on(s, n, r, l, a);
5395
5395
  let c = o ?? 0;
5396
5396
  if (c & 2) {
@@ -5425,7 +5425,7 @@ function on(e, t = {}, n, r, o) {
5425
5425
  `)].join(`
5426
5426
  `));
5427
5427
  } else {
5428
- let m = u.props, d = m?.className, h = typeof d == "function" ? (...b) => Sr(d(...b), s.className) : Sr(d, s.className), g = h ? { className: h } : {}, v = Rl(u.props, Qe(er(s, ["ref"])));
5428
+ let m = u.props, d = m?.className, h = typeof d == "function" ? (...b) => Sr(d(...b), s.className) : Sr(d, s.className), g = h ? { className: h } : {}, v = $l(u.props, Qe(er(s, ["ref"])));
5429
5429
  for (let b in f) b in v && delete f[b];
5430
5430
  return Si(u, Object.assign({}, v, f, c, { ref: o(md(u), c.ref) }, g));
5431
5431
  }
@@ -5444,7 +5444,7 @@ function pd(...e) {
5444
5444
  for (let n of e) n != null && (typeof n == "function" ? n(t) : n.current = t);
5445
5445
  };
5446
5446
  }
5447
- function Rl(...e) {
5447
+ function $l(...e) {
5448
5448
  if (e.length === 0) return {};
5449
5449
  if (e.length === 1) return e[0];
5450
5450
  let t = {}, n = {};
@@ -5475,7 +5475,7 @@ function Vt(...e) {
5475
5475
  }
5476
5476
  function de(e) {
5477
5477
  var t;
5478
- return Object.assign(Ua(e), { displayName: (t = e.displayName) != null ? t : e.name });
5478
+ return Object.assign(za(e), { displayName: (t = e.displayName) != null ? t : e.name });
5479
5479
  }
5480
5480
  function Qe(e) {
5481
5481
  let t = Object.assign({}, e);
@@ -5504,23 +5504,23 @@ function vd(e, t) {
5504
5504
  }
5505
5505
  let bd = de(vd);
5506
5506
  function wd(e, t, n) {
5507
- let [r, o] = te(n), i = e !== void 0, l = U(i), a = U(!1), s = U(!1);
5507
+ let [r, o] = ee(n), i = e !== void 0, l = U(i), a = U(!1), s = U(!1);
5508
5508
  return i && !l.current && !a.current ? (a.current = !0, l.current = i, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !i && l.current && !s.current && (s.current = !0, l.current = i, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [i ? e : r, q((c) => (i || wn(() => o(c)), t?.(c)))];
5509
5509
  }
5510
5510
  function yd(e) {
5511
- let [t] = te(e);
5511
+ let [t] = ee(e);
5512
5512
  return t;
5513
5513
  }
5514
- function Sl(e = {}, t = null, n = []) {
5515
- for (let [r, o] of Object.entries(e)) kl(n, Cl(t, r), o);
5514
+ function Rl(e = {}, t = null, n = []) {
5515
+ for (let [r, o] of Object.entries(e)) Cl(n, Sl(t, r), o);
5516
5516
  return n;
5517
5517
  }
5518
- function Cl(e, t) {
5518
+ function Sl(e, t) {
5519
5519
  return e ? e + "[" + t + "]" : t;
5520
5520
  }
5521
- function kl(e, t, n) {
5522
- if (Array.isArray(n)) for (let [r, o] of n.entries()) kl(e, Cl(t, r.toString()), o);
5523
- else n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : Ed(n) && !_r(n) && Sl(n, t, e);
5521
+ function Cl(e, t, n) {
5522
+ if (Array.isArray(n)) for (let [r, o] of n.entries()) Cl(e, Sl(t, r.toString()), o);
5523
+ else n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : Ed(n) && !_r(n) && Rl(n, t, e);
5524
5524
  }
5525
5525
  function xd(e) {
5526
5526
  var t, n;
@@ -5545,18 +5545,18 @@ function Rd(e, t) {
5545
5545
  let { features: r = 1, ...o } = e, i = { ref: t, "aria-hidden": (r & 2) === 2 ? !0 : (n = o["aria-hidden"]) != null ? n : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
5546
5546
  return fe()({ ourProps: i, theirProps: o, slot: {}, defaultTag: $d, name: "Hidden" });
5547
5547
  }
5548
- let Pl = de(Rd), Sd = ie(null);
5548
+ let kl = de(Rd), Sd = ie(null);
5549
5549
  function Cd({ children: e }) {
5550
- let t = ee(Sd);
5550
+ let t = te(Sd);
5551
5551
  if (!t) return _.createElement(_.Fragment, null, e);
5552
5552
  let { target: n } = t;
5553
5553
  return n ? Ci(_.createElement(_.Fragment, null, e), n) : null;
5554
5554
  }
5555
5555
  function kd({ data: e, form: t, disabled: n, onReset: r, overrides: o }) {
5556
- let [i, l] = te(null), a = ft();
5556
+ let [i, l] = ee(null), a = ft();
5557
5557
  return se(() => {
5558
5558
  if (r && i) return a.addEventListener(i, "reset", r);
5559
- }, [i, t, r]), _.createElement(Cd, null, _.createElement(Pd, { setForm: l, formId: t }), Sl(e).map(([s, c]) => _.createElement(Pl, { features: Jr.Hidden, ...Qe({ key: s, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: s, value: c, ...o }) })));
5559
+ }, [i, t, r]), _.createElement(Cd, null, _.createElement(Pd, { setForm: l, formId: t }), Rl(e).map(([s, c]) => _.createElement(kl, { features: Jr.Hidden, ...Qe({ key: s, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: s, value: c, ...o }) })));
5560
5560
  }
5561
5561
  function Pd({ setForm: e, formId: t }) {
5562
5562
  return se(() => {
@@ -5564,21 +5564,21 @@ function Pd({ setForm: e, formId: t }) {
5564
5564
  let n = document.getElementById(t);
5565
5565
  n && e(n);
5566
5566
  }
5567
- }, [e, t]), t ? null : _.createElement(Pl, { features: Jr.Hidden, as: "input", type: "hidden", hidden: !0, readOnly: !0, ref: (n) => {
5567
+ }, [e, t]), t ? null : _.createElement(kl, { features: Jr.Hidden, as: "input", type: "hidden", hidden: !0, readOnly: !0, ref: (n) => {
5568
5568
  if (!n) return;
5569
5569
  let r = n.closest("form");
5570
5570
  r && e(r);
5571
5571
  } });
5572
5572
  }
5573
5573
  let Td = ie(void 0);
5574
- function Tl() {
5575
- return ee(Td);
5574
+ function Pl() {
5575
+ return te(Td);
5576
5576
  }
5577
- function Ol(e) {
5577
+ function Tl(e) {
5578
5578
  return typeof e != "object" || e === null ? !1 : "nodeType" in e;
5579
5579
  }
5580
5580
  function Mn(e) {
5581
- return Ol(e) && "tagName" in e;
5581
+ return Tl(e) && "tagName" in e;
5582
5582
  }
5583
5583
  function Ze(e) {
5584
5584
  return Mn(e) && "accessKey" in e;
@@ -5592,7 +5592,7 @@ function Od(e) {
5592
5592
  function Ld(e) {
5593
5593
  return Ze(e) && e.nodeName === "IFRAME";
5594
5594
  }
5595
- function Ll(e) {
5595
+ function Ol(e) {
5596
5596
  return Ze(e) && e.nodeName === "INPUT";
5597
5597
  }
5598
5598
  function Ao(e) {
@@ -5601,7 +5601,7 @@ function Ao(e) {
5601
5601
  function Ad(e) {
5602
5602
  return Ze(e) && e.nodeName === "FIELDSET";
5603
5603
  }
5604
- function Al(e) {
5604
+ function Ll(e) {
5605
5605
  return Ze(e) && e.nodeName === "LEGEND";
5606
5606
  }
5607
5607
  function Md(e) {
@@ -5609,7 +5609,7 @@ function Md(e) {
5609
5609
  }
5610
5610
  function Cr(e) {
5611
5611
  let t = e.parentElement, n = null;
5612
- for (; t && !Ad(t); ) Al(t) && (n = t), t = t.parentElement;
5612
+ for (; t && !Ad(t); ) Ll(t) && (n = t), t = t.parentElement;
5613
5613
  let r = t?.getAttribute("disabled") === "";
5614
5614
  return r && Fd(n) ? !1 : r;
5615
5615
  }
@@ -5617,14 +5617,14 @@ function Fd(e) {
5617
5617
  if (!e) return !1;
5618
5618
  let t = e.previousElementSibling;
5619
5619
  for (; t !== null; ) {
5620
- if (Al(t)) return !1;
5620
+ if (Ll(t)) return !1;
5621
5621
  t = t.previousElementSibling;
5622
5622
  }
5623
5623
  return !0;
5624
5624
  }
5625
- let Ml = /* @__PURE__ */ Symbol();
5626
- function Fl(e, t = !0) {
5627
- return Object.assign(e, { [Ml]: t });
5625
+ let Al = /* @__PURE__ */ Symbol();
5626
+ function Ml(e, t = !0) {
5627
+ return Object.assign(e, { [Al]: t });
5628
5628
  }
5629
5629
  function be(...e) {
5630
5630
  let t = U(e);
@@ -5634,25 +5634,25 @@ function be(...e) {
5634
5634
  let n = q((r) => {
5635
5635
  for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
5636
5636
  });
5637
- return e.every((r) => r == null || r?.[Ml]) ? void 0 : n;
5637
+ return e.every((r) => r == null || r?.[Al]) ? void 0 : n;
5638
5638
  }
5639
5639
  let Qr = ie(null);
5640
5640
  Qr.displayName = "DescriptionContext";
5641
- function Il() {
5642
- let e = ee(Qr);
5641
+ function Fl() {
5642
+ let e = te(Qr);
5643
5643
  if (e === null) {
5644
5644
  let t = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
5645
- throw Error.captureStackTrace && Error.captureStackTrace(t, Il), t;
5645
+ throw Error.captureStackTrace && Error.captureStackTrace(t, Fl), t;
5646
5646
  }
5647
5647
  return e;
5648
5648
  }
5649
5649
  function Id() {
5650
5650
  var e, t;
5651
- return (t = (e = ee(Qr)) == null ? void 0 : e.value) != null ? t : void 0;
5651
+ return (t = (e = te(Qr)) == null ? void 0 : e.value) != null ? t : void 0;
5652
5652
  }
5653
5653
  let Nd = "p";
5654
5654
  function Dd(e, t) {
5655
- let n = qe(), r = An(), { id: o = `headlessui-description-${n}`, ...i } = e, l = Il(), a = be(t);
5655
+ let n = qe(), r = An(), { id: o = `headlessui-description-${n}`, ...i } = e, l = Fl(), a = be(t);
5656
5656
  ae(() => l.register(o), [o, l.register]);
5657
5657
  let s = Te({ ...l.slot, disabled: r || !1 }), c = { ref: a, ...l.props, id: o };
5658
5658
  return fe()({ ourProps: c, theirProps: i, slot: s, defaultTag: Nd, name: l.name || "Description" });
@@ -5662,21 +5662,21 @@ Object.assign(_d, {});
5662
5662
  var re = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(re || {});
5663
5663
  let Fn = ie(null);
5664
5664
  Fn.displayName = "LabelContext";
5665
- function Nl() {
5666
- let e = ee(Fn);
5665
+ function Il() {
5666
+ let e = te(Fn);
5667
5667
  if (e === null) {
5668
5668
  let t = new Error("You used a <Label /> component, but it is not inside a relevant parent.");
5669
- throw Error.captureStackTrace && Error.captureStackTrace(t, Nl), t;
5669
+ throw Error.captureStackTrace && Error.captureStackTrace(t, Il), t;
5670
5670
  }
5671
5671
  return e;
5672
5672
  }
5673
- function Dl(e) {
5673
+ function Nl(e) {
5674
5674
  var t, n, r;
5675
- let o = (n = (t = ee(Fn)) == null ? void 0 : t.value) != null ? n : void 0;
5675
+ let o = (n = (t = te(Fn)) == null ? void 0 : t.value) != null ? n : void 0;
5676
5676
  return ((r = e?.length) != null ? r : 0) > 0 ? [o, ...e].filter(Boolean).join(" ") : o;
5677
5677
  }
5678
5678
  function Bd({ inherit: e = !1 } = {}) {
5679
- let t = Dl(), [n, r] = te([]), o = e ? [t, ...n].filter(Boolean) : n;
5679
+ let t = Nl(), [n, r] = ee([]), o = e ? [t, ...n].filter(Boolean) : n;
5680
5680
  return [o.length > 0 ? o.join(" ") : void 0, ue(() => function(i) {
5681
5681
  let l = q((s) => (r((c) => [...c, s]), () => r((c) => {
5682
5682
  let u = c.slice(), f = u.indexOf(s);
@@ -5688,7 +5688,7 @@ function Bd({ inherit: e = !1 } = {}) {
5688
5688
  let Hd = "label";
5689
5689
  function jd(e, t) {
5690
5690
  var n;
5691
- let r = qe(), o = Nl(), i = Tl(), l = An(), { id: a = `headlessui-label-${r}`, htmlFor: s = i ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: c = !1, ...u } = e, f = be(t);
5691
+ let r = qe(), o = Il(), i = Pl(), l = An(), { id: a = `headlessui-label-${r}`, htmlFor: s = i ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: c = !1, ...u } = e, f = be(t);
5692
5692
  ae(() => o.register(a), [a, o.register]);
5693
5693
  let m = q((g) => {
5694
5694
  let v = g.currentTarget;
@@ -5699,7 +5699,7 @@ function jd(e, t) {
5699
5699
  if (y === "true" || y === "") return;
5700
5700
  let w = b.getAttribute("aria-disabled");
5701
5701
  if (w === "true" || w === "") return;
5702
- (Ll(b) && (b.type === "file" || b.type === "radio" || b.type === "checkbox") || b.role === "radio" || b.role === "checkbox" || b.role === "switch") && b.click(), b.focus({ preventScroll: !0 });
5702
+ (Ol(b) && (b.type === "file" || b.type === "radio" || b.type === "checkbox") || b.role === "radio" || b.role === "checkbox" || b.role === "switch") && b.click(), b.focus({ preventScroll: !0 });
5703
5703
  }
5704
5704
  }
5705
5705
  }), d = Te({ ...o.slot, disabled: l || !1 }), h = { ref: f, ...o.props, id: a, htmlFor: s, onClick: m };
@@ -5728,7 +5728,7 @@ function Mo(e) {
5728
5728
  return { width: t, height: n };
5729
5729
  }
5730
5730
  function Kd(e, t, n = !1) {
5731
- let [r, o] = te(() => Mo(t));
5731
+ let [r, o] = ee(() => Mo(t));
5732
5732
  return ae(() => {
5733
5733
  if (!t || !e) return;
5734
5734
  let i = Se();
@@ -5742,16 +5742,16 @@ function Kd(e, t, n = !1) {
5742
5742
  };
5743
5743
  }, [t, e]), n ? { width: `${r.width}px`, height: `${r.height}px` } : r;
5744
5744
  }
5745
- var _l = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(_l || {});
5745
+ var Dl = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(Dl || {});
5746
5746
  function Yd(e) {
5747
5747
  let t = U(null), n = q((o) => {
5748
- t.current = o.pointerType, !Cr(o.currentTarget) && o.pointerType === "mouse" && o.button === _l.Left && (o.preventDefault(), e(o));
5748
+ t.current = o.pointerType, !Cr(o.currentTarget) && o.pointerType === "mouse" && o.button === Dl.Left && (o.preventDefault(), e(o));
5749
5749
  }), r = q((o) => {
5750
5750
  t.current !== "mouse" && (Cr(o.currentTarget) || e(o));
5751
5751
  });
5752
5752
  return { onPointerDown: n, onClick: r };
5753
5753
  }
5754
- let Bl = class extends Map {
5754
+ let _l = class extends Map {
5755
5755
  constructor(t) {
5756
5756
  super(), this.factory = t;
5757
5757
  }
@@ -5760,15 +5760,15 @@ let Bl = class extends Map {
5760
5760
  return n === void 0 && (n = this.factory(t), this.set(t, n)), n;
5761
5761
  }
5762
5762
  };
5763
- var Xd = Object.defineProperty, Zd = (e, t, n) => t in e ? Xd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Jd = (e, t, n) => (Zd(e, t + "", n), n), Hl = (e, t, n) => {
5763
+ var Xd = Object.defineProperty, Zd = (e, t, n) => t in e ? Xd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Jd = (e, t, n) => (Zd(e, t + "", n), n), Bl = (e, t, n) => {
5764
5764
  if (!t.has(e)) throw TypeError("Cannot " + n);
5765
- }, Ce = (e, t, n) => (Hl(e, t, "read from private field"), n ? n.call(e) : t.get(e)), tr = (e, t, n) => {
5765
+ }, Ce = (e, t, n) => (Bl(e, t, "read from private field"), n ? n.call(e) : t.get(e)), tr = (e, t, n) => {
5766
5766
  if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
5767
5767
  t instanceof WeakSet ? t.add(e) : t.set(e, n);
5768
- }, Fo = (e, t, n, r) => (Hl(e, t, "write to private field"), t.set(e, n), n), Me, Nt, Dt;
5769
- let jl = class {
5768
+ }, Fo = (e, t, n, r) => (Bl(e, t, "write to private field"), t.set(e, n), n), Me, Nt, Dt;
5769
+ let Hl = class {
5770
5770
  constructor(t) {
5771
- tr(this, Me, {}), tr(this, Nt, new Bl(() => /* @__PURE__ */ new Set())), tr(this, Dt, /* @__PURE__ */ new Set()), Jd(this, "disposables", Se()), Fo(this, Me, t), Ie.isServer && this.disposables.microTask(() => {
5771
+ tr(this, Me, {}), tr(this, Nt, new _l(() => /* @__PURE__ */ new Set())), tr(this, Dt, /* @__PURE__ */ new Set()), Jd(this, "disposables", Se()), Fo(this, Me, t), Ie.isServer && this.disposables.microTask(() => {
5772
5772
  this.dispose();
5773
5773
  });
5774
5774
  }
@@ -5798,14 +5798,14 @@ let jl = class {
5798
5798
  Fo(this, Me, n);
5799
5799
  for (let r of Ce(this, Dt)) {
5800
5800
  let o = r.selector(Ce(this, Me));
5801
- Vl(r.current, o) || (r.current = o, r.callback(o));
5801
+ jl(r.current, o) || (r.current = o, r.callback(o));
5802
5802
  }
5803
5803
  for (let r of Ce(this, Nt).get(t.type)) r(Ce(this, Me), t);
5804
5804
  }
5805
5805
  }
5806
5806
  };
5807
5807
  Me = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap();
5808
- function Vl(e, t) {
5808
+ function jl(e, t) {
5809
5809
  return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null ? !1 : Array.isArray(e) && Array.isArray(t) ? e.length !== t.length ? !1 : nr(e[Symbol.iterator](), t[Symbol.iterator]()) : e instanceof Map && t instanceof Map || e instanceof Set && t instanceof Set ? e.size !== t.size ? !1 : nr(e.entries(), t.entries()) : Io(e) && Io(t) ? nr(Object.entries(e)[Symbol.iterator](), Object.entries(t)[Symbol.iterator]()) : !1;
5810
5810
  }
5811
5811
  function nr(e, t) {
@@ -5826,7 +5826,7 @@ function rr(e) {
5826
5826
  t(...o), r.dispose(), r.microTask(n);
5827
5827
  };
5828
5828
  }
5829
- var Qd = Object.defineProperty, ef = (e, t, n) => t in e ? Qd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, No = (e, t, n) => (ef(e, typeof t != "symbol" ? t + "" : t, n), n), Wl = ((e) => (e[e.Push = 0] = "Push", e[e.Pop = 1] = "Pop", e))(Wl || {});
5829
+ var Qd = Object.defineProperty, ef = (e, t, n) => t in e ? Qd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, No = (e, t, n) => (ef(e, typeof t != "symbol" ? t + "" : t, n), n), Vl = ((e) => (e[e.Push = 0] = "Push", e[e.Pop = 1] = "Pop", e))(Vl || {});
5830
5830
  let tf = { 0(e, t) {
5831
5831
  let n = t.id, r = e.stack, o = e.stack.indexOf(n);
5832
5832
  if (o !== -1) {
@@ -5839,18 +5839,18 @@ let tf = { 0(e, t) {
5839
5839
  if (r === -1) return e;
5840
5840
  let o = e.stack.slice();
5841
5841
  return o.splice(r, 1), { ...e, stack: o };
5842
- } }, nf = class zl extends jl {
5842
+ } }, nf = class Wl extends Hl {
5843
5843
  constructor() {
5844
5844
  super(...arguments), No(this, "actions", { push: (t) => this.send({ type: 0, id: t }), pop: (t) => this.send({ type: 1, id: t }) }), No(this, "selectors", { isTop: (t, n) => t.stack[t.stack.length - 1] === n, inStack: (t, n) => t.stack.includes(n) });
5845
5845
  }
5846
5846
  static new() {
5847
- return new zl({ stack: [] });
5847
+ return new Wl({ stack: [] });
5848
5848
  }
5849
5849
  reduce(t, n) {
5850
5850
  return ve(n.type, tf, t, n);
5851
5851
  }
5852
5852
  };
5853
- const eo = new Bl(() => nf.new());
5853
+ const eo = new _l(() => nf.new());
5854
5854
  var ln = { exports: {} }, or = {};
5855
5855
  var Do;
5856
5856
  function rf() {
@@ -5961,13 +5961,13 @@ function lf() {
5961
5961
  return Bo || (Bo = 1, process.env.NODE_ENV === "production" ? ln.exports = rf() : ln.exports = of()), ln.exports;
5962
5962
  }
5963
5963
  var af = lf();
5964
- function ye(e, t, n = Vl) {
5964
+ function ye(e, t, n = jl) {
5965
5965
  return af.useSyncExternalStoreWithSelector(q((r) => e.subscribe(sf, r)), q(() => e.state), q(() => e.state), q(t), n);
5966
5966
  }
5967
5967
  function sf(e) {
5968
5968
  return e;
5969
5969
  }
5970
- function Ul(e, t) {
5970
+ function zl(e, t) {
5971
5971
  let n = qe(), r = eo.get(t), [o, i] = ye(r, J((l) => [r.selectors.isTop(l, n), r.selectors.inStack(l, n)], [r, n]));
5972
5972
  return ae(() => {
5973
5973
  if (e) return r.actions.push(n), () => r.actions.pop(n);
@@ -5987,7 +5987,7 @@ function jo(e) {
5987
5987
  r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, kr.delete(e));
5988
5988
  }
5989
5989
  function cf(e, { allowed: t, disallowed: n } = {}) {
5990
- let r = Ul(e, "inert-others");
5990
+ let r = zl(e, "inert-others");
5991
5991
  ae(() => {
5992
5992
  var o, i;
5993
5993
  if (!r) return;
@@ -6030,14 +6030,14 @@ function uf(e, t, n) {
6030
6030
  }
6031
6031
  let Pr = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "details>summary", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), df = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
6032
6032
  var Tr = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Tr || {}), ff = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(ff || {}), pf = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(pf || {});
6033
- function Gl(e = document.body) {
6033
+ function Ul(e = document.body) {
6034
6034
  return e == null ? [] : Array.from(e.querySelectorAll(Pr)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
6035
6035
  }
6036
6036
  function mf(e = document.body) {
6037
6037
  return e == null ? [] : Array.from(e.querySelectorAll(df)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
6038
6038
  }
6039
6039
  var to = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(to || {});
6040
- function ql(e, t = 0) {
6040
+ function Gl(e, t = 0) {
6041
6041
  var n;
6042
6042
  return e === ((n = Xt(e)) == null ? void 0 : n.body) ? !1 : ve(t, { 0() {
6043
6043
  return e.matches(Pr);
@@ -6061,7 +6061,7 @@ function vf(e) {
6061
6061
  var t, n;
6062
6062
  return (n = (t = e?.matches) == null ? void 0 : t.call(e, gf)) != null ? n : !1;
6063
6063
  }
6064
- function Kl(e, t = (n) => n) {
6064
+ function ql(e, t = (n) => n) {
6065
6065
  return e.slice().sort((n, r) => {
6066
6066
  let o = t(n), i = t(r);
6067
6067
  if (o === null || i === null) return 0;
@@ -6070,10 +6070,10 @@ function Kl(e, t = (n) => n) {
6070
6070
  });
6071
6071
  }
6072
6072
  function bf(e, t, n = e === null ? document.body : $n(e)) {
6073
- return wf(Gl(n), t, { relativeTo: e });
6073
+ return wf(Ul(n), t, { relativeTo: e });
6074
6074
  }
6075
6075
  function wf(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
6076
- let i = Array.isArray(e) ? e.length > 0 ? $n(e[0]) : document : $n(e), l = Array.isArray(e) ? n ? Kl(e) : e : t & 64 ? mf(e) : Gl(e);
6076
+ let i = Array.isArray(e) ? e.length > 0 ? $n(e[0]) : document : $n(e), l = Array.isArray(e) ? n ? ql(e) : e : t & 64 ? mf(e) : Ul(e);
6077
6077
  o.length > 0 && l.length > 1 && (l = l.filter((d) => !o.some((h) => h != null && "current" in h ? h?.current === d : h === d))), r = r ?? i?.activeElement;
6078
6078
  let a = (() => {
6079
6079
  if (t & 5) return 1;
@@ -6095,17 +6095,17 @@ function wf(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
6095
6095
  if (d >= f) return 1;
6096
6096
  }
6097
6097
  m = l[d], m?.focus(c), u += a;
6098
- } while (m !== El(m));
6098
+ } while (m !== xl(m));
6099
6099
  return t & 6 && vf(m) && m.select(), 2;
6100
6100
  }
6101
- function Yl() {
6101
+ function Kl() {
6102
6102
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
6103
6103
  }
6104
6104
  function yf() {
6105
6105
  return /Android/gi.test(window.navigator.userAgent);
6106
6106
  }
6107
6107
  function Vo() {
6108
- return Yl() || yf();
6108
+ return Kl() || yf();
6109
6109
  }
6110
6110
  function wt(e, t, n, r) {
6111
6111
  let o = pt(n);
@@ -6137,7 +6137,7 @@ function Ef(e, t, n) {
6137
6137
  return typeof m == "function" ? f(m()) : Array.isArray(m) || m instanceof Set ? m : [m];
6138
6138
  })(t);
6139
6139
  for (let f of u) if (f !== null && (f.contains(c) || a.composed && a.composedPath().includes(f))) return;
6140
- return !ql(c, to.Loose) && c.tabIndex !== -1 && a.preventDefault(), r.current(a, c);
6140
+ return !Gl(c, to.Loose) && c.tabIndex !== -1 && a.preventDefault(), r.current(a, c);
6141
6141
  }, [r, t]), i = U(null);
6142
6142
  wt(e, "pointerdown", (a) => {
6143
6143
  var s, c;
@@ -6163,7 +6163,7 @@ const an = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close
6163
6163
  function Sf(e, { trigger: t, action: n, close: r, select: o }) {
6164
6164
  let i = U(null), l = U(null), a = U(null);
6165
6165
  wt(e && t !== null, "pointerdown", (s) => {
6166
- Ol(s?.target) && t != null && t.contains(s.target) && (l.current = s.x, a.current = s.y, i.current = s.timeStamp);
6166
+ Tl(s?.target) && t != null && t.contains(s.target) && (l.current = s.x, a.current = s.y, i.current = s.timeStamp);
6167
6167
  }), wt(e && t !== null, "pointerup", (s) => {
6168
6168
  var c, u;
6169
6169
  let f = i.current;
@@ -6183,7 +6183,7 @@ function Sf(e, { trigger: t, action: n, close: r, select: o }) {
6183
6183
  }
6184
6184
  }, { capture: !0 });
6185
6185
  }
6186
- function Xl(e, t) {
6186
+ function Yl(e, t) {
6187
6187
  return ue(() => {
6188
6188
  var n;
6189
6189
  if (e.type) return e.type;
@@ -6192,7 +6192,7 @@ function Xl(e, t) {
6192
6192
  }, [e.type, e.as, t]);
6193
6193
  }
6194
6194
  function Cf(e) {
6195
- return Ga(e.subscribe, e.getSnapshot, e.getSnapshot);
6195
+ return Ua(e.subscribe, e.getSnapshot, e.getSnapshot);
6196
6196
  }
6197
6197
  function kf(e, t) {
6198
6198
  let n = e(), r = /* @__PURE__ */ new Set();
@@ -6217,7 +6217,7 @@ function Pf() {
6217
6217
  } };
6218
6218
  }
6219
6219
  function Tf() {
6220
- return Yl() ? { before({ doc: e, d: t, meta: n }) {
6220
+ return Kl() ? { before({ doc: e, d: t, meta: n }) {
6221
6221
  function r(o) {
6222
6222
  for (let i of n().containers) for (let l of i()) if (l.contains(o)) return !0;
6223
6223
  return !1;
@@ -6247,7 +6247,7 @@ function Tf() {
6247
6247
  });
6248
6248
  }), t.addEventListener(e, "touchmove", (a) => {
6249
6249
  if (tt(a.target)) {
6250
- if (Ll(a.target)) return;
6250
+ if (Ol(a.target)) return;
6251
6251
  if (r(a.target)) {
6252
6252
  let s = a.target;
6253
6253
  for (; s.parentElement && s.dataset.headlessuiPortal !== "" && !(s.scrollHeight > s.clientHeight || s.scrollWidth > s.clientWidth); ) s = s.parentElement;
@@ -6304,7 +6304,7 @@ function Lf(e, t, n = () => ({ containers: [] })) {
6304
6304
  }, [e, t]), i;
6305
6305
  }
6306
6306
  function Af(e, t, n = () => [document.body]) {
6307
- let r = Ul(e, "scroll-lock");
6307
+ let r = zl(e, "scroll-lock");
6308
6308
  Lf(r, t, (o) => {
6309
6309
  var i;
6310
6310
  return { containers: [...(i = o.containers) != null ? i : [], n] };
@@ -6323,7 +6323,7 @@ function Mf() {
6323
6323
  } };
6324
6324
  }
6325
6325
  function Ff(e = 0) {
6326
- let [t, n] = te(e), r = J((s) => n(s), []), o = J((s) => n((c) => c | s), []), i = J((s) => (t & s) === s, [t]), l = J((s) => n((c) => c & ~s), []), a = J((s) => n((c) => c ^ s), []);
6326
+ let [t, n] = ee(e), r = J((s) => n(s), []), o = J((s) => n((c) => c | s), []), i = J((s) => (t & s) === s, [t]), l = J((s) => n((c) => c & ~s), []), a = J((s) => n((c) => c ^ s), []);
6327
6327
  return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: l, toggleFlag: a };
6328
6328
  }
6329
6329
  var qo, Ko;
@@ -6338,7 +6338,7 @@ function no(e) {
6338
6338
  return t;
6339
6339
  }
6340
6340
  function ro(e, t, n, r) {
6341
- let [o, i] = te(n), { hasFlag: l, addFlag: a, removeFlag: s } = Ff(e && o ? 3 : 0), c = U(!1), u = U(!1), f = ft();
6341
+ let [o, i] = ee(n), { hasFlag: l, addFlag: a, removeFlag: s } = Ff(e && o ? 3 : 0), c = U(!1), u = U(!1), f = ft();
6342
6342
  return ae(() => {
6343
6343
  var m;
6344
6344
  if (e) {
@@ -6394,7 +6394,7 @@ function In() {
6394
6394
  return typeof window < "u";
6395
6395
  }
6396
6396
  function Ot(e) {
6397
- return Zl(e) ? (e.nodeName || "").toLowerCase() : "#document";
6397
+ return Xl(e) ? (e.nodeName || "").toLowerCase() : "#document";
6398
6398
  }
6399
6399
  function Ee(e) {
6400
6400
  var t;
@@ -6402,9 +6402,9 @@ function Ee(e) {
6402
6402
  }
6403
6403
  function He(e) {
6404
6404
  var t;
6405
- return (t = (Zl(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
6405
+ return (t = (Xl(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
6406
6406
  }
6407
- function Zl(e) {
6407
+ function Xl(e) {
6408
6408
  return In() ? e instanceof Node || e instanceof Ee(e).Node : !1;
6409
6409
  }
6410
6410
  function Y(e) {
@@ -6487,14 +6487,14 @@ function Ge(e) {
6487
6487
  );
6488
6488
  return Lr(t) ? t.host : t;
6489
6489
  }
6490
- function Jl(e) {
6490
+ function Zl(e) {
6491
6491
  const t = Ge(e);
6492
- return ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Re(t) && Zt(t) ? t : Jl(t);
6492
+ return ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Re(t) && Zt(t) ? t : Zl(t);
6493
6493
  }
6494
6494
  function rt(e, t, n) {
6495
6495
  var r;
6496
6496
  t === void 0 && (t = []), n === void 0 && (n = !0);
6497
- const o = Jl(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), l = Ee(o);
6497
+ const o = Zl(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), l = Ee(o);
6498
6498
  if (i) {
6499
6499
  const a = Ar(l);
6500
6500
  return t.concat(l, l.visualViewport || [], Zt(o) ? o : [], a && n ? rt(a) : []);
@@ -6538,22 +6538,22 @@ function Be(e) {
6538
6538
  function De(e) {
6539
6539
  return e.split("-")[1];
6540
6540
  }
6541
- function Ql(e) {
6541
+ function Jl(e) {
6542
6542
  return e === "x" ? "y" : "x";
6543
6543
  }
6544
- function ea(e) {
6544
+ function Ql(e) {
6545
6545
  return e === "y" ? "height" : "width";
6546
6546
  }
6547
6547
  const Qf = /* @__PURE__ */ new Set(["top", "bottom"]);
6548
6548
  function Ve(e) {
6549
6549
  return Qf.has(Be(e)) ? "y" : "x";
6550
6550
  }
6551
- function ta(e) {
6552
- return Ql(Ve(e));
6551
+ function ea(e) {
6552
+ return Jl(Ve(e));
6553
6553
  }
6554
- function na(e, t, n) {
6554
+ function ta(e, t, n) {
6555
6555
  n === void 0 && (n = !1);
6556
- const r = De(e), o = ta(e), i = ea(o);
6556
+ const r = De(e), o = ea(e), i = Ql(o);
6557
6557
  let l = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
6558
6558
  return t.reference[i] > t.floating[i] && (l = Sn(l)), [l, Sn(l)];
6559
6559
  }
@@ -6625,7 +6625,7 @@ function ei(e, t, n) {
6625
6625
  reference: r,
6626
6626
  floating: o
6627
6627
  } = e;
6628
- const i = Ve(t), l = ta(t), a = ea(l), s = Be(t), c = i === "y", u = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, m = r[a] / 2 - o[a] / 2;
6628
+ const i = Ve(t), l = ea(t), a = Ql(l), s = Be(t), c = i === "y", u = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, m = r[a] / 2 - o[a] / 2;
6629
6629
  let d;
6630
6630
  switch (s) {
6631
6631
  case "top":
@@ -6798,7 +6798,7 @@ const cp = function(e) {
6798
6798
  } = mt(e, t), g = f !== void 0 || m === Xo ? sp(f || null, d, m) : m, v = await Jt(t, h), b = ((n = l.autoPlacement) == null ? void 0 : n.index) || 0, y = g[b];
6799
6799
  if (y == null)
6800
6800
  return {};
6801
- const w = na(y, i, await (s.isRTL == null ? void 0 : s.isRTL(c.floating)));
6801
+ const w = ta(y, i, await (s.isRTL == null ? void 0 : s.isRTL(c.floating)));
6802
6802
  if (a !== y)
6803
6803
  return {
6804
6804
  reset: {
@@ -6874,7 +6874,7 @@ const cp = function(e) {
6874
6874
  const P = [a, ...E], C = await Jt(t, v), M = [];
6875
6875
  let S = ((r = i.flip) == null ? void 0 : r.overflows) || [];
6876
6876
  if (u && M.push(C[b]), f) {
6877
- const T = na(o, l, $);
6877
+ const T = ta(o, l, $);
6878
6878
  M.push(C[T[0]], C[T[1]]);
6879
6879
  }
6880
6880
  if (S = [...S, {
@@ -7004,7 +7004,7 @@ const pp = function(e) {
7004
7004
  } = mt(e, t), c = {
7005
7005
  x: n,
7006
7006
  y: r
7007
- }, u = await Jt(t, s), f = Ve(Be(o)), m = Ql(f);
7007
+ }, u = await Jt(t, s), f = Ve(Be(o)), m = Jl(f);
7008
7008
  let d = c[m], h = c[f];
7009
7009
  if (i) {
7010
7010
  const v = m === "y" ? "top" : "left", b = m === "y" ? "bottom" : "right", y = d + u[v], w = d - u[b];
@@ -7073,7 +7073,7 @@ const pp = function(e) {
7073
7073
  }
7074
7074
  };
7075
7075
  };
7076
- function ra(e) {
7076
+ function na(e) {
7077
7077
  const t = Oe(e);
7078
7078
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
7079
7079
  const o = Re(e), i = o ? e.offsetWidth : n, l = o ? e.offsetHeight : r, a = Wt(n) !== i || Wt(r) !== l;
@@ -7094,7 +7094,7 @@ function xt(e) {
7094
7094
  width: r,
7095
7095
  height: o,
7096
7096
  $: i
7097
- } = ra(t);
7097
+ } = na(t);
7098
7098
  let l = (i ? Wt(n.width) : n.width) / r, a = (i ? Wt(n.height) : n.height) / o;
7099
7099
  return (!l || !Number.isFinite(l)) && (l = 1), (!a || !Number.isFinite(a)) && (a = 1), {
7100
7100
  x: l,
@@ -7102,7 +7102,7 @@ function xt(e) {
7102
7102
  };
7103
7103
  }
7104
7104
  const gp = /* @__PURE__ */ Ne(0);
7105
- function oa(e) {
7105
+ function ra(e) {
7106
7106
  const t = Ee(e);
7107
7107
  return !Dn() || !t.visualViewport ? gp : {
7108
7108
  x: t.visualViewport.offsetLeft,
@@ -7117,7 +7117,7 @@ function dt(e, t, n, r) {
7117
7117
  const o = e.getBoundingClientRect(), i = io(e);
7118
7118
  let l = Ne(1);
7119
7119
  t && (r ? Y(r) && (l = xt(r)) : l = xt(e));
7120
- const a = vp(i, n, r) ? oa(i) : Ne(0);
7120
+ const a = vp(i, n, r) ? ra(i) : Ne(0);
7121
7121
  let s = (o.left + a.x) / l.x, c = (o.top + a.y) / l.y, u = o.width / l.x, f = o.height / l.y;
7122
7122
  if (i) {
7123
7123
  const m = Ee(i), d = r && Y(r) ? Ee(r) : r;
@@ -7138,7 +7138,7 @@ function Bn(e, t) {
7138
7138
  const n = _n(e).scrollLeft;
7139
7139
  return t ? t.left + n : dt(He(e)).left + n;
7140
7140
  }
7141
- function ia(e, t) {
7141
+ function oa(e, t) {
7142
7142
  const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Bn(e, n), o = n.top + t.scrollTop;
7143
7143
  return {
7144
7144
  x: r,
@@ -7164,7 +7164,7 @@ function bp(e) {
7164
7164
  const d = dt(r);
7165
7165
  c = xt(r), u.x = d.x + r.clientLeft, u.y = d.y + r.clientTop;
7166
7166
  }
7167
- const m = l && !f && !i ? ia(l, s) : Ne(0);
7167
+ const m = l && !f && !i ? oa(l, s) : Ne(0);
7168
7168
  return {
7169
7169
  width: n.width * c.x,
7170
7170
  height: n.height * c.y,
@@ -7226,7 +7226,7 @@ function ni(e, t, n) {
7226
7226
  else if (Y(t))
7227
7227
  r = $p(t, n);
7228
7228
  else {
7229
- const o = oa(e);
7229
+ const o = ra(e);
7230
7230
  r = {
7231
7231
  x: t.x - o.x,
7232
7232
  y: t.y - o.y,
@@ -7236,9 +7236,9 @@ function ni(e, t, n) {
7236
7236
  }
7237
7237
  return Cn(r);
7238
7238
  }
7239
- function la(e, t) {
7239
+ function ia(e, t) {
7240
7240
  const n = Ge(e);
7241
- return n === t || !Y(n) || ze(n) ? !1 : Oe(n).position === "fixed" || la(n, t);
7241
+ return n === t || !Y(n) || ze(n) ? !1 : Oe(n).position === "fixed" || ia(n, t);
7242
7242
  }
7243
7243
  function Rp(e, t) {
7244
7244
  const n = t.get(e);
@@ -7249,7 +7249,7 @@ function Rp(e, t) {
7249
7249
  let l = i ? Ge(e) : e;
7250
7250
  for (; Y(l) && !ze(l); ) {
7251
7251
  const a = Oe(l), s = oo(l);
7252
- !s && a.position === "fixed" && (o = null), (i ? !s && !o : !s && a.position === "static" && !!o && Ep.has(o.position) || Zt(l) && !s && la(e, l)) ? r = r.filter((u) => u !== l) : o = a, l = Ge(l);
7252
+ !s && a.position === "fixed" && (o = null), (i ? !s && !o : !s && a.position === "static" && !!o && Ep.has(o.position) || Zt(l) && !s && ia(e, l)) ? r = r.filter((u) => u !== l) : o = a, l = Ge(l);
7253
7253
  }
7254
7254
  return t.set(e, r), r;
7255
7255
  }
@@ -7275,7 +7275,7 @@ function Cp(e) {
7275
7275
  const {
7276
7276
  width: t,
7277
7277
  height: n
7278
- } = ra(e);
7278
+ } = na(e);
7279
7279
  return {
7280
7280
  width: t,
7281
7281
  height: n
@@ -7297,7 +7297,7 @@ function kp(e, t, n) {
7297
7297
  s.x = d.x + t.clientLeft, s.y = d.y + t.clientTop;
7298
7298
  } else o && c();
7299
7299
  i && !r && o && c();
7300
- const u = o && !r && !i ? ia(o, a) : Ne(0), f = l.left + a.scrollLeft - s.x - u.x, m = l.top + a.scrollTop - s.y - u.y;
7300
+ const u = o && !r && !i ? oa(o, a) : Ne(0), f = l.left + a.scrollLeft - s.x - u.x, m = l.top + a.scrollTop - s.y - u.y;
7301
7301
  return {
7302
7302
  x: f,
7303
7303
  y: m,
@@ -7316,7 +7316,7 @@ function ri(e, t) {
7316
7316
  let n = e.offsetParent;
7317
7317
  return He(e) === n && (n = n.ownerDocument.body), n;
7318
7318
  }
7319
- function aa(e, t) {
7319
+ function la(e, t) {
7320
7320
  const n = Ee(e);
7321
7321
  if (Nn(e))
7322
7322
  return n;
@@ -7335,7 +7335,7 @@ function aa(e, t) {
7335
7335
  return r && ze(r) && lr(r) && !oo(r) ? n : r || qf(e) || n;
7336
7336
  }
7337
7337
  const Pp = async function(e) {
7338
- const t = this.getOffsetParent || aa, n = this.getDimensions, r = await n(e.floating);
7338
+ const t = this.getOffsetParent || la, n = this.getDimensions, r = await n(e.floating);
7339
7339
  return {
7340
7340
  reference: kp(e.reference, await t(e.floating), e.strategy),
7341
7341
  floating: {
@@ -7353,7 +7353,7 @@ const Op = {
7353
7353
  convertOffsetParentRelativeRectToViewportRelativeRect: bp,
7354
7354
  getDocumentElement: He,
7355
7355
  getClippingRect: Sp,
7356
- getOffsetParent: aa,
7356
+ getOffsetParent: la,
7357
7357
  getElementRects: Pp,
7358
7358
  getClientRects: wp,
7359
7359
  getDimensions: Cp,
@@ -7361,7 +7361,7 @@ const Op = {
7361
7361
  isElement: Y,
7362
7362
  isRTL: Tp
7363
7363
  };
7364
- function sa(e, t) {
7364
+ function aa(e, t) {
7365
7365
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
7366
7366
  }
7367
7367
  function Lp(e, t) {
@@ -7395,7 +7395,7 @@ function Lp(e, t) {
7395
7395
  l(!1, 1e-7);
7396
7396
  }, 1e3);
7397
7397
  }
7398
- P === 1 && !sa(c, e.getBoundingClientRect()) && l(), $ = !1;
7398
+ P === 1 && !aa(c, e.getBoundingClientRect()) && l(), $ = !1;
7399
7399
  }
7400
7400
  try {
7401
7401
  n = new IntersectionObserver(E, {
@@ -7437,7 +7437,7 @@ function Ap(e, t, n, r) {
7437
7437
  s && v();
7438
7438
  function v() {
7439
7439
  const b = dt(e);
7440
- g && !sa(g, b) && n(), g = b, h = requestAnimationFrame(v);
7440
+ g && !aa(g, b) && n(), g = b, h = requestAnimationFrame(v);
7441
7441
  }
7442
7442
  return n(), () => {
7443
7443
  var b;
@@ -7491,11 +7491,11 @@ function kn(e, t) {
7491
7491
  }
7492
7492
  return e !== e && t !== t;
7493
7493
  }
7494
- function ca(e) {
7494
+ function sa(e) {
7495
7495
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
7496
7496
  }
7497
7497
  function oi(e, t) {
7498
- const n = ca(e);
7498
+ const n = sa(e);
7499
7499
  return Math.round(t * n) / n;
7500
7500
  }
7501
7501
  function sr(e) {
@@ -7504,7 +7504,7 @@ function sr(e) {
7504
7504
  t.current = e;
7505
7505
  }), t;
7506
7506
  }
7507
- function ua(e) {
7507
+ function ca(e) {
7508
7508
  e === void 0 && (e = {});
7509
7509
  const {
7510
7510
  placement: t = "bottom",
@@ -7589,7 +7589,7 @@ function ua(e) {
7589
7589
  return a ? {
7590
7590
  ...x,
7591
7591
  transform: "translate(" + L + "px, " + V + "px)",
7592
- ...ca(B.floating) >= 1.5 && {
7592
+ ...sa(B.floating) >= 1.5 && {
7593
7593
  willChange: "transform"
7594
7594
  }
7595
7595
  } : {
@@ -7609,7 +7609,7 @@ function ua(e) {
7609
7609
  const lo = (e, t) => ({
7610
7610
  ...Mp(e),
7611
7611
  options: [e, t]
7612
- }), da = (e, t) => ({
7612
+ }), ua = (e, t) => ({
7613
7613
  ...Ip(e),
7614
7614
  options: [e, t]
7615
7615
  }), jp = (e, t) => ({
@@ -7621,10 +7621,10 @@ const lo = (e, t) => ({
7621
7621
  }), Wp = (e, t) => ({
7622
7622
  ...Fp(e),
7623
7623
  options: [e, t]
7624
- }), fa = {
7624
+ }), da = {
7625
7625
  ...p
7626
- }, zp = fa.useInsertionEffect, Up = zp || ((e) => e());
7627
- function pa(e) {
7626
+ }, zp = da.useInsertionEffect, Up = zp || ((e) => e());
7627
+ function fa(e) {
7628
7628
  const t = p.useRef(() => {
7629
7629
  if (process.env.NODE_ENV !== "production")
7630
7630
  throw new Error("Cannot call an event handler while rendering.");
@@ -7652,7 +7652,7 @@ function qp() {
7652
7652
  ii = !0;
7653
7653
  }, []), e;
7654
7654
  }
7655
- const Kp = fa.useId, Yp = Kp || qp;
7655
+ const Kp = da.useId, Yp = Kp || qp;
7656
7656
  let zt;
7657
7657
  process.env.NODE_ENV !== "production" && (zt = /* @__PURE__ */ new Set());
7658
7658
  function Xp() {
@@ -7703,7 +7703,7 @@ function om(e) {
7703
7703
  const d = r.reference;
7704
7704
  d && !Y(d) && Zp("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
7705
7705
  }
7706
- const [s, c] = p.useState(r.reference), u = pa((d, h, g) => {
7706
+ const [s, c] = p.useState(r.reference), u = fa((d, h, g) => {
7707
7707
  i.current.openEvent = d ? h : void 0, l.emit("openchange", {
7708
7708
  open: d,
7709
7709
  event: h,
@@ -7742,7 +7742,7 @@ function im(e) {
7742
7742
  Mr(() => {
7743
7743
  u && (f.current = u);
7744
7744
  }, [u]);
7745
- const d = ua({
7745
+ const d = ca({
7746
7746
  ...e,
7747
7747
  elements: {
7748
7748
  ...o,
@@ -7908,7 +7908,7 @@ function sm(e, t) {
7908
7908
  overflowRef: i,
7909
7909
  scrollRef: l,
7910
7910
  onChange: a
7911
- } = t, s = pa(a), c = p.useRef(!1), u = p.useRef(null), f = p.useRef(null);
7911
+ } = t, s = fa(a), c = p.useRef(!1), u = p.useRef(null), f = p.useRef(null);
7912
7912
  p.useEffect(() => {
7913
7913
  if (!o) return;
7914
7914
  function d(g) {
@@ -7966,36 +7966,36 @@ function cm(e) {
7966
7966
  return ue(() => e ? typeof e == "string" ? { to: e } : e : null, [e]);
7967
7967
  }
7968
7968
  function um() {
7969
- return ee(Lt).setReference;
7969
+ return te(Lt).setReference;
7970
7970
  }
7971
7971
  function dm() {
7972
- return ee(Lt).getReferenceProps;
7972
+ return te(Lt).getReferenceProps;
7973
7973
  }
7974
7974
  function fm() {
7975
- let { getFloatingProps: e, slot: t } = ee(Lt);
7975
+ let { getFloatingProps: e, slot: t } = te(Lt);
7976
7976
  return J((...n) => Object.assign({}, e(...n), { "data-anchor": t.anchor }), [e, t]);
7977
7977
  }
7978
7978
  function pm(e = null) {
7979
7979
  e === !1 && (e = null), typeof e == "string" && (e = { to: e });
7980
- let t = ee(ao), n = ue(() => e, [JSON.stringify(e, (o, i) => {
7980
+ let t = te(ao), n = ue(() => e, [JSON.stringify(e, (o, i) => {
7981
7981
  var l;
7982
7982
  return (l = i?.outerHTML) != null ? l : i;
7983
7983
  })]);
7984
7984
  ae(() => {
7985
7985
  t?.(n ?? null);
7986
7986
  }, [t, n]);
7987
- let r = ee(Lt);
7987
+ let r = te(Lt);
7988
7988
  return ue(() => [r.setFloating, e ? r.styles : {}], [r.setFloating, e, r.styles]);
7989
7989
  }
7990
7990
  let ui = 4;
7991
7991
  function mm({ children: e, enabled: t = !0 }) {
7992
- let [n, r] = te(null), [o, i] = te(0), l = U(null), [a, s] = te(null);
7992
+ let [n, r] = ee(null), [o, i] = ee(0), l = U(null), [a, s] = ee(null);
7993
7993
  hm(a);
7994
7994
  let c = t && n !== null && a !== null, { to: u = "bottom", gap: f = 0, offset: m = 0, padding: d = 0, inner: h } = gm(n, a), [g, v = "center"] = u.split(" ");
7995
7995
  ae(() => {
7996
7996
  c && i(0);
7997
7997
  }, [c]);
7998
- let { refs: b, floatingStyles: y, context: w } = im({ open: c, placement: g === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${g}` : `${g}-${v}`, strategy: "absolute", transform: !1, middleware: [lo({ mainAxis: g === "selection" ? 0 : f, crossAxis: m }), da({ padding: d }), g !== "selection" && jp({ padding: d }), g === "selection" && h ? am({ ...h, padding: d, overflowRef: l, offset: o, minItemsVisible: ui, referenceOverflowThreshold: d, onFallbackChange(N) {
7998
+ let { refs: b, floatingStyles: y, context: w } = im({ open: c, placement: g === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${g}` : `${g}-${v}`, strategy: "absolute", transform: !1, middleware: [lo({ mainAxis: g === "selection" ? 0 : f, crossAxis: m }), ua({ padding: d }), g !== "selection" && jp({ padding: d }), g === "selection" && h ? am({ ...h, padding: d, overflowRef: l, offset: o, minItemsVisible: ui, referenceOverflowThreshold: d, onFallbackChange(N) {
7999
7999
  var W, z;
8000
8000
  if (!N) return;
8001
8001
  let T = w.elements.floating;
@@ -8049,7 +8049,7 @@ function ur(e, t, n = void 0) {
8049
8049
  if (!c) return [n, null];
8050
8050
  let u = di(s, c);
8051
8051
  return [u, (f) => {
8052
- let m = ma(s);
8052
+ let m = pa(s);
8053
8053
  {
8054
8054
  let d = m.map((h) => window.getComputedStyle(c).getPropertyValue(h));
8055
8055
  r.requestAnimationFrame(function h() {
@@ -8071,19 +8071,19 @@ function ur(e, t, n = void 0) {
8071
8071
  }];
8072
8072
  }
8073
8073
  return [n, null];
8074
- }), i = ue(() => o(e, t)[0], [e, t]), [l = i, a] = te();
8074
+ }), i = ue(() => o(e, t)[0], [e, t]), [l = i, a] = ee();
8075
8075
  return ae(() => {
8076
8076
  let [s, c] = o(e, t);
8077
8077
  if (a(s), !!c) return c(a);
8078
8078
  }, [e, t]), l;
8079
8079
  }
8080
- function ma(e) {
8080
+ function pa(e) {
8081
8081
  let t = /var\((.*)\)/.exec(e);
8082
8082
  if (t) {
8083
8083
  let n = t[1].indexOf(",");
8084
8084
  if (n === -1) return [t[1]];
8085
8085
  let r = t[1].slice(0, n).trim(), o = t[1].slice(n + 1).trim();
8086
- return o ? [r, ...ma(o)] : [r];
8086
+ return o ? [r, ...pa(o)] : [r];
8087
8087
  }
8088
8088
  return [];
8089
8089
  }
@@ -8094,19 +8094,19 @@ function di(e, t) {
8094
8094
  return t.removeChild(n), r;
8095
8095
  }
8096
8096
  function vm({ children: e, freeze: t }, n) {
8097
- let r = ha(t, e);
8097
+ let r = ma(t, e);
8098
8098
  return _r(r) ? Si(r, { ref: n }) : _.createElement(_.Fragment, null, r);
8099
8099
  }
8100
8100
  _.forwardRef(vm);
8101
- function ha(e, t) {
8102
- let [n, r] = te(t);
8101
+ function ma(e, t) {
8102
+ let [n, r] = ee(t);
8103
8103
  return !e && n !== t && r(t), e ? n : t;
8104
8104
  }
8105
8105
  let Hn = ie(null);
8106
8106
  Hn.displayName = "OpenClosedContext";
8107
8107
  var ge = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(ge || {});
8108
8108
  function jn() {
8109
- return ee(Hn);
8109
+ return te(Hn);
8110
8110
  }
8111
8111
  function so({ value: e, children: t }) {
8112
8112
  return _.createElement(Hn.Provider, { value: e }, t);
@@ -8150,20 +8150,20 @@ function cn(e, t) {
8150
8150
  wm(e);
8151
8151
  }
8152
8152
  }
8153
- function ga(e) {
8153
+ function ha(e) {
8154
8154
  let t = q(e), n = U(!1);
8155
8155
  se(() => (n.current = !1, () => {
8156
- n.current = !0, $l(() => {
8156
+ n.current = !0, El(() => {
8157
8157
  n.current && t();
8158
8158
  });
8159
8159
  }), [t]);
8160
8160
  }
8161
8161
  let ym = ie(!1);
8162
8162
  function xm() {
8163
- return ee(ym);
8163
+ return te(ym);
8164
8164
  }
8165
8165
  function Em(e) {
8166
- let t = xm(), n = ee(ba), [r, o] = te(() => {
8166
+ let t = xm(), n = te(va), [r, o] = ee(() => {
8167
8167
  var i;
8168
8168
  if (!t && n !== null) return (i = n.current) != null ? i : null;
8169
8169
  if (Ie.isServer) return null;
@@ -8179,29 +8179,29 @@ function Em(e) {
8179
8179
  t || n !== null && o(n.current);
8180
8180
  }, [n, o, t]), r;
8181
8181
  }
8182
- let va = _e, $m = de(function(e, t) {
8183
- let { ownerDocument: n = null, ...r } = e, o = U(null), i = be(Fl((m) => {
8182
+ let ga = _e, $m = de(function(e, t) {
8183
+ let { ownerDocument: n = null, ...r } = e, o = U(null), i = be(Ml((m) => {
8184
8184
  o.current = m;
8185
- }), t), l = Or(o.current), a = n ?? l, s = Em(a), c = ee(km), u = ft(), f = fe();
8186
- return ga(() => {
8185
+ }), t), l = Or(o.current), a = n ?? l, s = Em(a), c = te(km), u = ft(), f = fe();
8186
+ return ha(() => {
8187
8187
  var m;
8188
8188
  s && s.childNodes.length <= 0 && ((m = s.parentElement) == null || m.removeChild(s));
8189
8189
  }), s ? Ci(_.createElement("div", { "data-headlessui-portal": "", ref: (m) => {
8190
8190
  u.dispose(), c && m && u.add(c.register(m));
8191
- } }, f({ ourProps: { ref: i }, theirProps: r, slot: {}, defaultTag: va, name: "Portal" })), s) : null;
8191
+ } }, f({ ourProps: { ref: i }, theirProps: r, slot: {}, defaultTag: ga, name: "Portal" })), s) : null;
8192
8192
  });
8193
8193
  function Rm(e, t) {
8194
8194
  let n = be(t), { enabled: r = !0, ownerDocument: o, ...i } = e, l = fe();
8195
- return r ? _.createElement($m, { ...i, ownerDocument: o, ref: n }) : l({ ourProps: { ref: n }, theirProps: i, slot: {}, defaultTag: va, name: "Portal" });
8195
+ return r ? _.createElement($m, { ...i, ownerDocument: o, ref: n }) : l({ ourProps: { ref: n }, theirProps: i, slot: {}, defaultTag: ga, name: "Portal" });
8196
8196
  }
8197
- let Sm = _e, ba = ie(null);
8197
+ let Sm = _e, va = ie(null);
8198
8198
  function Cm(e, t) {
8199
8199
  let { target: n, ...r } = e, o = { ref: be(t) }, i = fe();
8200
- return _.createElement(ba.Provider, { value: n }, i({ ourProps: o, theirProps: r, defaultTag: Sm, name: "Popover.Group" }));
8200
+ return _.createElement(va.Provider, { value: n }, i({ ourProps: o, theirProps: r, defaultTag: Sm, name: "Popover.Group" }));
8201
8201
  }
8202
8202
  let km = ie(null), Pm = de(Rm), Tm = de(Cm), Om = Object.assign(Pm, { Group: Tm });
8203
8203
  const hn = { Idle: { kind: "Idle" }, Tracked: (e) => ({ kind: "Tracked", position: e }), Moved: { kind: "Moved" } };
8204
- function wa(e) {
8204
+ function ba(e) {
8205
8205
  let t = e.getBoundingClientRect();
8206
8206
  return `${t.x},${t.y}`;
8207
8207
  }
@@ -8209,7 +8209,7 @@ function Lm(e, t, n) {
8209
8209
  let r = Se();
8210
8210
  if (t.kind === "Tracked") {
8211
8211
  let o = function() {
8212
- i !== wa(e) && (r.dispose(), n());
8212
+ i !== ba(e) && (r.dispose(), n());
8213
8213
  }, { position: i } = t, l = new ResizeObserver(o);
8214
8214
  l.observe(e), r.add(() => l.disconnect()), r.addEventListener(window, "scroll", o, { passive: !0 }), r.addEventListener(window, "resize", o);
8215
8215
  }
@@ -8220,7 +8220,7 @@ function Am() {
8220
8220
  return "useSyncExternalStore" in p ? ((t) => t.useSyncExternalStore)(p)(() => () => {
8221
8221
  }, () => !1, () => !e) : !1;
8222
8222
  }
8223
- function ya() {
8223
+ function wa() {
8224
8224
  let e = Am(), [t, n] = p.useState(Ie.isHandoffComplete);
8225
8225
  return t && Ie.isHandoffComplete === !1 && n(!1), p.useEffect(() => {
8226
8226
  t !== !0 && n(!0);
@@ -8232,20 +8232,20 @@ function Mm() {
8232
8232
  e.current = !1;
8233
8233
  }), []), e;
8234
8234
  }
8235
- function xa(e) {
8235
+ function ya(e) {
8236
8236
  var t;
8237
- return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !yt((t = e.as) != null ? t : $a) || _.Children.count(e.children) === 1;
8237
+ return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !yt((t = e.as) != null ? t : Ea) || _.Children.count(e.children) === 1;
8238
8238
  }
8239
8239
  let Vn = ie(null);
8240
8240
  Vn.displayName = "TransitionContext";
8241
8241
  var Fm = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Fm || {});
8242
8242
  function Im() {
8243
- let e = ee(Vn);
8243
+ let e = te(Vn);
8244
8244
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
8245
8245
  return e;
8246
8246
  }
8247
8247
  function Nm() {
8248
- let e = ee(Wn);
8248
+ let e = te(Wn);
8249
8249
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
8250
8250
  return e;
8251
8251
  }
@@ -8254,7 +8254,7 @@ Wn.displayName = "NestingContext";
8254
8254
  function zn(e) {
8255
8255
  return "children" in e ? zn(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
8256
8256
  }
8257
- function Ea(e, t) {
8257
+ function xa(e, t) {
8258
8258
  let n = pt(e), r = U([]), o = Mm(), i = ft(), l = q((d, h = et.Hidden) => {
8259
8259
  let g = r.current.findIndex(({ el: v }) => v === d);
8260
8260
  g !== -1 && (ve(h, { [et.Unmount]() {
@@ -8282,10 +8282,10 @@ function Ea(e, t) {
8282
8282
  });
8283
8283
  return ue(() => ({ children: r, register: a, unregister: l, onStart: f, onStop: m, wait: c, chains: u }), [a, l, r, f, m, u, c]);
8284
8284
  }
8285
- let $a = _e, Ra = $t.RenderStrategy;
8285
+ let Ea = _e, $a = $t.RenderStrategy;
8286
8286
  function Dm(e, t) {
8287
8287
  var n, r;
8288
- let { transition: o = !0, beforeEnter: i, afterEnter: l, beforeLeave: a, afterLeave: s, enter: c, enterFrom: u, enterTo: f, entered: m, leave: d, leaveFrom: h, leaveTo: g, ...v } = e, [b, y] = te(null), w = U(null), $ = xa(e), E = be(...$ ? [w, t, y] : t === null ? [] : [t]), k = (n = v.unmount) == null || n ? et.Unmount : et.Hidden, { show: P, appear: C, initial: M } = Im(), [S, N] = te(P ? "visible" : "hidden"), W = Nm(), { register: z, unregister: T } = W;
8288
+ let { transition: o = !0, beforeEnter: i, afterEnter: l, beforeLeave: a, afterLeave: s, enter: c, enterFrom: u, enterTo: f, entered: m, leave: d, leaveFrom: h, leaveTo: g, ...v } = e, [b, y] = ee(null), w = U(null), $ = ya(e), E = be(...$ ? [w, t, y] : t === null ? [] : [t]), k = (n = v.unmount) == null || n ? et.Unmount : et.Hidden, { show: P, appear: C, initial: M } = Im(), [S, N] = ee(P ? "visible" : "hidden"), W = Nm(), { register: z, unregister: T } = W;
8289
8289
  ae(() => z(w), [z, w]), ae(() => {
8290
8290
  if (k === et.Hidden && w.current) {
8291
8291
  if (P && S !== "visible") {
@@ -8295,11 +8295,11 @@ function Dm(e, t) {
8295
8295
  return ve(S, { hidden: () => T(w), visible: () => z(w) });
8296
8296
  }
8297
8297
  }, [S, w, z, T, P, k]);
8298
- let A = ya();
8298
+ let A = wa();
8299
8299
  ae(() => {
8300
8300
  if ($ && A && S === "visible" && w.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
8301
8301
  }, [w, S, A, $]);
8302
- let B = M && !C, O = C && P && M, x = U(!1), L = Ea(() => {
8302
+ let B = M && !C, O = C && P && M, x = U(!1), L = xa(() => {
8303
8303
  x.current || (N("hidden"), T(w));
8304
8304
  }, W), V = q((K) => {
8305
8305
  x.current = !0;
@@ -8319,16 +8319,16 @@ function Dm(e, t) {
8319
8319
  let H = !(!o || !$ || !A || B), [, D] = ro(H, b, P, { start: V, end: Q }), le = Qe({ ref: E, className: ((r = Sr(v.className, O && c, O && u, D.enter && c, D.enter && D.closed && u, D.enter && !D.closed && f, D.leave && d, D.leave && !D.closed && h, D.leave && D.closed && g, !D.transition && P && m)) == null ? void 0 : r.trim()) || void 0, ...no(D) }), X = 0;
8320
8320
  S === "visible" && (X |= ge.Open), S === "hidden" && (X |= ge.Closed), P && S === "hidden" && (X |= ge.Opening), !P && S === "visible" && (X |= ge.Closing);
8321
8321
  let j = fe();
8322
- return _.createElement(Wn.Provider, { value: L }, _.createElement(so, { value: X }, j({ ourProps: le, theirProps: v, defaultTag: $a, features: Ra, visible: S === "visible", name: "Transition.Child" })));
8322
+ return _.createElement(Wn.Provider, { value: L }, _.createElement(so, { value: X }, j({ ourProps: le, theirProps: v, defaultTag: Ea, features: $a, visible: S === "visible", name: "Transition.Child" })));
8323
8323
  }
8324
8324
  function _m(e, t) {
8325
- let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, l = U(null), a = xa(e), s = be(...a ? [l, t] : t === null ? [] : [t]);
8326
- ya();
8325
+ let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, l = U(null), a = ya(e), s = be(...a ? [l, t] : t === null ? [] : [t]);
8326
+ wa();
8327
8327
  let c = jn();
8328
8328
  if (n === void 0 && c !== null && (n = (c & ge.Open) === ge.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
8329
- let [u, f] = te(n ? "visible" : "hidden"), m = Ea(() => {
8329
+ let [u, f] = ee(n ? "visible" : "hidden"), m = xa(() => {
8330
8330
  n || f("hidden");
8331
- }), [d, h] = te(!0), g = U([n]);
8331
+ }), [d, h] = ee(!0), g = U([n]);
8332
8332
  ae(() => {
8333
8333
  d !== !1 && g.current[g.current.length - 1] !== n && (g.current.push(n), h(!1));
8334
8334
  }, [g, n]);
@@ -8343,13 +8343,13 @@ function _m(e, t) {
8343
8343
  var E;
8344
8344
  d && h(!1), (E = e.beforeLeave) == null || E.call(e);
8345
8345
  }), $ = fe();
8346
- return _.createElement(Wn.Provider, { value: m }, _.createElement(Vn.Provider, { value: v }, $({ ourProps: { ...b, as: _e, children: _.createElement(Sa, { ref: s, ...b, ...i, beforeEnter: y, beforeLeave: w }) }, theirProps: {}, defaultTag: _e, features: Ra, visible: u === "visible", name: "Transition" })));
8346
+ return _.createElement(Wn.Provider, { value: m }, _.createElement(Vn.Provider, { value: v }, $({ ourProps: { ...b, as: _e, children: _.createElement(Ra, { ref: s, ...b, ...i, beforeEnter: y, beforeLeave: w }) }, theirProps: {}, defaultTag: _e, features: $a, visible: u === "visible", name: "Transition" })));
8347
8347
  }
8348
8348
  function Bm(e, t) {
8349
- let n = ee(Vn) !== null, r = jn() !== null;
8350
- return _.createElement(_.Fragment, null, !n && r ? _.createElement(Fr, { ref: t, ...e }) : _.createElement(Sa, { ref: t, ...e }));
8349
+ let n = te(Vn) !== null, r = jn() !== null;
8350
+ return _.createElement(_.Fragment, null, !n && r ? _.createElement(Fr, { ref: t, ...e }) : _.createElement(Ra, { ref: t, ...e }));
8351
8351
  }
8352
- let Fr = de(_m), Sa = de(Dm), Hm = de(Bm), jm = Object.assign(Fr, { Child: Hm, Root: Fr });
8352
+ let Fr = de(_m), Ra = de(Dm), Hm = de(Bm), jm = Object.assign(Fr, { Child: Hm, Root: Fr });
8353
8353
  var fi;
8354
8354
  let Vm = (fi = _.startTransition) != null ? fi : function(e) {
8355
8355
  e();
@@ -8366,7 +8366,7 @@ let Um = { 0: (e) => ({ ...e, disclosureState: ve(e.disclosureState, { 0: 1, 1:
8366
8366
  } }, co = ie(null);
8367
8367
  co.displayName = "DisclosureContext";
8368
8368
  function uo(e) {
8369
- let t = ee(co);
8369
+ let t = te(co);
8370
8370
  if (t === null) {
8371
8371
  let n = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
8372
8372
  throw Error.captureStackTrace && Error.captureStackTrace(n, uo), n;
@@ -8375,27 +8375,27 @@ function uo(e) {
8375
8375
  }
8376
8376
  let fo = ie(null);
8377
8377
  fo.displayName = "DisclosureAPIContext";
8378
- function Ca(e) {
8379
- let t = ee(fo);
8378
+ function Sa(e) {
8379
+ let t = te(fo);
8380
8380
  if (t === null) {
8381
8381
  let n = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
8382
- throw Error.captureStackTrace && Error.captureStackTrace(n, Ca), n;
8382
+ throw Error.captureStackTrace && Error.captureStackTrace(n, Sa), n;
8383
8383
  }
8384
8384
  return t;
8385
8385
  }
8386
8386
  let po = ie(null);
8387
8387
  po.displayName = "DisclosurePanelContext";
8388
8388
  function Gm() {
8389
- return ee(po);
8389
+ return te(po);
8390
8390
  }
8391
8391
  function qm(e, t) {
8392
8392
  return ve(t.type, Um, e, t);
8393
8393
  }
8394
8394
  let Km = _e;
8395
8395
  function Ym(e, t) {
8396
- let { defaultOpen: n = !1, ...r } = e, o = U(null), i = be(t, Fl((g) => {
8396
+ let { defaultOpen: n = !1, ...r } = e, o = U(null), i = be(t, Ml((g) => {
8397
8397
  o.current = g;
8398
- }, e.as === void 0 || yt(e.as))), l = qa(qm, { disclosureState: n ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: a, buttonId: s }, c] = l, u = q((g) => {
8398
+ }, e.as === void 0 || yt(e.as))), l = Ga(qm, { disclosureState: n ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: a, buttonId: s }, c] = l, u = q((g) => {
8399
8399
  c({ type: 1 });
8400
8400
  let v = Xt(o.current);
8401
8401
  if (!v || !s) return;
@@ -8435,12 +8435,12 @@ function Zm(e, t) {
8435
8435
  }), g = q((M) => {
8436
8436
  var S;
8437
8437
  Cr(M.currentTarget) || o || (u ? (s({ type: 0 }), (S = a.buttonElement) == null || S.focus()) : s({ type: 0 }));
8438
- }), { isFocusVisible: v, focusProps: b } = Xr({ autoFocus: i }), { isHovered: y, hoverProps: w } = Yr({ isDisabled: o }), { pressed: $, pressProps: E } = Zr({ disabled: o }), k = Te({ open: a.disclosureState === 0, hover: y, active: $, disabled: o, focus: v, autofocus: i }), P = Xl(e, a.buttonElement), C = Vt(u ? { ref: m, type: P, disabled: o || void 0, autoFocus: i, onKeyDown: d, onClick: g } : { ref: m, id: r, type: P, "aria-expanded": a.disclosureState === 0, "aria-controls": a.panelElement ? a.panelId : void 0, disabled: o || void 0, autoFocus: i, onKeyDown: d, onKeyUp: h, onClick: g }, b, w, E);
8438
+ }), { isFocusVisible: v, focusProps: b } = Xr({ autoFocus: i }), { isHovered: y, hoverProps: w } = Yr({ isDisabled: o }), { pressed: $, pressProps: E } = Zr({ disabled: o }), k = Te({ open: a.disclosureState === 0, hover: y, active: $, disabled: o, focus: v, autofocus: i }), P = Yl(e, a.buttonElement), C = Vt(u ? { ref: m, type: P, disabled: o || void 0, autoFocus: i, onKeyDown: d, onClick: g } : { ref: m, id: r, type: P, "aria-expanded": a.disclosureState === 0, "aria-controls": a.panelElement ? a.panelId : void 0, disabled: o || void 0, autoFocus: i, onKeyDown: d, onKeyUp: h, onClick: g }, b, w, E);
8439
8439
  return fe()({ ourProps: C, theirProps: l, slot: k, defaultTag: Xm, name: "Disclosure.Button" });
8440
8440
  }
8441
8441
  let Jm = "div", Qm = $t.RenderStrategy | $t.Static;
8442
8442
  function eh(e, t) {
8443
- let n = qe(), { id: r = `headlessui-disclosure-panel-${n}`, transition: o = !1, ...i } = e, [l, a] = uo("Disclosure.Panel"), { close: s } = Ca("Disclosure.Panel"), [c, u] = te(null), f = be(t, q((y) => {
8443
+ let n = qe(), { id: r = `headlessui-disclosure-panel-${n}`, transition: o = !1, ...i } = e, [l, a] = uo("Disclosure.Panel"), { close: s } = Sa("Disclosure.Panel"), [c, u] = ee(null), f = be(t, q((y) => {
8444
8444
  Vm(() => a({ type: 5, element: y }));
8445
8445
  }), u);
8446
8446
  se(() => (a({ type: 3, panelId: r }), () => {
@@ -8449,7 +8449,7 @@ function eh(e, t) {
8449
8449
  let m = jn(), [d, h] = ro(o, c, m !== null ? (m & ge.Open) === ge.Open : l.disclosureState === 0), g = Te({ open: l.disclosureState === 0, close: s }), v = { ref: f, id: r, ...no(h) }, b = fe();
8450
8450
  return _.createElement(bm, null, _.createElement(po.Provider, { value: l.panelId }, b({ ourProps: v, theirProps: i, slot: g, defaultTag: Jm, features: Qm, visible: d, name: "Disclosure.Panel" })));
8451
8451
  }
8452
- let th = de(Ym), ka = de(Zm), Pa = de(eh), nh = Object.assign(th, { Button: ka, Panel: Pa }), pi = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
8452
+ let th = de(Ym), Ca = de(Zm), ka = de(eh), nh = Object.assign(th, { Button: Ca, Panel: ka }), pi = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
8453
8453
  function mi(e) {
8454
8454
  var t, n;
8455
8455
  let r = (t = e.innerText) != null ? t : "", o = e.cloneNode(!0);
@@ -8487,14 +8487,14 @@ function oh(e) {
8487
8487
  return t.current = o, n.current = i, i;
8488
8488
  });
8489
8489
  }
8490
- var ih = Object.defineProperty, lh = (e, t, n) => t in e ? ih(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hi = (e, t, n) => (lh(e, typeof t != "symbol" ? t + "" : t, n), n), me = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(me || {}), nt = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(nt || {}), gn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(gn || {}), Ta = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.SelectOption = 5] = "SelectOption", e[e.RegisterOptions = 6] = "RegisterOptions", e[e.UnregisterOptions = 7] = "UnregisterOptions", e[e.SetButtonElement = 8] = "SetButtonElement", e[e.SetOptionsElement = 9] = "SetOptionsElement", e[e.SortOptions = 10] = "SortOptions", e[e.MarkButtonAsMoved = 11] = "MarkButtonAsMoved", e))(Ta || {});
8490
+ var ih = Object.defineProperty, lh = (e, t, n) => t in e ? ih(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hi = (e, t, n) => (lh(e, typeof t != "symbol" ? t + "" : t, n), n), me = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(me || {}), nt = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(nt || {}), gn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(gn || {}), Pa = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.SelectOption = 5] = "SelectOption", e[e.RegisterOptions = 6] = "RegisterOptions", e[e.UnregisterOptions = 7] = "UnregisterOptions", e[e.SetButtonElement = 8] = "SetButtonElement", e[e.SetOptionsElement = 9] = "SetOptionsElement", e[e.SortOptions = 10] = "SortOptions", e[e.MarkButtonAsMoved = 11] = "MarkButtonAsMoved", e))(Pa || {});
8491
8491
  function gi(e, t = (n) => n) {
8492
- let n = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, r = Kl(t(e.options.slice()), (i) => i.dataRef.current.domRef.current), o = n ? r.indexOf(n) : null;
8492
+ let n = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, r = ql(t(e.options.slice()), (i) => i.dataRef.current.domRef.current), o = n ? r.indexOf(n) : null;
8493
8493
  return o === -1 && (o = null), { options: r, activeOptionIndex: o };
8494
8494
  }
8495
8495
  let ah = { 1(e) {
8496
8496
  if (e.dataRef.current.disabled || e.listboxState === 1) return e;
8497
- let t = e.buttonElement ? hn.Tracked(wa(e.buttonElement)) : e.buttonPositionState;
8497
+ let t = e.buttonElement ? hn.Tracked(ba(e.buttonElement)) : e.buttonPositionState;
8498
8498
  return { ...e, activeOptionIndex: null, pendingFocus: { focus: oe.Nothing }, listboxState: 1, __demoMode: !1, buttonPositionState: t };
8499
8499
  }, 0(e, t) {
8500
8500
  if (e.dataRef.current.disabled || e.listboxState === 0) return e;
@@ -8559,7 +8559,7 @@ let ah = { 1(e) {
8559
8559
  }, 8: (e, t) => e.buttonElement === t.element ? e : { ...e, buttonElement: t.element }, 9: (e, t) => e.optionsElement === t.element ? e : { ...e, optionsElement: t.element }, 10: (e) => e.pendingShouldSort ? { ...e, ...gi(e), pendingShouldSort: !1 } : e, 11(e) {
8560
8560
  return e.buttonPositionState.kind !== "Tracked" ? e : { ...e, buttonPositionState: hn.Moved };
8561
8561
  } };
8562
- class mo extends jl {
8562
+ class mo extends Hl {
8563
8563
  constructor(t) {
8564
8564
  super(t), hi(this, "actions", { onChange: (n) => {
8565
8565
  let { onChange: r, compare: o, mode: i, value: l } = this.state.dataRef.current;
@@ -8623,7 +8623,7 @@ class mo extends jl {
8623
8623
  });
8624
8624
  {
8625
8625
  let n = this.state.id, r = eo.get(null);
8626
- this.disposables.add(r.on(Wl.Push, (o) => {
8626
+ this.disposables.add(r.on(Vl.Push, (o) => {
8627
8627
  !r.selectors.isTop(o, n) && this.state.listboxState === 0 && this.actions.closeListbox();
8628
8628
  })), this.on(0, () => r.actions.push(n)), this.on(1, () => r.actions.pop(n));
8629
8629
  }
@@ -8645,23 +8645,23 @@ class mo extends jl {
8645
8645
  return ve(n.type, ah, t, n);
8646
8646
  }
8647
8647
  }
8648
- const Oa = ie(null);
8648
+ const Ta = ie(null);
8649
8649
  function ho(e) {
8650
- let t = ee(Oa);
8650
+ let t = te(Ta);
8651
8651
  if (t === null) {
8652
8652
  let n = new Error(`<${e} /> is missing a parent <Listbox /> component.`);
8653
- throw Error.captureStackTrace && Error.captureStackTrace(n, La), n;
8653
+ throw Error.captureStackTrace && Error.captureStackTrace(n, Oa), n;
8654
8654
  }
8655
8655
  return t;
8656
8656
  }
8657
- function La({ id: e, __demoMode: t = !1 }) {
8657
+ function Oa({ id: e, __demoMode: t = !1 }) {
8658
8658
  let n = ue(() => mo.new({ id: e, __demoMode: t }), []);
8659
- return ga(() => n.dispose()), n;
8659
+ return ha(() => n.dispose()), n;
8660
8660
  }
8661
8661
  let Un = ie(null);
8662
8662
  Un.displayName = "ListboxDataContext";
8663
8663
  function Qt(e) {
8664
- let t = ee(Un);
8664
+ let t = te(Un);
8665
8665
  if (t === null) {
8666
8666
  let n = new Error(`<${e} /> is missing a parent <Listbox /> component.`);
8667
8667
  throw Error.captureStackTrace && Error.captureStackTrace(n, Qt), n;
@@ -8672,22 +8672,22 @@ let sh = _e;
8672
8672
  function ch(e, t) {
8673
8673
  let n = qe(), r = An(), { value: o, defaultValue: i, form: l, name: a, onChange: s, by: c, invalid: u = !1, disabled: f = r || !1, horizontal: m = !1, multiple: d = !1, __demoMode: h = !1, ...g } = e;
8674
8674
  const v = m ? "horizontal" : "vertical";
8675
- let b = be(t), y = yd(i), [w = d ? [] : void 0, $] = wd(o, s, y), E = La({ id: n, __demoMode: h }), k = U({ static: !1, hold: !1 }), P = U(/* @__PURE__ */ new Map()), C = qd(c), M = J((H) => ve(S.mode, { [nt.Multi]: () => w.some((D) => C(D, H)), [nt.Single]: () => C(w, H) }), [w]), S = Te({ value: w, disabled: f, invalid: u, mode: d ? nt.Multi : nt.Single, orientation: v, onChange: $, compare: C, isSelected: M, optionsPropsRef: k, listRef: P });
8675
+ let b = be(t), y = yd(i), [w = d ? [] : void 0, $] = wd(o, s, y), E = Oa({ id: n, __demoMode: h }), k = U({ static: !1, hold: !1 }), P = U(/* @__PURE__ */ new Map()), C = qd(c), M = J((H) => ve(S.mode, { [nt.Multi]: () => w.some((D) => C(D, H)), [nt.Single]: () => C(w, H) }), [w]), S = Te({ value: w, disabled: f, invalid: u, mode: d ? nt.Multi : nt.Single, orientation: v, onChange: $, compare: C, isSelected: M, optionsPropsRef: k, listRef: P });
8676
8676
  ae(() => {
8677
8677
  E.state.dataRef.current = S;
8678
8678
  }, [S]);
8679
8679
  let N = ye(E, (H) => H.listboxState), W = eo.get(null), z = ye(W, J((H) => W.selectors.isTop(H, n), [W, n])), [T, A] = ye(E, (H) => [H.buttonElement, H.optionsElement]);
8680
8680
  Ef(z, [T, A], (H, D) => {
8681
- E.send({ type: Ta.CloseListbox }), ql(D, to.Loose) || (H.preventDefault(), T?.focus());
8681
+ E.send({ type: Pa.CloseListbox }), Gl(D, to.Loose) || (H.preventDefault(), T?.focus());
8682
8682
  });
8683
8683
  let B = Te({ open: N === me.Open, disabled: f, invalid: u, value: w }), [O, x] = Bd({ inherit: !0 }), L = { ref: b }, V = J(() => {
8684
8684
  if (y !== void 0) return $?.(y);
8685
8685
  }, [$, y]), Q = fe();
8686
- return _.createElement(x, { value: O, props: { htmlFor: T?.id }, slot: { open: N === me.Open, disabled: f } }, _.createElement(mm, null, _.createElement(Oa.Provider, { value: E }, _.createElement(Un.Provider, { value: S }, _.createElement(so, { value: ve(N, { [me.Open]: ge.Open, [me.Closed]: ge.Closed }) }, a != null && w != null && _.createElement(kd, { disabled: f, data: { [a]: w }, form: l, onReset: V }), Q({ ourProps: L, theirProps: g, slot: B, defaultTag: sh, name: "Listbox" }))))));
8686
+ return _.createElement(x, { value: O, props: { htmlFor: T?.id }, slot: { open: N === me.Open, disabled: f } }, _.createElement(mm, null, _.createElement(Ta.Provider, { value: E }, _.createElement(Un.Provider, { value: S }, _.createElement(so, { value: ve(N, { [me.Open]: ge.Open, [me.Closed]: ge.Closed }) }, a != null && w != null && _.createElement(kd, { disabled: f, data: { [a]: w }, form: l, onReset: V }), Q({ ourProps: L, theirProps: g, slot: B, defaultTag: sh, name: "Listbox" }))))));
8687
8687
  }
8688
8688
  let uh = "button";
8689
8689
  function dh(e, t) {
8690
- let n = qe(), r = Tl(), o = Qt("Listbox.Button"), i = ho("Listbox.Button"), { id: l = r || `headlessui-listbox-button-${n}`, disabled: a = o.disabled || !1, autoFocus: s = !1, ...c } = e, u = be(t, um(), i.actions.setButtonElement), f = dm(), [m, d, h] = ye(i, (A) => [A.listboxState, A.buttonElement, A.optionsElement]), g = m === me.Open;
8690
+ let n = qe(), r = Pl(), o = Qt("Listbox.Button"), i = ho("Listbox.Button"), { id: l = r || `headlessui-listbox-button-${n}`, disabled: a = o.disabled || !1, autoFocus: s = !1, ...c } = e, u = be(t, um(), i.actions.setButtonElement), f = dm(), [m, d, h] = ye(i, (A) => [A.listboxState, A.buttonElement, A.optionsElement]), g = m === me.Open;
8691
8691
  Sf(g, { trigger: d, action: J((A) => {
8692
8692
  if (d != null && d.contains(A.target)) return an.Ignore;
8693
8693
  let B = A.target.closest('[role="option"]:not([data-disabled])');
@@ -8711,12 +8711,12 @@ function dh(e, t) {
8711
8711
  }), y = Yd((A) => {
8712
8712
  var B;
8713
8713
  i.state.listboxState === me.Open ? (wn(() => i.actions.closeListbox()), (B = i.state.buttonElement) == null || B.focus({ preventScroll: !0 })) : (A.preventDefault(), i.actions.openListbox({ focus: oe.Nothing }));
8714
- }), w = q((A) => A.preventDefault()), $ = Dl([l]), E = Id(), { isFocusVisible: k, focusProps: P } = Xr({ autoFocus: s }), { isHovered: C, hoverProps: M } = Yr({ isDisabled: a }), { pressed: S, pressProps: N } = Zr({ disabled: a }), W = Te({ open: m === me.Open, active: S || m === me.Open, disabled: a, invalid: o.invalid, value: o.value, hover: C, focus: k, autofocus: s }), z = ye(i, (A) => A.listboxState === me.Open), T = Vt(f(), { ref: u, id: l, type: Xl(e, d), "aria-haspopup": "listbox", "aria-controls": h?.id, "aria-expanded": z, "aria-labelledby": $, "aria-describedby": E, disabled: a || void 0, autoFocus: s, onKeyDown: v, onKeyUp: b, onKeyPress: w }, y, P, M, N);
8714
+ }), w = q((A) => A.preventDefault()), $ = Nl([l]), E = Id(), { isFocusVisible: k, focusProps: P } = Xr({ autoFocus: s }), { isHovered: C, hoverProps: M } = Yr({ isDisabled: a }), { pressed: S, pressProps: N } = Zr({ disabled: a }), W = Te({ open: m === me.Open, active: S || m === me.Open, disabled: a, invalid: o.invalid, value: o.value, hover: C, focus: k, autofocus: s }), z = ye(i, (A) => A.listboxState === me.Open), T = Vt(f(), { ref: u, id: l, type: Yl(e, d), "aria-haspopup": "listbox", "aria-controls": h?.id, "aria-expanded": z, "aria-labelledby": $, "aria-describedby": E, disabled: a || void 0, autoFocus: s, onKeyDown: v, onKeyUp: b, onKeyPress: w }, y, P, M, N);
8715
8715
  return fe()({ ourProps: T, theirProps: c, slot: W, defaultTag: uh, name: "Listbox.Button" });
8716
8716
  }
8717
- let Aa = ie(!1), fh = "div", ph = $t.RenderStrategy | $t.Static;
8717
+ let La = ie(!1), fh = "div", ph = $t.RenderStrategy | $t.Static;
8718
8718
  function mh(e, t) {
8719
- let n = qe(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: i = !1, modal: l = !0, transition: a = !1, ...s } = e, c = cm(o), [u, f] = te(null);
8719
+ let n = qe(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: i = !1, modal: l = !0, transition: a = !1, ...s } = e, c = cm(o), [u, f] = ee(null);
8720
8720
  c && (i = !0);
8721
8721
  let m = Qt("Listbox.Options"), d = ho("Listbox.Options"), [h, g, v, b] = ye(d, (j) => [j.listboxState, j.buttonElement, j.optionsElement, j.__demoMode]), y = Or(g), w = Or(v), $ = jn(), [E, k] = ro(a, u, $ !== null ? ($ & ge.Open) === ge.Open : h === me.Open);
8722
8722
  uf(E, g, d.actions.closeListbox);
@@ -8724,7 +8724,7 @@ function mh(e, t) {
8724
8724
  Af(P, w);
8725
8725
  let C = b ? !1 : l && h === me.Open;
8726
8726
  cf(C, { allowed: J(() => [g, v], [g, v]) });
8727
- let M = ye(d, d.selectors.didButtonMove) ? !1 : E, S = ye(d, d.selectors.hasFrozenValue) && !e.static, N = ha(S, m.value), W = J((j) => m.compare(N, j), [m.compare, N]), z = ye(d, (j) => {
8727
+ let M = ye(d, d.selectors.didButtonMove) ? !1 : E, S = ye(d, d.selectors.hasFrozenValue) && !e.static, N = ma(S, m.value), W = J((j) => m.compare(N, j), [m.compare, N]), z = ye(d, (j) => {
8728
8728
  var K;
8729
8729
  if (c == null || !((K = c?.to) != null && K.includes("selection"))) return null;
8730
8730
  let $e = j.options.findIndex((we) => W(we.dataRef.current.value));
@@ -8775,7 +8775,7 @@ function mh(e, t) {
8775
8775
  }
8776
8776
  let hh = "div";
8777
8777
  function gh(e, t) {
8778
- let n = qe(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: i, ...l } = e, a = ee(Aa) === !0, s = Qt("Listbox.Option"), c = ho("Listbox.Option"), u = ye(c, (S) => c.selectors.isActive(S, r)), f = s.isSelected(i), m = U(null), d = oh(m), h = pt({ disabled: o, value: i, domRef: m, get textValue() {
8778
+ let n = qe(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: i, ...l } = e, a = te(La) === !0, s = Qt("Listbox.Option"), c = ho("Listbox.Option"), u = ye(c, (S) => c.selectors.isActive(S, r)), f = s.isSelected(i), m = U(null), d = oh(m), h = pt({ disabled: o, value: i, domRef: m, get textValue() {
8779
8779
  return d();
8780
8780
  } }), g = be(t, m, (S) => {
8781
8781
  S ? s.listRef.current.set(r, S) : s.listRef.current.delete(r);
@@ -8804,9 +8804,9 @@ function gh(e, t) {
8804
8804
  let vh = _e;
8805
8805
  function bh(e, t) {
8806
8806
  let { options: n, placeholder: r, ...o } = e, i = { ref: be(t) }, l = Qt("ListboxSelectedOption"), a = Te({}), s = l.value === void 0 || l.value === null || l.mode === nt.Multi && Array.isArray(l.value) && l.value.length === 0, c = fe();
8807
- return _.createElement(Aa.Provider, { value: !0 }, c({ ourProps: i, theirProps: { ...o, children: _.createElement(_.Fragment, null, r && s ? r : n) }, slot: a, defaultTag: vh, name: "ListboxSelectedOption" }));
8807
+ return _.createElement(La.Provider, { value: !0 }, c({ ourProps: i, theirProps: { ...o, children: _.createElement(_.Fragment, null, r && s ? r : n) }, slot: a, defaultTag: vh, name: "ListboxSelectedOption" }));
8808
8808
  }
8809
- let wh = de(ch), Ma = de(dh), yh = Wd, Fa = de(mh), Ia = de(gh), xh = de(bh), Eh = Object.assign(wh, { Button: Ma, Label: yh, Options: Fa, Option: Ia, SelectedOption: xh });
8809
+ let wh = de(ch), Aa = de(dh), yh = Wd, Ma = de(mh), Fa = de(gh), xh = de(bh), Eh = Object.assign(wh, { Button: Aa, Label: yh, Options: Ma, Option: Fa, SelectedOption: xh });
8810
8810
  function $h({
8811
8811
  children: e,
8812
8812
  className: t,
@@ -8856,11 +8856,11 @@ function Rh(e, t) {
8856
8856
  });
8857
8857
  }
8858
8858
  }
8859
- function Na({ children: e }) {
8859
+ function Ia({ children: e }) {
8860
8860
  return /* @__PURE__ */ R(Mu, { FallbackComponent: Sh, children: e });
8861
8861
  }
8862
8862
  function Sh({ error: e, resetErrorBoundary: t }) {
8863
- return /* @__PURE__ */ R(ul, { intent: "danger", children: /* @__PURE__ */ Z(xe, { align: "start", direction: "column", gap: 2, children: [
8863
+ return /* @__PURE__ */ R(cl, { intent: "danger", children: /* @__PURE__ */ Z(xe, { align: "start", direction: "column", gap: 2, children: [
8864
8864
  /* @__PURE__ */ R("div", { className: "font-bold", children: "Something went wrong!" }),
8865
8865
  /* @__PURE__ */ R("pre", { className: "text-sm font-monospace text-red-300", children: e.message }),
8866
8866
  /* @__PURE__ */ R($h, { intent: "danger", onClick: t, children: "Retry" })
@@ -8891,7 +8891,7 @@ function Ir({
8891
8891
  to: n,
8892
8892
  ...r
8893
8893
  }) {
8894
- const o = !!Hs(n), [i, l] = Ka(), a = Bi();
8894
+ const o = !!Bs(n), [i, l] = qa(), a = Bi();
8895
8895
  return /* @__PURE__ */ R(
8896
8896
  "span",
8897
8897
  {
@@ -9068,7 +9068,7 @@ function Yh() {
9068
9068
  }
9069
9069
  };
9070
9070
  }
9071
- const Xh = /* @__PURE__ */ p.createContext(null), Zh = /* @__PURE__ */ p.createContext(null), Da = () => {
9071
+ const Xh = /* @__PURE__ */ p.createContext(null), Zh = /* @__PURE__ */ p.createContext(null), Na = () => {
9072
9072
  var e;
9073
9073
  return ((e = p.useContext(Xh)) == null ? void 0 : e.id) || null;
9074
9074
  }, go = () => p.useContext(Zh);
@@ -9108,7 +9108,7 @@ function Jh(e, t) {
9108
9108
  mouseOnly: u = !1,
9109
9109
  restMs: f = 0,
9110
9110
  move: m = !0
9111
- } = t, d = go(), h = Da(), g = un(c), v = un(s), b = un(n), y = un(f), w = p.useRef(), $ = p.useRef(-1), E = p.useRef(), k = p.useRef(-1), P = p.useRef(!0), C = p.useRef(!1), M = p.useRef(() => {
9111
+ } = t, d = go(), h = Na(), g = un(c), v = un(s), b = un(n), y = un(f), w = p.useRef(), $ = p.useRef(-1), E = p.useRef(), k = p.useRef(-1), P = p.useRef(!0), C = p.useRef(!1), M = p.useRef(() => {
9112
9112
  }), S = p.useRef(!1), N = Fe(() => {
9113
9113
  var O;
9114
9114
  const x = (O = o.current.openEvent) == null ? void 0 : O.type;
@@ -9332,8 +9332,8 @@ function tg(e, t) {
9332
9332
  Array.from(V).every((X) => !Ut(Q, X)))
9333
9333
  return;
9334
9334
  if (Re(x) && z) {
9335
- const X = ze(x), j = Oe(x), K = /auto|scroll/, $e = X || K.test(j.overflowX), we = X || K.test(j.overflowY), ht = $e && x.clientWidth > 0 && x.scrollWidth > x.clientWidth, At = we && x.clientHeight > 0 && x.scrollHeight > x.clientHeight, gt = j.direction === "rtl", Va = At && (gt ? T.offsetX <= x.offsetWidth - x.clientWidth : T.offsetX > x.clientWidth), Wa = ht && T.offsetY > x.clientHeight;
9336
- if (Va || Wa)
9335
+ const X = ze(x), j = Oe(x), K = /auto|scroll/, $e = X || K.test(j.overflowX), we = X || K.test(j.overflowY), ht = $e && x.clientWidth > 0 && x.scrollWidth > x.clientWidth, At = we && x.clientHeight > 0 && x.scrollHeight > x.clientHeight, gt = j.direction === "rtl", ja = At && (gt ? T.offsetX <= x.offsetWidth - x.clientWidth : T.offsetX > x.clientWidth), Va = ht && T.offsetY > x.clientHeight;
9336
+ if (ja || Va)
9337
9337
  return;
9338
9338
  }
9339
9339
  const H = (A = i.current.floatingContext) == null ? void 0 : A.nodeId, D = g && vn(g.nodesRef.current, H).some((X) => {
@@ -9436,7 +9436,7 @@ function ng(e) {
9436
9436
  open: t = !1,
9437
9437
  onOpenChange: n,
9438
9438
  elements: r
9439
- } = e, o = qh(), i = p.useRef({}), [l] = p.useState(() => Yh()), a = Da() != null;
9439
+ } = e, o = qh(), i = p.useRef({}), [l] = p.useState(() => Yh()), a = Na() != null;
9440
9440
  if (process.env.NODE_ENV !== "production") {
9441
9441
  const d = r.reference;
9442
9442
  d && !Y(d) && Kh("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
@@ -9480,7 +9480,7 @@ function rg(e) {
9480
9480
  Rt(() => {
9481
9481
  u && (f.current = u);
9482
9482
  }, [u]);
9483
- const d = ua({
9483
+ const d = ca({
9484
9484
  ...e,
9485
9485
  elements: {
9486
9486
  ...o,
@@ -9665,10 +9665,10 @@ function dn({
9665
9665
  showOnFocus: r = !1,
9666
9666
  showOnHover: o = !0
9667
9667
  }) {
9668
- const [i, l] = te(!1), { refs: a, floatingStyles: s, context: c } = rg({
9668
+ const [i, l] = ee(!1), { refs: a, floatingStyles: s, context: c } = rg({
9669
9669
  onOpenChange: l,
9670
9670
  open: i,
9671
- middleware: [lo(4), da(), Wp()]
9671
+ middleware: [lo(4), ua(), Wp()]
9672
9672
  }), u = Jh(c, { enabled: o }), f = og(c, { enabled: r }), m = tg(c), { getReferenceProps: d, getFloatingProps: h } = ig([
9673
9673
  m,
9674
9674
  f,
@@ -9711,7 +9711,7 @@ function dn({
9711
9711
  );
9712
9712
  }
9713
9713
  function lg() {
9714
- const { hide: e } = Xi(), { pathname: t } = Ye();
9714
+ const { hide: e } = Yi(), { pathname: t } = Ye();
9715
9715
  return Gt(() => {
9716
9716
  e();
9717
9717
  const n = document.body.querySelector("[data-main-scrollable]");
@@ -9726,13 +9726,13 @@ function lg() {
9726
9726
  }, [e, t]), null;
9727
9727
  }
9728
9728
  const ag = {
9729
- "*": Mt(() => import("./PageNotFound-DaSDuLFe.js")),
9730
- "/": Mt(() => import("./GettingStartedRoute-Bo2cbVUj.js")),
9731
- "/common-questions": Mt(() => import("./CommonQuestionsRoute-Bc_XQOxV.js")),
9732
- "/support": Mt(() => import("./SupportRoute-z6fTrzW6.js")),
9733
- "/versions": Mt(() => import("./VersionsRoute-DpavxXiY.js"))
9729
+ "*": Mt(() => import("./PageNotFound-53YK_X9b.js")),
9730
+ "/": Mt(() => import("./GettingStartedRoute-Dxm39bWR.js")),
9731
+ "/common-questions": Mt(() => import("./CommonQuestionsRoute-CgAJzTXe.js")),
9732
+ "/support": Mt(() => import("./SupportRoute-DqIjoOuN.js")),
9733
+ "/versions": Mt(() => import("./VersionsRoute-CU6kCScw.js"))
9734
9734
  };
9735
- function Sg({
9735
+ function $g({
9736
9736
  commonQuestions: e,
9737
9737
  navLinks: t,
9738
9738
  overview: n,
@@ -9742,7 +9742,7 @@ function Sg({
9742
9742
  showOpenCollectLink: l = !1,
9743
9743
  versions: a
9744
9744
  }) {
9745
- const { toggle: s, visible: c } = Xi(), u = ue(
9745
+ const { toggle: s, visible: c } = Yi(), u = ue(
9746
9746
  () => ({
9747
9747
  commonQuestions: e,
9748
9748
  overview: n,
@@ -9760,7 +9760,7 @@ function Sg({
9760
9760
  a
9761
9761
  ]
9762
9762
  );
9763
- return /* @__PURE__ */ R(Yi.Provider, { value: u, children: /* @__PURE__ */ Z(Sc, { children: [
9763
+ return /* @__PURE__ */ R(_c.Provider, { value: u, children: /* @__PURE__ */ Z(Rc, { children: [
9764
9764
  /* @__PURE__ */ R(lg, {}),
9765
9765
  /* @__PURE__ */ Z("div", { className: "h-full w-full max-w-350 mx-auto flex flex-col", children: [
9766
9766
  /* @__PURE__ */ Z(
@@ -9771,7 +9771,7 @@ function Sg({
9771
9771
  direction: "row",
9772
9772
  gap: 4,
9773
9773
  children: [
9774
- /* @__PURE__ */ R(Dc, { className: "shrink-0 w-8 h-8" }),
9774
+ /* @__PURE__ */ R(Nc, { className: "shrink-0 w-8 h-8" }),
9775
9775
  /* @__PURE__ */ Z(
9776
9776
  xe,
9777
9777
  {
@@ -9800,7 +9800,7 @@ function Sg({
9800
9800
  "aria-label": "Documentation for other versions",
9801
9801
  className: "text-xs font-bold text-header-icons! cursor-pointer",
9802
9802
  to: "/versions",
9803
- children: /* @__PURE__ */ R(_c, { className: "w-6 h-6" })
9803
+ children: /* @__PURE__ */ R(Dc, { className: "w-6 h-6" })
9804
9804
  }
9805
9805
  ) }),
9806
9806
  /* @__PURE__ */ R(dn, { content: "NPM package", children: /* @__PURE__ */ R(
@@ -9809,7 +9809,7 @@ function Sg({
9809
9809
  "aria-label": "NPM project page",
9810
9810
  className: "text-header-icons!",
9811
9811
  href: `https://www.npmjs.com/package/${o}`,
9812
- children: /* @__PURE__ */ R(Nc, { className: "w-8 h-8" })
9812
+ children: /* @__PURE__ */ R(Ic, { className: "w-8 h-8" })
9813
9813
  }
9814
9814
  ) }),
9815
9815
  /* @__PURE__ */ R(dn, { content: "Source code", children: /* @__PURE__ */ R(
@@ -9818,7 +9818,7 @@ function Sg({
9818
9818
  "aria-label": "GitHub project page",
9819
9819
  className: "text-header-icons!",
9820
9820
  href: `https://github.com/bvaughn/${o}`,
9821
- children: /* @__PURE__ */ R(Ic, { className: "w-6 h-6" })
9821
+ children: /* @__PURE__ */ R(Fc, { className: "w-6 h-6" })
9822
9822
  }
9823
9823
  ) }),
9824
9824
  /* @__PURE__ */ R(
@@ -9835,7 +9835,7 @@ function Sg({
9835
9835
  "bg-black/50 text-white": c
9836
9836
  }),
9837
9837
  onClick: s,
9838
- children: c ? /* @__PURE__ */ R(us, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" }) : /* @__PURE__ */ R(Qa, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" })
9838
+ children: c ? /* @__PURE__ */ R(cs, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" }) : /* @__PURE__ */ R(Ja, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" })
9839
9839
  }
9840
9840
  )
9841
9841
  }
@@ -9868,13 +9868,13 @@ function Sg({
9868
9868
  {
9869
9869
  className: "h-full p-4 py-4 overflow-auto [mask-image:linear-gradient(to_bottom,transparent,black_1.5rem)]",
9870
9870
  "data-main-scrollable": !0,
9871
- children: /* @__PURE__ */ R(nc, { children: Object.entries({
9871
+ children: /* @__PURE__ */ R(tc, { children: Object.entries({
9872
9872
  ...ag,
9873
9873
  ...i
9874
9874
  }).map(([f, m]) => /* @__PURE__ */ R(
9875
9875
  Vi,
9876
9876
  {
9877
- element: /* @__PURE__ */ R(Na, { children: /* @__PURE__ */ R(m, {}) }, f),
9877
+ element: /* @__PURE__ */ R(Ia, { children: /* @__PURE__ */ R(m, {}) }, f),
9878
9878
  path: f
9879
9879
  },
9880
9880
  f
@@ -9887,12 +9887,12 @@ function Sg({
9887
9887
  ] })
9888
9888
  ] }) });
9889
9889
  }
9890
- function Cg({
9890
+ function Rg({
9891
9891
  children: e,
9892
9892
  className: t,
9893
9893
  ...n
9894
9894
  }) {
9895
- return /* @__PURE__ */ R(Na, { children: /* @__PURE__ */ R(
9895
+ return /* @__PURE__ */ R(Ia, { children: /* @__PURE__ */ R(
9896
9896
  "div",
9897
9897
  {
9898
9898
  className: `border-lg bg-black/30 text-slate-300 rounded-lg p-2 ${t}`,
@@ -9902,7 +9902,7 @@ function Cg({
9902
9902
  ) });
9903
9903
  }
9904
9904
  const sg = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "m424-424-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-424ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" })), cg = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M320-440h320q17 0 28.5-11.5T680-480q0-17-11.5-28.5T640-520H320q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" })), ug = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" }));
9905
- function kg({
9905
+ function Sg({
9906
9906
  checked: e,
9907
9907
  children: t,
9908
9908
  className: n,
@@ -9938,7 +9938,7 @@ function kg({
9938
9938
  }
9939
9939
  );
9940
9940
  }
9941
- function _a({
9941
+ function Da({
9942
9942
  className: e = "",
9943
9943
  html: t
9944
9944
  }) {
@@ -9958,7 +9958,7 @@ function Gn({
9958
9958
  className: e,
9959
9959
  sections: t
9960
9960
  }) {
9961
- return /* @__PURE__ */ R(xe, { className: e, direction: "column", gap: 2, children: t.map(({ content: n, intent: r }, o) => r ? /* @__PURE__ */ R(ul, { html: !0, inline: !0, intent: r, minimal: !0, children: n }, o) : /* @__PURE__ */ R(
9961
+ return /* @__PURE__ */ R(xe, { className: e, direction: "column", gap: 2, children: t.map(({ content: n, intent: r }, o) => r ? /* @__PURE__ */ R(cl, { html: !0, inline: !0, intent: r, minimal: !0, children: n }, o) : /* @__PURE__ */ R(
9962
9962
  "div",
9963
9963
  {
9964
9964
  dangerouslySetInnerHTML: {
@@ -9968,20 +9968,11 @@ function Gn({
9968
9968
  o
9969
9969
  )) });
9970
9970
  }
9971
- const Ba = { url: "https://github.com/bvaughn/react-lib-tools.git" };
9972
- function dg(e, t = "Assertion error") {
9973
- if (!e)
9974
- throw Error(t);
9975
- }
9976
- function fg() {
9977
- const e = ee(Yi);
9978
- return dg(e, "App must be rendered within a LibraryContextProvider"), e;
9979
- }
9980
- function Ha({
9971
+ const _a = { url: "https://github.com/bvaughn/react-lib-tools.git" };
9972
+ function Ba({
9981
9973
  section: e,
9982
9974
  title: t
9983
9975
  }) {
9984
- const { packageName: n } = fg();
9985
9976
  return /* @__PURE__ */ Z(Et, { children: [
9986
9977
  /* @__PURE__ */ Z("div", { className: "text-xl", children: [
9987
9978
  e && /* @__PURE__ */ Z(Et, { children: [
@@ -9992,41 +9983,41 @@ function Ha({
9992
9983
  ] }),
9993
9984
  /* @__PURE__ */ R("span", { className: "text-xl", children: t })
9994
9985
  ] }),
9995
- /* @__PURE__ */ R("title", { children: `${n}: ${e ? `${e}: ${t}` : t}` })
9986
+ /* @__PURE__ */ R("title", { children: e ? `${e}: ${t}` : t })
9996
9987
  ] });
9997
9988
  }
9998
- function pg({
9989
+ function dg({
9999
9990
  method: e
10000
9991
  }) {
10001
9992
  return /* @__PURE__ */ Z(Et, { children: [
10002
9993
  /* @__PURE__ */ R("dd", { className: "[&_code]:text-sky-300 text-lg font-bold", children: e.name }),
10003
9994
  /* @__PURE__ */ Z("dt", { className: "mt-2", children: [
10004
9995
  /* @__PURE__ */ R(Gn, { sections: e.description }),
10005
- /* @__PURE__ */ R(_a, { className: "mt-2 p-2 flex flex-col", html: e.html })
9996
+ /* @__PURE__ */ R(Da, { className: "mt-2 p-2 flex flex-col", html: e.html })
10006
9997
  ] })
10007
9998
  ] });
10008
9999
  }
10009
- function Pg({
10000
+ function Cg({
10010
10001
  json: e,
10011
10002
  section: t
10012
10003
  }) {
10013
10004
  return /* @__PURE__ */ Z(xe, { direction: "column", gap: 4, children: [
10014
10005
  /* @__PURE__ */ Z(xe, { align: "center", direction: "row", gap: 2, wrap: !0, children: [
10015
- /* @__PURE__ */ R(Ha, { section: t, title: `${e.name}` }),
10006
+ /* @__PURE__ */ R(Ba, { section: t, title: `${e.name}` }),
10016
10007
  /* @__PURE__ */ R(
10017
10008
  Pn,
10018
10009
  {
10019
10010
  className: "text-sm text-emerald-300 hover:text-white",
10020
- href: `${Ba.url.replace(".git", "")}/blob/main/${e.filePath}`,
10011
+ href: `${_a.url.replace(".git", "")}/blob/main/${e.filePath}`,
10021
10012
  children: /* @__PURE__ */ R(ki, { className: "inline-block size-4 fill-current" })
10022
10013
  }
10023
10014
  )
10024
10015
  ] }),
10025
10016
  /* @__PURE__ */ R(Gn, { sections: e.description }),
10026
- /* @__PURE__ */ R(xe, { direction: "column", children: /* @__PURE__ */ R("dl", { className: "flex flex-col gap-2", children: e.methods.map((n, r) => /* @__PURE__ */ R(pg, { method: n }, r)) }) })
10017
+ /* @__PURE__ */ R(xe, { direction: "column", children: /* @__PURE__ */ R("dl", { className: "flex flex-col gap-2", children: e.methods.map((n, r) => /* @__PURE__ */ R(dg, { method: n }, r)) }) })
10027
10018
  ] });
10028
10019
  }
10029
- function Tg({
10020
+ function kg({
10030
10021
  children: e,
10031
10022
  className: t,
10032
10023
  onChange: n,
@@ -10047,13 +10038,13 @@ function Tg({
10047
10038
  }
10048
10039
  );
10049
10040
  }
10050
- function Og() {
10041
+ function Pg() {
10051
10042
  return /* @__PURE__ */ Z(xe, { align: "center", className: "text-slate-300", direction: "row", gap: 2, children: [
10052
- /* @__PURE__ */ R(Xa, { className: "size-4 animate-spin" }),
10043
+ /* @__PURE__ */ R(Ya, { className: "size-4 animate-spin" }),
10053
10044
  "Loading..."
10054
10045
  ] });
10055
10046
  }
10056
- function ja({
10047
+ function Ha({
10057
10048
  children: e,
10058
10049
  className: t,
10059
10050
  disabled: n
@@ -10073,13 +10064,13 @@ function ja({
10073
10064
  }
10074
10065
  );
10075
10066
  }
10076
- function Lg({
10067
+ function Tg({
10077
10068
  children: e,
10078
10069
  className: t,
10079
10070
  path: n
10080
10071
  }) {
10081
10072
  return /* @__PURE__ */ R(Ir, { to: n, children: ({ isActive: r, isPending: o }) => /* @__PURE__ */ R(
10082
- ja,
10073
+ Ha,
10083
10074
  {
10084
10075
  className: he(
10085
10076
  "px-4 cursor-pointer",
@@ -10093,29 +10084,29 @@ function Lg({
10093
10084
  }
10094
10085
  ) });
10095
10086
  }
10096
- function Ag({
10087
+ function Og({
10097
10088
  children: e,
10098
10089
  label: t
10099
10090
  }) {
10100
10091
  return /* @__PURE__ */ Z(nh, { as: "section", defaultOpen: !0, children: [
10101
- /* @__PURE__ */ R(ka, { className: "w-full group border-none! data-focus:bg-white/10", children: /* @__PURE__ */ Z(ja, { children: [
10092
+ /* @__PURE__ */ R(Ca, { className: "w-full group border-none! data-focus:bg-white/10", children: /* @__PURE__ */ Z(Ha, { children: [
10102
10093
  /* @__PURE__ */ R("div", { className: "uppercase text-sm font-bold text-white/50", children: t }),
10103
10094
  /* @__PURE__ */ R("div", { className: "grow" }),
10104
10095
  /* @__PURE__ */ R(Pi, { className: "size-4 fill-white/60 group-data-hover:fill-white/50 group-data-open:rotate-90" })
10105
10096
  ] }) }),
10106
- /* @__PURE__ */ R(Pa, { className: "pl-4", children: e })
10097
+ /* @__PURE__ */ R(ka, { className: "pl-4", children: e })
10107
10098
  ] });
10108
10099
  }
10109
- function mg(e) {
10100
+ function fg(e) {
10110
10101
  const t = [], n = [];
10111
10102
  return Object.values(e.props).forEach((r) => {
10112
10103
  r.required ? n.push(r) : t.push(r);
10113
10104
  }), t.sort((r, o) => r.name.localeCompare(o.name)), n.sort((r, o) => r.name.localeCompare(o.name)), { optionalProps: t, requiredProps: n };
10114
10105
  }
10115
- function hg({ prop: e }) {
10106
+ function pg({ prop: e }) {
10116
10107
  return /* @__PURE__ */ Z(Et, { children: [
10117
10108
  /* @__PURE__ */ R("dt", { className: "mt-6 pl-8 indent-[-1rem]", children: /* @__PURE__ */ R(
10118
- _a,
10109
+ Da,
10119
10110
  {
10120
10111
  className: "bg-transparent inline-flex flex-col p-0",
10121
10112
  html: e.html
@@ -10130,25 +10121,25 @@ function Ri({
10130
10121
  }) {
10131
10122
  return t.length === 0 ? null : /* @__PURE__ */ Z(xe, { direction: "column", children: [
10132
10123
  /* @__PURE__ */ R("div", { className: "text-lg font-bold", children: e }),
10133
- /* @__PURE__ */ R("dl", { children: t.map((n) => /* @__PURE__ */ R(hg, { prop: n }, n.name)) })
10124
+ /* @__PURE__ */ R("dl", { children: t.map((n) => /* @__PURE__ */ R(pg, { prop: n }, n.name)) })
10134
10125
  ] });
10135
10126
  }
10136
- function Mg({
10127
+ function Lg({
10137
10128
  json: e,
10138
10129
  section: t
10139
10130
  }) {
10140
10131
  const { optionalProps: n, requiredProps: r } = ue(
10141
- () => mg(e),
10132
+ () => fg(e),
10142
10133
  [e]
10143
10134
  );
10144
10135
  return /* @__PURE__ */ Z(xe, { direction: "column", gap: 4, children: [
10145
10136
  /* @__PURE__ */ Z(xe, { align: "center", direction: "row", gap: 2, wrap: !0, children: [
10146
- /* @__PURE__ */ R(Ha, { section: t, title: `${e.name} component` }),
10137
+ /* @__PURE__ */ R(Ba, { section: t, title: `${e.name} component` }),
10147
10138
  /* @__PURE__ */ R(
10148
10139
  Pn,
10149
10140
  {
10150
10141
  className: "text-sm text-emerald-300 hover:text-white",
10151
- href: `${Ba.url.replace(".git", "")}/blob/main/${e.filePath}`,
10142
+ href: `${_a.url.replace(".git", "")}/blob/main/${e.filePath}`,
10152
10143
  children: /* @__PURE__ */ R(ki, { className: "inline-block size-4 fill-current" })
10153
10144
  }
10154
10145
  )
@@ -10158,8 +10149,8 @@ function Mg({
10158
10149
  /* @__PURE__ */ R(Ri, { header: "Optional props", props: n })
10159
10150
  ] });
10160
10151
  }
10161
- const gg = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "m424-408-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-408Zm56 328q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" })), vg = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" }));
10162
- function Fg({
10152
+ const mg = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "m424-408-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-408Zm56 328q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" })), hg = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" }));
10153
+ function Ag({
10163
10154
  checked: e,
10164
10155
  children: t,
10165
10156
  className: n,
@@ -10169,7 +10160,7 @@ function Fg({
10169
10160
  ...l
10170
10161
  }) {
10171
10162
  let a, s;
10172
- return e ? (a = gg, s = "fill-blue-600") : (a = vg, s = "fill-slate-600"), /* @__PURE__ */ Z(
10163
+ return e ? (a = mg, s = "fill-blue-600") : (a = hg, s = "fill-slate-600"), /* @__PURE__ */ Z(
10173
10164
  "label",
10174
10165
  {
10175
10166
  className: `cursor-pointer rounded-full flex flex-row items-center outline-none group ${n}`,
@@ -10198,7 +10189,7 @@ function Fg({
10198
10189
  }
10199
10190
  );
10200
10191
  }
10201
- function Ig({
10192
+ function Mg({
10202
10193
  className: e,
10203
10194
  defaultValue: t,
10204
10195
  onChange: n,
@@ -10208,14 +10199,14 @@ function Ig({
10208
10199
  }) {
10209
10200
  return /* @__PURE__ */ R(Eh, { value: i ?? t, onChange: n, children: /* @__PURE__ */ Z("div", { className: `relative ${e}`, children: [
10210
10201
  /* @__PURE__ */ Z(
10211
- Ma,
10202
+ Aa,
10212
10203
  {
10213
10204
  className: "w-full h-9 text-left rounded-md bg-black/30 border border-2 border-transparent py-1 px-2 outline-none focus:border-teal-300",
10214
10205
  "data-focus": !0,
10215
10206
  children: [
10216
10207
  i?.label ? /* @__PURE__ */ R("span", { className: "block truncate", children: i.label }) : /* @__PURE__ */ R("span", { className: "block truncate text-slate-500", children: o }),
10217
10208
  /* @__PURE__ */ R("span", { className: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2", children: /* @__PURE__ */ R(
10218
- os,
10209
+ rs,
10219
10210
  {
10220
10211
  className: "h-4 w-4 text-gray-400",
10221
10212
  "aria-hidden": "true"
@@ -10225,12 +10216,12 @@ function Ig({
10225
10216
  }
10226
10217
  ),
10227
10218
  /* @__PURE__ */ R(jm, { as: _e, leaveFrom: "opacity-100", leaveTo: "opacity-0", children: /* @__PURE__ */ R(
10228
- Fa,
10219
+ Ma,
10229
10220
  {
10230
10221
  className: "absolute z-10 mt-1 max-h-50 w-full overflow-auto rounded-md py-1 bg-black/90",
10231
10222
  "data-focus": !0,
10232
10223
  children: r.map((l, a) => /* @__PURE__ */ R(
10233
- Ia,
10224
+ Fa,
10234
10225
  {
10235
10226
  className: he(
10236
10227
  "relative cursor-pointer select-none h-7 py-1 px-2 text-slate-300 border-none!",
@@ -10247,7 +10238,11 @@ function Ig({
10247
10238
  ) })
10248
10239
  ] }) });
10249
10240
  }
10250
- function Ng(e, t) {
10241
+ function Fg(e, t = "Assertion error") {
10242
+ if (!e)
10243
+ throw Error(t);
10244
+ }
10245
+ function Ig(e, t) {
10251
10246
  switch (e) {
10252
10247
  case "danger":
10253
10248
  return t ? "bg-red-950 text-red-300 [&_svg]:text-red-500" : "bg-black/10 bg-border border-2 border-red-500 text-white [&_svg]:text-red-500 [&_a]:text-red-400!";
@@ -10262,32 +10257,32 @@ function Ng(e, t) {
10262
10257
  }
10263
10258
  }
10264
10259
  export {
10265
- Sg as A,
10260
+ $g as A,
10266
10261
  xe as B,
10267
- ul as C,
10262
+ cl as C,
10268
10263
  Gn as D,
10269
10264
  Pn as E,
10270
- Ha as H,
10271
- Pg as I,
10272
- Ir as L,
10273
- Lg as N,
10274
- Fg as R,
10275
- _c as S,
10265
+ Ba as H,
10266
+ Cg as I,
10267
+ _c as L,
10268
+ Tg as N,
10269
+ Ag as R,
10270
+ Dc as S,
10276
10271
  dn as T,
10277
- Cg as a,
10278
- $h as b,
10279
- kg as c,
10280
- _a as d,
10281
- Na as e,
10282
- Tg as f,
10283
- Og as g,
10284
- Ag as h,
10285
- Mg as i,
10286
- Ri as j,
10287
- Ig as k,
10288
- dg as l,
10289
- he as m,
10290
- Ng as n,
10291
- fg as u
10272
+ Fg as a,
10273
+ Rg as b,
10274
+ $h as c,
10275
+ Sg as d,
10276
+ Da as e,
10277
+ Ia as f,
10278
+ kg as g,
10279
+ Ir as h,
10280
+ Pg as i,
10281
+ Og as j,
10282
+ Lg as k,
10283
+ Ri as l,
10284
+ Mg as m,
10285
+ he as n,
10286
+ Ig as o
10292
10287
  };
10293
- //# sourceMappingURL=index-BL-nqm0f.js.map
10288
+ //# sourceMappingURL=index-CmGluDif.js.map