@purpurds/tooltip 7.13.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import { jsxs as be, jsx as x, Fragment as Sn } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
- import { forwardRef as Tt, useLayoutEffect as Nn, useEffect as Dn, useState as Ln, Children as Mn } from "react";
3
+ import { forwardRef as Tt, useLayoutEffect as Nn, useEffect as Dn, useState as Ln, Children as $n } from "react";
4
4
  import * as St from "react-dom";
5
- import $n from "react-dom";
5
+ import Mn from "react-dom";
6
6
  const kn = {
7
7
  LG: "lg"
8
8
  };
@@ -49,7 +49,7 @@ function In() {
49
49
  }(st)), st.exports;
50
50
  }
51
51
  var Bn = In();
52
- const Wn = /* @__PURE__ */ Fn(Bn), Hn = "_rotate_12t9p_1", jn = "_dash_12t9p_1", qn = {
52
+ const Wn = /* @__PURE__ */ Fn(Bn), Hn = "_rotate_12t9p_1", jn = "_dash_12t9p_1", zn = {
53
53
  "purpur-spinner": "_purpur-spinner_12t9p_2",
54
54
  rotate: Hn,
55
55
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
@@ -61,12 +61,12 @@ const Wn = /* @__PURE__ */ Fn(Bn), Hn = "_rotate_12t9p_1", jn = "_dash_12t9p_1",
61
61
  dash: jn,
62
62
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
63
63
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
64
- }, ct = Wn.bind(qn), ue = "purpur-spinner", zn = {
64
+ }, ct = Wn.bind(zn), ue = "purpur-spinner", Vn = {
65
65
  SM: "sm"
66
- }, Vn = ({
66
+ }, Un = ({
67
67
  disabled: e = !1,
68
68
  negative: t = !1,
69
- size: n = zn.SM,
69
+ size: n = Vn.SM,
70
70
  ...o
71
71
  }) => /* @__PURE__ */ x("div", { className: ct(ue, `${ue}--${n}`), ...o, children: /* @__PURE__ */ x("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ x(
72
72
  "circle",
@@ -80,7 +80,7 @@ const Wn = /* @__PURE__ */ Fn(Bn), Hn = "_rotate_12t9p_1", jn = "_dash_12t9p_1",
80
80
  r: "20"
81
81
  }
82
82
  ) }) });
