@krosoft/react 0.0.89 → 0.0.91

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 (117) hide show
  1. package/dist/{AppSubTitle-RKbtrPJr.js → AppSubTitle-CvJlatS9.js} +1 -1
  2. package/dist/{AppTitle-DCQpP2qE.js → AppTitle-LIQCjpo5.js} +26 -25
  3. package/dist/{AppVerticalTabs-pK3i9ZTD.js → AppVerticalTabs-BHrad7wu.js} +23 -23
  4. package/dist/ConfirmationDialog-BlRXnFH5.js +321 -0
  5. package/dist/ErrorAlert-BITMD2I5.js +33 -0
  6. package/dist/{LoadingState-DQjGcT2l.js → LoadingState-COf3KhOP.js} +6 -6
  7. package/dist/{MetricCard-DB1ME6tD.js → MetricCard-BGT2QRn0.js} +14 -13
  8. package/dist/{SearchInput-D_SLIZ2y.js → SearchInput-DpOuKSIf.js} +115 -126
  9. package/dist/{TableFilter-DXTOY-oa.js → TableFilter-DFtN_-Bg.js} +51 -51
  10. package/dist/{TableSettings-CBtuAPgM.js → TableSettings-m2q3s0wU.js} +68 -80
  11. package/dist/{ThemeSelector-CU8JmN2b.js → ThemeSelector-D9KTJAWz.js} +3 -3
  12. package/dist/{Topbar-BzZxu1Zi.js → Topbar-QKCJiWdO.js} +2 -2
  13. package/dist/{badge-DyRSpnOb.js → badge-C09fRxvd.js} +1 -1
  14. package/dist/card-Bn3Y7DHQ.js +48 -0
  15. package/dist/components/core/cards/index.js +1 -1
  16. package/dist/components/core/dialogs/ConfirmDeleteDialog.d.ts +10 -0
  17. package/dist/components/core/dialogs/ConfirmDeleteDialog.d.ts.map +1 -0
  18. package/dist/components/core/dialogs/ConfirmationDialog.d.ts +13 -0
  19. package/dist/components/core/dialogs/ConfirmationDialog.d.ts.map +1 -0
  20. package/dist/components/core/dialogs/index.d.ts +3 -0
  21. package/dist/components/core/dialogs/index.d.ts.map +1 -1
  22. package/dist/components/core/dialogs/index.js +15 -13
  23. package/dist/components/core/filters/index.js +1 -1
  24. package/dist/components/core/index.js +60 -56
  25. package/dist/components/core/inputs/index.js +1 -1
  26. package/dist/components/core/layouts/index.js +2 -2
  27. package/dist/components/core/navbar/index.js +1 -1
  28. package/dist/components/core/states/ErrorAlert.d.ts +7 -0
  29. package/dist/components/core/states/ErrorAlert.d.ts.map +1 -0
  30. package/dist/components/core/states/index.d.ts +1 -0
  31. package/dist/components/core/states/index.d.ts.map +1 -1
  32. package/dist/components/core/states/index.js +6 -4
  33. package/dist/components/core/table/index.js +1 -1
  34. package/dist/components/core/tabs/index.js +1 -1
  35. package/dist/components/core/theme/index.js +1 -1
  36. package/dist/components/index.js +280 -136
  37. package/dist/components/ui/accordion.d.ts +8 -0
  38. package/dist/components/ui/accordion.d.ts.map +1 -0
  39. package/dist/components/ui/alert-dialog.d.ts +21 -0
  40. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  41. package/dist/components/ui/aspect-ratio.d.ts +4 -0
  42. package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
  43. package/dist/components/ui/avatar.d.ts +7 -0
  44. package/dist/components/ui/avatar.d.ts.map +1 -0
  45. package/dist/components/ui/breadcrumb.d.ts +20 -0
  46. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  47. package/dist/components/ui/button.d.ts +1 -1
  48. package/dist/components/ui/carousel.d.ts +19 -0
  49. package/dist/components/ui/carousel.d.ts.map +1 -0
  50. package/dist/components/ui/chart.d.ts +50 -0
  51. package/dist/components/ui/chart.d.ts.map +1 -0
  52. package/dist/components/ui/collapsible.d.ts +6 -0
  53. package/dist/components/ui/collapsible.d.ts.map +1 -0
  54. package/dist/components/ui/command.d.ts +83 -0
  55. package/dist/components/ui/command.d.ts.map +1 -0
  56. package/dist/components/ui/context-menu.d.ts +28 -0
  57. package/dist/components/ui/context-menu.d.ts.map +1 -0
  58. package/dist/components/ui/drawer.d.ts +23 -0
  59. package/dist/components/ui/drawer.d.ts.map +1 -0
  60. package/dist/components/ui/form.d.ts +24 -0
  61. package/dist/components/ui/form.d.ts.map +1 -0
  62. package/dist/components/ui/hover-card.d.ts +7 -0
  63. package/dist/components/ui/hover-card.d.ts.map +1 -0
  64. package/dist/components/ui/index.d.ts +42 -16
  65. package/dist/components/ui/index.d.ts.map +1 -1
  66. package/dist/components/ui/index.js +231 -91
  67. package/dist/components/ui/input-otp.d.ts +35 -0
  68. package/dist/components/ui/input-otp.d.ts.map +1 -0
  69. package/dist/components/ui/menubar.d.ts +34 -0
  70. package/dist/components/ui/menubar.d.ts.map +1 -0
  71. package/dist/components/ui/navigation-menu.d.ts +13 -0
  72. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  73. package/dist/components/ui/pagination.d.ts +33 -0
  74. package/dist/components/ui/pagination.d.ts.map +1 -0
  75. package/dist/components/ui/radio-group.d.ts +6 -0
  76. package/dist/components/ui/radio-group.d.ts.map +1 -0
  77. package/dist/components/ui/resizable.d.ts +8 -0
  78. package/dist/components/ui/resizable.d.ts.map +1 -0
  79. package/dist/components/ui/sheet.d.ts +1 -1
  80. package/dist/components/ui/sidebar.d.ts +67 -0
  81. package/dist/components/ui/sidebar.d.ts.map +1 -0
  82. package/dist/components/ui/simple-table.d.ts +11 -0
  83. package/dist/components/ui/simple-table.d.ts.map +1 -0
  84. package/dist/components/ui/slider.d.ts +5 -0
  85. package/dist/components/ui/slider.d.ts.map +1 -0
  86. package/dist/components/ui/sonner.d.ts +5 -0
  87. package/dist/components/ui/sonner.d.ts.map +1 -0
  88. package/dist/components/ui/switch.d.ts +5 -0
  89. package/dist/components/ui/switch.d.ts.map +1 -0
  90. package/dist/components/ui/textarea.d.ts +6 -0
  91. package/dist/components/ui/textarea.d.ts.map +1 -0
  92. package/dist/components/ui/toaster.d.ts +2 -0
  93. package/dist/components/ui/toaster.d.ts.map +1 -0
  94. package/dist/components/ui/toggle-group.d.ts +13 -0
  95. package/dist/components/ui/toggle-group.d.ts.map +1 -0
  96. package/dist/components/ui/toggle.d.ts +13 -0
  97. package/dist/components/ui/toggle.d.ts.map +1 -0
  98. package/dist/{ellipsis-vertical-CqrunffH.js → ellipsis-vertical-BVxSFNOa.js} +1 -1
  99. package/dist/grip-vertical-CJ07_87Y.js +18 -0
  100. package/dist/hooks/index.js +6 -5
  101. package/dist/index-DSyPHOLE.js +147 -0
  102. package/dist/{loader-circle-BhJXKs31.js → loader-circle-GAYBtm3z.js} +1 -1
  103. package/dist/{select-B5wF6jxC.js → select-D6_XPD6x.js} +309 -308
  104. package/dist/toaster-D6ND7OTk.js +113 -0
  105. package/dist/toggle-group-VJoGbVQm.js +19987 -0
  106. package/dist/{tooltip-BzTGwm2E.js → tooltip-CAu4DEhc.js} +767 -796
  107. package/dist/types/ConfirmDialogConfig.d.ts +11 -0
  108. package/dist/types/ConfirmDialogConfig.d.ts.map +1 -0
  109. package/dist/useTheme-Bn8z_uxy.js +31 -0
  110. package/dist/useToast-BFTk4lWz.js +100 -0
  111. package/package.json +29 -7
  112. package/dist/FormDialog-CXLQG83d.js +0 -250
  113. package/dist/card-7XPLAra3.js +0 -23
  114. package/dist/createLucideIcon-CRdjzt2A.js +0 -116
  115. package/dist/skeleton-CJ1F2tD3.js +0 -8
  116. package/dist/tabs-BYqvMsA6.js +0 -6628
  117. package/dist/useTheme-CvNYmhjo.js +0 -128
