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