dgz-ui-shared 1.1.19 → 1.1.21

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 (82) hide show
  1. package/dist/{Actions-1AyyAnYT.js → Actions-CKVu3P3q.js} +6 -6
  2. package/dist/Actions-uGf1oq7E.cjs +1 -0
  3. package/dist/{DateRangePicker-kaBfJaKY.cjs → DateRangePicker-C1c1mofH.cjs} +3 -3
  4. package/dist/{DateRangePicker-D57HSCpq.js → DateRangePicker-DFsQ10c7.js} +5 -5
  5. package/dist/{ExportData-dSwR1N1v.js → ExportData-1xS2UAoq.js} +6 -6
  6. package/dist/ExportData-ApStkEWC.cjs +1 -0
  7. package/dist/{FilterWrapper-DeQRSTAc.js → FilterWrapper-Dk18nVPy.js} +31 -31
  8. package/dist/{FilterWrapper-B6p9fJWb.cjs → FilterWrapper-DvNjUQih.cjs} +5 -5
  9. package/dist/{MyInput-BzXWiSVj.cjs → MyInput-9MnlVZ4h.cjs} +1 -1
  10. package/dist/{MyInput-CkiPA3UG.js → MyInput-B-QCpehg.js} +57 -57
  11. package/dist/{MyLimitSelect-DHyIJawN.cjs → MyLimitSelect-BU1FClXt.cjs} +2 -2
  12. package/dist/{MyLimitSelect-XMVeSEqs.js → MyLimitSelect-D5ZWDY-s.js} +13 -13
  13. package/dist/{MySelect-Bmw1Krye.js → MySelect-C5uWRVJh.js} +7 -7
  14. package/dist/MySelect-DNK997Bi.cjs +1 -0
  15. package/dist/{button-2punbuN6-BBVynxVj.cjs → button-CdZDBhmr-3yMPCRDo.cjs} +1 -1
  16. package/dist/{button-2punbuN6-Bxlf8sMg.js → button-CdZDBhmr-BT_j3ig5.js} +7 -7
  17. package/dist/{chevron-right-HWBijj-I-Bdcofm_0.cjs → chevron-right-HWBijj-I-CZBu0GKg.cjs} +1 -1
  18. package/dist/{chevron-right-HWBijj-I-Bkp_tbGM.js → chevron-right-HWBijj-I-DsFUufdU.js} +1 -1
  19. package/dist/components/actions/index.cjs.js +1 -1
  20. package/dist/components/actions/index.es.js +1 -1
  21. package/dist/components/confirm/index.cjs.js +1 -1
  22. package/dist/components/confirm/index.es.js +1 -1
  23. package/dist/components/datatable/index.cjs.js +5 -5
  24. package/dist/components/datatable/index.es.js +204 -201
  25. package/dist/components/datepicker/index.cjs.js +1 -1
  26. package/dist/components/datepicker/index.es.js +1 -1
  27. package/dist/components/export/index.cjs.js +1 -1
  28. package/dist/components/export/index.es.js +1 -1
  29. package/dist/components/filters/index.cjs.js +1 -1
  30. package/dist/components/filters/index.es.js +6 -6
  31. package/dist/components/form/index.cjs.js +2 -2
  32. package/dist/components/form/index.es.js +33 -33
  33. package/dist/components/modal/index.cjs.js +2 -2
  34. package/dist/components/modal/index.es.js +7 -7
  35. package/dist/components/pagination/index.cjs.js +1 -1
  36. package/dist/components/pagination/index.es.js +1 -1
  37. package/dist/components/theme/index.cjs.js +3 -3
  38. package/dist/components/theme/index.es.js +4 -4
  39. package/dist/components/tooltip/index.cjs.js +1 -1
  40. package/dist/components/tooltip/index.es.js +44 -44
  41. package/dist/{createLucideIcon-B950nf2d-Brk4LIHH.js → createLucideIcon-B950nf2d-9wLYOF5y.js} +1 -1
  42. package/dist/{createLucideIcon-B950nf2d-BaIaB_Fz.cjs → createLucideIcon-B950nf2d-DrrWmvZU.cjs} +4 -4
  43. package/dist/dropdown-menu-TWRSm6RK-DQ03CnVw.cjs +1 -0
  44. package/dist/{dropdown-menu-lArmcWbC-jIg7CHSO.js → dropdown-menu-TWRSm6RK-D_FJpI4C.js} +83 -83
  45. package/dist/hooks/index.cjs.js +1 -1
  46. package/dist/hooks/index.es.js +2 -2
  47. package/dist/{index-CiR6yUKf-BEMUeikM.js → index-BL59b1Bz-C9bJE_xn.js} +90 -90
  48. package/dist/{index-CiR6yUKf-B1h5S0LB.cjs → index-BL59b1Bz-COeLljOH.cjs} +4 -4
  49. package/dist/{index-DUK8Bn0m-Clp83x2_.js → index-C4qYhCZt-BZQduTld.js} +29 -29
  50. package/dist/index-C4qYhCZt-DWBiWQ93.cjs +5 -0
  51. package/dist/index-CbK6da4c-QXbo5Vgb.cjs +1 -0
  52. package/dist/{index-Dp0y0FJw-B42jTfO0.js → index-CbK6da4c-d_6FdYZH.js} +1 -1
  53. package/dist/{index-GjjxAtgk-Dl4JPPHK.js → index-Cths1nBq-BUfZy21E.js} +71 -71
  54. package/dist/index-Cths1nBq-DzDn15YE.cjs +11 -0
  55. package/dist/{index-CMHo7s91-D6S6dZoG.cjs → index-ZsCkaYy6-Bjyf2SZs.cjs} +1 -1
  56. package/dist/{index-CMHo7s91-BRFfxKgJ.js → index-ZsCkaYy6-Cw9HUeiu.js} +1 -1
  57. package/dist/index.esm-CQEA7FC8.js +1007 -0
  58. package/dist/index.esm-TI7V1a5F.cjs +1 -0
  59. package/dist/{input-mask-Chc-UIWX-Br4gXX2T.js → input-mask-DBLFIvhN-BBxoZxnd.js} +3738 -3687
  60. package/dist/input-mask-DBLFIvhN-C_0RAR2l.cjs +190 -0
  61. package/dist/{popover-Dvg-QyCn-CJ3lAD8Q.js → popover-OZcfKDD9-C2PVWPLS.js} +17 -17
  62. package/dist/popover-OZcfKDD9-KUWOsIOs.cjs +1 -0
  63. package/dist/{react-select-CKazfTiF-1EhjhhlL.js → react-select-DVPHHTAP-D2u3DqGr.js} +2 -2
  64. package/dist/{react-select-CKazfTiF-Bb-Uf4tM.cjs → react-select-DVPHHTAP-DKDInFsM.cjs} +9 -9
  65. package/dist/types/components/datatable/DataTable.d.ts +1 -1
  66. package/dist/types/components/datatable/DataTable.d.ts.map +1 -1
  67. package/dist/{unstyled-4GbbDand.cjs → unstyled-BFCMBSGZ.cjs} +2 -2
  68. package/dist/{unstyled-Cmnf9U5U.js → unstyled-BMbrfzye.js} +42 -42
  69. package/dist/{useFilter-CiORTEHP.cjs → useFilter-Cwz8oftI.cjs} +1 -1
  70. package/dist/{useFilter-DMpxv27U.js → useFilter-DJunNBm2.js} +1 -1
  71. package/package.json +2 -2
  72. package/dist/Actions-Dg5LYo56.cjs +0 -1
  73. package/dist/ExportData-DUuHYzA-.cjs +0 -1
  74. package/dist/MySelect-lSICw49W.cjs +0 -1
  75. package/dist/dropdown-menu-lArmcWbC-DCwGoXng.cjs +0 -1
  76. package/dist/index-DUK8Bn0m-BIulOZIQ.cjs +0 -5
  77. package/dist/index-Dp0y0FJw-DVwS4FcV.cjs +0 -1
  78. package/dist/index-GjjxAtgk-DaxZek3n.cjs +0 -11
  79. package/dist/index.esm-CpcLzfLZ.cjs +0 -1
  80. package/dist/index.esm-lbl2HgR1.js +0 -970
  81. package/dist/input-mask-Chc-UIWX-DimBl_dd.cjs +0 -190
  82. package/dist/popover-Dvg-QyCn-Dr2o9oAG.cjs +0 -1
