@danxbot/ui 15.25.1 → 15.26.0

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as d, jsxs as T, Fragment as at } from "react/jsx-runtime";
1
+ import { jsx as d, jsxs as T, Fragment as lt } from "react/jsx-runtime";
2
2
  import * as y from "react";
3
3
  import bu, { createElement as Rx, useLayoutEffect as Gn, useState as de, useRef as ye, useId as _t, Component as IT, useCallback as Re, useEffect as _e, createContext as Mn, useContext as Tn, useMemo as Oe, memo as xu, useImperativeHandle as MT, Fragment as Sh, Children as TT, isValidElement as PT, useSyncExternalStore as $r } from "react";
4
4
  import * as Nn from "react-dom";
@@ -497,10 +497,10 @@ const _T = (e, t) => {
497
497
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
498
498
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
499
499
  i2.test(e) && !a2.test(e)
500
- ), Rh = () => !1, d2 = (e) => l2.test(e), f2 = (e) => c2.test(e), p2 = (e) => !Be(e) && !je(e), h2 = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), m2 = (e) => To(e, H0, Rh), Be = (e) => V0.test(e), Bo = (e) => To(e, U0, u2), Px = (e) => To(e, E2, dt), g2 = (e) => To(e, G0, L0), b2 = (e) => To(e, j0, Rh), Ox = (e) => To(e, z0, Rh), x2 = (e) => To(e, B0, f2), bl = (e) => To(e, W0, d2), je = (e) => $0.test(e), Pi = (e) => hs(e, U0), v2 = (e) => hs(e, j0), Ax = (e) => hs(e, z0), y2 = (e) => hs(e, H0), w2 = (e) => hs(e, B0), xl = (e) => hs(e, W0, !0), C2 = (e) => hs(e, G0, !0), To = (e, t, n) => {
500
+ ), Rh = () => !1, d2 = (e) => l2.test(e), f2 = (e) => c2.test(e), p2 = (e) => !Be(e) && !je(e), h2 = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), m2 = (e) => To(e, H0, Rh), Be = (e) => V0.test(e), Bo = (e) => To(e, U0, u2), Px = (e) => To(e, E2, dt), g2 = (e) => To(e, G0, L0), b2 = (e) => To(e, j0, Rh), Ox = (e) => To(e, z0, Rh), x2 = (e) => To(e, B0, f2), bl = (e) => To(e, W0, d2), je = (e) => $0.test(e), Pi = (e) => ms(e, U0), v2 = (e) => ms(e, j0), Ax = (e) => ms(e, z0), y2 = (e) => ms(e, H0), w2 = (e) => ms(e, B0), xl = (e) => ms(e, W0, !0), C2 = (e) => ms(e, G0, !0), To = (e, t, n) => {
501
501
  const r = V0.exec(e);
502
502
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
503
- }, hs = (e, t, n = !1) => {
503
+ }, ms = (e, t, n = !1) => {
504
504
  const r = $0.exec(e);
505
505
  return r ? r[1] ? t(r[1]) : n : !1;
506
506
  }, z0 = (e) => e === "position" || e === "percentage", B0 = (e) => e === "image" || e === "url", H0 = (e) => e === "length" || e === "size" || e === "bg-size", U0 = (e) => e === "length", E2 = (e) => e === "number", j0 = (e) => e === "family-name", G0 = (e) => e === "number" || e === "weight", W0 = (e) => e === "shadow", S2 = () => {
@@ -3600,7 +3600,7 @@ var K2 = Array.isArray, yu = (e) => {
3600
3600
  }, Q2 = {
3601
3601
  twMerge: !0,
3602
3602
  twMergeConfig: {}
3603
- }, n1 = 256, J2 = 128, as = /* @__PURE__ */ Symbol("tv-cache-miss"), eP = (e) => e?.class != null && e.class !== "" || e?.className != null && e.className !== "", Fx = (e) => {
3603
+ }, n1 = 256, J2 = 128, ls = /* @__PURE__ */ Symbol("tv-cache-miss"), eP = (e) => e?.class != null && e.class !== "" || e?.className != null && e.className !== "", Fx = (e) => {
3604
3604
  if (e === void 0) return "";
3605
3605
  if (e === null) return "null";
3606
3606
  if (typeof e == "string") return e;
@@ -3617,7 +3617,7 @@ var K2 = Array.isArray, yu = (e) => {
3617
3617
  return null;
3618
3618
  }
3619
3619
  return null;
3620
- }, Ms = (e, t) => {
3620
+ }, Ts = (e, t) => {
3621
3621
  if (t === void 0) return e;
3622
3622
  if (t === null) return e + "null";
3623
3623
  const n = typeof t;
@@ -3664,17 +3664,17 @@ var K2 = Array.isArray, yu = (e) => {
3664
3664
  const { conditionKeys: o, source: s } = e[r];
3665
3665
  for (let i = 0; i < o.length; i++) {
3666
3666
  const a = o[i];
3667
- n += a + "=", n = Ms(n, s[a]), n += ",";
3667
+ n += a + "=", n = Ts(n, s[a]), n += ",";
3668
3668
  }
3669
- n += "c=", n = Ms(n, s.class), n += "|cn=", n = Ms(n, s.className), n += ";";
3669
+ n += "c=", n = Ts(n, s.class), n += "|cn=", n = Ts(n, s.className), n += ";";
3670
3670
  }
3671
3671
  for (let r = 0; r < t.length; r++) {
3672
3672
  const { conditionKeys: o, source: s } = t[r];
3673
3673
  for (let i = 0; i < o.length; i++) {
3674
3674
  const a = o[i];
3675
- n += a + "=", n = Ms(n, s[a]), n += ",";
3675
+ n += a + "=", n = Ts(n, s[a]), n += ",";
3676
3676
  }
3677
- Array.isArray(s.slots) && (n += "slots=" + s.slots.join(",") + ","), n += "c=", n = Ms(n, s.class), n += "|cn=", n = Ms(n, s.className), n += ";";
3677
+ Array.isArray(s.slots) && (n += "slots=" + s.slots.join(",") + ","), n += "c=", n = Ts(n, s.class), n += "|cn=", n = Ts(n, s.className), n += ";";
3678
3678
  }
3679
3679
  return n;
3680
3680
  }, s1 = (e = n1) => {
@@ -3686,7 +3686,7 @@ var K2 = Array.isArray, yu = (e) => {
3686
3686
  const o = n.get(r);
3687
3687
  return t.set(r, o), o;
3688
3688
  }
3689
- return as;
3689
+ return ls;
3690
3690
  },
3691
3691
  set(r, o) {
3692
3692
  t.size >= e && (n = t, t = /* @__PURE__ */ new Map()), t.set(r, o);
@@ -3721,7 +3721,7 @@ var K2 = Array.isArray, yu = (e) => {
3721
3721
  }
3722
3722
  }
3723
3723
  }
3724
- return as;
3724
+ return ls;
3725
3725
  },
