@blakesteve/roster 4.1.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/roster.es.js CHANGED
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { o as I, Y as Q, K as J, p as ze, m as No, a as st, n as se, b as ce, $ as xt, c as yt, w as er, V as Ie, d as je, s as mt, u as he, l as wt, e as Ke, r as gt, f as ht, t as Cn, g as Tn, A as Ae, h as Mi, C as ft, i as Li, j as _i, k as Z, q as d, v as T, F as me, x as Vi, y as Po, z as Oo, B as xa, D as Bi, E as Hi, G as Ue, H as zi, I as mn, J as nn, L as Co, M as Wi, N as Ui, O as Gt, P as Yi, Q as Gi, R as Ki, S as qi } from "./Table-DNbzjCZM.js";
3
- import { T as eg, U as tg, W as rg, X as ng, Z as ag, _ as og, a0 as sg, a1 as ig, a2 as lg, a3 as cg, a4 as ug, a5 as dg, a6 as fg, a7 as pg, a8 as mg, a9 as gg } from "./Table-DNbzjCZM.js";
2
+ import { o as I, Y as Q, K as J, p as ze, m as No, n as st, q as se, r as ce, $ as vt, s as xt, w as er, V as Ie, t as je, u as pt, v as he, x as yt, y as Ke, z as mt, A as gt, C as Cn, D as Tn, E as Ae, G as Mi, H as dt, I as Li, J as _i, L as Z, j as f, F as me, M as Vi, N as Po, O as Oo, P as xa, Q as Bi, R as Hi, B as Ue, S as zi, U as mn, W as nn, X as Co, Z as Wi, _ as Ui, a0 as Gt, a1 as Yi, a2 as Gi, a3 as Ki, a4 as qi } from "./Table-BaJ8qfrV.js";
3
+ import { a5 as tg, T as rg, e as ng, a6 as ag, g as og, a7 as sg, c as ig, a as lg, b as cg, a8 as ug, a9 as dg, aa as fg, ab as pg, ac as mg, ad as gg, ae as hg } from "./Table-BaJ8qfrV.js";
4
4
  import * as y from "react";
5
5
  import E, { useState as X, useRef as V, isValidElement as To, useEffect as ne, useContext as oe, createContext as pe, useMemo as fe, useId as de, useCallback as ee, useSyncExternalStore as jo, useLayoutEffect as Ro, cloneElement as Xi, Fragment as xe, useReducer as Qi, createRef as Zi, forwardRef as $o } from "react";
6
+ import { c as T } from "./utils-DtaLkIY8.js";
6
7
  import * as Kt from "react-dom";
7
- import Ji, { flushSync as bt, createPortal as Io } from "react-dom";
8
+ import Ji, { flushSync as ht, createPortal as Io } from "react-dom";
8
9
  function jn(e, t, r) {
9
10
  let [n, a] = X(r), o = e !== void 0, s = V(o), i = V(!1), l = V(!1);
10
- return o && !s.current && !i.current ? (i.current = !0, s.current = o, 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.")) : !o && s.current && !l.current && (l.current = !0, s.current = o, 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.")), [o ? e : n, I((c) => (o || bt(() => a(c)), t?.(c)))];
11
+ return o && !s.current && !i.current ? (i.current = !0, s.current = o, 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.")) : !o && s.current && !l.current && (l.current = !0, s.current = o, 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.")), [o ? e : n, I((c) => (o || ht(() => a(c)), t?.(c)))];
11
12
  }
12
13
  function Rn(e) {
13
14
  let [t] = X(e);
@@ -220,12 +221,12 @@ function hl(e, t) {
220
221
  (Vo(v) && (v.type === "file" || v.type === "radio" || v.type === "checkbox") || v.role === "radio" || v.role === "checkbox" || v.role === "switch") && v.click(), v.focus({ preventScroll: !0 });
221
222
  }
222
223
  }
223
- }), f = ce({ ...a.slot, disabled: s || !1 }), g = { ref: p, ...a.props, id: i, htmlFor: l, onClick: m };
224
- return c && ("onClick" in g && (delete g.htmlFor, delete g.onClick), "onClick" in u && delete u.onClick), J()({ ourProps: g, theirProps: u, slot: f, defaultTag: l ? gl : "div", name: a.name || "Label" });
224
+ }), d = ce({ ...a.slot, disabled: s || !1 }), g = { ref: p, ...a.props, id: i, htmlFor: l, onClick: m };
225
+ return c && ("onClick" in g && (delete g.htmlFor, delete g.onClick), "onClick" in u && delete u.onClick), J()({ ourProps: g, theirProps: u, slot: d, defaultTag: l ? gl : "div", name: a.name || "Label" });
225
226
  }
226
227
  let bl = Q(hl), Dt = Object.assign(bl, {}), vl = "span";