@@ -1,50 +1,50 @@
1
- import { k as P } from "./createLucideIcon-B950nf2d-Brk4LIHH.js";
2
- import * as l from "react";
3
- import R from "react";
4
- import { j as G, x as k, a as p, c as K, g as Z, h as L, b as I, y as J, n as Q } from "./index-CiR6yUKf-BEMUeikM.js";
1
+ import { k as P } from "./createLucideIcon-B950nf2d-9wLYOF5y.js";
2
+ import * as s from "react";
3
+ import g from "react";
4
+ import { j as G, i as D, a as p, S as K, g as Z, h as L, b as S, y as J, n as Q } from "./index-BL59b1Bz-C9bJE_xn.js";
5
5
  function V(e) {
6
- const r = e + "CollectionProvider", [u, n] = G(r), [S, b] = u(
6
+ const r = e + "CollectionProvider", [u, n] = G(r), [I, b] = u(
7
7
  r,
8
8
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
9
9
  ), v = (f) => {
10
- const { scope: o, children: a } = f, t = R.useRef(null), c = R.useRef(/* @__PURE__ */ new Map()).current;
11
- return /* @__PURE__ */ p.jsx(S, { scope: o, itemMap: c, collectionRef: t, children: a });
10
+ const { scope: o, children: a } = f, t = g.useRef(null), c = g.useRef(/* @__PURE__ */ new Map()).current;
11
+ return /* @__PURE__ */ p.jsx(I, { scope: o, itemMap: c, collectionRef: t, children: a });
12
12
  };
13
13
  v.displayName = r;
14
- const h = e + "CollectionSlot", C = K(h), m = R.forwardRef(
14
+ const w = e + "CollectionSlot", C = K(w), m = g.forwardRef(
15
15
  (f, o) => {
16
- const { scope: a, children: t } = f, c = b(h, a), d = k(o, c.collectionRef);
16
+ const { scope: a, children: t } = f, c = b(w, a), d = D(o, c.collectionRef);
17
17
  return /* @__PURE__ */ p.jsx(C, { ref: d, children: t });
18
18
  }
19
19
  );
20
- m.displayName = h;
21
- const s = e + "CollectionItemSlot", g = "data-radix-collection-item", x = K(s), w = R.forwardRef(
20
+ m.displayName = w;
21
+ const l = e + "CollectionItemSlot", y = "data-radix-collection-item", x = K(l), h = g.forwardRef(
22
22
  (f, o) => {
23
- const { scope: a, children: t, ...c } = f, d = R.useRef(null), A = k(o, d), E = b(s, a);
24
- return R.useEffect(() => (E.itemMap.set(d, { ref: d, ...c }), () => void E.itemMap.delete(d))), /* @__PURE__ */ p.jsx(x, { [g]: "", ref: A, children: t });
23
+ const { scope: a, children: t, ...c } = f, d = g.useRef(null), A = D(o, d), E = b(l, a);
24
+ return g.useEffect(() => (E.itemMap.set(d, { ref: d, ...c }), () => void E.itemMap.delete(d))), /* @__PURE__ */ p.jsx(x, { [y]: "", ref: A, children: t });
25
25
  }
26
26
  );
27
- w.displayName = s;
27
+ h.displayName = l;
28
28
  function F(f) {
29
29
  const o = b(e + "CollectionConsumer", f);
30
- return R.useCallback(() => {
30
+ return g.useCallback(() => {
31
31
  const a = o.collectionRef.current;
32
32
  if (!a) return [];
33
- const t = Array.from(a.querySelectorAll(`[${g}]`));
33
+ const t = Array.from(a.querySelectorAll(`[${y}]`));
34
34
  return Array.from(o.itemMap.values()).sort(
35
35
  (c, d) => t.indexOf(c.ref.current) - t.indexOf(d.ref.current)
36
36
  );
37
37
  }, [o.collectionRef, o.itemMap]);
38
38
  }
39
39
  return [
40
- { Provider: v, Slot: m, ItemSlot: w },
40
+ { Provider: v, Slot: m, ItemSlot: h },
41
41
  F,
42
42
  n
43
43
  ];
44
44
  }
45
- var W = l.createContext(void 0);
45
+ var W = s.createContext(void 0);
46
46
  function ee(e) {
47
- const r = l.useContext(W);
47
+ const r = s.useContext(W);
48
48
  return e || r || "ltr";
49
49
  }
50
50
  /**
@@ -60,33 +60,33 @@ const oe = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], be = P("check",
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
62
  */
63
- const re = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], he = P("circle", re);
64
- var j = "rovingFocusGroup.onEntryFocus", te = { bubbles: !1, cancelable: !0 }, T = "RovingFocusGroup", [D, N, ne] = V(T), [ce, ge] = G(
63
+ const re = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], we = P("circle", re);
64
+ var j = "rovingFocusGroup.onEntryFocus", te = { bubbles: !1, cancelable: !0 }, T = "RovingFocusGroup", [k, N, ne] = V(T), [ce, ye] = G(
65
65
  T,
66
66
  [ne]
67
- ), [ae, se] = ce(T), O = l.forwardRef(
68
- (e, r) => /* @__PURE__ */ p.jsx(D.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(D.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(le, { ...e, ref: r }) }) })
67
+ ), [ae, le] = ce(T), O = s.forwardRef(
68
+ (e, r) => /* @__PURE__ */ p.jsx(k.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(k.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(se, { ...e, ref: r }) }) })
69
69
  );
70
70
  O.displayName = T;