3726
3726
  set(o, s, i) {
3727
3727
  r >= e && (n = t, t = /* @__PURE__ */ new Map(), r = 0);
@@ -3738,7 +3738,7 @@ var K2 = Array.isArray, yu = (e) => {
3738
3738
  return e(t, r, s, i);
3739
3739
  n ??= nP();
3740
3740
  const a = r ?? "", l = (typeof s == "string" ? s : "") + "\0" + (typeof i == "string" ? i : ""), c = n.get(a, l);
3741
- if (c !== as) return c;
3741
+ if (c !== ls) return c;
3742
3742
  const u = e(t, r, s, i);
3743
3743
  return n.set(a, l, u), u;
3744
3744
  };
@@ -3927,9 +3927,9 @@ var En = rP(), oP = (e) => {
3927
3927
  return n;
3928
3928
  }, vP = (e, t) => {
3929
3929
  const { base: n, config: r } = e;
3930
- let o = as;
3930
+ let o = ls;
3931
3931
  const s = Ah(t, r);
3932
- return ((i) => (o === as && (o = t(r, n)), s(o, i)));
3932
+ return ((i) => (o === ls && (o = t(r, n)), s(o, i)));
3933
3933
  }, yP = (e, t) => {
3934
3934
  const { base: n, config: r, defaultVariants: o, deferredError: s, variantKeys: i } = e;
3935
3935
  let a = e.compiledCompoundVariants, l = e.compiledVariants, c = bp, u = null;
@@ -3958,7 +3958,7 @@ var En = rP(), oP = (e) => {
3958
3958
  const b = r1(i, o, m);
3959
3959
  if (b !== null) {
3960
3960
  const x = a.length > 0 || c.length > 0 ? o1(a, c) : "", w = b + "#" + x, v = u.get(w);
3961
- v !== as ? g = v : (g = h(m), u.set(w, g));
3961
+ v !== ls ? g = v : (g = h(m), u.set(w, g));
3962
3962
  } else
3963
3963
  g = h(m);
3964
3964
  }
@@ -4016,7 +4016,7 @@ var En = rP(), oP = (e) => {
4016
4016
  const v = p ? o1(a, l) : "", C = w + "#" + v;
4017
4017
  h ??= s1();
4018
4018
  const E = h.get(C);
4019
- if (E !== as) return E;
4019
+ if (E !== ls) return E;
4020
4020
  const S = b(x);
4021
4021
  return h.set(C, S), S;
4022
4022
  });
@@ -4330,10 +4330,10 @@ var En = rP(), oP = (e) => {
4330
4330
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
4331
4331
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
4332
4332
  eO.test(e) && !tO.test(e)
4333
- ), Fh = () => !1, aO = (e) => nO.test(e), lO = (e) => rO.test(e), cO = (e) => !He(e) && !Ge(e), uO = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), dO = (e) => Po(e, v1, Fh), He = (e) => p1.test(e), Ho = (e) => Po(e, y1, iO), Hx = (e) => Po(e, vO, ft), fO = (e) => Po(e, C1, g1), pO = (e) => Po(e, w1, Fh), Ux = (e) => Po(e, b1, Fh), hO = (e) => Po(e, x1, lO), yl = (e) => Po(e, E1, aO), Ge = (e) => h1.test(e), Oi = (e) => ms(e, y1), mO = (e) => ms(e, w1), jx = (e) => ms(e, b1), gO = (e) => ms(e, v1), bO = (e) => ms(e, x1), wl = (e) => ms(e, E1, !0), xO = (e) => ms(e, C1, !0), Po = (e, t, n) => {
4333
+ ), Fh = () => !1, aO = (e) => nO.test(e), lO = (e) => rO.test(e), cO = (e) => !He(e) && !Ge(e), uO = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), dO = (e) => Po(e, v1, Fh), He = (e) => p1.test(e), Ho = (e) => Po(e, y1, iO), Hx = (e) => Po(e, vO, ft), fO = (e) => Po(e, C1, g1), pO = (e) => Po(e, w1, Fh), Ux = (e) => Po(e, b1, Fh), hO = (e) => Po(e, x1, lO), yl = (e) => Po(e, E1, aO), Ge = (e) => h1.test(e), Oi = (e) => gs(e, y1), mO = (e) => gs(e, w1), jx = (e) => gs(e, b1), gO = (e) => gs(e, v1), bO = (e) => gs(e, x1), wl = (e) => gs(e, E1, !0), xO = (e) => gs(e, C1, !0), Po = (e, t, n) => {
4334
4334
  const r = p1.exec(e);
4335
4335
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
4336
- }, ms = (e, t, n = !1) => {
4336
+ }, gs = (e, t, n = !1) => {
4337
4337
  const r = h1.exec(e);
4338
4338
  return r ? r[1] ? t(r[1]) : n : !1;
4339
4339
  }, b1 = (e) => e === "position" || e === "percentage", x1 = (e) => e === "image" || e === "url", v1 = (e) => e === "length" || e === "size" || e === "bg-size", y1 = (e) => e === "length", vO = (e) => e === "number", w1 = (e) => e === "family-name", C1 = (e) => e === "number" || e === "weight", E1 = (e) => e === "shadow", af = () => {
@@ -7004,7 +7004,7 @@ function Js(e, t, n) {
7004
7004
  function wp(e) {
7005
7005
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
7006
7006
  }
7007
- const Cp = "data-base-ui-focusable", N1 = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", Qo = "ArrowLeft", Jo = "ArrowRight", jh = "ArrowUp", ku = "ArrowDown";
7007
+ const Cp = "data-base-ui-focusable", N1 = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", Jo = "ArrowLeft", es = "ArrowRight", jh = "ArrowUp", ku = "ArrowDown";
7008
7008
  function Ft(e) {
7009
7009
  let t = e.activeElement;
7010
7010
  for (; t?.shadowRoot?.activeElement != null; )
@@ -7089,7 +7089,7 @@ function I1(e, t) {
7089
7089
  function KO(e) {
7090
7090
  return e?.includes("mouse") && e !== "mousedown";
7091
7091
  }
7092
- const Mt = "none", _r = "trigger-press", Ut = "trigger-hover", Hs = "trigger-focus", Pa = "outside-press", Co = "item-press", Ru = "close-press", Kx = "clear-press", qO = "chip-remove-press", qx = "track-press", YO = "increment-press", XO = "decrement-press", nr = "input-change", _n = "input-clear", Yx = "input-blur", la = "input-paste", M1 = "input-press", Jr = "focus-out", gs = "escape-key", ca = "list-navigation", Dr = "keyboard", Iu = "pointer", ZO = "drag", Xx = "wheel", Zx = "scrub", Gh = "cancel-open", Ki = "sibling-open", T1 = "disabled", Qx = "missing", Jx = "initial", Mu = "imperative-action", QO = "window-resize";
7092
+ const Mt = "none", _r = "trigger-press", Ut = "trigger-hover", Hs = "trigger-focus", Pa = "outside-press", Co = "item-press", Ru = "close-press", Kx = "clear-press", qO = "chip-remove-press", qx = "track-press", YO = "increment-press", XO = "decrement-press", nr = "input-change", _n = "input-clear", Yx = "input-blur", la = "input-paste", M1 = "input-press", Jr = "focus-out", bs = "escape-key", ca = "list-navigation", Dr = "keyboard", Iu = "pointer", ZO = "drag", Xx = "wheel", Zx = "scrub", Gh = "cancel-open", Ki = "sibling-open", T1 = "disabled", Qx = "missing", Jx = "initial", Mu = "imperative-action", QO = "window-resize";
7093
7093
  function Se(e, t, n, r) {
7094
7094
  let o = !1, s = !1;
7095
7095
  const i = r ?? wt;
@@ -7337,7 +7337,7 @@ class Fn {
7337
7337
  };
7338
7338
  disposeEffect = () => this.cancel;
7339
7339
  }
7340
- function ls() {
7340
+ function cs() {
7341
7341
  const e = $t(Fn.create).current;
7342
7342
  return Ma(e.disposeEffect), e;
7343
7343
  }
@@ -7379,7 +7379,7 @@ const P1 = {
7379
7379
  });
7380
7380
  });
7381
7381
  process.env.NODE_ENV !== "production" && (Fr.displayName = "FocusGuard");
7382
- const ei = Math.min, qr = Math.max, ti = Math.round, Zo = Math.floor, Yr = (e) => ({
7382
+ const ei = Math.min, qr = Math.max, ti = Math.round, Qo = Math.floor, Yr = (e) => ({
7383
7383
  x: e,
7384
7384
  y: e
7385
7385
  }), aA = {
@@ -7572,7 +7572,7 @@ function mA(e, {
7572
7572
  }, N = (R) => {
7573
7573
  if (!C || u === -1)
7574
7574
  return;
7575
- const M = u % E, I = R === "up" ? -E : E, P = c - c % E, A = Zo(c / E) + 1;
7575
+ const M = u % E, I = R === "up" ? -E : E, P = c - c % E, A = Qo(c / E) + 1;
7576
7576
  for (let D = u - M + I, _ = 0; _ < A; _ += 1, D += I) {
7577
7577
  if (D < 0 || D > c) {
7578
7578
  if (!r)
@@ -7610,8 +7610,8 @@ function mA(e, {
7610
7610
  Eo(e, f) && (f = u);
7611
7611
  }
7612
7612
  if (n === "both") {
7613
- const m = Zo(u / i);
7614
- t.key === (s ? Qo : Jo) && (p && kt(t), u % i !== i - 1 ? (f = un(e, {
7613
+ const m = Qo(u / i);
7614
+ t.key === (s ? Jo : es) && (p && kt(t), u % i !== i - 1 ? (f = un(e, {
7615
7615
  startingIndex: u,
7616
7616
  disabledIndices: a
7617
7617
  }), r && Nl(f, i, m) && (f = un(e, {
@@ -7620,7 +7620,7 @@ function mA(e, {
7620
7620
  }), o && (f = o(t, u, f)))) : r && (f = un(e, {
7621
7621
  startingIndex: u - u % i - 1,
7622
7622
  disabledIndices: a
7623
- }), o && (f = o(t, u, f))), Nl(f, i, m) && (f = u)), t.key === (s ? Jo : Qo) && (p && kt(t), u % i !== 0 ? (f = un(e, {
7623
+ }), o && (f = o(t, u, f))), Nl(f, i, m) && (f = u)), t.key === (s ? es : Jo) && (p && kt(t), u % i !== 0 ? (f = un(e, {
7624
7624
  startingIndex: u,
7625
7625
  decrement: !0,
7626
7626
  disabledIndices: a
@@ -7633,8 +7633,8 @@ function mA(e, {
7633
7633
  decrement: !0,
7634
7634
  disabledIndices: a
7635
7635
  }), o && (f = o(t, u, f))), Nl(f, i, m) && (f = u));
7636
- const g = Zo(c / i) === m;
7637
- Eo(e, f) && (r && g ? (f = t.key === (s ? Jo : Qo) ? c : un(e, {
7636
+ const g = Qo(c / i) === m;
7637
+ Eo(e, f) && (r && g ? (f = t.key === (s ? es : Jo) ? c : un(e, {
7638
7638
  startingIndex: u - u % i - 1,
7639
7639
  disabledIndices: a
7640
7640
  }), o && (f = o(t, u, f))) : f = u);
@@ -8161,7 +8161,7 @@ function Aa(e) {
8161
8161
  } = e, g = "rootStore" in t ? t.rootStore : t, b = g.useState("open"), x = g.useState("domReferenceElement"), w = g.useState("floatingElement"), {
8162
8162
  events: v,
8163
8163
  dataRef: C
8164
- } = g.context, E = ge(() => C.current.floatingContext?.nodeId), S = o === !1, N = Ep(x) && S, k = Pt(o), R = Pt(s), M = Pt(c), I = Pt(b), P = Fo(h), A = W1(), D = y.useRef(!1), _ = y.useRef(!1), V = y.useRef(!1), z = y.useRef(null), F = y.useRef(""), B = y.useRef(""), O = y.useRef(null), L = y.useRef(null), $ = gn(O, f, A?.beforeInsideRef), H = gn(L, A?.afterInsideRef), G = Nt(), Y = Nt(), K = ls(), X = A != null, W = Nc(w), j = ge((te = W) => te ? Oa(te) : []), Z = ge(() => m?.().filter((te) => te != null) ?? []);
8164
+ } = g.context, E = ge(() => C.current.floatingContext?.nodeId), S = o === !1, N = Ep(x) && S, k = Pt(o), R = Pt(s), M = Pt(c), I = Pt(b), P = Fo(h), A = W1(), D = y.useRef(!1), _ = y.useRef(!1), V = y.useRef(!1), z = y.useRef(null), F = y.useRef(""), B = y.useRef(""), O = y.useRef(null), L = y.useRef(null), $ = gn(O, f, A?.beforeInsideRef), H = gn(L, A?.afterInsideRef), G = Nt(), Y = Nt(), K = cs(), X = A != null, W = Nc(w), j = ge((te = W) => te ? Oa(te) : []), Z = ge(() => m?.().filter((te) => te != null) ?? []);
8165
8165
  y.useEffect(() => {
8166
8166
  if (r || !a)
8167
8167
  return;
@@ -8379,7 +8379,7 @@ function hi(e, t = {}) {
8379
8379
  stickIfOpen: i = !0,
8380
8380
  touchOpenDelay: a = 0,
8381
8381
  reason: l = _r
8382
- } = t, c = "rootStore" in e ? e.rootStore : e, u = c.context.dataRef, p = y.useRef(void 0), f = ls(), h = Nt(), m = y.useMemo(() => {
8382
+ } = t, c = "rootStore" in e ? e.rootStore : e, u = c.context.dataRef, p = y.useRef(void 0), f = cs(), h = Nt(), m = y.useMemo(() => {
8383
8383
  function g(x, w, v, C) {
8384
8384
  const E = Se(l, w, v);
8385
8385
  x && C === "touch" && a > 0 ? h.start(a, () => {
@@ -8547,7 +8547,7 @@ function mi(e, t = {}) {
8547
8547
  }), V = ge(($) => {
8548
8548
  if (!u || !n || !r || $.key !== "Escape" || N.current || !w && A("__escapeKeyBubbles"))
8549
8549
  return;
8550
- const H = LO($) ? $.nativeEvent : $, G = Se(gs, H);
8550
+ const H = LO($) ? $.nativeEvent : $, G = Se(bs, H);
8551
8551
  c.setOpen(!1, G), G.isCanceled || $.preventDefault(), !w && !G.isPropagationAllowed && $.stopPropagation();
8552
8552
  }), z = ge(() => {
8553
8553
  f.current.insideReactTree = !0, I.start(0, P);
@@ -9182,7 +9182,7 @@ function J1(e) {
9182
9182
  function QA(e, t, n) {
9183
9183
  return t === void 0 && (t = !1), !!n && t && n === gt(e);
9184
9184
  }
9185
- function cs(e, t, n, r) {
9185
+ function us(e, t, n, r) {
9186
9186
  t === void 0 && (t = !1), n === void 0 && (n = !1);
9187
9187
  const o = e.getBoundingClientRect(), s = am(e);
9188
9188
  let i = Yr(1);
@@ -9206,7 +9206,7 @@ function cs(e, t, n, r) {
9206
9206
  }
9207
9207
  function Pu(e, t) {
9208
9208
  const n = Su(e).scrollLeft;
9209
- return t ? t.left + n : cs(so(e)).left + n;
9209
+ return t ? t.left + n : us(so(e)).left + n;
9210
9210
  }
9211
9211
  function eC(e, t) {
9212
9212
  const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Pu(e, n), o = n.top + t.scrollTop;
@@ -9231,7 +9231,7 @@ function JA(e) {
9231
9231
  }, c = Yr(1);
9232
9232
  const u = Yr(0), p = yt(r);
9233
9233
  if ((p || !s) && ((bn(r) !== "body" || Ta(i)) && (l = Su(r)), p)) {
9234
- const h = cs(r);
9234
+ const h = us(r);
9235
9235
  c = js(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
9236
9236
  }
9237
9237
  const f = i && !p && !s ? eC(i, l) : Yr(0);
@@ -9277,7 +9277,7 @@ function rD(e, t, n) {
9277
9277
  };
9278
9278
  }
9279
9279
  function oD(e, t) {
9280
- const n = cs(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = js(e), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, c = r * s.y;
9280
+ const n = us(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = js(e), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, c = r * s.y;
9281
9281
  return {
9282
9282
  width: i,
9283
9283
  height: a,
@@ -9348,14 +9348,14 @@ function aD(e) {
9348
9348
  };
9349
9349
  }
9350
9350
  function lD(e, t, n) {
9351
- const r = yt(t), o = so(t), s = n === "fixed", i = cs(e, !0, s, t);
9351
+ const r = yt(t), o = so(t), s = n === "fixed", i = us(e, !0, s, t);
9352
9352
  let a = {
9353
9353
  scrollLeft: 0,
9354
9354
  scrollTop: 0
9355
9355
  };
9356
9356
  const l = Yr(0);
9357
9357
  if ((r || !s) && ((bn(t) !== "body" || Ta(o)) && (a = Su(t)), r)) {
9358
- const f = cs(t, !0, s, t);
9358
+ const f = us(t, !0, s, t);
9359
9359
  l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
9360
9360
  }
9361
9361
  !r && o && (l.x = Pu(o));
@@ -9443,7 +9443,7 @@ function dD(e, t, n) {
9443
9443
  } = f;
9444
9444
  if (u || t(), !g || !b)
9445
9445
  return;
9446
- const x = Zo(m), w = Zo(s.clientWidth - (h + g)), v = Zo(s.clientHeight - (m + b)), C = Zo(h), S = {
9446
+ const x = Qo(m), w = Qo(s.clientWidth - (h + g)), v = Qo(s.clientHeight - (m + b)), C = Qo(h), S = {
9447
9447
  rootMargin: -x + "px " + -w + "px " + -v + "px " + -C + "px",
9448
9448
  threshold: qr(0, ei(1, p)) || 1
9449
9449
  };
@@ -9498,10 +9498,10 @@ function yv(e, t, n, r) {
9498
9498
  (v = h) == null || v.observe(t);
9499
9499
  })), n();
9500
9500
  }), c && !l && h.observe(c), t && h.observe(t));
9501
- let m, g = l ? cs(e) : null;
9501
+ let m, g = l ? us(e) : null;
9502
9502
  l && b();
9503
9503
  function b() {
9504
- const x = cs(e);
9504
+ const x = us(e);
9505
9505
  g && !rC(g, x) && n(), g = x, m = requestAnimationFrame(b);
9506
9506
  }
9507
9507
  return n(), () => {
@@ -10081,7 +10081,7 @@ class iC {
10081
10081
  return me(this, t, n, r, o);
10082
10082
  }
10083
10083
  }
10084
- class bs extends iC {
10084
+ class xs extends iC {
10085
10085
  /**
10086
10086
  * Creates a new ReactStore instance.
10087
10087
  *
@@ -10233,7 +10233,7 @@ const zD = {
10233
10233
  floatingElement: (e) => e.floatingElement,
10234
10234
  floatingId: (e) => e.floatingId
10235
10235
  };
10236
- class Au extends bs {
10236
+ class Au extends xs {
10237
10237
  constructor(t) {
10238
10238
  const {
10239
10239
  syncOnly: n,
@@ -10360,7 +10360,7 @@ function Yn(e, t = !1, n = !1) {
10360
10360
  };
10361
10361
  }
10362
10362
  function Du(e, t = !1) {
10363
- const n = ls();
10363
+ const n = cs();
10364
10364
  return ge((r, o = null) => {
10365
10365
  n.cancel();
10366
10366
  const s = Hr(e);
@@ -10474,7 +10474,7 @@ function dm(e) {
10474
10474
  }, () => t;
10475
10475
  }
10476
10476
  function HD(e, t, n, r = {}) {
10477
- const o = n.reason, s = o === Ut, i = t && o === Hs, a = !t && (o === _r || o === gs), l = dm(n);
10477
+ const o = n.reason, s = o === Ut, i = t && o === Hs, a = !t && (o === _r || o === bs), l = dm(n);
10478
10478
  if (e.context.onOpenChange?.(t, n), n.isCanceled)
10479
10479
  return;
10480
10480
  r.onBeforeDispatch?.(), e.state.floatingRootContext.dispatchOpenChange(t, n);
@@ -10903,7 +10903,7 @@ function pC(e, t = {}) {
10903
10903
  if (!n)
10904
10904
  return;
10905
10905
  function f(h) {
10906
- if (h.reason === _r || h.reason === gs) {
10906
+ if (h.reason === _r || h.reason === bs) {
10907
10907
  const m = o.select("domReferenceElement");
10908
10908
  ct(m) && (l.current = m, a.current = !0);
10909
10909
  }
@@ -11239,16 +11239,16 @@ function ju(e, t, n) {
11239
11239
  }
11240
11240
  }
11241
11241
  function Tl(e, t) {
11242
- return ju(t, e === jh || e === ku, e === Qo || e === Jo);
11242
+ return ju(t, e === jh || e === ku, e === Jo || e === es);
11243
11243
  }
11244
11244
  function wf(e, t, n) {
11245
- return ju(t, e === ku, n ? e === Qo : e === Jo) || e === "Enter" || e === " " || e === "";
11245
+ return ju(t, e === ku, n ? e === Jo : e === es) || e === "Enter" || e === " " || e === "";
11246
11246
  }
11247
11247
  function XD(e, t, n) {
11248
- return ju(t, n ? e === Qo : e === Jo, e === ku);
11248
+ return ju(t, n ? e === Jo : e === es, e === ku);
11249
11249
  }
11250
11250
  function ZD(e, t, n, r) {
11251
- const o = n ? e === Jo : e === Qo, s = e === jh;
11251
+ const o = n ? e === es : e === Jo, s = e === jh;
11252
11252
  return t === "both" || t === "horizontal" && r ? e === YD : ju(t, o, s);
11253
11253
  }
11254
11254
  function xm(e, t) {
@@ -11278,7 +11278,7 @@ function xm(e, t) {
11278
11278
  process.env.NODE_ENV !== "production" && (a && (l || console.warn("`useListNavigation` looping must be enabled to allow escaping."), p || console.warn("`useListNavigation` must be virtual to allow escaping.")), b === "vertical" && S && console.warn("In grid list navigation mode, the `orientation` should", 'be either "horizontal" or "both".'));
11279
11279
  const N = "rootStore" in e ? e.rootStore : e, k = N.useState("open"), R = N.useState("floatingElement"), M = N.useState("domReferenceElement"), I = N.context.dataRef, P = Nc(R), A = Ep(M), D = Pt(P), _ = _o(), V = Fo(C), z = y.useRef(f), F = y.useRef(i ?? -1), B = y.useRef(null), O = y.useRef(!0), L = ge((ee) => {
11280
11280
  o(F.current === -1 ? null : F.current, ee);
11281
- }), $ = y.useRef(!!R), H = y.useRef(k), G = y.useRef(!1), Y = y.useRef(!1), K = y.useRef(null), X = Pt(g), W = Pt(k), j = Pt(i), Z = Pt(v), ne = ls(), te = ls(), q = ge(() => {
11281
+ }), $ = y.useRef(!!R), H = y.useRef(k), G = y.useRef(!1), Y = y.useRef(!1), K = y.useRef(null), X = Pt(g), W = Pt(k), j = Pt(i), Z = Pt(v), ne = cs(), te = cs(), q = ge(() => {
11282
11282
  function ee(re) {
11283
11283
  p ? V?.events.emit("virtualfocus", re) : K.current = dc(re, {
11284
11284
  sync: G.current,
@@ -11647,7 +11647,7 @@ function ym(e = {}) {
11647
11647
  }
11648
11648
  const wm = /* @__PURE__ */ y.createContext(void 0);
11649
11649
  process.env.NODE_ENV !== "production" && (wm.displayName = "PopoverRootContext");
11650
- function xs(e) {
11650
+ function vs(e) {
11651
11651
  const t = y.useContext(wm);
11652
11652
  if (t === void 0 && !e)
11653
11653
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>." : Qe(47));
@@ -11668,13 +11668,13 @@ const e_ = {
11668
11668
  closeDelay: (e) => e.closeDelay,
11669
11669
  adaptiveOrigin: (e) => e.adaptiveOrigin
11670
11670
  };
11671
- class t_ extends bs {
11671
+ class t_ extends xs {
11672
11672
  constructor(t, n, r) {
11673
11673
  const o = new bi();
11674
11674
  super(n_(t, o, n, r), r_(o), e_);
11675
11675
  }
11676
11676
  setOpen = (t, n) => {
11677
- const r = n.reason === Ut, o = n.reason === _r && n.event.detail === 0, s = !t && (n.reason === gs || n.reason == null), i = dm(n), a = this.select("activeTriggerId");
11677
+ const r = n.reason === Ut, o = n.reason === _r && n.event.detail === 0, s = !t && (n.reason === bs || n.reason == null), i = dm(n), a = this.select("activeTriggerId");
11678
11678
  if (!t && n.reason === Ru && n.trigger == null && a != null && (n.trigger = this.context.triggerElements.getById(a) ?? this.select("activeTriggerElement") ?? void 0), this.context.onOpenChange?.(t, n), n.isCanceled)
11679
11679
  return;
11680
11680
  this.state.floatingRootContext.dispatchOpenChange(t, n);
@@ -11776,7 +11776,7 @@ function Pv({
11776
11776
  });
11777
11777
  }
11778
11778
  function o_(e) {
11779
- return xs(!0) ? /* @__PURE__ */ d(Pv, {
11779
+ return vs(!0) ? /* @__PURE__ */ d(Pv, {
11780
11780
  props: e
11781
11781
  }) : /* @__PURE__ */ d(X1, {
11782
11782
  children: /* @__PURE__ */ d(Pv, {
@@ -11808,7 +11808,7 @@ function i_({
11808
11808
  }
11809
11809
  let Tp;
11810
11810
  process.env.NODE_ENV !== "production" && (Tp = /* @__PURE__ */ new Set());
11811
- function us(...e) {
11811
+ function ds(...e) {
11812
11812
  if (process.env.NODE_ENV !== "production") {
11813
11813
  const t = e.join(" ");
11814
11814
  Tp.has(t) || (Tp.add(t), console.error(`Base UI: ${t}`));
@@ -11842,7 +11842,7 @@ function mC(e) {
11842
11842
  }, [r, n, t, i, a, s, o])
11843
11843
  };
11844
11844
  }
11845
- function es(e, t, {
11845
+ function ts(e, t, {
11846
11846
  detail: n = 0
11847
11847
  } = {}) {
11848
11848
  e.dispatchEvent(new (gt(e)).PointerEvent("click", {
@@ -11879,11 +11879,11 @@ function Lt(e = {}) {
11879
11879
  if (o) {
11880
11880
  if (!h) {
11881
11881
  const m = sr.captureOwnerStack?.() || "";
11882
- us(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${m}`);
11882
+ ds(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${m}`);
11883
11883
  }
11884
11884
  } else if (h) {
11885
11885
  const m = sr.captureOwnerStack?.() || "";
11886
- us(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${m}`);
11886
+ ds(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${m}`);
11887
11887
  }
11888
11888
  }, [o]);
11889
11889
  const u = y.useCallback(() => {
@@ -11918,14 +11918,14 @@ function Lt(e = {}) {
11918
11918
  if (E && l && I) {
11919
11919
  if (C.defaultPrevented && A)
11920
11920
  return;
11921
- C.preventDefault(), (!o || N) && (C.preventBaseUIHandler(), es(S, C));
11921
+ C.preventDefault(), (!o || N) && (C.preventBaseUIHandler(), ts(S, C));
11922
11922
  return;
11923
11923
  }
11924
11924
  if (!R || o || !I && !M) {
11925
11925
  E && k && I && C.preventDefault();
11926
11926
  return;
11927
11927
  }
11928
- C.defaultPrevented || (C.preventDefault(), M && (C.preventBaseUIHandler(), es(S, C)));
11928
+ C.defaultPrevented || (C.preventDefault(), M && (C.preventBaseUIHandler(), ts(S, C)));
11929
11929
  },
11930
11930
  onKeyUp(C) {
11931
11931
  if (!t) {
@@ -11933,7 +11933,7 @@ function Lt(e = {}) {
11933
11933
  C.preventDefault();
11934
11934
  return;
11935
11935
  }
11936
- C.baseUIHandlerPrevented || C.target === C.currentTarget && !o && !l && !C.defaultPrevented && C.key === " " && (C.preventBaseUIHandler(), es(C.currentTarget, C));
11936
+ C.baseUIHandlerPrevented || C.target === C.currentTarget && !o && !l && !C.defaultPrevented && C.key === " " && (C.preventBaseUIHandler(), ts(C.currentTarget, C));
11937
11937
  }
11938
11938
  },
11939
11939
  onPointerDown(C) {
@@ -11996,7 +11996,7 @@ const u_ = {
11996
11996
  open(e) {
11997
11997
  return e ? d_ : null;
11998
11998
  }
11999
- }, vs = {
11999
+ }, ys = {
12000
12000
  open(e) {
12001
12001
  return e ? f_ : p_;
12002
12002
  },
@@ -12004,7 +12004,7 @@ const u_ = {
12004
12004
  return e ? h_ : null;
12005
12005
  }
12006
12006
  }, Wu = {
12007
- ...vs,
12007
+ ...ys,
12008
12008
  ...xn
12009
12009
  }, m_ = 300;
12010
12010
  function Et(e) {
@@ -12099,7 +12099,7 @@ const bC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12099
12099
  closeDelay: f = 0,
12100
12100
  id: h,
12101
12101
  ...m
12102
- } = t, g = xs(!0), x = Uu(l) ?? g;
12102
+ } = t, g = vs(!0), x = Uu(l) ?? g;
12103
12103
  if (!x)
12104
12104
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle." : Qe(74));
12105
12105
  const w = Et(h), v = x.useState("isTriggerActive", w), C = x.useState("floatingRootContext"), E = x.useState("isOpenedByTrigger", w), S = x.useState("triggerPopupId", w), N = y.useRef(null), {
@@ -12181,7 +12181,7 @@ const xC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12181
12181
  keepMounted: r = !1,
12182
12182
  ...o
12183
12183
  } = t;
12184
- return xs().useState("mounted") || r ? /* @__PURE__ */ d(km.Provider, {
12184
+ return vs().useState("mounted") || r ? /* @__PURE__ */ d(km.Provider, {
12185
12185
  value: r,
12186
12186
  children: /* @__PURE__ */ d(pi, {
12187
12187
  ref: n,
@@ -12190,7 +12190,7 @@ const xC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12190
12190
  }) : null;
12191
12191
  });
12192
12192
  process.env.NODE_ENV !== "production" && (xC.displayName = "PopoverPortal");
12193
- function ys(e) {
12193
+ function ws(e) {
12194
12194
  return Ih(19) ? e : e ? "true" : void 0;
12195
12195
  }
12196
12196
  const Nm = /* @__PURE__ */ y.createContext(void 0);
@@ -12382,9 +12382,9 @@ function C_(e, t) {
12382
12382
  const {
12383
12383
  width: et,
12384
12384
  height: $e
12385
- } = Z.current.getBoundingClientRect(), xt = er(or(Ke.placement)), Xe = xt === "y" ? et : $e, lt = xt === "y" ? H.left + H.right : H.top + H.bottom;
12385
+ } = Z.current.getBoundingClientRect(), xt = er(or(Ke.placement)), Xe = xt === "y" ? et : $e, at = xt === "y" ? H.left + H.right : H.top + H.bottom;
12386
12386
  return {
12387
- offset: Xe / 2 + lt / 2
12387
+ offset: Xe / 2 + at / 2
12388
12388
  };
12389
12389
  })
12390
12390
  }, [j, u, P, A, H, M]);
@@ -12402,12 +12402,12 @@ function C_(e, t) {
12402
12402
  return;
12403
12403
  const Xe = Ke.style;
12404
12404
  Xe.setProperty(Ov, `${et}px`), Xe.setProperty(Av, `${$e}px`);
12405
- const lt = gt(Ke).devicePixelRatio || 1, {
12405
+ const at = gt(Ke).devicePixelRatio || 1, {
12406
12406
  x: ut,
12407
12407
  y: Bt,
12408
12408
  width: Fe,
12409
12409
  height: Rt
12410
- } = xt.reference, It = (Math.round((ut + Fe) * lt) - Math.round(ut * lt)) / lt, qe = (Math.round((Bt + Rt) * lt) - Math.round(Bt * lt)) / lt;
12410
+ } = xt.reference, It = (Math.round((ut + Fe) * at) - Math.round(ut * at)) / at, qe = (Math.round((Bt + Rt) * at) - Math.round(Bt * at)) / at;
12411
12411
  Xe.setProperty("--anchor-width", `${It}px`), Xe.setProperty("--anchor-height", `${qe}px`);
12412
12412
  }
12413
12413
  }), v_((Ke) => ({
@@ -12424,13 +12424,13 @@ function C_(e, t) {
12424
12424
  middlewareData: $e,
12425
12425
  placement: xt,
12426
12426
  rects: Xe,
12427
- y: lt
12427
+ y: at
12428
12428
  } = Ke, ut = or(xt), Bt = er(ut), Fe = Z.current, Rt = $e.arrow?.x || 0, It = $e.arrow?.y || 0, qe = Fe?.clientWidth || 0, vt = Fe?.clientHeight || 0, Ht = Rt + qe / 2, en = It + vt / 2, vn = Math.abs($e.shift?.y || 0), qt = Xe.reference.height / 2, cn = typeof s == "function" ? s(Dv(Ke, o, O)) : s, tn = vn > cn, nt = {
12429
12429
  top: `${Ht}px calc(100% + ${cn}px)`,
12430
12430
  bottom: `${Ht}px ${-cn}px`,
12431
12431
  left: `calc(100% + ${cn}px) ${en}px`,
12432
12432
  right: `${-cn}px ${en}px`
12433
- }[ut], cr = `${Ht}px ${Xe.reference.y + qt - lt}px`;
12433
+ }[ut], cr = `${Ht}px ${Xe.reference.y + qt - at}px`;
12434
12434
  return et.floating.style.setProperty("--transform-origin", pe && Bt === "y" && tn ? cr : nt), {};
12435
12435
  }
12436
12436
  }, y_, C), ve(() => {
@@ -12570,7 +12570,7 @@ function Fa(e, t, {
12570
12570
  hidden: i,
12571
12571
  style: l
12572
12572
  }, vi(r), o],
12573
- stateAttributesMapping: vs
12573
+ stateAttributesMapping: ys
12574
12574
  });
12575
12575
  }
12576
12576
  let Fv = {}, Vv = {}, $v = "";
@@ -12732,7 +12732,7 @@ const EC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12732
12732
  disableAnchorTracking: b = !1,
12733
12733
  collisionAvoidance: x = em,
12734
12734
  ...w
12735
- } = t, v = xs(), C = b_(), E = sm(), S = v.useState("floatingRootContext"), N = v.useState("mounted"), k = v.useState("open"), R = v.useState("openChangeReason"), M = v.useState("activeTriggerElement"), I = v.useState("modal"), P = v.useState("openMethod"), A = v.useState("positionerElement"), D = v.useState("instantType"), _ = v.useState("transitionStatus"), V = v.useState("adaptiveOrigin"), z = y.useRef(null), F = Du(A), B = _a({
12735
+ } = t, v = vs(), C = b_(), E = sm(), S = v.useState("floatingRootContext"), N = v.useState("mounted"), k = v.useState("open"), R = v.useState("openChangeReason"), M = v.useState("activeTriggerElement"), I = v.useState("modal"), P = v.useState("openMethod"), A = v.useState("positionerElement"), D = v.useState("instantType"), _ = v.useState("transitionStatus"), V = v.useState("adaptiveOrigin"), z = y.useRef(null), F = Du(A), B = _a({
12736
12736
  anchor: i,
12737
12737
  floatingRootContext: S,
12738
12738
  positionMethod: a,
@@ -12782,7 +12782,7 @@ const EC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12782
12782
  return /* @__PURE__ */ T(Nm.Provider, {
12783
12783
  value: B,
12784
12784
  children: [N && L && /* @__PURE__ */ d(xi, {
12785
- inert: ys(!k),
12785
+ inert: ws(!k),
12786
12786
  cutout: M
12787
12787
  }), /* @__PURE__ */ d(Y1, {
12788
12788
  id: E,
@@ -12791,7 +12791,7 @@ const EC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12791
12791
  });
12792
12792
  });
12793
12793
  process.env.NODE_ENV !== "production" && (EC.displayName = "PopoverPositioner");
12794
- const Oc = "ArrowUp", Ac = "ArrowDown", Dc = "ArrowLeft", _c = "ArrowRight", Fc = "Home", Vc = "End", SC = "PageUp", kC = "PageDown", ws = /* @__PURE__ */ new Set([Oc, Ac, Dc, _c, Fc, Vc]), NC = "Shift", T_ = [NC, "Control", "Alt", "Meta"];
12794
+ const Oc = "ArrowUp", Ac = "ArrowDown", Dc = "ArrowLeft", _c = "ArrowRight", Fc = "Home", Vc = "End", SC = "PageUp", kC = "PageDown", Cs = /* @__PURE__ */ new Set([Oc, Ac, Dc, _c, Fc, Vc]), NC = "Shift", T_ = [NC, "Control", "Alt", "Meta"];
12795
12795
  function P_(e) {
12796
12796
  return yt(e) && e.tagName === "INPUT";
12797
12797
  }
@@ -12870,7 +12870,7 @@ const RC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12870
12870
  initialFocus: i,
12871
12871
  finalFocus: a,
12872
12872
  ...l
12873
- } = t, c = xs(), u = vC(), p = Vo(!0) != null, {
12873
+ } = t, c = vs(), u = vC(), p = Vo(!0) != null, {
12874
12874
  context: f,
12875
12875
  hasClosePart: h
12876
12876
  } = O_(), m = c.useState("open"), g = c.useState("openMethod"), b = c.useState("instantType"), x = c.useState("transitionStatus"), w = c.useState("popupProps"), v = c.useState("titleElementId"), C = c.useState("descriptionElementId"), E = c.useState("modal"), S = c.useState("mounted"), N = c.useState("openChangeReason"), k = c.useState("activeTriggerElement"), R = c.useState("floatingRootContext"), M = R.useState("floatingId"), I = c.useState("disabled"), P = c.useState("openOnHover"), A = c.useState("closeDelay");
@@ -12902,7 +12902,7 @@ const RC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12902
12902
  "aria-labelledby": v,
12903
12903
  "aria-describedby": C,
12904
12904
  onKeyDown(B) {
12905
- p && ws.has(B.key) && B.stopPropagation();
12905
+ p && Cs.has(B.key) && B.stopPropagation();
12906
12906
  }
12907
12907
  }, vi(x), l],
12908
12908
  stateAttributesMapping: Wu
@@ -12931,7 +12931,7 @@ const IC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12931
12931
  className: o,
12932
12932
  style: s,
12933
12933
  ...i
12934
- } = t, l = xs().useState("open"), {
12934
+ } = t, l = vs().useState("open"), {
12935
12935
  arrowRef: c,
12936
12936
  side: u,
12937
12937
  align: p,
@@ -12950,7 +12950,7 @@ const IC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12950
12950
  style: h,
12951
12951
  "aria-hidden": !0
12952
12952
  }, i],
12953
- stateAttributesMapping: vs
12953
+ stateAttributesMapping: ys
12954
12954
  });
12955
12955
  });
12956
12956
  process.env.NODE_ENV !== "production" && (IC.displayName = "PopoverArrow");
@@ -12969,7 +12969,7 @@ const MC = /* @__PURE__ */ y.forwardRef(function(t, n) {
12969
12969
  disabled: i,
12970
12970
  focusableWhenDisabled: !1,
12971
12971
  native: a
12972
- }), p = xs();
12972
+ }), p = vs();
12973
12973
  return A_(), Ee("button", t, {
12974
12974
  ref: [n, c],
12975
12975
  props: [{
@@ -13019,7 +13019,7 @@ const __ = {
13019
13019
  closeDelay: (e) => e.closeDelay,
13020
13020
  adaptiveOrigin: (e) => e.adaptiveOrigin
13021
13021
  };
13022
- class F_ extends bs {
13022
+ class F_ extends xs {
13023
13023
  constructor(t, n, r) {
13024
13024
  const o = new bi();
13025
13025
  super(V_(t, o, n, r), $_(o), __);
@@ -13447,7 +13447,7 @@ const VC = /* @__PURE__ */ y.forwardRef(function(t, n) {
13447
13447
  style: f,
13448
13448
  "aria-hidden": !0
13449
13449
  }, i],
13450
- stateAttributesMapping: vs
13450
+ stateAttributesMapping: ys
13451
13451
  });
13452
13452
  });
13453
13453
  process.env.NODE_ENV !== "production" && (VC.displayName = "TooltipArrow");
@@ -13560,7 +13560,7 @@ function Hn({
13560
13560
  }
13561
13561
  );
13562
13562
  }
13563
- function Vs({ children: e }) {
13563
+ function Ko({ children: e }) {
13564
13564
  return /* @__PURE__ */ d(MC, { render: e });
13565
13565
  }
13566
13566
  function Kt({ content: e, children: t, side: n = "top", className: r, defaultOpen: o, enterable: s = !0, open: i, onOpenChange: a }) {
@@ -13851,7 +13851,7 @@ function st({
13851
13851
  "aria-busy": i || void 0,
13852
13852
  onPointerDown: M,
13853
13853
  onClick: R,
13854
- children: /* @__PURE__ */ T(at, { children: [
13854
+ children: /* @__PURE__ */ T(lt, { children: [
13855
13855
  w.map((P) => /* @__PURE__ */ d(
13856
13856
  "span",
13857
13857
  {
@@ -14918,11 +14918,11 @@ const eE = /* @__PURE__ */ y.forwardRef(function(t, n) {
14918
14918
  if (a) {
14919
14919
  if (!b) {
14920
14920
  const x = sr.captureOwnerStack?.() || "";
14921
- us(`<Field.Label> expected a <label> element because the \`nativeLabel\` prop is true. Rendering a non-<label> disables native label association, so \`htmlFor\` will not work. Use a real <label> in the \`render\` prop, or set \`nativeLabel\` to \`false\`.${x}`);
14921
+ ds(`<Field.Label> expected a <label> element because the \`nativeLabel\` prop is true. Rendering a non-<label> disables native label association, so \`htmlFor\` will not work. Use a real <label> in the \`render\` prop, or set \`nativeLabel\` to \`false\`.${x}`);
14922
14922
  }
14923
14923
  } else if (b) {
14924
14924
  const x = sr.captureOwnerStack?.() || "";
14925
- us(`<Field.Label> expected a non-<label> element because the \`nativeLabel\` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the \`render\` prop, or set \`nativeLabel\` to \`true\`.${x}`);
14925
+ ds(`<Field.Label> expected a non-<label> element because the \`nativeLabel\` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the \`render\` prop, or set \`nativeLabel\` to \`true\`.${x}`);
14926
14926
  }
14927
14927
  }, [a]), Ee("label", t, {
14928
14928
  ref: [n, h],
@@ -15037,14 +15037,14 @@ function ln({
15037
15037
  } = y.useRef(e !== void 0), [s, i] = y.useState(t), a = o ? e : s;
15038
15038
  if (process.env.NODE_ENV !== "production") {
15039
15039
  y.useEffect(() => {
15040
- o !== (e !== void 0) && us([`A component is changing the ${o ? "" : "un"}controlled ${r} state of ${n} to be ${o ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
15040
+ o !== (e !== void 0) && ds([`A component is changing the ${o ? "" : "un"}controlled ${r} state of ${n} to be ${o ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
15041
15041
  `));
15042
15042
  }, [r, n, e]);
15043
15043
  const {
15044
15044
  current: c
15045
15045
  } = y.useRef(t);
15046
15046
  y.useEffect(() => {
15047
- !o && Yv(c) !== Yv(t) && us([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
15047
+ !o && Yv(c) !== Yv(t) && ds([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
15048
15048
  `));
15049
15049
  }, [t]);
15050
15050
  }
@@ -15309,14 +15309,14 @@ function St({
15309
15309
  disabled: o,
15310
15310
  invalid: p,
15311
15311
  className: U(u.root(), a),
15312
- children: i === "inline" ? /* @__PURE__ */ T(at, { children: [
15312
+ children: i === "inline" ? /* @__PURE__ */ T(lt, { children: [
15313
15313
  l,
15314
15314
  /* @__PURE__ */ T("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
15315
15315
  f,
15316
15316
  h,
15317
15317
  m
15318
15318
  ] })
15319
- ] }) : /* @__PURE__ */ T(at, { children: [
15319
+ ] }) : /* @__PURE__ */ T(lt, { children: [
15320
15320
  f,
15321
15321
  l,
15322
15322
  h,
@@ -16218,7 +16218,7 @@ function hn(e, t, n, r, o) {
16218
16218
  const Ap = /[!-/:-@[-`{-~]/, yF = 8;
16219
16219
  function Qv(e, t, n, r = "text", o = 0, s = e.text.length) {
16220
16220
  const i = Lm(mE(e, t, o, s, 0));
16221
- return n && Dp(i, e, n, r), Ko(i);
16221
+ return n && Dp(i, e, n, r), qo(i);
16222
16222
  }
16223
16223
  function mE(e, t, n, r, o) {
16224
16224
  const s = e.text, i = [];
@@ -16557,7 +16557,7 @@ function Lm(e) {
16557
16557
  function AF(e, t) {
16558
16558
  return e.t !== "delim" || t.t !== "delim" ? !1 : !t.canOpen && !e.canClose || (t.olen + e.olen) % 3 !== 0 ? !0 : t.olen % 3 === 0 && e.olen % 3 === 0;
16559
16559
  }
16560
- function Ts(e, t, n, r, o, s, i) {
16560
+ function Ps(e, t, n, r, o, s, i) {
16561
16561
  const a = vF(t, r, o);
16562
16562
  if (!a) {
16563
16563
  i();
@@ -16576,47 +16576,47 @@ function Dp(e, t, n, r) {
16576
16576
  hn(t, n, o.a, o.b, r);
16577
16577
  break;
16578
16578
  case "break":
16579
- hn(t, n, o.a, o.b, o.backslash ? "escape" : r), Ts(n, t, { kind: "hardBreak" }, o.a, o.b, [], () => {
16579
+ hn(t, n, o.a, o.b, o.backslash ? "escape" : r), Ps(n, t, { kind: "hardBreak" }, o.a, o.b, [], () => {
16580
16580
  });
16581
16581
  break;
16582
16582
  case "delim":
16583
16583
  hn(t, n, o.a, o.b, r);
16584
16584
  break;
16585
16585
  case "code":
16586
- hn(t, n, o.a, o.ca, "marker"), hn(t, n, o.ca, o.cb, "string"), hn(t, n, o.cb, o.b, "marker"), Ts(n, t, { kind: "codeSpan" }, o.a, o.b, [[o.ca, o.cb]], () => {
16586
+ hn(t, n, o.a, o.ca, "marker"), hn(t, n, o.ca, o.cb, "string"), hn(t, n, o.cb, o.b, "marker"), Ps(n, t, { kind: "codeSpan" }, o.a, o.b, [[o.ca, o.cb]], () => {
16587
16587
  });
16588
16588
  break;
16589
16589
  case "auto": {
16590
16590
  hn(t, n, o.a, o.b, "url");
16591
16591
  const s = t.text[o.a] === "<", i = s ? o.a + 1 : o.a, a = s ? o.b - 1 : o.b;
16592
- Ts(n, t, { kind: "autolink", href: o.href }, o.a, o.b, [[i, a]], () => {
16592
+ Ps(n, t, { kind: "autolink", href: o.href }, o.a, o.b, [[i, a]], () => {
16593
16593
  });
16594
16594
  break;
16595
16595
  }
16596
16596
  case "footref":
16597
- hn(t, n, o.a, o.b, "link"), Ts(n, t, { kind: "footnoteRef", label: o.label }, o.a, o.b, [], () => {
16597
+ hn(t, n, o.a, o.b, "link"), Ps(n, t, { kind: "footnoteRef", label: o.label }, o.a, o.b, [], () => {
16598
16598
  });
16599
16599
  break;
16600
16600
  case "emph":
16601
16601
  case "strong":
16602
16602
  case "strike": {
16603
16603
  const s = o.t === "emph" ? "emphasis" : o.t, i = o.t === "emph" ? "emphasis" : o.t;
16604
- Ts(n, t, { kind: i }, o.a, o.b, [[o.ob, o.xa]], () => {
16604
+ Ps(n, t, { kind: i }, o.a, o.b, [[o.ob, o.xa]], () => {
16605
16605
  hn(t, n, o.oa, o.ob, s), Dp(o.children, t, n, s), hn(t, n, o.xa, o.xb, s);
16606
16606
  });
16607
16607
  break;
16608
16608
  }
16609
16609
  case "link":
16610
16610
  case "image": {
16611
- const s = o.t === "image" ? { kind: "image", src: o.href, alt: td(Ko(o.children)), title: o.title } : { kind: "link", href: o.href, title: o.title };
16612
- Ts(n, t, s, o.a, o.b, o.t === "image" ? [] : [[o.la, o.lb]], () => {
16611
+ const s = o.t === "image" ? { kind: "image", src: o.href, alt: td(qo(o.children)), title: o.title } : { kind: "link", href: o.href, title: o.title };
16612
+ Ps(n, t, s, o.a, o.b, o.t === "image" ? [] : [[o.la, o.lb]], () => {
16613
16613
  hn(t, n, o.a, o.la, "punctuation"), Dp(o.children, t, n, "link"), hn(t, n, o.lb, o.da, "punctuation"), hn(t, n, o.da, o.db, "url"), o.ta !== void 0 && o.tb !== void 0 ? (hn(t, n, o.ta, o.tb, "string"), hn(t, n, o.tb, o.b, "punctuation")) : hn(t, n, o.db, o.b, "punctuation");
16614
16614
  });
16615
16615
  break;
16616
16616
  }
16617
16617
  }
16618
16618
  }
16619
- function Ko(e) {
16619
+ function qo(e) {
16620
16620
  const t = [], n = (r) => {
16621
16621
  if (!r) return;
16622
16622
  const o = t[t.length - 1];
@@ -16647,19 +16647,19 @@ function Ko(e) {
16647
16647
  t.push({ kind: "footnoteRef", label: r.label });
16648
16648
  break;
16649
16649
  case "emph":
16650
- t.push({ kind: "emphasis", children: Ko(r.children) });
16650
+ t.push({ kind: "emphasis", children: qo(r.children) });
16651
16651
  break;
16652
16652
  case "strong":
16653
- t.push({ kind: "strong", children: Ko(r.children) });
16653
+ t.push({ kind: "strong", children: qo(r.children) });
16654
16654
  break;
16655
16655
  case "strike":
16656
- t.push({ kind: "strike", children: Ko(r.children) });
16656
+ t.push({ kind: "strike", children: qo(r.children) });
16657
16657
  break;
16658
16658
  case "image":
16659
- t.push({ kind: "image", src: r.href, alt: td(Ko(r.children)), title: r.title });
16659
+ t.push({ kind: "image", src: r.href, alt: td(qo(r.children)), title: r.title });
16660
16660
  break;
16661
16661
  case "link":
16662
- t.push({ kind: "link", href: r.href, title: r.title, children: Ko(r.children) });
16662
+ t.push({ kind: "link", href: r.href, title: r.title, children: qo(r.children) });
16663
16663
  break;
16664
16664
  }
16665
16665
  return t;
@@ -17322,7 +17322,7 @@ function sV() {
17322
17322
  return e;
17323
17323
  }
17324
17324
  const iV = {
17325
- ...vs,
17325
+ ...ys,
17326
17326
  ...xn,
17327
17327
  nestedDialogOpen(e) {
17328
17328
  return e ? {
@@ -17360,7 +17360,7 @@ const iV = {
17360
17360
  ...gi,
17361
17361
  hidden: !g,
17362
17362
  onKeyDown(A) {
17363
- ws.has(A.key) && A.stopPropagation();
17363
+ Cs.has(A.key) && A.stopPropagation();
17364
17364
  },
17365
17365
  style: {
17366
17366
  "--nested-dialogs": x
@@ -17394,7 +17394,7 @@ const Ha = /* @__PURE__ */ y.forwardRef(function(t, n) {
17394
17394
  ...o,
17395
17395
  children: [i && a === !0 && /* @__PURE__ */ d(xi, {
17396
17396
  ref: s.context.internalBackdropRef,
17397
- inert: ys(!l)
17397
+ inert: ws(!l)
17398
17398
  }), t.children]
17399
17399
  })
17400
17400
  }) : null;
@@ -17463,7 +17463,7 @@ const lV = {
17463
17463
  viewportElement: (e) => e.viewportElement,
17464
17464
  role: (e) => e.role
17465
17465
  };
17466
- class cV extends bs {
17466
+ class cV extends xs {
17467
17467
  constructor(t, n, r) {
17468
17468
  const o = new bi(), s = uV(t, o, n, r);
17469
17469
  super(s, dV(o), lV);
@@ -17702,7 +17702,7 @@ const IE = ht({
17702
17702
  },
17703
17703
  defaultVariants: { size: "md" }
17704
17704
  });
17705
- function ds({
17705
+ function fs({
17706
17706
  trigger: e,
17707
17707
  open: t,
17708
17708
  onOpenChange: n,
@@ -17762,7 +17762,7 @@ function ds({
17762
17762
  function HK({ children: e }) {
17763
17763
  return /* @__PURE__ */ d(za, { render: e });
17764
17764
  }
17765
- function Cs({
17765
+ function Es({
17766
17766
  trigger: e,
17767
17767
  open: t,
17768
17768
  onOpenChange: n,
@@ -17816,7 +17816,7 @@ function hV({
17816
17816
  confirmText: c
17817
17817
  }) {
17818
17818
  const [u, p] = de(""), f = c === void 0 || u === c;
17819
- return /* @__PURE__ */ T(at, { children: [
17819
+ return /* @__PURE__ */ T(lt, { children: [
17820
17820
  /* @__PURE__ */ T("div", { className: "flex items-start gap-4 p-6", children: [
17821
17821
  s && /* @__PURE__ */ d("span", { className: "grid size-10 shrink-0 place-items-center rounded-full bg-danger-subtle text-danger-text", children: /* @__PURE__ */ d(ce, { name: "triangle-alert", size: "md" }) }),
17822
17822
  i === "warning" && /* @__PURE__ */ d("span", { className: "grid size-10 shrink-0 place-items-center rounded-full bg-warning-subtle text-warning-text", children: /* @__PURE__ */ d(ce, { name: "triangle-alert", size: "md" }) }),
@@ -17827,7 +17827,7 @@ function hV({
17827
17827
  St,
17828
17828
  {
17829
17829
  className: "mt-4",
17830
- label: /* @__PURE__ */ T(at, { children: [
17830
+ label: /* @__PURE__ */ T(lt, { children: [
17831
17831
  "Type ",
17832
17832
  /* @__PURE__ */ d("strong", { className: "font-mono font-semibold text-primary", children: c }),
17833
17833
  " to confirm"
@@ -17897,12 +17897,12 @@ function gV({ node: e, renderCode: t }) {
17897
17897
  case "paragraph":
17898
17898
  return /* @__PURE__ */ d("p", { className: "my-1.5 first:mt-0 last:mb-0", children: /* @__PURE__ */ d(Mr, { nodes: e.children }) });
17899
17899
  case "code":
17900
- return /* @__PURE__ */ d(at, { children: t(e) });
17900
+ return /* @__PURE__ */ d(lt, { children: t(e) });
17901
17901
  /* Front matter is a code block that happens to sit at the top of the file,
17902
17902
  so it renders through the same consumer-supplied renderer — which is also
17903
17903
  what gets it highlighted as YAML rather than shown as grey prose. */
17904
17904
  case "frontmatter":
17905
- return /* @__PURE__ */ d(at, { children: t({ language: e.language, code: e.body, open: !1 }) });
17905
+ return /* @__PURE__ */ d(lt, { children: t({ language: e.language, code: e.body, open: !1 }) });
17906
17906
  case "quote":
17907
17907
  return /* @__PURE__ */ d("blockquote", { className: "my-2 border-l-2 border-accent-border pl-3 text-secondary italic", children: /* @__PURE__ */ d(ja, { nodes: e.children, renderCode: t }) });
17908
17908
  case "rule":
@@ -18019,7 +18019,7 @@ function Mr({ nodes: e }) {
18019
18019
  function CV({ node: e }) {
18020
18020
  switch (e.kind) {
18021
18021
  case "text":
18022
- return /* @__PURE__ */ d(at, { children: e.value });
18022
+ return /* @__PURE__ */ d(lt, { children: e.value });
18023
18023
  case "code":
18024
18024
  return /* @__PURE__ */ d("code", { className: wV, children: e.value });
18025
18025
  case "emphasis":
@@ -18056,7 +18056,7 @@ function CV({ node: e }) {
18056
18056
  }
18057
18057
  function EV({ src: e, alt: t, title: n }) {
18058
18058
  const [r, o] = de(!1);
18059
- return /* @__PURE__ */ T(at, { children: [
18059
+ return /* @__PURE__ */ T(lt, { children: [
18060
18060
  /* @__PURE__ */ d(ME, { title: n, children: /* @__PURE__ */ d(
18061
18061
  "img",
18062
18062
  {
@@ -18068,14 +18068,14 @@ function EV({ src: e, alt: t, title: n }) {
18068
18068
  className: "my-2 max-h-40 w-auto max-w-full cursor-zoom-in rounded-lg border border-border-subtle"
18069
18069
  }
18070
18070
  ) }),
18071
- /* @__PURE__ */ d(ds, { open: r, onOpenChange: o, title: t || "Image", size: "xl", children: /* @__PURE__ */ d("img", { src: e, alt: t, className: "max-w-full rounded-lg" }) })
18071
+ /* @__PURE__ */ d(fs, { open: r, onOpenChange: o, title: t || "Image", size: "xl", children: /* @__PURE__ */ d("img", { src: e, alt: t, className: "max-w-full rounded-lg" }) })
18072
18072
  ] });
18073
18073
  }
18074
18074
  function Lc(e) {
18075
18075
  const n = e.trim().replace(/[\u0000-\u0020]/g, "");
18076
18076
  return /^[a-z][a-z0-9+.-]*:/i.test(n) ? /^(https?|mailto|tel|ftp):/i.test(n) ? n : null : n;
18077
18077
  }
18078
- const ts = { "(": ")", "[": "]", "{": "}" }, Fp = /* @__PURE__ */ new Set(['"', "'", "`"]), SV = /* @__PURE__ */ new Set([")", "]", "}"]), cy = /[\p{L}\p{N}_$]/u;
18078
+ const ns = { "(": ")", "[": "]", "{": "}" }, Fp = /* @__PURE__ */ new Set(['"', "'", "`"]), SV = /* @__PURE__ */ new Set([")", "]", "}"]), cy = /[\p{L}\p{N}_$]/u;
18079
18079
  function ri(e, t, n, r, o) {
18080
18080
  e.focus(), e.setSelectionRange(t, n);
18081
18081
  let s = !1;
@@ -18129,16 +18129,16 @@ function RV(e, t, n) {
18129
18129
  ]);
18130
18130
  }
18131
18131
  function IV(e, t) {
18132
- const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = NV(n, r), i = r > 0 ? n[r - 1] : "", a = o < n.length ? n[o] : "", l = i in ts, c = l ? `
18132
+ const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = NV(n, r), i = r > 0 ? n[r - 1] : "", a = o < n.length ? n[o] : "", l = i in ns, c = l ? `
18133
18133
  ${s}${t}` : `
18134
- ${s}`, u = l && ts[i] === a ? `
18134
+ ${s}`, u = l && ns[i] === a ? `
18135
18135
  ${s}` : "", p = r + c.length;
18136
18136
  ri(e, r, o, c + u, [p, p]);
18137
18137
  }
18138
18138
  function MV(e, t) {
18139
- const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = t in ts, i = Fp.has(t);
18139
+ const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = t in ns, i = Fp.has(t);
18140
18140
  if (r !== o && (s || i)) {
18141
- const c = i ? t : ts[t];
18141
+ const c = i ? t : ns[t];
18142
18142
  return ri(e, r, o, t + n.slice(r, o) + c, [r + 1, o + 1]), !0;
18143
18143
  }
18144
18144
  const a = o < n.length ? n[o] : "";
@@ -18149,13 +18149,13 @@ function MV(e, t) {
18149
18149
  const c = r > 0 ? n[r - 1] : "";
18150
18150
  if (c && (cy.test(c) || Fp.has(c))) return !1;
18151
18151
  }
18152
- const l = i ? t : ts[t];
18152
+ const l = i ? t : ns[t];
18153
18153
  return ri(e, r, o, t + l, [r + 1, r + 1]), !0;
18154
18154
  }
18155
18155
  function TV(e) {
18156
18156
  const { selectionStart: t, selectionEnd: n } = e;
18157
18157
  if (t !== n || t === 0) return !1;
18158
- const r = e.value[t - 1], o = n < e.value.length ? e.value[n] : "", s = r in ts ? ts[r] : Fp.has(r) ? r : "";
18158
+ const r = e.value[t - 1], o = n < e.value.length ? e.value[n] : "", s = r in ns ? ns[r] : Fp.has(r) ? r : "";
18159
18159
  return !s || o !== s ? !1 : (ri(e, t - 1, n + 1, "", [t - 1, t - 1]), !0);
18160
18160
  }
18161
18161
  const AE = Mn(null), PV = AE.Provider;
@@ -18797,7 +18797,7 @@ function l$(e, t, n, r) {
18797
18797
  const o = [], s = ["root"];
18798
18798
  let i = 0, a = 0;
18799
18799
  const l = () => {
18800
- i > a && qo(o, n + a, n + i, "text", t.name), a = i;
18800
+ i > a && Yo(o, n + a, n + i, "text", t.name), a = i;
18801
18801
  };
18802
18802
  for (; i < e.length; ) {
18803
18803
  const c = s[s.length - 1], u = t.states[c] ?? [];
@@ -18825,12 +18825,12 @@ function c$(e, t, n, r, o, s, i, a) {
18825
18825
  const m = Zm(h, rd(l), s + a, i + 1);
18826
18826
  for (const g of m) r.push(g);
18827
18827
  }
18828
- return p ? (qo(r, s + p.index, s + p.index + p[0].length, n.untilToken ?? "punctuation", o.name), p.index + p[0].length) : e.length;
18828
+ return p ? (Yo(r, s + p.index, s + p.index + p[0].length, n.untilToken ?? "punctuation", o.name), p.index + p[0].length) : e.length;
18829
18829
  }
18830
18830
  function u$(e, t, n, r, o) {
18831
18831
  const s = t.index, i = s + t[0].length;
18832
18832
  if (n.token) {
18833
- qo(e, r + s, r + i, n.token, o);
18833
+ Yo(e, r + s, r + i, n.token, o);
18834
18834
  return;
18835
18835
  }
18836
18836
  if (n.groups) {
@@ -18838,14 +18838,14 @@ function u$(e, t, n, r, o) {
18838
18838
  let l = s;
18839
18839
  for (let c = 0; c < n.groups.length; c++) {
18840
18840
  const u = a?.[c + 1];
18841
- u && (u[0] > l && qo(e, r + l, r + u[0], "text", o), qo(e, r + u[0], r + u[1], n.groups[c] ?? "text", o), l = u[1]);
18841
+ u && (u[0] > l && Yo(e, r + l, r + u[0], "text", o), Yo(e, r + u[0], r + u[1], n.groups[c] ?? "text", o), l = u[1]);
18842
18842
  }
18843
- l < i && qo(e, r + l, r + i, "text", o);
18843
+ l < i && Yo(e, r + l, r + i, "text", o);
18844
18844
  return;
18845
18845
  }
18846
- qo(e, r + s, r + i, "text", o);
18846
+ Yo(e, r + s, r + i, "text", o);
18847
18847
  }
18848
- function qo(e, t, n, r, o) {
18848
+ function Yo(e, t, n, r, o) {
18849
18849
  if (n <= t) return;
18850
18850
  const s = e[e.length - 1];
18851
18851
  if (s && s.end === t && s.type === r && s.lang === o) {
@@ -18890,7 +18890,7 @@ const p$ = xu(function({
18890
18890
  source: t,
18891
18891
  tokens: n
18892
18892
  }) {
18893
- return /* @__PURE__ */ T(at, { children: [
18893
+ return /* @__PURE__ */ T(lt, { children: [
18894
18894
  n.map((r, o) => /* @__PURE__ */ d("span", { "data-t": r.type, "data-l": r.lang, children: t.slice(r.start, r.end) }, o)),
18895
18895
  `
18896
18896
  `
@@ -18899,8 +18899,8 @@ const p$ = xu(function({
18899
18899
  count: t,
18900
18900
  from: n
18901
18901
  }) {
18902
- return /* @__PURE__ */ d(at, { children: Array.from({ length: t }, (r, o) => /* @__PURE__ */ d("span", { className: "block", children: n + o }, o)) });
18903
- }), Es = ht({
18902
+ return /* @__PURE__ */ d(lt, { children: Array.from({ length: t }, (r, o) => /* @__PURE__ */ d("span", { className: "block", children: n + o }, o)) });
18903
+ }), Ss = ht({
18904
18904
  slots: {
18905
18905
  /* min-w-0 + max-w-full is the fix for the defect this repo has already
18906
18906
  shipped once: a code block is the single most common thing that runs off
@@ -19098,7 +19098,7 @@ const LE = /* @__PURE__ */ y.forwardRef(function(t, n) {
19098
19098
  ...m
19099
19099
  } = t, g = Et(p || void 0), b = m$(), x = b?.value ?? [], w = b ? void 0 : o, v = (s || b?.disabled) ?? !1;
19100
19100
  process.env.NODE_ENV !== "production" && y.useEffect(() => {
19101
- b && p === void 0 && b.isValueInitialized && us("A `<Toggle>` component rendered in a `<ToggleGroup>` has no explicit `value` prop.", "This will cause issues between the Toggle Group and Toggle values.", "Provide the `<Toggle>` with a `value` prop matching the `<ToggleGroup>` values prop type.");
19101
+ b && p === void 0 && b.isValueInitialized && ds("A `<Toggle>` component rendered in a `<ToggleGroup>` has no explicit `value` prop.", "This will cause issues between the Toggle Group and Toggle values.", "Provide the `<Toggle>` with a `value` prop matching the `<ToggleGroup>` values prop type.");
19102
19102
  }, [b, p, b?.isValueInitialized]);
19103
19103
  const [C, E] = ln({
19104
19104
  controlled: b ? g !== void 0 && x.indexOf(g) > -1 : l,
@@ -19304,7 +19304,7 @@ function E$(e) {
19304
19304
  }, [p, i, C, w, E]);
19305
19305
  const N = ge((M, I, P) => o ? o(M, I, P, w) : P), k = ge((M) => {
19306
19306
  const I = M.key === Fc || M.key === Vc;
19307
- if (!ws.has(M.key) || !c && I || S$(M, f) || !b.current)
19307
+ if (!Cs.has(M.key) || !c && I || S$(M, f) || !b.current)
19308
19308
  return;
19309
19309
  const A = s === "rtl", D = A ? Dc : _c, _ = A ? _c : Dc, V = n === "vertical" ? Ac : D, z = n === "vertical" ? Oc : _, F = Ct(M.nativeEvent);
19310
19310
  if (F != null && zv(F) && !BE(F)) {
@@ -19854,7 +19854,7 @@ function YE({
19854
19854
  V,
19855
19855
  _
19856
19856
  ]
19857
- ), X = Es(), W = H ? c : l, j = W === void 0 ? void 0 : { maxHeight: `calc(${W} * 1lh + 2 * var(--code-pad-y))` };
19857
+ ), X = Ss(), W = H ? c : l, j = W === void 0 ? void 0 : { maxHeight: `calc(${W} * 1lh + 2 * var(--code-pad-y))` };
19858
19858
  return /* @__PURE__ */ d(PV, { value: K, children: /* @__PURE__ */ T(
19859
19859
  "div",
19860
19860
  {
@@ -19937,7 +19937,7 @@ function I$({
19937
19937
  tabLeaves: p,
19938
19938
  onTabLeavesChange: f
19939
19939
  }) {
19940
- const h = Es(), m = f$(e, n), g = Oe(() => e.split(`
19940
+ const h = Ss(), m = f$(e, n), g = Oe(() => e.split(`
19941
19941
  `).length, [e]), b = s !== void 0 && !i, x = b ? String(s + g - 1).length : 0, w = ye(p), v = (E) => {
19942
19942
  w.current = E, f(E);
19943
19943
  }, C = (E) => {
@@ -20029,7 +20029,7 @@ function M$({
20029
20029
  style: t,
20030
20030
  collapsed: n
20031
20031
  }) {
20032
- const r = Es(), o = Oe(() => yE(e), [e]);
20032
+ const r = Ss(), o = Oe(() => yE(e), [e]);
20033
20033
  return /* @__PURE__ */ d(
20034
20034
  "div",
20035
20035
  {
@@ -20066,15 +20066,15 @@ function M$({
20066
20066
  );
20067
20067
  }
20068
20068
  function XE({ children: e, className: t }) {
20069
- const n = Es();
20069
+ const n = Ss();
20070
20070
  return /* @__PURE__ */ d("div", { "data-code-toolbar": "", className: U(n.toolbar(), t), children: e });
20071
20071
  }
20072
20072
  function ZE({ className: e }) {
20073
- const { filename: t, language: n } = Ga("CodeEditorCaption"), r = Es();
20073
+ const { filename: t, language: n } = Ga("CodeEditorCaption"), r = Ss();
20074
20074
  return /* @__PURE__ */ d("span", { "data-code-caption": "", className: U(r.caption(), e), children: t ?? n ?? "code" });
20075
20075
  }
20076
20076
  function T$({ className: e }) {
20077
- const { copy: t, copied: n } = Ga("CodeEditorCopyButton"), r = Es();
20077
+ const { copy: t, copied: n } = Ga("CodeEditorCopyButton"), r = Ss();
20078
20078
  return /* @__PURE__ */ d(Kt, { content: n ? "Copied" : "Copy", children: /* @__PURE__ */ d(
20079
20079
  "button",
20080
20080
  {
@@ -20146,7 +20146,7 @@ function D$() {
20146
20146
  ] });
20147
20147
  }
20148
20148
  function _$({ tabLeaves: e }) {
20149
- const t = Es();
20149
+ const t = Ss();
20150
20150
  return /* @__PURE__ */ d("div", { className: t.footer(), children: /* @__PURE__ */ d("span", { "data-code-hint": "", "aria-live": "polite", className: t.hint(), children: e ? "Tab will move focus" : "Tab indents · Esc then Tab moves on" }) });
20151
20151
  }
20152
20152
  function rg({ code: e, language: t, filename: n, streaming: r, className: o }) {
@@ -21039,11 +21039,11 @@ function qa(e, t) {
21039
21039
  }
21040
21040
  return s.length < 2 || !vL.test(s[1].text) ? null : { start: s[0].start, end: s[s.length - 1].end, rows: s };
21041
21041
  }
21042
- function fs(e) {
21042
+ function ps(e) {
21043
21043
  let t = e.trim();
21044
21044
  return t.startsWith("|") && (t = t.slice(1)), t.endsWith("|") && (t = t.slice(0, -1)), t.split("|").map((n) => n.trim());
21045
21045
  }
21046
- function ns(e) {
21046
+ function rs(e) {
21047
21047
  return `| ${e.join(" | ")} |`;
21048
21048
  }
21049
21049
  function xS(e, t, n) {
@@ -21054,7 +21054,7 @@ function xS(e, t, n) {
21054
21054
  }
21055
21055
  function yL(e = 3, t = 2) {
21056
21056
  return (n, r) => {
21057
- const o = Wt(n, Zt(r).from), s = ns(Array.from({ length: e }, (f, h) => `Column ${h + 1}`)), i = ns(Array.from({ length: e }, () => "---")), a = Array.from({ length: t }, () => ns(Array.from({ length: e }, () => " "))).join(`
21057
+ const o = Wt(n, Zt(r).from), s = rs(Array.from({ length: e }, (f, h) => `Column ${h + 1}`)), i = rs(Array.from({ length: e }, () => "---")), a = Array.from({ length: t }, () => rs(Array.from({ length: e }, () => " "))).join(`
21058
21058
  `), l = `${s}
21059
21059
  ${i}
21060
21060
  ${a}`, c = n.slice(o.start, o.end).trim().length === 0, u = c ? l : `
@@ -21080,7 +21080,7 @@ function Ya(e) {
21080
21080
  }
21081
21081
  function Bp(e) {
21082
21082
  return Ya((t, n) => {
21083
- const r = fs(t.rows[0].text).length, o = ns(Array.from({ length: r }, () => " ")), s = t.rows.map((a) => a.text), i = Math.max(2, e ? n.row + 1 : n.row);
21083
+ const r = ps(t.rows[0].text).length, o = rs(Array.from({ length: r }, () => " ")), s = t.rows.map((a) => a.text), i = Math.max(2, e ? n.row + 1 : n.row);
21084
21084
  return s.splice(i, 0, o), { rows: s, select: t.start + s.slice(0, i).join(`
21085
21085
  `).length + 3 };
21086
21086
  });
@@ -21089,8 +21089,8 @@ function Hp(e) {
21089
21089
  return Ya((t, n) => {
21090
21090
  const r = e ? n.column + 1 : n.column;
21091
21091
  return { rows: t.rows.map((s, i) => {
21092
- const a = fs(s.text);
21093
- return a.splice(Math.min(r, a.length), 0, i === 1 ? "---" : i === 0 ? "Column" : " "), ns(a);
21092
+ const a = ps(s.text);
21093
+ return a.splice(Math.min(r, a.length), 0, i === 1 ? "---" : i === 0 ? "Column" : " "), rs(a);
21094
21094
  }) };
21095
21095
  });
21096
21096
  }
@@ -21098,10 +21098,10 @@ const vS = Ya((e, t) => {
21098
21098
  if (t.row < 2) return null;
21099
21099
  const n = e.rows.map((r) => r.text);
21100
21100
  return n.splice(t.row, 1), { rows: n };
21101
- }), yS = Ya((e, t) => fs(e.rows[0].text).length <= 1 ? null : {
21101
+ }), yS = Ya((e, t) => ps(e.rows[0].text).length <= 1 ? null : {
21102
21102
  rows: e.rows.map((n) => {
21103
- const r = fs(n.text);
21104
- return r.splice(t.column, 1), ns(r);
21103
+ const r = ps(n.text);
21104
+ return r.splice(t.column, 1), rs(r);
21105
21105
  })
21106
21106
  }), wS = (e, t) => {
21107
21107
  const n = qa(e, Zt(t).from);
@@ -21110,8 +21110,8 @@ const vS = Ya((e, t) => {
21110
21110
  function qs(e) {
21111
21111
  return Ya((t, n) => ({ rows: t.rows.map((o, s) => {
21112
21112
  if (s !== 1) return o.text;
21113
- const i = fs(o.text), a = i[n.column]?.replace(/:/g, "") || "---";
21114
- return i[n.column] = e === "left" ? `:${a}` : e === "right" ? `${a}:` : `:${a}:`, ns(i);
21113
+ const i = ps(o.text), a = i[n.column]?.replace(/:/g, "") || "---";
21114
+ return i[n.column] = e === "left" ? `:${a}` : e === "right" ? `${a}:` : `:${a}:`, rs(i);
21115
21115
  }) }));
21116
21116
  }
21117
21117
  function CS(e) {
@@ -21123,7 +21123,7 @@ function CS(e) {
21123
21123
  if (u === 1) continue;
21124
21124
  const p = o.rows[u];
21125
21125
  let f = p.start;
21126
- for (const h of fs(p.text)) {
21126
+ for (const h of ps(p.text)) {
21127
21127
  const m = t.indexOf(h, f), g = h.length ? m < 0 || m > p.end ? f : m : f;
21128
21128
  i.push({ start: g, end: g + h.length }), f = g + h.length + 1;
21129
21129
  }
@@ -22646,7 +22646,7 @@ function dz(e) {
22646
22646
  if (p.initialCursorPointRef.current = null, f && m && Math.abs(h.clientX - m.x) <= 1 && Math.abs(h.clientY - m.y) <= 1 || f && !Vh && h.button === 2)
22647
22647
  return;
22648
22648
  }
22649
- a.current && s.context.allowMouseUpTriggerRef.current && (!f || h.button === 2) && l.type === "regular-item" && es(a.current, h, {
22649
+ a.current && s.context.allowMouseUpTriggerRef.current && (!f || h.button === 2) && l.type === "regular-item" && ts(a.current, h, {
22650
22650
  detail: 1
22651
22651
  });
22652
22652
  }
@@ -22898,7 +22898,7 @@ const FS = /* @__PURE__ */ y.forwardRef(function(t, n) {
22898
22898
  stateAttributesMapping: Wu,
22899
22899
  props: [m, {
22900
22900
  onKeyDown(V) {
22901
- p && ws.has(V.key) && V.stopPropagation();
22901
+ p && Cs.has(V.key) && V.stopPropagation();
22902
22902
  }
22903
22903
  }, vi(h), a, {
22904
22904
  "data-rootownerid": C
@@ -23073,7 +23073,7 @@ const $S = /* @__PURE__ */ y.forwardRef(function(t, n) {
23073
23073
  value: te,
23074
23074
  children: [le && /* @__PURE__ */ d(xi, {
23075
23075
  ref: S.type === "context-menu" || S.type === "nested-context-menu" ? S.context.internalBackdropRef : null,
23076
- inert: ys(!M),
23076
+ inert: ws(!M),
23077
23077
  cutout: ae
23078
23078
  }), /* @__PURE__ */ d(Y1, {
23079
23079
  id: B,
@@ -23273,7 +23273,7 @@ const gz = {
23273
23273
  return e.parent.store.select("keyboardEventRelay");
23274
23274
  }
23275
23275
  };
23276
- class bz extends bs {
23276
+ class bz extends xs {
23277
23277
  constructor(t) {
23278
23278
  super({
23279
23279
  ...vz(),
@@ -23443,7 +23443,7 @@ const GS = cm(function(t) {
23443
23443
  re && Ce === Hs ? (Y.current = !1, K.start(300, () => {
23444
23444
  Y.current = !0;
23445
23445
  })) : (Y.current = !0, K.clear());
23446
- const Ie = (Ce === _r || Ce === Co) && Te.detail === 0, Ne = !re && (Ce === gs || Ce == null), Ye = {
23446
+ const Ie = (Ce === _r || Ce === Co) && Te.detail === 0, Ne = !re && (Ce === bs || Ce == null), Ye = {
23447
23447
  open: re,
23448
23448
  openChangeReason: Ce
23449
23449
  };
@@ -23960,7 +23960,7 @@ function Dz(e, t) {
23960
23960
  }
23961
23961
  if (t.kind === "table") {
23962
23962
  const r = qa(e, t.start);
23963
- return Az(e).filter((o) => o.start >= r.start && o.end <= r.end).filter((o) => !/^\s*\|?[\s:|-]+\|?\s*$/.test(o.text)).map((o) => fs(o.text).join(" — "));
23963
+ return Az(e).filter((o) => o.start >= r.start && o.end <= r.end).filter((o) => !/^\s*\|?[\s:|-]+\|?\s*$/.test(o.text)).map((o) => ps(o.text).join(" — "));
23964
23964
  }
23965
23965
  return t.kind === "rule" ? [""] : n.split(`
23966
23966
  `).map((r) => {
@@ -24247,7 +24247,7 @@ function Hz({
24247
24247
  run: n
24248
24248
  }) {
24249
24249
  const r = t.start, o = (s) => () => Vz(e.getProjection(), r, s);
24250
- return /* @__PURE__ */ T(at, { children: [
24250
+ return /* @__PURE__ */ T(lt, { children: [
24251
24251
  /* @__PURE__ */ d(
24252
24252
  "input",
24253
24253
  {
@@ -24311,7 +24311,7 @@ function Uz({ language: e, run: t }) {
24311
24311
  ] });
24312
24312
  }
24313
24313
  function jz({ run: e }) {
24314
- return /* @__PURE__ */ T(at, { children: [
24314
+ return /* @__PURE__ */ T(lt, { children: [
24315
24315
  /* @__PURE__ */ d(Rr, { icon: "align-left", label: "Align left", onClick: () => e(qs("left")) }),
24316
24316
  /* @__PURE__ */ d(Rr, { icon: "align-center", label: "Align centre", onClick: () => e(qs("center")) }),
24317
24317
  /* @__PURE__ */ d(Rr, { icon: "align-right", label: "Align right", onClick: () => e(qs("right")) }),
@@ -24776,7 +24776,7 @@ function n5({
24776
24776
  m ? /* @__PURE__ */ d("div", { className: "absolute inset-x-0 bottom-full z-20 mb-1", children: X }) : X,
24777
24777
  m && !n && /* @__PURE__ */ d(Ry, { surface: P, state: Y, run: G, container: V, external: !0 }),
24778
24778
  /* @__PURE__ */ T("div", { ref: z, className: "relative min-w-0 overflow-x-auto", children: [
24779
- !n && /* @__PURE__ */ T(at, { children: [
24779
+ !n && /* @__PURE__ */ T(lt, { children: [
24780
24780
  !m && /* @__PURE__ */ d(Ry, { surface: P, state: Y, run: G, container: V }),
24781
24781
  /* @__PURE__ */ d(Bz, { surface: P, state: Y, run: G, container: V }),
24782
24782
  /* @__PURE__ */ d(Gz, { surface: P, state: Y, run: G, container: V })
@@ -25333,7 +25333,7 @@ function h5({
25333
25333
  /* @__PURE__ */ d("span", { className: "flex-1", children: "This secret will be removed when you save." }),
25334
25334
  /* @__PURE__ */ d(st, { variant: "link", size: "xs", disabled: f, onClick: D, children: "Undo" })
25335
25335
  ] }) : I && /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
25336
- Cs,
25336
+ Es,
25337
25337
  {
25338
25338
  open: E,
25339
25339
  onOpenChange: S,
@@ -25428,15 +25428,15 @@ const $l = "base-ui-disable-scrollbar", si = {
25428
25428
  }
25429
25429
  };
25430
25430
  process.env.NODE_ENV !== "production" && (si.getElement.displayName = "styleDisableScrollbar.getElement");
25431
- const Ps = (e) => (t) => t ? {
25431
+ const Os = (e) => (t) => t ? {
25432
25432
  [e]: ""
25433
25433
  } : null, gd = {
25434
- hasOverflowX: Ps("data-has-overflow-x"),
25435
- hasOverflowY: Ps("data-has-overflow-y"),
25436
- overflowXStart: Ps("data-overflow-x-start"),
25437
- overflowXEnd: Ps("data-overflow-x-end"),
25438
- overflowYStart: Ps("data-overflow-y-start"),
25439
- overflowYEnd: Ps("data-overflow-y-end"),
25434
+ hasOverflowX: Os("data-has-overflow-x"),
25435
+ hasOverflowY: Os("data-has-overflow-y"),
25436
+ overflowXStart: Os("data-overflow-x-start"),
25437
+ overflowXEnd: Os("data-overflow-x-end"),
25438
+ overflowYStart: Os("data-overflow-y-start"),
25439
+ overflowYEnd: Os("data-overflow-y-end"),
25440
25440
  cornerHidden: () => null
25441
25441
  }, ok = /* @__PURE__ */ y.createContext(void 0);
25442
25442
  process.env.NODE_ENV !== "production" && (ok.displayName = "CSPContext");
@@ -26175,23 +26175,23 @@ function gk(e) {
26175
26175
  !a && E.current && _();
26176
26176
  const O = T5(B, I);
26177
26177
  if (f.current = O, a && u === "idle" && x.current && O === "css-animation") {
26178
- g.current = Os(B);
26178
+ g.current = As(B);
26179
26179
  return;
26180
26180
  }
26181
26181
  if (a && u === "starting") {
26182
26182
  const H = b.current;
26183
26183
  if (b.current = !1, O === "none") {
26184
- D(Os(B)), C(!0);
26184
+ D(As(B)), C(!0);
26185
26185
  return;
26186
26186
  }
26187
26187
  if (O === "css-transition") {
26188
26188
  const K = P5(B);
26189
- if (D(Os(B)), !H)
26189
+ if (D(As(B)), !H)
26190
26190
  return K;
26191
26191
  const X = zl(B, "transition-duration", "0s");
26192
26192
  return V(X), C(!0), K;
26193
26193
  }
26194
- D(Os(B));
26194
+ D(As(B));
26195
26195
  const G = zl(B, "animation-name", "none");
26196
26196
  if (!H) {
26197
26197
  G();
@@ -26206,7 +26206,7 @@ function gk(e) {
26206
26206
  D(_i, !1), l(!1);
26207
26207
  return;
26208
26208
  }
26209
- D(Os(B));
26209
+ D(As(B));
26210
26210
  return;
26211
26211
  }
26212
26212
  if (u !== "ending")
@@ -26215,7 +26215,7 @@ function gk(e) {
26215
26215
  l(!1);
26216
26216
  return;
26217
26217
  }
26218
- const L = Os(B);
26218
+ const L = As(B);
26219
26219
  if (!(L.height > 0 || L.width > 0)) {
26220
26220
  l(!1);
26221
26221
  return;
@@ -26271,7 +26271,7 @@ function gk(e) {
26271
26271
  width: P.width
26272
26272
  };
26273
26273
  }
26274
- function Os(e) {
26274
+ function As(e) {
26275
26275
  return {
26276
26276
  height: e.scrollHeight,
26277
26277
  width: e.scrollWidth
@@ -27132,7 +27132,7 @@ const B5 = "data-parent", Ek = /* @__PURE__ */ y.forwardRef(function(t, n) {
27132
27132
  return;
27133
27133
  Me.preventDefault();
27134
27134
  const Ve = re.current;
27135
- Ve && es(Ve, Me);
27135
+ Ve && ts(Ve, Me);
27136
27136
  }
27137
27137
  }, S, fe, he, $, (Me) => oe.getValidationProps(K, Me)],
27138
27138
  stateAttributesMapping: Ue
@@ -27278,7 +27278,7 @@ const kk = {
27278
27278
  return;
27279
27279
  J.preventDefault();
27280
27280
  const se = B.current;
27281
- se && es(se, J);
27281
+ se && ts(se, J);
27282
27282
  }
27283
27283
  }, ne = {
27284
27284
  ..._.getValidationProps(z),
@@ -27457,7 +27457,7 @@ const Ik = /* @__PURE__ */ y.forwardRef(function(t, n) {
27457
27457
  return;
27458
27458
  we.preventDefault();
27459
27459
  const oe = G.current;
27460
- oe && es(oe, we);
27460
+ oe && ts(oe, we);
27461
27461
  },
27462
27462
  onFocus(we) {
27463
27463
  we.defaultPrevented || F || B || !E || (G.current?.click(), R(!1));
@@ -28139,7 +28139,7 @@ const Nr = {
28139
28139
  expandedOrOutOfFocus: (e) => e.hovering || e.focused || !e.isWindowFocused,
28140
28140
  prevFocusElement: (e) => e.prevFocusElement
28141
28141
  };
28142
- class e3 extends bs {
28142
+ class e3 extends xs {
28143
28143
  timers = /* @__PURE__ */ new Map();
28144
28144
  areTimersPaused = !1;
28145
28145
  constructor(t) {
@@ -28774,7 +28774,7 @@ const o3 = {
28774
28774
  onPointerUp: p ? q : void 0,
28775
28775
  onPointerCancel: p ? q : void 0,
28776
28776
  onKeyDown: fe,
28777
- inert: ys(r.limited),
28777
+ inert: ws(r.limited),
28778
28778
  style: {
28779
28779
  ...pe(),
28780
28780
  "--toast-index": r.transitionStatus === "ending" ? Y : K,
@@ -29154,13 +29154,13 @@ function Kk(e, t, n) {
29154
29154
  return !1;
29155
29155
  return !0;
29156
29156
  }
29157
- const As = () => null, Ci = {
29158
- activeThumbIndex: As,
29159
- max: As,
29160
- min: As,
29161
- minStepsBetweenValues: As,
29162
- step: As,
29163
- values: As,
29157
+ const Ds = () => null, Ci = {
29158
+ activeThumbIndex: Ds,
29159
+ max: Ds,
29160
+ min: Ds,
29161
+ minStepsBetweenValues: Ds,
29162
+ step: Ds,
29163
+ values: Ds,
29164
29164
  ...Pn
29165
29165
  }, zg = /* @__PURE__ */ y.createContext(void 0);
29166
29166
  process.env.NODE_ENV !== "production" && (zg.displayName = "SliderRootContext");
@@ -29654,7 +29654,7 @@ const Qk = /* @__PURE__ */ y.forwardRef(function(t, n) {
29654
29654
  }), se = ge(() => {
29655
29655
  const le = Ze(V.current);
29656
29656
  le.removeEventListener("pointermove", te), le.removeEventListener("pointerup", q), le.removeEventListener("touchmove", te), le.removeEventListener("touchend", q), w.current = null, $.current = null;
29657
- }), fe = ls();
29657
+ }), fe = cs();
29658
29658
  return y.useEffect(() => {
29659
29659
  const le = V.current;
29660
29660
  if (!le)
@@ -29756,7 +29756,7 @@ function tN(e) {
29756
29756
  }) : null;
29757
29757
  }
29758
29758
  var Uy;
29759
- const x3 = /* @__PURE__ */ new Set([...ws, SC, kC]);
29759
+ const x3 = /* @__PURE__ */ new Set([...Cs, SC, kC]);
29760
29760
  function v3(e, t, n, r) {
29761
29761
  if (!(t < 0))
29762
29762
  return e.length === 2 ? `${fr(e[t], r, n)} ${t === 0 ? "start" : "end"} range` : n ? fr(e[t], r, n) : void 0;
@@ -29870,7 +29870,7 @@ const nN = /* @__PURE__ */ y.forwardRef(function(t, n) {
29870
29870
  };
29871
29871
  let xt;
29872
29872
  fe && (xt = pe ? "vertical-rl" : "vertical-lr");
29873
- const Xe = typeof p == "function" ? p(Te) : a, lt = fn({
29873
+ const Xe = typeof p == "function" ? p(Te) : a, at = fn({
29874
29874
  "aria-label": Xe,
29875
29875
  "aria-labelledby": l ?? (Xe == null ? _ : void 0),
29876
29876
  "aria-describedby": i,
@@ -29900,7 +29900,7 @@ const nN = /* @__PURE__ */ y.forwardRef(function(t, n) {
29900
29900
  onKeyDown(Fe) {
29901
29901
  if (Fe.defaultPrevented || !x3.has(Fe.key))
29902
29902
  return;
29903
- ws.has(Fe.key) && Fe.stopPropagation();
29903
+ Cs.has(Fe.key) && Fe.stopPropagation();
29904
29904
  let Rt = null, It = 0, qe = Fe.shiftKey ? V : Z;
29905
29905
  const vt = Zk(Ne, Z, B);
29906
29906
  switch (Fe.key) {
@@ -29963,7 +29963,7 @@ const nN = /* @__PURE__ */ y.forwardRef(function(t, n) {
29963
29963
  children: /* @__PURE__ */ T(y.Fragment, {
29964
29964
  children: [o, /* @__PURE__ */ d("input", {
29965
29965
  ref: ut,
29966
- ...lt,
29966
+ ...at,
29967
29967
  suppressHydrationWarning: !0
29968
29968
  }), D && Ie && K && (Uy || (Uy = /* @__PURE__ */ d(tN, {
29969
29969
  script: eN
@@ -30708,7 +30708,7 @@ function Ky({
30708
30708
  ),
30709
30709
  children: [
30710
30710
  /* @__PURE__ */ d(ce, { name: a.icon, size: "sm", className: "shrink-0" }),
30711
- !n && /* @__PURE__ */ T(at, { children: [
30711
+ !n && /* @__PURE__ */ T(lt, { children: [
30712
30712
  /* @__PURE__ */ d("span", { className: "min-w-0 flex-1 truncate", children: a.label }),
30713
30713
  a.badge
30714
30714
  ] })
@@ -31747,7 +31747,7 @@ function Zy(e, t) {
31747
31747
  function ra(e, t) {
31748
31748
  return e.year !== t.year ? e.year - t.year : e.month !== t.month ? e.month - t.month : e.day - t.day;
31749
31749
  }
31750
- function rs(e, t) {
31750
+ function os(e, t) {
31751
31751
  return ra(e, t) === 0;
31752
31752
  }
31753
31753
  function t4(e) {
@@ -32570,7 +32570,7 @@ function F4() {
32570
32570
  return Ma(e.disposeEffect), e;
32571
32571
  }
32572
32572
  const V4 = 60, $4 = 400, L4 = 8, z4 = 50, B4 = 3;
32573
- function _s(e) {
32573
+ function Fs(e) {
32574
32574
  return e === "touch" || e === "pen";
32575
32575
  }
32576
32576
  function H4(e) {
@@ -32627,16 +32627,16 @@ function H4(e) {
32627
32627
  b.current = N.pointerType, g.current = !1, p.current = !0, h.current = {
32628
32628
  x: N.clientX,
32629
32629
  y: N.clientY
32630
- }, _s(N.pointerType) ? u.start(z4, () => {
32630
+ }, Fs(N.pointerType) ? u.start(z4, () => {
32631
32631
  const R = f.current;
32632
32632
  f.current = 0, p.current && R < B4 ? (C(N.nativeEvent), g.current = !0) : (g.current = !1, v());
32633
32633
  }) : (N.preventDefault(), C(N.nativeEvent));
32634
32634
  },
32635
32635
  onPointerUp(N) {
32636
- _s(N.pointerType) && (p.current = !1);
32636
+ Fs(N.pointerType) && (p.current = !1);
32637
32637
  },
32638
32638
  onPointerMove(N) {
32639
- if (t || !_s(N.pointerType) || !p.current)
32639
+ if (t || !Fs(N.pointerType) || !p.current)
32640
32640
  return;
32641
32641
  f.current += 1;
32642
32642
  const {
@@ -32646,7 +32646,7 @@ function H4(e) {
32646
32646
  M ** 2 + I ** 2 > i ** 2 && v();
32647
32647
  },
32648
32648
  onMouseEnter(N) {
32649
- N.defaultPrevented || t || !p.current || m.current || _s(b.current) || C(N.nativeEvent);
32649
+ N.defaultPrevented || t || !p.current || m.current || Fs(b.current) || C(N.nativeEvent);
32650
32650
  },
32651
32651
  onMouseLeave() {
32652
32652
  m.current || v();
@@ -32654,7 +32654,7 @@ function H4(e) {
32654
32654
  onMouseUp() {
32655
32655
  m.current || v();
32656
32656
  }
32657
- }, S = ge((N) => N.defaultPrevented ? !0 : _s(b.current) ? g.current : N.detail !== 0);
32657
+ }, S = ge((N) => N.defaultPrevented ? !0 : Fs(b.current) ? g.current : N.detail !== 0);
32658
32658
  return {
32659
32659
  pointerHandlers: E,
32660
32660
  shouldSkipClick: S
@@ -32748,7 +32748,7 @@ function TN(e, t, n) {
32748
32748
  Y !== G && S(Y, $n(A, L.nativeEvent));
32749
32749
  },
32750
32750
  onPointerDown(L) {
32751
- L.defaultPrevented || k || L.button || P || (D(L.nativeEvent), E.current = null, _s(L.pointerType) || m.current?.focus(), _.onPointerDown(L));
32751
+ L.defaultPrevented || k || L.button || P || (D(L.nativeEvent), E.current = null, Fs(L.pointerType) || m.current?.focus(), _.onPointerDown(L));
32752
32752
  }
32753
32753
  }, {
32754
32754
  getButtonProps: F,
@@ -33452,46 +33452,46 @@ const VN = /* @__PURE__ */ y.forwardRef(function(t, n) {
33452
33452
  length: f
33453
33453
  }), io(q, J, ee, void 0, !Y, E);
33454
33454
  const Ne = ge((Xe) => {
33455
- const lt = Math.min(Math.max(Xe, 0), Math.max(Z.current.length - 1, 0)), ut = Z.current[lt];
33455
+ const at = Math.min(Math.max(Xe, 0), Math.max(Z.current.length - 1, 0)), ut = Z.current[at];
33456
33456
  ut?.focus(), ut?.select();
33457
- }), Ye = ge((Xe, lt) => {
33457
+ }), Ye = ge((Xe, at) => {
33458
33458
  ne.current = {
33459
33459
  index: Xe,
33460
- value: lt
33460
+ value: at
33461
33461
  };
33462
33462
  });
33463
33463
  function Ue() {
33464
33464
  let Xe = F.inputRef.current?.form ?? Z.current[0]?.form ?? null;
33465
33465
  if (p) {
33466
- const lt = Ze(j.current).getElementById(p);
33467
- lt?.tagName === "FORM" && (Xe = lt);
33466
+ const at = Ze(j.current).getElementById(p);
33467
+ at?.tagName === "FORM" && (Xe = at);
33468
33468
  }
33469
33469
  Xe && typeof Xe.requestSubmit == "function" && Xe.requestSubmit();
33470
33470
  }
33471
- function Le(Xe, lt) {
33472
- u?.(Xe, lt), h && Ue();
33471
+ function Le(Xe, at) {
33472
+ u?.(Xe, at), h && Ue();
33473
33473
  }
33474
33474
  tr(ee, () => {
33475
33475
  $(K), I(ee !== P.initialValue), F.change(ee);
33476
33476
  const Xe = ne.current;
33477
33477
  Xe != null && (ne.current = null, Xe.value === ee && Ne(Xe.index));
33478
- const lt = te.current;
33479
- lt != null && (te.current = null, lt.value === ee && Le(ee, lt.eventDetails));
33478
+ const at = te.current;
33479
+ at != null && (te.current = null, at.value === ee && Le(ee, at.eventDetails));
33480
33480
  });
33481
- const Me = ge((Xe, lt) => {
33482
- const ut = Jc(Xe, f, b, x), Fe = (lt.reason === nr || lt.reason === la) && ut.length === f && (ue.current.length !== f || lt.reason === la) ? $n(lt.reason, lt.event) : null;
33483
- return ut === ue.current ? (Fe != null && Le(ut, Fe), null) : (c?.(ut, lt), lt.isCanceled ? null : (W(ut), Fe != null ? te.current = {
33481
+ const Me = ge((Xe, at) => {
33482
+ const ut = Jc(Xe, f, b, x), Fe = (at.reason === nr || at.reason === la) && ut.length === f && (ue.current.length !== f || at.reason === la) ? $n(at.reason, at.event) : null;
33483
+ return ut === ue.current ? (Fe != null && Le(ut, Fe), null) : (c?.(ut, at), at.isCanceled ? null : (W(ut), Fe != null ? te.current = {
33484
33484
  value: ut,
33485
33485
  eventDetails: Fe
33486
33486
  } : ut.length !== f && (te.current = null), ut));
33487
- }), Ve = ge((Xe, lt) => {
33488
- S?.(Xe, lt);
33489
- }), We = ge((Xe, lt) => {
33487
+ }), Ve = ge((Xe, at) => {
33488
+ S?.(Xe, at);
33489
+ }), We = ge((Xe, at) => {
33490
33490
  if (Xe > ue.current.length) {
33491
33491
  Ne(Math.min(ue.current.length, f - 1));
33492
33492
  return;
33493
33493
  }
33494
- Ce(Xe), Te(!0), O(!0), lt.currentTarget.select();
33494
+ Ce(Xe), Te(!0), O(!0), at.currentTarget.select();
33495
33495
  }), tt = ge((Xe) => {
33496
33496
  Pe(j.current, Xe.relatedTarget) || (L(!0), Te(!1), O(!1), B === "onBlur" && F.commit(ue.current));
33497
33497
  }), Ke = y.useCallback((Xe) => {
@@ -33556,8 +33556,8 @@ const VN = /* @__PURE__ */ y.forwardRef(function(t, n) {
33556
33556
  onChange(Xe) {
33557
33557
  if (Xe.nativeEvent.defaultPrevented || Y || v)
33558
33558
  return;
33559
- const lt = Xe.currentTarget.value, [ut, Bt] = Qc(lt, f, b, x);
33560
- Bt && Ve(lt, $n(nr, Xe.nativeEvent));
33559
+ const at = Xe.currentTarget.value, [ut, Bt] = Qc(at, f, b, x);
33560
+ Bt && Ve(at, $n(nr, Xe.nativeEvent));
33561
33561
  const Fe = Me(ut, Se(nr, Xe.nativeEvent));
33562
33562
  Fe != null && Fe !== "" && Ye(Fe.length - 1, Fe);
33563
33563
  }
@@ -33868,11 +33868,11 @@ function ir(e, t, n) {
33868
33868
  function uB(e, t, n) {
33869
33869
  return !e || e.length === 0 ? !1 : e.some((r) => r === void 0 ? !1 : ir(t, r, n));
33870
33870
  }
33871
- function os(e, t, n) {
33871
+ function ss(e, t, n) {
33872
33872
  return !e || e.length === 0 ? -1 : e.findIndex((r) => r === void 0 ? !1 : ir(r, t, n));
33873
33873
  }
33874
33874
  function Vf(e, t, n, r) {
33875
- const o = r && Array.isArray(t) ? t[t.length - 1] : t, s = os(e, o, n);
33875
+ const o = r && Array.isArray(t) ? t[t.length - 1] : t, s = ss(e, o, n);
33876
33876
  return s === -1 ? null : s;
33877
33877
  }
33878
33878
  function BN(e, t, n) {
@@ -34106,9 +34106,9 @@ function hB(e) {
34106
34106
  default: Me ? r ?? Sn : r,
34107
34107
  name: "Combobox",
34108
34108
  state: "selectedValue"
34109
- }), Xe = y.useMemo(() => E === null ? () => !0 : E !== void 0 ? E : dB(se, I), [E, se, I]), lt = $t(() => We ? i ?? "" : Ve ? Xn($e, I) : "").current, [ut, Bt] = ln({
34109
+ }), Xe = y.useMemo(() => E === null ? () => !0 : E !== void 0 ? E : dB(se, I), [E, se, I]), at = $t(() => We ? i ?? "" : Ve ? Xn($e, I) : "").current, [ut, Bt] = ln({
34110
34110
  controlled: a,
34111
- default: lt,
34111
+ default: at,
34112
34112
  name: "Combobox",
34113
34113
  state: "inputValue"
34114
34114
  }), [Fe, Rt] = ln({
@@ -34241,7 +34241,7 @@ function hB(e) {
34241
34241
  io(yr ? pT : oe, J, cr, mT, !Ue, f);
34242
34242
  const wx = ge(() => {
34243
34243
  v ? he.current = tn.map((De) => Xn(De, I)) : nt.set("forceMounted", !0);
34244
- }), Rs = ge((De, ze, Ot) => {
34244
+ }), Is = ge((De, ze, Ot) => {
34245
34245
  if (ze === -1) {
34246
34246
  if (Te.current === $f)
34247
34247
  return;
@@ -34260,7 +34260,7 @@ function hB(e) {
34260
34260
  if (ze === void 0)
34261
34261
  return;
34262
34262
  const Ot = De.type || Mt;
34263
- ze === null ? Rs(void 0, -1, Ot) : Rs(Ne.current[ze], ze, Ot);
34263
+ ze === null ? Is(void 0, -1, Ot) : Is(Ne.current[ze], ze, Ot);
34264
34264
  }), Cr = ge((De, ze) => {
34265
34265
  if (re.current = ze.reason === _n, e.onInputValueChange?.(De, ze), !ze.isCanceled) {
34266
34266
  if (ze.reason === nr) {
@@ -34292,7 +34292,7 @@ function hB(e) {
34292
34292
  Bt(De);
34293
34293
  }
34294
34294
  }), Mi = ge((De, ze) => {
34295
- if (Fe !== De && (ze.reason === gs && tt && tn.length === 0 && !xe.current && ze.allowPropagation(), e.onOpenChange?.(De, ze), !ze.isCanceled && (De && yr && !On && le !== null && (pe(!1), ae(null), ut !== "" && ze.reason !== nr && Cr("", Se(_n, ze.event))), !De && fe && (Ve ? (On || ae(qe), qe === "" && pe(!1)) : Me && (On || ae(qe), yr && wr({
34295
+ if (Fe !== De && (ze.reason === bs && tt && tn.length === 0 && !xe.current && ze.allowPropagation(), e.onOpenChange?.(De, ze), !ze.isCanceled && (De && yr && !On && le !== null && (pe(!1), ae(null), ut !== "" && ze.reason !== nr && Cr("", Se(_n, ze.event))), !De && fe && (Ve ? (On || ae(qe), qe === "" && pe(!1)) : Me && (On || ae(qe), yr && wr({
34296
34296
  activeIndex: null
34297
34297
  }), (!yr || On) && Cr("", Se(_n, ze.event)))), Rt(De), !De && yr && (ze.reason === Jr || ze.reason === Pa) && (j(!0), Z(!1), ne === "onBlur")))) {
34298
34298
  const Ot = u === "none" ? ut : $e;
@@ -34384,19 +34384,19 @@ function hB(e) {
34384
34384
  nt.set("activeIndex", 0);
34385
34385
  return;
34386
34386
  }
34387
- Rs(void 0, -1, Mt);
34387
+ Is(void 0, -1, Mt);
34388
34388
  return;
34389
34389
  }
34390
34390
  if (At >= Ot.length) {
34391
- Rs(void 0, -1, Mt), nt.set("activeIndex", null);
34391
+ Is(void 0, -1, Mt), nt.set("activeIndex", null);
34392
34392
  return;
34393
34393
  }
34394
34394
  const nn = Ot[At], An = Te.current.value, zt = An !== GN && ir(nn, An, nt.state.isItemEqualToValue);
34395
- (Te.current.index !== At || !zt) && Rs(nn, At, Mt);
34395
+ (Te.current.index !== At || !zt) && Is(nn, At, Mt);
34396
34396
  }, [
34397
34397
  bx,
34398
34398
  et,
34399
- Rs,
34399
+ Is,
34400
34400
  Ke,
34401
34401
  tt,
34402
34402
  tn,
@@ -34422,7 +34422,7 @@ function hB(e) {
34422
34422
  return Array.isArray(De) && Array.isArray(ze) ? !wd(De, ze, (Ot, At) => ir(Ot, At, A)) : De !== ze;
34423
34423
  }
34424
34424
  tr(qe, () => {
34425
- !Fe || qe === "" || qe === String(lt) || pe(!0);
34425
+ !Fe || qe === "" || qe === String(at) || pe(!0);
34426
34426
  });
34427
34427
  function Cx() {
34428
34428
  const De = Xn($e, I);
@@ -34478,7 +34478,7 @@ function hB(e) {
34478
34478
  const ze = Ct(De);
34479
34479
  return !Pe(Ii, ze) && !Pe(Ce.current, ze) && !Pe(be.current, ze) && !Pe(dT, ze);
34480
34480
  }
34481
- }), Is = xm(pl, {
34481
+ }), Ms = xm(pl, {
34482
34482
  enabled: !g && !Ue,
34483
34483
  id: J,
34484
34484
  listRef: ie,
@@ -34502,17 +34502,17 @@ function hB(e) {
34502
34502
  activeIndex: De
34503
34503
  });
34504
34504
  }
34505
- }), Qd = y.useMemo(() => fn(Is.reference, {
34505
+ }), Qd = y.useMemo(() => fn(Ms.reference, {
34506
34506
  onKeyDown(De) {
34507
34507
  w && nt.state.activeIndex == null && (De.key === "ArrowLeft" || De.key === "ArrowRight") && De.preventBaseUIHandler();
34508
34508
  }
34509
- }, gl.reference, kx.reference, ml.reference), [Is.reference, gl.reference, kx.reference, ml.reference, w, nt]), Jd = y.useMemo(() => fn(gi, gl.floating), [gl.floating]), ef = y.useMemo(() => fn(Is.floating, ml.floating), [Is.floating, ml.floating]), tf = y.useMemo(() => {
34510
- const De = Is.item;
34509
+ }, gl.reference, kx.reference, ml.reference), [Ms.reference, gl.reference, kx.reference, ml.reference, w, nt]), Jd = y.useMemo(() => fn(gi, gl.floating), [gl.floating]), ef = y.useMemo(() => fn(Ms.floating, ml.floating), [Ms.floating, ml.floating]), tf = y.useMemo(() => {
34510
+ const De = Ms.item;
34511
34511
  return De ? {
34512
34512
  ...De,
34513
34513
  onFocus: void 0
34514
34514
  } : wt;
34515
- }, [Is.item]);
34515
+ }, [Ms.item]);
34516
34516
  LN(() => {
34517
34517
  nt.update({
34518
34518
  inline: _,
@@ -34865,7 +34865,7 @@ const fb = /* @__PURE__ */ y.forwardRef(function(t, n) {
34865
34865
  return;
34866
34866
  }
34867
34867
  if (!V && oe.key === "Escape") {
34868
- const be = I === "multiple" && Array.isArray(z) ? z.length === 0 : z === null, Ce = Se(gs, oe.nativeEvent), Ae = I === "multiple" ? [] : null;
34868
+ const be = I === "multiple" && Array.isArray(z) ? z.length === 0 : z === null, Ce = Se(bs, oe.nativeEvent), Ae = I === "multiple" ? [] : null;
34869
34869
  v.state.setInputValue("", Ce), v.state.setSelectedValue(Ae, Ce), !be && !v.state.inline && !Ce.isPropagationAllowed && oe.stopPropagation();
34870
34870
  return;
34871
34871
  }
@@ -35208,14 +35208,14 @@ const bb = /* @__PURE__ */ y.forwardRef(function(t, n) {
35208
35208
  return /* @__PURE__ */ T(cb.Provider, {
35209
35209
  value: F,
35210
35210
  children: [k && S && /* @__PURE__ */ d(xi, {
35211
- inert: ys(!N),
35211
+ inert: ws(!N),
35212
35212
  cutout: A ?? P ?? I
35213
35213
  }), L]
35214
35214
  });
35215
35215
  });
35216
35216
  process.env.NODE_ENV !== "production" && (bb.displayName = "ComboboxPositioner");
35217
35217
  const kB = {
35218
- ...vs,
35218
+ ...ys,
35219
35219
  ...xn
35220
35220
  }, xb = /* @__PURE__ */ y.forwardRef(function(t, n) {
35221
35221
  const {
@@ -35457,7 +35457,7 @@ function IB(e) {
35457
35457
  forwardedRef: n
35458
35458
  } = e, r = Cn(), o = me(r, ke.isItemEqualToValue), {
35459
35459
  flatFilteredItems: s
35460
- } = rl(), i = os(s, t.value ?? null, o);
35460
+ } = rl(), i = ss(s, t.value ?? null, o);
35461
35461
  return /* @__PURE__ */ d(sR, {
35462
35462
  componentProps: t,
35463
35463
  forwardedRef: n,
@@ -35638,7 +35638,7 @@ const dR = /* @__PURE__ */ y.forwardRef(function(t, n) {
35638
35638
  const N = c.state.activeIndex;
35639
35639
  if (N == null)
35640
35640
  return;
35641
- const k = os(c.state.valuesRef.current, S, m);
35641
+ const k = ss(c.state.valuesRef.current, S, m);
35642
35642
  k !== -1 && N === k && c.state.setIndices({
35643
35643
  activeIndex: null,
35644
35644
  type: c.state.keyboardActiveRef.current ? Dr : Iu
@@ -36073,7 +36073,7 @@ function AB(e) {
36073
36073
  } = Yn(G), {
36074
36074
  openMethod: he,
36075
36075
  triggerProps: we
36076
- } = Sm(G), oe = $t(() => new bs({
36076
+ } = Sm(G), oe = $t(() => new xs({
36077
36077
  id: B,
36078
36078
  labelId: void 0,
36079
36079
  modal: m,
@@ -36110,7 +36110,7 @@ function AB(e) {
36110
36110
  const qt = Array.isArray($) ? $ : [];
36111
36111
  Ht = qt.length === 0, vt = qt[qt.length - 1];
36112
36112
  }
36113
- const en = Ht ? -1 : os(te.current, vt, S), vn = en === -1 ? null : en;
36113
+ const en = Ht ? -1 : ss(te.current, vt, S), vn = en === -1 ? null : en;
36114
36114
  vn === null && (se.current = null), !G && oe.set("selectedIndex", vn);
36115
36115
  }, [v, G, $, S, oe]);
36116
36116
  function Ue(qe) {
@@ -36182,10 +36182,10 @@ function AB(e) {
36182
36182
  onTyping(qe) {
36183
36183
  q.current = qe;
36184
36184
  }
36185
- }), Xe = y.useMemo(() => fn(xt.reference, $e.reference, et.reference, Ke.reference, we), [Ke.reference, xt.reference, $e.reference, et.reference, we]), lt = y.useMemo(() => fn(gi, xt.floating, $e.floating, et.floating), [xt.floating, $e.floating, et.floating]), ut = $e.item ?? wt;
36185
+ }), Xe = y.useMemo(() => fn(xt.reference, $e.reference, et.reference, Ke.reference, we), [Ke.reference, xt.reference, $e.reference, et.reference, we]), at = y.useMemo(() => fn(gi, xt.floating, $e.floating, et.floating), [xt.floating, $e.floating, et.floating]), ut = $e.item ?? wt;
36186
36186
  LN(() => {
36187
36187
  oe.update({
36188
- popupProps: lt,
36188
+ popupProps: at,
36189
36189
  triggerProps: Xe
36190
36190
  });
36191
36191
  }), oe.useSyncedValues({
@@ -36196,7 +36196,7 @@ function AB(e) {
36196
36196
  open: G,
36197
36197
  mounted: le,
36198
36198
  transitionStatus: ie,
36199
- popupProps: lt,
36199
+ popupProps: at,
36200
36200
  triggerProps: Xe,
36201
36201
  items: w,
36202
36202
  itemToStringLabel: C,
@@ -36548,12 +36548,12 @@ const CR = {
36548
36548
  if (J.current = pe.size, pe.size === le)
36549
36549
  return;
36550
36550
  const ae = Se(Mt);
36551
- if (le !== 0 && !C.state.multiple && z !== null && os(R.current, z, L) === -1) {
36552
- const he = M.current, oe = he != null && os(R.current, he, L) !== -1 ? he : null;
36551
+ if (le !== 0 && !C.state.multiple && z !== null && ss(R.current, z, L) === -1) {
36552
+ const he = M.current, oe = he != null && ss(R.current, he, L) !== -1 ? he : null;
36553
36553
  P(oe, ae), oe === null && (C.set("selectedIndex", null), k.current = null);
36554
36554
  }
36555
36555
  if (le !== 0 && C.state.multiple && Array.isArray(z)) {
36556
- const ie = z.filter((he) => os(R.current, he, L) !== -1);
36556
+ const ie = z.filter((he) => ss(R.current, he, L) !== -1);
36557
36557
  ie.length !== z.length && (P(ie, ae), ie.length === 0 && (C.set("selectedIndex", null), k.current = null));
36558
36558
  }
36559
36559
  if (D && X) {
@@ -36581,7 +36581,7 @@ const CR = {
36581
36581
  children: /* @__PURE__ */ T(Sb.Provider, {
36582
36582
  value: fe,
36583
36583
  children: [_ && V && /* @__PURE__ */ d(xi, {
36584
- inert: ys(!D),
36584
+ inert: ws(!D),
36585
36585
  cutout: O
36586
36586
  }), q]
36587
36587
  })
@@ -36589,7 +36589,7 @@ const CR = {
36589
36589
  });
36590
36590
  process.env.NODE_ENV !== "production" && (ER.displayName = "SelectPositioner");
36591
36591
  const $B = {
36592
- ...vs,
36592
+ ...ys,
36593
36593
  ...xn
36594
36594
  }, SR = /* @__PURE__ */ y.forwardRef(function(t, n) {
36595
36595
  const {
@@ -36621,7 +36621,7 @@ const $B = {
36621
36621
  } = wR(), M = Vo(!0) != null, I = lr(), {
36622
36622
  nonce: P,
36623
36623
  disableStyleElements: A
36624
- } = kg(), D = me(l, it.id), _ = me(l, it.open), V = me(l, it.openMethod), z = me(l, it.mounted), F = me(l, it.popupProps), B = me(l, it.transitionStatus), O = me(l, it.triggerElement), L = me(l, it.positionerElement), $ = me(l, it.listElement), H = y.useRef(!1), G = y.useRef(!1), Y = y.useRef({}), K = ls(), X = ge((ne) => {
36624
+ } = kg(), D = me(l, it.id), _ = me(l, it.open), V = me(l, it.openMethod), z = me(l, it.mounted), F = me(l, it.popupProps), B = me(l, it.transitionStatus), O = me(l, it.triggerElement), L = me(l, it.positionerElement), $ = me(l, it.listElement), H = y.useRef(!1), G = y.useRef(!1), Y = y.useRef({}), K = cs(), X = ge((ne) => {
36625
36625
  if (!L || !c.current || !G.current)
36626
36626
  return;
36627
36627
  const te = L.style.top === "0px", q = L.style.bottom === "0px";
@@ -36705,8 +36705,8 @@ const $B = {
36705
36705
  L.style.left = `${Vt(Le, Ce, et - he.width)}px`, L.style.height = `${We}px`, L.style.maxHeight = "none", L.style.marginTop = `${xe}px`, L.style.marginBottom = `${Q}px`, ne.style.height = "100%";
36706
36706
  const $e = jl(oe), xt = Ke >= $e - Ur;
36707
36707
  xt && (We = Math.min(Ie, he.height) - (Ke - $e));
36708
- const Xe = ie.top < Te || ie.bottom > Ie - Te || Math.ceil(We) + Ur < Math.min(ee, re), lt = (se.visualViewport?.scale ?? 1) !== 1 && ar;
36709
- if (Xe || lt) {
36708
+ const Xe = ie.top < Te || ie.bottom > Ie - Te || Math.ceil(We) + Ur < Math.min(ee, re), at = (se.visualViewport?.scale ?? 1) !== 1 && ar;
36709
+ if (Xe || at) {
36710
36710
  eu(L, Y.current), R(!1);
36711
36711
  return;
36712
36712
  }
@@ -36743,7 +36743,7 @@ const $B = {
36743
36743
  id: `${D}-list`
36744
36744
  },
36745
36745
  onKeyDown(ne) {
36746
- M && ws.has(ne.key) && ne.stopPropagation();
36746
+ M && Cs.has(ne.key) && ne.stopPropagation();
36747
36747
  },
36748
36748
  onScroll(ne) {
36749
36749
  $ || X(ne.currentTarget);
@@ -37324,7 +37324,7 @@ function qB({
37324
37324
  ]
37325
37325
  }
37326
37326
  );
37327
- return f ? /* @__PURE__ */ d("div", { children: m }, u.value) : /* @__PURE__ */ d(Vs, { children: m }, u.value);
37327
+ return f ? /* @__PURE__ */ d("div", { children: m }, u.value) : /* @__PURE__ */ d(Ko, { children: m }, u.value);
37328
37328
  }) })
37329
37329
  }
37330
37330
  );
@@ -37463,7 +37463,7 @@ function Aq({
37463
37463
  props: {
37464
37464
  className: U(b.root(), f),
37465
37465
  ...g,
37466
- children: /* @__PURE__ */ T(at, { children: [
37466
+ children: /* @__PURE__ */ T(lt, { children: [
37467
37467
  x && /* @__PURE__ */ T("div", { className: b.top(), children: [
37468
37468
  s,
37469
37469
  /* @__PURE__ */ T("div", { className: U("flex flex-1 flex-col gap-0.5", i ? void 0 : "min-w-0"), children: [
@@ -37890,7 +37890,7 @@ const ZB = {
37890
37890
  id: m,
37891
37891
  role: "tabpanel",
37892
37892
  tabIndex: x ? 0 : -1,
37893
- inert: ys(!x),
37893
+ inert: ws(!x),
37894
37894
  // Computed key: a plain literal key fails the DOM-props excess property check.
37895
37895
  "data-index": b
37896
37896
  }, l],
@@ -38824,7 +38824,7 @@ function zq({
38824
38824
  b ? "flex-col gap-1" : "relative flex-row items-center gap-3 overflow-x-auto"
38825
38825
  ),
38826
38826
  children: t.map((x, w) => {
38827
- const v = iH(t, n, w), C = cH[v], E = r !== void 0 && w < n, S = /* @__PURE__ */ T(at, { children: [
38827
+ const v = iH(t, n, w), C = cH[v], E = r !== void 0 && w < n, S = /* @__PURE__ */ T(lt, { children: [
38828
38828
  /* @__PURE__ */ d(
38829
38829
  "span",
38830
38830
  {
@@ -42727,7 +42727,7 @@ function SI(e) {
42727
42727
  if (!t) throw new Error(`<${e}> must be rendered inside a <DragDropItem>.`);
42728
42728
  return t;
42729
42729
  }
42730
- const Ss = ht({
42730
+ const ks = ht({
42731
42731
  slots: {
42732
42732
  /* No layout of its own. A board is a grid, a row, a single column or a
42733
42733
  page-wide splitter, and every one of those belongs to the consumer —
@@ -43091,7 +43091,7 @@ function Bb({
43091
43091
  children: o,
43092
43092
  ...s
43093
43093
  }) {
43094
- const i = U6(s), a = oU(s.onDragEnd !== void 0), l = _t(), c = Ss(), { threshold: u, maxSpeed: p, reducedMaxSpeed: f } = t ?? {}, h = Oe(
43094
+ const i = U6(s), a = oU(s.onDragEnd !== void 0), l = _t(), c = ks(), { threshold: u, maxSpeed: p, reducedMaxSpeed: f } = t ?? {}, h = Oe(
43095
43095
  () => ({ threshold: u, maxSpeed: p, reducedMaxSpeed: f }),
43096
43096
  [u, p, f]
43097
43097
  );
@@ -43130,7 +43130,7 @@ function Hb({
43130
43130
  className: r,
43131
43131
  children: o
43132
43132
  }) {
43133
- const { session: s, registerLabel: i } = Vd("DragDropContainer"), { setContainerRef: a, isOver: l } = G6(s, { id: e, axis: n }), c = Fd(s), u = Ss({ axis: n });
43133
+ const { session: s, registerLabel: i } = Vd("DragDropContainer"), { setContainerRef: a, isOver: l } = G6(s, { id: e, axis: n }), c = Fd(s), u = ks({ axis: n });
43134
43134
  _e(
43135
43135
  () => i("container", e, t),
43136
43136
  [i, e, t]
@@ -43164,13 +43164,13 @@ function Ub({
43164
43164
  axis: u
43165
43165
  }), m = Fd(s);
43166
43166
  _e(() => a("item", e, n), [a, e, n]), _e(() => l.item(e, c, t), [l, e, c, t]);
43167
- const g = m.phase === "dragging" && m.id === e, b = Ss({ axis: u, moving: p !== null }), x = m.from && m.from.container === c && m.from.index < t ? t - 1 : t, w = !g && p?.markerAt === x, v = !g && p !== null && p.markerAt === p.restCount && x === p.restCount - 1, C = p && /* @__PURE__ */ d(TI, { shift: p, at: w ? x : p.restCount - 1 });
43167
+ const g = m.phase === "dragging" && m.id === e, b = ks({ axis: u, moving: p !== null }), x = m.from && m.from.container === c && m.from.index < t ? t - 1 : t, w = !g && p?.markerAt === x, v = !g && p !== null && p.markerAt === p.restCount && x === p.restCount - 1, C = p && /* @__PURE__ */ d(TI, { shift: p, at: w ? x : p.restCount - 1 });
43168
43168
  return (
43169
43169
  /* A FRAGMENT, so the marker is a DIRECT CHILD of the container. Wrapping the
43170
43170
  pair in a div would make the row the container's child and the marker the
43171
43171
  row's, which puts the insertion point inside the box it is meant to sit
43172
43172
  between — and gives the flex column one box where it needs two. */
43173
- /* @__PURE__ */ T(at, { children: [
43173
+ /* @__PURE__ */ T(lt, { children: [
43174
43174
  w && C,
43175
43175
  /* @__PURE__ */ d(
43176
43176
  "div",
@@ -43219,7 +43219,7 @@ function sU({
43219
43219
  layout: n,
43220
43220
  children: r
43221
43221
  }) {
43222
- const o = t.mode ?? "pointer", s = Ss({ mode: o }), i = tU(t), a = i ? null : nU(n, t), l = i ? { left: i.x, top: i.y, width: n?.items.find((c) => c.id === e)?.rect.width } : a && { left: a.left, top: a.top, width: a.width };
43222
+ const o = t.mode ?? "pointer", s = ks({ mode: o }), i = tU(t), a = i ? null : nU(n, t), l = i ? { left: i.x, top: i.y, width: n?.items.find((c) => c.id === e)?.rect.width } : a && { left: a.left, top: a.top, width: a.width };
43223
43223
  return l ? OT(
43224
43224
  /* @__PURE__ */ d(
43225
43225
  "div",
@@ -43238,7 +43238,7 @@ const iU = 'a[href], button:not([disabled]), input:not([disabled]), select:not([
43238
43238
  function II({ label: e, className: t, children: n }) {
43239
43239
  const { instructionsId: r, census: o } = Vd("DragDropSurface"), { axis: s } = $d("DragDropSurface"), { id: i, setHandleRef: a, label: l } = SI("DragDropSurface"), c = EI();
43240
43240
  _e(() => c ? void 0 : o.source(i), [o, i, c]);
43241
- const u = Ss({ axis: s }), [p, f] = de(null), [h, m] = de(!1), g = Re(
43241
+ const u = ks({ axis: s }), [p, f] = de(null), [h, m] = de(!1), g = Re(
43242
43242
  (b) => {
43243
43243
  f(b), a(b);
43244
43244
  },
@@ -43276,7 +43276,7 @@ function II({ label: e, className: t, children: n }) {
43276
43276
  function MI({ label: e, className: t, children: n }) {
43277
43277
  const { instructionsId: r, census: o } = Vd("DragDropHandle"), { axis: s } = $d("DragDropHandle"), { id: i, setHandleRef: a, label: l } = SI("DragDropHandle"), c = EI();
43278
43278
  _e(() => c ? void 0 : o.source(i), [o, i, c]);
43279
- const u = Ss({ axis: s }), p = n ?? /* @__PURE__ */ d(ce, { name: "grip-vertical", size: "sm" });
43279
+ const u = ks({ axis: s }), p = n ?? /* @__PURE__ */ d(ce, { name: "grip-vertical", size: "sm" });
43280
43280
  return c ? /* @__PURE__ */ d("span", { "aria-hidden": "true", className: U(u.handle(), t), children: p }) : /* @__PURE__ */ d(
43281
43281
  "span",
43282
43282
  {
@@ -43295,7 +43295,7 @@ function TI({
43295
43295
  shift: e,
43296
43296
  at: t
43297
43297
  }) {
43298
- const n = Ss({ axis: e.axis });
43298
+ const n = ks({ axis: e.axis });
43299
43299
  return /* @__PURE__ */ d(
43300
43300
  "div",
43301
43301
  {
@@ -44133,7 +44133,7 @@ function yU({
44133
44133
  children: n
44134
44134
  }) {
44135
44135
  const { shift: r } = $d("BoardColumn");
44136
- return e ? r && r.markerAt !== null ? null : /* @__PURE__ */ d(at, { children: t }) : /* @__PURE__ */ d(at, { children: n });
44136
+ return e ? r && r.markerAt !== null ? null : /* @__PURE__ */ d(lt, { children: t }) : /* @__PURE__ */ d(lt, { children: n });
44137
44137
  }
44138
44138
  function wU({
44139
44139
  count: e,
@@ -44385,7 +44385,7 @@ function zI({
44385
44385
  className: "absolute inset-0 z-1 cursor-pointer rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-focus-ring"
44386
44386
  }
44387
44387
  ),
44388
- p ? /* @__PURE__ */ T(at, { children: [
44388
+ p ? /* @__PURE__ */ T(lt, { children: [
44389
44389
  /* @__PURE__ */ d("div", { className: "absolute inset-0 grid place-items-center bg-surface-inset", children: /* @__PURE__ */ d(
44390
44390
  Iw,
44391
44391
  {
@@ -44399,7 +44399,7 @@ function zI({
44399
44399
  m !== "" && /* @__PURE__ */ d("span", { className: U("truncate text-2xs", h ? "text-danger" : "text-white/70"), children: m })
44400
44400
  ] }),
44401
44401
  g
44402
- ] }) : /* @__PURE__ */ T(at, { children: [
44402
+ ] }) : /* @__PURE__ */ T(lt, { children: [
44403
44403
  /* @__PURE__ */ d("div", { className: "relative grid size-9 shrink-0 place-items-center overflow-hidden rounded-md bg-surface-inset", children: /* @__PURE__ */ d(Iw, { file: e, iconSize: "sm", className: "size-full object-cover" }) }),
44404
44404
  /* @__PURE__ */ T("div", { className: "flex min-w-0 flex-1 flex-col", children: [
44405
44405
  /* @__PURE__ */ d("span", { className: "truncate text-sm font-medium text-primary", children: e.name }),
@@ -44455,7 +44455,7 @@ function PU({
44455
44455
  }) {
44456
44456
  const o = e ? Kb(e) && !!e.url : !1, s = e ? qb(e) && !!e.url : !1, i = e && r ? r(e) : null;
44457
44457
  return /* @__PURE__ */ d(
44458
- ds,
44458
+ fs,
44459
44459
  {
44460
44460
  open: e !== null,
44461
44461
  onOpenChange: t,
@@ -44624,7 +44624,7 @@ function OU({
44624
44624
  }
44625
44625
  ),
44626
44626
  /* @__PURE__ */ T("div", { className: "@container flex items-center gap-1", children: [
44627
- o && /* @__PURE__ */ T(at, { children: [
44627
+ o && /* @__PURE__ */ T(lt, { children: [
44628
44628
  /* @__PURE__ */ d(
44629
44629
  "input",
44630
44630
  {
@@ -44833,7 +44833,7 @@ function vo(e, t, n, r = "compatible") {
44833
44833
  }
44834
44834
  return a + s * ai + i * AU;
44835
44835
  }
44836
- function ps(e) {
44836
+ function hs(e) {
44837
44837
  const t = typeof e == "number" ? e : e instanceof Date ? e.getTime() : Date.parse(e);
44838
44838
  if (Number.isNaN(t)) return "unknown";
44839
44839
  const n = Math.max(0, Math.round((Date.now() - t) / 1e3));
@@ -45126,7 +45126,7 @@ function UU({ text: e, label: t, streaming: n }) {
45126
45126
  className: "my-1.5",
45127
45127
  chevron: !1,
45128
45128
  triggerClassName: "gap-1.5 px-1.5 py-1 text-2xs text-tertiary hover:text-secondary focus-visible:ring-2 focus-visible:ring-focus-ring",
45129
- trigger: /* @__PURE__ */ T(at, { children: [
45129
+ trigger: /* @__PURE__ */ T(lt, { children: [
45130
45130
  /* @__PURE__ */ d(ce, { name: "brain", size: "xs" }),
45131
45131
  n ? /* @__PURE__ */ d(UI, { children: t ?? "Thinking…" }) : /* @__PURE__ */ d("span", { children: t ?? "Thought about it" }),
45132
45132
  /* @__PURE__ */ d(
@@ -45171,15 +45171,15 @@ function jU({
45171
45171
  }) {
45172
45172
  switch (e.type) {
45173
45173
  case "text":
45174
- return n?.text ? /* @__PURE__ */ d(at, { children: n.text(e, t) }) : /* @__PURE__ */ d($U, { children: e.text });
45174
+ return n?.text ? /* @__PURE__ */ d(lt, { children: n.text(e, t) }) : /* @__PURE__ */ d($U, { children: e.text });
45175
45175
  case "code":
45176
- return n?.code ? /* @__PURE__ */ d(at, { children: n.code(e, t) }) : /* @__PURE__ */ d(rg, { code: e.code, language: e.language, filename: e.filename });
45176
+ return n?.code ? /* @__PURE__ */ d(lt, { children: n.code(e, t) }) : /* @__PURE__ */ d(rg, { code: e.code, language: e.language, filename: e.filename });
45177
45177
  case "reasoning":
45178
- return n?.reasoning ? /* @__PURE__ */ d(at, { children: n.reasoning(e, t) }) : /* @__PURE__ */ d(UU, { text: e.text, label: e.label, streaming: e.streaming });
45178
+ return n?.reasoning ? /* @__PURE__ */ d(lt, { children: n.reasoning(e, t) }) : /* @__PURE__ */ d(UU, { text: e.text, label: e.label, streaming: e.streaming });
45179
45179
  case "tool":
45180
- return n?.tool ? /* @__PURE__ */ d(at, { children: n.tool(e, t) }) : /* @__PURE__ */ d(HU, { part: e });
45180
+ return n?.tool ? /* @__PURE__ */ d(lt, { children: n.tool(e, t) }) : /* @__PURE__ */ d(HU, { part: e });
45181
45181
  case "file":
45182
- return n?.file ? /* @__PURE__ */ d(at, { children: n.file(e, t) }) : /* @__PURE__ */ d("div", { className: "my-1.5", children: /* @__PURE__ */ d(
45182
+ return n?.file ? /* @__PURE__ */ d(lt, { children: n.file(e, t) }) : /* @__PURE__ */ d("div", { className: "my-1.5", children: /* @__PURE__ */ d(
45183
45183
  zI,
45184
45184
  {
45185
45185
  file: e.file,
@@ -45190,7 +45190,7 @@ function jU({
45190
45190
  ) });
45191
45191
  case "component": {
45192
45192
  const i = r?.[e.component];
45193
- return i ? /* @__PURE__ */ d(at, { children: i(e.props ?? {}, t) }) : /* @__PURE__ */ d(
45193
+ return i ? /* @__PURE__ */ d(lt, { children: i(e.props ?? {}, t) }) : /* @__PURE__ */ d(
45194
45194
  Pw,
45195
45195
  {
45196
45196
  reason: "No component is registered under the name",
@@ -45220,7 +45220,7 @@ function GU({
45220
45220
  message: e,
45221
45221
  streaming: e.streaming ?? !1,
45222
45222
  app: r
45223
- }, x = /* @__PURE__ */ T(at, { children: [
45223
+ }, x = /* @__PURE__ */ T(lt, { children: [
45224
45224
  e.attachments && e.attachments.length > 0 && /* @__PURE__ */ d(
45225
45225
  BI,
45226
45226
  {
@@ -45334,7 +45334,7 @@ function GU({
45334
45334
  {
45335
45335
  dateTime: new Date(e.createdAt).toISOString(),
45336
45336
  className: "shrink-0 rounded-full bg-surface-raised px-1.5 py-0.5 text-2xs text-tertiary",
45337
- children: ps(e.createdAt)
45337
+ children: hs(e.createdAt)
45338
45338
  }
45339
45339
  ),
45340
45340
  v && /* @__PURE__ */ d(
@@ -45532,7 +45532,7 @@ function KU({
45532
45532
  },
45533
45533
  b.id
45534
45534
  )) }),
45535
- m.length > 0 && /* @__PURE__ */ d(at, { children: p ? /* @__PURE__ */ d(ya, { label: "More models", children: m.map((b) => /* @__PURE__ */ d(
45535
+ m.length > 0 && /* @__PURE__ */ d(lt, { children: p ? /* @__PURE__ */ d(ya, { label: "More models", children: m.map((b) => /* @__PURE__ */ d(
45536
45536
  Aw,
45537
45537
  {
45538
45538
  model: b,
@@ -45553,7 +45553,7 @@ function KU({
45553
45553
  ]
45554
45554
  }
45555
45555
  ) }),
45556
- r && r.length > 0 && /* @__PURE__ */ T(at, { children: [
45556
+ r && r.length > 0 && /* @__PURE__ */ T(lt, { children: [
45557
45557
  /* @__PURE__ */ d(qS, {}),
45558
45558
  r.map((b) => /* @__PURE__ */ T(
45559
45559
  Xr,
@@ -45749,7 +45749,7 @@ function XU({
45749
45749
  if (!P.url) return;
45750
45750
  const A = document.createElement("a");
45751
45751
  A.href = P.url, A.download = P.name, A.click();
45752
- }, M = /* @__PURE__ */ T(at, { children: [
45752
+ }, M = /* @__PURE__ */ T(lt, { children: [
45753
45753
  l && c !== void 0 && u && /* @__PURE__ */ d(
45754
45754
  KU,
45755
45755
  {
@@ -46318,7 +46318,7 @@ function mj(e) {
46318
46318
  function gj(e, t) {
46319
46319
  const { month: n, weekStartsOn: r, onMonthChange: o } = t, [s, i] = de(e), [a, l] = de(!1), c = ye(s), u = Re(
46320
46320
  (f) => {
46321
- rs(c.current, f) || (c.current = f, i(f), (f.year !== n.year || f.month !== n.month) && o?.(f));
46321
+ os(c.current, f) || (c.current = f, i(f), (f.year !== n.year || f.month !== n.month) && o?.(f));
46322
46322
  },
46323
46323
  [n.year, n.month, o]
46324
46324
  ), p = Re(
@@ -46351,7 +46351,7 @@ function gj(e, t) {
46351
46351
  }
46352
46352
  function bj(e, t, n, r) {
46353
46353
  const o = (i) => i.year === t.year && i.month === t.month;
46354
- return r && e.some((i) => rs(i, r)) ? r : n && o(n) ? n : e.find(o) ?? e[0];
46354
+ return r && e.some((i) => os(i, r)) ? r : n && o(n) ? n : e.find(o) ?? e[0];
46355
46355
  }
46356
46356
  function xj(e, t) {
46357
46357
  return e.year === t.year && e.month === t.month;
@@ -46500,7 +46500,7 @@ function gY({
46500
46500
  Vn(N)
46501
46501
  )) }) }),
46502
46502
  /* @__PURE__ */ d("tbody", { children: E.map((N) => /* @__PURE__ */ d("tr", { children: N.days.map((k, R) => {
46503
- const M = Vn(k), I = xj(k, e), P = o ? rs(k, o) : !1, A = s ? rs(k, s) : !1, D = rs(k, w.focusedDay), _ = N.placed.filter((F) => F.startColumn === R), V = N.hiddenByColumn[R], z = N.placed.filter((F) => F.startColumn <= R && F.endColumn >= R).length + V.length;
46503
+ const M = Vn(k), I = xj(k, e), P = o ? os(k, o) : !1, A = s ? os(k, s) : !1, D = os(k, w.focusedDay), _ = N.placed.filter((F) => F.startColumn === R), V = N.hiddenByColumn[R], z = N.placed.filter((F) => F.startColumn <= R && F.endColumn >= R).length + V.length;
46504
46504
  return /* @__PURE__ */ d(
46505
46505
  "td",
46506
46506
  {
@@ -46574,7 +46574,7 @@ function gY({
46574
46574
  onClick: (L) => {
46575
46575
  L.stopPropagation(), a?.(F.event);
46576
46576
  },
46577
- children: p ? p(F.event) : /* @__PURE__ */ T(at, { children: [
46577
+ children: p ? p(F.event) : /* @__PURE__ */ T(lt, { children: [
46578
46578
  !F.event.allDay && F.isStart && /* @__PURE__ */ d("span", { className: "shrink-0 tabular-nums opacity-80", children: oo(F.event.start, t, u) }),
46579
46579
  /* @__PURE__ */ d("span", { className: "truncate", children: F.event.title })
46580
46580
  ] })
@@ -47154,7 +47154,7 @@ function Oj({
47154
47154
  actions: t,
47155
47155
  children: n
47156
47156
  }) {
47157
- return e ? /* @__PURE__ */ d(Hn, { side: "right", align: "start", trigger: n, children: t }) : /* @__PURE__ */ d(at, { children: n });
47157
+ return e ? /* @__PURE__ */ d(Hn, { side: "right", align: "start", trigger: n, children: t }) : /* @__PURE__ */ d(lt, { children: n });
47158
47158
  }
47159
47159
  function bY({
47160
47160
  days: e,
@@ -47282,7 +47282,7 @@ function bY({
47282
47282
  /* @__PURE__ */ T("div", { className: E.headerRow(), children: [
47283
47283
  /* @__PURE__ */ d("div", { className: E.gutter(), style: { width: rc }, children: /* @__PURE__ */ d("div", { className: E.zoneLabel(), children: aj(t, M, x) }) }),
47284
47284
  e.map(($) => {
47285
- const H = r ? rs($, r) : !1;
47285
+ const H = r ? os($, r) : !1;
47286
47286
  return /* @__PURE__ */ T("div", { className: E.dayHead(), children: [
47287
47287
  /* @__PURE__ */ d("span", { className: E.dayName(), children: lh($, "short", x) }),
47288
47288
  /* @__PURE__ */ d(
@@ -47442,7 +47442,7 @@ function bY({
47442
47442
  onClick: () => o?.(H),
47443
47443
  onKeyDown: pe ? (le) => B.onKeyDown(H, le) : void 0,
47444
47444
  "data-grabbed": ne ? "" : void 0,
47445
- children: w ? w(H) : /* @__PURE__ */ T(at, { children: [
47445
+ children: w ? w(H) : /* @__PURE__ */ T(lt, { children: [
47446
47446
  /* @__PURE__ */ d("span", { className: "truncate font-medium", children: H.title }),
47447
47447
  /* @__PURE__ */ d("span", { className: U("truncate opacity-80", fe && "shrink-0"), children: oo(H.start, t, x) })
47448
47448
  ] })
@@ -47470,7 +47470,7 @@ function bY({
47470
47470
  )
47471
47471
  ] }, `${H.id}:${W.column}`);
47472
47472
  }),
47473
- F.creating && rs(F.creating.day, $.day) && /* @__PURE__ */ d("li", { "aria-hidden": "true", className: "contents", children: /* @__PURE__ */ d(
47473
+ F.creating && os(F.creating.day, $.day) && /* @__PURE__ */ d("li", { "aria-hidden": "true", className: "contents", children: /* @__PURE__ */ d(
47474
47474
  "span",
47475
47475
  {
47476
47476
  className: E.ghost(),
@@ -47574,18 +47574,18 @@ function vY({
47574
47574
  );
47575
47575
  return /* @__PURE__ */ d(eM.Provider, { value: x, children: a });
47576
47576
  }
47577
- function ks() {
47577
+ function Ns() {
47578
47578
  const e = Tn(eM);
47579
47579
  if (!e)
47580
47580
  throw new Error("useRBAC must be used within an <RBACProvider>.");
47581
47581
  return e;
47582
47582
  }
47583
47583
  function yY(e) {
47584
- const { hasPermission: t } = ks();
47584
+ const { hasPermission: t } = Ns();
47585
47585
  return t(e);
47586
47586
  }
47587
47587
  function wY({ permission: e, anyOf: t, fallback: n = null, children: r }) {
47588
- const { hasPermission: o } = ks();
47588
+ const { hasPermission: o } = Ns();
47589
47589
  if (e !== void 0 && t !== void 0)
47590
47590
  throw new Error("<Can> takes exactly one of `permission` or `anyOf`, not both.");
47591
47591
  if (e === void 0 && t === void 0)
@@ -47602,70 +47602,77 @@ const oc = [
47602
47602
  function CY({
47603
47603
  onNavigateProfile: e,
47604
47604
  onNavigateRoles: t,
47605
- onSwitchTeam: n,
47606
- onSignOut: r,
47607
- className: o
47605
+ onNavigateAccess: n,
47606
+ onSwitchTeam: r,
47607
+ onSignOut: o,
47608
+ className: s
47608
47609
  }) {
47609
- const { actualUser: s, effectiveRole: i, grantedPermissions: a, teams: l } = ks();
47610
+ const { actualUser: i, effectiveRole: a, teams: l } = Ns();
47610
47611
  return /* @__PURE__ */ d(
47611
47612
  Hn,
47612
47613
  {
47613
47614
  align: "end",
47614
- className: o,
47615
+ className: s,
47615
47616
  trigger: /* @__PURE__ */ d(
47616
47617
  "button",
47617
47618
  {
47618
47619
  type: "button",
47619
- "aria-label": `Account menu for ${s.name}`,
47620
+ "aria-label": `Account menu for ${i.name}`,
47620
47621
  className: "dx-tap rounded-full transition-[var(--tx-colors),box-shadow] duration-(--dur-fast) ease-hover focus-visible:shadow-[0_0_0_3px_var(--focus-halo)]",
47621
- children: /* @__PURE__ */ d(ro, { name: s.name, src: s.avatarUrl, size: "sm" })
47622
+ children: /* @__PURE__ */ d(ro, { name: i.name, src: i.avatarUrl, size: "sm" })
47622
47623
  }
47623
47624
  ),
47624
47625
  children: /* @__PURE__ */ T("div", { className: "flex w-72 flex-col gap-1", children: [
47625
47626
  /* @__PURE__ */ T("div", { className: "flex items-center gap-3 px-1 pb-3", children: [
47626
- /* @__PURE__ */ d(ro, { name: s.name, src: s.avatarUrl, size: "md" }),
47627
+ /* @__PURE__ */ d(ro, { name: i.name, src: i.avatarUrl, size: "md" }),
47627
47628
  /* @__PURE__ */ T("div", { className: "flex min-w-0 flex-col", children: [
47628
- /* @__PURE__ */ d("span", { className: "truncate text-sm font-semibold text-primary", children: s.name }),
47629
- /* @__PURE__ */ d("span", { className: "truncate text-xs text-tertiary", children: s.email })
47629
+ /* @__PURE__ */ d("span", { className: "truncate text-sm font-semibold text-primary", children: i.name }),
47630
+ /* @__PURE__ */ d("span", { className: "truncate text-xs text-tertiary", children: i.email })
47630
47631
  ] })
47631
47632
  ] }),
47632
47633
  (e || t) && /* @__PURE__ */ T("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: [
47633
- e && /* @__PURE__ */ d(Vs, { children: /* @__PURE__ */ T("button", { type: "button", className: U(oc), onClick: e, children: [
47634
+ e && /* @__PURE__ */ d(Ko, { children: /* @__PURE__ */ T("button", { type: "button", className: U(oc), onClick: e, children: [
47634
47635
  /* @__PURE__ */ d(ce, { name: "user", size: "sm" }),
47635
47636
  "Profile"
47636
47637
  ] }) }),
47637
- t && /* @__PURE__ */ d(Vs, { children: /* @__PURE__ */ T("button", { type: "button", className: U(oc), onClick: t, children: [
47638
+ t && /* @__PURE__ */ d(Ko, { children: /* @__PURE__ */ T("button", { type: "button", className: U(oc), onClick: t, children: [
47638
47639
  /* @__PURE__ */ d(ce, { name: "shield-check", size: "sm" }),
47639
47640
  "Roles & Permissions"
47640
47641
  ] }) })
47641
47642
  ] }),
47642
47643
  /* @__PURE__ */ T("div", { className: "flex flex-col gap-1.5 border-t border-border-subtle px-1 py-3", children: [
47643
47644
  /* @__PURE__ */ d("span", { className: Bw, children: "Your access" }),
47644
- i ? /* @__PURE__ */ T(at, { children: [
47645
- /* @__PURE__ */ T("p", { className: "text-xs text-secondary", children: [
47646
- "You have the ",
47647
- /* @__PURE__ */ d("strong", { className: "font-semibold text-primary", children: i.label }),
47648
- " role."
47649
- ] }),
47650
- a.length > 0 ? /* @__PURE__ */ d("ul", { className: "flex flex-col gap-1", children: a.map((c) => /* @__PURE__ */ T("li", { className: "flex items-start gap-1.5 text-2xs text-tertiary", children: [
47651
- /* @__PURE__ */ d(ce, { name: "check", size: "xs", className: "mt-0.5 text-success" }),
47652
- /* @__PURE__ */ d("span", { children: c.label })
47653
- ] }, c.key)) }) : /* @__PURE__ */ d("p", { className: "text-2xs text-tertiary", children: "This role does not grant any permissions." })
47645
+ a ? n ? /* @__PURE__ */ d(Ko, { children: /* @__PURE__ */ T(
47646
+ "button",
47647
+ {
47648
+ type: "button",
47649
+ className: "text-left text-xs text-secondary underline-offset-2 outline-none hover:underline focus-visible:underline",
47650
+ onClick: n,
47651
+ children: [
47652
+ "You have the ",
47653
+ /* @__PURE__ */ d("strong", { className: "font-semibold text-primary", children: a.label }),
47654
+ " role."
47655
+ ]
47656
+ }
47657
+ ) }) : /* @__PURE__ */ T("p", { className: "text-xs text-secondary", children: [
47658
+ "You have the ",
47659
+ /* @__PURE__ */ d("strong", { className: "font-semibold text-primary", children: a.label }),
47660
+ " role."
47654
47661
  ] }) : /* @__PURE__ */ d("p", { className: "text-xs text-tertiary", children: "No role is assigned for this team." })
47655
47662
  ] }),
47656
- l.length > 1 && n && /* @__PURE__ */ T("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: [
47663
+ l.length > 1 && r && /* @__PURE__ */ T("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: [
47657
47664
  /* @__PURE__ */ d("span", { className: U(Bw, "px-1 pb-1"), children: "Switch team" }),
47658
- l.map((c) => /* @__PURE__ */ d(Vs, { children: /* @__PURE__ */ T("button", { type: "button", className: U(oc), onClick: () => n(c.id), children: [
47665
+ l.map((c) => /* @__PURE__ */ d(Ko, { children: /* @__PURE__ */ T("button", { type: "button", className: U(oc), onClick: () => r(c.id), children: [
47659
47666
  /* @__PURE__ */ d(ce, { name: "users", size: "sm" }),
47660
47667
  c.name
47661
47668
  ] }) }, c.id))
47662
47669
  ] }),
47663
- r && /* @__PURE__ */ d("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: /* @__PURE__ */ d(Vs, { children: /* @__PURE__ */ T(
47670
+ o && /* @__PURE__ */ d("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: /* @__PURE__ */ d(Ko, { children: /* @__PURE__ */ T(
47664
47671
  "button",
47665
47672
  {
47666
47673
  type: "button",
47667
47674
  className: U(oc, "text-danger-text hover:bg-danger-subtle hover:text-danger-text focus-visible:bg-danger-subtle focus-visible:text-danger-text"),
47668
- onClick: r,
47675
+ onClick: o,
47669
47676
  children: [
47670
47677
  /* @__PURE__ */ d(ce, { name: "log-out", size: "sm" }),
47671
47678
  "Sign out"
@@ -47684,7 +47691,7 @@ const Aj = [
47684
47691
  "focus-visible:bg-surface-hover focus-visible:text-primary"
47685
47692
  ], Dj = "text-2xs font-semibold tracking-widest text-tertiary uppercase";
47686
47693
  function EY({ onSwitchTeam: e, className: t }) {
47687
- const { currentTeam: n, teams: r } = ks();
47694
+ const { currentTeam: n, teams: r } = Ns();
47688
47695
  if (!n) return null;
47689
47696
  const o = r.length > 1 && !!e, s = /* @__PURE__ */ T("span", { className: "flex min-w-0 items-center gap-2.5", children: [
47690
47697
  /* @__PURE__ */ d(ro, { name: n.name, src: n.logoUrl, size: "sm", shape: "rounded" }),
@@ -47713,7 +47720,7 @@ function EY({ onSwitchTeam: e, className: t }) {
47713
47720
  ),
47714
47721
  children: /* @__PURE__ */ T("div", { className: "flex w-64 flex-col gap-0.5", children: [
47715
47722
  /* @__PURE__ */ d("span", { className: U(Dj, "px-1.5 pt-1 pb-1.5"), children: "Switch team" }),
47716
- r.map((i) => /* @__PURE__ */ d(Vs, { children: /* @__PURE__ */ T(
47723
+ r.map((i) => /* @__PURE__ */ d(Ko, { children: /* @__PURE__ */ T(
47717
47724
  "button",
47718
47725
  {
47719
47726
  type: "button",
@@ -47780,7 +47787,7 @@ const jj = [
47780
47787
  { value: "live", label: "Live" }
47781
47788
  ];
47782
47789
  function kY({ onOpenUseCaseLedger: e, showSimControls: t = !0 } = {}) {
47783
- const { canAccessDevTools: n, roles: r, viewingAsRoleId: o, setViewingAsRoleId: s, effectiveRole: i, isImpersonating: a } = ks(), { networkSpeed: l, dataSource: c } = Hj(), [u, p] = de(!1), [f, h] = de(!1);
47790
+ const { canAccessDevTools: n, roles: r, viewingAsRoleId: o, setViewingAsRoleId: s, effectiveRole: i, isImpersonating: a } = Ns(), { networkSpeed: l, dataSource: c } = Hj(), [u, p] = de(!1), [f, h] = de(!1);
47784
47791
  return n ? /* @__PURE__ */ d(
47785
47792
  Hn,
47786
47793
  {
@@ -47840,7 +47847,7 @@ function kY({ onOpenUseCaseLedger: e, showSimControls: t = !0 } = {}) {
47840
47847
  ]
47841
47848
  }
47842
47849
  ),
47843
- t && /* @__PURE__ */ T(at, { children: [
47850
+ t && /* @__PURE__ */ T(lt, { children: [
47844
47851
  /* @__PURE__ */ T("div", { className: "flex flex-col gap-2 border-t border-border-subtle pt-4", children: [
47845
47852
  /* @__PURE__ */ d("span", { className: "text-2xs font-semibold tracking-widest text-tertiary uppercase", children: "Data source" }),
47846
47853
  /* @__PURE__ */ d(
@@ -47867,7 +47874,7 @@ function kY({ onOpenUseCaseLedger: e, showSimControls: t = !0 } = {}) {
47867
47874
  )
47868
47875
  ] }),
47869
47876
  /* @__PURE__ */ d("div", { className: "flex flex-col gap-2 border-t border-border-subtle pt-4", children: /* @__PURE__ */ d(
47870
- Cs,
47877
+ Es,
47871
47878
  {
47872
47879
  trigger: /* @__PURE__ */ T(st, { variant: "outline", size: "sm", children: [
47873
47880
  /* @__PURE__ */ d(ce, { name: "refresh-cw", size: "sm" }),
@@ -47985,7 +47992,7 @@ function Kj({
47985
47992
  children: u ? /* @__PURE__ */ d(ce, { name: "check", size: "sm", className: "text-success" }) : /* @__PURE__ */ d("span", { "aria-hidden": !0, className: "block text-border-strong", children: "—" })
47986
47993
  }
47987
47994
  )
47988
- ) : /* @__PURE__ */ T(at, { children: [
47995
+ ) : /* @__PURE__ */ T(lt, { children: [
47989
47996
  /* @__PURE__ */ d("span", { className: "sr-only", children: f }),
47990
47997
  u ? /* @__PURE__ */ d(ce, { name: "check", size: "sm", className: "mx-auto text-success" }) : /* @__PURE__ */ d("span", { "aria-hidden": !0, className: "mx-auto block text-border-strong", children: "—" })
47991
47998
  ] }) }, c.id);
@@ -48012,14 +48019,14 @@ function qj({
48012
48019
  }, [t]);
48013
48020
  const g = c.trim().length > 0 && !i;
48014
48021
  return /* @__PURE__ */ d(
48015
- ds,
48022
+ fs,
48016
48023
  {
48017
48024
  open: t,
48018
48025
  onOpenChange: n,
48019
48026
  title: e === "create" ? "New role" : "Edit role",
48020
48027
  description: e === "create" ? "A custom role starts with no permissions granted — set them afterward in the matrix, or clone an existing role's set below." : "Renaming a role doesn't change who has it or what it grants. Edit permissions in the matrix.",
48021
48028
  className: l,
48022
- actions: /* @__PURE__ */ T(at, { children: [
48029
+ actions: /* @__PURE__ */ T(lt, { children: [
48023
48030
  /* @__PURE__ */ d(st, { variant: "outline", onClick: () => n(!1), disabled: i, children: "Cancel" }),
48024
48031
  /* @__PURE__ */ d(st, { onClick: () => {
48025
48032
  g && a({
@@ -48138,7 +48145,7 @@ function Yj({
48138
48145
  ] }) });
48139
48146
  }
48140
48147
  function NY({ account: e, onSave: t, onUploadAvatar: n, onAvatarChange: r, className: o }) {
48141
- const { actualUser: s, actualRole: i, effectiveRole: a, grantedPermissions: l, isImpersonating: c, currentTeam: u } = ks(), p = !!(e && t && n);
48148
+ const { actualUser: s, actualRole: i, effectiveRole: a, grantedPermissions: l, isImpersonating: c, currentTeam: u } = Ns(), p = !!(e && t && n);
48142
48149
  return /* @__PURE__ */ d("div", { className: o, children: /* @__PURE__ */ T("div", { className: "flex flex-col gap-6", children: [
48143
48150
  /* @__PURE__ */ T("div", { className: "flex items-center gap-4", children: [
48144
48151
  !p && /* @__PURE__ */ d(ro, { name: s.name, src: s.avatarUrl, size: "xl" }),
@@ -48167,13 +48174,13 @@ function NY({ account: e, onSave: t, onUploadAvatar: n, onAvatarChange: r, class
48167
48174
  /* @__PURE__ */ d("strong", { className: "font-semibold text-primary", children: i.label }),
48168
48175
  " access."
48169
48176
  ] }),
48170
- a ? /* @__PURE__ */ T(at, { children: [
48177
+ a ? /* @__PURE__ */ T(lt, { children: [
48171
48178
  /* @__PURE__ */ T("p", { className: "text-sm text-secondary", children: [
48172
48179
  "You hold the ",
48173
48180
  /* @__PURE__ */ d("strong", { className: "font-semibold text-primary", children: a.label }),
48174
48181
  " ",
48175
48182
  "role",
48176
- u ? /* @__PURE__ */ T(at, { children: [
48183
+ u ? /* @__PURE__ */ T(lt, { children: [
48177
48184
  " on ",
48178
48185
  u.name
48179
48186
  ] }) : null,
@@ -48188,7 +48195,7 @@ function NY({ account: e, onSave: t, onUploadAvatar: n, onAvatarChange: r, class
48188
48195
  ] }) });
48189
48196
  }
48190
48197
  function Xj() {
48191
- const { actualUser: e } = ks(), [t, n] = de(e.name), [r, o] = de(e.email);
48198
+ const { actualUser: e } = Ns(), [t, n] = de(e.name), [r, o] = de(e.email);
48192
48199
  return /* @__PURE__ */ T("div", { className: "grid gap-4 sm:grid-cols-2", children: [
48193
48200
  /* @__PURE__ */ d(St, { label: "Name", children: /* @__PURE__ */ d(Gt, { value: t, onChange: (s) => n(s.target.value) }) }),
48194
48201
  /* @__PURE__ */ d(St, { label: "Email", children: /* @__PURE__ */ d(Gt, { type: "email", value: r, onChange: (s) => o(s.target.value) }) })
@@ -48304,7 +48311,7 @@ function RY({
48304
48311
  }
48305
48312
  ),
48306
48313
  i && /* @__PURE__ */ d(
48307
- Cs,
48314
+ Es,
48308
48315
  {
48309
48316
  open: f !== null,
48310
48317
  onOpenChange: (b) => {
@@ -48354,7 +48361,7 @@ function Qj({
48354
48361
  }) {
48355
48362
  const r = e.disabledReason ?? (t ? "Removing…" : void 0);
48356
48363
  return /* @__PURE__ */ d(
48357
- Cs,
48364
+ Es,
48358
48365
  {
48359
48366
  trigger: /* @__PURE__ */ d(
48360
48367
  bt,
@@ -48407,7 +48414,7 @@ function Jj(e, t, n, r) {
48407
48414
  id: "joined",
48408
48415
  header: "Joined",
48409
48416
  accessorFn: (o) => o.joinedAt,
48410
- cell: ({ row: o }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: ps(o.original.joinedAt) })
48417
+ cell: ({ row: o }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: hs(o.original.joinedAt) })
48411
48418
  },
48412
48419
  {
48413
48420
  id: "actions",
@@ -48516,7 +48523,7 @@ function eG({
48516
48523
  }) {
48517
48524
  const [r, o] = de(!1);
48518
48525
  return e.current ? /* @__PURE__ */ d("span", { className: "text-2xs text-tertiary", children: "This session" }) : /* @__PURE__ */ d(
48519
- Cs,
48526
+ Es,
48520
48527
  {
48521
48528
  open: r,
48522
48529
  onOpenChange: o,
@@ -48560,13 +48567,13 @@ function tG(e, t) {
48560
48567
  id: "lastUsed",
48561
48568
  header: "Last used",
48562
48569
  accessorFn: (n) => n.lastUsedAt,
48563
- cell: ({ row: n }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: ps(n.original.lastUsedAt) })
48570
+ cell: ({ row: n }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: hs(n.original.lastUsedAt) })
48564
48571
  },
48565
48572
  {
48566
48573
  id: "created",
48567
48574
  header: "Created",
48568
48575
  accessorFn: (n) => n.createdAt,
48569
- cell: ({ row: n }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: ps(n.original.createdAt) })
48576
+ cell: ({ row: n }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: hs(n.original.createdAt) })
48570
48577
  },
48571
48578
  {
48572
48579
  id: "expires",
@@ -48601,7 +48608,7 @@ function nG({
48601
48608
  }) {
48602
48609
  const [r, o] = de(!1);
48603
48610
  return /* @__PURE__ */ d(
48604
- Cs,
48611
+ Es,
48605
48612
  {
48606
48613
  open: r,
48607
48614
  onOpenChange: o,
@@ -48632,13 +48639,13 @@ function rG(e, t) {
48632
48639
  id: "token",
48633
48640
  header: "Token",
48634
48641
  accessorFn: (n) => n.name,
48635
- cell: ({ row: n }) => /* @__PURE__ */ d(_d, { primary: n.original.name, secondary: `Created ${ps(n.original.createdAt)}` })
48642
+ cell: ({ row: n }) => /* @__PURE__ */ d(_d, { primary: n.original.name, secondary: `Created ${hs(n.original.createdAt)}` })
48636
48643
  },
48637
48644
  {
48638
48645
  id: "lastUsed",
48639
48646
  header: "Last used",
48640
48647
  accessorFn: (n) => n.lastUsedAt ?? "",
48641
- cell: ({ row: n }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: n.original.lastUsedAt ? ps(n.original.lastUsedAt) : "Never" })
48648
+ cell: ({ row: n }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: n.original.lastUsedAt ? hs(n.original.lastUsedAt) : "Never" })
48642
48649
  },
48643
48650
  {
48644
48651
  id: "expires",
@@ -48696,13 +48703,13 @@ function PY({ tokens: e, onCreate: t, onRevoke: n, busyId: r, emptyState: o, cla
48696
48703
  ) : /* @__PURE__ */ d(Dd, { columns: N, data: e, getRowId: (k) => String(k.id) })
48697
48704
  ] }),
48698
48705
  /* @__PURE__ */ d(
48699
- ds,
48706
+ fs,
48700
48707
  {
48701
48708
  open: i,
48702
48709
  onOpenChange: a,
48703
48710
  title: "Create API token",
48704
48711
  description: "You'll only see the full token once, immediately after creating it — store it somewhere safe.",
48705
- actions: /* @__PURE__ */ T(at, { children: [
48712
+ actions: /* @__PURE__ */ T(lt, { children: [
48706
48713
  /* @__PURE__ */ d(st, { variant: "outline", onClick: () => a(!1), disabled: f, children: "Cancel" }),
48707
48714
  /* @__PURE__ */ d(st, { onClick: () => {
48708
48715
  E();
@@ -48734,7 +48741,7 @@ function PY({ tokens: e, onCreate: t, onRevoke: n, busyId: r, emptyState: o, cla
48734
48741
  }
48735
48742
  ),
48736
48743
  /* @__PURE__ */ d(
48737
- ds,
48744
+ fs,
48738
48745
  {
48739
48746
  open: b !== null,
48740
48747
  onOpenChange: (k) => {
@@ -48818,7 +48825,7 @@ function iG({
48818
48825
  }
48819
48826
  ),
48820
48827
  /* @__PURE__ */ d(
48821
- Cs,
48828
+ Es,
48822
48829
  {
48823
48830
  trigger: /* @__PURE__ */ d(
48824
48831
  bt,
@@ -48880,7 +48887,7 @@ function aG(e, t, n, r) {
48880
48887
  id: "sent",
48881
48888
  header: "Sent",
48882
48889
  accessorFn: (o) => o.createdAt,
48883
- cell: ({ row: o }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: ps(o.original.createdAt) })
48890
+ cell: ({ row: o }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: hs(o.original.createdAt) })
48884
48891
  },
48885
48892
  {
48886
48893
  id: "actions",
@@ -48954,14 +48961,14 @@ function AY({
48954
48961
  v && s({ emails: w, roleId: p });
48955
48962
  }
48956
48963
  return /* @__PURE__ */ d(
48957
- ds,
48964
+ fs,
48958
48965
  {
48959
48966
  open: e,
48960
48967
  onOpenChange: t,
48961
48968
  title: "Invite members",
48962
48969
  description: "Each address gets its own invitation email with the role you pick below.",
48963
48970
  className: i,
48964
- actions: /* @__PURE__ */ T(at, { children: [
48971
+ actions: /* @__PURE__ */ T(lt, { children: [
48965
48972
  /* @__PURE__ */ d(st, { variant: "outline", onClick: () => t(!1), disabled: r, children: "Cancel" }),
48966
48973
  /* @__PURE__ */ T(st, { onClick: C, disabled: !v, loading: r, children: [
48967
48974
  "Send invitation",
@@ -49406,7 +49413,7 @@ function fG({
49406
49413
  }
49407
49414
  ) : /* @__PURE__ */ d(pt, { size: "sm", tone: s.tone, icon: s.icon, dot: s.live, pulse: s.live, children: s.label }),
49408
49415
  t.map((i) => {
49409
- const a = e.built[i.id] === !0, l = `${i.name}${a ? " built" : " not built"}`, c = /* @__PURE__ */ T(at, { children: [
49416
+ const a = e.built[i.id] === !0, l = `${i.name}${a ? " built" : " not built"}`, c = /* @__PURE__ */ T(lt, { children: [
49410
49417
  /* @__PURE__ */ d(ce, { name: a ? "circle-check" : "circle-dashed", size: "xs" }),
49411
49418
  /* @__PURE__ */ d("span", { "aria-hidden": "true", children: i.name }),
49412
49419
  /* @__PURE__ */ d("span", { className: "sr-only", children: l })
@@ -49468,7 +49475,7 @@ function oM({
49468
49475
  /* @__PURE__ */ d(pt, { size: "sm", tone: Gw(o), children: r.name })
49469
49476
  ] }),
49470
49477
  e.summary && /* @__PURE__ */ d("p", { className: "text-sm text-secondary text-pretty", children: e.summary }),
49471
- s.length > 0 && /* @__PURE__ */ T(at, { children: [
49478
+ s.length > 0 && /* @__PURE__ */ T(lt, { children: [
49472
49479
  /* @__PURE__ */ T(
49473
49480
  "button",
49474
49481
  {
@@ -50218,7 +50225,7 @@ function MG({
50218
50225
  loading state or a bug. */
50219
50226
  /* @__PURE__ */ d("p", { className: "text-sm text-tertiary", children: "Nothing was recorded about where this value came from." })
50220
50227
  ] }),
50221
- t && /* @__PURE__ */ T(at, { children: [
50228
+ t && /* @__PURE__ */ T(lt, { children: [
50222
50229
  /* @__PURE__ */ d(_y, {}),
50223
50230
  /* @__PURE__ */ d("div", { className: "flex flex-wrap gap-2 p-4 pt-3", children: t })
50224
50231
  ] })
@@ -51249,14 +51256,14 @@ function _8(e, t) {
51249
51256
  function F8(e, t, n) {
51250
51257
  e.nodes().forEach((r) => t.node(r).rank += n);
51251
51258
  }
51252
- var { preorder: V8, postorder: $8 } = nx, L8 = Ns;
51253
- Ns.initLowLimValues = ix;
51254
- Ns.initCutValues = sx;
51255
- Ns.calcCutValue = kM;
51256
- Ns.leaveEdge = RM;
51257
- Ns.enterEdge = IM;
51258
- Ns.exchangeEdges = MM;
51259
- function Ns(e) {
51259
+ var { preorder: V8, postorder: $8 } = nx, L8 = Rs;
51260
+ Rs.initLowLimValues = ix;
51261
+ Rs.initCutValues = sx;
51262
+ Rs.calcCutValue = kM;
51263
+ Rs.leaveEdge = RM;
51264
+ Rs.enterEdge = IM;
51265
+ Rs.exchangeEdges = MM;
51266
+ function Rs(e) {
51260
51267
  e = c8(e), ox(e);
51261
51268
  let t = SM(e);
51262
51269
  ix(t), sx(t, e);
@@ -52266,7 +52273,7 @@ function r7(e) {
52266
52273
  }), n;
52267
52274
  }
52268
52275
  var o7 = { graphlib: dM, version: b8, layout: V9, debug: r7, util: { time: h8, notime: CM } }, lu = o7;
52269
- const Yo = {
52276
+ const Xo = {
52270
52277
  /* A node wide enough for a short title and a line of detail at the library's
52271
52278
  body size, and a height that clears two lines of it. Consumers with denser
52272
52279
  content pass their own — per node, if they differ from each other. */
@@ -52406,11 +52413,11 @@ function c7(e) {
52406
52413
  }
52407
52414
  function FM(e, t, n, r = {}) {
52408
52415
  const o = {
52409
- nodeWidth: r.nodeWidth ?? Yo.nodeWidth,
52410
- nodeHeight: r.nodeHeight ?? Yo.nodeHeight,
52411
- siblingGap: r.siblingGap ?? Yo.siblingGap,
52412
- levelGap: r.levelGap ?? Yo.levelGap,
52413
- orientation: r.orientation ?? Yo.orientation
52416
+ nodeWidth: r.nodeWidth ?? Xo.nodeWidth,
52417
+ nodeHeight: r.nodeHeight ?? Xo.nodeHeight,
52418
+ siblingGap: r.siblingGap ?? Xo.siblingGap,
52419
+ levelGap: r.levelGap ?? Xo.levelGap,
52420
+ orientation: r.orientation ?? Xo.orientation
52414
52421
  }, s = o.orientation === "vertical";
52415
52422
  let i, a;
52416
52423
  if (typeof n == "object" && n !== null)
@@ -52625,7 +52632,7 @@ function u7(e) {
52625
52632
  ), k = Re(() => a({}), []);
52626
52633
  return { offsets: i, draggingId: l, panning: u, bindViewport: N, bindNode: S, clearOffsets: k };
52627
52634
  }
52628
- const Ds = 96, d7 = 2;
52635
+ const _s = 96, d7 = 2;
52629
52636
  function ip(e) {
52630
52637
  return e.group !== null || e.cycle;
52631
52638
  }
@@ -52652,7 +52659,7 @@ function QY({
52652
52659
  renderNode: r,
52653
52660
  renderSummary: o,
52654
52661
  edgeClassName: s,
52655
- orientation: i = Yo.orientation,
52662
+ orientation: i = Xo.orientation,
52656
52663
  nodeWidth: a,
52657
52664
  nodeHeight: l,
52658
52665
  height: c = "30rem",
@@ -52682,12 +52689,12 @@ function QY({
52682
52689
  () => FM(e, t, k, { orientation: i, nodeWidth: a, nodeHeight: l }),
52683
52690
  [e, t, k, i, a, l]
52684
52691
  ), z = Oe(() => new Map(V.nodes.map((Q) => [Q.id, Q])), [V.nodes]), F = C ? t.find((Q) => Q.id === C) ?? null : null, B = Oe(
52685
- () => ({ width: V.width + Ds * 2, height: V.height + Ds * 2 }),
52692
+ () => ({ width: V.width + _s * 2, height: V.height + _s * 2 }),
52686
52693
  [V]
52687
52694
  ), O = Oe(() => {
52688
52695
  const Q = /* @__PURE__ */ new Map();
52689
52696
  for (const re of V.nodes)
52690
- Q.set(re.id, { ...re, x: re.x + Ds, y: re.y + Ds });
52697
+ Q.set(re.id, { ...re, x: re.x + _s, y: re.y + _s });
52691
52698
  return Q;
52692
52699
  }, [V]), L = Re(
52693
52700
  (Q) => {
@@ -52927,7 +52934,7 @@ function QY({
52927
52934
  children: V.edges.map((Q) => {
52928
52935
  const re = {
52929
52936
  ...Q,
52930
- points: Q.points.map((Ce) => ({ x: Ce.x + Ds, y: Ce.y + Ds }))
52937
+ points: Q.points.map((Ce) => ({ x: Ce.x + _s, y: Ce.y + _s }))
52931
52938
  }, be = W !== null && W.has(Q.from) && W.has(Q.to);
52932
52939
  return /* @__PURE__ */ d(
52933
52940
  "path",
@@ -53378,7 +53385,7 @@ function v0({
53378
53385
  const R = Oe(
53379
53386
  () => ({
53380
53387
  nodes: e.nodes.map((q) => {
53381
- const J = C[q.id], se = q.height ?? c ?? Yo.nodeHeight;
53388
+ const J = C[q.id], se = q.height ?? c ?? Xo.nodeHeight;
53382
53389
  return J && J > se ? { ...q, height: J } : q;
53383
53390
  })
53384
53391
  }),
@@ -53733,7 +53740,7 @@ function $7({
53733
53740
  }
53734
53741
  ),
53735
53742
  /* @__PURE__ */ d("div", { className: "absolute top-2 right-2", children: /* @__PURE__ */ d(bt, { icon: /* @__PURE__ */ d(ce, { name: "maximize-2", size: "sm" }), label: "Expand", size: "sm", onClick: R }) }),
53736
- !u && /* @__PURE__ */ d(ds, { open: N, onOpenChange: k, title: n, size: "xl", children: /* @__PURE__ */ d(
53743
+ !u && /* @__PURE__ */ d(fs, { open: N, onOpenChange: k, title: n, size: "xl", children: /* @__PURE__ */ d(
53737
53744
  $7,
53738
53745
  {
53739
53746
  tree: e,
@@ -53753,15 +53760,15 @@ function $7({
53753
53760
  ) })
53754
53761
  ] });
53755
53762
  }
53756
- const BM = 10, L7 = { x: 38, y: 36 }, z7 = { x: 25, y: 23 }, w0 = { leftPct: 1, topPct: 9 }, Xo = { leftPct: 50, topPct: 50 };
53763
+ const BM = 10, L7 = { x: 38, y: 36 }, z7 = { x: 25, y: 23 }, w0 = { leftPct: 1, topPct: 9 }, Zo = { leftPct: 50, topPct: 50 };
53757
53764
  function B7(e) {
53758
53765
  return e === 2 ? -180 : -90;
53759
53766
  }
53760
53767
  function H7(e, t, n) {
53761
53768
  const o = (B7(t) + 360 / t * e) * Math.PI / 180;
53762
53769
  return {
53763
- leftPct: Xo.leftPct + n.x * Math.cos(o),
53764
- topPct: Xo.topPct + n.y * Math.sin(o)
53770
+ leftPct: Zo.leftPct + n.x * Math.cos(o),
53771
+ topPct: Zo.topPct + n.y * Math.sin(o)
53765
53772
  };
53766
53773
  }
53767
53774
  function U7(e, t = BM) {
@@ -53873,7 +53880,7 @@ function JY({
53873
53880
  }) {
53874
53881
  const u = _t(), p = Oe(() => U7(t.map((I) => I.id)), [t]), f = Pd("sm"), h = Oe(() => {
53875
53882
  const I = [];
53876
- return n && I.push({ node: n, role: "parent", leftPct: w0.leftPct, topPct: w0.topPct, index: null, tier: null }), I.push({ node: e, role: "center", leftPct: Xo.leftPct, topPct: Xo.topPct, index: null, tier: null }), t.forEach((P, A) => {
53883
+ return n && I.push({ node: n, role: "parent", leftPct: w0.leftPct, topPct: w0.topPct, index: null, tier: null }), I.push({ node: e, role: "center", leftPct: Zo.leftPct, topPct: Zo.topPct, index: null, tier: null }), t.forEach((P, A) => {
53877
53884
  const D = p[A];
53878
53885
  I.push({ node: P, role: "ring", leftPct: D.leftPct, topPct: D.topPct, index: A, tier: D.tier });
53879
53886
  }), q7(I.map((P) => P.node.id)), I;
@@ -53946,8 +53953,8 @@ function JY({
53946
53953
  return /* @__PURE__ */ d(
53947
53954
  "line",
53948
53955
  {
53949
- x1: Xo.leftPct,
53950
- y1: Xo.topPct,
53956
+ x1: Zo.leftPct,
53957
+ y1: Zo.topPct,
53951
53958
  x2: I.leftPct,
53952
53959
  y2: I.topPct,
53953
53960
  vectorEffect: "non-scaling-stroke",
@@ -53962,7 +53969,7 @@ function JY({
53962
53969
  }
53963
53970
  ),
53964
53971
  h.map((I) => {
53965
- const { node: P, role: A } = I, D = A === "ring", _ = D && P.id === s, V = D && P.id === E, z = A !== "center" || !!i, F = A !== "center" && P.id === g, B = A === "center" ? "location" : _ ? "page" : void 0, O = A === "parent" ? "beside" : D && I.topPct < Xo.topPct - 1 ? "above" : "below", L = {
53972
+ const { node: P, role: A } = I, D = A === "ring", _ = D && P.id === s, V = D && P.id === E, z = A !== "center" || !!i, F = A !== "center" && P.id === g, B = A === "center" ? "location" : _ ? "page" : void 0, O = A === "parent" ? "beside" : D && I.topPct < Zo.topPct - 1 ? "above" : "below", L = {
53966
53973
  role: A,
53967
53974
  index: I.index,
53968
53975
  tier: I.tier,
@@ -54182,7 +54189,7 @@ function cu(e, t) {
54182
54189
  return `operation-${e}-${n}`;
54183
54190
  }
54184
54191
  const oW = 6;
54185
- function Fs(e, t, n = 0) {
54192
+ function Vs(e, t, n = 0) {
54186
54193
  if (!t || n > oW) return;
54187
54194
  if ("example" in t) return t.example;
54188
54195
  if (Array.isArray(t.examples) && t.examples.length > 0) return t.examples[0];
@@ -54191,25 +54198,25 @@ function Fs(e, t, n = 0) {
54191
54198
  if (Array.isArray(t.enum) && t.enum.length > 0) return t.enum[0];
54192
54199
  const r = Bd(e, t), o = r?.unresolved ? t : r?.schema ?? t;
54193
54200
  if (o !== t && o.$ref === void 0)
54194
- return Fs(e, o, n);
54201
+ return Vs(e, o, n);
54195
54202
  for (const i of ["allOf", "oneOf", "anyOf"]) {
54196
54203
  const a = t[i];
54197
54204
  if (Array.isArray(a) && a.length > 0)
54198
54205
  return i === "allOf" ? a.reduce((l, c) => {
54199
- const u = Fs(e, c, n + 1);
54206
+ const u = Vs(e, c, n + 1);
54200
54207
  return u && typeof u == "object" ? { ...l, ...u } : l;
54201
- }, {}) : Fs(e, a[0], n + 1);
54208
+ }, {}) : Vs(e, a[0], n + 1);
54202
54209
  }
54203
54210
  const s = t.type;
54204
54211
  if (s === "object" || t.properties && s === void 0) {
54205
54212
  const i = t.properties ?? {}, a = {};
54206
54213
  for (const [l, c] of Object.entries(i))
54207
- a[l] = Fs(e, c, n + 1);
54214
+ a[l] = Vs(e, c, n + 1);
54208
54215
  return a;
54209
54216
  }
54210
54217
  if (s === "array") {
54211
54218
  const i = t.items;
54212
- return i ? [Fs(e, i, n + 1)] : [];
54219
+ return i ? [Vs(e, i, n + 1)] : [];
54213
54220
  }
54214
54221
  if (s === "string") return typeof t.format == "string" ? `<${t.format}>` : "string";
54215
54222
  if (s === "integer" || s === "number") return 0;
@@ -54357,7 +54364,7 @@ function cW({ status: e, description: t }) {
54357
54364
  function S0({ doc: e, content: t }) {
54358
54365
  const n = Object.entries(t);
54359
54366
  return n.length === 0 ? null : /* @__PURE__ */ d("div", { className: "flex flex-col gap-4", children: n.map(([r, o]) => {
54360
- const s = Bd(e, o.schema), i = o.example ?? Object.values(o.examples ?? {})[0]?.value ?? Fs(e, o.schema);
54367
+ const s = Bd(e, o.schema), i = o.example ?? Object.values(o.examples ?? {})[0]?.value ?? Vs(e, o.schema);
54361
54368
  return /* @__PURE__ */ T("div", { className: "min-w-0", children: [
54362
54369
  /* @__PURE__ */ d("p", { className: "mb-1.5 font-mono text-2xs text-tertiary", children: r }),
54363
54370
  o.schema && /* @__PURE__ */ d("div", { className: "mb-3", children: /* @__PURE__ */ d(zs, { doc: e, schema: o.schema }) }),
@@ -54407,7 +54414,7 @@ function dW({ id: e }) {
54407
54414
  );
54408
54415
  }
54409
54416
  function fW({ copied: e }) {
54410
- return /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: e ? /* @__PURE__ */ d("path", { d: "M20 6 9 17l-5-5" }) : /* @__PURE__ */ T(at, { children: [
54417
+ return /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: e ? /* @__PURE__ */ d("path", { d: "M20 6 9 17l-5-5" }) : /* @__PURE__ */ T(lt, { children: [
54411
54418
  /* @__PURE__ */ d("path", { d: "M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07l-1.5 1.5" }),
54412
54419
  /* @__PURE__ */ d("path", { d: "M14 11a5 5 0 0 0-7.07 0L4.1 13.83a5 5 0 0 0 7.07 7.07l1.5-1.5" })
54413
54420
  ] }) });
@@ -54597,9 +54604,9 @@ function oX() {
54597
54604
  uu.clear();
54598
54605
  }
54599
54606
  const WM = -1, Yt = /* @__PURE__ */ new Map(), mr = /* @__PURE__ */ new Map(), Gr = /* @__PURE__ */ new Map(), Wr = /* @__PURE__ */ new Map(), Ia = /* @__PURE__ */ new Set(), mo = /* @__PURE__ */ new Map();
54600
- let ss = 0, yo;
54607
+ let is = 0, yo;
54601
54608
  function SW(e) {
54602
- e !== yo && (yo = e, Yt.clear(), mr.clear(), Gr.clear(), Xs.clear(), ss += 1, LW());
54609
+ e !== yo && (yo = e, Yt.clear(), mr.clear(), Gr.clear(), Xs.clear(), is += 1, LW());
54603
54610
  }
54604
54611
  function Ud() {
54605
54612
  return yo;
@@ -54681,7 +54688,7 @@ function du(e, t) {
54681
54688
  const r = n.layers.findIndex((o) => o.id === t);
54682
54689
  if (r !== -1) {
54683
54690
  if (n.layers.splice(r, 1), !n.hasBase && n.layers.length === 0) {
54684
- Yt.delete(e), mr.delete(e), Gr.delete(e), ss += 1, QM(e);
54691
+ Yt.delete(e), mr.delete(e), Gr.delete(e), is += 1, QM(e);
54685
54692
  return;
54686
54693
  }
54687
54694
  jd(e, n);
@@ -54717,7 +54724,7 @@ function IW(e) {
54717
54724
  return e.layers.some((t) => t.created);
54718
54725
  }
54719
54726
  function jd(e, t) {
54720
- t.version += 1, ss += 1, QM(e);
54727
+ t.version += 1, is += 1, QM(e);
54721
54728
  }
54722
54729
  function MW(e, t, n, r) {
54723
54730
  let o = !1;
@@ -54760,12 +54767,12 @@ function mh(e, t) {
54760
54767
  function OW(e) {
54761
54768
  const t = mr.get(e);
54762
54769
  if (t) {
54763
- if (t.atGlobal === ss) return t.value;
54770
+ if (t.atGlobal === is) return t.value;
54764
54771
  if (AW(t.deps))
54765
- return t.atGlobal = ss, t.value;
54772
+ return t.atGlobal = is, t.value;
54766
54773
  }
54767
54774
  const n = /* @__PURE__ */ new Map(), o = gh(e, n, /* @__PURE__ */ new Map());
54768
- return mr.set(e, { value: o, deps: n, atGlobal: ss }), o;
54775
+ return mr.set(e, { value: o, deps: n, atGlobal: is }), o;
54769
54776
  }
54770
54777
  function AW(e) {
54771
54778
  for (const [t, n] of e) {
@@ -54981,7 +54988,7 @@ function bh(e, t) {
54981
54988
  for (const n of Object.values(e)) bh(n, t);
54982
54989
  }
54983
54990
  function iX() {
54984
- Wn !== null && (lx(Wn), Wn = null), Yt.clear(), mr.clear(), Gr.clear(), Wr.clear(), Ia.clear(), mo.clear(), Xs = /* @__PURE__ */ new Set(), Ji = ux, ss = 0, yo = void 0;
54991
+ Wn !== null && (lx(Wn), Wn = null), Yt.clear(), mr.clear(), Gr.clear(), Wr.clear(), Ia.clear(), mo.clear(), Xs = /* @__PURE__ */ new Set(), Ji = ux, is = 0, yo = void 0;
54985
54992
  }
54986
54993
  function aX() {
54987
54994
  return { records: Yt.size, memos: mr.size, roots: mo.size, listeners: Wr.size };
@@ -55630,14 +55637,14 @@ function aK() {
55630
55637
  return qd;
55631
55638
  }
55632
55639
  const kn = /* @__PURE__ */ new Map(), Bs = /* @__PURE__ */ new Map();
55633
- let is = null;
55640
+ let as = null;
55634
55641
  function lK() {
55635
- is || (is = ZW((e) => {
55642
+ as || (as = ZW((e) => {
55636
55643
  e.isCreate && pK(e);
55637
55644
  }));
55638
55645
  }
55639
55646
  function cK() {
55640
- kn.size > 0 || !is || (is(), is = null);
55647
+ kn.size > 0 || !as || (as(), as = null);
55641
55648
  }
55642
55649
  function uK(e, t) {
55643
55650
  const n = mK(t.type, t.createdScope);
@@ -55793,7 +55800,7 @@ function gX() {
55793
55800
  for (const t of e.memberReleases) t();
55794
55801
  e.retainRelease?.();
55795
55802
  }
55796
- kn.clear(), Bs.clear(), is?.(), is = null;
55803
+ kn.clear(), Bs.clear(), as?.(), as = null;
55797
55804
  }
55798
55805
  const vc = { inFlight: !1, settled: !1, error: void 0 };
55799
55806
  function bX(e, t, n) {
@@ -56030,7 +56037,7 @@ export {
56030
56037
  Md as Accordion,
56031
56038
  Td as AccordionItem,
56032
56039
  CY as AccountMenu,
56033
- Cs as AlertDialog,
56040
+ Es as AlertDialog,
56034
56041
  qy as AmbiguousTimeError,
56035
56042
  PY as ApiTokensPanel,
56036
56043
  bq as AppShell,
@@ -56051,7 +56058,7 @@ export {
56051
56058
  st as Button,
56052
56059
  Ar as CAMERA_DEFAULTS,
56053
56060
  jw as CATEGORY_TONES,
56054
- Xo as CENTER_POSITION,
56061
+ Zo as CENTER_POSITION,
56055
56062
  fY as COMPONENT_GUIDANCE,
56056
56063
  qY as CONFIDENCE_LEVEL_LABELS,
56057
56064
  gY as CalendarMonth,
@@ -56102,7 +56109,7 @@ export {
56102
56109
  Pg as DescriptionList,
56103
56110
  qc as DescriptionListItem,
56104
56111
  kY as DevToolsPopover,
56105
- ds as Dialog,
56112
+ fs as Dialog,
56106
56113
  HK as DialogClose,
56107
56114
  Bb as DragDrop,
56108
56115
  Hb as DragDropContainer,
@@ -56138,7 +56145,7 @@ export {
56138
56145
  OY as InvitationsList,
56139
56146
  AY as InviteMembersDialog,
56140
56147
  Qq as KanbanBoard,
56141
- Yo as LAYOUT_DEFAULTS,
56148
+ Xo as LAYOUT_DEFAULTS,
56142
56149
  qq as LineDiff,
56143
56150
  FK as ListItemButton,
56144
56151
  X_ as LoadingOverlay,
@@ -56180,7 +56187,7 @@ export {
56180
56187
  rk as PasswordRequirements,
56181
56188
  jY as PhaseManager,
56182
56189
  Hn as Popover,
56183
- Vs as PopoverClose,
56190
+ Ko as PopoverClose,
56184
56191
  Yj as ProfileForm,
56185
56192
  NY as ProfilePage,
56186
56193
  z3 as Progress,
@@ -56296,7 +56303,7 @@ export {
56296
56303
  yy as caretMap,
56297
56304
  xS as cellAt,
56298
56305
  Vw as cellLabel,
56299
- fs as cellsOf,
56306
+ ps as cellsOf,
56300
56307
  ph as centerOn,
56301
56308
  UK as checkCoverage,
56302
56309
  _L as chordsOf,
@@ -56383,7 +56390,7 @@ export {
56383
56390
  oh as isNoOp,
56384
56391
  pj as isPaletteKey,
56385
56392
  hh as isRecordRef,
56386
- rs as isSameDate,
56393
+ os as isSameDate,
56387
56394
  cG as isUnbuilt,
56388
56395
  lg as isUnstoredImageSrc,
56389
56396
  Vn as isoDateString,
@@ -56436,7 +56443,7 @@ export {
56436
56443
  aX as recordStoreStats,
56437
56444
  oT as registerActiveRead,
56438
56445
  GK as registerGrammar,
56439
- ps as relativeAge,
56446
+ hs as relativeAge,
56440
56447
  mX as resetActiveReads,
56441
56448
  CX as resetOptimisticWrites,
56442
56449
  uX as resetRealtimeSignals,
@@ -56453,7 +56460,7 @@ export {
56453
56460
  fx as retainKeys,
56454
56461
  rh as sameTarget,
56455
56462
  Lc as sanitizeHref,
56456
- Fs as schemaToExample,
56463
+ Vs as schemaToExample,
56457
56464
  hx as scopeKey,
56458
56465
  WY as scoredConfidence,
56459
56466
  Jl as scrollVelocity,
@@ -56524,7 +56531,7 @@ export {
56524
56531
  _3 as useMotionPreference,
56525
56532
  Ej as useNow,
56526
56533
  sN as usePersistedState,
56527
- ks as useRBAC,
56534
+ Ns as useRBAC,
56528
56535
  fX as useRealtime,
56529
56536
  hX as useRealtimeEpoch,
56530
56537
  pX as useRealtimeHealth,