@@ -1,110 +1,56 @@
1
- import { c as mn } from "./createLucideIcon-CRdjzt2A.js";
2
- import { jsx as P, Fragment as hn, jsxs as gn } from "react/jsx-runtime";
3
- import { a as vn, c as wt } from "./index-gWiv5-6R.js";
4
- import * as f from "react";
5
- import { useLayoutEffect as yn } from "react";
6
- import * as xt from "react-dom";
7
- const ot = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rt = vn, wn = (e, t) => (n) => {
8
- var o;
9
- if ((t == null ? void 0 : t.variants) == null) return rt(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
10
- const { variants: r, defaultVariants: i } = t, s = Object.keys(r).map((l) => {
11
- const u = n == null ? void 0 : n[l], d = i == null ? void 0 : i[l];
12
- if (u === null) return null;
13
- const m = ot(u) || ot(d);
14
- return r[l][m];
15
- }), c = n && Object.entries(n).reduce((l, u) => {
16
- let [d, m] = u;
17
- return m === void 0 || (l[d] = m), l;
18
- }, {}), a = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((l, u) => {
19
- let { class: d, className: m, ...p } = u;
20
- return Object.entries(p).every((h) => {
21
- let [g, v] = h;
22
- return Array.isArray(v) ? v.includes({
23
- ...i,
24
- ...c
25
- }[g]) : {
26
- ...i,
27
- ...c
28
- }[g] === v;
29
- }) ? [
30
- ...l,
31
- d,
32
- m
33
- ] : l;
34
- }, []);
35
- return rt(e, s, a, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
36
- };
37
- function it(e, t) {
38
- if (typeof e == "function")
39
- return e(t);
40
- e != null && (e.current = t);
41
- }
42
- function Fe(...e) {
43
- return (t) => {
44
- let n = !1;
45
- const o = e.map((r) => {
46
- const i = it(r, t);
47
- return !n && typeof i == "function" && (n = !0), i;
48
- });
49
- if (n)
50
- return () => {
51
- for (let r = 0; r < o.length; r++) {
52
- const i = o[r];
53
- typeof i == "function" ? i() : it(e[r], null);
54
- }
55
- };
56
- };
57
- }
58
- function te(...e) {
59
- return f.useCallback(Fe(...e), e);
60
- }
61
- function Zr(e, t) {
62
- const n = f.createContext(t), o = (i) => {
63
- const { children: s, ...c } = i, a = f.useMemo(() => c, Object.values(c));
1
+ import { c as dn, a as pn } from "./index-DSyPHOLE.js";
2
+ import { jsx as P, Fragment as mn, jsxs as hn } from "react/jsx-runtime";
3
+ import { c as yt } from "./index-gWiv5-6R.js";
4
+ import * as l from "react";
5
+ import { useLayoutEffect as gn } from "react";
6
+ import * as vt from "react-dom";
7
+ function qr(e, t) {
8
+ const n = l.createContext(t), o = (i) => {
9
+ const { children: s, ...c } = i, a = l.useMemo(() => c, Object.values(c));
64
10
  return /* @__PURE__ */ P(n.Provider, { value: a, children: s });
65
11
  };
66
12
  o.displayName = e + "Provider";
67
13
  function r(i) {
68
- const s = f.useContext(n);
14
+ const s = l.useContext(n);
69
15
  if (s) return s;
70
16
  if (t !== void 0) return t;
71
17
  throw new Error(`\`${i}\` must be used within \`${e}\``);
72
18
  }
73
19
  return [o, r];
74
20
  }
75
- function bt(e, t = []) {
21
+ function wt(e, t = []) {
76
22
  let n = [];
77
23
  function o(i, s) {
78
- const c = f.createContext(s), a = n.length;
24
+ const c = l.createContext(s), a = n.length;
79
25
  n = [...n, s];
80
- const l = (d) => {
81
- var y;
82
- const { scope: m, children: p, ...h } = d, g = ((y = m == null ? void 0 : m[e]) == null ? void 0 : y[a]) || c, v = f.useMemo(() => h, Object.values(h));
83
- return /* @__PURE__ */ P(g.Provider, { value: v, children: p });
26
+ const u = (d) => {
27
+ var v;
28
+ const { scope: m, children: p, ...h } = d, g = ((v = m == null ? void 0 : m[e]) == null ? void 0 : v[a]) || c, y = l.useMemo(() => h, Object.values(h));
29
+ return /* @__PURE__ */ P(g.Provider, { value: y, children: p });
84
30
  };
85
- l.displayName = i + "Provider";
86
- function u(d, m) {
31
+ u.displayName = i + "Provider";
32
+ function f(d, m) {
87
33
  var g;
88
- const p = ((g = m == null ? void 0 : m[e]) == null ? void 0 : g[a]) || c, h = f.useContext(p);
34
+ const p = ((g = m == null ? void 0 : m[e]) == null ? void 0 : g[a]) || c, h = l.useContext(p);
89
35
  if (h) return h;
90
36
  if (s !== void 0) return s;
91
37
  throw new Error(`\`${d}\` must be used within \`${i}\``);
92
38
  }
93
- return [l, u];
39
+ return [u, f];
94
40
  }
95
41
  const r = () => {
96
- const i = n.map((s) => f.createContext(s));
42
+ const i = n.map((s) => l.createContext(s));
97
43
  return function(c) {
98
44
  const a = (c == null ? void 0 : c[e]) || i;
99
- return f.useMemo(
45
+ return l.useMemo(
100
46
  () => ({ [`__scope${e}`]: { ...c, [e]: a } }),
101
47
  [c, a]
102
48
  );
103
49
  };
104
50
  };
105
- return r.scopeName = e, [o, xn(r, ...t)];
51
+ return r.scopeName = e, [o, yn(r, ...t)];
106
52
  }
107
- function xn(...e) {
53
+ function yn(...e) {
108
54
  const t = e[0];
109
55
  if (e.length === 1) return t;
110
56
  const n = () => {
@@ -113,187 +59,124 @@ function xn(...e) {
113
59
  scopeName: r.scopeName
114
60
  }));
115
61
  return function(i) {
116
- const s = o.reduce((c, { useScope: a, scopeName: l }) => {
117
- const d = a(i)[`__scope${l}`];
62
+ const s = o.reduce((c, { useScope: a, scopeName: u }) => {
63
+ const d = a(i)[`__scope${u}`];
118
64
  return { ...c, ...d };
119
65
  }, {});
120
- return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
66
+ return l.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
121
67
  };
122
68
  };
123
69
  return n.scopeName = t.scopeName, n;
124
70
  }
71
+ function ot(e, t) {
72
+ if (typeof e == "function")
73
+ return e(t);
74
+ e != null && (e.current = t);
75
+ }
76
+ function Fe(...e) {
77
+ return (t) => {
78
+ let n = !1;
79
+ const o = e.map((r) => {
80
+ const i = ot(r, t);
81
+ return !n && typeof i == "function" && (n = !0), i;
82
+ });
83
+ if (n)
84
+ return () => {
85
+ for (let r = 0; r < o.length; r++) {
86
+ const i = o[r];
87
+ typeof i == "function" ? i() : ot(e[r], null);
88
+ }
89
+ };
90
+ };
91
+ }
92
+ function te(...e) {
93
+ return l.useCallback(Fe(...e), e);
94
+ }
125
95
  function Y(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
126
96
  return function(r) {
127
97
  if (e == null || e(r), n === !1 || !r.defaultPrevented)
128
98
  return t == null ? void 0 : t(r);
129
99
  };
130
100
  }
131
- var Q = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
132
- }, bn = f[" useInsertionEffect ".trim().toString()] || Q;
133
- function Cn({
101
+ var Q = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
102
+ }, vn = l[" useInsertionEffect ".trim().toString()] || Q;
103
+ function wn({
134
104
  prop: e,
135
105
  defaultProp: t,
136
106
  onChange: n = () => {
137
107
  },
138
108
  caller: o
139
109
  }) {
140
- const [r, i, s] = En({
110
+ const [r, i, s] = xn({
141
111
  defaultProp: t,
142
112
  onChange: n
143
113
  }), c = e !== void 0, a = c ? e : r;
144
114
  {
145
- const u = f.useRef(e !== void 0);
146
- f.useEffect(() => {
147
- const d = u.current;
115
+ const f = l.useRef(e !== void 0);
116
+ l.useEffect(() => {
117
+ const d = f.current;
148
118
  d !== c && console.warn(
149
119
  `${o} is changing from ${d ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
150
- ), u.current = c;
120
+ ), f.current = c;
151
121
  }, [c, o]);
152
122
  }
153
- const l = f.useCallback(
154
- (u) => {
123
+ const u = l.useCallback(
124
+ (f) => {
155
125
  var d;
156
126
  if (c) {
157
- const m = Rn(u) ? u(e) : u;
127
+ const m = bn(f) ? f(e) : f;
158
128
  m !== e && ((d = s.current) == null || d.call(s, m));
159
129
  } else
160
- i(u);
130
+ i(f);
161
131
  },
162
132
  [c, e, i, s]
163
133
  );
164
- return [a, l];
134
+ return [a, u];
165
135
  }
166
- function En({
136
+ function xn({
167
137
  defaultProp: e,
168
138
  onChange: t
169
139
  }) {
170
- const [n, o] = f.useState(e), r = f.useRef(n), i = f.useRef(t);
171
- return bn(() => {
140
+ const [n, o] = l.useState(e), r = l.useRef(n), i = l.useRef(t);
141
+ return vn(() => {
172
142
  i.current = t;
173
- }, [t]), f.useEffect(() => {
143
+ }, [t]), l.useEffect(() => {
174
144
  var s;
175
145
  r.current !== n && ((s = i.current) == null || s.call(i, n), r.current = n);
176
146
  }, [n, r]), [n, o, i];
177
147
  }
178
- function Rn(e) {
148
+ function bn(e) {
179
149
  return typeof e == "function";
180
150
  }
181
- function Pn(e) {
182
- const [t, n] = f.useState(void 0);
183
- return Q(() => {
184
- if (e) {
185
- n({ width: e.offsetWidth, height: e.offsetHeight });
186
- const o = new ResizeObserver((r) => {
187
- if (!Array.isArray(r) || !r.length)
188
- return;
189
- const i = r[0];
190
- let s, c;
191
- if ("borderBoxSize" in i) {
192
- const a = i.borderBoxSize, l = Array.isArray(a) ? a[0] : a;
193
- s = l.inlineSize, c = l.blockSize;
194
- } else
195
- s = e.offsetWidth, c = e.offsetHeight;
196
- n({ width: s, height: c });
197
- });
198
- return o.observe(e, { box: "border-box" }), () => o.unobserve(e);
199
- } else
200
- n(void 0);
201
- }, [e]), t;
202
- }
203
- function An(e, t) {
204
- return f.useReducer((n, o) => t[n][o] ?? n, e);
205
- }
206
- var Ct = (e) => {
207
- const { present: t, children: n } = e, o = On(t), r = typeof n == "function" ? n({ present: o.isPresent }) : f.Children.only(n), i = te(o.ref, Sn(r));
208
- return typeof n == "function" || o.isPresent ? f.cloneElement(r, { ref: i }) : null;
209
- };
210
- Ct.displayName = "Presence";
211
- function On(e) {
212
- const [t, n] = f.useState(), o = f.useRef(null), r = f.useRef(e), i = f.useRef("none"), s = e ? "mounted" : "unmounted", [c, a] = An(s, {
213
- mounted: {
214
- UNMOUNT: "unmounted",
215
- ANIMATION_OUT: "unmountSuspended"
216
- },
217
- unmountSuspended: {
218
- MOUNT: "mounted",
219
- ANIMATION_END: "unmounted"
220
- },
221
- unmounted: {
222
- MOUNT: "mounted"
223
- }
224
- });
225
- return f.useEffect(() => {
226
- const l = me(o.current);
227
- i.current = c === "mounted" ? l : "none";
228
- }, [c]), Q(() => {
229
- const l = o.current, u = r.current;
230
- if (u !== e) {
231
- const m = i.current, p = me(l);
232
- e ? a("MOUNT") : p === "none" || (l == null ? void 0 : l.display) === "none" ? a("UNMOUNT") : a(u && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
233
- }
234
- }, [e, a]), Q(() => {
235
- if (t) {
236
- let l;
237
- const u = t.ownerDocument.defaultView ?? window, d = (p) => {
238
- const g = me(o.current).includes(CSS.escape(p.animationName));
239
- if (p.target === t && g && (a("ANIMATION_END"), !r.current)) {
240
- const v = t.style.animationFillMode;
241
- t.style.animationFillMode = "forwards", l = u.setTimeout(() => {
242
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
243
- });
244
- }
245
- }, m = (p) => {
246
- p.target === t && (i.current = me(o.current));
247
- };
248
- return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
249
- u.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
250
- };
251
- } else
252
- a("ANIMATION_END");
253
- }, [t, a]), {
254
- isPresent: ["mounted", "unmountSuspended"].includes(c),
255
- ref: f.useCallback((l) => {
256
- o.current = l ? getComputedStyle(l) : null, n(l);
257
- }, [])
258
- };
259
- }
260
- function me(e) {
261
- return (e == null ? void 0 : e.animationName) || "none";
262
- }
263
- function Sn(e) {
264
- var o, r;
265
- let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
266
- 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);
267
- }
268
151
  // @__NO_SIDE_EFFECTS__
269
- function Tn(e) {
270
- const t = /* @__PURE__ */ Dn(e), n = f.forwardRef((o, r) => {
271
- const { children: i, ...s } = o, c = f.Children.toArray(i), a = c.find(Nn);
152
+ function Cn(e) {
153
+ const t = /* @__PURE__ */ En(e), n = l.forwardRef((o, r) => {
154
+ const { children: i, ...s } = o, c = l.Children.toArray(i), a = c.find(Pn);
272
155
  if (a) {
273
- const l = a.props.children, u = c.map((d) => d === a ? f.Children.count(l) > 1 ? f.Children.only(null) : f.isValidElement(l) ? l.props.children : null : d);
274
- return /* @__PURE__ */ P(t, { ...s, ref: r, children: f.isValidElement(l) ? f.cloneElement(l, void 0, u) : null });
156
+ const u = a.props.children, f = c.map((d) => d === a ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : d);
157
+ return /* @__PURE__ */ P(t, { ...s, ref: r, children: l.isValidElement(u) ? l.cloneElement(u, void 0, f) : null });
275
158
  }
276
159
  return /* @__PURE__ */ P(t, { ...s, ref: r, children: i });
277
160
  });
278
161
  return n.displayName = `${e}.Slot`, n;
279
162
  }
280
163
  // @__NO_SIDE_EFFECTS__
281
- function Dn(e) {
282
- const t = f.forwardRef((n, o) => {
164
+ function En(e) {
165
+ const t = l.forwardRef((n, o) => {
283
166
  const { children: r, ...i } = n;
284
- if (f.isValidElement(r)) {
285
- const s = Mn(r), c = _n(i, r.props);
286
- return r.type !== f.Fragment && (c.ref = o ? Fe(o, s) : s), f.cloneElement(r, c);
167
+ if (l.isValidElement(r)) {
168
+ const s = On(r), c = An(i, r.props);
169
+ return r.type !== l.Fragment && (c.ref = o ? Fe(o, s) : s), l.cloneElement(r, c);
287
170
  }
288
- return f.Children.count(r) > 1 ? f.Children.only(null) : null;
171
+ return l.Children.count(r) > 1 ? l.Children.only(null) : null;
289
172
  });
290
173
  return t.displayName = `${e}.SlotClone`, t;
291
174
  }
292
- var Ln = Symbol("radix.slottable");
293
- function Nn(e) {
294
- return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ln;
175
+ var Rn = Symbol("radix.slottable");
176
+ function Pn(e) {
177
+ return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Rn;
295
178
  }
296
- function _n(e, t) {
179
+ function An(e, t) {
297
180
  const n = { ...t };
298
181
  for (const o in t) {
299
182
  const r = e[o], i = t[o];
@@ -304,12 +187,12 @@ function _n(e, t) {
304
187
  }
305
188
  return { ...e, ...n };
306
189
  }
307
- function Mn(e) {
190
+ function On(e) {
308
191
  var o, r;
309
192
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
310
193
  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);
311
194
  }
312
- var $n = [
195
+ var Sn = [
313
196
  "a",
314
197
  "button",
315
198
  "div",
@@ -327,127 +210,119 @@ var $n = [
327
210
  "span",
328
211
  "svg",
329
212
  "ul"
330
- ], ne = $n.reduce((e, t) => {
331
- const n = /* @__PURE__ */ Tn(`Primitive.${t}`), o = f.forwardRef((r, i) => {
213
+ ], ne = Sn.reduce((e, t) => {
214
+ const n = /* @__PURE__ */ Cn(`Primitive.${t}`), o = l.forwardRef((r, i) => {
332
215
  const { asChild: s, ...c } = r, a = s ? n : t;
333
216
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P(a, { ...c, ref: i });
334
217
  });
335
218
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
336
219
  }, {});
337
- function kn(e, t) {
338
- e && xt.flushSync(() => e.dispatchEvent(t));
339
- }
340
- /**
341
- * @license lucide-react v1.16.0 - ISC
342
- *
343
- * This source code is licensed under the ISC license.
344
- * See the LICENSE file in the root directory of this source tree.
345
- */
346
- const In = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Jr = mn("chevron-down", In);
347
- var Wn = Symbol.for("react.lazy"), ve = f[" use ".trim().toString()];
348
- function Fn(e) {
349
- return typeof e == "object" && e !== null && "then" in e;
220
+ function Tn(e, t) {
221
+ e && vt.flushSync(() => e.dispatchEvent(t));
350
222
  }
351
- function Et(e) {
352
- return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Wn && "_payload" in e && Fn(e._payload);
223
+ function Dn(e, t) {
224
+ return l.useReducer((n, o) => t[n][o] ?? n, e);
353
225
  }
354
- // @__NO_SIDE_EFFECTS__
355
- function Bn(e) {
356
- const t = /* @__PURE__ */ Vn(e), n = f.forwardRef((o, r) => {
357
- let { children: i, ...s } = o;
358
- Et(i) && typeof ve == "function" && (i = ve(i._payload));
359
- const c = f.Children.toArray(i), a = c.find(jn);
360
- if (a) {
361
- const l = a.props.children, u = c.map((d) => d === a ? f.Children.count(l) > 1 ? f.Children.only(null) : f.isValidElement(l) ? l.props.children : null : d);
362
- return /* @__PURE__ */ P(t, { ...s, ref: r, children: f.isValidElement(l) ? f.cloneElement(l, void 0, u) : null });
226
+ var xt = (e) => {
227
+ const { present: t, children: n } = e, o = Ln(t), r = typeof n == "function" ? n({ present: o.isPresent }) : l.Children.only(n), i = te(o.ref, Nn(r));
228
+ return typeof n == "function" || o.isPresent ? l.cloneElement(r, { ref: i }) : null;
229
+ };
230
+ xt.displayName = "Presence";
231
+ function Ln(e) {
232
+ const [t, n] = l.useState(), o = l.useRef(null), r = l.useRef(e), i = l.useRef("none"), s = e ? "mounted" : "unmounted", [c, a] = Dn(s, {
233
+ mounted: {
234
+ UNMOUNT: "unmounted",
235
+ ANIMATION_OUT: "unmountSuspended"
236
+ },
237
+ unmountSuspended: {
238
+ MOUNT: "mounted",
239
+ ANIMATION_END: "unmounted"
240
+ },
241
+ unmounted: {
242
+ MOUNT: "mounted"
363
243
  }
364
- return /* @__PURE__ */ P(t, { ...s, ref: r, children: i });
365
244
  });
366
- return n.displayName = `${e}.Slot`, n;
367
- }
368
- var Hn = /* @__PURE__ */ Bn("Slot");
369
- // @__NO_SIDE_EFFECTS__
370
- function Vn(e) {
371
- const t = f.forwardRef((n, o) => {
372
- let { children: r, ...i } = n;
373
- if (Et(r) && typeof ve == "function" && (r = ve(r._payload)), f.isValidElement(r)) {
374
- const s = Yn(r), c = Un(i, r.props);
375
- return r.type !== f.Fragment && (c.ref = o ? Fe(o, s) : s), f.cloneElement(r, c);
245
+ return l.useEffect(() => {
246
+ const u = me(o.current);
247
+ i.current = c === "mounted" ? u : "none";
248
+ }, [c]), Q(() => {
249
+ const u = o.current, f = r.current;
250
+ if (f !== e) {
251
+ const m = i.current, p = me(u);
252
+ e ? a("MOUNT") : p === "none" || (u == null ? void 0 : u.display) === "none" ? a("UNMOUNT") : a(f && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
376
253
  }
377
- return f.Children.count(r) > 1 ? f.Children.only(null) : null;
378
- });
379
- return t.displayName = `${e}.SlotClone`, t;
380
- }
381
- var zn = Symbol("radix.slottable");
382
- function jn(e) {
383
- return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === zn;
254
+ }, [e, a]), Q(() => {
255
+ if (t) {
256
+ let u;
257
+ const f = t.ownerDocument.defaultView ?? window, d = (p) => {
258
+ const g = me(o.current).includes(CSS.escape(p.animationName));
259
+ if (p.target === t && g && (a("ANIMATION_END"), !r.current)) {
260
+ const y = t.style.animationFillMode;
261
+ t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
262
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = y);
263
+ });
264
+ }
265
+ }, m = (p) => {
266
+ p.target === t && (i.current = me(o.current));
267
+ };
268
+ return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
269
+ f.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
270
+ };
271
+ } else
272
+ a("ANIMATION_END");
273
+ }, [t, a]), {
274
+ isPresent: ["mounted", "unmountSuspended"].includes(c),
275
+ ref: l.useCallback((u) => {
276
+ o.current = u ? getComputedStyle(u) : null, n(u);
277
+ }, [])
278
+ };
384
279
  }
385
- function Un(e, t) {
386
- const n = { ...t };
387
- for (const o in t) {
388
- const r = e[o], i = t[o];
389
- /^on[A-Z]/.test(o) ? r && i ? n[o] = (...c) => {
390
- const a = i(...c);
391
- return r(...c), a;
392
- } : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...i } : o === "className" && (n[o] = [r, i].filter(Boolean).join(" "));
393
- }
394
- return { ...e, ...n };
280
+ function me(e) {
281
+ return (e == null ? void 0 : e.animationName) || "none";
395
282
  }
396
- function Yn(e) {
283
+ function Nn(e) {
397
284
  var o, r;
398
285
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
399
286
  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);
400
287
  }
401
- const Xn = wn(
402
- "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",
403
- {
404
- variants: {
405
- variant: {
406
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
407
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
408
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
409
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
410
- ghost: "hover:bg-accent hover:text-accent-foreground",
411
- link: "text-primary underline-offset-4 hover:underline",
412
- styled: "bg-gradient-to-r from-slate-900 to-purple-700 hover:from-slate-800 hover:to-purple-600 text-white shadow-lg shadow-purple-500/25 px-6 h-12"
413
- },
414
- size: {
415
- default: "h-10 px-4 py-2",
416
- sm: "h-9 rounded-md px-3",
417
- lg: "h-11 rounded-md px-8",
418
- icon: "h-10 w-10"
419
- }
420
- },
421
- defaultVariants: {
422
- variant: "default",
423
- size: "default"
424
- }
425
- }
426
- ), qn = f.forwardRef(({ className: e, variant: t, size: n, asChild: o = !1, ...r }, i) => /* @__PURE__ */ P(o ? Hn : "button", { className: wt(Xn({ variant: t, size: n, className: e })), ref: i, ...r }));
427
- qn.displayName = "Button";
288
+ var _n = l[" useId ".trim().toString()] || (() => {
289
+ }), Mn = 0;
290
+ function $n(e) {
291
+ const [t, n] = l.useState(_n());
292
+ return Q(() => {
293
+ n((o) => o ?? String(Mn++));
294
+ }, [e]), t ? `radix-${t}` : "";
295
+ }
296
+ /**
297
+ * @license lucide-react v1.16.0 - ISC
298
+ *
299
+ * This source code is licensed under the ISC license.
300
+ * See the LICENSE file in the root directory of this source tree.
301
+ */
302
+ const kn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Gr = dn("chevron-down", kn);
428
303
  function Ce(e) {
429
- const t = f.useRef(e);
430
- return f.useEffect(() => {
304
+ const t = l.useRef(e);
305
+ return l.useEffect(() => {
431
306
  t.current = e;
432
- }), f.useMemo(() => (...n) => {
307
+ }), l.useMemo(() => (...n) => {
433
308
  var o;
434
309
  return (o = t.current) == null ? void 0 : o.call(t, ...n);
435
310
  }, []);
436
311
  }
437
- function Gn(e, t = globalThis == null ? void 0 : globalThis.document) {
312
+ function In(e, t = globalThis == null ? void 0 : globalThis.document) {
438
313
  const n = Ce(e);
439
- f.useEffect(() => {
314
+ l.useEffect(() => {
440
315
  const o = (r) => {
441
316
  r.key === "Escape" && n(r);
442
317
  };
443
318
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
444
319
  }, [n, t]);
445
320
  }
446
- var Kn = "DismissableLayer", _e = "dismissableLayer.update", Zn = "dismissableLayer.pointerDownOutside", Jn = "dismissableLayer.focusOutside", st, Rt = f.createContext({
321
+ var Wn = "DismissableLayer", _e = "dismissableLayer.update", Fn = "dismissableLayer.pointerDownOutside", Bn = "dismissableLayer.focusOutside", rt, bt = l.createContext({
447
322
  layers: /* @__PURE__ */ new Set(),
448
323
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
449
324
  branches: /* @__PURE__ */ new Set()
450
- }), Be = f.forwardRef(
325
+ }), Be = l.forwardRef(
451
326
  (e, t) => {
452
327
  const {
453
328
  disableOutsidePointerEvents: n = !1,
@@ -457,23 +332,23 @@ var Kn = "DismissableLayer", _e = "dismissableLayer.update", Zn = "dismissableLa
457
332
  onInteractOutside: s,
458
333
  onDismiss: c,
459
334
  ...a
460
- } = e, l = f.useContext(Rt), [u, d] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = f.useState({}), h = te(t, (C) => d(C)), g = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(v), w = u ? g.indexOf(u) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, R = eo((C) => {
461
- const O = C.target, _ = [...l.branches].some((S) => S.contains(O));
335
+ } = e, u = l.useContext(bt), [f, d] = l.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = l.useState({}), h = te(t, (C) => d(C)), g = Array.from(u.layers), [y] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(y), w = f ? g.indexOf(f) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= v, R = Vn((C) => {
336
+ const O = C.target, _ = [...u.branches].some((S) => S.contains(O));
462
337
  !x || _ || (r == null || r(C), s == null || s(C), C.defaultPrevented || c == null || c());
463
- }, m), E = to((C) => {
338
+ }, m), E = zn((C) => {
464
339
  const O = C.target;
465
- [...l.branches].some((S) => S.contains(O)) || (i == null || i(C), s == null || s(C), C.defaultPrevented || c == null || c());
340
+ [...u.branches].some((S) => S.contains(O)) || (i == null || i(C), s == null || s(C), C.defaultPrevented || c == null || c());
466
341
  }, m);
467
- return Gn((C) => {
468
- w === l.layers.size - 1 && (o == null || o(C), !C.defaultPrevented && c && (C.preventDefault(), c()));
469
- }, m), f.useEffect(() => {
470
- if (u)
471
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (st = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), ct(), () => {
472
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = st);
342
+ return In((C) => {
343
+ w === u.layers.size - 1 && (o == null || o(C), !C.defaultPrevented && c && (C.preventDefault(), c()));
344
+ }, m), l.useEffect(() => {
345
+ if (f)
346
+ return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (rt = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), it(), () => {
347
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = rt);
473
348
  };
474
- }, [u, m, n, l]), f.useEffect(() => () => {
475
- u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), ct());
476
- }, [u, l]), f.useEffect(() => {
349
+ }, [f, m, n, u]), l.useEffect(() => () => {
350
+ f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), it());
351
+ }, [f, u]), l.useEffect(() => {
477
352
  const C = () => p({});
478
353
  return document.addEventListener(_e, C), () => document.removeEventListener(_e, C);
479
354
  }, []), /* @__PURE__ */ P(
@@ -495,10 +370,10 @@ var Kn = "DismissableLayer", _e = "dismissableLayer.update", Zn = "dismissableLa
495
370
  );
496
371
  }
497
372
  );
498
- Be.displayName = Kn;
499
- var Qn = "DismissableLayerBranch", Pt = f.forwardRef((e, t) => {
500
- const n = f.useContext(Rt), o = f.useRef(null), r = te(t, o);
501
- return f.useEffect(() => {
373
+ Be.displayName = Wn;
374
+ var Hn = "DismissableLayerBranch", Ct = l.forwardRef((e, t) => {
375
+ const n = l.useContext(bt), o = l.useRef(null), r = te(t, o);
376
+ return l.useEffect(() => {
502
377
  const i = o.current;
503
378
  if (i)
504
379
  return n.branches.add(i), () => {
@@ -506,22 +381,22 @@ var Qn = "DismissableLayerBranch", Pt = f.forwardRef((e, t) => {
506
381
  };
507
382
  }, [n.branches]), /* @__PURE__ */ P(ne.div, { ...e, ref: r });
508
383
  });
509
- Pt.displayName = Qn;
510
- function eo(e, t = globalThis == null ? void 0 : globalThis.document) {
511
- const n = Ce(e), o = f.useRef(!1), r = f.useRef(() => {
384
+ Ct.displayName = Hn;
385
+ function Vn(e, t = globalThis == null ? void 0 : globalThis.document) {
386
+ const n = Ce(e), o = l.useRef(!1), r = l.useRef(() => {
512
387
  });
513
- return f.useEffect(() => {
388
+ return l.useEffect(() => {
514
389
  const i = (c) => {
515
390
  if (c.target && !o.current) {
516
391
  let a = function() {
517
- At(
518
- Zn,
392
+ Et(
393
+ Fn,
519
394
  n,
520
- l,
395
+ u,
521
396
  { discrete: !0 }
522
397
  );
523
398
  };
524
- const l = { originalEvent: c };
399
+ const u = { originalEvent: c };
525
400
  c.pointerType === "touch" ? (t.removeEventListener("click", r.current), r.current = a, t.addEventListener("click", r.current, { once: !0 })) : a();
526
401
  } else
527
402
  t.removeEventListener("click", r.current);
@@ -537,11 +412,11 @@ function eo(e, t = globalThis == null ? void 0 : globalThis.document) {
537
412
  onPointerDownCapture: () => o.current = !0
538
413
  };
539
414
  }
540
- function to(e, t = globalThis == null ? void 0 : globalThis.document) {
541
- const n = Ce(e), o = f.useRef(!1);
542
- return f.useEffect(() => {
415
+ function zn(e, t = globalThis == null ? void 0 : globalThis.document) {
416
+ const n = Ce(e), o = l.useRef(!1);
417
+ return l.useEffect(() => {
543
418
  const r = (i) => {
544
- i.target && !o.current && At(Jn, n, { originalEvent: i }, {
419
+ i.target && !o.current && Et(Bn, n, { originalEvent: i }, {
545
420
  discrete: !1
546
421
  });
547
422
  };
@@ -551,49 +426,121 @@ function to(e, t = globalThis == null ? void 0 : globalThis.document) {
551
426
  onBlurCapture: () => o.current = !1
552
427
  };
553
428
  }
554
- function ct() {
429
+ function it() {
555
430
  const e = new CustomEvent(_e);
556
431
  document.dispatchEvent(e);
557
432
  }
558
- function At(e, t, n, { discrete: o }) {
433
+ function Et(e, t, n, { discrete: o }) {
559
434
  const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
560
- t && r.addEventListener(e, t, { once: !0 }), o ? kn(r, i) : r.dispatchEvent(i);
435
+ t && r.addEventListener(e, t, { once: !0 }), o ? Tn(r, i) : r.dispatchEvent(i);
561
436
  }
562
- var Qr = Be, ei = Pt, no = Object.freeze({
563
- // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
564
- position: "absolute",
565
- border: 0,
566
- width: 1,
567
- height: 1,
568
- padding: 0,
569
- margin: -1,
570
- overflow: "hidden",
571
- clip: "rect(0, 0, 0, 0)",
572
- whiteSpace: "nowrap",
573
- wordWrap: "normal"
574
- }), oo = "VisuallyHidden", Ot = f.forwardRef(
575
- (e, t) => /* @__PURE__ */ P(
576
- ne.span,
577
- {
578
- ...e,
579
- ref: t,
580
- style: { ...no, ...e.style }
437
+ var Kr = Be, Zr = Ct, jn = Symbol.for("react.lazy"), ye = l[" use ".trim().toString()];
438
+ function Un(e) {
439
+ return typeof e == "object" && e !== null && "then" in e;
440
+ }
441
+ function Rt(e) {
442
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === jn && "_payload" in e && Un(e._payload);
443
+ }
444
+ // @__NO_SIDE_EFFECTS__
445
+ function Yn(e) {
446
+ const t = /* @__PURE__ */ qn(e), n = l.forwardRef((o, r) => {
447
+ let { children: i, ...s } = o;
448
+ Rt(i) && typeof ye == "function" && (i = ye(i._payload));
449
+ const c = l.Children.toArray(i), a = c.find(Kn);
450
+ if (a) {
451
+ const u = a.props.children, f = c.map((d) => d === a ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : d);
452
+ return /* @__PURE__ */ P(t, { ...s, ref: r, children: l.isValidElement(u) ? l.cloneElement(u, void 0, f) : null });
581
453
  }
582
- )
583
- );
584
- Ot.displayName = oo;
585
- var ro = Ot, io = f[" useId ".trim().toString()] || (() => {
586
- }), so = 0;
587
- function co(e) {
588
- const [t, n] = f.useState(io());
454
+ return /* @__PURE__ */ P(t, { ...s, ref: r, children: i });
455
+ });
456
+ return n.displayName = `${e}.Slot`, n;
457
+ }
458
+ var Xn = /* @__PURE__ */ Yn("Slot");
459
+ // @__NO_SIDE_EFFECTS__
460
+ function qn(e) {
461
+ const t = l.forwardRef((n, o) => {
462
+ let { children: r, ...i } = n;
463
+ if (Rt(r) && typeof ye == "function" && (r = ye(r._payload)), l.isValidElement(r)) {
464
+ const s = Jn(r), c = Zn(i, r.props);
465
+ return r.type !== l.Fragment && (c.ref = o ? Fe(o, s) : s), l.cloneElement(r, c);
466
+ }
467
+ return l.Children.count(r) > 1 ? l.Children.only(null) : null;
468
+ });
469
+ return t.displayName = `${e}.SlotClone`, t;
470
+ }
471
+ var Gn = Symbol("radix.slottable");
472
+ function Kn(e) {
473
+ return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Gn;
474
+ }
475
+ function Zn(e, t) {
476
+ const n = { ...t };
477
+ for (const o in t) {
478
+ const r = e[o], i = t[o];
479
+ /^on[A-Z]/.test(o) ? r && i ? n[o] = (...c) => {
480
+ const a = i(...c);
481
+ return r(...c), a;
482
+ } : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...i } : o === "className" && (n[o] = [r, i].filter(Boolean).join(" "));
483
+ }
484
+ return { ...e, ...n };
485
+ }
486
+ function Jn(e) {
487
+ var o, r;
488
+ let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
489
+ 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);
490
+ }
491
+ const Qn = pn(
492
+ "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",
493
+ {
494
+ variants: {
495
+ variant: {
496
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
497
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
498
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
499
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
500
+ ghost: "hover:bg-accent hover:text-accent-foreground",
501
+ link: "text-primary underline-offset-4 hover:underline",
502
+ styled: "bg-gradient-to-r from-slate-900 to-purple-700 hover:from-slate-800 hover:to-purple-600 text-white shadow-lg shadow-purple-500/25 px-6 h-12"
503
+ },
504
+ size: {
505
+ default: "h-10 px-4 py-2",
506
+ sm: "h-9 rounded-md px-3",
507
+ lg: "h-11 rounded-md px-8",
508
+ icon: "h-10 w-10"
509
+ }
510
+ },
511
+ defaultVariants: {
512
+ variant: "default",
513
+ size: "default"
514
+ }
515
+ }
516
+ ), eo = l.forwardRef(({ className: e, variant: t, size: n, asChild: o = !1, ...r }, i) => /* @__PURE__ */ P(o ? Xn : "button", { className: yt(Qn({ variant: t, size: n, className: e })), ref: i, ...r }));
517
+ eo.displayName = "Button";
518
+ function to(e) {
519
+ const [t, n] = l.useState(void 0);
589
520
  return Q(() => {
590
- n((o) => o ?? String(so++));
591
- }, [e]), t ? `radix-${t}` : "";
521
+ if (e) {
522
+ n({ width: e.offsetWidth, height: e.offsetHeight });
523
+ const o = new ResizeObserver((r) => {
524
+ if (!Array.isArray(r) || !r.length)
525
+ return;
526
+ const i = r[0];
527
+ let s, c;
528
+ if ("borderBoxSize" in i) {
529
+ const a = i.borderBoxSize, u = Array.isArray(a) ? a[0] : a;
530
+ s = u.inlineSize, c = u.blockSize;
531
+ } else
532
+ s = e.offsetWidth, c = e.offsetHeight;
533
+ n({ width: s, height: c });
534
+ });
535
+ return o.observe(e, { box: "border-box" }), () => o.unobserve(e);
536
+ } else
537
+ n(void 0);
538
+ }, [e]), t;
592
539
  }
593
- const ao = ["top", "right", "bottom", "left"], K = Math.min, W = Math.max, ye = Math.round, he = Math.floor, j = (e) => ({
540
+ const no = ["top", "right", "bottom", "left"], K = Math.min, W = Math.max, ve = Math.round, he = Math.floor, j = (e) => ({
594
541
  x: e,
595
542
  y: e
596
- }), lo = {
543
+ }), oo = {
597
544
  left: "right",
598
545
  right: "left",
599
546
  bottom: "top",
@@ -624,42 +571,42 @@ function z(e) {
624
571
  function ze(e) {
625
572
  return He(z(e));
626
573
  }
627
- function uo(e, t, n) {
574
+ function ro(e, t, n) {
628
575
  n === void 0 && (n = !1);
629
576
  const o = se(e), r = ze(e), i = Ve(r);
630
577
  let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
631
578
  return t.reference[i] > t.floating[i] && (s = we(s)), [s, we(s)];
632
579
  }
633
- function fo(e) {
580
+ function io(e) {
634
581
  const t = we(e);
635
582
  return [$e(e), t, $e(t)];
636
583
  }
637
584
  function $e(e) {
638
585
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
639
586
  }
640
- const at = ["left", "right"], lt = ["right", "left"], po = ["top", "bottom"], mo = ["bottom", "top"];
641
- function ho(e, t, n) {
587
+ const st = ["left", "right"], ct = ["right", "left"], so = ["top", "bottom"], co = ["bottom", "top"];
588
+ function ao(e, t, n) {
642
589
  switch (e) {
643
590
  case "top":
644
591
  case "bottom":
645
- return n ? t ? lt : at : t ? at : lt;
592
+ return n ? t ? ct : st : t ? st : ct;
646
593
  case "left":
647
594
  case "right":
648
- return t ? po : mo;
595
+ return t ? so : co;
649
596
  default:
650
597
  return [];
651
598
  }
652
599
  }
653
- function go(e, t, n, o) {
600
+ function lo(e, t, n, o) {
654
601
  const r = se(e);
655
- let i = ho(q(e), n === "start", o);
602
+ let i = ao(q(e), n === "start", o);
656
603
  return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map($e)))), i;
657
604
  }
658
605
  function we(e) {
659
606
  const t = q(e);
660
- return lo[t] + e.slice(t.length);
607
+ return oo[t] + e.slice(t.length);
661
608
  }
662
- function vo(e) {
609
+ function uo(e) {
663
610
  return {
664
611
  top: 0,
665
612
  right: 0,
@@ -668,8 +615,8 @@ function vo(e) {
668
615
  ...e
669
616
  };
670
617
  }
671
- function St(e) {
672
- return typeof e != "number" ? vo(e) : {
618
+ function Pt(e) {
619
+ return typeof e != "number" ? uo(e) : {
673
620
  top: e,
674
621
  right: e,
675
622
  bottom: e,
@@ -694,23 +641,23 @@ function xe(e) {
694
641
  y: n
695
642
  };
696
643
  }
697
- function ut(e, t, n) {
644
+ function at(e, t, n) {
698
645
  let {
699
646
  reference: o,
700
647
  floating: r
701
648
  } = e;
702
- const i = z(t), s = ze(t), c = Ve(s), a = q(t), l = i === "y", u = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, m = o[c] / 2 - r[c] / 2;
649
+ const i = z(t), s = ze(t), c = Ve(s), a = q(t), u = i === "y", f = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, m = o[c] / 2 - r[c] / 2;
703
650
  let p;
704
651
  switch (a) {
705
652
  case "top":
706
653
  p = {
707
- x: u,
654
+ x: f,
708
655
  y: o.y - r.height
709
656
  };
710
657
  break;
711
658
  case "bottom":
712
659
  p = {
713
- x: u,
660
+ x: f,
714
661
  y: o.y + o.height
715
662
  };
716
663
  break;
@@ -734,15 +681,15 @@ function ut(e, t, n) {
734
681
  }
735
682
  switch (se(t)) {
736
683
  case "start":
737
- p[s] -= m * (n && l ? -1 : 1);
684
+ p[s] -= m * (n && u ? -1 : 1);
738
685
  break;
739
686
  case "end":
740
- p[s] += m * (n && l ? -1 : 1);
687
+ p[s] += m * (n && u ? -1 : 1);
741
688
  break;
742
689
  }
743
690
  return p;
744
691
  }
745
- async function yo(e, t) {
692
+ async function fo(e, t) {
746
693
  var n;
747
694
  t === void 0 && (t = {});
748
695
  const {
@@ -753,15 +700,15 @@ async function yo(e, t) {
753
700
  elements: c,
754
701
  strategy: a
755
702
  } = e, {
756
- boundary: l = "clippingAncestors",
757
- rootBoundary: u = "viewport",
703
+ boundary: u = "clippingAncestors",
704
+ rootBoundary: f = "viewport",
758
705
  elementContext: d = "floating",
759
706
  altBoundary: m = !1,
760
707
  padding: p = 0
761
- } = X(t, e), h = St(p), v = c[m ? d === "floating" ? "reference" : "floating" : d], y = xe(await i.getClippingRect({
762
- element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
763
- boundary: l,
764
- rootBoundary: u,
708
+ } = X(t, e), h = Pt(p), y = c[m ? d === "floating" ? "reference" : "floating" : d], v = xe(await i.getClippingRect({
709
+ 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)),
710
+ boundary: u,
711
+ rootBoundary: f,
765
712
  strategy: a
766
713
  })), w = d === "floating" ? {
767
714
  x: o,
@@ -781,13 +728,13 @@ async function yo(e, t) {
781
728
  strategy: a
782
729
  }) : w);
783
730
  return {
784
- top: (y.top - R.top + h.top) / x.y,
785
- bottom: (R.bottom - y.bottom + h.bottom) / x.y,
786
- left: (y.left - R.left + h.left) / x.x,
787
- right: (R.right - y.right + h.right) / x.x
731
+ top: (v.top - R.top + h.top) / x.y,
732
+ bottom: (R.bottom - v.bottom + h.bottom) / x.y,
733
+ left: (v.left - R.left + h.left) / x.x,
734
+ right: (R.right - v.right + h.right) / x.x
788
735
  };
789
736
  }
790
- const wo = 50, xo = async (e, t, n) => {
737
+ const po = 50, mo = async (e, t, n) => {
791
738
  const {
792
739
  placement: o = "bottom",
793
740
  strategy: r = "absolute",
@@ -795,63 +742,63 @@ const wo = 50, xo = async (e, t, n) => {
795
742
  platform: s
796
743
  } = n, c = s.detectOverflow ? s : {
797
744
  ...s,
798
- detectOverflow: yo
745
+ detectOverflow: fo
799
746
  }, a = await (s.isRTL == null ? void 0 : s.isRTL(t));
800
- let l = await s.getElementRects({
747
+ let u = await s.getElementRects({
801
748
  reference: e,
802
749
  floating: t,
803
750
  strategy: r
804
751
  }), {
805
- x: u,
752
+ x: f,
806
753
  y: d
807
- } = ut(l, o, a), m = o, p = 0;
754
+ } = at(u, o, a), m = o, p = 0;
808
755
  const h = {};
809
756
  for (let g = 0; g < i.length; g++) {
810
- const v = i[g];
811
- if (!v)
757
+ const y = i[g];
758
+ if (!y)
812
759
  continue;
813
760
  const {
814
- name: y,
761
+ name: v,
815
762
  fn: w
816
- } = v, {
763
+ } = y, {
817
764
  x: b,
818
765
  y: x,
819
766
  data: R,
820
767
  reset: E
821
768
  } = await w({
822
- x: u,
769
+ x: f,
823
770
  y: d,
824
771
  initialPlacement: o,
825
772
  placement: m,
826
773
  strategy: r,
827
774
  middlewareData: h,
828
- rects: l,
775
+ rects: u,
829
776
  platform: c,
830
777
  elements: {
831
778
  reference: e,
832
779
  floating: t
833
780
  }
834
781
  });
835
- u = b ?? u, d = x ?? d, h[y] = {
836
- ...h[y],
782
+ f = b ?? f, d = x ?? d, h[v] = {
783
+ ...h[v],
837
784
  ...R
838
- }, E && p < wo && (p++, typeof E == "object" && (E.placement && (m = E.placement), E.rects && (l = E.rects === !0 ? await s.getElementRects({
785
+ }, E && p < po && (p++, typeof E == "object" && (E.placement && (m = E.placement), E.rects && (u = E.rects === !0 ? await s.getElementRects({
839
786
  reference: e,
840
787
  floating: t,
841
788
  strategy: r
842
789
  }) : E.rects), {
843
- x: u,
790
+ x: f,
844
791
  y: d
845
- } = ut(l, m, a)), g = -1);
792
+ } = at(u, m, a)), g = -1);
846
793
  }
847
794
  return {
848
- x: u,
795
+ x: f,
849
796
  y: d,
850
797
  placement: m,
851
798
  strategy: r,
852
799
  middlewareData: h
853
800
  };
854
- }, bo = (e) => ({
801
+ }, ho = (e) => ({
855
802
  name: "arrow",
856
803
  options: e,
857
804
  async fn(t) {
@@ -864,18 +811,18 @@ const wo = 50, xo = async (e, t, n) => {
864
811
  elements: c,
865
812
  middlewareData: a
866
813
  } = t, {
867
- element: l,
868
- padding: u = 0
814
+ element: u,
815
+ padding: f = 0
869
816
  } = X(e, t) || {};
870
- if (l == null)
817
+ if (u == null)
871
818
  return {};
872
- const d = St(u), m = {
819
+ const d = Pt(f), m = {
873
820
  x: n,
874
821
  y: o
875
- }, p = ze(r), h = Ve(p), g = await s.getDimensions(l), v = p === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[p] - m[p] - i.floating[h], R = m[p] - i.reference[p], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
822
+ }, p = ze(r), h = Ve(p), g = await s.getDimensions(u), y = p === "y", v = y ? "top" : "left", w = y ? "bottom" : "right", b = y ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[p] - m[p] - i.floating[h], R = m[p] - i.reference[p], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
876
823
  let C = E ? E[b] : 0;
877
824
  (!C || !await (s.isElement == null ? void 0 : s.isElement(E))) && (C = c.floating[b] || i.floating[h]);
878
- const O = x / 2 - R / 2, _ = C / 2 - g[h] / 2 - 1, S = K(d[y], _), $ = K(d[w], _), k = S, D = C - g[h] - $, T = C / 2 - g[h] / 2 + O, I = Me(k, T, D), L = !a.arrow && se(r) != null && T !== I && i.reference[h] / 2 - (T < k ? S : $) - g[h] / 2 < 0, N = L ? T < k ? T - k : T - D : 0;
825
+ const O = x / 2 - R / 2, _ = C / 2 - g[h] / 2 - 1, S = K(d[v], _), $ = K(d[w], _), k = S, D = C - g[h] - $, T = C / 2 - g[h] / 2 + O, I = Me(k, T, D), L = !a.arrow && se(r) != null && T !== I && i.reference[h] / 2 - (T < k ? S : $) - g[h] / 2 < 0, N = L ? T < k ? T - k : T - D : 0;
879
826
  return {
880
827
  [p]: m[p] + N,
881
828
  data: {
@@ -888,7 +835,7 @@ const wo = 50, xo = async (e, t, n) => {
888
835
  reset: L
889
836
  };
890
837
  }
891
- }), Co = function(e) {
838
+ }), go = function(e) {
892
839
  return e === void 0 && (e = {}), {
893
840
  name: "flip",
894
841
  options: e,
@@ -900,24 +847,24 @@ const wo = 50, xo = async (e, t, n) => {
900
847
  rects: s,
901
848
  initialPlacement: c,
902
849
  platform: a,
903
- elements: l
850
+ elements: u
904
851
  } = t, {
905
- mainAxis: u = !0,
852
+ mainAxis: f = !0,
906
853
  crossAxis: d = !0,
907
854
  fallbackPlacements: m,
908
855
  fallbackStrategy: p = "bestFit",
909
856
  fallbackAxisSideDirection: h = "none",
910
857
  flipAlignment: g = !0,
911
- ...v
858
+ ...y
912
859
  } = X(e, t);
913
860
  if ((n = i.arrow) != null && n.alignmentOffset)
914
861
  return {};
915
- const y = q(r), w = z(c), b = q(c) === c, x = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), R = m || (b || !g ? [we(c)] : fo(c)), E = h !== "none";
916
- !m && E && R.push(...go(c, g, h, x));
917
- const C = [c, ...R], O = await a.detectOverflow(t, v), _ = [];
862
+ const v = q(r), w = z(c), b = q(c) === c, x = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), R = m || (b || !g ? [we(c)] : io(c)), E = h !== "none";
863
+ !m && E && R.push(...lo(c, g, h, x));
864
+ const C = [c, ...R], O = await a.detectOverflow(t, y), _ = [];
918
865
  let S = ((o = i.flip) == null ? void 0 : o.overflows) || [];
919
- if (u && _.push(O[y]), d) {
920
- const T = uo(r, s, x);
866
+ if (f && _.push(O[v]), d) {
867
+ const T = ro(r, s, x);
921
868
  _.push(O[T[0]], O[T[1]]);
922
869
  }
923
870
  if (S = [...S, {
@@ -970,7 +917,7 @@ const wo = 50, xo = async (e, t, n) => {
970
917
  }
971
918
  };
972
919
  };
973
- function ft(e, t) {
920
+ function lt(e, t) {
974
921
  return {
975
922
  top: e.top - t.height,
976
923
  right: e.right - t.width,
@@ -978,10 +925,10 @@ function ft(e, t) {
978
925
  left: e.left - t.width
979
926
  };
980
927
  }
981
- function dt(e) {
982
- return ao.some((t) => e[t] >= 0);
928
+ function ut(e) {
929
+ return no.some((t) => e[t] >= 0);
983
930
  }
984
- const Eo = function(e) {
931
+ const yo = function(e) {
985
932
  return e === void 0 && (e = {}), {
986
933
  name: "hide",
987
934
  options: e,
@@ -998,11 +945,11 @@ const Eo = function(e) {
998
945
  const s = await o.detectOverflow(t, {
999
946
  ...i,
1000
947
  elementContext: "reference"
1001
- }), c = ft(s, n.reference);
948
+ }), c = lt(s, n.reference);
1002
949
  return {
1003
950
  data: {
1004
951
  referenceHiddenOffsets: c,
1005
- referenceHidden: dt(c)
952
+ referenceHidden: ut(c)
1006
953
  }
1007
954
  };
1008
955
  }
@@ -1010,11 +957,11 @@ const Eo = function(e) {
1010
957
  const s = await o.detectOverflow(t, {
1011
958
  ...i,
1012
959
  altBoundary: !0
1013
- }), c = ft(s, n.floating);
960
+ }), c = lt(s, n.floating);
1014
961
  return {
1015
962
  data: {
1016
963
  escapedOffsets: c,
1017
- escaped: dt(c)
964
+ escaped: ut(c)
1018
965
  }
1019
966
  };
1020
967
  }
@@ -1023,13 +970,13 @@ const Eo = function(e) {
1023
970
  }
1024
971
  }
1025
972
  };
1026
- }, Tt = /* @__PURE__ */ new Set(["left", "top"]);
1027
- async function Ro(e, t) {
973
+ }, At = /* @__PURE__ */ new Set(["left", "top"]);
974
+ async function vo(e, t) {
1028
975
  const {
1029
976
  placement: n,
1030
977
  platform: o,
1031
978
  elements: r
1032
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = q(n), c = se(n), a = z(n) === "y", l = Tt.has(s) ? -1 : 1, u = i && a ? -1 : 1, d = X(t, e);
979
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = q(n), c = se(n), a = z(n) === "y", u = At.has(s) ? -1 : 1, f = i && a ? -1 : 1, d = X(t, e);
1033
980
  let {
1034
981
  mainAxis: m,
1035
982
  crossAxis: p,
@@ -1044,14 +991,14 @@ async function Ro(e, t) {
1044
991
  alignmentAxis: d.alignmentAxis
1045
992
  };
1046
993
  return c && typeof h == "number" && (p = c === "end" ? h * -1 : h), a ? {
1047
- x: p * u,
1048
- y: m * l
994
+ x: p * f,
995
+ y: m * u
1049
996
  } : {
1050
- x: m * l,
1051
- y: p * u
997
+ x: m * u,
998
+ y: p * f
1052
999
  };
1053
1000
  }
1054
- const Po = function(e) {
1001
+ const wo = function(e) {
1055
1002
  return e === void 0 && (e = 0), {
1056
1003
  name: "offset",
1057
1004
  options: e,
@@ -1062,7 +1009,7 @@ const Po = function(e) {
1062
1009
  y: i,
1063
1010
  placement: s,
1064
1011
  middlewareData: c
1065
- } = t, a = await Ro(t, e);
1012
+ } = t, a = await vo(t, e);
1066
1013
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
1067
1014
  x: r + a.x,
1068
1015
  y: i + a.y,
@@ -1073,7 +1020,7 @@ const Po = function(e) {
1073
1020
  };
1074
1021
  }
1075
1022
  };
1076
- }, Ao = function(e) {
1023
+ }, xo = function(e) {
1077
1024
  return e === void 0 && (e = {}), {
1078
1025
  name: "shift",
1079
1026
  options: e,
@@ -1087,41 +1034,41 @@ const Po = function(e) {
1087
1034
  mainAxis: s = !0,
1088
1035
  crossAxis: c = !1,
1089
1036
  limiter: a = {
1090
- fn: (y) => {
1037
+ fn: (v) => {
1091
1038
  let {
1092
1039
  x: w,
1093
1040
  y: b
1094
- } = y;
1041
+ } = v;
1095
1042
  return {
1096
1043
  x: w,
1097
1044
  y: b
1098
1045
  };
1099
1046
  }
1100
1047
  },
1101
- ...l
1102
- } = X(e, t), u = {
1048
+ ...u
1049
+ } = X(e, t), f = {
1103
1050
  x: n,
1104
1051
  y: o
1105
- }, d = await i.detectOverflow(t, l), m = z(q(r)), p = He(m);
1106
- let h = u[p], g = u[m];
1052
+ }, d = await i.detectOverflow(t, u), m = z(q(r)), p = He(m);
1053
+ let h = f[p], g = f[m];
1107
1054
  if (s) {
1108
- const y = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", b = h + d[y], x = h - d[w];
1055
+ const v = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", b = h + d[v], x = h - d[w];
1109
1056
  h = Me(b, h, x);
1110
1057
  }
1111
1058
  if (c) {
1112
- const y = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", b = g + d[y], x = g - d[w];
1059
+ const v = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", b = g + d[v], x = g - d[w];
1113
1060
  g = Me(b, g, x);
1114
1061
  }
1115
- const v = a.fn({
1062
+ const y = a.fn({
1116
1063
  ...t,
1117
1064
  [p]: h,
1118
1065
  [m]: g
1119
1066
  });
1120
1067
  return {
1121
- ...v,
1068
+ ...y,
1122
1069
  data: {
1123
- x: v.x - n,
1124
- y: v.y - o,
1070
+ x: y.x - n,
1071
+ y: y.y - o,
1125
1072
  enabled: {
1126
1073
  [p]: s,
1127
1074
  [m]: c
@@ -1130,7 +1077,7 @@ const Po = function(e) {
1130
1077
  };
1131
1078
  }
1132
1079
  };
1133
- }, Oo = function(e) {
1080
+ }, bo = function(e) {
1134
1081
  return e === void 0 && (e = {}), {
1135
1082
  options: e,
1136
1083
  fn(t) {
@@ -1143,13 +1090,13 @@ const Po = function(e) {
1143
1090
  } = t, {
1144
1091
  offset: c = 0,
1145
1092
  mainAxis: a = !0,
1146
- crossAxis: l = !0
1147
- } = X(e, t), u = {
1093
+ crossAxis: u = !0
1094
+ } = X(e, t), f = {
1148
1095
  x: n,
1149
1096
  y: o
1150
1097
  }, d = z(r), m = He(d);
1151
- let p = u[m], h = u[d];
1152
- const g = X(c, t), v = typeof g == "number" ? {
1098
+ let p = f[m], h = f[d];
1099
+ const g = X(c, t), y = typeof g == "number" ? {
1153
1100
  mainAxis: g,
1154
1101
  crossAxis: 0
1155
1102
  } : {
@@ -1158,12 +1105,12 @@ const Po = function(e) {
1158
1105
  ...g
1159
1106
  };
1160
1107
  if (a) {
1161
- const b = m === "y" ? "height" : "width", x = i.reference[m] - i.floating[b] + v.mainAxis, R = i.reference[m] + i.reference[b] - v.mainAxis;
1108
+ const b = m === "y" ? "height" : "width", x = i.reference[m] - i.floating[b] + y.mainAxis, R = i.reference[m] + i.reference[b] - y.mainAxis;
1162
1109
  p < x ? p = x : p > R && (p = R);
1163
1110
  }
1164
- if (l) {
1165
- var y, w;
1166
- const b = m === "y" ? "width" : "height", x = Tt.has(q(r)), R = i.reference[d] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : v.crossAxis), E = i.reference[d] + i.reference[b] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? v.crossAxis : 0);
1111
+ if (u) {
1112
+ var v, w;
1113
+ const b = m === "y" ? "width" : "height", x = At.has(q(r)), R = i.reference[d] - i.floating[b] + (x && ((v = s.offset) == null ? void 0 : v[d]) || 0) + (x ? 0 : y.crossAxis), E = i.reference[d] + i.reference[b] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? y.crossAxis : 0);
1167
1114
  h < R ? h = R : h > E && (h = E);
1168
1115
  }
1169
1116
  return {
@@ -1172,7 +1119,7 @@ const Po = function(e) {
1172
1119
  };
1173
1120
  }
1174
1121
  };
1175
- }, So = function(e) {
1122
+ }, Co = function(e) {
1176
1123
  return e === void 0 && (e = {}), {
1177
1124
  name: "size",
1178
1125
  options: e,
@@ -1186,18 +1133,18 @@ const Po = function(e) {
1186
1133
  } = t, {
1187
1134
  apply: a = () => {
1188
1135
  },
1189
- ...l
1190
- } = X(e, t), u = await s.detectOverflow(t, l), d = q(r), m = se(r), p = z(r) === "y", {
1136
+ ...u
1137
+ } = X(e, t), f = await s.detectOverflow(t, u), d = q(r), m = se(r), p = z(r) === "y", {
1191
1138
  width: h,
1192
1139
  height: g
1193
1140
  } = i.floating;
1194
- let v, y;
1195
- d === "top" || d === "bottom" ? (v = d, y = m === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = d, v = m === "end" ? "top" : "bottom");
1196
- const w = g - u.top - u.bottom, b = h - u.left - u.right, x = K(g - u[v], w), R = K(h - u[y], b), E = !t.middlewareData.shift;
1141
+ let y, v;
1142
+ d === "top" || d === "bottom" ? (y = d, v = m === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (v = d, y = m === "end" ? "top" : "bottom");
1143
+ const w = g - f.top - f.bottom, b = h - f.left - f.right, x = K(g - f[y], w), R = K(h - f[v], b), E = !t.middlewareData.shift;
1197
1144
  let C = x, O = R;
1198
1145
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = b), (o = t.middlewareData.shift) != null && o.enabled.y && (C = w), E && !m) {
1199
- const S = W(u.left, 0), $ = W(u.right, 0), k = W(u.top, 0), D = W(u.bottom, 0);
1200
- p ? O = h - 2 * (S !== 0 || $ !== 0 ? S + $ : W(u.left, u.right)) : C = g - 2 * (k !== 0 || D !== 0 ? k + D : W(u.top, u.bottom));
1146
+ const S = W(f.left, 0), $ = W(f.right, 0), k = W(f.top, 0), D = W(f.bottom, 0);
1147
+ p ? O = h - 2 * (S !== 0 || $ !== 0 ? S + $ : W(f.left, f.right)) : C = g - 2 * (k !== 0 || D !== 0 ? k + D : W(f.top, f.bottom));
1201
1148
  }
1202
1149
  await a({
1203
1150
  ...t,
@@ -1217,7 +1164,7 @@ function Ee() {
1217
1164
  return typeof window < "u";
1218
1165
  }
1219
1166
  function ce(e) {
1220
- return Dt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1167
+ return Ot(e) ? (e.nodeName || "").toLowerCase() : "#document";
1221
1168
  }
1222
1169
  function F(e) {
1223
1170
  var t;
@@ -1225,9 +1172,9 @@ function F(e) {
1225
1172
  }
1226
1173
  function U(e) {
1227
1174
  var t;
1228
- return (t = (Dt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1175
+ return (t = (Ot(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1229
1176
  }
1230
- function Dt(e) {
1177
+ function Ot(e) {
1231
1178
  return Ee() ? e instanceof Node || e instanceof F(e).Node : !1;
1232
1179
  }
1233
1180
  function B(e) {
@@ -1236,7 +1183,7 @@ function B(e) {
1236
1183
  function G(e) {
1237
1184
  return Ee() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
1238
1185
  }
1239
- function pt(e) {
1186
+ function ft(e) {
1240
1187
  return !Ee() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof F(e).ShadowRoot;
1241
1188
  }
1242
1189
  function fe(e) {
@@ -1248,7 +1195,7 @@ function fe(e) {
1248
1195
  } = H(e);
1249
1196
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && r !== "inline" && r !== "contents";
1250
1197
  }
1251
- function To(e) {
1198
+ function Eo(e) {
1252
1199
  return /^(table|td|th)$/.test(ce(e));
1253
1200
  }
1254
1201
  function Re(e) {
@@ -1263,13 +1210,13 @@ function Re(e) {
1263
1210
  return !1;
1264
1211
  }
1265
1212
  }
1266
- const Do = /transform|translate|scale|rotate|perspective|filter/, Lo = /paint|layout|strict|content/, J = (e) => !!e && e !== "none";
1213
+ const Ro = /transform|translate|scale|rotate|perspective|filter/, Po = /paint|layout|strict|content/, J = (e) => !!e && e !== "none";
1267
1214
  let De;
1268
1215
  function je(e) {
1269
1216
  const t = B(e) ? H(e) : e;
1270
- return J(t.transform) || J(t.translate) || J(t.scale) || J(t.rotate) || J(t.perspective) || !Ue() && (J(t.backdropFilter) || J(t.filter)) || Do.test(t.willChange || "") || Lo.test(t.contain || "");
1217
+ return J(t.transform) || J(t.translate) || J(t.scale) || J(t.rotate) || J(t.perspective) || !Ue() && (J(t.backdropFilter) || J(t.filter)) || Ro.test(t.willChange || "") || Po.test(t.contain || "");
1271
1218
  }
1272
- function No(e) {
1219
+ function Ao(e) {
1273
1220
  let t = Z(e);
1274
1221
  for (; G(t) && !re(t); ) {
1275
1222
  if (je(t))
@@ -1305,19 +1252,19 @@ function Z(e) {
1305
1252
  // Step into the shadow DOM of the parent of a slotted node.
1306
1253
  e.assignedSlot || // DOM Element detected.
1307
1254
  e.parentNode || // ShadowRoot detected.
1308
- pt(e) && e.host || // Fallback.
1255
+ ft(e) && e.host || // Fallback.
1309
1256
  U(e)
1310
1257
  );
1311
- return pt(t) ? t.host : t;
1258
+ return ft(t) ? t.host : t;
1312
1259
  }
1313
- function Lt(e) {
1260
+ function St(e) {
1314
1261
  const t = Z(e);
1315
- return re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : G(t) && fe(t) ? t : Lt(t);
1262
+ return re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : G(t) && fe(t) ? t : St(t);
1316
1263
  }
1317
1264
  function le(e, t, n) {
1318
1265
  var o;
1319
1266
  t === void 0 && (t = []), n === void 0 && (n = !0);
1320
- const r = Lt(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = F(r);
1267
+ const r = St(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = F(r);
1321
1268
  if (i) {
1322
1269
  const c = ke(s);
1323
1270
  return t.concat(s, s.visualViewport || [], fe(r) ? r : [], c && n ? le(c) : []);
@@ -1327,10 +1274,10 @@ function le(e, t, n) {
1327
1274
  function ke(e) {
1328
1275
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1329
1276
  }
1330
- function Nt(e) {
1277
+ function Tt(e) {
1331
1278
  const t = H(e);
1332
1279
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1333
- const r = G(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, c = ye(n) !== i || ye(o) !== s;
1280
+ const r = G(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, c = ve(n) !== i || ve(o) !== s;
1334
1281
  return c && (n = i, o = s), {
1335
1282
  width: n,
1336
1283
  height: o,
@@ -1348,22 +1295,22 @@ function oe(e) {
1348
1295
  width: o,
1349
1296
  height: r,
1350
1297
  $: i
1351
- } = Nt(t);
1352
- let s = (i ? ye(n.width) : n.width) / o, c = (i ? ye(n.height) : n.height) / r;
1298
+ } = Tt(t);
1299
+ let s = (i ? ve(n.width) : n.width) / o, c = (i ? ve(n.height) : n.height) / r;
1353
1300
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1354
1301
  x: s,
1355
1302
  y: c
1356
1303
  };
1357
1304
  }
1358
- const _o = /* @__PURE__ */ j(0);
1359
- function _t(e) {
1305
+ const Oo = /* @__PURE__ */ j(0);
1306
+ function Dt(e) {
1360
1307
  const t = F(e);
1361
- return !Ue() || !t.visualViewport ? _o : {
1308
+ return !Ue() || !t.visualViewport ? Oo : {
1362
1309
  x: t.visualViewport.offsetLeft,
1363
1310
  y: t.visualViewport.offsetTop
1364
1311
  };
1365
1312
  }
1366
- function Mo(e, t, n) {
1313
+ function So(e, t, n) {
1367
1314
  return t === void 0 && (t = !1), !n || t && n !== F(e) ? !1 : t;
1368
1315
  }
1369
1316
  function ee(e, t, n, o) {
@@ -1371,35 +1318,35 @@ function ee(e, t, n, o) {
1371
1318
  const r = e.getBoundingClientRect(), i = Ye(e);
1372
1319
  let s = j(1);
1373
1320
  t && (o ? B(o) && (s = oe(o)) : s = oe(e));
1374
- const c = Mo(i, n, o) ? _t(i) : j(0);
1375
- let a = (r.left + c.x) / s.x, l = (r.top + c.y) / s.y, u = r.width / s.x, d = r.height / s.y;
1321
+ const c = So(i, n, o) ? Dt(i) : j(0);
1322
+ let a = (r.left + c.x) / s.x, u = (r.top + c.y) / s.y, f = r.width / s.x, d = r.height / s.y;
1376
1323
  if (i) {
1377
1324
  const m = F(i), p = o && B(o) ? F(o) : o;
1378
1325
  let h = m, g = ke(h);
1379
1326
  for (; g && o && p !== h; ) {
1380
- const v = oe(g), y = g.getBoundingClientRect(), w = H(g), b = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = y.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
1381
- a *= v.x, l *= v.y, u *= v.x, d *= v.y, a += b, l += x, h = F(g), g = ke(h);
1327
+ const y = oe(g), v = g.getBoundingClientRect(), w = H(g), b = v.left + (g.clientLeft + parseFloat(w.paddingLeft)) * y.x, x = v.top + (g.clientTop + parseFloat(w.paddingTop)) * y.y;
1328
+ a *= y.x, u *= y.y, f *= y.x, d *= y.y, a += b, u += x, h = F(g), g = ke(h);
1382
1329
  }
1383
1330
  }
1384
1331
  return xe({
1385
- width: u,
1332
+ width: f,
1386
1333
  height: d,
1387
1334
  x: a,
1388
- y: l
1335
+ y: u
1389
1336
  });
1390
1337
  }
1391
1338
  function Ae(e, t) {
1392
1339
  const n = Pe(e).scrollLeft;
1393
1340
  return t ? t.left + n : ee(U(e)).left + n;
1394
1341
  }
1395
- function Mt(e, t) {
1342
+ function Lt(e, t) {
1396
1343
  const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Ae(e, n), r = n.top + t.scrollTop;
1397
1344
  return {
1398
1345
  x: o,
1399
1346
  y: r
1400
1347
  };
1401
1348
  }
1402
- function $o(e) {
1349
+ function To(e) {
1403
1350
  let {
1404
1351
  elements: t,
1405
1352
  rect: n,
@@ -1412,24 +1359,24 @@ function $o(e) {
1412
1359
  let a = {
1413
1360
  scrollLeft: 0,
1414
1361
  scrollTop: 0
1415
- }, l = j(1);
1416
- const u = j(0), d = G(o);
1362
+ }, u = j(1);
1363
+ const f = j(0), d = G(o);
1417
1364
  if ((d || !d && !i) && ((ce(o) !== "body" || fe(s)) && (a = Pe(o)), d)) {
1418
1365
  const p = ee(o);
1419
- l = oe(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
1366
+ u = oe(o), f.x = p.x + o.clientLeft, f.y = p.y + o.clientTop;
1420
1367
  }
1421
- const m = s && !d && !i ? Mt(s, a) : j(0);
1368
+ const m = s && !d && !i ? Lt(s, a) : j(0);
1422
1369
  return {
1423
- width: n.width * l.x,
1424
- height: n.height * l.y,
1425
- x: n.x * l.x - a.scrollLeft * l.x + u.x + m.x,
1426
- y: n.y * l.y - a.scrollTop * l.y + u.y + m.y
1370
+ width: n.width * u.x,
1371
+ height: n.height * u.y,
1372
+ x: n.x * u.x - a.scrollLeft * u.x + f.x + m.x,
1373
+ y: n.y * u.y - a.scrollTop * u.y + f.y + m.y
1427
1374
  };
1428
1375
  }
1429
- function ko(e) {
1376
+ function Do(e) {
1430
1377
  return Array.from(e.getClientRects());
1431
1378
  }
1432
- function Io(e) {
1379
+ function Lo(e) {
1433
1380
  const t = U(e), n = Pe(e), o = e.ownerDocument.body, r = W(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = W(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1434
1381
  let s = -n.scrollLeft + Ae(e);
1435
1382
  const c = -n.scrollTop;
@@ -1440,20 +1387,20 @@ function Io(e) {
1440
1387
  y: c
1441
1388
  };
1442
1389
  }
1443
- const mt = 25;
1444
- function Wo(e, t) {
1390
+ const dt = 25;
1391
+ function No(e, t) {
1445
1392
  const n = F(e), o = U(e), r = n.visualViewport;
1446
1393
  let i = o.clientWidth, s = o.clientHeight, c = 0, a = 0;
1447
1394
  if (r) {
1448
1395
  i = r.width, s = r.height;
1449
- const u = Ue();
1450
- (!u || u && t === "fixed") && (c = r.offsetLeft, a = r.offsetTop);
1396
+ const f = Ue();
1397
+ (!f || f && t === "fixed") && (c = r.offsetLeft, a = r.offsetTop);
1451
1398
  }
1452
- const l = Ae(o);
1453
- if (l <= 0) {
1454
- const u = o.ownerDocument, d = u.body, m = getComputedStyle(d), p = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - d.clientWidth - p);
1455
- h <= mt && (i -= h);
1456
- } else l <= mt && (i += l);
1399
+ const u = Ae(o);
1400
+ if (u <= 0) {
1401
+ const f = o.ownerDocument, d = f.body, m = getComputedStyle(d), p = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - d.clientWidth - p);
1402
+ h <= dt && (i -= h);
1403
+ } else u <= dt && (i += u);
1457
1404
  return {
1458
1405
  width: i,
1459
1406
  height: s,
@@ -1461,25 +1408,25 @@ function Wo(e, t) {
1461
1408
  y: a
1462
1409
  };
1463
1410
  }
1464
- function Fo(e, t) {
1465
- const n = ee(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = G(e) ? oe(e) : j(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = r * i.x, l = o * i.y;
1411
+ function _o(e, t) {
1412
+ const n = ee(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = G(e) ? oe(e) : j(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = r * i.x, u = o * i.y;
1466
1413
  return {
1467
1414
  width: s,
1468
1415
  height: c,
1469
1416
  x: a,
1470
- y: l
1417
+ y: u
1471
1418
  };
1472
1419
  }
1473
- function ht(e, t, n) {
1420
+ function pt(e, t, n) {
1474
1421
  let o;
1475
1422
  if (t === "viewport")
1476
- o = Wo(e, n);
1423
+ o = No(e, n);
1477
1424
  else if (t === "document")
1478
- o = Io(U(e));
1425
+ o = Lo(U(e));
1479
1426
  else if (B(t))
1480
- o = Fo(t, n);
1427
+ o = _o(t, n);
1481
1428
  else {
1482
- const r = _t(e);
1429
+ const r = Dt(e);
1483
1430
  o = {
1484
1431
  x: t.x - r.x,
1485
1432
  y: t.y - r.y,
@@ -1489,11 +1436,11 @@ function ht(e, t, n) {
1489
1436
  }
1490
1437
  return xe(o);
1491
1438
  }
1492
- function $t(e, t) {
1439
+ function Nt(e, t) {
1493
1440
  const n = Z(e);
1494
- return n === t || !B(n) || re(n) ? !1 : H(n).position === "fixed" || $t(n, t);
1441
+ return n === t || !B(n) || re(n) ? !1 : H(n).position === "fixed" || Nt(n, t);
1495
1442
  }
1496
- function Bo(e, t) {
1443
+ function Mo(e, t) {
1497
1444
  const n = t.get(e);
1498
1445
  if (n)
1499
1446
  return n;
@@ -1502,57 +1449,57 @@ function Bo(e, t) {
1502
1449
  let s = i ? Z(e) : e;
1503
1450
  for (; B(s) && !re(s); ) {
1504
1451
  const c = H(s), a = je(s);
1505
- !a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || fe(s) && !a && $t(e, s)) ? o = o.filter((u) => u !== s) : r = c, s = Z(s);
1452
+ !a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || fe(s) && !a && Nt(e, s)) ? o = o.filter((f) => f !== s) : r = c, s = Z(s);
1506
1453
  }
1507
1454
  return t.set(e, o), o;
1508
1455
  }
1509
- function Ho(e) {
1456
+ function $o(e) {
1510
1457
  let {
1511
1458
  element: t,
1512
1459
  boundary: n,
1513
1460
  rootBoundary: o,
1514
1461
  strategy: r
1515
1462
  } = e;
1516
- const s = [...n === "clippingAncestors" ? Re(t) ? [] : Bo(t, this._c) : [].concat(n), o], c = ht(t, s[0], r);
1517
- let a = c.top, l = c.right, u = c.bottom, d = c.left;
1463
+ const s = [...n === "clippingAncestors" ? Re(t) ? [] : Mo(t, this._c) : [].concat(n), o], c = pt(t, s[0], r);
1464
+ let a = c.top, u = c.right, f = c.bottom, d = c.left;
1518
1465
  for (let m = 1; m < s.length; m++) {
1519
- const p = ht(t, s[m], r);
1520
- a = W(p.top, a), l = K(p.right, l), u = K(p.bottom, u), d = W(p.left, d);
1466
+ const p = pt(t, s[m], r);
1467
+ a = W(p.top, a), u = K(p.right, u), f = K(p.bottom, f), d = W(p.left, d);
1521
1468
  }
1522
1469
  return {
1523
- width: l - d,
1524
- height: u - a,
1470
+ width: u - d,
1471
+ height: f - a,
1525
1472
  x: d,
1526
1473
  y: a
1527
1474
  };
1528
1475
  }
1529
- function Vo(e) {
1476
+ function ko(e) {
1530
1477
  const {
1531
1478
  width: t,
1532
1479
  height: n
1533
- } = Nt(e);
1480
+ } = Tt(e);
1534
1481
  return {
1535
1482
  width: t,
1536
1483
  height: n
1537
1484
  };
1538
1485
  }
1539
- function zo(e, t, n) {
1486
+ function Io(e, t, n) {
1540
1487
  const o = G(t), r = U(t), i = n === "fixed", s = ee(e, !0, i, t);
1541
1488
  let c = {
1542
1489
  scrollLeft: 0,
1543
1490
  scrollTop: 0
1544
1491
  };
1545
1492
  const a = j(0);
1546
- function l() {
1493
+ function u() {
1547
1494
  a.x = Ae(r);
1548
1495
  }
1549
1496
  if (o || !o && !i)
1550
1497
  if ((ce(t) !== "body" || fe(r)) && (c = Pe(t)), o) {
1551
1498
  const p = ee(t, !0, i, t);
1552
1499
  a.x = p.x + t.clientLeft, a.y = p.y + t.clientTop;
1553
- } else r && l();
1554
- i && !o && r && l();
1555
- const u = r && !o && !i ? Mt(r, c) : j(0), d = s.left + c.scrollLeft - a.x - u.x, m = s.top + c.scrollTop - a.y - u.y;
1500
+ } else r && u();
1501
+ i && !o && r && u();
1502
+ const f = r && !o && !i ? Lt(r, c) : j(0), d = s.left + c.scrollLeft - a.x - f.x, m = s.top + c.scrollTop - a.y - f.y;
1556
1503
  return {
1557
1504
  x: d,
1558
1505
  y: m,
@@ -1563,7 +1510,7 @@ function zo(e, t, n) {
1563
1510
  function Le(e) {
1564
1511
  return H(e).position === "static";
1565
1512
  }
1566
- function gt(e, t) {
1513
+ function mt(e, t) {
1567
1514
  if (!G(e) || H(e).position === "fixed")
1568
1515
  return null;
1569
1516
  if (t)
@@ -1571,7 +1518,7 @@ function gt(e, t) {
1571
1518
  let n = e.offsetParent;
1572
1519
  return U(e) === n && (n = n.ownerDocument.body), n;
1573
1520
  }
1574
- function kt(e, t) {
1521
+ function _t(e, t) {
1575
1522
  const n = F(e);
1576
1523
  if (Re(e))
1577
1524
  return n;
@@ -1584,15 +1531,15 @@ function kt(e, t) {
1584
1531
  }
1585
1532
  return n;
1586
1533
  }
1587
- let o = gt(e, t);
1588
- for (; o && To(o) && Le(o); )
1589
- o = gt(o, t);
1590
- return o && re(o) && Le(o) && !je(o) ? n : o || No(e) || n;
1534
+ let o = mt(e, t);
1535
+ for (; o && Eo(o) && Le(o); )
1536
+ o = mt(o, t);
1537
+ return o && re(o) && Le(o) && !je(o) ? n : o || Ao(e) || n;
1591
1538
  }
1592
- const jo = async function(e) {
1593
- const t = this.getOffsetParent || kt, n = this.getDimensions, o = await n(e.floating);
1539
+ const Wo = async function(e) {
1540
+ const t = this.getOffsetParent || _t, n = this.getDimensions, o = await n(e.floating);
1594
1541
  return {
1595
- reference: zo(e.reference, await t(e.floating), e.strategy),
1542
+ reference: Io(e.reference, await t(e.floating), e.strategy),
1596
1543
  floating: {
1597
1544
  x: 0,
1598
1545
  y: 0,
@@ -1601,25 +1548,25 @@ const jo = async function(e) {
1601
1548
  }
1602
1549
  };
1603
1550
  };
1604
- function Uo(e) {
1551
+ function Fo(e) {
1605
1552
  return H(e).direction === "rtl";
1606
1553
  }
1607
- const Yo = {
1608
- convertOffsetParentRelativeRectToViewportRelativeRect: $o,
1554
+ const Bo = {
1555
+ convertOffsetParentRelativeRectToViewportRelativeRect: To,
1609
1556
  getDocumentElement: U,
1610
- getClippingRect: Ho,
1611
- getOffsetParent: kt,
1612
- getElementRects: jo,
1613
- getClientRects: ko,
1614
- getDimensions: Vo,
1557
+ getClippingRect: $o,
1558
+ getOffsetParent: _t,
1559
+ getElementRects: Wo,
1560
+ getClientRects: Do,
1561
+ getDimensions: ko,
1615
1562
  getScale: oe,
1616
1563
  isElement: B,
1617
- isRTL: Uo
1564
+ isRTL: Fo
1618
1565
  };
1619
- function It(e, t) {
1566
+ function Mt(e, t) {
1620
1567
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1621
1568
  }
1622
- function Xo(e, t) {
1569
+ function Ho(e, t) {
1623
1570
  let n = null, o;
1624
1571
  const r = U(e);
1625
1572
  function i() {
@@ -1628,16 +1575,16 @@ function Xo(e, t) {
1628
1575
  }
1629
1576
  function s(c, a) {
1630
1577
  c === void 0 && (c = !1), a === void 0 && (a = 1), i();
1631
- const l = e.getBoundingClientRect(), {
1632
- left: u,
1578
+ const u = e.getBoundingClientRect(), {
1579
+ left: f,
1633
1580
  top: d,
1634
1581
  width: m,
1635
1582
  height: p
1636
- } = l;
1583
+ } = u;
1637
1584
  if (c || t(), !m || !p)
1638
1585
  return;
1639
- const h = he(d), g = he(r.clientWidth - (u + m)), v = he(r.clientHeight - (d + p)), y = he(u), b = {
1640
- rootMargin: -h + "px " + -g + "px " + -v + "px " + -y + "px",
1586
+ const h = he(d), g = he(r.clientWidth - (f + m)), y = he(r.clientHeight - (d + p)), v = he(f), b = {
1587
+ rootMargin: -h + "px " + -g + "px " + -y + "px " + -v + "px",
1641
1588
  threshold: W(0, K(1, a)) || 1
1642
1589
  };
1643
1590
  let x = !0;
@@ -1650,7 +1597,7 @@ function Xo(e, t) {
1650
1597
  s(!1, 1e-7);
1651
1598
  }, 1e3);
1652
1599
  }
1653
- C === 1 && !It(l, e.getBoundingClientRect()) && s(), x = !1;
1600
+ C === 1 && !Mt(u, e.getBoundingClientRect()) && s(), x = !1;
1654
1601
  }
1655
1602
  try {
1656
1603
  n = new IntersectionObserver(R, {
@@ -1665,7 +1612,7 @@ function Xo(e, t) {
1665
1612
  }
1666
1613
  return s(!0), i;
1667
1614
  }
1668
- function qo(e, t, n, o) {
1615
+ function Vo(e, t, n, o) {
1669
1616
  o === void 0 && (o = {});
1670
1617
  const {
1671
1618
  ancestorScroll: r = !0,
@@ -1673,49 +1620,49 @@ function qo(e, t, n, o) {
1673
1620
  elementResize: s = typeof ResizeObserver == "function",
1674
1621
  layoutShift: c = typeof IntersectionObserver == "function",
1675
1622
  animationFrame: a = !1
1676
- } = o, l = Ye(e), u = r || i ? [...l ? le(l) : [], ...t ? le(t) : []] : [];
1677
- u.forEach((y) => {
1678
- r && y.addEventListener("scroll", n, {
1623
+ } = o, u = Ye(e), f = r || i ? [...u ? le(u) : [], ...t ? le(t) : []] : [];
1624
+ f.forEach((v) => {
1625
+ r && v.addEventListener("scroll", n, {
1679
1626
  passive: !0
1680
- }), i && y.addEventListener("resize", n);
1627
+ }), i && v.addEventListener("resize", n);
1681
1628
  });
1682
- const d = l && c ? Xo(l, n) : null;
1629
+ const d = u && c ? Ho(u, n) : null;
1683
1630
  let m = -1, p = null;
1684
- s && (p = new ResizeObserver((y) => {
1685
- let [w] = y;
1686
- w && w.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1631
+ s && (p = new ResizeObserver((v) => {
1632
+ let [w] = v;
1633
+ w && w.target === u && p && t && (p.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1687
1634
  var b;
1688
1635
  (b = p) == null || b.observe(t);
1689
1636
  })), n();
1690
- }), l && !a && p.observe(l), t && p.observe(t));
1637
+ }), u && !a && p.observe(u), t && p.observe(t));
1691
1638
  let h, g = a ? ee(e) : null;
1692
- a && v();
1693
- function v() {
1694
- const y = ee(e);
1695
- g && !It(g, y) && n(), g = y, h = requestAnimationFrame(v);
1639
+ a && y();
1640
+ function y() {
1641
+ const v = ee(e);
1642
+ g && !Mt(g, v) && n(), g = v, h = requestAnimationFrame(y);
1696
1643
  }
1697
1644
  return n(), () => {
1698
- var y;
1699
- u.forEach((w) => {
1645
+ var v;
1646
+ f.forEach((w) => {
1700
1647
  r && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
1701
- }), d == null || d(), (y = p) == null || y.disconnect(), p = null, a && cancelAnimationFrame(h);
1648
+ }), d == null || d(), (v = p) == null || v.disconnect(), p = null, a && cancelAnimationFrame(h);
1702
1649
  };
1703
1650
  }
1704
- const Go = Po, Ko = Ao, Zo = Co, Jo = So, Qo = Eo, vt = bo, er = Oo, tr = (e, t, n) => {
1651
+ const zo = wo, jo = xo, Uo = go, Yo = Co, Xo = yo, ht = ho, qo = bo, Go = (e, t, n) => {
1705
1652
  const o = /* @__PURE__ */ new Map(), r = {
1706
- platform: Yo,
1653
+ platform: Bo,
1707
1654
  ...n
1708
1655
  }, i = {
1709
1656
  ...r.platform,
1710
1657
  _c: o
1711
1658
  };
1712
- return xo(e, t, {
1659
+ return mo(e, t, {
1713
1660
  ...r,
1714
1661
  platform: i
1715
1662
  });
1716
1663
  };
1717
- var nr = typeof document < "u", or = function() {
1718
- }, ge = nr ? yn : or;
1664
+ var Ko = typeof document < "u", Zo = function() {
1665
+ }, ge = Ko ? gn : Zo;
1719
1666
  function be(e, t) {
1720
1667
  if (e === t)
1721
1668
  return !0;
@@ -1746,20 +1693,20 @@ function be(e, t) {
1746
1693
  }
1747
1694
  return e !== e && t !== t;
1748
1695
  }
1749
- function Wt(e) {
1696
+ function $t(e) {
1750
1697
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1751
1698
  }
1752
- function yt(e, t) {
1753
- const n = Wt(e);
1699
+ function gt(e, t) {
1700
+ const n = $t(e);
1754
1701
  return Math.round(t * n) / n;
1755
1702
  }
1756
1703
  function Ne(e) {
1757
- const t = f.useRef(e);
1704
+ const t = l.useRef(e);
1758
1705
  return ge(() => {
1759
1706
  t.current = e;
1760
1707
  }), t;
1761
1708
  }
1762
- function rr(e) {
1709
+ function Jo(e) {
1763
1710
  e === void 0 && (e = {});
1764
1711
  const {
1765
1712
  placement: t = "bottom",
@@ -1772,21 +1719,21 @@ function rr(e) {
1772
1719
  } = {},
1773
1720
  transform: c = !0,
1774
1721
  whileElementsMounted: a,
1775
- open: l
1776
- } = e, [u, d] = f.useState({
1722
+ open: u
1723
+ } = e, [f, d] = l.useState({
1777
1724
  x: 0,
1778
1725
  y: 0,
1779
1726
  strategy: n,
1780
1727
  placement: t,
1781
1728
  middlewareData: {},
1782
1729
  isPositioned: !1
1783
- }), [m, p] = f.useState(o);
1730
+ }), [m, p] = l.useState(o);
1784
1731
  be(m, o) || p(o);
1785
- const [h, g] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((A) => {
1732
+ const [h, g] = l.useState(null), [y, v] = l.useState(null), w = l.useCallback((A) => {
1786
1733
  A !== E.current && (E.current = A, g(A));
1787
- }, []), b = f.useCallback((A) => {
1788
- A !== C.current && (C.current = A, y(A));
1789
- }, []), x = i || h, R = s || v, E = f.useRef(null), C = f.useRef(null), O = f.useRef(u), _ = a != null, S = Ne(a), $ = Ne(r), k = Ne(l), D = f.useCallback(() => {
1734
+ }, []), b = l.useCallback((A) => {
1735
+ A !== C.current && (C.current = A, v(A));
1736
+ }, []), x = i || h, R = s || y, E = l.useRef(null), C = l.useRef(null), O = l.useRef(f), _ = a != null, S = Ne(a), $ = Ne(r), k = Ne(u), D = l.useCallback(() => {
1790
1737
  if (!E.current || !C.current)
1791
1738
  return;
1792
1739
  const A = {
@@ -1794,7 +1741,7 @@ function rr(e) {
1794
1741
  strategy: n,
1795
1742
  middleware: m
1796
1743
  };
1797
- $.current && (A.platform = $.current), tr(E.current, C.current, A).then((M) => {
1744
+ $.current && (A.platform = $.current), Go(E.current, C.current, A).then((M) => {
1798
1745
  const V = {
1799
1746
  ...M,
1800
1747
  // The floating element's position may be recomputed while it's closed
@@ -1803,18 +1750,18 @@ function rr(e) {
1803
1750
  // setting it to `true` when `open === false` (must be specified).
1804
1751
  isPositioned: k.current !== !1
1805
1752
  };
1806
- T.current && !be(O.current, V) && (O.current = V, xt.flushSync(() => {
1753
+ T.current && !be(O.current, V) && (O.current = V, vt.flushSync(() => {
1807
1754
  d(V);
1808
1755
  }));
1809
1756
  });
1810
1757
  }, [m, t, n, $, k]);
1811
1758
  ge(() => {
1812
- l === !1 && O.current.isPositioned && (O.current.isPositioned = !1, d((A) => ({
1759
+ u === !1 && O.current.isPositioned && (O.current.isPositioned = !1, d((A) => ({
1813
1760
  ...A,
1814
1761
  isPositioned: !1
1815
1762
  })));
1816
- }, [l]);
1817
- const T = f.useRef(!1);
1763
+ }, [u]);
1764
+ const T = l.useRef(!1);
1818
1765
  ge(() => (T.current = !0, () => {
1819
1766
  T.current = !1;
1820
1767
  }), []), ge(() => {
@@ -1824,15 +1771,15 @@ function rr(e) {
1824
1771
  D();
1825
1772
  }
1826
1773
  }, [x, R, D, S, _]);
1827
- const I = f.useMemo(() => ({
1774
+ const I = l.useMemo(() => ({
1828
1775
  reference: E,
1829
1776
  floating: C,
1830
1777
  setReference: w,
1831
1778
  setFloating: b
1832
- }), [w, b]), L = f.useMemo(() => ({
1779
+ }), [w, b]), L = l.useMemo(() => ({
1833
1780
  reference: x,
1834
1781
  floating: R
1835
- }), [x, R]), N = f.useMemo(() => {
1782
+ }), [x, R]), N = l.useMemo(() => {
1836
1783
  const A = {
1837
1784
  position: n,
1838
1785
  left: 0,
@@ -1840,11 +1787,11 @@ function rr(e) {
1840
1787
  };
1841
1788
  if (!L.floating)
1842
1789
  return A;
1843
- const M = yt(L.floating, u.x), V = yt(L.floating, u.y);
1790
+ const M = gt(L.floating, f.x), V = gt(L.floating, f.y);
1844
1791
  return c ? {
1845
1792
  ...A,
1846
1793
  transform: "translate(" + M + "px, " + V + "px)",
1847
- ...Wt(L.floating) >= 1.5 && {
1794
+ ...$t(L.floating) >= 1.5 && {
1848
1795
  willChange: "transform"
1849
1796
  }
1850
1797
  } : {
@@ -1852,16 +1799,16 @@ function rr(e) {
1852
1799
  left: M,
1853
1800
  top: V
1854
1801
  };
1855
- }, [n, c, L.floating, u.x, u.y]);
1856
- return f.useMemo(() => ({
1857
- ...u,
1802
+ }, [n, c, L.floating, f.x, f.y]);
1803
+ return l.useMemo(() => ({
1804
+ ...f,
1858
1805
  update: D,
1859
1806
  refs: I,
1860
1807
  elements: L,
1861
1808
  floatingStyles: N
1862
- }), [u, D, I, L, N]);
1809
+ }), [f, D, I, L, N]);
1863
1810
  }
1864
- const ir = (e) => {
1811
+ const Qo = (e) => {
1865
1812
  function t(n) {
1866
1813
  return {}.hasOwnProperty.call(n, "current");
1867
1814
  }
@@ -1873,62 +1820,62 @@ const ir = (e) => {
1873
1820
  element: o,
1874
1821
  padding: r
1875
1822
  } = typeof e == "function" ? e(n) : e;
1876
- return o && t(o) ? o.current != null ? vt({
1823
+ return o && t(o) ? o.current != null ? ht({
1877
1824
  element: o.current,
1878
1825
  padding: r
1879
- }).fn(n) : {} : o ? vt({
1826
+ }).fn(n) : {} : o ? ht({
1880
1827
  element: o,
1881
1828
  padding: r
1882
1829
  }).fn(n) : {};
1883
1830
  }
1884
1831
  };
1885
- }, sr = (e, t) => {
1886
- const n = Go(e);
1832
+ }, er = (e, t) => {
1833
+ const n = zo(e);
1887
1834
  return {
1888
1835
  name: n.name,
1889
1836
  fn: n.fn,
1890
1837
  options: [e, t]
1891
1838
  };
1892
- }, cr = (e, t) => {
1893
- const n = Ko(e);
1839
+ }, tr = (e, t) => {
1840
+ const n = jo(e);
1894
1841
  return {
1895
1842
  name: n.name,
1896
1843
  fn: n.fn,
1897
1844
  options: [e, t]
1898
1845
  };
1899
- }, ar = (e, t) => ({
1900
- fn: er(e).fn,
1846
+ }, nr = (e, t) => ({
1847
+ fn: qo(e).fn,
1901
1848
  options: [e, t]
1902
- }), lr = (e, t) => {
1903
- const n = Zo(e);
1849
+ }), or = (e, t) => {
1850
+ const n = Uo(e);
1904
1851
  return {
1905
1852
  name: n.name,
1906
1853
  fn: n.fn,
1907
1854
  options: [e, t]
1908
1855
  };
1909
- }, ur = (e, t) => {
1910
- const n = Jo(e);
1856
+ }, rr = (e, t) => {
1857
+ const n = Yo(e);
1911
1858
  return {
1912
1859
  name: n.name,
1913
1860
  fn: n.fn,
1914
1861
  options: [e, t]
1915
1862
  };
1916
- }, fr = (e, t) => {
1917
- const n = Qo(e);
1863
+ }, ir = (e, t) => {
1864
+ const n = Xo(e);
1918
1865
  return {
1919
1866
  name: n.name,
1920
1867
  fn: n.fn,
1921
1868
  options: [e, t]
1922
1869
  };
1923
- }, dr = (e, t) => {
1924
- const n = ir(e);
1870
+ }, sr = (e, t) => {
1871
+ const n = Qo(e);
1925
1872
  return {
1926
1873
  name: n.name,
1927
1874
  fn: n.fn,
1928
1875
  options: [e, t]
1929
1876
  };
1930
1877
  };
1931
- var pr = "Arrow", Ft = f.forwardRef((e, t) => {
1878
+ var cr = "Arrow", kt = l.forwardRef((e, t) => {
1932
1879
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
1933
1880
  return /* @__PURE__ */ P(
1934
1881
  ne.svg,
@@ -1943,23 +1890,23 @@ var pr = "Arrow", Ft = f.forwardRef((e, t) => {
1943
1890
  }
1944
1891
  );
1945
1892
  });
1946
- Ft.displayName = pr;
1947
- var mr = Ft, Xe = "Popper", [Bt, Ht] = bt(Xe), [hr, Vt] = Bt(Xe), zt = (e) => {
1948
- const { __scopePopper: t, children: n } = e, [o, r] = f.useState(null);
1949
- return /* @__PURE__ */ P(hr, { scope: t, anchor: o, onAnchorChange: r, children: n });
1893
+ kt.displayName = cr;
1894
+ var ar = kt, Xe = "Popper", [It, Wt] = wt(Xe), [lr, Ft] = It(Xe), Bt = (e) => {
1895
+ const { __scopePopper: t, children: n } = e, [o, r] = l.useState(null);
1896
+ return /* @__PURE__ */ P(lr, { scope: t, anchor: o, onAnchorChange: r, children: n });
1950
1897
  };
1951
- zt.displayName = Xe;
1952
- var jt = "PopperAnchor", Ut = f.forwardRef(
1898
+ Bt.displayName = Xe;
1899
+ var Ht = "PopperAnchor", Vt = l.forwardRef(
1953
1900
  (e, t) => {
1954
- const { __scopePopper: n, virtualRef: o, ...r } = e, i = Vt(jt, n), s = f.useRef(null), c = te(t, s), a = f.useRef(null);
1955
- return f.useEffect(() => {
1956
- const l = a.current;
1957
- a.current = (o == null ? void 0 : o.current) || s.current, l !== a.current && i.onAnchorChange(a.current);
1901
+ const { __scopePopper: n, virtualRef: o, ...r } = e, i = Ft(Ht, n), s = l.useRef(null), c = te(t, s), a = l.useRef(null);
1902
+ return l.useEffect(() => {
1903
+ const u = a.current;
1904
+ a.current = (o == null ? void 0 : o.current) || s.current, u !== a.current && i.onAnchorChange(a.current);
1958
1905
  }), o ? null : /* @__PURE__ */ P(ne.div, { ...r, ref: c });
1959
1906
  }
1960
1907
  );
1961
- Ut.displayName = jt;
1962
- var qe = "PopperContent", [gr, vr] = Bt(qe), Yt = f.forwardRef(
1908
+ Vt.displayName = Ht;
1909
+ var qe = "PopperContent", [ur, fr] = It(qe), zt = l.forwardRef(
1963
1910
  (e, t) => {
1964
1911
  var Ke, Ze, Je, Qe, et, tt;
1965
1912
  const {
@@ -1970,56 +1917,56 @@ var qe = "PopperContent", [gr, vr] = Bt(qe), Yt = f.forwardRef(
1970
1917
  alignOffset: s = 0,
1971
1918
  arrowPadding: c = 0,
1972
1919
  avoidCollisions: a = !0,
1973
- collisionBoundary: l = [],
1974
- collisionPadding: u = 0,
1920
+ collisionBoundary: u = [],
1921
+ collisionPadding: f = 0,
1975
1922
  sticky: d = "partial",
1976
1923
  hideWhenDetached: m = !1,
1977
1924
  updatePositionStrategy: p = "optimized",
1978
1925
  onPlaced: h,
1979
1926
  ...g
1980
- } = e, v = Vt(qe, n), [y, w] = f.useState(null), b = te(t, (ae) => w(ae)), [x, R] = f.useState(null), E = Pn(x), C = (E == null ? void 0 : E.width) ?? 0, O = (E == null ? void 0 : E.height) ?? 0, _ = o + (i !== "center" ? "-" + i : ""), S = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, $ = Array.isArray(l) ? l : [l], k = $.length > 0, D = {
1927
+ } = e, y = Ft(qe, n), [v, w] = l.useState(null), b = te(t, (ae) => w(ae)), [x, R] = l.useState(null), E = to(x), C = (E == null ? void 0 : E.width) ?? 0, O = (E == null ? void 0 : E.height) ?? 0, _ = o + (i !== "center" ? "-" + i : ""), S = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(u) ? u : [u], k = $.length > 0, D = {
1981
1928
  padding: S,
1982
- boundary: $.filter(wr),
1929
+ boundary: $.filter(pr),
1983
1930
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1984
1931
  altBoundary: k
1985
- }, { refs: T, floatingStyles: I, placement: L, isPositioned: N, middlewareData: A } = rr({
1932
+ }, { refs: T, floatingStyles: I, placement: L, isPositioned: N, middlewareData: A } = Jo({
1986
1933
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1987
1934
  strategy: "fixed",
1988
1935
  placement: _,
1989
- whileElementsMounted: (...ae) => qo(...ae, {
1936
+ whileElementsMounted: (...ae) => Vo(...ae, {
1990
1937
  animationFrame: p === "always"
1991
1938
  }),
1992
1939
  elements: {
1993
- reference: v.anchor
1940
+ reference: y.anchor
1994
1941
  },
1995
1942
  middleware: [
1996
- sr({ mainAxis: r + O, alignmentAxis: s }),
1997
- a && cr({
1943
+ er({ mainAxis: r + O, alignmentAxis: s }),
1944
+ a && tr({
1998
1945
  mainAxis: !0,
1999
1946
  crossAxis: !1,
2000
- limiter: d === "partial" ? ar() : void 0,
1947
+ limiter: d === "partial" ? nr() : void 0,
2001
1948
  ...D
2002
1949
  }),
2003
- a && lr({ ...D }),
2004
- ur({
1950
+ a && or({ ...D }),
1951
+ rr({
2005
1952
  ...D,
2006
- apply: ({ elements: ae, rects: nt, availableWidth: un, availableHeight: fn }) => {
2007
- const { width: dn, height: pn } = nt.reference, pe = ae.floating.style;
2008
- pe.setProperty("--radix-popper-available-width", `${un}px`), pe.setProperty("--radix-popper-available-height", `${fn}px`), pe.setProperty("--radix-popper-anchor-width", `${dn}px`), pe.setProperty("--radix-popper-anchor-height", `${pn}px`);
1953
+ apply: ({ elements: ae, rects: nt, availableWidth: an, availableHeight: ln }) => {
1954
+ const { width: un, height: fn } = nt.reference, pe = ae.floating.style;
1955
+ pe.setProperty("--radix-popper-available-width", `${an}px`), pe.setProperty("--radix-popper-available-height", `${ln}px`), pe.setProperty("--radix-popper-anchor-width", `${un}px`), pe.setProperty("--radix-popper-anchor-height", `${fn}px`);
2009
1956
  }
2010
1957
  }),
2011
- x && dr({ element: x, padding: c }),
2012
- xr({ arrowWidth: C, arrowHeight: O }),
2013
- m && fr({ strategy: "referenceHidden", ...D })
1958
+ x && sr({ element: x, padding: c }),
1959
+ mr({ arrowWidth: C, arrowHeight: O }),
1960
+ m && ir({ strategy: "referenceHidden", ...D })
2014
1961
  ]
2015
- }), [M, V] = Gt(L), de = Ce(h);
1962
+ }), [M, V] = Yt(L), de = Ce(h);
2016
1963
  Q(() => {
2017
1964
  N && (de == null || de());
2018
1965
  }, [N, de]);
2019
- const rn = (Ke = A.arrow) == null ? void 0 : Ke.x, sn = (Ze = A.arrow) == null ? void 0 : Ze.y, cn = ((Je = A.arrow) == null ? void 0 : Je.centerOffset) !== 0, [an, ln] = f.useState();
1966
+ const nn = (Ke = A.arrow) == null ? void 0 : Ke.x, on = (Ze = A.arrow) == null ? void 0 : Ze.y, rn = ((Je = A.arrow) == null ? void 0 : Je.centerOffset) !== 0, [sn, cn] = l.useState();
2020
1967
  return Q(() => {
2021
- y && ln(window.getComputedStyle(y).zIndex);
2022
- }, [y]), /* @__PURE__ */ P(
1968
+ v && cn(window.getComputedStyle(v).zIndex);
1969
+ }, [v]), /* @__PURE__ */ P(
2023
1970
  "div",
2024
1971
  {
2025
1972
  ref: T.setFloating,
@@ -2029,7 +1976,7 @@ var qe = "PopperContent", [gr, vr] = Bt(qe), Yt = f.forwardRef(
2029
1976
  transform: N ? I.transform : "translate(0, -200%)",
2030
1977
  // keep off the page when measuring
2031
1978
  minWidth: "max-content",
2032
- zIndex: an,
1979
+ zIndex: sn,
2033
1980
  "--radix-popper-transform-origin": [
2034
1981
  (Qe = A.transformOrigin) == null ? void 0 : Qe.x,
2035
1982
  (et = A.transformOrigin) == null ? void 0 : et.y
@@ -2044,14 +1991,14 @@ var qe = "PopperContent", [gr, vr] = Bt(qe), Yt = f.forwardRef(
2044
1991
  },
2045
1992
  dir: e.dir,
2046
1993
  children: /* @__PURE__ */ P(
2047
- gr,
1994
+ ur,
2048
1995
  {
2049
1996
  scope: n,
2050
1997
  placedSide: M,
2051
1998
  onArrowChange: R,
2052
- arrowX: rn,
2053
- arrowY: sn,
2054
- shouldHideArrow: cn,
1999
+ arrowX: nn,
2000
+ arrowY: on,
2001
+ shouldHideArrow: rn,
2055
2002
  children: /* @__PURE__ */ P(
2056
2003
  ne.div,
2057
2004
  {
@@ -2073,14 +2020,14 @@ var qe = "PopperContent", [gr, vr] = Bt(qe), Yt = f.forwardRef(
2073
2020
  );
2074
2021
  }
2075
2022
  );
2076
- Yt.displayName = qe;
2077
- var Xt = "PopperArrow", yr = {
2023
+ zt.displayName = qe;
2024
+ var jt = "PopperArrow", dr = {
2078
2025
  top: "bottom",
2079
2026
  right: "left",
2080
2027
  bottom: "top",
2081
2028
  left: "right"
2082
- }, qt = f.forwardRef(function(t, n) {
2083
- const { __scopePopper: o, ...r } = t, i = vr(Xt, o), s = yr[i.placedSide];
2029
+ }, Ut = l.forwardRef(function(t, n) {
2030
+ const { __scopePopper: o, ...r } = t, i = fr(jt, o), s = dr[i.placedSide];
2084
2031
  return (
2085
2032
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2086
2033
  // doesn't report size as we'd expect on SVG elements.
@@ -2109,7 +2056,7 @@ var Xt = "PopperArrow", yr = {
2109
2056
  visibility: i.shouldHideArrow ? "hidden" : void 0
2110
2057
  },
2111
2058
  children: /* @__PURE__ */ P(
2112
- mr,
2059
+ ar,
2113
2060
  {
2114
2061
  ...r,
2115
2062
  ref: n,
@@ -2124,69 +2071,92 @@ var Xt = "PopperArrow", yr = {
2124
2071
  )
2125
2072
  );
2126
2073
  });
2127
- qt.displayName = Xt;
2128
- function wr(e) {
2074
+ Ut.displayName = jt;
2075
+ function pr(e) {
2129
2076
  return e !== null;
2130
2077
  }
2131
- var xr = (e) => ({
2078
+ var mr = (e) => ({
2132
2079
  name: "transformOrigin",
2133
2080
  options: e,
2134
2081
  fn(t) {
2135
- var v, y, w;
2136
- const { placement: n, rects: o, middlewareData: r } = t, s = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, a = s ? 0 : e.arrowHeight, [l, u] = Gt(n), d = { start: "0%", center: "50%", end: "100%" }[u], m = (((y = r.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, p = (((w = r.arrow) == null ? void 0 : w.y) ?? 0) + a / 2;
2082
+ var y, v, w;
2083
+ const { placement: n, rects: o, middlewareData: r } = t, s = ((y = r.arrow) == null ? void 0 : y.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, a = s ? 0 : e.arrowHeight, [u, f] = Yt(n), d = { start: "0%", center: "50%", end: "100%" }[f], m = (((v = r.arrow) == null ? void 0 : v.x) ?? 0) + c / 2, p = (((w = r.arrow) == null ? void 0 : w.y) ?? 0) + a / 2;
2137
2084
  let h = "", g = "";
2138
- return l === "bottom" ? (h = s ? d : `${m}px`, g = `${-a}px`) : l === "top" ? (h = s ? d : `${m}px`, g = `${o.floating.height + a}px`) : l === "right" ? (h = `${-a}px`, g = s ? d : `${p}px`) : l === "left" && (h = `${o.floating.width + a}px`, g = s ? d : `${p}px`), { data: { x: h, y: g } };
2085
+ return u === "bottom" ? (h = s ? d : `${m}px`, g = `${-a}px`) : u === "top" ? (h = s ? d : `${m}px`, g = `${o.floating.height + a}px`) : u === "right" ? (h = `${-a}px`, g = s ? d : `${p}px`) : u === "left" && (h = `${o.floating.width + a}px`, g = s ? d : `${p}px`), { data: { x: h, y: g } };
2139
2086
  }
2140
2087
  });
2141
- function Gt(e) {
2088
+ function Yt(e) {
2142
2089
  const [t, n = "center"] = e.split("-");
2143
2090
  return [t, n];
2144
2091
  }
2145
- var br = zt, Cr = Ut, Er = Yt, Rr = qt, Pr = Symbol("radix.slottable");
2092
+ var hr = Bt, gr = Vt, yr = zt, vr = Ut, wr = Object.freeze({
2093
+ // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
2094
+ position: "absolute",
2095
+ border: 0,
2096
+ width: 1,
2097
+ height: 1,
2098
+ padding: 0,
2099
+ margin: -1,
2100
+ overflow: "hidden",
2101
+ clip: "rect(0, 0, 0, 0)",
2102
+ whiteSpace: "nowrap",
2103
+ wordWrap: "normal"
2104
+ }), xr = "VisuallyHidden", Xt = l.forwardRef(
2105
+ (e, t) => /* @__PURE__ */ P(
2106
+ ne.span,
2107
+ {
2108
+ ...e,
2109
+ ref: t,
2110
+ style: { ...wr, ...e.style }
2111
+ }
2112
+ )
2113
+ );
2114
+ Xt.displayName = xr;
2115
+ var br = Xt, Cr = Symbol("radix.slottable");
2146
2116
  // @__NO_SIDE_EFFECTS__
2147
- function Ar(e) {
2148
- const t = ({ children: n }) => /* @__PURE__ */ P(hn, { children: n });
2149
- return t.displayName = `${e}.Slottable`, t.__radixId = Pr, t;
2117
+ function Er(e) {
2118
+ const t = ({ children: n }) => /* @__PURE__ */ P(mn, { children: n });
2119
+ return t.displayName = `${e}.Slottable`, t.__radixId = Cr, t;
2150
2120
  }
2151
- var [Oe] = bt("Tooltip", [
2152
- Ht
2153
- ]), Se = Ht(), Kt = "TooltipProvider", Or = 700, Ie = "tooltip.open", [Sr, Ge] = Oe(Kt), Zt = (e) => {
2121
+ var [Oe] = wt("Tooltip", [
2122
+ Wt
2123
+ ]), Se = Wt(), qt = "TooltipProvider", Rr = 700, Ie = "tooltip.open", [Pr, Ge] = Oe(qt), Gt = (e) => {
2154
2124
  const {
2155
2125
  __scopeTooltip: t,
2156
- delayDuration: n = Or,
2126
+ delayDuration: n = Rr,
2157
2127
  skipDelayDuration: o = 300,
2158
2128
  disableHoverableContent: r = !1,
2159
2129
  children: i
2160
- } = e, s = f.useRef(!0), c = f.useRef(!1), a = f.useRef(0);
2161
- return f.useEffect(() => {
2162
- const l = a.current;
2163
- return () => window.clearTimeout(l);
2130
+ } = e, s = l.useRef(!0), c = l.useRef(!1), a = l.useRef(0);
2131
+ return l.useEffect(() => {
2132
+ const u = a.current;
2133
+ return () => window.clearTimeout(u);
2164
2134
  }, []), /* @__PURE__ */ P(
2165
- Sr,
2135
+ Pr,
2166
2136
  {
2167
2137
  scope: t,
2168
2138
  isOpenDelayedRef: s,
2169
2139
  delayDuration: n,
2170
- onOpen: f.useCallback(() => {
2140
+ onOpen: l.useCallback(() => {
2171
2141
  window.clearTimeout(a.current), s.current = !1;
2172
2142
  }, []),
2173
- onClose: f.useCallback(() => {
2143
+ onClose: l.useCallback(() => {
2174
2144
  window.clearTimeout(a.current), a.current = window.setTimeout(
2175
2145
  () => s.current = !0,
2176
2146
  o
2177
2147
  );
2178
2148
  }, [o]),
2179
2149
  isPointerInTransitRef: c,
2180
- onPointerInTransitChange: f.useCallback((l) => {
2181
- c.current = l;
2150
+ onPointerInTransitChange: l.useCallback((u) => {
2151
+ c.current = u;
2182
2152
  }, []),
2183
2153
  disableHoverableContent: r,
2184
2154
  children: i
2185
2155
  }
2186
2156
  );
2187
2157
  };
2188
- Zt.displayName = Kt;
2189
- var ue = "Tooltip", [Tr, Te] = Oe(ue), Jt = (e) => {
2158
+ Gt.displayName = qt;
2159
+ var ue = "Tooltip", [Ar, Te] = Oe(ue), Kt = (e) => {
2190
2160
  const {
2191
2161
  __scopeTooltip: t,
2192
2162
  children: n,
@@ -2195,37 +2165,37 @@ var ue = "Tooltip", [Tr, Te] = Oe(ue), Jt = (e) => {
2195
2165
  onOpenChange: i,
2196
2166
  disableHoverableContent: s,
2197
2167
  delayDuration: c
2198
- } = e, a = Ge(ue, e.__scopeTooltip), l = Se(t), [u, d] = f.useState(null), m = co(), p = f.useRef(0), h = s ?? a.disableHoverableContent, g = c ?? a.delayDuration, v = f.useRef(!1), [y, w] = Cn({
2168
+ } = e, a = Ge(ue, e.__scopeTooltip), u = Se(t), [f, d] = l.useState(null), m = $n(), p = l.useRef(0), h = s ?? a.disableHoverableContent, g = c ?? a.delayDuration, y = l.useRef(!1), [v, w] = wn({
2199
2169
  prop: o,
2200
2170
  defaultProp: r ?? !1,
2201
2171
  onChange: (C) => {
2202
2172
  C ? (a.onOpen(), document.dispatchEvent(new CustomEvent(Ie))) : a.onClose(), i == null || i(C);
2203
2173
  },
2204
2174
  caller: ue
2205
- }), b = f.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), x = f.useCallback(() => {
2206
- window.clearTimeout(p.current), p.current = 0, v.current = !1, w(!0);
2207
- }, [w]), R = f.useCallback(() => {
2175
+ }), b = l.useMemo(() => v ? y.current ? "delayed-open" : "instant-open" : "closed", [v]), x = l.useCallback(() => {
2176
+ window.clearTimeout(p.current), p.current = 0, y.current = !1, w(!0);
2177
+ }, [w]), R = l.useCallback(() => {
2208
2178
  window.clearTimeout(p.current), p.current = 0, w(!1);
2209
- }, [w]), E = f.useCallback(() => {
2179
+ }, [w]), E = l.useCallback(() => {
2210
2180
  window.clearTimeout(p.current), p.current = window.setTimeout(() => {
2211
- v.current = !0, w(!0), p.current = 0;
2181
+ y.current = !0, w(!0), p.current = 0;
2212
2182
  }, g);
2213
2183
  }, [g, w]);
2214
- return f.useEffect(() => () => {
2184
+ return l.useEffect(() => () => {
2215
2185
  p.current && (window.clearTimeout(p.current), p.current = 0);
2216
- }, []), /* @__PURE__ */ P(br, { ...l, children: /* @__PURE__ */ P(
2217
- Tr,
2186
+ }, []), /* @__PURE__ */ P(hr, { ...u, children: /* @__PURE__ */ P(
2187
+ Ar,
2218
2188
  {
2219
2189
  scope: t,
2220
2190
  contentId: m,
2221
- open: y,
2191
+ open: v,
2222
2192
  stateAttribute: b,
2223
- trigger: u,
2193
+ trigger: f,
2224
2194
  onTriggerChange: d,
2225
- onTriggerEnter: f.useCallback(() => {
2195
+ onTriggerEnter: l.useCallback(() => {
2226
2196
  a.isOpenDelayedRef.current ? E() : x();
2227
2197
  }, [a.isOpenDelayedRef, E, x]),
2228
- onTriggerLeave: f.useCallback(() => {
2198
+ onTriggerLeave: l.useCallback(() => {
2229
2199
  h ? R() : (window.clearTimeout(p.current), p.current = 0);
2230
2200
  }, [R, h]),
2231
2201
  onOpen: x,
@@ -2235,11 +2205,11 @@ var ue = "Tooltip", [Tr, Te] = Oe(ue), Jt = (e) => {
2235
2205
  }
2236
2206
  ) });
2237
2207
  };
2238
- Jt.displayName = ue;
2239
- var We = "TooltipTrigger", Qt = f.forwardRef(
2208
+ Kt.displayName = ue;
2209
+ var We = "TooltipTrigger", Zt = l.forwardRef(
2240
2210
  (e, t) => {
2241
- const { __scopeTooltip: n, ...o } = e, r = Te(We, n), i = Ge(We, n), s = Se(n), c = f.useRef(null), a = te(t, c, r.onTriggerChange), l = f.useRef(!1), u = f.useRef(!1), d = f.useCallback(() => l.current = !1, []);
2242
- return f.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ P(Cr, { asChild: !0, ...s, children: /* @__PURE__ */ P(
2211
+ const { __scopeTooltip: n, ...o } = e, r = Te(We, n), i = Ge(We, n), s = Se(n), c = l.useRef(null), a = te(t, c, r.onTriggerChange), u = l.useRef(!1), f = l.useRef(!1), d = l.useCallback(() => u.current = !1, []);
2212
+ return l.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ P(gr, { asChild: !0, ...s, children: /* @__PURE__ */ P(
2243
2213
  ne.button,
2244
2214
  {
2245
2215
  "aria-describedby": r.open ? r.contentId : void 0,
@@ -2247,16 +2217,16 @@ var We = "TooltipTrigger", Qt = f.forwardRef(
2247
2217
  ...o,
2248
2218
  ref: a,
2249
2219
  onPointerMove: Y(e.onPointerMove, (m) => {
2250
- m.pointerType !== "touch" && !u.current && !i.isPointerInTransitRef.current && (r.onTriggerEnter(), u.current = !0);
2220
+ m.pointerType !== "touch" && !f.current && !i.isPointerInTransitRef.current && (r.onTriggerEnter(), f.current = !0);
2251
2221
  }),
2252
2222
  onPointerLeave: Y(e.onPointerLeave, () => {
2253
- r.onTriggerLeave(), u.current = !1;
2223
+ r.onTriggerLeave(), f.current = !1;
2254
2224
  }),
2255
2225
  onPointerDown: Y(e.onPointerDown, () => {
2256
- r.open && r.onClose(), l.current = !0, document.addEventListener("pointerup", d, { once: !0 });
2226
+ r.open && r.onClose(), u.current = !0, document.addEventListener("pointerup", d, { once: !0 });
2257
2227
  }),
2258
2228
  onFocus: Y(e.onFocus, () => {
2259
- l.current || r.onOpen();
2229
+ u.current || r.onOpen();
2260
2230
  }),
2261
2231
  onBlur: Y(e.onBlur, r.onClose),
2262
2232
  onClick: Y(e.onClick, r.onClose)
@@ -2264,41 +2234,41 @@ var We = "TooltipTrigger", Qt = f.forwardRef(
2264
2234
  ) });
2265
2235
  }
2266
2236
  );
2267
- Qt.displayName = We;
2268
- var Dr = "TooltipPortal", [ti, Lr] = Oe(Dr, {
2237
+ Zt.displayName = We;
2238
+ var Or = "TooltipPortal", [Jr, Sr] = Oe(Or, {
2269
2239
  forceMount: void 0
2270
- }), ie = "TooltipContent", en = f.forwardRef(
2240
+ }), ie = "TooltipContent", Jt = l.forwardRef(
2271
2241
  (e, t) => {
2272
- const n = Lr(ie, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, s = Te(ie, e.__scopeTooltip);
2273
- return /* @__PURE__ */ P(Ct, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ P(tn, { side: r, ...i, ref: t }) : /* @__PURE__ */ P(Nr, { side: r, ...i, ref: t }) });
2242
+ const n = Sr(ie, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, s = Te(ie, e.__scopeTooltip);
2243
+ return /* @__PURE__ */ P(xt, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ P(Qt, { side: r, ...i, ref: t }) : /* @__PURE__ */ P(Tr, { side: r, ...i, ref: t }) });
2274
2244
  }
2275
- ), Nr = f.forwardRef((e, t) => {
2276
- const n = Te(ie, e.__scopeTooltip), o = Ge(ie, e.__scopeTooltip), r = f.useRef(null), i = te(t, r), [s, c] = f.useState(null), { trigger: a, onClose: l } = n, u = r.current, { onPointerInTransitChange: d } = o, m = f.useCallback(() => {
2245
+ ), Tr = l.forwardRef((e, t) => {
2246
+ const n = Te(ie, e.__scopeTooltip), o = Ge(ie, e.__scopeTooltip), r = l.useRef(null), i = te(t, r), [s, c] = l.useState(null), { trigger: a, onClose: u } = n, f = r.current, { onPointerInTransitChange: d } = o, m = l.useCallback(() => {
2277
2247
  c(null), d(!1);
2278
- }, [d]), p = f.useCallback(
2248
+ }, [d]), p = l.useCallback(
2279
2249
  (h, g) => {
2280
- const v = h.currentTarget, y = { x: h.clientX, y: h.clientY }, w = Ir(y, v.getBoundingClientRect()), b = Wr(y, w), x = Fr(g.getBoundingClientRect()), R = Hr([...b, ...x]);
2250
+ const y = h.currentTarget, v = { x: h.clientX, y: h.clientY }, w = Mr(v, y.getBoundingClientRect()), b = $r(v, w), x = kr(g.getBoundingClientRect()), R = Wr([...b, ...x]);
2281
2251
  c(R), d(!0);
2282
2252
  },
2283
2253
  [d]
2284
2254
  );
2285
- return f.useEffect(() => () => m(), [m]), f.useEffect(() => {
2286
- if (a && u) {
2287
- const h = (v) => p(v, u), g = (v) => p(v, a);
2288
- return a.addEventListener("pointerleave", h), u.addEventListener("pointerleave", g), () => {
2289
- a.removeEventListener("pointerleave", h), u.removeEventListener("pointerleave", g);
2255
+ return l.useEffect(() => () => m(), [m]), l.useEffect(() => {
2256
+ if (a && f) {
2257
+ const h = (y) => p(y, f), g = (y) => p(y, a);
2258
+ return a.addEventListener("pointerleave", h), f.addEventListener("pointerleave", g), () => {
2259
+ a.removeEventListener("pointerleave", h), f.removeEventListener("pointerleave", g);
2290
2260
  };
2291
2261
  }
2292
- }, [a, u, p, m]), f.useEffect(() => {
2262
+ }, [a, f, p, m]), l.useEffect(() => {
2293
2263
  if (s) {
2294
2264
  const h = (g) => {
2295
- const v = g.target, y = { x: g.clientX, y: g.clientY }, w = (a == null ? void 0 : a.contains(v)) || (u == null ? void 0 : u.contains(v)), b = !Br(y, s);
2296
- w ? m() : b && (m(), l());
2265
+ const y = g.target, v = { x: g.clientX, y: g.clientY }, w = (a == null ? void 0 : a.contains(y)) || (f == null ? void 0 : f.contains(y)), b = !Ir(v, s);
2266
+ w ? m() : b && (m(), u());
2297
2267
  };
2298
2268
  return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
2299
2269
  }
2300
- }, [a, u, s, l, m]), /* @__PURE__ */ P(tn, { ...e, ref: i });
2301
- }), [_r, Mr] = Oe(ue, { isInside: !1 }), $r = /* @__PURE__ */ Ar("TooltipContent"), tn = f.forwardRef(
2270
+ }, [a, f, s, u, m]), /* @__PURE__ */ P(Qt, { ...e, ref: i });
2271
+ }), [Dr, Lr] = Oe(ue, { isInside: !1 }), Nr = /* @__PURE__ */ Er("TooltipContent"), Qt = l.forwardRef(
2302
2272
  (e, t) => {
2303
2273
  const {
2304
2274
  __scopeTooltip: n,
@@ -2307,16 +2277,16 @@ var Dr = "TooltipPortal", [ti, Lr] = Oe(Dr, {
2307
2277
  onEscapeKeyDown: i,
2308
2278
  onPointerDownOutside: s,
2309
2279
  ...c
2310
- } = e, a = Te(ie, n), l = Se(n), { onClose: u } = a;
2311
- return f.useEffect(() => (document.addEventListener(Ie, u), () => document.removeEventListener(Ie, u)), [u]), f.useEffect(() => {
2280
+ } = e, a = Te(ie, n), u = Se(n), { onClose: f } = a;
2281
+ return l.useEffect(() => (document.addEventListener(Ie, f), () => document.removeEventListener(Ie, f)), [f]), l.useEffect(() => {
2312
2282
  if (a.trigger) {
2313
2283
  const d = (m) => {
2314
2284
  const p = m.target;
2315
- p != null && p.contains(a.trigger) && u();
2285
+ p != null && p.contains(a.trigger) && f();
2316
2286
  };
2317
2287
  return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
2318
2288
  }
2319
- }, [a.trigger, u]), /* @__PURE__ */ P(
2289
+ }, [a.trigger, f]), /* @__PURE__ */ P(
2320
2290
  Be,
2321
2291
  {
2322
2292
  asChild: !0,
@@ -2324,12 +2294,12 @@ var Dr = "TooltipPortal", [ti, Lr] = Oe(Dr, {
2324
2294
  onEscapeKeyDown: i,
2325
2295
  onPointerDownOutside: s,
2326
2296
  onFocusOutside: (d) => d.preventDefault(),
2327
- onDismiss: u,
2328
- children: /* @__PURE__ */ gn(
2329
- Er,
2297
+ onDismiss: f,
2298
+ children: /* @__PURE__ */ hn(
2299
+ yr,
2330
2300
  {
2331
2301
  "data-state": a.stateAttribute,
2332
- ...l,
2302
+ ...u,
2333
2303
  ...c,
2334
2304
  ref: t,
2335
2305
  style: {
@@ -2341,8 +2311,8 @@ var Dr = "TooltipPortal", [ti, Lr] = Oe(Dr, {
2341
2311
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
2342
2312
  },
2343
2313
  children: [
2344
- /* @__PURE__ */ P($r, { children: o }),
2345
- /* @__PURE__ */ P(_r, { scope: n, isInside: !0, children: /* @__PURE__ */ P(ro, { id: a.contentId, role: "tooltip", children: r || o }) })
2314
+ /* @__PURE__ */ P(Nr, { children: o }),
2315
+ /* @__PURE__ */ P(Dr, { scope: n, isInside: !0, children: /* @__PURE__ */ P(br, { id: a.contentId, role: "tooltip", children: r || o }) })
2346
2316
  ]
2347
2317
  }
2348
2318
  )
@@ -2350,18 +2320,18 @@ var Dr = "TooltipPortal", [ti, Lr] = Oe(Dr, {
2350
2320
  );
2351
2321
  }
2352
2322
  );
2353
- en.displayName = ie;
2354
- var nn = "TooltipArrow", kr = f.forwardRef(
2323
+ Jt.displayName = ie;
2324
+ var en = "TooltipArrow", _r = l.forwardRef(
2355
2325
  (e, t) => {
2356
2326
  const { __scopeTooltip: n, ...o } = e, r = Se(n);
2357
- return Mr(
2358
- nn,
2327
+ return Lr(
2328
+ en,
2359
2329
  n
2360
- ).isInside ? null : /* @__PURE__ */ P(Rr, { ...r, ...o, ref: t });
2330
+ ).isInside ? null : /* @__PURE__ */ P(vr, { ...r, ...o, ref: t });
2361
2331
  }
2362
2332
  );
2363
- kr.displayName = nn;
2364
- function Ir(e, t) {
2333
+ _r.displayName = en;
2334
+ function Mr(e, t) {
2365
2335
  const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
2366
2336
  switch (Math.min(n, o, r, i)) {
2367
2337
  case i:
@@ -2376,7 +2346,7 @@ function Ir(e, t) {
2376
2346
  throw new Error("unreachable");
2377
2347
  }
2378
2348
  }
2379
- function Wr(e, t, n = 5) {
2349
+ function $r(e, t, n = 5) {
2380
2350
  const o = [];
2381
2351
  switch (t) {
2382
2352
  case "top":
@@ -2406,7 +2376,7 @@ function Wr(e, t, n = 5) {
2406
2376
  }
2407
2377
  return o;
2408
2378
  }
2409
- function Fr(e) {
2379
+ function kr(e) {
2410
2380
  const { top: t, right: n, bottom: o, left: r } = e;
2411
2381
  return [
2412
2382
  { x: r, y: t },
@@ -2415,20 +2385,20 @@ function Fr(e) {
2415
2385
  { x: r, y: o }
2416
2386
  ];
2417
2387
  }
2418
- function Br(e, t) {
2388
+ function Ir(e, t) {
2419
2389
  const { x: n, y: o } = e;
2420
2390
  let r = !1;
2421
2391
  for (let i = 0, s = t.length - 1; i < t.length; s = i++) {
2422
- const c = t[i], a = t[s], l = c.x, u = c.y, d = a.x, m = a.y;
2423
- u > o != m > o && n < (d - l) * (o - u) / (m - u) + l && (r = !r);
2392
+ const c = t[i], a = t[s], u = c.x, f = c.y, d = a.x, m = a.y;
2393
+ f > o != m > o && n < (d - u) * (o - f) / (m - f) + u && (r = !r);
2424
2394
  }
2425
2395
  return r;
2426
2396
  }
2427
- function Hr(e) {
2397
+ function Wr(e) {
2428
2398
  const t = e.slice();
2429
- return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Vr(t);
2399
+ return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Fr(t);
2430
2400
  }
2431
- function Vr(e) {
2401
+ function Fr(e) {
2432
2402
  if (e.length <= 1) return e.slice();
2433
2403
  const t = [];
2434
2404
  for (let o = 0; o < e.length; o++) {
@@ -2453,14 +2423,14 @@ function Vr(e) {
2453
2423
  }
2454
2424
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
2455
2425
  }
2456
- var zr = Zt, jr = Jt, Ur = Qt, on = en;
2457
- const ni = zr, oi = jr, ri = Ur, Yr = f.forwardRef(
2426
+ var Br = Gt, Hr = Kt, Vr = Zt, tn = Jt;
2427
+ const Qr = Br, ei = Hr, ti = Vr, zr = l.forwardRef(
2458
2428
  ({ className: e, sideOffset: t = 4, ...n }, o) => /* @__PURE__ */ P(
2459
- on,
2429
+ tn,
2460
2430
  {
2461
2431
  ref: o,
2462
2432
  sideOffset: t,
2463
- className: wt(
2433
+ className: yt(
2464
2434
  "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
2465
2435
  e
2466
2436
  ),
@@ -2468,38 +2438,39 @@ const ni = zr, oi = jr, ri = Ur, Yr = f.forwardRef(
2468
2438
  }
2469
2439
  )
2470
2440
  );
2471
- Yr.displayName = on.displayName;
2441
+ zr.displayName = tn.displayName;
2472
2442
  export {
2473
- Cr as A,
2474
- qn as B,
2475
- Jr as C,
2443
+ gr as A,
2444
+ eo as B,
2445
+ Gr as C,
2476
2446
  Be as D,
2477
2447
  ne as P,
2478
- br as R,
2479
- oi as T,
2480
- no as V,
2481
- Yr as a,
2482
- ni as b,
2483
- ri as c,
2484
- Xn as d,
2485
- wn as e,
2448
+ hr as R,
2449
+ Xn as S,
2450
+ ei as T,
2451
+ wr as V,
2452
+ zr as a,
2453
+ Qr as b,
2454
+ ti as c,
2455
+ Qn as d,
2456
+ Yn as e,
2486
2457
  Fe as f,
2487
- bt as g,
2488
- Q as h,
2489
- Ce as i,
2458
+ wt as g,
2459
+ Ce as h,
2460
+ Q as i,
2490
2461
  Y as j,
2491
- co as k,
2492
- Ht as l,
2493
- Er as m,
2494
- Cn as n,
2495
- Rr as o,
2496
- Ct as p,
2497
- Pn as q,
2498
- ei as r,
2499
- Ot as s,
2500
- Qr as t,
2462
+ $n as k,
2463
+ Wt as l,
2464
+ yr as m,
2465
+ wn as n,
2466
+ vr as o,
2467
+ xt as p,
2468
+ qr as q,
2469
+ to as r,
2470
+ Tn as s,
2471
+ br as t,
2501
2472
  te as u,
2502
- kn as v,
2503
- Bn as w,
2504
- Zr as x
2473
+ Zr as v,
2474
+ Xt as w,
2475
+ Kr as x
2505
2476
  };