highsoft-ui 1.0.47 → 1.0.49

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,30 +1,15 @@
1
- import { jsx as C, jsxs as Q, Fragment as It } from "react/jsx-runtime";
2
- import { z as Yn } from "../../index-DAWHN3cH.js";
1
+ import { jsx as C, jsxs as Q, Fragment as Bt } from "react/jsx-runtime";
2
+ import { z as Zn, b as Gn } from "../../utils-CzQFvGG2.js";
3
3
  import * as a from "react";
4
- import { useState as Kn, useLayoutEffect as Xn } from "react";
5
- import { _ as be, B as Zn } from "../../index-DKE1ODpv.js";
6
- import { c as Gn } from "../../clsx-OuTLNxxd.js";
7
- import { useMounted as qn } from "../../utils.js";
8
- import * as Wt from "react-dom";
9
- import Qn from "react-dom";
10
- var Jn = function(t) {
11
- return /* @__PURE__ */ C("svg", be({
12
- xmlns: "http://www.w3.org/2000/svg",
13
- width: 24,
14
- height: 24,
15
- fill: "none",
16
- viewBox: "0 0 24 24"
17
- }, t, {
18
- children: /* @__PURE__ */ C("path", {
19
- stroke: "currentColor",
20
- strokeLinecap: "round",
21
- strokeLinejoin: "round",
22
- strokeWidth: 2,
23
- d: "M20 6 9 17l-5-5"
24
- })
25
- }));
26
- }, er = function(t) {
27
- return /* @__PURE__ */ C("svg", be({
4
+ import { useState as qn, useLayoutEffect as Qn } from "react";
5
+ import { C as Jn } from "../../Check-Cm4roSEj.js";
6
+ import { _ as Fe } from "../../extends-hS2Bh-Yp.js";
7
+ import { c as er } from "../../clsx-OuTLNxxd.js";
8
+ import { Button as tr } from "../Button/index.js";
9
+ import * as $t from "react-dom";
10
+ import nr from "react-dom";
11
+ var rr = function(t) {
12
+ return /* @__PURE__ */ C("svg", Fe({
28
13
  xmlns: "http://www.w3.org/2000/svg",
29
14
  width: 24,
30
15
  height: 24,
@@ -39,8 +24,8 @@ var Jn = function(t) {
39
24
  d: "M15 17v4H9v-4m-3.8 0h13.6c1.1201 0 1.6802 0 2.108-.218a2 2 0 0 0 .874-.874C22 15.4802 22 14.9201 22 13.8V6.2c0-1.1201 0-1.6802-.218-2.108a2 2 0 0 0-.874-.874C20.4802 3 19.9201 3 18.8 3H5.2c-1.1201 0-1.6802 0-2.108.218a2 2 0 0 0-.874.874C2 4.5198 2 5.08 2 6.2v7.6c0 1.1201 0 1.6802.218 2.108.1917.3763.4977.6823.874.874C3.5198 17 4.08 17 5.2 17"
40
25
  })
41
26
  }));
42
- }, tr = function(t) {
43
- return /* @__PURE__ */ C("svg", be({
27
+ }, or = function(t) {
28
+ return /* @__PURE__ */ C("svg", Fe({
44
29
  xmlns: "http://www.w3.org/2000/svg",
45
30
  width: 24,
46
31
  height: 24,
@@ -55,8 +40,8 @@ var Jn = function(t) {
55
40
  d: "M21.9548 12.9564c-1.3769 2.4153-3.9757 4.0437-6.9548 4.0437-4.4183 0-8-3.5817-8-8 0-2.9794 1.6287-5.5783 4.0443-6.9552C5.9698 2.5261 2 6.7994 2 11.9998c0 5.5229 4.4772 10 10 10 5.2002 0 9.4733-3.9693 9.9548-9.0434"
56
41
  })
57
42
  }));
58
- }, nr = function(t) {
59
- return /* @__PURE__ */ C("svg", be({
43
+ }, ir = function(t) {
44
+ return /* @__PURE__ */ C("svg", Fe({
60
45
  xmlns: "http://www.w3.org/2000/svg",
61
46
  width: 24,
62
47
  height: 24,
@@ -71,8 +56,8 @@ var Jn = function(t) {
71
56
  d: "M3 8h12m0 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3-1.3431-3-3-3-3 1.3431-3 3m-6 8h12M9 16c0 1.6569-1.3431 3-3 3s-3-1.3431-3-3 1.3431-3 3-3 3 1.3431 3 3"
72
57
  })
73
58
  }));
74
- }, rr = function(t) {
75
- return /* @__PURE__ */ C("svg", be({
59
+ }, sr = function(t) {
60
+ return /* @__PURE__ */ C("svg", Fe({
76
61
  xmlns: "http://www.w3.org/2000/svg",
77
62
  width: 24,
78
63
  height: 24,
@@ -93,7 +78,7 @@ function vt(e, t) {
93
78
  return e(t);
94
79
  e != null && (e.current = t);
95
80
  }
96
- function Bt(...e) {
81
+ function Ht(...e) {
97
82
  return (t) => {
98
83
  let n = !1;
99
84
  const r = e.map((o) => {
@@ -110,12 +95,12 @@ function Bt(...e) {
110
95
  };
111
96
  }
112
97
  function re(...e) {
113
- return a.useCallback(Bt(...e), e);
98
+ return a.useCallback(Ht(...e), e);
114
99
  }
115
100
  // @__NO_SIDE_EFFECTS__
116
- function $t(e) {
117
- const t = /* @__PURE__ */ or(e), n = a.forwardRef((r, o) => {
118
- const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(sr);
101
+ function Vt(e) {
102
+ const t = /* @__PURE__ */ cr(e), n = a.forwardRef((r, o) => {
103
+ const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(lr);
119
104
  if (u) {
120
105
  const l = u.props.children, f = c.map((d) => d === u ? a.Children.count(l) > 1 ? a.Children.only(null) : a.isValidElement(l) ? l.props.children : null : d);
121
106
  return /* @__PURE__ */ C(t, { ...s, ref: o, children: a.isValidElement(l) ? a.cloneElement(l, void 0, f) : null });
@@ -125,22 +110,22 @@ function $t(e) {
125
110
  return n.displayName = `${e}.Slot`, n;
126
111
  }
127
112
  // @__NO_SIDE_EFFECTS__
128
- function or(e) {
113
+ function cr(e) {
129
114
  const t = a.forwardRef((n, r) => {
130
115
  const { children: o, ...i } = n;
131
116
  if (a.isValidElement(o)) {
132
- const s = ar(o), c = cr(i, o.props);
133
- return o.type !== a.Fragment && (c.ref = r ? Bt(r, s) : s), a.cloneElement(o, c);
117
+ const s = fr(o), c = ur(i, o.props);
118
+ return o.type !== a.Fragment && (c.ref = r ? Ht(r, s) : s), a.cloneElement(o, c);
134
119
  }
135
120
  return a.Children.count(o) > 1 ? a.Children.only(null) : null;
136
121
  });
137
122
  return t.displayName = `${e}.SlotClone`, t;
138
123
  }
139
- var ir = Symbol("radix.slottable");
140
- function sr(e) {
141
- return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ir;
124
+ var ar = Symbol("radix.slottable");
125
+ function lr(e) {
126
+ return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ar;
142
127
  }
143
- function cr(e, t) {
128
+ function ur(e, t) {
144
129
  const n = { ...t };
145
130
  for (const r in t) {
146
131
  const o = e[r], i = t[r];
@@ -151,11 +136,11 @@ function cr(e, t) {
151
136
  }
152
137
  return { ...e, ...n };
153
138
  }
154
- function ar(e) {
139
+ function fr(e) {
155
140
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
156
141
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
157
142
  }
158
- var lr = [
143
+ var dr = [
159
144
  "a",
160
145
  "button",
161
146
  "div",
@@ -173,17 +158,17 @@ var lr = [
173
158
  "span",
174
159
  "svg",
175
160
  "ul"
176
- ], G = lr.reduce((e, t) => {
177
- const n = /* @__PURE__ */ $t(`Primitive.${t}`), r = a.forwardRef((o, i) => {
161
+ ], G = dr.reduce((e, t) => {
162
+ const n = /* @__PURE__ */ Vt(`Primitive.${t}`), r = a.forwardRef((o, i) => {
178
163
  const { asChild: s, ...c } = o, u = s ? n : t;
179
164
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ C(u, { ...c, ref: i });
180
165
  });
181
166
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
182
167
  }, {});
183
- function ur(e, t) {
184
- e && Wt.flushSync(() => e.dispatchEvent(t));
168
+ function pr(e, t) {
169
+ e && $t.flushSync(() => e.dispatchEvent(t));
185
170
  }
186
- function Ht(e, t = []) {
171
+ function zt(e, t = []) {
187
172
  let n = [];
188
173
  function r(i, s) {
189
174
  const c = a.createContext(s), u = n.length;
@@ -211,9 +196,9 @@ function Ht(e, t = []) {
211
196
  );
212
197
  };
213
198
  };
214
- return o.scopeName = e, [r, fr(o, ...t)];
199
+ return o.scopeName = e, [r, hr(o, ...t)];
215
200
  }
216
- function fr(...e) {
201
+ function hr(...e) {
217
202
  const t = e[0];
218
203
  if (e.length === 1) return t;
219
204
  const n = () => {
@@ -238,15 +223,15 @@ function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
238
223
  };
239
224
  }
240
225
  var ee = globalThis?.document ? a.useLayoutEffect : () => {
241
- }, dr = a[" useInsertionEffect ".trim().toString()] || ee;
242
- function pr({
226
+ }, mr = a[" useInsertionEffect ".trim().toString()] || ee;
227
+ function vr({
243
228
  prop: e,
244
229
  defaultProp: t,
245
230
  onChange: n = () => {
246
231
  },
247
232
  caller: r
248
233
  }) {
249
- const [o, i, s] = hr({
234
+ const [o, i, s] = gr({
250
235
  defaultProp: t,
251
236
  onChange: n
252
237
  }), c = e !== void 0, u = c ? e : o;
@@ -262,7 +247,7 @@ function pr({
262
247
  const l = a.useCallback(
263
248
  (f) => {
264
249
  if (c) {
265
- const d = mr(f) ? f(e) : f;
250
+ const d = yr(f) ? f(e) : f;
266
251
  d !== e && s.current?.(d);
267
252
  } else
268
253
  i(f);
@@ -271,30 +256,30 @@ function pr({
271
256
  );
272
257
  return [u, l];
273
258
  }
274
- function hr({
259
+ function gr({
275
260
  defaultProp: e,
276
261
  onChange: t
277
262
  }) {
278
263
  const [n, r] = a.useState(e), o = a.useRef(n), i = a.useRef(t);
279
- return dr(() => {
264
+ return mr(() => {
280
265
  i.current = t;
281
266
  }, [t]), a.useEffect(() => {
282
267
  o.current !== n && (i.current?.(n), o.current = n);
283
268
  }, [n, o]), [n, r, i];
284
269
  }
285
- function mr(e) {
270
+ function yr(e) {
286
271
  return typeof e == "function";
287
272
  }
288
- function vr(e, t) {
273
+ function wr(e, t) {
289
274
  return a.useReducer((n, r) => t[n][r] ?? n, e);
290
275
  }
291
276
  var rt = (e) => {
292
- const { present: t, children: n } = e, r = gr(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = re(r.ref, yr(o));
277
+ const { present: t, children: n } = e, r = br(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = re(r.ref, xr(o));
293
278
  return typeof n == "function" || r.isPresent ? a.cloneElement(o, { ref: i }) : null;
294
279
  };
295
280
  rt.displayName = "Presence";
296
- function gr(e) {
297
- const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), s = e ? "mounted" : "unmounted", [c, u] = vr(s, {
281
+ function br(e) {
282
+ const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), s = e ? "mounted" : "unmounted", [c, u] = wr(s, {
298
283
  mounted: {
299
284
  UNMOUNT: "unmounted",
300
285
  ANIMATION_OUT: "unmountSuspended"
@@ -308,19 +293,19 @@ function gr(e) {
308
293
  }
309
294
  });
310
295
  return a.useEffect(() => {
311
- const l = Pe(r.current);
296
+ const l = Ce(r.current);
312
297
  i.current = c === "mounted" ? l : "none";
313
298
  }, [c]), ee(() => {
314
299
  const l = r.current, f = o.current;
315
300
  if (f !== e) {
316
- const m = i.current, h = Pe(l);
301
+ const m = i.current, h = Ce(l);
317
302
  e ? u("MOUNT") : h === "none" || l?.display === "none" ? u("UNMOUNT") : u(f && m !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
318
303
  }
319
304
  }, [e, u]), ee(() => {
320
305
  if (t) {
321
306
  let l;
322
307
  const f = t.ownerDocument.defaultView ?? window, d = (h) => {
323
- const p = Pe(r.current).includes(h.animationName);
308
+ const p = Ce(r.current).includes(h.animationName);
324
309
  if (h.target === t && p && (u("ANIMATION_END"), !o.current)) {
325
310
  const g = t.style.animationFillMode;
326
311
  t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
@@ -328,7 +313,7 @@ function gr(e) {
328
313
  });
329
314
  }
330
315
  }, m = (h) => {
331
- h.target === t && (i.current = Pe(r.current));
316
+ h.target === t && (i.current = Ce(r.current));
332
317
  };
333
318
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
334
319
  f.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
@@ -342,19 +327,19 @@ function gr(e) {
342
327
  }, [])
343
328
  };
344
329
  }
345
- function Pe(e) {
330
+ function Ce(e) {
346
331
  return e?.animationName || "none";
347
332
  }
348
- function yr(e) {
333
+ function xr(e) {
349
334
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
350
335
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
351
336
  }
352
- var wr = a[" useId ".trim().toString()] || (() => {
353
- }), br = 0;
354
- function xr(e) {
355
- const [t, n] = a.useState(wr());
337
+ var Er = a[" useId ".trim().toString()] || (() => {
338
+ }), Cr = 0;
339
+ function Pr(e) {
340
+ const [t, n] = a.useState(Er());
356
341
  return ee(() => {
357
- n((r) => r ?? String(br++));
342
+ n((r) => r ?? String(Cr++));
358
343
  }, [e]), e || (t ? `radix-${t}` : "");
359
344
  }
360
345
  function fe(e) {
@@ -363,7 +348,7 @@ function fe(e) {
363
348
  t.current = e;
364
349
  }), a.useMemo(() => (...n) => t.current?.(...n), []);
365
350
  }
366
- function Er(e, t = globalThis?.document) {
351
+ function Sr(e, t = globalThis?.document) {
367
352
  const n = fe(e);
368
353
  a.useEffect(() => {
369
354
  const r = (o) => {
@@ -372,11 +357,11 @@ function Er(e, t = globalThis?.document) {
372
357
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
373
358
  }, [n, t]);
374
359
  }
375
- var Cr = "DismissableLayer", Qe = "dismissableLayer.update", Pr = "dismissableLayer.pointerDownOutside", Sr = "dismissableLayer.focusOutside", gt, zt = a.createContext({
360
+ var Ar = "DismissableLayer", Qe = "dismissableLayer.update", Rr = "dismissableLayer.pointerDownOutside", Or = "dismissableLayer.focusOutside", gt, Ut = a.createContext({
376
361
  layers: /* @__PURE__ */ new Set(),
377
362
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
378
363
  branches: /* @__PURE__ */ new Set()
379
- }), Vt = a.forwardRef(
364
+ }), jt = a.forwardRef(
380
365
  (e, t) => {
381
366
  const {
382
367
  disableOutsidePointerEvents: n = !1,
@@ -386,14 +371,14 @@ var Cr = "DismissableLayer", Qe = "dismissableLayer.update", Pr = "dismissableLa
386
371
  onInteractOutside: s,
387
372
  onDismiss: c,
388
373
  ...u
389
- } = e, l = a.useContext(zt), [f, d] = a.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = a.useState({}), v = re(t, (P) => d(P)), p = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(g), w = f ? p.indexOf(f) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, b = w >= y, E = Or((P) => {
390
- const R = P.target, M = [...l.branches].some((O) => O.contains(R));
391
- !b || M || (o?.(P), s?.(P), P.defaultPrevented || c?.());
392
- }, m), S = Nr((P) => {
374
+ } = e, l = a.useContext(Ut), [f, d] = a.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = a.useState({}), v = re(t, (P) => d(P)), p = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(g), w = f ? p.indexOf(f) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, b = w >= y, E = Mr((P) => {
375
+ const R = P.target, T = [...l.branches].some((O) => O.contains(R));
376
+ !b || T || (o?.(P), s?.(P), P.defaultPrevented || c?.());
377
+ }, m), S = kr((P) => {
393
378
  const R = P.target;
394
379
  [...l.branches].some((O) => O.contains(R)) || (i?.(P), s?.(P), P.defaultPrevented || c?.());
395
380
  }, m);
396
- return Er((P) => {
381
+ return Sr((P) => {
397
382
  w === l.layers.size - 1 && (r?.(P), !P.defaultPrevented && c && (P.preventDefault(), c()));
398
383
  }, m), a.useEffect(() => {
399
384
  if (f)
@@ -424,9 +409,9 @@ var Cr = "DismissableLayer", Qe = "dismissableLayer.update", Pr = "dismissableLa
424
409
  );
425
410
  }
426
411
  );
427
- Vt.displayName = Cr;
428
- var Ar = "DismissableLayerBranch", Rr = a.forwardRef((e, t) => {
429
- const n = a.useContext(zt), r = a.useRef(null), o = re(t, r);
412
+ jt.displayName = Ar;
413
+ var Nr = "DismissableLayerBranch", Tr = a.forwardRef((e, t) => {
414
+ const n = a.useContext(Ut), r = a.useRef(null), o = re(t, r);
430
415
  return a.useEffect(() => {
431
416
  const i = r.current;
432
417
  if (i)
@@ -435,16 +420,16 @@ var Ar = "DismissableLayerBranch", Rr = a.forwardRef((e, t) => {
435
420
  };
436
421
  }, [n.branches]), /* @__PURE__ */ C(G.div, { ...e, ref: o });
437
422
  });
438
- Rr.displayName = Ar;
439
- function Or(e, t = globalThis?.document) {
423
+ Tr.displayName = Nr;
424
+ function Mr(e, t = globalThis?.document) {
440
425
  const n = fe(e), r = a.useRef(!1), o = a.useRef(() => {
441
426
  });
442
427
  return a.useEffect(() => {
443
428
  const i = (c) => {
444
429
  if (c.target && !r.current) {
445
430
  let u = function() {
446
- Ut(
447
- Pr,
431
+ Yt(
432
+ Rr,
448
433
  n,
449
434
  l,
450
435
  { discrete: !0 }
@@ -466,11 +451,11 @@ function Or(e, t = globalThis?.document) {
466
451
  onPointerDownCapture: () => r.current = !0
467
452
  };
468
453
  }
469
- function Nr(e, t = globalThis?.document) {
454
+ function kr(e, t = globalThis?.document) {
470
455
  const n = fe(e), r = a.useRef(!1);
471
456
  return a.useEffect(() => {
472
457
  const o = (i) => {
473
- i.target && !r.current && Ut(Sr, n, { originalEvent: i }, {
458
+ i.target && !r.current && Yt(Or, n, { originalEvent: i }, {
474
459
  discrete: !1
475
460
  });
476
461
  };
@@ -484,11 +469,11 @@ function yt() {
484
469
  const e = new CustomEvent(Qe);
485
470
  document.dispatchEvent(e);
486
471
  }
487
- function Ut(e, t, n, { discrete: r }) {
472
+ function Yt(e, t, n, { discrete: r }) {
488
473
  const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
489
- t && o.addEventListener(e, t, { once: !0 }), r ? ur(o, i) : o.dispatchEvent(i);
474
+ t && o.addEventListener(e, t, { once: !0 }), r ? pr(o, i) : o.dispatchEvent(i);
490
475
  }
491
- var ze = "focusScope.autoFocusOnMount", Ve = "focusScope.autoFocusOnUnmount", wt = { bubbles: !1, cancelable: !0 }, Mr = "FocusScope", jt = a.forwardRef((e, t) => {
476
+ var Ve = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", wt = { bubbles: !1, cancelable: !0 }, Lr = "FocusScope", Kt = a.forwardRef((e, t) => {
492
477
  const {
493
478
  loop: n = !1,
494
479
  trapped: r = !1,
@@ -530,13 +515,13 @@ var ze = "focusScope.autoFocusOnMount", Ve = "focusScope.autoFocusOnUnmount", wt
530
515
  xt.add(h);
531
516
  const p = document.activeElement;
532
517
  if (!c.contains(p)) {
533
- const y = new CustomEvent(ze, wt);
534
- c.addEventListener(ze, l), c.dispatchEvent(y), y.defaultPrevented || (Tr(Fr(Yt(c)), { select: !0 }), document.activeElement === p && q(c));
518
+ const y = new CustomEvent(Ve, wt);
519
+ c.addEventListener(Ve, l), c.dispatchEvent(y), y.defaultPrevented || (Dr(Br(Xt(c)), { select: !0 }), document.activeElement === p && q(c));
535
520
  }
536
521
  return () => {
537
- c.removeEventListener(ze, l), setTimeout(() => {
538
- const y = new CustomEvent(Ve, wt);
539
- c.addEventListener(Ve, f), c.dispatchEvent(y), y.defaultPrevented || q(p ?? document.body, { select: !0 }), c.removeEventListener(Ve, f), xt.remove(h);
522
+ c.removeEventListener(Ve, l), setTimeout(() => {
523
+ const y = new CustomEvent(ze, wt);
524
+ c.addEventListener(ze, f), c.dispatchEvent(y), y.defaultPrevented || q(p ?? document.body, { select: !0 }), c.removeEventListener(ze, f), xt.remove(h);
540
525
  }, 0);
541
526
  };
542
527
  }
@@ -546,7 +531,7 @@ var ze = "focusScope.autoFocusOnMount", Ve = "focusScope.autoFocusOnUnmount", wt
546
531
  if (!n && !r || h.paused) return;
547
532
  const g = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
548
533
  if (g && y) {
549
- const w = p.currentTarget, [x, b] = kr(w);
534
+ const w = p.currentTarget, [x, b] = _r(w);
550
535
  x && b ? !p.shiftKey && y === b ? (p.preventDefault(), n && q(x, { select: !0 })) : p.shiftKey && y === x && (p.preventDefault(), n && q(b, { select: !0 })) : y === w && p.preventDefault();
551
536
  }
552
537
  },
@@ -554,17 +539,17 @@ var ze = "focusScope.autoFocusOnMount", Ve = "focusScope.autoFocusOnUnmount", wt
554
539
  );
555
540
  return /* @__PURE__ */ C(G.div, { tabIndex: -1, ...s, ref: m, onKeyDown: v });
556
541
  });
557
- jt.displayName = Mr;
558
- function Tr(e, { select: t = !1 } = {}) {
542
+ Kt.displayName = Lr;
543
+ function Dr(e, { select: t = !1 } = {}) {
559
544
  const n = document.activeElement;
560
545
  for (const r of e)
561
546
  if (q(r, { select: t }), document.activeElement !== n) return;
562
547
  }
563
- function kr(e) {
564
- const t = Yt(e), n = bt(t, e), r = bt(t.reverse(), e);
548
+ function _r(e) {
549
+ const t = Xt(e), n = bt(t, e), r = bt(t.reverse(), e);
565
550
  return [n, r];
566
551
  }
567
- function Yt(e) {
552
+ function Xt(e) {
568
553
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
569
554
  acceptNode: (r) => {
570
555
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -576,9 +561,9 @@ function Yt(e) {
576
561
  }
577
562
  function bt(e, t) {
578
563
  for (const n of e)
579
- if (!Lr(n, { upTo: t })) return n;
564
+ if (!Fr(n, { upTo: t })) return n;
580
565
  }
581
- function Lr(e, { upTo: t }) {
566
+ function Fr(e, { upTo: t }) {
582
567
  if (getComputedStyle(e).visibility === "hidden") return !0;
583
568
  for (; e; ) {
584
569
  if (t !== void 0 && e === t) return !1;
@@ -587,17 +572,17 @@ function Lr(e, { upTo: t }) {
587
572
  }
588
573
  return !1;
589
574
  }
590
- function Dr(e) {
575
+ function Ir(e) {
591
576
  return e instanceof HTMLInputElement && "select" in e;
592
577
  }
593
578
  function q(e, { select: t = !1 } = {}) {
594
579
  if (e && e.focus) {
595
580
  const n = document.activeElement;
596
- e.focus({ preventScroll: !0 }), e !== n && Dr(e) && t && e.select();
581
+ e.focus({ preventScroll: !0 }), e !== n && Ir(e) && t && e.select();
597
582
  }
598
583
  }
599
- var xt = _r();
600
- function _r() {
584
+ var xt = Wr();
585
+ function Wr() {
601
586
  let e = [];
602
587
  return {
603
588
  add(t) {
@@ -613,18 +598,18 @@ function Et(e, t) {
613
598
  const n = [...e], r = n.indexOf(t);
614
599
  return r !== -1 && n.splice(r, 1), n;
615
600
  }
616
- function Fr(e) {
601
+ function Br(e) {
617
602
  return e.filter((t) => t.tagName !== "A");
618
603
  }
619
- var Ir = "Portal", Kt = a.forwardRef((e, t) => {
604
+ var $r = "Portal", Zt = a.forwardRef((e, t) => {
620
605
  const { container: n, ...r } = e, [o, i] = a.useState(!1);
621
606
  ee(() => i(!0), []);
622
607
  const s = n || o && globalThis?.document?.body;
623
- return s ? Qn.createPortal(/* @__PURE__ */ C(G.div, { ...r, ref: t }), s) : null;
608
+ return s ? nr.createPortal(/* @__PURE__ */ C(G.div, { ...r, ref: t }), s) : null;
624
609
  });
625
- Kt.displayName = Ir;
610
+ Zt.displayName = $r;
626
611
  var Ue = 0;
627
- function Wr() {
612
+ function Hr() {
628
613
  a.useEffect(() => {
629
614
  const e = document.querySelectorAll("[data-radix-focus-guard]");
630
615
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Ct()), document.body.insertAdjacentElement("beforeend", e[1] ?? Ct()), Ue++, () => {
@@ -636,16 +621,16 @@ function Ct() {
636
621
  const e = document.createElement("span");
637
622
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
638
623
  }
639
- var V = function() {
640
- return V = Object.assign || function(t) {
624
+ var z = function() {
625
+ return z = Object.assign || function(t) {
641
626
  for (var n, r = 1, o = arguments.length; r < o; r++) {
642
627
  n = arguments[r];
643
628
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
644
629
  }
645
630
  return t;
646
- }, V.apply(this, arguments);
631
+ }, z.apply(this, arguments);
647
632
  };
648
- function Xt(e, t) {
633
+ function Gt(e, t) {
649
634
  var n = {};
650
635
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
651
636
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -653,17 +638,17 @@ function Xt(e, t) {
653
638
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
654
639
  return n;
655
640
  }
656
- function Br(e, t, n) {
641
+ function Vr(e, t, n) {
657
642
  if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
658
643
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
659
644
  return e.concat(i || Array.prototype.slice.call(t));
660
645
  }
661
- var Me = "right-scroll-bar-position", Te = "width-before-scroll-bar", $r = "with-scroll-bars-hidden", Hr = "--removed-body-scroll-bar-size";
646
+ var Ne = "right-scroll-bar-position", Te = "width-before-scroll-bar", zr = "with-scroll-bars-hidden", Ur = "--removed-body-scroll-bar-size";
662
647
  function je(e, t) {
663
648
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
664
649
  }
665
- function zr(e, t) {
666
- var n = Kn(function() {
650
+ function jr(e, t) {
651
+ var n = qn(function() {
667
652
  return {
668
653
  // value
669
654
  value: e,
@@ -683,14 +668,14 @@ function zr(e, t) {
683
668
  })[0];
684
669
  return n.callback = t, n.facade;
685
670
  }
686
- var Vr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, Pt = /* @__PURE__ */ new WeakMap();
687
- function Ur(e, t) {
688
- var n = zr(null, function(r) {
671
+ var Yr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, Pt = /* @__PURE__ */ new WeakMap();
672
+ function Kr(e, t) {
673
+ var n = jr(null, function(r) {
689
674
  return e.forEach(function(o) {
690
675
  return je(o, r);
691
676
  });
692
677
  });
693
- return Vr(function() {
678
+ return Yr(function() {
694
679
  var r = Pt.get(n);
695
680
  if (r) {
696
681
  var o = new Set(r), i = new Set(e), s = n.current;
@@ -703,11 +688,11 @@ function Ur(e, t) {
703
688
  Pt.set(n, e);
704
689
  }, [e]), n;
705
690
  }
706
- function jr(e) {
691
+ function Xr(e) {
707
692
  return e;
708
693
  }
709
- function Yr(e, t) {
710
- t === void 0 && (t = jr);
694
+ function Zr(e, t) {
695
+ t === void 0 && (t = Xr);
711
696
  var n = [], r = !1, o = {
712
697
  read: function() {
713
698
  if (r)
@@ -761,36 +746,36 @@ function Yr(e, t) {
761
746
  };
762
747
  return o;
763
748
  }
764
- function Kr(e) {
749
+ function Gr(e) {
765
750
  e === void 0 && (e = {});
766
- var t = Yr(null);
767
- return t.options = V({ async: !0, ssr: !1 }, e), t;
751
+ var t = Zr(null);
752
+ return t.options = z({ async: !0, ssr: !1 }, e), t;
768
753
  }
769
- var Zt = function(e) {
770
- var t = e.sideCar, n = Xt(e, ["sideCar"]);
754
+ var qt = function(e) {
755
+ var t = e.sideCar, n = Gt(e, ["sideCar"]);
771
756
  if (!t)
772
757
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
773
758
  var r = t.read();
774
759
  if (!r)
775
760
  throw new Error("Sidecar medium not found");
776
- return a.createElement(r, V({}, n));
761
+ return a.createElement(r, z({}, n));
777
762
  };
778
- Zt.isSideCarExport = !0;
779
- function Xr(e, t) {
780
- return e.useMedium(t), Zt;
763
+ qt.isSideCarExport = !0;
764
+ function qr(e, t) {
765
+ return e.useMedium(t), qt;
781
766
  }
782
- var Gt = Kr(), Ye = function() {
767
+ var Qt = Gr(), Ye = function() {
783
768
  }, Ie = a.forwardRef(function(e, t) {
784
769
  var n = a.useRef(null), r = a.useState({
785
770
  onScrollCapture: Ye,
786
771
  onWheelCapture: Ye,
787
772
  onTouchMoveCapture: Ye
788
- }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, m = e.sideCar, h = e.noRelative, v = e.noIsolation, p = e.inert, g = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, b = Xt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = m, S = Ur([n, t]), P = V(V({}, b), o);
773
+ }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, m = e.sideCar, h = e.noRelative, v = e.noIsolation, p = e.inert, g = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, b = Gt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = m, S = Kr([n, t]), P = z(z({}, b), o);
789
774
  return a.createElement(
790
775
  a.Fragment,
791
776
  null,
792
- f && a.createElement(E, { sideCar: Gt, removeScrollBar: l, shards: d, noRelative: h, noIsolation: v, inert: p, setCallbacks: i, allowPinchZoom: !!g, lockRef: n, gapMode: x }),
793
- s ? a.cloneElement(a.Children.only(c), V(V({}, P), { ref: S })) : a.createElement(w, V({}, P, { className: u, ref: S }), c)
777
+ f && a.createElement(E, { sideCar: Qt, removeScrollBar: l, shards: d, noRelative: h, noIsolation: v, inert: p, setCallbacks: i, allowPinchZoom: !!g, lockRef: n, gapMode: x }),
778
+ s ? a.cloneElement(a.Children.only(c), z(z({}, P), { ref: S })) : a.createElement(w, z({}, P, { className: u, ref: S }), c)
794
779
  );
795
780
  });
796
781
  Ie.defaultProps = {
@@ -800,39 +785,39 @@ Ie.defaultProps = {
800
785
  };
801
786
  Ie.classNames = {
802
787
  fullWidth: Te,
803
- zeroRight: Me
788
+ zeroRight: Ne
804
789
  };
805
- var Zr = function() {
790
+ var Qr = function() {
806
791
  if (typeof __webpack_nonce__ < "u")
807
792
  return __webpack_nonce__;
808
793
  };
809
- function Gr() {
794
+ function Jr() {
810
795
  if (!document)
811
796
  return null;
812
797
  var e = document.createElement("style");
813
798
  e.type = "text/css";
814
- var t = Zr();
799
+ var t = Qr();
815
800
  return t && e.setAttribute("nonce", t), e;
816
801
  }
817
- function qr(e, t) {
802
+ function eo(e, t) {
818
803
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
819
804
  }
820
- function Qr(e) {
805
+ function to(e) {
821
806
  var t = document.head || document.getElementsByTagName("head")[0];
822
807
  t.appendChild(e);
823
808
  }
824
- var Jr = function() {
809
+ var no = function() {
825
810
  var e = 0, t = null;
826
811
  return {
827
812
  add: function(n) {
828
- e == 0 && (t = Gr()) && (qr(t, n), Qr(t)), e++;
813
+ e == 0 && (t = Jr()) && (eo(t, n), to(t)), e++;
829
814
  },
830
815
  remove: function() {
831
816
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
832
817
  }
833
818
  };
834
- }, eo = function() {
835
- var e = Jr();
819
+ }, ro = function() {
820
+ var e = no();
836
821
  return function(t, n) {
837
822
  a.useEffect(function() {
838
823
  return e.add(t), function() {
@@ -840,36 +825,36 @@ var Jr = function() {
840
825
  };
841
826
  }, [t && n]);
842
827
  };
843
- }, qt = function() {
844
- var e = eo(), t = function(n) {
828
+ }, Jt = function() {
829
+ var e = ro(), t = function(n) {
845
830
  var r = n.styles, o = n.dynamic;
846
831
  return e(r, o), null;
847
832
  };
848
833
  return t;
849
- }, to = {
834
+ }, oo = {
850
835
  left: 0,
851
836
  top: 0,
852
837
  right: 0,
853
838
  gap: 0
854
839
  }, Ke = function(e) {
855
840
  return parseInt(e || "", 10) || 0;
856
- }, no = function(e) {
841
+ }, io = function(e) {
857
842
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
858
843
  return [Ke(n), Ke(r), Ke(o)];
859
- }, ro = function(e) {
844
+ }, so = function(e) {
860
845
  if (e === void 0 && (e = "margin"), typeof window > "u")
861
- return to;
862
- var t = no(e), n = document.documentElement.clientWidth, r = window.innerWidth;
846
+ return oo;
847
+ var t = io(e), n = document.documentElement.clientWidth, r = window.innerWidth;
863
848
  return {
864
849
  left: t[0],
865
850
  top: t[1],
866
851
  right: t[2],
867
852
  gap: Math.max(0, r - n + t[2] - t[0])
868
853
  };
869
- }, oo = qt(), le = "data-scroll-locked", io = function(e, t, n, r) {
854
+ }, co = Jt(), le = "data-scroll-locked", ao = function(e, t, n, r) {
870
855
  var o = e.left, i = e.top, s = e.right, c = e.gap;
871
856
  return n === void 0 && (n = "margin"), `
872
- .`.concat($r, ` {
857
+ .`.concat(zr, ` {
873
858
  overflow: hidden `).concat(r, `;
874
859
  padding-right: `).concat(c, "px ").concat(r, `;
875
860
  }
@@ -890,7 +875,7 @@ var Jr = function() {
890
875
  ].filter(Boolean).join(""), `
891
876
  }
892
877
 
893
- .`).concat(Me, ` {
878
+ .`).concat(Ne, ` {
894
879
  right: `).concat(c, "px ").concat(r, `;
895
880
  }
896
881
 
@@ -898,7 +883,7 @@ var Jr = function() {
898
883
  margin-right: `).concat(c, "px ").concat(r, `;
899
884
  }
900
885
 
901
- .`).concat(Me, " .").concat(Me, ` {
886
+ .`).concat(Ne, " .").concat(Ne, ` {
902
887
  right: 0 `).concat(r, `;
903
888
  }
904
889
 
@@ -907,93 +892,93 @@ var Jr = function() {
907
892
  }
908
893
 
909
894
  body[`).concat(le, `] {
910
- `).concat(Hr, ": ").concat(c, `px;
895
+ `).concat(Ur, ": ").concat(c, `px;
911
896
  }
912
897
  `);
913
898
  }, St = function() {
914
899
  var e = parseInt(document.body.getAttribute(le) || "0", 10);
915
900
  return isFinite(e) ? e : 0;
916
- }, so = function() {
901
+ }, lo = function() {
917
902
  a.useEffect(function() {
918
903
  return document.body.setAttribute(le, (St() + 1).toString()), function() {
919
904
  var e = St() - 1;
920
905
  e <= 0 ? document.body.removeAttribute(le) : document.body.setAttribute(le, e.toString());
921
906
  };
922
907
  }, []);
923
- }, co = function(e) {
908
+ }, uo = function(e) {
924
909
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
925
- so();
910
+ lo();
926
911
  var i = a.useMemo(function() {
927
- return ro(o);
912
+ return so(o);
928
913
  }, [o]);
929
- return a.createElement(oo, { styles: io(i, !t, o, n ? "" : "!important") });
914
+ return a.createElement(co, { styles: ao(i, !t, o, n ? "" : "!important") });
930
915
  }, Je = !1;
931
916
  if (typeof window < "u")
932
917
  try {
933
- var Se = Object.defineProperty({}, "passive", {
918
+ var Pe = Object.defineProperty({}, "passive", {
934
919
  get: function() {
935
920
  return Je = !0, !0;
936
921
  }
937
922
  });
938
- window.addEventListener("test", Se, Se), window.removeEventListener("test", Se, Se);
923
+ window.addEventListener("test", Pe, Pe), window.removeEventListener("test", Pe, Pe);
939
924
  } catch {
940
925
  Je = !1;
941
926
  }
942
- var se = Je ? { passive: !1 } : !1, ao = function(e) {
927
+ var se = Je ? { passive: !1 } : !1, fo = function(e) {
943
928
  return e.tagName === "TEXTAREA";
944
- }, Qt = function(e, t) {
929
+ }, en = function(e, t) {
945
930
  if (!(e instanceof Element))
946
931
  return !1;
947
932
  var n = window.getComputedStyle(e);
948
933
  return (
949
934
  // not-not-scrollable
950
935
  n[t] !== "hidden" && // contains scroll inside self
951
- !(n.overflowY === n.overflowX && !ao(e) && n[t] === "visible")
936
+ !(n.overflowY === n.overflowX && !fo(e) && n[t] === "visible")
952
937
  );
953
- }, lo = function(e) {
954
- return Qt(e, "overflowY");
955
- }, uo = function(e) {
956
- return Qt(e, "overflowX");
938
+ }, po = function(e) {
939
+ return en(e, "overflowY");
940
+ }, ho = function(e) {
941
+ return en(e, "overflowX");
957
942
  }, At = function(e, t) {
958
943
  var n = t.ownerDocument, r = t;
959
944
  do {
960
945
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
961
- var o = Jt(e, r);
946
+ var o = tn(e, r);
962
947
  if (o) {
963
- var i = en(e, r), s = i[1], c = i[2];
948
+ var i = nn(e, r), s = i[1], c = i[2];
964
949
  if (s > c)
965
950
  return !0;
966
951
  }
967
952
  r = r.parentNode;
968
953
  } while (r && r !== n.body);
969
954
  return !1;
970
- }, fo = function(e) {
955
+ }, mo = function(e) {
971
956
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
972
957
  return [
973
958
  t,
974
959
  n,
975
960
  r
976
961
  ];
977
- }, po = function(e) {
962
+ }, vo = function(e) {
978
963
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
979
964
  return [
980
965
  t,
981
966
  n,
982
967
  r
983
968
  ];
984
- }, Jt = function(e, t) {
985
- return e === "v" ? lo(t) : uo(t);
986
- }, en = function(e, t) {
987
- return e === "v" ? fo(t) : po(t);
988
- }, ho = function(e, t) {
969
+ }, tn = function(e, t) {
970
+ return e === "v" ? po(t) : ho(t);
971
+ }, nn = function(e, t) {
972
+ return e === "v" ? mo(t) : vo(t);
973
+ }, go = function(e, t) {
989
974
  return e === "h" && t === "rtl" ? -1 : 1;
990
- }, mo = function(e, t, n, r, o) {
991
- var i = ho(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, u = t.contains(c), l = !1, f = s > 0, d = 0, m = 0;
975
+ }, yo = function(e, t, n, r, o) {
976
+ var i = go(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, u = t.contains(c), l = !1, f = s > 0, d = 0, m = 0;
992
977
  do {
993
978
  if (!c)
994
979
  break;
995
- var h = en(e, c), v = h[0], p = h[1], g = h[2], y = p - g - i * v;
996
- (v || y) && Jt(e, c) && (d += y, m += v);
980
+ var h = nn(e, c), v = h[0], p = h[1], g = h[2], y = p - g - i * v;
981
+ (v || y) && tn(e, c) && (d += y, m += v);
997
982
  var w = c.parentNode;
998
983
  c = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
999
984
  } while (
@@ -1002,28 +987,28 @@ var se = Je ? { passive: !1 } : !1, ao = function(e) {
1002
987
  u && (t.contains(c) || t === c)
1003
988
  );
1004
989
  return (f && Math.abs(d) < 1 || !f && Math.abs(m) < 1) && (l = !0), l;
1005
- }, Ae = function(e) {
990
+ }, Se = function(e) {
1006
991
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
1007
992
  }, Rt = function(e) {
1008
993
  return [e.deltaX, e.deltaY];
1009
994
  }, Ot = function(e) {
1010
995
  return e && "current" in e ? e.current : e;
1011
- }, vo = function(e, t) {
996
+ }, wo = function(e, t) {
1012
997
  return e[0] === t[0] && e[1] === t[1];
1013
- }, go = function(e) {
998
+ }, bo = function(e) {
1014
999
  return `
1015
1000
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
1016
1001
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
1017
1002
  `);
1018
- }, yo = 0, ce = [];
1019
- function wo(e) {
1020
- var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(yo++)[0], i = a.useState(qt)[0], s = a.useRef(e);
1003
+ }, xo = 0, ce = [];
1004
+ function Eo(e) {
1005
+ var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(xo++)[0], i = a.useState(Jt)[0], s = a.useRef(e);
1021
1006
  a.useEffect(function() {
1022
1007
  s.current = e;
1023
1008
  }, [e]), a.useEffect(function() {
1024
1009
  if (e.inert) {
1025
1010
  document.body.classList.add("block-interactivity-".concat(o));
1026
- var p = Br([e.lockRef.current], (e.shards || []).map(Ot), !0).filter(Boolean);
1011
+ var p = Vr([e.lockRef.current], (e.shards || []).map(Ot), !0).filter(Boolean);
1027
1012
  return p.forEach(function(g) {
1028
1013
  return g.classList.add("allow-interactivity-".concat(o));
1029
1014
  }), function() {
@@ -1036,7 +1021,7 @@ function wo(e) {
1036
1021
  var c = a.useCallback(function(p, g) {
1037
1022
  if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
1038
1023
  return !s.current.allowPinchZoom;
1039
- var y = Ae(p), w = n.current, x = "deltaX" in p ? p.deltaX : w[0] - y[0], b = "deltaY" in p ? p.deltaY : w[1] - y[1], E, S = p.target, P = Math.abs(x) > Math.abs(b) ? "h" : "v";
1024
+ var y = Se(p), w = n.current, x = "deltaX" in p ? p.deltaX : w[0] - y[0], b = "deltaY" in p ? p.deltaY : w[1] - y[1], E, S = p.target, P = Math.abs(x) > Math.abs(b) ? "h" : "v";
1040
1025
  if ("touches" in p && P === "h" && S.type === "range")
1041
1026
  return !1;
1042
1027
  var R = At(P, S);
@@ -1046,13 +1031,13 @@ function wo(e) {
1046
1031
  return !1;
1047
1032
  if (!r.current && "changedTouches" in p && (x || b) && (r.current = E), !E)
1048
1033
  return !0;
1049
- var M = r.current || E;
1050
- return mo(M, g, p, M === "h" ? x : b);
1034
+ var T = r.current || E;
1035
+ return yo(T, g, p, T === "h" ? x : b);
1051
1036
  }, []), u = a.useCallback(function(p) {
1052
1037
  var g = p;
1053
1038
  if (!(!ce.length || ce[ce.length - 1] !== i)) {
1054
- var y = "deltaY" in g ? Rt(g) : Ae(g), w = t.current.filter(function(E) {
1055
- return E.name === g.type && (E.target === g.target || g.target === E.shadowParent) && vo(E.delta, y);
1039
+ var y = "deltaY" in g ? Rt(g) : Se(g), w = t.current.filter(function(E) {
1040
+ return E.name === g.type && (E.target === g.target || g.target === E.shadowParent) && wo(E.delta, y);
1056
1041
  })[0];
1057
1042
  if (w && w.should) {
1058
1043
  g.cancelable && g.preventDefault();
@@ -1066,18 +1051,18 @@ function wo(e) {
1066
1051
  }
1067
1052
  }
1068
1053
  }, []), l = a.useCallback(function(p, g, y, w) {
1069
- var x = { name: p, delta: g, target: y, should: w, shadowParent: bo(y) };
1054
+ var x = { name: p, delta: g, target: y, should: w, shadowParent: Co(y) };
1070
1055
  t.current.push(x), setTimeout(function() {
1071
1056
  t.current = t.current.filter(function(b) {
1072
1057
  return b !== x;
1073
1058
  });
1074
1059
  }, 1);
1075
1060
  }, []), f = a.useCallback(function(p) {
1076
- n.current = Ae(p), r.current = void 0;
1061
+ n.current = Se(p), r.current = void 0;
1077
1062
  }, []), d = a.useCallback(function(p) {
1078
1063
  l(p.type, Rt(p), p.target, c(p, e.lockRef.current));
1079
1064
  }, []), m = a.useCallback(function(p) {
1080
- l(p.type, Ae(p), p.target, c(p, e.lockRef.current));
1065
+ l(p.type, Se(p), p.target, c(p, e.lockRef.current));
1081
1066
  }, []);
1082
1067
  a.useEffect(function() {
1083
1068
  return ce.push(i), e.setCallbacks({
@@ -1094,40 +1079,40 @@ function wo(e) {
1094
1079
  return a.createElement(
1095
1080
  a.Fragment,
1096
1081
  null,
1097
- v ? a.createElement(i, { styles: go(o) }) : null,
1098
- h ? a.createElement(co, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
1082
+ v ? a.createElement(i, { styles: bo(o) }) : null,
1083
+ h ? a.createElement(uo, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
1099
1084
  );
1100
1085
  }
1101
- function bo(e) {
1086
+ function Co(e) {
1102
1087
  for (var t = null; e !== null; )
1103
1088
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1104
1089
  return t;
1105
1090
  }
1106
- const xo = Xr(Gt, wo);
1107
- var tn = a.forwardRef(function(e, t) {
1108
- return a.createElement(Ie, V({}, e, { ref: t, sideCar: xo }));
1091
+ const Po = qr(Qt, Eo);
1092
+ var rn = a.forwardRef(function(e, t) {
1093
+ return a.createElement(Ie, z({}, e, { ref: t, sideCar: Po }));
1109
1094
  });
1110
- tn.classNames = Ie.classNames;
1111
- var Eo = function(e) {
1095
+ rn.classNames = Ie.classNames;
1096
+ var So = function(e) {
1112
1097
  if (typeof document > "u")
1113
1098
  return null;
1114
1099
  var t = Array.isArray(e) ? e[0] : e;
1115
1100
  return t.ownerDocument.body;
1116
- }, ae = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Oe = {}, Xe = 0, nn = function(e) {
1117
- return e && (e.host || nn(e.parentNode));
1118
- }, Co = function(e, t) {
1101
+ }, ae = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Re = {}, Xe = 0, on = function(e) {
1102
+ return e && (e.host || on(e.parentNode));
1103
+ }, Ao = function(e, t) {
1119
1104
  return t.map(function(n) {
1120
1105
  if (e.contains(n))
1121
1106
  return n;
1122
- var r = nn(n);
1107
+ var r = on(n);
1123
1108
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
1124
1109
  }).filter(function(n) {
1125
1110
  return !!n;
1126
1111
  });
1127
- }, Po = function(e, t, n, r) {
1128
- var o = Co(t, Array.isArray(e) ? e : [e]);
1129
- Oe[n] || (Oe[n] = /* @__PURE__ */ new WeakMap());
1130
- var i = Oe[n], s = [], c = /* @__PURE__ */ new Set(), u = new Set(o), l = function(d) {
1112
+ }, Ro = function(e, t, n, r) {
1113
+ var o = Ao(t, Array.isArray(e) ? e : [e]);
1114
+ Re[n] || (Re[n] = /* @__PURE__ */ new WeakMap());
1115
+ var i = Re[n], s = [], c = /* @__PURE__ */ new Set(), u = new Set(o), l = function(d) {
1131
1116
  !d || c.has(d) || (c.add(d), l(d.parentNode));
1132
1117
  };
1133
1118
  o.forEach(l);
@@ -1138,7 +1123,7 @@ var Eo = function(e) {
1138
1123
  else
1139
1124
  try {
1140
1125
  var h = m.getAttribute(r), v = h !== null && h !== "false", p = (ae.get(m) || 0) + 1, g = (i.get(m) || 0) + 1;
1141
- ae.set(m, p), i.set(m, g), s.push(m), p === 1 && v && Re.set(m, !0), g === 1 && m.setAttribute(n, "true"), v || m.setAttribute(r, "true");
1126
+ ae.set(m, p), i.set(m, g), s.push(m), p === 1 && v && Ae.set(m, !0), g === 1 && m.setAttribute(n, "true"), v || m.setAttribute(r, "true");
1142
1127
  } catch (y) {
1143
1128
  console.error("aria-hidden: cannot operate on ", m, y);
1144
1129
  }
@@ -1147,17 +1132,17 @@ var Eo = function(e) {
1147
1132
  return f(t), c.clear(), Xe++, function() {
1148
1133
  s.forEach(function(d) {
1149
1134
  var m = ae.get(d) - 1, h = i.get(d) - 1;
1150
- ae.set(d, m), i.set(d, h), m || (Re.has(d) || d.removeAttribute(r), Re.delete(d)), h || d.removeAttribute(n);
1151
- }), Xe--, Xe || (ae = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Oe = {});
1135
+ ae.set(d, m), i.set(d, h), m || (Ae.has(d) || d.removeAttribute(r), Ae.delete(d)), h || d.removeAttribute(n);
1136
+ }), Xe--, Xe || (ae = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Re = {});
1152
1137
  };
1153
- }, So = function(e, t, n) {
1138
+ }, Oo = function(e, t, n) {
1154
1139
  n === void 0 && (n = "data-aria-hidden");
1155
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Eo(e);
1156
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Po(r, o, n, "aria-hidden")) : function() {
1140
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = So(e);
1141
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Ro(r, o, n, "aria-hidden")) : function() {
1157
1142
  return null;
1158
1143
  };
1159
1144
  };
1160
- function Ao(e) {
1145
+ function No(e) {
1161
1146
  const [t, n] = a.useState(void 0);
1162
1147
  return ee(() => {
1163
1148
  if (e) {
@@ -1179,15 +1164,15 @@ function Ao(e) {
1179
1164
  n(void 0);
1180
1165
  }, [e]), t;
1181
1166
  }
1182
- const Ro = ["top", "right", "bottom", "left"], te = Math.min, W = Math.max, Le = Math.round, Ne = Math.floor, j = (e) => ({
1167
+ const To = ["top", "right", "bottom", "left"], te = Math.min, W = Math.max, ke = Math.round, Oe = Math.floor, j = (e) => ({
1183
1168
  x: e,
1184
1169
  y: e
1185
- }), Oo = {
1170
+ }), Mo = {
1186
1171
  left: "right",
1187
1172
  right: "left",
1188
1173
  bottom: "top",
1189
1174
  top: "bottom"
1190
- }, No = {
1175
+ }, ko = {
1191
1176
  start: "end",
1192
1177
  end: "start"
1193
1178
  };
@@ -1209,47 +1194,48 @@ function ot(e) {
1209
1194
  function it(e) {
1210
1195
  return e === "y" ? "height" : "width";
1211
1196
  }
1197
+ const Lo = /* @__PURE__ */ new Set(["top", "bottom"]);
1212
1198
  function U(e) {
1213
- return ["top", "bottom"].includes(Z(e)) ? "y" : "x";
1199
+ return Lo.has(Z(e)) ? "y" : "x";
1214
1200
  }
1215
1201
  function st(e) {
1216
1202
  return ot(U(e));
1217
1203
  }
1218
- function Mo(e, t, n) {
1204
+ function Do(e, t, n) {
1219
1205
  n === void 0 && (n = !1);
1220
1206
  const r = he(e), o = st(e), i = it(o);
1221
1207
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1222
- return t.reference[i] > t.floating[i] && (s = De(s)), [s, De(s)];
1208
+ return t.reference[i] > t.floating[i] && (s = Le(s)), [s, Le(s)];
1223
1209
  }
1224
- function To(e) {
1225
- const t = De(e);
1210
+ function _o(e) {
1211
+ const t = Le(e);
1226
1212
  return [tt(e), t, tt(t)];
1227
1213
  }
1228
1214
  function tt(e) {
1229
- return e.replace(/start|end/g, (t) => No[t]);
1215
+ return e.replace(/start|end/g, (t) => ko[t]);
1230
1216
  }
1231
- function ko(e, t, n) {
1232
- const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
1217
+ const Nt = ["left", "right"], Tt = ["right", "left"], Fo = ["top", "bottom"], Io = ["bottom", "top"];
1218
+ function Wo(e, t, n) {
1233
1219
  switch (e) {
1234
1220
  case "top":
1235
1221
  case "bottom":
1236
- return n ? t ? o : r : t ? r : o;
1222
+ return n ? t ? Tt : Nt : t ? Nt : Tt;
1237
1223
  case "left":
1238
1224
  case "right":
1239
- return t ? i : s;
1225
+ return t ? Fo : Io;
1240
1226
  default:
1241
1227
  return [];
1242
1228
  }
1243
1229
  }
1244
- function Lo(e, t, n, r) {
1230
+ function Bo(e, t, n, r) {
1245
1231
  const o = he(e);
1246
- let i = ko(Z(e), n === "start", r);
1232
+ let i = Wo(Z(e), n === "start", r);
1247
1233
  return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(tt)))), i;
1248
1234
  }
1249
- function De(e) {
1250
- return e.replace(/left|right|bottom|top/g, (t) => Oo[t]);
1235
+ function Le(e) {
1236
+ return e.replace(/left|right|bottom|top/g, (t) => Mo[t]);
1251
1237
  }
1252
- function Do(e) {
1238
+ function $o(e) {
1253
1239
  return {
1254
1240
  top: 0,
1255
1241
  right: 0,
@@ -1258,15 +1244,15 @@ function Do(e) {
1258
1244
  ...e
1259
1245
  };
1260
1246
  }
1261
- function rn(e) {
1262
- return typeof e != "number" ? Do(e) : {
1247
+ function sn(e) {
1248
+ return typeof e != "number" ? $o(e) : {
1263
1249
  top: e,
1264
1250
  right: e,
1265
1251
  bottom: e,
1266
1252
  left: e
1267
1253
  };
1268
1254
  }
1269
- function _e(e) {
1255
+ function De(e) {
1270
1256
  const {
1271
1257
  x: t,
1272
1258
  y: n,
@@ -1284,7 +1270,7 @@ function _e(e) {
1284
1270
  y: n
1285
1271
  };
1286
1272
  }
1287
- function Nt(e, t, n) {
1273
+ function Mt(e, t, n) {
1288
1274
  let {
1289
1275
  reference: r,
1290
1276
  floating: o
@@ -1332,7 +1318,7 @@ function Nt(e, t, n) {
1332
1318
  }
1333
1319
  return h;
1334
1320
  }
1335
- const _o = async (e, t, n) => {
1321
+ const Ho = async (e, t, n) => {
1336
1322
  const {
1337
1323
  placement: r = "bottom",
1338
1324
  strategy: o = "absolute",
@@ -1346,7 +1332,7 @@ const _o = async (e, t, n) => {
1346
1332
  }), {
1347
1333
  x: f,
1348
1334
  y: d
1349
- } = Nt(l, r, u), m = r, h = {}, v = 0;
1335
+ } = Mt(l, r, u), m = r, h = {}, v = 0;
1350
1336
  for (let p = 0; p < c.length; p++) {
1351
1337
  const {
1352
1338
  name: g,
@@ -1383,7 +1369,7 @@ const _o = async (e, t, n) => {
1383
1369
  }) : E.rects), {
1384
1370
  x: f,
1385
1371
  y: d
1386
- } = Nt(l, m, u)), p = -1);
1372
+ } = Mt(l, m, u)), p = -1);
1387
1373
  }
1388
1374
  return {
1389
1375
  x: f,
@@ -1409,7 +1395,7 @@ async function ye(e, t) {
1409
1395
  elementContext: d = "floating",
1410
1396
  altBoundary: m = !1,
1411
1397
  padding: h = 0
1412
- } = X(t, e), v = rn(h), g = c[m ? d === "floating" ? "reference" : "floating" : d], y = _e(await i.getClippingRect({
1398
+ } = X(t, e), v = sn(h), g = c[m ? d === "floating" ? "reference" : "floating" : d], y = De(await i.getClippingRect({
1413
1399
  element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
1414
1400
  boundary: l,
1415
1401
  rootBoundary: f,
@@ -1425,7 +1411,7 @@ async function ye(e, t) {
1425
1411
  } : {
1426
1412
  x: 1,
1427
1413
  y: 1
1428
- }, E = _e(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1414
+ }, E = De(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1429
1415
  elements: c,
1430
1416
  rect: w,
1431
1417
  offsetParent: x,
@@ -1438,7 +1424,7 @@ async function ye(e, t) {
1438
1424
  right: (E.right - y.right + v.right) / b.x
1439
1425
  };
1440
1426
  }
1441
- const Fo = (e) => ({
1427
+ const Vo = (e) => ({
1442
1428
  name: "arrow",
1443
1429
  options: e,
1444
1430
  async fn(t) {
@@ -1456,13 +1442,13 @@ const Fo = (e) => ({
1456
1442
  } = X(e, t) || {};
1457
1443
  if (l == null)
1458
1444
  return {};
1459
- const d = rn(f), m = {
1445
+ const d = sn(f), m = {
1460
1446
  x: n,
1461
1447
  y: r
1462
1448
  }, h = st(o), v = it(h), p = await s.getDimensions(l), g = h === "y", y = g ? "top" : "left", w = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", b = i.reference[v] + i.reference[h] - m[h] - i.floating[v], E = m[h] - i.reference[h], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1463
1449
  let P = S ? S[x] : 0;
1464
1450
  (!P || !await (s.isElement == null ? void 0 : s.isElement(S))) && (P = c.floating[x] || i.floating[v]);
1465
- const R = b / 2 - E / 2, M = P / 2 - p[v] / 2 - 1, O = te(d[y], M), _ = te(d[w], M), F = O, T = P - p[v] - _, N = P / 2 - p[v] / 2 + R, I = et(F, N, T), k = !u.arrow && he(o) != null && N !== I && i.reference[v] / 2 - (N < F ? O : _) - p[v] / 2 < 0, L = k ? N < F ? N - F : N - T : 0;
1451
+ const R = b / 2 - E / 2, T = P / 2 - p[v] / 2 - 1, O = te(d[y], T), _ = te(d[w], T), F = O, M = P - p[v] - _, N = P / 2 - p[v] / 2 + R, I = et(F, N, M), k = !u.arrow && he(o) != null && N !== I && i.reference[v] / 2 - (N < F ? O : _) - p[v] / 2 < 0, L = k ? N < F ? N - F : N - M : 0;
1466
1452
  return {
1467
1453
  [h]: m[h] + L,
1468
1454
  data: {
@@ -1475,7 +1461,7 @@ const Fo = (e) => ({
1475
1461
  reset: k
1476
1462
  };
1477
1463
  }
1478
- }), Io = function(e) {
1464
+ }), zo = function(e) {
1479
1465
  return e === void 0 && (e = {}), {
1480
1466
  name: "flip",
1481
1467
  options: e,
@@ -1499,18 +1485,18 @@ const Fo = (e) => ({
1499
1485
  } = X(e, t);
1500
1486
  if ((n = i.arrow) != null && n.alignmentOffset)
1501
1487
  return {};
1502
- const y = Z(o), w = U(c), x = Z(c) === c, b = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = m || (x || !p ? [De(c)] : To(c)), S = v !== "none";
1503
- !m && S && E.push(...Lo(c, p, v, b));
1504
- const P = [c, ...E], R = await ye(t, g), M = [];
1488
+ const y = Z(o), w = U(c), x = Z(c) === c, b = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = m || (x || !p ? [Le(c)] : _o(c)), S = v !== "none";
1489
+ !m && S && E.push(...Bo(c, p, v, b));
1490
+ const P = [c, ...E], R = await ye(t, g), T = [];
1505
1491
  let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1506
- if (f && M.push(R[y]), d) {
1507
- const N = Mo(o, s, b);
1508
- M.push(R[N[0]], R[N[1]]);
1492
+ if (f && T.push(R[y]), d) {
1493
+ const N = Do(o, s, b);
1494
+ T.push(R[N[0]], R[N[1]]);
1509
1495
  }
1510
1496
  if (O = [...O, {
1511
1497
  placement: o,
1512
- overflows: M
1513
- }], !M.every((N) => N <= 0)) {
1498
+ overflows: T
1499
+ }], !T.every((N) => N <= 0)) {
1514
1500
  var _, F;
1515
1501
  const N = (((_ = i.flip) == null ? void 0 : _.index) || 0) + 1, I = P[N];
1516
1502
  if (I && (!(d === "alignment" ? w !== U(I) : !1) || // We leave the current main axis only if every placement on that axis
@@ -1529,8 +1515,8 @@ const Fo = (e) => ({
1529
1515
  if (!k)
1530
1516
  switch (h) {
1531
1517
  case "bestFit": {
1532
- var T;
1533
- const L = (T = O.filter((A) => {
1518
+ var M;
1519
+ const L = (M = O.filter((A) => {
1534
1520
  if (S) {
1535
1521
  const D = U(A.placement);
1536
1522
  return D === w || // Create a bias to the `y` side axis due to horizontal
@@ -1538,7 +1524,7 @@ const Fo = (e) => ({
1538
1524
  D === "y";
1539
1525
  }
1540
1526
  return !0;
1541
- }).map((A) => [A.placement, A.overflows.filter((D) => D > 0).reduce((D, z) => D + z, 0)]).sort((A, D) => A[1] - D[1])[0]) == null ? void 0 : T[0];
1527
+ }).map((A) => [A.placement, A.overflows.filter((D) => D > 0).reduce((D, V) => D + V, 0)]).sort((A, D) => A[1] - D[1])[0]) == null ? void 0 : M[0];
1542
1528
  L && (k = L);
1543
1529
  break;
1544
1530
  }
@@ -1557,7 +1543,7 @@ const Fo = (e) => ({
1557
1543
  }
1558
1544
  };
1559
1545
  };
1560
- function Mt(e, t) {
1546
+ function kt(e, t) {
1561
1547
  return {
1562
1548
  top: e.top - t.height,
1563
1549
  right: e.right - t.width,
@@ -1565,10 +1551,10 @@ function Mt(e, t) {
1565
1551
  left: e.left - t.width
1566
1552
  };
1567
1553
  }
1568
- function Tt(e) {
1569
- return Ro.some((t) => e[t] >= 0);
1554
+ function Lt(e) {
1555
+ return To.some((t) => e[t] >= 0);
1570
1556
  }
1571
- const Wo = function(e) {
1557
+ const Uo = function(e) {
1572
1558
  return e === void 0 && (e = {}), {
1573
1559
  name: "hide",
1574
1560
  options: e,
@@ -1584,11 +1570,11 @@ const Wo = function(e) {
1584
1570
  const i = await ye(t, {
1585
1571
  ...o,
1586
1572
  elementContext: "reference"
1587
- }), s = Mt(i, n.reference);
1573
+ }), s = kt(i, n.reference);
1588
1574
  return {
1589
1575
  data: {
1590
1576
  referenceHiddenOffsets: s,
1591
- referenceHidden: Tt(s)
1577
+ referenceHidden: Lt(s)
1592
1578
  }
1593
1579
  };
1594
1580
  }
@@ -1596,11 +1582,11 @@ const Wo = function(e) {
1596
1582
  const i = await ye(t, {
1597
1583
  ...o,
1598
1584
  altBoundary: !0
1599
- }), s = Mt(i, n.floating);
1585
+ }), s = kt(i, n.floating);
1600
1586
  return {
1601
1587
  data: {
1602
1588
  escapedOffsets: s,
1603
- escaped: Tt(s)
1589
+ escaped: Lt(s)
1604
1590
  }
1605
1591
  };
1606
1592
  }
@@ -1609,13 +1595,13 @@ const Wo = function(e) {
1609
1595
  }
1610
1596
  }
1611
1597
  };
1612
- };
1613
- async function Bo(e, t) {
1598
+ }, cn = /* @__PURE__ */ new Set(["left", "top"]);
1599
+ async function jo(e, t) {
1614
1600
  const {
1615
1601
  placement: n,
1616
1602
  platform: r,
1617
1603
  elements: o
1618
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Z(n), c = he(n), u = U(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = i && u ? -1 : 1, d = X(t, e);
1604
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Z(n), c = he(n), u = U(n) === "y", l = cn.has(s) ? -1 : 1, f = i && u ? -1 : 1, d = X(t, e);
1619
1605
  let {
1620
1606
  mainAxis: m,
1621
1607
  crossAxis: h,
@@ -1637,7 +1623,7 @@ async function Bo(e, t) {
1637
1623
  y: h * f
1638
1624
  };
1639
1625
  }
1640
- const $o = function(e) {
1626
+ const Yo = function(e) {
1641
1627
  return e === void 0 && (e = 0), {
1642
1628
  name: "offset",
1643
1629
  options: e,
@@ -1648,7 +1634,7 @@ const $o = function(e) {
1648
1634
  y: i,
1649
1635
  placement: s,
1650
1636
  middlewareData: c
1651
- } = t, u = await Bo(t, e);
1637
+ } = t, u = await jo(t, e);
1652
1638
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
1653
1639
  x: o + u.x,
1654
1640
  y: i + u.y,
@@ -1659,7 +1645,7 @@ const $o = function(e) {
1659
1645
  };
1660
1646
  }
1661
1647
  };
1662
- }, Ho = function(e) {
1648
+ }, Ko = function(e) {
1663
1649
  return e === void 0 && (e = {}), {
1664
1650
  name: "shift",
1665
1651
  options: e,
@@ -1715,7 +1701,7 @@ const $o = function(e) {
1715
1701
  };
1716
1702
  }
1717
1703
  };
1718
- }, zo = function(e) {
1704
+ }, Xo = function(e) {
1719
1705
  return e === void 0 && (e = {}), {
1720
1706
  options: e,
1721
1707
  fn(t) {
@@ -1748,7 +1734,7 @@ const $o = function(e) {
1748
1734
  }
1749
1735
  if (l) {
1750
1736
  var y, w;
1751
- const x = m === "y" ? "width" : "height", b = ["top", "left"].includes(Z(o)), E = i.reference[d] - i.floating[x] + (b && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (b ? 0 : g.crossAxis), S = i.reference[d] + i.reference[x] + (b ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (b ? g.crossAxis : 0);
1737
+ const x = m === "y" ? "width" : "height", b = cn.has(Z(o)), E = i.reference[d] - i.floating[x] + (b && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (b ? 0 : g.crossAxis), S = i.reference[d] + i.reference[x] + (b ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (b ? g.crossAxis : 0);
1752
1738
  v < E ? v = E : v > S && (v = S);
1753
1739
  }
1754
1740
  return {
@@ -1757,7 +1743,7 @@ const $o = function(e) {
1757
1743
  };
1758
1744
  }
1759
1745
  };
1760
- }, Vo = function(e) {
1746
+ }, Zo = function(e) {
1761
1747
  return e === void 0 && (e = {}), {
1762
1748
  name: "size",
1763
1749
  options: e,
@@ -1781,16 +1767,16 @@ const $o = function(e) {
1781
1767
  const w = p - f.top - f.bottom, x = v - f.left - f.right, b = te(p - f[g], w), E = te(v - f[y], x), S = !t.middlewareData.shift;
1782
1768
  let P = b, R = E;
1783
1769
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = x), (r = t.middlewareData.shift) != null && r.enabled.y && (P = w), S && !m) {
1784
- const O = W(f.left, 0), _ = W(f.right, 0), F = W(f.top, 0), T = W(f.bottom, 0);
1785
- h ? R = v - 2 * (O !== 0 || _ !== 0 ? O + _ : W(f.left, f.right)) : P = p - 2 * (F !== 0 || T !== 0 ? F + T : W(f.top, f.bottom));
1770
+ const O = W(f.left, 0), _ = W(f.right, 0), F = W(f.top, 0), M = W(f.bottom, 0);
1771
+ h ? R = v - 2 * (O !== 0 || _ !== 0 ? O + _ : W(f.left, f.right)) : P = p - 2 * (F !== 0 || M !== 0 ? F + M : W(f.top, f.bottom));
1786
1772
  }
1787
1773
  await u({
1788
1774
  ...t,
1789
1775
  availableWidth: R,
1790
1776
  availableHeight: P
1791
1777
  });
1792
- const M = await s.getDimensions(c.floating);
1793
- return v !== M.width || p !== M.height ? {
1778
+ const T = await s.getDimensions(c.floating);
1779
+ return v !== T.width || p !== T.height ? {
1794
1780
  reset: {
1795
1781
  rects: !0
1796
1782
  }
@@ -1802,7 +1788,7 @@ function We() {
1802
1788
  return typeof window < "u";
1803
1789
  }
1804
1790
  function me(e) {
1805
- return on(e) ? (e.nodeName || "").toLowerCase() : "#document";
1791
+ return an(e) ? (e.nodeName || "").toLowerCase() : "#document";
1806
1792
  }
1807
1793
  function B(e) {
1808
1794
  var t;
@@ -1810,9 +1796,9 @@ function B(e) {
1810
1796
  }
1811
1797
  function K(e) {
1812
1798
  var t;
1813
- return (t = (on(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1799
+ return (t = (an(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1814
1800
  }
1815
- function on(e) {
1801
+ function an(e) {
1816
1802
  return We() ? e instanceof Node || e instanceof B(e).Node : !1;
1817
1803
  }
1818
1804
  function $(e) {
@@ -1821,23 +1807,26 @@ function $(e) {
1821
1807
  function Y(e) {
1822
1808
  return We() ? e instanceof HTMLElement || e instanceof B(e).HTMLElement : !1;
1823
1809
  }
1824
- function kt(e) {
1810
+ function Dt(e) {
1825
1811
  return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
1826
1812
  }
1827
- function xe(e) {
1813
+ const Go = /* @__PURE__ */ new Set(["inline", "contents"]);
1814
+ function be(e) {
1828
1815
  const {
1829
1816
  overflow: t,
1830
1817
  overflowX: n,
1831
1818
  overflowY: r,
1832
1819
  display: o
1833
1820
  } = H(e);
1834
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1821
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Go.has(o);
1835
1822
  }
1836
- function Uo(e) {
1837
- return ["table", "td", "th"].includes(me(e));
1823
+ const qo = /* @__PURE__ */ new Set(["table", "td", "th"]);
1824
+ function Qo(e) {
1825
+ return qo.has(me(e));
1838
1826
  }
1827
+ const Jo = [":popover-open", ":modal"];
1839
1828
  function Be(e) {
1840
- return [":popover-open", ":modal"].some((t) => {
1829
+ return Jo.some((t) => {
1841
1830
  try {
1842
1831
  return e.matches(t);
1843
1832
  } catch {
@@ -1845,11 +1834,12 @@ function Be(e) {
1845
1834
  }
1846
1835
  });
1847
1836
  }
1837
+ const ei = ["transform", "translate", "scale", "rotate", "perspective"], ti = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ni = ["paint", "layout", "strict", "content"];
1848
1838
  function ct(e) {
1849
1839
  const t = at(), n = $(e) ? H(e) : e;
1850
- return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1840
+ return ei.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ti.some((r) => (n.willChange || "").includes(r)) || ni.some((r) => (n.contain || "").includes(r));
1851
1841
  }
1852
- function jo(e) {
1842
+ function ri(e) {
1853
1843
  let t = ne(e);
1854
1844
  for (; Y(t) && !de(t); ) {
1855
1845
  if (ct(t))
@@ -1863,8 +1853,9 @@ function jo(e) {
1863
1853
  function at() {
1864
1854
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1865
1855
  }
1856
+ const oi = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1866
1857
  function de(e) {
1867
- return ["html", "body", "#document"].includes(me(e));
1858
+ return oi.has(me(e));
1868
1859
  }
1869
1860
  function H(e) {
1870
1861
  return B(e).getComputedStyle(e);
@@ -1885,32 +1876,32 @@ function ne(e) {
1885
1876
  // Step into the shadow DOM of the parent of a slotted node.
1886
1877
  e.assignedSlot || // DOM Element detected.
1887
1878
  e.parentNode || // ShadowRoot detected.
1888
- kt(e) && e.host || // Fallback.
1879
+ Dt(e) && e.host || // Fallback.
1889
1880
  K(e)
1890
1881
  );
1891
- return kt(t) ? t.host : t;
1882
+ return Dt(t) ? t.host : t;
1892
1883
  }
1893
- function sn(e) {
1884
+ function ln(e) {
1894
1885
  const t = ne(e);
1895
- return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && xe(t) ? t : sn(t);
1886
+ return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && be(t) ? t : ln(t);
1896
1887
  }
1897
1888
  function we(e, t, n) {
1898
1889
  var r;
1899
1890
  t === void 0 && (t = []), n === void 0 && (n = !0);
1900
- const o = sn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
1891
+ const o = ln(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
1901
1892
  if (i) {
1902
1893
  const c = nt(s);
1903
- return t.concat(s, s.visualViewport || [], xe(o) ? o : [], c && n ? we(c) : []);
1894
+ return t.concat(s, s.visualViewport || [], be(o) ? o : [], c && n ? we(c) : []);
1904
1895
  }
1905
1896
  return t.concat(o, we(o, [], n));
1906
1897
  }
1907
1898
  function nt(e) {
1908
1899
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1909
1900
  }
1910
- function cn(e) {
1901
+ function un(e) {
1911
1902
  const t = H(e);
1912
1903
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1913
- const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Le(n) !== i || Le(r) !== s;
1904
+ const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = ke(n) !== i || ke(r) !== s;
1914
1905
  return c && (n = i, r = s), {
1915
1906
  width: n,
1916
1907
  height: r,
@@ -1928,22 +1919,22 @@ function ue(e) {
1928
1919
  width: r,
1929
1920
  height: o,
1930
1921
  $: i
1931
- } = cn(t);
1932
- let s = (i ? Le(n.width) : n.width) / r, c = (i ? Le(n.height) : n.height) / o;
1922
+ } = un(t);
1923
+ let s = (i ? ke(n.width) : n.width) / r, c = (i ? ke(n.height) : n.height) / o;
1933
1924
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1934
1925
  x: s,
1935
1926
  y: c
1936
1927
  };
1937
1928
  }
1938
- const Yo = /* @__PURE__ */ j(0);
1939
- function an(e) {
1929
+ const ii = /* @__PURE__ */ j(0);
1930
+ function fn(e) {
1940
1931
  const t = B(e);
1941
- return !at() || !t.visualViewport ? Yo : {
1932
+ return !at() || !t.visualViewport ? ii : {
1942
1933
  x: t.visualViewport.offsetLeft,
1943
1934
  y: t.visualViewport.offsetTop
1944
1935
  };
1945
1936
  }
1946
- function Ko(e, t, n) {
1937
+ function si(e, t, n) {
1947
1938
  return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
1948
1939
  }
1949
1940
  function ie(e, t, n, r) {
@@ -1951,7 +1942,7 @@ function ie(e, t, n, r) {
1951
1942
  const o = e.getBoundingClientRect(), i = lt(e);
1952
1943
  let s = j(1);
1953
1944
  t && (r ? $(r) && (s = ue(r)) : s = ue(e));
1954
- const c = Ko(i, n, r) ? an(i) : j(0);
1945
+ const c = si(i, n, r) ? fn(i) : j(0);
1955
1946
  let u = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, f = o.width / s.x, d = o.height / s.y;
1956
1947
  if (i) {
1957
1948
  const m = B(i), h = r && $(r) ? B(r) : r;
@@ -1961,7 +1952,7 @@ function ie(e, t, n, r) {
1961
1952
  u *= g.x, l *= g.y, f *= g.x, d *= g.y, u += x, l += b, v = B(p), p = nt(v);
1962
1953
  }
1963
1954
  }
1964
- return _e({
1955
+ return De({
1965
1956
  width: f,
1966
1957
  height: d,
1967
1958
  x: u,
@@ -1972,7 +1963,7 @@ function ut(e, t) {
1972
1963
  const n = $e(e).scrollLeft;
1973
1964
  return t ? t.left + n : ie(K(e)).left + n;
1974
1965
  }
1975
- function ln(e, t, n) {
1966
+ function dn(e, t, n) {
1976
1967
  n === void 0 && (n = !1);
1977
1968
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
1978
1969
  // RTL <body> scrollbar.
@@ -1983,7 +1974,7 @@ function ln(e, t, n) {
1983
1974
  y: i
1984
1975
  };
1985
1976
  }
1986
- function Xo(e) {
1977
+ function ci(e) {
1987
1978
  let {
1988
1979
  elements: t,
1989
1980
  rect: n,
@@ -1998,11 +1989,11 @@ function Xo(e) {
1998
1989
  scrollTop: 0
1999
1990
  }, l = j(1);
2000
1991
  const f = j(0), d = Y(r);
2001
- if ((d || !d && !i) && ((me(r) !== "body" || xe(s)) && (u = $e(r)), Y(r))) {
1992
+ if ((d || !d && !i) && ((me(r) !== "body" || be(s)) && (u = $e(r)), Y(r))) {
2002
1993
  const h = ie(r);
2003
1994
  l = ue(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
2004
1995
  }
2005
- const m = s && !d && !i ? ln(s, u, !0) : j(0);
1996
+ const m = s && !d && !i ? dn(s, u, !0) : j(0);
2006
1997
  return {
2007
1998
  width: n.width * l.x,
2008
1999
  height: n.height * l.y,
@@ -2010,10 +2001,10 @@ function Xo(e) {
2010
2001
  y: n.y * l.y - u.scrollTop * l.y + f.y + m.y
2011
2002
  };
2012
2003
  }
2013
- function Zo(e) {
2004
+ function ai(e) {
2014
2005
  return Array.from(e.getClientRects());
2015
2006
  }
2016
- function Go(e) {
2007
+ function li(e) {
2017
2008
  const t = K(e), n = $e(e), r = e.ownerDocument.body, o = W(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = W(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2018
2009
  let s = -n.scrollLeft + ut(e);
2019
2010
  const c = -n.scrollTop;
@@ -2024,7 +2015,7 @@ function Go(e) {
2024
2015
  y: c
2025
2016
  };
2026
2017
  }
2027
- function qo(e, t) {
2018
+ function ui(e, t) {
2028
2019
  const n = B(e), r = K(e), o = n.visualViewport;
2029
2020
  let i = r.clientWidth, s = r.clientHeight, c = 0, u = 0;
2030
2021
  if (o) {
@@ -2039,7 +2030,8 @@ function qo(e, t) {
2039
2030
  y: u
2040
2031
  };
2041
2032
  }
2042
- function Qo(e, t) {
2033
+ const fi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2034
+ function di(e, t) {
2043
2035
  const n = ie(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? ue(e) : j(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
2044
2036
  return {
2045
2037
  width: s,
@@ -2048,16 +2040,16 @@ function Qo(e, t) {
2048
2040
  y: l
2049
2041
  };
2050
2042
  }
2051
- function Lt(e, t, n) {
2043
+ function _t(e, t, n) {
2052
2044
  let r;
2053
2045
  if (t === "viewport")
2054
- r = qo(e, n);
2046
+ r = ui(e, n);
2055
2047
  else if (t === "document")
2056
- r = Go(K(e));
2048
+ r = li(K(e));
2057
2049
  else if ($(t))
2058
- r = Qo(t, n);
2050
+ r = di(t, n);
2059
2051
  else {
2060
- const o = an(e);
2052
+ const o = fn(e);
2061
2053
  r = {
2062
2054
  x: t.x - o.x,
2063
2055
  y: t.y - o.y,
@@ -2065,13 +2057,13 @@ function Lt(e, t, n) {
2065
2057
  height: t.height
2066
2058
  };
2067
2059
  }
2068
- return _e(r);
2060
+ return De(r);
2069
2061
  }
2070
- function un(e, t) {
2062
+ function pn(e, t) {
2071
2063
  const n = ne(e);
2072
- return n === t || !$(n) || de(n) ? !1 : H(n).position === "fixed" || un(n, t);
2064
+ return n === t || !$(n) || de(n) ? !1 : H(n).position === "fixed" || pn(n, t);
2073
2065
  }
2074
- function Jo(e, t) {
2066
+ function pi(e, t) {
2075
2067
  const n = t.get(e);
2076
2068
  if (n)
2077
2069
  return n;
@@ -2080,21 +2072,21 @@ function Jo(e, t) {
2080
2072
  let s = i ? ne(e) : e;
2081
2073
  for (; $(s) && !de(s); ) {
2082
2074
  const c = H(s), u = ct(s);
2083
- !u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || xe(s) && !u && un(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = ne(s);
2075
+ !u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && fi.has(o.position) || be(s) && !u && pn(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = ne(s);
2084
2076
  }
2085
2077
  return t.set(e, r), r;
2086
2078
  }
2087
- function ei(e) {
2079
+ function hi(e) {
2088
2080
  let {
2089
2081
  element: t,
2090
2082
  boundary: n,
2091
2083
  rootBoundary: r,
2092
2084
  strategy: o
2093
2085
  } = e;
2094
- const s = [...n === "clippingAncestors" ? Be(t) ? [] : Jo(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((l, f) => {
2095
- const d = Lt(t, f, o);
2086
+ const s = [...n === "clippingAncestors" ? Be(t) ? [] : pi(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((l, f) => {
2087
+ const d = _t(t, f, o);
2096
2088
  return l.top = W(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = W(d.left, l.left), l;
2097
- }, Lt(t, c, o));
2089
+ }, _t(t, c, o));
2098
2090
  return {
2099
2091
  width: u.right - u.left,
2100
2092
  height: u.bottom - u.top,
@@ -2102,17 +2094,17 @@ function ei(e) {
2102
2094
  y: u.top
2103
2095
  };
2104
2096
  }
2105
- function ti(e) {
2097
+ function mi(e) {
2106
2098
  const {
2107
2099
  width: t,
2108
2100
  height: n
2109
- } = cn(e);
2101
+ } = un(e);
2110
2102
  return {
2111
2103
  width: t,
2112
2104
  height: n
2113
2105
  };
2114
2106
  }
2115
- function ni(e, t, n) {
2107
+ function vi(e, t, n) {
2116
2108
  const r = Y(t), o = K(t), i = n === "fixed", s = ie(e, !0, i, t);
2117
2109
  let c = {
2118
2110
  scrollLeft: 0,
@@ -2123,12 +2115,12 @@ function ni(e, t, n) {
2123
2115
  u.x = ut(o);
2124
2116
  }
2125
2117
  if (r || !r && !i)
2126
- if ((me(t) !== "body" || xe(o)) && (c = $e(t)), r) {
2118
+ if ((me(t) !== "body" || be(o)) && (c = $e(t)), r) {
2127
2119
  const h = ie(t, !0, i, t);
2128
2120
  u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
2129
2121
  } else o && l();
2130
2122
  i && !r && o && l();
2131
- const f = o && !r && !i ? ln(o, c) : j(0), d = s.left + c.scrollLeft - u.x - f.x, m = s.top + c.scrollTop - u.y - f.y;
2123
+ const f = o && !r && !i ? dn(o, c) : j(0), d = s.left + c.scrollLeft - u.x - f.x, m = s.top + c.scrollTop - u.y - f.y;
2132
2124
  return {
2133
2125
  x: d,
2134
2126
  y: m,
@@ -2139,7 +2131,7 @@ function ni(e, t, n) {
2139
2131
  function Ze(e) {
2140
2132
  return H(e).position === "static";
2141
2133
  }
2142
- function Dt(e, t) {
2134
+ function Ft(e, t) {
2143
2135
  if (!Y(e) || H(e).position === "fixed")
2144
2136
  return null;
2145
2137
  if (t)
@@ -2147,7 +2139,7 @@ function Dt(e, t) {
2147
2139
  let n = e.offsetParent;
2148
2140
  return K(e) === n && (n = n.ownerDocument.body), n;
2149
2141
  }
2150
- function fn(e, t) {
2142
+ function hn(e, t) {
2151
2143
  const n = B(e);
2152
2144
  if (Be(e))
2153
2145
  return n;
@@ -2160,15 +2152,15 @@ function fn(e, t) {
2160
2152
  }
2161
2153
  return n;
2162
2154
  }
2163
- let r = Dt(e, t);
2164
- for (; r && Uo(r) && Ze(r); )
2165
- r = Dt(r, t);
2166
- return r && de(r) && Ze(r) && !ct(r) ? n : r || jo(e) || n;
2155
+ let r = Ft(e, t);
2156
+ for (; r && Qo(r) && Ze(r); )
2157
+ r = Ft(r, t);
2158
+ return r && de(r) && Ze(r) && !ct(r) ? n : r || ri(e) || n;
2167
2159
  }
2168
- const ri = async function(e) {
2169
- const t = this.getOffsetParent || fn, n = this.getDimensions, r = await n(e.floating);
2160
+ const gi = async function(e) {
2161
+ const t = this.getOffsetParent || hn, n = this.getDimensions, r = await n(e.floating);
2170
2162
  return {
2171
- reference: ni(e.reference, await t(e.floating), e.strategy),
2163
+ reference: vi(e.reference, await t(e.floating), e.strategy),
2172
2164
  floating: {
2173
2165
  x: 0,
2174
2166
  y: 0,
@@ -2177,25 +2169,25 @@ const ri = async function(e) {
2177
2169
  }
2178
2170
  };
2179
2171
  };
2180
- function oi(e) {
2172
+ function yi(e) {
2181
2173
  return H(e).direction === "rtl";
2182
2174
  }
2183
- const ii = {
2184
- convertOffsetParentRelativeRectToViewportRelativeRect: Xo,
2175
+ const wi = {
2176
+ convertOffsetParentRelativeRectToViewportRelativeRect: ci,
2185
2177
  getDocumentElement: K,
2186
- getClippingRect: ei,
2187
- getOffsetParent: fn,
2188
- getElementRects: ri,
2189
- getClientRects: Zo,
2190
- getDimensions: ti,
2178
+ getClippingRect: hi,
2179
+ getOffsetParent: hn,
2180
+ getElementRects: gi,
2181
+ getClientRects: ai,
2182
+ getDimensions: mi,
2191
2183
  getScale: ue,
2192
2184
  isElement: $,
2193
- isRTL: oi
2185
+ isRTL: yi
2194
2186
  };
2195
- function dn(e, t) {
2187
+ function mn(e, t) {
2196
2188
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2197
2189
  }
2198
- function si(e, t) {
2190
+ function bi(e, t) {
2199
2191
  let n = null, r;
2200
2192
  const o = K(e);
2201
2193
  function i() {
@@ -2212,7 +2204,7 @@ function si(e, t) {
2212
2204
  } = l;
2213
2205
  if (c || t(), !m || !h)
2214
2206
  return;
2215
- const v = Ne(d), p = Ne(o.clientWidth - (f + m)), g = Ne(o.clientHeight - (d + h)), y = Ne(f), x = {
2207
+ const v = Oe(d), p = Oe(o.clientWidth - (f + m)), g = Oe(o.clientHeight - (d + h)), y = Oe(f), x = {
2216
2208
  rootMargin: -v + "px " + -p + "px " + -g + "px " + -y + "px",
2217
2209
  threshold: W(0, te(1, u)) || 1
2218
2210
  };
@@ -2226,7 +2218,7 @@ function si(e, t) {
2226
2218
  s(!1, 1e-7);
2227
2219
  }, 1e3);
2228
2220
  }
2229
- P === 1 && !dn(l, e.getBoundingClientRect()) && s(), b = !1;
2221
+ P === 1 && !mn(l, e.getBoundingClientRect()) && s(), b = !1;
2230
2222
  }
2231
2223
  try {
2232
2224
  n = new IntersectionObserver(E, {
@@ -2241,7 +2233,7 @@ function si(e, t) {
2241
2233
  }
2242
2234
  return s(!0), i;
2243
2235
  }
2244
- function ci(e, t, n, r) {
2236
+ function xi(e, t, n, r) {
2245
2237
  r === void 0 && (r = {});
2246
2238
  const {
2247
2239
  ancestorScroll: o = !0,
@@ -2255,7 +2247,7 @@ function ci(e, t, n, r) {
2255
2247
  passive: !0
2256
2248
  }), i && y.addEventListener("resize", n);
2257
2249
  });
2258
- const d = l && c ? si(l, n) : null;
2250
+ const d = l && c ? bi(l, n) : null;
2259
2251
  let m = -1, h = null;
2260
2252
  s && (h = new ResizeObserver((y) => {
2261
2253
  let [w] = y;
@@ -2268,7 +2260,7 @@ function ci(e, t, n, r) {
2268
2260
  u && g();
2269
2261
  function g() {
2270
2262
  const y = ie(e);
2271
- p && !dn(p, y) && n(), p = y, v = requestAnimationFrame(g);
2263
+ p && !mn(p, y) && n(), p = y, v = requestAnimationFrame(g);
2272
2264
  }
2273
2265
  return n(), () => {
2274
2266
  var y;
@@ -2277,22 +2269,22 @@ function ci(e, t, n, r) {
2277
2269
  }), d?.(), (y = h) == null || y.disconnect(), h = null, u && cancelAnimationFrame(v);
2278
2270
  };
2279
2271
  }
2280
- const ai = $o, li = Ho, ui = Io, fi = Vo, di = Wo, _t = Fo, pi = zo, hi = (e, t, n) => {
2272
+ const Ei = Yo, Ci = Ko, Pi = zo, Si = Zo, Ai = Uo, It = Vo, Ri = Xo, Oi = (e, t, n) => {
2281
2273
  const r = /* @__PURE__ */ new Map(), o = {
2282
- platform: ii,
2274
+ platform: wi,
2283
2275
  ...n
2284
2276
  }, i = {
2285
2277
  ...o.platform,
2286
2278
  _c: r
2287
2279
  };
2288
- return _o(e, t, {
2280
+ return Ho(e, t, {
2289
2281
  ...o,
2290
2282
  platform: i
2291
2283
  });
2292
2284
  };
2293
- var mi = typeof document < "u", vi = function() {
2294
- }, ke = mi ? Xn : vi;
2295
- function Fe(e, t) {
2285
+ var Ni = typeof document < "u", Ti = function() {
2286
+ }, Me = Ni ? Qn : Ti;
2287
+ function _e(e, t) {
2296
2288
  if (e === t)
2297
2289
  return !0;
2298
2290
  if (typeof e != typeof t)
@@ -2304,7 +2296,7 @@ function Fe(e, t) {
2304
2296
  if (Array.isArray(e)) {
2305
2297
  if (n = e.length, n !== t.length) return !1;
2306
2298
  for (r = n; r-- !== 0; )
2307
- if (!Fe(e[r], t[r]))
2299
+ if (!_e(e[r], t[r]))
2308
2300
  return !1;
2309
2301
  return !0;
2310
2302
  }
@@ -2315,27 +2307,27 @@ function Fe(e, t) {
2315
2307
  return !1;
2316
2308
  for (r = n; r-- !== 0; ) {
2317
2309
  const i = o[r];
2318
- if (!(i === "_owner" && e.$$typeof) && !Fe(e[i], t[i]))
2310
+ if (!(i === "_owner" && e.$$typeof) && !_e(e[i], t[i]))
2319
2311
  return !1;
2320
2312
  }
2321
2313
  return !0;
2322
2314
  }
2323
2315
  return e !== e && t !== t;
2324
2316
  }
2325
- function pn(e) {
2317
+ function vn(e) {
2326
2318
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2327
2319
  }
2328
- function Ft(e, t) {
2329
- const n = pn(e);
2320
+ function Wt(e, t) {
2321
+ const n = vn(e);
2330
2322
  return Math.round(t * n) / n;
2331
2323
  }
2332
2324
  function Ge(e) {
2333
2325
  const t = a.useRef(e);
2334
- return ke(() => {
2326
+ return Me(() => {
2335
2327
  t.current = e;
2336
2328
  }), t;
2337
2329
  }
2338
- function gi(e) {
2330
+ function Mi(e) {
2339
2331
  e === void 0 && (e = {});
2340
2332
  const {
2341
2333
  placement: t = "bottom",
@@ -2357,12 +2349,12 @@ function gi(e) {
2357
2349
  middlewareData: {},
2358
2350
  isPositioned: !1
2359
2351
  }), [m, h] = a.useState(r);
2360
- Fe(m, r) || h(r);
2352
+ _e(m, r) || h(r);
2361
2353
  const [v, p] = a.useState(null), [g, y] = a.useState(null), w = a.useCallback((A) => {
2362
2354
  A !== S.current && (S.current = A, p(A));
2363
2355
  }, []), x = a.useCallback((A) => {
2364
2356
  A !== P.current && (P.current = A, y(A));
2365
- }, []), b = i || v, E = s || g, S = a.useRef(null), P = a.useRef(null), R = a.useRef(f), M = u != null, O = Ge(u), _ = Ge(o), F = Ge(l), T = a.useCallback(() => {
2357
+ }, []), b = i || v, E = s || g, S = a.useRef(null), P = a.useRef(null), R = a.useRef(f), T = u != null, O = Ge(u), _ = Ge(o), F = Ge(l), M = a.useCallback(() => {
2366
2358
  if (!S.current || !P.current)
2367
2359
  return;
2368
2360
  const A = {
@@ -2370,8 +2362,8 @@ function gi(e) {
2370
2362
  strategy: n,
2371
2363
  middleware: m
2372
2364
  };
2373
- _.current && (A.platform = _.current), hi(S.current, P.current, A).then((D) => {
2374
- const z = {
2365
+ _.current && (A.platform = _.current), Oi(S.current, P.current, A).then((D) => {
2366
+ const V = {
2375
2367
  ...D,
2376
2368
  // The floating element's position may be recomputed while it's closed
2377
2369
  // but still mounted (such as when transitioning out). To ensure
@@ -2379,27 +2371,27 @@ function gi(e) {
2379
2371
  // setting it to `true` when `open === false` (must be specified).
2380
2372
  isPositioned: F.current !== !1
2381
2373
  };
2382
- N.current && !Fe(R.current, z) && (R.current = z, Wt.flushSync(() => {
2383
- d(z);
2374
+ N.current && !_e(R.current, V) && (R.current = V, $t.flushSync(() => {
2375
+ d(V);
2384
2376
  }));
2385
2377
  });
2386
2378
  }, [m, t, n, _, F]);
2387
- ke(() => {
2379
+ Me(() => {
2388
2380
  l === !1 && R.current.isPositioned && (R.current.isPositioned = !1, d((A) => ({
2389
2381
  ...A,
2390
2382
  isPositioned: !1
2391
2383
  })));
2392
2384
  }, [l]);
2393
2385
  const N = a.useRef(!1);
2394
- ke(() => (N.current = !0, () => {
2386
+ Me(() => (N.current = !0, () => {
2395
2387
  N.current = !1;
2396
- }), []), ke(() => {
2388
+ }), []), Me(() => {
2397
2389
  if (b && (S.current = b), E && (P.current = E), b && E) {
2398
2390
  if (O.current)
2399
- return O.current(b, E, T);
2400
- T();
2391
+ return O.current(b, E, M);
2392
+ M();
2401
2393
  }
2402
- }, [b, E, T, O, M]);
2394
+ }, [b, E, M, O, T]);
2403
2395
  const I = a.useMemo(() => ({
2404
2396
  reference: S,
2405
2397
  floating: P,
@@ -2416,28 +2408,28 @@ function gi(e) {
2416
2408
  };
2417
2409
  if (!k.floating)
2418
2410
  return A;
2419
- const D = Ft(k.floating, f.x), z = Ft(k.floating, f.y);
2411
+ const D = Wt(k.floating, f.x), V = Wt(k.floating, f.y);
2420
2412
  return c ? {
2421
2413
  ...A,
2422
- transform: "translate(" + D + "px, " + z + "px)",
2423
- ...pn(k.floating) >= 1.5 && {
2414
+ transform: "translate(" + D + "px, " + V + "px)",
2415
+ ...vn(k.floating) >= 1.5 && {
2424
2416
  willChange: "transform"
2425
2417
  }
2426
2418
  } : {
2427
2419
  position: n,
2428
2420
  left: D,
2429
- top: z
2421
+ top: V
2430
2422
  };
2431
2423
  }, [n, c, k.floating, f.x, f.y]);
2432
2424
  return a.useMemo(() => ({
2433
2425
  ...f,
2434
- update: T,
2426
+ update: M,
2435
2427
  refs: I,
2436
2428
  elements: k,
2437
2429
  floatingStyles: L
2438
- }), [f, T, I, k, L]);
2430
+ }), [f, M, I, k, L]);
2439
2431
  }
2440
- const yi = (e) => {
2432
+ const ki = (e) => {
2441
2433
  function t(n) {
2442
2434
  return {}.hasOwnProperty.call(n, "current");
2443
2435
  }
@@ -2449,38 +2441,38 @@ const yi = (e) => {
2449
2441
  element: r,
2450
2442
  padding: o
2451
2443
  } = typeof e == "function" ? e(n) : e;
2452
- return r && t(r) ? r.current != null ? _t({
2444
+ return r && t(r) ? r.current != null ? It({
2453
2445
  element: r.current,
2454
2446
  padding: o
2455
- }).fn(n) : {} : r ? _t({
2447
+ }).fn(n) : {} : r ? It({
2456
2448
  element: r,
2457
2449
  padding: o
2458
2450
  }).fn(n) : {};
2459
2451
  }
2460
2452
  };
2461
- }, wi = (e, t) => ({
2462
- ...ai(e),
2453
+ }, Li = (e, t) => ({
2454
+ ...Ei(e),
2463
2455
  options: [e, t]
2464
- }), bi = (e, t) => ({
2465
- ...li(e),
2456
+ }), Di = (e, t) => ({
2457
+ ...Ci(e),
2466
2458
  options: [e, t]
2467
- }), xi = (e, t) => ({
2468
- ...pi(e),
2459
+ }), _i = (e, t) => ({
2460
+ ...Ri(e),
2469
2461
  options: [e, t]
2470
- }), Ei = (e, t) => ({
2471
- ...ui(e),
2462
+ }), Fi = (e, t) => ({
2463
+ ...Pi(e),
2472
2464
  options: [e, t]
2473
- }), Ci = (e, t) => ({
2474
- ...fi(e),
2465
+ }), Ii = (e, t) => ({
2466
+ ...Si(e),
2475
2467
  options: [e, t]
2476
- }), Pi = (e, t) => ({
2477
- ...di(e),
2468
+ }), Wi = (e, t) => ({
2469
+ ...Ai(e),
2478
2470
  options: [e, t]
2479
- }), Si = (e, t) => ({
2480
- ...yi(e),
2471
+ }), Bi = (e, t) => ({
2472
+ ...ki(e),
2481
2473
  options: [e, t]
2482
2474
  });
2483
- var Ai = "Arrow", hn = a.forwardRef((e, t) => {
2475
+ var $i = "Arrow", gn = a.forwardRef((e, t) => {
2484
2476
  const { children: n, width: r = 10, height: o = 5, ...i } = e;
2485
2477
  return /* @__PURE__ */ C(
2486
2478
  G.svg,
@@ -2495,22 +2487,22 @@ var Ai = "Arrow", hn = a.forwardRef((e, t) => {
2495
2487
  }
2496
2488
  );
2497
2489
  });
2498
- hn.displayName = Ai;
2499
- var Ri = hn, ft = "Popper", [mn, vn] = Ht(ft), [Oi, gn] = mn(ft), yn = (e) => {
2490
+ gn.displayName = $i;
2491
+ var Hi = gn, ft = "Popper", [yn, wn] = zt(ft), [Vi, bn] = yn(ft), xn = (e) => {
2500
2492
  const { __scopePopper: t, children: n } = e, [r, o] = a.useState(null);
2501
- return /* @__PURE__ */ C(Oi, { scope: t, anchor: r, onAnchorChange: o, children: n });
2493
+ return /* @__PURE__ */ C(Vi, { scope: t, anchor: r, onAnchorChange: o, children: n });
2502
2494
  };
2503
- yn.displayName = ft;
2504
- var wn = "PopperAnchor", bn = a.forwardRef(
2495
+ xn.displayName = ft;
2496
+ var En = "PopperAnchor", Cn = a.forwardRef(
2505
2497
  (e, t) => {
2506
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = gn(wn, n), s = a.useRef(null), c = re(t, s);
2498
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = bn(En, n), s = a.useRef(null), c = re(t, s);
2507
2499
  return a.useEffect(() => {
2508
2500
  i.onAnchorChange(r?.current || s.current);
2509
2501
  }), r ? null : /* @__PURE__ */ C(G.div, { ...o, ref: c });
2510
2502
  }
2511
2503
  );
2512
- bn.displayName = wn;
2513
- var dt = "PopperContent", [Ni, Mi] = mn(dt), xn = a.forwardRef(
2504
+ Cn.displayName = En;
2505
+ var dt = "PopperContent", [zi, Ui] = yn(dt), Pn = a.forwardRef(
2514
2506
  (e, t) => {
2515
2507
  const {
2516
2508
  __scopePopper: n,
@@ -2527,48 +2519,48 @@ var dt = "PopperContent", [Ni, Mi] = mn(dt), xn = a.forwardRef(
2527
2519
  updatePositionStrategy: h = "optimized",
2528
2520
  onPlaced: v,
2529
2521
  ...p
2530
- } = e, g = gn(dt, n), [y, w] = a.useState(null), x = re(t, (ve) => w(ve)), [b, E] = a.useState(null), S = Ao(b), P = S?.width ?? 0, R = S?.height ?? 0, M = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, _ = Array.isArray(l) ? l : [l], F = _.length > 0, T = {
2522
+ } = e, g = bn(dt, n), [y, w] = a.useState(null), x = re(t, (ve) => w(ve)), [b, E] = a.useState(null), S = No(b), P = S?.width ?? 0, R = S?.height ?? 0, T = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, _ = Array.isArray(l) ? l : [l], F = _.length > 0, M = {
2531
2523
  padding: O,
2532
- boundary: _.filter(ki),
2524
+ boundary: _.filter(Yi),
2533
2525
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2534
2526
  altBoundary: F
2535
- }, { refs: N, floatingStyles: I, placement: k, isPositioned: L, middlewareData: A } = gi({
2527
+ }, { refs: N, floatingStyles: I, placement: k, isPositioned: L, middlewareData: A } = Mi({
2536
2528
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2537
2529
  strategy: "fixed",
2538
- placement: M,
2539
- whileElementsMounted: (...ve) => ci(...ve, {
2530
+ placement: T,
2531
+ whileElementsMounted: (...ve) => xi(...ve, {
2540
2532
  animationFrame: h === "always"
2541
2533
  }),
2542
2534
  elements: {
2543
2535
  reference: g.anchor
2544
2536
  },
2545
2537
  middleware: [
2546
- wi({ mainAxis: o + R, alignmentAxis: s }),
2547
- u && bi({
2538
+ Li({ mainAxis: o + R, alignmentAxis: s }),
2539
+ u && Di({
2548
2540
  mainAxis: !0,
2549
2541
  crossAxis: !1,
2550
- limiter: d === "partial" ? xi() : void 0,
2551
- ...T
2542
+ limiter: d === "partial" ? _i() : void 0,
2543
+ ...M
2552
2544
  }),
2553
- u && Ei({ ...T }),
2554
- Ci({
2555
- ...T,
2556
- apply: ({ elements: ve, rects: mt, availableWidth: zn, availableHeight: Vn }) => {
2557
- const { width: Un, height: jn } = mt.reference, Ce = ve.floating.style;
2558
- Ce.setProperty("--radix-popper-available-width", `${zn}px`), Ce.setProperty("--radix-popper-available-height", `${Vn}px`), Ce.setProperty("--radix-popper-anchor-width", `${Un}px`), Ce.setProperty("--radix-popper-anchor-height", `${jn}px`);
2545
+ u && Fi({ ...M }),
2546
+ Ii({
2547
+ ...M,
2548
+ apply: ({ elements: ve, rects: mt, availableWidth: jn, availableHeight: Yn }) => {
2549
+ const { width: Kn, height: Xn } = mt.reference, Ee = ve.floating.style;
2550
+ Ee.setProperty("--radix-popper-available-width", `${jn}px`), Ee.setProperty("--radix-popper-available-height", `${Yn}px`), Ee.setProperty("--radix-popper-anchor-width", `${Kn}px`), Ee.setProperty("--radix-popper-anchor-height", `${Xn}px`);
2559
2551
  }
2560
2552
  }),
2561
- b && Si({ element: b, padding: c }),
2562
- Li({ arrowWidth: P, arrowHeight: R }),
2563
- m && Pi({ strategy: "referenceHidden", ...T })
2553
+ b && Bi({ element: b, padding: c }),
2554
+ Ki({ arrowWidth: P, arrowHeight: R }),
2555
+ m && Wi({ strategy: "referenceHidden", ...M })
2564
2556
  ]
2565
- }), [D, z] = Pn(k), ht = fe(v);
2557
+ }), [D, V] = Rn(k), ht = fe(v);
2566
2558
  ee(() => {
2567
2559
  L && ht?.();
2568
2560
  }, [L, ht]);
2569
- const In = A.arrow?.x, Wn = A.arrow?.y, Bn = A.arrow?.centerOffset !== 0, [$n, Hn] = a.useState();
2561
+ const $n = A.arrow?.x, Hn = A.arrow?.y, Vn = A.arrow?.centerOffset !== 0, [zn, Un] = a.useState();
2570
2562
  return ee(() => {
2571
- y && Hn(window.getComputedStyle(y).zIndex);
2563
+ y && Un(window.getComputedStyle(y).zIndex);
2572
2564
  }, [y]), /* @__PURE__ */ C(
2573
2565
  "div",
2574
2566
  {
@@ -2579,7 +2571,7 @@ var dt = "PopperContent", [Ni, Mi] = mn(dt), xn = a.forwardRef(
2579
2571
  transform: L ? I.transform : "translate(0, -200%)",
2580
2572
  // keep off the page when measuring
2581
2573
  minWidth: "max-content",
2582
- zIndex: $n,
2574
+ zIndex: zn,
2583
2575
  "--radix-popper-transform-origin": [
2584
2576
  A.transformOrigin?.x,
2585
2577
  A.transformOrigin?.y
@@ -2594,19 +2586,19 @@ var dt = "PopperContent", [Ni, Mi] = mn(dt), xn = a.forwardRef(
2594
2586
  },
2595
2587
  dir: e.dir,
2596
2588
  children: /* @__PURE__ */ C(
2597
- Ni,
2589
+ zi,
2598
2590
  {
2599
2591
  scope: n,
2600
2592
  placedSide: D,
2601
2593
  onArrowChange: E,
2602
- arrowX: In,
2603
- arrowY: Wn,
2604
- shouldHideArrow: Bn,
2594
+ arrowX: $n,
2595
+ arrowY: Hn,
2596
+ shouldHideArrow: Vn,
2605
2597
  children: /* @__PURE__ */ C(
2606
2598
  G.div,
2607
2599
  {
2608
2600
  "data-side": D,
2609
- "data-align": z,
2601
+ "data-align": V,
2610
2602
  ...p,
2611
2603
  ref: x,
2612
2604
  style: {
@@ -2623,14 +2615,14 @@ var dt = "PopperContent", [Ni, Mi] = mn(dt), xn = a.forwardRef(
2623
2615
  );
2624
2616
  }
2625
2617
  );
2626
- xn.displayName = dt;
2627
- var En = "PopperArrow", Ti = {
2618
+ Pn.displayName = dt;
2619
+ var Sn = "PopperArrow", ji = {
2628
2620
  top: "bottom",
2629
2621
  right: "left",
2630
2622
  bottom: "top",
2631
2623
  left: "right"
2632
- }, Cn = a.forwardRef(function(t, n) {
2633
- const { __scopePopper: r, ...o } = t, i = Mi(En, r), s = Ti[i.placedSide];
2624
+ }, An = a.forwardRef(function(t, n) {
2625
+ const { __scopePopper: r, ...o } = t, i = Ui(Sn, r), s = ji[i.placedSide];
2634
2626
  return (
2635
2627
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2636
2628
  // doesn't report size as we'd expect on SVG elements.
@@ -2659,7 +2651,7 @@ var En = "PopperArrow", Ti = {
2659
2651
  visibility: i.shouldHideArrow ? "hidden" : void 0
2660
2652
  },
2661
2653
  children: /* @__PURE__ */ C(
2662
- Ri,
2654
+ Hi,
2663
2655
  {
2664
2656
  ...o,
2665
2657
  ref: n,
@@ -2674,26 +2666,26 @@ var En = "PopperArrow", Ti = {
2674
2666
  )
2675
2667
  );
2676
2668
  });
2677
- Cn.displayName = En;
2678
- function ki(e) {
2669
+ An.displayName = Sn;
2670
+ function Yi(e) {
2679
2671
  return e !== null;
2680
2672
  }
2681
- var Li = (e) => ({
2673
+ var Ki = (e) => ({
2682
2674
  name: "transformOrigin",
2683
2675
  options: e,
2684
2676
  fn(t) {
2685
- const { placement: n, rects: r, middlewareData: o } = t, s = o.arrow?.centerOffset !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [l, f] = Pn(n), d = { start: "0%", center: "50%", end: "100%" }[f], m = (o.arrow?.x ?? 0) + c / 2, h = (o.arrow?.y ?? 0) + u / 2;
2677
+ const { placement: n, rects: r, middlewareData: o } = t, s = o.arrow?.centerOffset !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [l, f] = Rn(n), d = { start: "0%", center: "50%", end: "100%" }[f], m = (o.arrow?.x ?? 0) + c / 2, h = (o.arrow?.y ?? 0) + u / 2;
2686
2678
  let v = "", p = "";
2687
2679
  return l === "bottom" ? (v = s ? d : `${m}px`, p = `${-u}px`) : l === "top" ? (v = s ? d : `${m}px`, p = `${r.floating.height + u}px`) : l === "right" ? (v = `${-u}px`, p = s ? d : `${h}px`) : l === "left" && (v = `${r.floating.width + u}px`, p = s ? d : `${h}px`), { data: { x: v, y: p } };
2688
2680
  }
2689
2681
  });
2690
- function Pn(e) {
2682
+ function Rn(e) {
2691
2683
  const [t, n = "center"] = e.split("-");
2692
2684
  return [t, n];
2693
2685
  }
2694
- var Di = yn, Sn = bn, _i = xn, Fi = Cn, He = "Popover", [An, ls] = Ht(He, [
2695
- vn
2696
- ]), Ee = vn(), [Ii, oe] = An(He), Rn = (e) => {
2686
+ var Xi = xn, On = Cn, Zi = Pn, Gi = An, He = "Popover", [Nn, Ps] = zt(He, [
2687
+ wn
2688
+ ]), xe = wn(), [qi, oe] = Nn(He), Tn = (e) => {
2697
2689
  const {
2698
2690
  __scopePopover: t,
2699
2691
  children: n,
@@ -2701,17 +2693,17 @@ var Di = yn, Sn = bn, _i = xn, Fi = Cn, He = "Popover", [An, ls] = Ht(He, [
2701
2693
  defaultOpen: o,
2702
2694
  onOpenChange: i,
2703
2695
  modal: s = !1
2704
- } = e, c = Ee(t), u = a.useRef(null), [l, f] = a.useState(!1), [d, m] = pr({
2696
+ } = e, c = xe(t), u = a.useRef(null), [l, f] = a.useState(!1), [d, m] = vr({
2705
2697
  prop: r,
2706
2698
  defaultProp: o ?? !1,
2707
2699
  onChange: i,
2708
2700
  caller: He
2709
2701
  });
2710
- return /* @__PURE__ */ C(Di, { ...c, children: /* @__PURE__ */ C(
2711
- Ii,
2702
+ return /* @__PURE__ */ C(Xi, { ...c, children: /* @__PURE__ */ C(
2703
+ qi,
2712
2704
  {
2713
2705
  scope: t,
2714
- contentId: xr(),
2706
+ contentId: Pr(),
2715
2707
  triggerRef: u,
2716
2708
  open: d,
2717
2709
  onOpenChange: m,
@@ -2724,55 +2716,55 @@ var Di = yn, Sn = bn, _i = xn, Fi = Cn, He = "Popover", [An, ls] = Ht(He, [
2724
2716
  }
2725
2717
  ) });
2726
2718
  };
2727
- Rn.displayName = He;
2728
- var On = "PopoverAnchor", Nn = a.forwardRef(
2719
+ Tn.displayName = He;
2720
+ var Mn = "PopoverAnchor", kn = a.forwardRef(
2729
2721
  (e, t) => {
2730
- const { __scopePopover: n, ...r } = e, o = oe(On, n), i = Ee(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
2731
- return a.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ C(Sn, { ...i, ...r, ref: t });
2722
+ const { __scopePopover: n, ...r } = e, o = oe(Mn, n), i = xe(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
2723
+ return a.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ C(On, { ...i, ...r, ref: t });
2732
2724
  }
2733
2725
  );
2734
- Nn.displayName = On;
2735
- var Mn = "PopoverTrigger", Tn = a.forwardRef(
2726
+ kn.displayName = Mn;
2727
+ var Ln = "PopoverTrigger", Dn = a.forwardRef(
2736
2728
  (e, t) => {
2737
- const { __scopePopover: n, ...r } = e, o = oe(Mn, n), i = Ee(n), s = re(t, o.triggerRef), c = /* @__PURE__ */ C(
2729
+ const { __scopePopover: n, ...r } = e, o = oe(Ln, n), i = xe(n), s = re(t, o.triggerRef), c = /* @__PURE__ */ C(
2738
2730
  G.button,
2739
2731
  {
2740
2732
  type: "button",
2741
2733
  "aria-haspopup": "dialog",
2742
2734
  "aria-expanded": o.open,
2743
2735
  "aria-controls": o.contentId,
2744
- "data-state": Fn(o.open),
2736
+ "data-state": Bn(o.open),
2745
2737
  ...r,
2746
2738
  ref: s,
2747
2739
  onClick: J(e.onClick, o.onOpenToggle)
2748
2740
  }
2749
2741
  );
2750
- return o.hasCustomAnchor ? c : /* @__PURE__ */ C(Sn, { asChild: !0, ...i, children: c });
2742
+ return o.hasCustomAnchor ? c : /* @__PURE__ */ C(On, { asChild: !0, ...i, children: c });
2751
2743
  }
2752
2744
  );
2753
- Tn.displayName = Mn;
2754
- var pt = "PopoverPortal", [Wi, Bi] = An(pt, {
2745
+ Dn.displayName = Ln;
2746
+ var pt = "PopoverPortal", [Qi, Ji] = Nn(pt, {
2755
2747
  forceMount: void 0
2756
- }), kn = (e) => {
2748
+ }), _n = (e) => {
2757
2749
  const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = oe(pt, t);
2758
- return /* @__PURE__ */ C(Wi, { scope: t, forceMount: n, children: /* @__PURE__ */ C(rt, { present: n || i.open, children: /* @__PURE__ */ C(Kt, { asChild: !0, container: o, children: r }) }) });
2750
+ return /* @__PURE__ */ C(Qi, { scope: t, forceMount: n, children: /* @__PURE__ */ C(rt, { present: n || i.open, children: /* @__PURE__ */ C(Zt, { asChild: !0, container: o, children: r }) }) });
2759
2751
  };
2760
- kn.displayName = pt;
2761
- var pe = "PopoverContent", Ln = a.forwardRef(
2752
+ _n.displayName = pt;
2753
+ var pe = "PopoverContent", Fn = a.forwardRef(
2762
2754
  (e, t) => {
2763
- const n = Bi(pe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = oe(pe, e.__scopePopover);
2764
- return /* @__PURE__ */ C(rt, { present: r || i.open, children: i.modal ? /* @__PURE__ */ C(Hi, { ...o, ref: t }) : /* @__PURE__ */ C(zi, { ...o, ref: t }) });
2755
+ const n = Ji(pe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = oe(pe, e.__scopePopover);
2756
+ return /* @__PURE__ */ C(rt, { present: r || i.open, children: i.modal ? /* @__PURE__ */ C(ts, { ...o, ref: t }) : /* @__PURE__ */ C(ns, { ...o, ref: t }) });
2765
2757
  }
2766
2758
  );
2767
- Ln.displayName = pe;
2768
- var $i = /* @__PURE__ */ $t("PopoverContent.RemoveScroll"), Hi = a.forwardRef(
2759
+ Fn.displayName = pe;
2760
+ var es = /* @__PURE__ */ Vt("PopoverContent.RemoveScroll"), ts = a.forwardRef(
2769
2761
  (e, t) => {
2770
2762
  const n = oe(pe, e.__scopePopover), r = a.useRef(null), o = re(t, r), i = a.useRef(!1);
2771
2763
  return a.useEffect(() => {
2772
2764
  const s = r.current;
2773
- if (s) return So(s);
2774
- }, []), /* @__PURE__ */ C(tn, { as: $i, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2775
- Dn,
2765
+ if (s) return Oo(s);
2766
+ }, []), /* @__PURE__ */ C(rn, { as: es, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2767
+ In,
2776
2768
  {
2777
2769
  ...e,
2778
2770
  ref: o,
@@ -2797,11 +2789,11 @@ var $i = /* @__PURE__ */ $t("PopoverContent.RemoveScroll"), Hi = a.forwardRef(
2797
2789
  }
2798
2790
  ) });
2799
2791
  }
2800
- ), zi = a.forwardRef(
2792
+ ), ns = a.forwardRef(
2801
2793
  (e, t) => {
2802
2794
  const n = oe(pe, e.__scopePopover), r = a.useRef(!1), o = a.useRef(!1);
2803
2795
  return /* @__PURE__ */ C(
2804
- Dn,
2796
+ In,
2805
2797
  {
2806
2798
  ...e,
2807
2799
  ref: t,
@@ -2818,7 +2810,7 @@ var $i = /* @__PURE__ */ $t("PopoverContent.RemoveScroll"), Hi = a.forwardRef(
2818
2810
  }
2819
2811
  );
2820
2812
  }
2821
- ), Dn = a.forwardRef(
2813
+ ), In = a.forwardRef(
2822
2814
  (e, t) => {
2823
2815
  const {
2824
2816
  __scopePopover: n,
@@ -2831,9 +2823,9 @@ var $i = /* @__PURE__ */ $t("PopoverContent.RemoveScroll"), Hi = a.forwardRef(
2831
2823
  onFocusOutside: l,
2832
2824
  onInteractOutside: f,
2833
2825
  ...d
2834
- } = e, m = oe(pe, n), h = Ee(n);
2835
- return Wr(), /* @__PURE__ */ C(
2836
- jt,
2826
+ } = e, m = oe(pe, n), h = xe(n);
2827
+ return Hr(), /* @__PURE__ */ C(
2828
+ Kt,
2837
2829
  {
2838
2830
  asChild: !0,
2839
2831
  loop: !0,
@@ -2841,7 +2833,7 @@ var $i = /* @__PURE__ */ $t("PopoverContent.RemoveScroll"), Hi = a.forwardRef(
2841
2833
  onMountAutoFocus: o,
2842
2834
  onUnmountAutoFocus: i,
2843
2835
  children: /* @__PURE__ */ C(
2844
- Vt,
2836
+ jt,
2845
2837
  {
2846
2838
  asChild: !0,
2847
2839
  disableOutsidePointerEvents: s,
@@ -2851,9 +2843,9 @@ var $i = /* @__PURE__ */ $t("PopoverContent.RemoveScroll"), Hi = a.forwardRef(
2851
2843
  onFocusOutside: l,
2852
2844
  onDismiss: () => m.onOpenChange(!1),
2853
2845
  children: /* @__PURE__ */ C(
2854
- _i,
2846
+ Zi,
2855
2847
  {
2856
- "data-state": Fn(m.open),
2848
+ "data-state": Bn(m.open),
2857
2849
  role: "dialog",
2858
2850
  id: m.contentId,
2859
2851
  ...h,
@@ -2874,9 +2866,9 @@ var $i = /* @__PURE__ */ $t("PopoverContent.RemoveScroll"), Hi = a.forwardRef(
2874
2866
  }
2875
2867
  );
2876
2868
  }
2877
- ), _n = "PopoverClose", Vi = a.forwardRef(
2869
+ ), Wn = "PopoverClose", rs = a.forwardRef(
2878
2870
  (e, t) => {
2879
- const { __scopePopover: n, ...r } = e, o = oe(_n, n);
2871
+ const { __scopePopover: n, ...r } = e, o = oe(Wn, n);
2880
2872
  return /* @__PURE__ */ C(
2881
2873
  G.button,
2882
2874
  {
@@ -2888,33 +2880,33 @@ var $i = /* @__PURE__ */ $t("PopoverContent.RemoveScroll"), Hi = a.forwardRef(
2888
2880
  );
2889
2881
  }
2890
2882
  );
2891
- Vi.displayName = _n;
2892
- var Ui = "PopoverArrow", ji = a.forwardRef(
2883
+ rs.displayName = Wn;
2884
+ var os = "PopoverArrow", is = a.forwardRef(
2893
2885
  (e, t) => {
2894
- const { __scopePopover: n, ...r } = e, o = Ee(n);
2895
- return /* @__PURE__ */ C(Fi, { ...o, ...r, ref: t });
2886
+ const { __scopePopover: n, ...r } = e, o = xe(n);
2887
+ return /* @__PURE__ */ C(Gi, { ...o, ...r, ref: t });
2896
2888
  }
2897
2889
  );
2898
- ji.displayName = Ui;
2899
- function Fn(e) {
2890
+ is.displayName = os;
2891
+ function Bn(e) {
2900
2892
  return e ? "open" : "closed";
2901
2893
  }
2902
- var Yi = Rn, Ki = Nn, Xi = Tn, Zi = kn, Gi = Ln;
2903
- const qi = "_anchor_vbdag_270", Qi = "_container_vbdag_275", Ji = "_radio_vbdag_292", es = "_check_vbdag_304", ts = "_radioInput_vbdag_312", ge = {
2904
- anchor: qi,
2905
- container: Qi,
2906
- radio: Ji,
2907
- check: es,
2908
- radioInput: ts
2894
+ var ss = Tn, cs = kn, as = Dn, ls = _n, us = Fn;
2895
+ const fs = "_anchor_vbdag_270", ds = "_container_vbdag_275", ps = "_radio_vbdag_292", hs = "_check_vbdag_304", ms = "_radioInput_vbdag_312", ge = {
2896
+ anchor: fs,
2897
+ container: ds,
2898
+ radio: ps,
2899
+ check: hs,
2900
+ radioInput: ms
2909
2901
  };
2910
2902
  function qe({ children: e, id: t, ...n }) {
2911
- return /* @__PURE__ */ Q(It, { children: [
2903
+ return /* @__PURE__ */ Q(Bt, { children: [
2912
2904
  /* @__PURE__ */ C(
2913
2905
  "input",
2914
2906
  {
2915
2907
  type: "radio",
2916
2908
  id: t,
2917
- className: Gn(ge.radioInput, "sr-only"),
2909
+ className: er(ge.radioInput, "sr-only"),
2918
2910
  ...n
2919
2911
  }
2920
2912
  ),
@@ -2924,20 +2916,20 @@ function qe({ children: e, id: t, ...n }) {
2924
2916
  ] })
2925
2917
  ] });
2926
2918
  }
2927
- function us() {
2928
- const { theme: e, systemTheme: t, setTheme: n } = Yn(), r = qn();
2929
- return /* @__PURE__ */ Q(Yi, { children: [
2930
- /* @__PURE__ */ C(Xi, { asChild: !0, children: /* @__PURE__ */ Q(Zn, { variant: "transparent", "aria-label": "Preferences", children: [
2931
- /* @__PURE__ */ C(nr, {}),
2932
- /* @__PURE__ */ C(Ki, { className: ge.anchor })
2919
+ function Ss() {
2920
+ const { theme: e, systemTheme: t, setTheme: n } = Zn(), r = Gn();
2921
+ return /* @__PURE__ */ Q(ss, { children: [
2922
+ /* @__PURE__ */ C(as, { asChild: !0, children: /* @__PURE__ */ Q(tr, { variant: "transparent", "aria-label": "Preferences", children: [
2923
+ /* @__PURE__ */ C(ir, {}),
2924
+ /* @__PURE__ */ C(cs, { className: ge.anchor })
2933
2925
  ] }) }),
2934
- /* @__PURE__ */ C(Zi, { children: /* @__PURE__ */ C(
2935
- Gi,
2926
+ /* @__PURE__ */ C(ls, { children: /* @__PURE__ */ C(
2927
+ us,
2936
2928
  {
2937
2929
  sideOffset: 8,
2938
2930
  hideWhenDetached: !0,
2939
2931
  className: ge.container,
2940
- children: r && /* @__PURE__ */ Q(It, { children: [
2932
+ children: r && /* @__PURE__ */ Q(Bt, { children: [
2941
2933
  /* @__PURE__ */ C("span", { children: "Appearance" }),
2942
2934
  /* @__PURE__ */ Q(
2943
2935
  qe,
@@ -2947,7 +2939,7 @@ function us() {
2947
2939
  checked: e === "system",
2948
2940
  onChange: () => n("system"),
2949
2941
  children: [
2950
- /* @__PURE__ */ C(er, {}),
2942
+ /* @__PURE__ */ C(rr, {}),
2951
2943
  "Auto (",
2952
2944
  t,
2953
2945
  ")"
@@ -2962,7 +2954,7 @@ function us() {
2962
2954
  checked: e === "light",
2963
2955
  onChange: () => n("light"),
2964
2956
  children: [
2965
- /* @__PURE__ */ C(rr, {}),
2957
+ /* @__PURE__ */ C(sr, {}),
2966
2958
  "Light"
2967
2959
  ]
2968
2960
  }
@@ -2975,7 +2967,7 @@ function us() {
2975
2967
  checked: e === "dark",
2976
2968
  onChange: () => n("dark"),
2977
2969
  children: [
2978
- /* @__PURE__ */ C(tr, {}),
2970
+ /* @__PURE__ */ C(or, {}),
2979
2971
  "Dark"
2980
2972
  ]
2981
2973
  }
@@ -2986,6 +2978,6 @@ function us() {
2986
2978
  ] });
2987
2979
  }
2988
2980
  export {
2989
- us as PrefPanel,
2981
+ Ss as PrefPanel,
2990
2982
  qe as PrefRadio
2991
2983
  };