@purpurds/tooltip 5.35.0 → 6.0.1

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,6 +1,6 @@
1
- import { jsxs as Ge, jsx as z } from "react/jsx-runtime";
1
+ import { jsxs as Xe, jsx as z } from "react/jsx-runtime";
2
2
  import * as L from "react";
3
- import { forwardRef as I, useCallback as j, createContext as Ke, useMemo as _e, createElement as _, useContext as Rt, Fragment as An, Children as se, isValidElement as ke, cloneElement as rt, useEffect as S, useRef as k, useState as q, useLayoutEffect as St, useReducer as On } from "react";
3
+ import { forwardRef as I, useCallback as j, createContext as Ke, useMemo as _e, createElement as _, useContext as Rt, Fragment as On, Children as se, isValidElement as ke, cloneElement as rt, useEffect as S, useRef as k, useState as q, useLayoutEffect as St, useReducer as An } from "react";
4
4
  import * as Cn from "react-dom";
5
5
  import En, { flushSync as Dt } from "react-dom";
6
6
  const Tn = {
@@ -197,7 +197,7 @@ const Hn = /* @__PURE__ */ In(Fn), Bn = {
197
197
  ), m = (y) => {
198
198
  o || s ? y.preventDefault() : c && c(y);
199
199
  }, g = !!p["aria-disabled"] || o || s;
200
- return /* @__PURE__ */ Ge(
200
+ return /* @__PURE__ */ Xe(
201
201
  "button",
202
202
  {
203
203
  className: h,
@@ -264,37 +264,24 @@ const Vn = /* @__PURE__ */ qn(Un), Yn = {
264
264
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
265
265
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
266
266
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
267
- }, Xn = {
268
- name: "info",
269
- svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
270
- keywords: ["info"],
271
- category: "status"
272
- }, It = (e) => /* @__PURE__ */ z(
273
- Ft,
274
- {
275
- ...e,
276
- svg: Xn
277
- }
278
- );
279
- It.displayName = "IconInfo";
280
- const Gn = Vn.bind(Yn), bt = "purpur-icon", Kn = "md", Zn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Jn = ({ content: e = "", title: t } = {}) => {
267
+ }, Gn = Vn.bind(Yn), bt = "purpur-icon", Xn = "md", Kn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Zn = ({ content: e = "", title: t } = {}) => {
281
268
  const n = [
282
269
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
283
270
  { name: "fill", value: "currentColor" },
284
271
  { name: "viewBox", value: "0 0 24 24" },
285
272
  t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
286
273
  ], o = t ? `<title>${t}</title>` : "";
287
- return `<svg ${Zn(n)}>${o}${e}</svg>`;
288
- }, Qn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Ft = ({
274
+ return `<svg ${Kn(n)}>${o}${e}</svg>`;
275
+ }, Jn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), It = ({
289
276
  ["data-testid"]: e,
290
277
  svg: t,
291
278
  allyTitle: n,
292
279
  className: o,
293
- size: i = Kn,
280
+ size: i = Xn,
294
281
  ...r
295
282
  }) => {
296
- const s = Jn({
297
- content: Qn(t.svg),
283
+ const s = Zn({
284
+ content: Jn(t.svg),
298
285
  title: n
299
286
  }), a = Gn(o, bt, `${bt}--${i}`);
300
287
  return /* @__PURE__ */ z(
@@ -308,7 +295,14 @@ const Gn = Vn.bind(Yn), bt = "purpur-icon", Kn = "md", Zn = (e) => e.filter((t)
308
295
  }
309
296
  );
310
297
  };
311
- Ft.displayName = "Icon";
298
+ It.displayName = "Icon";
299
+ const Qn = {
300
+ name: "info",
301
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
302
+ keywords: ["info"],
303
+ category: "status"
304
+ }, Ft = (e) => /* @__PURE__ */ z(It, { ...e, svg: Qn });
305
+ Ft.displayName = "IconInfo";
312
306
  function er(e) {
313
307
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
314
308
  }
@@ -349,7 +343,7 @@ var Ht = { exports: {} };
349
343
  })();
350
344
  })(Ht);
351
345
  var tr = Ht.exports;
352
- const nr = /* @__PURE__ */ er(tr), ve = {
346
+ const nr = /* @__PURE__ */ er(tr), $e = {
353
347
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
354
348
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
355
349
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -375,7 +369,7 @@ const nr = /* @__PURE__ */ er(tr), ve = {
375
369
  ADDITIONAL100MEDIUM: "additional-100-medium",
376
370
  OVERLINE100: "overline-100",
377
371
  OVERLINE200: "overline-200"
378
- }, $e = "purpur-paragraph", zt = ({
372
+ }, ve = "purpur-paragraph", zt = ({
379
373
  ["data-testid"]: e,
380
374
  children: t,
381
375
  className: n,
@@ -387,12 +381,12 @@ const nr = /* @__PURE__ */ er(tr), ve = {
387
381
  }) => {
388
382
  const c = nr([
389
383
  n,
390
- ve[$e],
391
- ve[`${$e}--${s}`],
384
+ $e[ve],
385
+ $e[`${ve}--${s}`],
392
386
  {
393
- [ve[`${$e}--hyphens`]]: i,
394
- [ve[`${$e}--disabled`]]: o,
395
- [ve[`${$e}--negative`]]: r
387
+ [$e[`${ve}--hyphens`]]: i,
388
+ [$e[`${ve}--disabled`]]: o,
389
+ [$e[`${ve}--negative`]]: r
396
390
  }
397
391
  ]);
398
392
  return /* @__PURE__ */ z("p", { ...a, className: c, "data-testid": e, children: t });
@@ -526,7 +520,7 @@ const Ze = /* @__PURE__ */ I((e, t) => {
526
520
  }) : se.count(n) > 1 ? se.only(null) : null;
527
521
  });
528
522
  Ze.displayName = "SlotClone";
529
- const Ut = ({ children: e }) => /* @__PURE__ */ _(An, null, e);
523
+ const Ut = ({ children: e }) => /* @__PURE__ */ _(On, null, e);
530
524
  function sr(e) {
531
525
  return /* @__PURE__ */ ke(e) && e.type === Ut;
532
526
  }
@@ -621,26 +615,26 @@ const pr = /* @__PURE__ */ Ke({
621
615
  var n;
622
616
  const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, u = Rt(pr), [f, p] = q(null), d = (n = f == null ? void 0 : f.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = q({}), m = he(
623
617
  t,
624
- ($) => p($)
618
+ (v) => p(v)
625
619
  ), g = Array.from(u.layers), [y] = [
626
620
  ...u.layersWithOutsidePointerEventsDisabled
627
- ].slice(-1), b = g.indexOf(y), x = f ? g.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, v = x >= b, A = gr(($) => {
628
- const E = $.target, T = [
621
+ ].slice(-1), b = g.indexOf(y), x = f ? g.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, $ = x >= b, O = gr((v) => {
622
+ const E = v.target, T = [
629
623
  ...u.branches
630
624
  ].some(
631
625
  (N) => N.contains(E)
632
626
  );
633
- !v || T || (r == null || r($), a == null || a($), $.defaultPrevented || c == null || c());
634
- }, d), P = mr(($) => {
635
- const E = $.target;
627
+ !$ || T || (r == null || r(v), a == null || a(v), v.defaultPrevented || c == null || c());
628
+ }, d), P = mr((v) => {
629
+ const E = v.target;
636
630
  [
637
631
  ...u.branches
638
632
  ].some(
639
633
  (N) => N.contains(E)
640
- ) || (s == null || s($), a == null || a($), $.defaultPrevented || c == null || c());
634
+ ) || (s == null || s(v), a == null || a(v), v.defaultPrevented || c == null || c());
641
635
  }, d);
642
- return ur(($) => {
643
- x === u.layers.size - 1 && (i == null || i($), !$.defaultPrevented && c && ($.preventDefault(), c()));
636
+ return ur((v) => {
637
+ x === u.layers.size - 1 && (i == null || i(v), !v.defaultPrevented && c && (v.preventDefault(), c()));
644
638
  }, d), S(() => {
645
639
  if (f)
646
640
  return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (xt = d.body.style.pointerEvents, d.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), wt(), () => {
@@ -657,17 +651,17 @@ const pr = /* @__PURE__ */ Ke({
657
651
  f,
658
652
  u
659
653
  ]), S(() => {
660
- const $ = () => h({});
661
- return document.addEventListener(Je, $), () => document.removeEventListener(Je, $);
654
+ const v = () => h({});
655
+ return document.addEventListener(Je, v), () => document.removeEventListener(Je, v);
662
656
  }, []), /* @__PURE__ */ _(ce.div, D({}, l, {
663
657
  ref: m,
664
658
  style: {
665
- pointerEvents: w ? v ? "auto" : "none" : void 0,
659
+ pointerEvents: w ? $ ? "auto" : "none" : void 0,
666
660
  ...e.style
667
661
  },
668
662
  onFocusCapture: Q(e.onFocusCapture, P.onFocusCapture),
669
663
  onBlurCapture: Q(e.onBlurCapture, P.onBlurCapture),
670
- onPointerDownCapture: Q(e.onPointerDownCapture, A.onPointerDownCapture)
664
+ onPointerDownCapture: Q(e.onPointerDownCapture, O.onPointerDownCapture)
671
665
  }));
672
666
  });
673
667
  function gr(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -754,12 +748,12 @@ function xr(e) {
754
748
  const wr = ["top", "right", "bottom", "left"], ne = Math.min, W = Math.max, Ie = Math.round, Ne = Math.floor, K = (e) => ({
755
749
  x: e,
756
750
  y: e
757
- }), vr = {
751
+ }), $r = {
758
752
  left: "right",
759
753
  right: "left",
760
754
  bottom: "top",
761
755
  top: "bottom"
762
- }, $r = {
756
+ }, vr = {
763
757
  start: "end",
764
758
  end: "start"
765
759
  };
@@ -798,9 +792,9 @@ function Pr(e) {
798
792
  return [et(e), t, et(t)];
799
793
  }
800
794
  function et(e) {
801
- return e.replace(/start|end/g, (t) => $r[t]);
795
+ return e.replace(/start|end/g, (t) => vr[t]);
802
796
  }
803
- function Ar(e, t, n) {
797
+ function Or(e, t, n) {
804
798
  const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
805
799
  switch (e) {
806
800
  case "top":
@@ -813,13 +807,13 @@ function Ar(e, t, n) {
813
807
  return [];
814
808
  }
815
809
  }
816
- function Or(e, t, n, o) {
810
+ function Ar(e, t, n, o) {
817
811
  const i = me(e);
818
- let r = Ar(te(e), n === "start", o);
812
+ let r = Or(te(e), n === "start", o);
819
813
  return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(et)))), r;
820
814
  }
821
815
  function Fe(e) {
822
- return e.replace(/left|right|bottom|top/g, (t) => vr[t]);
816
+ return e.replace(/left|right|bottom|top/g, (t) => $r[t]);
823
817
  }
824
818
  function Cr(e) {
825
819
  return {
@@ -856,7 +850,7 @@ function He(e) {
856
850
  y: n
857
851
  };
858
852
  }
859
- function vt(e, t, n) {
853
+ function $t(e, t, n) {
860
854
  let {
861
855
  reference: o,
862
856
  floating: i
@@ -918,7 +912,7 @@ const Er = async (e, t, n) => {
918
912
  }), {
919
913
  x: u,
920
914
  y: f
921
- } = vt(l, o, c), p = o, d = {}, h = 0;
915
+ } = $t(l, o, c), p = o, d = {}, h = 0;
922
916
  for (let m = 0; m < a.length; m++) {
923
917
  const {
924
918
  name: g,
@@ -927,7 +921,7 @@ const Er = async (e, t, n) => {
927
921
  x: b,
928
922
  y: x,
929
923
  data: w,
930
- reset: v
924
+ reset: $
931
925
  } = await y({
932
926
  x: u,
933
927
  y: f,
@@ -948,14 +942,14 @@ const Er = async (e, t, n) => {
948
942
  ...d[g],
949
943
  ...w
950
944
  }
951
- }, v && h <= 50 && (h++, typeof v == "object" && (v.placement && (p = v.placement), v.rects && (l = v.rects === !0 ? await s.getElementRects({
945
+ }, $ && h <= 50 && (h++, typeof $ == "object" && ($.placement && (p = $.placement), $.rects && (l = $.rects === !0 ? await s.getElementRects({
952
946
  reference: e,
953
947
  floating: t,
954
948
  strategy: i
955
- }) : v.rects), {
949
+ }) : $.rects), {
956
950
  x: u,
957
951
  y: f
958
- } = vt(l, p, c)), m = -1);
952
+ } = $t(l, p, c)), m = -1);
959
953
  }
960
954
  return {
961
955
  x: u,
@@ -997,17 +991,17 @@ async function Pe(e, t) {
997
991
  } : {
998
992
  x: 1,
999
993
  y: 1
1000
- }, v = He(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
994
+ }, $ = He(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
1001
995
  elements: a,
1002
996
  rect: b,
1003
997
  offsetParent: x,
1004
998
  strategy: c
1005
999
  }) : b);
1006
1000
  return {
1007
- top: (y.top - v.top + h.top) / w.y,
1008
- bottom: (v.bottom - y.bottom + h.bottom) / w.y,
1009
- left: (y.left - v.left + h.left) / w.x,
1010
- right: (v.right - y.right + h.right) / w.x
1001
+ top: (y.top - $.top + h.top) / w.y,
1002
+ bottom: ($.bottom - y.bottom + h.bottom) / w.y,
1003
+ left: (y.left - $.left + h.left) / w.x,
1004
+ right: ($.right - y.right + h.right) / w.x
1011
1005
  };
1012
1006
  }
1013
1007
  const Tr = (e) => ({
@@ -1031,15 +1025,15 @@ const Tr = (e) => ({
1031
1025
  const f = Yt(u), p = {
1032
1026
  x: n,
1033
1027
  y: o
1034
- }, d = st(i), h = it(d), m = await s.getDimensions(l), g = d === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", w = r.reference[h] + r.reference[d] - p[d] - r.floating[h], v = p[d] - r.reference[d], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1035
- let P = A ? A[x] : 0;
1036
- (!P || !await (s.isElement == null ? void 0 : s.isElement(A))) && (P = a.floating[x] || r.floating[h]);
1037
- const $ = w / 2 - v / 2, E = P / 2 - m[h] / 2 - 1, T = ne(f[y], E), N = ne(f[b], E), M = T, F = P - m[h] - N, O = P / 2 - m[h] / 2 + $, V = Qe(M, O, F), R = !c.arrow && me(i) != null && O !== V && r.reference[h] / 2 - (O < M ? T : N) - m[h] / 2 < 0, B = R ? O < M ? O - M : O - F : 0;
1028
+ }, d = st(i), h = it(d), m = await s.getDimensions(l), g = d === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", w = r.reference[h] + r.reference[d] - p[d] - r.floating[h], $ = p[d] - r.reference[d], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1029
+ let P = O ? O[x] : 0;
1030
+ (!P || !await (s.isElement == null ? void 0 : s.isElement(O))) && (P = a.floating[x] || r.floating[h]);
1031
+ const v = w / 2 - $ / 2, E = P / 2 - m[h] / 2 - 1, T = ne(f[y], E), N = ne(f[b], E), M = T, F = P - m[h] - N, A = P / 2 - m[h] / 2 + v, V = Qe(M, A, F), R = !c.arrow && me(i) != null && A !== V && r.reference[h] / 2 - (A < M ? T : N) - m[h] / 2 < 0, B = R ? A < M ? A - M : A - F : 0;
1038
1032
  return {
1039
1033
  [d]: p[d] + B,
1040
1034
  data: {
1041
1035
  [d]: V,
1042
- centerOffset: O - V - B,
1036
+ centerOffset: A - V - B,
1043
1037
  ...R && {
1044
1038
  alignmentOffset: B
1045
1039
  }
@@ -1071,24 +1065,24 @@ const Tr = (e) => ({
1071
1065
  } = ee(e, t);
1072
1066
  if ((n = r.arrow) != null && n.alignmentOffset)
1073
1067
  return {};
1074
- const y = te(i), b = re(a), x = te(a) === a, w = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), v = p || (x || !m ? [Fe(a)] : Pr(a)), A = h !== "none";
1075
- !p && A && v.push(...Or(a, m, h, w));
1076
- const P = [a, ...v], $ = await Pe(t, g), E = [];
1068
+ const y = te(i), b = re(a), x = te(a) === a, w = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), $ = p || (x || !m ? [Fe(a)] : Pr(a)), O = h !== "none";
1069
+ !p && O && $.push(...Ar(a, m, h, w));
1070
+ const P = [a, ...$], v = await Pe(t, g), E = [];
1077
1071
  let T = ((o = r.flip) == null ? void 0 : o.overflows) || [];
1078
- if (u && E.push($[y]), f) {
1079
- const O = _r(i, s, w);
1080
- E.push($[O[0]], $[O[1]]);
1072
+ if (u && E.push(v[y]), f) {
1073
+ const A = _r(i, s, w);
1074
+ E.push(v[A[0]], v[A[1]]);
1081
1075
  }
1082
1076
  if (T = [...T, {
1083
1077
  placement: i,
1084
1078
  overflows: E
1085
- }], !E.every((O) => O <= 0)) {
1079
+ }], !E.every((A) => A <= 0)) {
1086
1080
  var N, M;
1087
- const O = (((N = r.flip) == null ? void 0 : N.index) || 0) + 1, V = P[O];
1081
+ const A = (((N = r.flip) == null ? void 0 : N.index) || 0) + 1, V = P[A];
1088
1082
  if (V)
1089
1083
  return {
1090
1084
  data: {
1091
- index: O,
1085
+ index: A,
1092
1086
  overflows: T
1093
1087
  },
1094
1088
  reset: {
@@ -1101,14 +1095,14 @@ const Tr = (e) => ({
1101
1095
  case "bestFit": {
1102
1096
  var F;
1103
1097
  const B = (F = T.filter((C) => {
1104
- if (A) {
1098
+ if (O) {
1105
1099
  const H = re(C.placement);
1106
1100
  return H === b || // Create a bias to the `y` side axis due to horizontal
1107
1101
  // reading directions favoring greater width.
1108
1102
  H === "y";
1109
1103
  }
1110
1104
  return !0;
1111
- }).map((C) => [C.placement, C.overflows.filter((H) => H > 0).reduce((H, G) => H + G, 0)]).sort((C, H) => C[1] - H[1])[0]) == null ? void 0 : F[0];
1105
+ }).map((C) => [C.placement, C.overflows.filter((H) => H > 0).reduce((H, X) => H + X, 0)]).sort((C, H) => C[1] - H[1])[0]) == null ? void 0 : F[0];
1112
1106
  B && (R = B);
1113
1107
  break;
1114
1108
  }
@@ -1127,7 +1121,7 @@ const Tr = (e) => ({
1127
1121
  }
1128
1122
  };
1129
1123
  };
1130
- function $t(e, t) {
1124
+ function vt(e, t) {
1131
1125
  return {
1132
1126
  top: e.top - t.height,
1133
1127
  right: e.right - t.width,
@@ -1154,7 +1148,7 @@ const Sr = function(e) {
1154
1148
  const r = await Pe(t, {
1155
1149
  ...i,
1156
1150
  elementContext: "reference"
1157
- }), s = $t(r, n.reference);
1151
+ }), s = vt(r, n.reference);
1158
1152
  return {
1159
1153
  data: {
1160
1154
  referenceHiddenOffsets: s,
@@ -1166,7 +1160,7 @@ const Sr = function(e) {
1166
1160
  const r = await Pe(t, {
1167
1161
  ...i,
1168
1162
  altBoundary: !0
1169
- }), s = $t(r, n.floating);
1163
+ }), s = vt(r, n.floating);
1170
1164
  return {
1171
1165
  data: {
1172
1166
  escapedOffsets: s,
@@ -1313,13 +1307,13 @@ const Nr = function(e) {
1313
1307
  ...m
1314
1308
  };
1315
1309
  if (c) {
1316
- const x = p === "y" ? "height" : "width", w = r.reference[p] - r.floating[x] + g.mainAxis, v = r.reference[p] + r.reference[x] - g.mainAxis;
1317
- d < w ? d = w : d > v && (d = v);
1310
+ const x = p === "y" ? "height" : "width", w = r.reference[p] - r.floating[x] + g.mainAxis, $ = r.reference[p] + r.reference[x] - g.mainAxis;
1311
+ d < w ? d = w : d > $ && (d = $);
1318
1312
  }
1319
1313
  if (l) {
1320
1314
  var y, b;
1321
- const x = p === "y" ? "width" : "height", w = ["top", "left"].includes(te(i)), v = r.reference[f] - r.floating[x] + (w && ((y = s.offset) == null ? void 0 : y[f]) || 0) + (w ? 0 : g.crossAxis), A = r.reference[f] + r.reference[x] + (w ? 0 : ((b = s.offset) == null ? void 0 : b[f]) || 0) - (w ? g.crossAxis : 0);
1322
- h < v ? h = v : h > A && (h = A);
1315
+ const x = p === "y" ? "width" : "height", w = ["top", "left"].includes(te(i)), $ = r.reference[f] - r.floating[x] + (w && ((y = s.offset) == null ? void 0 : y[f]) || 0) + (w ? 0 : g.crossAxis), O = r.reference[f] + r.reference[x] + (w ? 0 : ((b = s.offset) == null ? void 0 : b[f]) || 0) - (w ? g.crossAxis : 0);
1316
+ h < $ ? h = $ : h > O && (h = O);
1323
1317
  }
1324
1318
  return {
1325
1319
  [p]: d,
@@ -1348,15 +1342,15 @@ const Nr = function(e) {
1348
1342
  } = r.floating;
1349
1343
  let g, y;
1350
1344
  f === "top" || f === "bottom" ? (g = f, y = p === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = f, g = p === "end" ? "top" : "bottom");
1351
- const b = m - u.top - u.bottom, x = h - u.left - u.right, w = ne(m - u[g], b), v = ne(h - u[y], x), A = !t.middlewareData.shift;
1352
- let P = w, $ = v;
1353
- if ((n = t.middlewareData.shift) != null && n.enabled.x && ($ = x), (o = t.middlewareData.shift) != null && o.enabled.y && (P = b), A && !p) {
1345
+ const b = m - u.top - u.bottom, x = h - u.left - u.right, w = ne(m - u[g], b), $ = ne(h - u[y], x), O = !t.middlewareData.shift;
1346
+ let P = w, v = $;
1347
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (v = x), (o = t.middlewareData.shift) != null && o.enabled.y && (P = b), O && !p) {
1354
1348
  const T = W(u.left, 0), N = W(u.right, 0), M = W(u.top, 0), F = W(u.bottom, 0);
1355
- d ? $ = h - 2 * (T !== 0 || N !== 0 ? T + N : W(u.left, u.right)) : P = m - 2 * (M !== 0 || F !== 0 ? M + F : W(u.top, u.bottom));
1349
+ d ? v = h - 2 * (T !== 0 || N !== 0 ? T + N : W(u.left, u.right)) : P = m - 2 * (M !== 0 || F !== 0 ? M + F : W(u.top, u.bottom));
1356
1350
  }
1357
1351
  await c({
1358
1352
  ...t,
1359
- availableWidth: $,
1353
+ availableWidth: v,
1360
1354
  availableHeight: P
1361
1355
  });
1362
1356
  const E = await s.getDimensions(a.floating);
@@ -1372,7 +1366,7 @@ function ze() {
1372
1366
  return typeof window < "u";
1373
1367
  }
1374
1368
  function ye(e) {
1375
- return Xt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1369
+ return Gt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1376
1370
  }
1377
1371
  function U(e) {
1378
1372
  var t;
@@ -1380,9 +1374,9 @@ function U(e) {
1380
1374
  }
1381
1375
  function J(e) {
1382
1376
  var t;
1383
- return (t = (Xt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1377
+ return (t = (Gt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1384
1378
  }
1385
- function Xt(e) {
1379
+ function Gt(e) {
1386
1380
  return ze() ? e instanceof Node || e instanceof U(e).Node : !1;
1387
1381
  }
1388
1382
  function Y(e) {
@@ -1400,7 +1394,7 @@ function Ce(e) {
1400
1394
  overflowX: n,
1401
1395
  overflowY: o,
1402
1396
  display: i
1403
- } = X(e);
1397
+ } = G(e);
1404
1398
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
1405
1399
  }
1406
1400
  function Ir(e) {
@@ -1416,7 +1410,7 @@ function je(e) {
1416
1410
  });
1417
1411
  }
1418
1412
  function at(e) {
1419
- const t = ct(), n = Y(e) ? X(e) : e;
1413
+ const t = ct(), n = Y(e) ? G(e) : e;
1420
1414
  return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "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((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
1421
1415
  }
1422
1416
  function Fr(e) {
@@ -1436,7 +1430,7 @@ function ct() {
1436
1430
  function pe(e) {
1437
1431
  return ["html", "body", "#document"].includes(ye(e));
1438
1432
  }
1439
- function X(e) {
1433
+ function G(e) {
1440
1434
  return U(e).getComputedStyle(e);
1441
1435
  }
1442
1436
  function We(e) {
@@ -1460,25 +1454,25 @@ function oe(e) {
1460
1454
  );
1461
1455
  return Pt(t) ? t.host : t;
1462
1456
  }
1463
- function Gt(e) {
1457
+ function Xt(e) {
1464
1458
  const t = oe(e);
1465
- return pe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Ce(t) ? t : Gt(t);
1459
+ return pe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Ce(t) ? t : Xt(t);
1466
1460
  }
1467
- function Ae(e, t, n) {
1461
+ function Oe(e, t, n) {
1468
1462
  var o;
1469
1463
  t === void 0 && (t = []), n === void 0 && (n = !0);
1470
- const i = Gt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = U(i);
1464
+ const i = Xt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = U(i);
1471
1465
  if (r) {
1472
1466
  const a = tt(s);
1473
- return t.concat(s, s.visualViewport || [], Ce(i) ? i : [], a && n ? Ae(a) : []);
1467
+ return t.concat(s, s.visualViewport || [], Ce(i) ? i : [], a && n ? Oe(a) : []);
1474
1468
  }
1475
- return t.concat(i, Ae(i, [], n));
1469
+ return t.concat(i, Oe(i, [], n));
1476
1470
  }
1477
1471
  function tt(e) {
1478
1472
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1479
1473
  }
1480
1474
  function Kt(e) {
1481
- const t = X(e);
1475
+ const t = G(e);
1482
1476
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1483
1477
  const i = Z(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Ie(n) !== r || Ie(o) !== s;
1484
1478
  return a && (n = r, o = s), {
@@ -1527,7 +1521,7 @@ function ae(e, t, n, o) {
1527
1521
  const p = U(r), d = o && Y(o) ? U(o) : o;
1528
1522
  let h = p, m = tt(h);
1529
1523
  for (; m && o && d !== h; ) {
1530
- const g = fe(m), y = m.getBoundingClientRect(), b = X(m), x = y.left + (m.clientLeft + parseFloat(b.paddingLeft)) * g.x, w = y.top + (m.clientTop + parseFloat(b.paddingTop)) * g.y;
1524
+ const g = fe(m), y = m.getBoundingClientRect(), b = G(m), x = y.left + (m.clientLeft + parseFloat(b.paddingLeft)) * g.x, w = y.top + (m.clientTop + parseFloat(b.paddingTop)) * g.y;
1531
1525
  c *= g.x, l *= g.y, u *= g.x, f *= g.y, c += x, l += w, h = U(m), m = tt(h);
1532
1526
  }
1533
1527
  }
@@ -1587,7 +1581,7 @@ function Wr(e) {
1587
1581
  const t = J(e), n = We(e), o = e.ownerDocument.body, i = W(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = W(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1588
1582
  let s = -n.scrollLeft + ut(e);
1589
1583
  const a = -n.scrollTop;
1590
- return X(o).direction === "rtl" && (s += W(t.clientWidth, o.clientWidth) - i), {
1584
+ return G(o).direction === "rtl" && (s += W(t.clientWidth, o.clientWidth) - i), {
1591
1585
  width: i,
1592
1586
  height: r,
1593
1587
  x: s,
@@ -1618,7 +1612,7 @@ function Ur(e, t) {
1618
1612
  y: l
1619
1613
  };
1620
1614
  }
1621
- function At(e, t, n) {
1615
+ function Ot(e, t, n) {
1622
1616
  let o;
1623
1617
  if (t === "viewport")
1624
1618
  o = qr(e, n);
@@ -1639,17 +1633,17 @@ function At(e, t, n) {
1639
1633
  }
1640
1634
  function Qt(e, t) {
1641
1635
  const n = oe(e);
1642
- return n === t || !Y(n) || pe(n) ? !1 : X(n).position === "fixed" || Qt(n, t);
1636
+ return n === t || !Y(n) || pe(n) ? !1 : G(n).position === "fixed" || Qt(n, t);
1643
1637
  }
1644
1638
  function Vr(e, t) {
1645
1639
  const n = t.get(e);
1646
1640
  if (n)
1647
1641
  return n;
1648
- let o = Ae(e, [], !1).filter((a) => Y(a) && ye(a) !== "body"), i = null;
1649
- const r = X(e).position === "fixed";
1642
+ let o = Oe(e, [], !1).filter((a) => Y(a) && ye(a) !== "body"), i = null;
1643
+ const r = G(e).position === "fixed";
1650
1644
  let s = r ? oe(e) : e;
1651
1645
  for (; Y(s) && !pe(s); ) {
1652
- const a = X(s), c = at(s);
1646
+ const a = G(s), c = at(s);
1653
1647
  !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ce(s) && !c && Qt(e, s)) ? o = o.filter((u) => u !== s) : i = a, s = oe(s);
1654
1648
  }
1655
1649
  return t.set(e, o), o;
@@ -1662,9 +1656,9 @@ function Yr(e) {
1662
1656
  strategy: i
1663
1657
  } = e;
1664
1658
  const s = [...n === "clippingAncestors" ? je(t) ? [] : Vr(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, u) => {
1665
- const f = At(t, u, i);
1659
+ const f = Ot(t, u, i);
1666
1660
  return l.top = W(f.top, l.top), l.right = ne(f.right, l.right), l.bottom = ne(f.bottom, l.bottom), l.left = W(f.left, l.left), l;
1667
- }, At(t, a, i));
1661
+ }, Ot(t, a, i));
1668
1662
  return {
1669
1663
  width: c.right - c.left,
1670
1664
  height: c.bottom - c.top,
@@ -1672,7 +1666,7 @@ function Yr(e) {
1672
1666
  y: c.top
1673
1667
  };
1674
1668
  }
1675
- function Xr(e) {
1669
+ function Gr(e) {
1676
1670
  const {
1677
1671
  width: t,
1678
1672
  height: n
@@ -1682,7 +1676,7 @@ function Xr(e) {
1682
1676
  height: n
1683
1677
  };
1684
1678
  }
1685
- function Gr(e, t, n) {
1679
+ function Xr(e, t, n) {
1686
1680
  const o = Z(t), i = J(t), r = n === "fixed", s = ae(e, !0, r, t);
1687
1681
  let a = {
1688
1682
  scrollLeft: 0,
@@ -1703,10 +1697,10 @@ function Gr(e, t, n) {
1703
1697
  };
1704
1698
  }
1705
1699
  function Ve(e) {
1706
- return X(e).position === "static";
1700
+ return G(e).position === "static";
1707
1701
  }
1708
- function Ot(e, t) {
1709
- if (!Z(e) || X(e).position === "fixed")
1702
+ function At(e, t) {
1703
+ if (!Z(e) || G(e).position === "fixed")
1710
1704
  return null;
1711
1705
  if (t)
1712
1706
  return t(e);
@@ -1726,15 +1720,15 @@ function en(e, t) {
1726
1720
  }
1727
1721
  return n;
1728
1722
  }
1729
- let o = Ot(e, t);
1723
+ let o = At(e, t);
1730
1724
  for (; o && Ir(o) && Ve(o); )
1731
- o = Ot(o, t);
1725
+ o = At(o, t);
1732
1726
  return o && pe(o) && Ve(o) && !at(o) ? n : o || Fr(e) || n;
1733
1727
  }
1734
1728
  const Kr = async function(e) {
1735
1729
  const t = this.getOffsetParent || en, n = this.getDimensions, o = await n(e.floating);
1736
1730
  return {
1737
- reference: Gr(e.reference, await t(e.floating), e.strategy),
1731
+ reference: Xr(e.reference, await t(e.floating), e.strategy),
1738
1732
  floating: {
1739
1733
  x: 0,
1740
1734
  y: 0,
@@ -1744,7 +1738,7 @@ const Kr = async function(e) {
1744
1738
  };
1745
1739
  };
1746
1740
  function Zr(e) {
1747
- return X(e).direction === "rtl";
1741
+ return G(e).direction === "rtl";
1748
1742
  }
1749
1743
  const Jr = {
1750
1744
  convertOffsetParentRelativeRectToViewportRelativeRect: zr,
@@ -1753,7 +1747,7 @@ const Jr = {
1753
1747
  getOffsetParent: en,
1754
1748
  getElementRects: Kr,
1755
1749
  getClientRects: jr,
1756
- getDimensions: Xr,
1750
+ getDimensions: Gr,
1757
1751
  getScale: fe,
1758
1752
  isElement: Y,
1759
1753
  isRTL: Zr
@@ -1783,8 +1777,8 @@ function Qr(e, t) {
1783
1777
  threshold: W(0, ne(1, c)) || 1
1784
1778
  };
1785
1779
  let w = !0;
1786
- function v(A) {
1787
- const P = A[0].intersectionRatio;
1780
+ function $(O) {
1781
+ const P = O[0].intersectionRatio;
1788
1782
  if (P !== c) {
1789
1783
  if (!w)
1790
1784
  return s();
@@ -1795,13 +1789,13 @@ function Qr(e, t) {
1795
1789
  P === 1 && !tn(l, e.getBoundingClientRect()) && s(), w = !1;
1796
1790
  }
1797
1791
  try {
1798
- n = new IntersectionObserver(v, {
1792
+ n = new IntersectionObserver($, {
1799
1793
  ...x,
1800
1794
  // Handle <iframe>s
1801
1795
  root: i.ownerDocument
1802
1796
  });
1803
1797
  } catch {
1804
- n = new IntersectionObserver(v, x);
1798
+ n = new IntersectionObserver($, x);
1805
1799
  }
1806
1800
  n.observe(e);
1807
1801
  }
@@ -1815,7 +1809,7 @@ function eo(e, t, n, o) {
1815
1809
  elementResize: s = typeof ResizeObserver == "function",
1816
1810
  layoutShift: a = typeof IntersectionObserver == "function",
1817
1811
  animationFrame: c = !1
1818
- } = o, l = lt(e), u = i || r ? [...l ? Ae(l) : [], ...Ae(t)] : [];
1812
+ } = o, l = lt(e), u = i || r ? [...l ? Oe(l) : [], ...Oe(t)] : [];
1819
1813
  u.forEach((y) => {
1820
1814
  i && y.addEventListener("scroll", n, {
1821
1815
  passive: !0
@@ -1924,19 +1918,19 @@ function co(e) {
1924
1918
  }), [p, d] = L.useState(o);
1925
1919
  Be(p, o) || d(o);
1926
1920
  const [h, m] = L.useState(null), [g, y] = L.useState(null), b = L.useCallback((C) => {
1927
- C !== A.current && (A.current = C, m(C));
1921
+ C !== O.current && (O.current = C, m(C));
1928
1922
  }, []), x = L.useCallback((C) => {
1929
1923
  C !== P.current && (P.current = C, y(C));
1930
- }, []), w = r || h, v = s || g, A = L.useRef(null), P = L.useRef(null), $ = L.useRef(u), E = c != null, T = Ye(c), N = Ye(i), M = Ye(l), F = L.useCallback(() => {
1931
- if (!A.current || !P.current)
1924
+ }, []), w = r || h, $ = s || g, O = L.useRef(null), P = L.useRef(null), v = L.useRef(u), E = c != null, T = Ye(c), N = Ye(i), M = Ye(l), F = L.useCallback(() => {
1925
+ if (!O.current || !P.current)
1932
1926
  return;
1933
1927
  const C = {
1934
1928
  placement: t,
1935
1929
  strategy: n,
1936
1930
  middleware: p
1937
1931
  };
1938
- N.current && (C.platform = N.current), ao(A.current, P.current, C).then((H) => {
1939
- const G = {
1932
+ N.current && (C.platform = N.current), ao(O.current, P.current, C).then((H) => {
1933
+ const X = {
1940
1934
  ...H,
1941
1935
  // The floating element's position may be recomputed while it's closed
1942
1936
  // but still mounted (such as when transitioning out). To ensure
@@ -1944,36 +1938,36 @@ function co(e) {
1944
1938
  // setting it to `true` when `open === false` (must be specified).
1945
1939
  isPositioned: M.current !== !1
1946
1940
  };
1947
- O.current && !Be($.current, G) && ($.current = G, Cn.flushSync(() => {
1948
- f(G);
1941
+ A.current && !Be(v.current, X) && (v.current = X, Cn.flushSync(() => {
1942
+ f(X);
1949
1943
  }));
1950
1944
  });
1951
1945
  }, [p, t, n, N, M]);
1952
1946
  Me(() => {
1953
- l === !1 && $.current.isPositioned && ($.current.isPositioned = !1, f((C) => ({
1947
+ l === !1 && v.current.isPositioned && (v.current.isPositioned = !1, f((C) => ({
1954
1948
  ...C,
1955
1949
  isPositioned: !1
1956
1950
  })));
1957
1951
  }, [l]);
1958
- const O = L.useRef(!1);
1959
- Me(() => (O.current = !0, () => {
1960
- O.current = !1;
1952
+ const A = L.useRef(!1);
1953
+ Me(() => (A.current = !0, () => {
1954
+ A.current = !1;
1961
1955
  }), []), Me(() => {
1962
- if (w && (A.current = w), v && (P.current = v), w && v) {
1956
+ if (w && (O.current = w), $ && (P.current = $), w && $) {
1963
1957
  if (T.current)
1964
- return T.current(w, v, F);
1958
+ return T.current(w, $, F);
1965
1959
  F();
1966
1960
  }
1967
- }, [w, v, F, T, E]);
1961
+ }, [w, $, F, T, E]);
1968
1962
  const V = L.useMemo(() => ({
1969
- reference: A,
1963
+ reference: O,
1970
1964
  floating: P,
1971
1965
  setReference: b,
1972
1966
  setFloating: x
1973
1967
  }), [b, x]), R = L.useMemo(() => ({
1974
1968
  reference: w,
1975
- floating: v
1976
- }), [w, v]), B = L.useMemo(() => {
1969
+ floating: $
1970
+ }), [w, $]), B = L.useMemo(() => {
1977
1971
  const C = {
1978
1972
  position: n,
1979
1973
  left: 0,
@@ -1981,17 +1975,17 @@ function co(e) {
1981
1975
  };
1982
1976
  if (!R.floating)
1983
1977
  return C;
1984
- const H = Et(R.floating, u.x), G = Et(R.floating, u.y);
1978
+ const H = Et(R.floating, u.x), X = Et(R.floating, u.y);
1985
1979
  return a ? {
1986
1980
  ...C,
1987
- transform: "translate(" + H + "px, " + G + "px)",
1981
+ transform: "translate(" + H + "px, " + X + "px)",
1988
1982
  ...nn(R.floating) >= 1.5 && {
1989
1983
  willChange: "transform"
1990
1984
  }
1991
1985
  } : {
1992
1986
  position: n,
1993
1987
  left: H,
1994
- top: G
1988
+ top: X
1995
1989
  };
1996
1990
  }, [n, a, R.floating, u.x, u.y]);
1997
1991
  return L.useMemo(() => ({
@@ -2087,9 +2081,9 @@ function wo(e) {
2087
2081
  e
2088
2082
  ]), t;
2089
2083
  }
2090
- const rn = "Popper", [on, sn] = Wt(rn), [vo, an] = on(rn), $o = (e) => {
2084
+ const rn = "Popper", [on, sn] = Wt(rn), [$o, an] = on(rn), vo = (e) => {
2091
2085
  const { __scopePopper: t, children: n } = e, [o, i] = q(null);
2092
- return /* @__PURE__ */ _(vo, {
2086
+ return /* @__PURE__ */ _($o, {
2093
2087
  scope: t,
2094
2088
  anchor: o,
2095
2089
  onAnchorChange: i
@@ -2101,12 +2095,12 @@ const rn = "Popper", [on, sn] = Wt(rn), [vo, an] = on(rn), $o = (e) => {
2101
2095
  }), o ? null : /* @__PURE__ */ _(ce.div, D({}, i, {
2102
2096
  ref: a
2103
2097
  }));
2104
- }), cn = "PopperContent", [Ao, Oo] = on(cn), Co = /* @__PURE__ */ I((e, t) => {
2098
+ }), cn = "PopperContent", [Oo, Ao] = on(cn), Co = /* @__PURE__ */ I((e, t) => {
2105
2099
  var n, o, i, r, s, a, c, l;
2106
- const { __scopePopper: u, side: f = "bottom", sideOffset: p = 0, align: d = "center", alignOffset: h = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: y = [], collisionPadding: b = 0, sticky: x = "partial", hideWhenDetached: w = !1, updatePositionStrategy: v = "optimized", onPlaced: A, ...P } = e, $ = an(cn, u), [E, T] = q(null), N = he(
2100
+ const { __scopePopper: u, side: f = "bottom", sideOffset: p = 0, align: d = "center", alignOffset: h = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: y = [], collisionPadding: b = 0, sticky: x = "partial", hideWhenDetached: w = !1, updatePositionStrategy: $ = "optimized", onPlaced: O, ...P } = e, v = an(cn, u), [E, T] = q(null), N = he(
2107
2101
  t,
2108
2102
  (be) => T(be)
2109
- ), [M, F] = q(null), O = wo(M), V = (n = O == null ? void 0 : O.width) !== null && n !== void 0 ? n : 0, R = (o = O == null ? void 0 : O.height) !== null && o !== void 0 ? o : 0, B = f + (d !== "center" ? "-" + d : ""), C = typeof b == "number" ? b : {
2103
+ ), [M, F] = q(null), A = wo(M), V = (n = A == null ? void 0 : A.width) !== null && n !== void 0 ? n : 0, R = (o = A == null ? void 0 : A.height) !== null && o !== void 0 ? o : 0, B = f + (d !== "center" ? "-" + d : ""), C = typeof b == "number" ? b : {
2110
2104
  top: 0,
2111
2105
  right: 0,
2112
2106
  bottom: 0,
@@ -2114,20 +2108,20 @@ const rn = "Popper", [on, sn] = Wt(rn), [vo, an] = on(rn), $o = (e) => {
2114
2108
  ...b
2115
2109
  }, H = Array.isArray(y) ? y : [
2116
2110
  y
2117
- ], G = H.length > 0, Te = {
2111
+ ], X = H.length > 0, Te = {
2118
2112
  padding: C,
2119
2113
  boundary: H.filter(So),
2120
2114
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2121
- altBoundary: G
2115
+ altBoundary: X
2122
2116
  }, { refs: pn, floatingStyles: ht, placement: hn, isPositioned: Re, middlewareData: le } = co({
2123
2117
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2124
2118
  strategy: "fixed",
2125
2119
  placement: B,
2126
2120
  whileElementsMounted: (...be) => eo(...be, {
2127
- animationFrame: v === "always"
2121
+ animationFrame: $ === "always"
2128
2122
  }),
2129
2123
  elements: {
2130
- reference: $.anchor
2124
+ reference: v.anchor
2131
2125
  },
2132
2126
  middleware: [
2133
2127
  uo({
@@ -2145,9 +2139,9 @@ const rn = "Popper", [on, sn] = Wt(rn), [vo, an] = on(rn), $o = (e) => {
2145
2139
  }),
2146
2140
  go({
2147
2141
  ...Te,
2148
- apply: ({ elements: be, rects: mt, availableWidth: vn, availableHeight: $n }) => {
2142
+ apply: ({ elements: be, rects: mt, availableWidth: $n, availableHeight: vn }) => {
2149
2143
  const { width: _n, height: Pn } = mt.reference, De = be.floating.style;
2150
- De.setProperty("--radix-popper-available-width", `${vn}px`), De.setProperty("--radix-popper-available-height", `${$n}px`), De.setProperty("--radix-popper-anchor-width", `${_n}px`), De.setProperty("--radix-popper-anchor-height", `${Pn}px`);
2144
+ De.setProperty("--radix-popper-available-width", `${$n}px`), De.setProperty("--radix-popper-available-height", `${vn}px`), De.setProperty("--radix-popper-anchor-width", `${_n}px`), De.setProperty("--radix-popper-anchor-height", `${Pn}px`);
2151
2145
  }
2152
2146
  }),
2153
2147
  M && yo({
@@ -2163,7 +2157,7 @@ const rn = "Popper", [on, sn] = Wt(rn), [vo, an] = on(rn), $o = (e) => {
2163
2157
  ...Te
2164
2158
  })
2165
2159
  ]
2166
- }), [gt, gn] = ln(hn), Se = ge(A);
2160
+ }), [gt, gn] = ln(hn), Se = ge(O);
2167
2161
  de(() => {
2168
2162
  Re && (Se == null || Se());
2169
2163
  }, [
@@ -2190,7 +2184,7 @@ const rn = "Popper", [on, sn] = Wt(rn), [vo, an] = on(rn), $o = (e) => {
2190
2184
  ].join(" ")
2191
2185
  },
2192
2186
  dir: e.dir
2193
- }, /* @__PURE__ */ _(Ao, {
2187
+ }, /* @__PURE__ */ _(Oo, {
2194
2188
  scope: u,
2195
2189
  placedSide: gt,
2196
2190
  onArrowChange: F,
@@ -2217,7 +2211,7 @@ const rn = "Popper", [on, sn] = Wt(rn), [vo, an] = on(rn), $o = (e) => {
2217
2211
  bottom: "top",
2218
2212
  left: "right"
2219
2213
  }, Ro = /* @__PURE__ */ I(function(t, n) {
2220
- const { __scopePopper: o, ...i } = t, r = Oo(Eo, o), s = To[r.placedSide];
2214
+ const { __scopePopper: o, ...i } = t, r = Ao(Eo, o), s = To[r.placedSide];
2221
2215
  return (
2222
2216
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2223
2217
  // doesn't report size as we'd expect on SVG elements.
@@ -2282,7 +2276,7 @@ function ln(e) {
2282
2276
  n
2283
2277
  ];
2284
2278
  }
2285
- const No = $o, Lo = Po, Mo = Co, ko = Ro, Io = /* @__PURE__ */ I((e, t) => {
2279
+ const No = vo, Lo = Po, Mo = Co, ko = Ro, Io = /* @__PURE__ */ I((e, t) => {
2286
2280
  var n;
2287
2281
  const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = e;
2288
2282
  return o ? /* @__PURE__ */ En.createPortal(/* @__PURE__ */ _(ce.div, D({}, i, {
@@ -2290,7 +2284,7 @@ const No = $o, Lo = Po, Mo = Co, ko = Ro, Io = /* @__PURE__ */ I((e, t) => {
2290
2284
  })), o) : null;
2291
2285
  });
2292
2286
  function Fo(e, t) {
2293
- return On((n, o) => {
2287
+ return An((n, o) => {
2294
2288
  const i = t[n][o];
2295
2289
  return i ?? n;
2296
2290
  }, e);
@@ -2438,7 +2432,7 @@ const jo = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ _(ce.span, D({}, e, {
2438
2432
  }, []),
2439
2433
  disableHoverableContent: i
2440
2434
  }, r);
2441
- }, pt = "Tooltip", [Xo, Ee] = qe(pt), Go = (e) => {
2435
+ }, pt = "Tooltip", [Go, Ee] = qe(pt), Xo = (e) => {
2442
2436
  const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = dt(pt, e.__scopeTooltip), l = Ue(t), [u, f] = q(null), p = xr(), d = k(0), h = s ?? c.disableHoverableContent, m = a ?? c.delayDuration, g = k(!1), [y = !1, b] = Bo({
2443
2437
  prop: o,
2444
2438
  defaultProp: i,
@@ -2451,11 +2445,11 @@ const jo = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ _(ce.span, D({}, e, {
2451
2445
  window.clearTimeout(d.current), g.current = !1, b(!0);
2452
2446
  }, [
2453
2447
  b
2454
- ]), v = j(() => {
2448
+ ]), $ = j(() => {
2455
2449
  window.clearTimeout(d.current), b(!1);
2456
2450
  }, [
2457
2451
  b
2458
- ]), A = j(() => {
2452
+ ]), O = j(() => {
2459
2453
  window.clearTimeout(d.current), d.current = window.setTimeout(() => {
2460
2454
  g.current = !0, b(!0);
2461
2455
  }, m);
@@ -2463,7 +2457,7 @@ const jo = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ _(ce.span, D({}, e, {
2463
2457
  m,
2464
2458
  b
2465
2459
  ]);
2466
- return S(() => () => window.clearTimeout(d.current), []), /* @__PURE__ */ _(No, l, /* @__PURE__ */ _(Xo, {
2460
+ return S(() => () => window.clearTimeout(d.current), []), /* @__PURE__ */ _(No, l, /* @__PURE__ */ _(Go, {
2467
2461
  scope: t,
2468
2462
  contentId: p,
2469
2463
  open: y,
@@ -2471,20 +2465,20 @@ const jo = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ _(ce.span, D({}, e, {
2471
2465
  trigger: u,
2472
2466
  onTriggerChange: f,
2473
2467
  onTriggerEnter: j(() => {
2474
- c.isOpenDelayed ? A() : w();
2468
+ c.isOpenDelayed ? O() : w();
2475
2469
  }, [
2476
2470
  c.isOpenDelayed,
2477
- A,
2471
+ O,
2478
2472
  w
2479
2473
  ]),
2480
2474
  onTriggerLeave: j(() => {
2481
- h ? v() : window.clearTimeout(d.current);
2475
+ h ? $() : window.clearTimeout(d.current);
2482
2476
  }, [
2483
- v,
2477
+ $,
2484
2478
  h
2485
2479
  ]),
2486
2480
  onOpen: w,
2487
- onClose: v,
2481
+ onClose: $,
2488
2482
  disableHoverableContent: h
2489
2483
  }, n));
2490
2484
  }, Tt = "TooltipTrigger", Ko = /* @__PURE__ */ I((e, t) => {
@@ -2533,8 +2527,8 @@ const jo = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ _(ce.span, D({}, e, {
2533
2527
  asChild: !0,
2534
2528
  container: i
2535
2529
  }, o)));
2536
- }, Oe = "TooltipContent", ei = /* @__PURE__ */ I((e, t) => {
2537
- const n = Jo(Oe, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Ee(Oe, e.__scopeTooltip);
2530
+ }, Ae = "TooltipContent", ei = /* @__PURE__ */ I((e, t) => {
2531
+ const n = Jo(Ae, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Ee(Ae, e.__scopeTooltip);
2538
2532
  return /* @__PURE__ */ _(ft, {
2539
2533
  present: o || s.open
2540
2534
  }, s.disableHoverableContent ? /* @__PURE__ */ _(fn, D({
@@ -2547,7 +2541,7 @@ const jo = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ _(ce.span, D({}, e, {
2547
2541
  ref: t
2548
2542
  })));
2549
2543
  }), ti = /* @__PURE__ */ I((e, t) => {
2550
- const n = Ee(Oe, e.__scopeTooltip), o = dt(Oe, e.__scopeTooltip), i = k(null), r = he(t, i), [s, a] = q(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: f } = o, p = j(() => {
2544
+ const n = Ee(Ae, e.__scopeTooltip), o = dt(Ae, e.__scopeTooltip), i = k(null), r = he(t, i), [s, a] = q(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: f } = o, p = j(() => {
2551
2545
  a(null), f(!1);
2552
2546
  }, [
2553
2547
  f
@@ -2555,11 +2549,11 @@ const jo = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ _(ce.span, D({}, e, {
2555
2549
  const g = h.currentTarget, y = {
2556
2550
  x: h.clientX,
2557
2551
  y: h.clientY
2558
- }, b = si(y, g.getBoundingClientRect()), x = ai(y, b), w = ci(m.getBoundingClientRect()), v = ui([
2552
+ }, b = si(y, g.getBoundingClientRect()), x = ai(y, b), w = ci(m.getBoundingClientRect()), $ = ui([
2559
2553
  ...x,
2560
2554
  ...w
2561
2555
  ]);
2562
- a(v), f(!0);
2556
+ a($), f(!0);
2563
2557
  }, [
2564
2558
  f
2565
2559
  ]);
@@ -2600,7 +2594,7 @@ const jo = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ _(ce.span, D({}, e, {
2600
2594
  }), [ni, ri] = qe(pt, {
2601
2595
  isInside: !1
2602
2596
  }), fn = /* @__PURE__ */ I((e, t) => {
2603
- const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Ee(Oe, n), l = Ue(n), { onClose: u } = c;
2597
+ const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Ee(Ae, n), l = Ue(n), { onClose: u } = c;
2604
2598
  return S(() => (document.addEventListener(nt, u), () => document.removeEventListener(nt, u)), [
2605
2599
  u
2606
2600
  ]), S(() => {
@@ -2766,7 +2760,7 @@ function fi(e) {
2766
2760
  }
2767
2761
  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);
2768
2762
  }
2769
- const di = Yo, pi = Go, hi = Ko, gi = Qo, mi = ei, yi = ii;
2763
+ const di = Yo, pi = Xo, hi = Ko, gi = Qo, mi = ei, yi = ii;
2770
2764
  function bi(e) {
2771
2765
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2772
2766
  }
@@ -2807,18 +2801,18 @@ var dn = { exports: {} };
2807
2801
  })();
2808
2802
  })(dn);
2809
2803
  var xi = dn.exports;
2810
- const wi = /* @__PURE__ */ bi(xi), vi = "_slideDownAndFade_fkagk_1", $i = "_slideLeftAndFade_fkagk_1", _i = "_slideUpAndFade_fkagk_1", Pi = "_slideRightAndFade_fkagk_1", Ai = {
2804
+ const wi = /* @__PURE__ */ bi(xi), $i = "_slideDownAndFade_fkagk_1", vi = "_slideLeftAndFade_fkagk_1", _i = "_slideUpAndFade_fkagk_1", Pi = "_slideRightAndFade_fkagk_1", Oi = {
2811
2805
  "purpur-tooltip": "_purpur-tooltip_fkagk_1",
2812
2806
  "purpur-tooltip__content": "_purpur-tooltip__content_fkagk_4",
2813
2807
  "purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_fkagk_14",
2814
2808
  "purpur-tooltip__content--primary-negative": "_purpur-tooltip__content--primary-negative_fkagk_17",
2815
- slideDownAndFade: vi,
2816
- slideLeftAndFade: $i,
2809
+ slideDownAndFade: $i,
2810
+ slideLeftAndFade: vi,
2817
2811
  slideUpAndFade: _i,
2818
2812
  slideRightAndFade: Pi,
2819
2813
  "purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_fkagk_32",
2820
2814
  "purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_fkagk_35"
2821
- }, Xe = wi.bind(Ai), Oi = {
2815
+ }, Ge = wi.bind(Oi), Ai = {
2822
2816
  TOP: "top",
2823
2817
  BOTTOM: "bottom",
2824
2818
  LEFT: "left",
@@ -2835,13 +2829,13 @@ const wi = /* @__PURE__ */ bi(xi), vi = "_slideDownAndFade_fkagk_1", $i = "_slid
2835
2829
  className: o,
2836
2830
  contentClassName: i,
2837
2831
  negative: r = !1,
2838
- position: s = Oi.TOP,
2832
+ position: s = Ai.TOP,
2839
2833
  align: a = Ci.CENTER,
2840
2834
  triggerAriaLabel: c = "",
2841
2835
  triggerElement: l,
2842
2836
  ...u
2843
2837
  }, f) => {
2844
- const [p, d] = q(!1), h = Xe([
2838
+ const [p, d] = q(!1), h = Ge([
2845
2839
  o,
2846
2840
  ue,
2847
2841
  `${ue}--primary${r ? "-negative" : ""}`
@@ -2855,10 +2849,10 @@ const wi = /* @__PURE__ */ bi(xi), vi = "_slideDownAndFade_fkagk_1", $i = "_slid
2855
2849
  iconOnly: !0,
2856
2850
  "data-testid": `${e}-trigger-button`,
2857
2851
  size: t,
2858
- children: /* @__PURE__ */ z(It, { size: "md" })
2852
+ children: /* @__PURE__ */ z(Ft, { size: "md" })
2859
2853
  }
2860
2854
  );
2861
- return /* @__PURE__ */ z("div", { "data-testid": e, className: h, children: /* @__PURE__ */ z(di, { delayDuration: parseInt(rr), children: /* @__PURE__ */ Ge(pi, { open: p, onOpenChange: d, ...u, children: [
2855
+ return /* @__PURE__ */ z("div", { "data-testid": e, className: h, children: /* @__PURE__ */ z(di, { delayDuration: parseInt(rr), children: /* @__PURE__ */ Xe(pi, { open: p, onOpenChange: d, ...u, children: [
2862
2856
  /* @__PURE__ */ z(
2863
2857
  hi,
2864
2858
  {
@@ -2869,12 +2863,12 @@ const wi = /* @__PURE__ */ bi(xi), vi = "_slideDownAndFade_fkagk_1", $i = "_slid
2869
2863
  children: se.count(l) === 0 ? m : l
2870
2864
  }
2871
2865
  ),
2872
- /* @__PURE__ */ z(gi, { children: /* @__PURE__ */ Ge(
2866
+ /* @__PURE__ */ z(gi, { children: /* @__PURE__ */ Xe(
2873
2867
  mi,
2874
2868
  {
2875
2869
  side: s,
2876
2870
  align: a,
2877
- className: Xe([
2871
+ className: Ge([
2878
2872
  i,
2879
2873
  `${ue}__content`,
2880
2874
  `${ue}__content--primary${r ? "-negative" : ""}`
@@ -2894,7 +2888,7 @@ const wi = /* @__PURE__ */ bi(xi), vi = "_slideDownAndFade_fkagk_1", $i = "_slid
2894
2888
  /* @__PURE__ */ z(
2895
2889
  yi,
2896
2890
  {
2897
- className: Xe([
2891
+ className: Ge([
2898
2892
  `${ue}__arrow`,
2899
2893
  `${ue}__arrow--primary${r ? "-negative" : ""}`
2900
2894
  ])
@@ -2909,7 +2903,7 @@ const wi = /* @__PURE__ */ bi(xi), vi = "_slideDownAndFade_fkagk_1", $i = "_slid
2909
2903
  Ei.displayName = "Tooltip";
2910
2904
  export {
2911
2905
  Ci as TOOLTIP_ALIGN,
2912
- Oi as TOOLTIP_POSITION,
2906
+ Ai as TOOLTIP_POSITION,
2913
2907
  Ei as Tooltip
2914
2908
  };
2915
2909
  //# sourceMappingURL=tooltip.es.js.map