71
- var le = l.forwardRef((e, r) => {
71
+ var se = s.forwardRef((e, r) => {
72
72
  const {
73
73
  __scopeRovingFocusGroup: u,
74
74
  orientation: n,
75
- loop: S = !1,
75
+ loop: I = !1,
76
76
  dir: b,
77
77
  currentTabStopId: v,
78
- defaultCurrentTabStopId: h,
78
+ defaultCurrentTabStopId: w,
79
79
  onCurrentTabStopIdChange: C,
80
80
  onEntryFocus: m,
81
- preventScrollOnEntryFocus: s = !1,
82
- ...g
83
- } = e, x = l.useRef(null), w = k(r, x), F = ee(b), [f, o] = J({
81
+ preventScrollOnEntryFocus: l = !1,
82
+ ...y
83
+ } = e, x = s.useRef(null), h = D(r, x), F = ee(b), [f, o] = J({
84
84
  prop: v,
85
- defaultProp: h ?? null,
85
+ defaultProp: w ?? null,
86
86
  onChange: C,
87
87
  caller: T
88
- }), [a, t] = l.useState(!1), c = Q(m), d = N(u), A = l.useRef(!1), [E, _] = l.useState(0);
89
- return l.useEffect(() => {
88
+ }), [a, t] = s.useState(!1), c = Q(m), d = N(u), A = s.useRef(!1), [E, _] = s.useState(0);
89
+ return s.useEffect(() => {
90
90
  const i = x.current;
91
91
  if (i)
92
92
  return i.addEventListener(j, c), () => i.removeEventListener(j, c);
@@ -96,18 +96,18 @@ var le = l.forwardRef((e, r) => {
96
96
  scope: u,
97
97
  orientation: n,
98
98
  dir: F,
99
- loop: S,
99
+ loop: I,
100
100
  currentTabStopId: f,
101
- onItemFocus: l.useCallback(
101
+ onItemFocus: s.useCallback(
102
102
  (i) => o(i),
103
103
  [o]
104
104
  ),
105
- onItemShiftTab: l.useCallback(() => t(!0), []),
106
- onFocusableItemAdd: l.useCallback(
105
+ onItemShiftTab: s.useCallback(() => t(!0), []),
106
+ onFocusableItemAdd: s.useCallback(
107
107
  () => _((i) => i + 1),
108
108
  []
109
109
  ),
110
- onFocusableItemRemove: l.useCallback(
110
+ onFocusableItemRemove: s.useCallback(
111
111
  () => _((i) => i - 1),
112
112
  []
113
113
  ),
@@ -116,68 +116,68 @@ var le = l.forwardRef((e, r) => {
116
116
  {
117
117
  tabIndex: a || E === 0 ? -1 : 0,
118
118
  "data-orientation": n,
119
- ...g,
120
- ref: w,
119
+ ...y,
120
+ ref: h,
121
121
  style: { outline: "none", ...e.style },
122
- onMouseDown: I(e.onMouseDown, () => {
122
+ onMouseDown: S(e.onMouseDown, () => {
123
123
  A.current = !0;
124
124
  }),
125
- onFocus: I(e.onFocus, (i) => {
125
+ onFocus: S(e.onFocus, (i) => {
126
126
  const z = !A.current;
127
127
  if (i.target === i.currentTarget && z && !a) {
128
128
  const $ = new CustomEvent(j, te);
129
129
  if (i.currentTarget.dispatchEvent($), !$.defaultPrevented) {
130
- const M = d().filter((y) => y.focusable), H = M.find((y) => y.active), X = M.find((y) => y.id === f), Y = [H, X, ...M].filter(
130
+ const M = d().filter((R) => R.focusable), H = M.find((R) => R.active), X = M.find((R) => R.id === f), Y = [H, X, ...M].filter(
131
131
  Boolean
132
- ).map((y) => y.ref.current);
133
- q(Y, s);
132
+ ).map((R) => R.ref.current);
133
+ q(Y, l);
134
134
  }
135
135
  }
136
136
  A.current = !1;
137
137
  }),
138
- onBlur: I(e.onBlur, () => t(!1))
138
+ onBlur: S(e.onBlur, () => t(!1))
139
139
  }
140
140
  )
141
141
  }
142
142
  );
143
- }), B = "RovingFocusGroupItem", U = l.forwardRef(
143
+ }), B = "RovingFocusGroupItem", U = s.forwardRef(
144
144
  (e, r) => {
145
145
  const {
146
146
  __scopeRovingFocusGroup: u,
147
147
  focusable: n = !0,
148
- active: S = !1,
148
+ active: I = !1,
149
149
  tabStopId: b,
150
150
  children: v,
151
- ...h
152
- } = e, C = Z(), m = b || C, s = se(B, u), g = s.currentTabStopId === m, x = N(u), { onFocusableItemAdd: w, onFocusableItemRemove: F, currentTabStopId: f } = s;
153
- return l.useEffect(() => {
151
+ ...w
152
+ } = e, C = Z(), m = b || C, l = le(B, u), y = l.currentTabStopId === m, x = N(u), { onFocusableItemAdd: h, onFocusableItemRemove: F, currentTabStopId: f } = l;
153
+ return s.useEffect(() => {
154
154
  if (n)
155
- return w(), () => F();
156
- }, [n, w, F]), /* @__PURE__ */ p.jsx(
157
- D.ItemSlot,
155
+ return h(), () => F();
156
+ }, [n, h, F]), /* @__PURE__ */ p.jsx(
157
+ k.ItemSlot,
158
158
  {
159
159
  scope: u,
160
160
  id: m,
161
161
  focusable: n,
162
- active: S,
162
+ active: I,
163
163
  children: /* @__PURE__ */ p.jsx(
164
164
  L.span,
165
165
  {
166
- tabIndex: g ? 0 : -1,
167
- "data-orientation": s.orientation,
168
- ...h,
166
+ tabIndex: y ? 0 : -1,
167
+ "data-orientation": l.orientation,
168
+ ...w,
169
169
  ref: r,
170
- onMouseDown: I(e.onMouseDown, (o) => {
171
- n ? s.onItemFocus(m) : o.preventDefault();
170
+ onMouseDown: S(e.onMouseDown, (o) => {
171
+ n ? l.onItemFocus(m) : o.preventDefault();
172
172
  }),
173
- onFocus: I(e.onFocus, () => s.onItemFocus(m)),
174
- onKeyDown: I(e.onKeyDown, (o) => {
173
+ onFocus: S(e.onFocus, () => l.onItemFocus(m)),
174
+ onKeyDown: S(e.onKeyDown, (o) => {
175
175
  if (o.key === "Tab" && o.shiftKey) {
176
- s.onItemShiftTab();
176
+ l.onItemShiftTab();
177
177
  return;
178
178
  }
179
179
  if (o.target !== o.currentTarget) return;
180
- const a = fe(o, s.orientation, s.dir);
180
+ const a = fe(o, l.orientation, l.dir);
181
181
  if (a !== void 0) {
182
182
  if (o.metaKey || o.ctrlKey || o.altKey || o.shiftKey) return;
183
183
  o.preventDefault();
@@ -186,12 +186,12 @@ var le = l.forwardRef((e, r) => {
186
186
  else if (a === "prev" || a === "next") {
187
187
  a === "prev" && t.reverse();
188
188
  const c = t.indexOf(o.currentTarget);
189
- t = s.loop ? de(t, c + 1) : t.slice(c + 1);
189
+ t = l.loop ? de(t, c + 1) : t.slice(c + 1);
190
190
  }
191
191
  setTimeout(() => q(t));
192
192
  }
193
193
  }),
194
- children: typeof v == "function" ? v({ isCurrentTabStop: g, hasTabStop: f != null }) : v
194
+ children: typeof v == "function" ? v({ isCurrentTabStop: y, hasTabStop: f != null }) : v
195
195
  }
196
196
  )
197
197
  }
@@ -225,13 +225,13 @@ function q(e, r = !1) {
225
225
  function de(e, r) {
226
226
  return e.map((u, n) => e[(r + n) % e.length]);
227
227
  }
228
- var we = O, ye = U;
228
+ var he = O, Re = U;
229
229
  export {
230
- we as F,
231
- he as a,
232
- ge as b,
233
- ye as g,
234
- V as h,
230
+ V as D,
231
+ he as F,
232
+ we as a,
233
+ ye as b,
234
+ Re as g,
235
235
  ee as n,
236
236
  be as t
237
237
  };
@@ -0,0 +1,11 @@
1
+ "use strict";const _=require("./createLucideIcon-B950nf2d-DrrWmvZU.cjs"),b=require("react"),t=require("./index-BL59b1Bz-COeLljOH.cjs");function H(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const c in e)if(c!=="default"){const n=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(r,c,n.get?n:{enumerable:!0,get:()=>e[c]})}}return r.default=e,Object.freeze(r)}const s=H(b);function O(e){const r=e+"CollectionProvider",[c,n]=t.j(r),[F,y]=c(r,{collectionRef:{current:null},itemMap:new Map}),v=d=>{const{scope:o,children:u}=d,a=b.useRef(null),l=b.useRef(new Map).current;return t.ae.jsx(F,{scope:o,itemMap:l,collectionRef:a,children:u})};v.displayName=r;const g=e+"CollectionSlot",I=t.S(g),m=b.forwardRef((d,o)=>{const{scope:u,children:a}=d,l=y(g,u),p=t.i(o,l.collectionRef);return t.ae.jsx(I,{ref:p,children:a})});m.displayName=g;const i=e+"CollectionItemSlot",w="data-radix-collection-item",S=t.S(i),h=b.forwardRef((d,o)=>{const{scope:u,children:a,...l}=d,p=b.useRef(null),C=t.i(o,p),A=y(i,u);return b.useEffect(()=>(A.itemMap.set(p,{ref:p,...l}),()=>void A.itemMap.delete(p))),t.ae.jsx(S,{[w]:"",ref:C,children:a})});h.displayName=i;function x(d){const o=y(e+"CollectionConsumer",d);return b.useCallback(()=>{const u=o.collectionRef.current;if(!u)return[];const a=Array.from(u.querySelectorAll(`[${w}]`));return Array.from(o.itemMap.values()).sort((l,p)=>a.indexOf(l.ref.current)-a.indexOf(p.ref.current))},[o.collectionRef,o.itemMap])}return[{Provider:v,Slot:m,ItemSlot:h},x,n]}var X=s.createContext(void 0);function P(e){const r=s.useContext(X);return e||r||"ltr"}/**
2
+ * @license lucide-react v0.511.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const Y=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Z=_.k("check",Y);/**
7
+ * @license lucide-react v0.511.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const J=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Q=_.k("circle",J);var D="rovingFocusGroup.onEntryFocus",V={bubbles:!1,cancelable:!0},T="RovingFocusGroup",[E,$,W]=O(T),[ee,te]=t.j(T,[W]),[oe,re]=ee(T),L=s.forwardRef((e,r)=>t.ae.jsx(E.Provider,{scope:e.__scopeRovingFocusGroup,children:t.ae.jsx(E.Slot,{scope:e.__scopeRovingFocusGroup,children:t.ae.jsx(ne,{...e,ref:r})})}));L.displayName=T;var ne=s.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:c,orientation:n,loop:F=!1,dir:y,currentTabStopId:v,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:I,onEntryFocus:m,preventScrollOnEntryFocus:i=!1,...w}=e,S=s.useRef(null),h=t.i(r,S),x=P(y),[d,o]=t.y({prop:v,defaultProp:g??null,onChange:I,caller:T}),[u,a]=s.useState(!1),l=t.n(m),p=$(c),C=s.useRef(!1),[A,M]=s.useState(0);return s.useEffect(()=>{const f=S.current;if(f)return f.addEventListener(D,l),()=>f.removeEventListener(D,l)},[l]),t.ae.jsx(oe,{scope:c,orientation:n,dir:x,loop:F,currentTabStopId:d,onItemFocus:s.useCallback(f=>o(f),[o]),onItemShiftTab:s.useCallback(()=>a(!0),[]),onFocusableItemAdd:s.useCallback(()=>M(f=>f+1),[]),onFocusableItemRemove:s.useCallback(()=>M(f=>f-1),[]),children:t.ae.jsx(t.h.div,{tabIndex:u||A===0?-1:0,"data-orientation":n,...w,ref:h,style:{outline:"none",...e.style},onMouseDown:t.y$1(e.onMouseDown,()=>{C.current=!0}),onFocus:t.y$1(e.onFocus,f=>{const G=!C.current;if(f.target===f.currentTarget&&G&&!u){const k=new CustomEvent(D,V);if(f.currentTarget.dispatchEvent(k),!k.defaultPrevented){const j=p().filter(R=>R.focusable),q=j.find(R=>R.active),U=j.find(R=>R.id===d),z=[q,U,...j].filter(Boolean).map(R=>R.ref.current);B(z,i)}}C.current=!1}),onBlur:t.y$1(e.onBlur,()=>a(!1))})})}),K="RovingFocusGroupItem",N=s.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:c,focusable:n=!0,active:F=!1,tabStopId:y,children:v,...g}=e,I=t.g(),m=y||I,i=re(K,c),w=i.currentTabStopId===m,S=$(c),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=i;return s.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),t.ae.jsx(E.ItemSlot,{scope:c,id:m,focusable:n,active:F,children:t.ae.jsx(t.h.span,{tabIndex:w?0:-1,"data-orientation":i.orientation,...g,ref:r,onMouseDown:t.y$1(e.onMouseDown,o=>{n?i.onItemFocus(m):o.preventDefault()}),onFocus:t.y$1(e.onFocus,()=>i.onItemFocus(m)),onKeyDown:t.y$1(e.onKeyDown,o=>{if(o.key==="Tab"&&o.shiftKey){i.onItemShiftTab();return}if(o.target!==o.currentTarget)return;const u=le(o,i.orientation,i.dir);if(u!==void 0){if(o.metaKey||o.ctrlKey||o.altKey||o.shiftKey)return;o.preventDefault();let a=S().filter(l=>l.focusable).map(l=>l.ref.current);if(u==="last")a.reverse();else if(u==="prev"||u==="next"){u==="prev"&&a.reverse();const l=a.indexOf(o.currentTarget);a=i.loop?ue(a,l+1):a.slice(l+1)}setTimeout(()=>B(a))}}),children:typeof v=="function"?v({isCurrentTabStop:w,hasTabStop:d!=null}):v})})});N.displayName=K;var ce={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ae(e,r){return r!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function le(e,r,c){const n=ae(e.key,c);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return ce[n]}function B(e,r=!1){const c=document.activeElement;for(const n of e)if(n===c||(n.focus({preventScroll:r}),document.activeElement!==c))return}function ue(e,r){return e.map((c,n)=>e[(r+n)%e.length])}var ie=L,se=N;exports.D=O;exports.Fe=ie;exports.a=Q;exports.be=te;exports.ge=se;exports.n=P;exports.t=Z;
@@ -1 +1 @@
1
- "use strict";const Ie=require("react"),Lt=require("react-dom"),C=require("./index-CiR6yUKf-B1h5S0LB.cjs");function qe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const R=qe(Ie),Dt=qe(Lt),Ct=["top","right","bottom","left"],K=Math.min,M=Math.max,ue=Math.round,ce=Math.floor,Y=e=>({x:e,y:e}),Et={left:"right",right:"left",bottom:"top",top:"bottom"},kt={start:"end",end:"start"};function be(e,t,n){return M(e,K(t,n))}function X(e,t){return typeof e=="function"?e(t):e}function U(e){return e.split("-")[0]}function te(e){return e.split("-")[1]}function Se(e){return e==="x"?"y":"x"}function Pe(e){return e==="y"?"height":"width"}const Ht=new Set(["top","bottom"]);function V(e){return Ht.has(U(e))?"y":"x"}function Oe(e){return Se(V(e))}function Ft(e,t,n){n===void 0&&(n=!1);const r=te(e),o=Oe(e),i=Pe(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=de(l)),[l,de(l)]}function $t(e){const t=de(e);return[Re(e),t,Re(t)]}function Re(e){return e.replace(/start|end/g,t=>kt[t])}const $e=["left","right"],je=["right","left"],jt=["top","bottom"],Mt=["bottom","top"];function Wt(e,t,n){switch(e){case"top":case"bottom":return n?t?je:$e:t?$e:je;case"left":case"right":return t?jt:Mt;default:return[]}}function zt(e,t,n,r){const o=te(e);let i=Wt(U(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Re)))),i}function de(e){return e.replace(/left|right|bottom|top/g,t=>Et[t])}function Bt(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xe(e){return typeof e!="number"?Bt(e):{top:e,right:e,bottom:e,left:e}}function pe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Me(e,t,n){let{reference:r,floating:o}=e;const i=V(t),l=Oe(t),s=Pe(l),a=U(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let f;switch(a){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(te(t)){case"start":f[l]-=h*(n&&u?-1:1);break;case"end":f[l]+=h*(n&&u?-1:1);break}return f}const Nt=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Me(u,r,a),h=r,f={},p=0;for(let m=0;m<s.length;m++){const{name:g,fn:y}=s[m],{x:w,y:x,data:v,reset:b}=await y({x:c,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:u,platform:l,elements:{reference:e,floating:t}});c=w??c,d=x??d,f={...f,[g]:{...f[g],...v}},b&&p<=50&&(p++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(u=b.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=Me(u,h,a)),m=-1)}return{x:c,y:d,placement:h,strategy:o,middlewareData:f}};async function oe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=X(t,e),p=Xe(f),m=s[h?d==="floating"?"reference":"floating":d],g=pe(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:a})),y=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},v=pe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:w,strategy:a}):y);return{top:(g.top-v.top+p.top)/x.y,bottom:(v.bottom-g.bottom+p.bottom)/x.y,left:(g.left-v.left+p.left)/x.x,right:(v.right-g.right+p.right)/x.x}}const _t=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:c=0}=X(e,t)||{};if(u==null)return{};const d=Xe(c),h={x:n,y:r},f=Oe(o),p=Pe(f),m=await l.getDimensions(u),g=f==="y",y=g?"top":"left",w=g?"bottom":"right",x=g?"clientHeight":"clientWidth",v=i.reference[p]+i.reference[f]-h[f]-i.floating[p],b=h[f]-i.reference[f],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let P=S?S[x]:0;(!P||!await(l.isElement==null?void 0:l.isElement(S)))&&(P=s.floating[x]||i.floating[p]);const H=v/2-b/2,$=P/2-m[p]/2-1,T=K(d[y],$),j=K(d[w],$),E=T,F=P-m[p]-j,O=P/2-m[p]/2+H,z=be(E,O,F),L=!a.arrow&&te(o)!=null&&O!==z&&i.reference[p]/2-(O<E?T:j)-m[p]/2<0,D=L?O<E?O-E:O-F:0;return{[f]:h[f]+D,data:{[f]:z,centerOffset:O-z-D,...L&&{alignmentOffset:D}},reset:L}}}),Vt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:s,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=X(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=U(o),w=V(s),x=U(s)===s,v=await(a.isRTL==null?void 0:a.isRTL(u.floating)),b=h||(x||!m?[de(s)]:$t(s)),S=p!=="none";!h&&S&&b.push(...zt(s,m,p,v));const P=[s,...b],H=await oe(t,g),$=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&$.push(H[y]),d){const O=Ft(o,l,v);$.push(H[O[0]],H[O[1]])}if(T=[...T,{placement:o,overflows:$}],!$.every(O=>O<=0)){var j,E;const O=(((j=i.flip)==null?void 0:j.index)||0)+1,z=P[O];if(z&&(!(d==="alignment"&&w!==V(z))||T.every(D=>D.overflows[0]>0&&V(D.placement)===w)))return{data:{index:O,overflows:T},reset:{placement:z}};let L=(E=T.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:E.placement;if(!L)switch(f){case"bestFit":{var F;const D=(F=T.filter(A=>{if(S){const k=V(A.placement);return k===w||k==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(k=>k>0).reduce((k,_)=>k+_,0)]).sort((A,k)=>A[1]-k[1])[0])==null?void 0:F[0];D&&(L=D);break}case"initialPlacement":L=s;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function We(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ze(e){return Ct.some(t=>e[t]>=0)}const Yt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=X(e,t);switch(r){case"referenceHidden":{const i=await oe(t,{...o,elementContext:"reference"}),l=We(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ze(l)}}}case"escaped":{const i=await oe(t,{...o,altBoundary:!0}),l=We(i,n.floating);return{data:{escapedOffsets:l,escaped:ze(l)}}}default:return{}}}}},Ue=new Set(["left","top"]);async function It(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=U(n),s=te(n),a=V(n)==="y",u=Ue.has(l)?-1:1,c=i&&a?-1:1,d=X(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(f=s==="end"?p*-1:p),a?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const qt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await It(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},Xt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:g=>{let{x:y,y:w}=g;return{x:y,y:w}}},...a}=X(e,t),u={x:n,y:r},c=await oe(t,a),d=V(U(o)),h=Se(d);let f=u[h],p=u[d];if(i){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=f+c[g],x=f-c[y];f=be(w,f,x)}if(l){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=p+c[g],x=p-c[y];p=be(w,p,x)}const m=s.fn({...t,[h]:f,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[d]:l}}}}}},Ut=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=X(e,t),c={x:n,y:r},d=V(o),h=Se(d);let f=c[h],p=c[d];const m=X(s,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const x=h==="y"?"height":"width",v=i.reference[h]-i.floating[x]+g.mainAxis,b=i.reference[h]+i.reference[x]-g.mainAxis;f<v?f=v:f>b&&(f=b)}if(u){var y,w;const x=h==="y"?"width":"height",v=Ue.has(U(o)),b=i.reference[d]-i.floating[x]+(v&&((y=l.offset)==null?void 0:y[d])||0)+(v?0:g.crossAxis),S=i.reference[d]+i.reference[x]+(v?0:((w=l.offset)==null?void 0:w[d])||0)-(v?g.crossAxis:0);p<b?p=b:p>S&&(p=S)}return{[h]:f,[d]:p}}}},Kt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:l,elements:s}=t,{apply:a=()=>{},...u}=X(e,t),c=await oe(t,u),d=U(o),h=te(o),f=V(o)==="y",{width:p,height:m}=i.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=h===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g=h==="end"?"top":"bottom");const w=m-c.top-c.bottom,x=p-c.left-c.right,v=K(m-c[g],w),b=K(p-c[y],x),S=!t.middlewareData.shift;let P=v,H=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),S&&!h){const T=M(c.left,0),j=M(c.right,0),E=M(c.top,0),F=M(c.bottom,0);f?H=p-2*(T!==0||j!==0?T+j:M(c.left,c.right)):P=m-2*(E!==0||F!==0?E+F:M(c.top,c.bottom))}await a({...t,availableWidth:H,availableHeight:P});const $=await l.getDimensions(s.floating);return p!==$.width||m!==$.height?{reset:{rects:!0}}:{}}}};function me(){return typeof window<"u"}function ne(e){return Ke(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(Ke(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ke(e){return me()?e instanceof Node||e instanceof W(e).Node:!1}function B(e){return me()?e instanceof Element||e instanceof W(e).Element:!1}function I(e){return me()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function Be(e){return!me()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}const Zt=new Set(["inline","contents"]);function le(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=N(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Zt.has(o)}const Gt=new Set(["table","td","th"]);function Jt(e){return Gt.has(ne(e))}const Qt=[":popover-open",":modal"];function ge(e){return Qt.some(t=>{try{return e.matches(t)}catch{return!1}})}const en=["transform","translate","scale","rotate","perspective"],tn=["transform","translate","scale","rotate","perspective","filter"],nn=["paint","layout","strict","content"];function Te(e){const t=Le(),n=B(e)?N(e):e;return en.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||tn.some(r=>(n.willChange||"").includes(r))||nn.some(r=>(n.contain||"").includes(r))}function rn(e){let t=Z(e);for(;I(t)&&!ee(t);){if(Te(t))return t;if(ge(t))return null;t=Z(t)}return null}function Le(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const on=new Set(["html","body","#document"]);function ee(e){return on.has(ne(e))}function N(e){return W(e).getComputedStyle(e)}function ye(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(ne(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Be(e)&&e.host||q(e);return Be(t)?t.host:t}function Ze(e){const t=Z(e);return ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&le(t)?t:Ze(t)}function ie(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ze(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=W(o);if(i){const s=Ae(l);return t.concat(l,l.visualViewport||[],le(o)?o:[],s&&n?ie(s):[])}return t.concat(o,ie(o,[],n))}function Ae(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ge(e){const t=N(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=I(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=ue(n)!==i||ue(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function De(e){return B(e)?e:e.contextElement}function Q(e){const t=De(e);if(!I(t))return Y(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ge(t);let l=(i?ue(n.width):n.width)/r,s=(i?ue(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const ln=Y(0);function Je(e){const t=W(e);return!Le()||!t.visualViewport?ln:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==W(e)?!1:t}function G(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=De(e);let l=Y(1);t&&(r?B(r)&&(l=Q(r)):l=Q(e));const s=sn(i,n,r)?Je(i):Y(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,c=o.width/l.x,d=o.height/l.y;if(i){const h=W(i),f=r&&B(r)?W(r):r;let p=h,m=Ae(p);for(;m&&r&&f!==p;){const g=Q(m),y=m.getBoundingClientRect(),w=N(m),x=y.left+(m.clientLeft+parseFloat(w.paddingLeft))*g.x,v=y.top+(m.clientTop+parseFloat(w.paddingTop))*g.y;a*=g.x,u*=g.y,c*=g.x,d*=g.y,a+=x,u+=v,p=W(m),m=Ae(p)}}return pe({width:c,height:d,x:a,y:u})}function Ce(e,t){const n=ye(e).scrollLeft;return t?t.left+n:G(q(e)).left+n}function Qe(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Ce(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function an(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=q(r),s=t?ge(t.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Y(1);const c=Y(0),d=I(r);if((d||!d&&!i)&&((ne(r)!=="body"||le(l))&&(a=ye(r)),I(r))){const f=G(r);u=Q(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const h=l&&!d&&!i?Qe(l,a,!0):Y(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-a.scrollTop*u.y+c.y+h.y}}function cn(e){return Array.from(e.getClientRects())}function fn(e){const t=q(e),n=ye(e),r=e.ownerDocument.body,o=M(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=M(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Ce(e);const s=-n.scrollTop;return N(r).direction==="rtl"&&(l+=M(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function un(e,t){const n=W(e),r=q(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=Le();(!u||u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}const dn=new Set(["absolute","fixed"]);function pn(e,t){const n=G(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=I(e)?Q(e):Y(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function Ne(e,t,n){let r;if(t==="viewport")r=un(e,n);else if(t==="document")r=fn(q(e));else if(B(t))r=pn(t,n);else{const o=Je(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return pe(r)}function et(e,t){const n=Z(e);return n===t||!B(n)||ee(n)?!1:N(n).position==="fixed"||et(n,t)}function hn(e,t){const n=t.get(e);if(n)return n;let r=ie(e,[],!1).filter(s=>B(s)&&ne(s)!=="body"),o=null;const i=N(e).position==="fixed";let l=i?Z(e):e;for(;B(l)&&!ee(l);){const s=N(l),a=Te(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&o&&dn.has(o.position)||le(l)&&!a&&et(e,l))?r=r.filter(u=>u!==l):o=s,l=Z(l)}return t.set(e,r),r}function mn(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ge(t)?[]:hn(t,this._c):[].concat(n),r],l=i[0],s=i.reduce((a,u)=>{const c=Ne(t,u,o);return a.top=M(c.top,a.top),a.right=K(c.right,a.right),a.bottom=K(c.bottom,a.bottom),a.left=M(c.left,a.left),a},Ne(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function gn(e){const{width:t,height:n}=Ge(e);return{width:t,height:n}}function yn(e,t,n){const r=I(t),o=q(t),i=n==="fixed",l=G(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=Y(0);function u(){a.x=Ce(o)}if(r||!r&&!i)if((ne(t)!=="body"||le(o))&&(s=ye(t)),r){const f=G(t,!0,i,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?Qe(o,s):Y(0),d=l.left+s.scrollLeft-a.x-c.x,h=l.top+s.scrollTop-a.y-c.y;return{x:d,y:h,width:l.width,height:l.height}}function xe(e){return N(e).position==="static"}function _e(e,t){if(!I(e)||N(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function tt(e,t){const n=W(e);if(ge(e))return n;if(!I(e)){let o=Z(e);for(;o&&!ee(o);){if(B(o)&&!xe(o))return o;o=Z(o)}return n}let r=_e(e,t);for(;r&&Jt(r)&&xe(r);)r=_e(r,t);return r&&ee(r)&&xe(r)&&!Te(r)?n:r||rn(e)||n}const wn=async function(e){const t=this.getOffsetParent||tt,n=this.getDimensions,r=await n(e.floating);return{reference:yn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xn(e){return N(e).direction==="rtl"}const vn={convertOffsetParentRelativeRectToViewportRelativeRect:an,getDocumentElement:q,getClippingRect:mn,getOffsetParent:tt,getElementRects:wn,getClientRects:cn,getDimensions:gn,getScale:Q,isElement:B,isRTL:xn};function nt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bn(e,t){let n=null,r;const o=q(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(s||t(),!h||!f)return;const p=ce(d),m=ce(o.clientWidth-(c+h)),g=ce(o.clientHeight-(d+f)),y=ce(c),w={rootMargin:-p+"px "+-m+"px "+-g+"px "+-y+"px",threshold:M(0,K(1,a))||1};let x=!0;function v(b){const S=b[0].intersectionRatio;if(S!==a){if(!x)return l();S?l(!1,S):r=setTimeout(()=>{l(!1,1e-7)},1e3)}S===1&&!nt(u,e.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(v,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(v,w)}n.observe(e)}return l(!0),i}function rt(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=De(e),c=o||i?[...u?ie(u):[],...ie(t)]:[];c.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=u&&s?bn(u,n):null;let h=-1,f=null;l&&(f=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let p,m=a?G(e):null;a&&g();function g(){const y=G(e);m&&!nt(m,y)&&n(),m=y,p=requestAnimationFrame(g)}return n(),()=>{var y;c.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d==null||d(),(y=f)==null||y.disconnect(),f=null,a&&cancelAnimationFrame(p)}}const Rn=qt,An=Xt,Sn=Vt,Pn=Kt,On=Yt,Ve=_t,Tn=Ut,Ln=(e,t,n)=>{const r=new Map,o={platform:vn,...n},i={...o.platform,_c:r};return Nt(e,t,{...o,platform:i})};var Dn=typeof document<"u",Cn=function(){},fe=Dn?Ie.useLayoutEffect:Cn;function he(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!he(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!he(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ot(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ye(e,t){const n=ot(e);return Math.round(t*n)/n}function ve(e){const t=R.useRef(e);return fe(()=>{t.current=e}),t}function En(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[c,d]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=R.useState(r);he(h,r)||f(r);const[p,m]=R.useState(null),[g,y]=R.useState(null),w=R.useCallback(A=>{A!==S.current&&(S.current=A,m(A))},[]),x=R.useCallback(A=>{A!==P.current&&(P.current=A,y(A))},[]),v=i||p,b=l||g,S=R.useRef(null),P=R.useRef(null),H=R.useRef(c),$=a!=null,T=ve(a),j=ve(o),E=ve(u),F=R.useCallback(()=>{if(!S.current||!P.current)return;const A={placement:t,strategy:n,middleware:h};j.current&&(A.platform=j.current),Ln(S.current,P.current,A).then(k=>{const _={...k,isPositioned:E.current!==!1};O.current&&!he(H.current,_)&&(H.current=_,Dt.flushSync(()=>{d(_)}))})},[h,t,n,j,E]);fe(()=>{u===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);const O=R.useRef(!1);fe(()=>(O.current=!0,()=>{O.current=!1}),[]),fe(()=>{if(v&&(S.current=v),b&&(P.current=b),v&&b){if(T.current)return T.current(v,b,F);F()}},[v,b,F,T,$]);const z=R.useMemo(()=>({reference:S,floating:P,setReference:w,setFloating:x}),[w,x]),L=R.useMemo(()=>({reference:v,floating:b}),[v,b]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!L.floating)return A;const k=Ye(L.floating,c.x),_=Ye(L.floating,c.y);return s?{...A,transform:"translate("+k+"px, "+_+"px)",...ot(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:_}},[n,s,L.floating,c.x,c.y]);return R.useMemo(()=>({...c,update:F,refs:z,elements:L,floatingStyles:D}),[c,F,z,L,D])}const kn=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ve({element:r.current,padding:o}).fn(n):{}:r?Ve({element:r,padding:o}).fn(n):{}}}},Hn=(e,t)=>({...Rn(e),options:[e,t]}),Fn=(e,t)=>({...An(e),options:[e,t]}),$n=(e,t)=>({...Tn(e),options:[e,t]}),jn=(e,t)=>({...Sn(e),options:[e,t]}),Mn=(e,t)=>({...Pn(e),options:[e,t]}),Wn=(e,t)=>({...On(e),options:[e,t]}),zn=(e,t)=>({...kn(e),options:[e,t]});var Bn="Arrow",it=R.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return C.ae.jsx(C.h.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.ae.jsx("polygon",{points:"0,0 30,0 15,10"})})});it.displayName=Bn;var Nn=it;function lt(e){const[t,n]=R.useState(void 0);return C.w$1(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ee="Popper",[st,_n]=C.j(Ee),[Vn,at]=st(Ee),ct=e=>{const{__scopePopper:t,children:n}=e,[r,o]=R.useState(null);return C.ae.jsx(Vn,{scope:t,anchor:r,onAnchorChange:o,children:n})};ct.displayName=Ee;var ft="PopperAnchor",ut=R.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=at(ft,n),l=R.useRef(null),s=C.x(t,l);return R.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:C.ae.jsx(C.h.div,{...o,ref:s})});ut.displayName=ft;var ke="PopperContent",[Yn,In]=st(ke),dt=R.forwardRef((e,t)=>{var n,r,o,i,l,s;const{__scopePopper:a,side:u="bottom",sideOffset:c=0,align:d="center",alignOffset:h=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:v,...b}=e,S=at(ke,a),[P,H]=R.useState(null),$=C.x(t,re=>H(re)),[T,j]=R.useState(null),E=lt(T),F=(E==null?void 0:E.width)??0,O=(E==null?void 0:E.height)??0,z=u+(d!=="center"?"-"+d:""),L=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},D=Array.isArray(m)?m:[m],A=D.length>0,k={padding:L,boundary:D.filter(Xn),altBoundary:A},{refs:_,floatingStyles:He,placement:gt,isPositioned:se,middlewareData:J}=En({strategy:"fixed",placement:z,whileElementsMounted:(...re)=>rt(...re,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[Hn({mainAxis:c+O,alignmentAxis:h}),p&&Fn({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?$n():void 0,...k}),p&&jn({...k}),Mn({...k,apply:({elements:re,rects:At,availableWidth:St,availableHeight:Pt})=>{const{width:Ot,height:Tt}=At.reference,ae=re.floating.style;ae.setProperty("--radix-popper-available-width",`${St}px`),ae.setProperty("--radix-popper-available-height",`${Pt}px`),ae.setProperty("--radix-popper-anchor-width",`${Ot}px`),ae.setProperty("--radix-popper-anchor-height",`${Tt}px`)}}),T&&zn({element:T,padding:f}),Un({arrowWidth:F,arrowHeight:O}),w&&Wn({strategy:"referenceHidden",...k})]}),[Fe,yt]=mt(gt),we=C.n(v);C.w$1(()=>{se&&(we==null||we())},[se,we]);const wt=(n=J.arrow)==null?void 0:n.x,xt=(r=J.arrow)==null?void 0:r.y,vt=((o=J.arrow)==null?void 0:o.centerOffset)!==0,[bt,Rt]=R.useState();return C.w$1(()=>{P&&Rt(window.getComputedStyle(P).zIndex)},[P]),C.ae.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...He,transform:se?He.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:bt,"--radix-popper-transform-origin":[(i=J.transformOrigin)==null?void 0:i.x,(l=J.transformOrigin)==null?void 0:l.y].join(" "),...((s=J.hide)==null?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.ae.jsx(Yn,{scope:a,placedSide:Fe,onArrowChange:j,arrowX:wt,arrowY:xt,shouldHideArrow:vt,children:C.ae.jsx(C.h.div,{"data-side":Fe,"data-align":yt,...b,ref:$,style:{...b.style,animation:se?void 0:"none"}})})})});dt.displayName=ke;var pt="PopperArrow",qn={top:"bottom",right:"left",bottom:"top",left:"right"},ht=R.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=In(pt,n),i=qn[o.placedSide];return C.ae.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:C.ae.jsx(Nn,{...r,ref:t,style:{...r.style,display:"block"}})})});ht.displayName=pt;function Xn(e){return e!==null}var Un=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:l,middlewareData:s}=t,a=((n=s.arrow)==null?void 0:n.centerOffset)!==0,u=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[d,h]=mt(i),f={start:"0%",center:"50%",end:"100%"}[h],p=(((r=s.arrow)==null?void 0:r.x)??0)+u/2,m=(((o=s.arrow)==null?void 0:o.y)??0)+c/2;let g="",y="";return d==="bottom"?(g=a?f:`${p}px`,y=`${-c}px`):d==="top"?(g=a?f:`${p}px`,y=`${l.floating.height+c}px`):d==="right"?(g=`${-c}px`,y=a?f:`${m}px`):d==="left"&&(g=`${l.floating.width+c}px`,y=a?f:`${m}px`),{data:{x:g,y}}}});function mt(e){const[t,n="center"]=e.split("-");return[t,n]}var Kn=ct,Zn=ut,Gn=dt,Jn=ht;exports.In=lt;exports.Rn=rt;exports.co=Jn;exports.io=Kn;exports.oo=_n;exports.ro=Zn;exports.so=Gn;
1
+ "use strict";const Ie=require("react"),Lt=require("react-dom"),C=require("./index-BL59b1Bz-COeLljOH.cjs");function qe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const R=qe(Ie),Dt=qe(Lt),Ct=["top","right","bottom","left"],Z=Math.min,M=Math.max,ue=Math.round,ce=Math.floor,Y=e=>({x:e,y:e}),Et={left:"right",right:"left",bottom:"top",top:"bottom"},kt={start:"end",end:"start"};function be(e,t,n){return M(e,Z(t,n))}function X(e,t){return typeof e=="function"?e(t):e}function U(e){return e.split("-")[0]}function te(e){return e.split("-")[1]}function Se(e){return e==="x"?"y":"x"}function Pe(e){return e==="y"?"height":"width"}const Ht=new Set(["top","bottom"]);function V(e){return Ht.has(U(e))?"y":"x"}function Oe(e){return Se(V(e))}function Ft(e,t,n){n===void 0&&(n=!1);const r=te(e),o=Oe(e),i=Pe(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=de(l)),[l,de(l)]}function $t(e){const t=de(e);return[Re(e),t,Re(t)]}function Re(e){return e.replace(/start|end/g,t=>kt[t])}const $e=["left","right"],je=["right","left"],jt=["top","bottom"],Mt=["bottom","top"];function zt(e,t,n){switch(e){case"top":case"bottom":return n?t?je:$e:t?$e:je;case"left":case"right":return t?jt:Mt;default:return[]}}function Bt(e,t,n,r){const o=te(e);let i=zt(U(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Re)))),i}function de(e){return e.replace(/left|right|bottom|top/g,t=>Et[t])}function Wt(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xe(e){return typeof e!="number"?Wt(e):{top:e,right:e,bottom:e,left:e}}function pe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Me(e,t,n){let{reference:r,floating:o}=e;const i=V(t),l=Oe(t),s=Pe(l),a=U(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let f;switch(a){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(te(t)){case"start":f[l]-=h*(n&&u?-1:1);break;case"end":f[l]+=h*(n&&u?-1:1);break}return f}const Nt=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Me(u,r,a),h=r,f={},p=0;for(let m=0;m<s.length;m++){const{name:g,fn:y}=s[m],{x:w,y:x,data:v,reset:b}=await y({x:c,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:u,platform:l,elements:{reference:e,floating:t}});c=w??c,d=x??d,f={...f,[g]:{...f[g],...v}},b&&p<=50&&(p++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(u=b.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=Me(u,h,a)),m=-1)}return{x:c,y:d,placement:h,strategy:o,middlewareData:f}};async function oe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=X(t,e),p=Xe(f),m=s[h?d==="floating"?"reference":"floating":d],g=pe(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:a})),y=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},v=pe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:w,strategy:a}):y);return{top:(g.top-v.top+p.top)/x.y,bottom:(v.bottom-g.bottom+p.bottom)/x.y,left:(g.left-v.left+p.left)/x.x,right:(v.right-g.right+p.right)/x.x}}const _t=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:c=0}=X(e,t)||{};if(u==null)return{};const d=Xe(c),h={x:n,y:r},f=Oe(o),p=Pe(f),m=await l.getDimensions(u),g=f==="y",y=g?"top":"left",w=g?"bottom":"right",x=g?"clientHeight":"clientWidth",v=i.reference[p]+i.reference[f]-h[f]-i.floating[p],b=h[f]-i.reference[f],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let P=S?S[x]:0;(!P||!await(l.isElement==null?void 0:l.isElement(S)))&&(P=s.floating[x]||i.floating[p]);const H=v/2-b/2,$=P/2-m[p]/2-1,T=Z(d[y],$),j=Z(d[w],$),E=T,F=P-m[p]-j,O=P/2-m[p]/2+H,B=be(E,O,F),L=!a.arrow&&te(o)!=null&&O!==B&&i.reference[p]/2-(O<E?T:j)-m[p]/2<0,D=L?O<E?O-E:O-F:0;return{[f]:h[f]+D,data:{[f]:B,centerOffset:O-B-D,...L&&{alignmentOffset:D}},reset:L}}}),Vt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:s,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=X(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=U(o),w=V(s),x=U(s)===s,v=await(a.isRTL==null?void 0:a.isRTL(u.floating)),b=h||(x||!m?[de(s)]:$t(s)),S=p!=="none";!h&&S&&b.push(...Bt(s,m,p,v));const P=[s,...b],H=await oe(t,g),$=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&$.push(H[y]),d){const O=Ft(o,l,v);$.push(H[O[0]],H[O[1]])}if(T=[...T,{placement:o,overflows:$}],!$.every(O=>O<=0)){var j,E;const O=(((j=i.flip)==null?void 0:j.index)||0)+1,B=P[O];if(B&&(!(d==="alignment"&&w!==V(B))||T.every(D=>D.overflows[0]>0&&V(D.placement)===w)))return{data:{index:O,overflows:T},reset:{placement:B}};let L=(E=T.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:E.placement;if(!L)switch(f){case"bestFit":{var F;const D=(F=T.filter(A=>{if(S){const k=V(A.placement);return k===w||k==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(k=>k>0).reduce((k,_)=>k+_,0)]).sort((A,k)=>A[1]-k[1])[0])==null?void 0:F[0];D&&(L=D);break}case"initialPlacement":L=s;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function ze(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Be(e){return Ct.some(t=>e[t]>=0)}const Yt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=X(e,t);switch(r){case"referenceHidden":{const i=await oe(t,{...o,elementContext:"reference"}),l=ze(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Be(l)}}}case"escaped":{const i=await oe(t,{...o,altBoundary:!0}),l=ze(i,n.floating);return{data:{escapedOffsets:l,escaped:Be(l)}}}default:return{}}}}},Ue=new Set(["left","top"]);async function It(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=U(n),s=te(n),a=V(n)==="y",u=Ue.has(l)?-1:1,c=i&&a?-1:1,d=X(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(f=s==="end"?p*-1:p),a?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const qt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await It(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},Xt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:g=>{let{x:y,y:w}=g;return{x:y,y:w}}},...a}=X(e,t),u={x:n,y:r},c=await oe(t,a),d=V(U(o)),h=Se(d);let f=u[h],p=u[d];if(i){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=f+c[g],x=f-c[y];f=be(w,f,x)}if(l){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=p+c[g],x=p-c[y];p=be(w,p,x)}const m=s.fn({...t,[h]:f,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[d]:l}}}}}},Ut=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=X(e,t),c={x:n,y:r},d=V(o),h=Se(d);let f=c[h],p=c[d];const m=X(s,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const x=h==="y"?"height":"width",v=i.reference[h]-i.floating[x]+g.mainAxis,b=i.reference[h]+i.reference[x]-g.mainAxis;f<v?f=v:f>b&&(f=b)}if(u){var y,w;const x=h==="y"?"width":"height",v=Ue.has(U(o)),b=i.reference[d]-i.floating[x]+(v&&((y=l.offset)==null?void 0:y[d])||0)+(v?0:g.crossAxis),S=i.reference[d]+i.reference[x]+(v?0:((w=l.offset)==null?void 0:w[d])||0)-(v?g.crossAxis:0);p<b?p=b:p>S&&(p=S)}return{[h]:f,[d]:p}}}},Zt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:l,elements:s}=t,{apply:a=()=>{},...u}=X(e,t),c=await oe(t,u),d=U(o),h=te(o),f=V(o)==="y",{width:p,height:m}=i.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=h===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g=h==="end"?"top":"bottom");const w=m-c.top-c.bottom,x=p-c.left-c.right,v=Z(m-c[g],w),b=Z(p-c[y],x),S=!t.middlewareData.shift;let P=v,H=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),S&&!h){const T=M(c.left,0),j=M(c.right,0),E=M(c.top,0),F=M(c.bottom,0);f?H=p-2*(T!==0||j!==0?T+j:M(c.left,c.right)):P=m-2*(E!==0||F!==0?E+F:M(c.top,c.bottom))}await a({...t,availableWidth:H,availableHeight:P});const $=await l.getDimensions(s.floating);return p!==$.width||m!==$.height?{reset:{rects:!0}}:{}}}};function me(){return typeof window<"u"}function ne(e){return Ze(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(Ze(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ze(e){return me()?e instanceof Node||e instanceof z(e).Node:!1}function W(e){return me()?e instanceof Element||e instanceof z(e).Element:!1}function I(e){return me()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function We(e){return!me()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}const Gt=new Set(["inline","contents"]);function le(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=N(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Gt.has(o)}const Jt=new Set(["table","td","th"]);function Kt(e){return Jt.has(ne(e))}const Qt=[":popover-open",":modal"];function ge(e){return Qt.some(t=>{try{return e.matches(t)}catch{return!1}})}const en=["transform","translate","scale","rotate","perspective"],tn=["transform","translate","scale","rotate","perspective","filter"],nn=["paint","layout","strict","content"];function Te(e){const t=Le(),n=W(e)?N(e):e;return en.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||tn.some(r=>(n.willChange||"").includes(r))||nn.some(r=>(n.contain||"").includes(r))}function rn(e){let t=G(e);for(;I(t)&&!ee(t);){if(Te(t))return t;if(ge(t))return null;t=G(t)}return null}function Le(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const on=new Set(["html","body","#document"]);function ee(e){return on.has(ne(e))}function N(e){return z(e).getComputedStyle(e)}function ye(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function G(e){if(ne(e)==="html")return e;const t=e.assignedSlot||e.parentNode||We(e)&&e.host||q(e);return We(t)?t.host:t}function Ge(e){const t=G(e);return ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&le(t)?t:Ge(t)}function ie(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ge(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=z(o);if(i){const s=Ae(l);return t.concat(l,l.visualViewport||[],le(o)?o:[],s&&n?ie(s):[])}return t.concat(o,ie(o,[],n))}function Ae(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Je(e){const t=N(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=I(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=ue(n)!==i||ue(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function De(e){return W(e)?e:e.contextElement}function Q(e){const t=De(e);if(!I(t))return Y(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Je(t);let l=(i?ue(n.width):n.width)/r,s=(i?ue(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const ln=Y(0);function Ke(e){const t=z(e);return!Le()||!t.visualViewport?ln:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function J(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=De(e);let l=Y(1);t&&(r?W(r)&&(l=Q(r)):l=Q(e));const s=sn(i,n,r)?Ke(i):Y(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,c=o.width/l.x,d=o.height/l.y;if(i){const h=z(i),f=r&&W(r)?z(r):r;let p=h,m=Ae(p);for(;m&&r&&f!==p;){const g=Q(m),y=m.getBoundingClientRect(),w=N(m),x=y.left+(m.clientLeft+parseFloat(w.paddingLeft))*g.x,v=y.top+(m.clientTop+parseFloat(w.paddingTop))*g.y;a*=g.x,u*=g.y,c*=g.x,d*=g.y,a+=x,u+=v,p=z(m),m=Ae(p)}}return pe({width:c,height:d,x:a,y:u})}function Ce(e,t){const n=ye(e).scrollLeft;return t?t.left+n:J(q(e)).left+n}function Qe(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Ce(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function an(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=q(r),s=t?ge(t.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Y(1);const c=Y(0),d=I(r);if((d||!d&&!i)&&((ne(r)!=="body"||le(l))&&(a=ye(r)),I(r))){const f=J(r);u=Q(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const h=l&&!d&&!i?Qe(l,a,!0):Y(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-a.scrollTop*u.y+c.y+h.y}}function cn(e){return Array.from(e.getClientRects())}function fn(e){const t=q(e),n=ye(e),r=e.ownerDocument.body,o=M(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=M(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Ce(e);const s=-n.scrollTop;return N(r).direction==="rtl"&&(l+=M(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function un(e,t){const n=z(e),r=q(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=Le();(!u||u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}const dn=new Set(["absolute","fixed"]);function pn(e,t){const n=J(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=I(e)?Q(e):Y(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function Ne(e,t,n){let r;if(t==="viewport")r=un(e,n);else if(t==="document")r=fn(q(e));else if(W(t))r=pn(t,n);else{const o=Ke(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return pe(r)}function et(e,t){const n=G(e);return n===t||!W(n)||ee(n)?!1:N(n).position==="fixed"||et(n,t)}function hn(e,t){const n=t.get(e);if(n)return n;let r=ie(e,[],!1).filter(s=>W(s)&&ne(s)!=="body"),o=null;const i=N(e).position==="fixed";let l=i?G(e):e;for(;W(l)&&!ee(l);){const s=N(l),a=Te(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&o&&dn.has(o.position)||le(l)&&!a&&et(e,l))?r=r.filter(u=>u!==l):o=s,l=G(l)}return t.set(e,r),r}function mn(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ge(t)?[]:hn(t,this._c):[].concat(n),r],l=i[0],s=i.reduce((a,u)=>{const c=Ne(t,u,o);return a.top=M(c.top,a.top),a.right=Z(c.right,a.right),a.bottom=Z(c.bottom,a.bottom),a.left=M(c.left,a.left),a},Ne(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function gn(e){const{width:t,height:n}=Je(e);return{width:t,height:n}}function yn(e,t,n){const r=I(t),o=q(t),i=n==="fixed",l=J(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=Y(0);function u(){a.x=Ce(o)}if(r||!r&&!i)if((ne(t)!=="body"||le(o))&&(s=ye(t)),r){const f=J(t,!0,i,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?Qe(o,s):Y(0),d=l.left+s.scrollLeft-a.x-c.x,h=l.top+s.scrollTop-a.y-c.y;return{x:d,y:h,width:l.width,height:l.height}}function xe(e){return N(e).position==="static"}function _e(e,t){if(!I(e)||N(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function tt(e,t){const n=z(e);if(ge(e))return n;if(!I(e)){let o=G(e);for(;o&&!ee(o);){if(W(o)&&!xe(o))return o;o=G(o)}return n}let r=_e(e,t);for(;r&&Kt(r)&&xe(r);)r=_e(r,t);return r&&ee(r)&&xe(r)&&!Te(r)?n:r||rn(e)||n}const wn=async function(e){const t=this.getOffsetParent||tt,n=this.getDimensions,r=await n(e.floating);return{reference:yn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xn(e){return N(e).direction==="rtl"}const vn={convertOffsetParentRelativeRectToViewportRelativeRect:an,getDocumentElement:q,getClippingRect:mn,getOffsetParent:tt,getElementRects:wn,getClientRects:cn,getDimensions:gn,getScale:Q,isElement:W,isRTL:xn};function nt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bn(e,t){let n=null,r;const o=q(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(s||t(),!h||!f)return;const p=ce(d),m=ce(o.clientWidth-(c+h)),g=ce(o.clientHeight-(d+f)),y=ce(c),w={rootMargin:-p+"px "+-m+"px "+-g+"px "+-y+"px",threshold:M(0,Z(1,a))||1};let x=!0;function v(b){const S=b[0].intersectionRatio;if(S!==a){if(!x)return l();S?l(!1,S):r=setTimeout(()=>{l(!1,1e-7)},1e3)}S===1&&!nt(u,e.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(v,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(v,w)}n.observe(e)}return l(!0),i}function rt(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=De(e),c=o||i?[...u?ie(u):[],...ie(t)]:[];c.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=u&&s?bn(u,n):null;let h=-1,f=null;l&&(f=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let p,m=a?J(e):null;a&&g();function g(){const y=J(e);m&&!nt(m,y)&&n(),m=y,p=requestAnimationFrame(g)}return n(),()=>{var y;c.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d==null||d(),(y=f)==null||y.disconnect(),f=null,a&&cancelAnimationFrame(p)}}const Rn=qt,An=Xt,Sn=Vt,Pn=Zt,On=Yt,Ve=_t,Tn=Ut,Ln=(e,t,n)=>{const r=new Map,o={platform:vn,...n},i={...o.platform,_c:r};return Nt(e,t,{...o,platform:i})};var Dn=typeof document<"u",Cn=function(){},fe=Dn?Ie.useLayoutEffect:Cn;function he(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!he(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!he(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ot(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ye(e,t){const n=ot(e);return Math.round(t*n)/n}function ve(e){const t=R.useRef(e);return fe(()=>{t.current=e}),t}function En(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[c,d]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=R.useState(r);he(h,r)||f(r);const[p,m]=R.useState(null),[g,y]=R.useState(null),w=R.useCallback(A=>{A!==S.current&&(S.current=A,m(A))},[]),x=R.useCallback(A=>{A!==P.current&&(P.current=A,y(A))},[]),v=i||p,b=l||g,S=R.useRef(null),P=R.useRef(null),H=R.useRef(c),$=a!=null,T=ve(a),j=ve(o),E=ve(u),F=R.useCallback(()=>{if(!S.current||!P.current)return;const A={placement:t,strategy:n,middleware:h};j.current&&(A.platform=j.current),Ln(S.current,P.current,A).then(k=>{const _={...k,isPositioned:E.current!==!1};O.current&&!he(H.current,_)&&(H.current=_,Dt.flushSync(()=>{d(_)}))})},[h,t,n,j,E]);fe(()=>{u===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);const O=R.useRef(!1);fe(()=>(O.current=!0,()=>{O.current=!1}),[]),fe(()=>{if(v&&(S.current=v),b&&(P.current=b),v&&b){if(T.current)return T.current(v,b,F);F()}},[v,b,F,T,$]);const B=R.useMemo(()=>({reference:S,floating:P,setReference:w,setFloating:x}),[w,x]),L=R.useMemo(()=>({reference:v,floating:b}),[v,b]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!L.floating)return A;const k=Ye(L.floating,c.x),_=Ye(L.floating,c.y);return s?{...A,transform:"translate("+k+"px, "+_+"px)",...ot(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:_}},[n,s,L.floating,c.x,c.y]);return R.useMemo(()=>({...c,update:F,refs:B,elements:L,floatingStyles:D}),[c,F,B,L,D])}const kn=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ve({element:r.current,padding:o}).fn(n):{}:r?Ve({element:r,padding:o}).fn(n):{}}}},Hn=(e,t)=>({...Rn(e),options:[e,t]}),Fn=(e,t)=>({...An(e),options:[e,t]}),$n=(e,t)=>({...Tn(e),options:[e,t]}),jn=(e,t)=>({...Sn(e),options:[e,t]}),Mn=(e,t)=>({...Pn(e),options:[e,t]}),zn=(e,t)=>({...On(e),options:[e,t]}),Bn=(e,t)=>({...kn(e),options:[e,t]});var Wn="Arrow",it=R.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return C.ae.jsx(C.h.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.ae.jsx("polygon",{points:"0,0 30,0 15,10"})})});it.displayName=Wn;var Nn=it;function lt(e){const[t,n]=R.useState(void 0);return C.w$1(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ee="Popper",[st,_n]=C.j(Ee),[Vn,at]=st(Ee),ct=e=>{const{__scopePopper:t,children:n}=e,[r,o]=R.useState(null);return C.ae.jsx(Vn,{scope:t,anchor:r,onAnchorChange:o,children:n})};ct.displayName=Ee;var ft="PopperAnchor",ut=R.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=at(ft,n),l=R.useRef(null),s=C.i(t,l);return R.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:C.ae.jsx(C.h.div,{...o,ref:s})});ut.displayName=ft;var ke="PopperContent",[Yn,In]=st(ke),dt=R.forwardRef((e,t)=>{var n,r,o,i,l,s;const{__scopePopper:a,side:u="bottom",sideOffset:c=0,align:d="center",alignOffset:h=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:v,...b}=e,S=at(ke,a),[P,H]=R.useState(null),$=C.i(t,re=>H(re)),[T,j]=R.useState(null),E=lt(T),F=(E==null?void 0:E.width)??0,O=(E==null?void 0:E.height)??0,B=u+(d!=="center"?"-"+d:""),L=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},D=Array.isArray(m)?m:[m],A=D.length>0,k={padding:L,boundary:D.filter(Xn),altBoundary:A},{refs:_,floatingStyles:He,placement:gt,isPositioned:se,middlewareData:K}=En({strategy:"fixed",placement:B,whileElementsMounted:(...re)=>rt(...re,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[Hn({mainAxis:c+O,alignmentAxis:h}),p&&Fn({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?$n():void 0,...k}),p&&jn({...k}),Mn({...k,apply:({elements:re,rects:At,availableWidth:St,availableHeight:Pt})=>{const{width:Ot,height:Tt}=At.reference,ae=re.floating.style;ae.setProperty("--radix-popper-available-width",`${St}px`),ae.setProperty("--radix-popper-available-height",`${Pt}px`),ae.setProperty("--radix-popper-anchor-width",`${Ot}px`),ae.setProperty("--radix-popper-anchor-height",`${Tt}px`)}}),T&&Bn({element:T,padding:f}),Un({arrowWidth:F,arrowHeight:O}),w&&zn({strategy:"referenceHidden",...k})]}),[Fe,yt]=mt(gt),we=C.n(v);C.w$1(()=>{se&&(we==null||we())},[se,we]);const wt=(n=K.arrow)==null?void 0:n.x,xt=(r=K.arrow)==null?void 0:r.y,vt=((o=K.arrow)==null?void 0:o.centerOffset)!==0,[bt,Rt]=R.useState();return C.w$1(()=>{P&&Rt(window.getComputedStyle(P).zIndex)},[P]),C.ae.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...He,transform:se?He.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:bt,"--radix-popper-transform-origin":[(i=K.transformOrigin)==null?void 0:i.x,(l=K.transformOrigin)==null?void 0:l.y].join(" "),...((s=K.hide)==null?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.ae.jsx(Yn,{scope:a,placedSide:Fe,onArrowChange:j,arrowX:wt,arrowY:xt,shouldHideArrow:vt,children:C.ae.jsx(C.h.div,{"data-side":Fe,"data-align":yt,...b,ref:$,style:{...b.style,animation:se?void 0:"none"}})})})});dt.displayName=ke;var pt="PopperArrow",qn={top:"bottom",right:"left",bottom:"top",left:"right"},ht=R.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=In(pt,n),i=qn[o.placedSide];return C.ae.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:C.ae.jsx(Nn,{...r,ref:t,style:{...r.style,display:"block"}})})});ht.displayName=pt;function Xn(e){return e!==null}var Un=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:l,middlewareData:s}=t,a=((n=s.arrow)==null?void 0:n.centerOffset)!==0,u=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[d,h]=mt(i),f={start:"0%",center:"50%",end:"100%"}[h],p=(((r=s.arrow)==null?void 0:r.x)??0)+u/2,m=(((o=s.arrow)==null?void 0:o.y)??0)+c/2;let g="",y="";return d==="bottom"?(g=a?f:`${p}px`,y=`${-c}px`):d==="top"?(g=a?f:`${p}px`,y=`${l.floating.height+c}px`):d==="right"?(g=`${-c}px`,y=a?f:`${m}px`):d==="left"&&(g=`${l.floating.width+c}px`,y=a?f:`${m}px`),{data:{x:g,y}}}});function mt(e){const[t,n="center"]=e.split("-");return[t,n]}var Zn=ct,Gn=ut,Jn=dt,Kn=ht;exports.In=lt;exports.Rn=rt;exports.co=Kn;exports.io=Zn;exports.oo=_n;exports.ro=Gn;exports.so=Jn;
@@ -1,7 +1,7 @@
1
1
  import * as R from "react";
2
2
  import { useLayoutEffect as Lt } from "react";
3
3
  import * as Ct from "react-dom";
4
- import { j as Et, a as X, x as qe, h as Pe, n as Ot, e as be } from "./index-CiR6yUKf-BEMUeikM.js";
4
+ import { j as Et, a as X, i as qe, h as Pe, n as Ot, d as be } from "./index-BL59b1Bz-C9bJE_xn.js";
5
5
  const Dt = ["top", "right", "bottom", "left"], Z = Math.min, M = Math.max, ue = Math.round, ce = Math.floor, _ = (e) => ({
6
6
  x: e,
7
7
  y: e