83
- function Un(e) {
83
+ function Yn(e) {
84
84
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
85
85
  }
86
86
  var lt = { exports: {} };
@@ -90,7 +90,7 @@ var lt = { exports: {} };
90
90
  http://jedwatson.github.io/classnames
91
91
  */
92
92
  var ut;
93
- function Yn() {
93
+ function Gn() {
94
94
  return ut || (ut = 1, function(e) {
95
95
  (function() {
96
96
  var t = {}.hasOwnProperty;
@@ -122,29 +122,29 @@ function Yn() {
122
122
  })();
123
123
  }(lt)), lt.exports;
124
124
  }
125
- var Gn = Yn();
126
- const Xn = /* @__PURE__ */ Un(Gn), Zn = {
127
- "purpur-button": "_purpur-button_w455q_1",
128
- "purpur-button--xs": "_purpur-button--xs_w455q_33",
129
- "purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
130
- "purpur-button--sm": "_purpur-button--sm_w455q_39",
131
- "purpur-button--md": "_purpur-button--md_w455q_45",
132
- "purpur-button--lg": "_purpur-button--lg_w455q_51",
133
- "purpur-button--full-width": "_purpur-button--full-width_w455q_57",
134
- "purpur-button--primary": "_purpur-button--primary_w455q_60",
135
- "purpur-button--disabled": "_purpur-button--disabled_w455q_64",
136
- "purpur-button--primary-negative": "_purpur-button--primary-negative_w455q_70",
137
- "purpur-button--secondary": "_purpur-button--secondary_w455q_82",
138
- "purpur-button--secondary-negative": "_purpur-button--secondary-negative_w455q_93",
139
- "purpur-button--expressive": "_purpur-button--expressive_w455q_104",
140
- "purpur-button--expressive-negative": "_purpur-button--expressive-negative_w455q_114",
141
- "purpur-button--negative": "_purpur-button--negative_w455q_126",
142
- "purpur-button--destructive": "_purpur-button--destructive_w455q_133",
143
- "purpur-button--destructive-negative": "_purpur-button--destructive-negative_w455q_143",
144
- "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_w455q_153",
145
- "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
146
- "purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
147
- "purpur-button--text": "_purpur-button--text_w455q_181"
125
+ var qn = Gn();
126
+ const Xn = /* @__PURE__ */ Yn(qn), Zn = {
127
+ "purpur-button": "_purpur-button_1goi7_1",
128
+ "purpur-button--xs": "_purpur-button--xs_1goi7_33",
129
+ "purpur-button--icon-only": "_purpur-button--icon-only_1goi7_36",
130
+ "purpur-button--sm": "_purpur-button--sm_1goi7_39",
131
+ "purpur-button--md": "_purpur-button--md_1goi7_45",
132
+ "purpur-button--lg": "_purpur-button--lg_1goi7_51",
133
+ "purpur-button--full-width": "_purpur-button--full-width_1goi7_57",
134
+ "purpur-button--primary": "_purpur-button--primary_1goi7_60",
135
+ "purpur-button--disabled": "_purpur-button--disabled_1goi7_64",
136
+ "purpur-button--primary-negative": "_purpur-button--primary-negative_1goi7_70",
137
+ "purpur-button--secondary": "_purpur-button--secondary_1goi7_82",
138
+ "purpur-button--secondary-negative": "_purpur-button--secondary-negative_1goi7_93",
139
+ "purpur-button--expressive": "_purpur-button--expressive_1goi7_104",
140
+ "purpur-button--expressive-negative": "_purpur-button--expressive-negative_1goi7_114",
141
+ "purpur-button--negative": "_purpur-button--negative_1goi7_126",
142
+ "purpur-button--destructive": "_purpur-button--destructive_1goi7_133",
143
+ "purpur-button--destructive-negative": "_purpur-button--destructive-negative_1goi7_143",
144
+ "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_1goi7_153",
145
+ "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1goi7_166",
146
+ "purpur-button--text-negative": "_purpur-button--text-negative_1goi7_181",
147
+ "purpur-button--text": "_purpur-button--text_1goi7_181"
148
148
  }, Kn = {
149
149
  TERTIARY_PURPLE: "tertiary-purple"
150
150
  }, Jn = Xn.bind(Zn), J = "purpur-button", Nt = Tt(
@@ -177,25 +177,25 @@ const Xn = /* @__PURE__ */ Un(Gn), Zn = {
177
177
  [`${J}--disabled`]: n || r
178
178
  },
179
179
  t
180
- ), m = (v) => {
180
+ ), g = (v) => {
181
181
  n || r ? v.preventDefault() : a && a(v);
182
- }, g = !!d["aria-disabled"] || n || r;
182
+ }, m = !!d["aria-disabled"] || n || r;
183
183
  return /* @__PURE__ */ be(
184
184
  "button",
185
185
  {
186
186
  className: p,
187
187
  type: f,
188
188
  ref: h,
189
- "aria-disabled": g,
190
- onClick: m,
189
+ "aria-disabled": m,
190
+ onClick: g,
191
191
  ...d,
192
192
  children: [
193
193
  r && /* @__PURE__ */ x(
194
- Vn,
194
+ Un,
195
195
  {
196
196
  size: c === kn.LG ? "xs" : "xxs",
197
197
  negative: s,
198
- disabled: g
198
+ disabled: m
199
199
  }
200
200
  ),
201
201
  " ",
@@ -289,9 +289,9 @@ var ht = { exports: {} };
289
289
  Licensed under the MIT License (MIT), see
290
290
  http://jedwatson.github.io/classnames
291
291
  */
292
- var mt;
292
+ var gt;
293
293
  function fr() {
294
- return mt || (mt = 1, function(e) {
294
+ return gt || (gt = 1, function(e) {
295
295
  (function() {
296
296
  var t = {}.hasOwnProperty;
297
297
  function n() {
@@ -338,33 +338,33 @@ const dr = /* @__PURE__ */ ur(pr), hr = {
338
338
  "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
339
339
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
340
340
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
341
- }, mr = dr.bind(hr), Mt = {
341
+ }, gr = dr.bind(hr), $t = {
342
342
  PARAGRAPH100: "paragraph-100"
343
- }, fe = "purpur-paragraph", $t = ({
343
+ }, fe = "purpur-paragraph", Mt = ({
344
344
  children: e,
345
345
  className: t,
346
346
  disabled: n,
347
347
  enableHyphenation: o = !1,
348
348
  negative: i = !1,
349
- variant: r = Mt.PARAGRAPH100,
349
+ variant: r = $t.PARAGRAPH100,
350
350
  ...s
351
351
  }) => {
352
- const a = mr(t, fe, `${fe}--${r}`, {
352
+ const a = gr(t, fe, `${fe}--${r}`, {
353
353
  [`${fe}--hyphens`]: o,
354
354
  [`${fe}--disabled`]: n,
355
355
  [`${fe}--negative`]: i
356
356
  });
357
357
  return /* @__PURE__ */ x("p", { ...s, className: a, children: e });
358
358
  };
359
- $t.displayName = "Paragraph";
360
- const gr = "400ms";
361
- function z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
359
+ Mt.displayName = "Paragraph";
360
+ const mr = "400ms";
361
+ function V(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
362
362
  return function(i) {
363
363
  if (e == null || e(i), n === !1 || !i.defaultPrevented)
364
364
  return t == null ? void 0 : t(i);
365
365
  };
366
366
  }
367
- function gt(e, t) {
367
+ function mt(e, t) {
368
368
  if (typeof e == "function")
369
369
  return e(t);
370
370
  e != null && (e.current = t);
@@ -373,14 +373,14 @@ function kt(...e) {
373
373
  return (t) => {
374
374
  let n = !1;
375
375
  const o = e.map((i) => {
376
- const r = gt(i, t);
376
+ const r = mt(i, t);
377
377
  return !n && typeof r == "function" && (n = !0), r;
378
378
  });
379
379
  if (n)
380
380
  return () => {
381
381
  for (let i = 0; i < o.length; i++) {
382
382
  const r = o[i];
383
- typeof r == "function" ? r() : gt(e[i], null);
383
+ typeof r == "function" ? r() : mt(e[i], null);
384
384
  }
385
385
  };
386
386
  };
@@ -395,14 +395,14 @@ function Ft(e, t = []) {
395
395
  n = [...n, s];
396
396
  const l = (d) => {
397
397
  var y;
398
- const { scope: h, children: p, ...m } = d, g = ((y = h == null ? void 0 : h[e]) == null ? void 0 : y[c]) || a, v = u.useMemo(() => m, Object.values(m));
399
- return /* @__PURE__ */ x(g.Provider, { value: v, children: p });
398
+ const { scope: h, children: p, ...g } = d, m = ((y = h == null ? void 0 : h[e]) == null ? void 0 : y[c]) || a, v = u.useMemo(() => g, Object.values(g));
399
+ return /* @__PURE__ */ x(m.Provider, { value: v, children: p });
400
400
  };
401
401
  l.displayName = r + "Provider";
402
402
  function f(d, h) {
403
- var g;
404
- const p = ((g = h == null ? void 0 : h[e]) == null ? void 0 : g[c]) || a, m = u.useContext(p);
405
- if (m) return m;
403
+ var m;
404
+ const p = ((m = h == null ? void 0 : h[e]) == null ? void 0 : m[c]) || a, g = u.useContext(p);
405
+ if (g) return g;
406
406
  if (s !== void 0) return s;
407
407
  throw new Error(`\`${d}\` must be used within \`${r}\``);
408
408
  }
@@ -442,12 +442,12 @@ var It = u.forwardRef((e, t) => {
442
442
  const { children: n, ...o } = e, i = u.Children.toArray(n), r = i.find(yr);
443
443
  if (r) {
444
444
  const s = r.props.children, a = i.map((c) => c === r ? u.Children.count(s) > 1 ? u.Children.only(null) : u.isValidElement(s) ? s.props.children : null : c);
445
- return /* @__PURE__ */ x($e, { ...o, ref: t, children: u.isValidElement(s) ? u.cloneElement(s, void 0, a) : null });
445
+ return /* @__PURE__ */ x(Me, { ...o, ref: t, children: u.isValidElement(s) ? u.cloneElement(s, void 0, a) : null });
446
446
  }
447
- return /* @__PURE__ */ x($e, { ...o, ref: t, children: n });
447
+ return /* @__PURE__ */ x(Me, { ...o, ref: t, children: n });
448
448
  });
449
449
  It.displayName = "Slot";
450
- var $e = u.forwardRef((e, t) => {
450
+ var Me = u.forwardRef((e, t) => {
451
451
  const { children: n, ...o } = e;
452
452
  if (u.isValidElement(n)) {
453
453
  const i = xr(n), r = wr(o, n.props);
@@ -455,7 +455,7 @@ var $e = u.forwardRef((e, t) => {
455
455
  }
456
456
  return u.Children.count(n) > 1 ? u.Children.only(null) : null;
457
457
  });
458
- $e.displayName = "SlotClone";
458
+ Me.displayName = "SlotClone";
459
459
  var Bt = ({ children: e }) => /* @__PURE__ */ x(Sn, { children: e });
460
460
  function yr(e) {
461
461
  return u.isValidElement(e) && e.type === Bt;
@@ -534,7 +534,7 @@ var Pr = "DismissableLayer", ke = "dismissableLayer.update", Cr = "dismissableLa
534
534
  onInteractOutside: s,
535
535
  onDismiss: a,
536
536
  ...c
537
- } = e, l = u.useContext(Wt), [f, d] = u.useState(null), h = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = u.useState({}), m = te(t, (P) => d(P)), g = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(v), w = f ? g.indexOf(f) : -1, A = l.layersWithOutsidePointerEventsDisabled.size > 0, b = w >= y, _ = Tr((P) => {
537
+ } = e, l = u.useContext(Wt), [f, d] = u.useState(null), h = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = u.useState({}), g = te(t, (P) => d(P)), m = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = m.indexOf(v), w = f ? m.indexOf(f) : -1, A = l.layersWithOutsidePointerEventsDisabled.size > 0, b = w >= y, _ = Tr((P) => {
538
538
  const O = P.target, D = [...l.branches].some((R) => R.contains(O));
539
539
  !b || D || (i == null || i(P), s == null || s(P), P.defaultPrevented || a == null || a());
540
540
  }, h), C = Sr((P) => {
@@ -557,14 +557,14 @@ var Pr = "DismissableLayer", ke = "dismissableLayer.update", Cr = "dismissableLa
557
557
  K.div,
558
558
  {
559
559
  ...c,
560
- ref: m,
560
+ ref: g,
561
561
  style: {
562
562
  pointerEvents: A ? b ? "auto" : "none" : void 0,
563
563
  ...e.style
564
564
  },
565
- onFocusCapture: z(e.onFocusCapture, C.onFocusCapture),
566
- onBlurCapture: z(e.onBlurCapture, C.onBlurCapture),
567
- onPointerDownCapture: z(
565
+ onFocusCapture: V(e.onFocusCapture, C.onFocusCapture),
566
+ onBlurCapture: V(e.onBlurCapture, C.onBlurCapture),
567
+ onPointerDownCapture: V(
568
568
  e.onPointerDownCapture,
569
569
  _.onPointerDownCapture
570
570
  )
@@ -645,10 +645,10 @@ function Lr(e) {
645
645
  n((o) => o ?? String(Dr++));
646
646
  }, [e]), t ? `radix-${t}` : "";
647
647
  }
648
- const Mr = ["top", "right", "bottom", "left"], j = Math.min, I = Math.max, _e = Math.round, ye = Math.floor, G = (e) => ({
648
+ const $r = ["top", "right", "bottom", "left"], j = Math.min, I = Math.max, _e = Math.round, ye = Math.floor, q = (e) => ({
649
649
  x: e,
650
650
  y: e
651
- }), $r = {
651
+ }), Mr = {
652
652
  left: "right",
653
653
  right: "left",
654
654
  bottom: "top",
@@ -660,10 +660,10 @@ const Mr = ["top", "right", "bottom", "left"], j = Math.min, I = Math.max, _e =
660
660
  function Fe(e, t, n) {
661
661
  return I(e, j(t, n));
662
662
  }
663
- function V(e, t) {
663
+ function U(e, t) {
664
664
  return typeof e == "function" ? e(t) : e;
665
665
  }
666
- function U(e) {
666
+ function Y(e) {
667
667
  return e.split("-")[0];
668
668
  }
669
669
  function ae(e) {
@@ -672,18 +672,18 @@ function ae(e) {
672
672
  function je(e) {
673
673
  return e === "x" ? "y" : "x";
674
674
  }
675
- function qe(e) {
675
+ function ze(e) {
676
676
  return e === "y" ? "height" : "width";
677
677
  }
678
678
  function X(e) {
679
- return ["top", "bottom"].includes(U(e)) ? "y" : "x";
679
+ return ["top", "bottom"].includes(Y(e)) ? "y" : "x";
680
680
  }
681
- function ze(e) {
681
+ function Ve(e) {
682
682
  return je(X(e));
683
683
  }
684
684
  function Fr(e, t, n) {
685
685
  n === void 0 && (n = !1);
686
- const o = ae(e), i = ze(e), r = qe(i);
686
+ const o = ae(e), i = Ve(e), r = ze(i);
687
687
  let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
688
688
  return t.reference[r] > t.floating[r] && (s = Ae(s)), [s, Ae(s)];
689
689
  }
@@ -709,11 +709,11 @@ function Br(e, t, n) {
709
709
  }
710
710
  function Wr(e, t, n, o) {
711
711
  const i = ae(e);
712
- let r = Br(U(e), n === "start", o);
712
+ let r = Br(Y(e), n === "start", o);
713
713
  return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Ie)))), r;
714
714
  }
715
715
  function Ae(e) {
716
- return e.replace(/left|right|bottom|top/g, (t) => $r[t]);
716
+ return e.replace(/left|right|bottom|top/g, (t) => Mr[t]);
717
717
  }
718
718
  function Hr(e) {
719
719
  return {
@@ -724,7 +724,7 @@ function Hr(e) {
724
724
  ...e
725
725
  };
726
726
  }
727
- function qt(e) {
727
+ function zt(e) {
728
728
  return typeof e != "number" ? Hr(e) : {
729
729
  top: e,
730
730
  right: e,
@@ -755,7 +755,7 @@ function wt(e, t, n) {
755
755
  reference: o,
756
756
  floating: i
757
757
  } = e;
758
- const r = X(t), s = ze(t), a = qe(s), c = U(t), l = r === "y", f = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, h = o[a] / 2 - i[a] / 2;
758
+ const r = X(t), s = Ve(t), a = ze(s), c = Y(t), l = r === "y", f = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, h = o[a] / 2 - i[a] / 2;
759
759
  let p;
760
760
  switch (c) {
761
761
  case "top":
@@ -812,12 +812,12 @@ const jr = async (e, t, n) => {
812
812
  }), {
813
813
  x: f,
814
814
  y: d
815
- } = wt(l, o, c), h = o, p = {}, m = 0;
816
- for (let g = 0; g < a.length; g++) {
815
+ } = wt(l, o, c), h = o, p = {}, g = 0;
816
+ for (let m = 0; m < a.length; m++) {
817
817
  const {
818
818
  name: v,
819
819
  fn: y
820
- } = a[g], {
820
+ } = a[m], {
821
821
  x: w,
822
822
  y: A,
823
823
  data: b,
@@ -842,14 +842,14 @@ const jr = async (e, t, n) => {
842
842
  ...p[v],
843
843
  ...b
844
844
  }
845
- }, _ && m <= 50 && (m++, typeof _ == "object" && (_.placement && (h = _.placement), _.rects && (l = _.rects === !0 ? await s.getElementRects({
845
+ }, _ && g <= 50 && (g++, typeof _ == "object" && (_.placement && (h = _.placement), _.rects && (l = _.rects === !0 ? await s.getElementRects({
846
846
  reference: e,
847
847
  floating: t,
848
848
  strategy: i
849
849
  }) : _.rects), {
850
850
  x: f,
851
851
  y: d
852
- } = wt(l, h, c)), g = -1);
852
+ } = wt(l, h, c)), m = -1);
853
853
  }
854
854
  return {
855
855
  x: f,
@@ -875,7 +875,7 @@ async function pe(e, t) {
875
875
  elementContext: d = "floating",
876
876
  altBoundary: h = !1,
877
877
  padding: p = 0
878
- } = V(t, e), m = qt(p), v = a[h ? d === "floating" ? "reference" : "floating" : d], y = Pe(await r.getClippingRect({
878
+ } = U(t, e), g = zt(p), v = a[h ? d === "floating" ? "reference" : "floating" : d], y = Pe(await r.getClippingRect({
879
879
  element: (n = await (r.isElement == null ? void 0 : r.isElement(v))) == null || n ? v : v.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
880
880
  boundary: l,
881
881
  rootBoundary: f,
@@ -898,13 +898,13 @@ async function pe(e, t) {
898
898
  strategy: c
899
899
  }) : w);
900
900
  return {
901
- top: (y.top - _.top + m.top) / b.y,
902
- bottom: (_.bottom - y.bottom + m.bottom) / b.y,
903
- left: (y.left - _.left + m.left) / b.x,
904
- right: (_.right - y.right + m.right) / b.x
901
+ top: (y.top - _.top + g.top) / b.y,
902
+ bottom: (_.bottom - y.bottom + g.bottom) / b.y,
903
+ left: (y.left - _.left + g.left) / b.x,
904
+ right: (_.right - y.right + g.right) / b.x
905
905
  };
906
906
  }
907
- const qr = (e) => ({
907
+ const zr = (e) => ({
908
908
  name: "arrow",
909
909
  options: e,
910
910
  async fn(t) {
@@ -919,16 +919,16 @@ const qr = (e) => ({
919
919
  } = t, {
920
920
  element: l,
921
921
  padding: f = 0
922
- } = V(e, t) || {};
922
+ } = U(e, t) || {};
923
923
  if (l == null)
924
924
  return {};
925
- const d = qt(f), h = {
925
+ const d = zt(f), h = {
926
926
  x: n,
927
927
  y: o
928
- }, p = ze(i), m = qe(p), g = await s.getDimensions(l), v = p === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", A = v ? "clientHeight" : "clientWidth", b = r.reference[m] + r.reference[p] - h[p] - r.floating[m], _ = h[p] - r.reference[p], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
928
+ }, p = Ve(i), g = ze(p), m = await s.getDimensions(l), v = p === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", A = v ? "clientHeight" : "clientWidth", b = r.reference[g] + r.reference[p] - h[p] - r.floating[g], _ = h[p] - r.reference[p], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
929
929
  let P = C ? C[A] : 0;
930
- (!P || !await (s.isElement == null ? void 0 : s.isElement(C))) && (P = a.floating[A] || r.floating[m]);
931
- const O = b / 2 - _ / 2, D = P / 2 - g[m] / 2 - 1, R = j(d[y], D), M = j(d[w], D), $ = R, k = P - g[m] - M, T = P / 2 - g[m] / 2 + O, L = Fe($, T, k), F = !c.arrow && ae(i) != null && T !== L && r.reference[m] / 2 - (T < $ ? R : M) - g[m] / 2 < 0, E = F ? T < $ ? T - $ : T - k : 0;
930
+ (!P || !await (s.isElement == null ? void 0 : s.isElement(C))) && (P = a.floating[A] || r.floating[g]);
931
+ const O = b / 2 - _ / 2, D = P / 2 - m[g] / 2 - 1, R = j(d[y], D), $ = j(d[w], D), M = R, k = P - m[g] - $, T = P / 2 - m[g] / 2 + O, L = Fe(M, T, k), F = !c.arrow && ae(i) != null && T !== L && r.reference[g] / 2 - (T < M ? R : $) - m[g] / 2 < 0, E = F ? T < M ? T - M : T - k : 0;
932
932
  return {
933
933
  [p]: h[p] + E,
934
934
  data: {
@@ -941,7 +941,7 @@ const qr = (e) => ({
941
941
  reset: F
942
942
  };
943
943
  }
944
- }), zr = function(e) {
944
+ }), Vr = function(e) {
945
945
  return e === void 0 && (e = {}), {
946
946
  name: "flip",
947
947
  options: e,
@@ -959,14 +959,14 @@ const qr = (e) => ({
959
959
  crossAxis: d = !0,
960
960
  fallbackPlacements: h,
961
961
  fallbackStrategy: p = "bestFit",
962
- fallbackAxisSideDirection: m = "none",
963
- flipAlignment: g = !0,
962
+ fallbackAxisSideDirection: g = "none",
963
+ flipAlignment: m = !0,
964
964
  ...v
965
- } = V(e, t);
965
+ } = U(e, t);
966
966
  if ((n = r.arrow) != null && n.alignmentOffset)
967
967
  return {};
968
- const y = U(i), w = X(a), A = U(a) === a, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), _ = h || (A || !g ? [Ae(a)] : Ir(a)), C = m !== "none";
969
- !h && C && _.push(...Wr(a, g, m, b));
968
+ const y = Y(i), w = X(a), A = Y(a) === a, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), _ = h || (A || !m ? [Ae(a)] : Ir(a)), C = g !== "none";
969
+ !h && C && _.push(...Wr(a, m, g, b));
970
970
  const P = [a, ..._], O = await pe(t, v), D = [];
971
971
  let R = ((o = r.flip) == null ? void 0 : o.overflows) || [];
972
972
  if (f && D.push(O[y]), d) {
@@ -977,8 +977,8 @@ const qr = (e) => ({
977
977
  placement: i,
978
978
  overflows: D
979
979
  }], !D.every((T) => T <= 0)) {
980
- var M, $;
981
- const T = (((M = r.flip) == null ? void 0 : M.index) || 0) + 1, L = P[T];
980
+ var $, M;
981
+ const T = ((($ = r.flip) == null ? void 0 : $.index) || 0) + 1, L = P[T];
982
982
  if (L)
983
983
  return {
984
984
  data: {
@@ -989,7 +989,7 @@ const qr = (e) => ({
989
989
  placement: L
990
990
  }
991
991
  };
992
- let F = ($ = R.filter((E) => E.overflows[0] <= 0).sort((E, S) => E.overflows[1] - S.overflows[1])[0]) == null ? void 0 : $.placement;
992
+ let F = (M = R.filter((E) => E.overflows[0] <= 0).sort((E, S) => E.overflows[1] - S.overflows[1])[0]) == null ? void 0 : M.placement;
993
993
  if (!F)
994
994
  switch (p) {
995
995
  case "bestFit": {
@@ -1030,9 +1030,9 @@ function xt(e, t) {
1030
1030
  };
1031
1031
  }
1032
1032
  function bt(e) {
1033
- return Mr.some((t) => e[t] >= 0);
1033
+ return $r.some((t) => e[t] >= 0);
1034
1034
  }
1035
- const Vr = function(e) {
1035
+ const Ur = function(e) {
1036
1036
  return e === void 0 && (e = {}), {
1037
1037
  name: "hide",
1038
1038
  options: e,
@@ -1042,7 +1042,7 @@ const Vr = function(e) {
1042
1042
  } = t, {
1043
1043
  strategy: o = "referenceHidden",
1044
1044
  ...i
1045
- } = V(e, t);
1045
+ } = U(e, t);
1046
1046
  switch (o) {
1047
1047
  case "referenceHidden": {
1048
1048
  const r = await pe(t, {
@@ -1074,16 +1074,16 @@ const Vr = function(e) {
1074
1074
  }
1075
1075
  };
1076
1076
  };
1077
- async function Ur(e, t) {
1077
+ async function Yr(e, t) {
1078
1078
  const {
1079
1079
  placement: n,
1080
1080
  platform: o,
1081
1081
  elements: i
1082
- } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = U(n), a = ae(n), c = X(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, d = V(t, e);
1082
+ } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Y(n), a = ae(n), c = X(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, d = U(t, e);
1083
1083
  let {
1084
1084
  mainAxis: h,
1085
1085
  crossAxis: p,
1086
- alignmentAxis: m
1086
+ alignmentAxis: g
1087
1087
  } = typeof d == "number" ? {
1088
1088
  mainAxis: d,
1089
1089
  crossAxis: 0,
@@ -1094,7 +1094,7 @@ async function Ur(e, t) {
1094
1094
  alignmentAxis: null,
1095
1095
  ...d
1096
1096
  };
1097
- return a && typeof m == "number" && (p = a === "end" ? m * -1 : m), c ? {
1097
+ return a && typeof g == "number" && (p = a === "end" ? g * -1 : g), c ? {
1098
1098
  x: p * f,
1099
1099
  y: h * l
1100
1100
  } : {
@@ -1102,7 +1102,7 @@ async function Ur(e, t) {
1102
1102
  y: p * f
1103
1103
  };
1104
1104
  }
1105
- const Yr = function(e) {
1105
+ const Gr = function(e) {
1106
1106
  return e === void 0 && (e = 0), {
1107
1107
  name: "offset",
1108
1108
  options: e,
@@ -1113,7 +1113,7 @@ const Yr = function(e) {
1113
1113
  y: r,
1114
1114
  placement: s,
1115
1115
  middlewareData: a
1116
- } = t, c = await Ur(t, e);
1116
+ } = t, c = await Yr(t, e);
1117
1117
  return s === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
1118
1118
  x: i + c.x,
1119
1119
  y: r + c.y,
@@ -1124,7 +1124,7 @@ const Yr = function(e) {
1124
1124
  };
1125
1125
  }
1126
1126
  };
1127
- }, Gr = function(e) {
1127
+ }, qr = function(e) {
1128
1128
  return e === void 0 && (e = {}), {
1129
1129
  name: "shift",
1130
1130
  options: e,
@@ -1149,29 +1149,29 @@ const Yr = function(e) {
1149
1149
  }
1150
1150
  },
1151
1151
  ...c
1152
- } = V(e, t), l = {
1152
+ } = U(e, t), l = {
1153
1153
  x: n,
1154
1154
  y: o
1155
- }, f = await pe(t, c), d = X(U(i)), h = je(d);
1156
- let p = l[h], m = l[d];
1155
+ }, f = await pe(t, c), d = X(Y(i)), h = je(d);
1156
+ let p = l[h], g = l[d];
1157
1157
  if (r) {
1158
1158
  const v = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", w = p + f[v], A = p - f[y];
1159
1159
  p = Fe(w, p, A);
1160
1160
  }
1161
1161
  if (s) {
1162
- const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = m + f[v], A = m - f[y];
1163
- m = Fe(w, m, A);
1162
+ const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = g + f[v], A = g - f[y];
1163
+ g = Fe(w, g, A);
1164
1164
  }
1165
- const g = a.fn({
1165
+ const m = a.fn({
1166
1166
  ...t,
1167
1167
  [h]: p,
1168
- [d]: m
1168
+ [d]: g
1169
1169
  });
1170
1170
  return {
1171
- ...g,
1171
+ ...m,
1172
1172
  data: {
1173
- x: g.x - n,
1174
- y: g.y - o
1173
+ x: m.x - n,
1174
+ y: m.y - o
1175
1175
  }
1176
1176
  };
1177
1177
  }
@@ -1190,18 +1190,18 @@ const Yr = function(e) {
1190
1190
  offset: a = 0,
1191
1191
  mainAxis: c = !0,
1192
1192
  crossAxis: l = !0
1193
- } = V(e, t), f = {
1193
+ } = U(e, t), f = {
1194
1194
  x: n,
1195
1195
  y: o
1196
1196
  }, d = X(i), h = je(d);
1197
- let p = f[h], m = f[d];
1198
- const g = V(a, t), v = typeof g == "number" ? {
1199
- mainAxis: g,
1197
+ let p = f[h], g = f[d];
1198
+ const m = U(a, t), v = typeof m == "number" ? {
1199
+ mainAxis: m,
1200
1200
  crossAxis: 0
1201
1201
  } : {
1202
1202
  mainAxis: 0,
1203
1203
  crossAxis: 0,
1204
- ...g
1204
+ ...m
1205
1205
  };
1206
1206
  if (c) {
1207
1207
  const A = h === "y" ? "height" : "width", b = r.reference[h] - r.floating[A] + v.mainAxis, _ = r.reference[h] + r.reference[A] - v.mainAxis;
@@ -1209,12 +1209,12 @@ const Yr = function(e) {
1209
1209
  }
1210
1210
  if (l) {
1211
1211
  var y, w;
1212
- const A = h === "y" ? "width" : "height", b = ["top", "left"].includes(U(i)), _ = r.reference[d] - r.floating[A] + (b && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (b ? 0 : v.crossAxis), C = r.reference[d] + r.reference[A] + (b ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (b ? v.crossAxis : 0);
1213
- m < _ ? m = _ : m > C && (m = C);
1212
+ const A = h === "y" ? "width" : "height", b = ["top", "left"].includes(Y(i)), _ = r.reference[d] - r.floating[A] + (b && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (b ? 0 : v.crossAxis), C = r.reference[d] + r.reference[A] + (b ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (b ? v.crossAxis : 0);
1213
+ g < _ ? g = _ : g > C && (g = C);
1214
1214
  }
1215
1215
  return {
1216
1216
  [h]: p,
1217
- [d]: m
1217
+ [d]: g
1218
1218
  };
1219
1219
  }
1220
1220
  };
@@ -1232,17 +1232,17 @@ const Yr = function(e) {
1232
1232
  apply: s = () => {
1233
1233
  },
1234
1234
  ...a
1235
- } = V(e, t), c = await pe(t, a), l = U(n), f = ae(n), d = X(n) === "y", {
1235
+ } = U(e, t), c = await pe(t, a), l = Y(n), f = ae(n), d = X(n) === "y", {
1236
1236
  width: h,
1237
1237
  height: p
1238
1238
  } = o.floating;
1239
- let m, g;
1240
- l === "top" || l === "bottom" ? (m = l, g = f === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (g = l, m = f === "end" ? "top" : "bottom");
1241
- const v = p - c.top - c.bottom, y = h - c.left - c.right, w = j(p - c[m], v), A = j(h - c[g], y), b = !t.middlewareData.shift;
1239
+ let g, m;
1240
+ l === "top" || l === "bottom" ? (g = l, m = f === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (m = l, g = f === "end" ? "top" : "bottom");
1241
+ const v = p - c.top - c.bottom, y = h - c.left - c.right, w = j(p - c[g], v), A = j(h - c[m], y), b = !t.middlewareData.shift;
1242
1242
  let _ = w, C = A;
1243
1243
  if (d ? C = f || b ? j(A, y) : y : _ = f || b ? j(w, v) : v, b && !f) {
1244
- const O = I(c.left, 0), D = I(c.right, 0), R = I(c.top, 0), M = I(c.bottom, 0);
1245
- d ? C = h - 2 * (O !== 0 || D !== 0 ? O + D : I(c.left, c.right)) : _ = p - 2 * (R !== 0 || M !== 0 ? R + M : I(c.top, c.bottom));
1244
+ const O = I(c.left, 0), D = I(c.right, 0), R = I(c.top, 0), $ = I(c.bottom, 0);
1245
+ d ? C = h - 2 * (O !== 0 || D !== 0 ? O + D : I(c.left, c.right)) : _ = p - 2 * (R !== 0 || $ !== 0 ? R + $ : I(c.top, c.bottom));
1246
1246
  }
1247
1247
  await s({
1248
1248
  ...t,
@@ -1259,23 +1259,23 @@ const Yr = function(e) {
1259
1259
  };
1260
1260
  };
1261
1261
  function ce(e) {
1262
- return zt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1262
+ return Vt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1263
1263
  }
1264
1264
  function B(e) {
1265
1265
  var t;
1266
1266
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1267
1267
  }
1268
- function Y(e) {
1268
+ function G(e) {
1269
1269
  var t;
1270
- return (t = (zt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1270
+ return (t = (Vt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1271
1271
  }
1272
- function zt(e) {
1272
+ function Vt(e) {
1273
1273
  return e instanceof Node || e instanceof B(e).Node;
1274
1274
  }
1275
1275
  function W(e) {
1276
1276
  return e instanceof Element || e instanceof B(e).Element;
1277
1277
  }
1278
- function q(e) {
1278
+ function z(e) {
1279
1279
  return e instanceof HTMLElement || e instanceof B(e).HTMLElement;
1280
1280
  }
1281
1281
  function _t(e) {
@@ -1302,14 +1302,14 @@ function Ee(e) {
1302
1302
  }
1303
1303
  });
1304
1304
  }
1305
- function Ve(e) {
1306
- const t = Ue(), n = W(e) ? H(e) : e;
1305
+ function Ue(e) {
1306
+ const t = Ye(), n = W(e) ? H(e) : e;
1307
1307
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
1308
1308
  }
1309
1309
  function Jr(e) {
1310
1310
  let t = Z(e);
1311
- for (; q(t) && !oe(t); ) {
1312
- if (Ve(t))
1311
+ for (; z(t) && !oe(t); ) {
1312
+ if (Ue(t))
1313
1313
  return t;
1314
1314
  if (Ee(t))
1315
1315
  return null;
@@ -1317,7 +1317,7 @@ function Jr(e) {
1317
1317
  }
1318
1318
  return null;
1319
1319
  }
1320
- function Ue() {
1320
+ function Ye() {
1321
1321
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1322
1322
  }
1323
1323
  function oe(e) {
@@ -1343,18 +1343,18 @@ function Z(e) {
1343
1343
  e.assignedSlot || // DOM Element detected.
1344
1344
  e.parentNode || // ShadowRoot detected.
1345
1345
  _t(e) && e.host || // Fallback.
1346
- Y(e)
1346
+ G(e)
1347
1347
  );
1348
1348
  return _t(t) ? t.host : t;
1349
1349
  }
1350
- function Vt(e) {
1350
+ function Ut(e) {
1351
1351
  const t = Z(e);
1352
- return oe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : q(t) && he(t) ? t : Vt(t);
1352
+ return oe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && he(t) ? t : Ut(t);
1353
1353
  }
1354
1354
  function de(e, t, n) {
1355
1355
  var o;
1356
1356
  t === void 0 && (t = []), n === void 0 && (n = !0);
1357
- const i = Vt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = B(i);
1357
+ const i = Ut(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = B(i);
1358
1358
  if (r) {
1359
1359
  const a = Be(s);
1360
1360
  return t.concat(s, s.visualViewport || [], he(i) ? i : [], a && n ? de(a) : []);
@@ -1364,38 +1364,38 @@ function de(e, t, n) {
1364
1364
  function Be(e) {
1365
1365
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1366
1366
  }
1367
- function Ut(e) {
1367
+ function Yt(e) {
1368
1368
  const t = H(e);
1369
1369
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1370
- const i = q(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = _e(n) !== r || _e(o) !== s;
1370
+ const i = z(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = _e(n) !== r || _e(o) !== s;
1371
1371
  return a && (n = r, o = s), {
1372
1372
  width: n,
1373
1373
  height: o,
1374
1374
  $: a
1375
1375
  };
1376
1376
  }
1377
- function Ye(e) {
1377
+ function Ge(e) {
1378
1378
  return W(e) ? e : e.contextElement;
1379
1379
  }
1380
1380
  function re(e) {
1381
- const t = Ye(e);
1382
- if (!q(t))
1383
- return G(1);
1381
+ const t = Ge(e);
1382
+ if (!z(t))
1383
+ return q(1);
1384
1384
  const n = t.getBoundingClientRect(), {
1385
1385
  width: o,
1386
1386
  height: i,
1387
1387
  $: r
1388
- } = Ut(t);
1388
+ } = Yt(t);
1389
1389
  let s = (r ? _e(n.width) : n.width) / o, a = (r ? _e(n.height) : n.height) / i;
1390
1390
  return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
1391
1391
  x: s,
1392
1392
  y: a
1393
1393
  };
1394
1394
  }
1395
- const Qr = /* @__PURE__ */ G(0);
1396
- function Yt(e) {
1395
+ const Qr = /* @__PURE__ */ q(0);
1396
+ function Gt(e) {
1397
1397
  const t = B(e);
1398
- return !Ue() || !t.visualViewport ? Qr : {
1398
+ return !Ye() || !t.visualViewport ? Qr : {
1399
1399
  x: t.visualViewport.offsetLeft,
1400
1400
  y: t.visualViewport.offsetTop
1401
1401
  };
@@ -1405,17 +1405,17 @@ function eo(e, t, n) {
1405
1405
  }
1406
1406
  function ee(e, t, n, o) {
1407
1407
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1408
- const i = e.getBoundingClientRect(), r = Ye(e);
1409
- let s = G(1);
1408
+ const i = e.getBoundingClientRect(), r = Ge(e);
1409
+ let s = q(1);
1410
1410
  t && (o ? W(o) && (s = re(o)) : s = re(e));
1411
- const a = eo(r, n, o) ? Yt(r) : G(0);
1411
+ const a = eo(r, n, o) ? Gt(r) : q(0);
1412
1412
  let c = (i.left + a.x) / s.x, l = (i.top + a.y) / s.y, f = i.width / s.x, d = i.height / s.y;
1413
1413
  if (r) {
1414
1414
  const h = B(r), p = o && W(o) ? B(o) : o;
1415
- let m = h, g = Be(m);
1416
- for (; g && o && p !== m; ) {
1417
- const v = re(g), y = g.getBoundingClientRect(), w = H(g), A = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, b = y.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
1418
- c *= v.x, l *= v.y, f *= v.x, d *= v.y, c += A, l += b, m = B(g), g = Be(m);
1415
+ let g = h, m = Be(g);
1416
+ for (; m && o && p !== g; ) {
1417
+ const v = re(m), y = m.getBoundingClientRect(), w = H(m), A = y.left + (m.clientLeft + parseFloat(w.paddingLeft)) * v.x, b = y.top + (m.clientTop + parseFloat(w.paddingTop)) * v.y;
1418
+ c *= v.x, l *= v.y, f *= v.x, d *= v.y, c += A, l += b, g = B(m), m = Be(g);
1419
1419
  }
1420
1420
  }
1421
1421
  return Pe({
@@ -1432,15 +1432,15 @@ function to(e) {
1432
1432
  offsetParent: o,
1433
1433
  strategy: i
1434
1434
  } = e;
1435
- const r = i === "fixed", s = Y(o), a = t ? Ee(t.floating) : !1;
1435
+ const r = i === "fixed", s = G(o), a = t ? Ee(t.floating) : !1;
1436
1436
  if (o === s || a && r)
1437
1437
  return n;
1438
1438
  let c = {
1439
1439
  scrollLeft: 0,
1440
1440
  scrollTop: 0
1441
- }, l = G(1);
1442
- const f = G(0), d = q(o);
1443
- if ((d || !d && !r) && ((ce(o) !== "body" || he(s)) && (c = Oe(o)), q(o))) {
1441
+ }, l = q(1);
1442
+ const f = q(0), d = z(o);
1443
+ if ((d || !d && !r) && ((ce(o) !== "body" || he(s)) && (c = Oe(o)), z(o))) {
1444
1444
  const h = ee(o);
1445
1445
  l = re(o), f.x = h.x + o.clientLeft, f.y = h.y + o.clientTop;
1446
1446
  }
@@ -1454,12 +1454,12 @@ function to(e) {
1454
1454
  function no(e) {
1455
1455
  return Array.from(e.getClientRects());
1456
1456
  }
1457
- function Gt(e) {
1458
- return ee(Y(e)).left + Oe(e).scrollLeft;
1457
+ function qt(e) {
1458
+ return ee(G(e)).left + Oe(e).scrollLeft;
1459
1459
  }
1460
1460
  function ro(e) {
1461
- const t = Y(e), n = Oe(e), o = e.ownerDocument.body, i = I(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = I(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1462
- let s = -n.scrollLeft + Gt(e);
1461
+ const t = G(e), n = Oe(e), o = e.ownerDocument.body, i = I(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = I(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1462
+ let s = -n.scrollLeft + qt(e);
1463
1463
  const a = -n.scrollTop;
1464
1464
  return H(o).direction === "rtl" && (s += I(t.clientWidth, o.clientWidth) - i), {
1465
1465
  width: i,
@@ -1469,11 +1469,11 @@ function ro(e) {
1469
1469
  };
1470
1470
  }
1471
1471
  function oo(e, t) {
1472
- const n = B(e), o = Y(e), i = n.visualViewport;
1472
+ const n = B(e), o = G(e), i = n.visualViewport;
1473
1473
  let r = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
1474
1474
  if (i) {
1475
1475
  r = i.width, s = i.height;
1476
- const l = Ue();
1476
+ const l = Ye();
1477
1477
  (!l || l && t === "fixed") && (a = i.offsetLeft, c = i.offsetTop);
1478
1478
  }
1479
1479
  return {
@@ -1484,7 +1484,7 @@ function oo(e, t) {
1484
1484
  };
1485
1485
  }
1486
1486
  function io(e, t) {
1487
- const n = ee(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = q(e) ? re(e) : G(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1487
+ const n = ee(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = z(e) ? re(e) : q(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1488
1488
  return {
1489
1489
  width: s,
1490
1490
  height: a,
@@ -1497,11 +1497,11 @@ function At(e, t, n) {
1497
1497
  if (t === "viewport")
1498
1498
  o = oo(e, n);
1499
1499
  else if (t === "document")
1500
- o = ro(Y(e));
1500
+ o = ro(G(e));
1501
1501
  else if (W(t))
1502
1502
  o = io(t, n);
1503
1503
  else {
1504
- const i = Yt(e);
1504
+ const i = Gt(e);
1505
1505
  o = {
1506
1506
  ...t,
1507
1507
  x: t.x - i.x,
@@ -1522,7 +1522,7 @@ function so(e, t) {
1522
1522
  const r = H(e).position === "fixed";
1523
1523
  let s = r ? Z(e) : e;
1524
1524
  for (; W(s) && !oe(s); ) {
1525
- const a = H(s), c = Ve(s);
1525
+ const a = H(s), c = Ue(s);
1526
1526
  !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || he(s) && !c && Xt(e, s)) ? o = o.filter((f) => f !== s) : i = a, s = Z(s);
1527
1527
  }
1528
1528
  return t.set(e, o), o;
@@ -1549,24 +1549,24 @@ function co(e) {
1549
1549
  const {
1550
1550
  width: t,
1551
1551
  height: n
1552
- } = Ut(e);
1552
+ } = Yt(e);
1553
1553
  return {
1554
1554
  width: t,
1555
1555
  height: n
1556
1556
  };
1557
1557
  }
1558
1558
  function lo(e, t, n) {
1559
- const o = q(t), i = Y(t), r = n === "fixed", s = ee(e, !0, r, t);
1559
+ const o = z(t), i = G(t), r = n === "fixed", s = ee(e, !0, r, t);
1560
1560
  let a = {
1561
1561
  scrollLeft: 0,
1562
1562
  scrollTop: 0
1563
1563
  };
1564
- const c = G(0);
1564
+ const c = q(0);
1565
1565
  if (o || !o && !r)
1566
1566
  if ((ce(t) !== "body" || he(i)) && (a = Oe(t)), o) {
1567
1567
  const d = ee(t, !0, r, t);
1568
1568
  c.x = d.x + t.clientLeft, c.y = d.y + t.clientTop;
1569
- } else i && (c.x = Gt(i));
1569
+ } else i && (c.x = qt(i));
1570
1570
  const l = s.left + a.scrollLeft - c.x, f = s.top + a.scrollTop - c.y;
1571
1571
  return {
1572
1572
  x: l,
@@ -1579,13 +1579,13 @@ function De(e) {
1579
1579
  return H(e).position === "static";
1580
1580
  }
1581
1581
  function Pt(e, t) {
1582
- return !q(e) || H(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1582
+ return !z(e) || H(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1583
1583
  }
1584
1584
  function Zt(e, t) {
1585
1585
  const n = B(e);
1586
1586
  if (Ee(e))
1587
1587
  return n;
1588
- if (!q(e)) {
1588
+ if (!z(e)) {
1589
1589
  let i = Z(e);
1590
1590
  for (; i && !oe(i); ) {
1591
1591
  if (W(i) && !De(i))
@@ -1597,7 +1597,7 @@ function Zt(e, t) {
1597
1597
  let o = Pt(e, t);
1598
1598
  for (; o && Kr(o) && De(o); )
1599
1599
  o = Pt(o, t);
1600
- return o && oe(o) && De(o) && !Ve(o) ? n : o || Jr(e) || n;
1600
+ return o && oe(o) && De(o) && !Ue(o) ? n : o || Jr(e) || n;
1601
1601
  }
1602
1602
  const uo = async function(e) {
1603
1603
  const t = this.getOffsetParent || Zt, n = this.getDimensions, o = await n(e.floating);
@@ -1616,7 +1616,7 @@ function fo(e) {
1616
1616
  }
1617
1617
  const po = {
1618
1618
  convertOffsetParentRelativeRectToViewportRelativeRect: to,
1619
- getDocumentElement: Y,
1619
+ getDocumentElement: G,
1620
1620
  getClippingRect: ao,
1621
1621
  getOffsetParent: Zt,
1622
1622
  getElementRects: uo,
@@ -1628,7 +1628,7 @@ const po = {
1628
1628
  };
1629
1629
  function ho(e, t) {
1630
1630
  let n = null, o;
1631
- const i = Y(e);
1631
+ const i = G(e);
1632
1632
  function r() {
1633
1633
  var a;
1634
1634
  clearTimeout(o), (a = n) == null || a.disconnect(), n = null;
@@ -1643,8 +1643,8 @@ function ho(e, t) {
1643
1643
  } = e.getBoundingClientRect();
1644
1644
  if (a || t(), !d || !h)
1645
1645
  return;
1646
- const p = ye(f), m = ye(i.clientWidth - (l + d)), g = ye(i.clientHeight - (f + h)), v = ye(l), w = {
1647
- rootMargin: -p + "px " + -m + "px " + -g + "px " + -v + "px",
1646
+ const p = ye(f), g = ye(i.clientWidth - (l + d)), m = ye(i.clientHeight - (f + h)), v = ye(l), w = {
1647
+ rootMargin: -p + "px " + -g + "px " + -m + "px " + -v + "px",
1648
1648
  threshold: I(0, j(1, c)) || 1
1649
1649
  };
1650
1650
  let A = !0;
@@ -1672,7 +1672,7 @@ function ho(e, t) {
1672
1672
  }
1673
1673
  return s(!0), r;
1674
1674
  }
1675
- function mo(e, t, n, o) {
1675
+ function go(e, t, n, o) {
1676
1676
  o === void 0 && (o = {});
1677
1677
  const {
1678
1678
  ancestorScroll: i = !0,
@@ -1680,7 +1680,7 @@ function mo(e, t, n, o) {
1680
1680
  elementResize: s = typeof ResizeObserver == "function",
1681
1681
  layoutShift: a = typeof IntersectionObserver == "function",
1682
1682
  animationFrame: c = !1
1683
- } = o, l = Ye(e), f = i || r ? [...l ? de(l) : [], ...de(t)] : [];
1683
+ } = o, l = Ge(e), f = i || r ? [...l ? de(l) : [], ...de(t)] : [];
1684
1684
  f.forEach((y) => {
1685
1685
  i && y.addEventListener("scroll", n, {
1686
1686
  passive: !0
@@ -1695,20 +1695,20 @@ function mo(e, t, n, o) {
1695
1695
  (A = p) == null || A.observe(t);
1696
1696
  })), n();
1697
1697
  }), l && !c && p.observe(l), p.observe(t));
1698
- let m, g = c ? ee(e) : null;
1698
+ let g, m = c ? ee(e) : null;
1699
1699
  c && v();
1700
1700
  function v() {
1701
1701
  const y = ee(e);
1702
- g && (y.x !== g.x || y.y !== g.y || y.width !== g.width || y.height !== g.height) && n(), g = y, m = requestAnimationFrame(v);
1702
+ m && (y.x !== m.x || y.y !== m.y || y.width !== m.width || y.height !== m.height) && n(), m = y, g = requestAnimationFrame(v);
1703
1703
  }
1704
1704
  return n(), () => {
1705
1705
  var y;
1706
1706
  f.forEach((w) => {
1707
1707
  i && w.removeEventListener("scroll", n), r && w.removeEventListener("resize", n);
1708
- }), d == null || d(), (y = p) == null || y.disconnect(), p = null, c && cancelAnimationFrame(m);
1708
+ }), d == null || d(), (y = p) == null || y.disconnect(), p = null, c && cancelAnimationFrame(g);
1709
1709
  };
1710
1710
  }
1711
- const go = Yr, vo = Gr, yo = zr, wo = Zr, xo = Vr, Ct = qr, bo = Xr, _o = (e, t, n) => {
1711
+ const mo = Gr, vo = qr, yo = Vr, wo = Zr, xo = Ur, Ct = zr, bo = Xr, _o = (e, t, n) => {
1712
1712
  const o = /* @__PURE__ */ new Map(), i = {
1713
1713
  platform: po,
1714
1714
  ...n
@@ -1788,11 +1788,11 @@ function Ao(e) {
1788
1788
  isPositioned: !1
1789
1789
  }), [h, p] = u.useState(o);
1790
1790
  Ce(h, o) || p(o);
1791
- const [m, g] = u.useState(null), [v, y] = u.useState(null), w = u.useCallback((E) => {
1792
- E !== C.current && (C.current = E, g(E));
1791
+ const [g, m] = u.useState(null), [v, y] = u.useState(null), w = u.useCallback((E) => {
1792
+ E !== C.current && (C.current = E, m(E));
1793
1793
  }, []), A = u.useCallback((E) => {
1794
1794
  E !== P.current && (P.current = E, y(E));
1795
- }, []), b = r || m, _ = s || v, C = u.useRef(null), P = u.useRef(null), O = u.useRef(f), D = c != null, R = Ot(c), M = Ot(i), $ = u.useCallback(() => {
1795
+ }, []), b = r || g, _ = s || v, C = u.useRef(null), P = u.useRef(null), O = u.useRef(f), D = c != null, R = Ot(c), $ = Ot(i), M = u.useCallback(() => {
1796
1796
  if (!C.current || !P.current)
1797
1797
  return;
1798
1798
  const E = {
@@ -1800,7 +1800,7 @@ function Ao(e) {
1800
1800
  strategy: n,
1801
1801
  middleware: h
1802
1802
  };
1803
- M.current && (E.platform = M.current), _o(C.current, P.current, E).then((S) => {
1803
+ $.current && (E.platform = $.current), _o(C.current, P.current, E).then((S) => {
1804
1804
  const N = {
1805
1805
  ...S,
1806
1806
  isPositioned: !0
@@ -1809,7 +1809,7 @@ function Ao(e) {
1809
1809
  d(N);
1810
1810
  }));
1811
1811
  });
1812
- }, [h, t, n, M]);
1812
+ }, [h, t, n, $]);
1813
1813
  xe(() => {
1814
1814
  l === !1 && O.current.isPositioned && (O.current.isPositioned = !1, d((E) => ({
1815
1815
  ...E,
@@ -1822,10 +1822,10 @@ function Ao(e) {
1822
1822
  }), []), xe(() => {
1823
1823
  if (b && (C.current = b), _ && (P.current = _), b && _) {
1824
1824
  if (R.current)
1825
- return R.current(b, _, $);
1826
- $();
1825
+ return R.current(b, _, M);
1826
+ M();
1827
1827
  }
1828
- }, [b, _, $, R, D]);
1828
+ }, [b, _, M, R, D]);
1829
1829
  const T = u.useMemo(() => ({
1830
1830
  reference: C,
1831
1831
  floating: P,
@@ -1857,11 +1857,11 @@ function Ao(e) {
1857
1857
  }, [n, a, L.floating, f.x, f.y]);
1858
1858
  return u.useMemo(() => ({
1859
1859
  ...f,
1860
- update: $,
1860
+ update: M,
1861
1861
  refs: T,
1862
1862
  elements: L,
1863
1863
  floatingStyles: F
1864
- }), [f, $, T, L, F]);
1864
+ }), [f, M, T, L, F]);
1865
1865
  }
1866
1866
  const Po = (e) => {
1867
1867
  function t(n) {
@@ -1885,7 +1885,7 @@ const Po = (e) => {
1885
1885
  }
1886
1886
  };
1887
1887
  }, Co = (e, t) => ({
1888
- ...go(e),
1888
+ ...mo(e),
1889
1889
  options: [e, t]
1890
1890
  }), Eo = (e, t) => ({
1891
1891
  ...vo(e),
@@ -1923,7 +1923,7 @@ var Do = "Arrow", Jt = u.forwardRef((e, t) => {
1923
1923
  });
1924
1924
  Jt.displayName = Do;
1925
1925
  var Lo = Jt;
1926
- function Mo(e) {
1926
+ function $o(e) {
1927
1927
  const [t, n] = u.useState(void 0);
1928
1928
  return Q(() => {
1929
1929
  if (e) {
@@ -1945,11 +1945,11 @@ function Mo(e) {
1945
1945
  n(void 0);
1946
1946
  }, [e]), t;
1947
1947
  }
1948
- var Ge = "Popper", [Qt, en] = Ft(Ge), [$o, tn] = Qt(Ge), nn = (e) => {
1948
+ var qe = "Popper", [Qt, en] = Ft(qe), [Mo, tn] = Qt(qe), nn = (e) => {
1949
1949
  const { __scopePopper: t, children: n } = e, [o, i] = u.useState(null);
1950
- return /* @__PURE__ */ x($o, { scope: t, anchor: o, onAnchorChange: i, children: n });
1950
+ return /* @__PURE__ */ x(Mo, { scope: t, anchor: o, onAnchorChange: i, children: n });
1951
1951
  };
1952
- nn.displayName = Ge;
1952
+ nn.displayName = qe;
1953
1953
  var rn = "PopperAnchor", on = u.forwardRef(
1954
1954
  (e, t) => {
1955
1955
  const { __scopePopper: n, virtualRef: o, ...i } = e, r = tn(rn, n), s = u.useRef(null), a = te(t, s);
@@ -1975,18 +1975,18 @@ var Xe = "PopperContent", [ko, Fo] = Qt(Xe), sn = u.forwardRef(
1975
1975
  sticky: d = "partial",
1976
1976
  hideWhenDetached: h = !1,
1977
1977
  updatePositionStrategy: p = "optimized",
1978
- onPlaced: m,
1979
- ...g
1980
- } = e, v = tn(Xe, n), [y, w] = u.useState(null), A = te(t, (le) => w(le)), [b, _] = u.useState(null), C = Mo(b), P = (C == null ? void 0 : C.width) ?? 0, O = (C == null ? void 0 : C.height) ?? 0, D = o + (r !== "center" ? "-" + r : ""), R = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, M = Array.isArray(l) ? l : [l], $ = M.length > 0, k = {
1978
+ onPlaced: g,
1979
+ ...m
1980
+ } = e, v = tn(Xe, n), [y, w] = u.useState(null), A = te(t, (le) => w(le)), [b, _] = u.useState(null), C = $o(b), P = (C == null ? void 0 : C.width) ?? 0, O = (C == null ? void 0 : C.height) ?? 0, D = o + (r !== "center" ? "-" + r : ""), R = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(l) ? l : [l], M = $.length > 0, k = {
1981
1981
  padding: R,
1982
- boundary: M.filter(Bo),
1982
+ boundary: $.filter(Bo),
1983
1983
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1984
- altBoundary: $
1984
+ altBoundary: M
1985
1985
  }, { refs: T, floatingStyles: L, placement: F, isPositioned: E, middlewareData: S } = Ao({
1986
1986
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1987
1987
  strategy: "fixed",
1988
1988
  placement: D,
1989
- whileElementsMounted: (...le) => mo(...le, {
1989
+ whileElementsMounted: (...le) => go(...le, {
1990
1990
  animationFrame: p === "always"
1991
1991
  }),
1992
1992
  elements: {
@@ -2012,10 +2012,10 @@ var Xe = "PopperContent", [ko, Fo] = Qt(Xe), sn = u.forwardRef(
2012
2012
  Wo({ arrowWidth: P, arrowHeight: O }),
2013
2013
  h && So({ strategy: "referenceHidden", ...k })
2014
2014
  ]
2015
- }), [N, Ne] = ln(F), ge = se(m);
2015
+ }), [N, Ne] = ln(F), me = se(g);
2016
2016
  Q(() => {
2017
- E && (ge == null || ge());
2018
- }, [E, ge]);
2017
+ E && (me == null || me());
2018
+ }, [E, me]);
2019
2019
  const bn = (Qe = S.arrow) == null ? void 0 : Qe.x, _n = (et = S.arrow) == null ? void 0 : et.y, An = ((tt = S.arrow) == null ? void 0 : tt.centerOffset) !== 0, [Pn, Cn] = u.useState();
2020
2020
  return Q(() => {
2021
2021
  y && Cn(window.getComputedStyle(y).zIndex);
@@ -2057,10 +2057,10 @@ var Xe = "PopperContent", [ko, Fo] = Qt(Xe), sn = u.forwardRef(
2057
2057
  {
2058
2058
  "data-side": N,
2059
2059
  "data-align": Ne,
2060
- ...g,
2060
+ ...m,
2061
2061
  ref: A,
2062
2062
  style: {
2063
- ...g.style,
2063
+ ...m.style,
2064
2064
  // if the PopperContent hasn't been placed yet (not all measurements done)
2065
2065
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
2066
2066
  animation: E ? void 0 : "none"
@@ -2134,32 +2134,32 @@ var Wo = (e) => ({
2134
2134
  fn(t) {
2135
2135
  var v, y, w;
2136
2136
  const { placement: n, rects: o, middlewareData: i } = t, s = ((v = i.arrow) == null ? void 0 : v.centerOffset) !== 0, a = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [l, f] = ln(n), d = { start: "0%", center: "50%", end: "100%" }[f], h = (((y = i.arrow) == null ? void 0 : y.x) ?? 0) + a / 2, p = (((w = i.arrow) == null ? void 0 : w.y) ?? 0) + c / 2;
2137
- let m = "", g = "";
2138
- return l === "bottom" ? (m = s ? d : `${h}px`, g = `${-c}px`) : l === "top" ? (m = s ? d : `${h}px`, g = `${o.floating.height + c}px`) : l === "right" ? (m = `${-c}px`, g = s ? d : `${p}px`) : l === "left" && (m = `${o.floating.width + c}px`, g = s ? d : `${p}px`), { data: { x: m, y: g } };
2137
+ let g = "", m = "";
2138
+ return l === "bottom" ? (g = s ? d : `${h}px`, m = `${-c}px`) : l === "top" ? (g = s ? d : `${h}px`, m = `${o.floating.height + c}px`) : l === "right" ? (g = `${-c}px`, m = s ? d : `${p}px`) : l === "left" && (g = `${o.floating.width + c}px`, m = s ? d : `${p}px`), { data: { x: g, y: m } };
2139
2139
  }
2140
2140
  });
2141
2141
  function ln(e) {
2142
2142
  const [t, n = "center"] = e.split("-");
2143
2143
  return [t, n];
2144
2144
  }
2145
- var Ho = nn, jo = on, qo = sn, zo = cn, Vo = "Portal", un = u.forwardRef((e, t) => {
2145
+ var Ho = nn, jo = on, zo = sn, Vo = cn, Uo = "Portal", un = u.forwardRef((e, t) => {
2146
2146
  var a;
2147
2147
  const { container: n, ...o } = e, [i, r] = u.useState(!1);
2148
2148
  Q(() => r(!0), []);
2149
2149
  const s = n || i && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
2150
- return s ? $n.createPortal(/* @__PURE__ */ x(K.div, { ...o, ref: t }), s) : null;
2150
+ return s ? Mn.createPortal(/* @__PURE__ */ x(K.div, { ...o, ref: t }), s) : null;
2151
2151
  });
2152
- un.displayName = Vo;
2153
- function Uo(e, t) {
2152
+ un.displayName = Uo;
2153
+ function Yo(e, t) {
2154
2154
  return u.useReducer((n, o) => t[n][o] ?? n, e);
2155
2155
  }
2156
2156
  var Ze = (e) => {
2157
- const { present: t, children: n } = e, o = Yo(t), i = typeof n == "function" ? n({ present: o.isPresent }) : u.Children.only(n), r = te(o.ref, Go(i));
2157
+ const { present: t, children: n } = e, o = Go(t), i = typeof n == "function" ? n({ present: o.isPresent }) : u.Children.only(n), r = te(o.ref, qo(i));
2158
2158
  return typeof n == "function" || o.isPresent ? u.cloneElement(i, { ref: r }) : null;
2159
2159
  };
2160
2160
  Ze.displayName = "Presence";
2161
- function Yo(e) {
2162
- const [t, n] = u.useState(), o = u.useRef({}), i = u.useRef(e), r = u.useRef("none"), s = e ? "mounted" : "unmounted", [a, c] = Uo(s, {
2161
+ function Go(e) {
2162
+ const [t, n] = u.useState(), o = u.useRef({}), i = u.useRef(e), r = u.useRef("none"), s = e ? "mounted" : "unmounted", [a, c] = Yo(s, {
2163
2163
  mounted: {
2164
2164
  UNMOUNT: "unmounted",
2165
2165
  ANIMATION_OUT: "unmountSuspended"
@@ -2185,8 +2185,8 @@ function Yo(e) {
2185
2185
  if (t) {
2186
2186
  let l;
2187
2187
  const f = t.ownerDocument.defaultView ?? window, d = (p) => {
2188
- const g = we(o.current).includes(p.animationName);
2189
- if (p.target === t && g && (c("ANIMATION_END"), !i.current)) {
2188
+ const m = we(o.current).includes(p.animationName);
2189
+ if (p.target === t && m && (c("ANIMATION_END"), !i.current)) {
2190
2190
  const v = t.style.animationFillMode;
2191
2191
  t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
2192
2192
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
@@ -2210,7 +2210,7 @@ function Yo(e) {
2210
2210
  function we(e) {
2211
2211
  return (e == null ? void 0 : e.animationName) || "none";
2212
2212
  }
2213
- function Go(e) {
2213
+ function qo(e) {
2214
2214
  var o, i;
2215
2215
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
2216
2216
  return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
@@ -2266,7 +2266,7 @@ var Ko = "VisuallyHidden", fn = u.forwardRef(
2266
2266
  )
2267
2267
  );
2268
2268
  fn.displayName = Ko;
2269
- var Jo = fn, [Re, Mi] = Ft("Tooltip", [
2269
+ var Jo = fn, [Re, $i] = Ft("Tooltip", [
2270
2270
  en
2271
2271
  ]), Te = en(), pn = "TooltipProvider", Qo = 700, We = "tooltip.open", [ei, Ke] = Re(pn), dn = (e) => {
2272
2272
  const {
@@ -2304,7 +2304,7 @@ var Jo = fn, [Re, Mi] = Ft("Tooltip", [
2304
2304
  );
2305
2305
  };
2306
2306
  dn.displayName = pn;
2307
- var Se = "Tooltip", [ti, me] = Re(Se), hn = (e) => {
2307
+ var Se = "Tooltip", [ti, ge] = Re(Se), hn = (e) => {
2308
2308
  const {
2309
2309
  __scopeTooltip: t,
2310
2310
  children: n,
@@ -2313,7 +2313,7 @@ var Se = "Tooltip", [ti, me] = Re(Se), hn = (e) => {
2313
2313
  onOpenChange: r,
2314
2314
  disableHoverableContent: s,
2315
2315
  delayDuration: a
2316
- } = e, c = Ke(Se, e.__scopeTooltip), l = Te(t), [f, d] = u.useState(null), h = Lr(), p = u.useRef(0), m = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, v = u.useRef(!1), [y = !1, w] = Xo({
2316
+ } = e, c = Ke(Se, e.__scopeTooltip), l = Te(t), [f, d] = u.useState(null), h = Lr(), p = u.useRef(0), g = s ?? c.disableHoverableContent, m = a ?? c.delayDuration, v = u.useRef(!1), [y = !1, w] = Xo({
2317
2317
  prop: o,
2318
2318
  defaultProp: i,
2319
2319
  onChange: (P) => {
@@ -2326,8 +2326,8 @@ var Se = "Tooltip", [ti, me] = Re(Se), hn = (e) => {
2326
2326
  }, [w]), C = u.useCallback(() => {
2327
2327
  window.clearTimeout(p.current), p.current = window.setTimeout(() => {
2328
2328
  v.current = !0, w(!0), p.current = 0;
2329
- }, g);
2330
- }, [g, w]);
2329
+ }, m);
2330
+ }, [m, w]);
2331
2331
  return u.useEffect(() => () => {
2332
2332
  p.current && (window.clearTimeout(p.current), p.current = 0);
2333
2333
  }, []), /* @__PURE__ */ x(Ho, { ...l, children: /* @__PURE__ */ x(
@@ -2343,19 +2343,19 @@ var Se = "Tooltip", [ti, me] = Re(Se), hn = (e) => {
2343
2343
  c.isOpenDelayed ? C() : b();
2344
2344
  }, [c.isOpenDelayed, C, b]),
2345
2345
  onTriggerLeave: u.useCallback(() => {
2346
- m ? _() : (window.clearTimeout(p.current), p.current = 0);
2347
- }, [_, m]),
2346
+ g ? _() : (window.clearTimeout(p.current), p.current = 0);
2347
+ }, [_, g]),
2348
2348
  onOpen: b,
2349
2349
  onClose: _,
2350
- disableHoverableContent: m,
2350
+ disableHoverableContent: g,
2351
2351
  children: n
2352
2352
  }
2353
2353
  ) });
2354
2354
  };
2355
2355
  hn.displayName = Se;
2356
- var He = "TooltipTrigger", mn = u.forwardRef(
2356
+ var He = "TooltipTrigger", gn = u.forwardRef(
2357
2357
  (e, t) => {
2358
- const { __scopeTooltip: n, ...o } = e, i = me(He, n), r = Ke(He, n), s = Te(n), a = u.useRef(null), c = te(t, a, i.onTriggerChange), l = u.useRef(!1), f = u.useRef(!1), d = u.useCallback(() => l.current = !1, []);
2358
+ const { __scopeTooltip: n, ...o } = e, i = ge(He, n), r = Ke(He, n), s = Te(n), a = u.useRef(null), c = te(t, a, i.onTriggerChange), l = u.useRef(!1), f = u.useRef(!1), d = u.useCallback(() => l.current = !1, []);
2359
2359
  return u.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ x(jo, { asChild: !0, ...s, children: /* @__PURE__ */ x(
2360
2360
  K.button,
2361
2361
  {
@@ -2363,61 +2363,61 @@ var He = "TooltipTrigger", mn = u.forwardRef(
2363
2363
  "data-state": i.stateAttribute,
2364
2364
  ...o,
2365
2365
  ref: c,
2366
- onPointerMove: z(e.onPointerMove, (h) => {
2366
+ onPointerMove: V(e.onPointerMove, (h) => {
2367
2367
  h.pointerType !== "touch" && !f.current && !r.isPointerInTransitRef.current && (i.onTriggerEnter(), f.current = !0);
2368
2368
  }),
2369
- onPointerLeave: z(e.onPointerLeave, () => {
2369
+ onPointerLeave: V(e.onPointerLeave, () => {
2370
2370
  i.onTriggerLeave(), f.current = !1;
2371
2371
  }),
2372
- onPointerDown: z(e.onPointerDown, () => {
2372
+ onPointerDown: V(e.onPointerDown, () => {
2373
2373
  l.current = !0, document.addEventListener("pointerup", d, { once: !0 });
2374
2374
  }),
2375
- onFocus: z(e.onFocus, () => {
2375
+ onFocus: V(e.onFocus, () => {
2376
2376
  l.current || i.onOpen();
2377
2377
  }),
2378
- onBlur: z(e.onBlur, i.onClose),
2379
- onClick: z(e.onClick, i.onClose)
2378
+ onBlur: V(e.onBlur, i.onClose),
2379
+ onClick: V(e.onClick, i.onClose)
2380
2380
  }
2381
2381
  ) });
2382
2382
  }
2383
2383
  );
2384
- mn.displayName = He;
2384
+ gn.displayName = He;
2385
2385
  var Je = "TooltipPortal", [ni, ri] = Re(Je, {
2386
2386
  forceMount: void 0
2387
- }), gn = (e) => {
2388
- const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = me(Je, t);
2387
+ }), mn = (e) => {
2388
+ const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = ge(Je, t);
2389
2389
  return /* @__PURE__ */ x(ni, { scope: t, forceMount: n, children: /* @__PURE__ */ x(Ze, { present: n || r.open, children: /* @__PURE__ */ x(un, { asChild: !0, container: i, children: o }) }) });
2390
2390
  };
2391
- gn.displayName = Je;
2391
+ mn.displayName = Je;
2392
2392
  var ie = "TooltipContent", vn = u.forwardRef(
2393
2393
  (e, t) => {
2394
- const n = ri(ie, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = me(ie, e.__scopeTooltip);
2394
+ const n = ri(ie, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = ge(ie, e.__scopeTooltip);
2395
2395
  return /* @__PURE__ */ x(Ze, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ x(yn, { side: i, ...r, ref: t }) : /* @__PURE__ */ x(oi, { side: i, ...r, ref: t }) });
2396
2396
  }
2397
2397
  ), oi = u.forwardRef((e, t) => {
2398
- const n = me(ie, e.__scopeTooltip), o = Ke(ie, e.__scopeTooltip), i = u.useRef(null), r = te(t, i), [s, a] = u.useState(null), { trigger: c, onClose: l } = n, f = i.current, { onPointerInTransitChange: d } = o, h = u.useCallback(() => {
2398
+ const n = ge(ie, e.__scopeTooltip), o = Ke(ie, e.__scopeTooltip), i = u.useRef(null), r = te(t, i), [s, a] = u.useState(null), { trigger: c, onClose: l } = n, f = i.current, { onPointerInTransitChange: d } = o, h = u.useCallback(() => {
2399
2399
  a(null), d(!1);
2400
2400
  }, [d]), p = u.useCallback(
2401
- (m, g) => {
2402
- const v = m.currentTarget, y = { x: m.clientX, y: m.clientY }, w = ai(y, v.getBoundingClientRect()), A = ci(y, w), b = li(g.getBoundingClientRect()), _ = fi([...A, ...b]);
2401
+ (g, m) => {
2402
+ const v = g.currentTarget, y = { x: g.clientX, y: g.clientY }, w = ai(y, v.getBoundingClientRect()), A = ci(y, w), b = li(m.getBoundingClientRect()), _ = fi([...A, ...b]);
2403
2403
  a(_), d(!0);
2404
2404
  },
2405
2405
  [d]
2406
2406
  );
2407
2407
  return u.useEffect(() => () => h(), [h]), u.useEffect(() => {
2408
2408
  if (c && f) {
2409
- const m = (v) => p(v, f), g = (v) => p(v, c);
2410
- return c.addEventListener("pointerleave", m), f.addEventListener("pointerleave", g), () => {
2411
- c.removeEventListener("pointerleave", m), f.removeEventListener("pointerleave", g);
2409
+ const g = (v) => p(v, f), m = (v) => p(v, c);
2410
+ return c.addEventListener("pointerleave", g), f.addEventListener("pointerleave", m), () => {
2411
+ c.removeEventListener("pointerleave", g), f.removeEventListener("pointerleave", m);
2412
2412
  };
2413
2413
  }
2414
2414
  }, [c, f, p, h]), u.useEffect(() => {
2415
2415
  if (s) {
2416
- const m = (g) => {
2417
- const v = g.target, y = { x: g.clientX, y: g.clientY }, w = (c == null ? void 0 : c.contains(v)) || (f == null ? void 0 : f.contains(v)), A = !ui(y, s);
2416
+ const g = (m) => {
2417
+ const v = m.target, y = { x: m.clientX, y: m.clientY }, w = (c == null ? void 0 : c.contains(v)) || (f == null ? void 0 : f.contains(v)), A = !ui(y, s);
2418
2418
  w ? h() : A && (h(), l());
2419
2419
  };
2420
- return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
2420
+ return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
2421
2421
  }
2422
2422
  }, [c, f, s, l, h]), /* @__PURE__ */ x(yn, { ...e, ref: r });
2423
2423
  }), [ii, si] = Re(Se, { isInside: !1 }), yn = u.forwardRef(
@@ -2429,7 +2429,7 @@ var ie = "TooltipContent", vn = u.forwardRef(
2429
2429
  onEscapeKeyDown: r,
2430
2430
  onPointerDownOutside: s,
2431
2431
  ...a
2432
- } = e, c = me(ie, n), l = Te(n), { onClose: f } = c;
2432
+ } = e, c = ge(ie, n), l = Te(n), { onClose: f } = c;
2433
2433
  return u.useEffect(() => (document.addEventListener(We, f), () => document.removeEventListener(We, f)), [f]), u.useEffect(() => {
2434
2434
  if (c.trigger) {
2435
2435
  const d = (h) => {
@@ -2448,7 +2448,7 @@ var ie = "TooltipContent", vn = u.forwardRef(
2448
2448
  onFocusOutside: (d) => d.preventDefault(),
2449
2449
  onDismiss: f,
2450
2450
  children: /* @__PURE__ */ be(
2451
- qo,
2451
+ zo,
2452
2452
  {
2453
2453
  "data-state": c.stateAttribute,
2454
2454
  ...l,
@@ -2479,7 +2479,7 @@ var wn = "TooltipArrow", xn = u.forwardRef(
2479
2479
  return si(
2480
2480
  wn,
2481
2481
  n
2482
- ).isInside ? null : /* @__PURE__ */ x(zo, { ...i, ...o, ref: t });
2482
+ ).isInside ? null : /* @__PURE__ */ x(Vo, { ...i, ...o, ref: t });
2483
2483
  }
2484
2484
  );
2485
2485
  xn.displayName = wn;
@@ -2575,7 +2575,7 @@ function pi(e) {
2575
2575
  }
2576
2576
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
2577
2577
  }
2578
- var di = dn, hi = hn, mi = mn, gi = gn, vi = vn, yi = xn;
2578
+ var di = dn, hi = hn, gi = gn, mi = mn, vi = vn, yi = xn;
2579
2579
  function wi(e) {
2580
2580
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2581
2581
  }
@@ -2630,7 +2630,7 @@ const _i = /* @__PURE__ */ wi(bi), Ai = "_slideDownAndFade_fkagk_1", Pi = "_slid
2630
2630
  slideRightAndFade: Ei,
2631
2631
  "purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_fkagk_32",
2632
2632
  "purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_fkagk_35"
2633
- }, Me = _i.bind(Oi), Ri = {
2633
+ }, $e = _i.bind(Oi), Ri = {
2634
2634
  TOP: "top",
2635
2635
  BOTTOM: "bottom",
2636
2636
  LEFT: "left",
@@ -2653,11 +2653,11 @@ const _i = /* @__PURE__ */ wi(bi), Ai = "_slideDownAndFade_fkagk_1", Pi = "_slid
2653
2653
  triggerElement: l,
2654
2654
  ...f
2655
2655
  }, d) => {
2656
- const [h, p] = Ln(!1), m = Me(
2656
+ const [h, p] = Ln(!1), g = $e(
2657
2657
  o,
2658
2658
  ne,
2659
2659
  `${ne}--primary${r ? "-negative" : ""}`
2660
- ), g = /* @__PURE__ */ x(
2660
+ ), m = /* @__PURE__ */ x(
2661
2661
  Nt,
2662
2662
  {
2663
2663
  ref: d,
@@ -2671,23 +2671,23 @@ const _i = /* @__PURE__ */ wi(bi), Ai = "_slideDownAndFade_fkagk_1", Pi = "_slid
2671
2671
  children: /* @__PURE__ */ x(Lt, { size: "md" })
2672
2672
  }
2673
2673
  );
2674
- return /* @__PURE__ */ x("div", { "data-testid": e, className: m, children: /* @__PURE__ */ x(di, { delayDuration: parseInt(gr), children: /* @__PURE__ */ be(hi, { open: h, onOpenChange: p, ...f, children: [
2674
+ return /* @__PURE__ */ x("div", { "data-testid": e, className: g, children: /* @__PURE__ */ x(di, { delayDuration: parseInt(mr), children: /* @__PURE__ */ be(hi, { open: h, onOpenChange: p, ...f, children: [
2675
2675
  /* @__PURE__ */ x(
2676
- mi,
2676
+ gi,
2677
2677
  {
2678
2678
  asChild: !0,
2679
2679
  onClick: (v) => {
2680
2680
  v.preventDefault(), p(!0);
2681
2681
  },
2682
- children: Mn.count(l) === 0 ? g : l
2682
+ children: $n.count(l) === 0 ? m : l
2683
2683
  }
2684
2684
  ),
2685
- /* @__PURE__ */ x(gi, { children: /* @__PURE__ */ be(
2685
+ /* @__PURE__ */ x(mi, { children: /* @__PURE__ */ be(
2686
2686
  vi,
2687
2687
  {
2688
2688
  side: s,
2689
2689
  align: a,
2690
- className: Me(
2690
+ className: $e(
2691
2691
  i,
2692
2692
  `${ne}__content`,
2693
2693
  `${ne}__content--primary${r ? "-negative" : ""}`
@@ -2696,9 +2696,9 @@ const _i = /* @__PURE__ */ wi(bi), Ai = "_slideDownAndFade_fkagk_1", Pi = "_slid
2696
2696
  "data-testid": `${e}-content`,
2697
2697
  children: [
2698
2698
  typeof n == "string" ? /* @__PURE__ */ x(
2699
- $t,
2699
+ Mt,
2700
2700
  {
2701
- variant: Mt.PARAGRAPH100,
2701
+ variant: $t.PARAGRAPH100,
2702
2702
  negative: !r,
2703
2703
  "data-testid": `${e}-paragraph`,
2704
2704
  children: n
@@ -2707,7 +2707,7 @@ const _i = /* @__PURE__ */ wi(bi), Ai = "_slideDownAndFade_fkagk_1", Pi = "_slid
2707
2707
  /* @__PURE__ */ x(
2708
2708
  yi,
2709
2709
  {
2710
- className: Me(
2710
+ className: $e(
2711
2711
  `${ne}__arrow`,
2712
2712
  `${ne}__arrow--primary${r ? "-negative" : ""}`
2713
2713
  )