@snowpact/react-tanstack-query-table 1.5.6 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { jsxs as k, jsx as p, Fragment as zt } from "react/jsx-runtime";
1
+ import { jsxs as k, jsx as p, Fragment as Yt } from "react/jsx-runtime";
2
2
  import { useMutation as Es, useQuery as Qo, keepPreviousData as Rs } from "@tanstack/react-query";
3
3
  import * as d from "react";
4
- import He, { useState as ae, useEffect as pt, useRef as Rn, useCallback as be, useMemo as Ce, forwardRef as er, useLayoutEffect as As, memo as Ps } from "react";
5
- import * as jt from "react-dom";
4
+ import He, { useState as ae, useEffect as ht, useRef as Pn, useCallback as be, useMemo as Ce, forwardRef as er, useLayoutEffect as As, memo as Ps } from "react";
5
+ import * as Xt from "react-dom";
6
6
  import Ts, { createPortal as Ms } from "react-dom";
7
7
  import { useReactTable as Is, getFilteredRowModel as Ns, getPaginationRowModel as _s, getSortedRowModel as Os, getCoreRowModel as Ds, flexRender as bo } from "@tanstack/react-table";
8
8
  const ce = ({ children: e, ...t }) => /* @__PURE__ */ p(
@@ -20,7 +20,7 @@ const ce = ({ children: e, ...t }) => /* @__PURE__ */ p(
20
20
  ...t,
21
21
  children: e
22
22
  }
23
- ), tr = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Wn = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), ks = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), Fs = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Ls = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), $s = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
23
+ ), tr = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Hn = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), ks = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), Fs = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Ls = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), $s = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
24
24
  /* @__PURE__ */ p("path", { d: "m11 17-5-5 5-5" }),
25
25
  /* @__PURE__ */ p("path", { d: "m18 17-5-5 5-5" })
26
26
  ] }), Vs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
@@ -47,7 +47,7 @@ const ce = ({ children: e, ...t }) => /* @__PURE__ */ p(
47
47
  ] }), Co = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
