@purpurds/tooltip 3.7.0 → 4.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,7 +1,7 @@
1
- import { jsxs as ze, jsx as I } from "react/jsx-runtime";
1
+ import { jsxs as Ue, jsx as I } from "react/jsx-runtime";
2
2
  import * as N from "react";
3
- import { forwardRef as M, useCallback as H, createContext as Ge, useMemo as ye, createElement as _, useContext as Tt, Fragment as $n, Children as se, isValidElement as Ie, cloneElement as Je, useEffect as R, useRef as L, useState as j, useLayoutEffect as Ct, useReducer as wn } from "react";
4
- import * as _n from "react-dom";
3
+ import { forwardRef as M, useCallback as H, createContext as Ge, useMemo as ye, createElement as w, useContext as Tt, Fragment as $n, Children as se, isValidElement as Ie, cloneElement as Je, useEffect as R, useRef as L, useState as z, useLayoutEffect as Ct, useReducer as _n } from "react";
4
+ import * as wn from "react-dom";
5
5
  import An, { flushSync as Rt } from "react-dom";
6
6
  const Pn = {
7
7
  PRIMARY: "primary",
@@ -205,7 +205,7 @@ const Mn = /* @__PURE__ */ Nn(Ln), re = {
205
205
  ), h = (m) => {
206
206
  o || s ? m.preventDefault() : a && a(m);
207
207
  }, g = () => l.endsWith("negative") ? "negative-disabled" : "disabled";
208
- return /* @__PURE__ */ ze(
208
+ return /* @__PURE__ */ Ue(
209
209
  "button",
210
210
  {
211
211
  className: f,
@@ -272,7 +272,7 @@ const kn = /* @__PURE__ */ Fn(Hn), Bn = {
272
272
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
273
273
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
274
274
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
275
- }, jn = {
275
+ }, zn = {
276
276
  name: "info",
277
277
  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>',
278
278
  keywords: ["info"],
@@ -281,18 +281,18 @@ const kn = /* @__PURE__ */ Fn(Hn), Bn = {
281
281
  Yn,
282
282
  {
283
283
  ...e,
284
- svg: jn
284
+ svg: zn
285
285
  }
286
286
  );
287
287
  Mt.displayName = "IconInfo";
288
- const Wn = kn.bind(Bn), gt = "purpur-icon", Vn = "md", Un = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), zn = ({ content: e = "", title: t } = {}) => {
288
+ const Wn = kn.bind(Bn), gt = "purpur-icon", Vn = "md", jn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Un = ({ content: e = "", title: t } = {}) => {
289
289
  const n = [
290
290
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
291
291
  { name: "fill", value: "currentColor" },
292
292
  { name: "viewBox", value: "0 0 24 24" },
293
293
  t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
294
294
  ], o = t ? `<title>${t}</title>` : "";
295
- return `<svg ${Un(n)}>${o}${e}</svg>`;
295
+ return `<svg ${jn(n)}>${o}${e}</svg>`;
296
296
  }, Gn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yn = ({
297
297
  ["data-testid"]: e,
298
298
  svg: t,
@@ -301,7 +301,7 @@ const Wn = kn.bind(Bn), gt = "purpur-icon", Vn = "md", Un = (e) => e.filter((t)
301
301
  size: i = Vn,
302
302
  ...r
303
303
  }) => {
304
- const s = zn({
304
+ const s = Un({
305
305
  content: Gn(t.svg),
306
306
  title: n
307
307
  }), a = Wn(o, gt, `${gt}--${i}`);
@@ -357,19 +357,19 @@ var It = { exports: {} };
357
357
  })(It);
358
358
  var qn = It.exports;
359
359
  const Kn = /* @__PURE__ */ Xn(qn), Re = {
360
- "purpur-paragraph": "_purpur-paragraph_hwaj6_1",
361
- "purpur-paragraph--disabled": "_purpur-paragraph--disabled_hwaj6_7",
362
- "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_hwaj6_10",
363
- "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_hwaj6_13",
364
- "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_hwaj6_19",
365
- "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_hwaj6_26",
366
- "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_hwaj6_33",
367
- "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_hwaj6_39",
368
- "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_hwaj6_45",
369
- "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_hwaj6_51",
370
- "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_hwaj6_57",
371
- "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_hwaj6_64",
372
- "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_hwaj6_71"
360
+ "purpur-paragraph": "_purpur-paragraph_1fzxr_1",
361
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1fzxr_7",
362
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1fzxr_10",
363
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1fzxr_13",
364
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1fzxr_19",
365
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1fzxr_26",
366
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1fzxr_33",
367
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1fzxr_39",
368
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1fzxr_45",
369
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1fzxr_51",
370
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1fzxr_57",
371
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1fzxr_64",
372
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1fzxr_71"
373
373
  }, Ft = {
374
374
  PARAGRAPH100: "paragraph-100",
375
375
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
@@ -441,7 +441,7 @@ function kt(e, t = []) {
441
441
  () => h,
442
442
  Object.values(h)
443
443
  );
444
- return /* @__PURE__ */ _(g.Provider, {
444
+ return /* @__PURE__ */ w(g.Provider, {
445
445
  value: m
446
446
  }, f);
447
447
  }
@@ -516,11 +516,11 @@ const Bt = /* @__PURE__ */ M((e, t) => {
516
516
  const { children: n, ...o } = e, i = se.toArray(n), r = i.find(tr);
517
517
  if (r) {
518
518
  const s = r.props.children, a = i.map((c) => c === r ? se.count(s) > 1 ? se.only(null) : /* @__PURE__ */ Ie(s) ? s.props.children : null : c);
519
- return /* @__PURE__ */ _(Ye, S({}, o, {
519
+ return /* @__PURE__ */ w(Ye, S({}, o, {
520
520
  ref: t
521
521
  }), /* @__PURE__ */ Ie(s) ? /* @__PURE__ */ Je(s, void 0, a) : null);
522
522
  }
523
- return /* @__PURE__ */ _(Ye, S({}, o, {
523
+ return /* @__PURE__ */ w(Ye, S({}, o, {
524
524
  ref: t
525
525
  }), n);
526
526
  });
@@ -533,9 +533,9 @@ const Ye = /* @__PURE__ */ M((e, t) => {
533
533
  }) : se.count(n) > 1 ? se.only(null) : null;
534
534
  });
535
535
  Ye.displayName = "SlotClone";
536
- const jt = ({ children: e }) => /* @__PURE__ */ _($n, null, e);
536
+ const zt = ({ children: e }) => /* @__PURE__ */ w($n, null, e);
537
537
  function tr(e) {
538
- return /* @__PURE__ */ Ie(e) && e.type === jt;
538
+ return /* @__PURE__ */ Ie(e) && e.type === zt;
539
539
  }
540
540
  function nr(e, t) {
541
541
  const n = {
@@ -580,7 +580,7 @@ const rr = [
580
580
  const { asChild: r, ...s } = o, a = r ? Bt : t;
581
581
  return R(() => {
582
582
  window[Symbol.for("radix-ui")] = !0;
583
- }, []), /* @__PURE__ */ _(a, S({}, s, {
583
+ }, []), /* @__PURE__ */ w(a, S({}, s, {
584
584
  ref: i
585
585
  }));
586
586
  });
@@ -626,12 +626,12 @@ const cr = /* @__PURE__ */ Ge({
626
626
  branches: /* @__PURE__ */ new Set()
627
627
  }), lr = /* @__PURE__ */ M((e, t) => {
628
628
  var n;
629
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, d = Tt(cr), [u, p] = j(null), f = (n = u == null ? void 0 : u.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = j({}), g = pe(
629
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, d = Tt(cr), [u, p] = z(null), f = (n = u == null ? void 0 : u.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = z({}), g = pe(
630
630
  t,
631
631
  (A) => p(A)
632
632
  ), m = Array.from(d.layers), [v] = [
633
633
  ...d.layersWithOutsidePointerEventsDisabled
634
- ].slice(-1), y = m.indexOf(v), x = u ? m.indexOf(u) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, w = ur((A) => {
634
+ ].slice(-1), y = m.indexOf(v), x = u ? m.indexOf(u) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, _ = ur((A) => {
635
635
  const C = A.target, F = [
636
636
  ...d.branches
637
637
  ].some(
@@ -666,7 +666,7 @@ const cr = /* @__PURE__ */ Ge({
666
666
  ]), R(() => {
667
667
  const A = () => h({});
668
668
  return document.addEventListener(Xe, A), () => document.removeEventListener(Xe, A);
669
- }, []), /* @__PURE__ */ _(ce.div, S({}, l, {
669
+ }, []), /* @__PURE__ */ w(ce.div, S({}, l, {
670
670
  ref: g,
671
671
  style: {
672
672
  pointerEvents: $ ? b ? "auto" : "none" : void 0,
@@ -674,7 +674,7 @@ const cr = /* @__PURE__ */ Ge({
674
674
  },
675
675
  onFocusCapture: G(e.onFocusCapture, E.onFocusCapture),
676
676
  onBlurCapture: G(e.onBlurCapture, E.onBlurCapture),
677
- onPointerDownCapture: G(e.onPointerDownCapture, w.onPointerDownCapture)
677
+ onPointerDownCapture: G(e.onPointerDownCapture, _.onPointerDownCapture)
678
678
  }));
679
679
  });
680
680
  function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -828,7 +828,7 @@ function $r(e, t, n, o) {
828
828
  function He(e) {
829
829
  return e.replace(/left|right|bottom|top/g, (t) => mr[t]);
830
830
  }
831
- function wr(e) {
831
+ function _r(e) {
832
832
  return {
833
833
  top: 0,
834
834
  right: 0,
@@ -838,7 +838,7 @@ function wr(e) {
838
838
  };
839
839
  }
840
840
  function Vt(e) {
841
- return typeof e != "number" ? wr(e) : {
841
+ return typeof e != "number" ? _r(e) : {
842
842
  top: e,
843
843
  right: e,
844
844
  bottom: e,
@@ -902,7 +902,7 @@ function yt(e, t, n) {
902
902
  }
903
903
  return f;
904
904
  }
905
- const _r = async (e, t, n) => {
905
+ const wr = async (e, t, n) => {
906
906
  const {
907
907
  placement: o = "bottom",
908
908
  strategy: i = "absolute",
@@ -1030,9 +1030,9 @@ const bt = (e) => ({
1030
1030
  x: n,
1031
1031
  y: o
1032
1032
  }, p = tt(i), f = et(p), h = await s.getDimensions(c), g = p === "y", m = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", x = r.reference[f] + r.reference[p] - u[p] - r.floating[f], $ = u[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1033
- let w = b ? b[y] : 0;
1034
- (!w || !await (s.isElement == null ? void 0 : s.isElement(b))) && (w = a.floating[y] || r.floating[f]);
1035
- const E = x / 2 - $ / 2, A = w / 2 - h[f] / 2 - 1, C = ee(d[m], A), F = ee(d[v], A), T = C, k = w - h[f] - F, D = w / 2 - h[f] / 2 + E, O = qe(T, D, k), P = ge(i) != null && D != O && r.reference[f] / 2 - (D < T ? C : F) - h[f] / 2 < 0 ? D < T ? T - D : k - D : 0;
1033
+ let _ = b ? b[y] : 0;
1034
+ (!_ || !await (s.isElement == null ? void 0 : s.isElement(b))) && (_ = a.floating[y] || r.floating[f]);
1035
+ const E = x / 2 - $ / 2, A = _ / 2 - h[f] / 2 - 1, C = ee(d[m], A), F = ee(d[v], A), T = C, k = _ - h[f] - F, D = _ / 2 - h[f] / 2 + E, O = qe(T, D, k), P = ge(i) != null && D != O && r.reference[f] / 2 - (D < T ? C : F) - h[f] / 2 < 0 ? D < T ? T - D : k - D : 0;
1036
1036
  return {
1037
1037
  [p]: u[p] - P,
1038
1038
  data: {
@@ -1064,16 +1064,16 @@ const bt = (e) => ({
1064
1064
  ...g
1065
1065
  } = Y(e, t), m = X(o), v = X(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = u || (v || !h ? [He(s)] : br(s));
1066
1066
  !u && f !== "none" && x.push(...$r(s, h, f, y));
1067
- const $ = [s, ...x], b = await be(t, g), w = [];
1067
+ const $ = [s, ...x], b = await be(t, g), _ = [];
1068
1068
  let E = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1069
- if (l && w.push(b[m]), d) {
1069
+ if (l && _.push(b[m]), d) {
1070
1070
  const T = yr(o, r, y);
1071
- w.push(b[T[0]], b[T[1]]);
1071
+ _.push(b[T[0]], b[T[1]]);
1072
1072
  }
1073
1073
  if (E = [...E, {
1074
1074
  placement: o,
1075
- overflows: w
1076
- }], !w.every((T) => T <= 0)) {
1075
+ overflows: _
1076
+ }], !_.every((T) => T <= 0)) {
1077
1077
  var A, C;
1078
1078
  const T = (((A = i.flip) == null ? void 0 : A.index) || 0) + 1, k = $[T];
1079
1079
  if (k)
@@ -1292,8 +1292,8 @@ const Or = function(e) {
1292
1292
  }
1293
1293
  if (l) {
1294
1294
  var v, y;
1295
- const x = p === "y" ? "width" : "height", $ = ["top", "left"].includes(X(i)), b = r.reference[u] - r.floating[x] + ($ && ((v = s.offset) == null ? void 0 : v[u]) || 0) + ($ ? 0 : m.crossAxis), w = r.reference[u] + r.reference[x] + ($ ? 0 : ((y = s.offset) == null ? void 0 : y[u]) || 0) - ($ ? m.crossAxis : 0);
1296
- h < b ? h = b : h > w && (h = w);
1295
+ const x = p === "y" ? "width" : "height", $ = ["top", "left"].includes(X(i)), b = r.reference[u] - r.floating[x] + ($ && ((v = s.offset) == null ? void 0 : v[u]) || 0) + ($ ? 0 : m.crossAxis), _ = r.reference[u] + r.reference[x] + ($ ? 0 : ((y = s.offset) == null ? void 0 : y[u]) || 0) - ($ ? m.crossAxis : 0);
1296
+ h < b ? h = b : h > _ && (h = _);
1297
1297
  }
1298
1298
  return {
1299
1299
  [p]: f,
@@ -1324,15 +1324,15 @@ const Or = function(e) {
1324
1324
  const m = f - c[h], v = p - c[g], y = !t.middlewareData.shift;
1325
1325
  let x = m, $ = v;
1326
1326
  if (u) {
1327
- const w = p - c.left - c.right;
1328
- $ = d || y ? ee(v, w) : w;
1327
+ const _ = p - c.left - c.right;
1328
+ $ = d || y ? ee(v, _) : _;
1329
1329
  } else {
1330
- const w = f - c.top - c.bottom;
1331
- x = d || y ? ee(m, w) : w;
1330
+ const _ = f - c.top - c.bottom;
1331
+ x = d || y ? ee(m, _) : _;
1332
1332
  }
1333
1333
  if (y && !d) {
1334
- const w = B(c.left, 0), E = B(c.right, 0), A = B(c.top, 0), C = B(c.bottom, 0);
1335
- u ? $ = p - 2 * (w !== 0 || E !== 0 ? w + E : B(c.left, c.right)) : x = f - 2 * (A !== 0 || C !== 0 ? A + C : B(c.top, c.bottom));
1334
+ const _ = B(c.left, 0), E = B(c.right, 0), A = B(c.top, 0), C = B(c.bottom, 0);
1335
+ u ? $ = p - 2 * (_ !== 0 || E !== 0 ? _ + E : B(c.left, c.right)) : x = f - 2 * (A !== 0 || C !== 0 ? A + C : B(c.top, c.bottom));
1336
1336
  }
1337
1337
  await s({
1338
1338
  ...t,
@@ -1349,7 +1349,7 @@ const Or = function(e) {
1349
1349
  };
1350
1350
  };
1351
1351
  function ne(e) {
1352
- return Ut(e) ? (e.nodeName || "").toLowerCase() : "#document";
1352
+ return jt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1353
1353
  }
1354
1354
  function W(e) {
1355
1355
  var t;
@@ -1357,39 +1357,39 @@ function W(e) {
1357
1357
  }
1358
1358
  function K(e) {
1359
1359
  var t;
1360
- return (t = (Ut(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1360
+ return (t = (jt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1361
1361
  }
1362
- function Ut(e) {
1362
+ function jt(e) {
1363
1363
  return e instanceof Node || e instanceof W(e).Node;
1364
1364
  }
1365
1365
  function q(e) {
1366
1366
  return e instanceof Element || e instanceof W(e).Element;
1367
1367
  }
1368
- function z(e) {
1368
+ function U(e) {
1369
1369
  return e instanceof HTMLElement || e instanceof W(e).HTMLElement;
1370
1370
  }
1371
- function wt(e) {
1371
+ function _t(e) {
1372
1372
  return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof W(e).ShadowRoot;
1373
1373
  }
1374
- function we(e) {
1374
+ function _e(e) {
1375
1375
  const {
1376
1376
  overflow: t,
1377
1377
  overflowX: n,
1378
1378
  overflowY: o,
1379
1379
  display: i
1380
- } = U(e);
1380
+ } = j(e);
1381
1381
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
1382
1382
  }
1383
1383
  function Sr(e) {
1384
1384
  return ["table", "td", "th"].includes(ne(e));
1385
1385
  }
1386
1386
  function nt(e) {
1387
- const t = rt(), n = U(e);
1387
+ const t = rt(), n = j(e);
1388
1388
  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));
1389
1389
  }
1390
1390
  function Dr(e) {
1391
1391
  let t = fe(e);
1392
- for (; z(t) && !je(t); ) {
1392
+ for (; U(t) && !ze(t); ) {
1393
1393
  if (nt(t))
1394
1394
  return t;
1395
1395
  t = fe(t);
@@ -1399,10 +1399,10 @@ function Dr(e) {
1399
1399
  function rt() {
1400
1400
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1401
1401
  }
1402
- function je(e) {
1402
+ function ze(e) {
1403
1403
  return ["html", "body", "#document"].includes(ne(e));
1404
1404
  }
1405
- function U(e) {
1405
+ function j(e) {
1406
1406
  return W(e).getComputedStyle(e);
1407
1407
  }
1408
1408
  function We(e) {
@@ -1421,25 +1421,25 @@ function fe(e) {
1421
1421
  // Step into the shadow DOM of the parent of a slotted node.
1422
1422
  e.assignedSlot || // DOM Element detected.
1423
1423
  e.parentNode || // ShadowRoot detected.
1424
- wt(e) && e.host || // Fallback.
1424
+ _t(e) && e.host || // Fallback.
1425
1425
  K(e)
1426
1426
  );
1427
- return wt(t) ? t.host : t;
1427
+ return _t(t) ? t.host : t;
1428
1428
  }
1429
- function zt(e) {
1429
+ function Ut(e) {
1430
1430
  const t = fe(e);
1431
- return je(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && we(t) ? t : zt(t);
1431
+ return ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : U(t) && _e(t) ? t : Ut(t);
1432
1432
  }
1433
1433
  function xe(e, t) {
1434
1434
  var n;
1435
1435
  t === void 0 && (t = []);
1436
- const o = zt(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = W(o);
1437
- return i ? t.concat(r, r.visualViewport || [], we(o) ? o : [], r.frameElement ? xe(r.frameElement) : []) : t.concat(o, xe(o));
1436
+ const o = Ut(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = W(o);
1437
+ return i ? t.concat(r, r.visualViewport || [], _e(o) ? o : [], r.frameElement ? xe(r.frameElement) : []) : t.concat(o, xe(o));
1438
1438
  }
1439
1439
  function Gt(e) {
1440
- const t = U(e);
1440
+ const t = j(e);
1441
1441
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1442
- const i = z(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Fe(n) !== r || Fe(o) !== s;
1442
+ const i = U(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Fe(n) !== r || Fe(o) !== s;
1443
1443
  return a && (n = r, o = s), {
1444
1444
  width: n,
1445
1445
  height: o,
@@ -1451,7 +1451,7 @@ function ot(e) {
1451
1451
  }
1452
1452
  function ue(e) {
1453
1453
  const t = ot(e);
1454
- if (!z(t))
1454
+ if (!U(t))
1455
1455
  return te(1);
1456
1456
  const n = t.getBoundingClientRect(), {
1457
1457
  width: o,
@@ -1486,7 +1486,7 @@ function ae(e, t, n, o) {
1486
1486
  const p = W(r), f = o && q(o) ? W(o) : o;
1487
1487
  let h = p.frameElement;
1488
1488
  for (; h && o && f !== p; ) {
1489
- const g = ue(h), m = h.getBoundingClientRect(), v = U(h), y = m.left + (h.clientLeft + parseFloat(v.paddingLeft)) * g.x, x = m.top + (h.clientTop + parseFloat(v.paddingTop)) * g.y;
1489
+ const g = ue(h), m = h.getBoundingClientRect(), v = j(h), y = m.left + (h.clientLeft + parseFloat(v.paddingLeft)) * g.x, x = m.top + (h.clientTop + parseFloat(v.paddingTop)) * g.y;
1490
1490
  c *= g.x, l *= g.y, d *= g.x, u *= g.y, c += y, l += x, h = W(h).frameElement;
1491
1491
  }
1492
1492
  }
@@ -1503,7 +1503,7 @@ function Mr(e) {
1503
1503
  offsetParent: n,
1504
1504
  strategy: o
1505
1505
  } = e;
1506
- const i = z(n), r = K(n);
1506
+ const i = U(n), r = K(n);
1507
1507
  if (n === r)
1508
1508
  return t;
1509
1509
  let s = {
@@ -1511,7 +1511,7 @@ function Mr(e) {
1511
1511
  scrollTop: 0
1512
1512
  }, a = te(1);
1513
1513
  const c = te(0);
1514
- if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || we(r)) && (s = We(n)), z(n))) {
1514
+ if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || _e(r)) && (s = We(n)), U(n))) {
1515
1515
  const l = ae(n);
1516
1516
  a = ue(n), c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
1517
1517
  }
@@ -1532,7 +1532,7 @@ function Fr(e) {
1532
1532
  const t = K(e), n = We(e), o = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = B(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1533
1533
  let s = -n.scrollLeft + Xt(e);
1534
1534
  const a = -n.scrollTop;
1535
- return U(o).direction === "rtl" && (s += B(t.clientWidth, o.clientWidth) - i), {
1535
+ return j(o).direction === "rtl" && (s += B(t.clientWidth, o.clientWidth) - i), {
1536
1536
  width: i,
1537
1537
  height: r,
1538
1538
  x: s,
@@ -1555,7 +1555,7 @@ function Hr(e, t) {
1555
1555
  };
1556
1556
  }
1557
1557
  function kr(e, t) {
1558
- const n = ae(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = z(e) ? ue(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1558
+ const n = ae(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = U(e) ? ue(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1559
1559
  return {
1560
1560
  width: s,
1561
1561
  height: a,
@@ -1563,7 +1563,7 @@ function kr(e, t) {
1563
1563
  y: l
1564
1564
  };
1565
1565
  }
1566
- function _t(e, t, n) {
1566
+ function wt(e, t, n) {
1567
1567
  let o;
1568
1568
  if (t === "viewport")
1569
1569
  o = Hr(e, n);
@@ -1583,22 +1583,22 @@ function _t(e, t, n) {
1583
1583
  }
1584
1584
  function qt(e, t) {
1585
1585
  const n = fe(e);
1586
- return n === t || !q(n) || je(n) ? !1 : U(n).position === "fixed" || qt(n, t);
1586
+ return n === t || !q(n) || ze(n) ? !1 : j(n).position === "fixed" || qt(n, t);
1587
1587
  }
1588
1588
  function Br(e, t) {
1589
1589
  const n = t.get(e);
1590
1590
  if (n)
1591
1591
  return n;
1592
1592
  let o = xe(e).filter((a) => q(a) && ne(a) !== "body"), i = null;
1593
- const r = U(e).position === "fixed";
1593
+ const r = j(e).position === "fixed";
1594
1594
  let s = r ? fe(e) : e;
1595
- for (; q(s) && !je(s); ) {
1596
- const a = U(s), c = nt(s);
1597
- !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || we(s) && !c && qt(e, s)) ? o = o.filter((d) => d !== s) : i = a, s = fe(s);
1595
+ for (; q(s) && !ze(s); ) {
1596
+ const a = j(s), c = nt(s);
1597
+ !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || _e(s) && !c && qt(e, s)) ? o = o.filter((d) => d !== s) : i = a, s = fe(s);
1598
1598
  }
1599
1599
  return t.set(e, o), o;
1600
1600
  }
1601
- function jr(e) {
1601
+ function zr(e) {
1602
1602
  let {
1603
1603
  element: t,
1604
1604
  boundary: n,
@@ -1606,9 +1606,9 @@ function jr(e) {
1606
1606
  strategy: i
1607
1607
  } = e;
1608
1608
  const s = [...n === "clippingAncestors" ? Br(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, d) => {
1609
- const u = _t(t, d, i);
1609
+ const u = wt(t, d, i);
1610
1610
  return l.top = B(u.top, l.top), l.right = ee(u.right, l.right), l.bottom = ee(u.bottom, l.bottom), l.left = B(u.left, l.left), l;
1611
- }, _t(t, a, i));
1611
+ }, wt(t, a, i));
1612
1612
  return {
1613
1613
  width: c.right - c.left,
1614
1614
  height: c.bottom - c.top,
@@ -1620,14 +1620,14 @@ function Wr(e) {
1620
1620
  return Gt(e);
1621
1621
  }
1622
1622
  function Vr(e, t, n) {
1623
- const o = z(t), i = K(t), r = n === "fixed", s = ae(e, !0, r, t);
1623
+ const o = U(t), i = K(t), r = n === "fixed", s = ae(e, !0, r, t);
1624
1624
  let a = {
1625
1625
  scrollLeft: 0,
1626
1626
  scrollTop: 0
1627
1627
  };
1628
1628
  const c = te(0);
1629
1629
  if (o || !o && !r)
1630
- if ((ne(t) !== "body" || we(i)) && (a = We(t)), o) {
1630
+ if ((ne(t) !== "body" || _e(i)) && (a = We(t)), o) {
1631
1631
  const l = ae(t, !0, r, t);
1632
1632
  c.x = l.x + t.clientLeft, c.y = l.y + t.clientTop;
1633
1633
  } else
@@ -1640,18 +1640,18 @@ function Vr(e, t, n) {
1640
1640
  };
1641
1641
  }
1642
1642
  function At(e, t) {
1643
- return !z(e) || U(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1643
+ return !U(e) || j(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1644
1644
  }
1645
1645
  function Kt(e, t) {
1646
1646
  const n = W(e);
1647
- if (!z(e))
1647
+ if (!U(e))
1648
1648
  return n;
1649
1649
  let o = At(e, t);
1650
- for (; o && Sr(o) && U(o).position === "static"; )
1650
+ for (; o && Sr(o) && j(o).position === "static"; )
1651
1651
  o = At(o, t);
1652
- return o && (ne(o) === "html" || ne(o) === "body" && U(o).position === "static" && !nt(o)) ? n : o || Dr(e) || n;
1652
+ return o && (ne(o) === "html" || ne(o) === "body" && j(o).position === "static" && !nt(o)) ? n : o || Dr(e) || n;
1653
1653
  }
1654
- const Ur = async function(e) {
1654
+ const jr = async function(e) {
1655
1655
  let {
1656
1656
  reference: t,
1657
1657
  floating: n,
@@ -1667,20 +1667,20 @@ const Ur = async function(e) {
1667
1667
  }
1668
1668
  };
1669
1669
  };
1670
- function zr(e) {
1671
- return U(e).direction === "rtl";
1670
+ function Ur(e) {
1671
+ return j(e).direction === "rtl";
1672
1672
  }
1673
1673
  const Gr = {
1674
1674
  convertOffsetParentRelativeRectToViewportRelativeRect: Mr,
1675
1675
  getDocumentElement: K,
1676
- getClippingRect: jr,
1676
+ getClippingRect: zr,
1677
1677
  getOffsetParent: Kt,
1678
- getElementRects: Ur,
1678
+ getElementRects: jr,
1679
1679
  getClientRects: Ir,
1680
1680
  getDimensions: Wr,
1681
1681
  getScale: ue,
1682
1682
  isElement: q,
1683
- isRTL: zr
1683
+ isRTL: Ur
1684
1684
  };
1685
1685
  function Yr(e, t) {
1686
1686
  let n = null, o;
@@ -1704,11 +1704,11 @@ function Yr(e, t) {
1704
1704
  };
1705
1705
  let x = !0;
1706
1706
  function $(b) {
1707
- const w = b[0].intersectionRatio;
1708
- if (w !== c) {
1707
+ const _ = b[0].intersectionRatio;
1708
+ if (_ !== c) {
1709
1709
  if (!x)
1710
1710
  return s();
1711
- w ? s(!1, w) : o = setTimeout(() => {
1711
+ _ ? s(!1, _) : o = setTimeout(() => {
1712
1712
  s(!1, 1e-7);
1713
1713
  }, 100);
1714
1714
  }
@@ -1769,7 +1769,7 @@ const qr = (e, t, n) => {
1769
1769
  ...i.platform,
1770
1770
  _c: o
1771
1771
  };
1772
- return _r(e, t, {
1772
+ return wr(e, t, {
1773
1773
  ...i,
1774
1774
  platform: r
1775
1775
  });
@@ -1864,23 +1864,23 @@ function Zr(e) {
1864
1864
  }), [p, f] = N.useState(o);
1865
1865
  Be(p, o) || f(o);
1866
1866
  const [h, g] = N.useState(null), [m, v] = N.useState(null), y = N.useCallback((P) => {
1867
- P != w.current && (w.current = P, g(P));
1867
+ P != _.current && (_.current = P, g(P));
1868
1868
  }, [g]), x = N.useCallback((P) => {
1869
1869
  P !== E.current && (E.current = P, v(P));
1870
- }, [v]), $ = r || h, b = s || m, w = N.useRef(null), E = N.useRef(null), A = N.useRef(d), C = Et(c), F = Et(i), T = N.useCallback(() => {
1871
- if (!w.current || !E.current)
1870
+ }, [v]), $ = r || h, b = s || m, _ = N.useRef(null), E = N.useRef(null), A = N.useRef(d), C = Et(c), F = Et(i), T = N.useCallback(() => {
1871
+ if (!_.current || !E.current)
1872
1872
  return;
1873
1873
  const P = {
1874
1874
  placement: t,
1875
1875
  strategy: n,
1876
1876
  middleware: p
1877
1877
  };
1878
- F.current && (P.platform = F.current), qr(w.current, E.current, P).then((Z) => {
1878
+ F.current && (P.platform = F.current), qr(_.current, E.current, P).then((Z) => {
1879
1879
  const J = {
1880
1880
  ...Z,
1881
1881
  isPositioned: !0
1882
1882
  };
1883
- k.current && !Be(A.current, J) && (A.current = J, _n.flushSync(() => {
1883
+ k.current && !Be(A.current, J) && (A.current = J, wn.flushSync(() => {
1884
1884
  u(J);
1885
1885
  }));
1886
1886
  });
@@ -1895,14 +1895,14 @@ function Zr(e) {
1895
1895
  Me(() => (k.current = !0, () => {
1896
1896
  k.current = !1;
1897
1897
  }), []), Me(() => {
1898
- if ($ && (w.current = $), b && (E.current = b), $ && b) {
1898
+ if ($ && (_.current = $), b && (E.current = b), $ && b) {
1899
1899
  if (C.current)
1900
1900
  return C.current($, b, T);
1901
1901
  T();
1902
1902
  }
1903
1903
  }, [$, b, T, C]);
1904
1904
  const D = N.useMemo(() => ({
1905
- reference: w,
1905
+ reference: _,
1906
1906
  floating: E,
1907
1907
  setReference: y,
1908
1908
  setFloating: x
@@ -1940,18 +1940,18 @@ function Zr(e) {
1940
1940
  }
1941
1941
  const Jr = /* @__PURE__ */ M((e, t) => {
1942
1942
  const { children: n, width: o = 10, height: i = 5, ...r } = e;
1943
- return /* @__PURE__ */ _(ce.svg, S({}, r, {
1943
+ return /* @__PURE__ */ w(ce.svg, S({}, r, {
1944
1944
  ref: t,
1945
1945
  width: o,
1946
1946
  height: i,
1947
1947
  viewBox: "0 0 30 10",
1948
1948
  preserveAspectRatio: "none"
1949
- }), e.asChild ? n : /* @__PURE__ */ _("polygon", {
1949
+ }), e.asChild ? n : /* @__PURE__ */ w("polygon", {
1950
1950
  points: "0,0 30,0 15,10"
1951
1951
  }));
1952
1952
  }), Qr = Jr;
1953
1953
  function eo(e) {
1954
- const [t, n] = j(void 0);
1954
+ const [t, n] = z(void 0);
1955
1955
  return de(() => {
1956
1956
  if (e) {
1957
1957
  n({
@@ -1983,8 +1983,8 @@ function eo(e) {
1983
1983
  ]), t;
1984
1984
  }
1985
1985
  const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
1986
- const { __scopePopper: t, children: n } = e, [o, i] = j(null);
1987
- return /* @__PURE__ */ _(to, {
1986
+ const { __scopePopper: t, children: n } = e, [o, i] = z(null);
1987
+ return /* @__PURE__ */ w(to, {
1988
1988
  scope: t,
1989
1989
  anchor: o,
1990
1990
  onAnchorChange: i
@@ -1993,15 +1993,15 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
1993
1993
  const { __scopePopper: n, virtualRef: o, ...i } = e, r = tn(ro, n), s = L(null), a = pe(t, s);
1994
1994
  return R(() => {
1995
1995
  r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
1996
- }), o ? null : /* @__PURE__ */ _(ce.div, S({}, i, {
1996
+ }), o ? null : /* @__PURE__ */ w(ce.div, S({}, i, {
1997
1997
  ref: a
1998
1998
  }));
1999
1999
  }), nn = "PopperContent", [io, so] = Qt(nn), ao = /* @__PURE__ */ M((e, t) => {
2000
2000
  var n, o, i, r, s, a, c, l;
2001
- const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: w, ...E } = e, A = tn(nn, d), [C, F] = j(null), T = pe(
2001
+ const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: _, ...E } = e, A = tn(nn, d), [C, F] = z(null), T = pe(
2002
2002
  t,
2003
2003
  (ve) => F(ve)
2004
- ), [k, D] = j(null), O = eo(k), V = (n = O == null ? void 0 : O.width) !== null && n !== void 0 ? n : 0, P = (o = O == null ? void 0 : O.height) !== null && o !== void 0 ? o : 0, Z = u + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
2004
+ ), [k, D] = z(null), O = eo(k), V = (n = O == null ? void 0 : O.width) !== null && n !== void 0 ? n : 0, P = (o = O == null ? void 0 : O.height) !== null && o !== void 0 ? o : 0, Z = u + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
2005
2005
  top: 0,
2006
2006
  right: 0,
2007
2007
  bottom: 0,
@@ -2058,19 +2058,19 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
2058
2058
  ...Ae
2059
2059
  })
2060
2060
  ]
2061
- }), [ut, dn] = rn(un), Ee = he(w);
2061
+ }), [ut, dn] = rn(un), Ee = he(_);
2062
2062
  de(() => {
2063
2063
  Pe && (Ee == null || Ee());
2064
2064
  }, [
2065
2065
  Pe,
2066
2066
  Ee
2067
2067
  ]);
2068
- const fn = (i = le.arrow) === null || i === void 0 ? void 0 : i.x, pn = (r = le.arrow) === null || r === void 0 ? void 0 : r.y, hn = ((s = le.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [gn, mn] = j();
2068
+ const fn = (i = le.arrow) === null || i === void 0 ? void 0 : i.x, pn = (r = le.arrow) === null || r === void 0 ? void 0 : r.y, hn = ((s = le.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [gn, mn] = z();
2069
2069
  return de(() => {
2070
2070
  C && mn(window.getComputedStyle(C).zIndex);
2071
2071
  }, [
2072
2072
  C
2073
- ]), /* @__PURE__ */ _("div", {
2073
+ ]), /* @__PURE__ */ w("div", {
2074
2074
  ref: ln.setFloating,
2075
2075
  "data-radix-popper-content-wrapper": "",
2076
2076
  style: {
@@ -2085,14 +2085,14 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
2085
2085
  ].join(" ")
2086
2086
  },
2087
2087
  dir: e.dir
2088
- }, /* @__PURE__ */ _(io, {
2088
+ }, /* @__PURE__ */ w(io, {
2089
2089
  scope: d,
2090
2090
  placedSide: ut,
2091
2091
  onArrowChange: D,
2092
2092
  arrowX: fn,
2093
2093
  arrowY: pn,
2094
2094
  shouldHideArrow: hn
2095
- }, /* @__PURE__ */ _(ce.div, S({
2095
+ }, /* @__PURE__ */ w(ce.div, S({
2096
2096
  "data-side": ut,
2097
2097
  "data-align": dn
2098
2098
  }, E, {
@@ -2117,7 +2117,7 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
2117
2117
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2118
2118
  // doesn't report size as we'd expect on SVG elements.
2119
2119
  // it reports their bounding box which is effectively the largest path inside the SVG.
2120
- /* @__PURE__ */ _("span", {
2120
+ /* @__PURE__ */ w("span", {
2121
2121
  ref: r.onArrowChange,
2122
2122
  style: {
2123
2123
  position: "absolute",
@@ -2138,7 +2138,7 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
2138
2138
  }[r.placedSide],
2139
2139
  visibility: r.shouldHideArrow ? "hidden" : void 0
2140
2140
  }
2141
- }, /* @__PURE__ */ _(Qr, S({}, i, {
2141
+ }, /* @__PURE__ */ w(Qr, S({}, i, {
2142
2142
  ref: n,
2143
2143
  style: {
2144
2144
  ...i.style,
@@ -2180,12 +2180,12 @@ function rn(e) {
2180
2180
  const ho = no, go = oo, mo = ao, vo = uo, yo = /* @__PURE__ */ M((e, t) => {
2181
2181
  var n;
2182
2182
  const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = e;
2183
- return o ? /* @__PURE__ */ An.createPortal(/* @__PURE__ */ _(ce.div, S({}, i, {
2183
+ return o ? /* @__PURE__ */ An.createPortal(/* @__PURE__ */ w(ce.div, S({}, i, {
2184
2184
  ref: t
2185
2185
  })), o) : null;
2186
2186
  });
2187
2187
  function bo(e, t) {
2188
- return wn((n, o) => {
2188
+ return _n((n, o) => {
2189
2189
  const i = t[n][o];
2190
2190
  return i ?? n;
2191
2191
  }, e);
@@ -2200,7 +2200,7 @@ const it = (e) => {
2200
2200
  };
2201
2201
  it.displayName = "Presence";
2202
2202
  function xo(e) {
2203
- const [t, n] = j(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = bo(s, {
2203
+ const [t, n] = z(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = bo(s, {
2204
2204
  mounted: {
2205
2205
  UNMOUNT: "unmounted",
2206
2206
  ANIMATION_OUT: "unmountSuspended"
@@ -2260,7 +2260,7 @@ function Ne(e) {
2260
2260
  }
2261
2261
  function $o({ prop: e, defaultProp: t, onChange: n = () => {
2262
2262
  } }) {
2263
- const [o, i] = wo({
2263
+ const [o, i] = _o({
2264
2264
  defaultProp: t,
2265
2265
  onChange: n
2266
2266
  }), r = e !== void 0, s = r ? e : o, a = he(n), c = H((l) => {
@@ -2280,8 +2280,8 @@ function $o({ prop: e, defaultProp: t, onChange: n = () => {
2280
2280
  c
2281
2281
  ];
2282
2282
  }
2283
- function wo({ defaultProp: e, onChange: t }) {
2284
- const n = j(e), [o] = n, i = L(o), r = he(t);
2283
+ function _o({ defaultProp: e, onChange: t }) {
2284
+ const n = z(e), [o] = n, i = L(o), r = he(t);
2285
2285
  return R(() => {
2286
2286
  i.current !== o && (r(o), i.current = o);
2287
2287
  }, [
@@ -2290,7 +2290,7 @@ function wo({ defaultProp: e, onChange: t }) {
2290
2290
  r
2291
2291
  ]), n;
2292
2292
  }
2293
- const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2293
+ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2294
2294
  ref: t,
2295
2295
  style: {
2296
2296
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -2306,14 +2306,14 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2306
2306
  wordWrap: "normal",
2307
2307
  ...e.style
2308
2308
  }
2309
- }))), Ao = _o, [Ve, hi] = kt("Tooltip", [
2309
+ }))), Ao = wo, [Ve, hi] = kt("Tooltip", [
2310
2310
  en
2311
- ]), Ue = en(), Po = "TooltipProvider", Eo = 700, Ze = "tooltip.open", [Oo, st] = Ve(Po), To = (e) => {
2312
- const { __scopeTooltip: t, delayDuration: n = Eo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = j(!0), c = L(!1), l = L(0);
2311
+ ]), je = en(), Po = "TooltipProvider", Eo = 700, Ze = "tooltip.open", [Oo, st] = Ve(Po), To = (e) => {
2312
+ const { __scopeTooltip: t, delayDuration: n = Eo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = z(!0), c = L(!1), l = L(0);
2313
2313
  return R(() => {
2314
2314
  const d = l.current;
2315
2315
  return () => window.clearTimeout(d);
2316
- }, []), /* @__PURE__ */ _(Oo, {
2316
+ }, []), /* @__PURE__ */ w(Oo, {
2317
2317
  scope: t,
2318
2318
  isOpenDelayed: s,
2319
2319
  delayDuration: n,
@@ -2334,8 +2334,8 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2334
2334
  }, []),
2335
2335
  disableHoverableContent: i
2336
2336
  }, r);
2337
- }, at = "Tooltip", [Co, _e] = Ve(at), Ro = (e) => {
2338
- const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = st(at, e.__scopeTooltip), l = Ue(t), [d, u] = j(null), p = hr(), f = L(0), h = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, m = L(!1), [v = !1, y] = $o({
2337
+ }, at = "Tooltip", [Co, we] = Ve(at), Ro = (e) => {
2338
+ const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = st(at, e.__scopeTooltip), l = je(t), [d, u] = z(null), p = hr(), f = L(0), h = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, m = L(!1), [v = !1, y] = $o({
2339
2339
  prop: o,
2340
2340
  defaultProp: i,
2341
2341
  onChange: (E) => {
@@ -2351,7 +2351,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2351
2351
  window.clearTimeout(f.current), y(!1);
2352
2352
  }, [
2353
2353
  y
2354
- ]), w = H(() => {
2354
+ ]), _ = H(() => {
2355
2355
  window.clearTimeout(f.current), f.current = window.setTimeout(() => {
2356
2356
  m.current = !0, y(!0);
2357
2357
  }, g);
@@ -2359,7 +2359,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2359
2359
  g,
2360
2360
  y
2361
2361
  ]);
2362
- return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ _(ho, l, /* @__PURE__ */ _(Co, {
2362
+ return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ w(ho, l, /* @__PURE__ */ w(Co, {
2363
2363
  scope: t,
2364
2364
  contentId: p,
2365
2365
  open: v,
@@ -2367,10 +2367,10 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2367
2367
  trigger: d,
2368
2368
  onTriggerChange: u,
2369
2369
  onTriggerEnter: H(() => {
2370
- c.isOpenDelayed ? w() : $();
2370
+ c.isOpenDelayed ? _() : $();
2371
2371
  }, [
2372
2372
  c.isOpenDelayed,
2373
- w,
2373
+ _,
2374
2374
  $
2375
2375
  ]),
2376
2376
  onTriggerLeave: H(() => {
@@ -2384,15 +2384,15 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2384
2384
  disableHoverableContent: h
2385
2385
  }, n));
2386
2386
  }, Ot = "TooltipTrigger", So = /* @__PURE__ */ M((e, t) => {
2387
- const { __scopeTooltip: n, ...o } = e, i = _e(Ot, n), r = st(Ot, n), s = Ue(n), a = L(null), c = pe(t, a, i.onTriggerChange), l = L(!1), d = L(!1), u = H(
2387
+ const { __scopeTooltip: n, ...o } = e, i = we(Ot, n), r = st(Ot, n), s = je(n), a = L(null), c = pe(t, a, i.onTriggerChange), l = L(!1), d = L(!1), u = H(
2388
2388
  () => l.current = !1,
2389
2389
  []
2390
2390
  );
2391
2391
  return R(() => () => document.removeEventListener("pointerup", u), [
2392
2392
  u
2393
- ]), /* @__PURE__ */ _(go, S({
2393
+ ]), /* @__PURE__ */ w(go, S({
2394
2394
  asChild: !0
2395
- }, s), /* @__PURE__ */ _(ce.button, S({
2395
+ }, s), /* @__PURE__ */ w(ce.button, S({
2396
2396
  // We purposefully avoid adding `type=button` here because tooltip triggers are also
2397
2397
  // commonly anchors and the anchor `type` attribute signifies MIME type.
2398
2398
  "aria-describedby": i.open ? i.contentId : void 0,
@@ -2419,31 +2419,31 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2419
2419
  }), on = "TooltipPortal", [Do, No] = Ve(on, {
2420
2420
  forceMount: void 0
2421
2421
  }), Lo = (e) => {
2422
- const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = _e(on, t);
2423
- return /* @__PURE__ */ _(Do, {
2422
+ const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = we(on, t);
2423
+ return /* @__PURE__ */ w(Do, {
2424
2424
  scope: t,
2425
2425
  forceMount: n
2426
- }, /* @__PURE__ */ _(it, {
2426
+ }, /* @__PURE__ */ w(it, {
2427
2427
  present: n || r.open
2428
- }, /* @__PURE__ */ _(yo, {
2428
+ }, /* @__PURE__ */ w(yo, {
2429
2429
  asChild: !0,
2430
2430
  container: i
2431
2431
  }, o)));
2432
2432
  }, $e = "TooltipContent", Mo = /* @__PURE__ */ M((e, t) => {
2433
- const n = No($e, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = _e($e, e.__scopeTooltip);
2434
- return /* @__PURE__ */ _(it, {
2433
+ const n = No($e, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = we($e, e.__scopeTooltip);
2434
+ return /* @__PURE__ */ w(it, {
2435
2435
  present: o || s.open
2436
- }, s.disableHoverableContent ? /* @__PURE__ */ _(sn, S({
2436
+ }, s.disableHoverableContent ? /* @__PURE__ */ w(sn, S({
2437
2437
  side: i
2438
2438
  }, r, {
2439
2439
  ref: t
2440
- })) : /* @__PURE__ */ _(Io, S({
2440
+ })) : /* @__PURE__ */ w(Io, S({
2441
2441
  side: i
2442
2442
  }, r, {
2443
2443
  ref: t
2444
2444
  })));
2445
2445
  }), Io = /* @__PURE__ */ M((e, t) => {
2446
- const n = _e($e, e.__scopeTooltip), o = st($e, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] = j(null), { trigger: c, onClose: l } = n, d = i.current, { onPointerInTransitChange: u } = o, p = H(() => {
2446
+ const n = we($e, e.__scopeTooltip), o = st($e, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] = z(null), { trigger: c, onClose: l } = n, d = i.current, { onPointerInTransitChange: u } = o, p = H(() => {
2447
2447
  a(null), u(!1);
2448
2448
  }, [
2449
2449
  u
@@ -2451,7 +2451,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2451
2451
  const m = h.currentTarget, v = {
2452
2452
  x: h.clientX,
2453
2453
  y: h.clientY
2454
- }, y = jo(v, m.getBoundingClientRect()), x = Wo(v, y), $ = Vo(g.getBoundingClientRect()), b = zo([
2454
+ }, y = zo(v, m.getBoundingClientRect()), x = Wo(v, y), $ = Vo(g.getBoundingClientRect()), b = Uo([
2455
2455
  ...x,
2456
2456
  ...$
2457
2457
  ]);
@@ -2479,7 +2479,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2479
2479
  const m = g.target, v = {
2480
2480
  x: g.clientX,
2481
2481
  y: g.clientY
2482
- }, y = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), x = !Uo(v, s);
2482
+ }, y = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), x = !jo(v, s);
2483
2483
  y ? p() : x && (p(), l());
2484
2484
  };
2485
2485
  return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
@@ -2490,13 +2490,13 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2490
2490
  s,
2491
2491
  l,
2492
2492
  p
2493
- ]), /* @__PURE__ */ _(sn, S({}, e, {
2493
+ ]), /* @__PURE__ */ w(sn, S({}, e, {
2494
2494
  ref: r
2495
2495
  }));
2496
2496
  }), [Fo, Ho] = Ve(at, {
2497
2497
  isInside: !1
2498
2498
  }), sn = /* @__PURE__ */ M((e, t) => {
2499
- const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = _e($e, n), l = Ue(n), { onClose: d } = c;
2499
+ const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = we($e, n), l = je(n), { onClose: d } = c;
2500
2500
  return R(() => (document.addEventListener(Ze, d), () => document.removeEventListener(Ze, d)), [
2501
2501
  d
2502
2502
  ]), R(() => {
@@ -2514,14 +2514,14 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2514
2514
  }, [
2515
2515
  c.trigger,
2516
2516
  d
2517
- ]), /* @__PURE__ */ _(lr, {
2517
+ ]), /* @__PURE__ */ w(lr, {
2518
2518
  asChild: !0,
2519
2519
  disableOutsidePointerEvents: !1,
2520
2520
  onEscapeKeyDown: r,
2521
2521
  onPointerDownOutside: s,
2522
2522
  onFocusOutside: (u) => u.preventDefault(),
2523
2523
  onDismiss: d
2524
- }, /* @__PURE__ */ _(mo, S({
2524
+ }, /* @__PURE__ */ w(mo, S({
2525
2525
  "data-state": c.stateAttribute
2526
2526
  }, l, a, {
2527
2527
  ref: t,
@@ -2533,20 +2533,20 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2533
2533
  "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
2534
2534
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
2535
2535
  }
2536
- }), /* @__PURE__ */ _(jt, null, o), /* @__PURE__ */ _(Fo, {
2536
+ }), /* @__PURE__ */ w(zt, null, o), /* @__PURE__ */ w(Fo, {
2537
2537
  scope: n,
2538
2538
  isInside: !0
2539
- }, /* @__PURE__ */ _(Ao, {
2539
+ }, /* @__PURE__ */ w(Ao, {
2540
2540
  id: c.contentId,
2541
2541
  role: "tooltip"
2542
2542
  }, i || o))));
2543
2543
  }), ko = "TooltipArrow", Bo = /* @__PURE__ */ M((e, t) => {
2544
- const { __scopeTooltip: n, ...o } = e, i = Ue(n);
2545
- return Ho(ko, n).isInside ? null : /* @__PURE__ */ _(vo, S({}, i, o, {
2544
+ const { __scopeTooltip: n, ...o } = e, i = je(n);
2545
+ return Ho(ko, n).isInside ? null : /* @__PURE__ */ w(vo, S({}, i, o, {
2546
2546
  ref: t
2547
2547
  }));
2548
2548
  });
2549
- function jo(e, t) {
2549
+ function zo(e, t) {
2550
2550
  const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), r = Math.abs(t.left - e.x);
2551
2551
  switch (Math.min(n, o, i, r)) {
2552
2552
  case r:
@@ -2624,7 +2624,7 @@ function Vo(e) {
2624
2624
  }
2625
2625
  ];
2626
2626
  }
2627
- function Uo(e, t) {
2627
+ function jo(e, t) {
2628
2628
  const { x: n, y: o } = e;
2629
2629
  let i = !1;
2630
2630
  for (let r = 0, s = t.length - 1; r < t.length; s = r++) {
@@ -2633,7 +2633,7 @@ function Uo(e, t) {
2633
2633
  }
2634
2634
  return i;
2635
2635
  }
2636
- function zo(e) {
2636
+ function Uo(e) {
2637
2637
  const t = e.slice();
2638
2638
  return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Go(t);
2639
2639
  }
@@ -2749,7 +2749,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
2749
2749
  triggerElement: c,
2750
2750
  ...l
2751
2751
  }, d) => {
2752
- const [u, p] = j(!1), f = Le([
2752
+ const [u, p] = z(!1), f = Le([
2753
2753
  n,
2754
2754
  Q,
2755
2755
  {
@@ -2766,7 +2766,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
2766
2766
  children: /* @__PURE__ */ I(Mt, { size: "md" })
2767
2767
  }
2768
2768
  );
2769
- return /* @__PURE__ */ I("div", { "data-testid": e, className: f, children: /* @__PURE__ */ I(Yo, { delayDuration: parseInt(Jn), children: /* @__PURE__ */ ze(Xo, { open: u, onOpenChange: p, ...l, children: [
2769
+ return /* @__PURE__ */ I("div", { "data-testid": e, className: f, children: /* @__PURE__ */ I(Yo, { delayDuration: parseInt(Jn), children: /* @__PURE__ */ Ue(Xo, { open: u, onOpenChange: p, ...l, children: [
2770
2770
  /* @__PURE__ */ I(
2771
2771
  qo,
2772
2772
  {
@@ -2777,7 +2777,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
2777
2777
  children: se.count(c) === 0 ? h : c
2778
2778
  }
2779
2779
  ),
2780
- /* @__PURE__ */ I(Ko, { children: /* @__PURE__ */ ze(
2780
+ /* @__PURE__ */ I(Ko, { children: /* @__PURE__ */ Ue(
2781
2781
  Zo,
2782
2782
  {
2783
2783
  side: r,