@purpurds/tooltip 5.8.0 → 5.8.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,25 +1,25 @@
1
- import { jsxs as Ue, jsx as I } from "react/jsx-runtime";
1
+ import { jsxs as We, jsx as I } from "react/jsx-runtime";
2
2
  import * as N from "react";
3
- import { forwardRef as M, useCallback as k, createContext as Ve, useMemo as $e, createElement as _, useContext as At, Fragment as bn, Children as ie, isValidElement as Me, cloneElement as Ze, useEffect as R, useRef as L, useState as j, useLayoutEffect as Ct, useReducer as xn } from "react";
4
- import * as $n from "react-dom";
5
- import wn, { flushSync as Et } from "react-dom";
6
- const _n = {
3
+ import { forwardRef as M, useCallback as F, createContext as Ue, useMemo as xe, createElement as _, useContext as Ot, Fragment as yn, Children as re, isValidElement as Ne, cloneElement as Ke, useEffect as R, useRef as L, useState as j, useLayoutEffect as At, useReducer as bn } from "react";
4
+ import * as xn from "react-dom";
5
+ import $n, { flushSync as Ct } from "react-dom";
6
+ const wn = {
7
7
  SM: "sm",
8
8
  MD: "md",
9
9
  LG: "lg"
10
- }, Pn = {
10
+ }, _n = {
11
11
  PRIMARY: "primary",
12
12
  SECONDARY: "secondary",
13
13
  EXPRESSIVE: "expressive"
14
- }, dt = {
14
+ }, ut = {
15
15
  SM: "sm",
16
16
  MD: "md",
17
17
  LG: "lg"
18
18
  };
19
- function On(e) {
19
+ function Pn(e) {
20
20
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
21
21
  }
22
- var Tt = { exports: {} };
22
+ var Et = { exports: {} };
23
23
  /*!
24
24
  Copyright (c) 2018 Jed Watson.
25
25
  Licensed under the MIT License (MIT), see
@@ -54,44 +54,44 @@ var Tt = { exports: {} };
54
54
  }
55
55
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
56
56
  })();
57
- })(Tt);
58
- var An = Tt.exports;
59
- const ft = /* @__PURE__ */ On(An), Cn = "_rotate_1xozj_1", En = "_dash_1xozj_1", ve = {
57
+ })(Et);
58
+ var On = Et.exports;
59
+ const dt = /* @__PURE__ */ Pn(On), An = "_rotate_1xozj_1", Cn = "_dash_1xozj_1", me = {
60
60
  "purpur-spinner": "_purpur-spinner_1xozj_1",
61
- rotate: Cn,
61
+ rotate: An,
62
62
  "purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
63
63
  "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
64
64
  "purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
65
65
  "purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
66
66
  "purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
67
67
  "purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
68
- dash: En,
68
+ dash: Cn,
69
69
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
70
70
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
71
- }, ye = "purpur-spinner", Tn = {
71
+ }, ve = "purpur-spinner", En = {
72
72
  XXS: "xxs",
73
73
  XS: "xs",
74
74
  SM: "sm",
75
75
  MD: "md",
76
76
  LG: "lg"
77
- }, Rn = ({
77
+ }, Tn = ({
78
78
  ["data-testid"]: e,
79
79
  disabled: t = !1,
80
80
  negative: n = !1,
81
- size: o = Tn.SM,
81
+ size: o = En.SM,
82
82
  ...i
83
83
  }) => /* @__PURE__ */ I(
84
84
  "div",
85
85
  {
86
- className: ft([ve[ye], ve[`${ye}--${o}`]]),
86
+ className: dt([me[ve], me[`${ve}--${o}`]]),
87
87
  "data-testid": e,
88
88
  ...i,
89
89
  children: /* @__PURE__ */ I("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ I(
90
90
  "circle",
91
91
  {
92
- className: ft(ve[`${ye}__circle`], {
93
- [ve[`${ye}__circle--disabled`]]: t,
94
- [ve[`${ye}__circle--negative`]]: n
92
+ className: dt(me[`${ve}__circle`], {
93
+ [me[`${ve}__circle--disabled`]]: t,
94
+ [me[`${ve}__circle--negative`]]: n
95
95
  }),
96
96
  cx: "25",
97
97
  cy: "25",
@@ -100,10 +100,10 @@ const ft = /* @__PURE__ */ On(An), Cn = "_rotate_1xozj_1", En = "_dash_1xozj_1",
100
100
  ) })
101
101
  }
102
102
  );
103
- function Sn(e) {
103
+ function Rn(e) {
104
104
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
105
105
  }
106
- var Rt = { exports: {} };
106
+ var Tt = { exports: {} };
107
107
  /*!
108
108
  Copyright (c) 2018 Jed Watson.
109
109
  Licensed under the MIT License (MIT), see
@@ -138,9 +138,9 @@ var Rt = { exports: {} };
138
138
  }
139
139
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
140
140
  })();
141
- })(Rt);
142
- var Dn = Rt.exports;
143
- const Nn = /* @__PURE__ */ Sn(Dn), Ln = {
141
+ })(Tt);
142
+ var Sn = Tt.exports;
143
+ const Dn = /* @__PURE__ */ Rn(Sn), Nn = {
144
144
  "purpur-button": "_purpur-button_u2yv5_1",
145
145
  "purpur-button--sm": "_purpur-button--sm_u2yv5_33",
146
146
  "purpur-button--icon-only": "_purpur-button--icon-only_u2yv5_36",
@@ -161,12 +161,12 @@ const Nn = /* @__PURE__ */ Sn(Dn), Ln = {
161
161
  "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_u2yv5_160",
162
162
  "purpur-button--text-negative": "_purpur-button--text-negative_u2yv5_175",
163
163
  "purpur-button--text": "_purpur-button--text_u2yv5_175"
164
- }, Mn = {
165
- ...Pn,
164
+ }, Ln = {
165
+ ..._n,
166
166
  DESTRUCTIVE: "destructive",
167
167
  TERTIARY_PURPLE: "tertiary-purple",
168
168
  TEXT: "text"
169
- }, In = Nn.bind(Ln), re = "purpur-button", Fn = ({
169
+ }, Mn = Dn.bind(Nn), ne = "purpur-button", In = ({
170
170
  children: e,
171
171
  className: t,
172
172
  ["data-testid"]: n,
@@ -176,52 +176,52 @@ const Nn = /* @__PURE__ */ Sn(Dn), Ln = {
176
176
  loading: s = !1,
177
177
  negative: a = !1,
178
178
  onClick: c,
179
- size: l = dt.MD,
179
+ size: l = ut.MD,
180
180
  variant: u,
181
181
  type: d = "button",
182
182
  ...p
183
183
  }, f) => {
184
184
  if (r && u === "destructive")
185
185
  return null;
186
- const h = In(
186
+ const h = Mn(
187
187
  [
188
- re,
189
- `${re}--${a ? `${u}-negative` : u}`,
190
- `${re}--${l}`
188
+ ne,
189
+ `${ne}--${a ? `${u}-negative` : u}`,
190
+ `${ne}--${l}`
191
191
  ],
192
192
  {
193
- [`${re}--icon-only`]: r,
194
- [`${re}--negative`]: a,
195
- [`${re}--full-width`]: i,
196
- [`${re}--disabled`]: o || s
193
+ [`${ne}--icon-only`]: r,
194
+ [`${ne}--negative`]: a,
195
+ [`${ne}--full-width`]: i,
196
+ [`${ne}--disabled`]: o || s
197
197
  },
198
198
  t
199
- ), m = (v) => {
199
+ ), g = (v) => {
200
200
  o || s ? v.preventDefault() : c && c(v);
201
- }, g = !!p["aria-disabled"] || o || s;
202
- return /* @__PURE__ */ Ue(
201
+ }, m = !!p["aria-disabled"] || o || s;
202
+ return /* @__PURE__ */ We(
203
203
  "button",
204
204
  {
205
205
  className: h,
206
206
  "data-testid": n,
207
207
  type: d,
208
208
  ref: f,
209
- "aria-disabled": g,
210
- onClick: m,
209
+ "aria-disabled": m,
210
+ onClick: g,
211
211
  ...p,
212
212
  children: [
213
- s && /* @__PURE__ */ I(Rn, { size: l === dt.LG ? "xs" : "xxs", negative: a, disabled: g }),
213
+ s && /* @__PURE__ */ I(Tn, { size: l === ut.LG ? "xs" : "xxs", negative: a, disabled: m }),
214
214
  " ",
215
215
  e
216
216
  ]
217
217
  }
218
218
  );
219
- }, St = M(Fn);
220
- St.displayName = "Button";
219
+ }, Rt = M(In);
220
+ Rt.displayName = "Button";
221
221
  function kn(e) {
222
222
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
223
223
  }
224
- var Dt = { exports: {} };
224
+ var St = { exports: {} };
225
225
  /*!
226
226
  Copyright (c) 2018 Jed Watson.
227
227
  Licensed under the MIT License (MIT), see
@@ -256,9 +256,9 @@ var Dt = { exports: {} };
256
256
  }
257
257
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
258
258
  })();
259
- })(Dt);
260
- var Hn = Dt.exports;
261
- const Bn = /* @__PURE__ */ kn(Hn), jn = {
259
+ })(St);
260
+ var Fn = St.exports;
261
+ const Hn = /* @__PURE__ */ kn(Fn), Bn = {
262
262
  "purpur-icon": "_purpur-icon_8u1lq_1",
263
263
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
264
264
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -266,39 +266,39 @@ const Bn = /* @__PURE__ */ kn(Hn), jn = {
266
266
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
267
267
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
268
268
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
269
- }, zn = {
269
+ }, jn = {
270
270
  name: "info",
271
271
  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>',
272
272
  keywords: ["info"],
273
273
  category: "status"
274
- }, Nt = (e) => /* @__PURE__ */ I(
275
- Yn,
274
+ }, Dt = (e) => /* @__PURE__ */ I(
275
+ Xn,
276
276
  {
277
277
  ...e,
278
- svg: zn
278
+ svg: jn
279
279
  }
280
280
  );
281
- Nt.displayName = "IconInfo";
282
- const Wn = Bn.bind(jn), pt = "purpur-icon", Un = "md", Vn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Gn = ({ content: e = "", title: t } = {}) => {
281
+ Dt.displayName = "IconInfo";
282
+ const zn = Hn.bind(Bn), ft = "purpur-icon", Wn = "md", Un = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Vn = ({ content: e = "", title: t } = {}) => {
283
283
  const n = [
284
284
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
285
285
  { name: "fill", value: "currentColor" },
286
286
  { name: "viewBox", value: "0 0 24 24" },
287
287
  t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
288
288
  ], o = t ? `<title>${t}</title>` : "";
289
- return `<svg ${Vn(n)}>${o}${e}</svg>`;
290
- }, Xn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yn = ({
289
+ return `<svg ${Un(n)}>${o}${e}</svg>`;
290
+ }, Gn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Xn = ({
291
291
  ["data-testid"]: e,
292
292
  svg: t,
293
293
  allyTitle: n,
294
294
  className: o = "",
295
- size: i = Un,
295
+ size: i = Wn,
296
296
  ...r
297
297
  }) => {
298
- const s = Gn({
299
- content: Xn(t.svg),
298
+ const s = Vn({
299
+ content: Gn(t.svg),
300
300
  title: n
301
- }), a = Wn(o, pt, `${pt}--${i}`);
301
+ }), a = zn(o, ft, `${ft}--${i}`);
302
302
  return /* @__PURE__ */ I(
303
303
  "span",
304
304
  {
@@ -310,10 +310,10 @@ const Wn = Bn.bind(jn), pt = "purpur-icon", Un = "md", Vn = (e) => e.filter((t)
310
310
  }
311
311
  );
312
312
  };
313
- function qn(e) {
313
+ function Yn(e) {
314
314
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
315
315
  }
316
- var Lt = { exports: {} };
316
+ var Nt = { exports: {} };
317
317
  /*!
318
318
  Copyright (c) 2018 Jed Watson.
319
319
  Licensed under the MIT License (MIT), see
@@ -348,9 +348,9 @@ var Lt = { exports: {} };
348
348
  }
349
349
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
350
350
  })();
351
- })(Lt);
352
- var Kn = Lt.exports;
353
- const Zn = /* @__PURE__ */ qn(Kn), be = {
351
+ })(Nt);
352
+ var qn = Nt.exports;
353
+ const Kn = /* @__PURE__ */ Yn(qn), ye = {
354
354
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
355
355
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
356
356
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -365,7 +365,7 @@ const Zn = /* @__PURE__ */ qn(Kn), be = {
365
365
  "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
366
366
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
367
367
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
368
- }, Mt = {
368
+ }, Lt = {
369
369
  PARAGRAPH100: "paragraph-100",
370
370
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
371
371
  PARAGRAPH100BOLD: "paragraph-100-bold",
@@ -376,28 +376,28 @@ const Zn = /* @__PURE__ */ qn(Kn), be = {
376
376
  ADDITIONAL100MEDIUM: "additional-100-medium",
377
377
  OVERLINE100: "overline-100",
378
378
  OVERLINE200: "overline-200"
379
- }, xe = "purpur-paragraph", Qn = ({
379
+ }, be = "purpur-paragraph", Zn = ({
380
380
  ["data-testid"]: e,
381
381
  children: t,
382
382
  className: n = "",
383
383
  disabled: o,
384
384
  enableHyphenation: i = !1,
385
385
  negative: r = !1,
386
- variant: s = Mt.PARAGRAPH100,
386
+ variant: s = Lt.PARAGRAPH100,
387
387
  ...a
388
388
  }) => {
389
- const c = Zn([
389
+ const c = Kn([
390
390
  n,
391
- be[xe],
392
- be[`${xe}--${s}`],
391
+ ye[be],
392
+ ye[`${be}--${s}`],
393
393
  {
394
- [be[`${xe}--hyphens`]]: i,
395
- [be[`${xe}--disabled`]]: o,
396
- [be[`${xe}--negative`]]: r
394
+ [ye[`${be}--hyphens`]]: i,
395
+ [ye[`${be}--disabled`]]: o,
396
+ [ye[`${be}--negative`]]: r
397
397
  }
398
398
  ]);
399
399
  return /* @__PURE__ */ I("p", { ...a, className: c, "data-testid": e, children: t });
400
- }, Jn = "400ms";
400
+ }, Qn = "400ms";
401
401
  function S() {
402
402
  return S = Object.assign ? Object.assign.bind() : function(e) {
403
403
  for (var t = 1; t < arguments.length; t++) {
@@ -414,36 +414,36 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
414
414
  return t == null ? void 0 : t(i);
415
415
  };
416
416
  }
417
- function er(e, t) {
417
+ function Jn(e, t) {
418
418
  typeof e == "function" ? e(t) : e != null && (e.current = t);
419
419
  }
420
- function It(...e) {
420
+ function Mt(...e) {
421
421
  return (t) => e.forEach(
422
- (n) => er(n, t)
422
+ (n) => Jn(n, t)
423
423
  );
424
424
  }
425
- function fe(...e) {
426
- return k(It(...e), e);
425
+ function de(...e) {
426
+ return F(Mt(...e), e);
427
427
  }
428
- function Ft(e, t = []) {
428
+ function It(e, t = []) {
429
429
  let n = [];
430
430
  function o(r, s) {
431
- const a = /* @__PURE__ */ Ve(s), c = n.length;
431
+ const a = /* @__PURE__ */ Ue(s), c = n.length;
432
432
  n = [
433
433
  ...n,
434
434
  s
435
435
  ];
436
436
  function l(d) {
437
- const { scope: p, children: f, ...h } = d, m = (p == null ? void 0 : p[e][c]) || a, g = $e(
437
+ const { scope: p, children: f, ...h } = d, g = (p == null ? void 0 : p[e][c]) || a, m = xe(
438
438
  () => h,
439
439
  Object.values(h)
440
440
  );
441
- return /* @__PURE__ */ _(m.Provider, {
442
- value: g
441
+ return /* @__PURE__ */ _(g.Provider, {
442
+ value: m
443
443
  }, f);
444
444
  }
445
445
  function u(d, p) {
446
- const f = (p == null ? void 0 : p[e][c]) || a, h = At(f);
446
+ const f = (p == null ? void 0 : p[e][c]) || a, h = Ot(f);
447
447
  if (h)
448
448
  return h;
449
449
  if (s !== void 0)
@@ -456,10 +456,10 @@ function Ft(e, t = []) {
456
456
  ];
457
457
  }
458
458
  const i = () => {
459
- const r = n.map((s) => /* @__PURE__ */ Ve(s));
459
+ const r = n.map((s) => /* @__PURE__ */ Ue(s));
460
460
  return function(a) {
461
461
  const c = (a == null ? void 0 : a[e]) || r;
462
- return $e(
462
+ return xe(
463
463
  () => ({
464
464
  [`__scope${e}`]: {
465
465
  ...a,
@@ -475,10 +475,10 @@ function Ft(e, t = []) {
475
475
  };
476
476
  return i.scopeName = e, [
477
477
  o,
478
- tr(i, ...t)
478
+ er(i, ...t)
479
479
  ];
480
480
  }
481
- function tr(...e) {
481
+ function er(...e) {
482
482
  const t = e[0];
483
483
  if (e.length === 1)
484
484
  return t;
@@ -497,7 +497,7 @@ function tr(...e) {
497
497
  ...d
498
498
  };
499
499
  }, {});
500
- return $e(
500
+ return xe(
501
501
  () => ({
502
502
  [`__scope${t.scopeName}`]: s
503
503
  }),
@@ -510,31 +510,31 @@ function tr(...e) {
510
510
  return n.scopeName = t.scopeName, n;
511
511
  }
512
512
  const kt = /* @__PURE__ */ M((e, t) => {
513
- const { children: n, ...o } = e, i = ie.toArray(n), r = i.find(nr);
513
+ const { children: n, ...o } = e, i = re.toArray(n), r = i.find(tr);
514
514
  if (r) {
515
- const s = r.props.children, a = i.map((c) => c === r ? ie.count(s) > 1 ? ie.only(null) : /* @__PURE__ */ Me(s) ? s.props.children : null : c);
516
- return /* @__PURE__ */ _(Ge, S({}, o, {
515
+ const s = r.props.children, a = i.map((c) => c === r ? re.count(s) > 1 ? re.only(null) : /* @__PURE__ */ Ne(s) ? s.props.children : null : c);
516
+ return /* @__PURE__ */ _(Ve, S({}, o, {
517
517
  ref: t
518
- }), /* @__PURE__ */ Me(s) ? /* @__PURE__ */ Ze(s, void 0, a) : null);
518
+ }), /* @__PURE__ */ Ne(s) ? /* @__PURE__ */ Ke(s, void 0, a) : null);
519
519
  }
520
- return /* @__PURE__ */ _(Ge, S({}, o, {
520
+ return /* @__PURE__ */ _(Ve, S({}, o, {
521
521
  ref: t
522
522
  }), n);
523
523
  });
524
524
  kt.displayName = "Slot";
525
- const Ge = /* @__PURE__ */ M((e, t) => {
525
+ const Ve = /* @__PURE__ */ M((e, t) => {
526
526
  const { children: n, ...o } = e;
527
- return /* @__PURE__ */ Me(n) ? /* @__PURE__ */ Ze(n, {
528
- ...rr(o, n.props),
529
- ref: t ? It(t, n.ref) : n.ref
530
- }) : ie.count(n) > 1 ? ie.only(null) : null;
527
+ return /* @__PURE__ */ Ne(n) ? /* @__PURE__ */ Ke(n, {
528
+ ...nr(o, n.props),
529
+ ref: t ? Mt(t, n.ref) : n.ref
530
+ }) : re.count(n) > 1 ? re.only(null) : null;
531
531
  });
532
- Ge.displayName = "SlotClone";
533
- const Ht = ({ children: e }) => /* @__PURE__ */ _(bn, null, e);
534
- function nr(e) {
535
- return /* @__PURE__ */ Me(e) && e.type === Ht;
532
+ Ve.displayName = "SlotClone";
533
+ const Ft = ({ children: e }) => /* @__PURE__ */ _(yn, null, e);
534
+ function tr(e) {
535
+ return /* @__PURE__ */ Ne(e) && e.type === Ft;
536
536
  }
537
- function rr(e, t) {
537
+ function nr(e, t) {
538
538
  const n = {
539
539
  ...t
540
540
  };
@@ -555,7 +555,7 @@ function rr(e, t) {
555
555
  ...n
556
556
  };
557
557
  }
558
- const or = [
558
+ const rr = [
559
559
  "a",
560
560
  "button",
561
561
  "div",
@@ -572,7 +572,7 @@ const or = [
572
572
  "span",
573
573
  "svg",
574
574
  "ul"
575
- ], ae = or.reduce((e, t) => {
575
+ ], ie = rr.reduce((e, t) => {
576
576
  const n = /* @__PURE__ */ M((o, i) => {
577
577
  const { asChild: r, ...s } = o, a = r ? kt : t;
578
578
  return R(() => {
@@ -586,16 +586,16 @@ const or = [
586
586
  [t]: n
587
587
  };
588
588
  }, {});
589
- function ir(e, t) {
590
- e && Et(
589
+ function or(e, t) {
590
+ e && Ct(
591
591
  () => e.dispatchEvent(t)
592
592
  );
593
593
  }
594
- function pe(e) {
594
+ function fe(e) {
595
595
  const t = L(e);
596
596
  return R(() => {
597
597
  t.current = e;
598
- }), $e(
598
+ }), xe(
599
599
  () => (...n) => {
600
600
  var o;
601
601
  return (o = t.current) === null || o === void 0 ? void 0 : o.call(t, ...n);
@@ -603,8 +603,8 @@ function pe(e) {
603
603
  []
604
604
  );
605
605
  }
606
- function sr(e, t = globalThis == null ? void 0 : globalThis.document) {
607
- const n = pe(e);
606
+ function ir(e, t = globalThis == null ? void 0 : globalThis.document) {
607
+ const n = fe(e);
608
608
  R(() => {
609
609
  const o = (i) => {
610
610
  i.key === "Escape" && n(i);
@@ -615,27 +615,27 @@ function sr(e, t = globalThis == null ? void 0 : globalThis.document) {
615
615
  t
616
616
  ]);
617
617
  }
618
- const Xe = "dismissableLayer.update", ar = "dismissableLayer.pointerDownOutside", cr = "dismissableLayer.focusOutside";
619
- let ht;
620
- const lr = /* @__PURE__ */ Ve({
618
+ const Ge = "dismissableLayer.update", sr = "dismissableLayer.pointerDownOutside", ar = "dismissableLayer.focusOutside";
619
+ let pt;
620
+ const cr = /* @__PURE__ */ Ue({
621
621
  layers: /* @__PURE__ */ new Set(),
622
622
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
623
623
  branches: /* @__PURE__ */ new Set()
624
- }), ur = /* @__PURE__ */ M((e, t) => {
624
+ }), lr = /* @__PURE__ */ M((e, t) => {
625
625
  var n;
626
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, u = At(lr), [d, p] = j(null), f = (n = d == null ? void 0 : d.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = j({}), m = fe(
626
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, u = Ot(cr), [d, p] = j(null), f = (n = d == null ? void 0 : d.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = j({}), g = de(
627
627
  t,
628
628
  (P) => p(P)
629
- ), g = Array.from(u.layers), [v] = [
629
+ ), m = Array.from(u.layers), [v] = [
630
630
  ...u.layersWithOutsidePointerEventsDisabled
631
- ].slice(-1), y = g.indexOf(v), x = d ? g.indexOf(d) : -1, $ = u.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, w = dr((P) => {
632
- const T = P.target, F = [
631
+ ].slice(-1), y = m.indexOf(v), x = d ? m.indexOf(d) : -1, $ = u.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, w = ur((P) => {
632
+ const T = P.target, k = [
633
633
  ...u.branches
634
634
  ].some(
635
635
  (E) => E.contains(T)
636
636
  );
637
- !b || F || (r == null || r(P), a == null || a(P), P.defaultPrevented || c == null || c());
638
- }, f), A = fr((P) => {
637
+ !b || k || (r == null || r(P), a == null || a(P), P.defaultPrevented || c == null || c());
638
+ }, f), A = dr((P) => {
639
639
  const T = P.target;
640
640
  [
641
641
  ...u.branches
@@ -643,12 +643,12 @@ const lr = /* @__PURE__ */ Ve({
643
643
  (E) => E.contains(T)
644
644
  ) || (s == null || s(P), a == null || a(P), P.defaultPrevented || c == null || c());
645
645
  }, f);
646
- return sr((P) => {
646
+ return ir((P) => {
647
647
  x === u.layers.size - 1 && (i == null || i(P), !P.defaultPrevented && c && (P.preventDefault(), c()));
648
648
  }, f), R(() => {
649
649
  if (d)
650
- return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (ht = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), mt(), () => {
651
- o && u.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = ht);
650
+ return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (pt = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), ht(), () => {
651
+ o && u.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = pt);
652
652
  };
653
653
  }, [
654
654
  d,
@@ -656,15 +656,15 @@ const lr = /* @__PURE__ */ Ve({
656
656
  o,
657
657
  u
658
658
  ]), R(() => () => {
659
- d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), mt());
659
+ d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), ht());
660
660
  }, [
661
661
  d,
662
662
  u
663
663
  ]), R(() => {
664
664
  const P = () => h({});
665
- return document.addEventListener(Xe, P), () => document.removeEventListener(Xe, P);
666
- }, []), /* @__PURE__ */ _(ae.div, S({}, l, {
667
- ref: m,
665
+ return document.addEventListener(Ge, P), () => document.removeEventListener(Ge, P);
666
+ }, []), /* @__PURE__ */ _(ie.div, S({}, l, {
667
+ ref: g,
668
668
  style: {
669
669
  pointerEvents: $ ? b ? "auto" : "none" : void 0,
670
670
  ...e.style
@@ -674,14 +674,14 @@ const lr = /* @__PURE__ */ Ve({
674
674
  onPointerDownCapture: G(e.onPointerDownCapture, w.onPointerDownCapture)
675
675
  }));
676
676
  });
677
- function dr(e, t = globalThis == null ? void 0 : globalThis.document) {
678
- const n = pe(e), o = L(!1), i = L(() => {
677
+ function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
678
+ const n = fe(e), o = L(!1), i = L(() => {
679
679
  });
680
680
  return R(() => {
681
681
  const r = (a) => {
682
682
  if (a.target && !o.current) {
683
683
  let l = function() {
684
- Bt(ar, n, c, {
684
+ Ht(sr, n, c, {
685
685
  discrete: !0
686
686
  });
687
687
  };
@@ -708,11 +708,11 @@ function dr(e, t = globalThis == null ? void 0 : globalThis.document) {
708
708
  onPointerDownCapture: () => o.current = !0
709
709
  };
710
710
  }
711
- function fr(e, t = globalThis == null ? void 0 : globalThis.document) {
712
- const n = pe(e), o = L(!1);
711
+ function dr(e, t = globalThis == null ? void 0 : globalThis.document) {
712
+ const n = fe(e), o = L(!1);
713
713
  return R(() => {
714
714
  const i = (r) => {
715
- r.target && !o.current && Bt(cr, n, {
715
+ r.target && !o.current && Ht(ar, n, {
716
716
  originalEvent: r
717
717
  }, {
718
718
  discrete: !1
@@ -727,11 +727,11 @@ function fr(e, t = globalThis == null ? void 0 : globalThis.document) {
727
727
  onBlurCapture: () => o.current = !1
728
728
  };
729
729
  }
730
- function mt() {
731
- const e = new CustomEvent(Xe);
730
+ function ht() {
731
+ const e = new CustomEvent(Ge);
732
732
  document.dispatchEvent(e);
733
733
  }
734
- function Bt(e, t, n, { discrete: o }) {
734
+ function Ht(e, t, n, { discrete: o }) {
735
735
  const i = n.originalEvent.target, r = new CustomEvent(e, {
736
736
  bubbles: !1,
737
737
  cancelable: !0,
@@ -739,36 +739,36 @@ function Bt(e, t, n, { discrete: o }) {
739
739
  });
740
740
  t && i.addEventListener(e, t, {
741
741
  once: !0
742
- }), o ? ir(i, r) : i.dispatchEvent(r);
742
+ }), o ? or(i, r) : i.dispatchEvent(r);
743
743
  }
744
- const ue = globalThis != null && globalThis.document ? Ct : () => {
745
- }, pr = N.useId || (() => {
744
+ const le = globalThis != null && globalThis.document ? At : () => {
745
+ }, fr = N.useId || (() => {
746
746
  });
747
- let hr = 0;
748
- function mr(e) {
749
- const [t, n] = N.useState(pr());
750
- return ue(() => {
747
+ let pr = 0;
748
+ function hr(e) {
749
+ const [t, n] = N.useState(fr());
750
+ return le(() => {
751
751
  n(
752
- (o) => o ?? String(hr++)
752
+ (o) => o ?? String(pr++)
753
753
  );
754
754
  }, [
755
755
  e
756
756
  ]), t ? `radix-${t}` : "";
757
757
  }
758
- const gr = ["top", "right", "bottom", "left"], ee = Math.min, B = Math.max, Ie = Math.round, Se = Math.floor, te = (e) => ({
758
+ const gr = ["top", "right", "bottom", "left"], J = Math.min, B = Math.max, Le = Math.round, Re = Math.floor, ee = (e) => ({
759
759
  x: e,
760
760
  y: e
761
- }), vr = {
761
+ }), mr = {
762
762
  left: "right",
763
763
  right: "left",
764
764
  bottom: "top",
765
765
  top: "bottom"
766
- }, yr = {
766
+ }, vr = {
767
767
  start: "end",
768
768
  end: "start"
769
769
  };
770
- function Ye(e, t, n) {
771
- return B(e, ee(t, n));
770
+ function Xe(e, t, n) {
771
+ return B(e, J(t, n));
772
772
  }
773
773
  function X(e, t) {
774
774
  return typeof e == "function" ? e(t) : e;
@@ -776,35 +776,35 @@ function X(e, t) {
776
776
  function Y(e) {
777
777
  return e.split("-")[0];
778
778
  }
779
- function he(e) {
779
+ function pe(e) {
780
780
  return e.split("-")[1];
781
781
  }
782
- function Qe(e) {
782
+ function Ze(e) {
783
783
  return e === "x" ? "y" : "x";
784
784
  }
785
- function Je(e) {
785
+ function Qe(e) {
786
786
  return e === "y" ? "height" : "width";
787
787
  }
788
- function me(e) {
788
+ function he(e) {
789
789
  return ["top", "bottom"].includes(Y(e)) ? "y" : "x";
790
790
  }
791
- function et(e) {
792
- return Qe(me(e));
791
+ function Je(e) {
792
+ return Ze(he(e));
793
793
  }
794
- function br(e, t, n) {
794
+ function yr(e, t, n) {
795
795
  n === void 0 && (n = !1);
796
- const o = he(e), i = et(e), r = Je(i);
796
+ const o = pe(e), i = Je(e), r = Qe(i);
797
797
  let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
798
- return t.reference[r] > t.floating[r] && (s = Fe(s)), [s, Fe(s)];
798
+ return t.reference[r] > t.floating[r] && (s = Me(s)), [s, Me(s)];
799
799
  }
800
- function xr(e) {
801
- const t = Fe(e);
802
- return [qe(e), t, qe(t)];
800
+ function br(e) {
801
+ const t = Me(e);
802
+ return [Ye(e), t, Ye(t)];
803
803
  }
804
- function qe(e) {
805
- return e.replace(/start|end/g, (t) => yr[t]);
804
+ function Ye(e) {
805
+ return e.replace(/start|end/g, (t) => vr[t]);
806
806
  }
807
- function $r(e, t, n) {
807
+ function xr(e, t, n) {
808
808
  const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
809
809
  switch (e) {
810
810
  case "top":
@@ -817,15 +817,15 @@ function $r(e, t, n) {
817
817
  return [];
818
818
  }
819
819
  }
820
- function wr(e, t, n, o) {
821
- const i = he(e);
822
- let r = $r(Y(e), n === "start", o);
823
- return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(qe)))), r;
820
+ function $r(e, t, n, o) {
821
+ const i = pe(e);
822
+ let r = xr(Y(e), n === "start", o);
823
+ return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Ye)))), r;
824
824
  }
825
- function Fe(e) {
826
- return e.replace(/left|right|bottom|top/g, (t) => vr[t]);
825
+ function Me(e) {
826
+ return e.replace(/left|right|bottom|top/g, (t) => mr[t]);
827
827
  }
828
- function _r(e) {
828
+ function wr(e) {
829
829
  return {
830
830
  top: 0,
831
831
  right: 0,
@@ -834,15 +834,15 @@ function _r(e) {
834
834
  ...e
835
835
  };
836
836
  }
837
- function jt(e) {
838
- return typeof e != "number" ? _r(e) : {
837
+ function Bt(e) {
838
+ return typeof e != "number" ? wr(e) : {
839
839
  top: e,
840
840
  right: e,
841
841
  bottom: e,
842
842
  left: e
843
843
  };
844
844
  }
845
- function ke(e) {
845
+ function Ie(e) {
846
846
  return {
847
847
  ...e,
848
848
  top: e.y,
@@ -856,7 +856,7 @@ function gt(e, t, n) {
856
856
  reference: o,
857
857
  floating: i
858
858
  } = e;
859
- const r = me(t), s = et(t), a = Je(s), c = Y(t), l = r === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[a] / 2 - i[a] / 2;
859
+ const r = he(t), s = Je(t), a = Qe(s), c = Y(t), l = r === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[a] / 2 - i[a] / 2;
860
860
  let f;
861
861
  switch (c) {
862
862
  case "top":
@@ -889,7 +889,7 @@ function gt(e, t, n) {
889
889
  y: o.y
890
890
  };
891
891
  }
892
- switch (he(t)) {
892
+ switch (pe(t)) {
893
893
  case "start":
894
894
  f[s] -= p * (n && l ? -1 : 1);
895
895
  break;
@@ -899,7 +899,7 @@ function gt(e, t, n) {
899
899
  }
900
900
  return f;
901
901
  }
902
- const Pr = async (e, t, n) => {
902
+ const _r = async (e, t, n) => {
903
903
  const {
904
904
  placement: o = "bottom",
905
905
  strategy: i = "absolute",
@@ -914,11 +914,11 @@ const Pr = async (e, t, n) => {
914
914
  x: u,
915
915
  y: d
916
916
  } = gt(l, o, c), p = o, f = {}, h = 0;
917
- for (let m = 0; m < a.length; m++) {
917
+ for (let g = 0; g < a.length; g++) {
918
918
  const {
919
- name: g,
919
+ name: m,
920
920
  fn: v
921
- } = a[m], {
921
+ } = a[g], {
922
922
  x: y,
923
923
  y: x,
924
924
  data: $,
@@ -939,8 +939,8 @@ const Pr = async (e, t, n) => {
939
939
  });
940
940
  if (u = y ?? u, d = x ?? d, f = {
941
941
  ...f,
942
- [g]: {
943
- ...f[g],
942
+ [m]: {
943
+ ...f[m],
944
944
  ...$
945
945
  }
946
946
  }, b && h <= 50) {
@@ -951,7 +951,7 @@ const Pr = async (e, t, n) => {
951
951
  }) : b.rects), {
952
952
  x: u,
953
953
  y: d
954
- } = gt(l, p, c)), m = -1;
954
+ } = gt(l, p, c)), g = -1;
955
955
  continue;
956
956
  }
957
957
  }
@@ -963,7 +963,7 @@ const Pr = async (e, t, n) => {
963
963
  middlewareData: f
964
964
  };
965
965
  };
966
- async function we(e, t) {
966
+ async function $e(e, t) {
967
967
  var n;
968
968
  t === void 0 && (t = {});
969
969
  const {
@@ -979,8 +979,8 @@ async function we(e, t) {
979
979
  elementContext: d = "floating",
980
980
  altBoundary: p = !1,
981
981
  padding: f = 0
982
- } = X(t, e), h = jt(f), g = a[p ? d === "floating" ? "reference" : "floating" : d], v = ke(await r.getClippingRect({
983
- element: (n = await (r.isElement == null ? void 0 : r.isElement(g))) == null || n ? g : g.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
982
+ } = X(t, e), h = Bt(f), m = a[p ? d === "floating" ? "reference" : "floating" : d], v = Ie(await r.getClippingRect({
983
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(m))) == null || n ? m : m.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
984
984
  boundary: l,
985
985
  rootBoundary: u,
986
986
  strategy: c
@@ -994,7 +994,7 @@ async function we(e, t) {
994
994
  } : {
995
995
  x: 1,
996
996
  y: 1
997
- }, b = ke(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
997
+ }, b = Ie(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
998
998
  rect: y,
999
999
  offsetParent: x,
1000
1000
  strategy: c
@@ -1006,7 +1006,7 @@ async function we(e, t) {
1006
1006
  right: (b.right - v.right + h.right) / $.x
1007
1007
  };
1008
1008
  }
1009
- const vt = (e) => ({
1009
+ const mt = (e) => ({
1010
1010
  name: "arrow",
1011
1011
  options: e,
1012
1012
  async fn(t) {
@@ -1023,13 +1023,13 @@ const vt = (e) => ({
1023
1023
  } = X(e, t) || {};
1024
1024
  if (c == null)
1025
1025
  return {};
1026
- const u = jt(l), d = {
1026
+ const u = Bt(l), d = {
1027
1027
  x: n,
1028
1028
  y: o
1029
- }, p = et(i), f = Je(p), h = await s.getDimensions(c), m = p === "y", g = m ? "top" : "left", v = m ? "bottom" : "right", y = m ? "clientHeight" : "clientWidth", x = r.reference[f] + r.reference[p] - d[p] - r.floating[f], $ = d[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1029
+ }, p = Je(i), f = Qe(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] - d[p] - r.floating[f], $ = d[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1030
1030
  let w = b ? b[y] : 0;
1031
1031
  (!w || !await (s.isElement == null ? void 0 : s.isElement(b))) && (w = a.floating[y] || r.floating[f]);
1032
- const A = x / 2 - $ / 2, P = w / 2 - h[f] / 2 - 1, T = ee(u[g], P), F = ee(u[v], P), E = T, H = w - h[f] - F, D = w / 2 - h[f] / 2 + A, C = Ye(E, D, H), O = he(i) != null && D != C && r.reference[f] / 2 - (D < E ? T : F) - h[f] / 2 < 0 ? D < E ? E - D : H - D : 0;
1032
+ const A = x / 2 - $ / 2, P = w / 2 - h[f] / 2 - 1, T = J(u[m], P), k = J(u[v], P), E = T, H = w - h[f] - k, D = w / 2 - h[f] / 2 + A, C = Xe(E, D, H), O = pe(i) != null && D != C && r.reference[f] / 2 - (D < E ? T : k) - h[f] / 2 < 0 ? D < E ? E - D : H - D : 0;
1033
1033
  return {
1034
1034
  [p]: d[p] - O,
1035
1035
  data: {
@@ -1038,7 +1038,7 @@ const vt = (e) => ({
1038
1038
  }
1039
1039
  };
1040
1040
  }
1041
- }), Or = function(e) {
1041
+ }), Pr = function(e) {
1042
1042
  return e === void 0 && (e = {}), {
1043
1043
  name: "flip",
1044
1044
  options: e,
@@ -1058,13 +1058,13 @@ const vt = (e) => ({
1058
1058
  fallbackStrategy: p = "bestFit",
1059
1059
  fallbackAxisSideDirection: f = "none",
1060
1060
  flipAlignment: h = !0,
1061
- ...m
1062
- } = X(e, t), g = Y(o), v = Y(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = d || (v || !h ? [Fe(s)] : xr(s));
1063
- !d && f !== "none" && x.push(...wr(s, h, f, y));
1064
- const $ = [s, ...x], b = await we(t, m), w = [];
1061
+ ...g
1062
+ } = X(e, t), m = Y(o), v = Y(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = d || (v || !h ? [Me(s)] : br(s));
1063
+ !d && f !== "none" && x.push(...$r(s, h, f, y));
1064
+ const $ = [s, ...x], b = await $e(t, g), w = [];
1065
1065
  let A = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1066
- if (l && w.push(b[g]), u) {
1067
- const E = br(o, r, y);
1066
+ if (l && w.push(b[m]), u) {
1067
+ const E = yr(o, r, y);
1068
1068
  w.push(b[E[0]], b[E[1]]);
1069
1069
  }
1070
1070
  if (A = [...A, {
@@ -1087,8 +1087,8 @@ const vt = (e) => ({
1087
1087
  if (!D)
1088
1088
  switch (p) {
1089
1089
  case "bestFit": {
1090
- var F;
1091
- const C = (F = A.map((W) => [W.placement, W.overflows.filter((O) => O > 0).reduce((O, Z) => O + Z, 0)]).sort((W, O) => W[1] - O[1])[0]) == null ? void 0 : F[0];
1090
+ var k;
1091
+ const C = (k = A.map((W) => [W.placement, W.overflows.filter((O) => O > 0).reduce((O, Z) => O + Z, 0)]).sort((W, O) => W[1] - O[1])[0]) == null ? void 0 : k[0];
1092
1092
  C && (D = C);
1093
1093
  break;
1094
1094
  }
@@ -1107,7 +1107,7 @@ const vt = (e) => ({
1107
1107
  }
1108
1108
  };
1109
1109
  };
1110
- function yt(e, t) {
1110
+ function vt(e, t) {
1111
1111
  return {
1112
1112
  top: e.top - t.height,
1113
1113
  right: e.right - t.width,
@@ -1115,10 +1115,10 @@ function yt(e, t) {
1115
1115
  left: e.left - t.width
1116
1116
  };
1117
1117
  }
1118
- function bt(e) {
1118
+ function yt(e) {
1119
1119
  return gr.some((t) => e[t] >= 0);
1120
1120
  }
1121
- const Ar = function(e) {
1121
+ const Or = function(e) {
1122
1122
  return e === void 0 && (e = {}), {
1123
1123
  name: "hide",
1124
1124
  options: e,
@@ -1131,26 +1131,26 @@ const Ar = function(e) {
1131
1131
  } = X(e, t);
1132
1132
  switch (o) {
1133
1133
  case "referenceHidden": {
1134
- const r = await we(t, {
1134
+ const r = await $e(t, {
1135
1135
  ...i,
1136
1136
  elementContext: "reference"
1137
- }), s = yt(r, n.reference);
1137
+ }), s = vt(r, n.reference);
1138
1138
  return {
1139
1139
  data: {
1140
1140
  referenceHiddenOffsets: s,
1141
- referenceHidden: bt(s)
1141
+ referenceHidden: yt(s)
1142
1142
  }
1143
1143
  };
1144
1144
  }
1145
1145
  case "escaped": {
1146
- const r = await we(t, {
1146
+ const r = await $e(t, {
1147
1147
  ...i,
1148
1148
  altBoundary: !0
1149
- }), s = yt(r, n.floating);
1149
+ }), s = vt(r, n.floating);
1150
1150
  return {
1151
1151
  data: {
1152
1152
  escapedOffsets: s,
1153
- escaped: bt(s)
1153
+ escaped: yt(s)
1154
1154
  }
1155
1155
  };
1156
1156
  }
@@ -1160,12 +1160,12 @@ const Ar = function(e) {
1160
1160
  }
1161
1161
  };
1162
1162
  };
1163
- async function Cr(e, t) {
1163
+ async function Ar(e, t) {
1164
1164
  const {
1165
1165
  placement: n,
1166
1166
  platform: o,
1167
1167
  elements: i
1168
- } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Y(n), a = he(n), c = me(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, u = r && c ? -1 : 1, d = X(t, e);
1168
+ } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Y(n), a = pe(n), c = he(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, u = r && c ? -1 : 1, d = X(t, e);
1169
1169
  let {
1170
1170
  mainAxis: p,
1171
1171
  crossAxis: f,
@@ -1188,7 +1188,7 @@ async function Cr(e, t) {
1188
1188
  y: f * u
1189
1189
  };
1190
1190
  }
1191
- const Er = function(e) {
1191
+ const Cr = function(e) {
1192
1192
  return e === void 0 && (e = 0), {
1193
1193
  name: "offset",
1194
1194
  options: e,
@@ -1196,7 +1196,7 @@ const Er = function(e) {
1196
1196
  const {
1197
1197
  x: n,
1198
1198
  y: o
1199
- } = t, i = await Cr(t, e);
1199
+ } = t, i = await Ar(t, e);
1200
1200
  return {
1201
1201
  x: n + i.x,
1202
1202
  y: o + i.y,
@@ -1204,7 +1204,7 @@ const Er = function(e) {
1204
1204
  };
1205
1205
  }
1206
1206
  };
1207
- }, Tr = function(e) {
1207
+ }, Er = function(e) {
1208
1208
  return e === void 0 && (e = {}), {
1209
1209
  name: "shift",
1210
1210
  options: e,
@@ -1217,11 +1217,11 @@ const Er = function(e) {
1217
1217
  mainAxis: r = !0,
1218
1218
  crossAxis: s = !1,
1219
1219
  limiter: a = {
1220
- fn: (g) => {
1220
+ fn: (m) => {
1221
1221
  let {
1222
1222
  x: v,
1223
1223
  y
1224
- } = g;
1224
+ } = m;
1225
1225
  return {
1226
1226
  x: v,
1227
1227
  y
@@ -1232,31 +1232,31 @@ const Er = function(e) {
1232
1232
  } = X(e, t), l = {
1233
1233
  x: n,
1234
1234
  y: o
1235
- }, u = await we(t, c), d = me(Y(i)), p = Qe(d);
1235
+ }, u = await $e(t, c), d = he(Y(i)), p = Ze(d);
1236
1236
  let f = l[p], h = l[d];
1237
1237
  if (r) {
1238
- const g = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = f + u[g], x = f - u[v];
1239
- f = Ye(y, f, x);
1238
+ const m = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = f + u[m], x = f - u[v];
1239
+ f = Xe(y, f, x);
1240
1240
  }
1241
1241
  if (s) {
1242
- const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = h + u[g], x = h - u[v];
1243
- h = Ye(y, h, x);
1242
+ const m = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = h + u[m], x = h - u[v];
1243
+ h = Xe(y, h, x);
1244
1244
  }
1245
- const m = a.fn({
1245
+ const g = a.fn({
1246
1246
  ...t,
1247
1247
  [p]: f,
1248
1248
  [d]: h
1249
1249
  });
1250
1250
  return {
1251
- ...m,
1251
+ ...g,
1252
1252
  data: {
1253
- x: m.x - n,
1254
- y: m.y - o
1253
+ x: g.x - n,
1254
+ y: g.y - o
1255
1255
  }
1256
1256
  };
1257
1257
  }
1258
1258
  };
1259
- }, Rr = function(e) {
1259
+ }, Tr = function(e) {
1260
1260
  return e === void 0 && (e = {}), {
1261
1261
  options: e,
1262
1262
  fn(t) {
@@ -1273,23 +1273,23 @@ const Er = function(e) {
1273
1273
  } = X(e, t), u = {
1274
1274
  x: n,
1275
1275
  y: o
1276
- }, d = me(i), p = Qe(d);
1276
+ }, d = he(i), p = Ze(d);
1277
1277
  let f = u[p], h = u[d];
1278
- const m = X(a, t), g = typeof m == "number" ? {
1279
- mainAxis: m,
1278
+ const g = X(a, t), m = typeof g == "number" ? {
1279
+ mainAxis: g,
1280
1280
  crossAxis: 0
1281
1281
  } : {
1282
1282
  mainAxis: 0,
1283
1283
  crossAxis: 0,
1284
- ...m
1284
+ ...g
1285
1285
  };
1286
1286
  if (c) {
1287
- const x = p === "y" ? "height" : "width", $ = r.reference[p] - r.floating[x] + g.mainAxis, b = r.reference[p] + r.reference[x] - g.mainAxis;
1287
+ const x = p === "y" ? "height" : "width", $ = r.reference[p] - r.floating[x] + m.mainAxis, b = r.reference[p] + r.reference[x] - m.mainAxis;
1288
1288
  f < $ ? f = $ : f > b && (f = b);
1289
1289
  }
1290
1290
  if (l) {
1291
1291
  var v, y;
1292
- const x = p === "y" ? "width" : "height", $ = ["top", "left"].includes(Y(i)), b = r.reference[d] - r.floating[x] + ($ && ((v = s.offset) == null ? void 0 : v[d]) || 0) + ($ ? 0 : g.crossAxis), w = r.reference[d] + r.reference[x] + ($ ? 0 : ((y = s.offset) == null ? void 0 : y[d]) || 0) - ($ ? g.crossAxis : 0);
1292
+ const x = p === "y" ? "width" : "height", $ = ["top", "left"].includes(Y(i)), b = r.reference[d] - r.floating[x] + ($ && ((v = s.offset) == null ? void 0 : v[d]) || 0) + ($ ? 0 : m.crossAxis), w = r.reference[d] + r.reference[x] + ($ ? 0 : ((y = s.offset) == null ? void 0 : y[d]) || 0) - ($ ? m.crossAxis : 0);
1293
1293
  h < b ? h = b : h > w && (h = w);
1294
1294
  }
1295
1295
  return {
@@ -1298,7 +1298,7 @@ const Er = function(e) {
1298
1298
  };
1299
1299
  }
1300
1300
  };
1301
- }, Sr = function(e) {
1301
+ }, Rr = function(e) {
1302
1302
  return e === void 0 && (e = {}), {
1303
1303
  name: "size",
1304
1304
  options: e,
@@ -1312,20 +1312,20 @@ const Er = function(e) {
1312
1312
  apply: s = () => {
1313
1313
  },
1314
1314
  ...a
1315
- } = X(e, t), c = await we(t, a), l = Y(n), u = he(n), d = me(n) === "y", {
1315
+ } = X(e, t), c = await $e(t, a), l = Y(n), u = pe(n), d = he(n) === "y", {
1316
1316
  width: p,
1317
1317
  height: f
1318
1318
  } = o.floating;
1319
- let h, m;
1320
- l === "top" || l === "bottom" ? (h = l, m = u === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (m = l, h = u === "end" ? "top" : "bottom");
1321
- const g = f - c[h], v = p - c[m], y = !t.middlewareData.shift;
1322
- let x = g, $ = v;
1319
+ let h, g;
1320
+ l === "top" || l === "bottom" ? (h = l, g = u === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (g = l, h = u === "end" ? "top" : "bottom");
1321
+ const m = f - c[h], v = p - c[g], y = !t.middlewareData.shift;
1322
+ let x = m, $ = v;
1323
1323
  if (d) {
1324
1324
  const w = p - c.left - c.right;
1325
- $ = u || y ? ee(v, w) : w;
1325
+ $ = u || y ? J(v, w) : w;
1326
1326
  } else {
1327
1327
  const w = f - c.top - c.bottom;
1328
- x = u || y ? ee(g, w) : w;
1328
+ x = u || y ? J(m, w) : w;
1329
1329
  }
1330
1330
  if (y && !u) {
1331
1331
  const w = B(c.left, 0), A = B(c.right, 0), P = B(c.top, 0), T = B(c.bottom, 0);
@@ -1345,8 +1345,8 @@ const Er = function(e) {
1345
1345
  }
1346
1346
  };
1347
1347
  };
1348
- function ne(e) {
1349
- return zt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1348
+ function te(e) {
1349
+ return jt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1350
1350
  }
1351
1351
  function z(e) {
1352
1352
  var t;
@@ -1354,9 +1354,9 @@ function z(e) {
1354
1354
  }
1355
1355
  function K(e) {
1356
1356
  var t;
1357
- return (t = (zt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1357
+ return (t = (jt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1358
1358
  }
1359
- function zt(e) {
1359
+ function jt(e) {
1360
1360
  return e instanceof Node || e instanceof z(e).Node;
1361
1361
  }
1362
1362
  function q(e) {
@@ -1365,10 +1365,10 @@ function q(e) {
1365
1365
  function V(e) {
1366
1366
  return e instanceof HTMLElement || e instanceof z(e).HTMLElement;
1367
1367
  }
1368
- function xt(e) {
1368
+ function bt(e) {
1369
1369
  return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof z(e).ShadowRoot;
1370
1370
  }
1371
- function Oe(e) {
1371
+ function Pe(e) {
1372
1372
  const {
1373
1373
  overflow: t,
1374
1374
  overflowX: n,
@@ -1377,32 +1377,32 @@ function Oe(e) {
1377
1377
  } = U(e);
1378
1378
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
1379
1379
  }
1380
- function Dr(e) {
1381
- return ["table", "td", "th"].includes(ne(e));
1380
+ function Sr(e) {
1381
+ return ["table", "td", "th"].includes(te(e));
1382
1382
  }
1383
- function tt(e) {
1384
- const t = nt(), n = U(e);
1383
+ function et(e) {
1384
+ const t = tt(), n = U(e);
1385
1385
  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));
1386
1386
  }
1387
- function Nr(e) {
1388
- let t = de(e);
1389
- for (; V(t) && !Be(t); ) {
1390
- if (tt(t))
1387
+ function Dr(e) {
1388
+ let t = ue(e);
1389
+ for (; V(t) && !Fe(t); ) {
1390
+ if (et(t))
1391
1391
  return t;
1392
- t = de(t);
1392
+ t = ue(t);
1393
1393
  }
1394
1394
  return null;
1395
1395
  }
1396
- function nt() {
1396
+ function tt() {
1397
1397
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1398
1398
  }
1399
- function Be(e) {
1400
- return ["html", "body", "#document"].includes(ne(e));
1399
+ function Fe(e) {
1400
+ return ["html", "body", "#document"].includes(te(e));
1401
1401
  }
1402
1402
  function U(e) {
1403
1403
  return z(e).getComputedStyle(e);
1404
1404
  }
1405
- function je(e) {
1405
+ function He(e) {
1406
1406
  return q(e) ? {
1407
1407
  scrollLeft: e.scrollLeft,
1408
1408
  scrollTop: e.scrollTop
@@ -1411,90 +1411,90 @@ function je(e) {
1411
1411
  scrollTop: e.pageYOffset
1412
1412
  };
1413
1413
  }
1414
- function de(e) {
1415
- if (ne(e) === "html")
1414
+ function ue(e) {
1415
+ if (te(e) === "html")
1416
1416
  return e;
1417
1417
  const t = (
1418
1418
  // Step into the shadow DOM of the parent of a slotted node.
1419
1419
  e.assignedSlot || // DOM Element detected.
1420
1420
  e.parentNode || // ShadowRoot detected.
1421
- xt(e) && e.host || // Fallback.
1421
+ bt(e) && e.host || // Fallback.
1422
1422
  K(e)
1423
1423
  );
1424
- return xt(t) ? t.host : t;
1424
+ return bt(t) ? t.host : t;
1425
1425
  }
1426
- function Wt(e) {
1427
- const t = de(e);
1428
- return Be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && Oe(t) ? t : Wt(t);
1426
+ function zt(e) {
1427
+ const t = ue(e);
1428
+ return Fe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && Pe(t) ? t : zt(t);
1429
1429
  }
1430
- function _e(e, t) {
1430
+ function we(e, t) {
1431
1431
  var n;
1432
1432
  t === void 0 && (t = []);
1433
- const o = Wt(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = z(o);
1434
- return i ? t.concat(r, r.visualViewport || [], Oe(o) ? o : [], r.frameElement ? _e(r.frameElement) : []) : t.concat(o, _e(o));
1433
+ const o = zt(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = z(o);
1434
+ return i ? t.concat(r, r.visualViewport || [], Pe(o) ? o : [], r.frameElement ? we(r.frameElement) : []) : t.concat(o, we(o));
1435
1435
  }
1436
- function Ut(e) {
1436
+ function Wt(e) {
1437
1437
  const t = U(e);
1438
1438
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1439
- const i = V(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Ie(n) !== r || Ie(o) !== s;
1439
+ const i = V(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Le(n) !== r || Le(o) !== s;
1440
1440
  return a && (n = r, o = s), {
1441
1441
  width: n,
1442
1442
  height: o,
1443
1443
  $: a
1444
1444
  };
1445
1445
  }
1446
- function rt(e) {
1446
+ function nt(e) {
1447
1447
  return q(e) ? e : e.contextElement;
1448
1448
  }
1449
- function le(e) {
1450
- const t = rt(e);
1449
+ function ce(e) {
1450
+ const t = nt(e);
1451
1451
  if (!V(t))
1452
- return te(1);
1452
+ return ee(1);
1453
1453
  const n = t.getBoundingClientRect(), {
1454
1454
  width: o,
1455
1455
  height: i,
1456
1456
  $: r
1457
- } = Ut(t);
1458
- let s = (r ? Ie(n.width) : n.width) / o, a = (r ? Ie(n.height) : n.height) / i;
1457
+ } = Wt(t);
1458
+ let s = (r ? Le(n.width) : n.width) / o, a = (r ? Le(n.height) : n.height) / i;
1459
1459
  return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
1460
1460
  x: s,
1461
1461
  y: a
1462
1462
  };
1463
1463
  }
1464
- const Lr = /* @__PURE__ */ te(0);
1465
- function Vt(e) {
1464
+ const Nr = /* @__PURE__ */ ee(0);
1465
+ function Ut(e) {
1466
1466
  const t = z(e);
1467
- return !nt() || !t.visualViewport ? Lr : {
1467
+ return !tt() || !t.visualViewport ? Nr : {
1468
1468
  x: t.visualViewport.offsetLeft,
1469
1469
  y: t.visualViewport.offsetTop
1470
1470
  };
1471
1471
  }
1472
- function Mr(e, t, n) {
1472
+ function Lr(e, t, n) {
1473
1473
  return t === void 0 && (t = !1), !n || t && n !== z(e) ? !1 : t;
1474
1474
  }
1475
- function se(e, t, n, o) {
1475
+ function oe(e, t, n, o) {
1476
1476
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1477
- const i = e.getBoundingClientRect(), r = rt(e);
1478
- let s = te(1);
1479
- t && (o ? q(o) && (s = le(o)) : s = le(e));
1480
- const a = Mr(r, n, o) ? Vt(r) : te(0);
1477
+ const i = e.getBoundingClientRect(), r = nt(e);
1478
+ let s = ee(1);
1479
+ t && (o ? q(o) && (s = ce(o)) : s = ce(e));
1480
+ const a = Lr(r, n, o) ? Ut(r) : ee(0);
1481
1481
  let c = (i.left + a.x) / s.x, l = (i.top + a.y) / s.y, u = i.width / s.x, d = i.height / s.y;
1482
1482
  if (r) {
1483
1483
  const p = z(r), f = o && q(o) ? z(o) : o;
1484
1484
  let h = p.frameElement;
1485
1485
  for (; h && o && f !== p; ) {
1486
- const m = le(h), g = h.getBoundingClientRect(), v = U(h), y = g.left + (h.clientLeft + parseFloat(v.paddingLeft)) * m.x, x = g.top + (h.clientTop + parseFloat(v.paddingTop)) * m.y;
1487
- c *= m.x, l *= m.y, u *= m.x, d *= m.y, c += y, l += x, h = z(h).frameElement;
1486
+ const g = ce(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;
1487
+ c *= g.x, l *= g.y, u *= g.x, d *= g.y, c += y, l += x, h = z(h).frameElement;
1488
1488
  }
1489
1489
  }
1490
- return ke({
1490
+ return Ie({
1491
1491
  width: u,
1492
1492
  height: d,
1493
1493
  x: c,
1494
1494
  y: l
1495
1495
  });
1496
1496
  }
1497
- function Ir(e) {
1497
+ function Mr(e) {
1498
1498
  let {
1499
1499
  rect: t,
1500
1500
  offsetParent: n,
@@ -1506,11 +1506,11 @@ function Ir(e) {
1506
1506
  let s = {
1507
1507
  scrollLeft: 0,
1508
1508
  scrollTop: 0
1509
- }, a = te(1);
1510
- const c = te(0);
1511
- if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || Oe(r)) && (s = je(n)), V(n))) {
1512
- const l = se(n);
1513
- a = le(n), c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
1509
+ }, a = ee(1);
1510
+ const c = ee(0);
1511
+ if ((i || !i && o !== "fixed") && ((te(n) !== "body" || Pe(r)) && (s = He(n)), V(n))) {
1512
+ const l = oe(n);
1513
+ a = ce(n), c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
1514
1514
  }
1515
1515
  return {
1516
1516
  width: t.width * a.x,
@@ -1519,15 +1519,15 @@ function Ir(e) {
1519
1519
  y: t.y * a.y - s.scrollTop * a.y + c.y
1520
1520
  };
1521
1521
  }
1522
- function Fr(e) {
1522
+ function Ir(e) {
1523
1523
  return Array.from(e.getClientRects());
1524
1524
  }
1525
- function Gt(e) {
1526
- return se(K(e)).left + je(e).scrollLeft;
1525
+ function Vt(e) {
1526
+ return oe(K(e)).left + He(e).scrollLeft;
1527
1527
  }
1528
1528
  function kr(e) {
1529
- const t = K(e), n = je(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);
1530
- let s = -n.scrollLeft + Gt(e);
1529
+ const t = K(e), n = He(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);
1530
+ let s = -n.scrollLeft + Vt(e);
1531
1531
  const a = -n.scrollTop;
1532
1532
  return U(o).direction === "rtl" && (s += B(t.clientWidth, o.clientWidth) - i), {
1533
1533
  width: i,
@@ -1536,12 +1536,12 @@ function kr(e) {
1536
1536
  y: a
1537
1537
  };
1538
1538
  }
1539
- function Hr(e, t) {
1539
+ function Fr(e, t) {
1540
1540
  const n = z(e), o = K(e), i = n.visualViewport;
1541
1541
  let r = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
1542
1542
  if (i) {
1543
1543
  r = i.width, s = i.height;
1544
- const l = nt();
1544
+ const l = tt();
1545
1545
  (!l || l && t === "fixed") && (a = i.offsetLeft, c = i.offsetTop);
1546
1546
  }
1547
1547
  return {
@@ -1551,8 +1551,8 @@ function Hr(e, t) {
1551
1551
  y: c
1552
1552
  };
1553
1553
  }
1554
- function Br(e, t) {
1555
- const n = se(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = V(e) ? le(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1554
+ function Hr(e, t) {
1555
+ const n = oe(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = V(e) ? ce(e) : ee(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1556
1556
  return {
1557
1557
  width: s,
1558
1558
  height: a,
@@ -1560,52 +1560,52 @@ function Br(e, t) {
1560
1560
  y: l
1561
1561
  };
1562
1562
  }
1563
- function $t(e, t, n) {
1563
+ function xt(e, t, n) {
1564
1564
  let o;
1565
1565
  if (t === "viewport")
1566
- o = Hr(e, n);
1566
+ o = Fr(e, n);
1567
1567
  else if (t === "document")
1568
1568
  o = kr(K(e));
1569
1569
  else if (q(t))
1570
- o = Br(t, n);
1570
+ o = Hr(t, n);
1571
1571
  else {
1572
- const i = Vt(e);
1572
+ const i = Ut(e);
1573
1573
  o = {
1574
1574
  ...t,
1575
1575
  x: t.x - i.x,
1576
1576
  y: t.y - i.y
1577
1577
  };
1578
1578
  }
1579
- return ke(o);
1579
+ return Ie(o);
1580
1580
  }
1581
- function Xt(e, t) {
1582
- const n = de(e);
1583
- return n === t || !q(n) || Be(n) ? !1 : U(n).position === "fixed" || Xt(n, t);
1581
+ function Gt(e, t) {
1582
+ const n = ue(e);
1583
+ return n === t || !q(n) || Fe(n) ? !1 : U(n).position === "fixed" || Gt(n, t);
1584
1584
  }
1585
- function jr(e, t) {
1585
+ function Br(e, t) {
1586
1586
  const n = t.get(e);
1587
1587
  if (n)
1588
1588
  return n;
1589
- let o = _e(e).filter((a) => q(a) && ne(a) !== "body"), i = null;
1589
+ let o = we(e).filter((a) => q(a) && te(a) !== "body"), i = null;
1590
1590
  const r = U(e).position === "fixed";
1591
- let s = r ? de(e) : e;
1592
- for (; q(s) && !Be(s); ) {
1593
- const a = U(s), c = tt(s);
1594
- !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Oe(s) && !c && Xt(e, s)) ? o = o.filter((u) => u !== s) : i = a, s = de(s);
1591
+ let s = r ? ue(e) : e;
1592
+ for (; q(s) && !Fe(s); ) {
1593
+ const a = U(s), c = et(s);
1594
+ !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Pe(s) && !c && Gt(e, s)) ? o = o.filter((u) => u !== s) : i = a, s = ue(s);
1595
1595
  }
1596
1596
  return t.set(e, o), o;
1597
1597
  }
1598
- function zr(e) {
1598
+ function jr(e) {
1599
1599
  let {
1600
1600
  element: t,
1601
1601
  boundary: n,
1602
1602
  rootBoundary: o,
1603
1603
  strategy: i
1604
1604
  } = e;
1605
- const s = [...n === "clippingAncestors" ? jr(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, u) => {
1606
- const d = $t(t, u, i);
1607
- return l.top = B(d.top, l.top), l.right = ee(d.right, l.right), l.bottom = ee(d.bottom, l.bottom), l.left = B(d.left, l.left), l;
1608
- }, $t(t, a, i));
1605
+ const s = [...n === "clippingAncestors" ? Br(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, u) => {
1606
+ const d = xt(t, u, i);
1607
+ return l.top = B(d.top, l.top), l.right = J(d.right, l.right), l.bottom = J(d.bottom, l.bottom), l.left = B(d.left, l.left), l;
1608
+ }, xt(t, a, i));
1609
1609
  return {
1610
1610
  width: c.right - c.left,
1611
1611
  height: c.bottom - c.top,
@@ -1613,22 +1613,22 @@ function zr(e) {
1613
1613
  y: c.top
1614
1614
  };
1615
1615
  }
1616
- function Wr(e) {
1617
- return Ut(e);
1616
+ function zr(e) {
1617
+ return Wt(e);
1618
1618
  }
1619
- function Ur(e, t, n) {
1620
- const o = V(t), i = K(t), r = n === "fixed", s = se(e, !0, r, t);
1619
+ function Wr(e, t, n) {
1620
+ const o = V(t), i = K(t), r = n === "fixed", s = oe(e, !0, r, t);
1621
1621
  let a = {
1622
1622
  scrollLeft: 0,
1623
1623
  scrollTop: 0
1624
1624
  };
1625
- const c = te(0);
1625
+ const c = ee(0);
1626
1626
  if (o || !o && !r)
1627
- if ((ne(t) !== "body" || Oe(i)) && (a = je(t)), o) {
1628
- const l = se(t, !0, r, t);
1627
+ if ((te(t) !== "body" || Pe(i)) && (a = He(t)), o) {
1628
+ const l = oe(t, !0, r, t);
1629
1629
  c.x = l.x + t.clientLeft, c.y = l.y + t.clientTop;
1630
1630
  } else
1631
- i && (c.x = Gt(i));
1631
+ i && (c.x = Vt(i));
1632
1632
  return {
1633
1633
  x: s.left + a.scrollLeft - c.x,
1634
1634
  y: s.top + a.scrollTop - c.y,
@@ -1636,27 +1636,27 @@ function Ur(e, t, n) {
1636
1636
  height: s.height
1637
1637
  };
1638
1638
  }
1639
- function wt(e, t) {
1639
+ function $t(e, t) {
1640
1640
  return !V(e) || U(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1641
1641
  }
1642
- function Yt(e, t) {
1642
+ function Xt(e, t) {
1643
1643
  const n = z(e);
1644
1644
  if (!V(e))
1645
1645
  return n;
1646
- let o = wt(e, t);
1647
- for (; o && Dr(o) && U(o).position === "static"; )
1648
- o = wt(o, t);
1649
- return o && (ne(o) === "html" || ne(o) === "body" && U(o).position === "static" && !tt(o)) ? n : o || Nr(e) || n;
1646
+ let o = $t(e, t);
1647
+ for (; o && Sr(o) && U(o).position === "static"; )
1648
+ o = $t(o, t);
1649
+ return o && (te(o) === "html" || te(o) === "body" && U(o).position === "static" && !et(o)) ? n : o || Dr(e) || n;
1650
1650
  }
1651
- const Vr = async function(e) {
1651
+ const Ur = async function(e) {
1652
1652
  let {
1653
1653
  reference: t,
1654
1654
  floating: n,
1655
1655
  strategy: o
1656
1656
  } = e;
1657
- const i = this.getOffsetParent || Yt, r = this.getDimensions;
1657
+ const i = this.getOffsetParent || Xt, r = this.getDimensions;
1658
1658
  return {
1659
- reference: Ur(t, await i(n), o),
1659
+ reference: Wr(t, await i(n), o),
1660
1660
  floating: {
1661
1661
  x: 0,
1662
1662
  y: 0,
@@ -1664,22 +1664,22 @@ const Vr = async function(e) {
1664
1664
  }
1665
1665
  };
1666
1666
  };
1667
- function Gr(e) {
1667
+ function Vr(e) {
1668
1668
  return U(e).direction === "rtl";
1669
1669
  }
1670
- const Xr = {
1671
- convertOffsetParentRelativeRectToViewportRelativeRect: Ir,
1670
+ const Gr = {
1671
+ convertOffsetParentRelativeRectToViewportRelativeRect: Mr,
1672
1672
  getDocumentElement: K,
1673
- getClippingRect: zr,
1674
- getOffsetParent: Yt,
1675
- getElementRects: Vr,
1676
- getClientRects: Fr,
1677
- getDimensions: Wr,
1678
- getScale: le,
1673
+ getClippingRect: jr,
1674
+ getOffsetParent: Xt,
1675
+ getElementRects: Ur,
1676
+ getClientRects: Ir,
1677
+ getDimensions: zr,
1678
+ getScale: ce,
1679
1679
  isElement: q,
1680
- isRTL: Gr
1680
+ isRTL: Vr
1681
1681
  };
1682
- function Yr(e, t) {
1682
+ function Xr(e, t) {
1683
1683
  let n = null, o;
1684
1684
  const i = K(e);
1685
1685
  function r() {
@@ -1695,9 +1695,9 @@ function Yr(e, t) {
1695
1695
  } = e.getBoundingClientRect();
1696
1696
  if (a || t(), !d || !p)
1697
1697
  return;
1698
- const f = Se(u), h = Se(i.clientWidth - (l + d)), m = Se(i.clientHeight - (u + p)), g = Se(l), y = {
1699
- rootMargin: -f + "px " + -h + "px " + -m + "px " + -g + "px",
1700
- threshold: B(0, ee(1, c)) || 1
1698
+ const f = Re(u), h = Re(i.clientWidth - (l + d)), g = Re(i.clientHeight - (u + p)), m = Re(l), y = {
1699
+ rootMargin: -f + "px " + -h + "px " + -g + "px " + -m + "px",
1700
+ threshold: B(0, J(1, c)) || 1
1701
1701
  };
1702
1702
  let x = !0;
1703
1703
  function $(b) {
@@ -1724,7 +1724,7 @@ function Yr(e, t) {
1724
1724
  }
1725
1725
  return s(!0), r;
1726
1726
  }
1727
- function qr(e, t, n, o) {
1727
+ function Yr(e, t, n, o) {
1728
1728
  o === void 0 && (o = {});
1729
1729
  const {
1730
1730
  ancestorScroll: i = !0,
@@ -1732,13 +1732,13 @@ function qr(e, t, n, o) {
1732
1732
  elementResize: s = typeof ResizeObserver == "function",
1733
1733
  layoutShift: a = typeof IntersectionObserver == "function",
1734
1734
  animationFrame: c = !1
1735
- } = o, l = rt(e), u = i || r ? [...l ? _e(l) : [], ..._e(t)] : [];
1735
+ } = o, l = nt(e), u = i || r ? [...l ? we(l) : [], ...we(t)] : [];
1736
1736
  u.forEach((v) => {
1737
1737
  i && v.addEventListener("scroll", n, {
1738
1738
  passive: !0
1739
1739
  }), r && v.addEventListener("resize", n);
1740
1740
  });
1741
- const d = l && a ? Yr(l, n) : null;
1741
+ const d = l && a ? Xr(l, n) : null;
1742
1742
  let p = -1, f = null;
1743
1743
  s && (f = new ResizeObserver((v) => {
1744
1744
  let [y] = v;
@@ -1746,11 +1746,11 @@ function qr(e, t, n, o) {
1746
1746
  f && f.observe(t);
1747
1747
  })), n();
1748
1748
  }), l && !c && f.observe(l), f.observe(t));
1749
- let h, m = c ? se(e) : null;
1750
- c && g();
1751
- function g() {
1752
- const v = se(e);
1753
- m && (v.x !== m.x || v.y !== m.y || v.width !== m.width || v.height !== m.height) && n(), m = v, h = requestAnimationFrame(g);
1749
+ let h, g = c ? oe(e) : null;
1750
+ c && m();
1751
+ function m() {
1752
+ const v = oe(e);
1753
+ g && (v.x !== g.x || v.y !== g.y || v.width !== g.width || v.height !== g.height) && n(), g = v, h = requestAnimationFrame(m);
1754
1754
  }
1755
1755
  return n(), () => {
1756
1756
  u.forEach((v) => {
@@ -1758,19 +1758,19 @@ function qr(e, t, n, o) {
1758
1758
  }), d && d(), f && f.disconnect(), f = null, c && cancelAnimationFrame(h);
1759
1759
  };
1760
1760
  }
1761
- const Kr = (e, t, n) => {
1761
+ const qr = (e, t, n) => {
1762
1762
  const o = /* @__PURE__ */ new Map(), i = {
1763
- platform: Xr,
1763
+ platform: Gr,
1764
1764
  ...n
1765
1765
  }, r = {
1766
1766
  ...i.platform,
1767
1767
  _c: o
1768
1768
  };
1769
- return Pr(e, t, {
1769
+ return _r(e, t, {
1770
1770
  ...i,
1771
1771
  platform: r
1772
1772
  });
1773
- }, Zr = (e) => {
1773
+ }, Kr = (e) => {
1774
1774
  function t(n) {
1775
1775
  return {}.hasOwnProperty.call(n, "current");
1776
1776
  }
@@ -1782,18 +1782,18 @@ const Kr = (e, t, n) => {
1782
1782
  element: o,
1783
1783
  padding: i
1784
1784
  } = typeof e == "function" ? e(n) : e;
1785
- return o && t(o) ? o.current != null ? vt({
1785
+ return o && t(o) ? o.current != null ? mt({
1786
1786
  element: o.current,
1787
1787
  padding: i
1788
- }).fn(n) : {} : o ? vt({
1788
+ }).fn(n) : {} : o ? mt({
1789
1789
  element: o,
1790
1790
  padding: i
1791
1791
  }).fn(n) : {};
1792
1792
  }
1793
1793
  };
1794
1794
  };
1795
- var Le = typeof document < "u" ? Ct : R;
1796
- function He(e, t) {
1795
+ var De = typeof document < "u" ? At : R;
1796
+ function ke(e, t) {
1797
1797
  if (e === t)
1798
1798
  return !0;
1799
1799
  if (typeof e != typeof t)
@@ -1806,7 +1806,7 @@ function He(e, t) {
1806
1806
  if (n = e.length, n != t.length)
1807
1807
  return !1;
1808
1808
  for (o = n; o-- !== 0; )
1809
- if (!He(e[o], t[o]))
1809
+ if (!ke(e[o], t[o]))
1810
1810
  return !1;
1811
1811
  return !0;
1812
1812
  }
@@ -1817,27 +1817,27 @@ function He(e, t) {
1817
1817
  return !1;
1818
1818
  for (o = n; o-- !== 0; ) {
1819
1819
  const r = i[o];
1820
- if (!(r === "_owner" && e.$$typeof) && !He(e[r], t[r]))
1820
+ if (!(r === "_owner" && e.$$typeof) && !ke(e[r], t[r]))
1821
1821
  return !1;
1822
1822
  }
1823
1823
  return !0;
1824
1824
  }
1825
1825
  return e !== e && t !== t;
1826
1826
  }
1827
- function qt(e) {
1827
+ function Yt(e) {
1828
1828
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1829
1829
  }
1830
- function _t(e, t) {
1831
- const n = qt(e);
1830
+ function wt(e, t) {
1831
+ const n = Yt(e);
1832
1832
  return Math.round(t * n) / n;
1833
1833
  }
1834
- function Pt(e) {
1834
+ function _t(e) {
1835
1835
  const t = N.useRef(e);
1836
- return Le(() => {
1836
+ return De(() => {
1837
1837
  t.current = e;
1838
1838
  }), t;
1839
1839
  }
1840
- function Qr(e) {
1840
+ function Zr(e) {
1841
1841
  e === void 0 && (e = {});
1842
1842
  const {
1843
1843
  placement: t = "bottom",
@@ -1859,12 +1859,12 @@ function Qr(e) {
1859
1859
  middlewareData: {},
1860
1860
  isPositioned: !1
1861
1861
  }), [p, f] = N.useState(o);
1862
- He(p, o) || f(o);
1863
- const [h, m] = N.useState(null), [g, v] = N.useState(null), y = N.useCallback((O) => {
1864
- O != w.current && (w.current = O, m(O));
1865
- }, [m]), x = N.useCallback((O) => {
1862
+ ke(p, o) || f(o);
1863
+ const [h, g] = N.useState(null), [m, v] = N.useState(null), y = N.useCallback((O) => {
1864
+ O != w.current && (w.current = O, g(O));
1865
+ }, [g]), x = N.useCallback((O) => {
1866
1866
  O !== A.current && (A.current = O, v(O));
1867
- }, [v]), $ = r || h, b = s || g, w = N.useRef(null), A = N.useRef(null), P = N.useRef(u), T = Pt(c), F = Pt(i), E = N.useCallback(() => {
1867
+ }, [v]), $ = r || h, b = s || m, w = N.useRef(null), A = N.useRef(null), P = N.useRef(u), T = _t(c), k = _t(i), E = N.useCallback(() => {
1868
1868
  if (!w.current || !A.current)
1869
1869
  return;
1870
1870
  const O = {
@@ -1872,26 +1872,26 @@ function Qr(e) {
1872
1872
  strategy: n,
1873
1873
  middleware: p
1874
1874
  };
1875
- F.current && (O.platform = F.current), Kr(w.current, A.current, O).then((Z) => {
1875
+ k.current && (O.platform = k.current), qr(w.current, A.current, O).then((Z) => {
1876
1876
  const Q = {
1877
1877
  ...Z,
1878
1878
  isPositioned: !0
1879
1879
  };
1880
- H.current && !He(P.current, Q) && (P.current = Q, $n.flushSync(() => {
1880
+ H.current && !ke(P.current, Q) && (P.current = Q, xn.flushSync(() => {
1881
1881
  d(Q);
1882
1882
  }));
1883
1883
  });
1884
- }, [p, t, n, F]);
1885
- Le(() => {
1884
+ }, [p, t, n, k]);
1885
+ De(() => {
1886
1886
  l === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((O) => ({
1887
1887
  ...O,
1888
1888
  isPositioned: !1
1889
1889
  })));
1890
1890
  }, [l]);
1891
1891
  const H = N.useRef(!1);
1892
- Le(() => (H.current = !0, () => {
1892
+ De(() => (H.current = !0, () => {
1893
1893
  H.current = !1;
1894
- }), []), Le(() => {
1894
+ }), []), De(() => {
1895
1895
  if ($ && (w.current = $), b && (A.current = b), $ && b) {
1896
1896
  if (T.current)
1897
1897
  return T.current($, b, E);
@@ -1914,11 +1914,11 @@ function Qr(e) {
1914
1914
  };
1915
1915
  if (!C.floating)
1916
1916
  return O;
1917
- const Z = _t(C.floating, u.x), Q = _t(C.floating, u.y);
1917
+ const Z = wt(C.floating, u.x), Q = wt(C.floating, u.y);
1918
1918
  return a ? {
1919
1919
  ...O,
1920
1920
  transform: "translate(" + Z + "px, " + Q + "px)",
1921
- ...qt(C.floating) >= 1.5 && {
1921
+ ...Yt(C.floating) >= 1.5 && {
1922
1922
  willChange: "transform"
1923
1923
  }
1924
1924
  } : {
@@ -1935,9 +1935,9 @@ function Qr(e) {
1935
1935
  floatingStyles: W
1936
1936
  }), [u, E, D, C, W]);
1937
1937
  }
1938
- const Jr = /* @__PURE__ */ M((e, t) => {
1938
+ const Qr = /* @__PURE__ */ M((e, t) => {
1939
1939
  const { children: n, width: o = 10, height: i = 5, ...r } = e;
1940
- return /* @__PURE__ */ _(ae.svg, S({}, r, {
1940
+ return /* @__PURE__ */ _(ie.svg, S({}, r, {
1941
1941
  ref: t,
1942
1942
  width: o,
1943
1943
  height: i,
@@ -1946,10 +1946,10 @@ const Jr = /* @__PURE__ */ M((e, t) => {
1946
1946
  }), e.asChild ? n : /* @__PURE__ */ _("polygon", {
1947
1947
  points: "0,0 30,0 15,10"
1948
1948
  }));
1949
- }), eo = Jr;
1950
- function to(e) {
1949
+ }), Jr = Qr;
1950
+ function eo(e) {
1951
1951
  const [t, n] = j(void 0);
1952
- return ue(() => {
1952
+ return le(() => {
1953
1953
  if (e) {
1954
1954
  n({
1955
1955
  width: e.offsetWidth,
@@ -1979,137 +1979,137 @@ function to(e) {
1979
1979
  e
1980
1980
  ]), t;
1981
1981
  }
1982
- const Kt = "Popper", [Zt, Qt] = Ft(Kt), [no, Jt] = Zt(Kt), ro = (e) => {
1982
+ const qt = "Popper", [Kt, Zt] = It(qt), [to, Qt] = Kt(qt), no = (e) => {
1983
1983
  const { __scopePopper: t, children: n } = e, [o, i] = j(null);
1984
- return /* @__PURE__ */ _(no, {
1984
+ return /* @__PURE__ */ _(to, {
1985
1985
  scope: t,
1986
1986
  anchor: o,
1987
1987
  onAnchorChange: i
1988
1988
  }, n);
1989
- }, oo = "PopperAnchor", io = /* @__PURE__ */ M((e, t) => {
1990
- const { __scopePopper: n, virtualRef: o, ...i } = e, r = Jt(oo, n), s = L(null), a = fe(t, s);
1989
+ }, ro = "PopperAnchor", oo = /* @__PURE__ */ M((e, t) => {
1990
+ const { __scopePopper: n, virtualRef: o, ...i } = e, r = Qt(ro, n), s = L(null), a = de(t, s);
1991
1991
  return R(() => {
1992
1992
  r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
1993
- }), o ? null : /* @__PURE__ */ _(ae.div, S({}, i, {
1993
+ }), o ? null : /* @__PURE__ */ _(ie.div, S({}, i, {
1994
1994
  ref: a
1995
1995
  }));
1996
- }), en = "PopperContent", [so, ao] = Zt(en), co = /* @__PURE__ */ M((e, t) => {
1996
+ }), Jt = "PopperContent", [io, so] = Kt(Jt), ao = /* @__PURE__ */ M((e, t) => {
1997
1997
  var n, o, i, r, s, a, c, l;
1998
- const { __scopePopper: u, side: d = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: w, ...A } = e, P = Jt(en, u), [T, F] = j(null), E = fe(
1998
+ const { __scopePopper: u, side: d = "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, ...A } = e, P = Qt(Jt, u), [T, k] = j(null), E = de(
1999
1999
  t,
2000
- (ge) => F(ge)
2001
- ), [H, D] = j(null), C = to(H), W = (n = C == null ? void 0 : C.width) !== null && n !== void 0 ? n : 0, O = (o = C == null ? void 0 : C.height) !== null && o !== void 0 ? o : 0, Z = d + (f !== "center" ? "-" + f : ""), Q = typeof y == "number" ? y : {
2000
+ (ge) => k(ge)
2001
+ ), [H, D] = j(null), C = eo(H), W = (n = C == null ? void 0 : C.width) !== null && n !== void 0 ? n : 0, O = (o = C == null ? void 0 : C.height) !== null && o !== void 0 ? o : 0, Z = d + (f !== "center" ? "-" + f : ""), Q = typeof y == "number" ? y : {
2002
2002
  top: 0,
2003
2003
  right: 0,
2004
2004
  bottom: 0,
2005
2005
  left: 0,
2006
2006
  ...y
2007
- }, at = Array.isArray(v) ? v : [
2007
+ }, st = Array.isArray(v) ? v : [
2008
2008
  v
2009
- ], sn = at.length > 0, Ce = {
2009
+ ], on = st.length > 0, Ae = {
2010
2010
  padding: Q,
2011
- boundary: at.filter(po),
2011
+ boundary: st.filter(fo),
2012
2012
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2013
- altBoundary: sn
2014
- }, { refs: an, floatingStyles: ct, placement: cn, isPositioned: Ee, middlewareData: ce } = Qr({
2013
+ altBoundary: on
2014
+ }, { refs: sn, floatingStyles: at, placement: an, isPositioned: Ce, middlewareData: se } = Zr({
2015
2015
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2016
2016
  strategy: "fixed",
2017
2017
  placement: Z,
2018
- whileElementsMounted: (...ge) => qr(...ge, {
2018
+ whileElementsMounted: (...ge) => Yr(...ge, {
2019
2019
  animationFrame: b === "always"
2020
2020
  }),
2021
2021
  elements: {
2022
2022
  reference: P.anchor
2023
2023
  },
2024
2024
  middleware: [
2025
- Er({
2025
+ Cr({
2026
2026
  mainAxis: p + O,
2027
2027
  alignmentAxis: h
2028
2028
  }),
2029
- g && Tr({
2029
+ m && Er({
2030
2030
  mainAxis: !0,
2031
2031
  crossAxis: !1,
2032
- limiter: x === "partial" ? Rr() : void 0,
2033
- ...Ce
2032
+ limiter: x === "partial" ? Tr() : void 0,
2033
+ ...Ae
2034
2034
  }),
2035
- g && Or({
2036
- ...Ce
2035
+ m && Pr({
2036
+ ...Ae
2037
2037
  }),
2038
- Sr({
2039
- ...Ce,
2040
- apply: ({ elements: ge, rects: ut, availableWidth: mn, availableHeight: gn }) => {
2041
- const { width: vn, height: yn } = ut.reference, Re = ge.floating.style;
2042
- Re.setProperty("--radix-popper-available-width", `${mn}px`), Re.setProperty("--radix-popper-available-height", `${gn}px`), Re.setProperty("--radix-popper-anchor-width", `${vn}px`), Re.setProperty("--radix-popper-anchor-height", `${yn}px`);
2038
+ Rr({
2039
+ ...Ae,
2040
+ apply: ({ elements: ge, rects: lt, availableWidth: hn, availableHeight: gn }) => {
2041
+ const { width: mn, height: vn } = lt.reference, Te = ge.floating.style;
2042
+ Te.setProperty("--radix-popper-available-width", `${hn}px`), Te.setProperty("--radix-popper-available-height", `${gn}px`), Te.setProperty("--radix-popper-anchor-width", `${mn}px`), Te.setProperty("--radix-popper-anchor-height", `${vn}px`);
2043
2043
  }
2044
2044
  }),
2045
- H && Zr({
2045
+ H && Kr({
2046
2046
  element: H,
2047
- padding: m
2047
+ padding: g
2048
2048
  }),
2049
- ho({
2049
+ po({
2050
2050
  arrowWidth: W,
2051
2051
  arrowHeight: O
2052
2052
  }),
2053
- $ && Ar({
2053
+ $ && Or({
2054
2054
  strategy: "referenceHidden",
2055
- ...Ce
2055
+ ...Ae
2056
2056
  })
2057
2057
  ]
2058
- }), [lt, ln] = tn(cn), Te = pe(w);
2059
- ue(() => {
2060
- Ee && (Te == null || Te());
2058
+ }), [ct, cn] = en(an), Ee = fe(w);
2059
+ le(() => {
2060
+ Ce && (Ee == null || Ee());
2061
2061
  }, [
2062
- Ee,
2063
- Te
2062
+ Ce,
2063
+ Ee
2064
2064
  ]);
2065
- const un = (i = ce.arrow) === null || i === void 0 ? void 0 : i.x, dn = (r = ce.arrow) === null || r === void 0 ? void 0 : r.y, fn = ((s = ce.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [pn, hn] = j();
2066
- return ue(() => {
2067
- T && hn(window.getComputedStyle(T).zIndex);
2065
+ const ln = (i = se.arrow) === null || i === void 0 ? void 0 : i.x, un = (r = se.arrow) === null || r === void 0 ? void 0 : r.y, dn = ((s = se.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [fn, pn] = j();
2066
+ return le(() => {
2067
+ T && pn(window.getComputedStyle(T).zIndex);
2068
2068
  }, [
2069
2069
  T
2070
2070
  ]), /* @__PURE__ */ _("div", {
2071
- ref: an.setFloating,
2071
+ ref: sn.setFloating,
2072
2072
  "data-radix-popper-content-wrapper": "",
2073
2073
  style: {
2074
- ...ct,
2075
- transform: Ee ? ct.transform : "translate(0, -200%)",
2074
+ ...at,
2075
+ transform: Ce ? at.transform : "translate(0, -200%)",
2076
2076
  // keep off the page when measuring
2077
2077
  minWidth: "max-content",
2078
- zIndex: pn,
2078
+ zIndex: fn,
2079
2079
  "--radix-popper-transform-origin": [
2080
- (a = ce.transformOrigin) === null || a === void 0 ? void 0 : a.x,
2081
- (c = ce.transformOrigin) === null || c === void 0 ? void 0 : c.y
2080
+ (a = se.transformOrigin) === null || a === void 0 ? void 0 : a.x,
2081
+ (c = se.transformOrigin) === null || c === void 0 ? void 0 : c.y
2082
2082
  ].join(" ")
2083
2083
  },
2084
2084
  dir: e.dir
2085
- }, /* @__PURE__ */ _(so, {
2085
+ }, /* @__PURE__ */ _(io, {
2086
2086
  scope: u,
2087
- placedSide: lt,
2087
+ placedSide: ct,
2088
2088
  onArrowChange: D,
2089
- arrowX: un,
2090
- arrowY: dn,
2091
- shouldHideArrow: fn
2092
- }, /* @__PURE__ */ _(ae.div, S({
2093
- "data-side": lt,
2094
- "data-align": ln
2089
+ arrowX: ln,
2090
+ arrowY: un,
2091
+ shouldHideArrow: dn
2092
+ }, /* @__PURE__ */ _(ie.div, S({
2093
+ "data-side": ct,
2094
+ "data-align": cn
2095
2095
  }, A, {
2096
2096
  ref: E,
2097
2097
  style: {
2098
2098
  ...A.style,
2099
2099
  // if the PopperContent hasn't been placed yet (not all measurements done)
2100
2100
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
2101
- animation: Ee ? void 0 : "none",
2101
+ animation: Ce ? void 0 : "none",
2102
2102
  // hide the content if using the hide middleware and should be hidden
2103
- opacity: (l = ce.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
2103
+ opacity: (l = se.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
2104
2104
  }
2105
2105
  }))));
2106
- }), lo = "PopperArrow", uo = {
2106
+ }), co = "PopperArrow", lo = {
2107
2107
  top: "bottom",
2108
2108
  right: "left",
2109
2109
  bottom: "top",
2110
2110
  left: "right"
2111
- }, fo = /* @__PURE__ */ M(function(t, n) {
2112
- const { __scopePopper: o, ...i } = t, r = ao(lo, o), s = uo[r.placedSide];
2111
+ }, uo = /* @__PURE__ */ M(function(t, n) {
2112
+ const { __scopePopper: o, ...i } = t, r = so(co, o), s = lo[r.placedSide];
2113
2113
  return (
2114
2114
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2115
2115
  // doesn't report size as we'd expect on SVG elements.
@@ -2135,7 +2135,7 @@ const Kt = "Popper", [Zt, Qt] = Ft(Kt), [no, Jt] = Zt(Kt), ro = (e) => {
2135
2135
  }[r.placedSide],
2136
2136
  visibility: r.shouldHideArrow ? "hidden" : void 0
2137
2137
  }
2138
- }, /* @__PURE__ */ _(eo, S({}, i, {
2138
+ }, /* @__PURE__ */ _(Jr, S({}, i, {
2139
2139
  ref: n,
2140
2140
  style: {
2141
2141
  ...i.style,
@@ -2145,21 +2145,21 @@ const Kt = "Popper", [Zt, Qt] = Ft(Kt), [no, Jt] = Zt(Kt), ro = (e) => {
2145
2145
  })))
2146
2146
  );
2147
2147
  });
2148
- function po(e) {
2148
+ function fo(e) {
2149
2149
  return e !== null;
2150
2150
  }
2151
- const ho = (e) => ({
2151
+ const po = (e) => ({
2152
2152
  name: "transformOrigin",
2153
2153
  options: e,
2154
2154
  fn(t) {
2155
2155
  var n, o, i, r, s;
2156
- const { placement: a, rects: c, middlewareData: l } = t, d = ((n = l.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, p = d ? 0 : e.arrowWidth, f = d ? 0 : e.arrowHeight, [h, m] = tn(a), g = {
2156
+ const { placement: a, rects: c, middlewareData: l } = t, d = ((n = l.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, p = d ? 0 : e.arrowWidth, f = d ? 0 : e.arrowHeight, [h, g] = en(a), m = {
2157
2157
  start: "0%",
2158
2158
  center: "50%",
2159
2159
  end: "100%"
2160
- }[m], v = ((o = (i = l.arrow) === null || i === void 0 ? void 0 : i.x) !== null && o !== void 0 ? o : 0) + p / 2, y = ((r = (s = l.arrow) === null || s === void 0 ? void 0 : s.y) !== null && r !== void 0 ? r : 0) + f / 2;
2160
+ }[g], v = ((o = (i = l.arrow) === null || i === void 0 ? void 0 : i.x) !== null && o !== void 0 ? o : 0) + p / 2, y = ((r = (s = l.arrow) === null || s === void 0 ? void 0 : s.y) !== null && r !== void 0 ? r : 0) + f / 2;
2161
2161
  let x = "", $ = "";
2162
- return h === "bottom" ? (x = d ? g : `${v}px`, $ = `${-f}px`) : h === "top" ? (x = d ? g : `${v}px`, $ = `${c.floating.height + f}px`) : h === "right" ? (x = `${-f}px`, $ = d ? g : `${y}px`) : h === "left" && (x = `${c.floating.width + f}px`, $ = d ? g : `${y}px`), {
2162
+ return h === "bottom" ? (x = d ? m : `${v}px`, $ = `${-f}px`) : h === "top" ? (x = d ? m : `${v}px`, $ = `${c.floating.height + f}px`) : h === "right" ? (x = `${-f}px`, $ = d ? m : `${y}px`) : h === "left" && (x = `${c.floating.width + f}px`, $ = d ? m : `${y}px`), {
2163
2163
  data: {
2164
2164
  x,
2165
2165
  y: $
@@ -2167,37 +2167,37 @@ const ho = (e) => ({
2167
2167
  };
2168
2168
  }
2169
2169
  });
2170
- function tn(e) {
2170
+ function en(e) {
2171
2171
  const [t, n = "center"] = e.split("-");
2172
2172
  return [
2173
2173
  t,
2174
2174
  n
2175
2175
  ];
2176
2176
  }
2177
- const mo = ro, go = io, vo = co, yo = fo, bo = /* @__PURE__ */ M((e, t) => {
2177
+ const ho = no, go = oo, mo = ao, vo = uo, yo = /* @__PURE__ */ M((e, t) => {
2178
2178
  var n;
2179
2179
  const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = e;
2180
- return o ? /* @__PURE__ */ wn.createPortal(/* @__PURE__ */ _(ae.div, S({}, i, {
2180
+ return o ? /* @__PURE__ */ $n.createPortal(/* @__PURE__ */ _(ie.div, S({}, i, {
2181
2181
  ref: t
2182
2182
  })), o) : null;
2183
2183
  });
2184
- function xo(e, t) {
2185
- return xn((n, o) => {
2184
+ function bo(e, t) {
2185
+ return bn((n, o) => {
2186
2186
  const i = t[n][o];
2187
2187
  return i ?? n;
2188
2188
  }, e);
2189
2189
  }
2190
- const ot = (e) => {
2191
- const { present: t, children: n } = e, o = $o(t), i = typeof n == "function" ? n({
2190
+ const rt = (e) => {
2191
+ const { present: t, children: n } = e, o = xo(t), i = typeof n == "function" ? n({
2192
2192
  present: o.isPresent
2193
- }) : ie.only(n), r = fe(o.ref, i.ref);
2194
- return typeof n == "function" || o.isPresent ? /* @__PURE__ */ Ze(i, {
2193
+ }) : re.only(n), r = de(o.ref, i.ref);
2194
+ return typeof n == "function" || o.isPresent ? /* @__PURE__ */ Ke(i, {
2195
2195
  ref: r
2196
2196
  }) : null;
2197
2197
  };
2198
- ot.displayName = "Presence";
2199
- function $o(e) {
2200
- const [t, n] = j(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = xo(s, {
2198
+ rt.displayName = "Presence";
2199
+ function xo(e) {
2200
+ const [t, n] = j(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = bo(s, {
2201
2201
  mounted: {
2202
2202
  UNMOUNT: "unmounted",
2203
2203
  ANIMATION_OUT: "unmountSuspended"
@@ -2211,28 +2211,28 @@ function $o(e) {
2211
2211
  }
2212
2212
  });
2213
2213
  return R(() => {
2214
- const l = De(o.current);
2214
+ const l = Se(o.current);
2215
2215
  r.current = a === "mounted" ? l : "none";
2216
2216
  }, [
2217
2217
  a
2218
- ]), ue(() => {
2218
+ ]), le(() => {
2219
2219
  const l = o.current, u = i.current;
2220
2220
  if (u !== e) {
2221
- const p = r.current, f = De(l);
2221
+ const p = r.current, f = Se(l);
2222
2222
  e ? c("MOUNT") : f === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(u && p !== f ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
2223
2223
  }
2224
2224
  }, [
2225
2225
  e,
2226
2226
  c
2227
- ]), ue(() => {
2227
+ ]), le(() => {
2228
2228
  if (t) {
2229
2229
  const l = (d) => {
2230
- const f = De(o.current).includes(d.animationName);
2231
- d.target === t && f && Et(
2230
+ const f = Se(o.current).includes(d.animationName);
2231
+ d.target === t && f && Ct(
2232
2232
  () => c("ANIMATION_END")
2233
2233
  );
2234
2234
  }, u = (d) => {
2235
- d.target === t && (r.current = De(o.current));
2235
+ d.target === t && (r.current = Se(o.current));
2236
2236
  };
2237
2237
  return t.addEventListener("animationstart", u), t.addEventListener("animationcancel", l), t.addEventListener("animationend", l), () => {
2238
2238
  t.removeEventListener("animationstart", u), t.removeEventListener("animationcancel", l), t.removeEventListener("animationend", l);
@@ -2247,20 +2247,20 @@ function $o(e) {
2247
2247
  "mounted",
2248
2248
  "unmountSuspended"
2249
2249
  ].includes(a),
2250
- ref: k((l) => {
2250
+ ref: F((l) => {
2251
2251
  l && (o.current = getComputedStyle(l)), n(l);
2252
2252
  }, [])
2253
2253
  };
2254
2254
  }
2255
- function De(e) {
2255
+ function Se(e) {
2256
2256
  return (e == null ? void 0 : e.animationName) || "none";
2257
2257
  }
2258
- function wo({ prop: e, defaultProp: t, onChange: n = () => {
2258
+ function $o({ prop: e, defaultProp: t, onChange: n = () => {
2259
2259
  } }) {
2260
- const [o, i] = _o({
2260
+ const [o, i] = wo({
2261
2261
  defaultProp: t,
2262
2262
  onChange: n
2263
- }), r = e !== void 0, s = r ? e : o, a = pe(n), c = k((l) => {
2263
+ }), r = e !== void 0, s = r ? e : o, a = fe(n), c = F((l) => {
2264
2264
  if (r) {
2265
2265
  const d = typeof l == "function" ? l(e) : l;
2266
2266
  d !== e && a(d);
@@ -2277,8 +2277,8 @@ function wo({ prop: e, defaultProp: t, onChange: n = () => {
2277
2277
  c
2278
2278
  ];
2279
2279
  }
2280
- function _o({ defaultProp: e, onChange: t }) {
2281
- const n = j(e), [o] = n, i = L(o), r = pe(t);
2280
+ function wo({ defaultProp: e, onChange: t }) {
2281
+ const n = j(e), [o] = n, i = L(o), r = fe(t);
2282
2282
  return R(() => {
2283
2283
  i.current !== o && (r(o), i.current = o);
2284
2284
  }, [
@@ -2287,7 +2287,7 @@ function _o({ defaultProp: e, onChange: t }) {
2287
2287
  r
2288
2288
  ]), n;
2289
2289
  }
2290
- const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2290
+ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
2291
2291
  ref: t,
2292
2292
  style: {
2293
2293
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -2303,21 +2303,21 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2303
2303
  wordWrap: "normal",
2304
2304
  ...e.style
2305
2305
  }
2306
- }))), Oo = Po, [ze, pi] = Ft("Tooltip", [
2307
- Qt
2308
- ]), We = Qt(), Ao = "TooltipProvider", Co = 700, Ke = "tooltip.open", [Eo, it] = ze(Ao), To = (e) => {
2309
- const { __scopeTooltip: t, delayDuration: n = Co, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = j(!0), c = L(!1), l = L(0);
2306
+ }))), Po = _o, [Be, pi] = It("Tooltip", [
2307
+ Zt
2308
+ ]), je = Zt(), Oo = "TooltipProvider", Ao = 700, qe = "tooltip.open", [Co, ot] = Be(Oo), Eo = (e) => {
2309
+ const { __scopeTooltip: t, delayDuration: n = Ao, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = j(!0), c = L(!1), l = L(0);
2310
2310
  return R(() => {
2311
2311
  const u = l.current;
2312
2312
  return () => window.clearTimeout(u);
2313
- }, []), /* @__PURE__ */ _(Eo, {
2313
+ }, []), /* @__PURE__ */ _(Co, {
2314
2314
  scope: t,
2315
2315
  isOpenDelayed: s,
2316
2316
  delayDuration: n,
2317
- onOpen: k(() => {
2317
+ onOpen: F(() => {
2318
2318
  window.clearTimeout(l.current), a(!1);
2319
2319
  }, []),
2320
- onClose: k(() => {
2320
+ onClose: F(() => {
2321
2321
  window.clearTimeout(l.current), l.current = window.setTimeout(
2322
2322
  () => a(!0),
2323
2323
  o
@@ -2326,51 +2326,51 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2326
2326
  o
2327
2327
  ]),
2328
2328
  isPointerInTransitRef: c,
2329
- onPointerInTransitChange: k((u) => {
2329
+ onPointerInTransitChange: F((u) => {
2330
2330
  c.current = u;
2331
2331
  }, []),
2332
2332
  disableHoverableContent: i
2333
2333
  }, r);
2334
- }, st = "Tooltip", [Ro, Ae] = ze(st), So = (e) => {
2335
- const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = it(st, e.__scopeTooltip), l = We(t), [u, d] = j(null), p = mr(), f = L(0), h = s ?? c.disableHoverableContent, m = a ?? c.delayDuration, g = L(!1), [v = !1, y] = wo({
2334
+ }, it = "Tooltip", [To, Oe] = Be(it), Ro = (e) => {
2335
+ const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = ot(it, e.__scopeTooltip), l = je(t), [u, d] = j(null), p = hr(), f = L(0), h = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, m = L(!1), [v = !1, y] = $o({
2336
2336
  prop: o,
2337
2337
  defaultProp: i,
2338
2338
  onChange: (A) => {
2339
- A ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Ke))) : c.onClose(), r == null || r(A);
2339
+ A ? (c.onOpen(), document.dispatchEvent(new CustomEvent(qe))) : c.onClose(), r == null || r(A);
2340
2340
  }
2341
- }), x = $e(() => v ? g.current ? "delayed-open" : "instant-open" : "closed", [
2341
+ }), x = xe(() => v ? m.current ? "delayed-open" : "instant-open" : "closed", [
2342
2342
  v
2343
- ]), $ = k(() => {
2344
- window.clearTimeout(f.current), g.current = !1, y(!0);
2343
+ ]), $ = F(() => {
2344
+ window.clearTimeout(f.current), m.current = !1, y(!0);
2345
2345
  }, [
2346
2346
  y
2347
- ]), b = k(() => {
2347
+ ]), b = F(() => {
2348
2348
  window.clearTimeout(f.current), y(!1);
2349
2349
  }, [
2350
2350
  y
2351
- ]), w = k(() => {
2351
+ ]), w = F(() => {
2352
2352
  window.clearTimeout(f.current), f.current = window.setTimeout(() => {
2353
- g.current = !0, y(!0);
2354
- }, m);
2353
+ m.current = !0, y(!0);
2354
+ }, g);
2355
2355
  }, [
2356
- m,
2356
+ g,
2357
2357
  y
2358
2358
  ]);
2359
- return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ _(mo, l, /* @__PURE__ */ _(Ro, {
2359
+ return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ _(ho, l, /* @__PURE__ */ _(To, {
2360
2360
  scope: t,
2361
2361
  contentId: p,
2362
2362
  open: v,
2363
2363
  stateAttribute: x,
2364
2364
  trigger: u,
2365
2365
  onTriggerChange: d,
2366
- onTriggerEnter: k(() => {
2366
+ onTriggerEnter: F(() => {
2367
2367
  c.isOpenDelayed ? w() : $();
2368
2368
  }, [
2369
2369
  c.isOpenDelayed,
2370
2370
  w,
2371
2371
  $
2372
2372
  ]),
2373
- onTriggerLeave: k(() => {
2373
+ onTriggerLeave: F(() => {
2374
2374
  h ? b() : window.clearTimeout(f.current);
2375
2375
  }, [
2376
2376
  b,
@@ -2380,8 +2380,8 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2380
2380
  onClose: b,
2381
2381
  disableHoverableContent: h
2382
2382
  }, n));
2383
- }, Ot = "TooltipTrigger", Do = /* @__PURE__ */ M((e, t) => {
2384
- const { __scopeTooltip: n, ...o } = e, i = Ae(Ot, n), r = it(Ot, n), s = We(n), a = L(null), c = fe(t, a, i.onTriggerChange), l = L(!1), u = L(!1), d = k(
2383
+ }, Pt = "TooltipTrigger", So = /* @__PURE__ */ M((e, t) => {
2384
+ const { __scopeTooltip: n, ...o } = e, i = Oe(Pt, n), r = ot(Pt, n), s = je(n), a = L(null), c = de(t, a, i.onTriggerChange), l = L(!1), u = L(!1), d = F(
2385
2385
  () => l.current = !1,
2386
2386
  []
2387
2387
  );
@@ -2389,7 +2389,7 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2389
2389
  d
2390
2390
  ]), /* @__PURE__ */ _(go, S({
2391
2391
  asChild: !0
2392
- }, s), /* @__PURE__ */ _(ae.button, S({
2392
+ }, s), /* @__PURE__ */ _(ie.button, S({
2393
2393
  // We purposefully avoid adding `type=button` here because tooltip triggers are also
2394
2394
  // commonly anchors and the anchor `type` attribute signifies MIME type.
2395
2395
  "aria-describedby": i.open ? i.contentId : void 0,
@@ -2413,42 +2413,42 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2413
2413
  onBlur: G(e.onBlur, i.onClose),
2414
2414
  onClick: G(e.onClick, i.onClose)
2415
2415
  })));
2416
- }), nn = "TooltipPortal", [No, Lo] = ze(nn, {
2416
+ }), tn = "TooltipPortal", [Do, No] = Be(tn, {
2417
2417
  forceMount: void 0
2418
- }), Mo = (e) => {
2419
- const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Ae(nn, t);
2420
- return /* @__PURE__ */ _(No, {
2418
+ }), Lo = (e) => {
2419
+ const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Oe(tn, t);
2420
+ return /* @__PURE__ */ _(Do, {
2421
2421
  scope: t,
2422
2422
  forceMount: n
2423
- }, /* @__PURE__ */ _(ot, {
2423
+ }, /* @__PURE__ */ _(rt, {
2424
2424
  present: n || r.open
2425
- }, /* @__PURE__ */ _(bo, {
2425
+ }, /* @__PURE__ */ _(yo, {
2426
2426
  asChild: !0,
2427
2427
  container: i
2428
2428
  }, o)));
2429
- }, Pe = "TooltipContent", Io = /* @__PURE__ */ M((e, t) => {
2430
- const n = Lo(Pe, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Ae(Pe, e.__scopeTooltip);
2431
- return /* @__PURE__ */ _(ot, {
2429
+ }, _e = "TooltipContent", Mo = /* @__PURE__ */ M((e, t) => {
2430
+ const n = No(_e, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Oe(_e, e.__scopeTooltip);
2431
+ return /* @__PURE__ */ _(rt, {
2432
2432
  present: o || s.open
2433
- }, s.disableHoverableContent ? /* @__PURE__ */ _(rn, S({
2433
+ }, s.disableHoverableContent ? /* @__PURE__ */ _(nn, S({
2434
2434
  side: i
2435
2435
  }, r, {
2436
2436
  ref: t
2437
- })) : /* @__PURE__ */ _(Fo, S({
2437
+ })) : /* @__PURE__ */ _(Io, S({
2438
2438
  side: i
2439
2439
  }, r, {
2440
2440
  ref: t
2441
2441
  })));
2442
- }), Fo = /* @__PURE__ */ M((e, t) => {
2443
- const n = Ae(Pe, e.__scopeTooltip), o = it(Pe, e.__scopeTooltip), i = L(null), r = fe(t, i), [s, a] = j(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = o, p = k(() => {
2442
+ }), Io = /* @__PURE__ */ M((e, t) => {
2443
+ const n = Oe(_e, e.__scopeTooltip), o = ot(_e, e.__scopeTooltip), i = L(null), r = de(t, i), [s, a] = j(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = o, p = F(() => {
2444
2444
  a(null), d(!1);
2445
2445
  }, [
2446
2446
  d
2447
- ]), f = k((h, m) => {
2448
- const g = h.currentTarget, v = {
2447
+ ]), f = F((h, g) => {
2448
+ const m = h.currentTarget, v = {
2449
2449
  x: h.clientX,
2450
2450
  y: h.clientY
2451
- }, y = zo(v, g.getBoundingClientRect()), x = Wo(v, y), $ = Uo(m.getBoundingClientRect()), b = Go([
2451
+ }, y = jo(v, m.getBoundingClientRect()), x = zo(v, y), $ = Wo(g.getBoundingClientRect()), b = Vo([
2452
2452
  ...x,
2453
2453
  ...$
2454
2454
  ]);
@@ -2460,9 +2460,9 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2460
2460
  p
2461
2461
  ]), R(() => {
2462
2462
  if (c && u) {
2463
- const h = (g) => f(g, u), m = (g) => f(g, c);
2464
- return c.addEventListener("pointerleave", h), u.addEventListener("pointerleave", m), () => {
2465
- c.removeEventListener("pointerleave", h), u.removeEventListener("pointerleave", m);
2463
+ const h = (m) => f(m, u), g = (m) => f(m, c);
2464
+ return c.addEventListener("pointerleave", h), u.addEventListener("pointerleave", g), () => {
2465
+ c.removeEventListener("pointerleave", h), u.removeEventListener("pointerleave", g);
2466
2466
  };
2467
2467
  }
2468
2468
  }, [
@@ -2472,11 +2472,11 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2472
2472
  p
2473
2473
  ]), R(() => {
2474
2474
  if (s) {
2475
- const h = (m) => {
2476
- const g = m.target, v = {
2477
- x: m.clientX,
2478
- y: m.clientY
2479
- }, y = (c == null ? void 0 : c.contains(g)) || (u == null ? void 0 : u.contains(g)), x = !Vo(v, s);
2475
+ const h = (g) => {
2476
+ const m = g.target, v = {
2477
+ x: g.clientX,
2478
+ y: g.clientY
2479
+ }, y = (c == null ? void 0 : c.contains(m)) || (u == null ? void 0 : u.contains(m)), x = !Uo(v, s);
2480
2480
  y ? p() : x && (p(), l());
2481
2481
  };
2482
2482
  return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
@@ -2487,14 +2487,14 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2487
2487
  s,
2488
2488
  l,
2489
2489
  p
2490
- ]), /* @__PURE__ */ _(rn, S({}, e, {
2490
+ ]), /* @__PURE__ */ _(nn, S({}, e, {
2491
2491
  ref: r
2492
2492
  }));
2493
- }), [ko, Ho] = ze(st, {
2493
+ }), [ko, Fo] = Be(it, {
2494
2494
  isInside: !1
2495
- }), rn = /* @__PURE__ */ M((e, t) => {
2496
- const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Ae(Pe, n), l = We(n), { onClose: u } = c;
2497
- return R(() => (document.addEventListener(Ke, u), () => document.removeEventListener(Ke, u)), [
2495
+ }), nn = /* @__PURE__ */ M((e, t) => {
2496
+ const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Oe(_e, n), l = je(n), { onClose: u } = c;
2497
+ return R(() => (document.addEventListener(qe, u), () => document.removeEventListener(qe, u)), [
2498
2498
  u
2499
2499
  ]), R(() => {
2500
2500
  if (c.trigger) {
@@ -2511,14 +2511,14 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2511
2511
  }, [
2512
2512
  c.trigger,
2513
2513
  u
2514
- ]), /* @__PURE__ */ _(ur, {
2514
+ ]), /* @__PURE__ */ _(lr, {
2515
2515
  asChild: !0,
2516
2516
  disableOutsidePointerEvents: !1,
2517
2517
  onEscapeKeyDown: r,
2518
2518
  onPointerDownOutside: s,
2519
2519
  onFocusOutside: (d) => d.preventDefault(),
2520
2520
  onDismiss: u
2521
- }, /* @__PURE__ */ _(vo, S({
2521
+ }, /* @__PURE__ */ _(mo, S({
2522
2522
  "data-state": c.stateAttribute
2523
2523
  }, l, a, {
2524
2524
  ref: t,
@@ -2530,20 +2530,20 @@ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2530
2530
  "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
2531
2531
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
2532
2532
  }
2533
- }), /* @__PURE__ */ _(Ht, null, o), /* @__PURE__ */ _(ko, {
2533
+ }), /* @__PURE__ */ _(Ft, null, o), /* @__PURE__ */ _(ko, {
2534
2534
  scope: n,
2535
2535
  isInside: !0
2536
- }, /* @__PURE__ */ _(Oo, {
2536
+ }, /* @__PURE__ */ _(Po, {
2537
2537
  id: c.contentId,
2538
2538
  role: "tooltip"
2539
2539
  }, i || o))));
2540
- }), Bo = "TooltipArrow", jo = /* @__PURE__ */ M((e, t) => {
2541
- const { __scopeTooltip: n, ...o } = e, i = We(n);
2542
- return Ho(Bo, n).isInside ? null : /* @__PURE__ */ _(yo, S({}, i, o, {
2540
+ }), Ho = "TooltipArrow", Bo = /* @__PURE__ */ M((e, t) => {
2541
+ const { __scopeTooltip: n, ...o } = e, i = je(n);
2542
+ return Fo(Ho, n).isInside ? null : /* @__PURE__ */ _(vo, S({}, i, o, {
2543
2543
  ref: t
2544
2544
  }));
2545
2545
  });
2546
- function zo(e, t) {
2546
+ function jo(e, t) {
2547
2547
  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);
2548
2548
  switch (Math.min(n, o, i, r)) {
2549
2549
  case r:
@@ -2558,7 +2558,7 @@ function zo(e, t) {
2558
2558
  throw new Error("unreachable");
2559
2559
  }
2560
2560
  }
2561
- function Wo(e, t, n = 5) {
2561
+ function zo(e, t, n = 5) {
2562
2562
  const o = [];
2563
2563
  switch (t) {
2564
2564
  case "top":
@@ -2600,7 +2600,7 @@ function Wo(e, t, n = 5) {
2600
2600
  }
2601
2601
  return o;
2602
2602
  }
2603
- function Uo(e) {
2603
+ function Wo(e) {
2604
2604
  const { top: t, right: n, bottom: o, left: i } = e;
2605
2605
  return [
2606
2606
  {
@@ -2621,7 +2621,7 @@ function Uo(e) {
2621
2621
  }
2622
2622
  ];
2623
2623
  }
2624
- function Vo(e, t) {
2624
+ function Uo(e, t) {
2625
2625
  const { x: n, y: o } = e;
2626
2626
  let i = !1;
2627
2627
  for (let r = 0, s = t.length - 1; r < t.length; s = r++) {
@@ -2630,11 +2630,11 @@ function Vo(e, t) {
2630
2630
  }
2631
2631
  return i;
2632
2632
  }
2633
- function Go(e) {
2633
+ function Vo(e) {
2634
2634
  const t = e.slice();
2635
- 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), Xo(t);
2635
+ 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);
2636
2636
  }
2637
- function Xo(e) {
2637
+ function Go(e) {
2638
2638
  if (e.length <= 1)
2639
2639
  return e.slice();
2640
2640
  const t = [];
@@ -2664,11 +2664,11 @@ function Xo(e) {
2664
2664
  }
2665
2665
  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);
2666
2666
  }
2667
- const Yo = To, qo = So, Ko = Do, Zo = Mo, Qo = Io, Jo = jo;
2668
- function ei(e) {
2667
+ const Xo = Eo, Yo = Ro, qo = So, Ko = Lo, Zo = Mo, Qo = Bo;
2668
+ function Jo(e) {
2669
2669
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2670
2670
  }
2671
- var on = { exports: {} };
2671
+ var rn = { exports: {} };
2672
2672
  /*!
2673
2673
  Copyright (c) 2018 Jed Watson.
2674
2674
  Licensed under the MIT License (MIT), see
@@ -2703,22 +2703,20 @@ var on = { exports: {} };
2703
2703
  }
2704
2704
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
2705
2705
  })();
2706
- })(on);
2707
- var ti = on.exports;
2708
- const ni = /* @__PURE__ */ ei(ti), ri = "_slideDownAndFade_1dyp8_1", oi = "_slideLeftAndFade_1dyp8_1", ii = "_slideUpAndFade_1dyp8_1", si = "_slideRightAndFade_1dyp8_1", oe = {
2709
- "purpur-tooltip": "_purpur-tooltip_1dyp8_1",
2710
- "purpur-tooltip__content": "_purpur-tooltip__content_1dyp8_4",
2711
- "purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_1dyp8_14",
2712
- "purpur-tooltip__content--primary-negative": "_purpur-tooltip__content--primary-negative_1dyp8_17",
2713
- slideDownAndFade: ri,
2714
- slideLeftAndFade: oi,
2715
- slideUpAndFade: ii,
2716
- slideRightAndFade: si,
2717
- "purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_1dyp8_32",
2718
- "purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_1dyp8_35",
2719
- "purpur-tooltip__paragraph--primary": "_purpur-tooltip__paragraph--primary_1dyp8_38",
2720
- "purpur-tooltip__paragraph--primary-negative": "_purpur-tooltip__paragraph--primary-negative_1dyp8_41"
2721
- }, Ne = ni.bind(oe), ai = {
2706
+ })(rn);
2707
+ var ei = rn.exports;
2708
+ const ti = /* @__PURE__ */ Jo(ei), ni = "_slideDownAndFade_fkagk_1", ri = "_slideLeftAndFade_fkagk_1", oi = "_slideUpAndFade_fkagk_1", ii = "_slideRightAndFade_fkagk_1", si = {
2709
+ "purpur-tooltip": "_purpur-tooltip_fkagk_1",
2710
+ "purpur-tooltip__content": "_purpur-tooltip__content_fkagk_4",
2711
+ "purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_fkagk_14",
2712
+ "purpur-tooltip__content--primary-negative": "_purpur-tooltip__content--primary-negative_fkagk_17",
2713
+ slideDownAndFade: ni,
2714
+ slideLeftAndFade: ri,
2715
+ slideUpAndFade: oi,
2716
+ slideRightAndFade: ii,
2717
+ "purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_fkagk_32",
2718
+ "purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_fkagk_35"
2719
+ }, ze = ti.bind(si), ai = {
2722
2720
  TOP: "top",
2723
2721
  BOTTOM: "bottom",
2724
2722
  LEFT: "left",
@@ -2727,10 +2725,10 @@ const ni = /* @__PURE__ */ ei(ti), ri = "_slideDownAndFade_1dyp8_1", oi = "_slid
2727
2725
  START: "start",
2728
2726
  CENTER: "center",
2729
2727
  END: "end"
2730
- }, J = "purpur-tooltip", li = M(
2728
+ }, ae = "purpur-tooltip", li = M(
2731
2729
  ({
2732
2730
  ["data-testid"]: e,
2733
- buttonSize: t = _n.MD,
2731
+ buttonSize: t = wn.MD,
2734
2732
  children: n,
2735
2733
  className: o,
2736
2734
  contentClassName: i,
@@ -2741,65 +2739,62 @@ const ni = /* @__PURE__ */ ei(ti), ri = "_slideDownAndFade_1dyp8_1", oi = "_slid
2741
2739
  triggerElement: l,
2742
2740
  ...u
2743
2741
  }, d) => {
2744
- const [p, f] = j(!1), h = Ne([
2742
+ const [p, f] = j(!1), h = ze([
2745
2743
  o,
2746
- J,
2747
- `${J}--primary${r ? "-negative" : ""}`
2748
- ]), m = /* @__PURE__ */ I(
2749
- St,
2744
+ ae,
2745
+ `${ae}--primary${r ? "-negative" : ""}`
2746
+ ]), g = /* @__PURE__ */ I(
2747
+ Rt,
2750
2748
  {
2751
2749
  ref: d,
2752
2750
  "aria-label": c,
2753
- variant: Mn.TERTIARY_PURPLE,
2751
+ variant: Ln.TERTIARY_PURPLE,
2754
2752
  negative: r,
2755
2753
  iconOnly: !0,
2756
2754
  "data-testid": `${e}-trigger-button`,
2757
2755
  size: t,
2758
- children: /* @__PURE__ */ I(Nt, { size: "md" })
2756
+ children: /* @__PURE__ */ I(Dt, { size: "md" })
2759
2757
  }
2760
2758
  );
2761
- return /* @__PURE__ */ I("div", { "data-testid": e, className: h, children: /* @__PURE__ */ I(Yo, { delayDuration: parseInt(Jn), children: /* @__PURE__ */ Ue(qo, { open: p, onOpenChange: f, ...u, children: [
2759
+ return /* @__PURE__ */ I("div", { "data-testid": e, className: h, children: /* @__PURE__ */ I(Xo, { delayDuration: parseInt(Qn), children: /* @__PURE__ */ We(Yo, { open: p, onOpenChange: f, ...u, children: [
2762
2760
  /* @__PURE__ */ I(
2763
- Ko,
2761
+ qo,
2764
2762
  {
2765
2763
  asChild: !0,
2766
- onClick: (g) => {
2767
- g.preventDefault(), f(!0);
2764
+ onClick: (m) => {
2765
+ m.preventDefault(), f(!0);
2768
2766
  },
2769
- children: ie.count(l) === 0 ? m : l
2767
+ children: re.count(l) === 0 ? g : l
2770
2768
  }
2771
2769
  ),
2772
- /* @__PURE__ */ I(Zo, { children: /* @__PURE__ */ Ue(
2773
- Qo,
2770
+ /* @__PURE__ */ I(Ko, { children: /* @__PURE__ */ We(
2771
+ Zo,
2774
2772
  {
2775
2773
  side: s,
2776
2774
  align: a,
2777
- className: Ne([
2775
+ className: ze([
2778
2776
  i,
2779
- oe[`${J}__content`],
2780
- oe[`${J}__content--primary${r ? "-negative" : ""}`]
2777
+ `${ae}__content`,
2778
+ `${ae}__content--primary${r ? "-negative" : ""}`
2781
2779
  ]),
2782
2780
  sideOffset: -5,
2783
2781
  "data-testid": `${e}-content`,
2784
2782
  children: [
2785
2783
  typeof n == "string" ? /* @__PURE__ */ I(
2786
- Qn,
2784
+ Zn,
2787
2785
  {
2788
- className: Ne([
2789
- oe[`${J}__paragraph`],
2790
- oe[`${J}__paragraph--primary${r ? "-negative" : ""}`]
2791
- ]),
2792
- variant: Mt.PARAGRAPH100,
2786
+ variant: Lt.PARAGRAPH100,
2787
+ negative: !r,
2793
2788
  "data-testid": `${e}-paragraph`,
2794
2789
  children: n
2795
2790
  }
2796
2791
  ) : n,
2797
2792
  /* @__PURE__ */ I(
2798
- Jo,
2793
+ Qo,
2799
2794
  {
2800
- className: Ne([
2801
- oe[`${J}__arrow`],
2802
- oe[`${J}__arrow--primary${r ? "-negative" : ""}`]
2795
+ className: ze([
2796
+ `${ae}__arrow`,
2797
+ `${ae}__arrow--primary${r ? "-negative" : ""}`
2803
2798
  ])
2804
2799
  }
2805
2800
  )