@krosoft/react 0.0.78 → 0.0.79

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.
Files changed (97) hide show
  1. package/dist/{LoadingState-CqRLmkxn.js → LoadingState-DQjGcT2l.js} +5 -5
  2. package/dist/MetricCard-4VI9Ki0g.js +83 -0
  3. package/dist/SearchInput-Cf5NHhnz.js +698 -0
  4. package/dist/TableFilter-DgChe4aX.js +406 -0
  5. package/dist/TableSettings-4YLJSh4G.js +2064 -0
  6. package/dist/{ThemeSelector-sTd9T2OD.js → ThemeSelector-MqD5QvHl.js} +8 -8
  7. package/dist/{Topbar-BqC05zWP.js → Topbar-DifQ00kV.js} +26 -27
  8. package/dist/{badge-kADcbb2Y.js → badge-Bw-aBz_H.js} +1 -1
  9. package/dist/components/core/cards/KpiCard.d.ts +1 -1
  10. package/dist/components/core/cards/KpiCard.d.ts.map +1 -1
  11. package/dist/components/core/cards/MetricCard.d.ts +1 -2
  12. package/dist/components/core/cards/MetricCard.d.ts.map +1 -1
  13. package/dist/components/core/cards/index.js +1 -1
  14. package/dist/components/core/filters/ActiveFilters.d.ts +10 -0
  15. package/dist/components/core/filters/ActiveFilters.d.ts.map +1 -0
  16. package/dist/components/core/filters/AdvancedFilters.d.ts +11 -0
  17. package/dist/components/core/filters/AdvancedFilters.d.ts.map +1 -0
  18. package/dist/components/core/filters/FilterField.d.ts +11 -0
  19. package/dist/components/core/filters/FilterField.d.ts.map +1 -0
  20. package/dist/components/core/filters/SearchableFilterPill.d.ts +15 -0
  21. package/dist/components/core/filters/SearchableFilterPill.d.ts.map +1 -0
  22. package/dist/components/core/filters/TableFilter.d.ts +17 -0
  23. package/dist/components/core/filters/TableFilter.d.ts.map +1 -0
  24. package/dist/components/core/filters/index.d.ts +5 -0
  25. package/dist/components/core/filters/index.d.ts.map +1 -0
  26. package/dist/components/core/filters/index.js +7 -0
  27. package/dist/components/core/index.d.ts +2 -0
  28. package/dist/components/core/index.d.ts.map +1 -1
  29. package/dist/components/core/index.js +34 -26
  30. package/dist/components/core/inputs/DatePicker.d.ts +9 -0
  31. package/dist/components/core/inputs/DatePicker.d.ts.map +1 -0
  32. package/dist/components/core/inputs/MultiSelect.d.ts +17 -0
  33. package/dist/components/core/inputs/MultiSelect.d.ts.map +1 -0
  34. package/dist/components/core/inputs/SearchInput.d.ts.map +1 -1
  35. package/dist/components/core/inputs/SearchableSelect.d.ts +14 -0
  36. package/dist/components/core/inputs/SearchableSelect.d.ts.map +1 -0
  37. package/dist/components/core/inputs/index.d.ts +3 -1
  38. package/dist/components/core/inputs/index.d.ts.map +1 -1
  39. package/dist/components/core/inputs/index.js +6 -3
  40. package/dist/components/core/navbar/index.js +1 -1
  41. package/dist/components/core/states/index.js +1 -1
  42. package/dist/components/core/table/DataTable.d.ts +17 -2
  43. package/dist/components/core/table/DataTable.d.ts.map +1 -1
  44. package/dist/components/core/table/TableBody.d.ts +2 -2
  45. package/dist/components/core/table/TableBody.d.ts.map +1 -1
  46. package/dist/components/core/table/TableHeader.d.ts +1 -1
  47. package/dist/components/core/table/TableHeader.d.ts.map +1 -1
  48. package/dist/components/core/table/index.d.ts +1 -3
  49. package/dist/components/core/table/index.d.ts.map +1 -1
  50. package/dist/components/core/table/index.js +9 -9
  51. package/dist/components/core/theme/ThemeSelector.d.ts +2 -1
  52. package/dist/components/core/theme/ThemeSelector.d.ts.map +1 -1
  53. package/dist/components/core/theme/index.js +1 -1
  54. package/dist/components/index.js +86 -63
  55. package/dist/components/ui/badge.d.ts +1 -1
  56. package/dist/components/ui/badge.d.ts.map +1 -1
  57. package/dist/components/ui/button.d.ts.map +1 -1
  58. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  59. package/dist/components/ui/index.d.ts +4 -1
  60. package/dist/components/ui/index.d.ts.map +1 -1
  61. package/dist/components/ui/index.js +50 -35
  62. package/dist/components/ui/label.d.ts +6 -0
  63. package/dist/components/ui/label.d.ts.map +1 -0
  64. package/dist/components/ui/select.d.ts +1 -1
  65. package/dist/components/ui/select.d.ts.map +1 -1
  66. package/dist/components/ui/sheet.d.ts.map +1 -1
  67. package/dist/components/ui/toast.d.ts +1 -1
  68. package/dist/components/ui/toast.d.ts.map +1 -1
  69. package/dist/{floating-ui.react-dom-BPCyLQfI.js → floating-ui.react-dom-BIcsGc3t.js} +553 -526
  70. package/dist/hooks/index.js +1 -1
  71. package/dist/hooks/ui/useDataTable.d.ts +1 -1
  72. package/dist/hooks/ui/useDataTable.d.ts.map +1 -1
  73. package/dist/hooks/ui/useToast.d.ts +5 -13
  74. package/dist/hooks/ui/useToast.d.ts.map +1 -1
  75. package/dist/popover-UjRQmYGN.js +5889 -0
  76. package/dist/select-CtU681LB.js +2070 -0
  77. package/dist/tailwind/index.d.ts.map +1 -1
  78. package/dist/tooltip-DzQngJZK.js +828 -0
  79. package/dist/types/FilterFieldConfig.d.ts +16 -0
  80. package/dist/types/FilterFieldConfig.d.ts.map +1 -0
  81. package/dist/types/FilterSection.d.ts +6 -0
  82. package/dist/types/FilterSection.d.ts.map +1 -0
  83. package/dist/types/index.d.ts +0 -1
  84. package/dist/types/index.d.ts.map +1 -1
  85. package/dist/{useTheme-D__o7mLN.js → useTheme-DsHPKCDp.js} +24 -18
  86. package/package.json +4 -2
  87. package/dist/Combination-CzdDhqdB.js +0 -564
  88. package/dist/DataTable-CjFA9p4V.js +0 -2216
  89. package/dist/DateRangePicker-rrXXEYz8.js +0 -1240
  90. package/dist/MetricCard-B1Y-27_U.js +0 -78
  91. package/dist/calendar-BMReToKR.js +0 -3911
  92. package/dist/checkbox-BI6Lm_p-.js +0 -358
  93. package/dist/chevron-down-ki5-dwtL.js +0 -11
  94. package/dist/select-B-hcmC3K.js +0 -1468
  95. package/dist/tooltip-gI1Mp9DG.js +0 -779
  96. package/dist/types/DataTableProps.d.ts +0 -19
  97. package/dist/types/DataTableProps.d.ts.map +0 -1
@@ -1,37 +1,38 @@
1
1
  import * as g from "react";