227
228
  function xl(e, t) {
228
- let r = de(), n = It(), a = st(), { id: o = n || `headlessui-checkbox-${r}`, disabled: s = a || !1, autoFocus: i = !1, checked: l, defaultChecked: c, onChange: u, name: p, value: m, form: f, indeterminate: g = !1, tabIndex: h = 0, ...b } = e, v = Rn(c), [w, x] = jn(l, u, v ?? !1), k = At(), S = tr(), C = ze(), [P, M] = X(!1), z = I(() => {
229
+ let r = de(), n = It(), a = st(), { id: o = n || `headlessui-checkbox-${r}`, disabled: s = a || !1, autoFocus: i = !1, checked: l, defaultChecked: c, onChange: u, name: p, value: m, form: d, indeterminate: g = !1, tabIndex: h = 0, ...b } = e, v = Rn(c), [w, x] = jn(l, u, v ?? !1), k = At(), S = tr(), C = ze(), [P, M] = X(!1), z = I(() => {
229
230
  M(!0), x?.(!w), C.nextFrame(() => {
230
231
  M(!1);
231
232
  });
@@ -234,10 +235,10 @@ function xl(e, t) {
234
235
  A.preventDefault(), z();
235
236
  }), $ = I((A) => {
236
237
  A.key === Y.Space ? (A.preventDefault(), z()) : A.key === Y.Enter && $n(A.currentTarget);
237
- }), L = I((A) => A.preventDefault()), { isFocusVisible: _, focusProps: R } = xt({ autoFocus: i }), { isHovered: D, hoverProps: F } = yt({ isDisabled: s }), { pressed: U, pressProps: O } = er({ disabled: s }), j = Ie({ ref: t, id: o, role: "checkbox", "aria-checked": g ? "mixed" : w ? "true" : "false", "aria-labelledby": k, "aria-describedby": S, "aria-disabled": s ? !0 : void 0, indeterminate: g ? "true" : void 0, tabIndex: s ? void 0 : h, onKeyUp: s ? void 0 : $, onKeyPress: s ? void 0 : L, onClick: s ? void 0 : N }, R, F, O), H = ce({ checked: w, disabled: s, hover: D, focus: _, active: U, indeterminate: g, changing: P, autofocus: i }), ae = ee(() => {
238
+ }), L = I((A) => A.preventDefault()), { isFocusVisible: _, focusProps: R } = vt({ autoFocus: i }), { isHovered: D, hoverProps: F } = xt({ isDisabled: s }), { pressed: U, pressProps: O } = er({ disabled: s }), j = Ie({ ref: t, id: o, role: "checkbox", "aria-checked": g ? "mixed" : w ? "true" : "false", "aria-labelledby": k, "aria-describedby": S, "aria-disabled": s ? !0 : void 0, indeterminate: g ? "true" : void 0, tabIndex: s ? void 0 : h, onKeyUp: s ? void 0 : $, onKeyPress: s ? void 0 : L, onClick: s ? void 0 : N }, R, F, O), H = ce({ checked: w, disabled: s, hover: D, focus: _, active: U, indeterminate: g, changing: P, autofocus: i }), ae = ee(() => {
238
239
  if (v !== void 0) return x?.(v);
239
240
  }, [x, v]), te = J();
240
- return E.createElement(E.Fragment, null, p != null && E.createElement(In, { disabled: s, data: { [p]: m || "on" }, overrides: { type: "checkbox", checked: w }, form: f, onReset: ae }), te({ ourProps: j, theirProps: b, slot: H, defaultTag: vl, name: "Checkbox" }));
241
+ return E.createElement(E.Fragment, null, p != null && E.createElement(In, { disabled: s, data: { [p]: m || "on" }, overrides: { type: "checkbox", checked: w }, form: d, onReset: ae }), te({ ourProps: j, theirProps: b, slot: H, defaultTag: vl, name: "Checkbox" }));
241
242
  }
242
243
  let yl = Q(xl), wl = pe(() => {
243
244
  });
@@ -302,7 +303,7 @@ var Sl = Object.defineProperty, Nl = (e, t, r) => t in e ? Sl(e, t, { enumerable
302
303
  }, wa = (e, t, r, n) => (Ko(e, t, "write to private field"), t.set(e, r), r), Fe, Bt, Ht;
303
304
  let Ir = class {
304
305
  constructor(t) {
305
- an(this, Fe, {}), an(this, Bt, new Go(() => /* @__PURE__ */ new Set())), an(this, Ht, /* @__PURE__ */ new Set()), Pl(this, "disposables", je()), wa(this, Fe, t), mt.isServer && this.disposables.microTask(() => {
306
+ an(this, Fe, {}), an(this, Bt, new Go(() => /* @__PURE__ */ new Set())), an(this, Ht, /* @__PURE__ */ new Set()), Pl(this, "disposables", je()), wa(this, Fe, t), pt.isServer && this.disposables.microTask(() => {
306
307
  this.dispose();
307
308
  });
308
309
  }
@@ -313,7 +314,7 @@ let Ir = class {
313
314
  return Re(this, Fe);
314
315
  }
315
316
  subscribe(t, r) {
316
- if (mt.isServer) return () => {
317
+ if (pt.isServer) return () => {
317
318
  };
318
319
  let n = { selector: t, callback: r, current: t(Re(this, Fe)) };
319
320
  return Re(this, Ht).add(n), this.disposables.add(() => {
@@ -321,7 +322,7 @@ let Ir = class {
321
322
  });
322
323
  }
323
324
  on(t, r) {
324
- return mt.isServer ? () => {
325
+ return pt.isServer ? () => {
325
326
  } : (Re(this, Bt).get(t).add(r), this.disposables.add(() => {
326
327
  Re(this, Bt).get(t).delete(r);
327
328
  }));
@@ -384,7 +385,7 @@ let Tl = { 0(e, t) {
384
385
  return he(r.type, Tl, t, r);
385
386
  }
386
387
  };
387
- const kt = new Go(() => jl.new());
388
+ const wt = new Go(() => jl.new());
388
389
  var hr = { exports: {} }, sn = {};
389
390
  var Sa;
390
391
  function Rl() {
@@ -396,12 +397,12 @@ function Rl() {
396
397
  }
397
398
  var r = typeof Object.is == "function" ? Object.is : t, n = e.useSyncExternalStore, a = e.useRef, o = e.useEffect, s = e.useMemo, i = e.useDebugValue;
398
399
  return sn.useSyncExternalStoreWithSelector = function(l, c, u, p, m) {
399
- var f = a(null);
400
- if (f.current === null) {
400
+ var d = a(null);
401
+ if (d.current === null) {
401
402
  var g = { hasValue: !1, value: null };
402
- f.current = g;
403
- } else g = f.current;
404
- f = s(
403
+ d.current = g;
404
+ } else g = d.current;
405
+ d = s(
405
406
  function() {
406
407
  function b(S) {
407
408
  if (!v) {
@@ -428,7 +429,7 @@ function Rl() {
428
429
  },
429
430
  [c, u, p, m]
430
431
  );
431
- var h = n(l, f[0], f[1]);
432
+ var h = n(l, d[0], d[1]);
432
433
  return o(
433
434
  function() {
434
435
  g.hasValue = !0, g.value = h;
@@ -447,12 +448,12 @@ function $l() {
447
448
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
448
449
  var t = E, r = typeof Object.is == "function" ? Object.is : e, n = t.useSyncExternalStore, a = t.useRef, o = t.useEffect, s = t.useMemo, i = t.useDebugValue;
449
450
  ln.useSyncExternalStoreWithSelector = function(l, c, u, p, m) {
450
- var f = a(null);
451
- if (f.current === null) {
451
+ var d = a(null);
452
+ if (d.current === null) {
452
453
  var g = { hasValue: !1, value: null };
453
- f.current = g;
454
- } else g = f.current;
455
- f = s(
454
+ d.current = g;
455
+ } else g = d.current;
456
+ d = s(
456
457
  function() {
457
458
  function b(S) {
458
459
  if (!v) {
@@ -480,7 +481,7 @@ function $l() {
480
481
  },
481
482
  [c, u, p, m]
482
483
  );
483
- var h = n(l, f[0], f[1]);
484
+ var h = n(l, d[0], d[1]);
484
485
  return o(
485
486
  function() {
486
487
  g.hasValue = !0, g.value = h;
@@ -502,7 +503,7 @@ function Dl(e) {
502
503
  return e;
503
504
  }
504
505
  function ar(e, t) {
505
- let r = de(), n = kt.get(t), [a, o] = re(n, ee((s) => [n.selectors.isTop(s, r), n.selectors.inStack(s, r)], [n, r]));
506
+ let r = de(), n = wt.get(t), [a, o] = re(n, ee((s) => [n.selectors.isTop(s, r), n.selectors.inStack(s, r)], [n, r]));
506
507
  return se(() => {
507
508
  if (e) return n.actions.push(r), () => n.actions.pop(r);
508
509
  }, [n, e, r]), e ? o ? a : !0 : !1;
@@ -530,7 +531,7 @@ function Ln(e, { allowed: t, disallowed: r } = {}) {
530
531
  let i = (o = t?.()) != null ? o : [];
531
532
  for (let l of i) {
532
533
  if (!l) continue;
533
- let c = wt(l);
534
+ let c = yt(l);
534
535
  if (!c) continue;
535
536
  let u = l.parentElement;
536
537
  for (; u && u !== c.body; ) {
@@ -573,7 +574,7 @@ function Ll(e = document.body) {
573
574
  var sr = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(sr || {});
574
575
  function ir(e, t = 0) {
575
576
  var r;
576
- return e === ((r = wt(e)) == null ? void 0 : r.body) ? !1 : he(t, { 0() {
577
+ return e === ((r = yt(e)) == null ? void 0 : r.body) ? !1 : he(t, { 0() {
577
578
  return e.matches(kr);
578
579
  }, 1() {
579
580
  let n = e;
@@ -586,7 +587,7 @@ function ir(e, t = 0) {
586
587
  }
587
588
  function Qo(e) {
588
589
  je().nextFrame(() => {
589
- let t = ht(e);
590
+ let t = gt(e);
590
591
  t && $e(t) && !ir(t, 0) && Le(e);
591
592
  });
592
593
  }
@@ -612,12 +613,12 @@ function _n(e, t = (r) => r) {
612
613
  return s & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : s & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
613
614
  });
614
615
  }
615
- function Zo(e, t, r = e === null ? document.body : gt(e)) {
616
+ function Zo(e, t, r = e === null ? document.body : mt(e)) {
616
617
  return Oe(or(r), t, { relativeTo: e });
617
618
  }
618
619
  function Oe(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
619
- let o = Array.isArray(e) ? e.length > 0 ? gt(e[0]) : document : gt(e), s = Array.isArray(e) ? r ? _n(e) : e : t & 64 ? Ll(e) : or(e);
620
- a.length > 0 && s.length > 1 && (s = s.filter((f) => !a.some((g) => g != null && "current" in g ? g?.current === f : g === f))), n = n ?? o?.activeElement;
620
+ let o = Array.isArray(e) ? e.length > 0 ? mt(e[0]) : document : mt(e), s = Array.isArray(e) ? r ? _n(e) : e : t & 64 ? Ll(e) : or(e);
621
+ a.length > 0 && s.length > 1 && (s = s.filter((d) => !a.some((g) => g != null && "current" in g ? g?.current === d : g === d))), n = n ?? o?.activeElement;
621
622
  let i = (() => {
622
623
  if (t & 5) return 1;
623
624
  if (t & 10) return -1;
@@ -631,14 +632,14 @@ function Oe(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] }
631
632
  })(), c = t & 32 ? { preventScroll: !0 } : {}, u = 0, p = s.length, m;
632
633
  do {
633
634
  if (u >= p || u + p <= 0) return 0;
634
- let f = l + u;
635
- if (t & 16) f = (f + p) % p;
635
+ let d = l + u;
636
+ if (t & 16) d = (d + p) % p;
636
637
  else {
637
- if (f < 0) return 3;
638
- if (f >= p) return 1;
638
+ if (d < 0) return 3;
639
+ if (d >= p) return 1;
639
640
  }
640
- m = s[f], m?.focus(c), u += i;
641
- } while (m !== ht(m));
641
+ m = s[d], m?.focus(c), u += i;
642
+ } while (m !== gt(m));
642
643
  return t & 6 && Bl(m) && m.select(), 2;
643
644
  }
644
645
  function Jo() {
@@ -699,10 +700,10 @@ function Dr(e, t, r) {
699
700
  }, !0), es(e, "blur", (i) => a(i, () => ll(window.document.activeElement) ? window.document.activeElement : null), !0);
700
701
  }
701
702
  function Xe(...e) {
702
- return fe(() => wt(...e), [...e]);
703
+ return fe(() => yt(...e), [...e]);
703
704
  }
704
705
  function zl(...e) {
705
- return fe(() => gt(...e), [...e]);
706
+ return fe(() => mt(...e), [...e]);
706
707
  }
707
708
  var Wl = ((e) => (e[e.Ignore = 0] = "Ignore", e[e.Select = 1] = "Select", e[e.Close = 2] = "Close", e))(Wl || {});
708
709
  const et = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, Ul = 200, Ra = 5;
@@ -828,7 +829,7 @@ function $a(e) {
828
829
  for (let r of e) Object.assign(t, r(t));
829
830
  return t;
830
831
  }
831
- let pt = Gl(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
832
+ let ft = Gl(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
832
833
  var r;
833
834
  let n = (r = this.get(e)) != null ? r : { doc: e, count: 0, d: je(), meta: /* @__PURE__ */ new Set(), computedMeta: {} };
834
835
  return n.count++, n.meta.add(t), n.computedMeta = $a(n.meta), this.set(e, n), this;
@@ -845,18 +846,18 @@ let pt = Gl(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
845
846
  }, TEARDOWN({ doc: e }) {
846
847
  this.delete(e);
847
848
  } });
848
- pt.subscribe(() => {
849
- let e = pt.getSnapshot(), t = /* @__PURE__ */ new Map();
849
+ ft.subscribe(() => {
850
+ let e = ft.getSnapshot(), t = /* @__PURE__ */ new Map();
850
851
  for (let [r] of e) t.set(r, r.documentElement.style.overflow);
851
852
  for (let r of e.values()) {
852
853
  let n = t.get(r.doc) === "hidden", a = r.count !== 0;
853
- (a && !n || !a && n) && pt.dispatch(r.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", r), r.count === 0 && pt.dispatch("TEARDOWN", r);
854
+ (a && !n || !a && n) && ft.dispatch(r.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", r), r.count === 0 && ft.dispatch("TEARDOWN", r);
854
855
  }
855
856
  });
856
857
  function Ql(e, t, r = () => ({ containers: [] })) {
857
- let n = Yl(pt), a = t ? n.get(t) : void 0, o = a ? a.count > 0 : !1;
858
+ let n = Yl(ft), a = t ? n.get(t) : void 0, o = a ? a.count > 0 : !1;
858
859
  return se(() => {
859
- if (!(!t || !e)) return pt.dispatch("PUSH", t, r), () => pt.dispatch("POP", t, r);
860
+ if (!(!t || !e)) return ft.dispatch("PUSH", t, r), () => ft.dispatch("POP", t, r);
860
861
  }, [e, t]), o;
861
862
  }
862
863
  function Mr(e, t, r = () => [document.body]) {
@@ -907,8 +908,8 @@ function cr(e, t, r, n) {
907
908
  }, run() {
908
909
  u.current ? r ? (l(3), i(4)) : (l(4), i(3)) : r ? l(1) : i(1);
909
910
  }, done() {
910
- var f;
911
- u.current && nc(t) || (c.current = !1, l(7), r || o(!1), (f = n?.end) == null || f.call(n, r));
911
+ var d;
912
+ u.current && nc(t) || (c.current = !1, l(7), r || o(!1), (d = n?.end) == null || d.call(n, r));
912
913
  } });
913
914
  }
914
915
  }, [e, r, t, p]), e ? [a, { closed: s(1), enter: s(2), leave: s(4), transition: s(2) || s(4) }] : [r, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
@@ -952,7 +953,7 @@ function ac(e, { container: t, accept: r, walk: n }) {
952
953
  a.current = r, o.current = n;
953
954
  }, [r, n]), se(() => {
954
955
  if (!t || !e) return;
955
- let s = wt(t);
956
+ let s = yt(t);
956
957
  if (!s) return;
957
958
  let i = a.current, l = o.current, c = Object.assign((p) => i(p), { acceptNode: i }), u = s.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, c, !1);
958
959
  for (; u.nextNode(); ) l(u.currentNode);
@@ -1204,47 +1205,47 @@ function _a(e, t, r) {
1204
1205
  floating: a
1205
1206
  } = e;
1206
1207
  const o = Me(t), s = Yn(t), i = Un(s), l = Ze(t), c = o === "y", u = n.x + n.width / 2 - a.width / 2, p = n.y + n.height / 2 - a.height / 2, m = n[i] / 2 - a[i] / 2;
1207
- let f;
1208
+ let d;
1208
1209
  switch (l) {
1209
1210
  case "top":
1210
- f = {
1211
+ d = {
1211
1212
  x: u,
1212
1213
  y: n.y - a.height
1213
1214
  };
1214
1215
  break;
1215
1216
  case "bottom":
1216
- f = {
1217
+ d = {
1217
1218
  x: u,
1218
1219
  y: n.y + n.height
1219
1220
  };
1220
1221
  break;
1221
1222
  case "right":
1222
- f = {
1223
+ d = {
1223
1224
  x: n.x + n.width,
1224
1225
  y: p
1225
1226
  };
1226
1227
  break;
1227
1228
  case "left":
1228
- f = {
1229
+ d = {
1229
1230
  x: n.x - a.width,
1230
1231
  y: p
1231
1232
  };
1232
1233
  break;
1233
1234
  default:
1234
- f = {
1235
+ d = {
1235
1236
  x: n.x,
1236
1237
  y: n.y
1237
1238
  };
1238
1239
  }
1239
1240
  switch (Mt(t)) {
1240
1241
  case "start":
1241
- f[s] -= m * (r && c ? -1 : 1);
1242
+ d[s] -= m * (r && c ? -1 : 1);
1242
1243
  break;
1243
1244
  case "end":
1244
- f[s] += m * (r && c ? -1 : 1);
1245
+ d[s] += m * (r && c ? -1 : 1);
1245
1246
  break;
1246
1247
  }
1247
- return f;
1248
+ return d;
1248
1249
  }
1249
1250
  async function ss(e, t) {
1250
1251
  var r;
@@ -1261,8 +1262,8 @@ async function ss(e, t) {
1261
1262
  rootBoundary: u = "viewport",
1262
1263
  elementContext: p = "floating",
1263
1264
  altBoundary: m = !1,
1264
- padding: f = 0
1265
- } = He(t, e), g = os(f), b = i[m ? p === "floating" ? "reference" : "floating" : p], v = Sr(await o.getClippingRect({
1265
+ padding: d = 0
1266
+ } = He(t, e), g = os(d), b = i[m ? p === "floating" ? "reference" : "floating" : p], v = Sr(await o.getClippingRect({
1266
1267
  element: (r = await (o.isElement == null ? void 0 : o.isElement(b))) == null || r ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
1267
1268
  boundary: c,
1268
1269
  rootBoundary: u,
@@ -1305,7 +1306,7 @@ const Pc = async (e, t, r) => {
1305
1306
  }), {
1306
1307
  x: u,
1307
1308
  y: p
1308
- } = _a(c, n, l), m = n, f = {}, g = 0;
1309
+ } = _a(c, n, l), m = n, d = {}, g = 0;
1309
1310
  for (let b = 0; b < i.length; b++) {
1310
1311
  var h;
1311
1312
  const {
@@ -1322,7 +1323,7 @@ const Pc = async (e, t, r) => {
1322
1323
  initialPlacement: n,
1323
1324
  placement: m,
1324
1325
  strategy: a,
1325
- middlewareData: f,
1326
+ middlewareData: d,
1326
1327
  rects: c,
1327
1328
  platform: {
1328
1329
  ...s,
@@ -1333,10 +1334,10 @@ const Pc = async (e, t, r) => {
1333
1334
  floating: t
1334
1335
  }
1335
1336
  });
1336
- u = x ?? u, p = k ?? p, f = {
1337
- ...f,
1337
+ u = x ?? u, p = k ?? p, d = {
1338
+ ...d,
1338
1339
  [v]: {
1339
- ...f[v],
1340
+ ...d[v],
1340
1341
  ...S
1341
1342
  }
1342
1343
  }, C && g <= 50 && (g++, typeof C == "object" && (C.placement && (m = C.placement), C.rects && (c = C.rects === !0 ? await s.getElementRects({
@@ -1353,7 +1354,7 @@ const Pc = async (e, t, r) => {
1353
1354
  y: p,
1354
1355
  placement: m,
1355
1356
  strategy: a,
1356
- middlewareData: f
1357
+ middlewareData: d
1357
1358
  };
1358
1359
  }, Oc = (e) => ({
1359
1360
  name: "arrow",
@@ -1376,14 +1377,14 @@ const Pc = async (e, t, r) => {
1376
1377
  const p = os(u), m = {
1377
1378
  x: r,
1378
1379
  y: n
1379
- }, f = Yn(a), g = Un(f), h = await s.getDimensions(c), b = f === "y", v = b ? "top" : "left", w = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", k = o.reference[g] + o.reference[f] - m[f] - o.floating[g], S = m[f] - o.reference[f], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1380
+ }, d = Yn(a), g = Un(d), h = await s.getDimensions(c), b = d === "y", v = b ? "top" : "left", w = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", k = o.reference[g] + o.reference[d] - m[d] - o.floating[g], S = m[d] - o.reference[d], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1380
1381
  let P = C ? C[x] : 0;
1381
1382
  (!P || !await (s.isElement == null ? void 0 : s.isElement(C))) && (P = i.floating[x] || o.floating[g]);
1382
1383
  const M = k / 2 - S / 2, z = P / 2 - h[g] / 2 - 1, N = Qe(p[v], z), $ = Qe(p[w], z), L = N, _ = P - h[g] - $, R = P / 2 - h[g] / 2 + M, D = vn(L, R, _), F = !l.arrow && Mt(a) != null && R !== D && o.reference[g] / 2 - (R < L ? N : $) - h[g] / 2 < 0, U = F ? R < L ? R - L : R - _ : 0;
1383
1384
  return {
1384
- [f]: m[f] + U,
1385
+ [d]: m[d] + U,
1385
1386
  data: {
1386
- [f]: D,
1387
+ [d]: D,
1387
1388
  centerOffset: R - D - U,
1388
1389
  ...F && {
1389
1390
  alignmentOffset: U
@@ -1409,7 +1410,7 @@ const Pc = async (e, t, r) => {
1409
1410
  mainAxis: u = !0,
1410
1411
  crossAxis: p = !0,
1411
1412
  fallbackPlacements: m,
1412
- fallbackStrategy: f = "bestFit",
1413
+ fallbackStrategy: d = "bestFit",
1413
1414
  fallbackAxisSideDirection: g = "none",
1414
1415
  flipAlignment: h = !0,
1415
1416
  ...b
@@ -1444,7 +1445,7 @@ const Pc = async (e, t, r) => {
1444
1445
  };
1445
1446
  let F = (L = N.filter((U) => U.overflows[0] <= 0).sort((U, O) => U.overflows[1] - O.overflows[1])[0]) == null ? void 0 : L.placement;
1446
1447
  if (!F)
1447
- switch (f) {
1448
+ switch (d) {
1448
1449
  case "bestFit": {
1449
1450
  var _;
1450
1451
  const U = (_ = N.filter((O) => {
@@ -1536,7 +1537,7 @@ async function jc(e, t) {
1536
1537
  } = e, o = await (n.isRTL == null ? void 0 : n.isRTL(a.floating)), s = Ze(r), i = Mt(r), l = Me(r) === "y", c = is.has(s) ? -1 : 1, u = o && l ? -1 : 1, p = He(t, e);
1537
1538
  let {
1538
1539
  mainAxis: m,
1539
- crossAxis: f,
1540
+ crossAxis: d,
1540
1541
  alignmentAxis: g
1541
1542
  } = typeof p == "number" ? {
1542
1543
  mainAxis: p,
@@ -1547,12 +1548,12 @@ async function jc(e, t) {
1547
1548
  crossAxis: p.crossAxis || 0,
1548
1549
  alignmentAxis: p.alignmentAxis
1549
1550
  };
1550
- return i && typeof g == "number" && (f = i === "end" ? g * -1 : g), l ? {
1551
- x: f * u,
1551
+ return i && typeof g == "number" && (d = i === "end" ? g * -1 : g), l ? {
1552
+ x: d * u,
1552
1553
  y: m * c
1553
1554
  } : {
1554
1555
  x: m * c,
1555
- y: f * u
1556
+ y: d * u
1556
1557
  };
1557
1558
  }
1558
1559
  const Rc = function(e) {
@@ -1606,10 +1607,10 @@ const Rc = function(e) {
1606
1607
  } = He(e, t), u = {
1607
1608
  x: r,
1608
1609
  y: n
1609
- }, p = await o.detectOverflow(t, c), m = Me(Ze(a)), f = Wn(m);
1610
- let g = u[f], h = u[m];
1610
+ }, p = await o.detectOverflow(t, c), m = Me(Ze(a)), d = Wn(m);
1611
+ let g = u[d], h = u[m];
1611
1612
  if (s) {
1612
- const v = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right", x = g + p[v], k = g - p[w];
1613
+ const v = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", x = g + p[v], k = g - p[w];
1613
1614
  g = vn(x, g, k);
1614
1615
  }
1615
1616
  if (i) {
@@ -1618,7 +1619,7 @@ const Rc = function(e) {
1618
1619
  }
1619
1620
  const b = l.fn({
1620
1621
  ...t,
1621
- [f]: g,
1622
+ [d]: g,
1622
1623
  [m]: h
1623
1624
  });
1624
1625
  return {
@@ -1627,7 +1628,7 @@ const Rc = function(e) {
1627
1628
  x: b.x - r,
1628
1629
  y: b.y - n,
1629
1630
  enabled: {
1630
- [f]: s,
1631
+ [d]: s,
1631
1632
  [m]: i
1632
1633
  }
1633
1634
  }
@@ -1652,7 +1653,7 @@ const Rc = function(e) {
1652
1653
  x: r,
1653
1654
  y: n
1654
1655
  }, p = Me(a), m = Wn(p);
1655
- let f = u[m], g = u[p];
1656
+ let d = u[m], g = u[p];
1656
1657
  const h = He(i, t), b = typeof h == "number" ? {
1657
1658
  mainAxis: h,
1658
1659
  crossAxis: 0
@@ -1663,7 +1664,7 @@ const Rc = function(e) {
1663
1664
  };
1664
1665
  if (l) {
1665
1666
  const x = m === "y" ? "height" : "width", k = o.reference[m] - o.floating[x] + b.mainAxis, S = o.reference[m] + o.reference[x] - b.mainAxis;
1666
- f < k ? f = k : f > S && (f = S);
1667
+ d < k ? d = k : d > S && (d = S);
1667
1668
  }
1668
1669
  if (c) {
1669
1670
  var v, w;
@@ -1671,7 +1672,7 @@ const Rc = function(e) {
1671
1672
  g < S ? g = S : g > C && (g = C);
1672
1673
  }
1673
1674
  return {
1674
- [m]: f,
1675
+ [m]: d,
1675
1676
  [p]: g
1676
1677
  };
1677
1678
  }
@@ -1691,7 +1692,7 @@ const Rc = function(e) {
1691
1692
  apply: l = () => {
1692
1693
  },
1693
1694
  ...c
1694
- } = He(e, t), u = await s.detectOverflow(t, c), p = Ze(a), m = Mt(a), f = Me(a) === "y", {
1695
+ } = He(e, t), u = await s.detectOverflow(t, c), p = Ze(a), m = Mt(a), d = Me(a) === "y", {
1695
1696
  width: g,
1696
1697
  height: h
1697
1698
  } = o.floating;
@@ -1701,7 +1702,7 @@ const Rc = function(e) {
1701
1702
  let P = k, M = S;
1702
1703
  if ((r = t.middlewareData.shift) != null && r.enabled.x && (M = x), (n = t.middlewareData.shift) != null && n.enabled.y && (P = w), C && !m) {
1703
1704
  const N = Ee(u.left, 0), $ = Ee(u.right, 0), L = Ee(u.top, 0), _ = Ee(u.bottom, 0);
1704
- f ? M = g - 2 * (N !== 0 || $ !== 0 ? N + $ : Ee(u.left, u.right)) : P = h - 2 * (L !== 0 || _ !== 0 ? L + _ : Ee(u.top, u.bottom));
1705
+ d ? M = g - 2 * (N !== 0 || $ !== 0 ? N + $ : Ee(u.left, u.right)) : P = h - 2 * (L !== 0 || _ !== 0 ? L + _ : Ee(u.top, u.bottom));
1705
1706
  }
1706
1707
  await l({
1707
1708
  ...t,
@@ -1756,7 +1757,7 @@ function cs(e) {
1756
1757
  function Fc(e, t, r) {
1757
1758
  return t === void 0 && (t = !1), !r || t && r !== Te(e) ? !1 : t;
1758
1759
  }
1759
- function vt(e, t, r, n) {
1760
+ function bt(e, t, r, n) {
1760
1761
  t === void 0 && (t = !1), r === void 0 && (r = !1);
1761
1762
  const a = e.getBoundingClientRect(), o = Gn(e);
1762
1763
  let s = _e(1);
@@ -1764,9 +1765,9 @@ function vt(e, t, r, n) {
1764
1765
  const i = Fc(o, r, n) ? cs(o) : _e(0);
1765
1766
  let l = (a.left + i.x) / s.x, c = (a.top + i.y) / s.y, u = a.width / s.x, p = a.height / s.y;
1766
1767
  if (o) {
1767
- const m = Te(o), f = n && Ne(n) ? Te(n) : n;
1768
+ const m = Te(o), d = n && Ne(n) ? Te(n) : n;
1768
1769
  let g = m, h = bn(g);
1769
- for (; h && n && f !== g; ) {
1770
+ for (; h && n && d !== g; ) {
1770
1771
  const b = Pt(h), v = h.getBoundingClientRect(), w = De(h), x = v.left + (h.clientLeft + parseFloat(w.paddingLeft)) * b.x, k = v.top + (h.clientTop + parseFloat(w.paddingTop)) * b.y;
1771
1772
  l *= b.x, c *= b.y, u *= b.x, p *= b.y, l += x, c += k, g = Te(h), h = bn(g);
1772
1773
  }
@@ -1780,7 +1781,7 @@ function vt(e, t, r, n) {
1780
1781
  }
1781
1782
  function Br(e, t) {
1782
1783
  const r = Vr(e).scrollLeft;
1783
- return t ? t.left + r : vt(We(e)).left + r;
1784
+ return t ? t.left + r : bt(We(e)).left + r;
1784
1785
  }
1785
1786
  function us(e, t) {
1786
1787
  const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - Br(e, r), a = r.top + t.scrollTop;
@@ -1805,8 +1806,8 @@ function Mc(e) {
1805
1806
  }, c = _e(1);
1806
1807
  const u = _e(0), p = Be(n);
1807
1808
  if ((p || !p && !o) && ((Ft(n) !== "body" || ur(s)) && (l = Vr(n)), Be(n))) {
1808
- const f = vt(n);
1809
- c = Pt(n), u.x = f.x + n.clientLeft, u.y = f.y + n.clientTop;
1809
+ const d = bt(n);
1810
+ c = Pt(n), u.x = d.x + n.clientLeft, u.y = d.y + n.clientTop;
1810
1811
  }
1811
1812
  const m = s && !p && !o ? us(s, l) : _e(0);
1812
1813
  return {
@@ -1841,7 +1842,7 @@ function Vc(e, t) {
1841
1842
  }
1842
1843
  const c = Br(n);
1843
1844
  if (c <= 0) {
1844
- const u = n.ownerDocument, p = u.body, m = getComputedStyle(p), f = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(n.clientWidth - p.clientWidth - f);
1845
+ const u = n.ownerDocument, p = u.body, m = getComputedStyle(p), d = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(n.clientWidth - p.clientWidth - d);
1845
1846
  g <= Ha && (o -= g);
1846
1847
  } else c <= Ha && (o += c);
1847
1848
  return {
@@ -1853,7 +1854,7 @@ function Vc(e, t) {
1853
1854
  }
1854
1855
  const Bc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1855
1856
  function Hc(e, t) {
1856
- const r = vt(e, !0, t === "fixed"), n = r.top + e.clientTop, a = r.left + e.clientLeft, o = Be(e) ? Pt(e) : _e(1), s = e.clientWidth * o.x, i = e.clientHeight * o.y, l = a * o.x, c = n * o.y;
1857
+ const r = bt(e, !0, t === "fixed"), n = r.top + e.clientTop, a = r.left + e.clientLeft, o = Be(e) ? Pt(e) : _e(1), s = e.clientWidth * o.x, i = e.clientHeight * o.y, l = a * o.x, c = n * o.y;
1857
1858
  return {
1858
1859
  width: s,
1859
1860
  height: i,
@@ -1926,7 +1927,7 @@ function Uc(e) {
1926
1927
  };
1927
1928
  }
1928
1929
  function Yc(e, t, r) {
1929
- const n = Be(t), a = We(t), o = r === "fixed", s = vt(e, !0, o, t);
1930
+ const n = Be(t), a = We(t), o = r === "fixed", s = bt(e, !0, o, t);
1930
1931
  let i = {
1931
1932
  scrollLeft: 0,
1932
1933
  scrollTop: 0
@@ -1937,8 +1938,8 @@ function Yc(e, t, r) {
1937
1938
  }
1938
1939
  if (n || !n && !o)
1939
1940
  if ((Ft(t) !== "body" || ur(a)) && (i = Vr(t)), n) {
1940
- const f = vt(t, !0, o, t);
1941
- l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
1941
+ const d = bt(t, !0, o, t);
1942
+ l.x = d.x + t.clientLeft, l.y = d.y + t.clientTop;
1942
1943
  } else a && c();
1943
1944
  o && !n && a && c();
1944
1945
  const u = a && !n && !o ? us(a, i) : _e(0), p = s.left + i.scrollLeft - l.x - u.x, m = s.top + i.scrollTop - l.y - u.y;
@@ -2021,11 +2022,11 @@ function Xc(e, t) {
2021
2022
  left: u,
2022
2023
  top: p,
2023
2024
  width: m,
2024
- height: f
2025
+ height: d
2025
2026
  } = c;
2026
- if (i || t(), !m || !f)
2027
+ if (i || t(), !m || !d)
2027
2028
  return;
2028
- const g = br(p), h = br(a.clientWidth - (u + m)), b = br(a.clientHeight - (p + f)), v = br(u), x = {
2029
+ const g = br(p), h = br(a.clientWidth - (u + m)), b = br(a.clientHeight - (p + d)), v = br(u), x = {
2029
2030
  rootMargin: -g + "px " + -h + "px " + -b + "px " + -v + "px",
2030
2031
  threshold: Ee(0, Qe(1, l)) || 1
2031
2032
  };
@@ -2069,25 +2070,25 @@ function ms(e, t, r, n) {
2069
2070
  }), o && v.addEventListener("resize", r);
2070
2071
  });
2071
2072
  const p = c && i ? Xc(c, r) : null;
2072
- let m = -1, f = null;
2073
- s && (f = new ResizeObserver((v) => {
2073
+ let m = -1, d = null;
2074
+ s && (d = new ResizeObserver((v) => {
2074
2075
  let [w] = v;
2075
- w && w.target === c && f && (f.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
2076
+ w && w.target === c && d && (d.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
2076
2077
  var x;
2077
- (x = f) == null || x.observe(t);
2078
+ (x = d) == null || x.observe(t);
2078
2079
  })), r();
2079
- }), c && !l && f.observe(c), f.observe(t));
2080
- let g, h = l ? vt(e) : null;
2080
+ }), c && !l && d.observe(c), d.observe(t));
2081
+ let g, h = l ? bt(e) : null;
2081
2082
  l && b();
2082
2083
  function b() {
2083
- const v = vt(e);
2084
+ const v = bt(e);
2084
2085
  h && !ps(h, v) && r(), h = v, g = requestAnimationFrame(b);
2085
2086
  }
2086
2087
  return r(), () => {
2087
2088
  var v;
2088
2089
  u.forEach((w) => {
2089
2090
  a && w.removeEventListener("scroll", r), o && w.removeEventListener("resize", r);
2090
- }), p?.(), (v = f) == null || v.disconnect(), f = null, l && cancelAnimationFrame(g);
2091
+ }), p?.(), (v = d) == null || v.disconnect(), d = null, l && cancelAnimationFrame(g);
2091
2092
  };
2092
2093
  }
2093
2094
  const un = ss, Qc = Rc, Zc = $c, Jc = Cc, eu = Ac, tu = Tc, Ua = Oc, ru = Ic, nu = (e, t, r) => {
@@ -2169,8 +2170,8 @@ function hs(e) {
2169
2170
  placement: t,
2170
2171
  middlewareData: {},
2171
2172
  isPositioned: !1
2172
- }), [m, f] = y.useState(n);
2173
- Nr(m, n) || f(n);
2173
+ }), [m, d] = y.useState(n);
2174
+ Nr(m, n) || d(n);
2174
2175
  const [g, h] = y.useState(null), [b, v] = y.useState(null), w = y.useCallback((O) => {
2175
2176
  O !== C.current && (C.current = O, h(O));
2176
2177
  }, []), x = y.useCallback((O) => {
@@ -2371,16 +2372,16 @@ function Su(e) {
2371
2372
  elements: n
2372
2373
  } = e, a = gu(), o = y.useRef({}), [s] = y.useState(() => vu()), i = wu() != null;
2373
2374
  if (process.env.NODE_ENV !== "production") {
2374
- const f = n.reference;
2375
- f && !Ne(f) && bu("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
2375
+ const d = n.reference;
2376
+ d && !Ne(d) && bu("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
2376
2377
  }
2377
- const [l, c] = y.useState(n.reference), u = ws((f, g, h) => {
2378
- o.current.openEvent = f ? g : void 0, s.emit("openchange", {
2379
- open: f,
2378
+ const [l, c] = y.useState(n.reference), u = ws((d, g, h) => {
2379
+ o.current.openEvent = d ? g : void 0, s.emit("openchange", {
2380
+ open: d,
2380
2381
  event: g,
2381
2382
  reason: h,
2382
2383
  nested: i
2383
- }), r?.(f, g, h);
2384
+ }), r?.(d, g, h);
2384
2385
  }), p = y.useMemo(() => ({
2385
2386
  setPositionReference: c
2386
2387
  }), []), m = y.useMemo(() => ({
@@ -2413,7 +2414,7 @@ function Nu(e) {
2413
2414
  yn(() => {
2414
2415
  u && (p.current = u);
2415
2416
  }, [u]);
2416
- const f = hs({
2417
+ const d = hs({
2417
2418
  ...e,
2418
2419
  elements: {
2419
2420
  ...a,
@@ -2426,37 +2427,37 @@ function Nu(e) {
2426
2427
  getBoundingClientRect: () => x.getBoundingClientRect(),
2427
2428
  contextElement: x
2428
2429
  } : x;
2429
- l(k), f.refs.setReference(k);
2430
- }, [f.refs]), h = y.useCallback((x) => {
2431
- (Ne(x) || x === null) && (p.current = x, s(x)), (Ne(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
2430
+ l(k), d.refs.setReference(k);
2431
+ }, [d.refs]), h = y.useCallback((x) => {
2432
+ (Ne(x) || x === null) && (p.current = x, s(x)), (Ne(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
2432
2433
  // `null` to support `positionReference` + an unstable `reference`
2433
2434
  // callback ref.
2434
- x !== null && !Ne(x)) && f.refs.setReference(x);
2435
- }, [f.refs]), b = y.useMemo(() => ({
2436
- ...f.refs,
2435
+ x !== null && !Ne(x)) && d.refs.setReference(x);
2436
+ }, [d.refs]), b = y.useMemo(() => ({
2437
+ ...d.refs,
2437
2438
  setReference: h,
2438
2439
  setPositionReference: g,
2439
2440
  domReference: p
2440
- }), [f.refs, h, g]), v = y.useMemo(() => ({
2441
- ...f.elements,
2441
+ }), [d.refs, h, g]), v = y.useMemo(() => ({
2442
+ ...d.elements,
2442
2443
  domReference: u
2443
- }), [f.elements, u]), w = y.useMemo(() => ({
2444
- ...f,
2444
+ }), [d.elements, u]), w = y.useMemo(() => ({
2445
+ ...d,
2445
2446
  ...n,
2446
2447
  refs: b,
2447
2448
  elements: v,
2448
2449
  nodeId: t
2449
- }), [f, b, v, t, n]);
2450
+ }), [d, b, v, t, n]);
2450
2451
  return yn(() => {
2451
2452
  n.dataRef.current.floatingContext = w;
2452
2453
  const x = m?.nodesRef.current.find((k) => k.id === t);
2453
2454
  x && (x.context = w);
2454
2455
  }), y.useMemo(() => ({
2455
- ...f,
2456
+ ...d,
2456
2457
  context: w,
2457
2458
  refs: b,
2458
2459
  elements: v
2459
- }), [f, b, v, w]);
2460
+ }), [d, b, v, w]);
2460
2461
  }
2461
2462
  const qa = "active", Xa = "selected";
2462
2463
  function fn(e, t, r) {
@@ -2486,7 +2487,7 @@ function fn(e, t, r) {
2486
2487
  if (n.has(c) || n.set(c, []), typeof u == "function") {
2487
2488
  var p;
2488
2489
  (p = n.get(c)) == null || p.push(u), s[c] = function() {
2489
- for (var m, f = arguments.length, g = new Array(f), h = 0; h < f; h++)
2490
+ for (var m, d = arguments.length, g = new Array(d), h = 0; h < d; h++)
2490
2491
  g[h] = arguments[h];
2491
2492
  return (m = n.get(c)) == null ? void 0 : m.map((b) => b(...g)).find((b) => b !== void 0);
2492
2493
  };
@@ -2548,18 +2549,18 @@ const Ou = (e) => ({
2548
2549
  elements: {
2549
2550
  floating: m
2550
2551
  }
2551
- } = t, f = r.current[s], g = c?.current || m, h = m.clientTop || g.clientTop, b = m.clientTop !== 0, v = g.clientTop !== 0, w = m === g;
2552
- if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || hu('`placement` side must be "bottom" when using the `inner`', "middleware.")), !f)
2552
+ } = t, d = r.current[s], g = c?.current || m, h = m.clientTop || g.clientTop, b = m.clientTop !== 0, v = g.clientTop !== 0, w = m === g;
2553
+ if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || hu('`placement` side must be "bottom" when using the `inner`', "middleware.")), !d)
2553
2554
  return {};
2554
2555
  const x = {
2555
2556
  ...t,
2556
- ...await Kn(-f.offsetTop - m.clientTop - p.reference.height / 2 - f.offsetHeight / 2 - o).fn(t)
2557
+ ...await Kn(-d.offsetTop - m.clientTop - p.reference.height / 2 - d.offsetHeight / 2 - o).fn(t)
2557
2558
  }, k = await un(Qa(x, g.scrollHeight + h + m.clientTop), u), S = await un(x, {
2558
2559
  ...u,
2559
2560
  elementContext: "reference"
2560
2561
  }), C = Ee(0, k.top), P = x.y + C, N = (g.scrollHeight > g.clientHeight ? ($) => $ : Xt)(Ee(0, g.scrollHeight + (b && w || v ? h * 2 : 0) - C - Ee(0, k.bottom)));
2561
2562
  if (g.style.maxHeight = N + "px", g.scrollTop = C, a) {
2562
- const $ = g.offsetHeight < f.offsetHeight * Qe(i, r.current.length) - 1 || S.top >= -l || S.bottom >= -l;
2563
+ const $ = g.offsetHeight < d.offsetHeight * Qe(i, r.current.length) - 1 || S.top >= -l || S.bottom >= -l;
2563
2564
  Kt.flushSync(() => a($));
2564
2565
  }
2565
2566
  return n && (n.current = await un(Qa({
@@ -2582,7 +2583,7 @@ function Cu(e, t) {
2582
2583
  } = t, l = ws(i), c = y.useRef(!1), u = y.useRef(null), p = y.useRef(null);
2583
2584
  y.useEffect(() => {
2584
2585
  if (!a) return;
2585
- function f(h) {
2586
+ function d(h) {
2586
2587
  if (h.ctrlKey || !g || o.current == null)
2587
2588
  return;
2588
2589
  const b = h.deltaY, v = o.current.top >= -0.5, w = o.current.bottom >= -0.5, x = g.scrollHeight - g.clientHeight, k = b < 0 ? -1 : 1, S = b < 0 ? "max" : "min";
@@ -2592,12 +2593,12 @@ function Cu(e, t) {
2592
2593
  }
2593
2594
  const g = s?.current || n.floating;
2594
2595
  if (r && g)
2595
- return g.addEventListener("wheel", f), requestAnimationFrame(() => {
2596
+ return g.addEventListener("wheel", d), requestAnimationFrame(() => {
2596
2597
  u.current = g.scrollTop, o.current != null && (p.current = {
2597
2598
  ...o.current
2598
2599
  });
2599
2600
  }), () => {
2600
- u.current = null, p.current = null, g.removeEventListener("wheel", f);
2601
+ u.current = null, p.current = null, g.removeEventListener("wheel", d);
2601
2602
  };
2602
2603
  }, [a, r, n.floating, o, s, l]);
2603
2604
  const m = y.useMemo(() => ({
@@ -2611,14 +2612,14 @@ function Cu(e, t) {
2611
2612
  c.current = !1;
2612
2613
  },
2613
2614
  onScroll() {
2614
- const f = s?.current || n.floating;
2615
- if (!(!o.current || !f || !c.current)) {
2615
+ const d = s?.current || n.floating;
2616
+ if (!(!o.current || !d || !c.current)) {
2616
2617
  if (u.current !== null) {
2617
- const g = f.scrollTop - u.current;
2618
+ const g = d.scrollTop - u.current;
2618
2619
  (o.current.bottom < -0.5 && g < -1 || o.current.top < -0.5 && g > 1) && Kt.flushSync(() => l((h) => h + g));
2619
2620
  }
2620
2621
  requestAnimationFrame(() => {
2621
- u.current = f.scrollTop;
2622
+ u.current = d.scrollTop;
2622
2623
  });
2623
2624
  }
2624
2625
  }
@@ -2662,11 +2663,11 @@ let Za = 4;
2662
2663
  function ea({ children: e, enabled: t = !0 }) {
2663
2664
  let [r, n] = X(null), [a, o] = X(0), s = V(null), [i, l] = X(null);
2664
2665
  Tu(i);
2665
- let c = t && r !== null && i !== null, { to: u = "bottom", gap: p = 0, offset: m = 0, padding: f = 0, inner: g } = ju(r, i), [h, b = "center"] = u.split(" ");
2666
+ let c = t && r !== null && i !== null, { to: u = "bottom", gap: p = 0, offset: m = 0, padding: d = 0, inner: g } = ju(r, i), [h, b = "center"] = u.split(" ");
2666
2667
  se(() => {
2667
2668
  c && o(0);
2668
2669
  }, [c]);
2669
- let { refs: v, floatingStyles: w, context: x } = Nu({ open: c, placement: h === "selection" ? b === "center" ? "bottom" : `bottom-${b}` : b === "center" ? `${h}` : `${h}-${b}`, strategy: "absolute", transform: !1, middleware: [Kn({ mainAxis: h === "selection" ? 0 : p, crossAxis: m }), bs({ padding: f }), h !== "selection" && vs({ padding: f }), h === "selection" && g ? Ou({ ...g, padding: f, overflowRef: s, offset: a, minItemsVisible: Za, referenceOverflowThreshold: f, onFallbackChange($) {
2670
+ let { refs: v, floatingStyles: w, context: x } = Nu({ open: c, placement: h === "selection" ? b === "center" ? "bottom" : `bottom-${b}` : b === "center" ? `${h}` : `${h}-${b}`, strategy: "absolute", transform: !1, middleware: [Kn({ mainAxis: h === "selection" ? 0 : p, crossAxis: m }), bs({ padding: d }), h !== "selection" && vs({ padding: d }), h === "selection" && g ? Ou({ ...g, padding: d, overflowRef: s, offset: a, minItemsVisible: Za, referenceOverflowThreshold: d, onFallbackChange($) {
2670
2671
  var L, _;
2671
2672
  if (!$) return;
2672
2673
  let R = x.elements.floating;
@@ -2684,7 +2685,7 @@ function ea({ children: e, enabled: t = !0 }) {
2684
2685
  let H = U * F - O + D;
2685
2686
  return j >= H ? j : H;
2686
2687
  });
2687
- } }) : null, xs({ padding: f, apply({ availableWidth: $, availableHeight: L, elements: _ }) {
2688
+ } }) : null, xs({ padding: d, apply({ availableWidth: $, availableHeight: L, elements: _ }) {
2688
2689
  Object.assign(_.floating.style, { overflow: "auto", maxWidth: `${$}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${L}px)` });
2689
2690
  } })].filter(Boolean), whileElementsMounted: ms }), [k = h, S = b] = x.placement.split("-");
2690
2691
  h === "selection" && (k = "selection");
@@ -2722,14 +2723,14 @@ function pn(e, t, r = void 0) {
2722
2723
  return [u, (p) => {
2723
2724
  let m = Es(l);
2724
2725
  {
2725
- let f = m.map((g) => window.getComputedStyle(c).getPropertyValue(g));
2726
+ let d = m.map((g) => window.getComputedStyle(c).getPropertyValue(g));
2726
2727
  n.requestAnimationFrame(function g() {
2727
2728
  n.nextFrame(g);
2728
2729
  let h = !1;
2729
2730
  for (let [v, w] of m.entries()) {
2730
2731
  let x = window.getComputedStyle(c).getPropertyValue(w);
2731
- if (f[v] !== x) {
2732
- f[v] = x, h = !0;
2732
+ if (d[v] !== x) {
2733
+ d[v] = x, h = !0;
2733
2734
  break;
2734
2735
  }
2735
2736
  }
@@ -2855,7 +2856,7 @@ function Du(e) {
2855
2856
  let t = Au(), r = oe(Cs), [n, a] = X(() => {
2856
2857
  var o;
2857
2858
  if (!t && r !== null) return (o = r.current) != null ? o : null;
2858
- if (mt.isServer) return null;
2859
+ if (pt.isServer) return null;
2859
2860
  let s = e?.getElementById("headlessui-portal-root");
2860
2861
  if (s) return s;
2861
2862
  if (e === null) return null;
@@ -2934,7 +2935,7 @@ function Hu() {
2934
2935
  function $s({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
2935
2936
  let n = I(() => {
2936
2937
  var a, o;
2937
- let s = wt(r), i = [];
2938
+ let s = yt(r), i = [];
2938
2939
  for (let l of e) l !== null && (Ge(l) ? i.push(l) : "current" in l && Ge(l.current) && i.push(l.current));
2939
2940
  if (t != null && t.current) for (let l of t.current) i.push(l);
2940
2941
  for (let l of (a = s?.querySelectorAll("html > *, body > *")) != null ? a : []) l !== document.body && l !== document.head && Ge(l) && l.id !== "headlessui-portal-root" && (r && (l.contains(r) || l.contains((o = r?.getRootNode()) == null ? void 0 : o.host)) || i.some((c) => l.contains(c)) || i.push(l));
@@ -2948,7 +2949,7 @@ function Pr({ children: e, node: t }) {
2948
2949
  return E.createElement(Is.Provider, { value: a }, e, a === null && E.createElement(qe, { features: Ve.Hidden, ref: (o) => {
2949
2950
  var s, i;
2950
2951
  if (o) {
2951
- for (let l of (i = (s = wt(o)) == null ? void 0 : s.querySelectorAll("html > *, body > *")) != null ? i : []) if (l !== document.body && l !== document.head && Ge(l) && l != null && l.contains(o)) {
2952
+ for (let l of (i = (s = yt(o)) == null ? void 0 : s.querySelectorAll("html > *, body > *")) != null ? i : []) if (l !== document.body && l !== document.head && Ge(l) && l != null && l.contains(o)) {
2952
2953
  n(l);
2953
2954
  break;
2954
2955
  }
@@ -2965,10 +2966,10 @@ function zu() {
2965
2966
  }, () => !1, () => !e) : !1;
2966
2967
  }
2967
2968
  function Ur() {
2968
- let e = zu(), [t, r] = y.useState(mt.isHandoffComplete);
2969
- return t && mt.isHandoffComplete === !1 && r(!1), y.useEffect(() => {
2969
+ let e = zu(), [t, r] = y.useState(pt.isHandoffComplete);
2970
+ return t && pt.isHandoffComplete === !1 && r(!1), y.useEffect(() => {
2970
2971
  t !== !0 && r(!0);
2971
- }, [t]), y.useEffect(() => mt.handoff(), []), e ? !1 : t;
2972
+ }, [t]), y.useEffect(() => pt.handoff(), []), e ? !1 : t;
2972
2973
  }
2973
2974
  function na() {
2974
2975
  let e = V(!1);
@@ -3009,7 +3010,7 @@ function Uu(e, t) {
3009
3010
  Oe(x, ge.Last, { skipElements: [w.relatedTarget, o] });
3010
3011
  } });
3011
3012
  });
3012
- }), f = ar(!!(i & 2), "focus-trap#tab-lock"), g = ze(), h = V(!1), b = { ref: n, onKeyDown(w) {
3013
+ }), d = ar(!!(i & 2), "focus-trap#tab-lock"), g = ze(), h = V(!1), b = { ref: n, onKeyDown(w) {
3013
3014
  w.key == "Tab" && (h.current = !0, g.requestAnimationFrame(() => {
3014
3015
  h.current = !1;
3015
3016
  }));
@@ -3020,7 +3021,7 @@ function Uu(e, t) {
3020
3021
  let k = w.relatedTarget;
3021
3022
  $e(k) && k.dataset.headlessuiFocusGuard !== "true" && (Ds(x, k) || (h.current ? Oe(r.current, he(p.current, { [Ce.Forwards]: () => ge.Next, [Ce.Backwards]: () => ge.Previous }) | ge.WrapAround, { relativeTo: w.target }) : $e(w.target) && Le(w.target)));
3022
3023
  } }, v = J();
3023
- return E.createElement(E.Fragment, null, f && E.createElement(qe, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: Ve.Focusable }), v({ ourProps: b, theirProps: l, defaultTag: Wu, name: "FocusTrap" }), f && E.createElement(qe, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: Ve.Focusable }));
3024
+ return E.createElement(E.Fragment, null, d && E.createElement(qe, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: Ve.Focusable }), v({ ourProps: b, theirProps: l, defaultTag: Wu, name: "FocusTrap" }), d && E.createElement(qe, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: Ve.Focusable }));
3024
3025
  }
3025
3026
  let Yu = Q(Uu), Gu = Object.assign(Yu, { features: ut });
3026
3027
  function Ku(e = !0) {
@@ -3114,26 +3115,26 @@ function Kr(e) {
3114
3115
  return "children" in e ? Kr(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
3115
3116
  }
3116
3117
  function Ms(e, t) {
3117
- let r = Ke(e), n = V([]), a = na(), o = ze(), s = I((f, g = ft.Hidden) => {
3118
- let h = n.current.findIndex(({ el: b }) => b === f);
3119
- h !== -1 && (he(g, { [ft.Unmount]() {
3118
+ let r = Ke(e), n = V([]), a = na(), o = ze(), s = I((d, g = dt.Hidden) => {
3119
+ let h = n.current.findIndex(({ el: b }) => b === d);
3120
+ h !== -1 && (he(g, { [dt.Unmount]() {
3120
3121
  n.current.splice(h, 1);
3121
- }, [ft.Hidden]() {
3122
+ }, [dt.Hidden]() {
3122
3123
  n.current[h].state = "hidden";
3123
3124
  } }), o.microTask(() => {
3124
3125
  var b;
3125
3126
  !Kr(n) && a.current && ((b = r.current) == null || b.call(r));
3126
3127
  }));
3127
- }), i = I((f) => {
3128
- let g = n.current.find(({ el: h }) => h === f);
3129
- return g ? g.state !== "visible" && (g.state = "visible") : n.current.push({ el: f, state: "visible" }), () => s(f, ft.Unmount);
3130
- }), l = V([]), c = V(Promise.resolve()), u = V({ enter: [], leave: [] }), p = I((f, g, h) => {
3131
- l.current.splice(0), t && (t.chains.current[g] = t.chains.current[g].filter(([b]) => b !== f)), t?.chains.current[g].push([f, new Promise((b) => {
3128
+ }), i = I((d) => {
3129
+ let g = n.current.find(({ el: h }) => h === d);
3130
+ return g ? g.state !== "visible" && (g.state = "visible") : n.current.push({ el: d, state: "visible" }), () => s(d, dt.Unmount);
3131
+ }), l = V([]), c = V(Promise.resolve()), u = V({ enter: [], leave: [] }), p = I((d, g, h) => {
3132
+ l.current.splice(0), t && (t.chains.current[g] = t.chains.current[g].filter(([b]) => b !== d)), t?.chains.current[g].push([d, new Promise((b) => {
3132
3133
  l.current.push(b);
3133
- })]), t?.chains.current[g].push([f, new Promise((b) => {
3134
+ })]), t?.chains.current[g].push([d, new Promise((b) => {
3134
3135
  Promise.all(u.current[g].map(([v, w]) => w)).then(() => b());
3135
3136
  })]), g === "enter" ? c.current = c.current.then(() => t?.wait.current).then(() => h(g)) : h(g);
3136
- }), m = I((f, g, h) => {
3137
+ }), m = I((d, g, h) => {
3137
3138
  Promise.all(u.current[g].splice(0).map(([b, v]) => v)).then(() => {
3138
3139
  var b;
3139
3140
  (b = l.current.shift()) == null || b();
@@ -3144,9 +3145,9 @@ function Ms(e, t) {
3144
3145
  let Ls = xe, _s = Ae.RenderStrategy;
3145
3146
  function td(e, t) {
3146
3147
  var r, n;
3147
- let { transition: a = !0, beforeEnter: o, afterEnter: s, beforeLeave: i, afterLeave: l, enter: c, enterFrom: u, enterTo: p, entered: m, leave: f, leaveFrom: g, leaveTo: h, ...b } = e, [v, w] = X(null), x = V(null), k = Fs(e), S = le(...k ? [x, t, w] : t === null ? [] : [t]), C = (r = b.unmount) == null || r ? ft.Unmount : ft.Hidden, { show: P, appear: M, initial: z } = Ju(), [N, $] = X(P ? "visible" : "hidden"), L = ed(), { register: _, unregister: R } = L;
3148
+ let { transition: a = !0, beforeEnter: o, afterEnter: s, beforeLeave: i, afterLeave: l, enter: c, enterFrom: u, enterTo: p, entered: m, leave: d, leaveFrom: g, leaveTo: h, ...b } = e, [v, w] = X(null), x = V(null), k = Fs(e), S = le(...k ? [x, t, w] : t === null ? [] : [t]), C = (r = b.unmount) == null || r ? dt.Unmount : dt.Hidden, { show: P, appear: M, initial: z } = Ju(), [N, $] = X(P ? "visible" : "hidden"), L = ed(), { register: _, unregister: R } = L;
3148
3149
  se(() => _(x), [_, x]), se(() => {
3149
- if (C === ft.Hidden && x.current) {
3150
+ if (C === dt.Hidden && x.current) {
3150
3151
  if (P && N !== "visible") {
3151
3152
  $("visible");
3152
3153
  return;
@@ -3175,7 +3176,7 @@ function td(e, t) {
3175
3176
  ne(() => {
3176
3177
  k && a || (H(P), ae(P));
3177
3178
  }, [P, k, a]);
3178
- let te = !(!a || !k || !D || F), [, A] = cr(te, v, P, { start: H, end: ae }), W = No({ ref: S, className: ((n = Li(b.className, U && c, U && u, A.enter && c, A.enter && A.closed && u, A.enter && !A.closed && p, A.leave && f, A.leave && !A.closed && g, A.leave && A.closed && h, !A.transition && P && m)) == null ? void 0 : n.trim()) || void 0, ...lr(A) }), G = 0;
3179
+ let te = !(!a || !k || !D || F), [, A] = cr(te, v, P, { start: H, end: ae }), W = No({ ref: S, className: ((n = Li(b.className, U && c, U && u, A.enter && c, A.enter && A.closed && u, A.enter && !A.closed && p, A.leave && d, A.leave && !A.closed && g, A.leave && A.closed && h, !A.transition && P && m)) == null ? void 0 : n.trim()) || void 0, ...lr(A) }), G = 0;
3179
3180
  N === "visible" && (G |= ue.Open), N === "hidden" && (G |= ue.Closed), P && N === "hidden" && (G |= ue.Opening), !P && N === "visible" && (G |= ue.Closing);
3180
3181
  let B = J();
3181
3182
  return E.createElement(Gr.Provider, { value: j }, E.createElement(zr, { value: G }, B({ ourProps: W, theirProps: b, defaultTag: Ls, features: _s, visible: N === "visible", name: "Transition.Child" })));
@@ -3187,20 +3188,20 @@ function rd(e, t) {
3187
3188
  if (r === void 0 && c !== null && (r = (c & ue.Open) === ue.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
3188
3189
  let [u, p] = X(r ? "visible" : "hidden"), m = Ms(() => {
3189
3190
  r || p("hidden");
3190
- }), [f, g] = X(!0), h = V([r]);
3191
+ }), [d, g] = X(!0), h = V([r]);
3191
3192
  se(() => {
3192
- f !== !1 && h.current[h.current.length - 1] !== r && (h.current.push(r), g(!1));
3193
+ d !== !1 && h.current[h.current.length - 1] !== r && (h.current.push(r), g(!1));
3193
3194
  }, [h, r]);
3194
- let b = fe(() => ({ show: r, appear: n, initial: f }), [r, n, f]);
3195
+ let b = fe(() => ({ show: r, appear: n, initial: d }), [r, n, d]);
3195
3196
  se(() => {
3196
3197
  r ? p("visible") : !Kr(m) && s.current !== null && p("hidden");
3197
3198
  }, [r, m]);
3198
3199
  let v = { unmount: a }, w = I(() => {
3199
3200
  var S;
3200
- f && g(!1), (S = e.beforeEnter) == null || S.call(e);
3201
+ d && g(!1), (S = e.beforeEnter) == null || S.call(e);
3201
3202
  }), x = I(() => {
3202
3203
  var S;
3203
- f && g(!1), (S = e.beforeLeave) == null || S.call(e);
3204
+ d && g(!1), (S = e.beforeLeave) == null || S.call(e);
3204
3205
  }), k = J();
3205
3206
  return E.createElement(Gr.Provider, { value: m }, E.createElement(Yr.Provider, { value: b }, k({ ourProps: { ...v, as: xe, children: E.createElement(Vs, { ref: l, ...v, ...o, beforeEnter: w, beforeLeave: x }) }, theirProps: {}, defaultTag: xe, features: _s, visible: u === "visible", name: "Transition" })));
3206
3207
  }
@@ -3230,12 +3231,12 @@ let to = Q(function(e, t) {
3230
3231
  i = (function() {
3231
3232
  return i === "dialog" || i === "alertdialog" ? i : (m.current || (m.current = !0, console.warn(`Invalid role [${i}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
3232
3233
  })();
3233
- let f = it();
3234
- a === void 0 && f !== null && (a = (f & ue.Open) === ue.Open);
3234
+ let d = it();
3235
+ a === void 0 && d !== null && (a = (d & ue.Open) === ue.Open);
3235
3236
  let g = V(null), h = le(g, t), b = Xe(g.current), v = a ? 0 : 1, [w, x] = Qi(id, { titleId: null, descriptionId: null, panelRef: Zi() }), k = I(() => o(!1)), S = I((A) => x({ type: 0, id: A })), C = Ur() ? v === 0 : !1, [P, M] = Ts(), z = { get current() {
3236
3237
  var A;
3237
3238
  return (A = w.panelRef.current) != null ? A : g.current;
3238
- } }, N = ra(), { resolveContainers: $ } = $s({ mainTreeNode: N, portals: P, defaultContainers: [z] }), L = f !== null ? (f & ue.Closing) === ue.Closing : !1;
3239
+ } }, N = ra(), { resolveContainers: $ } = $s({ mainTreeNode: N, portals: P, defaultContainers: [z] }), L = d !== null ? (d & ue.Closing) === ue.Closing : !1;
3239
3240
  Ln(c || L ? !1 : C, { allowed: I(() => {
3240
3241
  var A, W;
3241
3242
  return [(W = (A = g.current) == null ? void 0 : A.closest("[data-headlessui-portal]")) != null ? W : null];
@@ -3243,7 +3244,7 @@ let to = Q(function(e, t) {
3243
3244
  var A;
3244
3245
  return [(A = N?.closest("body > *:not(#headlessui-portal-root)")) != null ? A : null];
3245
3246
  }) });
3246
- let _ = kt.get(null);
3247
+ let _ = wt.get(null);
3247
3248
  se(() => {
3248
3249
  if (C) return _.actions.push(n), () => _.actions.pop(n);
3249
3250
  }, [_, n, C]);
@@ -3271,8 +3272,8 @@ let dd = "div";
3271
3272
  function fd(e, t) {
3272
3273
  let r = de(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = e, [{ dialogState: s, unmount: i }, l] = qr("Dialog.Panel"), c = le(t, l.panelRef), u = ce({ open: s === 0 }), p = I((b) => {
3273
3274
  b.stopPropagation();
3274
- }), m = { ref: c, id: n, onClick: p }, f = a ? Zt : xe, g = a ? { unmount: i } : {}, h = J();
3275
- return E.createElement(f, { ...g }, h({ ourProps: m, theirProps: o, slot: u, defaultTag: dd, name: "Dialog.Panel" }));
3275
+ }), m = { ref: c, id: n, onClick: p }, d = a ? Zt : xe, g = a ? { unmount: i } : {}, h = J();
3276
+ return E.createElement(d, { ...g }, h({ ourProps: m, theirProps: o, slot: u, defaultTag: dd, name: "Dialog.Panel" }));
3276
3277
  }
3277
3278
  let pd = "div";
3278
3279
  function md(e, t) {
@@ -3293,7 +3294,7 @@ function wd(e, t) {
3293
3294
  }
3294
3295
  let Xr = Q(wd), kd = "input";
3295
3296
  function Ed(e, t) {
3296
- let r = de(), n = It(), a = st(), { id: o = n || `headlessui-input-${r}`, disabled: s = a || !1, autoFocus: i = !1, invalid: l = !1, ...c } = e, u = At(), p = tr(), { isFocused: m, focusProps: f } = xt({ autoFocus: i }), { isHovered: g, hoverProps: h } = yt({ isDisabled: s }), b = Ie({ ref: t, id: o, "aria-labelledby": u, "aria-describedby": p, "aria-invalid": l ? "true" : void 0, disabled: s || void 0, autoFocus: i }, f, h), v = ce({ disabled: s, invalid: l, hover: g, focus: m, autofocus: i });
3297
+ let r = de(), n = It(), a = st(), { id: o = n || `headlessui-input-${r}`, disabled: s = a || !1, autoFocus: i = !1, invalid: l = !1, ...c } = e, u = At(), p = tr(), { isFocused: m, focusProps: d } = vt({ autoFocus: i }), { isHovered: g, hoverProps: h } = xt({ isDisabled: s }), b = Ie({ ref: t, id: o, "aria-labelledby": u, "aria-describedby": p, "aria-invalid": l ? "true" : void 0, disabled: s || void 0, autoFocus: i }, d, h), v = ce({ disabled: s, invalid: l, hover: g, focus: m, autofocus: i });
3297
3298
  return J()({ ourProps: b, theirProps: c, slot: v, defaultTag: kd, name: "Input" });
3298
3299
  }
3299
3300
  let Sd = Q(Ed), ro = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
@@ -3356,19 +3357,19 @@ let Cd = { 1(e) {
3356
3357
  if (t.focus === K.Previous) {
3357
3358
  let u = e.activeOptionIndex;
3358
3359
  if (u !== null) {
3359
- let p = e.options[u].dataRef.current.domRef, m = tt(t, { resolveItems: () => e.options, resolveActiveIndex: () => e.activeOptionIndex, resolveId: (f) => f.id, resolveDisabled: (f) => f.dataRef.current.disabled });
3360
+ let p = e.options[u].dataRef.current.domRef, m = tt(t, { resolveItems: () => e.options, resolveActiveIndex: () => e.activeOptionIndex, resolveId: (d) => d.id, resolveDisabled: (d) => d.dataRef.current.disabled });
3360
3361
  if (m !== null) {
3361
- let f = e.options[m].dataRef.current.domRef;
3362
- if (((n = p.current) == null ? void 0 : n.previousElementSibling) === f.current || ((a = f.current) == null ? void 0 : a.previousElementSibling) === null) return { ...i, activeOptionIndex: m };
3362
+ let d = e.options[m].dataRef.current.domRef;
3363
+ if (((n = p.current) == null ? void 0 : n.previousElementSibling) === d.current || ((a = d.current) == null ? void 0 : a.previousElementSibling) === null) return { ...i, activeOptionIndex: m };
3363
3364
  }
3364
3365
  }
3365
3366
  } else if (t.focus === K.Next) {
3366
3367
  let u = e.activeOptionIndex;
3367
3368
  if (u !== null) {
3368
- let p = e.options[u].dataRef.current.domRef, m = tt(t, { resolveItems: () => e.options, resolveActiveIndex: () => e.activeOptionIndex, resolveId: (f) => f.id, resolveDisabled: (f) => f.dataRef.current.disabled });
3369
+ let p = e.options[u].dataRef.current.domRef, m = tt(t, { resolveItems: () => e.options, resolveActiveIndex: () => e.activeOptionIndex, resolveId: (d) => d.id, resolveDisabled: (d) => d.dataRef.current.disabled });
3369
3370
  if (m !== null) {
3370
- let f = e.options[m].dataRef.current.domRef;
3371
- if (((o = p.current) == null ? void 0 : o.nextElementSibling) === f.current || ((s = f.current) == null ? void 0 : s.nextElementSibling) === null) return { ...i, activeOptionIndex: m };
3371
+ let d = e.options[m].dataRef.current.domRef;
3372
+ if (((o = p.current) == null ? void 0 : o.nextElementSibling) === d.current || ((s = d.current) == null ? void 0 : s.nextElementSibling) === null) return { ...i, activeOptionIndex: m };
3372
3373
  }
3373
3374
  }
3374
3375
  }
@@ -3468,7 +3469,7 @@ let Cd = { 1(e) {
3468
3469
  });
3469
3470
  });
3470
3471
  {
3471
- let r = this.state.id, n = kt.get(null);
3472
+ let r = this.state.id, n = wt.get(null);
3472
3473
  this.disposables.add(n.on(Mn.Push, (a) => {
3473
3474
  !n.selectors.isTop(a, r) && this.state.listboxState === 0 && this.actions.closeListbox();
3474
3475
  })), this.on(0, () => n.actions.push(r)), this.on(1, () => n.actions.pop(r));
@@ -3516,13 +3517,13 @@ function fr(e) {
3516
3517
  }
3517
3518
  let jd = xe;
3518
3519
  function Rd(e, t) {
3519
- let r = de(), n = st(), { value: a, defaultValue: o, form: s, name: i, onChange: l, by: c, invalid: u = !1, disabled: p = n || !1, horizontal: m = !1, multiple: f = !1, __demoMode: g = !1, ...h } = e;
3520
+ let r = de(), n = st(), { value: a, defaultValue: o, form: s, name: i, onChange: l, by: c, invalid: u = !1, disabled: p = n || !1, horizontal: m = !1, multiple: d = !1, __demoMode: g = !1, ...h } = e;
3520
3521
  const b = m ? "horizontal" : "vertical";
3521
- let v = le(t), w = Rn(o), [x = f ? [] : void 0, k] = jn(a, l, w), S = Gs({ id: r, __demoMode: g }), C = V({ static: !1, hold: !1 }), P = V(/* @__PURE__ */ new Map()), M = El(c), z = ee((te) => he(N.mode, { [rt.Multi]: () => x.some((A) => M(A, te)), [rt.Single]: () => M(x, te) }), [x]), N = ce({ value: x, disabled: p, invalid: u, mode: f ? rt.Multi : rt.Single, orientation: b, onChange: k, compare: M, isSelected: z, optionsPropsRef: C, listRef: P });
3522
+ let v = le(t), w = Rn(o), [x = d ? [] : void 0, k] = jn(a, l, w), S = Gs({ id: r, __demoMode: g }), C = V({ static: !1, hold: !1 }), P = V(/* @__PURE__ */ new Map()), M = El(c), z = ee((te) => he(N.mode, { [rt.Multi]: () => x.some((A) => M(A, te)), [rt.Single]: () => M(x, te) }), [x]), N = ce({ value: x, disabled: p, invalid: u, mode: d ? rt.Multi : rt.Single, orientation: b, onChange: k, compare: M, isSelected: z, optionsPropsRef: C, listRef: P });
3522
3523
  se(() => {
3523
3524
  S.state.dataRef.current = N;
3524
3525
  }, [N]);
3525
- let $ = re(S, (te) => te.listboxState), L = kt.get(null), _ = re(L, ee((te) => L.selectors.isTop(te, r), [L, r])), [R, D] = re(S, (te) => [te.buttonElement, te.optionsElement]);
3526
+ let $ = re(S, (te) => te.listboxState), L = wt.get(null), _ = re(L, ee((te) => L.selectors.isTop(te, r), [L, r])), [R, D] = re(S, (te) => [te.buttonElement, te.optionsElement]);
3526
3527
  Dr(_, [R, D], (te, A) => {
3527
3528
  S.send({ type: Ws.CloseListbox }), ir(A, sr.Loose) || (te.preventDefault(), R?.focus());
3528
3529
  });
@@ -3533,12 +3534,12 @@ function Rd(e, t) {
3533
3534
  }
3534
3535
  let $d = "button";
3535
3536
  function Id(e, t) {
3536
- let r = de(), n = It(), a = fr("Listbox.Button"), o = sa("Listbox.Button"), { id: s = n || `headlessui-listbox-button-${r}`, disabled: i = a.disabled || !1, autoFocus: l = !1, ...c } = e, u = le(t, Qn(), o.actions.setButtonElement), p = ks(), [m, f, g] = re(o, (D) => [D.listboxState, D.buttonElement, D.optionsElement]), h = m === Se.Open;
3537
- ts(h, { trigger: f, action: ee((D) => {
3538
- if (f != null && f.contains(D.target)) return et.Ignore;
3537
+ let r = de(), n = It(), a = fr("Listbox.Button"), o = sa("Listbox.Button"), { id: s = n || `headlessui-listbox-button-${r}`, disabled: i = a.disabled || !1, autoFocus: l = !1, ...c } = e, u = le(t, Qn(), o.actions.setButtonElement), p = ks(), [m, d, g] = re(o, (D) => [D.listboxState, D.buttonElement, D.optionsElement]), h = m === Se.Open;
3538
+ ts(h, { trigger: d, action: ee((D) => {
3539
+ if (d != null && d.contains(D.target)) return et.Ignore;
3539
3540
  let F = D.target.closest('[role="option"]:not([data-disabled])');
3540
3541
  return we(F) ? et.Select(F) : g != null && g.contains(D.target) ? et.Ignore : et.Close;
3541
- }, [f, g]), close: o.actions.closeListbox, select: o.actions.selectActiveOption });
3542
+ }, [d, g]), close: o.actions.closeListbox, select: o.actions.selectActiveOption });
3542
3543
  let b = I((D) => {
3543
3544
  switch (D.key) {
3544
3545
  case Y.Enter:
@@ -3556,21 +3557,21 @@ function Id(e, t) {
3556
3557
  D.key === Y.Space && D.preventDefault();
3557
3558
  }), w = Yo((D) => {
3558
3559
  var F;
3559
- o.state.listboxState === Se.Open ? (bt(() => o.actions.closeListbox()), (F = o.state.buttonElement) == null || F.focus({ preventScroll: !0 })) : (D.preventDefault(), o.actions.openListbox({ focus: K.Nothing }));
3560
- }), x = I((D) => D.preventDefault()), k = At([s]), S = tr(), { isFocusVisible: C, focusProps: P } = xt({ autoFocus: l }), { isHovered: M, hoverProps: z } = yt({ isDisabled: i }), { pressed: N, pressProps: $ } = er({ disabled: i }), L = ce({ open: m === Se.Open, active: N || m === Se.Open, disabled: i, invalid: a.invalid, value: a.value, hover: M, focus: C, autofocus: l }), _ = re(o, (D) => D.listboxState === Se.Open), R = Ie(p(), { ref: u, id: s, type: Fr(e, f), "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": _, "aria-labelledby": k, "aria-describedby": S, disabled: i || void 0, autoFocus: l, onKeyDown: b, onKeyUp: v, onKeyPress: x }, w, P, z, $);
3560
+ o.state.listboxState === Se.Open ? (ht(() => o.actions.closeListbox()), (F = o.state.buttonElement) == null || F.focus({ preventScroll: !0 })) : (D.preventDefault(), o.actions.openListbox({ focus: K.Nothing }));
3561
+ }), x = I((D) => D.preventDefault()), k = At([s]), S = tr(), { isFocusVisible: C, focusProps: P } = vt({ autoFocus: l }), { isHovered: M, hoverProps: z } = xt({ isDisabled: i }), { pressed: N, pressProps: $ } = er({ disabled: i }), L = ce({ open: m === Se.Open, active: N || m === Se.Open, disabled: i, invalid: a.invalid, value: a.value, hover: M, focus: C, autofocus: l }), _ = re(o, (D) => D.listboxState === Se.Open), R = Ie(p(), { ref: u, id: s, type: Fr(e, d), "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": _, "aria-labelledby": k, "aria-describedby": S, disabled: i || void 0, autoFocus: l, onKeyDown: b, onKeyUp: v, onKeyPress: x }, w, P, z, $);
3561
3562
  return J()({ ourProps: R, theirProps: c, slot: L, defaultTag: $d, name: "Listbox.Button" });
3562
3563
  }
3563
3564
  let Ks = pe(!1), Ad = "div", Dd = Ae.RenderStrategy | Ae.Static;
3564
3565
  function Fd(e, t) {
3565
3566
  let r = de(), { id: n = `headlessui-listbox-options-${r}`, anchor: a, portal: o = !1, modal: s = !0, transition: i = !1, ...l } = e, c = Xn(a), [u, p] = X(null);
3566
3567
  c && (o = !0);
3567
- let m = fr("Listbox.Options"), f = sa("Listbox.Options"), [g, h, b, v] = re(f, (B) => [B.listboxState, B.buttonElement, B.optionsElement, B.__demoMode]), w = Xe(h), x = Xe(b), k = it(), [S, C] = cr(i, u, k !== null ? (k & ue.Open) === ue.Open : g === Se.Open);
3568
- Ar(S, h, f.actions.closeListbox);
3568
+ let m = fr("Listbox.Options"), d = sa("Listbox.Options"), [g, h, b, v] = re(d, (B) => [B.listboxState, B.buttonElement, B.optionsElement, B.__demoMode]), w = Xe(h), x = Xe(b), k = it(), [S, C] = cr(i, u, k !== null ? (k & ue.Open) === ue.Open : g === Se.Open);
3569
+ Ar(S, h, d.actions.closeListbox);
3569
3570
  let P = v ? !1 : s && g === Se.Open;
3570
3571
  Mr(P, x);
3571
3572
  let M = v ? !1 : s && g === Se.Open;
3572
3573
  Ln(M, { allowed: ee(() => [h, b], [h, b]) });
3573
- let z = re(f, f.selectors.didButtonMove) ? !1 : S, N = re(f, f.selectors.hasFrozenValue) && !e.static, $ = Ss(N, m.value), L = ee((B) => m.compare($, B), [m.compare, $]), _ = re(f, (B) => {
3574
+ let z = re(d, d.selectors.didButtonMove) ? !1 : S, N = re(d, d.selectors.hasFrozenValue) && !e.static, $ = Ss(N, m.value), L = ee((B) => m.compare($, B), [m.compare, $]), _ = re(d, (B) => {
3574
3575
  var q;
3575
3576
  if (c == null || !((q = c?.to) != null && q.includes("selection"))) return null;
3576
3577
  let be = B.options.findIndex((ye) => L(ye.dataRef.current.value));
@@ -3580,7 +3581,7 @@ function Fd(e, t) {
3580
3581
  if (_ === null) return { ...c, inner: void 0 };
3581
3582
  let B = Array.from(m.listRef.current.values());
3582
3583
  return { ...c, inner: { listRef: { current: B }, index: _ } };
3583
- })(), [D, F] = Jn(R), U = Zn(), O = le(t, c ? D : null, f.actions.setOptionsElement, p), j = ze();
3584
+ })(), [D, F] = Jn(R), U = Zn(), O = le(t, c ? D : null, d.actions.setOptionsElement, p), j = ze();
3584
3585
  ne(() => {
3585
3586
  let B = b;
3586
3587
  B && g === Se.Open && (Tn(B) || B == null || B.focus({ preventScroll: !0 }));
@@ -3589,40 +3590,40 @@ function Fd(e, t) {
3589
3590
  var q;
3590
3591
  switch (j.dispose(), B.key) {
3591
3592
  case Y.Space:
3592
- if (f.state.searchQuery !== "") return B.preventDefault(), B.stopPropagation(), f.actions.search(B.key);
3593
+ if (d.state.searchQuery !== "") return B.preventDefault(), B.stopPropagation(), d.actions.search(B.key);
3593
3594
  case Y.Enter:
3594
- B.preventDefault(), B.stopPropagation(), f.actions.selectActiveOption();
3595
+ B.preventDefault(), B.stopPropagation(), d.actions.selectActiveOption();
3595
3596
  break;
3596
3597
  case he(m.orientation, { vertical: Y.ArrowDown, horizontal: Y.ArrowRight }):
3597
- return B.preventDefault(), B.stopPropagation(), f.actions.goToOption({ focus: K.Next });
3598
+ return B.preventDefault(), B.stopPropagation(), d.actions.goToOption({ focus: K.Next });
3598
3599
  case he(m.orientation, { vertical: Y.ArrowUp, horizontal: Y.ArrowLeft }):
3599
- return B.preventDefault(), B.stopPropagation(), f.actions.goToOption({ focus: K.Previous });
3600
+ return B.preventDefault(), B.stopPropagation(), d.actions.goToOption({ focus: K.Previous });
3600
3601
  case Y.Home:
3601
3602
  case Y.PageUp:
3602
- return B.preventDefault(), B.stopPropagation(), f.actions.goToOption({ focus: K.First });
3603
+ return B.preventDefault(), B.stopPropagation(), d.actions.goToOption({ focus: K.First });
3603
3604
  case Y.End:
3604
3605
  case Y.PageDown:
3605
- return B.preventDefault(), B.stopPropagation(), f.actions.goToOption({ focus: K.Last });
3606
+ return B.preventDefault(), B.stopPropagation(), d.actions.goToOption({ focus: K.Last });
3606
3607
  case Y.Escape:
3607
- B.preventDefault(), B.stopPropagation(), bt(() => f.actions.closeListbox()), (q = f.state.buttonElement) == null || q.focus({ preventScroll: !0 });
3608
+ B.preventDefault(), B.stopPropagation(), ht(() => d.actions.closeListbox()), (q = d.state.buttonElement) == null || q.focus({ preventScroll: !0 });
3608
3609
  return;
3609
3610
  case Y.Tab:
3610
- B.preventDefault(), B.stopPropagation(), bt(() => f.actions.closeListbox()), Zo(f.state.buttonElement, B.shiftKey ? ge.Previous : ge.Next);
3611
+ B.preventDefault(), B.stopPropagation(), ht(() => d.actions.closeListbox()), Zo(d.state.buttonElement, B.shiftKey ? ge.Previous : ge.Next);
3611
3612
  break;
3612
3613
  default:
3613
- B.key.length === 1 && (f.actions.search(B.key), j.setTimeout(() => f.actions.clearSearch(), 350));
3614
+ B.key.length === 1 && (d.actions.search(B.key), j.setTimeout(() => d.actions.clearSearch(), 350));
3614
3615
  break;
3615
3616
  }
3616
- }), ae = re(f, (B) => {
3617
+ }), ae = re(d, (B) => {
3617
3618
  var q;
3618
3619
  return (q = B.buttonElement) == null ? void 0 : q.id;
3619
- }), te = ce({ open: g === Se.Open }), A = Ie(c ? U() : {}, { id: n, ref: O, "aria-activedescendant": re(f, f.selectors.activeDescendantId), "aria-multiselectable": m.mode === rt.Multi ? !0 : void 0, "aria-labelledby": ae, "aria-orientation": m.orientation, onKeyDown: H, role: "listbox", tabIndex: g === Se.Open ? 0 : void 0, style: { ...l.style, ...F, "--button-width": Fn(S, h, !0).width }, ...lr(C) }), W = J(), G = fe(() => m.mode === rt.Multi ? m : { ...m, isSelected: L }, [m, L]);
3620
+ }), te = ce({ open: g === Se.Open }), A = Ie(c ? U() : {}, { id: n, ref: O, "aria-activedescendant": re(d, d.selectors.activeDescendantId), "aria-multiselectable": m.mode === rt.Multi ? !0 : void 0, "aria-labelledby": ae, "aria-orientation": m.orientation, onKeyDown: H, role: "listbox", tabIndex: g === Se.Open ? 0 : void 0, style: { ...l.style, ...F, "--button-width": Fn(S, h, !0).width }, ...lr(C) }), W = J(), G = fe(() => m.mode === rt.Multi ? m : { ...m, isSelected: L }, [m, L]);
3620
3621
  return E.createElement(Wr, { enabled: o ? e.static || S : !1, ownerDocument: w }, E.createElement(Qr.Provider, { value: G }, W({ ourProps: A, theirProps: l, slot: te, defaultTag: Ad, features: Dd, visible: z, name: "Listbox.Options" })));
3621
3622
  }
3622
3623
  let Md = "div";
3623
3624
  function Ld(e, t) {
3624
- let r = de(), { id: n = `headlessui-listbox-option-${r}`, disabled: a = !1, value: o, ...s } = e, i = oe(Ks) === !0, l = fr("Listbox.Option"), c = sa("Listbox.Option"), u = re(c, (N) => c.selectors.isActive(N, n)), p = l.isSelected(o), m = V(null), f = zs(m), g = Ke({ disabled: a, value: o, domRef: m, get textValue() {
3625
- return f();
3625
+ let r = de(), { id: n = `headlessui-listbox-option-${r}`, disabled: a = !1, value: o, ...s } = e, i = oe(Ks) === !0, l = fr("Listbox.Option"), c = sa("Listbox.Option"), u = re(c, (N) => c.selectors.isActive(N, n)), p = l.isSelected(o), m = V(null), d = zs(m), g = Ke({ disabled: a, value: o, domRef: m, get textValue() {
3626
+ return d();
3626
3627
  } }), h = le(t, m, (N) => {
3627
3628
  N ? l.listRef.current.set(n, N) : l.listRef.current.delete(n);
3628
3629
  }), b = re(c, (N) => c.selectors.shouldScrollIntoView(N, n));
@@ -3673,19 +3674,19 @@ let Gd = { 1(e) {
3673
3674
  if (t.focus === K.Previous) {
3674
3675
  let u = e.activeItemIndex;
3675
3676
  if (u !== null) {
3676
- let p = e.items[u].dataRef.current.domRef, m = tt(t, { resolveItems: () => e.items, resolveActiveIndex: () => e.activeItemIndex, resolveId: (f) => f.id, resolveDisabled: (f) => f.dataRef.current.disabled });
3677
+ let p = e.items[u].dataRef.current.domRef, m = tt(t, { resolveItems: () => e.items, resolveActiveIndex: () => e.activeItemIndex, resolveId: (d) => d.id, resolveDisabled: (d) => d.dataRef.current.disabled });
3677
3678
  if (m !== null) {
3678
- let f = e.items[m].dataRef.current.domRef;
3679
- if (((n = p.current) == null ? void 0 : n.previousElementSibling) === f.current || ((a = f.current) == null ? void 0 : a.previousElementSibling) === null) return { ...i, activeItemIndex: m };
3679
+ let d = e.items[m].dataRef.current.domRef;
3680
+ if (((n = p.current) == null ? void 0 : n.previousElementSibling) === d.current || ((a = d.current) == null ? void 0 : a.previousElementSibling) === null) return { ...i, activeItemIndex: m };
3680
3681
  }
3681
3682
  }
3682
3683
  } else if (t.focus === K.Next) {
3683
3684
  let u = e.activeItemIndex;
3684
3685
  if (u !== null) {
3685
- let p = e.items[u].dataRef.current.domRef, m = tt(t, { resolveItems: () => e.items, resolveActiveIndex: () => e.activeItemIndex, resolveId: (f) => f.id, resolveDisabled: (f) => f.dataRef.current.disabled });
3686
+ let p = e.items[u].dataRef.current.domRef, m = tt(t, { resolveItems: () => e.items, resolveActiveIndex: () => e.activeItemIndex, resolveId: (d) => d.id, resolveDisabled: (d) => d.dataRef.current.disabled });
3686
3687
  if (m !== null) {
3687
- let f = e.items[m].dataRef.current.domRef;
3688
- if (((o = p.current) == null ? void 0 : o.nextElementSibling) === f.current || ((s = f.current) == null ? void 0 : s.nextElementSibling) === null) return { ...i, activeItemIndex: m };
3688
+ let d = e.items[m].dataRef.current.domRef;
3689
+ if (((o = p.current) == null ? void 0 : o.nextElementSibling) === d.current || ((s = d.current) == null ? void 0 : s.nextElementSibling) === null) return { ...i, activeItemIndex: m };
3689
3690
  }
3690
3691
  }
3691
3692
  }
@@ -3740,7 +3741,7 @@ let Gd = { 1(e) {
3740
3741
  });
3741
3742
  });
3742
3743
  {
3743
- let r = this.state.id, n = kt.get(null);
3744
+ let r = this.state.id, n = wt.get(null);
3744
3745
  this.disposables.add(n.on(Mn.Push, (a) => {
3745
3746
  !n.selectors.isTop(a, r) && this.state.menuState === 0 && this.send({ type: 1 });
3746
3747
  })), this.on(0, () => n.actions.push(r)), this.on(1, () => n.actions.pop(r));
@@ -3775,15 +3776,15 @@ function ei({ id: e, __demoMode: t = !1 }) {
3775
3776
  }
3776
3777
  let qd = xe;
3777
3778
  function Xd(e, t) {
3778
- let r = de(), { __demoMode: n = !1, ...a } = e, o = ei({ id: r, __demoMode: n }), [s, i, l] = re(o, (b) => [b.menuState, b.itemsElement, b.buttonElement]), c = le(t), u = kt.get(null), p = re(u, ee((b) => u.selectors.isTop(b, r), [u, r]));
3779
+ let r = de(), { __demoMode: n = !1, ...a } = e, o = ei({ id: r, __demoMode: n }), [s, i, l] = re(o, (b) => [b.menuState, b.itemsElement, b.buttonElement]), c = le(t), u = wt.get(null), p = re(u, ee((b) => u.selectors.isTop(b, r), [u, r]));
3779
3780
  Dr(p, [l, i], (b, v) => {
3780
3781
  var w;
3781
3782
  o.send({ type: ie.CloseMenu }), ir(v, sr.Loose) || (b.preventDefault(), (w = o.state.buttonElement) == null || w.focus());
3782
3783
  });
3783
3784
  let m = I(() => {
3784
3785
  o.send({ type: ie.CloseMenu });
3785
- }), f = ce({ open: s === ke.Open, close: m }), g = { ref: c }, h = J();
3786
- return E.createElement(ea, null, E.createElement(Js.Provider, { value: o }, E.createElement(zr, { value: he(s, { [ke.Open]: ue.Open, [ke.Closed]: ue.Closed }) }, h({ ourProps: g, theirProps: a, slot: f, defaultTag: qd, name: "Menu" }))));
3786
+ }), d = ce({ open: s === ke.Open, close: m }), g = { ref: c }, h = J();
3787
+ return E.createElement(ea, null, E.createElement(Js.Provider, { value: o }, E.createElement(zr, { value: he(s, { [ke.Open]: ue.Open, [ke.Closed]: ue.Closed }) }, h({ ourProps: g, theirProps: a, slot: d, defaultTag: qd, name: "Menu" }))));
3787
3788
  }
3788
3789
  let Qd = "button";
3789
3790
  function Zd(e, t) {
@@ -3800,7 +3801,7 @@ function Zd(e, t) {
3800
3801
  }
3801
3802
  }), m = I((N) => {
3802
3803
  N.key === Y.Space && N.preventDefault();
3803
- }), [f, g, h] = re(r, (N) => [N.menuState, N.buttonElement, N.itemsElement]), b = f === ke.Open;
3804
+ }), [d, g, h] = re(r, (N) => [N.menuState, N.buttonElement, N.itemsElement]), b = d === ke.Open;
3804
3805
  ts(b, { trigger: g, action: ee((N) => {
3805
3806
  if (g != null && g.contains(N.target)) return et.Ignore;
3806
3807
  let $ = N.target.closest('[role="menuitem"]:not([data-disabled])');
@@ -3808,13 +3809,13 @@ function Zd(e, t) {
3808
3809
  }, [g, h]), close: ee(() => r.send({ type: ie.CloseMenu }), []), select: ee((N) => N.click(), []) });
3809
3810
  let v = Yo((N) => {
3810
3811
  var $;
3811
- o || (f === ke.Open ? (bt(() => r.send({ type: ie.CloseMenu })), ($ = l.current) == null || $.focus({ preventScroll: !0 })) : (N.preventDefault(), r.send({ type: ie.OpenMenu, focus: { focus: K.Nothing }, trigger: Or.Pointer })));
3812
- }), { isFocusVisible: w, focusProps: x } = xt({ autoFocus: s }), { isHovered: k, hoverProps: S } = yt({ isDisabled: o }), { pressed: C, pressProps: P } = er({ disabled: o }), M = ce({ open: f === ke.Open, active: C || f === ke.Open, disabled: o, hover: k, focus: w, autofocus: s }), z = Ie(c(), { ref: u, id: a, type: Fr(e, l.current), "aria-haspopup": "menu", "aria-controls": h?.id, "aria-expanded": f === ke.Open, disabled: o || void 0, autoFocus: s, onKeyDown: p, onKeyUp: m }, v, x, S, P);
3812
+ o || (d === ke.Open ? (ht(() => r.send({ type: ie.CloseMenu })), ($ = l.current) == null || $.focus({ preventScroll: !0 })) : (N.preventDefault(), r.send({ type: ie.OpenMenu, focus: { focus: K.Nothing }, trigger: Or.Pointer })));
3813
+ }), { isFocusVisible: w, focusProps: x } = vt({ autoFocus: s }), { isHovered: k, hoverProps: S } = xt({ isDisabled: o }), { pressed: C, pressProps: P } = er({ disabled: o }), M = ce({ open: d === ke.Open, active: C || d === ke.Open, disabled: o, hover: k, focus: w, autofocus: s }), z = Ie(c(), { ref: u, id: a, type: Fr(e, l.current), "aria-haspopup": "menu", "aria-controls": h?.id, "aria-expanded": d === ke.Open, disabled: o || void 0, autoFocus: s, onKeyDown: p, onKeyUp: m }, v, x, S, P);
3813
3814
  return J()({ ourProps: z, theirProps: i, slot: M, defaultTag: Qd, name: "Menu.Button" });
3814
3815
  }
3815
3816
  let Jd = "div", ef = Ae.RenderStrategy | Ae.Static;
3816
3817
  function tf(e, t) {
3817
- let r = de(), { id: n = `headlessui-menu-items-${r}`, anchor: a, portal: o = !1, modal: s = !0, transition: i = !1, ...l } = e, c = Xn(a), u = ia("Menu.Items"), [p, m] = Jn(c), f = Zn(), [g, h] = X(null), b = le(t, c ? p : null, I((O) => u.send({ type: ie.SetItemsElement, element: O })), h), [v, w] = re(u, (O) => [O.menuState, O.buttonElement]), x = Xe(w), k = Xe(g);
3818
+ let r = de(), { id: n = `headlessui-menu-items-${r}`, anchor: a, portal: o = !1, modal: s = !0, transition: i = !1, ...l } = e, c = Xn(a), u = ia("Menu.Items"), [p, m] = Jn(c), d = Zn(), [g, h] = X(null), b = le(t, c ? p : null, I((O) => u.send({ type: ie.SetItemsElement, element: O })), h), [v, w] = re(u, (O) => [O.menuState, O.buttonElement]), x = Xe(w), k = Xe(g);
3818
3819
  c && (o = !0);
3819
3820
  let S = it(), [C, P] = cr(i, g, S !== null ? (S & ue.Open) === ue.Open : v === ke.Open);
3820
3821
  Ar(C, w, () => {
@@ -3856,10 +3857,10 @@ function tf(e, t) {
3856
3857
  case Y.PageDown:
3857
3858
  return O.preventDefault(), O.stopPropagation(), u.send({ type: ie.GoToItem, focus: K.Last });
3858
3859
  case Y.Escape:
3859
- O.preventDefault(), O.stopPropagation(), bt(() => u.send({ type: ie.CloseMenu })), (ae = u.state.buttonElement) == null || ae.focus({ preventScroll: !0 });
3860
+ O.preventDefault(), O.stopPropagation(), ht(() => u.send({ type: ie.CloseMenu })), (ae = u.state.buttonElement) == null || ae.focus({ preventScroll: !0 });
3860
3861
  break;
3861
3862
  case Y.Tab:
3862
- O.preventDefault(), O.stopPropagation(), bt(() => u.send({ type: ie.CloseMenu })), Zo(u.state.buttonElement, O.shiftKey ? ge.Previous : ge.Next);
3863
+ O.preventDefault(), O.stopPropagation(), ht(() => u.send({ type: ie.CloseMenu })), Zo(u.state.buttonElement, O.shiftKey ? ge.Previous : ge.Next);
3863
3864
  break;
3864
3865
  default:
3865
3866
  O.key.length === 1 && (u.send({ type: ie.Search, value: O.key }), L.setTimeout(() => u.send({ type: ie.ClearSearch }), 350));
@@ -3867,7 +3868,7 @@ function tf(e, t) {
3867
3868
  }
3868
3869
  }), R = I((O) => {
3869
3870
  O.key === Y.Space && O.preventDefault();
3870
- }), D = ce({ open: v === ke.Open }), F = Ie(c ? f() : {}, { "aria-activedescendant": re(u, u.selectors.activeDescendantId), "aria-labelledby": re(u, (O) => {
3871
+ }), D = ce({ open: v === ke.Open }), F = Ie(c ? d() : {}, { "aria-activedescendant": re(u, u.selectors.activeDescendantId), "aria-labelledby": re(u, (O) => {
3871
3872
  var j;
3872
3873
  return (j = O.buttonElement) == null ? void 0 : j.id;
3873
3874
  }), id: n, onKeyDown: _, onKeyUp: R, role: "menu", tabIndex: v === ke.Open ? 0 : void 0, ref: b, style: { ...l.style, ...m, "--button-width": Fn(C, w, !0).width }, ...lr(P) }), U = J();
@@ -3888,7 +3889,7 @@ function nf(e, t) {
3888
3889
  se(() => {
3889
3890
  m.current.disabled = a;
3890
3891
  }, [m, a]), se(() => (s.actions.registerItem(n, m), () => s.actions.unregisterItem(n)), [m, n]);
3891
- let f = I(() => {
3892
+ let d = I(() => {
3892
3893
  s.send({ type: ie.CloseMenu });
3893
3894
  }), g = I(($) => {
3894
3895
  if (a) return $.preventDefault();
@@ -3900,7 +3901,7 @@ function nf(e, t) {
3900
3901
  b.wasMoved($) && (a || i || s.send({ type: ie.GoToItem, focus: K.Specific, id: n, trigger: Or.Pointer }));
3901
3902
  }), x = I(($) => {
3902
3903
  b.wasMoved($) && (a || i && s.state.activationTrigger === Or.Pointer && s.send({ type: ie.GoToItem, focus: K.Nothing }));
3903
- }), [k, S] = nr(), [C, P] = Rr(), M = ce({ active: i, focus: i, disabled: a, close: f }), z = { id: n, ref: c, role: "menuitem", tabIndex: a === !0 ? void 0 : -1, "aria-disabled": a === !0 ? !0 : void 0, "aria-labelledby": k, "aria-describedby": C, disabled: void 0, onClick: g, onFocus: h, onPointerEnter: v, onMouseEnter: v, onPointerMove: w, onMouseMove: w, onPointerLeave: x, onMouseLeave: x }, N = J();
3904
+ }), [k, S] = nr(), [C, P] = Rr(), M = ce({ active: i, focus: i, disabled: a, close: d }), z = { id: n, ref: c, role: "menuitem", tabIndex: a === !0 ? void 0 : -1, "aria-disabled": a === !0 ? !0 : void 0, "aria-labelledby": k, "aria-describedby": C, disabled: void 0, onClick: g, onFocus: h, onPointerEnter: v, onMouseEnter: v, onPointerMove: w, onMouseMove: w, onPointerLeave: x, onMouseLeave: x }, N = J();
3904
3905
  return E.createElement(S, null, E.createElement(P, null, N({ ourProps: z, theirProps: o, slot: M, defaultTag: rf, name: "Menu.Item" })));
3905
3906
  }
3906
3907
  let af = "div";
@@ -3942,13 +3943,13 @@ class la extends Ir {
3942
3943
  }, open: () => this.send({ type: 0 }), setButtonId: (r) => this.send({ type: 3, buttonId: r }), setButton: (r) => this.send({ type: 2, button: r }), setPanelId: (r) => this.send({ type: 5, panelId: r }), setPanel: (r) => this.send({ type: 4, panel: r }) }), lo(this, "selectors", { isPortalled: (r) => {
3943
3944
  var n;
3944
3945
  if (!r.button || !r.panel) return !1;
3945
- let a = (n = wt(r.button)) != null ? n : document;
3946
+ let a = (n = yt(r.button)) != null ? n : document;
3946
3947
  for (let p of a.querySelectorAll("body > *")) if (Number(p?.contains(r.button)) ^ Number(p?.contains(r.panel))) return !0;
3947
3948
  let o = or(a), s = o.indexOf(r.button), i = (s + o.length - 1) % o.length, l = (s + 1) % o.length, c = o[i], u = o[l];
3948
3949
  return !r.panel.contains(c) && !r.panel.contains(u);
3949
3950
  } });
3950
3951
  {
3951
- let r = this.state.id, n = kt.get(null);
3952
+ let r = this.state.id, n = wt.get(null);
3952
3953
  this.on(0, () => n.actions.push(r)), this.on(1, () => n.actions.pop(r));
3953
3954
  }
3954
3955
  }
@@ -3987,9 +3988,9 @@ function Ef(e, t) {
3987
3988
  var r;
3988
3989
  let n = de(), { __demoMode: a = !1, ...o } = e, s = yf({ id: n, __demoMode: a }), i = V(null), l = le(t, zo((R) => {
3989
3990
  i.current = R;
3990
- })), [c, u, p, m, f] = re(s, ee((R) => [R.popoverState, R.button, R.panel, R.buttonId, R.panelId], [])), g = zl((r = i.current) != null ? r : u), h = Ke(m), b = Ke(f), v = fe(() => ({ buttonId: h, panelId: b, close: s.actions.close }), [h, b, s]), w = ai(), x = w?.registerPopover, k = I(() => {
3991
+ })), [c, u, p, m, d] = re(s, ee((R) => [R.popoverState, R.button, R.panel, R.buttonId, R.panelId], [])), g = zl((r = i.current) != null ? r : u), h = Ke(m), b = Ke(d), v = fe(() => ({ buttonId: h, panelId: b, close: s.actions.close }), [h, b, s]), w = ai(), x = w?.registerPopover, k = I(() => {
3991
3992
  var R, D;
3992
- let F = ht((R = i.current) != null ? R : u);
3993
+ let F = gt((R = i.current) != null ? R : u);
3993
3994
  return (D = w?.isFocusWithinPopoverGroup()) != null ? D : F && (u?.contains(F) || p?.contains(F));
3994
3995
  });
3995
3996
  ne(() => x?.(v), [x, v]);
@@ -4011,7 +4012,7 @@ function Ef(e, t) {
4011
4012
  }
4012
4013
  let Sf = "button";
4013
4014
  function Nf(e, t) {
4014
- let r = de(), { id: n = `headlessui-popover-button-${r}`, disabled: a = !1, autoFocus: o = !1, ...s } = e, i = Zr("Popover.Button"), [l, c, u, p, m, f, g] = re(i, ee((W) => [W.popoverState, i.selectors.isPortalled(W), W.button, W.buttonId, W.panel, W.panelId, W.afterButtonSentinel], [])), h = V(null), b = `headlessui-focus-sentinel-${de()}`, v = ai(), w = v?.closeOthers, x = wf() !== null;
4015
+ let r = de(), { id: n = `headlessui-popover-button-${r}`, disabled: a = !1, autoFocus: o = !1, ...s } = e, i = Zr("Popover.Button"), [l, c, u, p, m, d, g] = re(i, ee((W) => [W.popoverState, i.selectors.isPortalled(W), W.button, W.buttonId, W.panel, W.panelId, W.afterButtonSentinel], [])), h = V(null), b = `headlessui-focus-sentinel-${de()}`, v = ai(), w = v?.closeOthers, x = wf() !== null;
4015
4016
  ne(() => {
4016
4017
  if (!x) return i.actions.setButtonId(n), () => i.actions.setButtonId(null);
4017
4018
  }, [x, n, i]);
@@ -4042,7 +4043,7 @@ function Nf(e, t) {
4042
4043
  case Y.Escape:
4043
4044
  if (i.state.popoverState !== ve.Open) return w?.(i.state.buttonId);
4044
4045
  if (!h.current) return;
4045
- let be = ht(h.current);
4046
+ let be = gt(h.current);
4046
4047
  if (be && !h.current.contains(be)) return;
4047
4048
  W.preventDefault(), W.stopPropagation(), i.actions.close();
4048
4049
  break;
@@ -4054,11 +4055,11 @@ function Nf(e, t) {
4054
4055
  Ot(W.currentTarget) || a || (x ? (i.actions.close(), (G = i.state.button) == null || G.focus()) : (W.preventDefault(), W.stopPropagation(), i.state.popoverState === ve.Closed ? (w?.(i.state.buttonId), i.actions.open()) : i.actions.close(), (B = i.state.button) == null || B.focus()));
4055
4056
  }), N = I((W) => {
4056
4057
  W.preventDefault(), W.stopPropagation();
4057
- }), { isFocusVisible: $, focusProps: L } = xt({ autoFocus: o }), { isHovered: _, hoverProps: R } = yt({ isDisabled: a }), { pressed: D, pressProps: F } = er({ disabled: a }), U = l === ve.Open, O = ce({ open: U, active: D || U, disabled: a, hover: _, focus: $, autofocus: o }), j = Fr(e, u), H = x ? Ie({ ref: C, type: j, onKeyDown: P, onClick: z, disabled: a || void 0, autoFocus: o }, L, R, F) : Ie({ ref: S, id: p, type: j, "aria-expanded": l === ve.Open, "aria-controls": m ? f : void 0, disabled: a || void 0, autoFocus: o, onKeyDown: P, onKeyUp: M, onClick: z, onMouseDown: N }, L, R, F), ae = aa(), te = I(() => {
4058
+ }), { isFocusVisible: $, focusProps: L } = vt({ autoFocus: o }), { isHovered: _, hoverProps: R } = xt({ isDisabled: a }), { pressed: D, pressProps: F } = er({ disabled: a }), U = l === ve.Open, O = ce({ open: U, active: D || U, disabled: a, hover: _, focus: $, autofocus: o }), j = Fr(e, u), H = x ? Ie({ ref: C, type: j, onKeyDown: P, onClick: z, disabled: a || void 0, autoFocus: o }, L, R, F) : Ie({ ref: S, id: p, type: j, "aria-expanded": l === ve.Open, "aria-controls": m ? d : void 0, disabled: a || void 0, autoFocus: o, onKeyDown: P, onKeyUp: M, onClick: z, onMouseDown: N }, L, R, F), ae = aa(), te = I(() => {
4058
4059
  if (!we(i.state.panel)) return;
4059
4060
  let W = i.state.panel;
4060
4061
  function G() {
4061
- he(ae.current, { [Ce.Forwards]: () => Oe(W, ge.First), [Ce.Backwards]: () => Oe(W, ge.Last) }) === Ct.Error && Oe(or(gt(i.state.button)).filter((B) => B.dataset.headlessuiFocusGuard !== "true"), he(ae.current, { [Ce.Forwards]: ge.Next, [Ce.Backwards]: ge.Previous }), { relativeTo: i.state.button });
4062
+ he(ae.current, { [Ce.Forwards]: () => Oe(W, ge.First), [Ce.Backwards]: () => Oe(W, ge.Last) }) === Ct.Error && Oe(or(mt(i.state.button)).filter((B) => B.dataset.headlessuiFocusGuard !== "true"), he(ae.current, { [Ce.Forwards]: ge.Next, [Ce.Backwards]: ge.Previous }), { relativeTo: i.state.button });
4062
4063
  }
4063
4064
  G();
4064
4065
  }), A = J();
@@ -4066,26 +4067,26 @@ function Nf(e, t) {
4066
4067
  }
4067
4068
  let Pf = "div", Of = Ae.RenderStrategy | Ae.Static;
4068
4069
  function oi(e, t) {
4069
- let r = de(), { id: n = `headlessui-popover-backdrop-${r}`, transition: a = !1, ...o } = e, s = Zr("Popover.Backdrop"), i = re(s, ee((v) => v.popoverState, [])), [l, c] = X(null), u = le(t, c), p = it(), [m, f] = cr(a, l, p !== null ? (p & ue.Open) === ue.Open : i === ve.Open), g = I((v) => {
4070
+ let r = de(), { id: n = `headlessui-popover-backdrop-${r}`, transition: a = !1, ...o } = e, s = Zr("Popover.Backdrop"), i = re(s, ee((v) => v.popoverState, [])), [l, c] = X(null), u = le(t, c), p = it(), [m, d] = cr(a, l, p !== null ? (p & ue.Open) === ue.Open : i === ve.Open), g = I((v) => {
4070
4071
  if (Ot(v.currentTarget)) return v.preventDefault();
4071
4072
  s.actions.close();
4072
- }), h = ce({ open: i === ve.Open }), b = { ref: u, id: n, "aria-hidden": !0, onClick: g, ...lr(f) };
4073
+ }), h = ce({ open: i === ve.Open }), b = { ref: u, id: n, "aria-hidden": !0, onClick: g, ...lr(d) };
4073
4074
  return J()({ ourProps: b, theirProps: o, slot: h, defaultTag: Pf, features: Of, visible: m, name: "Popover.Backdrop" });
4074
4075
  }
4075
4076
  let Cf = "div", Tf = Ae.RenderStrategy | Ae.Static;
4076
4077
  function jf(e, t) {
4077
- let r = de(), { id: n = `headlessui-popover-panel-${r}`, focus: a = !1, anchor: o, portal: s = !1, modal: i = !1, transition: l = !1, ...c } = e, u = Zr("Popover.Panel"), p = re(u, u.selectors.isPortalled), [m, f, g, h, b] = re(u, ee((A) => [A.popoverState, A.button, A.__demoMode, A.beforePanelSentinel, A.afterPanelSentinel], [])), v = `headlessui-focus-sentinel-before-${r}`, w = `headlessui-focus-sentinel-after-${r}`, x = V(null), k = Xn(o), [S, C] = Jn(k), P = Zn();
4078
+ let r = de(), { id: n = `headlessui-popover-panel-${r}`, focus: a = !1, anchor: o, portal: s = !1, modal: i = !1, transition: l = !1, ...c } = e, u = Zr("Popover.Panel"), p = re(u, u.selectors.isPortalled), [m, d, g, h, b] = re(u, ee((A) => [A.popoverState, A.button, A.__demoMode, A.beforePanelSentinel, A.afterPanelSentinel], [])), v = `headlessui-focus-sentinel-before-${r}`, w = `headlessui-focus-sentinel-after-${r}`, x = V(null), k = Xn(o), [S, C] = Jn(k), P = Zn();
4078
4079
  k && (s = !0);
4079
- let [M, z] = X(null), N = le(x, t, k ? S : null, u.actions.setPanel, z), $ = Xe(f), L = Xe(x.current);
4080
+ let [M, z] = X(null), N = le(x, t, k ? S : null, u.actions.setPanel, z), $ = Xe(d), L = Xe(x.current);
4080
4081
  se(() => (u.actions.setPanelId(n), () => u.actions.setPanelId(null)), [n, u]);
4081
4082
  let _ = it(), [R, D] = cr(l, M, _ !== null ? (_ & ue.Open) === ue.Open : m === ve.Open);
4082
- Ar(R, f, u.actions.close), Mr(g ? !1 : i && R, L);
4083
+ Ar(R, d, u.actions.close), Mr(g ? !1 : i && R, L);
4083
4084
  let F = I((A) => {
4084
4085
  var W;
4085
4086
  switch (A.key) {
4086
4087
  case Y.Escape:
4087
4088
  if (u.state.popoverState !== ve.Open || !x.current) return;
4088
- let G = ht(x.current);
4089
+ let G = gt(x.current);
4089
4090
  if (G && !x.current.contains(G)) return;
4090
4091
  A.preventDefault(), A.stopPropagation(), u.actions.close(), (W = u.state.button) == null || W.focus();
4091
4092
  break;
@@ -4096,14 +4097,14 @@ function jf(e, t) {
4096
4097
  e.static || m === ve.Closed && ((A = e.unmount) == null || A) && u.actions.setPanel(null);
4097
4098
  }, [m, e.unmount, e.static, u]), ne(() => {
4098
4099
  if (g || !a || m !== ve.Open || !x.current) return;
4099
- let A = ht(x.current);
4100
+ let A = gt(x.current);
4100
4101
  x.current.contains(A) || Oe(x.current, ge.First);
4101
4102
  }, [g, a, x.current, m]);
4102
4103
  let U = ce({ open: m === ve.Open, close: u.actions.refocusableClose }), O = Ie(k ? P() : {}, { ref: N, id: n, onKeyDown: F, onBlur: a && m === ve.Open ? (A) => {
4103
4104
  var W, G, B, q, be;
4104
4105
  let ye = A.relatedTarget;
4105
4106
  ye && x.current && ((W = x.current) != null && W.contains(ye) || (u.actions.close(), ((B = (G = h.current) == null ? void 0 : G.contains) != null && B.call(G, ye) || (be = (q = b.current) == null ? void 0 : q.contains) != null && be.call(q, ye)) && ye.focus({ preventScroll: !0 })));
4106
- } : void 0, tabIndex: -1, style: { ...c.style, ...C, "--button-width": Fn(R, f, !0).width }, ...lr(D) }), j = aa(), H = I(() => {
4107
+ } : void 0, tabIndex: -1, style: { ...c.style, ...C, "--button-width": Fn(R, d, !0).width }, ...lr(D) }), j = aa(), H = I(() => {
4107
4108
  let A = x.current;
4108
4109
  if (!A) return;
4109
4110
  function W() {
@@ -4123,12 +4124,12 @@ function jf(e, t) {
4123
4124
  he(j.current, { [Ce.Forwards]: () => {
4124
4125
  var G;
4125
4126
  if (!u.state.button) return;
4126
- let B = (G = gt(u.state.button)) != null ? G : document.body, q = or(B), be = q.indexOf(u.state.button), ye = q.slice(0, be + 1), St = [...q.slice(be + 1), ...ye];
4127
- for (let _t of St.slice()) if (_t.dataset.headlessuiFocusGuard === "true" || M != null && M.contains(_t)) {
4128
- let mr = St.indexOf(_t);
4129
- mr !== -1 && St.splice(mr, 1);
4127
+ let B = (G = mt(u.state.button)) != null ? G : document.body, q = or(B), be = q.indexOf(u.state.button), ye = q.slice(0, be + 1), Et = [...q.slice(be + 1), ...ye];
4128
+ for (let _t of Et.slice()) if (_t.dataset.headlessuiFocusGuard === "true" || M != null && M.contains(_t)) {
4129
+ let mr = Et.indexOf(_t);
4130
+ mr !== -1 && Et.splice(mr, 1);
4130
4131
  }
4131
- Oe(St, ge.First, { sorted: !1 });
4132
+ Oe(Et, ge.First, { sorted: !1 });
4132
4133
  }, [Ce.Backwards]: () => {
4133
4134
  var G;
4134
4135
  Oe(A, ge.Previous) === Ct.Error && ((G = u.state.button) == null || G.focus());
@@ -4151,17 +4152,17 @@ function $f(e, t) {
4151
4152
  });
4152
4153
  }), i = I((h) => (o((b) => [...b, h]), () => s(h))), l = I(() => {
4153
4154
  var h;
4154
- let b = gt(r.current);
4155
+ let b = mt(r.current);
4155
4156
  if (!b) return !1;
4156
- let v = ht(r.current);
4157
+ let v = gt(r.current);
4157
4158
  return (h = r.current) != null && h.contains(v) ? !0 : a.some((w) => {
4158
4159
  var x, k;
4159
4160
  return ((x = b.getElementById(w.buttonId.current)) == null ? void 0 : x.contains(v)) || ((k = b.getElementById(w.panelId.current)) == null ? void 0 : k.contains(v));
4160
4161
  });
4161
4162
  }), c = I((h) => {
4162
4163
  for (let b of a) b.buttonId.current !== h && b.close();
4163
- }), u = fe(() => ({ registerPopover: i, unregisterPopover: s, isFocusWithinPopoverGroup: l, closeOthers: c }), [i, s, l, c]), p = ce({}), m = e, f = { ref: n }, g = J();
4164
- return E.createElement(Pr, null, E.createElement(ca.Provider, { value: u }, g({ ourProps: f, theirProps: m, slot: p, defaultTag: Rf, name: "Popover.Group" })));
4164
+ }), u = fe(() => ({ registerPopover: i, unregisterPopover: s, isFocusWithinPopoverGroup: l, closeOthers: c }), [i, s, l, c]), p = ce({}), m = e, d = { ref: n }, g = J();
4165
+ return E.createElement(Pr, null, E.createElement(ca.Provider, { value: u }, g({ ourProps: d, theirProps: m, slot: p, defaultTag: Rf, name: "Popover.Group" })));
4165
4166
  }
4166
4167
  let If = Q(Ef), Cr = Q(Nf), Af = Q(oi), Df = Q(oi), ua = Q(jf), Ff = Q($f), si = Object.assign(If, { Button: Cr, Backdrop: Df, Overlay: Af, Panel: ua, Group: Ff }), da = pe(null);
4167
4168
  da.displayName = "GroupContext";
@@ -4176,7 +4177,7 @@ function Lf(e) {
4176
4177
  let _f = "button";
4177
4178
  function Vf(e, t) {
4178
4179
  var r;
4179
- let n = de(), a = It(), o = st(), { id: s = a || `headlessui-switch-${n}`, disabled: i = o || !1, checked: l, defaultChecked: c, onChange: u, name: p, value: m, form: f, autoFocus: g = !1, ...h } = e, b = oe(da), [v, w] = X(null), x = V(null), k = le(x, t, b === null ? null : b.setSwitch, w), S = Rn(c), [C, P] = jn(l, u, S ?? !1), M = ze(), [z, N] = X(!1), $ = I(() => {
4180
+ let n = de(), a = It(), o = st(), { id: s = a || `headlessui-switch-${n}`, disabled: i = o || !1, checked: l, defaultChecked: c, onChange: u, name: p, value: m, form: d, autoFocus: g = !1, ...h } = e, b = oe(da), [v, w] = X(null), x = V(null), k = le(x, t, b === null ? null : b.setSwitch, w), S = Rn(c), [C, P] = jn(l, u, S ?? !1), M = ze(), [z, N] = X(!1), $ = I(() => {
4180
4181
  N(!0), P?.(!C), M.nextFrame(() => {
4181
4182
  N(!1);
4182
4183
  });
@@ -4185,14 +4186,14 @@ function Vf(e, t) {
4185
4186
  q.preventDefault(), $();
4186
4187
  }), _ = I((q) => {
4187
4188
  q.key === Y.Space ? (q.preventDefault(), $()) : q.key === Y.Enter && $n(q.currentTarget);
4188
- }), R = I((q) => q.preventDefault()), D = At(), F = tr(), { isFocusVisible: U, focusProps: O } = xt({ autoFocus: g }), { isHovered: j, hoverProps: H } = yt({ isDisabled: i }), { pressed: ae, pressProps: te } = er({ disabled: i }), A = ce({ checked: C, disabled: i, hover: j, focus: U, active: ae, autofocus: g, changing: z }), W = Ie({ id: s, ref: k, role: "switch", type: Fr(e, v), tabIndex: e.tabIndex === -1 ? 0 : (r = e.tabIndex) != null ? r : 0, "aria-checked": C, "aria-labelledby": D, "aria-describedby": F, disabled: i || void 0, autoFocus: g, onClick: L, onKeyUp: _, onKeyPress: R }, O, H, te), G = ee(() => {
4189
+ }), R = I((q) => q.preventDefault()), D = At(), F = tr(), { isFocusVisible: U, focusProps: O } = vt({ autoFocus: g }), { isHovered: j, hoverProps: H } = xt({ isDisabled: i }), { pressed: ae, pressProps: te } = er({ disabled: i }), A = ce({ checked: C, disabled: i, hover: j, focus: U, active: ae, autofocus: g, changing: z }), W = Ie({ id: s, ref: k, role: "switch", type: Fr(e, v), tabIndex: e.tabIndex === -1 ? 0 : (r = e.tabIndex) != null ? r : 0, "aria-checked": C, "aria-labelledby": D, "aria-describedby": F, disabled: i || void 0, autoFocus: g, onClick: L, onKeyUp: _, onKeyPress: R }, O, H, te), G = ee(() => {
4189
4190
  if (S !== void 0) return P?.(S);
4190
4191
  }, [P, S]), B = J();
4191
- return E.createElement(E.Fragment, null, p != null && E.createElement(In, { disabled: i, data: { [p]: m || "on" }, overrides: { type: "checkbox", checked: C }, form: f, onReset: G }), B({ ourProps: W, theirProps: h, slot: A, defaultTag: _f, name: "Switch" }));
4192
+ return E.createElement(E.Fragment, null, p != null && E.createElement(In, { disabled: i, data: { [p]: m || "on" }, overrides: { type: "checkbox", checked: C }, form: d, onReset: G }), B({ ourProps: W, theirProps: h, slot: A, defaultTag: _f, name: "Switch" }));
4192
4193
  }
4193
4194
  let Bf = Q(Vf), Hf = Lf, zf = Dt, Wf = rr, Uf = Object.assign(Bf, { Group: Hf, Label: zf, Description: Wf }), Yf = "textarea";
4194
4195
  function Gf(e, t) {
4195
- let r = de(), n = It(), a = st(), { id: o = n || `headlessui-textarea-${r}`, disabled: s = a || !1, autoFocus: i = !1, invalid: l = !1, ...c } = e, u = At(), p = tr(), { isFocused: m, focusProps: f } = xt({ autoFocus: i }), { isHovered: g, hoverProps: h } = yt({ isDisabled: s }), b = Ie({ ref: t, id: o, "aria-labelledby": u, "aria-describedby": p, "aria-invalid": l ? "true" : void 0, disabled: s || void 0, autoFocus: i }, f, h), v = ce({ disabled: s, invalid: l, hover: g, focus: m, autofocus: i });
4196
+ let r = de(), n = It(), a = st(), { id: o = n || `headlessui-textarea-${r}`, disabled: s = a || !1, autoFocus: i = !1, invalid: l = !1, ...c } = e, u = At(), p = tr(), { isFocused: m, focusProps: d } = vt({ autoFocus: i }), { isHovered: g, hoverProps: h } = xt({ isDisabled: s }), b = Ie({ ref: t, id: o, "aria-labelledby": u, "aria-describedby": p, "aria-invalid": l ? "true" : void 0, disabled: s || void 0, autoFocus: i }, d, h), v = ce({ disabled: s, invalid: l, hover: g, focus: m, autofocus: i });
4196
4197
  return J()({ ourProps: b, theirProps: c, slot: v, defaultTag: Yf, name: "Textarea" });
4197
4198
  }
4198
4199
  let Kf = Q(Gf);
@@ -4240,13 +4241,13 @@ const qf = Z(
4240
4241
  title: i,
4241
4242
  ...l
4242
4243
  }, c) => {
4243
- const [u, p] = X(!1), m = o && !u, f = /* @__PURE__ */ d.jsx(
4244
+ const [u, p] = X(!1), m = o && !u, d = /* @__PURE__ */ f.jsx(
4244
4245
  "div",
4245
4246
  {
4246
4247
  ref: c,
4247
4248
  className: T(qf({ size: t, colorScheme: r, shape: n }), e),
4248
4249
  ...l,
4249
- children: m ? /* @__PURE__ */ d.jsx(
4250
+ children: m ? /* @__PURE__ */ f.jsx(
4250
4251
  "img",
4251
4252
  {
4252
4253
  src: o,
@@ -4254,19 +4255,19 @@ const qf = Z(
4254
4255
  className: "h-full w-full object-cover",
4255
4256
  onError: () => p(!0)
4256
4257
  }
4257
- ) : /* @__PURE__ */ d.jsx("span", { className: "leading-none uppercase", children: a?.slice(0, 2) })
4258
+ ) : /* @__PURE__ */ f.jsx("span", { className: "leading-none uppercase", children: a?.slice(0, 2) })
4258
4259
  }
4259
4260
  );
4260
- return i ? /* @__PURE__ */ d.jsxs(si, { className: "relative inline-flex", children: [
4261
- /* @__PURE__ */ d.jsx(
4261
+ return i ? /* @__PURE__ */ f.jsxs(si, { className: "relative inline-flex", children: [
4262
+ /* @__PURE__ */ f.jsx(
4262
4263
  Cr,
4263
4264
  {
4264
4265
  as: "div",
4265
4266
  className: "outline-none cursor-pointer focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 rounded-full",
4266
- children: f
4267
+ children: d
4267
4268
  }
4268
4269
  ),
4269
- /* @__PURE__ */ d.jsx(
4270
+ /* @__PURE__ */ f.jsx(
4270
4271
  ua,
4271
4272
  {
4272
4273
  anchor: "bottom",
@@ -4278,7 +4279,7 @@ const qf = Z(
4278
4279
  children: i
4279
4280
  }
4280
4281
  )
4281
- ] }) : f;
4282
+ ] }) : d;
4282
4283
  }
4283
4284
  );
4284
4285
  fa.displayName = "Avatar";
@@ -4372,7 +4373,7 @@ const Xf = Z(
4372
4373
  rightIcon: s,
4373
4374
  children: i,
4374
4375
  ...l
4375
- }, c) => /* @__PURE__ */ d.jsxs(
4376
+ }, c) => /* @__PURE__ */ f.jsxs(
4376
4377
  "span",
4377
4378
  {
4378
4379
  ref: c,
@@ -4382,9 +4383,9 @@ const Xf = Z(
4382
4383
  ),
4383
4384
  ...l,
4384
4385
  children: [
4385
- o && /* @__PURE__ */ d.jsx("span", { className: "flex shrink-0 items-center justify-center opacity-70", children: o }),
4386
- /* @__PURE__ */ d.jsx("span", { className: "truncate min-w-0", children: i }),
4387
- s && /* @__PURE__ */ d.jsx("span", { className: "flex shrink-0 items-center justify-center opacity-70", children: s })
4386
+ o && /* @__PURE__ */ f.jsx("span", { className: "flex shrink-0 items-center justify-center opacity-70", children: o }),
4387
+ /* @__PURE__ */ f.jsx("span", { className: "truncate min-w-0", children: i }),
4388
+ s && /* @__PURE__ */ f.jsx("span", { className: "flex shrink-0 items-center justify-center opacity-70", children: s })
4388
4389
  ]
4389
4390
  }
4390
4391
  )
@@ -4438,14 +4439,14 @@ const Qf = Z(
4438
4439
  brandColorBottom: o,
4439
4440
  children: s,
4440
4441
  ...i
4441
- }, l) => /* @__PURE__ */ d.jsxs(
4442
+ }, l) => /* @__PURE__ */ f.jsxs(
4442
4443
  "div",
4443
4444
  {
4444
4445
  ref: l,
4445
4446
  className: T(Qf({ variant: t, padding: r }), e),
4446
4447
  ...i,
4447
4448
  children: [
4448
- n && /* @__PURE__ */ d.jsx(
4449
+ n && /* @__PURE__ */ f.jsx(
4449
4450
  "div",
4450
4451
  {
4451
4452
  className: T(
@@ -4456,7 +4457,7 @@ const Qf = Z(
4456
4457
  }
4457
4458
  ),
4458
4459
  s,
4459
- n && /* @__PURE__ */ d.jsx(
4460
+ n && /* @__PURE__ */ f.jsx(
4460
4461
  "div",
4461
4462
  {
4462
4463
  className: T(
@@ -4544,7 +4545,7 @@ const Jf = Z(
4544
4545
  };
4545
4546
  return ne(() => {
4546
4547
  a && l.current && l.current.setAttribute("aria-checked", "mixed");
4547
- }, [a, o.checked]), /* @__PURE__ */ d.jsx(
4548
+ }, [a, o.checked]), /* @__PURE__ */ f.jsx(
4548
4549
  yl,
4549
4550
  {
4550
4551
  ref: c,
@@ -4562,7 +4563,7 @@ const Jf = Z(
4562
4563
  p || o.disabled ? "opacity-50" : "cursor-pointer",
4563
4564
  e
4564
4565
  ),
4565
- children: ({ checked: u }) => /* @__PURE__ */ d.jsx(
4566
+ children: ({ checked: u }) => /* @__PURE__ */ f.jsx(
4566
4567
  me,
4567
4568
  {
4568
4569
  icon: a ? Vi : Po,
@@ -4622,11 +4623,11 @@ const t0 = Z(
4622
4623
  ...l
4623
4624
  }) => {
4624
4625
  const [c, u] = X(a), p = o !== void 0 ? o : c, m = () => {
4625
- const f = !p;
4626
- o === void 0 && u(f), s?.(f);
4626
+ const d = !p;
4627
+ o === void 0 && u(d), s?.(d);
4627
4628
  };
4628
- return /* @__PURE__ */ d.jsxs("div", { className: T("w-full flex flex-col", n), ...l, children: [
4629
- /* @__PURE__ */ d.jsxs(
4629
+ return /* @__PURE__ */ f.jsxs("div", { className: T("w-full flex flex-col", n), ...l, children: [
4630
+ /* @__PURE__ */ f.jsxs(
4630
4631
  "button",
4631
4632
  {
4632
4633
  type: "button",
@@ -4640,15 +4641,15 @@ const t0 = Z(
4640
4641
  p && r === "outline" && "border-b-transparent dark:border-b-transparent"
4641
4642
  ),
4642
4643
  children: [
4643
- /* @__PURE__ */ d.jsx("span", { className: "flex-1 text-left text-inherit", children: e }),
4644
- /* @__PURE__ */ d.jsx(
4644
+ /* @__PURE__ */ f.jsx("span", { className: "flex-1 text-left text-inherit", children: e }),
4645
+ /* @__PURE__ */ f.jsx(
4645
4646
  "span",
4646
4647
  {
4647
4648
  className: T(
4648
4649
  "ml-2 flex items-center transition-transform duration-200 text-inherit",
4649
4650
  p ? "rotate-180" : ""
4650
4651
  ),
4651
- children: i || /* @__PURE__ */ d.jsx(
4652
+ children: i || /* @__PURE__ */ f.jsx(
4652
4653
  me,
4653
4654
  {
4654
4655
  icon: Oo,
@@ -4660,7 +4661,7 @@ const t0 = Z(
4660
4661
  ]
4661
4662
  }
4662
4663
  ),
4663
- /* @__PURE__ */ d.jsx(
4664
+ /* @__PURE__ */ f.jsx(
4664
4665
  jt,
4665
4666
  {
4666
4667
  show: p,
@@ -4670,7 +4671,7 @@ const t0 = Z(
4670
4671
  leave: "transition duration-75 ease-out",
4671
4672
  leaveFrom: "transform scale-100 opacity-100",
4672
4673
  leaveTo: "transform scale-95 opacity-0",
4673
- children: /* @__PURE__ */ d.jsx(
4674
+ children: /* @__PURE__ */ f.jsx(
4674
4675
  "div",
4675
4676
  {
4676
4677
  className: T(r0({ variant: r }), "rounded-b-md"),
@@ -4737,8 +4738,8 @@ const t0 = Z(
4737
4738
  ...u
4738
4739
  }, p) => {
4739
4740
  const m = !!a || s;
4740
- return /* @__PURE__ */ d.jsxs(Xr, { className: T("w-full space-y-1.5", e), children: [
4741
- r && /* @__PURE__ */ d.jsx(
4741
+ return /* @__PURE__ */ f.jsxs(Xr, { className: T("w-full space-y-1.5", e), children: [
4742
+ r && /* @__PURE__ */ f.jsx(
4742
4743
  Dt,
4743
4744
  {
4744
4745
  className: T(
@@ -4749,8 +4750,8 @@ const t0 = Z(
4749
4750
  children: r
4750
4751
  }
4751
4752
  ),
4752
- /* @__PURE__ */ d.jsxs("div", { className: "relative", children: [
4753
- i && /* @__PURE__ */ d.jsx(
4753
+ /* @__PURE__ */ f.jsxs("div", { className: "relative", children: [
4754
+ i && /* @__PURE__ */ f.jsx(
4754
4755
  "div",
4755
4756
  {
4756
4757
  className: T(
@@ -4760,7 +4761,7 @@ const t0 = Z(
4760
4761
  children: i
4761
4762
  }
4762
4763
  ),
4763
- /* @__PURE__ */ d.jsx(
4764
+ /* @__PURE__ */ f.jsx(
4764
4765
  Sd,
4765
4766
  {
4766
4767
  ref: p,
@@ -4774,7 +4775,7 @@ const t0 = Z(
4774
4775
  ...u
4775
4776
  }
4776
4777
  ),
4777
- l && /* @__PURE__ */ d.jsx(
4778
+ l && /* @__PURE__ */ f.jsx(
4778
4779
  "div",
4779
4780
  {
4780
4781
  className: T(
@@ -4785,7 +4786,7 @@ const t0 = Z(
4785
4786
  }
4786
4787
  )
4787
4788
  ] }),
4788
- (n || a) && /* @__PURE__ */ d.jsx(
4789
+ (n || a) && /* @__PURE__ */ f.jsx(
4789
4790
  rr,
4790
4791
  {
4791
4792
  className: T(
@@ -4826,7 +4827,7 @@ const o0 = Z(
4826
4827
  size: "md"
4827
4828
  }
4828
4829
  }
4829
- ), dt = ({
4830
+ ), St = ({
4830
4831
  as: e,
4831
4832
  className: t,
4832
4833
  variant: r,
@@ -4838,21 +4839,21 @@ const o0 = Z(
4838
4839
  href: l,
4839
4840
  ...c
4840
4841
  }) => {
4841
- const u = e || "a", p = o || typeof l == "string" && l.startsWith("http"), m = s ?? p, f = T(
4842
+ const u = e || "a", p = o || typeof l == "string" && l.startsWith("http"), m = s ?? p, d = T(
4842
4843
  o0({ variant: r, underline: n, size: a }),
4843
4844
  t
4844
4845
  );
4845
- return p ? /* @__PURE__ */ d.jsxs(
4846
+ return p ? /* @__PURE__ */ f.jsxs(
4846
4847
  "a",
4847
4848
  {
4848
4849
  href: l,
4849
- className: f,
4850
+ className: d,
4850
4851
  target: "_blank",
4851
4852
  rel: "noopener noreferrer",
4852
4853
  ...c,
4853
4854
  children: [
4854
4855
  i,
4855
- m && /* @__PURE__ */ d.jsx(
4856
+ m && /* @__PURE__ */ f.jsx(
4856
4857
  me,
4857
4858
  {
4858
4859
  icon: xa,
@@ -4862,15 +4863,15 @@ const o0 = Z(
4862
4863
  )
4863
4864
  ]
4864
4865
  }
4865
- ) : /* @__PURE__ */ d.jsxs(
4866
+ ) : /* @__PURE__ */ f.jsxs(
4866
4867
  u,
4867
4868
  {
4868
- className: f,
4869
+ className: d,
4869
4870
  ...l !== void 0 ? { href: l } : {},
4870
4871
  ...c,
4871
4872
  children: [
4872
4873
  i,
4873
- m && /* @__PURE__ */ d.jsx(
4874
+ m && /* @__PURE__ */ f.jsx(
4874
4875
  me,
4875
4876
  {
4876
4877
  icon: xa,
@@ -4895,11 +4896,11 @@ const o0 = Z(
4895
4896
  errorMessage: c,
4896
4897
  ...u
4897
4898
  }, p) => {
4898
- const [m, f] = E.useState(t), g = r !== void 0, h = g ? r : m, b = () => {
4899
+ const [m, d] = E.useState(t), g = r !== void 0, h = g ? r : m, b = () => {
4899
4900
  const v = !h;
4900
- g || f(v), n?.(v);
4901
+ g || d(v), n?.(v);
4901
4902
  };
4902
- return /* @__PURE__ */ d.jsx(
4903
+ return /* @__PURE__ */ f.jsx(
4903
4904
  ii,
4904
4905
  {
4905
4906
  ref: p,
@@ -4909,7 +4910,7 @@ const o0 = Z(
4909
4910
  error: l,
4910
4911
  errorMessage: c,
4911
4912
  className: T("[&_input::-ms-reveal]:hidden", u.className),
4912
- endIcon: e ? /* @__PURE__ */ d.jsx(
4913
+ endIcon: e ? /* @__PURE__ */ f.jsx(
4913
4914
  "button",
4914
4915
  {
4915
4916
  type: "button",
@@ -4923,7 +4924,7 @@ const o0 = Z(
4923
4924
  "focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
4924
4925
  s && "cursor-not-allowed opacity-40 hover:opacity-40"
4925
4926
  ),
4926
- children: /* @__PURE__ */ d.jsx(
4927
+ children: /* @__PURE__ */ f.jsx(
4927
4928
  me,
4928
4929
  {
4929
4930
  icon: h ? Bi : Hi,
@@ -5026,7 +5027,7 @@ const i0 = Z(
5026
5027
  leadingIcon: s,
5027
5028
  children: i,
5028
5029
  ...l
5029
- }, c) => /* @__PURE__ */ d.jsxs(
5030
+ }, c) => /* @__PURE__ */ f.jsxs(
5030
5031
  "span",
5031
5032
  {
5032
5033
  ref: c,
@@ -5036,8 +5037,8 @@ const i0 = Z(
5036
5037
  a ? (
5037
5038
  // The pulse is a sibling ring rather than an animation on the dot
5038
5039
  // itself, so the dot stays a crisp solid circle while it radiates.
5039
- /* @__PURE__ */ d.jsxs("span", { className: "relative inline-flex shrink-0", "aria-hidden": "true", children: [
5040
- o && /* @__PURE__ */ d.jsx(
5040
+ /* @__PURE__ */ f.jsxs("span", { className: "relative inline-flex shrink-0", "aria-hidden": "true", children: [
5041
+ o && /* @__PURE__ */ f.jsx(
5041
5042
  "span",
5042
5043
  {
5043
5044
  className: T(
@@ -5046,9 +5047,9 @@ const i0 = Z(
5046
5047
  )
5047
5048
  }
5048
5049
  ),
5049
- /* @__PURE__ */ d.jsx("span", { className: T(uo({ colorScheme: t, variant: r, size: n }), "relative") })
5050
+ /* @__PURE__ */ f.jsx("span", { className: T(uo({ colorScheme: t, variant: r, size: n }), "relative") })
5050
5051
  ] })
5051
- ) : s && /* @__PURE__ */ d.jsx("span", { className: "inline-flex shrink-0 items-center", "aria-hidden": "true", children: s }),
5052
+ ) : s && /* @__PURE__ */ f.jsx("span", { className: "inline-flex shrink-0 items-center", "aria-hidden": "true", children: s }),
5052
5053
  i
5053
5054
  ]
5054
5055
  }
@@ -5078,17 +5079,26 @@ const c0 = Z(
5078
5079
  },
5079
5080
  defaultVariants: { size: "xs", tone: "faint", weight: "normal" }
5080
5081
  }
5081
- ), Tr = E.forwardRef(
5082
- ({ as: e = "span", className: t, size: r, tone: n, weight: a, children: o, ...s }, i) => /* @__PURE__ */ d.jsx(
5083
- e,
5082
+ );
5083
+ function Tr({
5084
+ as: e,
5085
+ className: t,
5086
+ size: r,
5087
+ tone: n,
5088
+ weight: a,
5089
+ children: o,
5090
+ ...s
5091
+ }) {
5092
+ const i = e ?? "span";
5093
+ return /* @__PURE__ */ f.jsx(
5094
+ i,
5084
5095
  {
5085
- ref: i,
5086
5096
  className: T(c0({ size: r, tone: n, weight: a }), t),
5087
5097
  ...s,
5088
5098
  children: o
5089
5099
  }
5090
- )
5091
- );
5100
+ );
5101
+ }
5092
5102
  Tr.displayName = "Eyebrow";
5093
5103
  const u0 = Z("font-mono text-[0.8125rem]", {
5094
5104
  variants: {
@@ -5104,7 +5114,7 @@ const u0 = Z("font-mono text-[0.8125rem]", {
5104
5114
  },
5105
5115
  defaultVariants: { colorScheme: "primary", surface: "none" }
5106
5116
  }), d0 = E.forwardRef(
5107
- ({ className: e, colorScheme: t, surface: r, children: n, ...a }, o) => /* @__PURE__ */ d.jsx(
5117
+ ({ className: e, colorScheme: t, surface: r, children: n, ...a }, o) => /* @__PURE__ */ f.jsx(
5108
5118
  "code",
5109
5119
  {
5110
5120
  ref: o,
@@ -5116,11 +5126,11 @@ const u0 = Z("font-mono text-[0.8125rem]", {
5116
5126
  );
5117
5127
  d0.displayName = "InlineCode";
5118
5128
  const f0 = E.forwardRef(
5119
- ({ label: e, trailing: t, align: r = "start", className: n, ...a }, o) => /* @__PURE__ */ d.jsxs("div", { ref: o, className: T("flex items-center gap-3", n), ...a, children: [
5120
- r === "end" && /* @__PURE__ */ d.jsx("span", { role: "presentation", className: "h-px flex-1 bg-gray-200 dark:bg-gray-800" }),
5121
- /* @__PURE__ */ d.jsx(Tr, { children: e }),
5122
- r === "start" && /* @__PURE__ */ d.jsx("span", { role: "presentation", className: "h-px flex-1 bg-gray-200 dark:bg-gray-800" }),
5123
- t && /* @__PURE__ */ d.jsx(Tr, { children: t })
5129
+ ({ label: e, trailing: t, align: r = "start", className: n, ...a }, o) => /* @__PURE__ */ f.jsxs("div", { ref: o, className: T("flex items-center gap-3", n), ...a, children: [
5130
+ r === "end" && /* @__PURE__ */ f.jsx("span", { role: "presentation", className: "h-px flex-1 bg-gray-200 dark:bg-gray-800" }),
5131
+ /* @__PURE__ */ f.jsx(Tr, { children: e }),
5132
+ r === "start" && /* @__PURE__ */ f.jsx("span", { role: "presentation", className: "h-px flex-1 bg-gray-200 dark:bg-gray-800" }),
5133
+ t && /* @__PURE__ */ f.jsx(Tr, { children: t })
5124
5134
  ] })
5125
5135
  );
5126
5136
  f0.displayName = "LabeledDivider";
@@ -5145,10 +5155,10 @@ const p0 = Z(
5145
5155
  defaultVariants: { size: "md", colorScheme: "neutral" }
5146
5156
  }
5147
5157
  ), m0 = E.forwardRef(
5148
- ({ value: e, label: t, source: r, size: n, colorScheme: a, className: o, ...s }, i) => /* @__PURE__ */ d.jsxs("div", { ref: i, className: T("flex flex-col gap-[3px]", o), ...s, children: [
5149
- /* @__PURE__ */ d.jsx("dd", { className: T("m-0", p0({ size: n, colorScheme: a })), children: e }),
5150
- /* @__PURE__ */ d.jsx("dt", { children: /* @__PURE__ */ d.jsx(Tr, { size: "xs", children: t }) }),
5151
- r && /* @__PURE__ */ d.jsx("span", { className: "font-mono text-[0.53125rem] leading-none tracking-[0.06em] text-gray-500 opacity-75 dark:text-gray-400", children: r })
5158
+ ({ value: e, label: t, source: r, size: n, colorScheme: a, className: o, ...s }, i) => /* @__PURE__ */ f.jsxs("div", { ref: i, className: T("flex flex-col gap-[3px]", o), ...s, children: [
5159
+ /* @__PURE__ */ f.jsx("dd", { className: T("m-0", p0({ size: n, colorScheme: a })), children: e }),
5160
+ /* @__PURE__ */ f.jsx("dt", { children: /* @__PURE__ */ f.jsx(Tr, { size: "xs", children: t }) }),
5161
+ r && /* @__PURE__ */ f.jsx("span", { className: "font-mono text-[0.53125rem] leading-none tracking-[0.06em] text-gray-500 opacity-75 dark:text-gray-400", children: r })
5152
5162
  ] })
5153
5163
  );
5154
5164
  m0.displayName = "Stat";
@@ -5174,42 +5184,46 @@ const x0 = E.forwardRef(
5174
5184
  storageKey: e = g0,
5175
5185
  onThemeChange: t,
5176
5186
  showLabel: r = !1,
5177
- toDarkLabel: n = "Switch to dark mode",
5178
- toLightLabel: a = "Switch to light mode",
5179
- variant: o = "ghost",
5180
- colorScheme: s = "neutral",
5181
- size: i = "sm",
5182
- ...l
5183
- }, c) => {
5184
- const u = jo(h0, b0, v0), p = ee(() => {
5185
- const m = !document.documentElement.classList.contains("dark");
5186
- document.documentElement.classList.toggle("dark", m);
5187
+ lightLabel: n = "Light",
5188
+ darkLabel: a = "Dark",
5189
+ lightIcon: o,
5190
+ darkIcon: s,
5191
+ toDarkLabel: i = "Switch to dark mode",
5192
+ toLightLabel: l = "Switch to light mode",
5193
+ variant: c = "ghost",
5194
+ colorScheme: u = "neutral",
5195
+ size: p = "sm",
5196
+ ...m
5197
+ }, d) => {
5198
+ const g = jo(h0, b0, v0), h = ee(() => {
5199
+ const b = !document.documentElement.classList.contains("dark");
5200
+ document.documentElement.classList.toggle("dark", b);
5187
5201
  try {
5188
- localStorage.setItem(e, m ? "dark" : "light");
5202
+ localStorage.setItem(e, b ? "dark" : "light");
5189
5203
  } catch {
5190
5204
  }
5191
- Sn.forEach((f) => f()), t?.(m ? "dark" : "light");
5205
+ Sn.forEach((v) => v()), t?.(b ? "dark" : "light");
5192
5206
  }, [e, t]);
5193
- return /* @__PURE__ */ d.jsx(
5207
+ return /* @__PURE__ */ f.jsx(
5194
5208
  Ue,
5195
5209
  {
5196
- ref: c,
5197
- variant: o,
5198
- colorScheme: s,
5199
- size: i,
5200
- onClick: p,
5201
- "aria-pressed": u,
5202
- "aria-label": u ? a : n,
5203
- startIcon: /* @__PURE__ */ d.jsx(
5210
+ ref: d,
5211
+ variant: c,
5212
+ colorScheme: u,
5213
+ size: p,
5214
+ onClick: h,
5215
+ "aria-pressed": g,
5216
+ "aria-label": g ? l : i,
5217
+ startIcon: (g ? s : o) ?? /* @__PURE__ */ f.jsx(
5204
5218
  me,
5205
5219
  {
5206
- icon: u ? zi : mn,
5220
+ icon: g ? zi : mn,
5207
5221
  className: "h-3.5 w-3.5",
5208
5222
  "aria-hidden": "true"
5209
5223
  }
5210
5224
  ),
5211
- ...l,
5212
- children: r ? u ? "Dark" : "Light" : null
5225
+ ...m,
5226
+ children: r ? g ? a : n : null
5213
5227
  }
5214
5228
  );
5215
5229
  }
@@ -5236,7 +5250,7 @@ const y0 = Z(
5236
5250
  error: !1
5237
5251
  }
5238
5252
  }
5239
- ), Mm = ({
5253
+ ), Lm = ({
5240
5254
  options: e,
5241
5255
  value: t,
5242
5256
  onChange: r,
@@ -5248,21 +5262,21 @@ const y0 = Z(
5248
5262
  label: l
5249
5263
  }) => {
5250
5264
  const c = e.find((u) => u.value === t);
5251
- return /* @__PURE__ */ d.jsxs(Xr, { className: T("flex flex-col gap-1.5", i), children: [
5252
- l && /* @__PURE__ */ d.jsx(Dt, { className: "block text-sm font-medium text-inherit text-left", children: l }),
5253
- /* @__PURE__ */ d.jsx(
5265
+ return /* @__PURE__ */ f.jsxs(Xr, { className: T("flex flex-col gap-1.5", i), children: [
5266
+ l && /* @__PURE__ */ f.jsx(Dt, { className: "block text-sm font-medium text-inherit text-left", children: l }),
5267
+ /* @__PURE__ */ f.jsx(
5254
5268
  Wd,
5255
5269
  {
5256
5270
  value: t ?? void 0,
5257
5271
  onChange: r,
5258
5272
  disabled: a,
5259
- children: /* @__PURE__ */ d.jsxs("div", { className: "relative", children: [
5260
- /* @__PURE__ */ d.jsxs(
5273
+ children: /* @__PURE__ */ f.jsxs("div", { className: "relative", children: [
5274
+ /* @__PURE__ */ f.jsxs(
5261
5275
  qs,
5262
5276
  {
5263
5277
  className: T(y0({ variant: o, error: s })),
5264
5278
  children: [
5265
- /* @__PURE__ */ d.jsx(
5279
+ /* @__PURE__ */ f.jsx(
5266
5280
  "span",
5267
5281
  {
5268
5282
  className: T(
@@ -5272,7 +5286,7 @@ const y0 = Z(
5272
5286
  children: c ? c.label : n
5273
5287
  }
5274
5288
  ),
5275
- /* @__PURE__ */ d.jsx("span", { className: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3", children: /* @__PURE__ */ d.jsx(
5289
+ /* @__PURE__ */ f.jsx("span", { className: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3", children: /* @__PURE__ */ f.jsx(
5276
5290
  me,
5277
5291
  {
5278
5292
  icon: Oo,
@@ -5283,14 +5297,14 @@ const y0 = Z(
5283
5297
  ]
5284
5298
  }
5285
5299
  ),
5286
- /* @__PURE__ */ d.jsx(
5300
+ /* @__PURE__ */ f.jsx(
5287
5301
  jt,
5288
5302
  {
5289
5303
  as: xe,
5290
5304
  leave: "transition ease-in duration-100",
5291
5305
  leaveFrom: "opacity-100",
5292
5306
  leaveTo: "opacity-0",
5293
- children: /* @__PURE__ */ d.jsx(
5307
+ children: /* @__PURE__ */ f.jsx(
5294
5308
  Xs,
5295
5309
  {
5296
5310
  anchor: "bottom start",
@@ -5298,7 +5312,7 @@ const y0 = Z(
5298
5312
  "w-(--button-width) z-50 rounded-md bg-white dark:bg-gray-800 py-1 text-base shadow-lg ring-1 ring-black/5 dark:ring-gray-700 focus:outline-none sm:text-sm",
5299
5313
  "[--anchor-gap:4px]"
5300
5314
  ),
5301
- children: e.map((u) => /* @__PURE__ */ d.jsxs(
5315
+ children: e.map((u) => /* @__PURE__ */ f.jsxs(
5302
5316
  Qs,
5303
5317
  {
5304
5318
  value: u.value,
@@ -5312,8 +5326,8 @@ const y0 = Z(
5312
5326
  "data-disabled:opacity-50 data-disabled:cursor-not-allowed"
5313
5327
  ),
5314
5328
  children: [
5315
- /* @__PURE__ */ d.jsx("span", { className: "block truncate font-normal group-data-selected:font-semibold", children: u.label }),
5316
- /* @__PURE__ */ d.jsx("span", { className: "absolute inset-y-0 right-0 hidden items-center pr-4 text-primary-600 dark:text-primary-400 group-data-selected:flex", children: /* @__PURE__ */ d.jsx(me, { icon: Po, className: "h-3.5 w-3.5" }) })
5329
+ /* @__PURE__ */ f.jsx("span", { className: "block truncate font-normal group-data-selected:font-semibold", children: u.label }),
5330
+ /* @__PURE__ */ f.jsx("span", { className: "absolute inset-y-0 right-0 hidden items-center pr-4 text-primary-600 dark:text-primary-400 group-data-selected:flex", children: /* @__PURE__ */ f.jsx(me, { icon: Po, className: "h-3.5 w-3.5" }) })
5317
5331
  ]
5318
5332
  },
5319
5333
  u.value
@@ -5375,14 +5389,14 @@ const y0 = Z(
5375
5389
  ariaLabel: l
5376
5390
  }) => {
5377
5391
  const c = r ? void 0 : l || "Toggle setting";
5378
- return /* @__PURE__ */ d.jsxs(
5392
+ return /* @__PURE__ */ f.jsxs(
5379
5393
  Xr,
5380
5394
  {
5381
5395
  as: "div",
5382
5396
  className: T("flex items-center justify-between gap-4", i),
5383
5397
  children: [
5384
- (r || n) && /* @__PURE__ */ d.jsxs("span", { className: "flex flex-col", children: [
5385
- r && /* @__PURE__ */ d.jsx(
5398
+ (r || n) && /* @__PURE__ */ f.jsxs("span", { className: "flex flex-col", children: [
5399
+ r && /* @__PURE__ */ f.jsx(
5386
5400
  Dt,
5387
5401
  {
5388
5402
  passive: !0,
@@ -5393,7 +5407,7 @@ const y0 = Z(
5393
5407
  children: r
5394
5408
  }
5395
5409
  ),
5396
- n && /* @__PURE__ */ d.jsx(
5410
+ n && /* @__PURE__ */ f.jsx(
5397
5411
  rr,
5398
5412
  {
5399
5413
  className: T(
@@ -5404,7 +5418,7 @@ const y0 = Z(
5404
5418
  }
5405
5419
  )
5406
5420
  ] }),
5407
- /* @__PURE__ */ d.jsx(
5421
+ /* @__PURE__ */ f.jsx(
5408
5422
  Uf,
5409
5423
  {
5410
5424
  checked: e,
@@ -5412,7 +5426,7 @@ const y0 = Z(
5412
5426
  disabled: a,
5413
5427
  "aria-label": c,
5414
5428
  className: T(w0({ variant: s, size: o })),
5415
- children: /* @__PURE__ */ d.jsx(
5429
+ children: /* @__PURE__ */ f.jsx(
5416
5430
  "span",
5417
5431
  {
5418
5432
  "aria-hidden": "true",
@@ -5464,9 +5478,9 @@ const y0 = Z(
5464
5478
  ...l
5465
5479
  }, c) => {
5466
5480
  const u = !!n || o;
5467
- return /* @__PURE__ */ d.jsxs(Xr, { className: T("w-full space-y-1.5", e), children: [
5468
- t && /* @__PURE__ */ d.jsx(Dt, { className: "block text-sm font-medium leading-none text-gray-900 dark:text-gray-100 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-left", children: t }),
5469
- /* @__PURE__ */ d.jsx(
5481
+ return /* @__PURE__ */ f.jsxs(Xr, { className: T("w-full space-y-1.5", e), children: [
5482
+ t && /* @__PURE__ */ f.jsx(Dt, { className: "block text-sm font-medium leading-none text-gray-900 dark:text-gray-100 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-left", children: t }),
5483
+ /* @__PURE__ */ f.jsx(
5470
5484
  Kf,
5471
5485
  {
5472
5486
  ref: c,
@@ -5475,7 +5489,7 @@ const y0 = Z(
5475
5489
  ...l
5476
5490
  }
5477
5491
  ),
5478
- (r || n) && /* @__PURE__ */ d.jsx(
5492
+ (r || n) && /* @__PURE__ */ f.jsx(
5479
5493
  rr,
5480
5494
  {
5481
5495
  className: T(
@@ -5489,7 +5503,7 @@ const y0 = Z(
5489
5503
  }
5490
5504
  );
5491
5505
  S0.displayName = "Textarea";
5492
- function Lm({
5506
+ function _m({
5493
5507
  items: e,
5494
5508
  maxDisplay: t = 5,
5495
5509
  totalCount: r,
@@ -5501,13 +5515,13 @@ function Lm({
5501
5515
  className: l
5502
5516
  }) {
5503
5517
  const c = e.filter((p) => p.key !== n).slice(0, t), u = r !== void 0 ? Math.max(0, r - c.length) : Math.max(0, e.filter((p) => p.key !== n).length - t);
5504
- return c.length === 0 && !o ? null : /* @__PURE__ */ d.jsxs(
5518
+ return c.length === 0 && !o ? null : /* @__PURE__ */ f.jsxs(
5505
5519
  "div",
5506
5520
  {
5507
5521
  "data-testid": "avatar-strip",
5508
5522
  className: T("flex items-center gap-3", l),
5509
5523
  children: [
5510
- a && /* @__PURE__ */ d.jsx(
5524
+ a && /* @__PURE__ */ f.jsx(
5511
5525
  "button",
5512
5526
  {
5513
5527
  type: "button",
@@ -5518,14 +5532,14 @@ function Lm({
5518
5532
  children: "✕"
5519
5533
  }
5520
5534
  ),
5521
- /* @__PURE__ */ d.jsxs(
5535
+ /* @__PURE__ */ f.jsxs(
5522
5536
  "div",
5523
5537
  {
5524
5538
  "data-testid": "avatar-strip-stack",
5525
5539
  className: "flex items-center -space-x-2",
5526
5540
  children: [
5527
5541
  c.map((p) => {
5528
- const m = /* @__PURE__ */ d.jsx(
5542
+ const m = /* @__PURE__ */ f.jsx(
5529
5543
  fa,
5530
5544
  {
5531
5545
  initials: p.label[0].toUpperCase(),
@@ -5533,32 +5547,32 @@ function Lm({
5533
5547
  colorScheme: p.colorScheme ?? "neutral",
5534
5548
  size: "xs"
5535
5549
  }
5536
- ), f = T(
5550
+ ), d = T(
5537
5551
  "relative inline-flex h-6 w-6 rounded-full ring-2 transition-transform hover:z-10 hover:scale-110",
5538
5552
  i
5539
5553
  );
5540
- return p.href ? /* @__PURE__ */ d.jsx(
5554
+ return p.href ? /* @__PURE__ */ f.jsx(
5541
5555
  "a",
5542
5556
  {
5543
5557
  href: p.href,
5544
5558
  title: p.label,
5545
5559
  "data-testid": `avatar-strip-item-${p.key}`,
5546
- className: f,
5560
+ className: d,
5547
5561
  children: m
5548
5562
  },
5549
5563
  p.key
5550
- ) : /* @__PURE__ */ d.jsx(
5564
+ ) : /* @__PURE__ */ f.jsx(
5551
5565
  "span",
5552
5566
  {
5553
5567
  title: p.label,
5554
5568
  "data-testid": `avatar-strip-item-${p.key}`,
5555
- className: f,
5569
+ className: d,
5556
5570
  children: m
5557
5571
  },
5558
5572
  p.key
5559
5573
  );
5560
5574
  }),
5561
- u > 0 && /* @__PURE__ */ d.jsx(
5575
+ u > 0 && /* @__PURE__ */ f.jsx(
5562
5576
  "div",
5563
5577
  {
5564
5578
  title: `${u} more`,
@@ -5567,7 +5581,7 @@ function Lm({
5567
5581
  "relative flex h-6 w-6 items-center justify-center rounded-full bg-gray-500/10 ring-2",
5568
5582
  i
5569
5583
  ),
5570
- children: /* @__PURE__ */ d.jsxs("span", { className: "text-[9px] font-bold text-gray-500 dark:text-gray-400 select-none", children: [
5584
+ children: /* @__PURE__ */ f.jsxs("span", { className: "text-[9px] font-bold text-gray-500 dark:text-gray-400 select-none", children: [
5571
5585
  "+",
5572
5586
  u
5573
5587
  ] })
@@ -5577,12 +5591,12 @@ function Lm({
5577
5591
  ]
5578
5592
  }
5579
5593
  ),
5580
- s && /* @__PURE__ */ d.jsx("div", { "data-testid": "avatar-strip-label", children: s })
5594
+ s && /* @__PURE__ */ f.jsx("div", { "data-testid": "avatar-strip-label", children: s })
5581
5595
  ]
5582
5596
  }
5583
5597
  );
5584
5598
  }
5585
- function _m({
5599
+ function Vm({
5586
5600
  tabs: e,
5587
5601
  activeTab: t,
5588
5602
  onChange: r,
@@ -5597,18 +5611,18 @@ function _m({
5597
5611
  if (!v) return null;
5598
5612
  const w = b.getBoundingClientRect(), x = v.getBoundingClientRect();
5599
5613
  return { left: x.left - w.left, width: x.width };
5600
- }, []), f = ee((h, b, v) => {
5614
+ }, []), d = ee((h, b, v) => {
5601
5615
  const w = i.current;
5602
5616
  w && (w.style.transition = b, w.style.left = `${h.left}px`, w.style.width = `${h.width}px`, w.style.transform = `scaleY(${v})`);
5603
5617
  }, []);
5604
5618
  ne(() => {
5605
5619
  const h = m(t);
5606
- h && (l.current = h, f(h, "none", 1), i.current && (i.current.style.opacity = "1"), u.current = !0);
5620
+ h && (l.current = h, d(h, "none", 1), i.current && (i.current.style.opacity = "1"), u.current = !0);
5607
5621
  }, []), ne(() => {
5608
5622
  if (!u.current || c.current !== null) return;
5609
5623
  const h = m(t);
5610
- h && (l.current = h, f(h, "none", 1));
5611
- }, [t, m, f]);
5624
+ h && (l.current = h, d(h, "none", 1));
5625
+ }, [t, m, d]);
5612
5626
  const g = ee(
5613
5627
  (h) => {
5614
5628
  if (h === t || (r(h), !u.current)) return;
@@ -5616,27 +5630,27 @@ function _m({
5616
5630
  const b = l.current ?? m(t), v = m(h);
5617
5631
  if (!b || !v) return;
5618
5632
  const w = Math.min(b.left, v.left), x = Math.max(b.left + b.width, v.left + v.width) - w;
5619
- f(
5633
+ d(
5620
5634
  { left: w, width: x },
5621
5635
  "left 130ms ease-out, width 130ms ease-out, transform 130ms ease-out",
5622
5636
  0.55
5623
5637
  ), c.current = setTimeout(() => {
5624
5638
  const k = m(h) ?? v;
5625
- l.current = k, f(
5639
+ l.current = k, d(
5626
5640
  k,
5627
5641
  "left 160ms ease-in, width 160ms ease-in, transform 160ms ease-in",
5628
5642
  1
5629
5643
  ), c.current = null;
5630
5644
  }, 130);
5631
5645
  },
5632
- [t, m, r, f]
5646
+ [t, m, r, d]
5633
5647
  );
5634
5648
  return ne(
5635
5649
  () => () => {
5636
5650
  c.current && clearTimeout(c.current);
5637
5651
  },
5638
5652
  []
5639
- ), /* @__PURE__ */ d.jsxs(
5653
+ ), /* @__PURE__ */ f.jsxs(
5640
5654
  "div",
5641
5655
  {
5642
5656
  ref: s,
@@ -5652,7 +5666,7 @@ function _m({
5652
5666
  o
5653
5667
  ),
5654
5668
  children: [
5655
- /* @__PURE__ */ d.jsx(
5669
+ /* @__PURE__ */ f.jsx(
5656
5670
  "div",
5657
5671
  {
5658
5672
  ref: i,
@@ -5667,7 +5681,7 @@ function _m({
5667
5681
  ),
5668
5682
  e.map((h) => {
5669
5683
  const b = h.id === t;
5670
- return /* @__PURE__ */ d.jsx(
5684
+ return /* @__PURE__ */ f.jsx(
5671
5685
  "button",
5672
5686
  {
5673
5687
  role: "tab",
@@ -5722,7 +5736,7 @@ function li(...e) {
5722
5736
  };
5723
5737
  };
5724
5738
  }
5725
- function Et(...e) {
5739
+ function kt(...e) {
5726
5740
  return y.useCallback(li(...e), e);
5727
5741
  }
5728
5742
  function ci(e, t = []) {
@@ -5731,12 +5745,12 @@ function ci(e, t = []) {
5731
5745
  const i = y.createContext(s), l = r.length;
5732
5746
  r = [...r, s];
5733
5747
  const c = (p) => {
5734
- const { scope: m, children: f, ...g } = p, h = m?.[e]?.[l] || i, b = y.useMemo(() => g, Object.values(g));
5735
- return /* @__PURE__ */ d.jsx(h.Provider, { value: b, children: f });
5748
+ const { scope: m, children: d, ...g } = p, h = m?.[e]?.[l] || i, b = y.useMemo(() => g, Object.values(g));
5749
+ return /* @__PURE__ */ f.jsx(h.Provider, { value: b, children: d });
5736
5750
  };
5737
5751
  c.displayName = o + "Provider";
5738
5752
  function u(p, m) {
5739
- const f = m?.[e]?.[l] || i, g = y.useContext(f);
5753
+ const d = m?.[e]?.[l] || i, g = y.useContext(d);
5740
5754
  if (g) return g;
5741
5755
  if (s !== void 0) return s;
5742
5756
  throw new Error(`\`${p}\` must be used within \`${o}\``);
@@ -5779,9 +5793,9 @@ function P0(e) {
5779
5793
  const { children: o, ...s } = n, i = y.Children.toArray(o), l = i.find(T0);
5780
5794
  if (l) {
5781
5795
  const c = l.props.children, u = i.map((p) => p === l ? y.Children.count(c) > 1 ? y.Children.only(null) : y.isValidElement(c) ? c.props.children : null : p);
5782
- return /* @__PURE__ */ d.jsx(t, { ...s, ref: a, children: y.isValidElement(c) ? y.cloneElement(c, void 0, u) : null });
5796
+ return /* @__PURE__ */ f.jsx(t, { ...s, ref: a, children: y.isValidElement(c) ? y.cloneElement(c, void 0, u) : null });
5783
5797
  }
5784
- return /* @__PURE__ */ d.jsx(t, { ...s, ref: a, children: o });
5798
+ return /* @__PURE__ */ f.jsx(t, { ...s, ref: a, children: o });
5785
5799
  });
5786
5800
  return r.displayName = `${e}.Slot`, r;
5787
5801
  }
@@ -5800,7 +5814,7 @@ function O0(e) {
5800
5814
  var ui = /* @__PURE__ */ Symbol("radix.slottable");
5801
5815
  // @__NO_SIDE_EFFECTS__
5802
5816
  function C0(e) {
5803
- const t = ({ children: r }) => /* @__PURE__ */ d.jsx(d.Fragment, { children: r });
5817
+ const t = ({ children: r }) => /* @__PURE__ */ f.jsx(f.Fragment, { children: r });
5804
5818
  return t.displayName = `${e}.Slottable`, t.__radixId = ui, t;
5805
5819
  }
5806
5820
  function T0(e) {
@@ -5842,7 +5856,7 @@ var $0 = [
5842
5856
  ], lt = $0.reduce((e, t) => {
5843
5857
  const r = /* @__PURE__ */ P0(`Primitive.${t}`), n = y.forwardRef((a, o) => {
5844
5858
  const { asChild: s, ...i } = a, l = s ? r : t;
5845
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d.jsx(l, { ...i, ref: o });
5859
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f.jsx(l, { ...i, ref: o });
5846
5860
  });
5847
5861
  return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
5848
5862
  }, {});
@@ -5878,7 +5892,7 @@ var D0 = "DismissableLayer", Nn = "dismissableLayer.update", F0 = "dismissableLa
5878
5892
  onInteractOutside: s,
5879
5893
  onDismiss: i,
5880
5894
  ...l
5881
- } = e, c = y.useContext(di), [u, p] = y.useState(null), m = u?.ownerDocument ?? globalThis?.document, [, f] = y.useState({}), g = Et(t, (P) => p(P)), h = Array.from(c.layers), [b] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), v = h.indexOf(b), w = u ? h.indexOf(u) : -1, x = c.layersWithOutsidePointerEventsDisabled.size > 0, k = w >= v, S = V0((P) => {
5895
+ } = e, c = y.useContext(di), [u, p] = y.useState(null), m = u?.ownerDocument ?? globalThis?.document, [, d] = y.useState({}), g = kt(t, (P) => p(P)), h = Array.from(c.layers), [b] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), v = h.indexOf(b), w = u ? h.indexOf(u) : -1, x = c.layersWithOutsidePointerEventsDisabled.size > 0, k = w >= v, S = V0((P) => {
5882
5896
  const M = P.target, z = [...c.branches].some((N) => N.contains(M));
5883
5897
  !k || z || (a?.(P), s?.(P), P.defaultPrevented || i?.());
5884
5898
  }, m), C = B0((P) => {
@@ -5895,9 +5909,9 @@ var D0 = "DismissableLayer", Nn = "dismissableLayer.update", F0 = "dismissableLa
5895
5909
  }, [u, m, r, c]), y.useEffect(() => () => {
5896
5910
  u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), go());
5897
5911
  }, [u, c]), y.useEffect(() => {
5898
- const P = () => f({});
5912
+ const P = () => d({});
5899
5913
  return document.addEventListener(Nn, P), () => document.removeEventListener(Nn, P);
5900
- }, []), /* @__PURE__ */ d.jsx(
5914
+ }, []), /* @__PURE__ */ f.jsx(
5901
5915
  lt.div,
5902
5916
  {
5903
5917
  ...l,
@@ -5918,14 +5932,14 @@ var D0 = "DismissableLayer", Nn = "dismissableLayer.update", F0 = "dismissableLa
5918
5932
  );
5919
5933
  fi.displayName = D0;
5920
5934
  var L0 = "DismissableLayerBranch", _0 = y.forwardRef((e, t) => {
5921
- const r = y.useContext(di), n = y.useRef(null), a = Et(t, n);
5935
+ const r = y.useContext(di), n = y.useRef(null), a = kt(t, n);
5922
5936
  return y.useEffect(() => {
5923
5937
  const o = n.current;
5924
5938
  if (o)
5925
5939
  return r.branches.add(o), () => {
5926
5940
  r.branches.delete(o);
5927
5941
  };
5928
- }, [r.branches]), /* @__PURE__ */ d.jsx(lt.div, { ...e, ref: a });
5942
+ }, [r.branches]), /* @__PURE__ */ f.jsx(lt.div, { ...e, ref: a });
5929
5943
  });
5930
5944
  _0.displayName = L0;
5931
5945
  function V0(e, t = globalThis?.document) {
@@ -5991,7 +6005,7 @@ function W0(e) {
5991
6005
  }
5992
6006
  var U0 = "Arrow", mi = y.forwardRef((e, t) => {
5993
6007
  const { children: r, width: n = 10, height: a = 5, ...o } = e;
5994
- return /* @__PURE__ */ d.jsx(
6008
+ return /* @__PURE__ */ f.jsx(
5995
6009
  lt.svg,
5996
6010
  {
5997
6011
  ...o,
@@ -6000,7 +6014,7 @@ var U0 = "Arrow", mi = y.forwardRef((e, t) => {
6000
6014
  height: a,
6001
6015
  viewBox: "0 0 30 10",
6002
6016
  preserveAspectRatio: "none",
6003
- children: e.asChild ? r : /* @__PURE__ */ d.jsx("polygon", { points: "0,0 30,0 15,10" })
6017
+ children: e.asChild ? r : /* @__PURE__ */ f.jsx("polygon", { points: "0,0 30,0 15,10" })
6004
6018
  }
6005
6019
  );
6006
6020
  });
@@ -6030,16 +6044,16 @@ function G0(e) {
6030
6044
  }
6031
6045
  var pa = "Popper", [gi, hi] = ci(pa), [K0, bi] = gi(pa), vi = (e) => {
6032
6046
  const { __scopePopper: t, children: r } = e, [n, a] = y.useState(null);
6033
- return /* @__PURE__ */ d.jsx(K0, { scope: t, anchor: n, onAnchorChange: a, children: r });
6047
+ return /* @__PURE__ */ f.jsx(K0, { scope: t, anchor: n, onAnchorChange: a, children: r });
6034
6048
  };
6035
6049
  vi.displayName = pa;
6036
6050
  var xi = "PopperAnchor", yi = y.forwardRef(
6037
6051
  (e, t) => {
6038
- const { __scopePopper: r, virtualRef: n, ...a } = e, o = bi(xi, r), s = y.useRef(null), i = Et(t, s), l = y.useRef(null);
6052
+ const { __scopePopper: r, virtualRef: n, ...a } = e, o = bi(xi, r), s = y.useRef(null), i = kt(t, s), l = y.useRef(null);
6039
6053
  return y.useEffect(() => {
6040
6054
  const c = l.current;
6041
6055
  l.current = n?.current || s.current, c !== l.current && o.onAnchorChange(l.current);
6042
- }), n ? null : /* @__PURE__ */ d.jsx(lt.div, { ...a, ref: i });
6056
+ }), n ? null : /* @__PURE__ */ f.jsx(lt.div, { ...a, ref: i });
6043
6057
  }
6044
6058
  );
6045
6059
  yi.displayName = xi;
@@ -6057,10 +6071,10 @@ var ma = "PopperContent", [q0, X0] = gi(ma), wi = y.forwardRef(
6057
6071
  collisionPadding: u = 0,
6058
6072
  sticky: p = "partial",
6059
6073
  hideWhenDetached: m = !1,
6060
- updatePositionStrategy: f = "optimized",
6074
+ updatePositionStrategy: d = "optimized",
6061
6075
  onPlaced: g,
6062
6076
  ...h
6063
- } = e, b = bi(ma, r), [v, w] = y.useState(null), x = Et(t, (q) => w(q)), [k, S] = y.useState(null), C = G0(k), P = C?.width ?? 0, M = C?.height ?? 0, z = n + (o !== "center" ? "-" + o : ""), N = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, $ = Array.isArray(c) ? c : [c], L = $.length > 0, _ = {
6077
+ } = e, b = bi(ma, r), [v, w] = y.useState(null), x = kt(t, (q) => w(q)), [k, S] = y.useState(null), C = G0(k), P = C?.width ?? 0, M = C?.height ?? 0, z = n + (o !== "center" ? "-" + o : ""), N = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, $ = Array.isArray(c) ? c : [c], L = $.length > 0, _ = {
6064
6078
  padding: N,
6065
6079
  boundary: $.filter(Z0),
6066
6080
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -6070,7 +6084,7 @@ var ma = "PopperContent", [q0, X0] = gi(ma), wi = y.forwardRef(
6070
6084
  strategy: "fixed",
6071
6085
  placement: z,
6072
6086
  whileElementsMounted: (...q) => ms(...q, {
6073
- animationFrame: f === "always"
6087
+ animationFrame: d === "always"
6074
6088
  }),
6075
6089
  elements: {
6076
6090
  reference: b.anchor
@@ -6086,9 +6100,9 @@ var ma = "PopperContent", [q0, X0] = gi(ma), wi = y.forwardRef(
6086
6100
  l && vs({ ..._ }),
6087
6101
  xs({
6088
6102
  ..._,
6089
- apply: ({ elements: q, rects: be, availableWidth: ye, availableHeight: St }) => {
6103
+ apply: ({ elements: q, rects: be, availableWidth: ye, availableHeight: Et }) => {
6090
6104
  const { width: _t, height: mr } = be.reference, gr = q.floating.style;
6091
- gr.setProperty("--radix-popper-available-width", `${ye}px`), gr.setProperty("--radix-popper-available-height", `${St}px`), gr.setProperty("--radix-popper-anchor-width", `${_t}px`), gr.setProperty("--radix-popper-anchor-height", `${mr}px`);
6105
+ gr.setProperty("--radix-popper-available-width", `${ye}px`), gr.setProperty("--radix-popper-available-height", `${Et}px`), gr.setProperty("--radix-popper-anchor-width", `${_t}px`), gr.setProperty("--radix-popper-anchor-height", `${mr}px`);
6092
6106
  }
6093
6107
  }),
6094
6108
  k && cu({ element: k, padding: i }),
@@ -6102,7 +6116,7 @@ var ma = "PopperContent", [q0, X0] = gi(ma), wi = y.forwardRef(
6102
6116
  const te = O.arrow?.x, A = O.arrow?.y, W = O.arrow?.centerOffset !== 0, [G, B] = y.useState();
6103
6117
  return ot(() => {
6104
6118
  v && B(window.getComputedStyle(v).zIndex);
6105
- }, [v]), /* @__PURE__ */ d.jsx(
6119
+ }, [v]), /* @__PURE__ */ f.jsx(
6106
6120
  "div",
6107
6121
  {
6108
6122
  ref: R.setFloating,
@@ -6126,7 +6140,7 @@ var ma = "PopperContent", [q0, X0] = gi(ma), wi = y.forwardRef(
6126
6140
  }
6127
6141
  },
6128
6142
  dir: e.dir,
6129
- children: /* @__PURE__ */ d.jsx(
6143
+ children: /* @__PURE__ */ f.jsx(
6130
6144
  q0,
6131
6145
  {
6132
6146
  scope: r,
@@ -6135,7 +6149,7 @@ var ma = "PopperContent", [q0, X0] = gi(ma), wi = y.forwardRef(
6135
6149
  arrowX: te,
6136
6150
  arrowY: A,
6137
6151
  shouldHideArrow: W,
6138
- children: /* @__PURE__ */ d.jsx(
6152
+ children: /* @__PURE__ */ f.jsx(
6139
6153
  lt.div,
6140
6154
  {
6141
6155
  "data-side": j,
@@ -6168,7 +6182,7 @@ var ki = "PopperArrow", Q0 = {
6168
6182
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
6169
6183
  // doesn't report size as we'd expect on SVG elements.
6170
6184
  // it reports their bounding box which is effectively the largest path inside the SVG.
6171
- /* @__PURE__ */ d.jsx(
6185
+ /* @__PURE__ */ f.jsx(
6172
6186
  "span",
6173
6187
  {
6174
6188
  ref: o.onArrowChange,
@@ -6191,7 +6205,7 @@ var ki = "PopperArrow", Q0 = {
6191
6205
  }[o.placedSide],
6192
6206
  visibility: o.shouldHideArrow ? "hidden" : void 0
6193
6207
  },
6194
- children: /* @__PURE__ */ d.jsx(
6208
+ children: /* @__PURE__ */ f.jsx(
6195
6209
  Y0,
6196
6210
  {
6197
6211
  ...a,
@@ -6215,9 +6229,9 @@ var J0 = (e) => ({
6215
6229
  name: "transformOrigin",
6216
6230
  options: e,
6217
6231
  fn(t) {
6218
- const { placement: r, rects: n, middlewareData: a } = t, s = a.arrow?.centerOffset !== 0, i = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [c, u] = Si(r), p = { start: "0%", center: "50%", end: "100%" }[u], m = (a.arrow?.x ?? 0) + i / 2, f = (a.arrow?.y ?? 0) + l / 2;
6232
+ const { placement: r, rects: n, middlewareData: a } = t, s = a.arrow?.centerOffset !== 0, i = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [c, u] = Si(r), p = { start: "0%", center: "50%", end: "100%" }[u], m = (a.arrow?.x ?? 0) + i / 2, d = (a.arrow?.y ?? 0) + l / 2;
6219
6233
  let g = "", h = "";
6220
- return c === "bottom" ? (g = s ? p : `${m}px`, h = `${-l}px`) : c === "top" ? (g = s ? p : `${m}px`, h = `${n.floating.height + l}px`) : c === "right" ? (g = `${-l}px`, h = s ? p : `${f}px`) : c === "left" && (g = `${n.floating.width + l}px`, h = s ? p : `${f}px`), { data: { x: g, y: h } };
6234
+ return c === "bottom" ? (g = s ? p : `${m}px`, h = `${-l}px`) : c === "top" ? (g = s ? p : `${m}px`, h = `${n.floating.height + l}px`) : c === "right" ? (g = `${-l}px`, h = s ? p : `${d}px`) : c === "left" && (g = `${n.floating.width + l}px`, h = s ? p : `${d}px`), { data: { x: g, y: h } };
6221
6235
  }
6222
6236
  });
6223
6237
  function Si(e) {
@@ -6228,14 +6242,14 @@ var ep = vi, tp = yi, rp = wi, np = Ei, ap = "Portal", Ni = y.forwardRef((e, t)
6228
6242
  const { container: r, ...n } = e, [a, o] = y.useState(!1);
6229
6243
  ot(() => o(!0), []);
6230
6244
  const s = r || a && globalThis?.document?.body;
6231
- return s ? Ji.createPortal(/* @__PURE__ */ d.jsx(lt.div, { ...n, ref: t }), s) : null;
6245
+ return s ? Ji.createPortal(/* @__PURE__ */ f.jsx(lt.div, { ...n, ref: t }), s) : null;
6232
6246
  });
6233
6247
  Ni.displayName = ap;
6234
6248
  function op(e, t) {
6235
6249
  return y.useReducer((r, n) => t[r][n] ?? r, e);
6236
6250
  }
6237
6251
  var ga = (e) => {
6238
- const { present: t, children: r } = e, n = sp(t), a = typeof r == "function" ? r({ present: n.isPresent }) : y.Children.only(r), o = Et(n.ref, ip(a));
6252
+ const { present: t, children: r } = e, n = sp(t), a = typeof r == "function" ? r({ present: n.isPresent }) : y.Children.only(r), o = kt(n.ref, ip(a));
6239
6253
  return typeof r == "function" || n.isPresent ? y.cloneElement(a, { ref: o }) : null;
6240
6254
  };
6241
6255
  ga.displayName = "Presence";
@@ -6259,22 +6273,22 @@ function sp(e) {
6259
6273
  }, [i]), ot(() => {
6260
6274
  const c = n.current, u = a.current;
6261
6275
  if (u !== e) {
6262
- const m = o.current, f = vr(c);
6263
- e ? l("MOUNT") : f === "none" || c?.display === "none" ? l("UNMOUNT") : l(u && m !== f ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
6276
+ const m = o.current, d = vr(c);
6277
+ e ? l("MOUNT") : d === "none" || c?.display === "none" ? l("UNMOUNT") : l(u && m !== d ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
6264
6278
  }
6265
6279
  }, [e, l]), ot(() => {
6266
6280
  if (t) {
6267
6281
  let c;
6268
- const u = t.ownerDocument.defaultView ?? window, p = (f) => {
6269
- const h = vr(n.current).includes(CSS.escape(f.animationName));
6270
- if (f.target === t && h && (l("ANIMATION_END"), !a.current)) {
6282
+ const u = t.ownerDocument.defaultView ?? window, p = (d) => {
6283
+ const h = vr(n.current).includes(CSS.escape(d.animationName));
6284
+ if (d.target === t && h && (l("ANIMATION_END"), !a.current)) {
6271
6285
  const b = t.style.animationFillMode;
6272
6286
  t.style.animationFillMode = "forwards", c = u.setTimeout(() => {
6273
6287
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = b);
6274
6288
  });
6275
6289
  }
6276
- }, m = (f) => {
6277
- f.target === t && (o.current = vr(n.current));
6290
+ }, m = (d) => {
6291
+ d.target === t && (o.current = vr(n.current));
6278
6292
  };
6279
6293
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
6280
6294
  u.clearTimeout(c), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
@@ -6355,7 +6369,7 @@ var fp = Object.freeze({
6355
6369
  whiteSpace: "nowrap",
6356
6370
  wordWrap: "normal"
6357
6371
  }), pp = "VisuallyHidden", Pi = y.forwardRef(
6358
- (e, t) => /* @__PURE__ */ d.jsx(
6372
+ (e, t) => /* @__PURE__ */ f.jsx(
6359
6373
  lt.span,
6360
6374
  {
6361
6375
  ...e,
@@ -6378,7 +6392,7 @@ var mp = Pi, [tn] = ci("Tooltip", [
6378
6392
  return y.useEffect(() => {
6379
6393
  const c = l.current;
6380
6394
  return () => window.clearTimeout(c);
6381
- }, []), /* @__PURE__ */ d.jsx(
6395
+ }, []), /* @__PURE__ */ f.jsx(
6382
6396
  hp,
6383
6397
  {
6384
6398
  scope: t,
@@ -6412,7 +6426,7 @@ var Jt = "Tooltip", [bp, pr] = tn(Jt), Ti = (e) => {
6412
6426
  onOpenChange: o,
6413
6427
  disableHoverableContent: s,
6414
6428
  delayDuration: i
6415
- } = e, l = ha(Jt, e.__scopeTooltip), c = rn(t), [u, p] = y.useState(null), m = W0(), f = y.useRef(0), g = s ?? l.disableHoverableContent, h = i ?? l.delayDuration, b = y.useRef(!1), [v, w] = cp({
6429
+ } = e, l = ha(Jt, e.__scopeTooltip), c = rn(t), [u, p] = y.useState(null), m = W0(), d = y.useRef(0), g = s ?? l.disableHoverableContent, h = i ?? l.delayDuration, b = y.useRef(!1), [v, w] = cp({
6416
6430
  prop: n,
6417
6431
  defaultProp: a ?? !1,
6418
6432
  onChange: (P) => {
@@ -6420,17 +6434,17 @@ var Jt = "Tooltip", [bp, pr] = tn(Jt), Ti = (e) => {
6420
6434
  },
6421
6435
  caller: Jt
6422
6436
  }), x = y.useMemo(() => v ? b.current ? "delayed-open" : "instant-open" : "closed", [v]), k = y.useCallback(() => {
6423
- window.clearTimeout(f.current), f.current = 0, b.current = !1, w(!0);
6437
+ window.clearTimeout(d.current), d.current = 0, b.current = !1, w(!0);
6424
6438
  }, [w]), S = y.useCallback(() => {
6425
- window.clearTimeout(f.current), f.current = 0, w(!1);
6439
+ window.clearTimeout(d.current), d.current = 0, w(!1);
6426
6440
  }, [w]), C = y.useCallback(() => {
6427
- window.clearTimeout(f.current), f.current = window.setTimeout(() => {
6428
- b.current = !0, w(!0), f.current = 0;
6441
+ window.clearTimeout(d.current), d.current = window.setTimeout(() => {
6442
+ b.current = !0, w(!0), d.current = 0;
6429
6443
  }, h);
6430
6444
  }, [h, w]);
6431
6445
  return y.useEffect(() => () => {
6432
- f.current && (window.clearTimeout(f.current), f.current = 0);
6433
- }, []), /* @__PURE__ */ d.jsx(ep, { ...c, children: /* @__PURE__ */ d.jsx(
6446
+ d.current && (window.clearTimeout(d.current), d.current = 0);
6447
+ }, []), /* @__PURE__ */ f.jsx(ep, { ...c, children: /* @__PURE__ */ f.jsx(
6434
6448
  bp,
6435
6449
  {
6436
6450
  scope: t,
@@ -6443,7 +6457,7 @@ var Jt = "Tooltip", [bp, pr] = tn(Jt), Ti = (e) => {
6443
6457
  l.isOpenDelayedRef.current ? C() : k();
6444
6458
  }, [l.isOpenDelayedRef, C, k]),
6445
6459
  onTriggerLeave: y.useCallback(() => {
6446
- g ? S() : (window.clearTimeout(f.current), f.current = 0);
6460
+ g ? S() : (window.clearTimeout(d.current), d.current = 0);
6447
6461
  }, [S, g]),
6448
6462
  onOpen: k,
6449
6463
  onClose: S,
@@ -6455,8 +6469,8 @@ var Jt = "Tooltip", [bp, pr] = tn(Jt), Ti = (e) => {
6455
6469
  Ti.displayName = Jt;
6456
6470
  var On = "TooltipTrigger", ji = y.forwardRef(
6457
6471
  (e, t) => {
6458
- const { __scopeTooltip: r, ...n } = e, a = pr(On, r), o = ha(On, r), s = rn(r), i = y.useRef(null), l = Et(t, i, a.onTriggerChange), c = y.useRef(!1), u = y.useRef(!1), p = y.useCallback(() => c.current = !1, []);
6459
- return y.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ d.jsx(tp, { asChild: !0, ...s, children: /* @__PURE__ */ d.jsx(
6472
+ const { __scopeTooltip: r, ...n } = e, a = pr(On, r), o = ha(On, r), s = rn(r), i = y.useRef(null), l = kt(t, i, a.onTriggerChange), c = y.useRef(!1), u = y.useRef(!1), p = y.useCallback(() => c.current = !1, []);
6473
+ return y.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ f.jsx(tp, { asChild: !0, ...s, children: /* @__PURE__ */ f.jsx(
6460
6474
  lt.button,
6461
6475
  {
6462
6476
  "aria-describedby": a.open ? a.contentId : void 0,
@@ -6486,18 +6500,18 @@ var ba = "TooltipPortal", [vp, xp] = tn(ba, {
6486
6500
  forceMount: void 0
6487
6501
  }), Ri = (e) => {
6488
6502
  const { __scopeTooltip: t, forceMount: r, children: n, container: a } = e, o = pr(ba, t);
6489
- return /* @__PURE__ */ d.jsx(vp, { scope: t, forceMount: r, children: /* @__PURE__ */ d.jsx(ga, { present: r || o.open, children: /* @__PURE__ */ d.jsx(Ni, { asChild: !0, container: a, children: n }) }) });
6503
+ return /* @__PURE__ */ f.jsx(vp, { scope: t, forceMount: r, children: /* @__PURE__ */ f.jsx(ga, { present: r || o.open, children: /* @__PURE__ */ f.jsx(Ni, { asChild: !0, container: a, children: n }) }) });
6490
6504
  };
6491
6505
  Ri.displayName = ba;
6492
6506
  var Rt = "TooltipContent", $i = y.forwardRef(
6493
6507
  (e, t) => {
6494
6508
  const r = xp(Rt, e.__scopeTooltip), { forceMount: n = r.forceMount, side: a = "top", ...o } = e, s = pr(Rt, e.__scopeTooltip);
6495
- return /* @__PURE__ */ d.jsx(ga, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ d.jsx(Ii, { side: a, ...o, ref: t }) : /* @__PURE__ */ d.jsx(yp, { side: a, ...o, ref: t }) });
6509
+ return /* @__PURE__ */ f.jsx(ga, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ f.jsx(Ii, { side: a, ...o, ref: t }) : /* @__PURE__ */ f.jsx(yp, { side: a, ...o, ref: t }) });
6496
6510
  }
6497
6511
  ), yp = y.forwardRef((e, t) => {
6498
- const r = pr(Rt, e.__scopeTooltip), n = ha(Rt, e.__scopeTooltip), a = y.useRef(null), o = Et(t, a), [s, i] = y.useState(null), { trigger: l, onClose: c } = r, u = a.current, { onPointerInTransitChange: p } = n, m = y.useCallback(() => {
6512
+ const r = pr(Rt, e.__scopeTooltip), n = ha(Rt, e.__scopeTooltip), a = y.useRef(null), o = kt(t, a), [s, i] = y.useState(null), { trigger: l, onClose: c } = r, u = a.current, { onPointerInTransitChange: p } = n, m = y.useCallback(() => {
6499
6513
  i(null), p(!1);
6500
- }, [p]), f = y.useCallback(
6514
+ }, [p]), d = y.useCallback(
6501
6515
  (g, h) => {
6502
6516
  const b = g.currentTarget, v = { x: g.clientX, y: g.clientY }, w = Sp(v, b.getBoundingClientRect()), x = Np(v, w), k = Pp(h.getBoundingClientRect()), S = Cp([...x, ...k]);
6503
6517
  i(S), p(!0);
@@ -6506,12 +6520,12 @@ var Rt = "TooltipContent", $i = y.forwardRef(
6506
6520
  );
6507
6521
  return y.useEffect(() => () => m(), [m]), y.useEffect(() => {
6508
6522
  if (l && u) {
6509
- const g = (b) => f(b, u), h = (b) => f(b, l);
6523
+ const g = (b) => d(b, u), h = (b) => d(b, l);
6510
6524
  return l.addEventListener("pointerleave", g), u.addEventListener("pointerleave", h), () => {
6511
6525
  l.removeEventListener("pointerleave", g), u.removeEventListener("pointerleave", h);
6512
6526
  };
6513
6527
  }
6514
- }, [l, u, f, m]), y.useEffect(() => {
6528
+ }, [l, u, d, m]), y.useEffect(() => {
6515
6529
  if (s) {
6516
6530
  const g = (h) => {
6517
6531
  const b = h.target, v = { x: h.clientX, y: h.clientY }, w = l?.contains(b) || u?.contains(b), x = !Op(v, s);
@@ -6519,7 +6533,7 @@ var Rt = "TooltipContent", $i = y.forwardRef(
6519
6533
  };
6520
6534
  return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
6521
6535
  }
6522
- }, [l, u, s, c, m]), /* @__PURE__ */ d.jsx(Ii, { ...e, ref: o });
6536
+ }, [l, u, s, c, m]), /* @__PURE__ */ f.jsx(Ii, { ...e, ref: o });
6523
6537
  }), [wp, kp] = tn(Jt, { isInside: !1 }), Ep = /* @__PURE__ */ C0("TooltipContent"), Ii = y.forwardRef(
6524
6538
  (e, t) => {
6525
6539
  const {
@@ -6537,7 +6551,7 @@ var Rt = "TooltipContent", $i = y.forwardRef(
6537
6551
  };
6538
6552
  return window.addEventListener("scroll", p, { capture: !0 }), () => window.removeEventListener("scroll", p, { capture: !0 });
6539
6553
  }
6540
- }, [l.trigger, u]), /* @__PURE__ */ d.jsx(
6554
+ }, [l.trigger, u]), /* @__PURE__ */ f.jsx(
6541
6555
  fi,
6542
6556
  {
6543
6557
  asChild: !0,
@@ -6546,7 +6560,7 @@ var Rt = "TooltipContent", $i = y.forwardRef(
6546
6560
  onPointerDownOutside: s,
6547
6561
  onFocusOutside: (p) => p.preventDefault(),
6548
6562
  onDismiss: u,
6549
- children: /* @__PURE__ */ d.jsxs(
6563
+ children: /* @__PURE__ */ f.jsxs(
6550
6564
  rp,
6551
6565
  {
6552
6566
  "data-state": l.stateAttribute,
@@ -6562,8 +6576,8 @@ var Rt = "TooltipContent", $i = y.forwardRef(
6562
6576
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
6563
6577
  },
6564
6578
  children: [
6565
- /* @__PURE__ */ d.jsx(Ep, { children: n }),
6566
- /* @__PURE__ */ d.jsx(wp, { scope: r, isInside: !0, children: /* @__PURE__ */ d.jsx(mp, { id: l.contentId, role: "tooltip", children: a || n }) })
6579
+ /* @__PURE__ */ f.jsx(Ep, { children: n }),
6580
+ /* @__PURE__ */ f.jsx(wp, { scope: r, isInside: !0, children: /* @__PURE__ */ f.jsx(mp, { id: l.contentId, role: "tooltip", children: a || n }) })
6567
6581
  ]
6568
6582
  }
6569
6583
  )
@@ -6578,7 +6592,7 @@ var Ai = "TooltipArrow", Di = y.forwardRef(
6578
6592
  return kp(
6579
6593
  Ai,
6580
6594
  r
6581
- ).isInside ? null : /* @__PURE__ */ d.jsx(np, { ...a, ...n, ref: t });
6595
+ ).isInside ? null : /* @__PURE__ */ f.jsx(np, { ...a, ...n, ref: t });
6582
6596
  }
6583
6597
  );
6584
6598
  Di.displayName = Ai;
@@ -6675,7 +6689,7 @@ function Tp(e) {
6675
6689
  return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
6676
6690
  }
6677
6691
  var jp = Ci, Rp = Ti, $p = ji, Ip = Ri, Ap = $i, Dp = Di;
6678
- function Vm({
6692
+ function Bm({
6679
6693
  content: e,
6680
6694
  children: t,
6681
6695
  placement: r = "top",
@@ -6685,8 +6699,8 @@ function Vm({
6685
6699
  className: s
6686
6700
  }) {
6687
6701
  const [i, l] = X(o), c = ee(() => l((u) => !u), []);
6688
- return /* @__PURE__ */ d.jsx(jp, { delayDuration: a, children: /* @__PURE__ */ d.jsxs(Rp, { open: i, onOpenChange: l, children: [
6689
- /* @__PURE__ */ d.jsx($p, { asChild: !0, onClick: c, children: /* @__PURE__ */ d.jsx(
6702
+ return /* @__PURE__ */ f.jsx(jp, { delayDuration: a, children: /* @__PURE__ */ f.jsxs(Rp, { open: i, onOpenChange: l, children: [
6703
+ /* @__PURE__ */ f.jsx($p, { asChild: !0, onClick: c, children: /* @__PURE__ */ f.jsx(
6690
6704
  "span",
6691
6705
  {
6692
6706
  className: "inline-flex items-center cursor-default",
@@ -6695,7 +6709,7 @@ function Vm({
6695
6709
  children: t
6696
6710
  }
6697
6711
  ) }),
6698
- /* @__PURE__ */ d.jsx(Ip, { children: /* @__PURE__ */ d.jsxs(
6712
+ /* @__PURE__ */ f.jsx(Ip, { children: /* @__PURE__ */ f.jsxs(
6699
6713
  Ap,
6700
6714
  {
6701
6715
  side: r,
@@ -6714,7 +6728,7 @@ function Vm({
6714
6728
  ),
6715
6729
  children: [
6716
6730
  e,
6717
- /* @__PURE__ */ d.jsx(
6731
+ /* @__PURE__ */ f.jsx(
6718
6732
  Dp,
6719
6733
  {
6720
6734
  className: n === "dark" ? "fill-zinc-900" : "fill-white",
@@ -6737,7 +6751,7 @@ const Fp = {
6737
6751
  lg: "max-h-36"
6738
6752
  // ~6-7 lines
6739
6753
  };
6740
- function Bm({
6754
+ function Hm({
6741
6755
  children: e,
6742
6756
  size: t = "md",
6743
6757
  expandLabel: r = "Show more",
@@ -6748,8 +6762,8 @@ function Bm({
6748
6762
  return ne(() => {
6749
6763
  const u = c.current;
6750
6764
  u && l(u.scrollHeight > u.clientHeight);
6751
- }, [e, t]), /* @__PURE__ */ d.jsxs("div", { className: a, children: [
6752
- /* @__PURE__ */ d.jsx(
6765
+ }, [e, t]), /* @__PURE__ */ f.jsxs("div", { className: a, children: [
6766
+ /* @__PURE__ */ f.jsx(
6753
6767
  "div",
6754
6768
  {
6755
6769
  ref: c,
@@ -6762,7 +6776,7 @@ function Bm({
6762
6776
  children: e
6763
6777
  }
6764
6778
  ),
6765
- i && /* @__PURE__ */ d.jsx(
6779
+ i && /* @__PURE__ */ f.jsx(
6766
6780
  "button",
6767
6781
  {
6768
6782
  type: "button",
@@ -6774,7 +6788,7 @@ function Bm({
6774
6788
  )
6775
6789
  ] });
6776
6790
  }
6777
- function Hm({
6791
+ function zm({
6778
6792
  segments: e,
6779
6793
  size: t = "md",
6780
6794
  showLegend: r = !0,
@@ -6783,8 +6797,8 @@ function Hm({
6783
6797
  const a = e.reduce((s, i) => s + i.value, 0);
6784
6798
  if (a === 0) return null;
6785
6799
  const o = e.filter((s) => s.value > 0);
6786
- return /* @__PURE__ */ d.jsxs("div", { className: T("flex flex-col gap-1.5", n), children: [
6787
- /* @__PURE__ */ d.jsx(
6800
+ return /* @__PURE__ */ f.jsxs("div", { className: T("flex flex-col gap-1.5", n), children: [
6801
+ /* @__PURE__ */ f.jsx(
6788
6802
  "div",
6789
6803
  {
6790
6804
  "data-testid": "segment-bar-track",
@@ -6794,7 +6808,7 @@ function Hm({
6794
6808
  ),
6795
6809
  children: o.map((s) => {
6796
6810
  const i = s.value / a * 100;
6797
- return /* @__PURE__ */ d.jsx(
6811
+ return /* @__PURE__ */ f.jsx(
6798
6812
  "div",
6799
6813
  {
6800
6814
  "data-testid": `segment-${s.key}`,
@@ -6807,19 +6821,19 @@ function Hm({
6807
6821
  })
6808
6822
  }
6809
6823
  ),
6810
- r && /* @__PURE__ */ d.jsx(
6824
+ r && /* @__PURE__ */ f.jsx(
6811
6825
  "div",
6812
6826
  {
6813
6827
  "data-testid": "segment-bar-legend",
6814
6828
  className: "flex flex-wrap gap-x-3 gap-y-0.5",
6815
6829
  children: o.map((s) => {
6816
6830
  const i = Math.round(s.value / a * 100);
6817
- return /* @__PURE__ */ d.jsxs(
6831
+ return /* @__PURE__ */ f.jsxs(
6818
6832
  "span",
6819
6833
  {
6820
6834
  className: "flex items-center gap-1.5 text-xs text-gray-600 dark:text-gray-400",
6821
6835
  children: [
6822
- /* @__PURE__ */ d.jsx(
6836
+ /* @__PURE__ */ f.jsx(
6823
6837
  "span",
6824
6838
  {
6825
6839
  className: "h-2 w-2 flex-none rounded-full",
@@ -6828,7 +6842,7 @@ function Hm({
6828
6842
  }
6829
6843
  ),
6830
6844
  s.label,
6831
- /* @__PURE__ */ d.jsxs("span", { className: "opacity-60", children: [
6845
+ /* @__PURE__ */ f.jsxs("span", { className: "opacity-60", children: [
6832
6846
  i,
6833
6847
  "%"
6834
6848
  ] })
@@ -6877,7 +6891,7 @@ const Mp = Z(
6877
6891
  ...i
6878
6892
  }, l) => {
6879
6893
  const c = e === "error";
6880
- return /* @__PURE__ */ d.jsxs(
6894
+ return /* @__PURE__ */ f.jsxs(
6881
6895
  "div",
6882
6896
  {
6883
6897
  ref: l,
@@ -6886,7 +6900,7 @@ const Mp = Z(
6886
6900
  className: T(Mp({ colorScheme: e }), s),
6887
6901
  ...i,
6888
6902
  children: [
6889
- n === void 0 ? /* @__PURE__ */ d.jsx(
6903
+ n === void 0 ? /* @__PURE__ */ f.jsx(
6890
6904
  me,
6891
6905
  {
6892
6906
  icon: Lp[e ?? "error"],
@@ -6894,18 +6908,18 @@ const Mp = Z(
6894
6908
  "aria-hidden": "true"
6895
6909
  }
6896
6910
  ) : n,
6897
- /* @__PURE__ */ d.jsxs("div", { className: "min-w-0 flex-1", children: [
6898
- t && /* @__PURE__ */ d.jsx("p", { className: "font-semibold", children: t }),
6899
- /* @__PURE__ */ d.jsx("div", { className: T("min-w-0", t && "mt-0.5 opacity-90"), children: r })
6911
+ /* @__PURE__ */ f.jsxs("div", { className: "min-w-0 flex-1", children: [
6912
+ t && /* @__PURE__ */ f.jsx("p", { className: "font-semibold", children: t }),
6913
+ /* @__PURE__ */ f.jsx("div", { className: T("min-w-0", t && "mt-0.5 opacity-90"), children: r })
6900
6914
  ] }),
6901
- a && /* @__PURE__ */ d.jsx(
6915
+ a && /* @__PURE__ */ f.jsx(
6902
6916
  "button",
6903
6917
  {
6904
6918
  type: "button",
6905
6919
  onClick: a,
6906
6920
  "aria-label": o,
6907
6921
  className: "-m-1 shrink-0 rounded p-1 opacity-60 transition-opacity hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-current",
6908
- children: /* @__PURE__ */ d.jsx(me, { icon: Gt, className: "h-3.5 w-3.5", "aria-hidden": "true" })
6922
+ children: /* @__PURE__ */ f.jsx(me, { icon: Gt, className: "h-3.5 w-3.5", "aria-hidden": "true" })
6909
6923
  }
6910
6924
  )
6911
6925
  ]
@@ -6914,7 +6928,7 @@ const Mp = Z(
6914
6928
  }
6915
6929
  );
6916
6930
  _p.displayName = "Alert";
6917
- const zm = ({
6931
+ const Wm = ({
6918
6932
  items: e,
6919
6933
  allowMultiple: t = !1,
6920
6934
  variant: r = "soft",
@@ -6930,9 +6944,9 @@ const zm = ({
6930
6944
  return t ? m ? p.delete(c) : p.add(c) : (p.clear(), m || p.add(c)), p;
6931
6945
  });
6932
6946
  };
6933
- return /* @__PURE__ */ d.jsx("div", { className: T("w-full space-y-1", n), children: e.map((c, u) => /* @__PURE__ */ d.jsxs("div", { className: "relative", children: [
6934
- a && u > 0 && /* @__PURE__ */ d.jsx("div", { className: "mx-4 h-px bg-gray-200/50 dark:bg-gray-700/50 transition-colors mb-1" }),
6935
- /* @__PURE__ */ d.jsx(
6947
+ return /* @__PURE__ */ f.jsx("div", { className: T("w-full space-y-1", n), children: e.map((c, u) => /* @__PURE__ */ f.jsxs("div", { className: "relative", children: [
6948
+ a && u > 0 && /* @__PURE__ */ f.jsx("div", { className: "mx-4 h-px bg-gray-200/50 dark:bg-gray-700/50 transition-colors mb-1" }),
6949
+ /* @__PURE__ */ f.jsx(
6936
6950
  n0,
6937
6951
  {
6938
6952
  title: c.title,
@@ -6960,7 +6974,7 @@ const zm = ({
6960
6974
  },
6961
6975
  defaultVariants: { layout: "inline", size: "sm" }
6962
6976
  }), Bp = E.forwardRef(
6963
- ({ items: e, layout: t, size: r, dividers: n = !1, className: a, ...o }, s) => /* @__PURE__ */ d.jsx(
6977
+ ({ items: e, layout: t, size: r, dividers: n = !1, className: a, ...o }, s) => /* @__PURE__ */ f.jsx(
6964
6978
  "dl",
6965
6979
  {
6966
6980
  ref: s,
@@ -6968,15 +6982,15 @@ const zm = ({
6968
6982
  ...o,
6969
6983
  children: e.map((i, l) => {
6970
6984
  const c = l === e.length - 1, u = n && !c ? "border-b border-gray-200 pb-1.5 dark:border-gray-800" : "";
6971
- return t === "stacked" ? /* @__PURE__ */ d.jsxs("div", { className: T("flex flex-col gap-0.5", u), children: [
6972
- /* @__PURE__ */ d.jsx("dt", { className: "font-mono uppercase tracking-[0.08em] text-gray-500 dark:text-gray-400", children: i.term }),
6973
- /* @__PURE__ */ d.jsx("dd", { className: "m-0 text-gray-900 dark:text-gray-100", children: i.description })
6974
- ] }, l) : t === "split" ? /* @__PURE__ */ d.jsxs("div", { className: T("flex items-baseline justify-between gap-4", u), children: [
6975
- /* @__PURE__ */ d.jsx("dt", { className: "font-mono uppercase tracking-[0.08em] text-gray-500 dark:text-gray-400", children: i.term }),
6976
- /* @__PURE__ */ d.jsx("dd", { className: "m-0 text-right tabular-nums text-gray-900 dark:text-gray-100", children: i.description })
6977
- ] }, l) : /* @__PURE__ */ d.jsxs("div", { className: T("contents", u), children: [
6978
- /* @__PURE__ */ d.jsx("dt", { className: "whitespace-nowrap font-mono uppercase tracking-[0.08em] text-gray-500 dark:text-gray-400", children: i.term }),
6979
- /* @__PURE__ */ d.jsx("dd", { className: "m-0 text-gray-900 dark:text-gray-100", children: i.description })
6985
+ return t === "stacked" ? /* @__PURE__ */ f.jsxs("div", { className: T("flex flex-col gap-0.5", u), children: [
6986
+ /* @__PURE__ */ f.jsx("dt", { className: "font-mono uppercase tracking-[0.08em] text-gray-500 dark:text-gray-400", children: i.term }),
6987
+ /* @__PURE__ */ f.jsx("dd", { className: "m-0 text-gray-900 dark:text-gray-100", children: i.description })
6988
+ ] }, l) : t === "split" ? /* @__PURE__ */ f.jsxs("div", { className: T("flex items-baseline justify-between gap-4", u), children: [
6989
+ /* @__PURE__ */ f.jsx("dt", { className: "font-mono uppercase tracking-[0.08em] text-gray-500 dark:text-gray-400", children: i.term }),
6990
+ /* @__PURE__ */ f.jsx("dd", { className: "m-0 text-right tabular-nums text-gray-900 dark:text-gray-100", children: i.description })
6991
+ ] }, l) : /* @__PURE__ */ f.jsxs("div", { className: T("contents", u), children: [
6992
+ /* @__PURE__ */ f.jsx("dt", { className: "whitespace-nowrap font-mono uppercase tracking-[0.08em] text-gray-500 dark:text-gray-400", children: i.term }),
6993
+ /* @__PURE__ */ f.jsx("dd", { className: "m-0 text-gray-900 dark:text-gray-100", children: i.description })
6980
6994
  ] }, l);
6981
6995
  })
6982
6996
  }
@@ -7011,14 +7025,14 @@ const Hp = Z("my-1", {
7011
7025
  },
7012
7026
  defaultVariants: { variant: "rule", colorScheme: "primary" }
7013
7027
  }), zp = E.forwardRef(
7014
- ({ children: e, cite: t, citeUrl: r, variant: n, colorScheme: a, className: o, ...s }, i) => /* @__PURE__ */ d.jsxs(
7028
+ ({ children: e, cite: t, citeUrl: r, variant: n, colorScheme: a, className: o, ...s }, i) => /* @__PURE__ */ f.jsxs(
7015
7029
  "figure",
7016
7030
  {
7017
7031
  ref: i,
7018
7032
  className: T(Hp({ variant: n, colorScheme: a }), o),
7019
7033
  ...s,
7020
7034
  children: [
7021
- /* @__PURE__ */ d.jsx(
7035
+ /* @__PURE__ */ f.jsx(
7022
7036
  "blockquote",
7023
7037
  {
7024
7038
  cite: r,
@@ -7026,7 +7040,7 @@ const Hp = Z("my-1", {
7026
7040
  children: e
7027
7041
  }
7028
7042
  ),
7029
- t && /* @__PURE__ */ d.jsx("figcaption", { className: "mt-[7px] font-mono text-[0.625rem] uppercase leading-none tracking-[0.14em] text-gray-500 dark:text-gray-400", children: t })
7043
+ t && /* @__PURE__ */ f.jsx("figcaption", { className: "mt-[7px] font-mono text-[0.625rem] uppercase leading-none tracking-[0.14em] text-gray-500 dark:text-gray-400", children: t })
7030
7044
  ]
7031
7045
  }
7032
7046
  )
@@ -7046,71 +7060,81 @@ const ho = Z(
7046
7060
  variant: "default"
7047
7061
  }
7048
7062
  }
7049
- ), Wm = ({
7063
+ ), Um = ({
7050
7064
  items: e,
7051
7065
  separator: t,
7052
7066
  showHomeIcon: r,
7053
- variant: n,
7054
- className: a,
7055
- ...o
7067
+ homeHref: n = "/",
7068
+ linkComponent: a,
7069
+ currentClassName: o,
7070
+ variant: s,
7071
+ className: i,
7072
+ ...l
7056
7073
  }) => {
7057
- const s = t ?? /* @__PURE__ */ d.jsx("span", { className: "text-gray-300 dark:text-gray-600 text-sm transition-colors", children: "/" });
7058
- return /* @__PURE__ */ d.jsx("nav", { "aria-label": "Breadcrumb", className: T("flex", a), ...o, children: /* @__PURE__ */ d.jsxs("ol", { className: "flex items-center space-x-2", children: [
7059
- r && /* @__PURE__ */ d.jsxs("li", { className: "flex items-center", children: [
7060
- /* @__PURE__ */ d.jsx(
7061
- dt,
7074
+ const c = a ?? St, u = t ?? /* @__PURE__ */ f.jsx("span", { className: "text-gray-300 dark:text-gray-600 text-sm transition-colors", children: "/" });
7075
+ return /* @__PURE__ */ f.jsx("nav", { "aria-label": "Breadcrumb", className: T("flex", i), ...l, children: /* @__PURE__ */ f.jsxs("ol", { className: "flex items-center space-x-2", children: [
7076
+ r && /* @__PURE__ */ f.jsxs("li", { className: "flex items-center", children: [
7077
+ /* @__PURE__ */ f.jsx(
7078
+ c,
7062
7079
  {
7063
- href: "/",
7080
+ href: n,
7064
7081
  className: T(
7065
- ho({ variant: n }),
7082
+ ho({ variant: s }),
7066
7083
  "hover:underline-none"
7067
7084
  ),
7068
7085
  "aria-label": "Home",
7069
- children: /* @__PURE__ */ d.jsx(me, { icon: Yi, className: "h-4 w-4" })
7086
+ children: /* @__PURE__ */ f.jsx(me, { icon: Yi, className: "h-4 w-4" })
7070
7087
  }
7071
7088
  ),
7072
- /* @__PURE__ */ d.jsx(
7089
+ /* @__PURE__ */ f.jsx(
7073
7090
  "span",
7074
7091
  {
7075
7092
  className: "ml-2 flex select-none items-center",
7076
7093
  "aria-hidden": "true",
7077
- children: s
7094
+ children: u
7078
7095
  }
7079
7096
  )
7080
7097
  ] }),
7081
- e.map((i, l) => {
7082
- const c = l === e.length - 1;
7083
- return /* @__PURE__ */ d.jsxs("li", { className: "flex items-center", children: [
7084
- l > 0 && /* @__PURE__ */ d.jsx(
7085
- "span",
7086
- {
7087
- className: "mr-2 flex select-none items-center",
7088
- "aria-hidden": "true",
7089
- children: s
7090
- }
7091
- ),
7092
- c ? /* @__PURE__ */ d.jsx(
7093
- "span",
7094
- {
7095
- className: T(
7096
- "font-semibold text-sm cursor-default transition-colors",
7097
- n === "inverse" ? "text-white" : "text-gray-900 dark:text-gray-100"
7098
- ),
7099
- "aria-current": "page",
7100
- children: i.label
7101
- }
7102
- ) : /* @__PURE__ */ d.jsx(
7103
- dt,
7104
- {
7105
- href: i.href,
7106
- className: T(
7107
- ho({ variant: n }),
7108
- "hover:underline"
7109
- ),
7110
- children: i.label
7111
- }
7112
- )
7113
- ] }, i.href);
7098
+ e.map((p, m) => {
7099
+ const d = m === e.length - 1;
7100
+ return (
7101
+ /* Keyed by index: `href` is optional now, and a trail can legally
7102
+ repeat one. */
7103
+ /* @__PURE__ */ f.jsxs("li", { className: "flex items-center", children: [
7104
+ m > 0 && /* @__PURE__ */ f.jsx(
7105
+ "span",
7106
+ {
7107
+ className: "mr-2 flex select-none items-center",
7108
+ "aria-hidden": "true",
7109
+ children: u
7110
+ }
7111
+ ),
7112
+ d || !p.href ? /* @__PURE__ */ f.jsx(
7113
+ "span",
7114
+ {
7115
+ className: T(
7116
+ "font-semibold text-sm cursor-default transition-colors",
7117
+ s === "inverse" ? "text-white" : "text-gray-900 dark:text-gray-100",
7118
+ d && o,
7119
+ p.className
7120
+ ),
7121
+ "aria-current": d ? "page" : void 0,
7122
+ children: p.label
7123
+ }
7124
+ ) : /* @__PURE__ */ f.jsx(
7125
+ c,
7126
+ {
7127
+ href: p.href,
7128
+ className: T(
7129
+ ho({ variant: s }),
7130
+ "hover:underline",
7131
+ p.className
7132
+ ),
7133
+ children: p.label
7134
+ }
7135
+ )
7136
+ ] }, m)
7137
+ );
7114
7138
  })
7115
7139
  ] }) });
7116
7140
  }, Wp = Z(
@@ -7130,7 +7154,7 @@ const ho = Z(
7130
7154
  variant: "primary"
7131
7155
  }
7132
7156
  }
7133
- ), Um = ({
7157
+ ), Ym = ({
7134
7158
  title: e,
7135
7159
  description: t,
7136
7160
  action: r,
@@ -7139,16 +7163,16 @@ const ho = Z(
7139
7163
  onDismiss: o,
7140
7164
  className: s,
7141
7165
  ...i
7142
- }) => /* @__PURE__ */ d.jsxs("div", { className: T(Wp({ variant: a }), s), ...i, children: [
7143
- /* @__PURE__ */ d.jsxs("div", { className: "flex items-start gap-4", children: [
7144
- n && /* @__PURE__ */ d.jsx("div", { className: "mt-1 shrink-0 text-current", children: n }),
7145
- /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col gap-1.5 w-full", children: [
7146
- /* @__PURE__ */ d.jsx("h3", { className: "text-lg font-bold leading-tight tracking-tight text-current", children: e }),
7147
- t && /* @__PURE__ */ d.jsx("div", { className: "max-w-prose text-sm leading-relaxed text-current opacity-90 dark:opacity-80", children: t })
7166
+ }) => /* @__PURE__ */ f.jsxs("div", { className: T(Wp({ variant: a }), s), ...i, children: [
7167
+ /* @__PURE__ */ f.jsxs("div", { className: "flex items-start gap-4", children: [
7168
+ n && /* @__PURE__ */ f.jsx("div", { className: "mt-1 shrink-0 text-current", children: n }),
7169
+ /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-1.5 w-full", children: [
7170
+ /* @__PURE__ */ f.jsx("h3", { className: "text-lg font-bold leading-tight tracking-tight text-current", children: e }),
7171
+ t && /* @__PURE__ */ f.jsx("div", { className: "max-w-prose text-sm leading-relaxed text-current opacity-90 dark:opacity-80", children: t })
7148
7172
  ] })
7149
7173
  ] }),
7150
- r && /* @__PURE__ */ d.jsx("div", { className: "shrink-0 pt-2 md:pt-0", children: r }),
7151
- o && /* @__PURE__ */ d.jsx("div", { className: "absolute right-2 top-2", children: /* @__PURE__ */ d.jsx(
7174
+ r && /* @__PURE__ */ f.jsx("div", { className: "shrink-0 pt-2 md:pt-0", children: r }),
7175
+ o && /* @__PURE__ */ f.jsx("div", { className: "absolute right-2 top-2", children: /* @__PURE__ */ f.jsx(
7152
7176
  Ue,
7153
7177
  {
7154
7178
  variant: "ghost",
@@ -7156,7 +7180,7 @@ const ho = Z(
7156
7180
  className: "h-8 w-8 rounded-full p-0 opacity-60 hover:opacity-100 dark:hover:bg-black/20",
7157
7181
  onClick: o,
7158
7182
  "aria-label": "Dismiss",
7159
- children: /* @__PURE__ */ d.jsx(me, { icon: Gt, className: "h-4 w-4" })
7183
+ children: /* @__PURE__ */ f.jsx(me, { icon: Gt, className: "h-4 w-4" })
7160
7184
  }
7161
7185
  ) })
7162
7186
  ] }), Up = Z(
@@ -7172,7 +7196,7 @@ const ho = Z(
7172
7196
  variant: "dashed"
7173
7197
  }
7174
7198
  }
7175
- ), Ym = ({
7199
+ ), Gm = ({
7176
7200
  title: e,
7177
7201
  description: t,
7178
7202
  icon: r,
@@ -7180,11 +7204,11 @@ const ho = Z(
7180
7204
  variant: a,
7181
7205
  className: o,
7182
7206
  ...s
7183
- }) => /* @__PURE__ */ d.jsxs("div", { className: T(Up({ variant: a }), o), ...s, children: [
7184
- r && /* @__PURE__ */ d.jsx("div", { className: "mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-gray-100 text-gray-400", children: /* @__PURE__ */ d.jsx("div", { className: "h-6 w-6 [&>svg]:h-full [&>svg]:w-full", children: r }) }),
7185
- /* @__PURE__ */ d.jsx("h3", { className: "text-lg font-semibold text-gray-900", children: e }),
7186
- t && /* @__PURE__ */ d.jsx("p", { className: "mt-1 max-w-sm text-sm text-gray-500", children: t }),
7187
- n && /* @__PURE__ */ d.jsx("div", { className: "mt-6", children: n })
7207
+ }) => /* @__PURE__ */ f.jsxs("div", { className: T(Up({ variant: a }), o), ...s, children: [
7208
+ r && /* @__PURE__ */ f.jsx("div", { className: "mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-gray-100 text-gray-400", children: /* @__PURE__ */ f.jsx("div", { className: "h-6 w-6 [&>svg]:h-full [&>svg]:w-full", children: r }) }),
7209
+ /* @__PURE__ */ f.jsx("h3", { className: "text-lg font-semibold text-gray-900", children: e }),
7210
+ t && /* @__PURE__ */ f.jsx("p", { className: "mt-1 max-w-sm text-sm text-gray-500", children: t }),
7211
+ n && /* @__PURE__ */ f.jsx("div", { className: "mt-6", children: n })
7188
7212
  ] }), Yp = Z(
7189
7213
  "flex flex-col items-center justify-center text-center p-8 rounded-lg transition-colors",
7190
7214
  {
@@ -7198,7 +7222,7 @@ const ho = Z(
7198
7222
  variant: "card"
7199
7223
  }
7200
7224
  }
7201
- ), Gm = ({
7225
+ ), Km = ({
7202
7226
  title: e = "An Error Occurred",
7203
7227
  description: t,
7204
7228
  onRetry: r,
@@ -7207,16 +7231,16 @@ const ho = Z(
7207
7231
  variant: o,
7208
7232
  className: s,
7209
7233
  ...i
7210
- }) => /* @__PURE__ */ d.jsxs("div", { className: T(Yp({ variant: o }), s), ...i, children: [
7211
- /* @__PURE__ */ d.jsx("div", { className: "mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-error-100 text-error-600", children: /* @__PURE__ */ d.jsx("div", { className: "h-6 w-6 flex items-center justify-center", children: a || /* @__PURE__ */ d.jsx(
7234
+ }) => /* @__PURE__ */ f.jsxs("div", { className: T(Yp({ variant: o }), s), ...i, children: [
7235
+ /* @__PURE__ */ f.jsx("div", { className: "mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-error-100 text-error-600", children: /* @__PURE__ */ f.jsx("div", { className: "h-6 w-6 flex items-center justify-center", children: a || /* @__PURE__ */ f.jsx(
7212
7236
  me,
7213
7237
  {
7214
7238
  icon: Co,
7215
7239
  className: "h-full w-full"
7216
7240
  }
7217
7241
  ) }) }),
7218
- /* @__PURE__ */ d.jsx("h3", { className: "text-lg font-bold tracking-tight", children: e }),
7219
- /* @__PURE__ */ d.jsx(
7242
+ /* @__PURE__ */ f.jsx("h3", { className: "text-lg font-bold tracking-tight", children: e }),
7243
+ /* @__PURE__ */ f.jsx(
7220
7244
  "p",
7221
7245
  {
7222
7246
  className: T(
@@ -7226,7 +7250,7 @@ const ho = Z(
7226
7250
  children: t
7227
7251
  }
7228
7252
  ),
7229
- /* @__PURE__ */ d.jsx("div", { className: "mt-6", children: n || (r ? /* @__PURE__ */ d.jsx(
7253
+ /* @__PURE__ */ f.jsx("div", { className: "mt-6", children: n || (r ? /* @__PURE__ */ f.jsx(
7230
7254
  Ue,
7231
7255
  {
7232
7256
  onClick: r,
@@ -7265,7 +7289,7 @@ const ho = Z(
7265
7289
  ...o
7266
7290
  }, s) => {
7267
7291
  const i = (u) => r ? n ? "tie" : u.isWinner ? "winner" : "loser" : "default", l = i(e), c = i(t);
7268
- return /* @__PURE__ */ d.jsxs(
7292
+ return /* @__PURE__ */ f.jsxs(
7269
7293
  "button",
7270
7294
  {
7271
7295
  ref: s,
@@ -7276,8 +7300,8 @@ const ho = Z(
7276
7300
  ),
7277
7301
  ...o,
7278
7302
  children: [
7279
- /* @__PURE__ */ d.jsxs("div", { className: bo({ state: l }), children: [
7280
- /* @__PURE__ */ d.jsx("div", { className: "relative", children: /* @__PURE__ */ d.jsx(
7303
+ /* @__PURE__ */ f.jsxs("div", { className: bo({ state: l }), children: [
7304
+ /* @__PURE__ */ f.jsx("div", { className: "relative", children: /* @__PURE__ */ f.jsx(
7281
7305
  "img",
7282
7306
  {
7283
7307
  src: e.logoSrc,
@@ -7285,8 +7309,8 @@ const ho = Z(
7285
7309
  className: vo({ state: l })
7286
7310
  }
7287
7311
  ) }),
7288
- /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col items-end", children: [
7289
- e.accessory && /* @__PURE__ */ d.jsx(
7312
+ /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col items-end", children: [
7313
+ e.accessory && /* @__PURE__ */ f.jsx(
7290
7314
  "span",
7291
7315
  {
7292
7316
  className: T(
@@ -7296,13 +7320,13 @@ const ho = Z(
7296
7320
  children: e.accessory
7297
7321
  }
7298
7322
  ),
7299
- r && e.score !== void 0 && /* @__PURE__ */ d.jsx("span", { className: "text-xs font-mono font-semibold text-gray-900 dark:text-white", children: e.score })
7323
+ r && e.score !== void 0 && /* @__PURE__ */ f.jsx("span", { className: "text-xs font-mono font-semibold text-gray-900 dark:text-white", children: e.score })
7300
7324
  ] })
7301
7325
  ] }),
7302
- /* @__PURE__ */ d.jsx("span", { className: "text-xs font-medium text-gray-500 self-center px-1", children: r ? "-" : "@" }),
7303
- /* @__PURE__ */ d.jsxs("div", { className: bo({ state: c }), children: [
7304
- /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col items-start", children: [
7305
- t.accessory && /* @__PURE__ */ d.jsx(
7326
+ /* @__PURE__ */ f.jsx("span", { className: "text-xs font-medium text-gray-500 self-center px-1", children: r ? "-" : "@" }),
7327
+ /* @__PURE__ */ f.jsxs("div", { className: bo({ state: c }), children: [
7328
+ /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col items-start", children: [
7329
+ t.accessory && /* @__PURE__ */ f.jsx(
7306
7330
  "span",
7307
7331
  {
7308
7332
  className: T(
@@ -7312,9 +7336,9 @@ const ho = Z(
7312
7336
  children: t.accessory
7313
7337
  }
7314
7338
  ),
7315
- r && t.score !== void 0 && /* @__PURE__ */ d.jsx("span", { className: "text-xs font-mono font-semibold text-gray-900 dark:text-white", children: t.score })
7339
+ r && t.score !== void 0 && /* @__PURE__ */ f.jsx("span", { className: "text-xs font-mono font-semibold text-gray-900 dark:text-white", children: t.score })
7316
7340
  ] }),
7317
- /* @__PURE__ */ d.jsx("div", { className: "relative", children: /* @__PURE__ */ d.jsx(
7341
+ /* @__PURE__ */ f.jsx("div", { className: "relative", children: /* @__PURE__ */ f.jsx(
7318
7342
  "img",
7319
7343
  {
7320
7344
  src: t.logoSrc,
@@ -7361,22 +7385,22 @@ const Kp = Z(
7361
7385
  variant: s,
7362
7386
  className: i,
7363
7387
  ...l
7364
- }, c) => /* @__PURE__ */ d.jsx(
7388
+ }, c) => /* @__PURE__ */ f.jsx(
7365
7389
  "div",
7366
7390
  {
7367
7391
  ref: c,
7368
7392
  className: T(Kp({ variant: s, position: o }), i),
7369
7393
  ...l,
7370
- children: /* @__PURE__ */ d.jsxs("div", { className: "container mx-auto p-4", children: [
7371
- /* @__PURE__ */ d.jsxs("div", { className: "flex justify-between items-center", children: [
7372
- /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col sm:flex-row sm:items-center gap-x-4 gap-y-2", children: [
7373
- e && /* @__PURE__ */ d.jsx("span", { className: "font-semibold text-lg", children: e }),
7374
- r && /* @__PURE__ */ d.jsx("div", { className: "max-w-44 sm:max-w-max mr-2", children: r })
7394
+ children: /* @__PURE__ */ f.jsxs("div", { className: "container mx-auto p-4", children: [
7395
+ /* @__PURE__ */ f.jsxs("div", { className: "flex justify-between items-center", children: [
7396
+ /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col sm:flex-row sm:items-center gap-x-4 gap-y-2", children: [
7397
+ e && /* @__PURE__ */ f.jsx("span", { className: "font-semibold text-lg", children: e }),
7398
+ r && /* @__PURE__ */ f.jsx("div", { className: "max-w-44 sm:max-w-max mr-2", children: r })
7375
7399
  ] }),
7376
- n && /* @__PURE__ */ d.jsx("div", { className: "flex gap-2", children: n })
7400
+ n && /* @__PURE__ */ f.jsx("div", { className: "flex gap-2", children: n })
7377
7401
  ] }),
7378
- t && /* @__PURE__ */ d.jsx("div", { className: "text-sm opacity-80 mt-1 font-medium", children: t }),
7379
- a && /* @__PURE__ */ d.jsx("div", { className: "flex flex-wrap items-center mt-4 pt-4 border-t border-black/10 dark:border-white/10 gap-y-2", children: a })
7402
+ t && /* @__PURE__ */ f.jsx("div", { className: "text-sm opacity-80 mt-1 font-medium", children: t }),
7403
+ a && /* @__PURE__ */ f.jsx("div", { className: "flex flex-wrap items-center mt-4 pt-4 border-t border-black/10 dark:border-white/10 gap-y-2", children: a })
7380
7404
  ] })
7381
7405
  }
7382
7406
  )
@@ -7416,7 +7440,7 @@ function Vt(e, t, r) {
7416
7440
  hours: i = 0,
7417
7441
  minutes: l = 0,
7418
7442
  seconds: c = 0
7419
- } = t, u = Pe(e), p = a || n ? em(u, a + n * 12) : u, m = s || o ? Jp(p, s + o * 7) : p, f = l + i * 60, h = (c + f * 60) * 1e3;
7443
+ } = t, u = Pe(e), p = a || n ? em(u, a + n * 12) : u, m = s || o ? Jp(p, s + o * 7) : p, d = l + i * 60, h = (c + d * 60) * 1e3;
7420
7444
  return $t(e, +m + h);
7421
7445
  }
7422
7446
  function yo(e) {
@@ -7564,8 +7588,8 @@ function mm(e, t) {
7564
7588
  c && (a.days = c);
7565
7589
  const u = Vt(l, { days: a.days }), p = om(n, u);
7566
7590
  p && (a.hours = p);
7567
- const m = Vt(u, { hours: a.hours }), f = sm(n, m);
7568
- f && (a.minutes = f);
7591
+ const m = Vt(u, { hours: a.hours }), d = sm(n, m);
7592
+ d && (a.minutes = d);
7569
7593
  const g = Vt(m, { minutes: a.minutes }), h = dm(n, g);
7570
7594
  return h && (a.seconds = h), a;
7571
7595
  }
@@ -7651,9 +7675,9 @@ const hm = (e) => {
7651
7675
  size: "md"
7652
7676
  }
7653
7677
  }
7654
- ), xr = ({ value: e, label: t, size: r, variant: n }) => /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col items-center", children: [
7655
- /* @__PURE__ */ d.jsx("span", { className: T(bm({ size: r, variant: n })), children: String(e).padStart(2, "0") }),
7656
- /* @__PURE__ */ d.jsx("span", { className: T(vm({ size: r })), children: t })
7678
+ ), xr = ({ value: e, label: t, size: r, variant: n }) => /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col items-center", children: [
7679
+ /* @__PURE__ */ f.jsx("span", { className: T(bm({ size: r, variant: n })), children: String(e).padStart(2, "0") }),
7680
+ /* @__PURE__ */ f.jsx("span", { className: T(vm({ size: r })), children: t })
7657
7681
  ] }), xm = E.forwardRef(
7658
7682
  ({
7659
7683
  targetDate: e,
@@ -7665,7 +7689,7 @@ const hm = (e) => {
7665
7689
  ...s
7666
7690
  }, i) => {
7667
7691
  const { days: l, hours: c, minutes: u, seconds: p, isFinished: m } = hm(e);
7668
- return m ? o ? /* @__PURE__ */ d.jsx(
7692
+ return m ? o ? /* @__PURE__ */ f.jsx(
7669
7693
  "div",
7670
7694
  {
7671
7695
  ref: i,
@@ -7674,9 +7698,9 @@ const hm = (e) => {
7674
7698
  a
7675
7699
  ),
7676
7700
  ...s,
7677
- children: /* @__PURE__ */ d.jsx("h3", { className: T(Eo({ size: r }), "mb-0"), children: o })
7701
+ children: /* @__PURE__ */ f.jsx("h3", { className: T(Eo({ size: r }), "mb-0"), children: o })
7678
7702
  }
7679
- ) : null : /* @__PURE__ */ d.jsxs(
7703
+ ) : null : /* @__PURE__ */ f.jsxs(
7680
7704
  "div",
7681
7705
  {
7682
7706
  ref: i,
@@ -7686,9 +7710,9 @@ const hm = (e) => {
7686
7710
  ),
7687
7711
  ...s,
7688
7712
  children: [
7689
- t && /* @__PURE__ */ d.jsx("h3", { className: T(Eo({ size: r })), children: t }),
7690
- /* @__PURE__ */ d.jsxs("div", { className: "flex justify-center gap-4 sm:gap-6 md:gap-8", children: [
7691
- /* @__PURE__ */ d.jsx(
7713
+ t && /* @__PURE__ */ f.jsx("h3", { className: T(Eo({ size: r })), children: t }),
7714
+ /* @__PURE__ */ f.jsxs("div", { className: "flex justify-center gap-4 sm:gap-6 md:gap-8", children: [
7715
+ /* @__PURE__ */ f.jsx(
7692
7716
  xr,
7693
7717
  {
7694
7718
  value: l,
@@ -7697,7 +7721,7 @@ const hm = (e) => {
7697
7721
  variant: n
7698
7722
  }
7699
7723
  ),
7700
- /* @__PURE__ */ d.jsx(
7724
+ /* @__PURE__ */ f.jsx(
7701
7725
  xr,
7702
7726
  {
7703
7727
  value: c,
@@ -7706,7 +7730,7 @@ const hm = (e) => {
7706
7730
  variant: n
7707
7731
  }
7708
7732
  ),
7709
- /* @__PURE__ */ d.jsx(
7733
+ /* @__PURE__ */ f.jsx(
7710
7734
  xr,
7711
7735
  {
7712
7736
  value: u,
@@ -7715,7 +7739,7 @@ const hm = (e) => {
7715
7739
  variant: n
7716
7740
  }
7717
7741
  ),
7718
- /* @__PURE__ */ d.jsx(
7742
+ /* @__PURE__ */ f.jsx(
7719
7743
  xr,
7720
7744
  {
7721
7745
  value: p,
@@ -7765,7 +7789,7 @@ const ym = Z(
7765
7789
  }
7766
7790
  ), wm = Z("text-xl font-bold leading-6 text-inherit"), km = Z("mt-1 text-sm text-inherit opacity-75"), Em = Z(
7767
7791
  "inline-flex rounded-md bg-transparent text-inherit opacity-50 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 transition-opacity"
7768
- ), Km = ({
7792
+ ), qm = ({
7769
7793
  isOpen: e,
7770
7794
  onClose: t,
7771
7795
  title: r,
@@ -7775,8 +7799,8 @@ const ym = Z(
7775
7799
  status: s,
7776
7800
  children: i,
7777
7801
  className: l
7778
- }) => /* @__PURE__ */ d.jsx(jt, { appear: !0, show: e, as: xe, children: /* @__PURE__ */ d.jsxs(xd, { as: "div", className: "relative z-50", onClose: t, children: [
7779
- /* @__PURE__ */ d.jsx(
7802
+ }) => /* @__PURE__ */ f.jsx(jt, { appear: !0, show: e, as: xe, children: /* @__PURE__ */ f.jsxs(xd, { as: "div", className: "relative z-50", onClose: t, children: [
7803
+ /* @__PURE__ */ f.jsx(
7780
7804
  Zt,
7781
7805
  {
7782
7806
  as: xe,
@@ -7786,7 +7810,7 @@ const ym = Z(
7786
7810
  leave: "ease-in duration-200",
7787
7811
  leaveFrom: "opacity-100",
7788
7812
  leaveTo: "opacity-0",
7789
- children: /* @__PURE__ */ d.jsx(
7813
+ children: /* @__PURE__ */ f.jsx(
7790
7814
  vd,
7791
7815
  {
7792
7816
  className: T(
@@ -7797,7 +7821,7 @@ const ym = Z(
7797
7821
  )
7798
7822
  }
7799
7823
  ),
7800
- /* @__PURE__ */ d.jsx("div", { className: "fixed inset-0 overflow-y-auto", children: /* @__PURE__ */ d.jsx("div", { className: "flex min-h-full items-center justify-center p-4 text-center", children: /* @__PURE__ */ d.jsx(
7824
+ /* @__PURE__ */ f.jsx("div", { className: "fixed inset-0 overflow-y-auto", children: /* @__PURE__ */ f.jsx("div", { className: "flex min-h-full items-center justify-center p-4 text-center", children: /* @__PURE__ */ f.jsx(
7801
7825
  Zt,
7802
7826
  {
7803
7827
  as: xe,
@@ -7807,7 +7831,7 @@ const ym = Z(
7807
7831
  leave: "ease-in duration-200",
7808
7832
  leaveFrom: "opacity-100 scale-100",
7809
7833
  leaveTo: "opacity-0 scale-95",
7810
- children: /* @__PURE__ */ d.jsxs(
7834
+ children: /* @__PURE__ */ f.jsxs(
7811
7835
  Bs,
7812
7836
  {
7813
7837
  className: T(
@@ -7815,23 +7839,23 @@ const ym = Z(
7815
7839
  l
7816
7840
  ),
7817
7841
  children: [
7818
- /* @__PURE__ */ d.jsxs("div", { className: "flex items-start justify-between", children: [
7819
- /* @__PURE__ */ d.jsxs("div", { children: [
7820
- /* @__PURE__ */ d.jsx(Hs, { as: "h2", className: T(wm()), children: r }),
7821
- n && /* @__PURE__ */ d.jsx("p", { className: T(km()), children: n })
7842
+ /* @__PURE__ */ f.jsxs("div", { className: "flex items-start justify-between", children: [
7843
+ /* @__PURE__ */ f.jsxs("div", { children: [
7844
+ /* @__PURE__ */ f.jsx(Hs, { as: "h2", className: T(wm()), children: r }),
7845
+ n && /* @__PURE__ */ f.jsx("p", { className: T(km()), children: n })
7822
7846
  ] }),
7823
- /* @__PURE__ */ d.jsx("div", { className: "ml-4 flex shrink-0", children: /* @__PURE__ */ d.jsx(
7847
+ /* @__PURE__ */ f.jsx("div", { className: "ml-4 flex shrink-0", children: /* @__PURE__ */ f.jsx(
7824
7848
  "button",
7825
7849
  {
7826
7850
  type: "button",
7827
7851
  onClick: t,
7828
7852
  className: T(Em()),
7829
7853
  "aria-label": "Close dialog",
7830
- children: /* @__PURE__ */ d.jsx(me, { icon: Gt, className: "h-5 w-5" })
7854
+ children: /* @__PURE__ */ f.jsx(me, { icon: Gt, className: "h-5 w-5" })
7831
7855
  }
7832
7856
  ) })
7833
7857
  ] }),
7834
- /* @__PURE__ */ d.jsx("div", { className: "mt-6", children: i })
7858
+ /* @__PURE__ */ f.jsx("div", { className: "mt-6", children: i })
7835
7859
  ]
7836
7860
  }
7837
7861
  )
@@ -7860,14 +7884,14 @@ const ym = Z(
7860
7884
  ), Nm = E.forwardRef(
7861
7885
  ({ className: e, variant: t, companyName: r = "Ball Collaborative", links: n, routerElement: a, ...o }, s) => {
7862
7886
  const i = (/* @__PURE__ */ new Date()).getFullYear(), l = a ?? "a";
7863
- return /* @__PURE__ */ d.jsx(
7887
+ return /* @__PURE__ */ f.jsx(
7864
7888
  "footer",
7865
7889
  {
7866
7890
  ref: s,
7867
7891
  className: T(Sm({ variant: t }), e),
7868
7892
  ...o,
7869
- children: /* @__PURE__ */ d.jsxs("div", { className: "container mx-auto px-4 flex flex-col items-center gap-2", children: [
7870
- n && n.length > 0 && /* @__PURE__ */ d.jsx("nav", { "aria-label": "Footer navigation", className: "flex flex-wrap justify-center gap-x-5 gap-y-1", children: n.map((c) => /* @__PURE__ */ d.jsx(
7893
+ children: /* @__PURE__ */ f.jsxs("div", { className: "container mx-auto px-4 flex flex-col items-center gap-2", children: [
7894
+ n && n.length > 0 && /* @__PURE__ */ f.jsx("nav", { "aria-label": "Footer navigation", className: "flex flex-wrap justify-center gap-x-5 gap-y-1", children: n.map((c) => /* @__PURE__ */ f.jsx(
7871
7895
  l,
7872
7896
  {
7873
7897
  href: c.href,
@@ -7877,7 +7901,7 @@ const ym = Z(
7877
7901
  },
7878
7902
  c.href
7879
7903
  )) }),
7880
- /* @__PURE__ */ d.jsxs("p", { className: "text-center text-sm font-medium text-inherit", children: [
7904
+ /* @__PURE__ */ f.jsxs("p", { className: "text-center text-sm font-medium text-inherit", children: [
7881
7905
  "© ",
7882
7906
  i,
7883
7907
  " ",
@@ -7954,7 +7978,7 @@ function Tm({
7954
7978
  r.current !== e && (r.current = e, t());
7955
7979
  }, [e, t]), null;
7956
7980
  }
7957
- const qm = ({
7981
+ const Xm = ({
7958
7982
  logoSrc: e,
7959
7983
  logoSize: t = "2rem",
7960
7984
  logoClassName: r,
@@ -7968,7 +7992,7 @@ const qm = ({
7968
7992
  onInboxClick: u,
7969
7993
  onThemeToggle: p,
7970
7994
  actions: m,
7971
- brandElement: f,
7995
+ brandElement: d,
7972
7996
  navActions: g,
7973
7997
  userMenuItems: h = [],
7974
7998
  className: b,
@@ -7985,7 +8009,7 @@ const qm = ({
7985
8009
  linkActive: _ ? "text-primary-400 dark:text-primary-400 font-semibold hover:text-primary-300 dark:hover:text-primary-300" : "text-primary-600 dark:text-primary-600 font-semibold hover:text-primary-700 dark:hover:text-primary-700",
7986
8010
  hamburger: _ ? "text-gray-300 dark:text-gray-300 hover:bg-white/10 dark:hover:bg-white/10 hover:text-white dark:hover:text-white" : "text-gray-500 dark:text-gray-500 hover:bg-gray-100 dark:hover:bg-gray-100 hover:text-gray-700 dark:hover:text-gray-700"
7987
8011
  };
7988
- return /* @__PURE__ */ d.jsx(
8012
+ return /* @__PURE__ */ f.jsx(
7989
8013
  si,
7990
8014
  {
7991
8015
  as: "nav",
@@ -7993,10 +8017,10 @@ const qm = ({
7993
8017
  ...C,
7994
8018
  children: ({ open: D, close: F }) => {
7995
8019
  const U = So(m, F), O = So(g, F);
7996
- return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
7997
- /* @__PURE__ */ d.jsxs("div", { className: "container mx-auto flex items-center justify-between px-4 h-16", children: [
7998
- /* @__PURE__ */ d.jsxs(
7999
- dt,
8020
+ return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
8021
+ /* @__PURE__ */ f.jsxs("div", { className: "container mx-auto flex items-center justify-between px-4 h-16", children: [
8022
+ /* @__PURE__ */ f.jsxs(
8023
+ St,
8000
8024
  {
8001
8025
  as: s,
8002
8026
  href: "/",
@@ -8008,7 +8032,7 @@ const qm = ({
8008
8032
  R.brand
8009
8033
  ),
8010
8034
  children: [
8011
- /* @__PURE__ */ d.jsx(
8035
+ /* @__PURE__ */ f.jsx(
8012
8036
  "img",
8013
8037
  {
8014
8038
  src: e,
@@ -8017,15 +8041,15 @@ const qm = ({
8017
8041
  className: T("shrink-0", r ?? "rounded-md")
8018
8042
  }
8019
8043
  ),
8020
- f ?? /* @__PURE__ */ d.jsx("span", { className: "text-xl font-bold tracking-tight", children: n })
8044
+ d ?? /* @__PURE__ */ f.jsx("span", { className: "text-xl font-bold tracking-tight", children: n })
8021
8045
  ]
8022
8046
  }
8023
8047
  ),
8024
- /* @__PURE__ */ d.jsxs("div", { className: "hidden md:flex items-center gap-8", children: [
8025
- /* @__PURE__ */ d.jsx("div", { className: "flex items-center gap-6", children: a.map((j) => {
8048
+ /* @__PURE__ */ f.jsxs("div", { className: "hidden md:flex items-center gap-8", children: [
8049
+ /* @__PURE__ */ f.jsx("div", { className: "flex items-center gap-6", children: a.map((j) => {
8026
8050
  const H = o === j.path;
8027
- return /* @__PURE__ */ d.jsxs(
8028
- dt,
8051
+ return /* @__PURE__ */ f.jsxs(
8052
+ St,
8029
8053
  {
8030
8054
  as: s,
8031
8055
  href: j.path,
@@ -8038,17 +8062,17 @@ const qm = ({
8038
8062
  ),
8039
8063
  children: [
8040
8064
  j.label,
8041
- j.badge && /* @__PURE__ */ d.jsx("span", { className: "inline-flex", children: j.badge })
8065
+ j.badge && /* @__PURE__ */ f.jsx("span", { className: "inline-flex", children: j.badge })
8042
8066
  ]
8043
8067
  },
8044
8068
  j.path
8045
8069
  );
8046
8070
  }) }),
8047
8071
  O,
8048
- U ?? (i ? /* @__PURE__ */ d.jsxs(gf, { as: "div", className: "relative ml-2", children: [
8049
- /* @__PURE__ */ d.jsxs(ti, { className: "relative flex rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 ring-offset-transparent", children: [
8050
- /* @__PURE__ */ d.jsx("span", { className: "sr-only", children: "Open user menu" }),
8051
- /* @__PURE__ */ d.jsx(
8072
+ U ?? (i ? /* @__PURE__ */ f.jsxs(gf, { as: "div", className: "relative ml-2", children: [
8073
+ /* @__PURE__ */ f.jsxs(ti, { className: "relative flex rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 ring-offset-transparent", children: [
8074
+ /* @__PURE__ */ f.jsx("span", { className: "sr-only", children: "Open user menu" }),
8075
+ /* @__PURE__ */ f.jsx(
8052
8076
  fa,
8053
8077
  {
8054
8078
  initials: i.initials,
@@ -8058,7 +8082,7 @@ const qm = ({
8058
8082
  colorScheme: i.avatarColor ?? "primary"
8059
8083
  }
8060
8084
  ),
8061
- P && /* @__PURE__ */ d.jsx("div", { className: "absolute -top-1 -right-2", children: /* @__PURE__ */ d.jsx(
8085
+ P && /* @__PURE__ */ f.jsx("div", { className: "absolute -top-1 -right-2", children: /* @__PURE__ */ f.jsx(
8062
8086
  En,
8063
8087
  {
8064
8088
  fill: S,
@@ -8069,7 +8093,7 @@ const qm = ({
8069
8093
  }
8070
8094
  ) })
8071
8095
  ] }),
8072
- /* @__PURE__ */ d.jsx(
8096
+ /* @__PURE__ */ f.jsx(
8073
8097
  jt,
8074
8098
  {
8075
8099
  as: xe,
@@ -8079,9 +8103,9 @@ const qm = ({
8079
8103
  leave: "transition ease-in duration-75",
8080
8104
  leaveFrom: "transform opacity-100 scale-100",
8081
8105
  leaveTo: "transform opacity-0 scale-95",
8082
- children: /* @__PURE__ */ d.jsxs(ri, { className: "absolute right-0 z-50 mt-2 w-48 origin-top-right rounded-md bg-white dark:bg-gray-800 py-1 shadow-lg ring-1 ring-black/5 dark:ring-white/10 focus:outline-none divide-y divide-gray-100 dark:divide-gray-700", children: [
8083
- /* @__PURE__ */ d.jsxs("div", { className: "py-1", children: [
8084
- P && u && /* @__PURE__ */ d.jsx(zt, { children: ({ focus: j }) => /* @__PURE__ */ d.jsxs(
8106
+ children: /* @__PURE__ */ f.jsxs(ri, { className: "absolute right-0 z-50 mt-2 w-48 origin-top-right rounded-md bg-white dark:bg-gray-800 py-1 shadow-lg ring-1 ring-black/5 dark:ring-white/10 focus:outline-none divide-y divide-gray-100 dark:divide-gray-700", children: [
8107
+ /* @__PURE__ */ f.jsxs("div", { className: "py-1", children: [
8108
+ P && u && /* @__PURE__ */ f.jsx(zt, { children: ({ focus: j }) => /* @__PURE__ */ f.jsxs(
8085
8109
  Ue,
8086
8110
  {
8087
8111
  variant: "ghost",
@@ -8092,7 +8116,7 @@ const qm = ({
8092
8116
  "w-full justify-start rounded-none px-4",
8093
8117
  j && "bg-gray-50 dark:bg-gray-700"
8094
8118
  ),
8095
- startIcon: /* @__PURE__ */ d.jsx(
8119
+ startIcon: /* @__PURE__ */ f.jsx(
8096
8120
  me,
8097
8121
  {
8098
8122
  icon: Gi,
@@ -8106,7 +8130,7 @@ const qm = ({
8106
8130
  ]
8107
8131
  }
8108
8132
  ) }),
8109
- p && /* @__PURE__ */ d.jsx(zt, { children: ({ focus: j }) => /* @__PURE__ */ d.jsxs(
8133
+ p && /* @__PURE__ */ f.jsx(zt, { children: ({ focus: j }) => /* @__PURE__ */ f.jsxs(
8110
8134
  "div",
8111
8135
  {
8112
8136
  onClick: (H) => {
@@ -8122,8 +8146,8 @@ const qm = ({
8122
8146
  (H.key === "Enter" || H.key === " ") && (H.preventDefault(), p());
8123
8147
  },
8124
8148
  children: [
8125
- /* @__PURE__ */ d.jsxs("div", { className: "flex items-center gap-2", children: [
8126
- /* @__PURE__ */ d.jsx(
8149
+ /* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-2", children: [
8150
+ /* @__PURE__ */ f.jsx(
8127
8151
  me,
8128
8152
  {
8129
8153
  icon: mn,
@@ -8133,9 +8157,9 @@ const qm = ({
8133
8157
  )
8134
8158
  }
8135
8159
  ),
8136
- /* @__PURE__ */ d.jsx("span", { className: "font-medium", children: "Dark Mode" })
8160
+ /* @__PURE__ */ f.jsx("span", { className: "font-medium", children: "Dark Mode" })
8137
8161
  ] }),
8138
- /* @__PURE__ */ d.jsx(
8162
+ /* @__PURE__ */ f.jsx(
8139
8163
  fo,
8140
8164
  {
8141
8165
  checked: L,
@@ -8150,8 +8174,8 @@ const qm = ({
8150
8174
  }
8151
8175
  ) })
8152
8176
  ] }),
8153
- h.length > 0 && /* @__PURE__ */ d.jsx("div", { className: "py-1", children: h.map((j) => /* @__PURE__ */ d.jsx(zt, { children: ({ focus: H }) => /* @__PURE__ */ d.jsxs(
8154
- dt,
8177
+ h.length > 0 && /* @__PURE__ */ f.jsx("div", { className: "py-1", children: h.map((j) => /* @__PURE__ */ f.jsx(zt, { children: ({ focus: H }) => /* @__PURE__ */ f.jsxs(
8178
+ St,
8155
8179
  {
8156
8180
  as: s,
8157
8181
  href: j.path,
@@ -8164,11 +8188,11 @@ const qm = ({
8164
8188
  ),
8165
8189
  children: [
8166
8190
  j.label,
8167
- j.badge && /* @__PURE__ */ d.jsx("span", { className: "inline-flex", children: j.badge })
8191
+ j.badge && /* @__PURE__ */ f.jsx("span", { className: "inline-flex", children: j.badge })
8168
8192
  ]
8169
8193
  }
8170
8194
  ) }, j.path)) }),
8171
- c && /* @__PURE__ */ d.jsx("div", { className: "py-1", children: /* @__PURE__ */ d.jsx(zt, { children: ({ focus: j }) => /* @__PURE__ */ d.jsx(
8195
+ c && /* @__PURE__ */ f.jsx("div", { className: "py-1", children: /* @__PURE__ */ f.jsx(zt, { children: ({ focus: j }) => /* @__PURE__ */ f.jsx(
8172
8196
  Ue,
8173
8197
  {
8174
8198
  variant: "ghost",
@@ -8179,7 +8203,7 @@ const qm = ({
8179
8203
  "w-full justify-start rounded-none px-4",
8180
8204
  j && "bg-gray-50 dark:bg-gray-700"
8181
8205
  ),
8182
- startIcon: /* @__PURE__ */ d.jsx(
8206
+ startIcon: /* @__PURE__ */ f.jsx(
8183
8207
  me,
8184
8208
  {
8185
8209
  icon: Ki,
@@ -8192,9 +8216,9 @@ const qm = ({
8192
8216
  ] })
8193
8217
  }
8194
8218
  )
8195
- ] }) : /* @__PURE__ */ d.jsx(Ue, { size: "sm", variant: "solid", colorScheme: "primary", onClick: l, children: "Log In" }))
8219
+ ] }) : /* @__PURE__ */ f.jsx(Ue, { size: "sm", variant: "solid", colorScheme: "primary", onClick: l, children: "Log In" }))
8196
8220
  ] }),
8197
- /* @__PURE__ */ d.jsx("div", { "data-roster-hamburger": !0, className: "flex md:hidden", children: /* @__PURE__ */ d.jsxs(
8221
+ /* @__PURE__ */ f.jsx("div", { "data-roster-hamburger": !0, className: "flex md:hidden", children: /* @__PURE__ */ f.jsxs(
8198
8222
  Cr,
8199
8223
  {
8200
8224
  className: T(
@@ -8202,16 +8226,16 @@ const qm = ({
8202
8226
  R.hamburger
8203
8227
  ),
8204
8228
  children: [
8205
- /* @__PURE__ */ d.jsx("span", { className: "sr-only", children: "Open main menu" }),
8206
- D ? /* @__PURE__ */ d.jsx(
8229
+ /* @__PURE__ */ f.jsx("span", { className: "sr-only", children: "Open main menu" }),
8230
+ D ? /* @__PURE__ */ f.jsx(
8207
8231
  me,
8208
8232
  {
8209
8233
  icon: Gt,
8210
8234
  className: "block h-6 w-6",
8211
8235
  "aria-hidden": "true"
8212
8236
  }
8213
- ) : /* @__PURE__ */ d.jsxs("div", { className: "relative", children: [
8214
- /* @__PURE__ */ d.jsx(
8237
+ ) : /* @__PURE__ */ f.jsxs("div", { className: "relative", children: [
8238
+ /* @__PURE__ */ f.jsx(
8215
8239
  me,
8216
8240
  {
8217
8241
  icon: qi,
@@ -8219,15 +8243,15 @@ const qm = ({
8219
8243
  "aria-hidden": "true"
8220
8244
  }
8221
8245
  ),
8222
- P && /* @__PURE__ */ d.jsx("span", { className: "absolute top-0 right-0 block h-2.5 w-2.5 rounded-full bg-error-500 ring-2 ring-transparent transform translate-x-1/4 -translate-y-1/4" })
8246
+ P && /* @__PURE__ */ f.jsx("span", { className: "absolute top-0 right-0 block h-2.5 w-2.5 rounded-full bg-error-500 ring-2 ring-transparent transform translate-x-1/4 -translate-y-1/4" })
8223
8247
  ] })
8224
8248
  ]
8225
8249
  }
8226
8250
  ) })
8227
8251
  ] }),
8228
- D && /* @__PURE__ */ d.jsx(Cm, { close: F }),
8229
- D && /* @__PURE__ */ d.jsx(Tm, { activePath: o, close: F }),
8230
- /* @__PURE__ */ d.jsx(
8252
+ D && /* @__PURE__ */ f.jsx(Cm, { close: F }),
8253
+ D && /* @__PURE__ */ f.jsx(Tm, { activePath: o, close: F }),
8254
+ /* @__PURE__ */ f.jsx(
8231
8255
  jt,
8232
8256
  {
8233
8257
  as: xe,
@@ -8237,16 +8261,16 @@ const qm = ({
8237
8261
  leave: "duration-100 ease-in",
8238
8262
  leaveFrom: "opacity-100 scale-100",
8239
8263
  leaveTo: "opacity-0 scale-95",
8240
- children: /* @__PURE__ */ d.jsx(
8264
+ children: /* @__PURE__ */ f.jsx(
8241
8265
  ua,
8242
8266
  {
8243
8267
  focus: !0,
8244
8268
  className: "absolute top-0 inset-x-0 z-50 origin-top-right transform p-2 transition md:hidden",
8245
- children: /* @__PURE__ */ d.jsxs("div", { "data-roster-mobile-panel": !0, className: "rounded-lg shadow-lg ring-1 ring-black/5 dark:ring-white/10 divide-y divide-gray-100 dark:divide-gray-700 bg-white dark:bg-gray-800", children: [
8246
- /* @__PURE__ */ d.jsxs("div", { className: "px-5 pt-5 pb-6", children: [
8247
- /* @__PURE__ */ d.jsxs("div", { className: "flex items-center justify-between", children: [
8248
- /* @__PURE__ */ d.jsxs("div", { className: "flex items-center gap-3", children: [
8249
- /* @__PURE__ */ d.jsx(
8269
+ children: /* @__PURE__ */ f.jsxs("div", { "data-roster-mobile-panel": !0, className: "rounded-lg shadow-lg ring-1 ring-black/5 dark:ring-white/10 divide-y divide-gray-100 dark:divide-gray-700 bg-white dark:bg-gray-800", children: [
8270
+ /* @__PURE__ */ f.jsxs("div", { className: "px-5 pt-5 pb-6", children: [
8271
+ /* @__PURE__ */ f.jsxs("div", { className: "flex items-center justify-between", children: [
8272
+ /* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-3", children: [
8273
+ /* @__PURE__ */ f.jsx(
8250
8274
  "img",
8251
8275
  {
8252
8276
  src: e,
@@ -8255,11 +8279,11 @@ const qm = ({
8255
8279
  className: T("shrink-0", r ?? "rounded-md")
8256
8280
  }
8257
8281
  ),
8258
- f ?? /* @__PURE__ */ d.jsx("span", { className: "font-bold text-gray-900 dark:text-white", children: n })
8282
+ d ?? /* @__PURE__ */ f.jsx("span", { className: "font-bold text-gray-900 dark:text-white", children: n })
8259
8283
  ] }),
8260
- /* @__PURE__ */ d.jsx("div", { className: "-mr-2", children: /* @__PURE__ */ d.jsxs(Cr, { className: "inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 hover:text-gray-500 dark:hover:text-white focus:outline-none", children: [
8261
- /* @__PURE__ */ d.jsx("span", { className: "sr-only", children: "Close menu" }),
8262
- /* @__PURE__ */ d.jsx(
8284
+ /* @__PURE__ */ f.jsx("div", { className: "-mr-2", children: /* @__PURE__ */ f.jsxs(Cr, { className: "inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 hover:text-gray-500 dark:hover:text-white focus:outline-none", children: [
8285
+ /* @__PURE__ */ f.jsx("span", { className: "sr-only", children: "Close menu" }),
8286
+ /* @__PURE__ */ f.jsx(
8263
8287
  me,
8264
8288
  {
8265
8289
  icon: Gt,
@@ -8269,13 +8293,13 @@ const qm = ({
8269
8293
  )
8270
8294
  ] }) })
8271
8295
  ] }),
8272
- /* @__PURE__ */ d.jsxs("div", { className: "mt-6", children: [
8273
- O && /* @__PURE__ */ d.jsx("div", { className: "mb-4", children: O }),
8274
- /* @__PURE__ */ d.jsxs("nav", { className: "grid gap-y-4", children: [
8296
+ /* @__PURE__ */ f.jsxs("div", { className: "mt-6", children: [
8297
+ O && /* @__PURE__ */ f.jsx("div", { className: "mb-4", children: O }),
8298
+ /* @__PURE__ */ f.jsxs("nav", { className: "grid gap-y-4", children: [
8275
8299
  a.map((j) => {
8276
8300
  const H = o === j.path;
8277
- return /* @__PURE__ */ d.jsx(
8278
- dt,
8301
+ return /* @__PURE__ */ f.jsx(
8302
+ St,
8279
8303
  {
8280
8304
  as: s,
8281
8305
  href: j.path,
@@ -8288,7 +8312,7 @@ const qm = ({
8288
8312
  "hover:bg-gray-50 dark:hover:bg-gray-700",
8289
8313
  H ? "bg-gray-50 dark:bg-gray-700" : "text-gray-900 dark:text-gray-100"
8290
8314
  ),
8291
- children: /* @__PURE__ */ d.jsxs(
8315
+ children: /* @__PURE__ */ f.jsxs(
8292
8316
  "span",
8293
8317
  {
8294
8318
  className: T(
@@ -8297,7 +8321,7 @@ const qm = ({
8297
8321
  ),
8298
8322
  children: [
8299
8323
  j.label,
8300
- j.badge && /* @__PURE__ */ d.jsx("span", { className: "inline-flex", children: j.badge })
8324
+ j.badge && /* @__PURE__ */ f.jsx("span", { className: "inline-flex", children: j.badge })
8301
8325
  ]
8302
8326
  }
8303
8327
  )
@@ -8305,12 +8329,12 @@ const qm = ({
8305
8329
  j.path
8306
8330
  );
8307
8331
  }),
8308
- i && h.length > 0 && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
8309
- /* @__PURE__ */ d.jsx("hr", { className: "border-gray-100 dark:border-gray-700" }),
8332
+ i && h.length > 0 && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
8333
+ /* @__PURE__ */ f.jsx("hr", { className: "border-gray-100 dark:border-gray-700" }),
8310
8334
  h.map((j) => {
8311
8335
  const H = o === j.path;
8312
- return /* @__PURE__ */ d.jsxs(
8313
- dt,
8336
+ return /* @__PURE__ */ f.jsxs(
8337
+ St,
8314
8338
  {
8315
8339
  as: s,
8316
8340
  href: j.path,
@@ -8324,7 +8348,7 @@ const qm = ({
8324
8348
  H ? "bg-gray-50 dark:bg-gray-700" : "text-gray-900 dark:text-gray-100"
8325
8349
  ),
8326
8350
  children: [
8327
- /* @__PURE__ */ d.jsx(
8351
+ /* @__PURE__ */ f.jsx(
8328
8352
  "span",
8329
8353
  {
8330
8354
  className: T(
@@ -8334,7 +8358,7 @@ const qm = ({
8334
8358
  children: j.label
8335
8359
  }
8336
8360
  ),
8337
- j.badge && /* @__PURE__ */ d.jsx("span", { className: "ml-2 inline-flex", children: j.badge })
8361
+ j.badge && /* @__PURE__ */ f.jsx("span", { className: "ml-2 inline-flex", children: j.badge })
8338
8362
  ]
8339
8363
  },
8340
8364
  j.path
@@ -8344,7 +8368,7 @@ const qm = ({
8344
8368
  ] })
8345
8369
  ] })
8346
8370
  ] }),
8347
- (i || U || l) && /* @__PURE__ */ d.jsx("div", { className: "py-6 px-5 space-y-4", children: U || (!i && l ? /* @__PURE__ */ d.jsx(
8371
+ (i || U || l) && /* @__PURE__ */ f.jsx("div", { className: "py-6 px-5 space-y-4", children: U || (!i && l ? /* @__PURE__ */ f.jsx(
8348
8372
  Ue,
8349
8373
  {
8350
8374
  variant: "solid",
@@ -8355,8 +8379,8 @@ const qm = ({
8355
8379
  },
8356
8380
  children: "Log In"
8357
8381
  }
8358
- ) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
8359
- P && u && /* @__PURE__ */ d.jsx(
8382
+ ) : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
8383
+ P && u && /* @__PURE__ */ f.jsx(
8360
8384
  Ue,
8361
8385
  {
8362
8386
  variant: "ghost",
@@ -8365,7 +8389,7 @@ const qm = ({
8365
8389
  u?.(), F();
8366
8390
  },
8367
8391
  className: "w-full justify-between px-4 text-base font-medium hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100",
8368
- endIcon: /* @__PURE__ */ d.jsx(
8392
+ endIcon: /* @__PURE__ */ f.jsx(
8369
8393
  En,
8370
8394
  {
8371
8395
  fill: S,
@@ -8378,7 +8402,7 @@ const qm = ({
8378
8402
  children: "Pending Invitations"
8379
8403
  }
8380
8404
  ),
8381
- p && /* @__PURE__ */ d.jsxs(
8405
+ p && /* @__PURE__ */ f.jsxs(
8382
8406
  "div",
8383
8407
  {
8384
8408
  onClick: (j) => {
@@ -8391,8 +8415,8 @@ const qm = ({
8391
8415
  },
8392
8416
  className: "flex w-full items-center justify-between rounded-md px-4 py-2 text-base transition-colors cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100",
8393
8417
  children: [
8394
- /* @__PURE__ */ d.jsxs("div", { className: "flex items-center gap-3 font-medium", children: [
8395
- /* @__PURE__ */ d.jsx(
8418
+ /* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-3 font-medium", children: [
8419
+ /* @__PURE__ */ f.jsx(
8396
8420
  me,
8397
8421
  {
8398
8422
  icon: mn,
@@ -8402,9 +8426,9 @@ const qm = ({
8402
8426
  )
8403
8427
  }
8404
8428
  ),
8405
- /* @__PURE__ */ d.jsx("span", { children: "Dark Mode" })
8429
+ /* @__PURE__ */ f.jsx("span", { children: "Dark Mode" })
8406
8430
  ] }),
8407
- /* @__PURE__ */ d.jsx(
8431
+ /* @__PURE__ */ f.jsx(
8408
8432
  fo,
8409
8433
  {
8410
8434
  checked: L,
@@ -8418,7 +8442,7 @@ const qm = ({
8418
8442
  ]
8419
8443
  }
8420
8444
  ),
8421
- c && /* @__PURE__ */ d.jsx(
8445
+ c && /* @__PURE__ */ f.jsx(
8422
8446
  Ue,
8423
8447
  {
8424
8448
  variant: "outline",
@@ -8446,7 +8470,7 @@ const qm = ({
8446
8470
  preventDefault: !1,
8447
8471
  enabled: !0,
8448
8472
  ignoreWhenTyping: !0
8449
- }, Xm = [
8473
+ }, Qm = [
8450
8474
  "ArrowUp",
8451
8475
  "ArrowUp",
8452
8476
  "ArrowDown",
@@ -8465,7 +8489,7 @@ function Rm(e) {
8465
8489
  const t = e.getAttribute("contenteditable");
8466
8490
  return t !== null && t !== "false" ? !0 : ["INPUT", "TEXTAREA", "SELECT"].includes(e.tagName);
8467
8491
  }
8468
- function Qm(e, t, r = {}) {
8492
+ function Zm(e, t, r = {}) {
8469
8493
  const { timeout: n, ignoreCase: a, preventDefault: o, enabled: s, ignoreWhenTyping: i } = {
8470
8494
  ...jm,
8471
8495
  ...r
@@ -8475,7 +8499,7 @@ function Qm(e, t, r = {}) {
8475
8499
  }, [t]), ne(() => {
8476
8500
  if (!s || e.length === 0) return;
8477
8501
  const p = (g) => a ? g.toLowerCase() : g, m = e.map(p);
8478
- function f(g) {
8502
+ function d(g) {
8479
8503
  if (i && Rm(g.target)) return;
8480
8504
  const h = Date.now();
8481
8505
  n > 0 && l.current > 0 && h - c.current > n && (l.current = 0), c.current = h;
@@ -8486,63 +8510,63 @@ function Qm(e, t, r = {}) {
8486
8510
  }
8487
8511
  l.current = b === m[0] ? 1 : 0;
8488
8512
  }
8489
- return window.addEventListener("keydown", f), () => window.removeEventListener("keydown", f);
8513
+ return window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d);
8490
8514
  }, [e, n, a, o, s, i]);
8491
8515
  }
8492
8516
  export {
8493
- zm as Accordion,
8517
+ Wm as Accordion,
8494
8518
  qp as ActionBar,
8495
8519
  _p as Alert,
8496
8520
  fa as Avatar,
8497
- Lm as AvatarStrip,
8521
+ _m as AvatarStrip,
8498
8522
  En as Badge,
8499
- Wm as Breadcrumbs,
8523
+ Um as Breadcrumbs,
8500
8524
  Ue as Button,
8501
- Um as CallToAction,
8525
+ Ym as CallToAction,
8502
8526
  Zf as Card,
8503
8527
  e0 as Checkbox,
8504
- Bm as CollapsibleSection,
8528
+ Hm as CollapsibleSection,
8505
8529
  xm as Countdown,
8506
8530
  Bp as DescriptionList,
8507
- Km as Dialog,
8531
+ qm as Dialog,
8508
8532
  n0 as Disclosure,
8509
- Ym as EmptyState,
8510
- Gm as ErrorState,
8533
+ Gm as EmptyState,
8534
+ Km as ErrorState,
8511
8535
  Tr as Eyebrow,
8512
8536
  Nm as Footer,
8513
8537
  d0 as InlineCode,
8514
8538
  ii as Input,
8515
- Xm as KONAMI_CODE,
8539
+ Qm as KONAMI_CODE,
8516
8540
  f0 as LabeledDivider,
8517
- dt as Link,
8518
- _m as LiquidTabs,
8541
+ St as Link,
8542
+ Vm as LiquidTabs,
8519
8543
  Gp as MatchupCard,
8520
- qm as Navbar,
8544
+ Xm as Navbar,
8521
8545
  s0 as PasswordInput,
8522
8546
  l0 as Pill,
8523
8547
  zp as Pullquote,
8524
- Hm as SegmentBar,
8525
- Mm as Select,
8526
- eg as Spinner,
8548
+ zm as SegmentBar,
8549
+ Lm as Select,
8550
+ tg as Spinner,
8527
8551
  m0 as Stat,
8528
8552
  fo as Switch,
8529
- tg as Table,
8530
- rg as TableBody,
8531
- ng as TableCaption,
8532
- ag as TableCell,
8533
- og as TableFooter,
8534
- sg as TableHead,
8535
- ig as TableHeader,
8536
- lg as TableRow,
8553
+ rg as Table,
8554
+ ng as TableBody,
8555
+ ag as TableCaption,
8556
+ og as TableCell,
8557
+ sg as TableFooter,
8558
+ ig as TableHead,
8559
+ lg as TableHeader,
8560
+ cg as TableRow,
8537
8561
  S0 as Textarea,
8538
8562
  x0 as ThemeToggle,
8539
- Vm as Tooltip,
8563
+ Bm as Tooltip,
8540
8564
  Kp as actionBarVariants,
8541
8565
  Mp as alertVariants,
8542
8566
  qf as avatarVariants,
8543
8567
  Xf as badgeVariants,
8544
8568
  ho as breadcrumbVariants,
8545
- cg as buttonVariants,
8569
+ ug as buttonVariants,
8546
8570
  Qf as cardVariants,
8547
8571
  Jf as checkboxVariants,
8548
8572
  T as cn,
@@ -8565,13 +8589,13 @@ export {
8565
8589
  p0 as statValueVariants,
8566
8590
  k0 as switchThumbVariants,
8567
8591
  w0 as switchTrackVariants,
8568
- ug as tableCellVariants,
8569
- dg as tableHeadVariants,
8570
- fg as tableHeaderVariants,
8571
- pg as tableRowVariants,
8572
- mg as tableVariants,
8573
- gg as tableWrapperVariants,
8592
+ dg as tableCellVariants,
8593
+ fg as tableHeadVariants,
8594
+ pg as tableHeaderVariants,
8595
+ mg as tableRowVariants,
8596
+ gg as tableVariants,
8597
+ hg as tableWrapperVariants,
8574
8598
  E0 as textareaVariants,
8575
8599
  hm as useCountdown,
8576
- Qm as useKeySequence
8600
+ Zm as useKeySequence
8577
8601
  };