brd-ui-kit 0.1.9 → 0.1.10

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,6 +1,6 @@
1
1
  import { jsx as x, jsxs as ce, Fragment as En } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
- import Pt, { forwardRef as uc, createElement as pr, useLayoutEffect as Sg, useMemo as Ki, useState as ir } from "react";
3
+ import Pt, { forwardRef as uc, createElement as pr, useLayoutEffect as Sg, useMemo as Yi, useState as ir } from "react";
4
4
  import * as gn from "react-dom";
5
5
  import Rg from "react-dom";
6
6
  function dc(e) {
@@ -80,10 +80,10 @@ const Eg = (e, t) => {
80
80
  const n = pc();
81
81
  for (const r in e) {
82
82
  const o = e[r];
83
- ks(o, n, r, t);
83
+ Ns(o, n, r, t);
84
84
  }
85
85
  return n;
86
- }, ks = (e, t, n, r) => {
86
+ }, Ns = (e, t, n, r) => {
87
87
  const o = e.length;
88
88
  for (let i = 0; i < o; i++) {
89
89
  const s = e[i];
@@ -104,7 +104,7 @@ const Eg = (e, t) => {
104
104
  r.classGroupId = n;
105
105
  }, Tg = (e, t, n, r) => {
106
106
  if (Fg(e)) {
107
- ks(e(r), t, n, r);
107
+ Ns(e(r), t, n, r);
108
108
  return;
109
109
  }
110
110
  t.validators === null && (t.validators = []), t.validators.push(Ig(n, e));
@@ -112,7 +112,7 @@ const Eg = (e, t) => {
112
112
  const o = Object.entries(e), i = o.length;
113
113
  for (let s = 0; s < i; s++) {
114
114
  const [a, l] = o[s];
115
- ks(l, mc(t, a), n, r);
115
+ Ns(l, mc(t, a), n, r);
116
116
  }
117
117
  }, mc = (e, t) => {
118
118
  let n = e;
@@ -147,7 +147,7 @@ const Eg = (e, t) => {
147
147
  i in n ? n[i] = s : o(i, s);
148
148
  }
149
149
  };
150
- }, Yi = "!", $a = ":", Lg = [], za = (e, t, n, r, o) => ({
150
+ }, Xi = "!", $a = ":", Lg = [], za = (e, t, n, r, o) => ({
151
151
  modifiers: e,
152
152
  hasImportantModifier: t,
153
153
  baseClassName: n,
@@ -178,12 +178,12 @@ const Eg = (e, t) => {
178
178
  }
179
179
  const p = i.length === 0 ? o : o.slice(l);
180
180
  let g = p, f = !1;
181
- p.endsWith(Yi) ? (g = p.slice(0, -1), f = !0) : (
181
+ p.endsWith(Xi) ? (g = p.slice(0, -1), f = !0) : (
182
182
  /**
183
183
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
184
184
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
185
185
  */
186
- p.startsWith(Yi) && (g = p.slice(1), f = !0)
186
+ p.startsWith(Xi) && (g = p.slice(1), f = !0)
187
187
  );
188
188
  const h = c && c > l ? c - l : void 0;
189
189
  return za(i, f, g, h);
@@ -250,7 +250,7 @@ const Eg = (e, t) => {
250
250
  }
251
251
  b = !1;
252
252
  }
253
- const v = g.length === 0 ? "" : g.length === 1 ? g[0] : i(g).join(":"), w = f ? v + Yi : v, C = w + y;
253
+ const v = g.length === 0 ? "" : g.length === 1 ? g[0] : i(g).join(":"), w = f ? v + Xi : v, C = w + y;
254
254
  if (s.indexOf(C) > -1)
255
255
  continue;
256
256
  s.push(C);
@@ -290,12 +290,12 @@ const Eg = (e, t) => {
290
290
  }, Wg = [], Ue = (e) => {
291
291
  const t = (n) => n[e] || Wg;
292
292
  return t.isThemeGetter = !0, t;
293
- }, bc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, vc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ug = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qg = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Kg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yg = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Xg = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zg = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Jt = (e) => Ug.test(e), be = (e) => !!e && !Number.isNaN(Number(e)), en = (e) => !!e && Number.isInteger(Number(e)), bi = (e) => e.endsWith("%") && be(e.slice(0, -1)), Gt = (e) => qg.test(e), yc = () => !0, Qg = (e) => (
293
+ }, bc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, vc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ug = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qg = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Kg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yg = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Xg = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zg = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Jt = (e) => Ug.test(e), be = (e) => !!e && !Number.isNaN(Number(e)), en = (e) => !!e && Number.isInteger(Number(e)), vi = (e) => e.endsWith("%") && be(e.slice(0, -1)), Gt = (e) => qg.test(e), yc = () => !0, Qg = (e) => (
294
294
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
295
295
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
296
296
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
297
297
  Kg.test(e) && !Yg.test(e)
298
- ), Ns = () => !1, Jg = (e) => Xg.test(e), em = (e) => Zg.test(e), tm = (e) => !J(e) && !ee(e), nm = (e) => mn(e, wc, Ns), J = (e) => bc.test(e), wn = (e) => mn(e, Sc, Qg), Ha = (e) => mn(e, um, be), rm = (e) => mn(e, Ec, yc), om = (e) => mn(e, Rc, Ns), Ba = (e) => mn(e, xc, Ns), im = (e) => mn(e, Cc, em), _r = (e) => mn(e, Ic, Jg), ee = (e) => vc.test(e), Qn = (e) => _n(e, Sc), sm = (e) => _n(e, Rc), ja = (e) => _n(e, xc), am = (e) => _n(e, wc), lm = (e) => _n(e, Cc), Ar = (e) => _n(e, Ic, !0), cm = (e) => _n(e, Ec, !0), mn = (e, t, n) => {
298
+ ), Ps = () => !1, Jg = (e) => Xg.test(e), em = (e) => Zg.test(e), tm = (e) => !J(e) && !ee(e), nm = (e) => mn(e, wc, Ps), J = (e) => bc.test(e), wn = (e) => mn(e, Sc, Qg), Ha = (e) => mn(e, um, be), rm = (e) => mn(e, Ec, yc), om = (e) => mn(e, Rc, Ps), Ba = (e) => mn(e, xc, Ps), im = (e) => mn(e, Cc, em), _r = (e) => mn(e, Ic, Jg), ee = (e) => vc.test(e), Qn = (e) => _n(e, Sc), sm = (e) => _n(e, Rc), ja = (e) => _n(e, xc), am = (e) => _n(e, wc), lm = (e) => _n(e, Cc), Ar = (e) => _n(e, Ic, !0), cm = (e) => _n(e, Ec, !0), mn = (e, t, n) => {
299
299
  const r = bc.exec(e);
300
300
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
301
301
  }, _n = (e, t, n = !1) => {
@@ -328,7 +328,7 @@ const Eg = (e, t) => {
328
328
  repeat: ["", "x", "y", "space", "round"]
329
329
  }], we = () => ["auto", "cover", "contain", am, nm, {
330
330
  size: [ee, J]
331
- }], ae = () => [bi, Qn, wn], le = () => [
331
+ }], ae = () => [vi, Qn, wn], le = () => [
332
332
  // Deprecated since Tailwind CSS v4.0.0
333
333
  "",
334
334
  "none",
@@ -336,7 +336,7 @@ const Eg = (e, t) => {
336
336
  c,
337
337
  ee,
338
338
  J
339
- ], ye = () => ["", be, Qn, wn], Ee = () => ["solid", "dashed", "dotted", "double"], Ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], X = () => [be, bi, ja, Ba], he = () => [
339
+ ], ye = () => ["", be, Qn, wn], Ee = () => ["solid", "dashed", "dotted", "double"], Ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], X = () => [be, vi, ja, Ba], he = () => [
340
340
  // Deprecated since Tailwind CSS v4.0.0
341
341
  "",
342
342
  "none",
@@ -1156,7 +1156,7 @@ const Eg = (e, t) => {
1156
1156
  * @see https://tailwindcss.com/docs/font-stretch
1157
1157
  */
1158
1158
  "font-stretch": [{
1159
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", bi, J]
1159
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", vi, J]
1160
1160
  }],
1161
1161
  /**
1162
1162
  * Font Family
@@ -3053,7 +3053,7 @@ const Ua = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qa = fc, A
3053
3053
  ...r
3054
3054
  }
3055
3055
  );
3056
- }, Xi = Ae(
3056
+ }, Zi = Ae(
3057
3057
  `inline-flex items-center justify-center gap-2 px-2 transition-colors
3058
3058
  focus:outline-none`,
3059
3059
  {
@@ -3097,7 +3097,7 @@ const Ua = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qa = fc, A
3097
3097
  kind: "status"
3098
3098
  }
3099
3099
  });
3100
- function vi({
3100
+ function yi({
3101
3101
  variant: e,
3102
3102
  kind: t = "status",
3103
3103
  dotPosition: n,
@@ -3109,7 +3109,7 @@ function vi({
3109
3109
  return /* @__PURE__ */ ce(
3110
3110
  "div",
3111
3111
  {
3112
- className: L(Xi({ variant: e, kind: t, dotPosition: n }), a),
3112
+ className: L(Zi({ variant: e, kind: t, dotPosition: n }), a),
3113
3113
  ...i,
3114
3114
  children: [
3115
3115
  s && /* @__PURE__ */ x(
@@ -3140,7 +3140,7 @@ function Ka(e, t) {
3140
3140
  return e(t);
3141
3141
  e != null && (e.current = t);
3142
3142
  }
3143
- function Ps(...e) {
3143
+ function Os(...e) {
3144
3144
  return (t) => {
3145
3145
  let n = !1;
3146
3146
  const r = e.map((o) => {
@@ -3157,7 +3157,7 @@ function Ps(...e) {
3157
3157
  };
3158
3158
  }
3159
3159
  function Be(...e) {
3160
- return u.useCallback(Ps(...e), e);
3160
+ return u.useCallback(Os(...e), e);
3161
3161
  }
3162
3162
  var hm = /* @__PURE__ */ Symbol.for("react.lazy"), lo = u[" use ".trim().toString()];
3163
3163
  function bm(e) {
@@ -3187,7 +3187,7 @@ function ym(e) {
3187
3187
  let { children: o, ...i } = n;
3188
3188
  if (Pc(o) && typeof lo == "function" && (o = lo(o._payload)), u.isValidElement(o)) {
3189
3189
  const s = Sm(o), a = wm(i, o.props);
3190
- return o.type !== u.Fragment && (a.ref = r ? Ps(r, s) : s), u.cloneElement(o, a);
3190
+ return o.type !== u.Fragment && (a.ref = r ? Os(r, s) : s), u.cloneElement(o, a);
3191
3191
  }
3192
3192
  return u.Children.count(o) > 1 ? u.Children.only(null) : null;
3193
3193
  });
@@ -3509,7 +3509,7 @@ function $m({
3509
3509
  function zm(e) {
3510
3510
  return typeof e == "function";
3511
3511
  }
3512
- function Os(e) {
3512
+ function _s(e) {
3513
3513
  const t = u.useRef({ value: e, previous: e });
3514
3514
  return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
3515
3515
  }
@@ -3617,7 +3617,7 @@ function jm(e) {
3617
3617
  const { children: o, ...i } = n;
3618
3618
  if (u.isValidElement(o)) {
3619
3619
  const s = Km(o), a = qm(i, o.props);
3620
- return o.type !== u.Fragment && (a.ref = r ? Ps(r, s) : s), u.cloneElement(o, a);
3620
+ return o.type !== u.Fragment && (a.ref = r ? Os(r, s) : s), u.cloneElement(o, a);
3621
3621
  }
3622
3622
  return u.Children.count(o) > 1 ? u.Children.only(null) : null;
3623
3623
  });
@@ -3675,7 +3675,7 @@ var Ym = [
3675
3675
  function Xm(e, t) {
3676
3676
  e && gn.flushSync(() => e.dispatchEvent(t));
3677
3677
  }
3678
- var No = "Checkbox", [Zm] = Lt(No), [Qm, _s] = Zm(No);
3678
+ var No = "Checkbox", [Zm] = Lt(No), [Qm, As] = Zm(No);
3679
3679
  function Jm(e) {
3680
3680
  const {
3681
3681
  __scopeCheckbox: t,
@@ -3736,7 +3736,7 @@ var Mc = "CheckboxTrigger", Tc = u.forwardRef(
3736
3736
  hasConsumerStoppedPropagationRef: g,
3737
3737
  isFormControl: f,
3738
3738
  bubbleInput: h
3739
- } = _s(Mc, e), m = Be(o, d), b = u.useRef(l);
3739
+ } = As(Mc, e), m = Be(o, d), b = u.useRef(l);
3740
3740
  return u.useEffect(() => {
3741
3741
  const y = i?.form;
3742
3742
  if (y) {
@@ -3767,7 +3767,7 @@ var Mc = "CheckboxTrigger", Tc = u.forwardRef(
3767
3767
  }
3768
3768
  );
3769
3769
  Tc.displayName = Mc;
3770
- var As = u.forwardRef(
3770
+ var Ms = u.forwardRef(
3771
3771
  (e, t) => {
3772
3772
  const {
3773
3773
  __scopeCheckbox: n,
@@ -3813,10 +3813,10 @@ var As = u.forwardRef(
3813
3813
  );
3814
3814
  }
3815
3815
  );
3816
- As.displayName = No;
3816
+ Ms.displayName = No;
3817
3817
  var Dc = "CheckboxIndicator", Fc = u.forwardRef(
3818
3818
  (e, t) => {
3819
- const { __scopeCheckbox: n, forceMount: r, ...o } = e, i = _s(Dc, n);
3819
+ const { __scopeCheckbox: n, forceMount: r, ...o } = e, i = As(Dc, n);
3820
3820
  return /* @__PURE__ */ x(
3821
3821
  qt,
3822
3822
  {
@@ -3850,7 +3850,7 @@ var Vc = "CheckboxBubbleInput", Lc = u.forwardRef(
3850
3850
  form: p,
3851
3851
  bubbleInput: g,
3852
3852
  setBubbleInput: f
3853
- } = _s(Vc, e), h = Be(n, f), m = Os(i), b = ko(r);
3853
+ } = As(Vc, e), h = Be(n, f), m = _s(i), b = ko(r);
3854
3854
  u.useEffect(() => {
3855
3855
  const v = g;
3856
3856
  if (!v) return;
@@ -4238,14 +4238,14 @@ const ib = [
4238
4238
  const ab = [
4239
4239
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
4240
4240
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
4241
- ], Ms = ke("x", ab), lb = {
4241
+ ], Ts = ke("x", ab), lb = {
4242
4242
  settings: Qh,
4243
4243
  plus: Uh,
4244
4244
  wrench: sb,
4245
4245
  phone: jh,
4246
4246
  palette: Hh,
4247
4247
  building: ph,
4248
- close: Ms,
4248
+ close: Ts,
4249
4249
  done: zc,
4250
4250
  check: Gc,
4251
4251
  users: ob,
@@ -4306,7 +4306,7 @@ const ab = [
4306
4306
  "enabled:hover:data-[state=checked]:bg-primary-inverse-hover-bg",
4307
4307
  "enabled:hover:data-[state=checked]:border-primary-inverse-hover-bg"
4308
4308
  ].join(" "), db = "grid place-content-center text-current", Uc = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
4309
- As,
4309
+ Ms,
4310
4310
  {
4311
4311
  ref: t,
4312
4312
  className: L(ub, e),
@@ -4320,8 +4320,8 @@ const ab = [
4320
4320
  ) })
4321
4321
  }
4322
4322
  );
4323
- Uc.displayName = As.displayName;
4324
- function yi({
4323
+ Uc.displayName = Ms.displayName;
4324
+ function xi({
4325
4325
  controlled: e,
4326
4326
  default: t,
4327
4327
  name: n,
@@ -4353,10 +4353,10 @@ function wt(e, t) {
4353
4353
  const n = u.useRef(Xa);
4354
4354
  return n.current === Xa && (n.current = e(t)), n;
4355
4355
  }
4356
- const xi = u[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], fb = (
4356
+ const Ci = u[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], fb = (
4357
4357
  // React 17 doesn't have useInsertionEffect.
4358
- xi && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
4359
- xi !== u.useLayoutEffect ? xi : (e) => e()
4358
+ Ci && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
4359
+ Ci !== u.useLayoutEffect ? Ci : (e) => e()
4360
4360
  );
4361
4361
  function re(e) {
4362
4362
  const t = wt(pb).current;
@@ -4381,7 +4381,7 @@ function gb() {
4381
4381
  );
4382
4382
  }
4383
4383
  const mb = () => {
4384
- }, oe = typeof document < "u" ? u.useLayoutEffect : mb, Ts = /* @__PURE__ */ u.createContext({
4384
+ }, oe = typeof document < "u" ? u.useLayoutEffect : mb, Ds = /* @__PURE__ */ u.createContext({
4385
4385
  register: () => {
4386
4386
  },
4387
4387
  unregister: () => {
@@ -4395,9 +4395,9 @@ const mb = () => {
4395
4395
  current: 0
4396
4396
  }
4397
4397
  });
4398
- process.env.NODE_ENV !== "production" && (Ts.displayName = "CompositeListContext");
4398
+ process.env.NODE_ENV !== "production" && (Ds.displayName = "CompositeListContext");
4399
4399
  function hb() {
4400
- return u.useContext(Ts);
4400
+ return u.useContext(Ds);
4401
4401
  }
4402
4402
  function qc(e) {
4403
4403
  const {
@@ -4456,7 +4456,7 @@ function qc(e) {
4456
4456
  labelsRef: r,
4457
4457
  nextIndexRef: s
4458
4458
  }), [g, f, m, n, r, s]);
4459
- return /* @__PURE__ */ x(Ts.Provider, {
4459
+ return /* @__PURE__ */ x(Ds.Provider, {
4460
4460
  value: b,
4461
4461
  children: t
4462
4462
  });
@@ -4545,16 +4545,16 @@ function Zc(e, t) {
4545
4545
  };
4546
4546
  }
4547
4547
  const Sb = parseInt(u.version, 10);
4548
- function Ds(e) {
4548
+ function Fs(e) {
4549
4549
  return Sb >= e;
4550
4550
  }
4551
4551
  function Za(e) {
4552
4552
  if (!/* @__PURE__ */ u.isValidElement(e))
4553
4553
  return null;
4554
4554
  const t = e, n = t.props;
4555
- return (Ds(19) ? n?.ref : t.ref) ?? null;
4555
+ return (Fs(19) ? n?.ref : t.ref) ?? null;
4556
4556
  }
4557
- function Zi(e, t) {
4557
+ function Qi(e, t) {
4558
4558
  if (e && !t)
4559
4559
  return e;
4560
4560
  if (!e && t)
@@ -4587,7 +4587,7 @@ function Ib(e, t) {
4587
4587
  const sr = {};
4588
4588
  function Qc(e, t, n, r, o) {
4589
4589
  let i = {
4590
- ...Qi(e, sr)
4590
+ ...Ji(e, sr)
4591
4591
  };
4592
4592
  return t && (i = no(i, t)), n && (i = no(i, n)), r && (i = no(i, r)), i;
4593
4593
  }
@@ -4595,9 +4595,9 @@ function kb(e) {
4595
4595
  if (e.length === 0)
4596
4596
  return sr;
4597
4597
  if (e.length === 1)
4598
- return Qi(e[0], sr);
4598
+ return Ji(e[0], sr);
4599
4599
  let t = {
4600
- ...Qi(e[0], sr)
4600
+ ...Ji(e[0], sr)
4601
4601
  };
4602
4602
  for (let n = 1; n < e.length; n += 1)
4603
4603
  t = no(t, e[n]);
@@ -4613,7 +4613,7 @@ function Nb(e, t) {
4613
4613
  const r = t[n];
4614
4614
  switch (n) {
4615
4615
  case "style": {
4616
- e[n] = Zi(e.style, r);
4616
+ e[n] = Qi(e.style, r);
4617
4617
  break;
4618
4618
  }
4619
4619
  case "className": {
@@ -4633,14 +4633,14 @@ function Pb(e, t) {
4633
4633
  function Jc(e) {
4634
4634
  return typeof e == "function";
4635
4635
  }
4636
- function Qi(e, t) {
4636
+ function Ji(e, t) {
4637
4637
  return Jc(e) ? e(t) : e ?? sr;
4638
4638
  }
4639
4639
  function Ob(e, t) {
4640
4640
  return t ? e ? (n) => {
4641
4641
  if (_b(n)) {
4642
4642
  const o = n;
4643
- Ji(o);
4643
+ es(o);
4644
4644
  const i = t(o);
4645
4645
  return o.baseUIHandlerPrevented || e?.(o), i;
4646
4646
  }
@@ -4648,7 +4648,7 @@ function Ob(e, t) {
4648
4648
  return e?.(n), r;
4649
4649
  } : t : e;
4650
4650
  }
4651
- function Ji(e) {
4651
+ function es(e) {
4652
4652
  return e.preventBaseUIHandler = () => {
4653
4653
  e.baseUIHandlerPrevented = !0;
4654
4654
  }, e;
@@ -4691,8 +4691,8 @@ function Fb(e, t = {}) {
4691
4691
  props: a,
4692
4692
  stateAttributesMapping: l,
4693
4693
  enabled: c = !0
4694
- } = t, d = c ? Eb(n, i) : void 0, p = c ? Ib(r, i) : void 0, g = c ? Rb(i, l) : rt, f = c ? Zi(g, Array.isArray(a) ? kb(a) : a) ?? rt : rt;
4695
- return typeof document < "u" && (c ? Array.isArray(s) ? f.ref = xb([f.ref, Za(o), ...s]) : f.ref = mr(f.ref, Za(o), s) : mr(null, null)), c ? (d !== void 0 && (f.className = eu(f.className, d)), p !== void 0 && (f.style = Zi(f.style, p)), f) : rt;
4694
+ } = t, d = c ? Eb(n, i) : void 0, p = c ? Ib(r, i) : void 0, g = c ? Rb(i, l) : rt, f = c ? Qi(g, Array.isArray(a) ? kb(a) : a) ?? rt : rt;
4695
+ return typeof document < "u" && (c ? Array.isArray(s) ? f.ref = xb([f.ref, Za(o), ...s]) : f.ref = mr(f.ref, Za(o), s) : mr(null, null)), c ? (d !== void 0 && (f.className = eu(f.className, d)), p !== void 0 && (f.style = Qi(f.style, p)), f) : rt;
4696
4696
  }
4697
4697
  const Vb = /* @__PURE__ */ Symbol.for("react.lazy");
4698
4698
  function Lb(e, t, n, r) {
@@ -4722,7 +4722,7 @@ function $b(e, t) {
4722
4722
  key: t.key
4723
4723
  }) : /* @__PURE__ */ u.createElement(e, t);
4724
4724
  }
4725
- const yt = "none", es = "trigger-press", zb = "trigger-hover", Fs = "outside-press", Gb = "item-press", Qa = "clear-press", Hb = "chip-remove-press", Ln = "input-change", nn = "input-clear", Bb = "input-press", Po = "focus-out", tu = "escape-key", ar = "list-navigation";
4725
+ const yt = "none", ts = "trigger-press", zb = "trigger-hover", Vs = "outside-press", Gb = "item-press", Qa = "clear-press", Hb = "chip-remove-press", Ln = "input-change", nn = "input-clear", Bb = "input-press", Po = "focus-out", tu = "escape-key", ar = "list-navigation";
4726
4726
  function ge(e, t, n, r) {
4727
4727
  let o = !1, i = !1;
4728
4728
  const s = rt;
@@ -4753,7 +4753,7 @@ function Jn(e, t, n) {
4753
4753
  ...r
4754
4754
  };
4755
4755
  }
4756
- const ts = {
4756
+ const ns = {
4757
4757
  ...u
4758
4758
  };
4759
4759
  let Ja = 0;
@@ -4763,16 +4763,16 @@ function jb(e, t = "mui") {
4763
4763
  n == null && (Ja += 1, r(`${t}-${Ja}`));
4764
4764
  }, [n, t]), o;
4765
4765
  }
4766
- const el = ts.useId;
4767
- function Vs(e, t) {
4766
+ const el = ns.useId;
4767
+ function Ls(e, t) {
4768
4768
  if (el !== void 0) {
4769
4769
  const n = el();
4770
4770
  return e ?? (t ? `${t}-${n}` : n);
4771
4771
  }
4772
4772
  return jb(e, t);
4773
4773
  }
4774
- function Ls(e) {
4775
- return Vs(e, "base-ui");
4774
+ function $s(e) {
4775
+ return Ls(e, "base-ui");
4776
4776
  }
4777
4777
  const Wb = [];
4778
4778
  function nu(e) {
@@ -4836,7 +4836,7 @@ class Tt {
4836
4836
  };
4837
4837
  disposeEffect = () => this.cancel;
4838
4838
  }
4839
- function $s() {
4839
+ function zs() {
4840
4840
  const e = wt(Tt.create).current;
4841
4841
  return nu(e.disposeEffect), e;
4842
4842
  }
@@ -4856,7 +4856,7 @@ const qb = {
4856
4856
  }
4857
4857
  };
4858
4858
  function Yb(e, t = !1, n = !0) {
4859
- const r = $s();
4859
+ const r = zs();
4860
4860
  return re((o, i = null) => {
4861
4861
  r.cancel();
4862
4862
  function s() {
@@ -4992,7 +4992,7 @@ function Oo() {
4992
4992
  return typeof window < "u";
4993
4993
  }
4994
4994
  function hn(e) {
4995
- return zs(e) ? (e.nodeName || "").toLowerCase() : "#document";
4995
+ return Gs(e) ? (e.nodeName || "").toLowerCase() : "#document";
4996
4996
  }
4997
4997
  function Ze(e) {
4998
4998
  var t;
@@ -5000,9 +5000,9 @@ function Ze(e) {
5000
5000
  }
5001
5001
  function $t(e) {
5002
5002
  var t;
5003
- return (t = (zs(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
5003
+ return (t = (Gs(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
5004
5004
  }
5005
- function zs(e) {
5005
+ function Gs(e) {
5006
5006
  return Oo() ? e instanceof Node || e instanceof Ze(e).Node : !1;
5007
5007
  }
5008
5008
  function Fe(e) {
@@ -5011,7 +5011,7 @@ function Fe(e) {
5011
5011
  function je(e) {
5012
5012
  return Oo() ? e instanceof HTMLElement || e instanceof Ze(e).HTMLElement : !1;
5013
5013
  }
5014
- function ns(e) {
5014
+ function rs(e) {
5015
5015
  return !Oo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ze(e).ShadowRoot;
5016
5016
  }
5017
5017
  function bn(e) {
@@ -5039,15 +5039,15 @@ function _o(e) {
5039
5039
  }
5040
5040
  }
5041
5041
  const Zb = /transform|translate|scale|rotate|perspective|filter/, Qb = /paint|layout|strict|content/, Sn = (e) => !!e && e !== "none";
5042
- let Ci;
5043
- function Gs(e) {
5042
+ let wi;
5043
+ function Hs(e) {
5044
5044
  const t = Fe(e) ? ht(e) : e;
5045
5045
  return Sn(t.transform) || Sn(t.translate) || Sn(t.scale) || Sn(t.rotate) || Sn(t.perspective) || !Ao() && (Sn(t.backdropFilter) || Sn(t.filter)) || Zb.test(t.willChange || "") || Qb.test(t.contain || "");
5046
5046
  }
5047
5047
  function Jb(e) {
5048
5048
  let t = Ut(e);
5049
5049
  for (; je(t) && !Wt(t); ) {
5050
- if (Gs(t))
5050
+ if (Hs(t))
5051
5051
  return t;
5052
5052
  if (_o(t))
5053
5053
  return null;
@@ -5056,7 +5056,7 @@ function Jb(e) {
5056
5056
  return null;
5057
5057
  }
5058
5058
  function Ao() {
5059
- return Ci == null && (Ci = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Ci;
5059
+ return wi == null && (wi = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), wi;
5060
5060
  }
5061
5061
  function Wt(e) {
5062
5062
  return /^(html|body|#document)$/.test(hn(e));
@@ -5080,10 +5080,10 @@ function Ut(e) {
5080
5080
  // Step into the shadow DOM of the parent of a slotted node.
5081
5081
  e.assignedSlot || // DOM Element detected.
5082
5082
  e.parentNode || // ShadowRoot detected.
5083
- ns(e) && e.host || // Fallback.
5083
+ rs(e) && e.host || // Fallback.
5084
5084
  $t(e)
5085
5085
  );
5086
- return ns(t) ? t.host : t;
5086
+ return rs(t) ? t.host : t;
5087
5087
  }
5088
5088
  function au(e) {
5089
5089
  const t = Ut(e);
@@ -5094,20 +5094,20 @@ function ln(e, t, n) {
5094
5094
  t === void 0 && (t = []), n === void 0 && (n = !0);
5095
5095
  const o = au(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = Ze(o);
5096
5096
  if (i) {
5097
- const a = rs(s);
5097
+ const a = os(s);
5098
5098
  return t.concat(s, s.visualViewport || [], bn(o) ? o : [], a && n ? ln(a) : []);
5099
5099
  } else
5100
5100
  return t.concat(o, ln(o, [], n));
5101
5101
  }
5102
- function rs(e) {
5102
+ function os(e) {
5103
5103
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
5104
5104
  }
5105
- let os;
5106
- process.env.NODE_ENV !== "production" && (os = /* @__PURE__ */ new Set());
5105
+ let is;
5106
+ process.env.NODE_ENV !== "production" && (is = /* @__PURE__ */ new Set());
5107
5107
  function nl(...e) {
5108
5108
  if (process.env.NODE_ENV !== "production") {
5109
5109
  const t = e.join(" ");
5110
- os.has(t) || (os.add(t), console.error(`Base UI: ${t}`));
5110
+ is.has(t) || (is.add(t), console.error(`Base UI: ${t}`));
5111
5111
  }
5112
5112
  }
5113
5113
  const lu = /* @__PURE__ */ u.createContext(void 0);
@@ -5162,11 +5162,11 @@ function To(e = {}) {
5162
5162
  const g = i.current.tagName === "BUTTON";
5163
5163
  if (o) {
5164
5164
  if (!g) {
5165
- const f = ts.captureOwnerStack?.() || "";
5165
+ const f = ns.captureOwnerStack?.() || "";
5166
5166
  nl(`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\`.${f}`);
5167
5167
  }
5168
5168
  } else if (g) {
5169
- const f = ts.captureOwnerStack?.() || "";
5169
+ const f = ns.captureOwnerStack?.() || "";
5170
5170
  nl(`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\`.${f}`);
5171
5171
  }
5172
5172
  }, [o]);
@@ -5197,13 +5197,13 @@ function To(e = {}) {
5197
5197
  t || h?.(C);
5198
5198
  },
5199
5199
  onKeyDown(C) {
5200
- if (t || (Ji(C), b?.(C)), C.baseUIHandlerPrevented)
5200
+ if (t || (es(C), b?.(C)), C.baseUIHandlerPrevented)
5201
5201
  return;
5202
5202
  const S = C.target === C.currentTarget && !o && !a() && !t, I = C.key === "Enter", E = C.key === " ";
5203
5203
  S && ((E || I) && C.preventDefault(), I && f?.(C));
5204
5204
  },
5205
5205
  onKeyUp(C) {
5206
- t || (Ji(C), m?.(C)), !C.baseUIHandlerPrevented && C.target === C.currentTarget && !o && !t && C.key === " " && f?.(C);
5206
+ t || (es(C), m?.(C)), !C.baseUIHandlerPrevented && C.target === C.currentTarget && !o && !t && C.key === " " && f?.(C);
5207
5207
  },
5208
5208
  onPointerDown(C) {
5209
5209
  if (t) {
@@ -5226,12 +5226,12 @@ function To(e = {}) {
5226
5226
  function nv(e) {
5227
5227
  return je(e) && e.tagName === "BUTTON";
5228
5228
  }
5229
- const Mn = typeof navigator < "u", wi = iv(), cu = av(), Hs = sv(), uu = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), du = (
5229
+ const Mn = typeof navigator < "u", Si = iv(), cu = av(), Bs = sv(), uu = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), du = (
5230
5230
  // iPads can claim to be MacIntel
5231
- wi.platform === "MacIntel" && wi.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(wi.platform)
5232
- ), rl = Mn && /firefox/i.test(Hs), rv = Mn && /apple/i.test(navigator.vendor), uo = Mn && /android/i.test(cu) || /android/i.test(Hs);
5231
+ Si.platform === "MacIntel" && Si.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(Si.platform)
5232
+ ), rl = Mn && /firefox/i.test(Bs), rv = Mn && /apple/i.test(navigator.vendor), uo = Mn && /android/i.test(cu) || /android/i.test(Bs);
5233
5233
  Mn && cu.toLowerCase().startsWith("mac") && navigator.maxTouchPoints;
5234
- const ov = Hs.includes("jsdom/");
5234
+ const ov = Bs.includes("jsdom/");
5235
5235
  function iv() {
5236
5236
  if (!Mn)
5237
5237
  return {
@@ -5262,7 +5262,7 @@ function av() {
5262
5262
  const e = navigator.userAgentData;
5263
5263
  return e?.platform ? e.platform : navigator.platform ?? "";
5264
5264
  }
5265
- const is = "data-base-ui-focusable", fu = "active", pu = "selected", lv = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", cn = "ArrowLeft", un = "ArrowRight", Bs = "ArrowUp", yr = "ArrowDown";
5265
+ const ss = "data-base-ui-focusable", fu = "active", pu = "selected", lv = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", cn = "ArrowLeft", un = "ArrowRight", js = "ArrowUp", yr = "ArrowDown";
5266
5266
  function jt(e) {
5267
5267
  let t = e.activeElement;
5268
5268
  for (; t?.shadowRoot?.activeElement != null; )
@@ -5275,7 +5275,7 @@ function Ie(e, t) {
5275
5275
  const n = t.getRootNode?.();
5276
5276
  if (e.contains(t))
5277
5277
  return !0;
5278
- if (n && ns(n)) {
5278
+ if (n && rs(n)) {
5279
5279
  let r = t;
5280
5280
  for (; r; ) {
5281
5281
  if (e === r)
@@ -5299,14 +5299,14 @@ function Nt(e, t) {
5299
5299
  function cv(e) {
5300
5300
  return e.matches("html,body");
5301
5301
  }
5302
- function js(e) {
5302
+ function Ws(e) {
5303
5303
  return je(e) && e.matches(lv);
5304
5304
  }
5305
- function ss(e) {
5306
- return e ? e.getAttribute("role") === "combobox" && js(e) : !1;
5307
- }
5308
5305
  function as(e) {
5309
- return e ? e.hasAttribute(is) ? e : e.querySelector(`[${is}]`) || e : null;
5306
+ return e ? e.getAttribute("role") === "combobox" && Ws(e) : !1;
5307
+ }
5308
+ function ls(e) {
5309
+ return e ? e.hasAttribute(ss) ? e : e.querySelector(`[${ss}]`) || e : null;
5310
5310
  }
5311
5311
  function zn(e, t, n = !0) {
5312
5312
  return e.filter((o) => o.parentId === t && (!n || o.context?.open)).flatMap((o) => [o, ...zn(e, o.id, n)]);
@@ -5360,7 +5360,7 @@ function mt(e) {
5360
5360
  function Kt(e) {
5361
5361
  return e.split("-")[1];
5362
5362
  }
5363
- function Ws(e) {
5363
+ function Us(e) {
5364
5364
  return e === "x" ? "y" : "x";
5365
5365
  }
5366
5366
  function Do(e) {
@@ -5371,7 +5371,7 @@ function Ct(e) {
5371
5371
  return t === "t" || t === "b" ? "y" : "x";
5372
5372
  }
5373
5373
  function Fo(e) {
5374
- return Ws(Ct(e));
5374
+ return Us(Ct(e));
5375
5375
  }
5376
5376
  function pv(e, t, n) {
5377
5377
  n === void 0 && (n = !1);
@@ -5381,9 +5381,9 @@ function pv(e, t, n) {
5381
5381
  }
5382
5382
  function gv(e) {
5383
5383
  const t = go(e);
5384
- return [ls(e), t, ls(t)];
5384
+ return [cs(e), t, cs(t)];
5385
5385
  }
5386
- function ls(e) {
5386
+ function cs(e) {
5387
5387
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
5388
5388
  }
5389
5389
  const sl = ["left", "right"], al = ["right", "left"], mv = ["top", "bottom"], hv = ["bottom", "top"];
@@ -5402,7 +5402,7 @@ function bv(e, t, n) {
5402
5402
  function vv(e, t, n, r) {
5403
5403
  const o = Kt(e);
5404
5404
  let i = bv(mt(e), n === "start", r);
5405
- return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(ls)))), i;
5405
+ return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(cs)))), i;
5406
5406
  }
5407
5407
  function go(e) {
5408
5408
  const t = mt(e);
@@ -5417,7 +5417,7 @@ function yv(e) {
5417
5417
  ...e
5418
5418
  };
5419
5419
  }
5420
- function Us(e) {
5420
+ function qs(e) {
5421
5421
  return typeof e != "number" ? yv(e) : {
5422
5422
  top: e,
5423
5423
  right: e,
@@ -5449,7 +5449,7 @@ function $r(e, t, n) {
5449
5449
  function lr(e, t) {
5450
5450
  return t < 0 || t >= e.current.length;
5451
5451
  }
5452
- function Si(e, t) {
5452
+ function Ri(e, t) {
5453
5453
  return tt(e, {
5454
5454
  disabledIndices: t
5455
5455
  });
@@ -5524,7 +5524,7 @@ function xv(e, {
5524
5524
  C = y === "up" ? C - 1 : C + 1, r && (C < 0 ? C = g.length - 1 : C >= g.length && (C = 0));
5525
5525
  }
5526
5526
  }
5527
- if (t.key === Bs) {
5527
+ if (t.key === js) {
5528
5528
  const y = b("up");
5529
5529
  if (y !== void 0)
5530
5530
  d && De(t), p = y;
@@ -5796,11 +5796,11 @@ var Rv = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
5796
5796
  n = n.parentElement;
5797
5797
  }
5798
5798
  return !1;
5799
- }, cs = function(t, n) {
5799
+ }, us = function(t, n) {
5800
5800
  return !(n.disabled || Nv(n) || Dv(n, t) || // For a details element with a summary, the summary element gets the focus
5801
5801
  Pv(n) || Fv(n));
5802
- }, us = function(t, n) {
5803
- return !(Mv(n) || xu(n) < 0 || !cs(t, n));
5802
+ }, ds = function(t, n) {
5803
+ return !(Mv(n) || xu(n) < 0 || !us(t, n));
5804
5804
  }, Vv = function(t) {
5805
5805
  var n = parseInt(t.getAttribute("tabindex"), 10);
5806
5806
  return !!(isNaN(n) || n >= 0);
@@ -5822,23 +5822,23 @@ var Rv = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
5822
5822
  n = n || {};
5823
5823
  var r;
5824
5824
  return n.getShadowRoot ? r = yo([t], n.includeContainer, {
5825
- filter: us.bind(null, n),
5825
+ filter: ds.bind(null, n),
5826
5826
  flatten: !1,
5827
5827
  getShadowRoot: n.getShadowRoot,
5828
5828
  shadowRootFilter: Vv
5829
- }) : r = vu(t, n.includeContainer, us.bind(null, n)), wu(r);
5829
+ }) : r = vu(t, n.includeContainer, ds.bind(null, n)), wu(r);
5830
5830
  }, Lv = function(t, n) {
5831
5831
  n = n || {};
5832
5832
  var r;
5833
5833
  return n.getShadowRoot ? r = yo([t], n.includeContainer, {
5834
- filter: cs.bind(null, n),
5834
+ filter: us.bind(null, n),
5835
5835
  flatten: !0,
5836
5836
  getShadowRoot: n.getShadowRoot
5837
- }) : r = vu(t, n.includeContainer, cs.bind(null, n)), r;
5837
+ }) : r = vu(t, n.includeContainer, us.bind(null, n)), r;
5838
5838
  }, Su = function(t, n) {
5839
5839
  if (n = n || {}, !t)
5840
5840
  throw new Error("No node provided");
5841
- return Wn.call(t, ho) === !1 ? !1 : us(n, t);
5841
+ return Wn.call(t, ho) === !1 ? !1 : ds(n, t);
5842
5842
  };
5843
5843
  function He(e) {
5844
5844
  return e?.ownerDocument || document;
@@ -5880,7 +5880,7 @@ function ul(e) {
5880
5880
  delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
5881
5881
  });
5882
5882
  }
5883
- function qs(e) {
5883
+ function Ks(e) {
5884
5884
  const {
5885
5885
  enabled: t = !0,
5886
5886
  open: n,
@@ -6082,7 +6082,7 @@ const Ou = {
6082
6082
  width: 1,
6083
6083
  height: 1,
6084
6084
  margin: -1
6085
- }, Ks = {
6085
+ }, Ys = {
6086
6086
  ...Ou,
6087
6087
  position: "fixed",
6088
6088
  top: 0,
@@ -6097,7 +6097,7 @@ const Ou = {
6097
6097
  }, []), /* @__PURE__ */ x("span", {
6098
6098
  ...t,
6099
6099
  ref: n,
6100
- style: Ks,
6100
+ style: Ys,
6101
6101
  "aria-hidden": r ? void 0 : !0,
6102
6102
  ...{
6103
6103
  tabIndex: 0,
@@ -6129,7 +6129,7 @@ const Gn = {
6129
6129
  function ml(e) {
6130
6130
  return e === "inert" ? Gn.inert : e === "aria-hidden" ? Gn["aria-hidden"] : Gn.none;
6131
6131
  }
6132
- let zr = /* @__PURE__ */ new WeakSet(), Gr = {}, Ri = 0;
6132
+ let zr = /* @__PURE__ */ new WeakSet(), Gr = {}, Ei = 0;
6133
6133
  const _u = (e) => e && (e.host || _u(e.parentNode)), Xv = (e, t) => t.map((n) => {
6134
6134
  if (e.contains(n))
6135
6135
  return n;
@@ -6155,27 +6155,27 @@ function Zv(e, t, n, r) {
6155
6155
  }
6156
6156
  });
6157
6157
  }
6158
- return Ri += 1, () => {
6158
+ return Ei += 1, () => {
6159
6159
  c.forEach((f) => {
6160
6160
  const h = ml(i), b = (h.get(f) || 0) - 1, y = (d.get(f) || 0) - 1;
6161
6161
  h.set(f, b), d.set(f, y), b || (!zr.has(f) && i && f.removeAttribute(i), zr.delete(f)), y || f.removeAttribute(o);
6162
- }), Ri -= 1, Ri || (Gn.inert = /* @__PURE__ */ new WeakMap(), Gn["aria-hidden"] = /* @__PURE__ */ new WeakMap(), Gn.none = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakSet(), Gr = {});
6162
+ }), Ei -= 1, Ei || (Gn.inert = /* @__PURE__ */ new WeakMap(), Gn["aria-hidden"] = /* @__PURE__ */ new WeakMap(), Gn.none = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakSet(), Gr = {});
6163
6163
  };
6164
6164
  }
6165
6165
  function Qv(e, t = !1, n = !1) {
6166
6166
  const r = He(e[0]).body;
6167
6167
  return Zv(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n);
6168
6168
  }
6169
- const Ys = /* @__PURE__ */ u.createContext(null);
6170
- process.env.NODE_ENV !== "production" && (Ys.displayName = "PortalContext");
6171
- const Au = () => u.useContext(Ys), Jv = xo("portal");
6169
+ const Xs = /* @__PURE__ */ u.createContext(null);
6170
+ process.env.NODE_ENV !== "production" && (Xs.displayName = "PortalContext");
6171
+ const Au = () => u.useContext(Xs), Jv = xo("portal");
6172
6172
  function ey(e = {}) {
6173
6173
  const {
6174
6174
  ref: t,
6175
6175
  container: n,
6176
6176
  componentProps: r = rt,
6177
6177
  elementProps: o
6178
- } = e, i = Vs(), a = Au()?.portalNode, [l, c] = u.useState(null), [d, p] = u.useState(null), g = re((b) => {
6178
+ } = e, i = Ls(), a = Au()?.portalNode, [l, c] = u.useState(null), [d, p] = u.useState(null), g = re((b) => {
6179
6179
  b !== null && p(b);
6180
6180
  }), f = u.useRef(null);
6181
6181
  oe(() => {
@@ -6185,7 +6185,7 @@ function ey(e = {}) {
6185
6185
  }
6186
6186
  if (i == null)
6187
6187
  return;
6188
- const b = (n && (zs(n) ? n : n.current)) ?? a ?? document.body;
6188
+ const b = (n && (Gs(n) ? n : n.current)) ?? a ?? document.body;
6189
6189
  if (b == null) {
6190
6190
  f.current && (f.current = null, p(null), c(null));
6191
6191
  return;
@@ -6242,7 +6242,7 @@ const Mu = /* @__PURE__ */ u.forwardRef(function(t, n) {
6242
6242
  setFocusManagerState: b
6243
6243
  }), [c]);
6244
6244
  return /* @__PURE__ */ ce(u.Fragment, {
6245
- children: [d, /* @__PURE__ */ ce(Ys.Provider, {
6245
+ children: [d, /* @__PURE__ */ ce(Xs.Provider, {
6246
6246
  value: C,
6247
6247
  children: [w && c && /* @__PURE__ */ x(br, {
6248
6248
  "data-type": "outside",
@@ -6280,14 +6280,14 @@ function ty(e, t) {
6280
6280
  }
6281
6281
  const hl = 20;
6282
6282
  let rn = [];
6283
- function Xs() {
6283
+ function Zs() {
6284
6284
  rn = rn.filter((e) => e.deref()?.isConnected);
6285
6285
  }
6286
6286
  function ny(e) {
6287
- Xs(), e && hn(e) !== "body" && (rn.push(new WeakRef(e)), rn.length > hl && (rn = rn.slice(-hl)));
6287
+ Zs(), e && hn(e) !== "body" && (rn.push(new WeakRef(e)), rn.length > hl && (rn = rn.slice(-hl)));
6288
6288
  }
6289
- function Ei() {
6290
- return Xs(), rn[rn.length - 1]?.deref();
6289
+ function Ii() {
6290
+ return Zs(), rn[rn.length - 1]?.deref();
6291
6291
  }
6292
6292
  function ry(e) {
6293
6293
  if (!e)
@@ -6325,7 +6325,7 @@ function iy(e) {
6325
6325
  } = e, h = "rootStore" in t ? t.rootStore : t, m = h.useState("open"), b = h.useState("domReferenceElement"), y = h.useState("floatingElement"), {
6326
6326
  events: v,
6327
6327
  dataRef: w
6328
- } = h.context, C = re(() => w.current.floatingContext?.nodeId), S = o === !1, I = ss(b) && S, E = u.useRef(["content"]), R = xt(o), D = xt(i), W = xt(c), j = Lo(f), O = Au(), K = u.useRef(null), Y = u.useRef(null), G = u.useRef(!1), N = u.useRef(!1), H = u.useRef(!1), $ = u.useRef(-1), te = u.useRef(""), _ = u.useRef(""), Re = u.useRef(null), me = u.useRef(null), we = mr(Re, g, O?.beforeInsideRef), ae = mr(me, O?.afterInsideRef), le = In(), ye = In(), Ee = $s(), Ne = O != null, X = as(y), he = re((A = X) => A ? Vo(A, xr()) : []), Se = re((A) => {
6328
+ } = h.context, C = re(() => w.current.floatingContext?.nodeId), S = o === !1, I = as(b) && S, E = u.useRef(["content"]), R = xt(o), D = xt(i), W = xt(c), j = Lo(f), O = Au(), K = u.useRef(null), Y = u.useRef(null), G = u.useRef(!1), N = u.useRef(!1), H = u.useRef(!1), $ = u.useRef(-1), te = u.useRef(""), _ = u.useRef(""), Re = u.useRef(null), me = u.useRef(null), we = mr(Re, g, O?.beforeInsideRef), ae = mr(me, O?.afterInsideRef), le = In(), ye = In(), Ee = zs(), Ne = O != null, X = ls(y), he = re((A = X) => A ? Vo(A, xr()) : []), Se = re((A) => {
6329
6329
  const z = he(A);
6330
6330
  return E.current.map(() => z).filter(Boolean).flat();
6331
6331
  });
@@ -6372,7 +6372,7 @@ function iy(e) {
6372
6372
  function k(q) {
6373
6373
  const F = q.relatedTarget, Q = q.currentTarget, se = dt(q);
6374
6374
  queueMicrotask(() => {
6375
- const xe = C(), We = h.context.triggerElements, it = F?.hasAttribute(xo("focus-guard")) && [Re.current, me.current, O?.beforeInsideRef.current, O?.afterInsideRef.current, O?.beforeOutsideRef.current, O?.afterOutsideRef.current, Ht(p), Ht(d)].includes(F), Le = !(Ie(b, F) || Ie(y, F) || Ie(F, y) || Ie(O?.portalNode, F) || F != null && We.hasElement(F) || We.hasMatchingElement((Pe) => Ie(Pe, F)) || it || j && (zn(j.nodesRef.current, xe).find((Pe) => Ie(Pe.context?.elements.floating, F) || Ie(Pe.context?.elements.domReference, F)) || ol(j.nodesRef.current, xe).find((Pe) => [Pe.context?.elements.floating, as(Pe.context?.elements.floating)].includes(F) || Pe.context?.elements.domReference === F)));
6375
+ const xe = C(), We = h.context.triggerElements, it = F?.hasAttribute(xo("focus-guard")) && [Re.current, me.current, O?.beforeInsideRef.current, O?.afterInsideRef.current, O?.beforeOutsideRef.current, O?.afterOutsideRef.current, Ht(p), Ht(d)].includes(F), Le = !(Ie(b, F) || Ie(y, F) || Ie(F, y) || Ie(O?.portalNode, F) || F != null && We.hasElement(F) || We.hasMatchingElement((Pe) => Ie(Pe, F)) || it || j && (zn(j.nodesRef.current, xe).find((Pe) => Ie(Pe.context?.elements.floating, F) || Ie(Pe.context?.elements.domReference, F)) || ol(j.nodesRef.current, xe).find((Pe) => [Pe.context?.elements.floating, ls(Pe.context?.elements.floating)].includes(F) || Pe.context?.elements.domReference === F)));
6376
6376
  if (Q === b && X && bl(X, E), s && Q !== b && !oy(se) && jt(A) === A.body) {
6377
6377
  if (je(X) && (X.focus(), s === "popup")) {
6378
6378
  Ee.request(() => {
@@ -6394,7 +6394,7 @@ function iy(e) {
6394
6394
  // focused again. Otherwise, the popup remains open on the second Tab sequence:
6395
6395
  // click input -> Tab (closes) -> click input -> Tab.
6396
6396
  // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.
6397
- (I || F !== Ei()) && (G.current = !0, h.setOpen(!1, ge(Po, q)));
6397
+ (I || F !== Ii()) && (G.current = !0, h.setOpen(!1, ge(Po, q)));
6398
6398
  });
6399
6399
  }
6400
6400
  function B() {
@@ -6418,7 +6418,7 @@ function iy(e) {
6418
6418
  }, [r, b, y, X, a, j, O, h, l, s, he, I, C, E, w, le, ye, Ee, d, p]), u.useEffect(() => {
6419
6419
  if (r || !y || !m)
6420
6420
  return;
6421
- const A = Array.from(O?.portalNode?.querySelectorAll(`[${xo("portal")}]`) || []), pe = (j ? ol(j.nodesRef.current, C()) : []).find((B) => ss(B.context?.elements.domReference || null))?.context?.elements.domReference, k = [y, pe, ...A, K.current, Y.current, Re.current, me.current, O?.beforeOutsideRef.current, O?.afterOutsideRef.current, Ht(p), Ht(d), I ? b : null].filter((B) => B != null);
6421
+ const A = Array.from(O?.portalNode?.querySelectorAll(`[${xo("portal")}]`) || []), pe = (j ? ol(j.nodesRef.current, C()) : []).find((B) => as(B.context?.elements.domReference || null))?.context?.elements.domReference, k = [y, pe, ...A, K.current, Y.current, Re.current, me.current, O?.beforeOutsideRef.current, O?.afterOutsideRef.current, Ht(p), Ht(d), I ? b : null].filter((B) => B != null);
6422
6422
  return Qv(k, a || I);
6423
6423
  }, [m, r, b, y, a, E, O, I, j, C, d, p]), oe(() => {
6424
6424
  if (!m || r || !je(X))
@@ -6439,7 +6439,7 @@ function iy(e) {
6439
6439
  const A = He(X), z = jt(A);
6440
6440
  ny(z);
6441
6441
  function pe(U) {
6442
- if (U.open || (te.current = ty(U.nativeEvent, _.current)), U.reason === zb && U.nativeEvent.type === "mouseleave" && (G.current = !0), U.reason === Fs)
6442
+ if (U.open || (te.current = ty(U.nativeEvent, _.current)), U.reason === zb && U.nativeEvent.type === "mouseleave" && (G.current = !0), U.reason === Vs)
6443
6443
  if (U.nested)
6444
6444
  G.current = !1;
6445
6445
  else if (gu(U.nativeEvent) || mu(U.nativeEvent))
@@ -6455,17 +6455,17 @@ function iy(e) {
6455
6455
  }
6456
6456
  v.on("openchange", pe);
6457
6457
  const k = A.createElement("span");
6458
- k.setAttribute("tabindex", "-1"), k.setAttribute("aria-hidden", "true"), Object.assign(k.style, Ks), Ne && b && b.insertAdjacentElement("afterend", k);
6458
+ k.setAttribute("tabindex", "-1"), k.setAttribute("aria-hidden", "true"), Object.assign(k.style, Ys), Ne && b && b.insertAdjacentElement("afterend", k);
6459
6459
  function B() {
6460
6460
  const U = D.current;
6461
6461
  let M = typeof U == "function" ? U(te.current) : U;
6462
6462
  if (M === void 0 || M === !1)
6463
6463
  return null;
6464
6464
  if (M === null && (M = !0), typeof M == "boolean") {
6465
- const F = b || Ei();
6465
+ const F = b || Ii();
6466
6466
  return F && F.isConnected ? F : k;
6467
6467
  }
6468
- const q = b || Ei() || k;
6468
+ const q = b || Ii() || k;
6469
6469
  return Ht(M) || q;
6470
6470
  }
6471
6471
  return () => {
@@ -6486,7 +6486,7 @@ function iy(e) {
6486
6486
  if (!uu || m || !y)
6487
6487
  return;
6488
6488
  const A = jt(He(y));
6489
- !je(A) || !js(A) || Ie(y, A) && A.blur();
6489
+ !je(A) || !Ws(A) || Ie(y, A) && A.blur();
6490
6490
  }, [m, y]), oe(() => {
6491
6491
  if (!(r || !O))
6492
6492
  return O.setFocusManagerState({
@@ -6501,7 +6501,7 @@ function iy(e) {
6501
6501
  }, [r, O, a, m, h, l, b]), oe(() => {
6502
6502
  if (!(r || !X))
6503
6503
  return bl(X, E), () => {
6504
- queueMicrotask(Xs);
6504
+ queueMicrotask(Zs);
6505
6505
  };
6506
6506
  }, [r, X, E]);
6507
6507
  const P = !r && (a ? !I : !0) && (Ne || a);
@@ -6532,8 +6532,8 @@ function Tu(e, t = {}) {
6532
6532
  ignoreMouse: a = !1,
6533
6533
  stickIfOpen: l = !0,
6534
6534
  touchOpenDelay: c = 0,
6535
- reason: d = es
6536
- } = t, p = u.useRef(void 0), g = $s(), f = In(), h = u.useMemo(() => ({
6535
+ reason: d = ts
6536
+ } = t, p = u.useRef(void 0), g = zs(), f = In(), h = u.useMemo(() => ({
6537
6537
  onPointerDown(m) {
6538
6538
  p.current = m.pointerType;
6539
6539
  },
@@ -6542,7 +6542,7 @@ function Tu(e, t = {}) {
6542
6542
  if (m.button !== 0 || i === "click" || il(b) && a)
6543
6543
  return;
6544
6544
  const w = r.current.openEvent, C = w?.type, S = n.select("domReferenceElement") !== m.currentTarget, I = v && S || !(v && s && (!(w && l) || C === "click" || C === "mousedown"));
6545
- if (js(y.target)) {
6545
+ if (Ws(y.target)) {
6546
6546
  const R = ge(d, y, y.target);
6547
6547
  I && b === "touch" && c > 0 ? f.start(c, () => {
6548
6548
  n.setOpen(!0, R);
@@ -6644,7 +6644,7 @@ async function sy(e, t) {
6644
6644
  elementContext: p = "floating",
6645
6645
  altBoundary: g = !1,
6646
6646
  padding: f = 0
6647
- } = Vt(t, e), h = Us(f), b = a[g ? p === "floating" ? "reference" : "floating" : p], y = mo(await i.getClippingRect({
6647
+ } = Vt(t, e), h = qs(f), b = a[g ? p === "floating" ? "reference" : "floating" : p], y = mo(await i.getClippingRect({
6648
6648
  element: (n = await (i.isElement == null ? void 0 : i.isElement(b))) == null || n ? b : b.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
6649
6649
  boundary: c,
6650
6650
  rootBoundary: d,
@@ -6755,7 +6755,7 @@ const ay = 50, ly = async (e, t, n) => {
6755
6755
  } = Vt(e, t) || {};
6756
6756
  if (c == null)
6757
6757
  return {};
6758
- const p = Us(d), g = {
6758
+ const p = qs(d), g = {
6759
6759
  x: n,
6760
6760
  y: r
6761
6761
  }, f = Fo(o), h = Do(f), m = await s.getDimensions(c), b = f === "y", y = b ? "top" : "left", v = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", C = i.reference[h] + i.reference[f] - g[f] - i.floating[h], S = g[f] - i.reference[f], I = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
@@ -6988,7 +6988,7 @@ const py = function(e) {
6988
6988
  } = Vt(e, t), d = {
6989
6989
  x: n,
6990
6990
  y: r
6991
- }, p = await i.detectOverflow(t, c), g = Ct(mt(o)), f = Ws(g);
6991
+ }, p = await i.detectOverflow(t, c), g = Ct(mt(o)), f = Us(g);
6992
6992
  let h = d[f], m = d[g];
6993
6993
  if (s) {
6994
6994
  const y = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", w = h + p[y], C = h - p[v];
@@ -7033,7 +7033,7 @@ const py = function(e) {
7033
7033
  } = Vt(e, t), d = {
7034
7034
  x: n,
7035
7035
  y: r
7036
- }, p = Ct(o), g = Ws(p);
7036
+ }, p = Ct(o), g = Us(p);
7037
7037
  let f = d[g], h = d[p];
7038
7038
  const m = Vt(a, t), b = typeof m == "number" ? {
7039
7039
  mainAxis: m,
@@ -7109,11 +7109,11 @@ function Fu(e) {
7109
7109
  $: a
7110
7110
  };
7111
7111
  }
7112
- function Zs(e) {
7112
+ function Qs(e) {
7113
7113
  return Fe(e) ? e : e.contextElement;
7114
7114
  }
7115
7115
  function Hn(e) {
7116
- const t = Zs(e);
7116
+ const t = Qs(e);
7117
7117
  if (!je(t))
7118
7118
  return Ft(1);
7119
7119
  const n = t.getBoundingClientRect(), {
@@ -7140,17 +7140,17 @@ function vy(e, t, n) {
7140
7140
  }
7141
7141
  function kn(e, t, n, r) {
7142
7142
  t === void 0 && (t = !1), n === void 0 && (n = !1);
7143
- const o = e.getBoundingClientRect(), i = Zs(e);
7143
+ const o = e.getBoundingClientRect(), i = Qs(e);
7144
7144
  let s = Ft(1);
7145
7145
  t && (r ? Fe(r) && (s = Hn(r)) : s = Hn(e));
7146
7146
  const a = vy(i, n, r) ? Vu(i) : Ft(0);
7147
7147
  let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, d = o.width / s.x, p = o.height / s.y;
7148
7148
  if (i) {
7149
7149
  const g = Ze(i), f = r && Fe(r) ? Ze(r) : r;
7150
- let h = g, m = rs(h);
7150
+ let h = g, m = os(h);
7151
7151
  for (; m && r && f !== h; ) {
7152
7152
  const b = Hn(m), y = m.getBoundingClientRect(), v = ht(m), w = y.left + (m.clientLeft + parseFloat(v.paddingLeft)) * b.x, C = y.top + (m.clientTop + parseFloat(v.paddingTop)) * b.y;
7153
- l *= b.x, c *= b.y, d *= b.x, p *= b.y, l += w, c += C, h = Ze(m), m = rs(h);
7153
+ l *= b.x, c *= b.y, d *= b.x, p *= b.y, l += w, c += C, h = Ze(m), m = os(h);
7154
7154
  }
7155
7155
  }
7156
7156
  return mo({
@@ -7273,7 +7273,7 @@ function Ry(e, t) {
7273
7273
  const i = ht(e).position === "fixed";
7274
7274
  let s = i ? Ut(e) : e;
7275
7275
  for (; Fe(s) && !Wt(s); ) {
7276
- const a = ht(s), l = Gs(s);
7276
+ const a = ht(s), l = Hs(s);
7277
7277
  !l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || bn(s) && !l && $u(e, s)) ? r = r.filter((d) => d !== s) : o = a, s = Ut(s);
7278
7278
  }
7279
7279
  return t.set(e, r), r;
@@ -7332,7 +7332,7 @@ function ky(e, t, n) {
7332
7332
  height: s.height
7333
7333
  };
7334
7334
  }
7335
- function Ii(e) {
7335
+ function ki(e) {
7336
7336
  return ht(e).position === "static";
7337
7337
  }
7338
7338
  function Sl(e, t) {
@@ -7350,16 +7350,16 @@ function zu(e, t) {
7350
7350
  if (!je(e)) {
7351
7351
  let o = Ut(e);
7352
7352
  for (; o && !Wt(o); ) {
7353
- if (Fe(o) && !Ii(o))
7353
+ if (Fe(o) && !ki(o))
7354
7354
  return o;
7355
7355
  o = Ut(o);
7356
7356
  }
7357
7357
  return n;
7358
7358
  }
7359
7359
  let r = Sl(e, t);
7360
- for (; r && Xb(r) && Ii(r); )
7360
+ for (; r && Xb(r) && ki(r); )
7361
7361
  r = Sl(r, t);
7362
- return r && Wt(r) && Ii(r) && !Gs(r) ? n : r || Jb(e) || n;
7362
+ return r && Wt(r) && ki(r) && !Hs(r) ? n : r || Jb(e) || n;
7363
7363
  }
7364
7364
  const Ny = async function(e) {
7365
7365
  const t = this.getOffsetParent || zu, n = this.getDimensions, r = await n(e.floating);
@@ -7437,7 +7437,7 @@ function _y(e, t) {
7437
7437
  }
7438
7438
  return s(!0), i;
7439
7439
  }
7440
- function ds(e, t, n, r) {
7440
+ function fs(e, t, n, r) {
7441
7441
  r === void 0 && (r = {});
7442
7442
  const {
7443
7443
  ancestorScroll: o = !0,
@@ -7445,7 +7445,7 @@ function ds(e, t, n, r) {
7445
7445
  elementResize: s = typeof ResizeObserver == "function",
7446
7446
  layoutShift: a = typeof IntersectionObserver == "function",
7447
7447
  animationFrame: l = !1
7448
- } = r, c = Zs(e), d = o || i ? [...c ? ln(c) : [], ...t ? ln(t) : []] : [];
7448
+ } = r, c = Qs(e), d = o || i ? [...c ? ln(c) : [], ...t ? ln(t) : []] : [];
7449
7449
  d.forEach((y) => {
7450
7450
  o && y.addEventListener("scroll", n, {
7451
7451
  passive: !0
@@ -7525,7 +7525,7 @@ function El(e, t) {
7525
7525
  const n = Hu(e);
7526
7526
  return Math.round(t * n) / n;
7527
7527
  }
7528
- function ki(e) {
7528
+ function Ni(e) {
7529
7529
  const t = u.useRef(e);
7530
7530
  return ro(() => {
7531
7531
  t.current = e;
@@ -7558,7 +7558,7 @@ function Bu(e) {
7558
7558
  $ !== I.current && (I.current = $, m($));
7559
7559
  }, []), w = u.useCallback(($) => {
7560
7560
  $ !== E.current && (E.current = $, y($));
7561
- }, []), C = i || h, S = s || b, I = u.useRef(null), E = u.useRef(null), R = u.useRef(d), D = l != null, W = ki(l), j = ki(o), O = ki(c), K = u.useCallback(() => {
7561
+ }, []), C = i || h, S = s || b, I = u.useRef(null), E = u.useRef(null), R = u.useRef(d), D = l != null, W = Ni(l), j = Ni(o), O = Ni(c), K = u.useCallback(() => {
7562
7562
  if (!I.current || !E.current)
7563
7563
  return;
7564
7564
  const $ = {
@@ -7793,7 +7793,7 @@ function Wy(e, t = {}) {
7793
7793
  }), !Q)
7794
7794
  return;
7795
7795
  }
7796
- n.setOpen(!1, ge(Fs, P)), j();
7796
+ n.setOpen(!1, ge(Vs, P)), j();
7797
7797
  }), _ = re((P) => {
7798
7798
  G() !== "sloppy" || P.pointerType === "touch" || !n.select("open") || !c || Nt(P, n.select("floatingElement")) || Nt(P, n.select("domReferenceElement")) || te(P);
7799
7799
  }), Re = re((P) => {
@@ -7885,11 +7885,11 @@ function Wy(e, t = {}) {
7885
7885
  onKeyDown: N,
7886
7886
  ...f && {
7887
7887
  [By[h]]: (P) => {
7888
- n.setOpen(!1, ge(es, P.nativeEvent));
7888
+ n.setOpen(!1, ge(ts, P.nativeEvent));
7889
7889
  },
7890
7890
  ...h !== "intentional" && {
7891
7891
  onClick(P) {
7892
- n.setOpen(!1, ge(es, P.nativeEvent));
7892
+ n.setOpen(!1, ge(ts, P.nativeEvent));
7893
7893
  }
7894
7894
  }
7895
7895
  }
@@ -8259,10 +8259,10 @@ const ne = (e, t, n, r, o, i, ...s) => {
8259
8259
  );
8260
8260
  return a;
8261
8261
  };
8262
- var Br = { exports: {} }, Ni = {};
8262
+ var Br = { exports: {} }, Pi = {};
8263
8263
  var Pl;
8264
8264
  function ux() {
8265
- if (Pl) return Ni;
8265
+ if (Pl) return Pi;
8266
8266
  Pl = 1;
8267
8267
  var e = Pt;
8268
8268
  function t(p, g) {
@@ -8299,9 +8299,9 @@ function ux() {
8299
8299
  return g();
8300
8300
  }
8301
8301
  var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : a;
8302
- return Ni.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, Ni;
8302
+ return Pi.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, Pi;
8303
8303
  }
8304
- var Pi = {};
8304
+ var Oi = {};
8305
8305
  var Ol;
8306
8306
  function dx() {
8307
8307
  return Ol || (Ol = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -8352,24 +8352,24 @@ function dx() {
8352
8352
  }
8353
8353
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
8354
8354
  var o = Pt, i = typeof Object.is == "function" ? Object.is : e, s = o.useState, a = o.useEffect, l = o.useLayoutEffect, c = o.useDebugValue, d = !1, p = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
8355
- Pi.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
8356
- })()), Pi;
8355
+ Oi.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
8356
+ })()), Oi;
8357
8357
  }
8358
8358
  var _l;
8359
- function Qs() {
8359
+ function Js() {
8360
8360
  return _l || (_l = 1, process.env.NODE_ENV === "production" ? Br.exports = ux() : Br.exports = dx()), Br.exports;
8361
8361
  }
8362
- var fx = Qs(), jr = { exports: {} }, Oi = {};
8362
+ var fx = Js(), jr = { exports: {} }, _i = {};
8363
8363
  var Al;
8364
8364
  function px() {
8365
- if (Al) return Oi;
8365
+ if (Al) return _i;
8366
8366
  Al = 1;
8367
- var e = Pt, t = Qs();
8367
+ var e = Pt, t = Js();
8368
8368
  function n(c, d) {
8369
8369
  return c === d && (c !== 0 || 1 / c === 1 / d) || c !== c && d !== d;
8370
8370
  }
8371
8371
  var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, s = e.useEffect, a = e.useMemo, l = e.useDebugValue;
8372
- return Oi.useSyncExternalStoreWithSelector = function(c, d, p, g, f) {
8372
+ return _i.useSyncExternalStoreWithSelector = function(c, d, p, g, f) {
8373
8373
  var h = i(null);
8374
8374
  if (h.current === null) {
8375
8375
  var m = { hasValue: !1, value: null };
@@ -8409,9 +8409,9 @@ function px() {
8409
8409
  },
8410
8410
  [b]
8411
8411
  ), l(b), b;
8412
- }, Oi;
8412
+ }, _i;
8413
8413
  }
8414
- var _i = {};
8414
+ var Ai = {};
8415
8415
  var Ml;
8416
8416
  function gx() {
8417
8417
  return Ml || (Ml = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -8419,8 +8419,8 @@ function gx() {
8419
8419
  return c === d && (c !== 0 || 1 / c === 1 / d) || c !== c && d !== d;
8420
8420
  }
8421
8421
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
8422
- var t = Pt, n = Qs(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, a = t.useMemo, l = t.useDebugValue;
8423
- _i.useSyncExternalStoreWithSelector = function(c, d, p, g, f) {
8422
+ var t = Pt, n = Js(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, a = t.useMemo, l = t.useDebugValue;
8423
+ Ai.useSyncExternalStoreWithSelector = function(c, d, p, g, f) {
8424
8424
  var h = i(null);
8425
8425
  if (h.current === null) {
8426
8426
  var m = { hasValue: !1, value: null };
@@ -8462,14 +8462,14 @@ function gx() {
8462
8462
  [b]
8463
8463
  ), l(b), b;
8464
8464
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
8465
- })()), _i;
8465
+ })()), Ai;
8466
8466
  }
8467
8467
  var Tl;
8468
8468
  function mx() {
8469
8469
  return Tl || (Tl = 1, process.env.NODE_ENV === "production" ? jr.exports = px() : jr.exports = gx()), jr.exports;
8470
8470
  }
8471
8471
  var hx = mx();
8472
- const bx = Ds(19), vx = bx ? xx : Cx;
8472
+ const bx = Fs(19), vx = bx ? xx : Cx;
8473
8473
  function T(e, t, n, r, o) {
8474
8474
  return vx(e, t, n, r, o);
8475
8475
  }
@@ -8820,7 +8820,7 @@ function Ju(e) {
8820
8820
  open: t = !1,
8821
8821
  onOpenChange: n,
8822
8822
  elements: r = {}
8823
- } = e, o = Vs(), i = Pu() != null;
8823
+ } = e, o = Ls(), i = Pu() != null;
8824
8824
  if (process.env.NODE_ENV !== "production") {
8825
8825
  const a = r.reference;
8826
8826
  a && !Fe(a) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
@@ -8939,7 +8939,7 @@ function kx(e = []) {
8939
8939
  }
8940
8940
  function Wr(e, t, n) {
8941
8941
  const r = /* @__PURE__ */ new Map(), o = n === "item", i = {};
8942
- n === "floating" && (i.tabIndex = -1, i[is] = "");
8942
+ n === "floating" && (i.tabIndex = -1, i[ss] = "");
8943
8943
  for (const s in e)
8944
8944
  o && e && (s === fu || s === pu) || (i[s] = e[s]);
8945
8945
  for (let s = 0; s < t.length; s += 1) {
@@ -8967,16 +8967,16 @@ function zo(e, t, n) {
8967
8967
  }
8968
8968
  }
8969
8969
  function Ur(e, t) {
8970
- return zo(t, e === Bs || e === yr, e === cn || e === un);
8970
+ return zo(t, e === js || e === yr, e === cn || e === un);
8971
8971
  }
8972
- function Ai(e, t, n) {
8972
+ function Mi(e, t, n) {
8973
8973
  return zo(t, e === yr, n ? e === cn : e === un) || e === "Enter" || e === " " || e === "";
8974
8974
  }
8975
8975
  function Px(e, t, n) {
8976
8976
  return zo(t, n ? e === cn : e === un, e === yr);
8977
8977
  }
8978
8978
  function Ox(e, t, n, r) {
8979
- const o = n ? e === un : e === cn, i = e === Bs;
8979
+ const o = n ? e === un : e === cn, i = e === js;
8980
8980
  return t === "both" || t === "horizontal" && r && r > 1 ? e === Nx : zo(t, o, i);
8981
8981
  }
8982
8982
  function _x(e, t) {
@@ -9004,11 +9004,11 @@ function _x(e, t) {
9004
9004
  externalTree: W
9005
9005
  } = t;
9006
9006
  process.env.NODE_ENV !== "production" && (g && (f || console.warn("`useListNavigation` looping must be enabled to allow escaping."), b || console.warn("`useListNavigation` must be virtual to allow escaping.")), S === "vertical" && E > 1 && console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
9007
- const j = as(o), O = xt(j), K = Pu(), Y = Lo(W);
9007
+ const j = ls(o), O = xt(j), K = Pu(), Y = Lo(W);
9008
9008
  oe(() => {
9009
9009
  s.current.orientation = S;
9010
9010
  }, [s, S]);
9011
- const G = ss(i), N = u.useRef(y), H = u.useRef(p ?? -1), $ = u.useRef(null), te = u.useRef(!0), _ = re((M) => {
9011
+ const G = as(i), N = u.useRef(y), H = u.useRef(p ?? -1), $ = u.useRef(null), te = u.useRef(!0), _ = re((M) => {
9012
9012
  c(H.current === -1 ? null : H.current, M);
9013
9013
  }), Re = u.useRef(_), me = u.useRef(!!o), we = u.useRef(r), ae = u.useRef(!1), le = u.useRef(!1), ye = xt(C), Ee = xt(r), Ne = xt(p), X = xt(D), he = re(() => {
9014
9014
  function M(se) {
@@ -9044,7 +9044,7 @@ function _x(e, t) {
9044
9044
  if (me.current && (H.current = -1, he()), (!we.current || !me.current) && N.current && ($.current != null || N.current === !0 && $.current == null)) {
9045
9045
  let M = 0;
9046
9046
  const q = () => {
9047
- a.current[0] == null ? (M < 2 && (M ? requestAnimationFrame : queueMicrotask)(q), M += 1) : (H.current = $.current == null || Ai($.current, S, m) || h ? Si(a) : ll(a), $.current = null, _());
9047
+ a.current[0] == null ? (M < 2 && (M ? requestAnimationFrame : queueMicrotask)(q), M += 1) : (H.current = $.current == null || Mi($.current, S, m) || h ? Ri(a) : ll(a), $.current = null, _());
9048
9048
  };
9049
9049
  q();
9050
9050
  }
@@ -9101,7 +9101,7 @@ function _x(e, t) {
9101
9101
  Ur(M.key, A()) || De(M), n.setOpen(!1, ge(ar, M.nativeEvent)), je(i) && (b ? Y?.events.emit("virtualfocus", i) : i.focus());
9102
9102
  return;
9103
9103
  }
9104
- const q = H.current, F = Si(a, C), Q = ll(a, C);
9104
+ const q = H.current, F = Ri(a, C), Q = ll(a, C);
9105
9105
  if (G || (M.key === "Home" && (De(M), H.current = F, _(M)), M.key === "End" && (De(M), H.current = Q, _(M))), E > 1) {
9106
9106
  const se = Array.from({
9107
9107
  length: a.current.length
@@ -9139,10 +9139,10 @@ function _x(e, t) {
9139
9139
  }
9140
9140
  if (Ur(M.key, S)) {
9141
9141
  if (De(M), r && !b && jt(M.currentTarget.ownerDocument) === M.currentTarget) {
9142
- H.current = Ai(M.key, S, m) ? F : Q, _(M);
9142
+ H.current = Mi(M.key, S, m) ? F : Q, _(M);
9143
9143
  return;
9144
9144
  }
9145
- Ai(M.key, S, m) ? f ? q >= Q ? g && q !== a.current.length ? H.current = -1 : (ae.current = !1, H.current = F) : H.current = tt(a, {
9145
+ Mi(M.key, S, m) ? f ? q >= Q ? g && q !== a.current.length ? H.current = -1 : (ae.current = !1, H.current = F) : H.current = tt(a, {
9146
9146
  startingIndex: q,
9147
9147
  disabledIndices: C
9148
9148
  }) : H.current = Math.min(Q, tt(a, {
@@ -9196,7 +9196,7 @@ function _x(e, t) {
9196
9196
  $.current = h && Le ? null : F.key;
9197
9197
  }
9198
9198
  if (h) {
9199
- xe && (De(F), Q ? (H.current = Si(a, ye.current), _(F)) : n.setOpen(!0, ge(ar, F.nativeEvent, F.currentTarget)));
9199
+ xe && (De(F), Q ? (H.current = Ri(a, ye.current), _(F)) : n.setOpen(!0, ge(ar, F.nativeEvent, F.currentTarget)));
9200
9200
  return;
9201
9201
  }
9202
9202
  We && (Ne.current != null && (H.current = Ne.current), De(F), !Q && w ? n.setOpen(!0, ge(ar, F.nativeEvent, F.currentTarget)) : z(F), Q && _(F));
@@ -9309,22 +9309,22 @@ function Tx(e) {
9309
9309
  }
9310
9310
  }), [t, o, i, s]);
9311
9311
  }
9312
- let Js = (function(e) {
9312
+ let ea = (function(e) {
9313
9313
  return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = hr.startingStyle] = "startingStyle", e[e.endingStyle = hr.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
9314
- })({}), fs = /* @__PURE__ */ (function(e) {
9314
+ })({}), ps = /* @__PURE__ */ (function(e) {
9315
9315
  return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
9316
9316
  })({});
9317
9317
  const Dx = {
9318
- [fs.popupOpen]: ""
9318
+ [ps.popupOpen]: ""
9319
9319
  }, Fx = {
9320
- [fs.popupOpen]: "",
9321
- [fs.pressed]: ""
9320
+ [ps.popupOpen]: "",
9321
+ [ps.pressed]: ""
9322
9322
  }, Vx = {
9323
- [Js.open]: ""
9323
+ [ea.open]: ""
9324
9324
  }, Lx = {
9325
- [Js.closed]: ""
9325
+ [ea.closed]: ""
9326
9326
  }, $x = {
9327
- [Js.anchorHidden]: ""
9327
+ [ea.anchorHidden]: ""
9328
9328
  }, zx = {
9329
9329
  open(e) {
9330
9330
  return e ? Dx : null;
@@ -9342,7 +9342,7 @@ const Dx = {
9342
9342
  }
9343
9343
  };
9344
9344
  function Hx(e) {
9345
- return Ds(19) ? e : e ? "true" : void 0;
9345
+ return Fs(19) ? e : e ? "true" : void 0;
9346
9346
  }
9347
9347
  const td = /* @__PURE__ */ u.forwardRef(function(t, n) {
9348
9348
  const {
@@ -9384,34 +9384,34 @@ function Bx(e) {
9384
9384
  const t = u.useRef(!0);
9385
9385
  t.current && (t.current = !1, e());
9386
9386
  }
9387
- const ea = /* @__PURE__ */ u.createContext(void 0);
9388
- process.env.NODE_ENV !== "production" && (ea.displayName = "ComboboxRootContext");
9389
9387
  const ta = /* @__PURE__ */ u.createContext(void 0);
9390
- process.env.NODE_ENV !== "production" && (ta.displayName = "ComboboxFloatingContext");
9388
+ process.env.NODE_ENV !== "production" && (ta.displayName = "ComboboxRootContext");
9391
9389
  const na = /* @__PURE__ */ u.createContext(void 0);
9392
- process.env.NODE_ENV !== "production" && (na.displayName = "ComboboxDerivedItemsContext");
9393
- const ra = /* @__PURE__ */ u.createContext("");
9394
- process.env.NODE_ENV !== "production" && (ra.displayName = "ComboboxInputValueContext");
9390
+ process.env.NODE_ENV !== "production" && (na.displayName = "ComboboxFloatingContext");
9391
+ const ra = /* @__PURE__ */ u.createContext(void 0);
9392
+ process.env.NODE_ENV !== "production" && (ra.displayName = "ComboboxDerivedItemsContext");
9393
+ const oa = /* @__PURE__ */ u.createContext("");
9394
+ process.env.NODE_ENV !== "production" && (oa.displayName = "ComboboxInputValueContext");
9395
9395
  function vt() {
9396
- const e = u.useContext(ea);
9396
+ const e = u.useContext(ta);
9397
9397
  if (!e)
9398
9398
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxRootContext is missing. Combobox parts must be placed within <Combobox.Root>." : _t(22));
9399
9399
  return e;
9400
9400
  }
9401
9401
  function Go() {
9402
- const e = u.useContext(ta);
9402
+ const e = u.useContext(na);
9403
9403
  if (!e)
9404
9404
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxFloatingContext is missing. Combobox parts must be placed within <Combobox.Root>." : _t(23));
9405
9405
  return e;
9406
9406
  }
9407
9407
  function vn() {
9408
- const e = u.useContext(na);
9408
+ const e = u.useContext(ra);
9409
9409
  if (!e)
9410
9410
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemsContext is missing. Combobox parts must be placed within <Combobox.Root>." : _t(24));
9411
9411
  return e;
9412
9412
  }
9413
- function oa() {
9414
- return u.useContext(ra);
9413
+ function ia() {
9414
+ return u.useContext(oa);
9415
9415
  }
9416
9416
  const jx = (e, t) => Object.is(e, t);
9417
9417
  function Nn(e, t, n) {
@@ -9426,7 +9426,7 @@ function So(e, t, n) {
9426
9426
  function Ux(e, t, n) {
9427
9427
  return e.filter((r) => !Nn(t, r, n));
9428
9428
  }
9429
- function ps(e) {
9429
+ function gs(e) {
9430
9430
  if (e == null)
9431
9431
  return "";
9432
9432
  if (typeof e == "string")
@@ -9437,13 +9437,13 @@ function ps(e) {
9437
9437
  return String(e);
9438
9438
  }
9439
9439
  }
9440
- function ia(e) {
9440
+ function sa(e) {
9441
9441
  return e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
9442
9442
  }
9443
9443
  function qx(e) {
9444
9444
  if (!Array.isArray(e))
9445
9445
  return e != null && !("null" in e);
9446
- if (ia(e)) {
9446
+ if (sa(e)) {
9447
9447
  for (const t of e)
9448
9448
  for (const n of t.items)
9449
9449
  if (n && n.value == null && n.label != null)
@@ -9464,10 +9464,10 @@ function ut(e, t) {
9464
9464
  if ("value" in e)
9465
9465
  return String(e.value);
9466
9466
  }
9467
- return ps(e);
9467
+ return gs(e);
9468
9468
  }
9469
9469
  function tr(e, t) {
9470
- return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ? ps(e.value) : ps(e);
9470
+ return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ? gs(e.value) : gs(e);
9471
9471
  }
9472
9472
  function nd(e, t, n) {
9473
9473
  function r() {
@@ -9480,7 +9480,7 @@ function nd(e, t, n) {
9480
9480
  if (t && !Array.isArray(t))
9481
9481
  return t[e] ?? r();
9482
9482
  if (Array.isArray(t)) {
9483
- const o = ia(t) ? t.flatMap((i) => i.items) : t;
9483
+ const o = sa(t) ? t.flatMap((i) => i.items) : t;
9484
9484
  if (e == null || typeof e != "object") {
9485
9485
  const i = o.find((s) => s.value === e);
9486
9486
  return i && i.label != null ? i.label : r();
@@ -9717,7 +9717,7 @@ const sd = /* @__PURE__ */ u.createContext({
9717
9717
  getDescriptionProps: (e) => e
9718
9718
  });
9719
9719
  process.env.NODE_ENV !== "production" && (sd.displayName = "LabelableContext");
9720
- function sa() {
9720
+ function aa() {
9721
9721
  return u.useContext(sd);
9722
9722
  }
9723
9723
  function ad(e = {}) {
@@ -9728,7 +9728,7 @@ function ad(e = {}) {
9728
9728
  } = e, {
9729
9729
  controlId: o,
9730
9730
  registerControlId: i
9731
- } = sa(), s = Ls(t), a = n ? o : void 0, l = wt(() => /* @__PURE__ */ Symbol("labelable-control")), c = u.useRef(!1), d = u.useRef(t != null), p = re(() => {
9731
+ } = aa(), s = $s(t), a = n ? o : void 0, l = wt(() => /* @__PURE__ */ Symbol("labelable-control")), c = u.useRef(!1), d = u.useRef(t != null), p = re(() => {
9732
9732
  !c.current || i === Ve || (c.current = !1, i(l.current, void 0));
9733
9733
  });
9734
9734
  return oe(() => {
@@ -9879,22 +9879,22 @@ function rC(e) {
9879
9879
  }), [A, z] = u.useState(!1), [pe, k] = u.useState(null), B = u.useRef([]), U = u.useRef([]), M = u.useRef(null), q = u.useRef(null), F = u.useRef(null), Q = u.useRef(!0), se = u.useRef(!1), xe = u.useRef(null), We = u.useRef(null), it = u.useRef(null), Le = u.useRef(Rn), Pe = u.useRef(null), ze = u.useRef([]), st = u.useRef([]), nt = ye || p, ft = le ?? d, Qe = l === "multiple", at = l === "single", zt = a !== void 0 || s !== void 0, St = b !== void 0, Te = y !== void 0;
9880
9880
  let Oe;
9881
9881
  C === "always" ? Oe = "always" : Oe = C ? "input-change" : !1;
9882
- const [ue, lt] = yi({
9882
+ const [ue, lt] = xi({
9883
9883
  controlled: o,
9884
9884
  default: Qe ? r ?? Fr : r,
9885
9885
  name: "Combobox",
9886
9886
  state: "selectedValue"
9887
- }), ct = u.useMemo(() => v === null ? () => !0 : v !== void 0 ? v : at && !A ? eC(P, R, ue) : Jx(P, R), [v, at, ue, A, P, R]), yn = wt(() => zt ? s ?? "" : at ? ut(ue, R) : "").current, [qe, Kn] = yi({
9887
+ }), ct = u.useMemo(() => v === null ? () => !0 : v !== void 0 ? v : at && !A ? eC(P, R, ue) : Jx(P, R), [v, at, ue, A, P, R]), yn = wt(() => zt ? s ?? "" : at ? ut(ue, R) : "").current, [qe, Kn] = xi({
9888
9888
  controlled: a,
9889
9889
  default: yn,
9890
9890
  name: "Combobox",
9891
9891
  state: "inputValue"
9892
- }), [$e, ri] = yi({
9892
+ }), [$e, oi] = xi({
9893
9893
  controlled: e.open,
9894
9894
  default: e.defaultOpen,
9895
9895
  name: "Combobox",
9896
9896
  state: "open"
9897
- }), Rt = ia(b), Je = pe ?? (qe === "" ? "" : String(qe).trim()), Yn = at ? ut(ue, R) : "", Tn = at && !A && Je !== "" && Yn !== "" && Yn.length === Je.length && P.contains(Yn, Je), Yt = Tn ? "" : Je, Rr = St && Te && Tn, Xt = u.useMemo(() => b ? Rt ? b.flatMap((Z) => Z.items) : b : Fr, [b, Rt]), Et = u.useMemo(() => {
9897
+ }), Rt = sa(b), Je = pe ?? (qe === "" ? "" : String(qe).trim()), Yn = at ? ut(ue, R) : "", Tn = at && !A && Je !== "" && Yn !== "" && Yn.length === Je.length && P.contains(Yn, Je), Yt = Tn ? "" : Je, Rr = St && Te && Tn, Xt = u.useMemo(() => b ? Rt ? b.flatMap((Z) => Z.items) : b : Fr, [b, Rt]), Et = u.useMemo(() => {
9898
9898
  if (y && !Rr)
9899
9899
  return y;
9900
9900
  if (!b)
@@ -9996,13 +9996,13 @@ function rC(e) {
9996
9996
  getItemProps: () => rt,
9997
9997
  forceMount: Ve,
9998
9998
  requestSubmit: Ve
9999
- })).current, Zt = l === "none" ? qe : ue, og = u.useMemo(() => l === "none" ? Zt : Array.isArray(ue) ? ue.map((Z) => tr(Z, D)) : tr(ue, D), [Zt, D, l, ue]), oi = re(c), ii = re(n), Er = T(Ce, V.activeIndex), ig = T(Ce, V.selectedIndex), Ir = T(Ce, V.positionerElement), Da = T(Ce, V.listElement), Xn = T(Ce, V.triggerElement), si = T(Ce, V.inputElement), It = T(Ce, V.inline), Qt = T(Ce, V.inputInsidePopup), sg = xt(Xn), {
9999
+ })).current, Zt = l === "none" ? qe : ue, og = u.useMemo(() => l === "none" ? Zt : Array.isArray(ue) ? ue.map((Z) => tr(Z, D)) : tr(ue, D), [Zt, D, l, ue]), ii = re(c), si = re(n), Er = T(Ce, V.activeIndex), ig = T(Ce, V.selectedIndex), Ir = T(Ce, V.positionerElement), Da = T(Ce, V.listElement), Xn = T(Ce, V.triggerElement), ai = T(Ce, V.inputElement), It = T(Ce, V.inline), Qt = T(Ce, V.inputInsidePopup), sg = xt(Xn), {
10000
10000
  mounted: Fa,
10001
10001
  setMounted: ag,
10002
- transitionStatus: ai
10002
+ transitionStatus: li
10003
10003
  } = ou($e), {
10004
10004
  openMethod: Va,
10005
- triggerProps: li,
10005
+ triggerProps: ci,
10006
10006
  reset: lg
10007
10007
  } = Tx($e);
10008
10008
  Qx({
@@ -10024,7 +10024,7 @@ function rC(e) {
10024
10024
  const ie = Z.type || "none";
10025
10025
  if (Z.activeIndex !== void 0)
10026
10026
  if (Z.activeIndex === null)
10027
- Le.current !== Rn && (Le.current = Rn, oi(void 0, Jn(ie, void 0, {
10027
+ Le.current !== Rn && (Le.current = Rn, ii(void 0, Jn(ie, void 0, {
10028
10028
  index: -1
10029
10029
  })));
10030
10030
  else {
@@ -10032,7 +10032,7 @@ function rC(e) {
10032
10032
  Le.current = {
10033
10033
  value: ve,
10034
10034
  index: Z.activeIndex
10035
- }, oi(ve, Jn(ie, void 0, {
10035
+ }, ii(ve, Jn(ie, void 0, {
10036
10036
  index: Z.activeIndex
10037
10037
  }));
10038
10038
  }
@@ -10052,7 +10052,7 @@ function rC(e) {
10052
10052
  }), Zn = re((Z, ie) => {
10053
10053
  if ($e !== Z && (ie.reason === "escape-key" && St && pt.length === 0 && !Ce.state.emptyRef.current && ie.allowPropagation(), e.onOpenChange?.(Z, ie), !ie.isCanceled && (!Z && A && (at ? (It || k(Je), Je === "" && z(!1)) : Qe && (It || Qt ? kt({
10054
10054
  activeIndex: null
10055
- }) : k(Je), Mt("", ge(nn, ie.event)))), ri(Z), !Z && Qt && (ie.reason === Po || ie.reason === Fs) && (Ee(!0), Ne(!1), X === "onBlur")))) {
10055
+ }) : k(Je), Mt("", ge(nn, ie.event)))), oi(Z), !Z && Qt && (ie.reason === Po || ie.reason === Vs) && (Ee(!0), Ne(!1), X === "onBlur")))) {
10056
10056
  const ve = l === "none" ? qe : ue;
10057
10057
  he.commit(ve);
10058
10058
  }
@@ -10081,13 +10081,13 @@ function rC(e) {
10081
10081
  Ce.state.inputInsidePopup ? Mt("", ge(nn, Ye.event)) : Zn(!1, Ye);
10082
10082
  } else
10083
10083
  Nr(ve, Ye), Zn(!1, Ye);
10084
- }), ci = re(() => {
10084
+ }), ui = re(() => {
10085
10085
  if (!Ce.state.submitOnItemClick)
10086
10086
  return;
10087
10087
  const Z = Ce.state.inputElement?.form;
10088
10088
  Z && typeof Z.requestSubmit == "function" && Z.requestSubmit();
10089
- }), ui = re(() => {
10090
- if (ag(!1), ii?.(!1), z(!1), lg(), k(null), kt(l === "none" ? {
10089
+ }), di = re(() => {
10090
+ if (ag(!1), si?.(!1), z(!1), lg(), k(null), kt(l === "none" ? {
10091
10091
  activeIndex: null,
10092
10092
  selectedIndex: null
10093
10093
  } : {
@@ -10102,16 +10102,16 @@ function rC(e) {
10102
10102
  }), dg = u.useMemo(() => It && Ir ? {
10103
10103
  current: Ir.closest('[role="dialog"]')
10104
10104
  } : M, [It, Ir]);
10105
- qs({
10105
+ Ks({
10106
10106
  enabled: !e.actionsRef,
10107
10107
  open: $e,
10108
10108
  ref: dg,
10109
10109
  onComplete() {
10110
- $e || ui();
10110
+ $e || di();
10111
10111
  }
10112
10112
  }), u.useImperativeHandle(e.actionsRef, () => ({
10113
- unmount: ui
10114
- }), [ui]), oe(function() {
10113
+ unmount: di
10114
+ }), [di]), oe(function() {
10115
10115
  if ($e || l === "none")
10116
10116
  return;
10117
10117
  const ie = b ? Xt : st.current;
@@ -10185,26 +10185,26 @@ function rC(e) {
10185
10185
  open: It ? !0 : $e,
10186
10186
  onOpenChange: Zn,
10187
10187
  elements: {
10188
- reference: Qt ? Xn : si,
10188
+ reference: Qt ? Xn : ai,
10189
10189
  floating: Ir
10190
10190
  }
10191
10191
  });
10192
- let di, fi;
10193
- It || (di = m ? "grid" : "listbox", fi = $e ? "true" : "false");
10192
+ let fi, pi;
10193
+ It || (fi = m ? "grid" : "listbox", pi = $e ? "true" : "false");
10194
10194
  const fg = u.useMemo(() => {
10195
- const Z = si?.tagName === "INPUT", ie = Z || $e, ve = Z ? {
10195
+ const Z = ai?.tagName === "INPUT", ie = Z || $e, ve = Z ? {
10196
10196
  autoComplete: "off",
10197
10197
  spellCheck: "false",
10198
10198
  autoCorrect: "off",
10199
10199
  autoCapitalize: "none"
10200
10200
  } : {};
10201
- return ie && (ve.role = "combobox", ve["aria-expanded"] = fi, ve["aria-haspopup"] = di, ve["aria-controls"] = $e ? Da?.id : void 0, ve["aria-autocomplete"] = N), {
10201
+ return ie && (ve.role = "combobox", ve["aria-expanded"] = pi, ve["aria-haspopup"] = fi, ve["aria-controls"] = $e ? Da?.id : void 0, ve["aria-autocomplete"] = N), {
10202
10202
  reference: ve,
10203
10203
  floating: {
10204
10204
  role: "presentation"
10205
10205
  }
10206
10206
  };
10207
- }, [si, $e, fi, di, Da?.id, N]), pg = Tu(Pr, {
10207
+ }, [ai, $e, pi, fi, Da?.id, N]), pg = Tu(Pr, {
10208
10208
  enabled: !g && !nt && w,
10209
10209
  event: "mousedown-only",
10210
10210
  toggle: !1,
@@ -10247,7 +10247,7 @@ function rC(e) {
10247
10247
  orientation: m ? "horizontal" : void 0,
10248
10248
  disabledIndices: Fr,
10249
10249
  onNavigate(Z, ie) {
10250
- !ie && !$e || ai === "ending" || kt(ie ? {
10250
+ !ie && !$e || li === "ending" || kt(ie ? {
10251
10251
  activeIndex: Z,
10252
10252
  type: Q.current ? "keyboard" : "pointer"
10253
10253
  } : {
@@ -10255,25 +10255,25 @@ function rC(e) {
10255
10255
  });
10256
10256
  }
10257
10257
  }), {
10258
- getReferenceProps: pi,
10259
- getFloatingProps: gi,
10260
- getItemProps: mi
10258
+ getReferenceProps: gi,
10259
+ getFloatingProps: mi,
10260
+ getItemProps: hi
10261
10261
  } = kx([fg, pg, gg, mg]);
10262
10262
  Bx(() => {
10263
10263
  Ce.update({
10264
10264
  inline: O,
10265
- popupProps: gi(),
10266
- inputProps: pi(),
10267
- triggerProps: li,
10268
- getItemProps: mi,
10265
+ popupProps: mi(),
10266
+ inputProps: gi(),
10267
+ triggerProps: ci,
10268
+ getItemProps: hi,
10269
10269
  setOpen: Zn,
10270
10270
  setInputValue: Mt,
10271
10271
  setSelectedValue: Nr,
10272
10272
  setIndices: kt,
10273
- onItemHighlighted: oi,
10273
+ onItemHighlighted: ii,
10274
10274
  handleSelection: ug,
10275
10275
  forceMount: kr,
10276
- requestSubmit: ci
10276
+ requestSubmit: ui
10277
10277
  });
10278
10278
  }), oe(() => {
10279
10279
  Ce.update({
@@ -10281,14 +10281,14 @@ function rC(e) {
10281
10281
  selectedValue: ue,
10282
10282
  open: $e,
10283
10283
  mounted: Fa,
10284
- transitionStatus: ai,
10284
+ transitionStatus: li,
10285
10285
  items: b,
10286
10286
  inline: O,
10287
- popupProps: gi(),
10288
- inputProps: pi(),
10289
- triggerProps: li,
10287
+ popupProps: mi(),
10288
+ inputProps: gi(),
10289
+ triggerProps: ci,
10290
10290
  openMethod: Va,
10291
- getItemProps: mi,
10291
+ getItemProps: hi,
10292
10292
  selectionMode: l,
10293
10293
  name: ft,
10294
10294
  disabled: nt,
@@ -10297,7 +10297,7 @@ function rC(e) {
10297
10297
  grid: m,
10298
10298
  isGrouped: Rt,
10299
10299
  virtualized: j,
10300
- onOpenChangeComplete: ii,
10300
+ onOpenChangeComplete: si,
10301
10301
  openOnInputClick: w,
10302
10302
  itemToStringLabel: R,
10303
10303
  modal: Y,
@@ -10305,15 +10305,15 @@ function rC(e) {
10305
10305
  isItemEqualToValue: W,
10306
10306
  submitOnItemClick: te,
10307
10307
  hasInputValue: zt,
10308
- requestSubmit: ci
10308
+ requestSubmit: ui
10309
10309
  });
10310
- }, [Ce, Se, ue, $e, Fa, ai, b, gi, pi, mi, Va, li, l, ft, nt, g, f, he, m, Rt, j, ii, w, R, Y, W, te, zt, O, ci, Oe]);
10310
+ }, [Ce, Se, ue, $e, Fa, li, b, mi, gi, hi, Va, ci, l, ft, nt, g, f, he, m, Rt, j, si, w, R, Y, W, te, zt, O, ui, Oe]);
10311
10311
  const hg = mr(h, he.inputRef), bg = u.useMemo(() => ({
10312
10312
  query: Je,
10313
10313
  hasItems: St,
10314
10314
  filteredItems: Et,
10315
10315
  flatFilteredItems: pt
10316
- }), [Je, St, Et, pt]), vg = u.useMemo(() => Array.isArray(Zt) ? "" : tr(Zt, D), [Zt, D]), yg = Qe && Array.isArray(ue) && ue.length > 0, hi = Qe || l === "none" ? void 0 : ft, xg = u.useMemo(() => !Qe || !Array.isArray(ue) || !ft ? null : ue.map((Z) => {
10316
+ }), [Je, St, Et, pt]), vg = u.useMemo(() => Array.isArray(Zt) ? "" : tr(Zt, D), [Zt, D]), yg = Qe && Array.isArray(ue) && ue.length > 0, bi = Qe || l === "none" ? void 0 : ft, xg = u.useMemo(() => !Qe || !Array.isArray(ue) || !ft ? null : ue.map((Z) => {
10317
10317
  const ie = tr(Z, D);
10318
10318
  return /* @__PURE__ */ x("input", {
10319
10319
  type: "hidden",
@@ -10349,26 +10349,26 @@ function rC(e) {
10349
10349
  b ? Ge() : (kr(), queueMicrotask(Ge));
10350
10350
  }
10351
10351
  }),
10352
- id: Se && hi == null ? `${Se}-hidden-input` : void 0,
10353
- name: hi,
10352
+ id: Se && bi == null ? `${Se}-hidden-input` : void 0,
10353
+ name: bi,
10354
10354
  autoComplete: H,
10355
10355
  disabled: nt,
10356
10356
  required: f && !yg,
10357
10357
  readOnly: g,
10358
10358
  value: vg,
10359
10359
  ref: hg,
10360
- style: hi ? Yv : Ks,
10360
+ style: bi ? Yv : Ys,
10361
10361
  tabIndex: -1,
10362
10362
  "aria-hidden": !0
10363
10363
  }), xg]
10364
10364
  });
10365
- return /* @__PURE__ */ x(ea.Provider, {
10365
+ return /* @__PURE__ */ x(ta.Provider, {
10366
10366
  value: Ce,
10367
- children: /* @__PURE__ */ x(ta.Provider, {
10367
+ children: /* @__PURE__ */ x(na.Provider, {
10368
10368
  value: Pr,
10369
- children: /* @__PURE__ */ x(na.Provider, {
10369
+ children: /* @__PURE__ */ x(ra.Provider, {
10370
10370
  value: bg,
10371
- children: /* @__PURE__ */ x(ra.Provider, {
10371
+ children: /* @__PURE__ */ x(oa.Provider, {
10372
10372
  value: qe,
10373
10373
  children: Cg
10374
10374
  })
@@ -10418,9 +10418,9 @@ const Kr = 2, dd = /* @__PURE__ */ u.forwardRef(function(t, n) {
10418
10418
  validation: h
10419
10419
  } = Cr(), {
10420
10420
  labelId: m
10421
- } = sa(), b = vt(), {
10421
+ } = aa(), b = vt(), {
10422
10422
  filteredItems: y
10423
- } = vn(), v = T(b, V.selectionMode), w = T(b, V.disabled), C = T(b, V.readOnly), S = T(b, V.required), I = T(b, V.mounted), E = T(b, V.popupSide), R = T(b, V.positionerElement), D = T(b, V.listElement), W = T(b, V.triggerProps), j = T(b, V.triggerElement), O = T(b, V.inputInsidePopup), K = T(b, V.id), Y = T(b, V.open), G = T(b, V.selectedValue), N = T(b, V.activeIndex), H = T(b, V.selectedIndex), $ = T(b, V.hasSelectedValue), te = Go(), _ = oa(), Re = In(), me = d || w || s, we = y.length === 0, ae = I && R ? E : null;
10423
+ } = vn(), v = T(b, V.selectionMode), w = T(b, V.disabled), C = T(b, V.readOnly), S = T(b, V.required), I = T(b, V.mounted), E = T(b, V.popupSide), R = T(b, V.positionerElement), D = T(b, V.listElement), W = T(b, V.triggerProps), j = T(b, V.triggerElement), O = T(b, V.inputInsidePopup), K = T(b, V.id), Y = T(b, V.open), G = T(b, V.selectedValue), N = T(b, V.activeIndex), H = T(b, V.selectedIndex), $ = T(b, V.hasSelectedValue), te = Go(), _ = ia(), Re = In(), me = d || w || s, we = y.length === 0, ae = I && R ? E : null;
10424
10424
  ad({
10425
10425
  id: O ? a : void 0
10426
10426
  });
@@ -10512,20 +10512,20 @@ const Kr = 2, dd = /* @__PURE__ */ u.forwardRef(function(t, n) {
10512
10512
  });
10513
10513
  });
10514
10514
  process.env.NODE_ENV !== "production" && (dd.displayName = "ComboboxTrigger");
10515
- const aa = /* @__PURE__ */ u.createContext(void 0);
10516
- process.env.NODE_ENV !== "production" && (aa.displayName = "ComboboxChipsContext");
10515
+ const la = /* @__PURE__ */ u.createContext(void 0);
10516
+ process.env.NODE_ENV !== "production" && (la.displayName = "ComboboxChipsContext");
10517
10517
  function fd() {
10518
- return u.useContext(aa);
10518
+ return u.useContext(la);
10519
10519
  }
10520
- const la = /* @__PURE__ */ u.createContext(void 0);
10521
- process.env.NODE_ENV !== "production" && (la.displayName = "ComboboxPositionerContext");
10522
- function ca(e) {
10523
- const t = u.useContext(la);
10520
+ const ca = /* @__PURE__ */ u.createContext(void 0);
10521
+ process.env.NODE_ENV !== "production" && (ca.displayName = "ComboboxPositionerContext");
10522
+ function ua(e) {
10523
+ const t = u.useContext(ca);
10524
10524
  if (t === void 0 && !e)
10525
10525
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Popup> and <Combobox.Arrow> must be used within the <Combobox.Positioner> component" : _t(21));
10526
10526
  return t;
10527
10527
  }
10528
- const ua = /* @__PURE__ */ u.forwardRef(function(t, n) {
10528
+ const da = /* @__PURE__ */ u.forwardRef(function(t, n) {
10529
10529
  const {
10530
10530
  render: r,
10531
10531
  className: o,
@@ -10541,9 +10541,9 @@ const ua = /* @__PURE__ */ u.forwardRef(function(t, n) {
10541
10541
  validation: f
10542
10542
  } = Cr(), {
10543
10543
  labelId: h
10544
- } = sa(), m = fd(), y = !!ca(!0), v = vt(), {
10544
+ } = aa(), m = fd(), y = !!ua(!0), v = vt(), {
10545
10545
  filteredItems: w
10546
- } = vn(), C = oa(), S = Yc(), I = T(v, V.required), E = T(v, V.disabled), R = T(v, V.readOnly), D = T(v, V.name), W = T(v, V.selectionMode), j = T(v, V.autoHighlight), O = T(v, V.inputProps), K = T(v, V.triggerProps), Y = T(v, V.open), G = T(v, V.mounted), N = T(v, V.selectedValue), H = T(v, V.popupSide), $ = T(v, V.positionerElement), te = T(v, V.id), _ = T(v, V.inline), Re = !!j, me = G && $ ? H : null, we = c || E || i, ae = w.length === 0, ye = Ls(s ?? (y || _ ? void 0 : te)), [Ee, Ne] = u.useState(null), X = u.useRef(!1), he = u.useRef(null), Se = u.useRef(!1), P = re((k) => {
10546
+ } = vn(), C = ia(), S = Yc(), I = T(v, V.required), E = T(v, V.disabled), R = T(v, V.readOnly), D = T(v, V.name), W = T(v, V.selectionMode), j = T(v, V.autoHighlight), O = T(v, V.inputProps), K = T(v, V.triggerProps), Y = T(v, V.open), G = T(v, V.mounted), N = T(v, V.selectedValue), H = T(v, V.popupSide), $ = T(v, V.positionerElement), te = T(v, V.id), _ = T(v, V.inline), Re = !!j, me = G && $ ? H : null, we = c || E || i, ae = w.length === 0, ye = $s(s ?? (y || _ ? void 0 : te)), [Ee, Ne] = u.useState(null), X = u.useRef(!1), he = u.useRef(null), Se = u.useRef(!1), P = re((k) => {
10547
10547
  const B = y || v.state.inline;
10548
10548
  B && !v.state.hasInputValue && v.state.setInputValue("", ge(yt)), v.update({
10549
10549
  inputElement: k,
@@ -10714,7 +10714,7 @@ const ua = /* @__PURE__ */ u.forwardRef(function(t, n) {
10714
10714
  stateAttributesMapping: ud
10715
10715
  });
10716
10716
  });
10717
- process.env.NODE_ENV !== "production" && (ua.displayName = "ComboboxInput");
10717
+ process.env.NODE_ENV !== "production" && (da.displayName = "ComboboxInput");
10718
10718
  const iC = {
10719
10719
  ...ru,
10720
10720
  ...zx
@@ -10728,7 +10728,7 @@ const iC = {
10728
10728
  ...l
10729
10729
  } = t, {
10730
10730
  disabled: c
10731
- } = Cr(), d = vt(), p = T(d, V.selectionMode), g = T(d, V.disabled), f = T(d, V.readOnly), h = T(d, V.open), m = T(d, V.selectedValue), b = T(d, V.hasSelectionChips), y = oa();
10731
+ } = Cr(), d = vt(), p = T(d, V.selectionMode), g = T(d, V.disabled), f = T(d, V.readOnly), h = T(d, V.open), m = T(d, V.selectedValue), b = T(d, V.hasSelectionChips), y = ia();
10732
10732
  let v = !1;
10733
10733
  p === "none" ? v = y !== "" : p === "single" ? v = m != null : v = b;
10734
10734
  const w = c || g || i, {
@@ -10746,7 +10746,7 @@ const iC = {
10746
10746
  open: h,
10747
10747
  transitionStatus: E
10748
10748
  };
10749
- qs({
10749
+ Ks({
10750
10750
  open: v,
10751
10751
  ref: d.state.clearRef,
10752
10752
  onComplete() {
@@ -10782,10 +10782,10 @@ const iC = {
10782
10782
  return a || I ? W : null;
10783
10783
  });
10784
10784
  process.env.NODE_ENV !== "production" && (pd.displayName = "ComboboxClear");
10785
- const da = /* @__PURE__ */ u.createContext(null);
10786
- process.env.NODE_ENV !== "production" && (da.displayName = "GroupCollectionContext");
10785
+ const fa = /* @__PURE__ */ u.createContext(null);
10786
+ process.env.NODE_ENV !== "production" && (fa.displayName = "GroupCollectionContext");
10787
10787
  function sC() {
10788
- return u.useContext(da);
10788
+ return u.useContext(fa);
10789
10789
  }
10790
10790
  function aC(e) {
10791
10791
  const {
@@ -10794,7 +10794,7 @@ function aC(e) {
10794
10794
  } = e, r = u.useMemo(() => ({
10795
10795
  items: n
10796
10796
  }), [n]);
10797
- return /* @__PURE__ */ x(da.Provider, {
10797
+ return /* @__PURE__ */ x(fa.Provider, {
10798
10798
  value: r,
10799
10799
  children: t
10800
10800
  });
@@ -10816,7 +10816,7 @@ const md = /* @__PURE__ */ u.forwardRef(function(t, n) {
10816
10816
  className: i,
10817
10817
  children: s,
10818
10818
  ...a
10819
- } = t, l = vt(), c = Go(), d = !!ca(!0), {
10819
+ } = t, l = vt(), c = Go(), d = !!ua(!0), {
10820
10820
  filteredItems: p
10821
10821
  } = vn(), g = T(l, V.items), f = T(l, V.labelsRef), h = T(l, V.listRef), m = T(l, V.selectionMode), b = T(l, V.grid), y = T(l, V.popupProps), v = T(l, V.disabled), w = T(l, V.readOnly), C = T(l, V.virtualized), S = m === "multiple", I = p.length === 0, E = re((K) => {
10822
10822
  l.set("positionerElement", K);
@@ -10860,10 +10860,10 @@ const md = /* @__PURE__ */ u.forwardRef(function(t, n) {
10860
10860
  });
10861
10861
  });
10862
10862
  process.env.NODE_ENV !== "production" && (md.displayName = "ComboboxList");
10863
- const fa = /* @__PURE__ */ u.createContext(void 0);
10864
- process.env.NODE_ENV !== "production" && (fa.displayName = "ComboboxPortalContext");
10863
+ const pa = /* @__PURE__ */ u.createContext(void 0);
10864
+ process.env.NODE_ENV !== "production" && (pa.displayName = "ComboboxPortalContext");
10865
10865
  function lC() {
10866
- const e = u.useContext(fa);
10866
+ const e = u.useContext(pa);
10867
10867
  if (e === void 0)
10868
10868
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Portal> is missing." : _t(20));
10869
10869
  return e;
@@ -10873,7 +10873,7 @@ const hd = /* @__PURE__ */ u.forwardRef(function(t, n) {
10873
10873
  keepMounted: r = !1,
10874
10874
  ...o
10875
10875
  } = t, i = vt(), s = T(i, V.mounted), a = T(i, V.forceMounted);
10876
- return s || r || a ? /* @__PURE__ */ x(fa.Provider, {
10876
+ return s || r || a ? /* @__PURE__ */ x(pa.Provider, {
10877
10877
  value: r,
10878
10878
  children: /* @__PURE__ */ x(Mu, {
10879
10879
  ref: n,
@@ -10901,7 +10901,7 @@ const cC = (e) => ({
10901
10901
  } = Vt(e, t) || {};
10902
10902
  if (c == null)
10903
10903
  return {};
10904
- const g = Us(d), f = {
10904
+ const g = qs(d), f = {
10905
10905
  x: n,
10906
10906
  y: r
10907
10907
  }, h = Fo(o), m = Do(h), b = await s.getDimensions(c), y = h === "y", v = y ? "top" : "left", w = y ? "bottom" : "right", C = y ? "clientHeight" : "clientWidth", S = i.reference[m] + i.reference[h] - f[h] - i.floating[m], I = f[h] - i.reference[h], E = p === "real" ? await s.getOffsetParent?.(c) : a.floating;
@@ -11096,7 +11096,7 @@ function pC(e) {
11096
11096
  placement: lt,
11097
11097
  rects: ct,
11098
11098
  y: yn
11099
- } = Te, qe = mt(lt), Kn = Ct(qe), $e = le.current, ri = ue.arrow?.x || 0, Rt = ue.arrow?.y || 0, Je = $e?.clientWidth || 0, Yn = $e?.clientHeight || 0, Tn = ri + Je / 2, Yt = Rt + Yn / 2, Rr = Math.abs(ue.shift?.y || 0), Xt = ct.reference.height / 2, Et = typeof o == "function" ? o(Ll(Te, r, G)) : o, pt = Rr > Et, Ce = {
11099
+ } = Te, qe = mt(lt), Kn = Ct(qe), $e = le.current, oi = ue.arrow?.x || 0, Rt = ue.arrow?.y || 0, Je = $e?.clientWidth || 0, Yn = $e?.clientHeight || 0, Tn = oi + Je / 2, Yt = Rt + Yn / 2, Rr = Math.abs(ue.shift?.y || 0), Xt = ct.reference.height / 2, Et = typeof o == "function" ? o(Ll(Te, r, G)) : o, pt = Rr > Et, Ce = {
11100
11100
  top: `${Tn}px calc(100% + ${Et}px)`,
11101
11101
  bottom: `${Tn}px ${-Et}px`,
11102
11102
  left: `calc(100% + ${Et}px) ${Yt}px`,
@@ -11130,7 +11130,7 @@ function pC(e) {
11130
11130
  placement: H,
11131
11131
  middleware: he,
11132
11132
  strategy: n,
11133
- whileElementsMounted: g ? void 0 : (...Te) => ds(...Te, pe),
11133
+ whileElementsMounted: g ? void 0 : (...Te) => fs(...Te, pe),
11134
11134
  nodeId: y,
11135
11135
  externalTree: C
11136
11136
  }), {
@@ -11159,7 +11159,7 @@ function pC(e) {
11159
11159
  typeof Te != "function" && $l(Te) && Te.current !== st.current && (k.setPositionReference(Te.current), st.current = Te.current);
11160
11160
  }, [h, k, O, K]), u.useEffect(() => {
11161
11161
  if (g && h && B.domReference && B.floating)
11162
- return ds(B.domReference, B.floating, F, pe);
11162
+ return fs(B.domReference, B.floating, F, pe);
11163
11163
  }, [g, h, B, F, pe]);
11164
11164
  const nt = mt(Q), ft = bd(r, nt, G), Qe = Kt(Q) || "center", at = !!q.hide?.referenceHidden;
11165
11165
  oe(() => {
@@ -11264,7 +11264,7 @@ const yd = /* @__PURE__ */ u.forwardRef(function(t, n) {
11264
11264
  props: [H, vd(K), y],
11265
11265
  stateAttributesMapping: ed
11266
11266
  });
11267
- return /* @__PURE__ */ ce(la.Provider, {
11267
+ return /* @__PURE__ */ ce(ca.Provider, {
11268
11268
  value: te,
11269
11269
  children: [R && I && /* @__PURE__ */ x(td, {
11270
11270
  inert: Hx(!E),
@@ -11283,10 +11283,10 @@ const gC = {
11283
11283
  initialFocus: i,
11284
11284
  finalFocus: s,
11285
11285
  ...a
11286
- } = t, l = vt(), c = ca(), d = Go(), {
11286
+ } = t, l = vt(), c = ua(), d = Go(), {
11287
11287
  filteredItems: p
11288
11288
  } = vn(), g = T(l, V.mounted), f = T(l, V.open), h = T(l, V.openMethod), m = T(l, V.transitionStatus), b = T(l, V.inputInsidePopup), y = T(l, V.inputElement), v = p.length === 0;
11289
- qs({
11289
+ Ks({
11290
11290
  open: f,
11291
11291
  ref: l.state.popupRef,
11292
11292
  onComplete() {
@@ -11325,10 +11325,10 @@ const gC = {
11325
11325
  });
11326
11326
  });
11327
11327
  process.env.NODE_ENV !== "production" && (xd.displayName = "ComboboxPopup");
11328
- const pa = /* @__PURE__ */ u.createContext(void 0);
11329
- process.env.NODE_ENV !== "production" && (pa.displayName = "ComboboxGroupContext");
11328
+ const ga = /* @__PURE__ */ u.createContext(void 0);
11329
+ process.env.NODE_ENV !== "production" && (ga.displayName = "ComboboxGroupContext");
11330
11330
  function mC() {
11331
- const e = u.useContext(pa);
11331
+ const e = u.useContext(ga);
11332
11332
  if (e === void 0)
11333
11333
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxGroupContext is missing. ComboboxGroup parts must be placed within <Combobox.Group>." : _t(18));
11334
11334
  return e;
@@ -11349,7 +11349,7 @@ const Cd = /* @__PURE__ */ u.forwardRef(function(t, n) {
11349
11349
  role: "group",
11350
11350
  "aria-labelledby": a
11351
11351
  }, s]
11352
- }), p = /* @__PURE__ */ x(pa.Provider, {
11352
+ }), p = /* @__PURE__ */ x(ga.Provider, {
11353
11353
  value: c,
11354
11354
  children: d
11355
11355
  });
@@ -11367,7 +11367,7 @@ const wd = /* @__PURE__ */ u.forwardRef(function(t, n) {
11367
11367
  ...s
11368
11368
  } = t, {
11369
11369
  setLabelId: a
11370
- } = mC(), l = Ls(i);
11370
+ } = mC(), l = $s(i);
11371
11371
  return oe(() => (a(l), () => {
11372
11372
  a(void 0);
11373
11373
  }), [l, a]), ot("div", t, {
@@ -11567,7 +11567,7 @@ const Nd = /* @__PURE__ */ u.forwardRef(function(t, n) {
11567
11567
  setHighlightedChipIndex: d,
11568
11568
  chipsRef: p
11569
11569
  }), [c, d, p]);
11570
- return /* @__PURE__ */ x(aa.Provider, {
11570
+ return /* @__PURE__ */ x(la.Provider, {
11571
11571
  value: f,
11572
11572
  children: /* @__PURE__ */ x(qc, {
11573
11573
  elementsRef: p,
@@ -11576,10 +11576,10 @@ const Nd = /* @__PURE__ */ u.forwardRef(function(t, n) {
11576
11576
  });
11577
11577
  });
11578
11578
  process.env.NODE_ENV !== "production" && (Nd.displayName = "ComboboxChips");
11579
- const ga = /* @__PURE__ */ u.createContext(void 0);
11580
- process.env.NODE_ENV !== "production" && (ga.displayName = "ComboboxChipContext");
11579
+ const ma = /* @__PURE__ */ u.createContext(void 0);
11580
+ process.env.NODE_ENV !== "production" && (ma.displayName = "ComboboxChipContext");
11581
11581
  function yC() {
11582
- const e = u.useContext(ga);
11582
+ const e = u.useContext(ma);
11583
11583
  if (!e)
11584
11584
  throw new Error(process.env.NODE_ENV !== "production" ? "useComboboxChipContext must be used within a ComboboxChip" : _t(17));
11585
11585
  return e;
@@ -11639,7 +11639,7 @@ const Pd = /* @__PURE__ */ u.forwardRef(function(t, n) {
11639
11639
  }), y = u.useMemo(() => ({
11640
11640
  index: f
11641
11641
  }), [f]);
11642
- return /* @__PURE__ */ x(ga.Provider, {
11642
+ return /* @__PURE__ */ x(ma.Provider, {
11643
11643
  value: y,
11644
11644
  children: b
11645
11645
  });
@@ -11811,11 +11811,12 @@ const IC = Ae(
11811
11811
  Xe("body-sm-regular")
11812
11812
  ].join(" "), MC = [
11813
11813
  "text-sub-label-text group-has-data-[orientation=horizontal]/field:text-balance",
11814
+ "aria-invalid:text-error-text aria-valid:text-success-text disabled:text-disabled-text",
11814
11815
  Xe("body-xs-regular"),
11815
11816
  "last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
11816
11817
  "[&>a:hover]:text-primary-text [&>a]:underline [&>a]:underline-offset-4"
11817
11818
  ].join(" "), TC = "relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", DC = "absolute inset-0 top-1/2", FC = "bg-background text-muted-foreground relative mx-auto block w-fit px-2", VC = "ml-4 flex list-disc flex-col gap-1", LC = "text-error-text text-xs leading-[140%] font-normal tracking-normal";
11818
- function ma({ className: e, ...t }) {
11819
+ function ha({ className: e, ...t }) {
11819
11820
  return /* @__PURE__ */ x(
11820
11821
  "fieldset",
11821
11822
  {
@@ -11896,7 +11897,7 @@ function BE({ className: e, ...t }) {
11896
11897
  }
11897
11898
  );
11898
11899
  }
11899
- function ha({ className: e, ...t }) {
11900
+ function Uo({ className: e, ...t }) {
11900
11901
  return /* @__PURE__ */ x(
11901
11902
  "p",
11902
11903
  {
@@ -11931,7 +11932,7 @@ function $C({
11931
11932
  errors: n,
11932
11933
  ...r
11933
11934
  }) {
11934
- const o = Ki(() => t || (n ? n.length === 1 && n[0]?.message ? n[0].message : /* @__PURE__ */ x("ul", { className: VC, children: n.map((i) => i?.message ? /* @__PURE__ */ x("li", { children: i.message }, i.message) : null) }) : null), [t, n]);
11935
+ const o = Yi(() => t || (n ? n.length === 1 && n[0]?.message ? n[0].message : /* @__PURE__ */ x("ul", { className: VC, children: n.map((i) => i?.message ? /* @__PURE__ */ x("li", { children: i.message }, i.message) : null) }) : null), [t, n]);
11935
11936
  return o ? /* @__PURE__ */ x(
11936
11937
  "div",
11937
11938
  {
@@ -11944,7 +11945,7 @@ function $C({
11944
11945
  ) : null;
11945
11946
  }
11946
11947
  const zC = Ae(
11947
- `text-primary-text hover:border-inp-hover-border
11948
+ `text-primary-text hover:border-inp-hover-border focus:border-inp-focus-border
11948
11949
  placeholder:text-placeholder-text disabled:border-inp-disabled-border bg-primary-bg
11949
11950
  disabled:bg-disabled-bg disabled:text-disabled-text
11950
11951
  disabled:placeholder:text-disabled-text aria-invalid:border-error-text
@@ -12180,8 +12181,8 @@ origin-(--transform-origin) overflow-auto rounded-xl border pl-0
12180
12181
  shadow-[0px_4px_12px_0px_rgba(0,0,0,0.1)] duration-100 *:data-[slot=input-group]:m-1
12181
12182
  *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8
12182
12183
  *:data-[slot=input-group]:shadow-none`, QC = `text-primary-text data-disabled:text-disabled-text
12183
- data-highlighted:bg-tertiary-bg relative flex w-full cursor-pointer items-center gap-2
12184
- px-4 py-2 text-sm outline-none select-none data-disabled:pointer-events-none
12184
+ data-highlighted:bg-primary-hover-bg relative flex w-full cursor-pointer items-center gap-2
12185
+ px-2 py-2 text-sm outline-none select-none data-disabled:pointer-events-none
12185
12186
  [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`, JC = "text-secondary-text px-4 py-2 text-xs", ew = `text-secondary-text hidden w-full justify-center py-2
12186
12187
  text-center text-sm group-data-empty/combobox-content:flex`, tw = "bg-delicate-border -mx-1 my-1 h-px", nw = Ae(
12187
12188
  `border-inp-default-border bg-primary-bg text-primary-text hover:border-inp-hover-border
@@ -12189,7 +12190,7 @@ text-center text-sm group-data-empty/combobox-content:flex`, tw = "bg-delicate-b
12189
12190
  has-aria-invalid:ring-error-text/20 focus-within:border-inp-focus-border relative flex
12190
12191
  min-h-10 w-full flex-wrap items-center gap-1 rounded-xl border bg-clip-padding py-1.5
12191
12192
  pr-3 pl-3 text-sm transition-colors placeholder:text-sm focus-within:ring-0
12192
- focus-within:outline-none disabled:pointer-events-none has-aria-invalid:ring-1
12193
+ focus-within:outline-none disabled:pointer-events-none
12193
12194
  has-data-[slot=combobox-chip]:pl-1`,
12194
12195
  {
12195
12196
  variants: {
@@ -12213,7 +12214,7 @@ has-data-[slot=combobox-chip-remove]:pr-0`, ow = Ae(
12213
12214
  {
12214
12215
  variants: {
12215
12216
  disabled: {
12216
- true: "absolute left-0 w-0 min-w-0 flex-1 p-0 opacity-0",
12217
+ true: "flex-1 p-0",
12217
12218
  false: ""
12218
12219
  }
12219
12220
  },
@@ -12221,7 +12222,7 @@ has-data-[slot=combobox-chip-remove]:pr-0`, ow = Ae(
12221
12222
  disabled: !1
12222
12223
  }
12223
12224
  }
12224
- ), Uo = u.createContext(
12225
+ ), qo = u.createContext(
12225
12226
  null
12226
12227
  );
12227
12228
  function iw({
@@ -12235,7 +12236,7 @@ function iw({
12235
12236
  }),
12236
12237
  [n]
12237
12238
  );
12238
- return /* @__PURE__ */ x(Uo, { value: o, children: /* @__PURE__ */ x(bC, { ...t, children: e }) });
12239
+ return /* @__PURE__ */ x(qo, { value: o, children: /* @__PURE__ */ x(bC, { ...t, children: e }) });
12239
12240
  }
12240
12241
  function sw({
12241
12242
  className: e,
@@ -12253,7 +12254,7 @@ function sw({
12253
12254
  children: [
12254
12255
  t && /* @__PURE__ */ x(Wo, { children: t }),
12255
12256
  o,
12256
- n && /* @__PURE__ */ x(ha, { children: n }),
12257
+ n && /* @__PURE__ */ x(Uo, { children: n }),
12257
12258
  r && /* @__PURE__ */ x($C, { children: r })
12258
12259
  ]
12259
12260
  }
@@ -12268,7 +12269,7 @@ function Gl({ ...e }) {
12268
12269
  }
12269
12270
  );
12270
12271
  }
12271
- function gs({
12272
+ function ms({
12272
12273
  className: e,
12273
12274
  children: t,
12274
12275
  ...n
@@ -12306,7 +12307,7 @@ function aw({ className: e, ...t }) {
12306
12307
  variant: "link",
12307
12308
  size: "icon-xs",
12308
12309
  className: zd,
12309
- children: /* @__PURE__ */ x(Ms, { className: qC })
12310
+ children: /* @__PURE__ */ x(Ts, { className: qC })
12310
12311
  }
12311
12312
  )
12312
12313
  }
@@ -12320,7 +12321,7 @@ function qE({
12320
12321
  showClear: o = !1,
12321
12322
  ...i
12322
12323
  }) {
12323
- const s = u.use(Uo), a = u.useCallback(
12324
+ const s = u.use(qo), a = u.useCallback(
12324
12325
  (l) => {
12325
12326
  s && s.setAnchorElement(
12326
12327
  (c) => c === l ? c : l
@@ -12335,7 +12336,7 @@ function qE({
12335
12336
  className: L(KC, e),
12336
12337
  children: [
12337
12338
  /* @__PURE__ */ x(
12338
- ua,
12339
+ da,
12339
12340
  {
12340
12341
  render: /* @__PURE__ */ x($d, { disabled: n }),
12341
12342
  ...i
@@ -12347,7 +12348,7 @@ function qE({
12347
12348
  align: "inline-end",
12348
12349
  className: YC,
12349
12350
  children: [
12350
- r && /* @__PURE__ */ x(gs, {}),
12351
+ r && /* @__PURE__ */ x(ms, {}),
12351
12352
  o && /* @__PURE__ */ x(aw, { disabled: n })
12352
12353
  ]
12353
12354
  }
@@ -12366,7 +12367,7 @@ function lw({
12366
12367
  anchor: i,
12367
12368
  ...s
12368
12369
  }) {
12369
- const a = u.use(Uo), l = u.useCallback(() => {
12370
+ const a = u.use(qo), l = u.useCallback(() => {
12370
12371
  if (typeof document > "u")
12371
12372
  return null;
12372
12373
  const c = document.activeElement;
@@ -12398,7 +12399,7 @@ function cw({ className: e, ...t }) {
12398
12399
  md,
12399
12400
  {
12400
12401
  "data-slot": "combobox-list",
12401
- className: L(e),
12402
+ className: L("flex flex-col gap-1", e),
12402
12403
  ...t
12403
12404
  }
12404
12405
  );
@@ -12468,7 +12469,7 @@ function Hl({
12468
12469
  disabled: t = !1,
12469
12470
  ...n
12470
12471
  }) {
12471
- const r = u.use(Uo), o = u.useCallback(
12472
+ const r = u.use(qo), o = u.useCallback(
12472
12473
  (i) => {
12473
12474
  r && r.setAnchorElement(
12474
12475
  (s) => s === i ? s : i
@@ -12508,7 +12509,7 @@ function Bl({
12508
12509
  {
12509
12510
  className: zd,
12510
12511
  variant: "ghost",
12511
- children: /* @__PURE__ */ x(Ms, { className: "text-secondary-text" })
12512
+ children: /* @__PURE__ */ x(Ts, { className: "text-secondary-text" })
12512
12513
  }
12513
12514
  )
12514
12515
  }
@@ -12519,7 +12520,7 @@ function Bl({
12519
12520
  }
12520
12521
  function jl({ className: e, ...t }) {
12521
12522
  return /* @__PURE__ */ x(
12522
- ua,
12523
+ da,
12523
12524
  {
12524
12525
  "data-slot": "combobox-chip-input",
12525
12526
  className: L(ow({ disabled: t.disabled }), e),
@@ -12550,7 +12551,7 @@ function gw(e, t = globalThis?.document) {
12550
12551
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
12551
12552
  }, [n, t]);
12552
12553
  }
12553
- var mw = "DismissableLayer", ms = "dismissableLayer.update", hw = "dismissableLayer.pointerDownOutside", bw = "dismissableLayer.focusOutside", Wl, Gd = u.createContext({
12554
+ var mw = "DismissableLayer", hs = "dismissableLayer.update", hw = "dismissableLayer.pointerDownOutside", bw = "dismissableLayer.focusOutside", Wl, Gd = u.createContext({
12554
12555
  layers: /* @__PURE__ */ new Set(),
12555
12556
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
12556
12557
  branches: /* @__PURE__ */ new Set()
@@ -12582,7 +12583,7 @@ var mw = "DismissableLayer", ms = "dismissableLayer.update", hw = "dismissableLa
12582
12583
  d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), Ul());
12583
12584
  }, [d, c]), u.useEffect(() => {
12584
12585
  const E = () => f({});
12585
- return document.addEventListener(ms, E), () => document.removeEventListener(ms, E);
12586
+ return document.addEventListener(hs, E), () => document.removeEventListener(hs, E);
12586
12587
  }, []), /* @__PURE__ */ x(
12587
12588
  Me.div,
12588
12589
  {
@@ -12659,14 +12660,14 @@ function Cw(e, t = globalThis?.document) {
12659
12660
  };
12660
12661
  }
12661
12662
  function Ul() {
12662
- const e = new CustomEvent(ms);
12663
+ const e = new CustomEvent(hs);
12663
12664
  document.dispatchEvent(e);
12664
12665
  }
12665
12666
  function Hd(e, t, n, { discrete: r }) {
12666
12667
  const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
12667
12668
  t && o.addEventListener(e, t, { once: !0 }), r ? Xm(o, i) : o.dispatchEvent(i);
12668
12669
  }
12669
- var Mi = "focusScope.autoFocusOnMount", Ti = "focusScope.autoFocusOnUnmount", ql = { bubbles: !1, cancelable: !0 }, ww = "FocusScope", Bd = u.forwardRef((e, t) => {
12670
+ var Ti = "focusScope.autoFocusOnMount", Di = "focusScope.autoFocusOnUnmount", ql = { bubbles: !1, cancelable: !0 }, ww = "FocusScope", Bd = u.forwardRef((e, t) => {
12670
12671
  const {
12671
12672
  loop: n = !1,
12672
12673
  trapped: r = !1,
@@ -12708,13 +12709,13 @@ var Mi = "focusScope.autoFocusOnMount", Ti = "focusScope.autoFocusOnUnmount", ql
12708
12709
  Yl.add(f);
12709
12710
  const m = document.activeElement;
12710
12711
  if (!a.contains(m)) {
12711
- const y = new CustomEvent(Mi, ql);
12712
- a.addEventListener(Mi, c), a.dispatchEvent(y), y.defaultPrevented || (Sw(Nw(jd(a)), { select: !0 }), document.activeElement === m && tn(a));
12712
+ const y = new CustomEvent(Ti, ql);
12713
+ a.addEventListener(Ti, c), a.dispatchEvent(y), y.defaultPrevented || (Sw(Nw(jd(a)), { select: !0 }), document.activeElement === m && tn(a));
12713
12714
  }
12714
12715
  return () => {
12715
- a.removeEventListener(Mi, c), setTimeout(() => {
12716
- const y = new CustomEvent(Ti, ql);
12717
- a.addEventListener(Ti, d), a.dispatchEvent(y), y.defaultPrevented || tn(m ?? document.body, { select: !0 }), a.removeEventListener(Ti, d), Yl.remove(f);
12716
+ a.removeEventListener(Ti, c), setTimeout(() => {
12717
+ const y = new CustomEvent(Di, ql);
12718
+ a.addEventListener(Di, d), a.dispatchEvent(y), y.defaultPrevented || tn(m ?? document.body, { select: !0 }), a.removeEventListener(Di, d), Yl.remove(f);
12718
12719
  }, 0);
12719
12720
  };
12720
12721
  }
@@ -12801,12 +12802,12 @@ var Pw = "Portal", ya = u.forwardRef((e, t) => {
12801
12802
  return s ? Rg.createPortal(/* @__PURE__ */ x(Me.div, { ...r, ref: t }), s) : null;
12802
12803
  });
12803
12804
  ya.displayName = Pw;
12804
- var Di = 0;
12805
+ var Fi = 0;
12805
12806
  function Ow() {
12806
12807
  u.useEffect(() => {
12807
12808
  const e = document.querySelectorAll("[data-radix-focus-guard]");
12808
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Zl()), document.body.insertAdjacentElement("beforeend", e[1] ?? Zl()), Di++, () => {
12809
- Di === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Di--;
12809
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Zl()), document.body.insertAdjacentElement("beforeend", e[1] ?? Zl()), Fi++, () => {
12810
+ Fi === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Fi--;
12810
12811
  };
12811
12812
  }, []);
12812
12813
  }
@@ -12837,7 +12838,7 @@ function _w(e, t, n) {
12837
12838
  return e.concat(i || Array.prototype.slice.call(t));
12838
12839
  }
12839
12840
  var oo = "right-scroll-bar-position", io = "width-before-scroll-bar", Aw = "with-scroll-bars-hidden", Mw = "--removed-body-scroll-bar-size";
12840
- function Fi(e, t) {
12841
+ function Vi(e, t) {
12841
12842
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
12842
12843
  }
12843
12844
  function Tw(e, t) {
@@ -12865,7 +12866,7 @@ var Dw = typeof window < "u" ? u.useLayoutEffect : u.useEffect, Ql = /* @__PURE_
12865
12866
  function Fw(e, t) {
12866
12867
  var n = Tw(null, function(r) {
12867
12868
  return e.forEach(function(o) {
12868
- return Fi(o, r);
12869
+ return Vi(o, r);
12869
12870
  });
12870
12871
  });
12871
12872
  return Dw(function() {
@@ -12873,9 +12874,9 @@ function Fw(e, t) {
12873
12874
  if (r) {
12874
12875
  var o = new Set(r), i = new Set(e), s = n.current;
12875
12876
  o.forEach(function(a) {
12876
- i.has(a) || Fi(a, null);
12877
+ i.has(a) || Vi(a, null);
12877
12878
  }), i.forEach(function(a) {
12878
- o.has(a) || Fi(a, s);
12879
+ o.has(a) || Vi(a, s);
12879
12880
  });
12880
12881
  }
12881
12882
  Ql.set(n, e);
@@ -12957,12 +12958,12 @@ Ud.isSideCarExport = !0;
12957
12958
  function zw(e, t) {
12958
12959
  return e.useMedium(t), Ud;
12959
12960
  }
12960
- var qd = $w(), Vi = function() {
12961
- }, qo = u.forwardRef(function(e, t) {
12961
+ var qd = $w(), Li = function() {
12962
+ }, Ko = u.forwardRef(function(e, t) {
12962
12963
  var n = u.useRef(null), r = u.useState({
12963
- onScrollCapture: Vi,
12964
- onWheelCapture: Vi,
12965
- onTouchMoveCapture: Vi
12964
+ onScrollCapture: Li,
12965
+ onWheelCapture: Li,
12966
+ onTouchMoveCapture: Li
12966
12967
  }), o = r[0], i = r[1], s = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, f = e.noRelative, h = e.noIsolation, m = e.inert, b = e.allowPinchZoom, y = e.as, v = y === void 0 ? "div" : y, w = e.gapMode, C = Wd(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, I = Fw([n, t]), E = Dt(Dt({}, C), o);
12967
12968
  return u.createElement(
12968
12969
  u.Fragment,
@@ -12971,12 +12972,12 @@ var qd = $w(), Vi = function() {
12971
12972
  s ? u.cloneElement(u.Children.only(a), Dt(Dt({}, E), { ref: I })) : u.createElement(v, Dt({}, E, { className: l, ref: I }), a)
12972
12973
  );
12973
12974
  });
12974
- qo.defaultProps = {
12975
+ Ko.defaultProps = {
12975
12976
  enabled: !0,
12976
12977
  removeScrollBar: !0,
12977
12978
  inert: !1
12978
12979
  };
12979
- qo.classNames = {
12980
+ Ko.classNames = {
12980
12981
  fullWidth: io,
12981
12982
  zeroRight: oo
12982
12983
  };
@@ -13029,11 +13030,11 @@ var Ww = function() {
13029
13030
  top: 0,
13030
13031
  right: 0,
13031
13032
  gap: 0
13032
- }, Li = function(e) {
13033
+ }, $i = function(e) {
13033
13034
  return parseInt(e || "", 10) || 0;
13034
13035
  }, Kw = function(e) {
13035
13036
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
13036
- return [Li(n), Li(r), Li(o)];
13037
+ return [$i(n), $i(r), $i(o)];
13037
13038
  }, Yw = function(e) {
13038
13039
  if (e === void 0 && (e = "margin"), typeof window > "u")
13039
13040
  return qw;
@@ -13105,19 +13106,19 @@ var Ww = function() {
13105
13106
  return Yw(o);
13106
13107
  }, [o]);
13107
13108
  return u.createElement(Xw, { styles: Zw(i, !t, o, n ? "" : "!important") });
13108
- }, hs = !1;
13109
+ }, bs = !1;
13109
13110
  if (typeof window < "u")
13110
13111
  try {
13111
13112
  var Yr = Object.defineProperty({}, "passive", {
13112
13113
  get: function() {
13113
- return hs = !0, !0;
13114
+ return bs = !0, !0;
13114
13115
  }
13115
13116
  });
13116
13117
  window.addEventListener("test", Yr, Yr), window.removeEventListener("test", Yr, Yr);
13117
13118
  } catch {
13118
- hs = !1;
13119
+ bs = !1;
13119
13120
  }
13120
- var Dn = hs ? { passive: !1 } : !1, eS = function(e) {
13121
+ var Dn = bs ? { passive: !1 } : !1, eS = function(e) {
13121
13122
  return e.tagName === "TEXTAREA";
13122
13123
  }, Yd = function(e, t) {
13123
13124
  if (!(e instanceof Element))
@@ -13286,15 +13287,15 @@ function dS(e) {
13286
13287
  }
13287
13288
  const fS = zw(qd, uS);
13288
13289
  var Qd = u.forwardRef(function(e, t) {
13289
- return u.createElement(qo, Dt({}, e, { ref: t, sideCar: fS }));
13290
+ return u.createElement(Ko, Dt({}, e, { ref: t, sideCar: fS }));
13290
13291
  });
13291
- Qd.classNames = qo.classNames;
13292
+ Qd.classNames = Ko.classNames;
13292
13293
  var pS = function(e) {
13293
13294
  if (typeof document > "u")
13294
13295
  return null;
13295
13296
  var t = Array.isArray(e) ? e[0] : e;
13296
13297
  return t.ownerDocument.body;
13297
- }, Vn = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Qr = {}, $i = 0, Jd = function(e) {
13298
+ }, Vn = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Qr = {}, zi = 0, Jd = function(e) {
13298
13299
  return e && (e.host || Jd(e.parentNode));
13299
13300
  }, gS = function(e, t) {
13300
13301
  return t.map(function(n) {
@@ -13325,11 +13326,11 @@ var pS = function(e) {
13325
13326
  }
13326
13327
  });
13327
13328
  };
13328
- return d(t), a.clear(), $i++, function() {
13329
+ return d(t), a.clear(), zi++, function() {
13329
13330
  s.forEach(function(p) {
13330
13331
  var g = Vn.get(p) - 1, f = i.get(p) - 1;
13331
13332
  Vn.set(p, g), i.set(p, f), g || (Zr.has(p) || p.removeAttribute(r), Zr.delete(p)), f || p.removeAttribute(n);
13332
- }), $i--, $i || (Vn = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Qr = {});
13333
+ }), zi--, zi || (Vn = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Qr = {});
13333
13334
  };
13334
13335
  }, hS = function(e, t, n) {
13335
13336
  n === void 0 && (n = "data-aria-hidden");
@@ -13337,7 +13338,7 @@ var pS = function(e) {
13337
13338
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), mS(r, o, n, "aria-hidden")) : function() {
13338
13339
  return null;
13339
13340
  };
13340
- }, Ko = "Dialog", [ef] = Lt(Ko), [bS, At] = ef(Ko), tf = (e) => {
13341
+ }, Yo = "Dialog", [ef] = Lt(Yo), [bS, At] = ef(Yo), tf = (e) => {
13341
13342
  const {
13342
13343
  __scopeDialog: t,
13343
13344
  children: n,
@@ -13349,7 +13350,7 @@ var pS = function(e) {
13349
13350
  prop: r,
13350
13351
  defaultProp: o ?? !1,
13351
13352
  onChange: i,
13352
- caller: Ko
13353
+ caller: Yo
13353
13354
  });
13354
13355
  return /* @__PURE__ */ x(
13355
13356
  bS,
@@ -13368,7 +13369,7 @@ var pS = function(e) {
13368
13369
  }
13369
13370
  );
13370
13371
  };
13371
- tf.displayName = Ko;
13372
+ tf.displayName = Yo;
13372
13373
  var nf = "DialogTrigger", rf = u.forwardRef(
13373
13374
  (e, t) => {
13374
13375
  const { __scopeDialog: n, ...r } = e, o = At(nf, n), i = Be(t, o.triggerRef);
@@ -13788,7 +13789,7 @@ const or = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
13788
13789
  }
13789
13790
  );
13790
13791
  or.displayName = "PaginationItem";
13791
- const Yo = ({
13792
+ const Xo = ({
13792
13793
  className: e,
13793
13794
  isActive: t,
13794
13795
  size: n = null,
@@ -13806,12 +13807,12 @@ const Yo = ({
13806
13807
  ...r
13807
13808
  }
13808
13809
  );
13809
- Yo.displayName = "PaginationLink";
13810
+ Xo.displayName = "PaginationLink";
13810
13811
  const WS = ({
13811
13812
  className: e,
13812
13813
  ...t
13813
13814
  }) => /* @__PURE__ */ ce(
13814
- Yo,
13815
+ Xo,
13815
13816
  {
13816
13817
  "aria-label": "Go to previous page",
13817
13818
  size: "md",
@@ -13828,7 +13829,7 @@ const US = ({
13828
13829
  className: e,
13829
13830
  ...t
13830
13831
  }) => /* @__PURE__ */ ce(
13831
- Yo,
13832
+ Xo,
13832
13833
  {
13833
13834
  "aria-label": "Go to next page",
13834
13835
  size: "md",
@@ -14065,11 +14066,11 @@ function Ea(e) {
14065
14066
  const t = u.useContext(iR);
14066
14067
  return e || t || "ltr";
14067
14068
  }
14068
- var zi = "rovingFocusGroup.onEntryFocus", sR = { bubbles: !1, cancelable: !0 }, wr = "RovingFocusGroup", [bs, Tf, aR] = oR(wr), [lR, Xo] = Lt(
14069
+ var Gi = "rovingFocusGroup.onEntryFocus", sR = { bubbles: !1, cancelable: !0 }, wr = "RovingFocusGroup", [vs, Tf, aR] = oR(wr), [lR, Zo] = Lt(
14069
14070
  wr,
14070
14071
  [aR]
14071
14072
  ), [cR, uR] = lR(wr), Df = u.forwardRef(
14072
- (e, t) => /* @__PURE__ */ x(bs.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ x(bs.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ x(dR, { ...e, ref: t }) }) })
14073
+ (e, t) => /* @__PURE__ */ x(vs.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ x(vs.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ x(dR, { ...e, ref: t }) }) })
14073
14074
  );
14074
14075
  Df.displayName = wr;
14075
14076
  var dR = u.forwardRef((e, t) => {
@@ -14093,7 +14094,7 @@ var dR = u.forwardRef((e, t) => {
14093
14094
  return u.useEffect(() => {
14094
14095
  const R = g.current;
14095
14096
  if (R)
14096
- return R.addEventListener(zi, w), () => R.removeEventListener(zi, w);
14097
+ return R.addEventListener(Gi, w), () => R.removeEventListener(Gi, w);
14097
14098
  }, [w]), /* @__PURE__ */ x(
14098
14099
  cR,
14099
14100
  {
@@ -14129,7 +14130,7 @@ var dR = u.forwardRef((e, t) => {
14129
14130
  onFocus: _e(e.onFocus, (R) => {
14130
14131
  const D = !S.current;
14131
14132
  if (R.target === R.currentTarget && D && !y) {
14132
- const W = new CustomEvent(zi, sR);
14133
+ const W = new CustomEvent(Gi, sR);
14133
14134
  if (R.currentTarget.dispatchEvent(W), !W.defaultPrevented) {
14134
14135
  const j = C().filter((N) => N.focusable), O = j.find((N) => N.active), K = j.find((N) => N.id === m), G = [O, K, ...j].filter(
14135
14136
  Boolean
@@ -14158,7 +14159,7 @@ var dR = u.forwardRef((e, t) => {
14158
14159
  if (r)
14159
14160
  return f(), () => h();
14160
14161
  }, [r, f, h]), /* @__PURE__ */ x(
14161
- bs.ItemSlot,
14162
+ vs.ItemSlot,
14162
14163
  {
14163
14164
  scope: n,
14164
14165
  id: c,
@@ -14301,7 +14302,7 @@ var yR = "RadioBubbleInput", Wf = u.forwardRef(
14301
14302
  bubbles: r = !0,
14302
14303
  ...o
14303
14304
  }, i) => {
14304
- const s = u.useRef(null), a = Be(s, i), l = Os(n), c = ko(t);
14305
+ const s = u.useRef(null), a = Be(s, i), l = _s(n), c = ko(t);
14305
14306
  return u.useEffect(() => {
14306
14307
  const d = s.current;
14307
14308
  if (!d) return;
@@ -14338,10 +14339,10 @@ Wf.displayName = yR;
14338
14339
  function Uf(e) {
14339
14340
  return e ? "checked" : "unchecked";
14340
14341
  }
14341
- var xR = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Zo = "RadioGroup", [CR] = Lt(Zo, [
14342
- Xo,
14342
+ var xR = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Qo = "RadioGroup", [CR] = Lt(Qo, [
14343
+ Zo,
14343
14344
  Gf
14344
- ]), qf = Xo(), Kf = Gf(), [wR, SR] = CR(Zo), Yf = u.forwardRef(
14345
+ ]), qf = Zo(), Kf = Gf(), [wR, SR] = CR(Qo), Yf = u.forwardRef(
14345
14346
  (e, t) => {
14346
14347
  const {
14347
14348
  __scopeRadioGroup: n,
@@ -14359,7 +14360,7 @@ var xR = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Zo = "RadioGroup",
14359
14360
  prop: i,
14360
14361
  defaultProp: o ?? null,
14361
14362
  onChange: p,
14362
- caller: Zo
14363
+ caller: Qo
14363
14364
  });
14364
14365
  return /* @__PURE__ */ x(
14365
14366
  wR,
@@ -14396,7 +14397,7 @@ var xR = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Zo = "RadioGroup",
14396
14397
  );
14397
14398
  }
14398
14399
  );
14399
- Yf.displayName = Zo;
14400
+ Yf.displayName = Qo;
14400
14401
  var Xf = "RadioGroupItem", Zf = u.forwardRef(
14401
14402
  (e, t) => {
14402
14403
  const { __scopeRadioGroup: n, disabled: r, ...o } = e, i = SR(Xf, n), s = i.disabled || r, a = qf(n), l = Kf(n), c = u.useRef(null), d = Be(t, c), p = i.value === o.value, g = u.useRef(!1);
@@ -14470,7 +14471,7 @@ const IR = ["grid gap-2"], kR = [
14470
14471
  }
14471
14472
  );
14472
14473
  tp.displayName = Jf.displayName;
14473
- const vs = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
14474
+ const ys = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
14474
14475
  ep,
14475
14476
  {
14476
14477
  ref: t,
@@ -14479,8 +14480,8 @@ const vs = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
14479
14480
  children: /* @__PURE__ */ x(ER, { className: L(NR), children: /* @__PURE__ */ x("span", { className: L(PR) }) })
14480
14481
  }
14481
14482
  );
14482
- vs.displayName = ep.displayName;
14483
- var Qo = "Switch", [OR] = Lt(Qo), [_R, AR] = OR(Qo), np = u.forwardRef(
14483
+ ys.displayName = ep.displayName;
14484
+ var Jo = "Switch", [OR] = Lt(Jo), [_R, AR] = OR(Jo), np = u.forwardRef(
14484
14485
  (e, t) => {
14485
14486
  const {
14486
14487
  __scopeSwitch: n,
@@ -14497,7 +14498,7 @@ var Qo = "Switch", [OR] = Lt(Qo), [_R, AR] = OR(Qo), np = u.forwardRef(
14497
14498
  prop: o,
14498
14499
  defaultProp: i ?? !1,
14499
14500
  onChange: c,
14500
- caller: Qo
14501
+ caller: Jo
14501
14502
  });
14502
14503
  return /* @__PURE__ */ ce(_R, { scope: n, checked: y, disabled: a, children: [
14503
14504
  /* @__PURE__ */ x(
@@ -14535,7 +14536,7 @@ var Qo = "Switch", [OR] = Lt(Qo), [_R, AR] = OR(Qo), np = u.forwardRef(
14535
14536
  ] });
14536
14537
  }
14537
14538
  );
14538
- np.displayName = Qo;
14539
+ np.displayName = Jo;
14539
14540
  var rp = "SwitchThumb", op = u.forwardRef(
14540
14541
  (e, t) => {
14541
14542
  const { __scopeSwitch: n, ...r } = e, o = AR(rp, n);
@@ -14559,7 +14560,7 @@ var MR = "SwitchBubbleInput", ip = u.forwardRef(
14559
14560
  bubbles: r = !0,
14560
14561
  ...o
14561
14562
  }, i) => {
14562
- const s = u.useRef(null), a = Be(s, i), l = Os(n), c = ko(t);
14563
+ const s = u.useRef(null), a = Be(s, i), l = _s(n), c = ko(t);
14563
14564
  return u.useEffect(() => {
14564
14565
  const d = s.current;
14565
14566
  if (!d) return;
@@ -14685,7 +14686,7 @@ const dp = ({ ref: e, className: t, ...n }) => /* @__PURE__ */ x(
14685
14686
  }
14686
14687
  );
14687
14688
  dp.displayName = "TableHead";
14688
- const ys = ({ ref: e, className: t, ...n }) => /* @__PURE__ */ x(
14689
+ const xs = ({ ref: e, className: t, ...n }) => /* @__PURE__ */ x(
14689
14690
  "td",
14690
14691
  {
14691
14692
  ref: e,
@@ -14697,7 +14698,7 @@ const ys = ({ ref: e, className: t, ...n }) => /* @__PURE__ */ x(
14697
14698
  ...n
14698
14699
  }
14699
14700
  );
14700
- ys.displayName = "TableCell";
14701
+ xs.displayName = "TableCell";
14701
14702
  const $R = ({ ref: e, className: t, ...n }) => /* @__PURE__ */ x(
14702
14703
  "caption",
14703
14704
  {
@@ -14707,9 +14708,9 @@ const $R = ({ ref: e, className: t, ...n }) => /* @__PURE__ */ x(
14707
14708
  }
14708
14709
  );
14709
14710
  $R.displayName = "TableCaption";
14710
- var Jo = "Tabs", [zR] = Lt(Jo, [
14711
- Xo
14712
- ]), fp = Xo(), [GR, ka] = zR(Jo), pp = u.forwardRef(
14711
+ var ei = "Tabs", [zR] = Lt(ei, [
14712
+ Zo
14713
+ ]), fp = Zo(), [GR, ka] = zR(ei), pp = u.forwardRef(
14713
14714
  (e, t) => {
14714
14715
  const {
14715
14716
  __scopeTabs: n,
@@ -14724,7 +14725,7 @@ var Jo = "Tabs", [zR] = Lt(Jo, [
14724
14725
  prop: r,
14725
14726
  onChange: o,
14726
14727
  defaultProp: i ?? "",
14727
- caller: Jo
14728
+ caller: ei
14728
14729
  });
14729
14730
  return /* @__PURE__ */ x(
14730
14731
  GR,
@@ -14749,7 +14750,7 @@ var Jo = "Tabs", [zR] = Lt(Jo, [
14749
14750
  );
14750
14751
  }
14751
14752
  );
14752
- pp.displayName = Jo;
14753
+ pp.displayName = ei;
14753
14754
  var gp = "TabsList", mp = u.forwardRef(
14754
14755
  (e, t) => {
14755
14756
  const { __scopeTabs: n, loop: r = !0, ...o } = e, i = ka(gp, n), s = fp(n);
@@ -15010,7 +15011,7 @@ var Pa = "PopperContent", [ZR, QR] = kp(Pa), Mp = u.forwardRef(
15010
15011
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
15011
15012
  strategy: "fixed",
15012
15013
  placement: D,
15013
- whileElementsMounted: (...Ee) => ds(...Ee, {
15014
+ whileElementsMounted: (...Ee) => fs(...Ee, {
15014
15015
  animationFrame: f === "always"
15015
15016
  }),
15016
15017
  elements: {
@@ -15188,9 +15189,9 @@ var n0 = Op, r0 = Ap, o0 = Mp, i0 = Dp, s0 = Object.freeze({
15188
15189
  )
15189
15190
  );
15190
15191
  Vp.displayName = a0;
15191
- var l0 = Vp, [ei] = Lt("Tooltip", [
15192
+ var l0 = Vp, [ti] = Lt("Tooltip", [
15192
15193
  Np
15193
- ]), ti = Np(), Lp = "TooltipProvider", c0 = 700, xs = "tooltip.open", [u0, Oa] = ei(Lp), $p = (e) => {
15194
+ ]), ni = Np(), Lp = "TooltipProvider", c0 = 700, Cs = "tooltip.open", [u0, Oa] = ti(Lp), $p = (e) => {
15194
15195
  const {
15195
15196
  __scopeTooltip: t,
15196
15197
  delayDuration: n = c0,
@@ -15226,7 +15227,7 @@ var l0 = Vp, [ei] = Lt("Tooltip", [
15226
15227
  );
15227
15228
  };
15228
15229
  $p.displayName = Lp;
15229
- var vr = "Tooltip", [d0, Sr] = ei(vr), zp = (e) => {
15230
+ var vr = "Tooltip", [d0, Sr] = ti(vr), zp = (e) => {
15230
15231
  const {
15231
15232
  __scopeTooltip: t,
15232
15233
  children: n,
@@ -15235,11 +15236,11 @@ var vr = "Tooltip", [d0, Sr] = ei(vr), zp = (e) => {
15235
15236
  onOpenChange: i,
15236
15237
  disableHoverableContent: s,
15237
15238
  delayDuration: a
15238
- } = e, l = Oa(vr, e.__scopeTooltip), c = ti(t), [d, p] = u.useState(null), g = Bn(), f = u.useRef(0), h = s ?? l.disableHoverableContent, m = a ?? l.delayDuration, b = u.useRef(!1), [y, v] = An({
15239
+ } = e, l = Oa(vr, e.__scopeTooltip), c = ni(t), [d, p] = u.useState(null), g = Bn(), f = u.useRef(0), h = s ?? l.disableHoverableContent, m = a ?? l.delayDuration, b = u.useRef(!1), [y, v] = An({
15239
15240
  prop: r,
15240
15241
  defaultProp: o ?? !1,
15241
15242
  onChange: (E) => {
15242
- E ? (l.onOpen(), document.dispatchEvent(new CustomEvent(xs))) : l.onClose(), i?.(E);
15243
+ E ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Cs))) : l.onClose(), i?.(E);
15243
15244
  },
15244
15245
  caller: vr
15245
15246
  }), w = u.useMemo(() => y ? b.current ? "delayed-open" : "instant-open" : "closed", [y]), C = u.useCallback(() => {
@@ -15276,9 +15277,9 @@ var vr = "Tooltip", [d0, Sr] = ei(vr), zp = (e) => {
15276
15277
  ) });
15277
15278
  };
15278
15279
  zp.displayName = vr;
15279
- var Cs = "TooltipTrigger", Gp = u.forwardRef(
15280
+ var ws = "TooltipTrigger", Gp = u.forwardRef(
15280
15281
  (e, t) => {
15281
- const { __scopeTooltip: n, ...r } = e, o = Sr(Cs, n), i = Oa(Cs, n), s = ti(n), a = u.useRef(null), l = Be(t, a, o.onTriggerChange), c = u.useRef(!1), d = u.useRef(!1), p = u.useCallback(() => c.current = !1, []);
15282
+ const { __scopeTooltip: n, ...r } = e, o = Sr(ws, n), i = Oa(ws, n), s = ni(n), a = u.useRef(null), l = Be(t, a, o.onTriggerChange), c = u.useRef(!1), d = u.useRef(!1), p = u.useCallback(() => c.current = !1, []);
15282
15283
  return u.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ x(r0, { asChild: !0, ...s, children: /* @__PURE__ */ x(
15283
15284
  Me.button,
15284
15285
  {
@@ -15304,8 +15305,8 @@ var Cs = "TooltipTrigger", Gp = u.forwardRef(
15304
15305
  ) });
15305
15306
  }
15306
15307
  );
15307
- Gp.displayName = Cs;
15308
- var _a = "TooltipPortal", [f0, p0] = ei(_a, {
15308
+ Gp.displayName = ws;
15309
+ var _a = "TooltipPortal", [f0, p0] = ti(_a, {
15309
15310
  forceMount: void 0
15310
15311
  }), Hp = (e) => {
15311
15312
  const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, i = Sr(_a, t);
@@ -15343,7 +15344,7 @@ var qn = "TooltipContent", Bp = u.forwardRef(
15343
15344
  return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
15344
15345
  }
15345
15346
  }, [l, d, s, c, g]), /* @__PURE__ */ x(jp, { ...e, ref: i });
15346
- }), [m0, h0] = ei(vr, { isInside: !1 }), b0 = /* @__PURE__ */ Wm("TooltipContent"), jp = u.forwardRef(
15347
+ }), [m0, h0] = ti(vr, { isInside: !1 }), b0 = /* @__PURE__ */ Wm("TooltipContent"), jp = u.forwardRef(
15347
15348
  (e, t) => {
15348
15349
  const {
15349
15350
  __scopeTooltip: n,
@@ -15352,8 +15353,8 @@ var qn = "TooltipContent", Bp = u.forwardRef(
15352
15353
  onEscapeKeyDown: i,
15353
15354
  onPointerDownOutside: s,
15354
15355
  ...a
15355
- } = e, l = Sr(qn, n), c = ti(n), { onClose: d } = l;
15356
- return u.useEffect(() => (document.addEventListener(xs, d), () => document.removeEventListener(xs, d)), [d]), u.useEffect(() => {
15356
+ } = e, l = Sr(qn, n), c = ni(n), { onClose: d } = l;
15357
+ return u.useEffect(() => (document.addEventListener(Cs, d), () => document.removeEventListener(Cs, d)), [d]), u.useEffect(() => {
15357
15358
  if (l.trigger) {
15358
15359
  const p = (g) => {
15359
15360
  g.target?.contains(l.trigger) && d();
@@ -15397,7 +15398,7 @@ var qn = "TooltipContent", Bp = u.forwardRef(
15397
15398
  Bp.displayName = qn;
15398
15399
  var Wp = "TooltipArrow", Up = u.forwardRef(
15399
15400
  (e, t) => {
15400
- const { __scopeTooltip: n, ...r } = e, o = ti(n);
15401
+ const { __scopeTooltip: n, ...r } = e, o = ni(n);
15401
15402
  return h0(
15402
15403
  Wp,
15403
15404
  n
@@ -15666,7 +15667,7 @@ const M0 = (e = !1) => {
15666
15667
  children: "..."
15667
15668
  }
15668
15669
  ) }, f) : /* @__PURE__ */ x(or, { children: /* @__PURE__ */ x(
15669
- Yo,
15670
+ Xo,
15670
15671
  {
15671
15672
  isActive: e === f,
15672
15673
  onClick: () => p(f),
@@ -15931,7 +15932,7 @@ function bt(e, t) {
15931
15932
  }));
15932
15933
  };
15933
15934
  }
15934
- function ni(e) {
15935
+ function ri(e) {
15935
15936
  return e instanceof Function;
15936
15937
  }
15937
15938
  function B0(e) {
@@ -16295,7 +16296,7 @@ const X0 = {
16295
16296
  return typeof r == "string" ? Bt.includesString : typeof r == "number" ? Bt.inNumberRange : typeof r == "boolean" || r !== null && typeof r == "object" ? Bt.equals : Array.isArray(r) ? Bt.arrIncludes : Bt.weakEquals;
16296
16297
  }, e.getFilterFn = () => {
16297
16298
  var n, r;
16298
- return ni(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
16299
+ return ri(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
16299
16300
  // @ts-ignore
16300
16301
  (n = (r = t.options.filterFns) == null ? void 0 : r[e.columnDef.filterFn]) != null ? n : Bt[e.columnDef.filterFn]
16301
16302
  );
@@ -16391,7 +16392,7 @@ const Z0 = (e, t, n) => n.reduce((r, o) => {
16391
16392
  return n[0];
16392
16393
  const r = Math.floor(n.length / 2), o = n.sort((i, s) => i - s);
16393
16394
  return n.length % 2 !== 0 ? o[r] : (o[r - 1] + o[r]) / 2;
16394
- }, rE = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), oE = (e, t) => new Set(t.map((n) => n.getValue(e))).size, iE = (e, t) => t.length, Gi = {
16395
+ }, rE = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), oE = (e, t) => new Set(t.map((n) => n.getValue(e))).size, iE = (e, t) => t.length, Hi = {
16395
16396
  sum: Z0,
16396
16397
  min: Q0,
16397
16398
  max: J0,
@@ -16437,14 +16438,14 @@ const Z0 = (e, t, n) => n.reduce((r, o) => {
16437
16438
  }, e.getAutoAggregationFn = () => {
16438
16439
  const n = t.getCoreRowModel().flatRows[0], r = n?.getValue(e.id);
16439
16440
  if (typeof r == "number")
16440
- return Gi.sum;
16441
+ return Hi.sum;
16441
16442
  if (Object.prototype.toString.call(r) === "[object Date]")
16442
- return Gi.extent;
16443
+ return Hi.extent;
16443
16444
  }, e.getAggregationFn = () => {
16444
16445
  var n, r;
16445
16446
  if (!e)
16446
16447
  throw new Error();
16447
- return ni(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (n = (r = t.options.aggregationFns) == null ? void 0 : r[e.columnDef.aggregationFn]) != null ? n : Gi[e.columnDef.aggregationFn];
16448
+ return ri(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (n = (r = t.options.aggregationFns) == null ? void 0 : r[e.columnDef.aggregationFn]) != null ? n : Hi[e.columnDef.aggregationFn];
16448
16449
  };
16449
16450
  },
16450
16451
  createTable: (e) => {
@@ -16511,12 +16512,12 @@ const lE = {
16511
16512
  return aE(i, n, r);
16512
16513
  }, fe(e.options, "debugTable", "_getOrderColumnsFn"));
16513
16514
  }
16514
- }, Hi = () => ({
16515
+ }, Bi = () => ({
16515
16516
  left: [],
16516
16517
  right: []
16517
16518
  }), cE = {
16518
16519
  getInitialState: (e) => ({
16519
- columnPinning: Hi(),
16520
+ columnPinning: Bi(),
16520
16521
  ...e
16521
16522
  }),
16522
16523
  getDefaultOptions: (e) => ({
@@ -16576,7 +16577,7 @@ const lE = {
16576
16577
  createTable: (e) => {
16577
16578
  e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => {
16578
16579
  var n, r;
16579
- return e.setColumnPinning(t ? Hi() : (n = (r = e.initialState) == null ? void 0 : r.columnPinning) != null ? n : Hi());
16580
+ return e.setColumnPinning(t ? Bi() : (n = (r = e.initialState) == null ? void 0 : r.columnPinning) != null ? n : Bi());
16580
16581
  }, e.getIsSomeColumnsPinned = (t) => {
16581
16582
  var n;
16582
16583
  const r = e.getState().columnPinning;
@@ -16598,7 +16599,7 @@ const eo = {
16598
16599
  size: 150,
16599
16600
  minSize: 20,
16600
16601
  maxSize: Number.MAX_SAFE_INTEGER
16601
- }, Bi = () => ({
16602
+ }, ji = () => ({
16602
16603
  startOffset: null,
16603
16604
  startSize: null,
16604
16605
  deltaOffset: null,
@@ -16609,7 +16610,7 @@ const eo = {
16609
16610
  getDefaultColumnDef: () => eo,
16610
16611
  getInitialState: (e) => ({
16611
16612
  columnSizing: {},
16612
- columnSizingInfo: Bi(),
16613
+ columnSizingInfo: ji(),
16613
16614
  ...e
16614
16615
  }),
16615
16616
  getDefaultOptions: (e) => ({
@@ -16657,9 +16658,9 @@ const eo = {
16657
16658
  }, e.getResizeHandler = (n) => {
16658
16659
  const r = t.getColumn(e.column.id), o = r?.getCanResize();
16659
16660
  return (i) => {
16660
- if (!r || !o || (i.persist == null || i.persist(), ji(i) && i.touches && i.touches.length > 1))
16661
+ if (!r || !o || (i.persist == null || i.persist(), Wi(i) && i.touches && i.touches.length > 1))
16661
16662
  return;
16662
- const s = e.getSize(), a = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[r.id, r.getSize()]], l = ji(i) ? Math.round(i.touches[0].clientX) : i.clientX, c = {}, d = (y, v) => {
16663
+ const s = e.getSize(), a = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[r.id, r.getSize()]], l = Wi(i) ? Math.round(i.touches[0].clientX) : i.clientX, c = {}, d = (y, v) => {
16663
16664
  typeof v == "number" && (t.setColumnSizingInfo((w) => {
16664
16665
  var C, S;
16665
16666
  const I = t.options.columnResizeDirection === "rtl" ? -1 : 1, E = (v - ((C = w?.startOffset) != null ? C : 0)) * I, R = Math.max(E / ((S = w?.startSize) != null ? S : 0), -0.999999);
@@ -16699,7 +16700,7 @@ const eo = {
16699
16700
  }, b = fE() ? {
16700
16701
  passive: !1
16701
16702
  } : !1;
16702
- ji(i) ? (f?.addEventListener("touchmove", m.moveHandler, b), f?.addEventListener("touchend", m.upHandler, b)) : (f?.addEventListener("mousemove", h.moveHandler, b), f?.addEventListener("mouseup", h.upHandler, b)), t.setColumnSizingInfo((y) => ({
16703
+ Wi(i) ? (f?.addEventListener("touchmove", m.moveHandler, b), f?.addEventListener("touchend", m.upHandler, b)) : (f?.addEventListener("mousemove", h.moveHandler, b), f?.addEventListener("mouseup", h.upHandler, b)), t.setColumnSizingInfo((y) => ({
16703
16704
  ...y,
16704
16705
  startOffset: l,
16705
16706
  startSize: s,
@@ -16717,7 +16718,7 @@ const eo = {
16717
16718
  e.setColumnSizing(t ? {} : (n = e.initialState.columnSizing) != null ? n : {});
16718
16719
  }, e.resetHeaderSizeInfo = (t) => {
16719
16720
  var n;
16720
- e.setColumnSizingInfo(t ? Bi() : (n = e.initialState.columnSizingInfo) != null ? n : Bi());
16721
+ e.setColumnSizingInfo(t ? ji() : (n = e.initialState.columnSizingInfo) != null ? n : ji());
16721
16722
  }, e.getTotalSize = () => {
16722
16723
  var t, n;
16723
16724
  return (t = (n = e.getHeaderGroups()[0]) == null ? void 0 : n.headers.reduce((r, o) => r + o.getSize(), 0)) != null ? t : 0;
@@ -16750,7 +16751,7 @@ function fE() {
16750
16751
  }
16751
16752
  return to = e, to;
16752
16753
  }
16753
- function ji(e) {
16754
+ function Wi(e) {
16754
16755
  return e.type === "touchstart";
16755
16756
  }
16756
16757
  const pE = {
@@ -16834,7 +16835,7 @@ const gE = {
16834
16835
  const {
16835
16836
  globalFilterFn: r
16836
16837
  } = e.options;
16837
- return ni(r) ? r : r === "auto" ? e.getGlobalAutoFilterFn() : (t = (n = e.options.filterFns) == null ? void 0 : n[r]) != null ? t : Bt[r];
16838
+ return ri(r) ? r : r === "auto" ? e.getGlobalAutoFilterFn() : (t = (n = e.options.filterFns) == null ? void 0 : n[r]) != null ? t : Bt[r];
16838
16839
  }, e.setGlobalFilter = (t) => {
16839
16840
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
16840
16841
  }, e.resetGlobalFilter = (t) => {
@@ -16928,14 +16929,14 @@ const gE = {
16928
16929
  };
16929
16930
  };
16930
16931
  }
16931
- }, ws = 0, Ss = 10, Wi = () => ({
16932
- pageIndex: ws,
16933
- pageSize: Ss
16932
+ }, Ss = 0, Rs = 10, Ui = () => ({
16933
+ pageIndex: Ss,
16934
+ pageSize: Rs
16934
16935
  }), bE = {
16935
16936
  getInitialState: (e) => ({
16936
16937
  ...e,
16937
16938
  pagination: {
16938
- ...Wi(),
16939
+ ...Ui(),
16939
16940
  ...e?.pagination
16940
16941
  }
16941
16942
  }),
@@ -16963,7 +16964,7 @@ const gE = {
16963
16964
  return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
16964
16965
  }, e.resetPagination = (r) => {
16965
16966
  var o;
16966
- e.setPagination(r ? Wi() : (o = e.initialState.pagination) != null ? o : Wi());
16967
+ e.setPagination(r ? Ui() : (o = e.initialState.pagination) != null ? o : Ui());
16967
16968
  }, e.setPageIndex = (r) => {
16968
16969
  e.setPagination((o) => {
16969
16970
  let i = on(r, o.pageIndex);
@@ -16975,10 +16976,10 @@ const gE = {
16975
16976
  });
16976
16977
  }, e.resetPageIndex = (r) => {
16977
16978
  var o, i;
16978
- e.setPageIndex(r ? ws : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? o : ws);
16979
+ e.setPageIndex(r ? Ss : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? o : Ss);
16979
16980
  }, e.resetPageSize = (r) => {
16980
16981
  var o, i;
16981
- e.setPageSize(r ? Ss : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? o : Ss);
16982
+ e.setPageSize(r ? Rs : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? o : Rs);
16982
16983
  }, e.setPageSize = (r) => {
16983
16984
  e.setPagination((o) => {
16984
16985
  const i = Math.max(1, on(r, o.pageSize)), s = o.pageSize * o.pageIndex, a = Math.floor(s / i);
@@ -17011,12 +17012,12 @@ const gE = {
17011
17012
  return (r = e.options.rowCount) != null ? r : e.getPrePaginationRowModel().rows.length;
17012
17013
  };
17013
17014
  }
17014
- }, Ui = () => ({
17015
+ }, qi = () => ({
17015
17016
  top: [],
17016
17017
  bottom: []
17017
17018
  }), vE = {
17018
17019
  getInitialState: (e) => ({
17019
- rowPinning: Ui(),
17020
+ rowPinning: qi(),
17020
17021
  ...e
17021
17022
  }),
17022
17023
  getDefaultOptions: (e) => ({
@@ -17085,7 +17086,7 @@ const gE = {
17085
17086
  createTable: (e) => {
17086
17087
  e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => {
17087
17088
  var n, r;
17088
- return e.setRowPinning(t ? Ui() : (n = (r = e.initialState) == null ? void 0 : r.rowPinning) != null ? n : Ui());
17089
+ return e.setRowPinning(t ? qi() : (n = (r = e.initialState) == null ? void 0 : r.rowPinning) != null ? n : qi());
17089
17090
  }, e.getIsSomeRowsPinned = (t) => {
17090
17091
  var n;
17091
17092
  const r = e.getState().rowPinning;
@@ -17150,17 +17151,17 @@ const gE = {
17150
17151
  ...n
17151
17152
  };
17152
17153
  return e.getRowModel().rows.forEach((i) => {
17153
- Rs(o, i.id, r, !0, e);
17154
+ Es(o, i.id, r, !0, e);
17154
17155
  }), o;
17155
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = de(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? qi(e, n) : {
17156
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = de(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? Ki(e, n) : {
17156
17157
  rows: [],
17157
17158
  flatRows: [],
17158
17159
  rowsById: {}
17159
- }, fe(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = de(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? qi(e, n) : {
17160
+ }, fe(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = de(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? Ki(e, n) : {
17160
17161
  rows: [],
17161
17162
  flatRows: [],
17162
17163
  rowsById: {}
17163
- }, fe(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = de(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? qi(e, n) : {
17164
+ }, fe(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = de(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? Ki(e, n) : {
17164
17165
  rows: [],
17165
17166
  flatRows: [],
17166
17167
  rowsById: {}
@@ -17199,7 +17200,7 @@ const gE = {
17199
17200
  const a = {
17200
17201
  ...i
17201
17202
  };
17202
- return Rs(a, e.id, n, (s = r?.selectChildren) != null ? s : !0, t), a;
17203
+ return Es(a, e.id, n, (s = r?.selectChildren) != null ? s : !0, t), a;
17203
17204
  });
17204
17205
  }, e.getIsSelected = () => {
17205
17206
  const {
@@ -17210,12 +17211,12 @@ const gE = {
17210
17211
  const {
17211
17212
  rowSelection: n
17212
17213
  } = t.getState();
17213
- return Es(e, n) === "some";
17214
+ return Is(e, n) === "some";
17214
17215
  }, e.getIsAllSubRowsSelected = () => {
17215
17216
  const {
17216
17217
  rowSelection: n
17217
17218
  } = t.getState();
17218
- return Es(e, n) === "all";
17219
+ return Is(e, n) === "all";
17219
17220
  }, e.getCanSelect = () => {
17220
17221
  var n;
17221
17222
  return typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : (n = t.options.enableRowSelection) != null ? n : !0;
@@ -17233,12 +17234,12 @@ const gE = {
17233
17234
  };
17234
17235
  };
17235
17236
  }
17236
- }, Rs = (e, t, n, r, o) => {
17237
+ }, Es = (e, t, n, r, o) => {
17237
17238
  var i;
17238
17239
  const s = o.getRow(t, !0);
17239
- n ? (s.getCanMultiSelect() || Object.keys(e).forEach((a) => delete e[a]), s.getCanSelect() && (e[t] = !0)) : delete e[t], r && (i = s.subRows) != null && i.length && s.getCanSelectSubRows() && s.subRows.forEach((a) => Rs(e, a.id, n, r, o));
17240
+ n ? (s.getCanMultiSelect() || Object.keys(e).forEach((a) => delete e[a]), s.getCanSelect() && (e[t] = !0)) : delete e[t], r && (i = s.subRows) != null && i.length && s.getCanSelectSubRows() && s.subRows.forEach((a) => Es(e, a.id, n, r, o));
17240
17241
  };
17241
- function qi(e, t) {
17242
+ function Ki(e, t) {
17242
17243
  const n = e.getState().rowSelection, r = [], o = {}, i = function(s, a) {
17243
17244
  return s.map((l) => {
17244
17245
  var c;
@@ -17260,18 +17261,18 @@ function Ma(e, t) {
17260
17261
  var n;
17261
17262
  return (n = t[e.id]) != null ? n : !1;
17262
17263
  }
17263
- function Es(e, t, n) {
17264
+ function Is(e, t, n) {
17264
17265
  var r;
17265
17266
  if (!((r = e.subRows) != null && r.length)) return !1;
17266
17267
  let o = !0, i = !1;
17267
17268
  return e.subRows.forEach((s) => {
17268
17269
  if (!(i && !o) && (s.getCanSelect() && (Ma(s, t) ? i = !0 : o = !1), s.subRows && s.subRows.length)) {
17269
- const a = Es(s, t);
17270
+ const a = Is(s, t);
17270
17271
  a === "all" ? i = !0 : (a === "some" && (i = !0), o = !1);
17271
17272
  }
17272
17273
  }), o ? "all" : i ? "some" : !1;
17273
17274
  }
17274
- const Is = /([0-9]+)/gm, xE = (e, t, n) => rg(pn(e.getValue(n)).toLowerCase(), pn(t.getValue(n)).toLowerCase()), CE = (e, t, n) => rg(pn(e.getValue(n)), pn(t.getValue(n))), wE = (e, t, n) => Ta(pn(e.getValue(n)).toLowerCase(), pn(t.getValue(n)).toLowerCase()), SE = (e, t, n) => Ta(pn(e.getValue(n)), pn(t.getValue(n))), RE = (e, t, n) => {
17275
+ const ks = /([0-9]+)/gm, xE = (e, t, n) => rg(pn(e.getValue(n)).toLowerCase(), pn(t.getValue(n)).toLowerCase()), CE = (e, t, n) => rg(pn(e.getValue(n)), pn(t.getValue(n))), wE = (e, t, n) => Ta(pn(e.getValue(n)).toLowerCase(), pn(t.getValue(n)).toLowerCase()), SE = (e, t, n) => Ta(pn(e.getValue(n)), pn(t.getValue(n))), RE = (e, t, n) => {
17275
17276
  const r = e.getValue(n), o = t.getValue(n);
17276
17277
  return r > o ? 1 : r < o ? -1 : 0;
17277
17278
  }, EE = (e, t, n) => Ta(e.getValue(n), t.getValue(n));
@@ -17282,7 +17283,7 @@ function pn(e) {
17282
17283
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
17283
17284
  }
17284
17285
  function rg(e, t) {
17285
- const n = e.split(Is).filter(Boolean), r = t.split(Is).filter(Boolean);
17286
+ const n = e.split(ks).filter(Boolean), r = t.split(ks).filter(Boolean);
17286
17287
  for (; n.length && r.length; ) {
17287
17288
  const o = n.shift(), i = r.shift(), s = parseInt(o, 10), a = parseInt(i, 10), l = [s, a].sort();
17288
17289
  if (isNaN(l[0])) {
@@ -17329,7 +17330,7 @@ const nr = {
17329
17330
  const i = o?.getValue(e.id);
17330
17331
  if (Object.prototype.toString.call(i) === "[object Date]")
17331
17332
  return nr.datetime;
17332
- if (typeof i == "string" && (r = !0, i.split(Is).length > 1))
17333
+ if (typeof i == "string" && (r = !0, i.split(ks).length > 1))
17333
17334
  return nr.alphanumeric;
17334
17335
  }
17335
17336
  return r ? nr.text : nr.basic;
@@ -17340,7 +17341,7 @@ const nr = {
17340
17341
  var n, r;
17341
17342
  if (!e)
17342
17343
  throw new Error();
17343
- return ni(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (n = (r = t.options.sortingFns) == null ? void 0 : r[e.columnDef.sortingFn]) != null ? n : nr[e.columnDef.sortingFn];
17344
+ return ri(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (n = (r = t.options.sortingFns) == null ? void 0 : r[e.columnDef.sortingFn]) != null ? n : nr[e.columnDef.sortingFn];
17344
17345
  }, e.toggleSorting = (n, r) => {
17345
17346
  const o = e.getNextSortingOrder(), i = typeof n < "u" && n !== null;
17346
17347
  t.setSorting((s) => {
@@ -17601,11 +17602,11 @@ function aI({
17601
17602
  so,
17602
17603
  {
17603
17604
  "data-state": r.getIsSelected() && "selected",
17604
- children: r.getVisibleCells().map((o) => /* @__PURE__ */ x(ys, { children: cc(o.column.columnDef.cell, o.getContext()) }, o.id))
17605
+ children: r.getVisibleCells().map((o) => /* @__PURE__ */ x(xs, { children: cc(o.column.columnDef.cell, o.getContext()) }, o.id))
17605
17606
  },
17606
17607
  r.id
17607
17608
  )) : /* @__PURE__ */ x(so, { children: /* @__PURE__ */ x(
17608
- ys,
17609
+ xs,
17609
17610
  {
17610
17611
  colSpan: e.length,
17611
17612
  className: "h-24 text-center",
@@ -17623,13 +17624,13 @@ const lI = ({
17623
17624
  color: i = "dark",
17624
17625
  tooltipItemsLimit: s = 1 / 0
17625
17626
  }) => {
17626
- const { isOpened: a, togglePopup: l } = M0(), c = Ki(
17627
+ const { isOpened: a, togglePopup: l } = M0(), c = Yi(
17627
17628
  () => ({
17628
17629
  arrow: i === "dark" ? "fill-primary-inverse-bg" : "fill-primary-bg",
17629
17630
  content: i === "dark" ? "bg-primary-inverse-bg text-primary-inverse-text" : "bg-primary-bg text-primary-text"
17630
17631
  }),
17631
17632
  [i]
17632
- ), d = Ki(() => Array.isArray(t) ? (t.length - s > 0 ? t.slice(0, s) : t).map((f, h) => /* @__PURE__ */ x(
17633
+ ), d = Yi(() => Array.isArray(t) ? (t.length - s > 0 ? t.slice(0, s) : t).map((f, h) => /* @__PURE__ */ x(
17633
17634
  "p",
17634
17635
  {
17635
17636
  className: o?.tooltipTextItem,
@@ -17674,13 +17675,11 @@ const lI = ({
17674
17675
  ...i
17675
17676
  }) => {
17676
17677
  const s = {
17677
- "aria-invalid": !!t
17678
- }, a = [
17679
- t === !0 && "text-success-text",
17680
- t === !1 && "text-error-text",
17681
- n && "text-disabled-text"
17682
- ].filter(Boolean).join(" ");
17683
- return /* @__PURE__ */ x(ma, { children: /* @__PURE__ */ x(Bo, { children: /* @__PURE__ */ ce(jo, { children: [
17678
+ ...t === !0 && !n && { "aria-valid": !0 },
17679
+ ...t === !1 && !n && { "aria-invalid": !0 },
17680
+ disabled: n
17681
+ };
17682
+ return /* @__PURE__ */ x(ha, { children: /* @__PURE__ */ x(Bo, { children: /* @__PURE__ */ ce(jo, { children: [
17684
17683
  r && /* @__PURE__ */ x(Wo, { children: r }),
17685
17684
  e.length > 0 ? /* @__PURE__ */ ce(Vd, { "data-slot": !0, children: [
17686
17685
  /* @__PURE__ */ x(
@@ -17691,13 +17690,13 @@ const lI = ({
17691
17690
  disabled: n
17692
17691
  }
17693
17692
  ),
17694
- e.map((l) => /* @__PURE__ */ x(
17693
+ e.map((a) => /* @__PURE__ */ x(
17695
17694
  Ld,
17696
17695
  {
17697
- align: l.position,
17698
- children: l.component
17696
+ align: a.position,
17697
+ children: a.component
17699
17698
  },
17700
- l.id
17699
+ a.id
17701
17700
  ))
17702
17701
  ] }) : /* @__PURE__ */ x(
17703
17702
  Fd,
@@ -17707,7 +17706,7 @@ const lI = ({
17707
17706
  disabled: n
17708
17707
  }
17709
17708
  ),
17710
- o && /* @__PURE__ */ x(ha, { className: a, children: o })
17709
+ o && /* @__PURE__ */ x(Uo, { ...s, children: o })
17711
17710
  ] }) }) });
17712
17711
  };
17713
17712
  function uI({
@@ -17731,7 +17730,7 @@ function uI({
17731
17730
  className: L("flex items-center gap-3", e?.classNameContainerItem),
17732
17731
  children: [
17733
17732
  /* @__PURE__ */ x(
17734
- vs,
17733
+ ys,
17735
17734
  {
17736
17735
  value: a.value,
17737
17736
  id: a.id,
@@ -17755,7 +17754,7 @@ function uI({
17755
17754
  className: L("flex items-center gap-3", e?.classNameContainerItem),
17756
17755
  children: [
17757
17756
  /* @__PURE__ */ x(
17758
- vs,
17757
+ ys,
17759
17758
  {
17760
17759
  value: n,
17761
17760
  id: t,
@@ -17781,152 +17780,166 @@ const TE = ({
17781
17780
  label: t,
17782
17781
  multiple: n,
17783
17782
  disabled: r = !1,
17784
- onChange: o,
17785
- ...i
17783
+ isValid: o,
17784
+ description: i,
17785
+ onChange: s,
17786
+ ...a
17786
17787
  }) => {
17787
- const [s, a] = ir([]), [l, c] = ir(null), [d, p] = ir(""), g = (y) => {
17788
+ const [l, c] = ir([]), [d, p] = ir(null), [g, f] = ir(""), h = {
17789
+ ...o === !0 && !r && { "aria-valid": !0 },
17790
+ ...o === !1 && !r && { "aria-invalid": !0 },
17791
+ disabled: r
17792
+ }, m = (C) => {
17788
17793
  if (n) {
17789
- const v = Array.isArray(y) ? y : [y], w = v.length > s.length;
17790
- a(v), o?.(v), w && p("");
17794
+ const S = Array.isArray(C) ? C : [C], I = S.length > l.length;
17795
+ c(S), s?.(S), I && f("");
17791
17796
  } else {
17792
- const v = y;
17793
- l?.value === v.value ? (c(null), o?.(null)) : (c(v), o?.(v)), p("");
17794
- }
17795
- }, f = (y) => {
17796
- const v = y.currentTarget.value;
17797
- p(v);
17798
- }, h = () => {
17799
- r || (c(null), o?.(null));
17800
- }, m = n ? s : l, b = e.filter(
17801
- (y) => y.value.toLowerCase().includes(d.trim().toLowerCase())
17797
+ const S = C;
17798
+ d?.value === S.value ? (p(null), s?.(null)) : (p(S), s?.(S)), f("");
17799
+ }
17800
+ }, b = (C) => {
17801
+ const S = C.currentTarget.value;
17802
+ f(S);
17803
+ }, y = () => {
17804
+ r || (p(null), s?.(null));
17805
+ }, v = n ? l : d, w = e.filter(
17806
+ (C) => C.value.toLowerCase().includes(g.trim().toLowerCase())
17802
17807
  );
17803
- return /* @__PURE__ */ x(ma, { children: /* @__PURE__ */ x(Bo, { children: /* @__PURE__ */ x(sw, { label: t, children: /* @__PURE__ */ ce(
17804
- iw,
17808
+ return /* @__PURE__ */ x(ha, { children: /* @__PURE__ */ x(Bo, { children: /* @__PURE__ */ ce(
17809
+ sw,
17805
17810
  {
17806
- items: e,
17807
- multiple: n,
17808
- autoHighlight: n,
17809
- value: m,
17810
- onValueChange: r ? void 0 : g,
17811
+ label: t,
17811
17812
  children: [
17812
- n ? /* @__PURE__ */ ce(
17813
- Hl,
17813
+ /* @__PURE__ */ ce(
17814
+ iw,
17814
17815
  {
17815
- disabled: r,
17816
- className: "pr-8",
17816
+ items: e,
17817
+ multiple: n,
17818
+ autoHighlight: n,
17819
+ value: v,
17820
+ onValueChange: r ? void 0 : m,
17817
17821
  children: [
17818
- /* @__PURE__ */ x(Gl, { children: (y) => /* @__PURE__ */ ce(En, { children: [
17819
- y.map((v, w) => /* @__PURE__ */ x(
17820
- Bl,
17821
- {
17822
- showRemove: !r,
17823
- className: `${Xi({ variant: v.variant, kind: v.kind })} ${r && "opacity-50"} pl-2.5
17824
- ${w === 0 && "ml-1"}`,
17825
- children: /* @__PURE__ */ x(
17826
- vi,
17822
+ n ? /* @__PURE__ */ ce(
17823
+ Hl,
17824
+ {
17825
+ disabled: r,
17826
+ className: "pr-8",
17827
+ children: [
17828
+ /* @__PURE__ */ x(Gl, { children: (C) => /* @__PURE__ */ ce(En, { children: [
17829
+ C.map((S) => /* @__PURE__ */ x(
17830
+ Bl,
17831
+ {
17832
+ showRemove: !r,
17833
+ className: `${Zi({ variant: S.variant, kind: S.kind })} ${r && "opacity-50"} pl-2.5`,
17834
+ children: /* @__PURE__ */ x(
17835
+ yi,
17836
+ {
17837
+ variant: S.variant,
17838
+ classNames: { className: "px-2 py-0" },
17839
+ children: S.value
17840
+ }
17841
+ )
17842
+ },
17843
+ S.id
17844
+ )),
17845
+ /* @__PURE__ */ x(
17846
+ jl,
17847
+ {
17848
+ ...a,
17849
+ ...h,
17850
+ placeholder: C.length > 0 ? "" : a.placeholder,
17851
+ value: g,
17852
+ onChange: b
17853
+ }
17854
+ )
17855
+ ] }) }),
17856
+ /* @__PURE__ */ x(
17857
+ ms,
17827
17858
  {
17828
- variant: v.variant,
17829
- classNames: { className: "px-2 py-0" },
17830
- children: v.value
17859
+ className: "-ml-4.5",
17860
+ disabled: r
17831
17861
  }
17832
17862
  )
17833
- },
17834
- v.id
17835
- )),
17836
- /* @__PURE__ */ x(
17837
- jl,
17838
- {
17839
- ...i,
17840
- disabled: r,
17841
- placeholder: y.length > 0 ? "" : i.placeholder,
17842
- value: d,
17843
- onChange: f
17844
- }
17845
- )
17846
- ] }) }),
17847
- /* @__PURE__ */ x(
17848
- gs,
17849
- {
17850
- className: "-ml-4.5",
17851
- disabled: r
17863
+ ]
17852
17864
  }
17853
- )
17854
- ]
17855
- }
17856
- ) : /* @__PURE__ */ ce(
17857
- Hl,
17858
- {
17859
- disabled: r,
17860
- className: "pr-8",
17861
- children: [
17862
- /* @__PURE__ */ x(Gl, { children: (y) => /* @__PURE__ */ ce(En, { children: [
17863
- y && /* @__PURE__ */ x(
17864
- Bl,
17865
- {
17866
- showRemove: !1,
17867
- onClick: h,
17868
- className: `${Xi({ variant: y.variant, kind: y.kind })} ${r && "opacity-50"} ml-1`,
17869
- children: /* @__PURE__ */ x(
17870
- vi,
17865
+ ) : /* @__PURE__ */ ce(
17866
+ Hl,
17867
+ {
17868
+ disabled: r,
17869
+ className: "pr-8",
17870
+ children: [
17871
+ /* @__PURE__ */ x(Gl, { children: (C) => /* @__PURE__ */ ce(En, { children: [
17872
+ C && /* @__PURE__ */ x(
17873
+ Bl,
17874
+ {
17875
+ showRemove: !1,
17876
+ onClick: y,
17877
+ className: `${Zi({ variant: C.variant, kind: C.kind })} ${r && "opacity-50"} ml-1`,
17878
+ children: /* @__PURE__ */ x(
17879
+ yi,
17880
+ {
17881
+ variant: C.variant,
17882
+ classNames: { className: "px-2 py-0" },
17883
+ children: C.value
17884
+ }
17885
+ )
17886
+ },
17887
+ C.value
17888
+ ),
17889
+ /* @__PURE__ */ x(
17890
+ jl,
17891
+ {
17892
+ ...a,
17893
+ placeholder: C ? "" : a.placeholder,
17894
+ ...h,
17895
+ value: g,
17896
+ onChange: b,
17897
+ className: "flex-1 pl-1"
17898
+ }
17899
+ )
17900
+ ] }) }),
17901
+ /* @__PURE__ */ x(
17902
+ ms,
17871
17903
  {
17872
- variant: y.variant,
17873
- classNames: { className: "px-2 py-0" },
17874
- children: y.value
17904
+ className: "-ml-4.5",
17905
+ disabled: r
17875
17906
  }
17876
17907
  )
17877
- },
17878
- y.value
17879
- ),
17880
- /* @__PURE__ */ x(
17881
- jl,
17882
- {
17883
- ...i,
17884
- placeholder: y ? "" : i.placeholder,
17885
- disabled: r,
17886
- value: d,
17887
- onChange: f,
17888
- className: "flex-1 pl-1"
17889
- }
17890
- )
17891
- ] }) }),
17892
- /* @__PURE__ */ x(
17893
- gs,
17894
- {
17895
- className: "-ml-4.5",
17896
- disabled: r
17908
+ ]
17897
17909
  }
17898
- )
17910
+ ),
17911
+ /* @__PURE__ */ ce(lw, { children: [
17912
+ /* @__PURE__ */ x(dw, { children: "No items found." }),
17913
+ /* @__PURE__ */ x(cw, { children: w.map((C) => {
17914
+ const S = n ? l.includes(C) : d === C;
17915
+ return /* @__PURE__ */ x(
17916
+ uw,
17917
+ {
17918
+ disabled: r,
17919
+ value: C,
17920
+ className: S ? "bg-tertiary-bg" : "",
17921
+ children: /* @__PURE__ */ x(
17922
+ yi,
17923
+ {
17924
+ dotPosition: "left",
17925
+ variant: C.variant,
17926
+ kind: C.kind,
17927
+ classNames: { className: "px-4 py-1.5" },
17928
+ children: C.value
17929
+ }
17930
+ )
17931
+ },
17932
+ C.id
17933
+ );
17934
+ }) })
17935
+ ] })
17899
17936
  ]
17900
17937
  }
17901
17938
  ),
17902
- /* @__PURE__ */ ce(lw, { children: [
17903
- /* @__PURE__ */ x(dw, { children: "No items found." }),
17904
- /* @__PURE__ */ x(cw, { children: b.map((y) => {
17905
- const v = n ? s.includes(y) : l === y;
17906
- return /* @__PURE__ */ x(
17907
- uw,
17908
- {
17909
- disabled: r,
17910
- value: y,
17911
- className: v ? "bg-tertiary-bg" : "",
17912
- children: /* @__PURE__ */ x(
17913
- vi,
17914
- {
17915
- dotPosition: "left",
17916
- variant: y.variant,
17917
- kind: y.kind,
17918
- classNames: { className: "px-4 py-1.5" },
17919
- children: y.value
17920
- }
17921
- )
17922
- },
17923
- y.id
17924
- );
17925
- }) })
17926
- ] })
17939
+ /* @__PURE__ */ x(Uo, { ...h, children: i })
17927
17940
  ]
17928
17941
  }
17929
- ) }) }) });
17942
+ ) }) });
17930
17943
  };
17931
17944
  TE.displayName = "SelectSearch";
17932
17945
  const dI = ({
@@ -17942,7 +17955,7 @@ const dI = ({
17942
17955
  n === !1 && "text-error-text",
17943
17956
  o && "text-disabled-text"
17944
17957
  ].filter(Boolean).join(" ");
17945
- return /* @__PURE__ */ x(ma, { children: /* @__PURE__ */ x(Bo, { children: /* @__PURE__ */ ce(jo, { children: [
17958
+ return /* @__PURE__ */ x(ha, { children: /* @__PURE__ */ x(Bo, { children: /* @__PURE__ */ ce(jo, { children: [
17946
17959
  e && /* @__PURE__ */ x(Wo, { children: e }),
17947
17960
  /* @__PURE__ */ x(
17948
17961
  ba,
@@ -17952,7 +17965,7 @@ const dI = ({
17952
17965
  }
17953
17966
  ),
17954
17967
  t && /* @__PURE__ */ x(
17955
- ha,
17968
+ Uo,
17956
17969
  {
17957
17970
  className: L(o ? "text-disabled-text" : "", s),
17958
17971
  children: t
@@ -17963,7 +17976,7 @@ const dI = ({
17963
17976
  export {
17964
17977
  rI as AppPagination,
17965
17978
  oI as AppSidebar,
17966
- vi as Badge,
17979
+ yi as Badge,
17967
17980
  iI as BasicCheckbox,
17968
17981
  sI as BasicModal,
17969
17982
  aI as BasicTable,
@@ -17990,7 +18003,7 @@ export {
17990
18003
  YE as ComboboxLabel,
17991
18004
  cw as ComboboxList,
17992
18005
  ZE as ComboboxSeparator,
17993
- gs as ComboboxTrigger,
18006
+ ms as ComboboxTrigger,
17994
18007
  Gl as ComboboxValue,
17995
18008
  FS as Dialog,
17996
18009
  eI as DialogClose,
@@ -18004,13 +18017,13 @@ export {
18004
18017
  JE as DialogTrigger,
18005
18018
  jo as Field,
18006
18019
  HE as FieldContent,
18007
- ha as FieldDescription,
18020
+ Uo as FieldDescription,
18008
18021
  $C as FieldError,
18009
18022
  Bo as FieldGroup,
18010
18023
  Wo as FieldLabel,
18011
18024
  GE as FieldLegend,
18012
18025
  jE as FieldSeparator,
18013
- ma as FieldSet,
18026
+ ha as FieldSet,
18014
18027
  BE as FieldTitle,
18015
18028
  gr as Icon,
18016
18029
  Fd as Input,
@@ -18028,20 +18041,20 @@ export {
18028
18041
  Nf as PaginationContent,
18029
18042
  qS as PaginationEllipsis,
18030
18043
  or as PaginationItem,
18031
- Yo as PaginationLink,
18044
+ Xo as PaginationLink,
18032
18045
  US as PaginationNext,
18033
18046
  WS as PaginationPrevious,
18034
18047
  rR as Progress,
18035
18048
  uI as RadioButton,
18036
18049
  tp as RadioGroup,
18037
- vs as RadioGroupItem,
18050
+ ys as RadioGroupItem,
18038
18051
  TE as SelectField,
18039
18052
  Dd as Separator,
18040
18053
  VR as Switch,
18041
18054
  lp as Table,
18042
18055
  up as TableBody,
18043
18056
  $R as TableCaption,
18044
- ys as TableCell,
18057
+ xs as TableCell,
18045
18058
  LR as TableFooter,
18046
18059
  dp as TableHead,
18047
18060
  cp as TableHeader,
@@ -18058,7 +18071,7 @@ export {
18058
18071
  nI as TooltipProvider,
18059
18072
  _0 as TooltipTrigger,
18060
18073
  zE as Typography,
18061
- Xi as badgeVariants,
18074
+ Zi as badgeVariants,
18062
18075
  _c as buttonVariants,
18063
18076
  L as cn,
18064
18077
  Xe as getTypographyClassName,