@cfx-dev/ui-components 4.3.8 → 4.3.9

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 (35) hide show
  1. package/dist/{Combination-BGYCZNoJ.js → Combination-DFb92tMK.js} +658 -655
  2. package/dist/assets/general/global.css +1 -1
  3. package/dist/assets/general/themes.css +1 -1
  4. package/dist/components/Accordion/AccordionShowcase.js +21 -9
  5. package/dist/components/Button/ButtonBar.d.ts +2 -0
  6. package/dist/components/Checkbox/Checkbox.js +2 -2
  7. package/dist/components/Dot/Dot.js +6 -4
  8. package/dist/components/DropdownSelect/DropdownSelect.js +4 -4
  9. package/dist/components/Link/LinkShowcase.js +8 -4
  10. package/dist/components/Modal/ModalShowcase.js +2 -1
  11. package/dist/components/Prose/Prose.d.ts +1 -2
  12. package/dist/components/Select/Select.js +3 -3
  13. package/dist/components/Skeleton/SkeletonShowcase.js +3 -2
  14. package/dist/components/Slider/Slider.js +2 -2
  15. package/dist/components/Switch/Switch.js +1 -1
  16. package/dist/components/Text/Text.types.d.ts +1 -0
  17. package/dist/components/Text/TextShowcase.js +1 -1
  18. package/dist/components/Title/Title.js +9 -4
  19. package/dist/{index-DlJ4qUbZ.js → index-BMU9X4M-.js} +1 -1
  20. package/dist/index-DCuJlMqr.js +239 -0
  21. package/dist/{index-CriGVLlo.js → index-DWzyrn_L.js} +1 -1
  22. package/dist/styles-scss/_colors.scss +50 -51
  23. package/dist/styles-scss/_typography.scss +25 -20
  24. package/dist/styles-scss/_ui.scss +115 -98
  25. package/dist/styles-scss/global.scss +13 -8
  26. package/dist/styles-scss/themes/theme_cfx.scss +15 -15
  27. package/dist/styles-scss/themes/theme_fivem.scss +12 -12
  28. package/dist/styles-scss/themes/theme_redm.scss +12 -12
  29. package/dist/styles-scss/themes/theme_wireframe.scss +12 -12
  30. package/dist/styles-scss/themes.scss +4 -4
  31. package/dist/styles-scss/tokens.scss +117 -118
  32. package/dist/utils/hooks/useClipboardComponent.d.ts +4 -1
  33. package/dist/utils/ui/ui.d.ts +2 -1
  34. package/package.json +5 -5
  35. package/dist/index-ByKwkZKY.js +0 -239
@@ -1,12 +1,12 @@
1
1
  import * as m from "react";