48
48
  /* @__PURE__ */ p("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
49
49
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "3" })
50
- ] }), zs = Wn;
50
+ ] }), zs = Hn;
51
51
  function X(...e) {
52
52
  const t = [], n = (o) => {
53
53
  if (o) {
@@ -65,19 +65,19 @@ function X(...e) {
65
65
  n(o);
66
66
  return t.join(" ");
67
67
  }
68
- const pn = 768;
68
+ const hn = 768;
69
69
  function js() {
70
70
  const [e, t] = ae(void 0);
71
- return pt(() => {
71
+ return ht(() => {
72
72
  if (typeof window > "u" || !window.matchMedia)
73
73
  return;
74
- const n = window.matchMedia(`(max-width: ${pn - 1}px)`), o = () => {
75
- t(window.innerWidth < pn);
74
+ const n = window.matchMedia(`(max-width: ${hn - 1}px)`), o = () => {
75
+ t(window.innerWidth < hn);
76
76
  };
77
- return n.addEventListener("change", o), t(window.innerWidth < pn), () => n.removeEventListener("change", o);
77
+ return n.addEventListener("change", o), t(window.innerWidth < hn), () => n.removeEventListener("change", o);
78
78
  }, []), !!e;
79
79
  }
80
- const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, Xs = (e) => Ys(e) ? String(e) : JSON.stringify(e, null, 2), _t = "dt_prefilter", Ot = "dt_search", Dt = "dt_page", An = "dt_pageSize", kt = "dt_filters", lt = "dt_sortBy", ut = "dt_sortDesc", Ke = (e) => {
80
+ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, Xs = (e) => Ys(e) ? String(e) : JSON.stringify(e, null, 2), Dt = "dt_prefilter", kt = "dt_search", Ft = "dt_page", Tn = "dt_pageSize", Lt = "dt_filters", dt = "dt_sortBy", ft = "dt_sortDesc", Ke = (e) => {
81
81
  if (typeof window > "u") return null;
82
82
  try {
83
83
  return new URL(window.location.href).searchParams.get(e);
@@ -95,19 +95,19 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
95
95
  defaultSortBy: o,
96
96
  defaultSortOrder: r = "asc"
97
97
  }) => {
98
- const i = Rn(e), a = Rn(n), [s, c] = ae(() => {
98
+ const i = Pn(e), a = Pn(n), [s, c] = ae(() => {
99
99
  if (e) {
100
- const x = Ke(_t);
100
+ const x = Ke(Dt);
101
101
  if (x) return x;
102
102
  }
103
103
  return t;
104
104
  }), l = be((x) => {
105
- c(x), i.current && se(_t, x ?? null);
106
- }, []), [f, u] = ae(() => e ? Ke(Ot) ?? "" : ""), m = be((x) => {
107
- u(x), i.current && se(Ot, x || null);
105
+ c(x), i.current && se(Dt, x ?? null);
106
+ }, []), [f, u] = ae(() => e ? Ke(kt) ?? "" : ""), m = be((x) => {
107
+ u(x), i.current && se(kt, x || null);
108
108
  }, []), [g, w] = ae(() => {
109
109
  if (e) {
110
- const x = Ke(Dt), M = Ke(An);
110
+ const x = Ke(Ft), M = Ke(Tn);
111
111
  return {
112
112
  pageIndex: x ? parseInt(x, 10) - 1 : 0,
113
113
  pageSize: M ? parseInt(M, 10) : n
@@ -117,14 +117,14 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
117
117
  }), h = be((x) => {
118
118
  w((M) => {
119
119
  const T = typeof x == "function" ? x(M) : x;
120
- return i.current && (M.pageIndex !== T.pageIndex || M.pageSize !== T.pageSize) && (se(Dt, T.pageIndex > 0 ? String(T.pageIndex + 1) : null), se(
121
- An,
120
+ return i.current && (M.pageIndex !== T.pageIndex || M.pageSize !== T.pageSize) && (se(Ft, T.pageIndex > 0 ? String(T.pageIndex + 1) : null), se(
121
+ Tn,
122
122
  T.pageSize !== a.current ? String(T.pageSize) : null
123
123
  )), T;
124
124
  });
125
125
  }, []), [v, y] = ae(() => {
126
126
  if (e) {
127
- const x = Ke(kt);
127
+ const x = Ke(Lt);
128
128
  if (x)
129
129
  return Zs(x);
130
130
  }
@@ -132,11 +132,11 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
132
132
  }), C = be((x) => {
133
133
  if (y(x), i.current) {
134
134
  const T = Object.keys(x).length > 0 ? rr(x) : null;
135
- se(kt, T);
135
+ se(Lt, T);
136
136
  }
137
137
  }, []), [b, S] = ae(() => {
138
138
  if (e) {
139
- const x = Ke(lt), M = Ke(ut);
139
+ const x = Ke(dt), M = Ke(ft);
140
140
  if (x)
141
141
  return [{ id: x, desc: M === "true" }];
142
142
  }
@@ -144,13 +144,13 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
144
144
  }), R = be((x) => {
145
145
  S((M) => {
146
146
  const T = typeof x == "function" ? x(M) : x;
147
- return i.current && (T.length > 0 ? (se(lt, T[0].id), se(ut, String(T[0].desc))) : (se(lt, null), se(ut, null))), T;
147
+ return i.current && (T.length > 0 ? (se(dt, T[0].id), se(ft, String(T[0].desc))) : (se(dt, null), se(ft, null))), T;
148
148
  });
149
149
  }, []), A = Ce(() => {
150
150
  const x = o ? [{ id: o, desc: r === "desc" }] : [];
151
151
  return f !== "" || s !== t || Object.keys(v).length > 0 || b.length !== x.length || b.length > 0 && x.length > 0 && (b[0].id !== x[0].id || b[0].desc !== x[0].desc);
152
152
  }, [f, s, t, v, b, o, r]), E = be(() => {
153
- i.current && (se(_t, null), se(Ot, null), se(Dt, null), se(kt, null), se(lt, null), se(ut, null)), c(t), u(""), w((x) => ({ pageIndex: 0, pageSize: x.pageSize })), y({}), S(o ? [{ id: o, desc: r === "desc" }] : []);
153
+ i.current && (se(Dt, null), se(kt, null), se(Ft, null), se(Lt, null), se(dt, null), se(ft, null)), c(t), u(""), w((x) => ({ pageIndex: 0, pageSize: x.pageSize })), y({}), S(o ? [{ id: o, desc: r === "desc" }] : []);
154
154
  }, [t, o, r]);
155
155
  return {
156
156
  activePrefilter: s,
@@ -186,17 +186,17 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
186
186
  }, Xf = (e, t) => {
187
187
  const n = new URL(e, typeof window < "u" ? window.location.origin : "http://localhost");
188
188
  if (t) {
189
- if (t.prefilter && n.searchParams.set(_t, t.prefilter), t.search && n.searchParams.set(Ot, t.search), t.pagination) {
189
+ if (t.prefilter && n.searchParams.set(Dt, t.prefilter), t.search && n.searchParams.set(kt, t.search), t.pagination) {
190
190
  const { pageIndex: o, pageSize: r } = t.pagination;
191
- o > 0 && n.searchParams.set(Dt, String(o + 1)), r && n.searchParams.set(An, String(r));
191
+ o > 0 && n.searchParams.set(Ft, String(o + 1)), r && n.searchParams.set(Tn, String(r));
192
192
  }
193
193
  if (t.filters && Object.keys(t.filters).length > 0) {
194
194
  const o = rr(t.filters);
195
- n.searchParams.set(kt, o);
195
+ n.searchParams.set(Lt, o);
196
196
  }
197
197
  if (t.sorting && t.sorting.length > 0) {
198
198
  const o = t.sorting[0];
199
- n.searchParams.set(lt, o.id), n.searchParams.set(ut, String(o.desc));
199
+ n.searchParams.set(dt, o.id), n.searchParams.set(ft, String(o.desc));
200
200
  }
201
201
  }
202
202
  return n.pathname + n.search;
@@ -825,7 +825,7 @@ function Ao(e, t) {
825
825
  return e(t);
826
826
  e != null && (e.current = t);
827
827
  }
828
- function Yt(...e) {
828
+ function Zt(...e) {
829
829
  return (t) => {
830
830
  let n = !1;
831
831
  const o = e.map((r) => {
@@ -842,7 +842,7 @@ function Yt(...e) {
842
842
  };
843
843
  }
844
844
  function Z(...e) {
845
- return d.useCallback(Yt(...e), e);
845
+ return d.useCallback(Zt(...e), e);
846
846
  }
847
847
  function Xe(e, t = []) {
848
848
  let n = [];
@@ -896,7 +896,7 @@ function da(...e) {
896
896
  }
897
897
  var oe = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
898
898
  }, fa = d[" useInsertionEffect ".trim().toString()] || oe;
899
- function mt({
899
+ function gt({
900
900
  prop: e,
901
901
  defaultProp: t,
902
902
  onChange: n = () => {
@@ -945,7 +945,7 @@ function ma(e) {
945
945
  return typeof e == "function";
946
946
  }
947
947
  // @__NO_SIDE_EFFECTS__
948
- function ht(e) {
948
+ function vt(e) {
949
949
  const t = /* @__PURE__ */ ha(e), n = d.forwardRef((o, r) => {
950
950
  const { children: i, ...a } = o, s = d.Children.toArray(i), c = s.find(va);
951
951
  if (c) {
@@ -962,7 +962,7 @@ function ha(e) {
962
962
  const { children: r, ...i } = n;
963
963
  if (d.isValidElement(r)) {
964
964
  const a = ya(r), s = wa(i, r.props);
965
- return r.type !== d.Fragment && (s.ref = o ? Yt(o, a) : a), d.cloneElement(r, s);
965
+ return r.type !== d.Fragment && (s.ref = o ? Zt(o, a) : a), d.cloneElement(r, s);
966
966
  }
967
967
  return d.Children.count(r) > 1 ? d.Children.only(null) : null;
968
968
  });
@@ -1007,16 +1007,16 @@ var ba = [
1007
1007
  "svg",
1008
1008
  "ul"
1009
1009
  ], U = ba.reduce((e, t) => {
1010
- const n = /* @__PURE__ */ ht(`Primitive.${t}`), o = d.forwardRef((r, i) => {
1010
+ const n = /* @__PURE__ */ vt(`Primitive.${t}`), o = d.forwardRef((r, i) => {
1011
1011
  const { asChild: a, ...s } = r, c = a ? n : t;
1012
1012
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(c, { ...s, ref: i });
1013
1013
  });
1014
1014
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
1015
1015
  }, {});
1016
1016
  function ar(e, t) {
1017
- e && jt.flushSync(() => e.dispatchEvent(t));
1017
+ e && Xt.flushSync(() => e.dispatchEvent(t));
1018
1018
  }
1019
- function Un(e) {
1019
+ function Kn(e) {
1020
1020
  const t = e + "CollectionProvider", [n, o] = Xe(t), [r, i] = n(
1021
1021
  t,
1022
1022
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -1025,14 +1025,14 @@ function Un(e) {
1025
1025
  return /* @__PURE__ */ p(r, { scope: v, itemMap: b, collectionRef: C, children: y });
1026
1026
  };
1027
1027
  a.displayName = t;
1028
- const s = e + "CollectionSlot", c = /* @__PURE__ */ ht(s), l = He.forwardRef(
1028
+ const s = e + "CollectionSlot", c = /* @__PURE__ */ vt(s), l = He.forwardRef(
1029
1029
  (h, v) => {
1030
1030
  const { scope: y, children: C } = h, b = i(s, y), S = Z(v, b.collectionRef);
1031
1031
  return /* @__PURE__ */ p(c, { ref: S, children: C });
1032
1032
  }
1033
1033
  );
1034
1034
  l.displayName = s;
1035
- const f = e + "CollectionItemSlot", u = "data-radix-collection-item", m = /* @__PURE__ */ ht(f), g = He.forwardRef(
1035
+ const f = e + "CollectionItemSlot", u = "data-radix-collection-item", m = /* @__PURE__ */ vt(f), g = He.forwardRef(
1036
1036
  (h, v) => {
1037
1037
  const { scope: y, children: C, ...b } = h, S = He.useRef(null), R = Z(v, S), A = i(f, y);
1038
1038
  return He.useEffect(() => (A.itemMap.set(S, { ref: S, ...b }), () => void A.itemMap.delete(S))), /* @__PURE__ */ p(m, { [u]: "", ref: R, children: C });
@@ -1057,7 +1057,7 @@ function Un(e) {
1057
1057
  ];
1058
1058
  }
1059
1059
  var Ca = d.createContext(void 0);
1060
- function Xt(e) {
1060
+ function qt(e) {
1061
1061
  const t = d.useContext(Ca);
1062
1062
  return e || t || "ltr";
1063
1063
  }
@@ -1079,11 +1079,11 @@ function Sa(e, t = globalThis == null ? void 0 : globalThis.document) {
1079
1079
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
1080
1080
  }, [n, t]);
1081
1081
  }
1082
- var xa = "DismissableLayer", Pn = "dismissableLayer.update", Ea = "dismissableLayer.pointerDownOutside", Ra = "dismissableLayer.focusOutside", Po, cr = d.createContext({
1082
+ var xa = "DismissableLayer", Mn = "dismissableLayer.update", Ea = "dismissableLayer.pointerDownOutside", Ra = "dismissableLayer.focusOutside", Po, cr = d.createContext({
1083
1083
  layers: /* @__PURE__ */ new Set(),
1084
1084
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1085
1085
  branches: /* @__PURE__ */ new Set()
1086
- }), Hn = d.forwardRef(
1086
+ }), Gn = d.forwardRef(
1087
1087
  (e, t) => {
1088
1088
  const {
1089
1089
  disableOutsidePointerEvents: n = !1,
@@ -1111,7 +1111,7 @@ var xa = "DismissableLayer", Pn = "dismissableLayer.update", Ea = "dismissableLa
1111
1111
  f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), To());
1112
1112
  }, [f, l]), d.useEffect(() => {
1113
1113
  const E = () => g({});
1114
- return document.addEventListener(Pn, E), () => document.removeEventListener(Pn, E);
1114
+ return document.addEventListener(Mn, E), () => document.removeEventListener(Mn, E);
1115
1115
  }, []), /* @__PURE__ */ p(
1116
1116
  U.div,
1117
1117
  {
@@ -1131,7 +1131,7 @@ var xa = "DismissableLayer", Pn = "dismissableLayer.update", Ea = "dismissableLa
1131
1131
  );
1132
1132
  }
1133
1133
  );
1134
- Hn.displayName = xa;
1134
+ Gn.displayName = xa;
1135
1135
  var Aa = "DismissableLayerBranch", Pa = d.forwardRef((e, t) => {
1136
1136
  const n = d.useContext(cr), o = d.useRef(null), r = Z(t, o);
1137
1137
  return d.useEffect(() => {
@@ -1188,19 +1188,19 @@ function Ma(e, t = globalThis == null ? void 0 : globalThis.document) {
1188
1188
  };
1189
1189
  }
1190
1190
  function To() {
1191
- const e = new CustomEvent(Pn);
1191
+ const e = new CustomEvent(Mn);
1192
1192
  document.dispatchEvent(e);
1193
1193
  }
1194
1194
  function lr(e, t, n, { discrete: o }) {
1195
1195
  const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1196
1196
  t && r.addEventListener(e, t, { once: !0 }), o ? ar(r, i) : r.dispatchEvent(i);
1197
1197
  }
1198
- var mn = 0;
1198
+ var gn = 0;
1199
1199
  function ur() {
1200
1200
  d.useEffect(() => {
1201
1201
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1202
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Mo()), document.body.insertAdjacentElement("beforeend", e[1] ?? Mo()), mn++, () => {
1203
- mn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), mn--;
1202
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Mo()), document.body.insertAdjacentElement("beforeend", e[1] ?? Mo()), gn++, () => {
1203
+ gn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), gn--;
1204
1204
  };
1205
1205
  }, []);
1206
1206
  }
@@ -1208,7 +1208,7 @@ function Mo() {
1208
1208
  const e = document.createElement("span");
1209
1209
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
1210
1210
  }
1211
- var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Io = { bubbles: !1, cancelable: !0 }, Ia = "FocusScope", Kn = d.forwardRef((e, t) => {
1211
+ var vn = "focusScope.autoFocusOnMount", wn = "focusScope.autoFocusOnUnmount", Io = { bubbles: !1, cancelable: !0 }, Ia = "FocusScope", zn = d.forwardRef((e, t) => {
1212
1212
  const {
1213
1213
  loop: n = !1,
1214
1214
  trapped: o = !1,
@@ -1250,13 +1250,13 @@ var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Io
1250
1250
  _o.add(g);
1251
1251
  const h = document.activeElement;
1252
1252
  if (!s.contains(h)) {
1253
- const y = new CustomEvent(hn, Io);
1254
- s.addEventListener(hn, l), s.dispatchEvent(y), y.defaultPrevented || (Na(Fa(dr(s)), { select: !0 }), document.activeElement === h && ke(s));
1253
+ const y = new CustomEvent(vn, Io);
1254
+ s.addEventListener(vn, l), s.dispatchEvent(y), y.defaultPrevented || (Na(Fa(dr(s)), { select: !0 }), document.activeElement === h && ke(s));
1255
1255
  }
1256
1256
  return () => {
1257
- s.removeEventListener(hn, l), setTimeout(() => {
1258
- const y = new CustomEvent(gn, Io);
1259
- s.addEventListener(gn, f), s.dispatchEvent(y), y.defaultPrevented || ke(h ?? document.body, { select: !0 }), s.removeEventListener(gn, f), _o.remove(g);
1257
+ s.removeEventListener(vn, l), setTimeout(() => {
1258
+ const y = new CustomEvent(wn, Io);
1259
+ s.addEventListener(wn, f), s.dispatchEvent(y), y.defaultPrevented || ke(h ?? document.body, { select: !0 }), s.removeEventListener(wn, f), _o.remove(g);
1260
1260
  }, 0);
1261
1261
  };
1262
1262
  }
@@ -1274,7 +1274,7 @@ var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Io
1274
1274
  );
1275
1275
  return /* @__PURE__ */ p(U.div, { tabIndex: -1, ...a, ref: m, onKeyDown: w });
1276
1276
  });
1277
- Kn.displayName = Ia;
1277
+ zn.displayName = Ia;
1278
1278
  function Na(e, { select: t = !1 } = {}) {
1279
1279
  const n = document.activeElement;
1280
1280
  for (const o of e)
@@ -1345,7 +1345,7 @@ function Ge(e) {
1345
1345
  n((o) => o ?? String($a++));
1346
1346
  }, [e]), e || (t ? `radix-${t}` : "");
1347
1347
  }
1348
- const Va = ["top", "right", "bottom", "left"], Fe = Math.min, fe = Math.max, Vt = Math.round, At = Math.floor, Te = (e) => ({
1348
+ const Va = ["top", "right", "bottom", "left"], Fe = Math.min, fe = Math.max, Wt = Math.round, Tt = Math.floor, Te = (e) => ({
1349
1349
  x: e,
1350
1350
  y: e
1351
1351
  }), Ba = {
@@ -1357,7 +1357,7 @@ const Va = ["top", "right", "bottom", "left"], Fe = Math.min, fe = Math.max, Vt
1357
1357
  start: "end",
1358
1358
  end: "start"
1359
1359
  };
1360
- function Tn(e, t, n) {
1360
+ function In(e, t, n) {
1361
1361
  return fe(e, Fe(t, n));
1362
1362
  }
1363
1363
  function Oe(e, t) {
@@ -1369,30 +1369,30 @@ function De(e) {
1369
1369
  function rt(e) {
1370
1370
  return e.split("-")[1];
1371
1371
  }
1372
- function Gn(e) {
1372
+ function jn(e) {
1373
1373
  return e === "x" ? "y" : "x";
1374
1374
  }
1375
- function zn(e) {
1375
+ function Yn(e) {
1376
1376
  return e === "y" ? "height" : "width";
1377
1377
  }
1378
1378
  const Ua = /* @__PURE__ */ new Set(["top", "bottom"]);
1379
1379
  function Pe(e) {
1380
1380
  return Ua.has(De(e)) ? "y" : "x";
1381
1381
  }
1382
- function jn(e) {
1383
- return Gn(Pe(e));
1382
+ function Xn(e) {
1383
+ return jn(Pe(e));
1384
1384
  }
1385
1385
  function Ha(e, t, n) {
1386
1386
  n === void 0 && (n = !1);
1387
- const o = rt(e), r = jn(e), i = zn(r);
1387
+ const o = rt(e), r = Xn(e), i = Yn(r);
1388
1388
  let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
1389
- return t.reference[i] > t.floating[i] && (a = Bt(a)), [a, Bt(a)];
1389
+ return t.reference[i] > t.floating[i] && (a = Ut(a)), [a, Ut(a)];
1390
1390
  }
1391
1391
  function Ka(e) {
1392
- const t = Bt(e);
1393
- return [Mn(e), t, Mn(t)];
1392
+ const t = Ut(e);
1393
+ return [Nn(e), t, Nn(t)];
1394
1394
  }
1395
- function Mn(e) {
1395
+ function Nn(e) {
1396
1396
  return e.replace(/start|end/g, (t) => Wa[t]);
1397
1397
  }
1398
1398
  const Do = ["left", "right"], ko = ["right", "left"], Ga = ["top", "bottom"], za = ["bottom", "top"];
@@ -1411,9 +1411,9 @@ function ja(e, t, n) {
1411
1411
  function Ya(e, t, n, o) {
1412
1412
  const r = rt(e);
1413
1413
  let i = ja(De(e), n === "start", o);
1414
- return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(Mn)))), i;
1414
+ return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(Nn)))), i;
1415
1415
  }
1416
- function Bt(e) {
1416
+ function Ut(e) {
1417
1417
  return e.replace(/left|right|bottom|top/g, (t) => Ba[t]);
1418
1418
  }
1419
1419
  function Xa(e) {
@@ -1433,7 +1433,7 @@ function fr(e) {
1433
1433
  left: e
1434
1434
  };
1435
1435
  }
1436
- function Wt(e) {
1436
+ function Ht(e) {
1437
1437
  const {
1438
1438
  x: t,
1439
1439
  y: n,
@@ -1456,7 +1456,7 @@ function Fo(e, t, n) {
1456
1456
  reference: o,
1457
1457
  floating: r
1458
1458
  } = e;
1459
- const i = Pe(t), a = jn(t), s = zn(a), c = De(t), l = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, m = o[s] / 2 - r[s] / 2;
1459
+ const i = Pe(t), a = Xn(t), s = Yn(a), c = De(t), l = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, m = o[s] / 2 - r[s] / 2;
1460
1460
  let g;
1461
1461
  switch (c) {
1462
1462
  case "top":
@@ -1560,7 +1560,7 @@ const Za = async (e, t, n) => {
1560
1560
  middlewareData: g
1561
1561
  };
1562
1562
  };
1563
- async function gt(e, t) {
1563
+ async function wt(e, t) {
1564
1564
  var n;
1565
1565
  t === void 0 && (t = {});
1566
1566
  const {
@@ -1576,7 +1576,7 @@ async function gt(e, t) {
1576
1576
  elementContext: u = "floating",
1577
1577
  altBoundary: m = !1,
1578
1578
  padding: g = 0
1579
- } = Oe(t, e), w = fr(g), v = s[m ? u === "floating" ? "reference" : "floating" : u], y = Wt(await i.getClippingRect({
1579
+ } = Oe(t, e), w = fr(g), v = s[m ? u === "floating" ? "reference" : "floating" : u], y = Ht(await i.getClippingRect({
1580
1580
  element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1581
1581
  boundary: l,
1582
1582
  rootBoundary: f,
@@ -1592,7 +1592,7 @@ async function gt(e, t) {
1592
1592
  } : {
1593
1593
  x: 1,
1594
1594
  y: 1
1595
- }, R = Wt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1595
+ }, R = Ht(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1596
1596
  elements: s,
1597
1597
  rect: C,
1598
1598
  offsetParent: b,
@@ -1626,10 +1626,10 @@ const qa = (e) => ({
1626
1626
  const u = fr(f), m = {
1627
1627
  x: n,
1628
1628
  y: o
1629
- }, g = jn(r), w = zn(g), h = await a.getDimensions(l), v = g === "y", y = v ? "top" : "left", C = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", S = i.reference[w] + i.reference[g] - m[g] - i.floating[w], R = m[g] - i.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1629
+ }, g = Xn(r), w = Yn(g), h = await a.getDimensions(l), v = g === "y", y = v ? "top" : "left", C = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", S = i.reference[w] + i.reference[g] - m[g] - i.floating[w], R = m[g] - i.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1630
1630
  let E = A ? A[b] : 0;
1631
1631
  (!E || !await (a.isElement == null ? void 0 : a.isElement(A))) && (E = s.floating[b] || i.floating[w]);
1632
- const x = S / 2 - R / 2, M = E / 2 - h[w] / 2 - 1, T = Fe(u[y], M), D = Fe(u[C], M), L = T, $ = E - h[w] - D, F = E / 2 - h[w] / 2 + x, K = Tn(L, F, $), O = !c.arrow && rt(r) != null && F !== K && i.reference[w] / 2 - (F < L ? T : D) - h[w] / 2 < 0, B = O ? F < L ? F - L : F - $ : 0;
1632
+ const x = S / 2 - R / 2, M = E / 2 - h[w] / 2 - 1, T = Fe(u[y], M), D = Fe(u[C], M), L = T, $ = E - h[w] - D, F = E / 2 - h[w] / 2 + x, K = In(L, F, $), O = !c.arrow && rt(r) != null && F !== K && i.reference[w] / 2 - (F < L ? T : D) - h[w] / 2 < 0, B = O ? F < L ? F - L : F - $ : 0;
1633
1633
  return {
1634
1634
  [g]: m[g] + B,
1635
1635
  data: {
@@ -1666,9 +1666,9 @@ const qa = (e) => ({
1666
1666
  } = Oe(e, t);
1667
1667
  if ((n = i.arrow) != null && n.alignmentOffset)
1668
1668
  return {};
1669
- const y = De(r), C = Pe(s), b = De(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), R = m || (b || !h ? [Bt(s)] : Ka(s)), A = w !== "none";
1669
+ const y = De(r), C = Pe(s), b = De(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), R = m || (b || !h ? [Ut(s)] : Ka(s)), A = w !== "none";
1670
1670
  !m && A && R.push(...Ya(s, h, w, S));
1671
- const E = [s, ...R], x = await gt(t, v), M = [];
1671
+ const E = [s, ...R], x = await wt(t, v), M = [];
1672
1672
  let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1673
1673
  if (f && M.push(x[y]), u) {
1674
1674
  const F = Ha(r, a, S);
@@ -1748,7 +1748,7 @@ const Qa = function(e) {
1748
1748
  } = Oe(e, t);
1749
1749
  switch (o) {
1750
1750
  case "referenceHidden": {
1751
- const i = await gt(t, {
1751
+ const i = await wt(t, {
1752
1752
  ...r,
1753
1753
  elementContext: "reference"
1754
1754
  }), a = Lo(i, n.reference);
@@ -1760,7 +1760,7 @@ const Qa = function(e) {
1760
1760
  };
1761
1761
  }
1762
1762
  case "escaped": {
1763
- const i = await gt(t, {
1763
+ const i = await wt(t, {
1764
1764
  ...r,
1765
1765
  altBoundary: !0
1766
1766
  }), a = Lo(i, n.floating);
@@ -1854,15 +1854,15 @@ const tc = function(e) {
1854
1854
  } = Oe(e, t), l = {
1855
1855
  x: n,
1856
1856
  y: o
1857
- }, f = await gt(t, c), u = Pe(De(r)), m = Gn(u);
1857
+ }, f = await wt(t, c), u = Pe(De(r)), m = jn(u);
1858
1858
  let g = l[m], w = l[u];
1859
1859
  if (i) {
1860
1860
  const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", C = g + f[v], b = g - f[y];
1861
- g = Tn(C, g, b);
1861
+ g = In(C, g, b);
1862
1862
  }
1863
1863
  if (a) {
1864
1864
  const v = u === "y" ? "top" : "left", y = u === "y" ? "bottom" : "right", C = w + f[v], b = w - f[y];
1865
- w = Tn(C, w, b);
1865
+ w = In(C, w, b);
1866
1866
  }
1867
1867
  const h = s.fn({
1868
1868
  ...t,
@@ -1899,7 +1899,7 @@ const tc = function(e) {
1899
1899
  } = Oe(e, t), f = {
1900
1900
  x: n,
1901
1901
  y: o
1902
- }, u = Pe(r), m = Gn(u);
1902
+ }, u = Pe(r), m = jn(u);
1903
1903
  let g = f[m], w = f[u];
1904
1904
  const h = Oe(s, t), v = typeof h == "number" ? {
1905
1905
  mainAxis: h,
@@ -1939,7 +1939,7 @@ const tc = function(e) {
1939
1939
  apply: c = () => {
1940
1940
  },
1941
1941
  ...l
1942
- } = Oe(e, t), f = await gt(t, l), u = De(r), m = rt(r), g = Pe(r) === "y", {
1942
+ } = Oe(e, t), f = await wt(t, l), u = De(r), m = rt(r), g = Pe(r) === "y", {
1943
1943
  width: w,
1944
1944
  height: h
1945
1945
  } = i.floating;
@@ -1965,7 +1965,7 @@ const tc = function(e) {
1965
1965
  }
1966
1966
  };
1967
1967
  };
1968
- function Zt() {
1968
+ function Jt() {
1969
1969
  return typeof window < "u";
1970
1970
  }
1971
1971
  function it(e) {
@@ -1980,19 +1980,19 @@ function Ne(e) {
1980
1980
  return (t = (mr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1981
1981
  }
1982
1982
  function mr(e) {
1983
- return Zt() ? e instanceof Node || e instanceof pe(e).Node : !1;
1983
+ return Jt() ? e instanceof Node || e instanceof pe(e).Node : !1;
1984
1984
  }
1985
1985
  function Se(e) {
1986
- return Zt() ? e instanceof Element || e instanceof pe(e).Element : !1;
1986
+ return Jt() ? e instanceof Element || e instanceof pe(e).Element : !1;
1987
1987
  }
1988
1988
  function Ie(e) {
1989
- return Zt() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
1989
+ return Jt() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
1990
1990
  }
1991
1991
  function Vo(e) {
1992
- return !Zt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
1992
+ return !Jt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
1993
1993
  }
1994
1994
  const ic = /* @__PURE__ */ new Set(["inline", "contents"]);
1995
- function bt(e) {
1995
+ function St(e) {
1996
1996
  const {
1997
1997
  overflow: t,
1998
1998
  overflowX: n,
@@ -2006,7 +2006,7 @@ function ac(e) {
2006
2006
  return sc.has(it(e));
2007
2007
  }
2008
2008
  const cc = [":popover-open", ":modal"];
2009
- function qt(e) {
2009
+ function Qt(e) {
2010
2010
  return cc.some((t) => {
2011
2011
  try {
2012
2012
  return e.matches(t);
@@ -2016,22 +2016,22 @@ function qt(e) {
2016
2016
  });
2017
2017
  }
2018
2018
  const lc = ["transform", "translate", "scale", "rotate", "perspective"], uc = ["transform", "translate", "scale", "rotate", "perspective", "filter"], dc = ["paint", "layout", "strict", "content"];
2019
- function Yn(e) {
2020
- const t = Xn(), n = Se(e) ? xe(e) : e;
2019
+ function Zn(e) {
2020
+ const t = qn(), n = Se(e) ? xe(e) : e;
2021
2021
  return lc.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || uc.some((o) => (n.willChange || "").includes(o)) || dc.some((o) => (n.contain || "").includes(o));
2022
2022
  }
2023
2023
  function fc(e) {
2024
2024
  let t = Le(e);
2025
2025
  for (; Ie(t) && !ot(t); ) {
2026
- if (Yn(t))
2026
+ if (Zn(t))
2027
2027
  return t;
2028
- if (qt(t))
2028
+ if (Qt(t))
2029
2029
  return null;
2030
2030
  t = Le(t);
2031
2031
  }
2032
2032
  return null;
2033
2033
  }
2034
- function Xn() {
2034
+ function qn() {
2035
2035
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2036
2036
  }
2037
2037
  const pc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
@@ -2041,7 +2041,7 @@ function ot(e) {
2041
2041
  function xe(e) {
2042
2042
  return pe(e).getComputedStyle(e);
2043
2043
  }
2044
- function Jt(e) {
2044
+ function en(e) {
2045
2045
  return Se(e) ? {
2046
2046
  scrollLeft: e.scrollLeft,
2047
2047
  scrollTop: e.scrollTop
@@ -2064,36 +2064,36 @@ function Le(e) {
2064
2064
  }
2065
2065
  function hr(e) {
2066
2066
  const t = Le(e);
2067
- return ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && bt(t) ? t : hr(t);
2067
+ return ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && St(t) ? t : hr(t);
2068
2068
  }
2069
- function vt(e, t, n) {
2069
+ function yt(e, t, n) {
2070
2070
  var o;
2071
2071
  t === void 0 && (t = []), n === void 0 && (n = !0);
2072
2072
  const r = hr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = pe(r);
2073
2073
  if (i) {
2074
- const s = In(a);
2075
- return t.concat(a, a.visualViewport || [], bt(r) ? r : [], s && n ? vt(s) : []);
2074
+ const s = _n(a);
2075
+ return t.concat(a, a.visualViewport || [], St(r) ? r : [], s && n ? yt(s) : []);
2076
2076
  }
2077
- return t.concat(r, vt(r, [], n));
2077
+ return t.concat(r, yt(r, [], n));
2078
2078
  }
2079
- function In(e) {
2079
+ function _n(e) {
2080
2080
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2081
2081
  }
2082
2082
  function gr(e) {
2083
2083
  const t = xe(e);
2084
2084
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
2085
- const r = Ie(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Vt(n) !== i || Vt(o) !== a;
2085
+ const r = Ie(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Wt(n) !== i || Wt(o) !== a;
2086
2086
  return s && (n = i, o = a), {
2087
2087
  width: n,
2088
2088
  height: o,
2089
2089
  $: s
2090
2090
  };
2091
2091
  }
2092
- function Zn(e) {
2092
+ function Jn(e) {
2093
2093
  return Se(e) ? e : e.contextElement;
2094
2094
  }
2095
2095
  function tt(e) {
2096
- const t = Zn(e);
2096
+ const t = Jn(e);
2097
2097
  if (!Ie(t))
2098
2098
  return Te(1);
2099
2099
  const n = t.getBoundingClientRect(), {
@@ -2101,7 +2101,7 @@ function tt(e) {
2101
2101
  height: r,
2102
2102
  $: i
2103
2103
  } = gr(t);
2104
- let a = (i ? Vt(n.width) : n.width) / o, s = (i ? Vt(n.height) : n.height) / r;
2104
+ let a = (i ? Wt(n.width) : n.width) / o, s = (i ? Wt(n.height) : n.height) / r;
2105
2105
  return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2106
2106
  x: a,
2107
2107
  y: s
@@ -2110,7 +2110,7 @@ function tt(e) {
2110
2110
  const mc = /* @__PURE__ */ Te(0);
2111
2111
  function vr(e) {
2112
2112
  const t = pe(e);
2113
- return !Xn() || !t.visualViewport ? mc : {
2113
+ return !qn() || !t.visualViewport ? mc : {
2114
2114
  x: t.visualViewport.offsetLeft,
2115
2115
  y: t.visualViewport.offsetTop
2116
2116
  };
@@ -2120,32 +2120,32 @@ function hc(e, t, n) {
2120
2120
  }
2121
2121
  function ze(e, t, n, o) {
2122
2122
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2123
- const r = e.getBoundingClientRect(), i = Zn(e);
2123
+ const r = e.getBoundingClientRect(), i = Jn(e);
2124
2124
  let a = Te(1);
2125
2125
  t && (o ? Se(o) && (a = tt(o)) : a = tt(e));
2126
2126
  const s = hc(i, n, o) ? vr(i) : Te(0);
2127
2127
  let c = (r.left + s.x) / a.x, l = (r.top + s.y) / a.y, f = r.width / a.x, u = r.height / a.y;
2128
2128
  if (i) {
2129
2129
  const m = pe(i), g = o && Se(o) ? pe(o) : o;
2130
- let w = m, h = In(w);
2130
+ let w = m, h = _n(w);
2131
2131
  for (; h && o && g !== w; ) {
2132
2132
  const v = tt(h), y = h.getBoundingClientRect(), C = xe(h), b = y.left + (h.clientLeft + parseFloat(C.paddingLeft)) * v.x, S = y.top + (h.clientTop + parseFloat(C.paddingTop)) * v.y;
2133
- c *= v.x, l *= v.y, f *= v.x, u *= v.y, c += b, l += S, w = pe(h), h = In(w);
2133
+ c *= v.x, l *= v.y, f *= v.x, u *= v.y, c += b, l += S, w = pe(h), h = _n(w);
2134
2134
  }
2135
2135
  }
2136
- return Wt({
2136
+ return Ht({
2137
2137
  width: f,
2138
2138
  height: u,
2139
2139
  x: c,
2140
2140
  y: l
2141
2141
  });
2142
2142
  }
2143
- function Qt(e, t) {
2144
- const n = Jt(e).scrollLeft;
2143
+ function tn(e, t) {
2144
+ const n = en(e).scrollLeft;
2145
2145
  return t ? t.left + n : ze(Ne(e)).left + n;
2146
2146
  }
2147
2147
  function wr(e, t) {
2148
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Qt(e, n), r = n.top + t.scrollTop;
2148
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - tn(e, n), r = n.top + t.scrollTop;
2149
2149
  return {
2150
2150
  x: o,
2151
2151
  y: r
@@ -2158,7 +2158,7 @@ function gc(e) {
2158
2158
  offsetParent: o,
2159
2159
  strategy: r
2160
2160
  } = e;
2161
- const i = r === "fixed", a = Ne(o), s = t ? qt(t.floating) : !1;
2161
+ const i = r === "fixed", a = Ne(o), s = t ? Qt(t.floating) : !1;
2162
2162
  if (o === a || s && i)
2163
2163
  return n;
2164
2164
  let c = {
@@ -2166,7 +2166,7 @@ function gc(e) {
2166
2166
  scrollTop: 0
2167
2167
  }, l = Te(1);
2168
2168
  const f = Te(0), u = Ie(o);
2169
- if ((u || !u && !i) && ((it(o) !== "body" || bt(a)) && (c = Jt(o)), Ie(o))) {
2169
+ if ((u || !u && !i) && ((it(o) !== "body" || St(a)) && (c = en(o)), Ie(o))) {
2170
2170
  const g = ze(o);
2171
2171
  l = tt(o), f.x = g.x + o.clientLeft, f.y = g.y + o.clientTop;
2172
2172
  }
@@ -2182,8 +2182,8 @@ function vc(e) {
2182
2182
  return Array.from(e.getClientRects());
2183
2183
  }
2184
2184
  function wc(e) {
2185
- const t = Ne(e), n = Jt(e), o = e.ownerDocument.body, r = fe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = fe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
2186
- let a = -n.scrollLeft + Qt(e);
2185
+ const t = Ne(e), n = en(e), o = e.ownerDocument.body, r = fe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = fe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
2186
+ let a = -n.scrollLeft + tn(e);
2187
2187
  const s = -n.scrollTop;
2188
2188
  return xe(o).direction === "rtl" && (a += fe(t.clientWidth, o.clientWidth) - r), {
2189
2189
  width: r,
@@ -2198,10 +2198,10 @@ function yc(e, t) {
2198
2198
  let i = o.clientWidth, a = o.clientHeight, s = 0, c = 0;
2199
2199
  if (r) {
2200
2200
  i = r.width, a = r.height;
2201
- const f = Xn();
2201
+ const f = qn();
2202
2202
  (!f || f && t === "fixed") && (s = r.offsetLeft, c = r.offsetTop);
2203
2203
  }
2204
- const l = Qt(o);
2204
+ const l = tn(o);
2205
2205
  if (l <= 0) {
2206
2206
  const f = o.ownerDocument, u = f.body, m = getComputedStyle(u), g = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, w = Math.abs(o.clientWidth - u.clientWidth - g);
2207
2207
  w <= Bo && (i -= w);
@@ -2240,7 +2240,7 @@ function Wo(e, t, n) {
2240
2240
  height: t.height
2241
2241
  };
2242
2242
  }
2243
- return Wt(o);
2243
+ return Ht(o);
2244
2244
  }
2245
2245
  function yr(e, t) {
2246
2246
  const n = Le(e);
@@ -2250,12 +2250,12 @@ function Sc(e, t) {
2250
2250
  const n = t.get(e);
2251
2251
  if (n)
2252
2252
  return n;
2253
- let o = vt(e, [], !1).filter((s) => Se(s) && it(s) !== "body"), r = null;
2253
+ let o = yt(e, [], !1).filter((s) => Se(s) && it(s) !== "body"), r = null;
2254
2254
  const i = xe(e).position === "fixed";
2255
2255
  let a = i ? Le(e) : e;
2256
2256
  for (; Se(a) && !ot(a); ) {
2257
- const s = xe(a), c = Yn(a);
2258
- !c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r && bc.has(r.position) || bt(a) && !c && yr(e, a)) ? o = o.filter((f) => f !== a) : r = s, a = Le(a);
2257
+ const s = xe(a), c = Zn(a);
2258
+ !c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r && bc.has(r.position) || St(a) && !c && yr(e, a)) ? o = o.filter((f) => f !== a) : r = s, a = Le(a);
2259
2259
  }
2260
2260
  return t.set(e, o), o;
2261
2261
  }
@@ -2266,7 +2266,7 @@ function xc(e) {
2266
2266
  rootBoundary: o,
2267
2267
  strategy: r
2268
2268
  } = e;
2269
- const a = [...n === "clippingAncestors" ? qt(t) ? [] : Sc(t, this._c) : [].concat(n), o], s = a[0], c = a.reduce((l, f) => {
2269
+ const a = [...n === "clippingAncestors" ? Qt(t) ? [] : Sc(t, this._c) : [].concat(n), o], s = a[0], c = a.reduce((l, f) => {
2270
2270
  const u = Wo(t, f, r);
2271
2271
  return l.top = fe(u.top, l.top), l.right = Fe(u.right, l.right), l.bottom = Fe(u.bottom, l.bottom), l.left = fe(u.left, l.left), l;
2272
2272
  }, Wo(t, s, r));
@@ -2295,10 +2295,10 @@ function Rc(e, t, n) {
2295
2295
  };
2296
2296
  const c = Te(0);
2297
2297
  function l() {
2298
- c.x = Qt(r);
2298
+ c.x = tn(r);
2299
2299
  }
2300
2300
  if (o || !o && !i)
2301
- if ((it(t) !== "body" || bt(r)) && (s = Jt(t)), o) {
2301
+ if ((it(t) !== "body" || St(r)) && (s = en(t)), o) {
2302
2302
  const g = ze(t, !0, i, t);
2303
2303
  c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
2304
2304
  } else r && l();
@@ -2311,7 +2311,7 @@ function Rc(e, t, n) {
2311
2311
  height: a.height
2312
2312
  };
2313
2313
  }
2314
- function vn(e) {
2314
+ function yn(e) {
2315
2315
  return xe(e).position === "static";
2316
2316
  }
2317
2317
  function Uo(e, t) {
@@ -2324,21 +2324,21 @@ function Uo(e, t) {
2324
2324
  }
2325
2325
  function br(e, t) {
2326
2326
  const n = pe(e);
2327
- if (qt(e))
2327
+ if (Qt(e))
2328
2328
  return n;
2329
2329
  if (!Ie(e)) {
2330
2330
  let r = Le(e);
2331
2331
  for (; r && !ot(r); ) {
2332
- if (Se(r) && !vn(r))
2332
+ if (Se(r) && !yn(r))
2333
2333
  return r;
2334
2334
  r = Le(r);
2335
2335
  }
2336
2336
  return n;
2337
2337
  }
2338
2338
  let o = Uo(e, t);
2339
- for (; o && ac(o) && vn(o); )
2339
+ for (; o && ac(o) && yn(o); )
2340
2340
  o = Uo(o, t);
2341
- return o && ot(o) && vn(o) && !Yn(o) ? n : o || fc(e) || n;
2341
+ return o && ot(o) && yn(o) && !Zn(o) ? n : o || fc(e) || n;
2342
2342
  }
2343
2343
  const Ac = async function(e) {
2344
2344
  const t = this.getOffsetParent || br, n = this.getDimensions, o = await n(e.floating);
@@ -2387,7 +2387,7 @@ function Mc(e, t) {
2387
2387
  } = l;
2388
2388
  if (s || t(), !m || !g)
2389
2389
  return;
2390
- const w = At(u), h = At(r.clientWidth - (f + m)), v = At(r.clientHeight - (u + g)), y = At(f), b = {
2390
+ const w = Tt(u), h = Tt(r.clientWidth - (f + m)), v = Tt(r.clientHeight - (u + g)), y = Tt(f), b = {
2391
2391
  rootMargin: -w + "px " + -h + "px " + -v + "px " + -y + "px",
2392
2392
  threshold: fe(0, Fe(1, c)) || 1
2393
2393
  };
@@ -2424,7 +2424,7 @@ function Ic(e, t, n, o) {
2424
2424
  elementResize: a = typeof ResizeObserver == "function",
2425
2425
  layoutShift: s = typeof IntersectionObserver == "function",
2426
2426
  animationFrame: c = !1
2427
- } = o, l = Zn(e), f = r || i ? [...l ? vt(l) : [], ...vt(t)] : [];
2427
+ } = o, l = Jn(e), f = r || i ? [...l ? yt(l) : [], ...yt(t)] : [];
2428
2428
  f.forEach((y) => {
2429
2429
  r && y.addEventListener("scroll", n, {
2430
2430
  passive: !0
@@ -2466,8 +2466,8 @@ const Nc = tc, _c = nc, Oc = Ja, Dc = rc, kc = Qa, Ho = qa, Fc = oc, Lc = (e, t,
2466
2466
  });
2467
2467
  };
2468
2468
  var $c = typeof document < "u", Vc = function() {
2469
- }, Ft = $c ? As : Vc;
2470
- function Ut(e, t) {
2469
+ }, $t = $c ? As : Vc;
2470
+ function Kt(e, t) {
2471
2471
  if (e === t)
2472
2472
  return !0;
2473
2473
  if (typeof e != typeof t)
@@ -2479,7 +2479,7 @@ function Ut(e, t) {
2479
2479
  if (Array.isArray(e)) {
2480
2480
  if (n = e.length, n !== t.length) return !1;
2481
2481
  for (o = n; o-- !== 0; )
2482
- if (!Ut(e[o], t[o]))
2482
+ if (!Kt(e[o], t[o]))
2483
2483
  return !1;
2484
2484
  return !0;
2485
2485
  }
@@ -2490,7 +2490,7 @@ function Ut(e, t) {
2490
2490
  return !1;
2491
2491
  for (o = n; o-- !== 0; ) {
2492
2492
  const i = r[o];
2493
- if (!(i === "_owner" && e.$$typeof) && !Ut(e[i], t[i]))
2493
+ if (!(i === "_owner" && e.$$typeof) && !Kt(e[i], t[i]))
2494
2494
  return !1;
2495
2495
  }
2496
2496
  return !0;
@@ -2504,9 +2504,9 @@ function Ko(e, t) {
2504
2504
  const n = Sr(e);
2505
2505
  return Math.round(t * n) / n;
2506
2506
  }
2507
- function wn(e) {
2507
+ function bn(e) {
2508
2508
  const t = d.useRef(e);
2509
- return Ft(() => {
2509
+ return $t(() => {
2510
2510
  t.current = e;
2511
2511
  }), t;
2512
2512
  }
@@ -2532,12 +2532,12 @@ function Bc(e) {
2532
2532
  middlewareData: {},
2533
2533
  isPositioned: !1
2534
2534
  }), [m, g] = d.useState(o);
2535
- Ut(m, o) || g(o);
2535
+ Kt(m, o) || g(o);
2536
2536
  const [w, h] = d.useState(null), [v, y] = d.useState(null), C = d.useCallback((_) => {
2537
2537
  _ !== A.current && (A.current = _, h(_));
2538
2538
  }, []), b = d.useCallback((_) => {
2539
2539
  _ !== E.current && (E.current = _, y(_));
2540
- }, []), S = i || w, R = a || v, A = d.useRef(null), E = d.useRef(null), x = d.useRef(f), M = c != null, T = wn(c), D = wn(r), L = wn(l), $ = d.useCallback(() => {
2540
+ }, []), S = i || w, R = a || v, A = d.useRef(null), E = d.useRef(null), x = d.useRef(f), M = c != null, T = bn(c), D = bn(r), L = bn(l), $ = d.useCallback(() => {
2541
2541
  if (!A.current || !E.current)
2542
2542
  return;
2543
2543
  const _ = {
@@ -2554,21 +2554,21 @@ function Bc(e) {
2554
2554
  // setting it to `true` when `open === false` (must be specified).
2555
2555
  isPositioned: L.current !== !1
2556
2556
  };
2557
- F.current && !Ut(x.current, j) && (x.current = j, jt.flushSync(() => {
2557
+ F.current && !Kt(x.current, j) && (x.current = j, Xt.flushSync(() => {
2558
2558
  u(j);
2559
2559
  }));
2560
2560
  });
2561
2561
  }, [m, t, n, D, L]);
2562
- Ft(() => {
2562
+ $t(() => {
2563
2563
  l === !1 && x.current.isPositioned && (x.current.isPositioned = !1, u((_) => ({
2564
2564
  ..._,
2565
2565
  isPositioned: !1
2566
2566
  })));
2567
2567
  }, [l]);
2568
2568
  const F = d.useRef(!1);
2569
- Ft(() => (F.current = !0, () => {
2569
+ $t(() => (F.current = !0, () => {
2570
2570
  F.current = !1;
2571
- }), []), Ft(() => {
2571
+ }), []), $t(() => {
2572
2572
  if (S && (A.current = S), R && (E.current = R), S && R) {
2573
2573
  if (T.current)
2574
2574
  return T.current(S, R, $);
@@ -2694,11 +2694,11 @@ function qc(e) {
2694
2694
  n(void 0);
2695
2695
  }, [e]), t;
2696
2696
  }
2697
- var qn = "Popper", [Er, en] = Xe(qn), [Jc, Rr] = Er(qn), Ar = (e) => {
2697
+ var Qn = "Popper", [Er, nn] = Xe(Qn), [Jc, Rr] = Er(Qn), Ar = (e) => {
2698
2698
  const { __scopePopper: t, children: n } = e, [o, r] = d.useState(null);
2699
2699
  return /* @__PURE__ */ p(Jc, { scope: t, anchor: o, onAnchorChange: r, children: n });
2700
2700
  };
2701
- Ar.displayName = qn;
2701
+ Ar.displayName = Qn;
2702
2702
  var Pr = "PopperAnchor", Tr = d.forwardRef(
2703
2703
  (e, t) => {
2704
2704
  const { __scopePopper: n, virtualRef: o, ...r } = e, i = Rr(Pr, n), a = d.useRef(null), s = Z(t, a), c = d.useRef(null);
@@ -2709,7 +2709,7 @@ var Pr = "PopperAnchor", Tr = d.forwardRef(
2709
2709
  }
2710
2710
  );
2711
2711
  Tr.displayName = Pr;
2712
- var Jn = "PopperContent", [Qc, el] = Er(Jn), Mr = d.forwardRef(
2712
+ var eo = "PopperContent", [Qc, el] = Er(eo), Mr = d.forwardRef(
2713
2713
  (e, t) => {
2714
2714
  var I, W, G, H, V, z;
2715
2715
  const {
@@ -2727,7 +2727,7 @@ var Jn = "PopperContent", [Qc, el] = Er(Jn), Mr = d.forwardRef(
2727
2727
  updatePositionStrategy: g = "optimized",
2728
2728
  onPlaced: w,
2729
2729
  ...h
2730
- } = e, v = Rr(Jn, n), [y, C] = d.useState(null), b = Z(t, (ie) => C(ie)), [S, R] = d.useState(null), A = qc(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), T = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, D = Array.isArray(l) ? l : [l], L = D.length > 0, $ = {
2730
+ } = e, v = Rr(eo, n), [y, C] = d.useState(null), b = Z(t, (ie) => C(ie)), [S, R] = d.useState(null), A = qc(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), T = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, D = Array.isArray(l) ? l : [l], L = D.length > 0, $ = {
2731
2731
  padding: T,
2732
2732
  boundary: D.filter(nl),
2733
2733
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -2754,18 +2754,18 @@ var Jn = "PopperContent", [Qc, el] = Er(Jn), Mr = d.forwardRef(
2754
2754
  zc({
2755
2755
  ...$,
2756
2756
  apply: ({ elements: ie, rects: me, availableWidth: Be, availableHeight: We }) => {
2757
- const { width: Ue, height: fn } = me.reference, te = ie.floating.style;
2758
- te.setProperty("--radix-popper-available-width", `${Be}px`), te.setProperty("--radix-popper-available-height", `${We}px`), te.setProperty("--radix-popper-anchor-width", `${Ue}px`), te.setProperty("--radix-popper-anchor-height", `${fn}px`);
2757
+ const { width: Ue, height: mn } = me.reference, te = ie.floating.style;
2758
+ te.setProperty("--radix-popper-available-width", `${Be}px`), te.setProperty("--radix-popper-available-height", `${We}px`), te.setProperty("--radix-popper-anchor-width", `${Ue}px`), te.setProperty("--radix-popper-anchor-height", `${mn}px`);
2759
2759
  }
2760
2760
  }),
2761
2761
  S && Yc({ element: S, padding: s }),
2762
2762
  ol({ arrowWidth: E, arrowHeight: x }),
2763
2763
  m && jc({ strategy: "referenceHidden", ...$ })
2764
2764
  ]
2765
- }), [P, j] = _r(O), q = Me(w);
2765
+ }), [P, j] = _r(O), J = Me(w);
2766
2766
  oe(() => {
2767
- B && (q == null || q());
2768
- }, [B, q]);
2767
+ B && (J == null || J());
2768
+ }, [B, J]);
2769
2769
  const ne = (I = _.arrow) == null ? void 0 : I.x, ve = (W = _.arrow) == null ? void 0 : W.y, ue = ((G = _.arrow) == null ? void 0 : G.centerOffset) !== 0, [we, re] = d.useState();
2770
2770
  return oe(() => {
2771
2771
  y && re(window.getComputedStyle(y).zIndex);
@@ -2823,7 +2823,7 @@ var Jn = "PopperContent", [Qc, el] = Er(Jn), Mr = d.forwardRef(
2823
2823
  );
2824
2824
  }
2825
2825
  );
2826
- Mr.displayName = Jn;
2826
+ Mr.displayName = eo;
2827
2827
  var Ir = "PopperArrow", tl = {
2828
2828
  top: "bottom",
2829
2829
  right: "left",
@@ -2892,14 +2892,14 @@ function _r(e) {
2892
2892
  const [t, n = "center"] = e.split("-");
2893
2893
  return [t, n];
2894
2894
  }
2895
- var Or = Ar, Dr = Tr, kr = Mr, Fr = Nr, rl = "Portal", Qn = d.forwardRef((e, t) => {
2895
+ var Or = Ar, Dr = Tr, kr = Mr, Fr = Nr, rl = "Portal", to = d.forwardRef((e, t) => {
2896
2896
  var s;
2897
2897
  const { container: n, ...o } = e, [r, i] = d.useState(!1);
2898
2898
  oe(() => i(!0), []);
2899
2899
  const a = n || r && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
2900
2900
  return a ? Ts.createPortal(/* @__PURE__ */ p(U.div, { ...o, ref: t }), a) : null;
2901
2901
  });
2902
- Qn.displayName = rl;
2902
+ to.displayName = rl;
2903
2903
  function il(e, t) {
2904
2904
  return d.useReducer((n, o) => t[n][o] ?? n, e);
2905
2905
  }
@@ -2923,19 +2923,19 @@ function sl(e) {
2923
2923
  }
2924
2924
  });
2925
2925
  return d.useEffect(() => {
2926
- const l = Pt(o.current);
2926
+ const l = Mt(o.current);
2927
2927
  i.current = s === "mounted" ? l : "none";
2928
2928
  }, [s]), oe(() => {
2929
2929
  const l = o.current, f = r.current;
2930
2930
  if (f !== e) {
2931
- const m = i.current, g = Pt(l);
2931
+ const m = i.current, g = Mt(l);
2932
2932
  e ? c("MOUNT") : g === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(f && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
2933
2933
  }
2934
2934
  }, [e, c]), oe(() => {
2935
2935
  if (t) {
2936
2936
  let l;
2937
2937
  const f = t.ownerDocument.defaultView ?? window, u = (g) => {
2938
- const h = Pt(o.current).includes(CSS.escape(g.animationName));
2938
+ const h = Mt(o.current).includes(CSS.escape(g.animationName));
2939
2939
  if (g.target === t && h && (c("ANIMATION_END"), !r.current)) {
2940
2940
  const v = t.style.animationFillMode;
2941
2941
  t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
@@ -2943,7 +2943,7 @@ function sl(e) {
2943
2943
  });
2944
2944
  }
2945
2945
  }, m = (g) => {
2946
- g.target === t && (i.current = Pt(o.current));
2946
+ g.target === t && (i.current = Mt(o.current));
2947
2947
  };
2948
2948
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", u), t.addEventListener("animationend", u), () => {
2949
2949
  f.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", u), t.removeEventListener("animationend", u);
@@ -2957,7 +2957,7 @@ function sl(e) {
2957
2957
  }, [])
2958
2958
  };
2959
2959
  }
2960
- function Pt(e) {
2960
+ function Mt(e) {
2961
2961
  return (e == null ? void 0 : e.animationName) || "none";
2962
2962
  }
2963
2963
  function al(e) {
@@ -2965,13 +2965,13 @@ function al(e) {
2965
2965
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
2966
2966
  return n ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2967
2967
  }
2968
- var yn = "rovingFocusGroup.onEntryFocus", cl = { bubbles: !1, cancelable: !0 }, Ct = "RovingFocusGroup", [Nn, Lr, ll] = Un(Ct), [ul, tn] = Xe(
2969
- Ct,
2968
+ var Cn = "rovingFocusGroup.onEntryFocus", cl = { bubbles: !1, cancelable: !0 }, xt = "RovingFocusGroup", [On, Lr, ll] = Kn(xt), [ul, on] = Xe(
2969
+ xt,
2970
2970
  [ll]
2971
- ), [dl, fl] = ul(Ct), $r = d.forwardRef(
2972
- (e, t) => /* @__PURE__ */ p(Nn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Nn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(pl, { ...e, ref: t }) }) })
2971
+ ), [dl, fl] = ul(xt), $r = d.forwardRef(
2972
+ (e, t) => /* @__PURE__ */ p(On.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(On.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(pl, { ...e, ref: t }) }) })
2973
2973
  );
2974
- $r.displayName = Ct;
2974
+ $r.displayName = xt;
2975
2975
  var pl = d.forwardRef((e, t) => {
2976
2976
  const {
2977
2977
  __scopeRovingFocusGroup: n,
@@ -2984,16 +2984,16 @@ var pl = d.forwardRef((e, t) => {
2984
2984
  onEntryFocus: l,
2985
2985
  preventScrollOnEntryFocus: f = !1,
2986
2986
  ...u
2987
- } = e, m = d.useRef(null), g = Z(t, m), w = Xt(i), [h, v] = mt({
2987
+ } = e, m = d.useRef(null), g = Z(t, m), w = qt(i), [h, v] = gt({
2988
2988
  prop: a,
2989
2989
  defaultProp: s ?? null,
2990
2990
  onChange: c,
2991
- caller: Ct
2991
+ caller: xt
2992
2992
  }), [y, C] = d.useState(!1), b = Me(l), S = Lr(n), R = d.useRef(!1), [A, E] = d.useState(0);
2993
2993
  return d.useEffect(() => {
2994
2994
  const x = m.current;
2995
2995
  if (x)
2996
- return x.addEventListener(yn, b), () => x.removeEventListener(yn, b);
2996
+ return x.addEventListener(Cn, b), () => x.removeEventListener(Cn, b);
2997
2997
  }, [b]), /* @__PURE__ */ p(
2998
2998
  dl,
2999
2999
  {
@@ -3029,7 +3029,7 @@ var pl = d.forwardRef((e, t) => {
3029
3029
  onFocus: N(e.onFocus, (x) => {
3030
3030
  const M = !R.current;
3031
3031
  if (x.target === x.currentTarget && M && !y) {
3032
- const T = new CustomEvent(yn, cl);
3032
+ const T = new CustomEvent(Cn, cl);
3033
3033
  if (x.currentTarget.dispatchEvent(T), !T.defaultPrevented) {
3034
3034
  const D = S().filter((O) => O.focusable), L = D.find((O) => O.active), $ = D.find((O) => O.id === h), K = [L, $, ...D].filter(
3035
3035
  Boolean
@@ -3058,7 +3058,7 @@ var pl = d.forwardRef((e, t) => {
3058
3058
  if (o)
3059
3059
  return g(), () => w();
3060
3060
  }, [o, g, w]), /* @__PURE__ */ p(
3061
- Nn.ItemSlot,
3061
+ On.ItemSlot,
3062
3062
  {
3063
3063
  scope: n,
3064
3064
  id: l,
@@ -3134,7 +3134,7 @@ var Ur = $r, Hr = Br, wl = function(e) {
3134
3134
  return null;
3135
3135
  var t = Array.isArray(e) ? e[0] : e;
3136
3136
  return t.ownerDocument.body;
3137
- }, Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Mt = {}, bn = 0, Kr = function(e) {
3137
+ }, Je = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Nt = {}, Sn = 0, Kr = function(e) {
3138
3138
  return e && (e.host || Kr(e.parentNode));
3139
3139
  }, yl = function(e, t) {
3140
3140
  return t.map(function(n) {
@@ -3147,8 +3147,8 @@ var Ur = $r, Hr = Br, wl = function(e) {
3147
3147
  });
3148
3148
  }, bl = function(e, t, n, o) {
3149
3149
  var r = yl(t, Array.isArray(e) ? e : [e]);
3150
- Mt[n] || (Mt[n] = /* @__PURE__ */ new WeakMap());
3151
- var i = Mt[n], a = [], s = /* @__PURE__ */ new Set(), c = new Set(r), l = function(u) {
3150
+ Nt[n] || (Nt[n] = /* @__PURE__ */ new WeakMap());
3151
+ var i = Nt[n], a = [], s = /* @__PURE__ */ new Set(), c = new Set(r), l = function(u) {
3152
3152
  !u || s.has(u) || (s.add(u), l(u.parentNode));
3153
3153
  };
3154
3154
  r.forEach(l);
@@ -3159,17 +3159,17 @@ var Ur = $r, Hr = Br, wl = function(e) {
3159
3159
  else
3160
3160
  try {
3161
3161
  var g = m.getAttribute(o), w = g !== null && g !== "false", h = (Je.get(m) || 0) + 1, v = (i.get(m) || 0) + 1;
3162
- Je.set(m, h), i.set(m, v), a.push(m), h === 1 && w && Tt.set(m, !0), v === 1 && m.setAttribute(n, "true"), w || m.setAttribute(o, "true");
3162
+ Je.set(m, h), i.set(m, v), a.push(m), h === 1 && w && It.set(m, !0), v === 1 && m.setAttribute(n, "true"), w || m.setAttribute(o, "true");
3163
3163
  } catch (y) {
3164
3164
  console.error("aria-hidden: cannot operate on ", m, y);
3165
3165
  }
3166
3166
  });
3167
3167
  };
3168
- return f(t), s.clear(), bn++, function() {
3168
+ return f(t), s.clear(), Sn++, function() {
3169
3169
  a.forEach(function(u) {
3170
3170
  var m = Je.get(u) - 1, g = i.get(u) - 1;
3171
- Je.set(u, m), i.set(u, g), m || (Tt.has(u) || u.removeAttribute(o), Tt.delete(u)), g || u.removeAttribute(n);
3172
- }), bn--, bn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Mt = {});
3171
+ Je.set(u, m), i.set(u, g), m || (It.has(u) || u.removeAttribute(o), It.delete(u)), g || u.removeAttribute(n);
3172
+ }), Sn--, Sn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Nt = {});
3173
3173
  };
3174
3174
  }, Gr = function(e, t, n) {
3175
3175
  n === void 0 && (n = "data-aria-hidden");
@@ -3199,8 +3199,8 @@ function Cl(e, t, n) {
3199
3199
  (i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
3200
3200
  return e.concat(i || Array.prototype.slice.call(t));
3201
3201
  }
3202
- var Lt = "right-scroll-bar-position", $t = "width-before-scroll-bar", Sl = "with-scroll-bars-hidden", xl = "--removed-body-scroll-bar-size";
3203
- function Cn(e, t) {
3202
+ var Vt = "right-scroll-bar-position", Bt = "width-before-scroll-bar", Sl = "with-scroll-bars-hidden", xl = "--removed-body-scroll-bar-size";
3203
+ function xn(e, t) {
3204
3204
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3205
3205
  }
3206
3206
  function El(e, t) {
@@ -3228,7 +3228,7 @@ var Rl = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Go = /* @__PURE_
3228
3228
  function Al(e, t) {
3229
3229
  var n = El(null, function(o) {
3230
3230
  return e.forEach(function(r) {
3231
- return Cn(r, o);
3231
+ return xn(r, o);
3232
3232
  });
3233
3233
  });
3234
3234
  return Rl(function() {
@@ -3236,9 +3236,9 @@ function Al(e, t) {
3236
3236
  if (o) {
3237
3237
  var r = new Set(o), i = new Set(e), a = n.current;
3238
3238
  r.forEach(function(s) {
3239
- i.has(s) || Cn(s, null);
3239
+ i.has(s) || xn(s, null);
3240
3240
  }), i.forEach(function(s) {
3241
- r.has(s) || Cn(s, a);
3241
+ r.has(s) || xn(s, a);
3242
3242
  });
3243
3243
  }
3244
3244
  Go.set(n, e);
@@ -3320,12 +3320,12 @@ jr.isSideCarExport = !0;
3320
3320
  function Il(e, t) {
3321
3321
  return e.useMedium(t), jr;
3322
3322
  }
3323
- var Yr = Ml(), Sn = function() {
3324
- }, nn = d.forwardRef(function(e, t) {
3323
+ var Yr = Ml(), En = function() {
3324
+ }, rn = d.forwardRef(function(e, t) {
3325
3325
  var n = d.useRef(null), o = d.useState({
3326
- onScrollCapture: Sn,
3327
- onWheelCapture: Sn,
3328
- onTouchMoveCapture: Sn
3326
+ onScrollCapture: En,
3327
+ onWheelCapture: En,
3328
+ onTouchMoveCapture: En
3329
3329
  }), r = o[0], i = o[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, m = e.sideCar, g = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, b = e.gapMode, S = zr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A = Al([n, t]), E = Ee(Ee({}, S), r);
3330
3330
  return d.createElement(
3331
3331
  d.Fragment,
@@ -3334,14 +3334,14 @@ var Yr = Ml(), Sn = function() {
3334
3334
  a ? d.cloneElement(d.Children.only(s), Ee(Ee({}, E), { ref: A })) : d.createElement(C, Ee({}, E, { className: c, ref: A }), s)
3335
3335
  );
3336
3336
  });
3337
- nn.defaultProps = {
3337
+ rn.defaultProps = {
3338
3338
  enabled: !0,
3339
3339
  removeScrollBar: !0,
3340
3340
  inert: !1
3341
3341
  };
3342
- nn.classNames = {
3343
- fullWidth: $t,
3344
- zeroRight: Lt
3342
+ rn.classNames = {
3343
+ fullWidth: Bt,
3344
+ zeroRight: Vt
3345
3345
  };
3346
3346
  var Nl = function() {
3347
3347
  if (typeof __webpack_nonce__ < "u")
@@ -3392,11 +3392,11 @@ var kl = function() {
3392
3392
  top: 0,
3393
3393
  right: 0,
3394
3394
  gap: 0
3395
- }, xn = function(e) {
3395
+ }, Rn = function(e) {
3396
3396
  return parseInt(e || "", 10) || 0;
3397
3397
  }, $l = function(e) {
3398
3398
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
3399
- return [xn(n), xn(o), xn(r)];
3399
+ return [Rn(n), Rn(o), Rn(r)];
3400
3400
  }, Vl = function(e) {
3401
3401
  if (e === void 0 && (e = "margin"), typeof window > "u")
3402
3402
  return Ll;
@@ -3431,19 +3431,19 @@ var kl = function() {
3431
3431
  ].filter(Boolean).join(""), `
3432
3432
  }
3433
3433
 
3434
- .`).concat(Lt, ` {
3434
+ .`).concat(Vt, ` {
3435
3435
  right: `).concat(s, "px ").concat(o, `;
3436
3436
  }
3437
3437
 
3438
- .`).concat($t, ` {
3438
+ .`).concat(Bt, ` {
3439
3439
  margin-right: `).concat(s, "px ").concat(o, `;
3440
3440
  }
3441
3441
 
3442
- .`).concat(Lt, " .").concat(Lt, ` {
3442
+ .`).concat(Vt, " .").concat(Vt, ` {
3443
3443
  right: 0 `).concat(o, `;
3444
3444
  }
3445
3445
 
3446
- .`).concat($t, " .").concat($t, ` {
3446
+ .`).concat(Bt, " .").concat(Bt, ` {
3447
3447
  margin-right: 0 `).concat(o, `;
3448
3448
  }
3449
3449
 
@@ -3468,19 +3468,19 @@ var kl = function() {
3468
3468
  return Vl(r);
3469
3469
  }, [r]);
3470
3470
  return d.createElement(Bl, { styles: Wl(i, !t, r, n ? "" : "!important") });
3471
- }, _n = !1;
3471
+ }, Dn = !1;
3472
3472
  if (typeof window < "u")
3473
3473
  try {
3474
- var It = Object.defineProperty({}, "passive", {
3474
+ var _t = Object.defineProperty({}, "passive", {
3475
3475
  get: function() {
3476
- return _n = !0, !0;
3476
+ return Dn = !0, !0;
3477
3477
  }
3478
3478
  });
3479
- window.addEventListener("test", It, It), window.removeEventListener("test", It, It);
3479
+ window.addEventListener("test", _t, _t), window.removeEventListener("test", _t, _t);
3480
3480
  } catch {
3481
- _n = !1;
3481
+ Dn = !1;
3482
3482
  }
3483
- var Qe = _n ? { passive: !1 } : !1, Kl = function(e) {
3483
+ var Qe = Dn ? { passive: !1 } : !1, Kl = function(e) {
3484
3484
  return e.tagName === "TEXTAREA";
3485
3485
  }, Zr = function(e, t) {
3486
3486
  if (!(e instanceof Element))
@@ -3543,7 +3543,7 @@ var Qe = _n ? { passive: !1 } : !1, Kl = function(e) {
3543
3543
  c && (t.contains(s) || t === s)
3544
3544
  );
3545
3545
  return (f && Math.abs(u) < 1 || !f && Math.abs(m) < 1) && (l = !0), l;
3546
- }, Nt = function(e) {
3546
+ }, Ot = function(e) {
3547
3547
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3548
3548
  }, Yo = function(e) {
3549
3549
  return [e.deltaX, e.deltaY];
@@ -3577,7 +3577,7 @@ function eu(e) {
3577
3577
  var s = d.useCallback(function(h, v) {
3578
3578
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
3579
3579
  return !a.current.allowPinchZoom;
3580
- var y = Nt(h), C = n.current, b = "deltaX" in h ? h.deltaX : C[0] - y[0], S = "deltaY" in h ? h.deltaY : C[1] - y[1], R, A = h.target, E = Math.abs(b) > Math.abs(S) ? "h" : "v";
3580
+ var y = Ot(h), C = n.current, b = "deltaX" in h ? h.deltaX : C[0] - y[0], S = "deltaY" in h ? h.deltaY : C[1] - y[1], R, A = h.target, E = Math.abs(b) > Math.abs(S) ? "h" : "v";
3581
3581
  if ("touches" in h && E === "h" && A.type === "range")
3582
3582
  return !1;
3583
3583
  var x = window.getSelection(), M = x && x.anchorNode, T = M ? M === A || M.contains(A) : !1;
@@ -3595,7 +3595,7 @@ function eu(e) {
3595
3595
  }, []), c = d.useCallback(function(h) {
3596
3596
  var v = h;
3597
3597
  if (!(!et.length || et[et.length - 1] !== i)) {
3598
- var y = "deltaY" in v ? Yo(v) : Nt(v), C = t.current.filter(function(R) {
3598
+ var y = "deltaY" in v ? Yo(v) : Ot(v), C = t.current.filter(function(R) {
3599
3599
  return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && ql(R.delta, y);
3600
3600
  })[0];
3601
3601
  if (C && C.should) {
@@ -3617,11 +3617,11 @@ function eu(e) {
3617
3617
  });
3618
3618
  }, 1);
3619
3619
  }, []), f = d.useCallback(function(h) {
3620
- n.current = Nt(h), o.current = void 0;
3620
+ n.current = Ot(h), o.current = void 0;
3621
3621
  }, []), u = d.useCallback(function(h) {
3622
3622
  l(h.type, Yo(h), h.target, s(h, e.lockRef.current));
3623
3623
  }, []), m = d.useCallback(function(h) {
3624
- l(h.type, Nt(h), h.target, s(h, e.lockRef.current));
3624
+ l(h.type, Ot(h), h.target, s(h, e.lockRef.current));
3625
3625
  }, []);
3626
3626
  d.useEffect(function() {
3627
3627
  return et.push(i), e.setCallbacks({
@@ -3648,22 +3648,22 @@ function tu(e) {
3648
3648
  return t;
3649
3649
  }
3650
3650
  const nu = Il(Yr, eu);
3651
- var eo = d.forwardRef(function(e, t) {
3652
- return d.createElement(nn, Ee({}, e, { ref: t, sideCar: nu }));
3651
+ var no = d.forwardRef(function(e, t) {
3652
+ return d.createElement(rn, Ee({}, e, { ref: t, sideCar: nu }));
3653
3653
  });
3654
- eo.classNames = nn.classNames;
3655
- var On = ["Enter", " "], ou = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp", "PageDown", "End"], ru = [...ou, ...Qr], iu = {
3656
- ltr: [...On, "ArrowRight"],
3657
- rtl: [...On, "ArrowLeft"]
3654
+ no.classNames = rn.classNames;
3655
+ var kn = ["Enter", " "], ou = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp", "PageDown", "End"], ru = [...ou, ...Qr], iu = {
3656
+ ltr: [...kn, "ArrowRight"],
3657
+ rtl: [...kn, "ArrowLeft"]
3658
3658
  }, su = {
3659
3659
  ltr: ["ArrowLeft"],
3660
3660
  rtl: ["ArrowRight"]
3661
- }, St = "Menu", [wt, au, cu] = Un(St), [Ze, ei] = Xe(St, [
3661
+ }, Et = "Menu", [bt, au, cu] = Kn(Et), [Ze, ei] = Xe(Et, [
3662
3662
  cu,
3663
- en,
3664
- tn
3665
- ]), on = en(), ti = tn(), [lu, qe] = Ze(St), [uu, xt] = Ze(St), ni = (e) => {
3666
- const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = on(t), [c, l] = d.useState(null), f = d.useRef(!1), u = Me(i), m = Xt(r);
3663
+ nn,
3664
+ on
3665
+ ]), sn = nn(), ti = on(), [lu, qe] = Ze(Et), [uu, Rt] = Ze(Et), ni = (e) => {
3666
+ const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = sn(t), [c, l] = d.useState(null), f = d.useRef(!1), u = Me(i), m = qt(r);
3667
3667
  return d.useEffect(() => {
3668
3668
  const g = () => {
3669
3669
  f.current = !0, document.addEventListener("pointerdown", w, { capture: !0, once: !0 }), document.addEventListener("pointermove", w, { capture: !0, once: !0 });
@@ -3693,25 +3693,25 @@ var On = ["Enter", " "], ou = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
3693
3693
  }
3694
3694
  ) });
3695
3695
  };
3696
- ni.displayName = St;
3697
- var du = "MenuAnchor", to = d.forwardRef(
3696
+ ni.displayName = Et;
3697
+ var du = "MenuAnchor", oo = d.forwardRef(
3698
3698
  (e, t) => {
3699
- const { __scopeMenu: n, ...o } = e, r = on(n);
3699
+ const { __scopeMenu: n, ...o } = e, r = sn(n);
3700
3700
  return /* @__PURE__ */ p(Dr, { ...r, ...o, ref: t });
3701
3701
  }
3702
3702
  );
3703
- to.displayName = du;
3704
- var no = "MenuPortal", [fu, oi] = Ze(no, {
3703
+ oo.displayName = du;
3704
+ var ro = "MenuPortal", [fu, oi] = Ze(ro, {
3705
3705
  forceMount: void 0
3706
3706
  }), ri = (e) => {
3707
- const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = qe(no, t);
3708
- return /* @__PURE__ */ p(fu, { scope: t, forceMount: n, children: /* @__PURE__ */ p(st, { present: n || i.open, children: /* @__PURE__ */ p(Qn, { asChild: !0, container: r, children: o }) }) });
3707
+ const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = qe(ro, t);
3708
+ return /* @__PURE__ */ p(fu, { scope: t, forceMount: n, children: /* @__PURE__ */ p(st, { present: n || i.open, children: /* @__PURE__ */ p(to, { asChild: !0, container: r, children: o }) }) });
3709
3709
  };
3710
- ri.displayName = no;
3711
- var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3710
+ ri.displayName = ro;
3711
+ var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3712
3712
  (e, t) => {
3713
- const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = xt(ge, e.__scopeMenu);
3714
- return /* @__PURE__ */ p(wt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(wt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(mu, { ...r, ref: t }) : /* @__PURE__ */ p(hu, { ...r, ref: t }) }) }) });
3713
+ const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = Rt(ge, e.__scopeMenu);
3714
+ return /* @__PURE__ */ p(bt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(bt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(mu, { ...r, ref: t }) : /* @__PURE__ */ p(hu, { ...r, ref: t }) }) }) });
3715
3715
  }
3716
3716
  ), mu = d.forwardRef(
3717
3717
  (e, t) => {
@@ -3720,7 +3720,7 @@ var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3720
3720
  const i = o.current;
3721
3721
  if (i) return Gr(i);
3722
3722
  }, []), /* @__PURE__ */ p(
3723
- ro,
3723
+ so,
3724
3724
  {
3725
3725
  ...e,
3726
3726
  ref: r,
@@ -3739,7 +3739,7 @@ var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3739
3739
  ), hu = d.forwardRef((e, t) => {
3740
3740
  const n = qe(ge, e.__scopeMenu);
3741
3741
  return /* @__PURE__ */ p(
3742
- ro,
3742
+ so,
3743
3743
  {
3744
3744
  ...e,
3745
3745
  ref: t,
@@ -3749,7 +3749,7 @@ var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3749
3749
  onDismiss: () => n.onOpenChange(!1)
3750
3750
  }
3751
3751
  );
3752
- }), gu = /* @__PURE__ */ ht("MenuContent.ScrollLock"), ro = d.forwardRef(
3752
+ }), gu = /* @__PURE__ */ vt("MenuContent.ScrollLock"), so = d.forwardRef(
3753
3753
  (e, t) => {
3754
3754
  const {
3755
3755
  __scopeMenu: n,
@@ -3766,17 +3766,17 @@ var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3766
3766
  onDismiss: g,
3767
3767
  disableOutsideScroll: w,
3768
3768
  ...h
3769
- } = e, v = qe(ge, n), y = xt(ge, n), C = on(n), b = ti(n), S = au(n), [R, A] = d.useState(null), E = d.useRef(null), x = Z(t, E, v.onContentChange), M = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), K = w ? eo : d.Fragment, O = w ? { as: gu, allowPinchZoom: !0 } : void 0, B = (P) => {
3769
+ } = e, v = qe(ge, n), y = Rt(ge, n), C = sn(n), b = ti(n), S = au(n), [R, A] = d.useState(null), E = d.useRef(null), x = Z(t, E, v.onContentChange), M = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), K = w ? no : d.Fragment, O = w ? { as: gu, allowPinchZoom: !0 } : void 0, B = (P) => {
3770
3770
  var I, W;
3771
- const j = T.current + P, q = S().filter((G) => !G.disabled), ne = document.activeElement, ve = (I = q.find((G) => G.ref.current === ne)) == null ? void 0 : I.textValue, ue = q.map((G) => G.textValue), we = Tu(ue, j, ve), re = (W = q.find((G) => G.textValue === we)) == null ? void 0 : W.ref.current;
3771
+ const j = T.current + P, J = S().filter((G) => !G.disabled), ne = document.activeElement, ve = (I = J.find((G) => G.ref.current === ne)) == null ? void 0 : I.textValue, ue = J.map((G) => G.textValue), we = Tu(ue, j, ve), re = (W = J.find((G) => G.textValue === we)) == null ? void 0 : W.ref.current;
3772
3772
  (function G(H) {
3773
3773
  T.current = H, window.clearTimeout(M.current), H !== "" && (M.current = window.setTimeout(() => G(""), 1e3));
3774
3774
  })(j), re && setTimeout(() => re.focus());
3775
3775
  };
3776
3776
  d.useEffect(() => () => window.clearTimeout(M.current), []), ur();
3777
3777
  const _ = d.useCallback((P) => {
3778
- var q, ne;
3779
- return $.current === ((q = L.current) == null ? void 0 : q.side) && Iu(P, (ne = L.current) == null ? void 0 : ne.area);
3778
+ var J, ne;
3779
+ return $.current === ((J = L.current) == null ? void 0 : J.side) && Iu(P, (ne = L.current) == null ? void 0 : ne.area);
3780
3780
  }, []);
3781
3781
  return /* @__PURE__ */ p(
3782
3782
  pu,
@@ -3807,7 +3807,7 @@ var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3807
3807
  L.current = P;
3808
3808
  }, []),
3809
3809
  children: /* @__PURE__ */ p(K, { ...O, children: /* @__PURE__ */ p(
3810
- Kn,
3810
+ zn,
3811
3811
  {
3812
3812
  asChild: !0,
3813
3813
  trapped: r,
@@ -3817,7 +3817,7 @@ var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3817
3817
  }),
3818
3818
  onUnmountAutoFocus: a,
3819
3819
  children: /* @__PURE__ */ p(
3820
- Hn,
3820
+ Gn,
3821
3821
  {
3822
3822
  asChild: !0,
3823
3823
  disableOutsidePointerEvents: s,
@@ -3853,8 +3853,8 @@ var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3853
3853
  ref: x,
3854
3854
  style: { outline: "none", ...h.style },
3855
3855
  onKeyDown: N(h.onKeyDown, (P) => {
3856
- const q = P.target.closest("[data-radix-menu-content]") === P.currentTarget, ne = P.ctrlKey || P.altKey || P.metaKey, ve = P.key.length === 1;
3857
- q && (P.key === "Tab" && P.preventDefault(), !ne && ve && B(P.key));
3856
+ const J = P.target.closest("[data-radix-menu-content]") === P.currentTarget, ne = P.ctrlKey || P.altKey || P.metaKey, ve = P.key.length === 1;
3857
+ J && (P.key === "Tab" && P.preventDefault(), !ne && ve && B(P.key));
3858
3858
  const ue = E.current;
3859
3859
  if (P.target !== ue || !ru.includes(P.key)) return;
3860
3860
  P.preventDefault();
@@ -3866,9 +3866,9 @@ var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3866
3866
  }),
3867
3867
  onPointerMove: N(
3868
3868
  e.onPointerMove,
3869
- yt((P) => {
3870
- const j = P.target, q = F.current !== P.clientX;
3871
- if (P.currentTarget.contains(j) && q) {
3869
+ Ct((P) => {
3870
+ const j = P.target, J = F.current !== P.clientX;
3871
+ if (P.currentTarget.contains(j) && J) {
3872
3872
  const ne = P.clientX > F.current ? "right" : "left";
3873
3873
  $.current = ne, F.current = P.clientX;
3874
3874
  }
@@ -3887,13 +3887,13 @@ var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
3887
3887
  }
3888
3888
  );
3889
3889
  ii.displayName = ge;
3890
- var vu = "MenuGroup", io = d.forwardRef(
3890
+ var vu = "MenuGroup", ao = d.forwardRef(
3891
3891
  (e, t) => {
3892
3892
  const { __scopeMenu: n, ...o } = e;
3893
3893
  return /* @__PURE__ */ p(U.div, { role: "group", ...o, ref: t });
3894
3894
  }
3895
3895
  );
3896
- io.displayName = vu;
3896
+ ao.displayName = vu;
3897
3897
  var wu = "MenuLabel", si = d.forwardRef(
3898
3898
  (e, t) => {
3899
3899
  const { __scopeMenu: n, ...o } = e;
@@ -3901,9 +3901,9 @@ var wu = "MenuLabel", si = d.forwardRef(
3901
3901
  }
3902
3902
  );
3903
3903
  si.displayName = wu;
3904
- var Ht = "MenuItem", Zo = "menu.itemSelect", rn = d.forwardRef(
3904
+ var Gt = "MenuItem", Zo = "menu.itemSelect", an = d.forwardRef(
3905
3905
  (e, t) => {
3906
- const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), a = xt(Ht, e.__scopeMenu), s = oo(Ht, e.__scopeMenu), c = Z(t, i), l = d.useRef(!1), f = () => {
3906
+ const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), a = Rt(Gt, e.__scopeMenu), s = io(Gt, e.__scopeMenu), c = Z(t, i), l = d.useRef(!1), f = () => {
3907
3907
  const u = i.current;
3908
3908
  if (!n && u) {
3909
3909
  const m = new CustomEvent(Zo, { bubbles: !0, cancelable: !0 });
@@ -3927,21 +3927,21 @@ var Ht = "MenuItem", Zo = "menu.itemSelect", rn = d.forwardRef(
3927
3927
  }),
3928
3928
  onKeyDown: N(e.onKeyDown, (u) => {
3929
3929
  const m = s.searchRef.current !== "";
3930
- n || m && u.key === " " || On.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
3930
+ n || m && u.key === " " || kn.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
3931
3931
  })
3932
3932
  }
3933
3933
  );
3934
3934
  }
3935
3935
  );
3936
- rn.displayName = Ht;
3936
+ an.displayName = Gt;
3937
3937
  var ai = d.forwardRef(
3938
3938
  (e, t) => {
3939
- const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = oo(Ht, n), s = ti(n), c = d.useRef(null), l = Z(t, c), [f, u] = d.useState(!1), [m, g] = d.useState("");
3939
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = io(Gt, n), s = ti(n), c = d.useRef(null), l = Z(t, c), [f, u] = d.useState(!1), [m, g] = d.useState("");
3940
3940
  return d.useEffect(() => {
3941
3941
  const w = c.current;
3942
3942
  w && g((w.textContent ?? "").trim());
3943
3943
  }, [i.children]), /* @__PURE__ */ p(
3944
- wt.ItemSlot,
3944
+ bt.ItemSlot,
3945
3945
  {
3946
3946
  scope: n,
3947
3947
  disabled: o,
@@ -3957,13 +3957,13 @@ var ai = d.forwardRef(
3957
3957
  ref: l,
3958
3958
  onPointerMove: N(
3959
3959
  e.onPointerMove,
3960
- yt((w) => {
3960
+ Ct((w) => {
3961
3961
  o ? a.onItemLeave(w) : (a.onItemEnter(w), w.defaultPrevented || w.currentTarget.focus({ preventScroll: !0 }));
3962
3962
  })
3963
3963
  ),
3964
3964
  onPointerLeave: N(
3965
3965
  e.onPointerLeave,
3966
- yt((w) => a.onItemLeave(w))
3966
+ Ct((w) => a.onItemLeave(w))
3967
3967
  ),
3968
3968
  onFocus: N(e.onFocus, () => u(!0)),
3969
3969
  onBlur: N(e.onBlur, () => u(!1))
@@ -3976,16 +3976,16 @@ var ai = d.forwardRef(
3976
3976
  (e, t) => {
3977
3977
  const { checked: n = !1, onCheckedChange: o, ...r } = e;
3978
3978
  return /* @__PURE__ */ p(pi, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
3979
- rn,
3979
+ an,
3980
3980
  {
3981
3981
  role: "menuitemcheckbox",
3982
- "aria-checked": Kt(n) ? "mixed" : n,
3982
+ "aria-checked": zt(n) ? "mixed" : n,
3983
3983
  ...r,
3984
3984
  ref: t,
3985
- "data-state": ao(n),
3985
+ "data-state": lo(n),
3986
3986
  onSelect: N(
3987
3987
  r.onSelect,
3988
- () => o == null ? void 0 : o(Kt(n) ? !0 : !n),
3988
+ () => o == null ? void 0 : o(zt(n) ? !0 : !n),
3989
3989
  { checkForDefaultPrevented: !1 }
3990
3990
  )
3991
3991
  }
@@ -4000,7 +4000,7 @@ var li = "MenuRadioGroup", [bu, Cu] = Ze(
4000
4000
  ), ui = d.forwardRef(
4001
4001
  (e, t) => {
4002
4002
  const { value: n, onValueChange: o, ...r } = e, i = Me(o);
4003
- return /* @__PURE__ */ p(bu, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(io, { ...r, ref: t }) });
4003
+ return /* @__PURE__ */ p(bu, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(ao, { ...r, ref: t }) });
4004
4004
  }
4005
4005
  );
4006
4006
  ui.displayName = li;
@@ -4008,13 +4008,13 @@ var di = "MenuRadioItem", fi = d.forwardRef(
4008
4008
  (e, t) => {
4009
4009
  const { value: n, ...o } = e, r = Cu(di, e.__scopeMenu), i = n === r.value;
4010
4010
  return /* @__PURE__ */ p(pi, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
4011
- rn,
4011
+ an,
4012
4012
  {
4013
4013
  role: "menuitemradio",
4014
4014
  "aria-checked": i,
4015
4015
  ...o,
4016
4016
  ref: t,
4017
- "data-state": ao(i),
4017
+ "data-state": lo(i),
4018
4018
  onSelect: N(
4019
4019
  o.onSelect,
4020
4020
  () => {
@@ -4028,29 +4028,29 @@ var di = "MenuRadioItem", fi = d.forwardRef(
4028
4028
  }
4029
4029
  );
4030
4030
  fi.displayName = di;
4031
- var so = "MenuItemIndicator", [pi, Su] = Ze(
4032
- so,
4031
+ var co = "MenuItemIndicator", [pi, Su] = Ze(
4032
+ co,
4033
4033
  { checked: !1 }
4034
4034
  ), mi = d.forwardRef(
4035
4035
  (e, t) => {
4036
- const { __scopeMenu: n, forceMount: o, ...r } = e, i = Su(so, n);
4036
+ const { __scopeMenu: n, forceMount: o, ...r } = e, i = Su(co, n);
4037
4037
  return /* @__PURE__ */ p(
4038
4038
  st,
4039
4039
  {
4040
- present: o || Kt(i.checked) || i.checked === !0,
4040
+ present: o || zt(i.checked) || i.checked === !0,
4041
4041
  children: /* @__PURE__ */ p(
4042
4042
  U.span,
4043
4043
  {
4044
4044
  ...r,
4045
4045
  ref: t,
4046
- "data-state": ao(i.checked)
4046
+ "data-state": lo(i.checked)
4047
4047
  }
4048
4048
  )
4049
4049
  }
4050
4050
  );
4051
4051
  }
4052
4052
  );
4053
- mi.displayName = so;
4053
+ mi.displayName = co;
4054
4054
  var xu = "MenuSeparator", hi = d.forwardRef(
4055
4055
  (e, t) => {
4056
4056
  const { __scopeMenu: n, ...o } = e;
@@ -4068,14 +4068,14 @@ var xu = "MenuSeparator", hi = d.forwardRef(
4068
4068
  hi.displayName = xu;
4069
4069
  var Eu = "MenuArrow", gi = d.forwardRef(
4070
4070
  (e, t) => {
4071
- const { __scopeMenu: n, ...o } = e, r = on(n);
4071
+ const { __scopeMenu: n, ...o } = e, r = sn(n);
4072
4072
  return /* @__PURE__ */ p(Fr, { ...r, ...o, ref: t });
4073
4073
  }
4074
4074
  );
4075
4075
  gi.displayName = Eu;
4076
- var Ru = "MenuSub", [Zf, vi] = Ze(Ru), dt = "MenuSubTrigger", wi = d.forwardRef(
4076
+ var Ru = "MenuSub", [Zf, vi] = Ze(Ru), pt = "MenuSubTrigger", wi = d.forwardRef(
4077
4077
  (e, t) => {
4078
- const n = qe(dt, e.__scopeMenu), o = xt(dt, e.__scopeMenu), r = vi(dt, e.__scopeMenu), i = oo(dt, e.__scopeMenu), a = d.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, l = { __scopeMenu: e.__scopeMenu }, f = d.useCallback(() => {
4078
+ const n = qe(pt, e.__scopeMenu), o = Rt(pt, e.__scopeMenu), r = vi(pt, e.__scopeMenu), i = io(pt, e.__scopeMenu), a = d.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, l = { __scopeMenu: e.__scopeMenu }, f = d.useCallback(() => {
4079
4079
  a.current && window.clearTimeout(a.current), a.current = null;
4080
4080
  }, []);
4081
4081
  return d.useEffect(() => f, [f]), d.useEffect(() => {
@@ -4083,7 +4083,7 @@ var Ru = "MenuSub", [Zf, vi] = Ze(Ru), dt = "MenuSubTrigger", wi = d.forwardRef(
4083
4083
  return () => {
4084
4084
  window.clearTimeout(u), c(null);
4085
4085
  };
4086
- }, [s, c]), /* @__PURE__ */ p(to, { asChild: !0, ...l, children: /* @__PURE__ */ p(
4086
+ }, [s, c]), /* @__PURE__ */ p(oo, { asChild: !0, ...l, children: /* @__PURE__ */ p(
4087
4087
  ai,
4088
4088
  {
4089
4089
  id: r.triggerId,
@@ -4092,14 +4092,14 @@ var Ru = "MenuSub", [Zf, vi] = Ze(Ru), dt = "MenuSubTrigger", wi = d.forwardRef(
4092
4092
  "aria-controls": r.contentId,
4093
4093
  "data-state": Ci(n.open),
4094
4094
  ...e,
4095
- ref: Yt(t, r.onTriggerChange),
4095
+ ref: Zt(t, r.onTriggerChange),
4096
4096
  onClick: (u) => {
4097
4097
  var m;
4098
4098
  (m = e.onClick) == null || m.call(e, u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), n.open || n.onOpenChange(!0));
4099
4099
  },
4100
4100
  onPointerMove: N(
4101
4101
  e.onPointerMove,
4102
- yt((u) => {
4102
+ Ct((u) => {
4103
4103
  i.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !a.current && (i.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => {
4104
4104
  n.onOpenChange(!0), f();
4105
4105
  }, 100));
@@ -4107,7 +4107,7 @@ var Ru = "MenuSub", [Zf, vi] = Ze(Ru), dt = "MenuSubTrigger", wi = d.forwardRef(
4107
4107
  ),
4108
4108
  onPointerLeave: N(
4109
4109
  e.onPointerLeave,
4110
- yt((u) => {
4110
+ Ct((u) => {
4111
4111
  var g, w;
4112
4112
  f();
4113
4113
  const m = (g = n.content) == null ? void 0 : g.getBoundingClientRect();
@@ -4143,12 +4143,12 @@ var Ru = "MenuSub", [Zf, vi] = Ze(Ru), dt = "MenuSubTrigger", wi = d.forwardRef(
4143
4143
  ) });
4144
4144
  }
4145
4145
  );
4146
- wi.displayName = dt;
4146
+ wi.displayName = pt;
4147
4147
  var yi = "MenuSubContent", bi = d.forwardRef(
4148
4148
  (e, t) => {
4149
- const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = xt(ge, e.__scopeMenu), s = vi(yi, e.__scopeMenu), c = d.useRef(null), l = Z(t, c);
4150
- return /* @__PURE__ */ p(wt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(wt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(
4151
- ro,
4149
+ const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = Rt(ge, e.__scopeMenu), s = vi(yi, e.__scopeMenu), c = d.useRef(null), l = Z(t, c);
4150
+ return /* @__PURE__ */ p(bt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(bt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(
4151
+ so,
4152
4152
  {
4153
4153
  id: s.contentId,
4154
4154
  "aria-labelledby": s.triggerId,
@@ -4183,11 +4183,11 @@ bi.displayName = yi;
4183
4183
  function Ci(e) {
4184
4184
  return e ? "open" : "closed";
4185
4185
  }
4186
- function Kt(e) {
4186
+ function zt(e) {
4187
4187
  return e === "indeterminate";
4188
4188
  }
4189
- function ao(e) {
4190
- return Kt(e) ? "indeterminate" : e ? "checked" : "unchecked";
4189
+ function lo(e) {
4190
+ return zt(e) ? "indeterminate" : e ? "checked" : "unchecked";
4191
4191
  }
4192
4192
  function Au(e) {
4193
4193
  const t = document.activeElement;
@@ -4220,13 +4220,13 @@ function Iu(e, t) {
4220
4220
  const n = { x: e.clientX, y: e.clientY };
4221
4221
  return Mu(n, t);
4222
4222
  }
4223
- function yt(e) {
4223
+ function Ct(e) {
4224
4224
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
4225
4225
  }
4226
- var Nu = ni, _u = to, Ou = ri, Du = ii, ku = io, Fu = si, Lu = rn, $u = ci, Vu = ui, Bu = fi, Wu = mi, Uu = hi, Hu = gi, Ku = wi, Gu = bi, sn = "DropdownMenu", [zu] = Xe(
4227
- sn,
4226
+ var Nu = ni, _u = oo, Ou = ri, Du = ii, ku = ao, Fu = si, Lu = an, $u = ci, Vu = ui, Bu = fi, Wu = mi, Uu = hi, Hu = gi, Ku = wi, Gu = bi, cn = "DropdownMenu", [zu] = Xe(
4227
+ cn,
4228
4228
  [ei]
4229
- ), le = ei(), [ju, Si] = zu(sn), xi = (e) => {
4229
+ ), le = ei(), [ju, Si] = zu(cn), xi = (e) => {
4230
4230
  const {
4231
4231
  __scopeDropdownMenu: t,
4232
4232
  children: n,
@@ -4235,11 +4235,11 @@ var Nu = ni, _u = to, Ou = ri, Du = ii, ku = io, Fu = si, Lu = rn, $u = ci, Vu =
4235
4235
  defaultOpen: i,
4236
4236
  onOpenChange: a,
4237
4237
  modal: s = !0
4238
- } = e, c = le(t), l = d.useRef(null), [f, u] = mt({
4238
+ } = e, c = le(t), l = d.useRef(null), [f, u] = gt({
4239
4239
  prop: r,
4240
4240
  defaultProp: i ?? !1,
4241
4241
  onChange: a,
4242
- caller: sn
4242
+ caller: cn
4243
4243
  });
4244
4244
  return /* @__PURE__ */ p(
4245
4245
  ju,
@@ -4256,7 +4256,7 @@ var Nu = ni, _u = to, Ou = ri, Du = ii, ku = io, Fu = si, Lu = rn, $u = ci, Vu =
4256
4256
  }
4257
4257
  );
4258
4258
  };
4259
- xi.displayName = sn;
4259
+ xi.displayName = cn;
4260
4260
  var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
4261
4261
  (e, t) => {
4262
4262
  const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = Si(Ei, n), a = le(n);
@@ -4272,7 +4272,7 @@ var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
4272
4272
  "data-disabled": o ? "" : void 0,
4273
4273
  disabled: o,
4274
4274
  ...r,
4275
- ref: Yt(t, i.triggerRef),
4275
+ ref: Zt(t, i.triggerRef),
4276
4276
  onPointerDown: N(e.onPointerDown, (s) => {
4277
4277
  !o && s.button === 0 && s.ctrlKey === !1 && (i.onOpenToggle(), i.open || s.preventDefault());
4278
4278
  }),
@@ -4479,25 +4479,25 @@ const Td = (e) => {
4479
4479
  "dataTable.searchEmpty": "No results found",
4480
4480
  "dataTable.selectFilter": "Select..."
4481
4481
  };
4482
- let Dn = null;
4482
+ let Fn = null;
4483
4483
  const Id = (e) => {
4484
- if (Dn) {
4485
- const t = Dn(e);
4484
+ if (Fn) {
4485
+ const t = Fn(e);
4486
4486
  if (t !== e)
4487
4487
  return t;
4488
4488
  }
4489
4489
  return Di[e] ?? e;
4490
4490
  }, Nd = (e) => {
4491
- Dn = e;
4491
+ Fn = e;
4492
4492
  }, at = () => Id, _d = (e) => {
4493
4493
  Object.assign(Di, e);
4494
4494
  };
4495
- let kn = !1;
4495
+ let Ln = !1;
4496
4496
  const qf = (e) => {
4497
- kn || (Nd(e.translate), e.translations && _d(e.translations), Td(e.LinkComponent), kn = !0);
4498
- }, Jf = () => kn;
4497
+ Ln || (Nd(e.translate), e.translations && _d(e.translations), Td(e.LinkComponent), Ln = !0);
4498
+ }, Jf = () => Ln;
4499
4499
  function Od({ table: e }) {
4500
- const t = at(), n = Rn(la()), o = Ce(() => e.getAllColumns().filter((s) => {
4500
+ const t = at(), n = Pn(la()), o = Ce(() => e.getAllColumns().filter((s) => {
4501
4501
  const c = s.columnDef.header;
4502
4502
  return !(!c || typeof c == "string" && c.trim() === "" || s.columnDef.enableHiding === !1);
4503
4503
  }), [e]), r = () => {
@@ -4507,7 +4507,7 @@ function Od({ table: e }) {
4507
4507
  s.toggleVisibility(l);
4508
4508
  });
4509
4509
  };
4510
- pt(() => {
4510
+ ht(() => {
4511
4511
  const s = aa(n.current);
4512
4512
  let c = !1;
4513
4513
  s ? (Object.entries(s).forEach(([l, f]) => {
@@ -4593,10 +4593,10 @@ var ki = Object.freeze({
4593
4593
  )
4594
4594
  );
4595
4595
  Ld.displayName = Fd;
4596
- var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Select", [an, cn, Bd] = Un(je), [ct] = Xe(je, [
4596
+ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Select", [ln, un, Bd] = Kn(je), [ct] = Xe(je, [
4597
4597
  Bd,
4598
- en
4599
- ]), ln = en(), [Wd, $e] = ct(je), [Ud, Hd] = ct(je), Fi = (e) => {
4598
+ nn
4599
+ ]), dn = nn(), [Wd, $e] = ct(je), [Ud, Hd] = ct(je), Fi = (e) => {
4600
4600
  const {
4601
4601
  __scopeSelect: t,
4602
4602
  children: n,
@@ -4612,12 +4612,12 @@ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Sele
4612
4612
  disabled: m,
4613
4613
  required: g,
4614
4614
  form: w
4615
- } = e, h = ln(t), [v, y] = d.useState(null), [C, b] = d.useState(null), [S, R] = d.useState(!1), A = Xt(l), [E, x] = mt({
4615
+ } = e, h = dn(t), [v, y] = d.useState(null), [C, b] = d.useState(null), [S, R] = d.useState(!1), A = qt(l), [E, x] = gt({
4616
4616
  prop: o,
4617
4617
  defaultProp: r ?? !1,
4618
4618
  onChange: i,
4619
4619
  caller: je
4620
- }), [M, T] = mt({
4620
+ }), [M, T] = gt({
4621
4621
  prop: a,
4622
4622
  defaultProp: s,
4623
4623
  onChange: c,
@@ -4643,7 +4643,7 @@ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Sele
4643
4643
  triggerPointerDownPosRef: D,
4644
4644
  disabled: m,
4645
4645
  children: [
4646
- /* @__PURE__ */ p(an.Provider, { scope: t, children: /* @__PURE__ */ p(
4646
+ /* @__PURE__ */ p(ln.Provider, { scope: t, children: /* @__PURE__ */ p(
4647
4647
  Ud,
4648
4648
  {
4649
4649
  scope: e.__scopeSelect,
@@ -4685,7 +4685,7 @@ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Sele
4685
4685
  Fi.displayName = je;
4686
4686
  var Li = "SelectTrigger", $i = d.forwardRef(
4687
4687
  (e, t) => {
4688
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = ln(n), a = $e(Li, n), s = a.disabled || o, c = Z(t, a.onTriggerChange), l = cn(n), f = d.useRef("touch"), [u, m, g] = rs((h) => {
4688
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = dn(n), a = $e(Li, n), s = a.disabled || o, c = Z(t, a.onTriggerChange), l = un(n), f = d.useRef("touch"), [u, m, g] = rs((h) => {
4689
4689
  const v = l().filter((b) => !b.disabled), y = v.find((b) => b.value === a.value), C = is(v, h, y);
4690
4690
  C !== void 0 && a.onValueChange(C.value);
4691
4691
  }), w = (h) => {
@@ -4738,7 +4738,7 @@ var Vi = "SelectValue", Bi = d.forwardRef(
4738
4738
  ...s,
4739
4739
  ref: u,
4740
4740
  style: { pointerEvents: "none" },
4741
- children: os(c.value) ? /* @__PURE__ */ p(zt, { children: a }) : i
4741
+ children: os(c.value) ? /* @__PURE__ */ p(Yt, { children: a }) : i
4742
4742
  }
4743
4743
  );
4744
4744
  }
@@ -4751,7 +4751,7 @@ var Kd = "SelectIcon", Wi = d.forwardRef(
4751
4751
  }
4752
4752
  );
4753
4753
  Wi.displayName = Kd;
4754
- var Gd = "SelectPortal", Ui = (e) => /* @__PURE__ */ p(Qn, { asChild: !0, ...e });
4754
+ var Gd = "SelectPortal", Ui = (e) => /* @__PURE__ */ p(to, { asChild: !0, ...e });
4755
4755
  Ui.displayName = Gd;
4756
4756
  var Ye = "SelectContent", Hi = d.forwardRef(
4757
4757
  (e, t) => {
@@ -4760,8 +4760,8 @@ var Ye = "SelectContent", Hi = d.forwardRef(
4760
4760
  r(new DocumentFragment());
4761
4761
  }, []), !n.open) {
4762
4762
  const i = o;
4763
- return i ? jt.createPortal(
4764
- /* @__PURE__ */ p(Ki, { scope: e.__scopeSelect, children: /* @__PURE__ */ p(an.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p("div", { children: e.children }) }) }),
4763
+ return i ? Xt.createPortal(
4764
+ /* @__PURE__ */ p(Ki, { scope: e.__scopeSelect, children: /* @__PURE__ */ p(ln.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p("div", { children: e.children }) }) }),
4765
4765
  i
4766
4766
  ) : null;
4767
4767
  }
@@ -4769,7 +4769,7 @@ var Ye = "SelectContent", Hi = d.forwardRef(
4769
4769
  }
4770
4770
  );
4771
4771
  Hi.displayName = Ye;
4772
- var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ ht("SelectContent.RemoveScroll"), Gi = d.forwardRef(
4772
+ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), Gi = d.forwardRef(
4773
4773
  (e, t) => {
4774
4774
  const {
4775
4775
  __scopeSelect: n,
@@ -4793,7 +4793,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ h
4793
4793
  ...y
4794
4794
  } = e, C = $e(Ye, n), [b, S] = d.useState(null), [R, A] = d.useState(null), E = Z(t, (I) => S(I)), [x, M] = d.useState(null), [T, D] = d.useState(
4795
4795
  null
4796
- ), L = cn(n), [$, F] = d.useState(!1), K = d.useRef(!1);
4796
+ ), L = un(n), [$, F] = d.useState(!1), K = d.useRef(!1);
4797
4797
  d.useEffect(() => {
4798
4798
  if (b) return Gr(b);
4799
4799
  }, [b]), ur();
@@ -4834,7 +4834,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ h
4834
4834
  window.removeEventListener("blur", I), window.removeEventListener("resize", I);
4835
4835
  };
4836
4836
  }, [_]);
4837
- const [j, q] = rs((I) => {
4837
+ const [j, J] = rs((I) => {
4838
4838
  const W = L().filter((V) => !V.disabled), G = W.find((V) => V.ref.current === document.activeElement), H = is(W, I, G);
4839
4839
  H && setTimeout(() => H.ref.current.focus());
4840
4840
  }), ne = d.useCallback(
@@ -4849,7 +4849,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ h
4849
4849
  (C.value !== void 0 && C.value === W || H) && D(I);
4850
4850
  },
4851
4851
  [C.value]
4852
- ), we = o === "popper" ? Fn : zi, re = we === Fn ? {
4852
+ ), we = o === "popper" ? $n : zi, re = we === $n ? {
4853
4853
  side: s,
4854
4854
  sideOffset: c,
4855
4855
  align: l,
@@ -4877,8 +4877,8 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ h
4877
4877
  position: o,
4878
4878
  isPositioned: $,
4879
4879
  searchRef: j,
4880
- children: /* @__PURE__ */ p(eo, { as: jd, allowPinchZoom: !0, children: /* @__PURE__ */ p(
4881
- Kn,
4880
+ children: /* @__PURE__ */ p(no, { as: jd, allowPinchZoom: !0, children: /* @__PURE__ */ p(
4881
+ zn,
4882
4882
  {
4883
4883
  asChild: !0,
4884
4884
  trapped: C.open,
@@ -4890,7 +4890,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ h
4890
4890
  (W = C.trigger) == null || W.focus({ preventScroll: !0 }), I.preventDefault();
4891
4891
  }),
4892
4892
  children: /* @__PURE__ */ p(
4893
- Hn,
4893
+ Gn,
4894
4894
  {
4895
4895
  asChild: !0,
4896
4896
  disableOutsidePointerEvents: !0,
@@ -4920,7 +4920,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ h
4920
4920
  },
4921
4921
  onKeyDown: N(y.onKeyDown, (I) => {
4922
4922
  const W = I.ctrlKey || I.altKey || I.metaKey;
4923
- if (I.key === "Tab" && I.preventDefault(), !W && I.key.length === 1 && q(I.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(I.key)) {
4923
+ if (I.key === "Tab" && I.preventDefault(), !W && I.key.length === 1 && J(I.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(I.key)) {
4924
4924
  let H = L().filter((V) => !V.disabled).map((V) => V.ref.current);
4925
4925
  if (["ArrowUp", "End"].includes(I.key) && (H = H.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(I.key)) {
4926
4926
  const V = I.target, z = H.indexOf(V);
@@ -4941,7 +4941,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ h
4941
4941
  );
4942
4942
  Gi.displayName = zd;
4943
4943
  var Yd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
4944
- const { __scopeSelect: n, onPlaced: o, ...r } = e, i = $e(Ye, n), a = Ve(Ye, n), [s, c] = d.useState(null), [l, f] = d.useState(null), u = Z(t, (E) => f(E)), m = cn(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: C } = a, b = d.useCallback(() => {
4944
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, i = $e(Ye, n), a = Ve(Ye, n), [s, c] = d.useState(null), [l, f] = d.useState(null), u = Z(t, (E) => f(E)), m = un(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: C } = a, b = d.useCallback(() => {
4945
4945
  if (i.trigger && i.valueNode && s && l && h && v && y) {
4946
4946
  const E = i.trigger.getBoundingClientRect(), x = l.getBoundingClientRect(), M = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
4947
4947
  if (i.dir !== "rtl") {
@@ -4962,7 +4962,7 @@ var Yd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
4962
4962
  ]);
4963
4963
  s.style.minWidth = me + "px", s.style.right = Ue + "px";
4964
4964
  }
4965
- const D = m(), L = window.innerHeight - ye * 2, $ = h.scrollHeight, F = window.getComputedStyle(l), K = parseInt(F.borderTopWidth, 10), O = parseInt(F.paddingTop, 10), B = parseInt(F.borderBottomWidth, 10), _ = parseInt(F.paddingBottom, 10), P = K + O + $ + _ + B, j = Math.min(v.offsetHeight * 5, P), q = window.getComputedStyle(h), ne = parseInt(q.paddingTop, 10), ve = parseInt(q.paddingBottom, 10), ue = E.top + E.height / 2 - ye, we = L - ue, re = v.offsetHeight / 2, I = v.offsetTop + re, W = K + O + I, G = P - W;
4965
+ const D = m(), L = window.innerHeight - ye * 2, $ = h.scrollHeight, F = window.getComputedStyle(l), K = parseInt(F.borderTopWidth, 10), O = parseInt(F.paddingTop, 10), B = parseInt(F.borderBottomWidth, 10), _ = parseInt(F.paddingBottom, 10), P = K + O + $ + _ + B, j = Math.min(v.offsetHeight * 5, P), J = window.getComputedStyle(h), ne = parseInt(J.paddingTop, 10), ve = parseInt(J.paddingBottom, 10), ue = E.top + E.height / 2 - ye, we = L - ue, re = v.offsetHeight / 2, I = v.offsetTop + re, W = K + O + I, G = P - W;
4966
4966
  if (W <= ue) {
4967
4967
  const V = D.length > 0 && v === D[D.length - 1].ref.current;
4968
4968
  s.style.bottom = "0px";
@@ -5045,13 +5045,13 @@ var Yd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
5045
5045
  );
5046
5046
  });
5047
5047
  zi.displayName = Yd;
5048
- var Xd = "SelectPopperPosition", Fn = d.forwardRef((e, t) => {
5048
+ var Xd = "SelectPopperPosition", $n = d.forwardRef((e, t) => {
5049
5049
  const {
5050
5050
  __scopeSelect: n,
5051
5051
  align: o = "start",
5052
5052
  collisionPadding: r = ye,
5053
5053
  ...i
5054
- } = e, a = ln(n);
5054
+ } = e, a = dn(n);
5055
5055
  return /* @__PURE__ */ p(
5056
5056
  kr,
5057
5057
  {
@@ -5073,11 +5073,11 @@ var Xd = "SelectPopperPosition", Fn = d.forwardRef((e, t) => {
5073
5073
  }
5074
5074
  );
5075
5075
  });
5076
- Fn.displayName = Xd;
5077
- var [Zd, co] = ct(Ye, {}), Ln = "SelectViewport", ji = d.forwardRef(
5076
+ $n.displayName = Xd;
5077
+ var [Zd, uo] = ct(Ye, {}), Vn = "SelectViewport", ji = d.forwardRef(
5078
5078
  (e, t) => {
5079
- const { __scopeSelect: n, nonce: o, ...r } = e, i = Ve(Ln, n), a = co(Ln, n), s = Z(t, i.onViewportChange), c = d.useRef(0);
5080
- return /* @__PURE__ */ k(zt, { children: [
5079
+ const { __scopeSelect: n, nonce: o, ...r } = e, i = Ve(Vn, n), a = uo(Vn, n), s = Z(t, i.onViewportChange), c = d.useRef(0);
5080
+ return /* @__PURE__ */ k(Yt, { children: [
5081
5081
  /* @__PURE__ */ p(
5082
5082
  "style",
5083
5083
  {
@@ -5087,7 +5087,7 @@ var [Zd, co] = ct(Ye, {}), Ln = "SelectViewport", ji = d.forwardRef(
5087
5087
  nonce: o
5088
5088
  }
5089
5089
  ),
5090
- /* @__PURE__ */ p(an.Slot, { scope: n, children: /* @__PURE__ */ p(
5090
+ /* @__PURE__ */ p(ln.Slot, { scope: n, children: /* @__PURE__ */ p(
5091
5091
  U.div,
5092
5092
  {
5093
5093
  "data-radix-select-viewport": "",
@@ -5126,7 +5126,7 @@ var [Zd, co] = ct(Ye, {}), Ln = "SelectViewport", ji = d.forwardRef(
5126
5126
  ] });
5127
5127
  }
5128
5128
  );
5129
- ji.displayName = Ln;
5129
+ ji.displayName = Vn;
5130
5130
  var Yi = "SelectGroup", [qd, Jd] = ct(Yi), Qd = d.forwardRef(
5131
5131
  (e, t) => {
5132
5132
  const { __scopeSelect: n, ...o } = e, r = Ge();
@@ -5141,7 +5141,7 @@ var Xi = "SelectLabel", ef = d.forwardRef(
5141
5141
  }
5142
5142
  );
5143
5143
  ef.displayName = Xi;
5144
- var Gt = "SelectItem", [tf, Zi] = ct(Gt), qi = d.forwardRef(
5144
+ var jt = "SelectItem", [tf, Zi] = ct(jt), qi = d.forwardRef(
5145
5145
  (e, t) => {
5146
5146
  const {
5147
5147
  __scopeSelect: n,
@@ -5149,7 +5149,7 @@ var Gt = "SelectItem", [tf, Zi] = ct(Gt), qi = d.forwardRef(
5149
5149
  disabled: r = !1,
5150
5150
  textValue: i,
5151
5151
  ...a
5152
- } = e, s = $e(Gt, n), c = Ve(Gt, n), l = s.value === o, [f, u] = d.useState(i ?? ""), [m, g] = d.useState(!1), w = Z(
5152
+ } = e, s = $e(jt, n), c = Ve(jt, n), l = s.value === o, [f, u] = d.useState(i ?? ""), [m, g] = d.useState(!1), w = Z(
5153
5153
  t,
5154
5154
  (C) => {
5155
5155
  var b;
@@ -5174,7 +5174,7 @@ var Gt = "SelectItem", [tf, Zi] = ct(Gt), qi = d.forwardRef(
5174
5174
  u((b) => b || ((C == null ? void 0 : C.textContent) ?? "").trim());
5175
5175
  }, []),
5176
5176
  children: /* @__PURE__ */ p(
5177
- an.ItemSlot,
5177
+ ln.ItemSlot,
5178
5178
  {
5179
5179
  scope: n,
5180
5180
  value: o,
@@ -5224,10 +5224,10 @@ var Gt = "SelectItem", [tf, Zi] = ct(Gt), qi = d.forwardRef(
5224
5224
  );
5225
5225
  }
5226
5226
  );
5227
- qi.displayName = Gt;
5228
- var ft = "SelectItemText", Ji = d.forwardRef(
5227
+ qi.displayName = jt;
5228
+ var mt = "SelectItemText", Ji = d.forwardRef(
5229
5229
  (e, t) => {
5230
- const { __scopeSelect: n, className: o, style: r, ...i } = e, a = $e(ft, n), s = Ve(ft, n), c = Zi(ft, n), l = Hd(ft, n), [f, u] = d.useState(null), m = Z(
5230
+ const { __scopeSelect: n, className: o, style: r, ...i } = e, a = $e(mt, n), s = Ve(mt, n), c = Zi(mt, n), l = Hd(mt, n), [f, u] = d.useState(null), m = Z(
5231
5231
  t,
5232
5232
  (y) => u(y),
5233
5233
  c.onItemTextChange,
@@ -5239,13 +5239,13 @@ var ft = "SelectItemText", Ji = d.forwardRef(
5239
5239
  () => /* @__PURE__ */ p("option", { value: c.value, disabled: c.disabled, children: g }, c.value),
5240
5240
  [c.disabled, c.value, g]
5241
5241
  ), { onNativeOptionAdd: h, onNativeOptionRemove: v } = l;
5242
- return oe(() => (h(w), () => v(w)), [h, v, w]), /* @__PURE__ */ k(zt, { children: [
5242
+ return oe(() => (h(w), () => v(w)), [h, v, w]), /* @__PURE__ */ k(Yt, { children: [
5243
5243
  /* @__PURE__ */ p(U.span, { id: c.textId, ...i, ref: m }),
5244
- c.isSelected && a.valueNode && !a.valueNodeHasChildren ? jt.createPortal(i.children, a.valueNode) : null
5244
+ c.isSelected && a.valueNode && !a.valueNodeHasChildren ? Xt.createPortal(i.children, a.valueNode) : null
5245
5245
  ] });
5246
5246
  }
5247
5247
  );
5248
- Ji.displayName = ft;
5248
+ Ji.displayName = mt;
5249
5249
  var Qi = "SelectItemIndicator", es = d.forwardRef(
5250
5250
  (e, t) => {
5251
5251
  const { __scopeSelect: n, ...o } = e;
@@ -5253,8 +5253,8 @@ var Qi = "SelectItemIndicator", es = d.forwardRef(
5253
5253
  }
5254
5254
  );
5255
5255
  es.displayName = Qi;
5256
- var $n = "SelectScrollUpButton", nf = d.forwardRef((e, t) => {
5257
- const n = Ve($n, e.__scopeSelect), o = co($n, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5256
+ var Bn = "SelectScrollUpButton", nf = d.forwardRef((e, t) => {
5257
+ const n = Ve(Bn, e.__scopeSelect), o = uo(Bn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5258
5258
  return oe(() => {
5259
5259
  if (n.viewport && n.isPositioned) {
5260
5260
  let s = function() {
@@ -5276,9 +5276,9 @@ var $n = "SelectScrollUpButton", nf = d.forwardRef((e, t) => {
5276
5276
  }
5277
5277
  ) : null;
5278
5278
  });
5279
- nf.displayName = $n;
5280
- var Vn = "SelectScrollDownButton", of = d.forwardRef((e, t) => {
5281
- const n = Ve(Vn, e.__scopeSelect), o = co(Vn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5279
+ nf.displayName = Bn;
5280
+ var Wn = "SelectScrollDownButton", of = d.forwardRef((e, t) => {
5281
+ const n = Ve(Wn, e.__scopeSelect), o = uo(Wn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5282
5282
  return oe(() => {
5283
5283
  if (n.viewport && n.isPositioned) {
5284
5284
  let s = function() {
@@ -5300,9 +5300,9 @@ var Vn = "SelectScrollDownButton", of = d.forwardRef((e, t) => {
5300
5300
  }
5301
5301
  ) : null;
5302
5302
  });
5303
- of.displayName = Vn;
5303
+ of.displayName = Wn;
5304
5304
  var ts = d.forwardRef((e, t) => {
5305
- const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = Ve("SelectScrollButton", n), a = d.useRef(null), s = cn(n), c = d.useCallback(() => {
5305
+ const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = Ve("SelectScrollButton", n), a = d.useRef(null), s = un(n), c = d.useCallback(() => {
5306
5306
  a.current !== null && (window.clearInterval(a.current), a.current = null);
5307
5307
  }, []);
5308
5308
  return d.useEffect(() => () => c(), [c]), oe(() => {
@@ -5335,13 +5335,13 @@ var ts = d.forwardRef((e, t) => {
5335
5335
  }
5336
5336
  );
5337
5337
  sf.displayName = rf;
5338
- var Bn = "SelectArrow", af = d.forwardRef(
5338
+ var Un = "SelectArrow", af = d.forwardRef(
5339
5339
  (e, t) => {
5340
- const { __scopeSelect: n, ...o } = e, r = ln(n), i = $e(Bn, n), a = Ve(Bn, n);
5340
+ const { __scopeSelect: n, ...o } = e, r = dn(n), i = $e(Un, n), a = Ve(Un, n);
5341
5341
  return i.open && a.position === "popper" ? /* @__PURE__ */ p(Fr, { ...r, ...o, ref: t }) : null;
5342
5342
  }
5343
5343
  );
5344
- af.displayName = Bn;
5344
+ af.displayName = Un;
5345
5345
  var cf = "SelectBubbleInput", ns = d.forwardRef(
5346
5346
  ({ __scopeSelect: e, value: t, ...n }, o) => {
5347
5347
  const r = d.useRef(null), i = Z(o, r), a = kd(t);
@@ -5433,7 +5433,7 @@ const Re = {
5433
5433
  Value: Sf,
5434
5434
  Content: xf,
5435
5435
  Item: Ef
5436
- }, un = [25, 50, 100];
5436
+ }, fn = [25, 50, 100];
5437
5437
  function Rf({ table: e, isLoading: t }) {
5438
5438
  return /* @__PURE__ */ p("div", { className: "snow-pagination", children: /* @__PURE__ */ k("div", { className: "snow-pagination-controls", children: [
5439
5439
  /* @__PURE__ */ p(
@@ -5483,7 +5483,7 @@ function Rf({ table: e, isLoading: t }) {
5483
5483
  }
5484
5484
  function Af({
5485
5485
  table: e,
5486
- paginationSizes: t = un,
5486
+ paginationSizes: t = fn,
5487
5487
  enableElementLabel: n = !0
5488
5488
  }) {
5489
5489
  const o = at();
@@ -5504,9 +5504,9 @@ function Af({
5504
5504
  )
5505
5505
  ] });
5506
5506
  }
5507
- var dn = "Tabs", [Pf] = Xe(dn, [
5508
- tn
5509
- ]), ss = tn(), [Tf, lo] = Pf(dn), as = d.forwardRef(
5507
+ var pn = "Tabs", [Pf] = Xe(pn, [
5508
+ on
5509
+ ]), ss = on(), [Tf, fo] = Pf(pn), as = d.forwardRef(
5510
5510
  (e, t) => {
5511
5511
  const {
5512
5512
  __scopeTabs: n,
@@ -5517,11 +5517,11 @@ var dn = "Tabs", [Pf] = Xe(dn, [
5517
5517
  dir: s,
5518
5518
  activationMode: c = "automatic",
5519
5519
  ...l
5520
- } = e, f = Xt(s), [u, m] = mt({
5520
+ } = e, f = qt(s), [u, m] = gt({
5521
5521
  prop: o,
5522
5522
  onChange: r,
5523
5523
  defaultProp: i ?? "",
5524
- caller: dn
5524
+ caller: pn
5525
5525
  });
5526
5526
  return /* @__PURE__ */ p(
5527
5527
  Tf,
@@ -5546,10 +5546,10 @@ var dn = "Tabs", [Pf] = Xe(dn, [
5546
5546
  );
5547
5547
  }
5548
5548
  );
5549
- as.displayName = dn;
5549
+ as.displayName = pn;
5550
5550
  var cs = "TabsList", ls = d.forwardRef(
5551
5551
  (e, t) => {
5552
- const { __scopeTabs: n, loop: o = !0, ...r } = e, i = lo(cs, n), a = ss(n);
5552
+ const { __scopeTabs: n, loop: o = !0, ...r } = e, i = fo(cs, n), a = ss(n);
5553
5553
  return /* @__PURE__ */ p(
5554
5554
  Ur,
5555
5555
  {
@@ -5574,7 +5574,7 @@ var cs = "TabsList", ls = d.forwardRef(
5574
5574
  ls.displayName = cs;
5575
5575
  var us = "TabsTrigger", ds = d.forwardRef(
5576
5576
  (e, t) => {
5577
- const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = lo(us, n), s = ss(n), c = ps(a.baseId, o), l = ms(a.baseId, o), f = o === a.value;
5577
+ const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = fo(us, n), s = ss(n), c = ps(a.baseId, o), l = ms(a.baseId, o), f = o === a.value;
5578
5578
  return /* @__PURE__ */ p(
5579
5579
  Hr,
5580
5580
  {
@@ -5614,7 +5614,7 @@ var us = "TabsTrigger", ds = d.forwardRef(
5614
5614
  ds.displayName = us;
5615
5615
  var fs = "TabsContent", Mf = d.forwardRef(
5616
5616
  (e, t) => {
5617
- const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = lo(fs, n), c = ps(s.baseId, o), l = ms(s.baseId, o), f = o === s.value, u = d.useRef(f);
5617
+ const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = fo(fs, n), c = ps(s.baseId, o), l = ms(s.baseId, o), f = o === s.value, u = d.useRef(f);
5618
5618
  return d.useEffect(() => {
5619
5619
  const m = requestAnimationFrame(() => u.current = !1);
5620
5620
  return () => cancelAnimationFrame(m);
@@ -5656,7 +5656,7 @@ function Df({ children: e, className: t }) {
5656
5656
  function kf({ value: e, children: t }) {
5657
5657
  return /* @__PURE__ */ p(_f, { value: e, className: "snow-tabs-trigger", children: t });
5658
5658
  }
5659
- const En = {
5659
+ const An = {
5660
5660
  Root: Of,
5661
5661
  List: Df,
5662
5662
  Trigger: kf
@@ -5667,9 +5667,9 @@ function Ff({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
5667
5667
  return o || e.length > 4 ? /* @__PURE__ */ k(Re.Root, { value: t, onValueChange: n, children: [
5668
5668
  /* @__PURE__ */ p(Re.Trigger, { className: `snow-w-fit snow-min-w-32 ${a ? "snow-state-active" : ""}`, children: /* @__PURE__ */ p(Re.Value, { children: (i == null ? void 0 : i.label) || r("dataTable.selectFilter") }) }),
5669
5669
  /* @__PURE__ */ p(Re.Content, { children: e.map((c) => /* @__PURE__ */ p(Re.Item, { value: c.id, children: c.label }, c.id)) })
5670
- ] }) : /* @__PURE__ */ p(En.Root, { value: t, onValueChange: n, children: /* @__PURE__ */ p(En.List, { className: a ? "snow-state-active" : "", children: e.map((c) => /* @__PURE__ */ p(En.Trigger, { value: c.id, children: c.label }, c.id)) }) });
5670
+ ] }) : /* @__PURE__ */ p(An.Root, { value: t, onValueChange: n, children: /* @__PURE__ */ p(An.List, { className: a ? "snow-state-active" : "", children: e.map((c) => /* @__PURE__ */ p(An.Trigger, { value: c.id, children: c.label }, c.id)) }) });
5671
5671
  }
5672
- const uo = er(
5672
+ const po = er(
5673
5673
  ({ value: e, onChange: t, onKeyDown: n, placeholder: o, className: r, type: i = "text", isActive: a, ...s }, c) => /* @__PURE__ */ p(
5674
5674
  "input",
5675
5675
  {
@@ -5684,13 +5684,13 @@ const uo = er(
5684
5684
  }
5685
5685
  )
5686
5686
  );
5687
- uo.displayName = "Input";
5687
+ po.displayName = "Input";
5688
5688
  const Lf = 500;
5689
5689
  function $f({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5690
5690
  const [o, r] = ae(e);
5691
- pt(() => {
5691
+ ht(() => {
5692
5692
  r(e);
5693
- }, [e]), pt(() => {
5693
+ }, [e]), ht(() => {
5694
5694
  const a = setTimeout(() => {
5695
5695
  o !== e && (t == null || t(o));
5696
5696
  }, Lf);
@@ -5699,7 +5699,7 @@ function $f({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5699
5699
  const i = o.length > 0;
5700
5700
  return /* @__PURE__ */ p("div", { className: "snow-searchbar snow-lg:min-w-[331px]", children: /* @__PURE__ */ k("div", { className: "snow-flex snow-relative", children: [
5701
5701
  /* @__PURE__ */ p(
5702
- uo,
5702
+ po,
5703
5703
  {
5704
5704
  "data-testid": "data-table-search-bar",
5705
5705
  type: "text",
@@ -5741,13 +5741,13 @@ function Vf({
5741
5741
  e.multipleSelection ? /* @__PURE__ */ p(Us, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }) : /* @__PURE__ */ p(Ws, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
5742
5742
  /* @__PURE__ */ p("span", { className: "snow-truncate", children: u() })
5743
5743
  ] }),
5744
- /* @__PURE__ */ p(Wn, { className: "snow-size-3\\\\.5 snow-opacity-50 snow-shrink-0" })
5744
+ /* @__PURE__ */ p(Hn, { className: "snow-size-3\\\\.5 snow-opacity-50 snow-shrink-0" })
5745
5745
  ] }) }),
5746
5746
  /* @__PURE__ */ k(ee.Content, { align: "start", className: "snow-w-56", children: [
5747
5747
  /* @__PURE__ */ p("div", { className: "snow-p-2", children: /* @__PURE__ */ k("div", { className: "snow-filter-search", children: [
5748
5748
  /* @__PURE__ */ p(nr, { className: "snow-filter-search-icon" }),
5749
5749
  /* @__PURE__ */ p(
5750
- uo,
5750
+ po,
5751
5751
  {
5752
5752
  placeholder: o("dataTable.searchFilters"),
5753
5753
  value: r,
@@ -5769,7 +5769,7 @@ function Vf({
5769
5769
  },
5770
5770
  m.value
5771
5771
  )),
5772
- a > 0 && /* @__PURE__ */ k(zt, { children: [
5772
+ a > 0 && /* @__PURE__ */ k(Yt, { children: [
5773
5773
  /* @__PURE__ */ p(ee.Separator, {}),
5774
5774
  /* @__PURE__ */ p(ee.Item, { onClick: f, className: "snow-text-xs snow-cursor-pointer snow-text-center snow-text-muted-foreground", children: o("dataTable.resetFilters") })
5775
5775
  ] })
@@ -5777,7 +5777,7 @@ function Vf({
5777
5777
  ] });
5778
5778
  }
5779
5779
  function Bf({ column: e }) {
5780
- return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Wn, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(ks, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Bs, { className: "snow-sort-icon" });
5780
+ return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Hn, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(ks, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Bs, { className: "snow-sort-icon" });
5781
5781
  }
5782
5782
  function hs({
5783
5783
  // Data
@@ -5823,21 +5823,21 @@ function hs({
5823
5823
  // Reset
5824
5824
  onResetFilters: K
5825
5825
  }) {
5826
- var po;
5826
+ var ho;
5827
5827
  const O = at(), [B, _] = ae({
5828
5828
  pageIndex: 0,
5829
- pageSize: un[0]
5830
- }), [P, j] = ae(""), [q, ne] = ae({}), [ve, ue] = ae([]), [we, re] = ae({}), I = i ?? B, W = a ?? _, G = c ?? P, H = l ?? j, V = m ?? q, z = g ?? ne, ie = y ?? ve, me = C ?? ue, Be = S ?? we, We = R ?? re, Ue = be(
5829
+ pageSize: fn[0]
5830
+ }), [P, j] = ae(""), [J, ne] = ae({}), [ve, ue] = ae([]), [we, re] = ae({}), I = i ?? B, W = a ?? _, G = c ?? P, H = l ?? j, V = m ?? J, z = g ?? ne, ie = y ?? ve, me = C ?? ue, Be = S ?? we, We = R ?? re, Ue = be(
5831
5831
  (Y) => {
5832
- H(Y), W((J) => ({ ...J, pageIndex: 0 }));
5832
+ H(Y), W((q) => ({ ...q, pageIndex: 0 }));
5833
5833
  },
5834
5834
  [H, W]
5835
- ), fn = Ce(() => JSON.stringify(V), [V]);
5836
- pt(() => {
5835
+ ), mn = Ce(() => JSON.stringify(V), [V]);
5836
+ ht(() => {
5837
5837
  W((Y) => Y.pageIndex === 0 ? Y : { ...Y, pageIndex: 0 });
5838
- }, [h, fn, W]);
5839
- const te = r === "server", vs = s !== void 0 ? Math.ceil(s / I.pageSize) : void 0, ws = !te || s !== void 0, fo = Ce(() => Object.entries(V).map(([Y, J]) => ({ id: Y, value: J })), [V]), ys = be((Y, J, Q) => {
5840
- const he = Y.getValue(J);
5838
+ }, [h, mn, W]);
5839
+ const te = r === "server", vs = s !== void 0 ? Math.ceil(s / I.pageSize) : void 0, ws = !te || s !== void 0, mo = Ce(() => Object.entries(V).map(([Y, q]) => ({ id: Y, value: q })), [V]), ys = be((Y, q, Q) => {
5840
+ const he = Y.getValue(q);
5841
5841
  return Q.includes(String(he));
5842
5842
  }, []), _e = Is({
5843
5843
  data: e,
@@ -5847,7 +5847,7 @@ function hs({
5847
5847
  pagination: I,
5848
5848
  sorting: b ? ie : void 0,
5849
5849
  globalFilter: !te && f ? G : void 0,
5850
- columnFilters: !te && (u != null && u.length) ? fo : void 0,
5850
+ columnFilters: !te && (u != null && u.length) ? mo : void 0,
5851
5851
  columnVisibility: A ? Be : void 0
5852
5852
  },
5853
5853
  onPaginationChange: W,
@@ -5869,10 +5869,10 @@ function hs({
5869
5869
  },
5870
5870
  globalFilterFn: f ? sa : void 0
5871
5871
  } : {}
5872
- }), bs = (Y, J) => {
5872
+ }), bs = (Y, q) => {
5873
5873
  const Q = String(Y), he = { ...V };
5874
- J.length === 0 ? delete he[Q] : he[Q] = J, z(he);
5875
- }, Cs = f || M || u && u.length > 0 || A, Ss = Ce(() => te ? e.length : _e.getRowModel().rows.length, [te, e.length, _e]), xs = Ce(() => te && s !== void 0 ? s : _e.getFilteredRowModel().rows.length, [te, s, _e, e.length, G, fo]);
5874
+ q.length === 0 ? delete he[Q] : he[Q] = q, z(he);
5875
+ }, Cs = f || M || u && u.length > 0 || A, Ss = Ce(() => te ? e.length : _e.getRowModel().rows.length, [te, e.length, _e]), xs = Ce(() => te && s !== void 0 ? s : _e.getFilteredRowModel().rows.length, [te, s, _e, e.length, G, mo]);
5876
5876
  return /* @__PURE__ */ k("div", { className: "snow-table-container snow-table-root", "data-testid": "datatable", children: [
5877
5877
  o && !n && /* @__PURE__ */ p("div", { className: "snow-table-loading-overlay" }),
5878
5878
  Cs && /* @__PURE__ */ k("div", { className: "snow-table-top-bar", children: [
@@ -5880,7 +5880,7 @@ function hs({
5880
5880
  Ff,
5881
5881
  {
5882
5882
  prefilters: w,
5883
- activePrefilter: h ?? ((po = w[0]) == null ? void 0 : po.id) ?? "",
5883
+ activePrefilter: h ?? ((ho = w[0]) == null ? void 0 : ho.id) ?? "",
5884
5884
  onPrefilterChange: v
5885
5885
  }
5886
5886
  ) }),
@@ -5922,45 +5922,46 @@ function hs({
5922
5922
  $ && "snow-responsive-container"
5923
5923
  ),
5924
5924
  children: /* @__PURE__ */ k("table", { className: "snow-table", "data-testid": "datatable-table", children: [
5925
- /* @__PURE__ */ p("thead", { className: X("snow-table-header", $ && "snow-responsive-thead"), children: _e.getHeaderGroups().map((Y) => /* @__PURE__ */ p("tr", { children: Y.headers.map((J) => {
5926
- var Q, he, Et, Rt;
5925
+ /* @__PURE__ */ p("thead", { className: X("snow-table-header", $ && "snow-responsive-thead"), children: _e.getHeaderGroups().map((Y) => /* @__PURE__ */ p("tr", { children: Y.headers.map((q) => {
5926
+ var Q, he, At, Pt, lt, ut;
5927
5927
  return /* @__PURE__ */ p(
5928
5928
  "th",
5929
5929
  {
5930
5930
  className: X("snow-table-header-cell", b && "snow-cursor-pointer"),
5931
- onClick: J.column.getToggleSortingHandler(),
5931
+ onClick: q.column.getToggleSortingHandler(),
5932
5932
  style: {
5933
- width: (he = (Q = J.column.columnDef) == null ? void 0 : Q.meta) == null ? void 0 : he.width,
5934
- minWidth: (Rt = (Et = J.column.columnDef) == null ? void 0 : Et.meta) == null ? void 0 : Rt.minWidth
5933
+ width: (he = (Q = q.column.columnDef) == null ? void 0 : Q.meta) == null ? void 0 : he.width,
5934
+ minWidth: (Pt = (At = q.column.columnDef) == null ? void 0 : At.meta) == null ? void 0 : Pt.minWidth,
5935
+ maxWidth: (ut = (lt = q.column.columnDef) == null ? void 0 : lt.meta) == null ? void 0 : ut.maxWidth
5935
5936
  },
5936
- children: J.isPlaceholder ? null : /* @__PURE__ */ k("span", { className: "snow-table-header-cell-content", children: [
5937
- /* @__PURE__ */ p("h3", { children: bo(J.column.columnDef.header, J.getContext()) }),
5938
- b && /* @__PURE__ */ p(Bf, { column: J.column })
5937
+ children: q.isPlaceholder ? null : /* @__PURE__ */ k("span", { className: "snow-table-header-cell-content", children: [
5938
+ /* @__PURE__ */ p("h3", { children: bo(q.column.columnDef.header, q.getContext()) }),
5939
+ b && /* @__PURE__ */ p(Bf, { column: q.column })
5939
5940
  ] })
5940
5941
  },
5941
- J.id
5942
+ q.id
5942
5943
  );
5943
5944
  }) }, Y.id)) }),
5944
- n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: I.pageSize > 10 ? 10 : I.pageSize }).map((Y, J) => /* @__PURE__ */ p("tr", { className: X({ "snow-table-row-alternate": J % 2 === 1 }), children: t.map((Q, he) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Dd, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${he}`)) }, J)) }) : Ss > 0 ? /* @__PURE__ */ p(
5945
+ n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: I.pageSize > 10 ? 10 : I.pageSize }).map((Y, q) => /* @__PURE__ */ p("tr", { className: X({ "snow-table-row-alternate": q % 2 === 1 }), children: t.map((Q, he) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Dd, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${he}`)) }, q)) }) : Ss > 0 ? /* @__PURE__ */ p(
5945
5946
  "tbody",
5946
5947
  {
5947
5948
  className: X("snow-divide-y snow-divide-border", $ && "snow-responsive-tbody"),
5948
5949
  "data-testid": "datatable-body",
5949
- children: _e.getRowModel().rows.map((Y, J) => /* @__PURE__ */ p(
5950
+ children: _e.getRowModel().rows.map((Y, q) => /* @__PURE__ */ p(
5950
5951
  "tr",
5951
5952
  {
5952
5953
  "data-testid": `datatable-row-${Y.id}`,
5953
5954
  className: X(
5954
5955
  "snow-table-row snow-transition-all snow-duration-300 snow-ease-in-out",
5955
5956
  {
5956
- "snow-table-row-alternate": J % 2 === 1,
5957
+ "snow-table-row-alternate": q % 2 === 1,
5957
5958
  "snow-table-row-active": x !== void 0 && "id" in Y.original && x === Y.original.id
5958
5959
  },
5959
5960
  $ && "snow-responsive-row"
5960
5961
  ),
5961
5962
  children: Y.getVisibleCells().map((Q, he) => {
5962
- var mo, ho, go, vo;
5963
- const Et = typeof Q.column.columnDef.header == "string" ? Q.column.columnDef.header : Q.column.id, Rt = he === Y.getVisibleCells().length - 1;
5963
+ var lt, ut, go, vo;
5964
+ const At = typeof Q.column.columnDef.header == "string" ? Q.column.columnDef.header : Q.column.id, Pt = he === Y.getVisibleCells().length - 1;
5964
5965
  return /* @__PURE__ */ k(
5965
5966
  "td",
5966
5967
  {
@@ -5969,12 +5970,12 @@ function hs({
5969
5970
  return E && !((yo = (wo = Q.column.columnDef) == null ? void 0 : wo.meta) != null && yo.disableColumnClick) && E(Y.original);
5970
5971
  },
5971
5972
  className: X(
5972
- E && !((ho = (mo = Q.column.columnDef) == null ? void 0 : mo.meta) != null && ho.disableColumnClick) && "snow-cursor-pointer",
5973
+ E && !((ut = (lt = Q.column.columnDef) == null ? void 0 : lt.meta) != null && ut.disableColumnClick) && "snow-cursor-pointer",
5973
5974
  ((vo = (go = Q.column.columnDef) == null ? void 0 : go.meta) == null ? void 0 : vo.center) && "snow-align-middle snow-text-center",
5974
- $ ? X("snow-responsive-cell", Rt && "snow-responsive-cell-last") : "snow-table-cell"
5975
+ $ ? X("snow-responsive-cell", Pt && "snow-responsive-cell-last") : "snow-table-cell"
5975
5976
  ),
5976
5977
  children: [
5977
- $ && /* @__PURE__ */ p("span", { className: "snow-responsive-cell-label", children: Et }),
5978
+ $ && /* @__PURE__ */ p("span", { className: "snow-responsive-cell-label", children: At }),
5978
5979
  /* @__PURE__ */ p("span", { className: X($ && "snow-responsive-cell-content"), children: bo(Q.column.columnDef.cell, Q.getContext()) })
5979
5980
  ]
5980
5981
  },
@@ -6198,7 +6199,7 @@ const Hf = Ps(Uf), gs = ({
6198
6199
  prefilterFn: i,
6199
6200
  defaultSortBy: a,
6200
6201
  defaultSortOrder: s = "asc",
6201
- defaultPageSize: c = un[0],
6202
+ defaultPageSize: c = fn[0],
6202
6203
  persistState: l = !1,
6203
6204
  fetchAllItemsEndpoint: f,
6204
6205
  ...u
@@ -6262,7 +6263,7 @@ const Hf = Ps(Uf), gs = ({
6262
6263
  prefilters: r,
6263
6264
  defaultSortBy: i,
6264
6265
  defaultSortOrder: a = "asc",
6265
- defaultPageSize: s = un[0],
6266
+ defaultPageSize: s = fn[0],
6266
6267
  persistState: c = !1,
6267
6268
  fetchServerEndpoint: l,
6268
6269
  ...f
@@ -6337,7 +6338,7 @@ const Hf = Ps(Uf), gs = ({
6337
6338
  export {
6338
6339
  Hf as ActionCell,
6339
6340
  Od as ColumnConfiguration,
6340
- un as DEFAULT_PAGE_SIZES,
6341
+ fn as DEFAULT_PAGE_SIZES,
6341
6342
  hs as DataTable,
6342
6343
  Af as PageSizeSelector,
6343
6344
  Rf as Pagination,