2
- import { useLayoutEffect as ee } from "react";
3
- import { jsx as nt, Fragment as ne } from "react/jsx-runtime";
4
- import { a as oe, c as re } from "./index-gWiv5-6R.js";
5
- import * as ie from "react-dom";
6
- const Pt = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Lt = oe, se = (t, e) => (n) => {
2
+ import { useLayoutEffect as ne } from "react";
3
+ import { jsx as nt } from "react/jsx-runtime";
4
+ import { c as oe } from "./createLucideIcon-CRdjzt2A.js";
5
+ import { a as re, c as ie } from "./index-gWiv5-6R.js";
6
+ import * as se from "react-dom";
7
+ const Lt = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Tt = re, ce = (t, e) => (n) => {
7
8
  var o;
8
- if ((e == null ? void 0 : e.variants) == null) return Lt(t, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
9
- const { variants: r, defaultVariants: i } = e, s = Object.keys(r).map((f) => {
10
- const l = n == null ? void 0 : n[f], u = i == null ? void 0 : i[f];
9
+ if ((e == null ? void 0 : e.variants) == null) return Tt(t, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
10
+ const { variants: r, defaultVariants: i } = e, s = Object.keys(r).map((a) => {
11
+ const l = n == null ? void 0 : n[a], u = i == null ? void 0 : i[a];
11
12
  if (l === null) return null;
12
- const d = Pt(l) || Pt(u);
13
- return r[f][d];
14
- }), c = n && Object.entries(n).reduce((f, l) => {
13
+ const d = Lt(l) || Lt(u);
14
+ return r[a][d];
15
+ }), c = n && Object.entries(n).reduce((a, l) => {
15
16
  let [u, d] = l;
16
- return d === void 0 || (f[u] = d), f;
17
- }, {}), a = e == null || (o = e.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((f, l) => {
17
+ return d === void 0 || (a[u] = d), a;
18
+ }, {}), f = e == null || (o = e.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((a, l) => {
18
19
  let { class: u, className: d, ...m } = l;
19
20
  return Object.entries(m).every((h) => {
20
- let [p, w] = h;
21
- return Array.isArray(w) ? w.includes({
21
+ let [p, y] = h;
22
+ return Array.isArray(y) ? y.includes({
22
23
  ...i,
23
24
  ...c
24
25
  }[p]) : {
25
26
  ...i,
26
27
  ...c
27
- }[p] === w;
28
+ }[p] === y;
28
29
  }) ? [
29
- ...f,
30
+ ...a,
30
31
  u,
31
32
  d
32
- ] : f;
33
+ ] : a;
33
34
  }, []);
34
- return Lt(t, s, a, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
35
+ return Tt(t, s, f, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
35
36
  };
36
37
  function Dt(t, e) {
37
38
  if (typeof t == "function")
@@ -54,42 +55,56 @@ function It(...t) {
54
55
  };
55
56
  };
56
57
  }
57
- function bn(...t) {
58
+ function En(...t) {
58
59
  return g.useCallback(It(...t), t);
59
60
  }
60
- function Rn(t, e = []) {
61
+ function Pn(t, e) {
62
+ const n = g.createContext(e), o = (i) => {
63
+ const { children: s, ...c } = i, f = g.useMemo(() => c, Object.values(c));
64
+ return /* @__PURE__ */ nt(n.Provider, { value: f, children: s });
65
+ };
66
+ o.displayName = t + "Provider";
67
+ function r(i) {
68
+ const s = g.useContext(n);
69
+ if (s) return s;
70
+ if (e !== void 0) return e;
71
+ throw new Error(`\`${i}\` must be used within \`${t}\``);
72
+ }
73
+ return [o, r];
74
+ }
75
+ function Ln(t, e = []) {
61
76
  let n = [];
62
77
  function o(i, s) {
63
- const c = g.createContext(s), a = n.length;
78
+ const c = g.createContext(s), f = n.length;
64
79
  n = [...n, s];
65
- const f = (u) => {
66
- var y;
67
- const { scope: d, children: m, ...h } = u, p = ((y = d == null ? void 0 : d[t]) == null ? void 0 : y[a]) || c, w = g.useMemo(() => h, Object.values(h));
68
- return /* @__PURE__ */ nt(p.Provider, { value: w, children: m });
80
+ const a = (u) => {
81
+ var w;
82
+ const { scope: d, children: m, ...h } = u, p = ((w = d == null ? void 0 : d[t]) == null ? void 0 : w[f]) || c, y = g.useMemo(() => h, Object.values(h));
83
+ return /* @__PURE__ */ nt(p.Provider, { value: y, children: m });
69
84
  };
70
- f.displayName = i + "Provider";
85
+ a.displayName = i + "Provider";
71
86
  function l(u, d) {
72
87
  var p;
73
- const m = ((p = d == null ? void 0 : d[t]) == null ? void 0 : p[a]) || c, h = g.useContext(m);
88
+ const m = ((p = d == null ? void 0 : d[t]) == null ? void 0 : p[f]) || c, h = g.useContext(m);
74
89
  if (h) return h;
75
90
  if (s !== void 0) return s;
76
91
  throw new Error(`\`${u}\` must be used within \`${i}\``);
77
92
  }
78
- return [f, l];
93
+ return [a, l];
79
94
  }
80
95
  const r = () => {
81
96
  const i = n.map((s) => g.createContext(s));
82
97
  return function(c) {
83
- const a = (c == null ? void 0 : c[t]) || i;
98
+ const f = (c == null ? void 0 : c[t]) || i;
84
99
  return g.useMemo(
85
- () => ({ [`__scope${t}`]: { ...c, [t]: a } }),
86
- [c, a]
100
+ () => ({ [`__scope${t}`]: { ...c, [t]: f } }),
101
+ [c, f]
87
102
  );
88
103
  };
89
104
  };
90
- return r.scopeName = t, [o, ce(r, ...e)];
105
+ return r.scopeName = t, [o, le(r, ...e)];
91
106
  }
92
- function ce(...t) {
107
+ function le(...t) {
93
108
  const e = t[0];
94
109
  if (t.length === 1) return e;
95
110
  const n = () => {
@@ -98,8 +113,8 @@ function ce(...t) {
98
113
  scopeName: r.scopeName
99
114
  }));
100
115
  return function(i) {
101
- const s = o.reduce((c, { useScope: a, scopeName: f }) => {
102
- const u = a(i)[`__scope${f}`];
116
+ const s = o.reduce((c, { useScope: f, scopeName: a }) => {
117
+ const u = f(i)[`__scope${a}`];
103
118
  return { ...c, ...u };
104
119
  }, {});
105
120
  return g.useMemo(() => ({ [`__scope${e.scopeName}`]: s }), [s]);
@@ -107,25 +122,25 @@ function ce(...t) {
107
122
  };
108
123
  return n.scopeName = e.scopeName, n;
109
124
  }
110
- function Sn(t, e, { checkForDefaultPrevented: n = !0 } = {}) {
125
+ function Tn(t, e, { checkForDefaultPrevented: n = !0 } = {}) {
111
126
  return function(r) {
112
127
  if (t == null || t(r), n === !1 || !r.defaultPrevented)
113
128
  return e == null ? void 0 : e(r);
114
129
  };
115
130
  }
116
- var bt = globalThis != null && globalThis.document ? g.useLayoutEffect : () => {
117
- }, le = g[" useInsertionEffect ".trim().toString()] || bt;
118
- function Cn({
131
+ var Rt = globalThis != null && globalThis.document ? g.useLayoutEffect : () => {
132
+ }, fe = g[" useInsertionEffect ".trim().toString()] || Rt;
133
+ function Dn({
119
134
  prop: t,
120
135
  defaultProp: e,
121
136
  onChange: n = () => {
122
137
  },
123
138
  caller: o
124
139
  }) {
125
- const [r, i, s] = fe({
140
+ const [r, i, s] = ae({
126
141
  defaultProp: e,
127
142
  onChange: n
128
- }), c = t !== void 0, a = c ? t : r;
143
+ }), c = t !== void 0, f = c ? t : r;
129
144
  {
130
145
  const l = g.useRef(t !== void 0);
131
146
  g.useEffect(() => {
@@ -135,37 +150,37 @@ function Cn({
135
150
  ), l.current = c;
136
151
  }, [c, o]);
137
152
  }
138
- const f = g.useCallback(
153
+ const a = g.useCallback(
139
154
  (l) => {
140
155
  var u;
141
156
  if (c) {
142
- const d = ae(l) ? l(t) : l;
157
+ const d = ue(l) ? l(t) : l;
143
158
  d !== t && ((u = s.current) == null || u.call(s, d));
144
159
  } else
145
160
  i(l);
146
161
  },
147
162
  [c, t, i, s]
148
163
  );
149
- return [a, f];
164
+ return [f, a];
150
165
  }
151
- function fe({
166
+ function ae({
152
167
  defaultProp: t,
153
168
  onChange: e
154
169
  }) {
155
170
  const [n, o] = g.useState(t), r = g.useRef(n), i = g.useRef(e);
156
- return le(() => {
171
+ return fe(() => {
157
172
  i.current = e;
158
173
  }, [e]), g.useEffect(() => {
159
174
  var s;
160
175
  r.current !== n && ((s = i.current) == null || s.call(i, n), r.current = n);
161
176
  }, [n, r]), [n, o, i];
162
177
  }
163
- function ae(t) {
178
+ function ue(t) {
164
179
  return typeof t == "function";
165
180
  }
166
- function An(t) {
181
+ function Mn(t) {
167
182
  const [e, n] = g.useState(void 0);
168
- return bt(() => {
183
+ return Rt(() => {
169
184
  if (t) {
170
185
  n({ width: t.offsetWidth, height: t.offsetHeight });
171
186
  const o = new ResizeObserver((r) => {
@@ -174,8 +189,8 @@ function An(t) {
174
189
  const i = r[0];
175
190
  let s, c;
176
191
  if ("borderBoxSize" in i) {
177
- const a = i.borderBoxSize, f = Array.isArray(a) ? a[0] : a;
178
- s = f.inlineSize, c = f.blockSize;
192
+ const f = i.borderBoxSize, a = Array.isArray(f) ? f[0] : f;
193
+ s = a.inlineSize, c = a.blockSize;
179
194
  } else
180
195
  s = t.offsetWidth, c = t.offsetHeight;
181
196
  n({ width: s, height: c });
@@ -185,57 +200,68 @@ function An(t) {
185
200
  n(void 0);
186
201
  }, [t]), e;
187
202
  }
203
+ /**
204
+ * @license lucide-react v1.16.0 - ISC
205
+ *
206
+ * This source code is licensed under the ISC license.
207
+ * See the LICENSE file in the root directory of this source tree.
208
+ */
209
+ const de = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], kn = oe("chevron-down", de);
210
+ var me = Symbol.for("react.lazy"), ct = g[" use ".trim().toString()];
211
+ function he(t) {
212
+ return typeof t == "object" && t !== null && "then" in t;
213
+ }
214
+ function Ht(t) {
215
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === me && "_payload" in t && he(t._payload);
216
+ }
188
217
  // @__NO_SIDE_EFFECTS__
189
- function ue(t) {
190
- const e = /* @__PURE__ */ me(t), n = g.forwardRef((o, r) => {
191
- const { children: i, ...s } = o, c = g.Children.toArray(i), a = c.find(he);
192
- if (a) {
193
- const f = a.props.children, l = c.map((u) => u === a ? g.Children.count(f) > 1 ? g.Children.only(null) : g.isValidElement(f) ? f.props.children : null : u);
194
- return /* @__PURE__ */ nt(e, { ...s, ref: r, children: g.isValidElement(f) ? g.cloneElement(f, void 0, l) : null });
218
+ function ge(t) {
219
+ const e = /* @__PURE__ */ ye(t), n = g.forwardRef((o, r) => {
220
+ let { children: i, ...s } = o;
221
+ Ht(i) && typeof ct == "function" && (i = ct(i._payload));
222
+ const c = g.Children.toArray(i), f = c.find(xe);
223
+ if (f) {
224
+ const a = f.props.children, l = c.map((u) => u === f ? g.Children.count(a) > 1 ? g.Children.only(null) : g.isValidElement(a) ? a.props.children : null : u);
225
+ return /* @__PURE__ */ nt(e, { ...s, ref: r, children: g.isValidElement(a) ? g.cloneElement(a, void 0, l) : null });
195
226
  }
196
227
  return /* @__PURE__ */ nt(e, { ...s, ref: r, children: i });
197
228
  });
198
229
  return n.displayName = `${t}.Slot`, n;
199
230
  }
200
- var de = /* @__PURE__ */ ue("Slot");
231
+ var pe = /* @__PURE__ */ ge("Slot");
201
232
  // @__NO_SIDE_EFFECTS__
202
- function me(t) {
233
+ function ye(t) {
203
234
  const e = g.forwardRef((n, o) => {
204
- const { children: r, ...i } = n;
205
- if (g.isValidElement(r)) {
206
- const s = pe(r), c = ge(i, r.props);
235
+ let { children: r, ...i } = n;
236
+ if (Ht(r) && typeof ct == "function" && (r = ct(r._payload)), g.isValidElement(r)) {
237
+ const s = be(r), c = ve(i, r.props);
207
238
  return r.type !== g.Fragment && (c.ref = o ? It(o, s) : s), g.cloneElement(r, c);
208
239
  }
209
240
  return g.Children.count(r) > 1 ? g.Children.only(null) : null;
210
241
  });
211
242
  return e.displayName = `${t}.SlotClone`, e;
212
243
  }
213
- var jt = Symbol("radix.slottable");
214
- // @__NO_SIDE_EFFECTS__
215
- function On(t) {
216
- const e = ({ children: n }) => /* @__PURE__ */ nt(ne, { children: n });
217
- return e.displayName = `${t}.Slottable`, e.__radixId = jt, e;
218
- }
219
- function he(t) {
220
- return g.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === jt;
244
+ var we = Symbol("radix.slottable");
245
+ function xe(t) {
246
+ return g.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === we;
221
247
  }
222
- function ge(t, e) {
248
+ function ve(t, e) {
223
249
  const n = { ...e };
224
250
  for (const o in e) {
225
251
  const r = t[o], i = e[o];
226
252
  /^on[A-Z]/.test(o) ? r && i ? n[o] = (...c) => {
227
- const a = i(...c);
228
- return r(...c), a;
253
+ const f = i(...c);
254
+ return r(...c), f;
229
255
  } : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...i } : o === "className" && (n[o] = [r, i].filter(Boolean).join(" "));
230
256
  }
231
257
  return { ...t, ...n };
232
258
  }
233
- function pe(t) {
259
+ function be(t) {
234
260
  var o, r;
235
261
  let e = (o = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : o.get, n = e && "isReactWarning" in e && e.isReactWarning;
236
262
  return n ? t.ref : (e = (r = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : r.get, n = e && "isReactWarning" in e && e.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
237
263
  }
238
- const we = se(
264
+ const Re = ce(
239
265
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
240
266
  {
241
267
  variants: {
@@ -260,9 +286,9 @@ const we = se(
260
286
  size: "default"
261
287
  }
262
288
  }
263
- ), ye = g.forwardRef(({ className: t, variant: e, size: n, asChild: o = !1, ...r }, i) => /* @__PURE__ */ nt(o ? de : "button", { className: re(we({ variant: e, size: n, className: t })), ref: i, ...r }));
264
- ye.displayName = "Button";
265
- function xe(t) {
289
+ ), Ce = g.forwardRef(({ className: t, variant: e, size: n, asChild: o = !1, ...r }, i) => /* @__PURE__ */ nt(o ? pe : "button", { className: ie(Re({ variant: e, size: n, className: t })), ref: i, ...r }));
290
+ Ce.displayName = "Button";
291
+ function Se(t) {
266
292
  const e = g.useRef(t);
267
293
  return g.useEffect(() => {
268
294
  e.current = t;
@@ -271,8 +297,8 @@ function xe(t) {
271
297
  return (o = e.current) == null ? void 0 : o.call(e, ...n);
272
298
  }, []);
273
299
  }
274
- function En(t, e = globalThis == null ? void 0 : globalThis.document) {
275
- const n = xe(t);
300
+ function $n(t, e = globalThis == null ? void 0 : globalThis.document) {
301
+ const n = Se(t);
276
302
  g.useEffect(() => {
277
303
  const o = (r) => {
278
304
  r.key === "Escape" && n(r);
@@ -280,25 +306,25 @@ function En(t, e = globalThis == null ? void 0 : globalThis.document) {
280
306
  return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
281
307
  }, [n, e]);
282
308
  }
283
- var ve = g[" useId ".trim().toString()] || (() => {
284
- }), be = 0;
285
- function Pn(t) {
286
- const [e, n] = g.useState(ve());
287
- return bt(() => {
288
- n((o) => o ?? String(be++));
309
+ var Ae = g[" useId ".trim().toString()] || (() => {
310
+ }), Oe = 0;
311
+ function _n(t) {
312
+ const [e, n] = g.useState(Ae());
313
+ return Rt(() => {
314
+ n((o) => o ?? String(Oe++));
289
315
  }, [t]), e ? `radix-${e}` : "";
290
316
  }
291
- const Re = ["top", "right", "bottom", "left"], Y = Math.min, $ = Math.max, ct = Math.round, it = Math.floor, I = (t) => ({
317
+ const Ee = ["top", "right", "bottom", "left"], K = Math.min, $ = Math.max, lt = Math.round, it = Math.floor, j = (t) => ({
292
318
  x: t,
293
319
  y: t
294
- }), Se = {
320
+ }), Pe = {
295
321
  left: "right",
296
322
  right: "left",
297
323
  bottom: "top",
298
324
  top: "bottom"
299
325
  };
300
- function yt(t, e, n) {
301
- return $(t, Y(e, n));
326
+ function xt(t, e, n) {
327
+ return $(t, K(e, n));
302
328
  }
303
329
  function H(t, e) {
304
330
  return typeof t == "function" ? t(e) : t;
@@ -309,55 +335,55 @@ function X(t) {
309
335
  function tt(t) {
310
336
  return t.split("-")[1];
311
337
  }
312
- function Rt(t) {
338
+ function Ct(t) {
313
339
  return t === "x" ? "y" : "x";
314
340
  }
315
341
  function St(t) {
316
342
  return t === "y" ? "height" : "width";
317
343
  }
318
- function z(t) {
344
+ function B(t) {
319
345
  const e = t[0];
320
346
  return e === "t" || e === "b" ? "y" : "x";
321
347
  }
322
- function Ct(t) {
323
- return Rt(z(t));
348
+ function At(t) {
349
+ return Ct(B(t));
324
350
  }
325
- function Ce(t, e, n) {
351
+ function Le(t, e, n) {
326
352
  n === void 0 && (n = !1);
327
- const o = tt(t), r = Ct(t), i = St(r);
353
+ const o = tt(t), r = At(t), i = St(r);
328
354
  let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
329
- return e.reference[i] > e.floating[i] && (s = lt(s)), [s, lt(s)];
355
+ return e.reference[i] > e.floating[i] && (s = ft(s)), [s, ft(s)];
330
356
  }
331
- function Ae(t) {
332
- const e = lt(t);
333
- return [xt(t), e, xt(e)];
357
+ function Te(t) {
358
+ const e = ft(t);
359
+ return [vt(t), e, vt(e)];
334
360
  }
335
- function xt(t) {
361
+ function vt(t) {
336
362
  return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
337
363
  }
338
- const Tt = ["left", "right"], Mt = ["right", "left"], Oe = ["top", "bottom"], Ee = ["bottom", "top"];
339
- function Pe(t, e, n) {
364
+ const Mt = ["left", "right"], kt = ["right", "left"], De = ["top", "bottom"], Me = ["bottom", "top"];
365
+ function ke(t, e, n) {
340
366
  switch (t) {
341
367
  case "top":
342
368
  case "bottom":
343
- return n ? e ? Mt : Tt : e ? Tt : Mt;
369
+ return n ? e ? kt : Mt : e ? Mt : kt;
344
370
  case "left":
345
371
  case "right":
346
- return e ? Oe : Ee;
372
+ return e ? De : Me;
347
373
  default:
348
374
  return [];
349
375
  }
350
376
  }
351
- function Le(t, e, n, o) {
377
+ function $e(t, e, n, o) {
352
378
  const r = tt(t);
353
- let i = Pe(X(t), n === "start", o);
354
- return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(xt)))), i;
379
+ let i = ke(X(t), n === "start", o);
380
+ return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(vt)))), i;
355
381
  }
356
- function lt(t) {
382
+ function ft(t) {
357
383
  const e = X(t);
358
- return Se[e] + t.slice(e.length);
384
+ return Pe[e] + t.slice(e.length);
359
385
  }
360
- function De(t) {
386
+ function _e(t) {
361
387
  return {
362
388
  top: 0,
363
389
  right: 0,
@@ -366,15 +392,15 @@ function De(t) {
366
392
  ...t
367
393
  };
368
394
  }
369
- function Ht(t) {
370
- return typeof t != "number" ? De(t) : {
395
+ function Xt(t) {
396
+ return typeof t != "number" ? _e(t) : {
371
397
  top: t,
372
398
  right: t,
373
399
  bottom: t,
374
400
  left: t
375
401
  };
376
402
  }
377
- function ft(t) {
403
+ function at(t) {
378
404
  const {
379
405
  x: e,
380
406
  y: n,
@@ -392,14 +418,14 @@ function ft(t) {
392
418
  y: n
393
419
  };
394
420
  }
395
- function kt(t, e, n) {
421
+ function $t(t, e, n) {
396
422
  let {
397
423
  reference: o,
398
424
  floating: r
399
425
  } = t;
400
- const i = z(e), s = Ct(e), c = St(s), a = X(e), f = i === "y", l = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, d = o[c] / 2 - r[c] / 2;
426
+ const i = B(e), s = At(e), c = St(s), f = X(e), a = i === "y", l = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, d = o[c] / 2 - r[c] / 2;
401
427
  let m;
402
- switch (a) {
428
+ switch (f) {
403
429
  case "top":
404
430
  m = {
405
431
  x: l,
@@ -432,15 +458,15 @@ function kt(t, e, n) {
432
458
  }
433
459
  switch (tt(e)) {
434
460
  case "start":
435
- m[s] -= d * (n && f ? -1 : 1);
461
+ m[s] -= d * (n && a ? -1 : 1);
436
462
  break;
437
463
  case "end":
438
- m[s] += d * (n && f ? -1 : 1);
464
+ m[s] += d * (n && a ? -1 : 1);
439
465
  break;
440
466
  }
441
467
  return m;
442
468
  }
443
- async function Te(t, e) {
469
+ async function Ne(t, e) {
444
470
  var n;
445
471
  e === void 0 && (e = {});
446
472
  const {
@@ -449,18 +475,18 @@ async function Te(t, e) {
449
475
  platform: i,
450
476
  rects: s,
451
477
  elements: c,
452
- strategy: a
478
+ strategy: f
453
479
  } = t, {
454
- boundary: f = "clippingAncestors",
480
+ boundary: a = "clippingAncestors",
455
481
  rootBoundary: l = "viewport",
456
482
  elementContext: u = "floating",
457
483
  altBoundary: d = !1,
458
484
  padding: m = 0
459
- } = H(e, t), h = Ht(m), w = c[d ? u === "floating" ? "reference" : "floating" : u], y = ft(await i.getClippingRect({
460
- element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
461
- boundary: f,
485
+ } = H(e, t), h = Xt(m), y = c[d ? u === "floating" ? "reference" : "floating" : u], w = at(await i.getClippingRect({
486
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
487
+ boundary: a,
462
488
  rootBoundary: l,
463
- strategy: a
489
+ strategy: f
464
490
  })), b = u === "floating" ? {
465
491
  x: o,
466
492
  y: r,
@@ -472,20 +498,20 @@ async function Te(t, e) {
472
498
  } : {
473
499
  x: 1,
474
500
  y: 1
475
- }, R = ft(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
501
+ }, R = at(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
476
502
  elements: c,
477
503
  rect: b,
478
504
  offsetParent: v,
479
- strategy: a
505
+ strategy: f
480
506
  }) : b);
481
507
  return {
482
- top: (y.top - R.top + h.top) / x.y,
483
- bottom: (R.bottom - y.bottom + h.bottom) / x.y,
484
- left: (y.left - R.left + h.left) / x.x,
485
- right: (R.right - y.right + h.right) / x.x
508
+ top: (w.top - R.top + h.top) / x.y,
509
+ bottom: (R.bottom - w.bottom + h.bottom) / x.y,
510
+ left: (w.left - R.left + h.left) / x.x,
511
+ right: (R.right - w.right + h.right) / x.x
486
512
  };
487
513
  }
488
- const Me = 50, ke = async (t, e, n) => {
514
+ const We = 50, Fe = async (t, e, n) => {
489
515
  const {
490
516
  placement: o = "bottom",
491
517
  strategy: r = "absolute",
@@ -493,29 +519,29 @@ const Me = 50, ke = async (t, e, n) => {
493
519
  platform: s
494
520
  } = n, c = s.detectOverflow ? s : {
495
521
  ...s,
496
- detectOverflow: Te
497
- }, a = await (s.isRTL == null ? void 0 : s.isRTL(e));
498
- let f = await s.getElementRects({
522
+ detectOverflow: Ne
523
+ }, f = await (s.isRTL == null ? void 0 : s.isRTL(e));
524
+ let a = await s.getElementRects({
499
525
  reference: t,
500
526
  floating: e,
501
527
  strategy: r
502
528
  }), {
503
529
  x: l,
504
530
  y: u
505
- } = kt(f, o, a), d = o, m = 0;
531
+ } = $t(a, o, f), d = o, m = 0;
506
532
  const h = {};
507
533
  for (let p = 0; p < i.length; p++) {
508
- const w = i[p];
509
- if (!w)
534
+ const y = i[p];
535
+ if (!y)
510
536
  continue;
511
537
  const {
512
- name: y,
538
+ name: w,
513
539
  fn: b
514
- } = w, {
540
+ } = y, {
515
541
  x: v,
516
542
  y: x,
517
543
  data: R,
518
- reset: S
544
+ reset: C
519
545
  } = await b({
520
546
  x: l,
521
547
  y: u,
@@ -523,24 +549,24 @@ const Me = 50, ke = async (t, e, n) => {
523
549
  placement: d,
524
550
  strategy: r,
525
551
  middlewareData: h,
526
- rects: f,
552
+ rects: a,
527
553
  platform: c,
528
554
  elements: {
529
555
  reference: t,
530
556
  floating: e
531
557
  }
532
558
  });
533
- l = v ?? l, u = x ?? u, h[y] = {
534
- ...h[y],
559
+ l = v ?? l, u = x ?? u, h[w] = {
560
+ ...h[w],
535
561
  ...R
536
- }, S && m < Me && (m++, typeof S == "object" && (S.placement && (d = S.placement), S.rects && (f = S.rects === !0 ? await s.getElementRects({
562
+ }, C && m < We && (m++, typeof C == "object" && (C.placement && (d = C.placement), C.rects && (a = C.rects === !0 ? await s.getElementRects({
537
563
  reference: t,
538
564
  floating: e,
539
565
  strategy: r
540
- }) : S.rects), {
566
+ }) : C.rects), {
541
567
  x: l,
542
568
  y: u
543
- } = kt(f, d, a)), p = -1);
569
+ } = $t(a, d, f)), p = -1);
544
570
  }
545
571
  return {
546
572
  x: l,
@@ -549,7 +575,7 @@ const Me = 50, ke = async (t, e, n) => {
549
575
  strategy: r,
550
576
  middlewareData: h
551
577
  };
552
- }, $e = (t) => ({
578
+ }, Ve = (t) => ({
553
579
  name: "arrow",
554
580
  options: t,
555
581
  async fn(e) {
@@ -560,33 +586,33 @@ const Me = 50, ke = async (t, e, n) => {
560
586
  rects: i,
561
587
  platform: s,
562
588
  elements: c,
563
- middlewareData: a
589
+ middlewareData: f
564
590
  } = e, {
565
- element: f,
591
+ element: a,
566
592
  padding: l = 0
567
593
  } = H(t, e) || {};
568
- if (f == null)
594
+ if (a == null)
569
595
  return {};
570
- const u = Ht(l), d = {
596
+ const u = Xt(l), d = {
571
597
  x: n,
572
598
  y: o
573
- }, m = Ct(r), h = St(m), p = await s.getDimensions(f), w = m === "y", y = w ? "top" : "left", b = w ? "bottom" : "right", v = w ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[m] - d[m] - i.floating[h], R = d[m] - i.reference[m], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
574
- let A = S ? S[v] : 0;
575
- (!A || !await (s.isElement == null ? void 0 : s.isElement(S))) && (A = c.floating[v] || i.floating[h]);
576
- const L = x / 2 - R / 2, F = A / 2 - p[h] / 2 - 1, P = Y(u[y], F), N = Y(u[b], F), M = P, D = A - p[h] - N, O = A / 2 - p[h] / 2 + L, B = yt(M, O, D), E = !a.arrow && tt(r) != null && O !== B && i.reference[h] / 2 - (O < M ? P : N) - p[h] / 2 < 0, T = E ? O < M ? O - M : O - D : 0;
599
+ }, m = At(r), h = St(m), p = await s.getDimensions(a), y = m === "y", w = y ? "top" : "left", b = y ? "bottom" : "right", v = y ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[m] - d[m] - i.floating[h], R = d[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
600
+ let A = C ? C[v] : 0;
601
+ (!A || !await (s.isElement == null ? void 0 : s.isElement(C))) && (A = c.floating[v] || i.floating[h]);
602
+ const L = x / 2 - R / 2, N = A / 2 - p[h] / 2 - 1, P = K(u[w], N), W = K(u[b], N), M = P, T = A - p[h] - W, O = A / 2 - p[h] / 2 + L, z = xt(M, O, T), E = !f.arrow && tt(r) != null && O !== z && i.reference[h] / 2 - (O < M ? P : W) - p[h] / 2 < 0, D = E ? O < M ? O - M : O - T : 0;
577
603
  return {
578
- [m]: d[m] + T,
604
+ [m]: d[m] + D,
579
605
  data: {
580
- [m]: B,
581
- centerOffset: O - B - T,
606
+ [m]: z,
607
+ centerOffset: O - z - D,
582
608
  ...E && {
583
- alignmentOffset: T
609
+ alignmentOffset: D
584
610
  }
585
611
  },
586
612
  reset: E
587
613
  };
588
614
  }
589
- }), _e = function(t) {
615
+ }), ze = function(t) {
590
616
  return t === void 0 && (t = {}), {
591
617
  name: "flip",
592
618
  options: t,
@@ -597,8 +623,8 @@ const Me = 50, ke = async (t, e, n) => {
597
623
  middlewareData: i,
598
624
  rects: s,
599
625
  initialPlacement: c,
600
- platform: a,
601
- elements: f
626
+ platform: f,
627
+ elements: a
602
628
  } = e, {
603
629
  mainAxis: l = !0,
604
630
  crossAxis: u = !0,
@@ -606,51 +632,51 @@ const Me = 50, ke = async (t, e, n) => {
606
632
  fallbackStrategy: m = "bestFit",
607
633
  fallbackAxisSideDirection: h = "none",
608
634
  flipAlignment: p = !0,
609
- ...w
635
+ ...y
610
636
  } = H(t, e);
611
637
  if ((n = i.arrow) != null && n.alignmentOffset)
612
638
  return {};
613
- const y = X(r), b = z(c), v = X(c) === c, x = await (a.isRTL == null ? void 0 : a.isRTL(f.floating)), R = d || (v || !p ? [lt(c)] : Ae(c)), S = h !== "none";
614
- !d && S && R.push(...Le(c, p, h, x));
615
- const A = [c, ...R], L = await a.detectOverflow(e, w), F = [];
639
+ const w = X(r), b = B(c), v = X(c) === c, x = await (f.isRTL == null ? void 0 : f.isRTL(a.floating)), R = d || (v || !p ? [ft(c)] : Te(c)), C = h !== "none";
640
+ !d && C && R.push(...$e(c, p, h, x));
641
+ const A = [c, ...R], L = await f.detectOverflow(e, y), N = [];
616
642
  let P = ((o = i.flip) == null ? void 0 : o.overflows) || [];
617
- if (l && F.push(L[y]), u) {
618
- const O = Ce(r, s, x);
619
- F.push(L[O[0]], L[O[1]]);
643
+ if (l && N.push(L[w]), u) {
644
+ const O = Le(r, s, x);
645
+ N.push(L[O[0]], L[O[1]]);
620
646
  }
621
647
  if (P = [...P, {
622
648
  placement: r,
623
- overflows: F
624
- }], !F.every((O) => O <= 0)) {
625
- var N, M;
626
- const O = (((N = i.flip) == null ? void 0 : N.index) || 0) + 1, B = A[O];
627
- if (B && (!(u === "alignment" ? b !== z(B) : !1) || // We leave the current main axis only if every placement on that axis
649
+ overflows: N
650
+ }], !N.every((O) => O <= 0)) {
651
+ var W, M;
652
+ const O = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, z = A[O];
653
+ if (z && (!(u === "alignment" ? b !== B(z) : !1) || // We leave the current main axis only if every placement on that axis
628
654
  // overflows the main axis.
629
- P.every((C) => z(C.placement) === b ? C.overflows[0] > 0 : !0)))
655
+ P.every((S) => B(S.placement) === b ? S.overflows[0] > 0 : !0)))
630
656
  return {
631
657
  data: {
632
658
  index: O,
633
659
  overflows: P
634
660
  },
635
661
  reset: {
636
- placement: B
662
+ placement: z
637
663
  }
638
664
  };
639
- let E = (M = P.filter((T) => T.overflows[0] <= 0).sort((T, C) => T.overflows[1] - C.overflows[1])[0]) == null ? void 0 : M.placement;
665
+ let E = (M = P.filter((D) => D.overflows[0] <= 0).sort((D, S) => D.overflows[1] - S.overflows[1])[0]) == null ? void 0 : M.placement;
640
666
  if (!E)
641
667
  switch (m) {
642
668
  case "bestFit": {
643
- var D;
644
- const T = (D = P.filter((C) => {
645
- if (S) {
646
- const k = z(C.placement);
669
+ var T;
670
+ const D = (T = P.filter((S) => {
671
+ if (C) {
672
+ const k = B(S.placement);
647
673
  return k === b || // Create a bias to the `y` side axis due to horizontal
648
674
  // reading directions favoring greater width.
649
675
  k === "y";
650
676
  }
651
677
  return !0;
652
- }).map((C) => [C.placement, C.overflows.filter((k) => k > 0).reduce((k, U) => k + U, 0)]).sort((C, k) => C[1] - k[1])[0]) == null ? void 0 : D[0];
653
- T && (E = T);
678
+ }).map((S) => [S.placement, S.overflows.filter((k) => k > 0).reduce((k, q) => k + q, 0)]).sort((S, k) => S[1] - k[1])[0]) == null ? void 0 : T[0];
679
+ D && (E = D);
654
680
  break;
655
681
  }
656
682
  case "initialPlacement":
@@ -668,7 +694,7 @@ const Me = 50, ke = async (t, e, n) => {
668
694
  }
669
695
  };
670
696
  };
671
- function $t(t, e) {
697
+ function _t(t, e) {
672
698
  return {
673
699
  top: t.top - e.height,
674
700
  right: t.right - e.width,
@@ -676,10 +702,10 @@ function $t(t, e) {
676
702
  left: t.left - e.width
677
703
  };
678
704
  }
679
- function _t(t) {
680
- return Re.some((e) => t[e] >= 0);
705
+ function Nt(t) {
706
+ return Ee.some((e) => t[e] >= 0);
681
707
  }
682
- const Fe = function(t) {
708
+ const Be = function(t) {
683
709
  return t === void 0 && (t = {}), {
684
710
  name: "hide",
685
711
  options: t,
@@ -696,11 +722,11 @@ const Fe = function(t) {
696
722
  const s = await o.detectOverflow(e, {
697
723
  ...i,
698
724
  elementContext: "reference"
699
- }), c = $t(s, n.reference);
725
+ }), c = _t(s, n.reference);
700
726
  return {
701
727
  data: {
702
728
  referenceHiddenOffsets: c,
703
- referenceHidden: _t(c)
729
+ referenceHidden: Nt(c)
704
730
  }
705
731
  };
706
732
  }
@@ -708,11 +734,11 @@ const Fe = function(t) {
708
734
  const s = await o.detectOverflow(e, {
709
735
  ...i,
710
736
  altBoundary: !0
711
- }), c = $t(s, n.floating);
737
+ }), c = _t(s, n.floating);
712
738
  return {
713
739
  data: {
714
740
  escapedOffsets: c,
715
- escaped: _t(c)
741
+ escaped: Nt(c)
716
742
  }
717
743
  };
718
744
  }
@@ -721,13 +747,13 @@ const Fe = function(t) {
721
747
  }
722
748
  }
723
749
  };
724
- }, Xt = /* @__PURE__ */ new Set(["left", "top"]);
725
- async function Ne(t, e) {
750
+ }, Yt = /* @__PURE__ */ new Set(["left", "top"]);
751
+ async function je(t, e) {
726
752
  const {
727
753
  placement: n,
728
754
  platform: o,
729
755
  elements: r
730
- } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = X(n), c = tt(n), a = z(n) === "y", f = Xt.has(s) ? -1 : 1, l = i && a ? -1 : 1, u = H(e, t);
756
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = X(n), c = tt(n), f = B(n) === "y", a = Yt.has(s) ? -1 : 1, l = i && f ? -1 : 1, u = H(e, t);
731
757
  let {
732
758
  mainAxis: d,
733
759
  crossAxis: m,
@@ -741,15 +767,15 @@ async function Ne(t, e) {
741
767
  crossAxis: u.crossAxis || 0,
742
768
  alignmentAxis: u.alignmentAxis
743
769
  };
744
- return c && typeof h == "number" && (m = c === "end" ? h * -1 : h), a ? {
770
+ return c && typeof h == "number" && (m = c === "end" ? h * -1 : h), f ? {
745
771
  x: m * l,
746
- y: d * f
772
+ y: d * a
747
773
  } : {
748
- x: d * f,
774
+ x: d * a,
749
775
  y: m * l
750
776
  };
751
777
  }
752
- const We = function(t) {
778
+ const Ie = function(t) {
753
779
  return t === void 0 && (t = 0), {
754
780
  name: "offset",
755
781
  options: t,
@@ -760,18 +786,18 @@ const We = function(t) {
760
786
  y: i,
761
787
  placement: s,
762
788
  middlewareData: c
763
- } = e, a = await Ne(e, t);
789
+ } = e, f = await je(e, t);
764
790
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
765
- x: r + a.x,
766
- y: i + a.y,
791
+ x: r + f.x,
792
+ y: i + f.y,
767
793
  data: {
768
- ...a,
794
+ ...f,
769
795
  placement: s
770
796
  }
771
797
  };
772
798
  }
773
799
  };
774
- }, Ve = function(t) {
800
+ }, He = function(t) {
775
801
  return t === void 0 && (t = {}), {
776
802
  name: "shift",
777
803
  options: t,
@@ -784,42 +810,42 @@ const We = function(t) {
784
810
  } = e, {
785
811
  mainAxis: s = !0,
786
812
  crossAxis: c = !1,
787
- limiter: a = {
788
- fn: (y) => {
813
+ limiter: f = {
814
+ fn: (w) => {
789
815
  let {
790
816
  x: b,
791
817
  y: v
792
- } = y;
818
+ } = w;
793
819
  return {
794
820
  x: b,
795
821
  y: v
796
822
  };
797
823
  }
798
824
  },
799
- ...f
825
+ ...a
800
826
  } = H(t, e), l = {
801
827
  x: n,
802
828
  y: o
803
- }, u = await i.detectOverflow(e, f), d = z(X(r)), m = Rt(d);
829
+ }, u = await i.detectOverflow(e, a), d = B(X(r)), m = Ct(d);
804
830
  let h = l[m], p = l[d];
805
831
  if (s) {
806
- const y = m === "y" ? "top" : "left", b = m === "y" ? "bottom" : "right", v = h + u[y], x = h - u[b];
807
- h = yt(v, h, x);
832
+ const w = m === "y" ? "top" : "left", b = m === "y" ? "bottom" : "right", v = h + u[w], x = h - u[b];
833
+ h = xt(v, h, x);
808
834
  }
809
835
  if (c) {
810
- const y = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", v = p + u[y], x = p - u[b];
811
- p = yt(v, p, x);
836
+ const w = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", v = p + u[w], x = p - u[b];
837
+ p = xt(v, p, x);
812
838
  }
813
- const w = a.fn({
839
+ const y = f.fn({
814
840
  ...e,
815
841
  [m]: h,
816
842
  [d]: p
817
843
  });
818
844
  return {
819
- ...w,
845
+ ...y,
820
846
  data: {
821
- x: w.x - n,
822
- y: w.y - o,
847
+ x: y.x - n,
848
+ y: y.y - o,
823
849
  enabled: {
824
850
  [m]: s,
825
851
  [d]: c
@@ -828,7 +854,7 @@ const We = function(t) {
828
854
  };
829
855
  }
830
856
  };
831
- }, Be = function(t) {
857
+ }, Xe = function(t) {
832
858
  return t === void 0 && (t = {}), {
833
859
  options: t,
834
860
  fn(e) {
@@ -840,14 +866,14 @@ const We = function(t) {
840
866
  middlewareData: s
841
867
  } = e, {
842
868
  offset: c = 0,
843
- mainAxis: a = !0,
844
- crossAxis: f = !0
869
+ mainAxis: f = !0,
870
+ crossAxis: a = !0
845
871
  } = H(t, e), l = {
846
872
  x: n,
847
873
  y: o
848
- }, u = z(r), d = Rt(u);
874
+ }, u = B(r), d = Ct(u);
849
875
  let m = l[d], h = l[u];
850
- const p = H(c, e), w = typeof p == "number" ? {
876
+ const p = H(c, e), y = typeof p == "number" ? {
851
877
  mainAxis: p,
852
878
  crossAxis: 0
853
879
  } : {
@@ -855,14 +881,14 @@ const We = function(t) {
855
881
  crossAxis: 0,
856
882
  ...p
857
883
  };
858
- if (a) {
859
- const v = d === "y" ? "height" : "width", x = i.reference[d] - i.floating[v] + w.mainAxis, R = i.reference[d] + i.reference[v] - w.mainAxis;
884
+ if (f) {
885
+ const v = d === "y" ? "height" : "width", x = i.reference[d] - i.floating[v] + y.mainAxis, R = i.reference[d] + i.reference[v] - y.mainAxis;
860
886
  m < x ? m = x : m > R && (m = R);
861
887
  }
862
- if (f) {
863
- var y, b;
864
- const v = d === "y" ? "width" : "height", x = Xt.has(X(r)), R = i.reference[u] - i.floating[v] + (x && ((y = s.offset) == null ? void 0 : y[u]) || 0) + (x ? 0 : w.crossAxis), S = i.reference[u] + i.reference[v] + (x ? 0 : ((b = s.offset) == null ? void 0 : b[u]) || 0) - (x ? w.crossAxis : 0);
865
- h < R ? h = R : h > S && (h = S);
888
+ if (a) {
889
+ var w, b;
890
+ const v = d === "y" ? "width" : "height", x = Yt.has(X(r)), R = i.reference[u] - i.floating[v] + (x && ((w = s.offset) == null ? void 0 : w[u]) || 0) + (x ? 0 : y.crossAxis), C = i.reference[u] + i.reference[v] + (x ? 0 : ((b = s.offset) == null ? void 0 : b[u]) || 0) - (x ? y.crossAxis : 0);
891
+ h < R ? h = R : h > C && (h = C);
866
892
  }
867
893
  return {
868
894
  [d]: m,
@@ -870,7 +896,7 @@ const We = function(t) {
870
896
  };
871
897
  }
872
898
  };
873
- }, ze = function(t) {
899
+ }, Ye = function(t) {
874
900
  return t === void 0 && (t = {}), {
875
901
  name: "size",
876
902
  options: t,
@@ -882,28 +908,28 @@ const We = function(t) {
882
908
  platform: s,
883
909
  elements: c
884
910
  } = e, {
885
- apply: a = () => {
911
+ apply: f = () => {
886
912
  },
887
- ...f
888
- } = H(t, e), l = await s.detectOverflow(e, f), u = X(r), d = tt(r), m = z(r) === "y", {
913
+ ...a
914
+ } = H(t, e), l = await s.detectOverflow(e, a), u = X(r), d = tt(r), m = B(r) === "y", {
889
915
  width: h,
890
916
  height: p
891
917
  } = i.floating;
892
- let w, y;
893
- u === "top" || u === "bottom" ? (w = u, y = d === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = u, w = d === "end" ? "top" : "bottom");
894
- const b = p - l.top - l.bottom, v = h - l.left - l.right, x = Y(p - l[w], b), R = Y(h - l[y], v), S = !e.middlewareData.shift;
918
+ let y, w;
919
+ u === "top" || u === "bottom" ? (y = u, w = d === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = u, y = d === "end" ? "top" : "bottom");
920
+ const b = p - l.top - l.bottom, v = h - l.left - l.right, x = K(p - l[y], b), R = K(h - l[w], v), C = !e.middlewareData.shift;
895
921
  let A = x, L = R;
896
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (L = v), (o = e.middlewareData.shift) != null && o.enabled.y && (A = b), S && !d) {
897
- const P = $(l.left, 0), N = $(l.right, 0), M = $(l.top, 0), D = $(l.bottom, 0);
898
- m ? L = h - 2 * (P !== 0 || N !== 0 ? P + N : $(l.left, l.right)) : A = p - 2 * (M !== 0 || D !== 0 ? M + D : $(l.top, l.bottom));
922
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (L = v), (o = e.middlewareData.shift) != null && o.enabled.y && (A = b), C && !d) {
923
+ const P = $(l.left, 0), W = $(l.right, 0), M = $(l.top, 0), T = $(l.bottom, 0);
924
+ m ? L = h - 2 * (P !== 0 || W !== 0 ? P + W : $(l.left, l.right)) : A = p - 2 * (M !== 0 || T !== 0 ? M + T : $(l.top, l.bottom));
899
925
  }
900
- await a({
926
+ await f({
901
927
  ...e,
902
928
  availableWidth: L,
903
929
  availableHeight: A
904
930
  });
905
- const F = await s.getDimensions(c.floating);
906
- return h !== F.width || p !== F.height ? {
931
+ const N = await s.getDimensions(c.floating);
932
+ return h !== N.width || p !== N.height ? {
907
933
  reset: {
908
934
  rects: !0
909
935
  }
@@ -911,31 +937,31 @@ const We = function(t) {
911
937
  }
912
938
  };
913
939
  };
914
- function ut() {
940
+ function dt() {
915
941
  return typeof window < "u";
916
942
  }
917
943
  function et(t) {
918
- return Kt(t) ? (t.nodeName || "").toLowerCase() : "#document";
944
+ return qt(t) ? (t.nodeName || "").toLowerCase() : "#document";
919
945
  }
920
946
  function _(t) {
921
947
  var e;
922
948
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
923
949
  }
924
- function j(t) {
950
+ function I(t) {
925
951
  var e;
926
- return (e = (Kt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
952
+ return (e = (qt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
927
953
  }
928
- function Kt(t) {
929
- return ut() ? t instanceof Node || t instanceof _(t).Node : !1;
954
+ function qt(t) {
955
+ return dt() ? t instanceof Node || t instanceof _(t).Node : !1;
930
956
  }
931
- function W(t) {
932
- return ut() ? t instanceof Element || t instanceof _(t).Element : !1;
957
+ function F(t) {
958
+ return dt() ? t instanceof Element || t instanceof _(t).Element : !1;
933
959
  }
934
- function K(t) {
935
- return ut() ? t instanceof HTMLElement || t instanceof _(t).HTMLElement : !1;
960
+ function Y(t) {
961
+ return dt() ? t instanceof HTMLElement || t instanceof _(t).HTMLElement : !1;
936
962
  }
937
- function Ft(t) {
938
- return !ut() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof _(t).ShadowRoot;
963
+ function Wt(t) {
964
+ return !dt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof _(t).ShadowRoot;
939
965
  }
940
966
  function rt(t) {
941
967
  const {
@@ -946,10 +972,10 @@ function rt(t) {
946
972
  } = V(t);
947
973
  return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && r !== "inline" && r !== "contents";
948
974
  }
949
- function Ie(t) {
975
+ function qe(t) {
950
976
  return /^(table|td|th)$/.test(et(t));
951
977
  }
952
- function dt(t) {
978
+ function mt(t) {
953
979
  try {
954
980
  if (t.matches(":popover-open"))
955
981
  return !0;
@@ -961,25 +987,25 @@ function dt(t) {
961
987
  return !1;
962
988
  }
963
989
  }
964
- const je = /transform|translate|scale|rotate|perspective|filter/, He = /paint|layout|strict|content/, Z = (t) => !!t && t !== "none";
965
- let gt;
966
- function At(t) {
967
- const e = W(t) ? V(t) : t;
968
- return Z(e.transform) || Z(e.translate) || Z(e.scale) || Z(e.rotate) || Z(e.perspective) || !Ot() && (Z(e.backdropFilter) || Z(e.filter)) || je.test(e.willChange || "") || He.test(e.contain || "");
990
+ const Ke = /transform|translate|scale|rotate|perspective|filter/, Ue = /paint|layout|strict|content/, Z = (t) => !!t && t !== "none";
991
+ let pt;
992
+ function Ot(t) {
993
+ const e = F(t) ? V(t) : t;
994
+ return Z(e.transform) || Z(e.translate) || Z(e.scale) || Z(e.rotate) || Z(e.perspective) || !Et() && (Z(e.backdropFilter) || Z(e.filter)) || Ke.test(e.willChange || "") || Ue.test(e.contain || "");
969
995
  }
970
- function Xe(t) {
971
- let e = q(t);
972
- for (; K(e) && !Q(e); ) {
973
- if (At(e))
996
+ function Ze(t) {
997
+ let e = U(t);
998
+ for (; Y(e) && !Q(e); ) {
999
+ if (Ot(e))
974
1000
  return e;
975
- if (dt(e))
1001
+ if (mt(e))
976
1002
  return null;
977
- e = q(e);
1003
+ e = U(e);
978
1004
  }
979
1005
  return null;
980
1006
  }
981
- function Ot() {
982
- return gt == null && (gt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), gt;
1007
+ function Et() {
1008
+ return pt == null && (pt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), pt;
983
1009
  }
984
1010
  function Q(t) {
985
1011
  return /^(html|body|#document)$/.test(et(t));
@@ -987,8 +1013,8 @@ function Q(t) {
987
1013
  function V(t) {
988
1014
  return _(t).getComputedStyle(t);
989
1015
  }
990
- function mt(t) {
991
- return W(t) ? {
1016
+ function ht(t) {
1017
+ return F(t) ? {
992
1018
  scrollLeft: t.scrollLeft,
993
1019
  scrollTop: t.scrollTop
994
1020
  } : {
@@ -996,140 +1022,140 @@ function mt(t) {
996
1022
  scrollTop: t.scrollY
997
1023
  };
998
1024
  }
999
- function q(t) {
1025
+ function U(t) {
1000
1026
  if (et(t) === "html")
1001
1027
  return t;
1002
1028
  const e = (
1003
1029
  // Step into the shadow DOM of the parent of a slotted node.
1004
1030
  t.assignedSlot || // DOM Element detected.
1005
1031
  t.parentNode || // ShadowRoot detected.
1006
- Ft(t) && t.host || // Fallback.
1007
- j(t)
1032
+ Wt(t) && t.host || // Fallback.
1033
+ I(t)
1008
1034
  );
1009
- return Ft(e) ? e.host : e;
1035
+ return Wt(e) ? e.host : e;
1010
1036
  }
1011
- function Ut(t) {
1012
- const e = q(t);
1013
- return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : K(e) && rt(e) ? e : Ut(e);
1037
+ function Kt(t) {
1038
+ const e = U(t);
1039
+ return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && rt(e) ? e : Kt(e);
1014
1040
  }
1015
1041
  function ot(t, e, n) {
1016
1042
  var o;
1017
1043
  e === void 0 && (e = []), n === void 0 && (n = !0);
1018
- const r = Ut(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = _(r);
1044
+ const r = Kt(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = _(r);
1019
1045
  if (i) {
1020
- const c = vt(s);
1046
+ const c = bt(s);
1021
1047
  return e.concat(s, s.visualViewport || [], rt(r) ? r : [], c && n ? ot(c) : []);
1022
1048
  } else
1023
1049
  return e.concat(r, ot(r, [], n));
1024
1050
  }
1025
- function vt(t) {
1051
+ function bt(t) {
1026
1052
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
1027
1053
  }
1028
- function Yt(t) {
1054
+ function Ut(t) {
1029
1055
  const e = V(t);
1030
1056
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
1031
- const r = K(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = ct(n) !== i || ct(o) !== s;
1057
+ const r = Y(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = lt(n) !== i || lt(o) !== s;
1032
1058
  return c && (n = i, o = s), {
1033
1059
  width: n,
1034
1060
  height: o,
1035
1061
  $: c
1036
1062
  };
1037
1063
  }
1038
- function Et(t) {
1039
- return W(t) ? t : t.contextElement;
1064
+ function Pt(t) {
1065
+ return F(t) ? t : t.contextElement;
1040
1066
  }
1041
1067
  function J(t) {
1042
- const e = Et(t);
1043
- if (!K(e))
1044
- return I(1);
1068
+ const e = Pt(t);
1069
+ if (!Y(e))
1070
+ return j(1);
1045
1071
  const n = e.getBoundingClientRect(), {
1046
1072
  width: o,
1047
1073
  height: r,
1048
1074
  $: i
1049
- } = Yt(e);
1050
- let s = (i ? ct(n.width) : n.width) / o, c = (i ? ct(n.height) : n.height) / r;
1075
+ } = Ut(e);
1076
+ let s = (i ? lt(n.width) : n.width) / o, c = (i ? lt(n.height) : n.height) / r;
1051
1077
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1052
1078
  x: s,
1053
1079
  y: c
1054
1080
  };
1055
1081
  }
1056
- const Ke = /* @__PURE__ */ I(0);
1057
- function qt(t) {
1082
+ const Ge = /* @__PURE__ */ j(0);
1083
+ function Zt(t) {
1058
1084
  const e = _(t);
1059
- return !Ot() || !e.visualViewport ? Ke : {
1085
+ return !Et() || !e.visualViewport ? Ge : {
1060
1086
  x: e.visualViewport.offsetLeft,
1061
1087
  y: e.visualViewport.offsetTop
1062
1088
  };
1063
1089
  }
1064
- function Ue(t, e, n) {
1090
+ function Je(t, e, n) {
1065
1091
  return e === void 0 && (e = !1), !n || e && n !== _(t) ? !1 : e;
1066
1092
  }
1067
1093
  function G(t, e, n, o) {
1068
1094
  e === void 0 && (e = !1), n === void 0 && (n = !1);
1069
- const r = t.getBoundingClientRect(), i = Et(t);
1070
- let s = I(1);
1071
- e && (o ? W(o) && (s = J(o)) : s = J(t));
1072
- const c = Ue(i, n, o) ? qt(i) : I(0);
1073
- let a = (r.left + c.x) / s.x, f = (r.top + c.y) / s.y, l = r.width / s.x, u = r.height / s.y;
1095
+ const r = t.getBoundingClientRect(), i = Pt(t);
1096
+ let s = j(1);
1097
+ e && (o ? F(o) && (s = J(o)) : s = J(t));
1098
+ const c = Je(i, n, o) ? Zt(i) : j(0);
1099
+ let f = (r.left + c.x) / s.x, a = (r.top + c.y) / s.y, l = r.width / s.x, u = r.height / s.y;
1074
1100
  if (i) {
1075
- const d = _(i), m = o && W(o) ? _(o) : o;
1076
- let h = d, p = vt(h);
1101
+ const d = _(i), m = o && F(o) ? _(o) : o;
1102
+ let h = d, p = bt(h);
1077
1103
  for (; p && o && m !== h; ) {
1078
- const w = J(p), y = p.getBoundingClientRect(), b = V(p), v = y.left + (p.clientLeft + parseFloat(b.paddingLeft)) * w.x, x = y.top + (p.clientTop + parseFloat(b.paddingTop)) * w.y;
1079
- a *= w.x, f *= w.y, l *= w.x, u *= w.y, a += v, f += x, h = _(p), p = vt(h);
1104
+ const y = J(p), w = p.getBoundingClientRect(), b = V(p), v = w.left + (p.clientLeft + parseFloat(b.paddingLeft)) * y.x, x = w.top + (p.clientTop + parseFloat(b.paddingTop)) * y.y;
1105
+ f *= y.x, a *= y.y, l *= y.x, u *= y.y, f += v, a += x, h = _(p), p = bt(h);
1080
1106
  }
1081
1107
  }
1082
- return ft({
1108
+ return at({
1083
1109
  width: l,
1084
1110
  height: u,
1085
- x: a,
1086
- y: f
1111
+ x: f,
1112
+ y: a
1087
1113
  });
1088
1114
  }
1089
- function ht(t, e) {
1090
- const n = mt(t).scrollLeft;
1091
- return e ? e.left + n : G(j(t)).left + n;
1115
+ function gt(t, e) {
1116
+ const n = ht(t).scrollLeft;
1117
+ return e ? e.left + n : G(I(t)).left + n;
1092
1118
  }
1093
- function Zt(t, e) {
1094
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - ht(t, n), r = n.top + e.scrollTop;
1119
+ function Gt(t, e) {
1120
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - gt(t, n), r = n.top + e.scrollTop;
1095
1121
  return {
1096
1122
  x: o,
1097
1123
  y: r
1098
1124
  };
1099
1125
  }
1100
- function Ye(t) {
1126
+ function Qe(t) {
1101
1127
  let {
1102
1128
  elements: e,
1103
1129
  rect: n,
1104
1130
  offsetParent: o,
1105
1131
  strategy: r
1106
1132
  } = t;
1107
- const i = r === "fixed", s = j(o), c = e ? dt(e.floating) : !1;
1133
+ const i = r === "fixed", s = I(o), c = e ? mt(e.floating) : !1;
1108
1134
  if (o === s || c && i)
1109
1135
  return n;
1110
- let a = {
1136
+ let f = {
1111
1137
  scrollLeft: 0,
1112
1138
  scrollTop: 0
1113
- }, f = I(1);
1114
- const l = I(0), u = K(o);
1115
- if ((u || !u && !i) && ((et(o) !== "body" || rt(s)) && (a = mt(o)), u)) {
1139
+ }, a = j(1);
1140
+ const l = j(0), u = Y(o);
1141
+ if ((u || !u && !i) && ((et(o) !== "body" || rt(s)) && (f = ht(o)), u)) {
1116
1142
  const m = G(o);
1117
- f = J(o), l.x = m.x + o.clientLeft, l.y = m.y + o.clientTop;
1143
+ a = J(o), l.x = m.x + o.clientLeft, l.y = m.y + o.clientTop;
1118
1144
  }
1119
- const d = s && !u && !i ? Zt(s, a) : I(0);
1145
+ const d = s && !u && !i ? Gt(s, f) : j(0);
1120
1146
  return {
1121
- width: n.width * f.x,
1122
- height: n.height * f.y,
1123
- x: n.x * f.x - a.scrollLeft * f.x + l.x + d.x,
1124
- y: n.y * f.y - a.scrollTop * f.y + l.y + d.y
1147
+ width: n.width * a.x,
1148
+ height: n.height * a.y,
1149
+ x: n.x * a.x - f.scrollLeft * a.x + l.x + d.x,
1150
+ y: n.y * a.y - f.scrollTop * a.y + l.y + d.y
1125
1151
  };
1126
1152
  }
1127
- function qe(t) {
1153
+ function tn(t) {
1128
1154
  return Array.from(t.getClientRects());
1129
1155
  }
1130
- function Ze(t) {
1131
- const e = j(t), n = mt(t), o = t.ownerDocument.body, r = $(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = $(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
1132
- let s = -n.scrollLeft + ht(t);
1156
+ function en(t) {
1157
+ const e = I(t), n = ht(t), o = t.ownerDocument.body, r = $(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = $(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
1158
+ let s = -n.scrollLeft + gt(t);
1133
1159
  const c = -n.scrollTop;
1134
1160
  return V(o).direction === "rtl" && (s += $(e.clientWidth, o.clientWidth) - r), {
1135
1161
  width: r,
@@ -1138,46 +1164,46 @@ function Ze(t) {
1138
1164
  y: c
1139
1165
  };
1140
1166
  }
1141
- const Nt = 25;
1142
- function Ge(t, e) {
1143
- const n = _(t), o = j(t), r = n.visualViewport;
1144
- let i = o.clientWidth, s = o.clientHeight, c = 0, a = 0;
1167
+ const Ft = 25;
1168
+ function nn(t, e) {
1169
+ const n = _(t), o = I(t), r = n.visualViewport;
1170
+ let i = o.clientWidth, s = o.clientHeight, c = 0, f = 0;
1145
1171
  if (r) {
1146
1172
  i = r.width, s = r.height;
1147
- const l = Ot();
1148
- (!l || l && e === "fixed") && (c = r.offsetLeft, a = r.offsetTop);
1173
+ const l = Et();
1174
+ (!l || l && e === "fixed") && (c = r.offsetLeft, f = r.offsetTop);
1149
1175
  }
1150
- const f = ht(o);
1151
- if (f <= 0) {
1176
+ const a = gt(o);
1177
+ if (a <= 0) {
1152
1178
  const l = o.ownerDocument, u = l.body, d = getComputedStyle(u), m = l.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - m);
1153
- h <= Nt && (i -= h);
1154
- } else f <= Nt && (i += f);
1179
+ h <= Ft && (i -= h);
1180
+ } else a <= Ft && (i += a);
1155
1181
  return {
1156
1182
  width: i,
1157
1183
  height: s,
1158
1184
  x: c,
1159
- y: a
1185
+ y: f
1160
1186
  };
1161
1187
  }
1162
- function Je(t, e) {
1163
- const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = K(t) ? J(t) : I(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, a = r * i.x, f = o * i.y;
1188
+ function on(t, e) {
1189
+ const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = Y(t) ? J(t) : j(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, f = r * i.x, a = o * i.y;
1164
1190
  return {
1165
1191
  width: s,
1166
1192
  height: c,
1167
- x: a,
1168
- y: f
1193
+ x: f,
1194
+ y: a
1169
1195
  };
1170
1196
  }
1171
- function Wt(t, e, n) {
1197
+ function Vt(t, e, n) {
1172
1198
  let o;
1173
1199
  if (e === "viewport")
1174
- o = Ge(t, n);
1200
+ o = nn(t, n);
1175
1201
  else if (e === "document")
1176
- o = Ze(j(t));
1177
- else if (W(e))
1178
- o = Je(e, n);
1202
+ o = en(I(t));
1203
+ else if (F(e))
1204
+ o = on(e, n);
1179
1205
  else {
1180
- const r = qt(t);
1206
+ const r = Zt(t);
1181
1207
  o = {
1182
1208
  x: e.x - r.x,
1183
1209
  y: e.y - r.y,
@@ -1185,72 +1211,72 @@ function Wt(t, e, n) {
1185
1211
  height: e.height
1186
1212
  };
1187
1213
  }
1188
- return ft(o);
1214
+ return at(o);
1189
1215
  }
1190
- function Gt(t, e) {
1191
- const n = q(t);
1192
- return n === e || !W(n) || Q(n) ? !1 : V(n).position === "fixed" || Gt(n, e);
1216
+ function Jt(t, e) {
1217
+ const n = U(t);
1218
+ return n === e || !F(n) || Q(n) ? !1 : V(n).position === "fixed" || Jt(n, e);
1193
1219
  }
1194
- function Qe(t, e) {
1220
+ function rn(t, e) {
1195
1221
  const n = e.get(t);
1196
1222
  if (n)
1197
1223
  return n;
1198
- let o = ot(t, [], !1).filter((c) => W(c) && et(c) !== "body"), r = null;
1224
+ let o = ot(t, [], !1).filter((c) => F(c) && et(c) !== "body"), r = null;
1199
1225
  const i = V(t).position === "fixed";
1200
- let s = i ? q(t) : t;
1201
- for (; W(s) && !Q(s); ) {
1202
- const c = V(s), a = At(s);
1203
- !a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || rt(s) && !a && Gt(t, s)) ? o = o.filter((l) => l !== s) : r = c, s = q(s);
1226
+ let s = i ? U(t) : t;
1227
+ for (; F(s) && !Q(s); ) {
1228
+ const c = V(s), f = Ot(s);
1229
+ !f && c.position === "fixed" && (r = null), (i ? !f && !r : !f && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || rt(s) && !f && Jt(t, s)) ? o = o.filter((l) => l !== s) : r = c, s = U(s);
1204
1230
  }
1205
1231
  return e.set(t, o), o;
1206
1232
  }
1207
- function tn(t) {
1233
+ function sn(t) {
1208
1234
  let {
1209
1235
  element: e,
1210
1236
  boundary: n,
1211
1237
  rootBoundary: o,
1212
1238
  strategy: r
1213
1239
  } = t;
1214
- const s = [...n === "clippingAncestors" ? dt(e) ? [] : Qe(e, this._c) : [].concat(n), o], c = Wt(e, s[0], r);
1215
- let a = c.top, f = c.right, l = c.bottom, u = c.left;
1240
+ const s = [...n === "clippingAncestors" ? mt(e) ? [] : rn(e, this._c) : [].concat(n), o], c = Vt(e, s[0], r);
1241
+ let f = c.top, a = c.right, l = c.bottom, u = c.left;
1216
1242
  for (let d = 1; d < s.length; d++) {
1217
- const m = Wt(e, s[d], r);
1218
- a = $(m.top, a), f = Y(m.right, f), l = Y(m.bottom, l), u = $(m.left, u);
1243
+ const m = Vt(e, s[d], r);
1244
+ f = $(m.top, f), a = K(m.right, a), l = K(m.bottom, l), u = $(m.left, u);
1219
1245
  }
1220
1246
  return {
1221
- width: f - u,
1222
- height: l - a,
1247
+ width: a - u,
1248
+ height: l - f,
1223
1249
  x: u,
1224
- y: a
1250
+ y: f
1225
1251
  };
1226
1252
  }
1227
- function en(t) {
1253
+ function cn(t) {
1228
1254
  const {
1229
1255
  width: e,
1230
1256
  height: n
1231
- } = Yt(t);
1257
+ } = Ut(t);
1232
1258
  return {
1233
1259
  width: e,
1234
1260
  height: n
1235
1261
  };
1236
1262
  }
1237
- function nn(t, e, n) {
1238
- const o = K(e), r = j(e), i = n === "fixed", s = G(t, !0, i, e);
1263
+ function ln(t, e, n) {
1264
+ const o = Y(e), r = I(e), i = n === "fixed", s = G(t, !0, i, e);
1239
1265
  let c = {
1240
1266
  scrollLeft: 0,
1241
1267
  scrollTop: 0
1242
1268
  };
1243
- const a = I(0);
1244
- function f() {
1245
- a.x = ht(r);
1269
+ const f = j(0);
1270
+ function a() {
1271
+ f.x = gt(r);
1246
1272
  }
1247
1273
  if (o || !o && !i)
1248
- if ((et(e) !== "body" || rt(r)) && (c = mt(e)), o) {
1274
+ if ((et(e) !== "body" || rt(r)) && (c = ht(e)), o) {
1249
1275
  const m = G(e, !0, i, e);
1250
- a.x = m.x + e.clientLeft, a.y = m.y + e.clientTop;
1251
- } else r && f();
1252
- i && !o && r && f();
1253
- const l = r && !o && !i ? Zt(r, c) : I(0), u = s.left + c.scrollLeft - a.x - l.x, d = s.top + c.scrollTop - a.y - l.y;
1276
+ f.x = m.x + e.clientLeft, f.y = m.y + e.clientTop;
1277
+ } else r && a();
1278
+ i && !o && r && a();
1279
+ const l = r && !o && !i ? Gt(r, c) : j(0), u = s.left + c.scrollLeft - f.x - l.x, d = s.top + c.scrollTop - f.y - l.y;
1254
1280
  return {
1255
1281
  x: u,
1256
1282
  y: d,
@@ -1258,39 +1284,39 @@ function nn(t, e, n) {
1258
1284
  height: s.height
1259
1285
  };
1260
1286
  }
1261
- function pt(t) {
1287
+ function yt(t) {
1262
1288
  return V(t).position === "static";
1263
1289
  }
1264
- function Vt(t, e) {
1265
- if (!K(t) || V(t).position === "fixed")
1290
+ function zt(t, e) {
1291
+ if (!Y(t) || V(t).position === "fixed")
1266
1292
  return null;
1267
1293
  if (e)
1268
1294
  return e(t);
1269
1295
  let n = t.offsetParent;
1270
- return j(t) === n && (n = n.ownerDocument.body), n;
1296
+ return I(t) === n && (n = n.ownerDocument.body), n;
1271
1297
  }
1272
- function Jt(t, e) {
1298
+ function Qt(t, e) {
1273
1299
  const n = _(t);
1274
- if (dt(t))
1300
+ if (mt(t))
1275
1301
  return n;
1276
- if (!K(t)) {
1277
- let r = q(t);
1302
+ if (!Y(t)) {
1303
+ let r = U(t);
1278
1304
  for (; r && !Q(r); ) {
1279
- if (W(r) && !pt(r))
1305
+ if (F(r) && !yt(r))
1280
1306
  return r;
1281
- r = q(r);
1307
+ r = U(r);
1282
1308
  }
1283
1309
  return n;
1284
1310
  }
1285
- let o = Vt(t, e);
1286
- for (; o && Ie(o) && pt(o); )
1287
- o = Vt(o, e);
1288
- return o && Q(o) && pt(o) && !At(o) ? n : o || Xe(t) || n;
1311
+ let o = zt(t, e);
1312
+ for (; o && qe(o) && yt(o); )
1313
+ o = zt(o, e);
1314
+ return o && Q(o) && yt(o) && !Ot(o) ? n : o || Ze(t) || n;
1289
1315
  }
1290
- const on = async function(t) {
1291
- const e = this.getOffsetParent || Jt, n = this.getDimensions, o = await n(t.floating);
1316
+ const fn = async function(t) {
1317
+ const e = this.getOffsetParent || Qt, n = this.getDimensions, o = await n(t.floating);
1292
1318
  return {
1293
- reference: nn(t.reference, await e(t.floating), t.strategy),
1319
+ reference: ln(t.reference, await e(t.floating), t.strategy),
1294
1320
  floating: {
1295
1321
  x: 0,
1296
1322
  y: 0,
@@ -1299,56 +1325,56 @@ const on = async function(t) {
1299
1325
  }
1300
1326
  };
1301
1327
  };
1302
- function rn(t) {
1328
+ function an(t) {
1303
1329
  return V(t).direction === "rtl";
1304
1330
  }
1305
- const sn = {
1306
- convertOffsetParentRelativeRectToViewportRelativeRect: Ye,
1307
- getDocumentElement: j,
1308
- getClippingRect: tn,
1309
- getOffsetParent: Jt,
1310
- getElementRects: on,
1311
- getClientRects: qe,
1312
- getDimensions: en,
1331
+ const un = {
1332
+ convertOffsetParentRelativeRectToViewportRelativeRect: Qe,
1333
+ getDocumentElement: I,
1334
+ getClippingRect: sn,
1335
+ getOffsetParent: Qt,
1336
+ getElementRects: fn,
1337
+ getClientRects: tn,
1338
+ getDimensions: cn,
1313
1339
  getScale: J,
1314
- isElement: W,
1315
- isRTL: rn
1340
+ isElement: F,
1341
+ isRTL: an
1316
1342
  };
1317
- function Qt(t, e) {
1343
+ function te(t, e) {
1318
1344
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1319
1345
  }
1320
- function cn(t, e) {
1346
+ function dn(t, e) {
1321
1347
  let n = null, o;
1322
- const r = j(t);
1348
+ const r = I(t);
1323
1349
  function i() {
1324
1350
  var c;
1325
1351
  clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
1326
1352
  }
1327
- function s(c, a) {
1328
- c === void 0 && (c = !1), a === void 0 && (a = 1), i();
1329
- const f = t.getBoundingClientRect(), {
1353
+ function s(c, f) {
1354
+ c === void 0 && (c = !1), f === void 0 && (f = 1), i();
1355
+ const a = t.getBoundingClientRect(), {
1330
1356
  left: l,
1331
1357
  top: u,
1332
1358
  width: d,
1333
1359
  height: m
1334
- } = f;
1360
+ } = a;
1335
1361
  if (c || e(), !d || !m)
1336
1362
  return;
1337
- const h = it(u), p = it(r.clientWidth - (l + d)), w = it(r.clientHeight - (u + m)), y = it(l), v = {
1338
- rootMargin: -h + "px " + -p + "px " + -w + "px " + -y + "px",
1339
- threshold: $(0, Y(1, a)) || 1
1363
+ const h = it(u), p = it(r.clientWidth - (l + d)), y = it(r.clientHeight - (u + m)), w = it(l), v = {
1364
+ rootMargin: -h + "px " + -p + "px " + -y + "px " + -w + "px",
1365
+ threshold: $(0, K(1, f)) || 1
1340
1366
  };
1341
1367
  let x = !0;
1342
- function R(S) {
1343
- const A = S[0].intersectionRatio;
1344
- if (A !== a) {
1368
+ function R(C) {
1369
+ const A = C[0].intersectionRatio;
1370
+ if (A !== f) {
1345
1371
  if (!x)
1346
1372
  return s();
1347
1373
  A ? s(!1, A) : o = setTimeout(() => {
1348
1374
  s(!1, 1e-7);
1349
1375
  }, 1e3);
1350
1376
  }
1351
- A === 1 && !Qt(f, t.getBoundingClientRect()) && s(), x = !1;
1377
+ A === 1 && !te(a, t.getBoundingClientRect()) && s(), x = !1;
1352
1378
  }
1353
1379
  try {
1354
1380
  n = new IntersectionObserver(R, {
@@ -1363,58 +1389,58 @@ function cn(t, e) {
1363
1389
  }
1364
1390
  return s(!0), i;
1365
1391
  }
1366
- function Ln(t, e, n, o) {
1392
+ function Nn(t, e, n, o) {
1367
1393
  o === void 0 && (o = {});
1368
1394
  const {
1369
1395
  ancestorScroll: r = !0,
1370
1396
  ancestorResize: i = !0,
1371
1397
  elementResize: s = typeof ResizeObserver == "function",
1372
1398
  layoutShift: c = typeof IntersectionObserver == "function",
1373
- animationFrame: a = !1
1374
- } = o, f = Et(t), l = r || i ? [...f ? ot(f) : [], ...e ? ot(e) : []] : [];
1375
- l.forEach((y) => {
1376
- r && y.addEventListener("scroll", n, {
1399
+ animationFrame: f = !1
1400
+ } = o, a = Pt(t), l = r || i ? [...a ? ot(a) : [], ...e ? ot(e) : []] : [];
1401
+ l.forEach((w) => {
1402
+ r && w.addEventListener("scroll", n, {
1377
1403
  passive: !0
1378
- }), i && y.addEventListener("resize", n);
1404
+ }), i && w.addEventListener("resize", n);
1379
1405
  });
1380
- const u = f && c ? cn(f, n) : null;
1406
+ const u = a && c ? dn(a, n) : null;
1381
1407
  let d = -1, m = null;
1382
- s && (m = new ResizeObserver((y) => {
1383
- let [b] = y;
1384
- b && b.target === f && m && e && (m.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1408
+ s && (m = new ResizeObserver((w) => {
1409
+ let [b] = w;
1410
+ b && b.target === a && m && e && (m.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1385
1411
  var v;
1386
1412
  (v = m) == null || v.observe(e);
1387
1413
  })), n();
1388
- }), f && !a && m.observe(f), e && m.observe(e));
1389
- let h, p = a ? G(t) : null;
1390
- a && w();
1391
- function w() {
1392
- const y = G(t);
1393
- p && !Qt(p, y) && n(), p = y, h = requestAnimationFrame(w);
1414
+ }), a && !f && m.observe(a), e && m.observe(e));
1415
+ let h, p = f ? G(t) : null;
1416
+ f && y();
1417
+ function y() {
1418
+ const w = G(t);
1419
+ p && !te(p, w) && n(), p = w, h = requestAnimationFrame(y);
1394
1420
  }
1395
1421
  return n(), () => {
1396
- var y;
1422
+ var w;
1397
1423
  l.forEach((b) => {
1398
1424
  r && b.removeEventListener("scroll", n), i && b.removeEventListener("resize", n);
1399
- }), u == null || u(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(h);
1425
+ }), u == null || u(), (w = m) == null || w.disconnect(), m = null, f && cancelAnimationFrame(h);
1400
1426
  };
1401
1427
  }
1402
- const ln = We, fn = Ve, an = _e, un = ze, dn = Fe, Bt = $e, mn = Be, hn = (t, e, n) => {
1428
+ const mn = Ie, hn = He, gn = ze, pn = Ye, yn = Be, Bt = Ve, wn = Xe, xn = (t, e, n) => {
1403
1429
  const o = /* @__PURE__ */ new Map(), r = {
1404
- platform: sn,
1430
+ platform: un,
1405
1431
  ...n
1406
1432
  }, i = {
1407
1433
  ...r.platform,
1408
1434
  _c: o
1409
1435
  };
1410
- return ke(t, e, {
1436
+ return Fe(t, e, {
1411
1437
  ...r,
1412
1438
  platform: i
1413
1439
  });
1414
1440
  };
1415
- var gn = typeof document < "u", pn = function() {
1416
- }, st = gn ? ee : pn;
1417
- function at(t, e) {
1441
+ var vn = typeof document < "u", bn = function() {
1442
+ }, st = vn ? ne : bn;
1443
+ function ut(t, e) {
1418
1444
  if (t === e)
1419
1445
  return !0;
1420
1446
  if (typeof t != typeof e)
@@ -1426,7 +1452,7 @@ function at(t, e) {
1426
1452
  if (Array.isArray(t)) {
1427
1453
  if (n = t.length, n !== e.length) return !1;
1428
1454
  for (o = n; o-- !== 0; )
1429
- if (!at(t[o], e[o]))
1455
+ if (!ut(t[o], e[o]))
1430
1456
  return !1;
1431
1457
  return !0;
1432
1458
  }
@@ -1437,18 +1463,18 @@ function at(t, e) {
1437
1463
  return !1;
1438
1464
  for (o = n; o-- !== 0; ) {
1439
1465
  const i = r[o];
1440
- if (!(i === "_owner" && t.$$typeof) && !at(t[i], e[i]))
1466
+ if (!(i === "_owner" && t.$$typeof) && !ut(t[i], e[i]))
1441
1467
  return !1;
1442
1468
  }
1443
1469
  return !0;
1444
1470
  }
1445
1471
  return t !== t && e !== e;
1446
1472
  }
1447
- function te(t) {
1473
+ function ee(t) {
1448
1474
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1449
1475
  }
1450
- function zt(t, e) {
1451
- const n = te(t);
1476
+ function jt(t, e) {
1477
+ const n = ee(t);
1452
1478
  return Math.round(e * n) / n;
1453
1479
  }
1454
1480
  function wt(t) {
@@ -1457,7 +1483,7 @@ function wt(t) {
1457
1483
  e.current = t;
1458
1484
  }), e;
1459
1485
  }
1460
- function Dn(t) {
1486
+ function Wn(t) {
1461
1487
  t === void 0 && (t = {});
1462
1488
  const {
1463
1489
  placement: e = "bottom",
@@ -1469,8 +1495,8 @@ function Dn(t) {
1469
1495
  floating: s
1470
1496
  } = {},
1471
1497
  transform: c = !0,
1472
- whileElementsMounted: a,
1473
- open: f
1498
+ whileElementsMounted: f,
1499
+ open: a
1474
1500
  } = t, [l, u] = g.useState({
1475
1501
  x: 0,
1476
1502
  y: 0,
@@ -1479,21 +1505,21 @@ function Dn(t) {
1479
1505
  middlewareData: {},
1480
1506
  isPositioned: !1
1481
1507
  }), [d, m] = g.useState(o);
1482
- at(d, o) || m(o);
1483
- const [h, p] = g.useState(null), [w, y] = g.useState(null), b = g.useCallback((C) => {
1484
- C !== S.current && (S.current = C, p(C));
1485
- }, []), v = g.useCallback((C) => {
1486
- C !== A.current && (A.current = C, y(C));
1487
- }, []), x = i || h, R = s || w, S = g.useRef(null), A = g.useRef(null), L = g.useRef(l), F = a != null, P = wt(a), N = wt(r), M = wt(f), D = g.useCallback(() => {
1488
- if (!S.current || !A.current)
1508
+ ut(d, o) || m(o);
1509
+ const [h, p] = g.useState(null), [y, w] = g.useState(null), b = g.useCallback((S) => {
1510
+ S !== C.current && (C.current = S, p(S));
1511
+ }, []), v = g.useCallback((S) => {
1512
+ S !== A.current && (A.current = S, w(S));
1513
+ }, []), x = i || h, R = s || y, C = g.useRef(null), A = g.useRef(null), L = g.useRef(l), N = f != null, P = wt(f), W = wt(r), M = wt(a), T = g.useCallback(() => {
1514
+ if (!C.current || !A.current)
1489
1515
  return;
1490
- const C = {
1516
+ const S = {
1491
1517
  placement: e,
1492
1518
  strategy: n,
1493
1519
  middleware: d
1494
1520
  };
1495
- N.current && (C.platform = N.current), hn(S.current, A.current, C).then((k) => {
1496
- const U = {
1521
+ W.current && (S.platform = W.current), xn(C.current, A.current, S).then((k) => {
1522
+ const q = {
1497
1523
  ...k,
1498
1524
  // The floating element's position may be recomputed while it's closed
1499
1525
  // but still mounted (such as when transitioning out). To ensure
@@ -1501,65 +1527,65 @@ function Dn(t) {
1501
1527
  // setting it to `true` when `open === false` (must be specified).
1502
1528
  isPositioned: M.current !== !1
1503
1529
  };
1504
- O.current && !at(L.current, U) && (L.current = U, ie.flushSync(() => {
1505
- u(U);
1530
+ O.current && !ut(L.current, q) && (L.current = q, se.flushSync(() => {
1531
+ u(q);
1506
1532
  }));
1507
1533
  });
1508
- }, [d, e, n, N, M]);
1534
+ }, [d, e, n, W, M]);
1509
1535
  st(() => {
1510
- f === !1 && L.current.isPositioned && (L.current.isPositioned = !1, u((C) => ({
1511
- ...C,
1536
+ a === !1 && L.current.isPositioned && (L.current.isPositioned = !1, u((S) => ({
1537
+ ...S,
1512
1538
  isPositioned: !1
1513
1539
  })));
1514
- }, [f]);
1540
+ }, [a]);
1515
1541
  const O = g.useRef(!1);
1516
1542
  st(() => (O.current = !0, () => {
1517
1543
  O.current = !1;
1518
1544
  }), []), st(() => {
1519
- if (x && (S.current = x), R && (A.current = R), x && R) {
1545
+ if (x && (C.current = x), R && (A.current = R), x && R) {
1520
1546
  if (P.current)
1521
- return P.current(x, R, D);
1522
- D();
1547
+ return P.current(x, R, T);
1548
+ T();
1523
1549
  }
1524
- }, [x, R, D, P, F]);
1525
- const B = g.useMemo(() => ({
1526
- reference: S,
1550
+ }, [x, R, T, P, N]);
1551
+ const z = g.useMemo(() => ({
1552
+ reference: C,
1527
1553
  floating: A,
1528
1554
  setReference: b,
1529
1555
  setFloating: v
1530
1556
  }), [b, v]), E = g.useMemo(() => ({
1531
1557
  reference: x,
1532
1558
  floating: R
1533
- }), [x, R]), T = g.useMemo(() => {
1534
- const C = {
1559
+ }), [x, R]), D = g.useMemo(() => {
1560
+ const S = {
1535
1561
  position: n,
1536
1562
  left: 0,
1537
1563
  top: 0
1538
1564
  };
1539
1565
  if (!E.floating)
1540
- return C;
1541
- const k = zt(E.floating, l.x), U = zt(E.floating, l.y);
1566
+ return S;
1567
+ const k = jt(E.floating, l.x), q = jt(E.floating, l.y);
1542
1568
  return c ? {
1543
- ...C,
1544
- transform: "translate(" + k + "px, " + U + "px)",
1545
- ...te(E.floating) >= 1.5 && {
1569
+ ...S,
1570
+ transform: "translate(" + k + "px, " + q + "px)",
1571
+ ...ee(E.floating) >= 1.5 && {
1546
1572
  willChange: "transform"
1547
1573
  }
1548
1574
  } : {
1549
1575
  position: n,
1550
1576
  left: k,
1551
- top: U
1577
+ top: q
1552
1578
  };
1553
1579
  }, [n, c, E.floating, l.x, l.y]);
1554
1580
  return g.useMemo(() => ({
1555
1581
  ...l,
1556
- update: D,
1557
- refs: B,
1582
+ update: T,
1583
+ refs: z,
1558
1584
  elements: E,
1559
- floatingStyles: T
1560
- }), [l, D, B, E, T]);
1585
+ floatingStyles: D
1586
+ }), [l, T, z, E, D]);
1561
1587
  }
1562
- const wn = (t) => {
1588
+ const Rn = (t) => {
1563
1589
  function e(n) {
1564
1590
  return {}.hasOwnProperty.call(n, "current");
1565
1591
  }
@@ -1580,46 +1606,46 @@ const wn = (t) => {
1580
1606
  }).fn(n) : {};
1581
1607
  }
1582
1608
  };
1583
- }, Tn = (t, e) => {
1584
- const n = ln(t);
1609
+ }, Fn = (t, e) => {
1610
+ const n = mn(t);
1585
1611
  return {
1586
1612
  name: n.name,
1587
1613
  fn: n.fn,
1588
1614
  options: [t, e]
1589
1615
  };
1590
- }, Mn = (t, e) => {
1591
- const n = fn(t);
1616
+ }, Vn = (t, e) => {
1617
+ const n = hn(t);
1592
1618
  return {
1593
1619
  name: n.name,
1594
1620
  fn: n.fn,
1595
1621
  options: [t, e]
1596
1622
  };
1597
- }, kn = (t, e) => ({
1598
- fn: mn(t).fn,
1623
+ }, zn = (t, e) => ({
1624
+ fn: wn(t).fn,
1599
1625
  options: [t, e]
1600
- }), $n = (t, e) => {
1601
- const n = an(t);
1626
+ }), Bn = (t, e) => {
1627
+ const n = gn(t);
1602
1628
  return {
1603
1629
  name: n.name,
1604
1630
  fn: n.fn,
1605
1631
  options: [t, e]
1606
1632
  };
1607
- }, _n = (t, e) => {
1608
- const n = un(t);
1633
+ }, jn = (t, e) => {
1634
+ const n = pn(t);
1609
1635
  return {
1610
1636
  name: n.name,
1611
1637
  fn: n.fn,
1612
1638
  options: [t, e]
1613
1639
  };
1614
- }, Fn = (t, e) => {
1615
- const n = dn(t);
1640
+ }, In = (t, e) => {
1641
+ const n = yn(t);
1616
1642
  return {
1617
1643
  name: n.name,
1618
1644
  fn: n.fn,
1619
1645
  options: [t, e]
1620
1646
  };
1621
- }, Nn = (t, e) => {
1622
- const n = wn(t);
1647
+ }, Hn = (t, e) => {
1648
+ const n = Rn(t);
1623
1649
  return {
1624
1650
  name: n.name,
1625
1651
  fn: n.fn,
@@ -1627,28 +1653,29 @@ const wn = (t) => {
1627
1653
  };
1628
1654
  };
1629
1655
  export {
1630
- ye as B,
1631
- bt as a,
1632
- we as b,
1633
- se as c,
1634
- ue as d,
1635
- Cn as e,
1636
- Sn as f,
1637
- An as g,
1638
- Rn as h,
1639
- En as i,
1640
- xe as j,
1641
- Dn as k,
1642
- kn as l,
1643
- $n as m,
1644
- _n as n,
1645
- Tn as o,
1646
- Nn as p,
1647
- Fn as q,
1648
- Ln as r,
1649
- Mn as s,
1650
- On as t,
1651
- bn as u,
1652
- Pn as v,
1653
- It as w
1656
+ Ce as B,
1657
+ kn as C,
1658
+ It as a,
1659
+ Re as b,
1660
+ ce as c,
1661
+ $n as d,
1662
+ Tn as e,
1663
+ Se as f,
1664
+ Mn as g,
1665
+ Wn as h,
1666
+ Bn as i,
1667
+ jn as j,
1668
+ Hn as k,
1669
+ zn as l,
1670
+ In as m,
1671
+ Nn as n,
1672
+ Fn as o,
1673
+ Rt as p,
1674
+ Ln as q,
1675
+ _n as r,
1676
+ Vn as s,
1677
+ Dn as t,
1678
+ En as u,
1679
+ ge as v,
1680
+ Pn as w
1654
1681
  };