2
- import { useLayoutEffect as vn, useEffect as gn } from "react";
3
- import { u as me, P as ae, e as ke, g as yn, a as Ve, c as wn, f as xn } from "./index-ByKwkZKY.js";
4
- import { jsx as H } from "react/jsx-runtime";
5
- import { r as bn } from "./index-Cl_RnsqN.js";
6
- import { c as Lt, _ as Q, d as En } from "./tslib.es6-CtHwNPxX.js";
7
- import { c as Cn, u as An } from "./medium-Bq5NvyU7.js";
8
- var Tt = function(e) {
9
- var t = e.sideCar, n = Lt(e, ["sideCar"]);
2
+ import { useLayoutEffect as vn } from "react";
3
+ import { u as he, P as ce, e as Ne, g as gn, a as Ve, c as yn, f as wn } from "./index-DCuJlMqr.js";
4
+ import { jsx as _ } from "react/jsx-runtime";
5
+ import { r as xn } from "./index-Cl_RnsqN.js";
6
+ import { c as Tt, _ as Q, d as bn } from "./tslib.es6-CtHwNPxX.js";
7
+ import { c as En, u as Cn } from "./medium-Bq5NvyU7.js";
8
+ var Lt = function(e) {
9
+ var t = e.sideCar, n = Tt(e, ["sideCar"]);
10
10
  if (!t)
11
11
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
12
12
  var r = t.read();
@@ -14,11 +14,11 @@ var Tt = function(e) {
14
14
  throw new Error("Sidecar medium not found");
15
15
  return m.createElement(r, Q({}, n));
16
16
  };
17
- Tt.isSideCarExport = !0;
18
- function Sn(e, t) {
19
- return e.useMedium(t), Tt;
17
+ Lt.isSideCarExport = !0;
18
+ function An(e, t) {
19
+ return e.useMedium(t), Lt;
20
20
  }
21
- function se(e) {
21
+ function ie(e) {
22
22
  const t = m.useRef(e);
23
23
  return m.useEffect(() => {
24
24
  t.current = e;
@@ -27,8 +27,8 @@ function se(e) {
27
27
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
28
28
  }, []);
29
29
  }
30
- function Rn(e, t = globalThis == null ? void 0 : globalThis.document) {
31
- const n = se(e);
30
+ function Sn(e, t = globalThis == null ? void 0 : globalThis.document) {
31
+ const n = ie(e);
32
32
  m.useEffect(() => {
33
33
  const r = (o) => {
34
34
  o.key === "Escape" && n(o);
@@ -36,7 +36,7 @@ function Rn(e, t = globalThis == null ? void 0 : globalThis.document) {
36
36
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
37
37
  }, [n, t]);
38
38
  }
39
- var Pn = "DismissableLayer", ze = "dismissableLayer.update", On = "dismissableLayer.pointerDownOutside", Ln = "dismissableLayer.focusOutside", ut, Dt = m.createContext({
39
+ var Rn = "DismissableLayer", ze = "dismissableLayer.update", Pn = "dismissableLayer.pointerDownOutside", On = "dismissableLayer.focusOutside", ut, Dt = m.createContext({
40
40
  layers: /* @__PURE__ */ new Set(),
41
41
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
42
42
  branches: /* @__PURE__ */ new Set()
@@ -47,18 +47,18 @@ var Pn = "DismissableLayer", ze = "dismissableLayer.update", On = "dismissableLa
47
47
  onEscapeKeyDown: r,
48
48
  onPointerDownOutside: o,
49
49
  onFocusOutside: i,
50
- onInteractOutside: c,
51
- onDismiss: s,
50
+ onInteractOutside: s,
51
+ onDismiss: c,
52
52
  ...d
53
- } = e, l = m.useContext(Dt), [f, u] = m.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = m.useState({}), y = me(t, (C) => u(C)), a = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), g = a.indexOf(v), b = f ? a.indexOf(f) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, w = b >= g, E = kn((C) => {
54
- const R = C.target, O = [...l.branches].some((P) => P.contains(R));
55
- !w || O || (o == null || o(C), c == null || c(C), C.defaultPrevented || s == null || s());
56
- }, p), A = Fn((C) => {
53
+ } = e, l = m.useContext(Dt), [f, u] = m.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = m.useState({}), y = he(t, (C) => u(C)), a = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), g = a.indexOf(v), w = f ? a.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= g, E = Mn((C) => {
54
+ const R = C.target, T = [...l.branches].some((P) => P.contains(R));
55
+ !x || T || (o == null || o(C), s == null || s(C), C.defaultPrevented || c == null || c());
56
+ }, p), A = Nn((C) => {
57
57
  const R = C.target;
58
- [...l.branches].some((P) => P.contains(R)) || (i == null || i(C), c == null || c(C), C.defaultPrevented || s == null || s());
58
+ [...l.branches].some((P) => P.contains(R)) || (i == null || i(C), s == null || s(C), C.defaultPrevented || c == null || c());
59
59
  }, p);
60
- return Rn((C) => {
61
- b === l.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && s && (C.preventDefault(), s()));
60
+ return Sn((C) => {
61
+ w === l.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && c && (C.preventDefault(), c()));
62
62
  }, p), m.useEffect(() => {
63
63
  if (f)
64
64
  return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (ut = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), ft(), () => {
@@ -69,18 +69,18 @@ var Pn = "DismissableLayer", ze = "dismissableLayer.update", On = "dismissableLa
69
69
  }, [f, l]), m.useEffect(() => {
70
70
  const C = () => h({});
71
71
  return document.addEventListener(ze, C), () => document.removeEventListener(ze, C);
72
- }, []), /* @__PURE__ */ H(
73
- ae.div,
72
+ }, []), /* @__PURE__ */ _(
73
+ ce.div,
74
74
  {
75
75
  ...d,
76
76
  ref: y,
77
77
  style: {
78
- pointerEvents: x ? w ? "auto" : "none" : void 0,
78
+ pointerEvents: b ? x ? "auto" : "none" : void 0,
79
79
  ...e.style
80
80
  },
81
- onFocusCapture: ke(e.onFocusCapture, A.onFocusCapture),
82
- onBlurCapture: ke(e.onBlurCapture, A.onBlurCapture),
83
- onPointerDownCapture: ke(
81
+ onFocusCapture: Ne(e.onFocusCapture, A.onFocusCapture),
82
+ onBlurCapture: Ne(e.onBlurCapture, A.onBlurCapture),
83
+ onPointerDownCapture: Ne(
84
84
  e.onPointerDownCapture,
85
85
  E.onPointerDownCapture
86
86
  )
@@ -88,53 +88,53 @@ var Pn = "DismissableLayer", ze = "dismissableLayer.update", On = "dismissableLa
88
88
  );
89
89
  }
90
90
  );
91
- Tn.displayName = Pn;
92
- var Dn = "DismissableLayerBranch", Mn = m.forwardRef((e, t) => {
93
- const n = m.useContext(Dt), r = m.useRef(null), o = me(t, r);
91
+ Tn.displayName = Rn;
92
+ var Ln = "DismissableLayerBranch", Dn = m.forwardRef((e, t) => {
93
+ const n = m.useContext(Dt), r = m.useRef(null), o = he(t, r);
94
94
  return m.useEffect(() => {
95
95
  const i = r.current;
96
96
  if (i)
97
97
  return n.branches.add(i), () => {
98
98
  n.branches.delete(i);
99
99
  };
100
- }, [n.branches]), /* @__PURE__ */ H(ae.div, { ...e, ref: o });
100
+ }, [n.branches]), /* @__PURE__ */ _(ce.div, { ...e, ref: o });
101
101
  });
102
- Mn.displayName = Dn;
103
- function kn(e, t = globalThis == null ? void 0 : globalThis.document) {
104
- const n = se(e), r = m.useRef(!1), o = m.useRef(() => {
102
+ Dn.displayName = Ln;
103
+ function Mn(e, t = globalThis == null ? void 0 : globalThis.document) {
104
+ const n = ie(e), r = m.useRef(!1), o = m.useRef(() => {
105
105
  });
106
106
  return m.useEffect(() => {
107
- const i = (s) => {
108
- if (s.target && !r.current) {
107
+ const i = (c) => {
108
+ if (c.target && !r.current) {
109
109
  let d = function() {
110
110
  Mt(
111
- On,
111
+ Pn,
112
112
  n,
113
113
  l,
114
114
  { discrete: !0 }
115
115
  );
116
116
  };
117
- const l = { originalEvent: s };
118
- s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = d, t.addEventListener("click", o.current, { once: !0 })) : d();
117
+ const l = { originalEvent: c };
118
+ c.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = d, t.addEventListener("click", o.current, { once: !0 })) : d();
119
119
  } else
120
120
  t.removeEventListener("click", o.current);
121
121
  r.current = !1;
122
- }, c = window.setTimeout(() => {
122
+ }, s = window.setTimeout(() => {
123
123
  t.addEventListener("pointerdown", i);
124
124
  }, 0);
125
125
  return () => {
126
- window.clearTimeout(c), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
126
+ window.clearTimeout(s), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
127
127
  };
128
128
  }, [t, n]), {
129
129
  // ensures we check React component tree (not just DOM tree)
130
130
  onPointerDownCapture: () => r.current = !0
131
131
  };
132
132
  }
133
- function Fn(e, t = globalThis == null ? void 0 : globalThis.document) {
134
- const n = se(e), r = m.useRef(!1);
133
+ function Nn(e, t = globalThis == null ? void 0 : globalThis.document) {
134
+ const n = ie(e), r = m.useRef(!1);
135
135
  return m.useEffect(() => {
136
136
  const o = (i) => {
137
- i.target && !r.current && Mt(Ln, n, { originalEvent: i }, {
137
+ i.target && !r.current && Mt(On, n, { originalEvent: i }, {
138
138
  discrete: !1
139
139
  });
140
140
  };
@@ -150,14 +150,14 @@ function ft() {
150
150
  }
151
151
  function Mt(e, t, n, { discrete: r }) {
152
152
  const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
153
- t && o.addEventListener(e, t, { once: !0 }), r ? yn(o, i) : o.dispatchEvent(i);
153
+ t && o.addEventListener(e, t, { once: !0 }), r ? gn(o, i) : o.dispatchEvent(i);
154
154
  }
155
- var Fe = 0;
156
- function No() {
155
+ var ke = 0;
156
+ function Wo() {
157
157
  m.useEffect(() => {
158
158
  const e = document.querySelectorAll("[data-radix-focus-guard]");
159
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? dt()), document.body.insertAdjacentElement("beforeend", e[1] ?? dt()), Fe++, () => {
160
- Fe === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Fe--;
159
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? dt()), document.body.insertAdjacentElement("beforeend", e[1] ?? dt()), ke++, () => {
160
+ ke === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ke--;
161
161
  };
162
162
  }, []);
163
163
  }
@@ -165,14 +165,14 @@ function dt() {
165
165
  const e = document.createElement("span");
166
166
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
167
167
  }
168
- var Ne = "focusScope.autoFocusOnMount", We = "focusScope.autoFocusOnUnmount", ht = { bubbles: !1, cancelable: !0 }, Nn = "FocusScope", Wn = m.forwardRef((e, t) => {
168
+ var Fe = "focusScope.autoFocusOnMount", We = "focusScope.autoFocusOnUnmount", ht = { bubbles: !1, cancelable: !0 }, kn = "FocusScope", Fn = m.forwardRef((e, t) => {
169
169
  const {
170
170
  loop: n = !1,
171
171
  trapped: r = !1,
172
172
  onMountAutoFocus: o,
173
173
  onUnmountAutoFocus: i,
174
- ...c
175
- } = e, [s, d] = m.useState(null), l = se(o), f = se(i), u = m.useRef(null), p = me(t, (a) => d(a)), h = m.useRef({
174
+ ...s
175
+ } = e, [c, d] = m.useState(null), l = ie(o), f = ie(i), u = m.useRef(null), p = he(t, (a) => d(a)), h = m.useRef({
176
176
  paused: !1,
177
177
  pause() {
178
178
  this.paused = !0;
@@ -183,65 +183,65 @@ var Ne = "focusScope.autoFocusOnMount", We = "focusScope.autoFocusOnUnmount", ht
183
183
  }).current;
184
184
  m.useEffect(() => {
185
185
  if (r) {
186
- let a = function(x) {
187
- if (h.paused || !s) return;
188
- const w = x.target;
189
- s.contains(w) ? u.current = w : q(u.current, { select: !0 });
190
- }, v = function(x) {
191
- if (h.paused || !s) return;
192
- const w = x.relatedTarget;
193
- w !== null && (s.contains(w) || q(u.current, { select: !0 }));
194
- }, g = function(x) {
186
+ let a = function(b) {
187
+ if (h.paused || !c) return;
188
+ const x = b.target;
189
+ c.contains(x) ? u.current = x : q(u.current, { select: !0 });
190
+ }, v = function(b) {
191
+ if (h.paused || !c) return;
192
+ const x = b.relatedTarget;
193
+ x !== null && (c.contains(x) || q(u.current, { select: !0 }));
194
+ }, g = function(b) {
195
195
  if (document.activeElement === document.body)
196
- for (const E of x)
197
- E.removedNodes.length > 0 && q(s);
196
+ for (const E of b)
197
+ E.removedNodes.length > 0 && q(c);
198
198
  };
199
199
  document.addEventListener("focusin", a), document.addEventListener("focusout", v);
200
- const b = new MutationObserver(g);
201
- return s && b.observe(s, { childList: !0, subtree: !0 }), () => {
202
- document.removeEventListener("focusin", a), document.removeEventListener("focusout", v), b.disconnect();
200
+ const w = new MutationObserver(g);
201
+ return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
202
+ document.removeEventListener("focusin", a), document.removeEventListener("focusout", v), w.disconnect();
203
203
  };
204
204
  }
205
- }, [r, s, h.paused]), m.useEffect(() => {
206
- if (s) {
205
+ }, [r, c, h.paused]), m.useEffect(() => {
206
+ if (c) {
207
207
  pt.add(h);
208
208
  const a = document.activeElement;
209
- if (!s.contains(a)) {
210
- const g = new CustomEvent(Ne, ht);
211
- s.addEventListener(Ne, l), s.dispatchEvent(g), g.defaultPrevented || (Bn(Vn(kt(s)), { select: !0 }), document.activeElement === a && q(s));
209
+ if (!c.contains(a)) {
210
+ const g = new CustomEvent(Fe, ht);
211
+ c.addEventListener(Fe, l), c.dispatchEvent(g), g.defaultPrevented || (Wn($n(Nt(c)), { select: !0 }), document.activeElement === a && q(c));
212
212
  }
213
213
  return () => {
214
- s.removeEventListener(Ne, l), setTimeout(() => {
214
+ c.removeEventListener(Fe, l), setTimeout(() => {
215
215
  const g = new CustomEvent(We, ht);
216
- s.addEventListener(We, f), s.dispatchEvent(g), g.defaultPrevented || q(a ?? document.body, { select: !0 }), s.removeEventListener(We, f), pt.remove(h);
216
+ c.addEventListener(We, f), c.dispatchEvent(g), g.defaultPrevented || q(a ?? document.body, { select: !0 }), c.removeEventListener(We, f), pt.remove(h);
217
217
  }, 0);
218
218
  };
219
219
  }
220
- }, [s, l, f, h]);
220
+ }, [c, l, f, h]);
221
221
  const y = m.useCallback(
222
222
  (a) => {
223
223
  if (!n && !r || h.paused) return;
224
224
  const v = a.key === "Tab" && !a.altKey && !a.ctrlKey && !a.metaKey, g = document.activeElement;
225
225
  if (v && g) {
226
- const b = a.currentTarget, [x, w] = In(b);
227
- x && w ? !a.shiftKey && g === w ? (a.preventDefault(), n && q(x, { select: !0 })) : a.shiftKey && g === x && (a.preventDefault(), n && q(w, { select: !0 })) : g === b && a.preventDefault();
226
+ const w = a.currentTarget, [b, x] = Bn(w);
227
+ b && x ? !a.shiftKey && g === x ? (a.preventDefault(), n && q(b, { select: !0 })) : a.shiftKey && g === b && (a.preventDefault(), n && q(x, { select: !0 })) : g === w && a.preventDefault();
228
228
  }
229
229
  },
230
230
  [n, r, h.paused]
231
231
  );
232
- return /* @__PURE__ */ H(ae.div, { tabIndex: -1, ...c, ref: p, onKeyDown: y });
232
+ return /* @__PURE__ */ _(ce.div, { tabIndex: -1, ...s, ref: p, onKeyDown: y });
233
233
  });
234
- Wn.displayName = Nn;
235
- function Bn(e, { select: t = !1 } = {}) {
234
+ Fn.displayName = kn;
235
+ function Wn(e, { select: t = !1 } = {}) {
236
236
  const n = document.activeElement;
237
237
  for (const r of e)
238
238
  if (q(r, { select: t }), document.activeElement !== n) return;
239
239
  }
240
- function In(e) {
241
- const t = kt(e), n = mt(t, e), r = mt(t.reverse(), e);
240
+ function Bn(e) {
241
+ const t = Nt(e), n = mt(t, e), r = mt(t.reverse(), e);
242
242
  return [n, r];
243
243
  }
244
- function kt(e) {
244
+ function Nt(e) {
245
245
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
246
246
  acceptNode: (r) => {
247
247
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -253,9 +253,9 @@ function kt(e) {
253
253
  }
254
254
  function mt(e, t) {
255
255
  for (const n of e)
256
- if (!_n(n, { upTo: t })) return n;
256
+ if (!In(n, { upTo: t })) return n;
257
257
  }
258
- function _n(e, { upTo: t }) {
258
+ function In(e, { upTo: t }) {
259
259
  if (getComputedStyle(e).visibility === "hidden") return !0;
260
260
  for (; e; ) {
261
261
  if (t !== void 0 && e === t) return !1;
@@ -264,17 +264,17 @@ function _n(e, { upTo: t }) {
264
264
  }
265
265
  return !1;
266
266
  }
267
- function Hn(e) {
267
+ function _n(e) {
268
268
  return e instanceof HTMLInputElement && "select" in e;
269
269
  }
270
270
  function q(e, { select: t = !1 } = {}) {
271
271
  if (e && e.focus) {
272
272
  const n = document.activeElement;
273
- e.focus({ preventScroll: !0 }), e !== n && Hn(e) && t && e.select();
273
+ e.focus({ preventScroll: !0 }), e !== n && _n(e) && t && e.select();
274
274
  }
275
275
  }
276
- var pt = $n();
277
- function $n() {
276
+ var pt = Hn();
277
+ function Hn() {
278
278
  let e = [];
279
279
  return {
280
280
  add(t) {
@@ -291,31 +291,31 @@ function vt(e, t) {
291
291
  const n = [...e], r = n.indexOf(t);
292
292
  return r !== -1 && n.splice(r, 1), n;
293
293
  }
294
- function Vn(e) {
294
+ function $n(e) {
295
295
  return e.filter((t) => t.tagName !== "A");
296
296
  }
297
- var zn = m[" useId ".trim().toString()] || (() => {
298
- }), Yn = 0;
299
- function Wo(e) {
300
- const [t, n] = m.useState(zn());
297
+ var Vn = m[" useId ".trim().toString()] || (() => {
298
+ }), zn = 0;
299
+ function Bo(e) {
300
+ const [t, n] = m.useState(Vn());
301
301
  return Ve(() => {
302
- n((r) => r ?? String(Yn++));
302
+ n((r) => r ?? String(zn++));
303
303
  }, [e]), e || (t ? `radix-${t}` : "");
304
304
  }
305
- const Un = ["top", "right", "bottom", "left"], Z = Math.min, I = Math.max, Se = Math.round, ge = Math.floor, z = (e) => ({
305
+ const Un = ["top", "right", "bottom", "left"], Z = Math.min, B = Math.max, Se = Math.round, ge = Math.floor, U = (e) => ({
306
306
  x: e,
307
307
  y: e
308
- }), Xn = {
308
+ }), Yn = {
309
309
  left: "right",
310
310
  right: "left",
311
311
  bottom: "top",
312
312
  top: "bottom"
313
- }, jn = {
313
+ }, Xn = {
314
314
  start: "end",
315
315
  end: "start"
316
316
  };
317
- function Ye(e, t, n) {
318
- return I(e, Z(t, n));
317
+ function Ue(e, t, n) {
318
+ return B(e, Z(t, n));
319
319
  }
320
320
  function j(e, t) {
321
321
  return typeof e == "function" ? e(t) : e;
@@ -323,7 +323,7 @@ function j(e, t) {
323
323
  function K(e) {
324
324
  return e.split("-")[0];
325
325
  }
326
- function le(e) {
326
+ function ae(e) {
327
327
  return e.split("-")[1];
328
328
  }
329
329
  function Ke(e) {
@@ -332,47 +332,47 @@ function Ke(e) {
332
332
  function qe(e) {
333
333
  return e === "y" ? "height" : "width";
334
334
  }
335
- function X(e) {
335
+ function z(e) {
336
336
  return ["top", "bottom"].includes(K(e)) ? "y" : "x";
337
337
  }
338
338
  function Ze(e) {
339
- return Ke(X(e));
339
+ return Ke(z(e));
340
340
  }
341
- function Kn(e, t, n) {
341
+ function jn(e, t, n) {
342
342
  n === void 0 && (n = !1);
343
- const r = le(e), o = Ze(e), i = qe(o);
344
- let c = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
345
- return t.reference[i] > t.floating[i] && (c = Re(c)), [c, Re(c)];
343
+ const r = ae(e), o = Ze(e), i = qe(o);
344
+ let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
345
+ return t.reference[i] > t.floating[i] && (s = Re(s)), [s, Re(s)];
346
346
  }
347
- function qn(e) {
347
+ function Kn(e) {
348
348
  const t = Re(e);
349
- return [Ue(e), t, Ue(t)];
349
+ return [Ye(e), t, Ye(t)];
350
350
  }
351
- function Ue(e) {
352
- return e.replace(/start|end/g, (t) => jn[t]);
351
+ function Ye(e) {
352
+ return e.replace(/start|end/g, (t) => Xn[t]);
353
353
  }
354
- function Zn(e, t, n) {
355
- const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
354
+ function qn(e, t, n) {
355
+ const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
356
356
  switch (e) {
357
357
  case "top":
358
358
  case "bottom":
359
359
  return n ? t ? o : r : t ? r : o;
360
360
  case "left":
361
361
  case "right":
362
- return t ? i : c;
362
+ return t ? i : s;
363
363
  default:
364
364
  return [];
365
365
  }
366
366
  }
367
- function Gn(e, t, n, r) {
368
- const o = le(e);
369
- let i = Zn(K(e), n === "start", r);
370
- return o && (i = i.map((c) => c + "-" + o), t && (i = i.concat(i.map(Ue)))), i;
367
+ function Zn(e, t, n, r) {
368
+ const o = ae(e);
369
+ let i = qn(K(e), n === "start", r);
370
+ return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ye)))), i;
371
371
  }
372
372
  function Re(e) {
373
- return e.replace(/left|right|bottom|top/g, (t) => Xn[t]);
373
+ return e.replace(/left|right|bottom|top/g, (t) => Yn[t]);
374
374
  }
375
- function Qn(e) {
375
+ function Gn(e) {
376
376
  return {
377
377
  top: 0,
378
378
  right: 0,
@@ -381,8 +381,8 @@ function Qn(e) {
381
381
  ...e
382
382
  };
383
383
  }
384
- function Ft(e) {
385
- return typeof e != "number" ? Qn(e) : {
384
+ function kt(e) {
385
+ return typeof e != "number" ? Gn(e) : {
386
386
  top: e,
387
387
  right: e,
388
388
  bottom: e,
@@ -412,7 +412,7 @@ function gt(e, t, n) {
412
412
  reference: r,
413
413
  floating: o
414
414
  } = e;
415
- const i = X(t), c = Ze(t), s = qe(c), d = K(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, p = r[s] / 2 - o[s] / 2;
415
+ const i = z(t), s = Ze(t), c = qe(s), d = K(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
416
416
  let h;
417
417
  switch (d) {
418
418
  case "top":
@@ -445,24 +445,24 @@ function gt(e, t, n) {
445
445
  y: r.y
446
446
  };
447
447
  }
448
- switch (le(t)) {
448
+ switch (ae(t)) {
449
449
  case "start":
450
- h[c] -= p * (n && l ? -1 : 1);
450
+ h[s] -= p * (n && l ? -1 : 1);
451
451
  break;
452
452
  case "end":
453
- h[c] += p * (n && l ? -1 : 1);
453
+ h[s] += p * (n && l ? -1 : 1);
454
454
  break;
455
455
  }
456
456
  return h;
457
457
  }
458
- const Jn = async (e, t, n) => {
458
+ const Qn = async (e, t, n) => {
459
459
  const {
460
460
  placement: r = "bottom",
461
461
  strategy: o = "absolute",
462
462
  middleware: i = [],
463
- platform: c
464
- } = n, s = i.filter(Boolean), d = await (c.isRTL == null ? void 0 : c.isRTL(t));
465
- let l = await c.getElementRects({
463
+ platform: s
464
+ } = n, c = i.filter(Boolean), d = await (s.isRTL == null ? void 0 : s.isRTL(t));
465
+ let l = await s.getElementRects({
466
466
  reference: e,
467
467
  floating: t,
468
468
  strategy: o
@@ -470,14 +470,14 @@ const Jn = async (e, t, n) => {
470
470
  x: f,
471
471
  y: u
472
472
  } = gt(l, r, d), p = r, h = {}, y = 0;
473
- for (let a = 0; a < s.length; a++) {
473
+ for (let a = 0; a < c.length; a++) {
474
474
  const {
475
475
  name: v,
476
476
  fn: g
477
- } = s[a], {
478
- x: b,
479
- y: x,
480
- data: w,
477
+ } = c[a], {
478
+ x: w,
479
+ y: b,
480
+ data: x,
481
481
  reset: E
482
482
  } = await g({
483
483
  x: f,
@@ -487,19 +487,19 @@ const Jn = async (e, t, n) => {
487
487
  strategy: o,
488
488
  middlewareData: h,
489
489
  rects: l,
490
- platform: c,
490
+ platform: s,
491
491
  elements: {
492
492
  reference: e,
493
493
  floating: t
494
494
  }
495
495
  });
496
- f = b ?? f, u = x ?? u, h = {
496
+ f = w ?? f, u = b ?? u, h = {
497
497
  ...h,
498
498
  [v]: {
499
499
  ...h[v],
500
- ...w
500
+ ...x
501
501
  }
502
- }, E && y <= 50 && (y++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (l = E.rects === !0 ? await c.getElementRects({
502
+ }, E && y <= 50 && (y++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (l = E.rects === !0 ? await s.getElementRects({
503
503
  reference: e,
504
504
  floating: t,
505
505
  strategy: o
@@ -516,15 +516,15 @@ const Jn = async (e, t, n) => {
516
516
  middlewareData: h
517
517
  };
518
518
  };
519
- async function de(e, t) {
519
+ async function fe(e, t) {
520
520
  var n;
521
521
  t === void 0 && (t = {});
522
522
  const {
523
523
  x: r,
524
524
  y: o,
525
525
  platform: i,
526
- rects: c,
527
- elements: s,
526
+ rects: s,
527
+ elements: c,
528
528
  strategy: d
529
529
  } = e, {
530
530
  boundary: l = "clippingAncestors",
@@ -532,36 +532,36 @@ async function de(e, t) {
532
532
  elementContext: u = "floating",
533
533
  altBoundary: p = !1,
534
534
  padding: h = 0
535
- } = j(t, e), y = Ft(h), v = s[p ? u === "floating" ? "reference" : "floating" : u], g = Pe(await i.getClippingRect({
536
- element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
535
+ } = j(t, e), y = kt(h), v = c[p ? u === "floating" ? "reference" : "floating" : u], g = Pe(await i.getClippingRect({
536
+ 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)),
537
537
  boundary: l,
538
538
  rootBoundary: f,
539
539
  strategy: d
540
- })), b = u === "floating" ? {
540
+ })), w = u === "floating" ? {
541
541
  x: r,
542
542
  y: o,
543
- width: c.floating.width,
544
- height: c.floating.height
545
- } : c.reference, x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), w = await (i.isElement == null ? void 0 : i.isElement(x)) ? await (i.getScale == null ? void 0 : i.getScale(x)) || {
543
+ width: s.floating.width,
544
+ height: s.floating.height
545
+ } : s.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), x = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
546
546
  x: 1,
547
547
  y: 1
548
548
  } : {
549
549
  x: 1,
550
550
  y: 1
551
551
  }, E = Pe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
552
- elements: s,
553
- rect: b,
554
- offsetParent: x,
552
+ elements: c,
553
+ rect: w,
554
+ offsetParent: b,
555
555
  strategy: d
556
- }) : b);
556
+ }) : w);
557
557
  return {
558
- top: (g.top - E.top + y.top) / w.y,
559
- bottom: (E.bottom - g.bottom + y.bottom) / w.y,
560
- left: (g.left - E.left + y.left) / w.x,
561
- right: (E.right - g.right + y.right) / w.x
558
+ top: (g.top - E.top + y.top) / x.y,
559
+ bottom: (E.bottom - g.bottom + y.bottom) / x.y,
560
+ left: (g.left - E.left + y.left) / x.x,
561
+ right: (E.right - g.right + y.right) / x.x
562
562
  };
563
563
  }
564
- const er = (e) => ({
564
+ const Jn = (e) => ({
565
565
  name: "arrow",
566
566
  options: e,
567
567
  async fn(t) {
@@ -570,8 +570,8 @@ const er = (e) => ({
570
570
  y: r,
571
571
  placement: o,
572
572
  rects: i,
573
- platform: c,
574
- elements: s,
573
+ platform: s,
574
+ elements: c,
575
575
  middlewareData: d
576
576
  } = t, {
577
577
  element: l,
@@ -579,26 +579,26 @@ const er = (e) => ({
579
579
  } = j(e, t) || {};
580
580
  if (l == null)
581
581
  return {};
582
- const u = Ft(f), p = {
582
+ const u = kt(f), p = {
583
583
  x: n,
584
584
  y: r
585
- }, h = Ze(o), y = qe(h), a = await c.getDimensions(l), v = h === "y", g = v ? "top" : "left", b = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", w = i.reference[y] + i.reference[h] - p[h] - i.floating[y], E = p[h] - i.reference[h], A = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(l));
586
- let C = A ? A[x] : 0;
587
- (!C || !await (c.isElement == null ? void 0 : c.isElement(A))) && (C = s.floating[x] || i.floating[y]);
588
- const R = w / 2 - E / 2, O = C / 2 - a[y] / 2 - 1, P = Z(u[g], O), W = Z(u[b], O), B = P, L = C - a[y] - W, N = C / 2 - a[y] / 2 + R, D = Ye(B, N, L), M = !d.arrow && le(o) != null && N !== D && i.reference[y] / 2 - (N < B ? P : W) - a[y] / 2 < 0, k = M ? N < B ? N - B : N - L : 0;
585
+ }, h = Ze(o), y = qe(h), a = await s.getDimensions(l), v = h === "y", g = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[y] + i.reference[h] - p[h] - i.floating[y], E = p[h] - i.reference[h], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
586
+ let C = A ? A[b] : 0;
587
+ (!C || !await (s.isElement == null ? void 0 : s.isElement(A))) && (C = c.floating[b] || i.floating[y]);
588
+ const R = x / 2 - E / 2, T = C / 2 - a[y] / 2 - 1, P = Z(u[g], T), k = Z(u[w], T), F = P, L = C - a[y] - k, O = C / 2 - a[y] / 2 + R, W = Ue(F, O, L), D = !d.arrow && ae(o) != null && O !== W && i.reference[y] / 2 - (O < F ? P : k) - a[y] / 2 < 0, M = D ? O < F ? O - F : O - L : 0;
589
589
  return {
590
- [h]: p[h] + k,
590
+ [h]: p[h] + M,
591
591
  data: {
592
- [h]: D,
593
- centerOffset: N - D - k,
594
- ...M && {
595
- alignmentOffset: k
592
+ [h]: W,
593
+ centerOffset: O - W - M,
594
+ ...D && {
595
+ alignmentOffset: M
596
596
  }
597
597
  },
598
- reset: M
598
+ reset: D
599
599
  };
600
600
  }
601
- }), tr = function(e) {
601
+ }), er = function(e) {
602
602
  return e === void 0 && (e = {}), {
603
603
  name: "flip",
604
604
  options: e,
@@ -607,8 +607,8 @@ const er = (e) => ({
607
607
  const {
608
608
  placement: o,
609
609
  middlewareData: i,
610
- rects: c,
611
- initialPlacement: s,
610
+ rects: s,
611
+ initialPlacement: c,
612
612
  platform: d,
613
613
  elements: l
614
614
  } = t, {
@@ -622,59 +622,57 @@ const er = (e) => ({
622
622
  } = j(e, t);
623
623
  if ((n = i.arrow) != null && n.alignmentOffset)
624
624
  return {};
625
- const g = K(o), b = X(s), x = K(s) === s, w = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), E = p || (x || !a ? [Re(s)] : qn(s)), A = y !== "none";
626
- !p && A && E.push(...Gn(s, a, y, w));
627
- const C = [s, ...E], R = await de(t, v), O = [];
625
+ const g = K(o), w = z(c), b = K(c) === c, x = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), E = p || (b || !a ? [Re(c)] : Kn(c)), A = y !== "none";
626
+ !p && A && E.push(...Zn(c, a, y, x));
627
+ const C = [c, ...E], R = await fe(t, v), T = [];
628
628
  let P = ((r = i.flip) == null ? void 0 : r.overflows) || [];
629
- if (f && O.push(R[g]), u) {
630
- const D = Kn(o, c, w);
631
- O.push(R[D[0]], R[D[1]]);
629
+ if (f && T.push(R[g]), u) {
630
+ const O = jn(o, s, x);
631
+ T.push(R[O[0]], R[O[1]]);
632
632
  }
633
633
  if (P = [...P, {
634
634
  placement: o,
635
- overflows: O
636
- }], !O.every((D) => D <= 0)) {
637
- var W, B;
638
- const D = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, M = C[D];
639
- if (M) {
640
- var L;
641
- const S = u === "alignment" ? b !== X(M) : !1, T = ((L = P[0]) == null ? void 0 : L.overflows[0]) > 0;
642
- if (!S || T)
643
- return {
644
- data: {
645
- index: D,
646
- overflows: P
647
- },
648
- reset: {
649
- placement: M
650
- }
651
- };
652
- }
653
- let k = (B = P.filter((S) => S.overflows[0] <= 0).sort((S, T) => S.overflows[1] - T.overflows[1])[0]) == null ? void 0 : B.placement;
654
- if (!k)
635
+ overflows: T
636
+ }], !T.every((O) => O <= 0)) {
637
+ var k, F;
638
+ const O = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, W = C[O];
639
+ if (W && (!(u === "alignment" ? w !== z(W) : !1) || // We leave the current main axis only if every placement on that axis
640
+ // overflows the main axis.
641
+ P.every((S) => S.overflows[0] > 0 && z(S.placement) === w)))
642
+ return {
643
+ data: {
644
+ index: O,
645
+ overflows: P
646
+ },
647
+ reset: {
648
+ placement: W
649
+ }
650
+ };
651
+ let D = (F = P.filter((M) => M.overflows[0] <= 0).sort((M, S) => M.overflows[1] - S.overflows[1])[0]) == null ? void 0 : F.placement;
652
+ if (!D)
655
653
  switch (h) {
656
654
  case "bestFit": {
657
- var N;
658
- const S = (N = P.filter((T) => {
655
+ var L;
656
+ const M = (L = P.filter((S) => {
659
657
  if (A) {
660
- const F = X(T.placement);
661
- return F === b || // Create a bias to the `y` side axis due to horizontal
658
+ const N = z(S.placement);
659
+ return N === w || // Create a bias to the `y` side axis due to horizontal
662
660
  // reading directions favoring greater width.
663
- F === "y";
661
+ N === "y";
664
662
  }
665
663
  return !0;
666
- }).map((T) => [T.placement, T.overflows.filter((F) => F > 0).reduce((F, ee) => F + ee, 0)]).sort((T, F) => T[1] - F[1])[0]) == null ? void 0 : N[0];
667
- S && (k = S);
664
+ }).map((S) => [S.placement, S.overflows.filter((N) => N > 0).reduce((N, V) => N + V, 0)]).sort((S, N) => S[1] - N[1])[0]) == null ? void 0 : L[0];
665
+ M && (D = M);
668
666
  break;
669
667
  }
670
668
  case "initialPlacement":
671
- k = s;
669
+ D = c;
672
670
  break;
673
671
  }
674
- if (o !== k)
672
+ if (o !== D)
675
673
  return {
676
674
  reset: {
677
- placement: k
675
+ placement: D
678
676
  }
679
677
  };
680
678
  }
@@ -693,7 +691,7 @@ function yt(e, t) {
693
691
  function wt(e) {
694
692
  return Un.some((t) => e[t] >= 0);
695
693
  }
696
- const nr = function(e) {
694
+ const tr = function(e) {
697
695
  return e === void 0 && (e = {}), {
698
696
  name: "hide",
699
697
  options: e,
@@ -706,26 +704,26 @@ const nr = function(e) {
706
704
  } = j(e, t);
707
705
  switch (r) {
708
706
  case "referenceHidden": {
709
- const i = await de(t, {
707
+ const i = await fe(t, {
710
708
  ...o,
711
709
  elementContext: "reference"
712
- }), c = yt(i, n.reference);
710
+ }), s = yt(i, n.reference);
713
711
  return {
714
712
  data: {
715
- referenceHiddenOffsets: c,
716
- referenceHidden: wt(c)
713
+ referenceHiddenOffsets: s,
714
+ referenceHidden: wt(s)
717
715
  }
718
716
  };
719
717
  }
720
718
  case "escaped": {
721
- const i = await de(t, {
719
+ const i = await fe(t, {
722
720
  ...o,
723
721
  altBoundary: !0
724
- }), c = yt(i, n.floating);
722
+ }), s = yt(i, n.floating);
725
723
  return {
726
724
  data: {
727
- escapedOffsets: c,
728
- escaped: wt(c)
725
+ escapedOffsets: s,
726
+ escaped: wt(s)
729
727
  }
730
728
  };
731
729
  }
@@ -735,12 +733,12 @@ const nr = function(e) {
735
733
  }
736
734
  };
737
735
  };
738
- async function rr(e, t) {
736
+ async function nr(e, t) {
739
737
  const {
740
738
  placement: n,
741
739
  platform: r,
742
740
  elements: o
743
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), c = K(n), s = le(n), d = X(n) === "y", l = ["left", "top"].includes(c) ? -1 : 1, f = i && d ? -1 : 1, u = j(t, e);
741
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = K(n), c = ae(n), d = z(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = i && d ? -1 : 1, u = j(t, e);
744
742
  let {
745
743
  mainAxis: p,
746
744
  crossAxis: h,
@@ -754,7 +752,7 @@ async function rr(e, t) {
754
752
  crossAxis: u.crossAxis || 0,
755
753
  alignmentAxis: u.alignmentAxis
756
754
  };
757
- return s && typeof y == "number" && (h = s === "end" ? y * -1 : y), d ? {
755
+ return c && typeof y == "number" && (h = c === "end" ? y * -1 : y), d ? {
758
756
  x: h * f,
759
757
  y: p * l
760
758
  } : {
@@ -762,7 +760,7 @@ async function rr(e, t) {
762
760
  y: h * f
763
761
  };
764
762
  }
765
- const or = function(e) {
763
+ const rr = function(e) {
766
764
  return e === void 0 && (e = 0), {
767
765
  name: "offset",
768
766
  options: e,
@@ -771,20 +769,20 @@ const or = function(e) {
771
769
  const {
772
770
  x: o,
773
771
  y: i,
774
- placement: c,
775
- middlewareData: s
776
- } = t, d = await rr(t, e);
777
- return c === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
772
+ placement: s,
773
+ middlewareData: c
774
+ } = t, d = await nr(t, e);
775
+ return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
778
776
  x: o + d.x,
779
777
  y: i + d.y,
780
778
  data: {
781
779
  ...d,
782
- placement: c
780
+ placement: s
783
781
  }
784
782
  };
785
783
  }
786
784
  };
787
- }, ir = function(e) {
785
+ }, or = function(e) {
788
786
  return e === void 0 && (e = {}), {
789
787
  name: "shift",
790
788
  options: e,
@@ -795,16 +793,16 @@ const or = function(e) {
795
793
  placement: o
796
794
  } = t, {
797
795
  mainAxis: i = !0,
798
- crossAxis: c = !1,
799
- limiter: s = {
796
+ crossAxis: s = !1,
797
+ limiter: c = {
800
798
  fn: (v) => {
801
799
  let {
802
800
  x: g,
803
- y: b
801
+ y: w
804
802
  } = v;
805
803
  return {
806
804
  x: g,
807
- y: b
805
+ y: w
808
806
  };
809
807
  }
810
808
  },
@@ -812,17 +810,17 @@ const or = function(e) {
812
810
  } = j(e, t), l = {
813
811
  x: n,
814
812
  y: r
815
- }, f = await de(t, d), u = X(K(o)), p = Ke(u);
813
+ }, f = await fe(t, d), u = z(K(o)), p = Ke(u);
816
814
  let h = l[p], y = l[u];
817
815
  if (i) {
818
- const v = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", b = h + f[v], x = h - f[g];
819
- h = Ye(b, h, x);
816
+ const v = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", w = h + f[v], b = h - f[g];
817
+ h = Ue(w, h, b);
820
818
  }
821
- if (c) {
822
- const v = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", b = y + f[v], x = y - f[g];
823
- y = Ye(b, y, x);
819
+ if (s) {
820
+ const v = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", w = y + f[v], b = y - f[g];
821
+ y = Ue(w, y, b);
824
822
  }
825
- const a = s.fn({
823
+ const a = c.fn({
826
824
  ...t,
827
825
  [p]: h,
828
826
  [u]: y
@@ -834,13 +832,13 @@ const or = function(e) {
834
832
  y: a.y - r,
835
833
  enabled: {
836
834
  [p]: i,
837
- [u]: c
835
+ [u]: s
838
836
  }
839
837
  }
840
838
  };
841
839
  }
842
840
  };
843
- }, sr = function(e) {
841
+ }, ir = function(e) {
844
842
  return e === void 0 && (e = {}), {
845
843
  options: e,
846
844
  fn(t) {
@@ -849,17 +847,17 @@ const or = function(e) {
849
847
  y: r,
850
848
  placement: o,
851
849
  rects: i,
852
- middlewareData: c
850
+ middlewareData: s
853
851
  } = t, {
854
- offset: s = 0,
852
+ offset: c = 0,
855
853
  mainAxis: d = !0,
856
854
  crossAxis: l = !0
857
855
  } = j(e, t), f = {
858
856
  x: n,
859
857
  y: r
860
- }, u = X(o), p = Ke(u);
858
+ }, u = z(o), p = Ke(u);
861
859
  let h = f[p], y = f[u];
862
- const a = j(s, t), v = typeof a == "number" ? {
860
+ const a = j(c, t), v = typeof a == "number" ? {
863
861
  mainAxis: a,
864
862
  crossAxis: 0
865
863
  } : {
@@ -868,12 +866,12 @@ const or = function(e) {
868
866
  ...a
869
867
  };
870
868
  if (d) {
871
- const x = p === "y" ? "height" : "width", w = i.reference[p] - i.floating[x] + v.mainAxis, E = i.reference[p] + i.reference[x] - v.mainAxis;
872
- h < w ? h = w : h > E && (h = E);
869
+ const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + v.mainAxis, E = i.reference[p] + i.reference[b] - v.mainAxis;
870
+ h < x ? h = x : h > E && (h = E);
873
871
  }
874
872
  if (l) {
875
- var g, b;
876
- const x = p === "y" ? "width" : "height", w = ["top", "left"].includes(K(o)), E = i.reference[u] - i.floating[x] + (w && ((g = c.offset) == null ? void 0 : g[u]) || 0) + (w ? 0 : v.crossAxis), A = i.reference[u] + i.reference[x] + (w ? 0 : ((b = c.offset) == null ? void 0 : b[u]) || 0) - (w ? v.crossAxis : 0);
873
+ var g, w;
874
+ const b = p === "y" ? "width" : "height", x = ["top", "left"].includes(K(o)), E = i.reference[u] - i.floating[b] + (x && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (x ? 0 : v.crossAxis), A = i.reference[u] + i.reference[b] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[u]) || 0) - (x ? v.crossAxis : 0);
877
875
  y < E ? y = E : y > A && (y = A);
878
876
  }
879
877
  return {
@@ -882,7 +880,7 @@ const or = function(e) {
882
880
  };
883
881
  }
884
882
  };
885
- }, cr = function(e) {
883
+ }, sr = function(e) {
886
884
  return e === void 0 && (e = {}), {
887
885
  name: "size",
888
886
  options: e,
@@ -891,31 +889,31 @@ const or = function(e) {
891
889
  const {
892
890
  placement: o,
893
891
  rects: i,
894
- platform: c,
895
- elements: s
892
+ platform: s,
893
+ elements: c
896
894
  } = t, {
897
895
  apply: d = () => {
898
896
  },
899
897
  ...l
900
- } = j(e, t), f = await de(t, l), u = K(o), p = le(o), h = X(o) === "y", {
898
+ } = j(e, t), f = await fe(t, l), u = K(o), p = ae(o), h = z(o) === "y", {
901
899
  width: y,
902
900
  height: a
903
901
  } = i.floating;
904
902
  let v, g;
905
- u === "top" || u === "bottom" ? (v = u, g = p === (await (c.isRTL == null ? void 0 : c.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (g = u, v = p === "end" ? "top" : "bottom");
906
- const b = a - f.top - f.bottom, x = y - f.left - f.right, w = Z(a - f[v], b), E = Z(y - f[g], x), A = !t.middlewareData.shift;
907
- let C = w, R = E;
908
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = x), (r = t.middlewareData.shift) != null && r.enabled.y && (C = b), A && !p) {
909
- const P = I(f.left, 0), W = I(f.right, 0), B = I(f.top, 0), L = I(f.bottom, 0);
910
- h ? R = y - 2 * (P !== 0 || W !== 0 ? P + W : I(f.left, f.right)) : C = a - 2 * (B !== 0 || L !== 0 ? B + L : I(f.top, f.bottom));
903
+ u === "top" || u === "bottom" ? (v = u, g = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, v = p === "end" ? "top" : "bottom");
904
+ const w = a - f.top - f.bottom, b = y - f.left - f.right, x = Z(a - f[v], w), E = Z(y - f[g], b), A = !t.middlewareData.shift;
905
+ let C = x, R = E;
906
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = b), (r = t.middlewareData.shift) != null && r.enabled.y && (C = w), A && !p) {
907
+ const P = B(f.left, 0), k = B(f.right, 0), F = B(f.top, 0), L = B(f.bottom, 0);
908
+ h ? R = y - 2 * (P !== 0 || k !== 0 ? P + k : B(f.left, f.right)) : C = a - 2 * (F !== 0 || L !== 0 ? F + L : B(f.top, f.bottom));
911
909
  }
912
910
  await d({
913
911
  ...t,
914
912
  availableWidth: R,
915
913
  availableHeight: C
916
914
  });
917
- const O = await c.getDimensions(s.floating);
918
- return y !== O.width || a !== O.height ? {
915
+ const T = await s.getDimensions(c.floating);
916
+ return y !== T.width || a !== T.height ? {
919
917
  reset: {
920
918
  rects: !0
921
919
  }
@@ -923,45 +921,45 @@ const or = function(e) {
923
921
  }
924
922
  };
925
923
  };
926
- function Le() {
924
+ function Te() {
927
925
  return typeof window < "u";
928
926
  }
929
- function ue(e) {
930
- return Nt(e) ? (e.nodeName || "").toLowerCase() : "#document";
927
+ function le(e) {
928
+ return Ft(e) ? (e.nodeName || "").toLowerCase() : "#document";
931
929
  }
932
- function _(e) {
930
+ function I(e) {
933
931
  var t;
934
932
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
935
933
  }
936
- function U(e) {
934
+ function X(e) {
937
935
  var t;
938
- return (t = (Nt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
936
+ return (t = (Ft(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
939
937
  }
940
- function Nt(e) {
941
- return Le() ? e instanceof Node || e instanceof _(e).Node : !1;
938
+ function Ft(e) {
939
+ return Te() ? e instanceof Node || e instanceof I(e).Node : !1;
942
940
  }
943
- function $(e) {
944
- return Le() ? e instanceof Element || e instanceof _(e).Element : !1;
941
+ function H(e) {
942
+ return Te() ? e instanceof Element || e instanceof I(e).Element : !1;
945
943
  }
946
944
  function Y(e) {
947
- return Le() ? e instanceof HTMLElement || e instanceof _(e).HTMLElement : !1;
945
+ return Te() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
948
946
  }
949
947
  function xt(e) {
950
- return !Le() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof _(e).ShadowRoot;
948
+ return !Te() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
951
949
  }
952
- function pe(e) {
950
+ function me(e) {
953
951
  const {
954
952
  overflow: t,
955
953
  overflowX: n,
956
954
  overflowY: r,
957
955
  display: o
958
- } = V(e);
956
+ } = $(e);
959
957
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
960
958
  }
961
- function ar(e) {
962
- return ["table", "td", "th"].includes(ue(e));
959
+ function cr(e) {
960
+ return ["table", "td", "th"].includes(le(e));
963
961
  }
964
- function Te(e) {
962
+ function Le(e) {
965
963
  return [":popover-open", ":modal"].some((t) => {
966
964
  try {
967
965
  return e.matches(t);
@@ -971,15 +969,15 @@ function Te(e) {
971
969
  });
972
970
  }
973
971
  function Ge(e) {
974
- const t = Qe(), n = $(e) ? V(e) : e;
972
+ const t = Qe(), n = H(e) ? $(e) : e;
975
973
  return ["transform", "translate", "scale", "rotate", "perspective"].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) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
976
974
  }
977
- function lr(e) {
975
+ function ar(e) {
978
976
  let t = G(e);
979
- for (; Y(t) && !ce(t); ) {
977
+ for (; Y(t) && !se(t); ) {
980
978
  if (Ge(t))
981
979
  return t;
982
- if (Te(t))
980
+ if (Le(t))
983
981
  return null;
984
982
  t = G(t);
985
983
  }
@@ -988,14 +986,14 @@ function lr(e) {
988
986
  function Qe() {
989
987
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
990
988
  }
991
- function ce(e) {
992
- return ["html", "body", "#document"].includes(ue(e));
989
+ function se(e) {
990
+ return ["html", "body", "#document"].includes(le(e));
993
991
  }
994
- function V(e) {
995
- return _(e).getComputedStyle(e);
992
+ function $(e) {
993
+ return I(e).getComputedStyle(e);
996
994
  }
997
995
  function De(e) {
998
- return $(e) ? {
996
+ return H(e) ? {
999
997
  scrollLeft: e.scrollLeft,
1000
998
  scrollTop: e.scrollTop
1001
999
  } : {
@@ -1004,86 +1002,86 @@ function De(e) {
1004
1002
  };
1005
1003
  }
1006
1004
  function G(e) {
1007
- if (ue(e) === "html")
1005
+ if (le(e) === "html")
1008
1006
  return e;
1009
1007
  const t = (
1010
1008
  // Step into the shadow DOM of the parent of a slotted node.
1011
1009
  e.assignedSlot || // DOM Element detected.
1012
1010
  e.parentNode || // ShadowRoot detected.
1013
1011
  xt(e) && e.host || // Fallback.
1014
- U(e)
1012
+ X(e)
1015
1013
  );
1016
1014
  return xt(t) ? t.host : t;
1017
1015
  }
1018
1016
  function Wt(e) {
1019
1017
  const t = G(e);
1020
- return ce(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && pe(t) ? t : Wt(t);
1018
+ return se(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && me(t) ? t : Wt(t);
1021
1019
  }
1022
- function he(e, t, n) {
1020
+ function de(e, t, n) {
1023
1021
  var r;
1024
1022
  t === void 0 && (t = []), n === void 0 && (n = !0);
1025
- const o = Wt(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), c = _(o);
1023
+ const o = Wt(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = I(o);
1026
1024
  if (i) {
1027
- const s = Xe(c);
1028
- return t.concat(c, c.visualViewport || [], pe(o) ? o : [], s && n ? he(s) : []);
1025
+ const c = Xe(s);
1026
+ return t.concat(s, s.visualViewport || [], me(o) ? o : [], c && n ? de(c) : []);
1029
1027
  }
1030
- return t.concat(o, he(o, [], n));
1028
+ return t.concat(o, de(o, [], n));
1031
1029
  }
1032
1030
  function Xe(e) {
1033
1031
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1034
1032
  }
1035
1033
  function Bt(e) {
1036
- const t = V(e);
1034
+ const t = $(e);
1037
1035
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1038
- const o = Y(e), i = o ? e.offsetWidth : n, c = o ? e.offsetHeight : r, s = Se(n) !== i || Se(r) !== c;
1039
- return s && (n = i, r = c), {
1036
+ const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Se(n) !== i || Se(r) !== s;
1037
+ return c && (n = i, r = s), {
1040
1038
  width: n,
1041
1039
  height: r,
1042
- $: s
1040
+ $: c
1043
1041
  };
1044
1042
  }
1045
1043
  function Je(e) {
1046
- return $(e) ? e : e.contextElement;
1044
+ return H(e) ? e : e.contextElement;
1047
1045
  }
1048
- function oe(e) {
1046
+ function re(e) {
1049
1047
  const t = Je(e);
1050
1048
  if (!Y(t))
1051
- return z(1);
1049
+ return U(1);
1052
1050
  const n = t.getBoundingClientRect(), {
1053
1051
  width: r,
1054
1052
  height: o,
1055
1053
  $: i
1056
1054
  } = Bt(t);
1057
- let c = (i ? Se(n.width) : n.width) / r, s = (i ? Se(n.height) : n.height) / o;
1058
- return (!c || !Number.isFinite(c)) && (c = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1059
- x: c,
1060
- y: s
1055
+ let s = (i ? Se(n.width) : n.width) / r, c = (i ? Se(n.height) : n.height) / o;
1056
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1057
+ x: s,
1058
+ y: c
1061
1059
  };
1062
1060
  }
1063
- const ur = /* @__PURE__ */ z(0);
1061
+ const lr = /* @__PURE__ */ U(0);
1064
1062
  function It(e) {
1065
- const t = _(e);
1066
- return !Qe() || !t.visualViewport ? ur : {
1063
+ const t = I(e);
1064
+ return !Qe() || !t.visualViewport ? lr : {
1067
1065
  x: t.visualViewport.offsetLeft,
1068
1066
  y: t.visualViewport.offsetTop
1069
1067
  };
1070
1068
  }
1071
- function fr(e, t, n) {
1072
- return t === void 0 && (t = !1), !n || t && n !== _(e) ? !1 : t;
1069
+ function ur(e, t, n) {
1070
+ return t === void 0 && (t = !1), !n || t && n !== I(e) ? !1 : t;
1073
1071
  }
1074
1072
  function J(e, t, n, r) {
1075
1073
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1076
1074
  const o = e.getBoundingClientRect(), i = Je(e);
1077
- let c = z(1);
1078
- t && (r ? $(r) && (c = oe(r)) : c = oe(e));
1079
- const s = fr(i, n, r) ? It(i) : z(0);
1080
- let d = (o.left + s.x) / c.x, l = (o.top + s.y) / c.y, f = o.width / c.x, u = o.height / c.y;
1075
+ let s = U(1);
1076
+ t && (r ? H(r) && (s = re(r)) : s = re(e));
1077
+ const c = ur(i, n, r) ? It(i) : U(0);
1078
+ let d = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, f = o.width / s.x, u = o.height / s.y;
1081
1079
  if (i) {
1082
- const p = _(i), h = r && $(r) ? _(r) : r;
1080
+ const p = I(i), h = r && H(r) ? I(r) : r;
1083
1081
  let y = p, a = Xe(y);
1084
1082
  for (; a && r && h !== y; ) {
1085
- const v = oe(a), g = a.getBoundingClientRect(), b = V(a), x = g.left + (a.clientLeft + parseFloat(b.paddingLeft)) * v.x, w = g.top + (a.clientTop + parseFloat(b.paddingTop)) * v.y;
1086
- d *= v.x, l *= v.y, f *= v.x, u *= v.y, d += x, l += w, y = _(a), a = Xe(y);
1083
+ const v = re(a), g = a.getBoundingClientRect(), w = $(a), b = g.left + (a.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = g.top + (a.clientTop + parseFloat(w.paddingTop)) * v.y;
1084
+ d *= v.x, l *= v.y, f *= v.x, u *= v.y, d += b, l += x, y = I(a), a = Xe(y);
1087
1085
  }
1088
1086
  }
1089
1087
  return Pe({
@@ -1095,7 +1093,7 @@ function J(e, t, n, r) {
1095
1093
  }
1096
1094
  function et(e, t) {
1097
1095
  const n = De(e).scrollLeft;
1098
- return t ? t.left + n : J(U(e)).left + n;
1096
+ return t ? t.left + n : J(X(e)).left + n;
1099
1097
  }
1100
1098
  function _t(e, t, n) {
1101
1099
  n === void 0 && (n = !1);
@@ -1108,26 +1106,26 @@ function _t(e, t, n) {
1108
1106
  y: i
1109
1107
  };
1110
1108
  }
1111
- function dr(e) {
1109
+ function fr(e) {
1112
1110
  let {
1113
1111
  elements: t,
1114
1112
  rect: n,
1115
1113
  offsetParent: r,
1116
1114
  strategy: o
1117
1115
  } = e;
1118
- const i = o === "fixed", c = U(r), s = t ? Te(t.floating) : !1;
1119
- if (r === c || s && i)
1116
+ const i = o === "fixed", s = X(r), c = t ? Le(t.floating) : !1;
1117
+ if (r === s || c && i)
1120
1118
  return n;
1121
1119
  let d = {
1122
1120
  scrollLeft: 0,
1123
1121
  scrollTop: 0
1124
- }, l = z(1);
1125
- const f = z(0), u = Y(r);
1126
- if ((u || !u && !i) && ((ue(r) !== "body" || pe(c)) && (d = De(r)), Y(r))) {
1122
+ }, l = U(1);
1123
+ const f = U(0), u = Y(r);
1124
+ if ((u || !u && !i) && ((le(r) !== "body" || me(s)) && (d = De(r)), Y(r))) {
1127
1125
  const h = J(r);
1128
- l = oe(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
1126
+ l = re(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
1129
1127
  }
1130
- const p = c && !u && !i ? _t(c, d, !0) : z(0);
1128
+ const p = s && !u && !i ? _t(s, d, !0) : U(0);
1131
1129
  return {
1132
1130
  width: n.width * l.x,
1133
1131
  height: n.height * l.y,
@@ -1135,40 +1133,40 @@ function dr(e) {
1135
1133
  y: n.y * l.y - d.scrollTop * l.y + f.y + p.y
1136
1134
  };
1137
1135
  }
1138
- function hr(e) {
1136
+ function dr(e) {
1139
1137
  return Array.from(e.getClientRects());
1140
1138
  }
1141
- function mr(e) {
1142
- const t = U(e), n = De(e), r = e.ownerDocument.body, o = I(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = I(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1143
- let c = -n.scrollLeft + et(e);
1144
- const s = -n.scrollTop;
1145
- return V(r).direction === "rtl" && (c += I(t.clientWidth, r.clientWidth) - o), {
1139
+ function hr(e) {
1140
+ const t = X(e), n = De(e), r = e.ownerDocument.body, o = B(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = B(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1141
+ let s = -n.scrollLeft + et(e);
1142
+ const c = -n.scrollTop;
1143
+ return $(r).direction === "rtl" && (s += B(t.clientWidth, r.clientWidth) - o), {
1146
1144
  width: o,
1147
1145
  height: i,
1148
- x: c,
1149
- y: s
1146
+ x: s,
1147
+ y: c
1150
1148
  };
1151
1149
  }
1152
- function pr(e, t) {
1153
- const n = _(e), r = U(e), o = n.visualViewport;
1154
- let i = r.clientWidth, c = r.clientHeight, s = 0, d = 0;
1150
+ function mr(e, t) {
1151
+ const n = I(e), r = X(e), o = n.visualViewport;
1152
+ let i = r.clientWidth, s = r.clientHeight, c = 0, d = 0;
1155
1153
  if (o) {
1156
- i = o.width, c = o.height;
1154
+ i = o.width, s = o.height;
1157
1155
  const l = Qe();
1158
- (!l || l && t === "fixed") && (s = o.offsetLeft, d = o.offsetTop);
1156
+ (!l || l && t === "fixed") && (c = o.offsetLeft, d = o.offsetTop);
1159
1157
  }
1160
1158
  return {
1161
1159
  width: i,
1162
- height: c,
1163
- x: s,
1160
+ height: s,
1161
+ x: c,
1164
1162
  y: d
1165
1163
  };
1166
1164
  }
1167
- function vr(e, t) {
1168
- const n = J(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? oe(e) : z(1), c = e.clientWidth * i.x, s = e.clientHeight * i.y, d = o * i.x, l = r * i.y;
1165
+ function pr(e, t) {
1166
+ const n = J(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? re(e) : U(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, d = o * i.x, l = r * i.y;
1169
1167
  return {
1170
- width: c,
1171
- height: s,
1168
+ width: s,
1169
+ height: c,
1172
1170
  x: d,
1173
1171
  y: l
1174
1172
  };
@@ -1176,11 +1174,11 @@ function vr(e, t) {
1176
1174
  function bt(e, t, n) {
1177
1175
  let r;
1178
1176
  if (t === "viewport")
1179
- r = pr(e, n);
1177
+ r = mr(e, n);
1180
1178
  else if (t === "document")
1181
- r = mr(U(e));
1182
- else if ($(t))
1183
- r = vr(t, n);
1179
+ r = hr(X(e));
1180
+ else if (H(t))
1181
+ r = pr(t, n);
1184
1182
  else {
1185
1183
  const o = It(e);
1186
1184
  r = {
@@ -1194,32 +1192,32 @@ function bt(e, t, n) {
1194
1192
  }
1195
1193
  function Ht(e, t) {
1196
1194
  const n = G(e);
1197
- return n === t || !$(n) || ce(n) ? !1 : V(n).position === "fixed" || Ht(n, t);
1195
+ return n === t || !H(n) || se(n) ? !1 : $(n).position === "fixed" || Ht(n, t);
1198
1196
  }
1199
- function gr(e, t) {
1197
+ function vr(e, t) {
1200
1198
  const n = t.get(e);
1201
1199
  if (n)
1202
1200
  return n;
1203
- let r = he(e, [], !1).filter((s) => $(s) && ue(s) !== "body"), o = null;
1204
- const i = V(e).position === "fixed";
1205
- let c = i ? G(e) : e;
1206
- for (; $(c) && !ce(c); ) {
1207
- const s = V(c), d = Ge(c);
1208
- !d && s.position === "fixed" && (o = null), (i ? !d && !o : !d && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || pe(c) && !d && Ht(e, c)) ? r = r.filter((f) => f !== c) : o = s, c = G(c);
1201
+ let r = de(e, [], !1).filter((c) => H(c) && le(c) !== "body"), o = null;
1202
+ const i = $(e).position === "fixed";
1203
+ let s = i ? G(e) : e;
1204
+ for (; H(s) && !se(s); ) {
1205
+ const c = $(s), d = Ge(s);
1206
+ !d && c.position === "fixed" && (o = null), (i ? !d && !o : !d && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || me(s) && !d && Ht(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = G(s);
1209
1207
  }
1210
1208
  return t.set(e, r), r;
1211
1209
  }
1212
- function yr(e) {
1210
+ function gr(e) {
1213
1211
  let {
1214
1212
  element: t,
1215
1213
  boundary: n,
1216
1214
  rootBoundary: r,
1217
1215
  strategy: o
1218
1216
  } = e;
1219
- const c = [...n === "clippingAncestors" ? Te(t) ? [] : gr(t, this._c) : [].concat(n), r], s = c[0], d = c.reduce((l, f) => {
1217
+ const s = [...n === "clippingAncestors" ? Le(t) ? [] : vr(t, this._c) : [].concat(n), r], c = s[0], d = s.reduce((l, f) => {
1220
1218
  const u = bt(t, f, o);
1221
- return l.top = I(u.top, l.top), l.right = Z(u.right, l.right), l.bottom = Z(u.bottom, l.bottom), l.left = I(u.left, l.left), l;
1222
- }, bt(t, s, o));
1219
+ return l.top = B(u.top, l.top), l.right = Z(u.right, l.right), l.bottom = Z(u.bottom, l.bottom), l.left = B(u.left, l.left), l;
1220
+ }, bt(t, c, o));
1223
1221
  return {
1224
1222
  width: d.right - d.left,
1225
1223
  height: d.bottom - d.top,
@@ -1227,7 +1225,7 @@ function yr(e) {
1227
1225
  y: d.top
1228
1226
  };
1229
1227
  }
1230
- function wr(e) {
1228
+ function yr(e) {
1231
1229
  const {
1232
1230
  width: t,
1233
1231
  height: n
@@ -1237,63 +1235,63 @@ function wr(e) {
1237
1235
  height: n
1238
1236
  };
1239
1237
  }
1240
- function xr(e, t, n) {
1241
- const r = Y(t), o = U(t), i = n === "fixed", c = J(e, !0, i, t);
1242
- let s = {
1238
+ function wr(e, t, n) {
1239
+ const r = Y(t), o = X(t), i = n === "fixed", s = J(e, !0, i, t);
1240
+ let c = {
1243
1241
  scrollLeft: 0,
1244
1242
  scrollTop: 0
1245
1243
  };
1246
- const d = z(0);
1244
+ const d = U(0);
1247
1245
  function l() {
1248
1246
  d.x = et(o);
1249
1247
  }
1250
1248
  if (r || !r && !i)
1251
- if ((ue(t) !== "body" || pe(o)) && (s = De(t)), r) {
1249
+ if ((le(t) !== "body" || me(o)) && (c = De(t)), r) {
1252
1250
  const h = J(t, !0, i, t);
1253
1251
  d.x = h.x + t.clientLeft, d.y = h.y + t.clientTop;
1254
1252
  } else o && l();
1255
1253
  i && !r && o && l();
1256
- const f = o && !r && !i ? _t(o, s) : z(0), u = c.left + s.scrollLeft - d.x - f.x, p = c.top + s.scrollTop - d.y - f.y;
1254
+ const f = o && !r && !i ? _t(o, c) : U(0), u = s.left + c.scrollLeft - d.x - f.x, p = s.top + c.scrollTop - d.y - f.y;
1257
1255
  return {
1258
1256
  x: u,
1259
1257
  y: p,
1260
- width: c.width,
1261
- height: c.height
1258
+ width: s.width,
1259
+ height: s.height
1262
1260
  };
1263
1261
  }
1264
1262
  function Be(e) {
1265
- return V(e).position === "static";
1263
+ return $(e).position === "static";
1266
1264
  }
1267
1265
  function Et(e, t) {
1268
- if (!Y(e) || V(e).position === "fixed")
1266
+ if (!Y(e) || $(e).position === "fixed")
1269
1267
  return null;
1270
1268
  if (t)
1271
1269
  return t(e);
1272
1270
  let n = e.offsetParent;
1273
- return U(e) === n && (n = n.ownerDocument.body), n;
1271
+ return X(e) === n && (n = n.ownerDocument.body), n;
1274
1272
  }
1275
1273
  function $t(e, t) {
1276
- const n = _(e);
1277
- if (Te(e))
1274
+ const n = I(e);
1275
+ if (Le(e))
1278
1276
  return n;
1279
1277
  if (!Y(e)) {
1280
1278
  let o = G(e);
1281
- for (; o && !ce(o); ) {
1282
- if ($(o) && !Be(o))
1279
+ for (; o && !se(o); ) {
1280
+ if (H(o) && !Be(o))
1283
1281
  return o;
1284
1282
  o = G(o);
1285
1283
  }
1286
1284
  return n;
1287
1285
  }
1288
1286
  let r = Et(e, t);
1289
- for (; r && ar(r) && Be(r); )
1287
+ for (; r && cr(r) && Be(r); )
1290
1288
  r = Et(r, t);
1291
- return r && ce(r) && Be(r) && !Ge(r) ? n : r || lr(e) || n;
1289
+ return r && se(r) && Be(r) && !Ge(r) ? n : r || ar(e) || n;
1292
1290
  }
1293
- const br = async function(e) {
1291
+ const xr = async function(e) {
1294
1292
  const t = this.getOffsetParent || $t, n = this.getDimensions, r = await n(e.floating);
1295
1293
  return {
1296
- reference: xr(e.reference, await t(e.floating), e.strategy),
1294
+ reference: wr(e.reference, await t(e.floating), e.strategy),
1297
1295
  floating: {
1298
1296
  x: 0,
1299
1297
  y: 0,
@@ -1302,91 +1300,91 @@ const br = async function(e) {
1302
1300
  }
1303
1301
  };
1304
1302
  };
1305
- function Er(e) {
1306
- return V(e).direction === "rtl";
1303
+ function br(e) {
1304
+ return $(e).direction === "rtl";
1307
1305
  }
1308
- const Cr = {
1309
- convertOffsetParentRelativeRectToViewportRelativeRect: dr,
1310
- getDocumentElement: U,
1311
- getClippingRect: yr,
1306
+ const Er = {
1307
+ convertOffsetParentRelativeRectToViewportRelativeRect: fr,
1308
+ getDocumentElement: X,
1309
+ getClippingRect: gr,
1312
1310
  getOffsetParent: $t,
1313
- getElementRects: br,
1314
- getClientRects: hr,
1315
- getDimensions: wr,
1316
- getScale: oe,
1317
- isElement: $,
1318
- isRTL: Er
1311
+ getElementRects: xr,
1312
+ getClientRects: dr,
1313
+ getDimensions: yr,
1314
+ getScale: re,
1315
+ isElement: H,
1316
+ isRTL: br
1319
1317
  };
1320
1318
  function Vt(e, t) {
1321
1319
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1322
1320
  }
1323
- function Ar(e, t) {
1321
+ function Cr(e, t) {
1324
1322
  let n = null, r;
1325
- const o = U(e);
1323
+ const o = X(e);
1326
1324
  function i() {
1327
- var s;
1328
- clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
1325
+ var c;
1326
+ clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
1329
1327
  }
1330
- function c(s, d) {
1331
- s === void 0 && (s = !1), d === void 0 && (d = 1), i();
1328
+ function s(c, d) {
1329
+ c === void 0 && (c = !1), d === void 0 && (d = 1), i();
1332
1330
  const l = e.getBoundingClientRect(), {
1333
1331
  left: f,
1334
1332
  top: u,
1335
1333
  width: p,
1336
1334
  height: h
1337
1335
  } = l;
1338
- if (s || t(), !p || !h)
1336
+ if (c || t(), !p || !h)
1339
1337
  return;
1340
- const y = ge(u), a = ge(o.clientWidth - (f + p)), v = ge(o.clientHeight - (u + h)), g = ge(f), x = {
1338
+ const y = ge(u), a = ge(o.clientWidth - (f + p)), v = ge(o.clientHeight - (u + h)), g = ge(f), b = {
1341
1339
  rootMargin: -y + "px " + -a + "px " + -v + "px " + -g + "px",
1342
- threshold: I(0, Z(1, d)) || 1
1340
+ threshold: B(0, Z(1, d)) || 1
1343
1341
  };
1344
- let w = !0;
1342
+ let x = !0;
1345
1343
  function E(A) {
1346
1344
  const C = A[0].intersectionRatio;
1347
1345
  if (C !== d) {
1348
- if (!w)
1349
- return c();
1350
- C ? c(!1, C) : r = setTimeout(() => {
1351
- c(!1, 1e-7);
1346
+ if (!x)
1347
+ return s();
1348
+ C ? s(!1, C) : r = setTimeout(() => {
1349
+ s(!1, 1e-7);
1352
1350
  }, 1e3);
1353
1351
  }
1354
- C === 1 && !Vt(l, e.getBoundingClientRect()) && c(), w = !1;
1352
+ C === 1 && !Vt(l, e.getBoundingClientRect()) && s(), x = !1;
1355
1353
  }
1356
1354
  try {
1357
1355
  n = new IntersectionObserver(E, {
1358
- ...x,
1356
+ ...b,
1359
1357
  // Handle <iframe>s
1360
1358
  root: o.ownerDocument
1361
1359
  });
1362
1360
  } catch {
1363
- n = new IntersectionObserver(E, x);
1361
+ n = new IntersectionObserver(E, b);
1364
1362
  }
1365
1363
  n.observe(e);
1366
1364
  }
1367
- return c(!0), i;
1365
+ return s(!0), i;
1368
1366
  }
1369
- function Sr(e, t, n, r) {
1367
+ function Ar(e, t, n, r) {
1370
1368
  r === void 0 && (r = {});
1371
1369
  const {
1372
1370
  ancestorScroll: o = !0,
1373
1371
  ancestorResize: i = !0,
1374
- elementResize: c = typeof ResizeObserver == "function",
1375
- layoutShift: s = typeof IntersectionObserver == "function",
1372
+ elementResize: s = typeof ResizeObserver == "function",
1373
+ layoutShift: c = typeof IntersectionObserver == "function",
1376
1374
  animationFrame: d = !1
1377
- } = r, l = Je(e), f = o || i ? [...l ? he(l) : [], ...he(t)] : [];
1375
+ } = r, l = Je(e), f = o || i ? [...l ? de(l) : [], ...de(t)] : [];
1378
1376
  f.forEach((g) => {
1379
1377
  o && g.addEventListener("scroll", n, {
1380
1378
  passive: !0
1381
1379
  }), i && g.addEventListener("resize", n);
1382
1380
  });
1383
- const u = l && s ? Ar(l, n) : null;
1381
+ const u = l && c ? Cr(l, n) : null;
1384
1382
  let p = -1, h = null;
1385
- c && (h = new ResizeObserver((g) => {
1386
- let [b] = g;
1387
- b && b.target === l && h && (h.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1388
- var x;
1389
- (x = h) == null || x.observe(t);
1383
+ s && (h = new ResizeObserver((g) => {
1384
+ let [w] = g;
1385
+ w && w.target === l && h && (h.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1386
+ var b;
1387
+ (b = h) == null || b.observe(t);
1390
1388
  })), n();
1391
1389
  }), l && !d && h.observe(l), h.observe(t));
1392
1390
  let y, a = d ? J(e) : null;
@@ -1397,25 +1395,26 @@ function Sr(e, t, n, r) {
1397
1395
  }
1398
1396
  return n(), () => {
1399
1397
  var g;
1400
- f.forEach((b) => {
1401
- o && b.removeEventListener("scroll", n), i && b.removeEventListener("resize", n);
1398
+ f.forEach((w) => {
1399
+ o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
1402
1400
  }), u == null || u(), (g = h) == null || g.disconnect(), h = null, d && cancelAnimationFrame(y);
1403
1401
  };
1404
1402
  }
1405
- const Rr = or, Pr = ir, Or = tr, Lr = cr, Tr = nr, Ct = er, Dr = sr, Mr = (e, t, n) => {
1403
+ const Sr = rr, Rr = or, Pr = er, Or = sr, Tr = tr, Ct = Jn, Lr = ir, Dr = (e, t, n) => {
1406
1404
  const r = /* @__PURE__ */ new Map(), o = {
1407
- platform: Cr,
1405
+ platform: Er,
1408
1406
  ...n
1409
1407
  }, i = {
1410
1408
  ...o.platform,
1411
1409
  _c: r
1412
1410
  };
1413
- return Jn(e, t, {
1411
+ return Qn(e, t, {
1414
1412
  ...o,
1415
1413
  platform: i
1416
1414
  });
1417
1415
  };
1418
- var Ee = typeof document < "u" ? vn : gn;
1416
+ var Mr = typeof document < "u", Nr = function() {
1417
+ }, Ee = Mr ? vn : Nr;
1419
1418
  function Oe(e, t) {
1420
1419
  if (e === t)
1421
1420
  return !0;
@@ -1468,9 +1467,9 @@ function kr(e) {
1468
1467
  platform: o,
1469
1468
  elements: {
1470
1469
  reference: i,
1471
- floating: c
1470
+ floating: s
1472
1471
  } = {},
1473
- transform: s = !0,
1472
+ transform: c = !0,
1474
1473
  whileElementsMounted: d,
1475
1474
  open: l
1476
1475
  } = e, [f, u] = m.useState({
@@ -1482,11 +1481,11 @@ function kr(e) {
1482
1481
  isPositioned: !1
1483
1482
  }), [p, h] = m.useState(r);
1484
1483
  Oe(p, r) || h(r);
1485
- const [y, a] = m.useState(null), [v, g] = m.useState(null), b = m.useCallback((S) => {
1484
+ const [y, a] = m.useState(null), [v, g] = m.useState(null), w = m.useCallback((S) => {
1486
1485
  S !== A.current && (A.current = S, a(S));
1487
- }, []), x = m.useCallback((S) => {
1486
+ }, []), b = m.useCallback((S) => {
1488
1487
  S !== C.current && (C.current = S, g(S));
1489
- }, []), w = i || y, E = c || v, A = m.useRef(null), C = m.useRef(null), R = m.useRef(f), O = d != null, P = Ie(d), W = Ie(o), B = Ie(l), L = m.useCallback(() => {
1488
+ }, []), x = i || y, E = s || v, A = m.useRef(null), C = m.useRef(null), R = m.useRef(f), T = d != null, P = Ie(d), k = Ie(o), F = Ie(l), L = m.useCallback(() => {
1490
1489
  if (!A.current || !C.current)
1491
1490
  return;
1492
1491
  const S = {
@@ -1494,72 +1493,72 @@ function kr(e) {
1494
1493
  strategy: n,
1495
1494
  middleware: p
1496
1495
  };
1497
- W.current && (S.platform = W.current), Mr(A.current, C.current, S).then((T) => {
1498
- const F = {
1499
- ...T,
1496
+ k.current && (S.platform = k.current), Dr(A.current, C.current, S).then((N) => {
1497
+ const V = {
1498
+ ...N,
1500
1499
  // The floating element's position may be recomputed while it's closed
1501
1500
  // but still mounted (such as when transitioning out). To ensure
1502
1501
  // `isPositioned` will be `false` initially on the next open, avoid
1503
1502
  // setting it to `true` when `open === false` (must be specified).
1504
- isPositioned: B.current !== !1
1503
+ isPositioned: F.current !== !1
1505
1504
  };
1506
- N.current && !Oe(R.current, F) && (R.current = F, bn.flushSync(() => {
1507
- u(F);
1505
+ O.current && !Oe(R.current, V) && (R.current = V, xn.flushSync(() => {
1506
+ u(V);
1508
1507
  }));
1509
1508
  });
1510
- }, [p, t, n, W, B]);
1509
+ }, [p, t, n, k, F]);
1511
1510
  Ee(() => {
1512
1511
  l === !1 && R.current.isPositioned && (R.current.isPositioned = !1, u((S) => ({
1513
1512
  ...S,
1514
1513
  isPositioned: !1
1515
1514
  })));
1516
1515
  }, [l]);
1517
- const N = m.useRef(!1);
1518
- Ee(() => (N.current = !0, () => {
1519
- N.current = !1;
1516
+ const O = m.useRef(!1);
1517
+ Ee(() => (O.current = !0, () => {
1518
+ O.current = !1;
1520
1519
  }), []), Ee(() => {
1521
- if (w && (A.current = w), E && (C.current = E), w && E) {
1520
+ if (x && (A.current = x), E && (C.current = E), x && E) {
1522
1521
  if (P.current)
1523
- return P.current(w, E, L);
1522
+ return P.current(x, E, L);
1524
1523
  L();
1525
1524
  }
1526
- }, [w, E, L, P, O]);
1527
- const D = m.useMemo(() => ({
1525
+ }, [x, E, L, P, T]);
1526
+ const W = m.useMemo(() => ({
1528
1527
  reference: A,
1529
1528
  floating: C,
1530
- setReference: b,
1531
- setFloating: x
1532
- }), [b, x]), M = m.useMemo(() => ({
1533
- reference: w,
1529
+ setReference: w,
1530
+ setFloating: b
1531
+ }), [w, b]), D = m.useMemo(() => ({
1532
+ reference: x,
1534
1533
  floating: E
1535
- }), [w, E]), k = m.useMemo(() => {
1534
+ }), [x, E]), M = m.useMemo(() => {
1536
1535
  const S = {
1537
1536
  position: n,
1538
1537
  left: 0,
1539
1538
  top: 0
1540
1539
  };
1541
- if (!M.floating)
1540
+ if (!D.floating)
1542
1541
  return S;
1543
- const T = At(M.floating, f.x), F = At(M.floating, f.y);
1544
- return s ? {
1542
+ const N = At(D.floating, f.x), V = At(D.floating, f.y);
1543
+ return c ? {
1545
1544
  ...S,
1546
- transform: "translate(" + T + "px, " + F + "px)",
1547
- ...zt(M.floating) >= 1.5 && {
1545
+ transform: "translate(" + N + "px, " + V + "px)",
1546
+ ...zt(D.floating) >= 1.5 && {
1548
1547
  willChange: "transform"
1549
1548
  }
1550
1549
  } : {
1551
1550
  position: n,
1552
- left: T,
1553
- top: F
1551
+ left: N,
1552
+ top: V
1554
1553
  };
1555
- }, [n, s, M.floating, f.x, f.y]);
1554
+ }, [n, c, D.floating, f.x, f.y]);
1556
1555
  return m.useMemo(() => ({
1557
1556
  ...f,
1558
1557
  update: L,
1559
- refs: D,
1560
- elements: M,
1561
- floatingStyles: k
1562
- }), [f, L, D, M, k]);
1558
+ refs: W,
1559
+ elements: D,
1560
+ floatingStyles: M
1561
+ }), [f, L, W, D, M]);
1563
1562
  }
1564
1563
  const Fr = (e) => {
1565
1564
  function t(n) {
@@ -1582,32 +1581,32 @@ const Fr = (e) => {
1582
1581
  }).fn(n) : {};
1583
1582
  }
1584
1583
  };
1585
- }, Nr = (e, t) => ({
1586
- ...Rr(e),
1587
- options: [e, t]
1588
- }), Wr = (e, t) => ({
1589
- ...Pr(e),
1584
+ }, Wr = (e, t) => ({
1585
+ ...Sr(e),
1590
1586
  options: [e, t]
1591
1587
  }), Br = (e, t) => ({
1592
- ...Dr(e),
1588
+ ...Rr(e),
1593
1589
  options: [e, t]
1594
1590
  }), Ir = (e, t) => ({
1595
- ...Or(e),
1591
+ ...Lr(e),
1596
1592
  options: [e, t]
1597
1593
  }), _r = (e, t) => ({
1598
- ...Lr(e),
1594
+ ...Pr(e),
1599
1595
  options: [e, t]
1600
1596
  }), Hr = (e, t) => ({
1601
- ...Tr(e),
1597
+ ...Or(e),
1602
1598
  options: [e, t]
1603
1599
  }), $r = (e, t) => ({
1600
+ ...Tr(e),
1601
+ options: [e, t]
1602
+ }), Vr = (e, t) => ({
1604
1603
  ...Fr(e),
1605
1604
  options: [e, t]
1606
1605
  });
1607
- var Vr = "Arrow", Yt = m.forwardRef((e, t) => {
1606
+ var zr = "Arrow", Ut = m.forwardRef((e, t) => {
1608
1607
  const { children: n, width: r = 10, height: o = 5, ...i } = e;
1609
- return /* @__PURE__ */ H(
1610
- ae.svg,
1608
+ return /* @__PURE__ */ _(
1609
+ ce.svg,
1611
1610
  {
1612
1611
  ...i,
1613
1612
  ref: t,
@@ -1615,26 +1614,26 @@ var Vr = "Arrow", Yt = m.forwardRef((e, t) => {
1615
1614
  height: o,
1616
1615
  viewBox: "0 0 30 10",
1617
1616
  preserveAspectRatio: "none",
1618
- children: e.asChild ? n : /* @__PURE__ */ H("polygon", { points: "0,0 30,0 15,10" })
1617
+ children: e.asChild ? n : /* @__PURE__ */ _("polygon", { points: "0,0 30,0 15,10" })
1619
1618
  }
1620
1619
  );
1621
1620
  });
1622
- Yt.displayName = Vr;
1623
- var zr = Yt, tt = "Popper", [Ut, Bo] = wn(tt), [Yr, Xt] = Ut(tt), jt = (e) => {
1621
+ Ut.displayName = zr;
1622
+ var Ur = Ut, tt = "Popper", [Yt, Io] = yn(tt), [Yr, Xt] = Yt(tt), jt = (e) => {
1624
1623
  const { __scopePopper: t, children: n } = e, [r, o] = m.useState(null);
1625
- return /* @__PURE__ */ H(Yr, { scope: t, anchor: r, onAnchorChange: o, children: n });
1624
+ return /* @__PURE__ */ _(Yr, { scope: t, anchor: r, onAnchorChange: o, children: n });
1626
1625
  };
1627
1626
  jt.displayName = tt;
1628
1627
  var Kt = "PopperAnchor", qt = m.forwardRef(
1629
1628
  (e, t) => {
1630
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = Xt(Kt, n), c = m.useRef(null), s = me(t, c);
1629
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = Xt(Kt, n), s = m.useRef(null), c = he(t, s);
1631
1630
  return m.useEffect(() => {
1632
- i.onAnchorChange((r == null ? void 0 : r.current) || c.current);
1633
- }), r ? null : /* @__PURE__ */ H(ae.div, { ...o, ref: s });
1631
+ i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
1632
+ }), r ? null : /* @__PURE__ */ _(ce.div, { ...o, ref: c });
1634
1633
  }
1635
1634
  );
1636
1635
  qt.displayName = Kt;
1637
- var nt = "PopperContent", [Ur, Xr] = Ut(nt), Zt = m.forwardRef(
1636
+ var nt = "PopperContent", [Xr, jr] = Yt(nt), Zt = m.forwardRef(
1638
1637
  (e, t) => {
1639
1638
  var rt, ot, it, st, ct, at;
1640
1639
  const {
@@ -1642,8 +1641,8 @@ var nt = "PopperContent", [Ur, Xr] = Ut(nt), Zt = m.forwardRef(
1642
1641
  side: r = "bottom",
1643
1642
  sideOffset: o = 0,
1644
1643
  align: i = "center",
1645
- alignOffset: c = 0,
1646
- arrowPadding: s = 0,
1644
+ alignOffset: s = 0,
1645
+ arrowPadding: c = 0,
1647
1646
  avoidCollisions: d = !0,
1648
1647
  collisionBoundary: l = [],
1649
1648
  collisionPadding: f = 0,
@@ -1652,56 +1651,56 @@ var nt = "PopperContent", [Ur, Xr] = Ut(nt), Zt = m.forwardRef(
1652
1651
  updatePositionStrategy: h = "optimized",
1653
1652
  onPlaced: y,
1654
1653
  ...a
1655
- } = e, v = Xt(nt, n), [g, b] = m.useState(null), x = me(t, (fe) => b(fe)), [w, E] = m.useState(null), A = xn(w), C = (A == null ? void 0 : A.width) ?? 0, R = (A == null ? void 0 : A.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), P = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, W = Array.isArray(l) ? l : [l], B = W.length > 0, L = {
1654
+ } = e, v = Xt(nt, n), [g, w] = m.useState(null), b = he(t, (ue) => w(ue)), [x, E] = m.useState(null), A = wn(x), C = (A == null ? void 0 : A.width) ?? 0, R = (A == null ? void 0 : A.height) ?? 0, T = r + (i !== "center" ? "-" + i : ""), P = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, k = Array.isArray(l) ? l : [l], F = k.length > 0, L = {
1656
1655
  padding: P,
1657
- boundary: W.filter(Kr),
1656
+ boundary: k.filter(qr),
1658
1657
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1659
- altBoundary: B
1660
- }, { refs: N, floatingStyles: D, placement: M, isPositioned: k, middlewareData: S } = kr({
1658
+ altBoundary: F
1659
+ }, { refs: O, floatingStyles: W, placement: D, isPositioned: M, middlewareData: S } = kr({
1661
1660
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1662
1661
  strategy: "fixed",
1663
- placement: O,
1664
- whileElementsMounted: (...fe) => Sr(...fe, {
1662
+ placement: T,
1663
+ whileElementsMounted: (...ue) => Ar(...ue, {
1665
1664
  animationFrame: h === "always"
1666
1665
  }),
1667
1666
  elements: {
1668
1667
  reference: v.anchor
1669
1668
  },
1670
1669
  middleware: [
1671
- Nr({ mainAxis: o + R, alignmentAxis: c }),
1672
- d && Wr({
1670
+ Wr({ mainAxis: o + R, alignmentAxis: s }),
1671
+ d && Br({
1673
1672
  mainAxis: !0,
1674
1673
  crossAxis: !1,
1675
- limiter: u === "partial" ? Br() : void 0,
1674
+ limiter: u === "partial" ? Ir() : void 0,
1676
1675
  ...L
1677
1676
  }),
1678
- d && Ir({ ...L }),
1679
- _r({
1677
+ d && _r({ ...L }),
1678
+ Hr({
1680
1679
  ...L,
1681
- apply: ({ elements: fe, rects: lt, availableWidth: dn, availableHeight: hn }) => {
1682
- const { width: mn, height: pn } = lt.reference, ve = fe.floating.style;
1680
+ apply: ({ elements: ue, rects: lt, availableWidth: dn, availableHeight: hn }) => {
1681
+ const { width: mn, height: pn } = lt.reference, ve = ue.floating.style;
1683
1682
  ve.setProperty("--radix-popper-available-width", `${dn}px`), ve.setProperty("--radix-popper-available-height", `${hn}px`), ve.setProperty("--radix-popper-anchor-width", `${mn}px`), ve.setProperty("--radix-popper-anchor-height", `${pn}px`);
1684
1683
  }
1685
1684
  }),
1686
- w && $r({ element: w, padding: s }),
1687
- qr({ arrowWidth: C, arrowHeight: R }),
1688
- p && Hr({ strategy: "referenceHidden", ...L })
1685
+ x && Vr({ element: x, padding: c }),
1686
+ Zr({ arrowWidth: C, arrowHeight: R }),
1687
+ p && $r({ strategy: "referenceHidden", ...L })
1689
1688
  ]
1690
- }), [T, F] = Jt(M), ee = se(y);
1689
+ }), [N, V] = Jt(D), pe = ie(y);
1691
1690
  Ve(() => {
1692
- k && (ee == null || ee());
1693
- }, [k, ee]);
1691
+ M && (pe == null || pe());
1692
+ }, [M, pe]);
1694
1693
  const cn = (rt = S.arrow) == null ? void 0 : rt.x, an = (ot = S.arrow) == null ? void 0 : ot.y, ln = ((it = S.arrow) == null ? void 0 : it.centerOffset) !== 0, [un, fn] = m.useState();
1695
1694
  return Ve(() => {
1696
1695
  g && fn(window.getComputedStyle(g).zIndex);
1697
- }, [g]), /* @__PURE__ */ H(
1696
+ }, [g]), /* @__PURE__ */ _(
1698
1697
  "div",
1699
1698
  {
1700
- ref: N.setFloating,
1699
+ ref: O.setFloating,
1701
1700
  "data-radix-popper-content-wrapper": "",
1702
1701
  style: {
1703
- ...D,
1704
- transform: k ? D.transform : "translate(0, -200%)",
1702
+ ...W,
1703
+ transform: M ? W.transform : "translate(0, -200%)",
1705
1704
  // keep off the page when measuring
1706
1705
  minWidth: "max-content",
1707
1706
  zIndex: un,
@@ -1718,27 +1717,27 @@ var nt = "PopperContent", [Ur, Xr] = Ut(nt), Zt = m.forwardRef(
1718
1717
  }
1719
1718
  },
1720
1719
  dir: e.dir,
1721
- children: /* @__PURE__ */ H(
1722
- Ur,
1720
+ children: /* @__PURE__ */ _(
1721
+ Xr,
1723
1722
  {
1724
1723
  scope: n,
1725
- placedSide: T,
1724
+ placedSide: N,
1726
1725
  onArrowChange: E,
1727
1726
  arrowX: cn,
1728
1727
  arrowY: an,
1729
1728
  shouldHideArrow: ln,
1730
- children: /* @__PURE__ */ H(
1731
- ae.div,
1729
+ children: /* @__PURE__ */ _(
1730
+ ce.div,
1732
1731
  {
1733
- "data-side": T,
1734
- "data-align": F,
1732
+ "data-side": N,
1733
+ "data-align": V,
1735
1734
  ...a,
1736
- ref: x,
1735
+ ref: b,
1737
1736
  style: {
1738
1737
  ...a.style,
1739
1738
  // if the PopperContent hasn't been placed yet (not all measurements done)
1740
1739
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
1741
- animation: k ? void 0 : "none"
1740
+ animation: M ? void 0 : "none"
1742
1741
  }
1743
1742
  }
1744
1743
  )
@@ -1749,18 +1748,18 @@ var nt = "PopperContent", [Ur, Xr] = Ut(nt), Zt = m.forwardRef(
1749
1748
  }
1750
1749
  );
1751
1750
  Zt.displayName = nt;
1752
- var Gt = "PopperArrow", jr = {
1751
+ var Gt = "PopperArrow", Kr = {
1753
1752
  top: "bottom",
1754
1753
  right: "left",
1755
1754
  bottom: "top",
1756
1755
  left: "right"
1757
1756
  }, Qt = m.forwardRef(function(t, n) {
1758
- const { __scopePopper: r, ...o } = t, i = Xr(Gt, r), c = jr[i.placedSide];
1757
+ const { __scopePopper: r, ...o } = t, i = jr(Gt, r), s = Kr[i.placedSide];
1759
1758
  return (
1760
1759
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1761
1760
  // doesn't report size as we'd expect on SVG elements.
1762
1761
  // it reports their bounding box which is effectively the largest path inside the SVG.
1763
- /* @__PURE__ */ H(
1762
+ /* @__PURE__ */ _(
1764
1763
  "span",
1765
1764
  {
1766
1765
  ref: i.onArrowChange,
@@ -1768,7 +1767,7 @@ var Gt = "PopperArrow", jr = {
1768
1767
  position: "absolute",
1769
1768
  left: i.arrowX,
1770
1769
  top: i.arrowY,
1771
- [c]: 0,
1770
+ [s]: 0,
1772
1771
  transformOrigin: {
1773
1772
  top: "",
1774
1773
  right: "0 0",
@@ -1783,8 +1782,8 @@ var Gt = "PopperArrow", jr = {
1783
1782
  }[i.placedSide],
1784
1783
  visibility: i.shouldHideArrow ? "hidden" : void 0
1785
1784
  },
1786
- children: /* @__PURE__ */ H(
1787
- zr,
1785
+ children: /* @__PURE__ */ _(
1786
+ Ur,
1788
1787
  {
1789
1788
  ...o,
1790
1789
  ref: n,
@@ -1800,31 +1799,31 @@ var Gt = "PopperArrow", jr = {
1800
1799
  );
1801
1800
  });
1802
1801
  Qt.displayName = Gt;
1803
- function Kr(e) {
1802
+ function qr(e) {
1804
1803
  return e !== null;
1805
1804
  }
1806
- var qr = (e) => ({
1805
+ var Zr = (e) => ({
1807
1806
  name: "transformOrigin",
1808
1807
  options: e,
1809
1808
  fn(t) {
1810
- var v, g, b;
1811
- const { placement: n, rects: r, middlewareData: o } = t, c = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, s = c ? 0 : e.arrowWidth, d = c ? 0 : e.arrowHeight, [l, f] = Jt(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (((g = o.arrow) == null ? void 0 : g.x) ?? 0) + s / 2, h = (((b = o.arrow) == null ? void 0 : b.y) ?? 0) + d / 2;
1809
+ var v, g, w;
1810
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, d = s ? 0 : e.arrowHeight, [l, f] = Jt(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (((g = o.arrow) == null ? void 0 : g.x) ?? 0) + c / 2, h = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + d / 2;
1812
1811
  let y = "", a = "";
1813
- return l === "bottom" ? (y = c ? u : `${p}px`, a = `${-d}px`) : l === "top" ? (y = c ? u : `${p}px`, a = `${r.floating.height + d}px`) : l === "right" ? (y = `${-d}px`, a = c ? u : `${h}px`) : l === "left" && (y = `${r.floating.width + d}px`, a = c ? u : `${h}px`), { data: { x: y, y: a } };
1812
+ return l === "bottom" ? (y = s ? u : `${p}px`, a = `${-d}px`) : l === "top" ? (y = s ? u : `${p}px`, a = `${r.floating.height + d}px`) : l === "right" ? (y = `${-d}px`, a = s ? u : `${h}px`) : l === "left" && (y = `${r.floating.width + d}px`, a = s ? u : `${h}px`), { data: { x: y, y: a } };
1814
1813
  }
1815
1814
  });
1816
1815
  function Jt(e) {
1817
1816
  const [t, n = "center"] = e.split("-");
1818
1817
  return [t, n];
1819
1818
  }
1820
- var Io = jt, _o = qt, Ho = Zt, $o = Qt, Zr = function(e) {
1819
+ var _o = jt, Ho = qt, $o = Zt, Vo = Qt, Gr = function(e) {
1821
1820
  if (typeof document > "u")
1822
1821
  return null;
1823
1822
  var t = Array.isArray(e) ? e[0] : e;
1824
1823
  return t.ownerDocument.body;
1825
- }, te = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), we = {}, _e = 0, en = function(e) {
1824
+ }, ee = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), we = {}, _e = 0, en = function(e) {
1826
1825
  return e && (e.host || en(e.parentNode));
1827
- }, Gr = function(e, t) {
1826
+ }, Qr = function(e, t) {
1828
1827
  return t.map(function(n) {
1829
1828
  if (e.contains(n))
1830
1829
  return n;
@@ -1833,50 +1832,50 @@ var Io = jt, _o = qt, Ho = Zt, $o = Qt, Zr = function(e) {
1833
1832
  }).filter(function(n) {
1834
1833
  return !!n;
1835
1834
  });
1836
- }, Qr = function(e, t, n, r) {
1837
- var o = Gr(t, Array.isArray(e) ? e : [e]);
1835
+ }, Jr = function(e, t, n, r) {
1836
+ var o = Qr(t, Array.isArray(e) ? e : [e]);
1838
1837
  we[n] || (we[n] = /* @__PURE__ */ new WeakMap());
1839
- var i = we[n], c = [], s = /* @__PURE__ */ new Set(), d = new Set(o), l = function(u) {
1840
- !u || s.has(u) || (s.add(u), l(u.parentNode));
1838
+ var i = we[n], s = [], c = /* @__PURE__ */ new Set(), d = new Set(o), l = function(u) {
1839
+ !u || c.has(u) || (c.add(u), l(u.parentNode));
1841
1840
  };
1842
1841
  o.forEach(l);
1843
1842
  var f = function(u) {
1844
1843
  !u || d.has(u) || Array.prototype.forEach.call(u.children, function(p) {
1845
- if (s.has(p))
1844
+ if (c.has(p))
1846
1845
  f(p);
1847
1846
  else
1848
1847
  try {
1849
- var h = p.getAttribute(r), y = h !== null && h !== "false", a = (te.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
1850
- te.set(p, a), i.set(p, v), c.push(p), a === 1 && y && ye.set(p, !0), v === 1 && p.setAttribute(n, "true"), y || p.setAttribute(r, "true");
1848
+ var h = p.getAttribute(r), y = h !== null && h !== "false", a = (ee.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
1849
+ ee.set(p, a), i.set(p, v), s.push(p), a === 1 && y && ye.set(p, !0), v === 1 && p.setAttribute(n, "true"), y || p.setAttribute(r, "true");
1851
1850
  } catch (g) {
1852
1851
  console.error("aria-hidden: cannot operate on ", p, g);
1853
1852
  }
1854
1853
  });
1855
1854
  };
1856
- return f(t), s.clear(), _e++, function() {
1857
- c.forEach(function(u) {
1858
- var p = te.get(u) - 1, h = i.get(u) - 1;
1859
- te.set(u, p), i.set(u, h), p || (ye.has(u) || u.removeAttribute(r), ye.delete(u)), h || u.removeAttribute(n);
1860
- }), _e--, _e || (te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), we = {});
1855
+ return f(t), c.clear(), _e++, function() {
1856
+ s.forEach(function(u) {
1857
+ var p = ee.get(u) - 1, h = i.get(u) - 1;
1858
+ ee.set(u, p), i.set(u, h), p || (ye.has(u) || u.removeAttribute(r), ye.delete(u)), h || u.removeAttribute(n);
1859
+ }), _e--, _e || (ee = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), we = {});
1861
1860
  };
1862
- }, Vo = function(e, t, n) {
1861
+ }, zo = function(e, t, n) {
1863
1862
  n === void 0 && (n = "data-aria-hidden");
1864
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Zr(e);
1865
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Qr(r, o, n, "aria-hidden")) : function() {
1863
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Gr(e);
1864
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Jr(r, o, n, "aria-hidden")) : function() {
1866
1865
  return null;
1867
1866
  };
1868
- }, Ce = "right-scroll-bar-position", Ae = "width-before-scroll-bar", Jr = "with-scroll-bars-hidden", eo = "--removed-body-scroll-bar-size", tn = Cn(), He = function() {
1867
+ }, Ce = "right-scroll-bar-position", Ae = "width-before-scroll-bar", eo = "with-scroll-bars-hidden", to = "--removed-body-scroll-bar-size", tn = En(), He = function() {
1869
1868
  }, Me = m.forwardRef(function(e, t) {
1870
1869
  var n = m.useRef(null), r = m.useState({
1871
1870
  onScrollCapture: He,
1872
1871
  onWheelCapture: He,
1873
1872
  onTouchMoveCapture: He
1874
- }), o = r[0], i = r[1], c = e.forwardProps, s = e.children, d = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, p = e.sideCar, h = e.noIsolation, y = e.inert, a = e.allowPinchZoom, v = e.as, g = v === void 0 ? "div" : v, b = e.gapMode, x = Lt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = p, E = An([n, t]), A = Q(Q({}, x), o);
1873
+ }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, d = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, p = e.sideCar, h = e.noRelative, y = e.noIsolation, a = e.inert, v = e.allowPinchZoom, g = e.as, w = g === void 0 ? "div" : g, b = e.gapMode, x = Tt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, A = Cn([n, t]), C = Q(Q({}, x), o);
1875
1874
  return m.createElement(
1876
1875
  m.Fragment,
1877
1876
  null,
1878
- f && m.createElement(w, { sideCar: tn, removeScrollBar: l, shards: u, noIsolation: h, inert: y, setCallbacks: i, allowPinchZoom: !!a, lockRef: n, gapMode: b }),
1879
- c ? m.cloneElement(m.Children.only(s), Q(Q({}, A), { ref: E })) : m.createElement(g, Q({}, A, { className: d, ref: E }), s)
1877
+ f && m.createElement(E, { sideCar: tn, removeScrollBar: l, shards: u, noRelative: h, noIsolation: y, inert: a, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
1878
+ s ? m.cloneElement(m.Children.only(c), Q(Q({}, C), { ref: A })) : m.createElement(w, Q({}, C, { className: d, ref: A }), c)
1880
1879
  );
1881
1880
  });
1882
1881
  Me.defaultProps = {
@@ -1888,37 +1887,37 @@ Me.classNames = {
1888
1887
  fullWidth: Ae,
1889
1888
  zeroRight: Ce
1890
1889
  };
1891
- var to = function() {
1890
+ var no = function() {
1892
1891
  if (typeof __webpack_nonce__ < "u")
1893
1892
  return __webpack_nonce__;
1894
1893
  };
1895
- function no() {
1894
+ function ro() {
1896
1895
  if (!document)
1897
1896
  return null;
1898
1897
  var e = document.createElement("style");
1899
1898
  e.type = "text/css";
1900
- var t = to();
1899
+ var t = no();
1901
1900
  return t && e.setAttribute("nonce", t), e;
1902
1901
  }
1903
- function ro(e, t) {
1902
+ function oo(e, t) {
1904
1903
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
1905
1904
  }
1906
- function oo(e) {
1905
+ function io(e) {
1907
1906
  var t = document.head || document.getElementsByTagName("head")[0];
1908
1907
  t.appendChild(e);
1909
1908
  }
1910
- var io = function() {
1909
+ var so = function() {
1911
1910
  var e = 0, t = null;
1912
1911
  return {
1913
1912
  add: function(n) {
1914
- e == 0 && (t = no()) && (ro(t, n), oo(t)), e++;
1913
+ e == 0 && (t = ro()) && (oo(t, n), io(t)), e++;
1915
1914
  },
1916
1915
  remove: function() {
1917
1916
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
1918
1917
  }
1919
1918
  };
1920
- }, so = function() {
1921
- var e = io();
1919
+ }, co = function() {
1920
+ var e = so();
1922
1921
  return function(t, n) {
1923
1922
  m.useEffect(function() {
1924
1923
  return e.add(t), function() {
@@ -1927,39 +1926,39 @@ var io = function() {
1927
1926
  }, [t && n]);
1928
1927
  };
1929
1928
  }, nn = function() {
1930
- var e = so(), t = function(n) {
1929
+ var e = co(), t = function(n) {
1931
1930
  var r = n.styles, o = n.dynamic;
1932
1931
  return e(r, o), null;
1933
1932
  };
1934
1933
  return t;
1935
- }, co = {
1934
+ }, ao = {
1936
1935
  left: 0,
1937
1936
  top: 0,
1938
1937
  right: 0,
1939
1938
  gap: 0
1940
1939
  }, $e = function(e) {
1941
1940
  return parseInt(e || "", 10) || 0;
1942
- }, ao = function(e) {
1941
+ }, lo = function(e) {
1943
1942
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
1944
1943
  return [$e(n), $e(r), $e(o)];
1945
- }, lo = function(e) {
1944
+ }, uo = function(e) {
1946
1945
  if (e === void 0 && (e = "margin"), typeof window > "u")
1947
- return co;
1948
- var t = ao(e), n = document.documentElement.clientWidth, r = window.innerWidth;
1946
+ return ao;
1947
+ var t = lo(e), n = document.documentElement.clientWidth, r = window.innerWidth;
1949
1948
  return {
1950
1949
  left: t[0],
1951
1950
  top: t[1],
1952
1951
  right: t[2],
1953
1952
  gap: Math.max(0, r - n + t[2] - t[0])
1954
1953
  };
1955
- }, uo = nn(), ie = "data-scroll-locked", fo = function(e, t, n, r) {
1956
- var o = e.left, i = e.top, c = e.right, s = e.gap;
1954
+ }, fo = nn(), oe = "data-scroll-locked", ho = function(e, t, n, r) {
1955
+ var o = e.left, i = e.top, s = e.right, c = e.gap;
1957
1956
  return n === void 0 && (n = "margin"), `
1958
- .`.concat(Jr, ` {
1957
+ .`.concat(eo, ` {
1959
1958
  overflow: hidden `).concat(r, `;
1960
- padding-right: `).concat(s, "px ").concat(r, `;
1959
+ padding-right: `).concat(c, "px ").concat(r, `;
1961
1960
  }
1962
- body[`).concat(ie, `] {
1961
+ body[`).concat(oe, `] {
1963
1962
  overflow: hidden `).concat(r, `;
1964
1963
  overscroll-behavior: contain;
1965
1964
  `).concat([
@@ -1967,21 +1966,21 @@ var io = function() {
1967
1966
  n === "margin" && `
1968
1967
  padding-left: `.concat(o, `px;
1969
1968
  padding-top: `).concat(i, `px;
1970
- padding-right: `).concat(c, `px;
1969
+ padding-right: `).concat(s, `px;
1971
1970
  margin-left:0;
1972
1971
  margin-top:0;
1973
- margin-right: `).concat(s, "px ").concat(r, `;
1972
+ margin-right: `).concat(c, "px ").concat(r, `;
1974
1973
  `),
1975
- n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
1974
+ n === "padding" && "padding-right: ".concat(c, "px ").concat(r, ";")
1976
1975
  ].filter(Boolean).join(""), `
1977
1976
  }
1978
1977
 
1979
1978
  .`).concat(Ce, ` {
1980
- right: `).concat(s, "px ").concat(r, `;
1979
+ right: `).concat(c, "px ").concat(r, `;
1981
1980
  }
1982
1981
 
1983
1982
  .`).concat(Ae, ` {
1984
- margin-right: `).concat(s, "px ").concat(r, `;
1983
+ margin-right: `).concat(c, "px ").concat(r, `;
1985
1984
  }
1986
1985
 
1987
1986
  .`).concat(Ce, " .").concat(Ce, ` {
@@ -1992,27 +1991,27 @@ var io = function() {
1992
1991
  margin-right: 0 `).concat(r, `;
1993
1992
  }
1994
1993
 
1995
- body[`).concat(ie, `] {
1996
- `).concat(eo, ": ").concat(s, `px;
1994
+ body[`).concat(oe, `] {
1995
+ `).concat(to, ": ").concat(c, `px;
1997
1996
  }
1998
1997
  `);
1999
1998
  }, St = function() {
2000
- var e = parseInt(document.body.getAttribute(ie) || "0", 10);
1999
+ var e = parseInt(document.body.getAttribute(oe) || "0", 10);
2001
2000
  return isFinite(e) ? e : 0;
2002
- }, ho = function() {
2001
+ }, mo = function() {
2003
2002
  m.useEffect(function() {
2004
- return document.body.setAttribute(ie, (St() + 1).toString()), function() {
2003
+ return document.body.setAttribute(oe, (St() + 1).toString()), function() {
2005
2004
  var e = St() - 1;
2006
- e <= 0 ? document.body.removeAttribute(ie) : document.body.setAttribute(ie, e.toString());
2005
+ e <= 0 ? document.body.removeAttribute(oe) : document.body.setAttribute(oe, e.toString());
2007
2006
  };
2008
2007
  }, []);
2009
- }, mo = function(e) {
2008
+ }, po = function(e) {
2010
2009
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2011
- ho();
2010
+ mo();
2012
2011
  var i = m.useMemo(function() {
2013
- return lo(o);
2012
+ return uo(o);
2014
2013
  }, [o]);
2015
- return m.createElement(uo, { styles: fo(i, !t, o, n ? "" : "!important") });
2014
+ return m.createElement(fo, { styles: ho(i, !t, o, n ? "" : "!important") });
2016
2015
  }, je = !1;
2017
2016
  if (typeof window < "u")
2018
2017
  try {
@@ -2025,7 +2024,7 @@ if (typeof window < "u")
2025
2024
  } catch {
2026
2025
  je = !1;
2027
2026
  }
2028
- var ne = je ? { passive: !1 } : !1, po = function(e) {
2027
+ var te = je ? { passive: !1 } : !1, vo = function(e) {
2029
2028
  return e.tagName === "TEXTAREA";
2030
2029
  }, rn = function(e, t) {
2031
2030
  if (!(e instanceof Element))
@@ -2034,11 +2033,11 @@ var ne = je ? { passive: !1 } : !1, po = function(e) {
2034
2033
  return (
2035
2034
  // not-not-scrollable
2036
2035
  n[t] !== "hidden" && // contains scroll inside self
2037
- !(n.overflowY === n.overflowX && !po(e) && n[t] === "visible")
2036
+ !(n.overflowY === n.overflowX && !vo(e) && n[t] === "visible")
2038
2037
  );
2039
- }, vo = function(e) {
2040
- return rn(e, "overflowY");
2041
2038
  }, go = function(e) {
2039
+ return rn(e, "overflowY");
2040
+ }, yo = function(e) {
2042
2041
  return rn(e, "overflowX");
2043
2042
  }, Rt = function(e, t) {
2044
2043
  var n = t.ownerDocument, r = t;
@@ -2046,21 +2045,21 @@ var ne = je ? { passive: !1 } : !1, po = function(e) {
2046
2045
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2047
2046
  var o = on(e, r);
2048
2047
  if (o) {
2049
- var i = sn(e, r), c = i[1], s = i[2];
2050
- if (c > s)
2048
+ var i = sn(e, r), s = i[1], c = i[2];
2049
+ if (s > c)
2051
2050
  return !0;
2052
2051
  }
2053
2052
  r = r.parentNode;
2054
2053
  } while (r && r !== n.body);
2055
2054
  return !1;
2056
- }, yo = function(e) {
2055
+ }, wo = function(e) {
2057
2056
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
2058
2057
  return [
2059
2058
  t,
2060
2059
  n,
2061
2060
  r
2062
2061
  ];
2063
- }, wo = function(e) {
2062
+ }, xo = function(e) {
2064
2063
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
2065
2064
  return [
2066
2065
  t,
@@ -2068,20 +2067,24 @@ var ne = je ? { passive: !1 } : !1, po = function(e) {
2068
2067
  r
2069
2068
  ];
2070
2069
  }, on = function(e, t) {
2071
- return e === "v" ? vo(t) : go(t);
2070
+ return e === "v" ? go(t) : yo(t);
2072
2071
  }, sn = function(e, t) {
2073
- return e === "v" ? yo(t) : wo(t);
2074
- }, xo = function(e, t) {
2072
+ return e === "v" ? wo(t) : xo(t);
2073
+ }, bo = function(e, t) {
2075
2074
  return e === "h" && t === "rtl" ? -1 : 1;
2076
- }, bo = function(e, t, n, r, o) {
2077
- var i = xo(e, window.getComputedStyle(t).direction), c = i * r, s = n.target, d = t.contains(s), l = !1, f = c > 0, u = 0, p = 0;
2075
+ }, Eo = function(e, t, n, r, o) {
2076
+ var i = bo(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, d = t.contains(c), l = !1, f = s > 0, u = 0, p = 0;
2078
2077
  do {
2079
- var h = sn(e, s), y = h[0], a = h[1], v = h[2], g = a - v - i * y;
2080
- (y || g) && on(e, s) && (u += g, p += y), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
2078
+ if (!c)
2079
+ break;
2080
+ var h = sn(e, c), y = h[0], a = h[1], v = h[2], g = a - v - i * y;
2081
+ (y || g) && on(e, c) && (u += g, p += y);
2082
+ var w = c.parentNode;
2083
+ c = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
2081
2084
  } while (
2082
2085
  // portaled content
2083
- !d && s !== document.body || // self content
2084
- d && (t.contains(s) || t === s)
2086
+ !d && c !== document.body || // self content
2087
+ d && (t.contains(c) || t === c)
2085
2088
  );
2086
2089
  return (f && Math.abs(u) < 1 || !f && Math.abs(p) < 1) && (l = !0), l;
2087
2090
  }, be = function(e) {
@@ -2090,22 +2093,22 @@ var ne = je ? { passive: !1 } : !1, po = function(e) {
2090
2093
  return [e.deltaX, e.deltaY];
2091
2094
  }, Ot = function(e) {
2092
2095
  return e && "current" in e ? e.current : e;
2093
- }, Eo = function(e, t) {
2096
+ }, Co = function(e, t) {
2094
2097
  return e[0] === t[0] && e[1] === t[1];
2095
- }, Co = function(e) {
2098
+ }, Ao = function(e) {
2096
2099
  return `
2097
2100
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
2098
2101
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2099
2102
  `);
2100
- }, Ao = 0, re = [];
2101
- function So(e) {
2102
- var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), o = m.useState(Ao++)[0], i = m.useState(nn)[0], c = m.useRef(e);
2103
+ }, So = 0, ne = [];
2104
+ function Ro(e) {
2105
+ var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), o = m.useState(So++)[0], i = m.useState(nn)[0], s = m.useRef(e);
2103
2106
  m.useEffect(function() {
2104
- c.current = e;
2107
+ s.current = e;
2105
2108
  }, [e]), m.useEffect(function() {
2106
2109
  if (e.inert) {
2107
2110
  document.body.classList.add("block-interactivity-".concat(o));
2108
- var a = En([e.lockRef.current], (e.shards || []).map(Ot), !0).filter(Boolean);
2111
+ var a = bn([e.lockRef.current], (e.shards || []).map(Ot), !0).filter(Boolean);
2109
2112
  return a.forEach(function(v) {
2110
2113
  return v.classList.add("allow-interactivity-".concat(o));
2111
2114
  }), function() {
@@ -2115,10 +2118,10 @@ function So(e) {
2115
2118
  };
2116
2119
  }
2117
2120
  }, [e.inert, e.lockRef.current, e.shards]);
2118
- var s = m.useCallback(function(a, v) {
2121
+ var c = m.useCallback(function(a, v) {
2119
2122
  if ("touches" in a && a.touches.length === 2 || a.type === "wheel" && a.ctrlKey)
2120
- return !c.current.allowPinchZoom;
2121
- var g = be(a), b = n.current, x = "deltaX" in a ? a.deltaX : b[0] - g[0], w = "deltaY" in a ? a.deltaY : b[1] - g[1], E, A = a.target, C = Math.abs(x) > Math.abs(w) ? "h" : "v";
2123
+ return !s.current.allowPinchZoom;
2124
+ var g = be(a), w = n.current, b = "deltaX" in a ? a.deltaX : w[0] - g[0], x = "deltaY" in a ? a.deltaY : w[1] - g[1], E, A = a.target, C = Math.abs(b) > Math.abs(x) ? "h" : "v";
2122
2125
  if ("touches" in a && C === "h" && A.type === "range")
2123
2126
  return !1;
2124
2127
  var R = Rt(C, A);
@@ -2126,81 +2129,81 @@ function So(e) {
2126
2129
  return !0;
2127
2130
  if (R ? E = C : (E = C === "v" ? "h" : "v", R = Rt(C, A)), !R)
2128
2131
  return !1;
2129
- if (!r.current && "changedTouches" in a && (x || w) && (r.current = E), !E)
2132
+ if (!r.current && "changedTouches" in a && (b || x) && (r.current = E), !E)
2130
2133
  return !0;
2131
- var O = r.current || E;
2132
- return bo(O, v, a, O === "h" ? x : w);
2134
+ var T = r.current || E;
2135
+ return Eo(T, v, a, T === "h" ? b : x);
2133
2136
  }, []), d = m.useCallback(function(a) {
2134
2137
  var v = a;
2135
- if (!(!re.length || re[re.length - 1] !== i)) {
2136
- var g = "deltaY" in v ? Pt(v) : be(v), b = t.current.filter(function(E) {
2137
- return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Eo(E.delta, g);
2138
+ if (!(!ne.length || ne[ne.length - 1] !== i)) {
2139
+ var g = "deltaY" in v ? Pt(v) : be(v), w = t.current.filter(function(E) {
2140
+ return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Co(E.delta, g);
2138
2141
  })[0];
2139
- if (b && b.should) {
2142
+ if (w && w.should) {
2140
2143
  v.cancelable && v.preventDefault();
2141
2144
  return;
2142
2145
  }
2143
- if (!b) {
2144
- var x = (c.current.shards || []).map(Ot).filter(Boolean).filter(function(E) {
2146
+ if (!w) {
2147
+ var b = (s.current.shards || []).map(Ot).filter(Boolean).filter(function(E) {
2145
2148
  return E.contains(v.target);
2146
- }), w = x.length > 0 ? s(v, x[0]) : !c.current.noIsolation;
2147
- w && v.cancelable && v.preventDefault();
2149
+ }), x = b.length > 0 ? c(v, b[0]) : !s.current.noIsolation;
2150
+ x && v.cancelable && v.preventDefault();
2148
2151
  }
2149
2152
  }
2150
- }, []), l = m.useCallback(function(a, v, g, b) {
2151
- var x = { name: a, delta: v, target: g, should: b, shadowParent: Ro(g) };
2152
- t.current.push(x), setTimeout(function() {
2153
- t.current = t.current.filter(function(w) {
2154
- return w !== x;
2153
+ }, []), l = m.useCallback(function(a, v, g, w) {
2154
+ var b = { name: a, delta: v, target: g, should: w, shadowParent: Po(g) };
2155
+ t.current.push(b), setTimeout(function() {
2156
+ t.current = t.current.filter(function(x) {
2157
+ return x !== b;
2155
2158
  });
2156
2159
  }, 1);
2157
2160
  }, []), f = m.useCallback(function(a) {
2158
2161
  n.current = be(a), r.current = void 0;
2159
2162
  }, []), u = m.useCallback(function(a) {
2160
- l(a.type, Pt(a), a.target, s(a, e.lockRef.current));
2163
+ l(a.type, Pt(a), a.target, c(a, e.lockRef.current));
2161
2164
  }, []), p = m.useCallback(function(a) {
2162
- l(a.type, be(a), a.target, s(a, e.lockRef.current));
2165
+ l(a.type, be(a), a.target, c(a, e.lockRef.current));
2163
2166
  }, []);
2164
2167
  m.useEffect(function() {
2165
- return re.push(i), e.setCallbacks({
2168
+ return ne.push(i), e.setCallbacks({
2166
2169
  onScrollCapture: u,
2167
2170
  onWheelCapture: u,
2168
2171
  onTouchMoveCapture: p
2169
- }), document.addEventListener("wheel", d, ne), document.addEventListener("touchmove", d, ne), document.addEventListener("touchstart", f, ne), function() {
2170
- re = re.filter(function(a) {
2172
+ }), document.addEventListener("wheel", d, te), document.addEventListener("touchmove", d, te), document.addEventListener("touchstart", f, te), function() {
2173
+ ne = ne.filter(function(a) {
2171
2174
  return a !== i;
2172
- }), document.removeEventListener("wheel", d, ne), document.removeEventListener("touchmove", d, ne), document.removeEventListener("touchstart", f, ne);
2175
+ }), document.removeEventListener("wheel", d, te), document.removeEventListener("touchmove", d, te), document.removeEventListener("touchstart", f, te);
2173
2176
  };
2174
2177
  }, []);
2175
2178
  var h = e.removeScrollBar, y = e.inert;
2176
2179
  return m.createElement(
2177
2180
  m.Fragment,
2178
2181
  null,
2179
- y ? m.createElement(i, { styles: Co(o) }) : null,
2180
- h ? m.createElement(mo, { gapMode: e.gapMode }) : null
2182
+ y ? m.createElement(i, { styles: Ao(o) }) : null,
2183
+ h ? m.createElement(po, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
2181
2184
  );
2182
2185
  }
2183
- function Ro(e) {
2186
+ function Po(e) {
2184
2187
  for (var t = null; e !== null; )
2185
2188
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
2186
2189
  return t;
2187
2190
  }
2188
- const Po = Sn(tn, So);
2189
- var Oo = m.forwardRef(function(e, t) {
2190
- return m.createElement(Me, Q({}, e, { ref: t, sideCar: Po }));
2191
+ const Oo = An(tn, Ro);
2192
+ var To = m.forwardRef(function(e, t) {
2193
+ return m.createElement(Me, Q({}, e, { ref: t, sideCar: Oo }));
2191
2194
  });
2192
- Oo.classNames = Me.classNames;
2195
+ To.classNames = Me.classNames;
2193
2196
  export {
2194
- _o as A,
2195
- Ho as C,
2197
+ Ho as A,
2198
+ $o as C,
2196
2199
  Tn as D,
2197
- Wn as F,
2198
- Io as R,
2199
- se as a,
2200
- No as b,
2201
- Bo as c,
2202
- Oo as d,
2203
- $o as e,
2204
- Vo as h,
2205
- Wo as u
2200
+ Fn as F,
2201
+ _o as R,
2202
+ ie as a,
2203
+ Wo as b,
2204
+ Io as c,
2205
+ To as d,
2206
+ Vo as e,
2207
+ zo as h,
2208
+ Bo as u
2206
2209
  };