zudoku 0.4.4-dev.9 → 0.4.4

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.
Files changed (70) hide show
  1. package/client.d.ts +0 -5
  2. package/dist/config/validators/validate.d.ts +48 -110
  3. package/dist/config/validators/validate.js +1 -4
  4. package/dist/config/validators/validate.js.map +1 -1
  5. package/dist/lib/components/Header.js +2 -1
  6. package/dist/lib/components/Header.js.map +1 -1
  7. package/dist/lib/components/Layout.js +5 -3
  8. package/dist/lib/components/Layout.js.map +1 -1
  9. package/dist/lib/components/MobileTopNavigation.d.ts +1 -0
  10. package/dist/lib/components/MobileTopNavigation.js +14 -0
  11. package/dist/lib/components/MobileTopNavigation.js.map +1 -0
  12. package/dist/lib/components/TopNavigation.js +1 -1
  13. package/dist/lib/components/TopNavigation.js.map +1 -1
  14. package/dist/lib/components/navigation/Sidebar.js +4 -2
  15. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  16. package/dist/lib/oas/graphql/index.js +2 -2
  17. package/dist/lib/oas/graphql/index.js.map +1 -1
  18. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  19. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  20. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -1
  21. package/dist/lib/plugins/openapi/index.d.ts +2 -1
  22. package/dist/lib/plugins/openapi/index.js.map +1 -1
  23. package/dist/lib/plugins/openapi/interfaces.d.ts +2 -5
  24. package/dist/lib/ui/Drawer.d.ts +26 -0
  25. package/dist/lib/ui/Drawer.js +23 -0
  26. package/dist/lib/ui/Drawer.js.map +1 -0
  27. package/dist/vite/plugin-api.js +23 -3
  28. package/dist/vite/plugin-api.js.map +1 -1
  29. package/lib/{Input-DH_IdyOP.js → Input-BtumfhQu.js} +374 -399
  30. package/lib/Input-BtumfhQu.js.map +1 -0
  31. package/lib/{MdxPage-DBmhggWT.js → MdxPage-C3VDc6a7.js} +6 -6
  32. package/lib/{MdxPage-DBmhggWT.js.map → MdxPage-C3VDc6a7.js.map} +1 -1
  33. package/lib/{OperationList-CTicz0GQ.js → OperationList-CLtN0fiZ.js} +5 -5
  34. package/lib/{OperationList-CTicz0GQ.js.map → OperationList-CLtN0fiZ.js.map} +1 -1
  35. package/lib/{Route-12T12Ml-.js → Route-Cfon6vDR.js} +2 -2
  36. package/lib/{Route-12T12Ml-.js.map → Route-Cfon6vDR.js.map} +1 -1
  37. package/lib/SidebarBadge-DMBr3H-a.js +498 -0
  38. package/lib/SidebarBadge-DMBr3H-a.js.map +1 -0
  39. package/lib/assets/{worker-BsNqC5G3.js → worker-BvD7B6MG.js} +2 -2
  40. package/lib/assets/{worker-BsNqC5G3.js.map → worker-BvD7B6MG.js.map} +1 -1
  41. package/lib/{index-0hAwyzGD.js → index-BfLQd6h_.js} +1862 -2087
  42. package/lib/index-BfLQd6h_.js.map +1 -0
  43. package/lib/{index-DFSdiG5J.js → index-CvPXovcL.js} +5 -5
  44. package/lib/{index-DFSdiG5J.js.map → index-CvPXovcL.js.map} +1 -1
  45. package/lib/{Combination-BDDQcRSU.js → index-KUt-5Yzq.js} +253 -228
  46. package/lib/index-KUt-5Yzq.js.map +1 -0
  47. package/lib/zudoku.components.js +1978 -861
  48. package/lib/zudoku.components.js.map +1 -1
  49. package/lib/zudoku.openapi-worker.js +2 -2
  50. package/lib/zudoku.openapi-worker.js.map +1 -1
  51. package/lib/zudoku.plugin-api-keys.js +2 -2
  52. package/lib/zudoku.plugin-markdown.js +1 -1
  53. package/lib/zudoku.plugin-openapi.js +2 -2
  54. package/package.json +2 -1
  55. package/src/lib/components/Header.tsx +6 -5
  56. package/src/lib/components/Layout.tsx +29 -14
  57. package/src/lib/components/MobileTopNavigation.tsx +52 -0
  58. package/src/lib/components/TopNavigation.tsx +1 -1
  59. package/src/lib/components/navigation/Sidebar.tsx +25 -10
  60. package/src/lib/oas/graphql/index.ts +2 -2
  61. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  62. package/src/lib/plugins/openapi/graphql/graphql.ts +1 -1
  63. package/src/lib/plugins/openapi/index.tsx +3 -1
  64. package/src/lib/plugins/openapi/interfaces.ts +1 -4
  65. package/src/lib/ui/Drawer.tsx +119 -0
  66. package/lib/Combination-BDDQcRSU.js.map +0 -1
  67. package/lib/Input-DH_IdyOP.js.map +0 -1
  68. package/lib/SidebarBadge-YJxJ4aaV.js +0 -266
  69. package/lib/SidebarBadge-YJxJ4aaV.js.map +0 -1
  70. package/lib/index-0hAwyzGD.js.map +0 -1
@@ -5,8 +5,8 @@ var He = (e, t, n) => t.has(e) || wt("Cannot " + n);
5
5
  var L = (e, t, n) => (He(e, t, "read from private field"), n ? n.call(e) : t.get(e)), we = (e, t, n) => t.has(e) ? wt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), xe = (e, t, n, r) => (He(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), q = (e, t, n) => (He(e, t, "access private method"), n);
6
6
  import { j as P } from "./jsx-runtime-B6kdoens.js";
7
7
  import { a as Nn, e as Dn } from "./Markdown-Bg4SS0au.js";
8
- import * as f from "react";
9
- import oe, { useLayoutEffect as kn, useEffect as Fn, useState as In } from "react";
8
+ import * as u from "react";
9
+ import ie, { useLayoutEffect as kn, useEffect as Fn, useState as In } from "react";
10
10
  import { R as Wn, A as _n, n as Bn, u as jn } from "./ZudokuContext-BHNQL3XO.js";
11
11
  import { u as $n } from "./state-DsXXkBLH.js";
12
12
  import * as Ht from "react-dom";
@@ -17,34 +17,34 @@ function Vn(e, t) {
17
17
  function Vt(...e) {
18
18
  return (t) => e.forEach((n) => Vn(n, t));
19
19
  }
20
- function se(...e) {
21
- return f.useCallback(Vt(...e), e);
20
+ function ce(...e) {
21
+ return u.useCallback(Vt(...e), e);
22
22
  }
23
- var be = f.forwardRef((e, t) => {
24
- const { children: n, ...r } = e, o = f.Children.toArray(n), i = o.find(Un);
23
+ var be = u.forwardRef((e, t) => {
24
+ const { children: n, ...r } = e, o = u.Children.toArray(n), i = o.find(Un);
25
25
  if (i) {
26
- const s = i.props.children, c = o.map((a) => a === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : a);
27
- return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, c) : null });
26
+ const s = i.props.children, c = o.map((a) => a === i ? u.Children.count(s) > 1 ? u.Children.only(null) : u.isValidElement(s) ? s.props.children : null : a);
27
+ return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: u.isValidElement(s) ? u.cloneElement(s, void 0, c) : null });
28
28
  }
29
29
  return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: n });
30
30
  });
31
31
  be.displayName = "Slot";
32
- var Qe = f.forwardRef((e, t) => {
32
+ var Qe = u.forwardRef((e, t) => {
33
33
  const { children: n, ...r } = e;
34
- if (f.isValidElement(n)) {
34
+ if (u.isValidElement(n)) {
35
35
  const o = Xn(n);
36
- return f.cloneElement(n, {
36
+ return u.cloneElement(n, {
37
37
  ...Yn(r, n.props),
38
38
  // @ts-ignore
39
39
  ref: t ? Vt(t, o) : o
40
40
  });
41
41
  }
42
- return f.Children.count(n) > 1 ? f.Children.only(null) : null;
42
+ return u.Children.count(n) > 1 ? u.Children.only(null) : null;
43
43
  });
44
44
  Qe.displayName = "SlotClone";
45
45
  var zn = ({ children: e }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: e });
46
46
  function Un(e) {
47
- return f.isValidElement(e) && e.type === zn;
47
+ return u.isValidElement(e) && e.type === zn;
48
48
  }
49
49
  function Yn(e, t) {
50
50
  const n = { ...t };
@@ -86,7 +86,7 @@ const Kn = Dn(
86
86
  size: "default"
87
87
  }
88
88
  }
89
- ), Gn = f.forwardRef(
89
+ ), Gn = u.forwardRef(
90
90
  ({ className: e, variant: t, size: n, asChild: r = !1, ...o }, i) => {
91
91
  const s = r ? be : "button";
92
92
  return /* @__PURE__ */ P.jsx(
@@ -100,13 +100,13 @@ const Kn = Dn(
100
100
  }
101
101
  );
102
102
  Gn.displayName = "Button";
103
- var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
103
+ var H, F, se, V, Q, $t, wi = ($t = class extends Wn {
104
104
  constructor(t) {
105
105
  super();
106
106
  we(this, V);
107
107
  we(this, H);
108
108
  we(this, F);
109
- we(this, ie);
109
+ we(this, se);
110
110
  this.mutationId = t.mutationId, xe(this, F, t.mutationCache), xe(this, H, []), this.state = t.state || Zn(), this.setOptions(t.options), this.scheduleGc();
111
111
  }
112
112
  setOptions(t) {
@@ -134,12 +134,12 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
134
134
  }
135
135
  continue() {
136
136
  var t;
137
- return ((t = L(this, ie)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
137
+ return ((t = L(this, se)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
138
138
  this.execute(this.state.variables);
139
139
  }
140
140
  async execute(t) {
141
- var o, i, s, c, a, l, h, d, p, m, g, u, v, y, w, b, x, E, C, S;
142
- xe(this, ie, _n({
141
+ var o, i, s, c, a, l, h, d, p, m, g, f, v, y, w, b, x, E, C, S;
142
+ xe(this, se, _n({
143
143
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
144
144
  onFail: (A, O) => {
145
145
  q(this, V, Q).call(this, { type: "failed", failureCount: A, error: O });
@@ -155,7 +155,7 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
155
155
  networkMode: this.options.networkMode,
156
156
  canRun: () => L(this, F).canRun(this)
157
157
  }));
158
- const n = this.state.status === "pending", r = !L(this, ie).canStart();
158
+ const n = this.state.status === "pending", r = !L(this, se).canStart();
159
159
  try {
160
160
  if (!n) {
161
161
  q(this, V, Q).call(this, { type: "pending", variables: t, isPaused: r }), await ((i = (o = L(this, F).config).onMutate) == null ? void 0 : i.call(
@@ -171,7 +171,7 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
171
171
  isPaused: r
172
172
  });
173
173
  }
174
- const A = await L(this, ie).start();
174
+ const A = await L(this, se).start();
175
175
  return await ((l = (a = L(this, F).config).onSuccess) == null ? void 0 : l.call(
176
176
  a,
177
177
  A,
@@ -185,7 +185,7 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
185
185
  this.state.variables,
186
186
  this.state.context,
187
187
  this
188
- )), await ((u = (g = this.options).onSettled) == null ? void 0 : u.call(g, A, null, t, this.state.context)), q(this, V, Q).call(this, { type: "success", data: A }), A;
188
+ )), await ((f = (g = this.options).onSettled) == null ? void 0 : f.call(g, A, null, t, this.state.context)), q(this, V, Q).call(this, { type: "success", data: A }), A;
189
189
  } catch (A) {
190
190
  try {
191
191
  throw await ((y = (v = L(this, F).config).onError) == null ? void 0 : y.call(
@@ -220,7 +220,7 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
220
220
  L(this, F).runNext(this);
221
221
  }
222
222
  }
223
- }, H = new WeakMap(), F = new WeakMap(), ie = new WeakMap(), V = new WeakSet(), Q = function(t) {
223
+ }, H = new WeakMap(), F = new WeakMap(), se = new WeakMap(), V = new WeakSet(), Q = function(t) {
224
224
  const n = (r) => {
225
225
  switch (t.type) {
226
226
  case "failed":
@@ -297,7 +297,7 @@ function Zn() {
297
297
  submittedAt: 0
298
298
  };
299
299
  }
300
- const yi = () => {
300
+ const xi = () => {
301
301
  const { authentication: e } = jn(), t = $n(), n = typeof e < "u";
302
302
  return {
303
303
  isAuthEnabled: n,
@@ -322,14 +322,14 @@ function Ve(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
322
322
  return t == null ? void 0 : t(o);
323
323
  };
324
324
  }
325
- function wi(e, t) {
326
- const n = f.createContext(t);
325
+ function bi(e, t) {
326
+ const n = u.createContext(t);
327
327
  function r(i) {
328
- const { children: s, ...c } = i, a = f.useMemo(() => c, Object.values(c));
328
+ const { children: s, ...c } = i, a = u.useMemo(() => c, Object.values(c));
329
329
  return /* @__PURE__ */ P.jsx(n.Provider, { value: a, children: s });
330
330
  }
331
331
  function o(i) {
332
- const s = f.useContext(n);
332
+ const s = u.useContext(n);
333
333
  if (s) return s;
334
334
  if (t !== void 0) return t;
335
335
  throw new Error(`\`${i}\` must be used within \`${e}\``);
@@ -339,14 +339,14 @@ function wi(e, t) {
339
339
  function zt(e, t = []) {
340
340
  let n = [];
341
341
  function r(i, s) {
342
- const c = f.createContext(s), a = n.length;
342
+ const c = u.createContext(s), a = n.length;
343
343
  n = [...n, s];
344
344
  function l(d) {
345
- const { scope: p, children: m, ...g } = d, u = (p == null ? void 0 : p[e][a]) || c, v = f.useMemo(() => g, Object.values(g));
346
- return /* @__PURE__ */ P.jsx(u.Provider, { value: v, children: m });
345
+ const { scope: p, children: m, ...g } = d, f = (p == null ? void 0 : p[e][a]) || c, v = u.useMemo(() => g, Object.values(g));
346
+ return /* @__PURE__ */ P.jsx(f.Provider, { value: v, children: m });
347
347
  }
348
348
  function h(d, p) {
349
- const m = (p == null ? void 0 : p[e][a]) || c, g = f.useContext(m);
349
+ const m = (p == null ? void 0 : p[e][a]) || c, g = u.useContext(m);
350
350
  if (g) return g;
351
351
  if (s !== void 0) return s;
352
352
  throw new Error(`\`${d}\` must be used within \`${i}\``);
@@ -354,10 +354,10 @@ function zt(e, t = []) {
354
354
  return l.displayName = i + "Provider", [l, h];
355
355
  }
356
356
  const o = () => {
357
- const i = n.map((s) => f.createContext(s));
357
+ const i = n.map((s) => u.createContext(s));
358
358
  return function(c) {
359
359
  const a = (c == null ? void 0 : c[e]) || i;
360
- return f.useMemo(
360
+ return u.useMemo(
361
361
  () => ({ [`__scope${e}`]: { ...c, [e]: a } }),
362
362
  [c, a]
363
363
  );
@@ -378,27 +378,27 @@ function qn(...e) {
378
378
  const d = a(i)[`__scope${l}`];
379
379
  return { ...c, ...d };
380
380
  }, {});
381
- return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
381
+ return u.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
382
382
  };
383
383
  };
384
384
  return n.scopeName = t.scopeName, n;
385
385
  }
386
386
  function ee(e) {
387
- const t = f.useRef(e);
388
- return f.useEffect(() => {
387
+ const t = u.useRef(e);
388
+ return u.useEffect(() => {
389
389
  t.current = e;
390
- }), f.useMemo(() => (...n) => {
390
+ }), u.useMemo(() => (...n) => {
391
391
  var r;
392
392
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
393
393
  }, []);
394
394
  }
395
- function xi({
395
+ function Ei({
396
396
  prop: e,
397
397
  defaultProp: t,
398
398
  onChange: n = () => {
399
399
  }
400
400
  }) {
401
- const [r, o] = Qn({ defaultProp: t, onChange: n }), i = e !== void 0, s = i ? e : r, c = ee(n), a = f.useCallback(
401
+ const [r, o] = Qn({ defaultProp: t, onChange: n }), i = e !== void 0, s = i ? e : r, c = ee(n), a = u.useCallback(
402
402
  (l) => {
403
403
  if (i) {
404
404
  const d = typeof l == "function" ? l(e) : l;
@@ -414,8 +414,8 @@ function Qn({
414
414
  defaultProp: e,
415
415
  onChange: t
416
416
  }) {
417
- const n = f.useState(e), [r] = n, o = f.useRef(r), i = ee(t);
418
- return f.useEffect(() => {
417
+ const n = u.useState(e), [r] = n, o = u.useRef(r), i = ee(t);
418
+ return u.useEffect(() => {
419
419
  o.current !== r && (i(r), o.current = r);
420
420
  }, [r, o, i]), n;
421
421
  }
@@ -436,8 +436,8 @@ var Jn = [
436
436
  "span",
437
437
  "svg",
438
438
  "ul"
439
- ], ae = Jn.reduce((e, t) => {
440
- const n = f.forwardRef((r, o) => {
439
+ ], oe = Jn.reduce((e, t) => {
440
+ const n = u.forwardRef((r, o) => {
441
441
  const { asChild: i, ...s } = r, c = i ? be : t;
442
442
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P.jsx(c, { ...s, ref: o });
443
443
  });
@@ -446,32 +446,32 @@ var Jn = [
446
446
  function er(e, t) {
447
447
  e && Ht.flushSync(() => e.dispatchEvent(t));
448
448
  }
449
- function bi(e) {
449
+ function Ci(e) {
450
450
  const t = e + "CollectionProvider", [n, r] = zt(t), [o, i] = n(
451
451
  t,
452
452
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
453
453
  ), s = (m) => {
454
- const { scope: g, children: u } = m, v = oe.useRef(null), y = oe.useRef(/* @__PURE__ */ new Map()).current;
455
- return /* @__PURE__ */ P.jsx(o, { scope: g, itemMap: y, collectionRef: v, children: u });
454
+ const { scope: g, children: f } = m, v = ie.useRef(null), y = ie.useRef(/* @__PURE__ */ new Map()).current;
455
+ return /* @__PURE__ */ P.jsx(o, { scope: g, itemMap: y, collectionRef: v, children: f });
456
456
  };
457
457
  s.displayName = t;
458
- const c = e + "CollectionSlot", a = oe.forwardRef(
458
+ const c = e + "CollectionSlot", a = ie.forwardRef(
459
459
  (m, g) => {
460
- const { scope: u, children: v } = m, y = i(c, u), w = se(g, y.collectionRef);
460
+ const { scope: f, children: v } = m, y = i(c, f), w = ce(g, y.collectionRef);
461
461
  return /* @__PURE__ */ P.jsx(be, { ref: w, children: v });
462
462
  }
463
463
  );
464
464
  a.displayName = c;
465
- const l = e + "CollectionItemSlot", h = "data-radix-collection-item", d = oe.forwardRef(
465
+ const l = e + "CollectionItemSlot", h = "data-radix-collection-item", d = ie.forwardRef(
466
466
  (m, g) => {
467
- const { scope: u, children: v, ...y } = m, w = oe.useRef(null), b = se(g, w), x = i(l, u);
468
- return oe.useEffect(() => (x.itemMap.set(w, { ref: w, ...y }), () => void x.itemMap.delete(w))), /* @__PURE__ */ P.jsx(be, { [h]: "", ref: b, children: v });
467
+ const { scope: f, children: v, ...y } = m, w = ie.useRef(null), b = ce(g, w), x = i(l, f);
468
+ return ie.useEffect(() => (x.itemMap.set(w, { ref: w, ...y }), () => void x.itemMap.delete(w))), /* @__PURE__ */ P.jsx(be, { [h]: "", ref: b, children: v });
469
469
  }
470
470
  );
471
471
  d.displayName = l;
472
472
  function p(m) {
473
473
  const g = i(e + "CollectionConsumer", m);
474
- return oe.useCallback(() => {
474
+ return ie.useCallback(() => {
475
475
  const v = g.collectionRef.current;
476
476
  if (!v) return [];
477
477
  const y = Array.from(v.querySelectorAll(`[${h}]`));
@@ -486,25 +486,25 @@ function bi(e) {
486
486
  r
487
487
  ];
488
488
  }
489
- var tr = f.createContext(void 0);
490
- function Ei(e) {
491
- const t = f.useContext(tr);
489
+ var tr = u.createContext(void 0);
490
+ function Si(e) {
491
+ const t = u.useContext(tr);
492
492
  return e || t || "ltr";
493
493
  }
494
494
  function nr(e, t = globalThis == null ? void 0 : globalThis.document) {
495
495
  const n = ee(e);
496
- f.useEffect(() => {
496
+ u.useEffect(() => {
497
497
  const r = (o) => {
498
498
  o.key === "Escape" && n(o);
499
499
  };
500
500
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
501
501
  }, [n, t]);
502
502
  }
503
- var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLayer.pointerDownOutside", ir = "dismissableLayer.focusOutside", xt, Ut = f.createContext({
503
+ var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLayer.pointerDownOutside", ir = "dismissableLayer.focusOutside", xt, Ut = u.createContext({
504
504
  layers: /* @__PURE__ */ new Set(),
505
505
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
506
506
  branches: /* @__PURE__ */ new Set()
507
- }), sr = f.forwardRef(
507
+ }), sr = u.forwardRef(
508
508
  (e, t) => {
509
509
  const {
510
510
  disableOutsidePointerEvents: n = !1,
@@ -514,7 +514,7 @@ var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLa
514
514
  onInteractOutside: s,
515
515
  onDismiss: c,
516
516
  ...a
517
- } = e, l = f.useContext(Ut), [h, d] = f.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = f.useState({}), g = se(t, (S) => d(S)), u = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = u.indexOf(v), w = h ? u.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E = lr((S) => {
517
+ } = e, l = u.useContext(Ut), [h, d] = u.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = u.useState({}), g = ce(t, (S) => d(S)), f = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = f.indexOf(v), w = h ? f.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E = lr((S) => {
518
518
  const A = S.target, O = [...l.branches].some((D) => D.contains(A));
519
519
  !x || O || (o == null || o(S), s == null || s(S), S.defaultPrevented || c == null || c());
520
520
  }, p), C = ur((S) => {
@@ -523,18 +523,18 @@ var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLa
523
523
  }, p);
524
524
  return nr((S) => {
525
525
  w === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
526
- }, p), f.useEffect(() => {
526
+ }, p), u.useEffect(() => {
527
527
  if (h)
528
528
  return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (xt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(h)), l.layers.add(h), bt(), () => {
529
529
  n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = xt);
530
530
  };
531
- }, [h, p, n, l]), f.useEffect(() => () => {
531
+ }, [h, p, n, l]), u.useEffect(() => () => {
532
532
  h && (l.layers.delete(h), l.layersWithOutsidePointerEventsDisabled.delete(h), bt());
533
- }, [h, l]), f.useEffect(() => {
533
+ }, [h, l]), u.useEffect(() => {
534
534
  const S = () => m({});
535
535
  return document.addEventListener(Je, S), () => document.removeEventListener(Je, S);
536
536
  }, []), /* @__PURE__ */ P.jsx(
537
- ae.div,
537
+ oe.div,
538
538
  {
539
539
  ...a,
540
540
  ref: g,
@@ -553,21 +553,21 @@ var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLa
553
553
  }
554
554
  );
555
555
  sr.displayName = rr;
556
- var cr = "DismissableLayerBranch", ar = f.forwardRef((e, t) => {
557
- const n = f.useContext(Ut), r = f.useRef(null), o = se(t, r);
558
- return f.useEffect(() => {
556
+ var cr = "DismissableLayerBranch", ar = u.forwardRef((e, t) => {
557
+ const n = u.useContext(Ut), r = u.useRef(null), o = ce(t, r);
558
+ return u.useEffect(() => {
559
559
  const i = r.current;
560
560
  if (i)
561
561
  return n.branches.add(i), () => {
562
562
  n.branches.delete(i);
563
563
  };
564
- }, [n.branches]), /* @__PURE__ */ P.jsx(ae.div, { ...e, ref: o });
564
+ }, [n.branches]), /* @__PURE__ */ P.jsx(oe.div, { ...e, ref: o });
565
565
  });
566
566
  ar.displayName = cr;
567
567
  function lr(e, t = globalThis == null ? void 0 : globalThis.document) {
568
- const n = ee(e), r = f.useRef(!1), o = f.useRef(() => {
568
+ const n = ee(e), r = u.useRef(!1), o = u.useRef(() => {
569
569
  });
570
- return f.useEffect(() => {
570
+ return u.useEffect(() => {
571
571
  const i = (c) => {
572
572
  if (c.target && !r.current) {
573
573
  let a = function() {
@@ -595,8 +595,8 @@ function lr(e, t = globalThis == null ? void 0 : globalThis.document) {
595
595
  };
596
596
  }
597
597
  function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
598
- const n = ee(e), r = f.useRef(!1);
599
- return f.useEffect(() => {
598
+ const n = ee(e), r = u.useRef(!1);
599
+ return u.useEffect(() => {
600
600
  const o = (i) => {
601
601
  i.target && !r.current && Yt(ir, n, { originalEvent: i }, {
602
602
  discrete: !1
@@ -617,8 +617,8 @@ function Yt(e, t, n, { discrete: r }) {
617
617
  t && o.addEventListener(e, t, { once: !0 }), r ? er(o, i) : o.dispatchEvent(i);
618
618
  }
619
619
  var ze = 0;
620
- function Ci() {
621
- f.useEffect(() => {
620
+ function Ai() {
621
+ u.useEffect(() => {
622
622
  const e = document.querySelectorAll("[data-radix-focus-guard]");
623
623
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Et()), document.body.insertAdjacentElement("beforeend", e[1] ?? Et()), ze++, () => {
624
624
  ze === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ze--;
@@ -629,14 +629,14 @@ function Et() {
629
629
  const e = document.createElement("span");
630
630
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
631
631
  }
632
- var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 }, fr = "FocusScope", dr = f.forwardRef((e, t) => {
632
+ var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 }, fr = "FocusScope", dr = u.forwardRef((e, t) => {
633
633
  const {
634
634
  loop: n = !1,
635
635
  trapped: r = !1,
636
636
  onMountAutoFocus: o,
637
637
  onUnmountAutoFocus: i,
638
638
  ...s
639
- } = e, [c, a] = f.useState(null), l = ee(o), h = ee(i), d = f.useRef(null), p = se(t, (u) => a(u)), m = f.useRef({
639
+ } = e, [c, a] = u.useState(null), l = ee(o), h = ee(i), d = u.useRef(null), p = ce(t, (f) => a(f)), m = u.useRef({
640
640
  paused: !1,
641
641
  pause() {
642
642
  this.paused = !0;
@@ -645,9 +645,9 @@ var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct
645
645
  this.paused = !1;
646
646
  }
647
647
  }).current;
648
- f.useEffect(() => {
648
+ u.useEffect(() => {
649
649
  if (r) {
650
- let u = function(b) {
650
+ let f = function(b) {
651
651
  if (m.paused || !c) return;
652
652
  const x = b.target;
653
653
  c.contains(x) ? d.current = x : J(d.current, { select: !0 });
@@ -660,40 +660,40 @@ var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct
660
660
  for (const E of b)
661
661
  E.removedNodes.length > 0 && J(c);
662
662
  };
663
- document.addEventListener("focusin", u), document.addEventListener("focusout", v);
663
+ document.addEventListener("focusin", f), document.addEventListener("focusout", v);
664
664
  const w = new MutationObserver(y);
665
665
  return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
666
- document.removeEventListener("focusin", u), document.removeEventListener("focusout", v), w.disconnect();
666
+ document.removeEventListener("focusin", f), document.removeEventListener("focusout", v), w.disconnect();
667
667
  };
668
668
  }
669
- }, [r, c, m.paused]), f.useEffect(() => {
669
+ }, [r, c, m.paused]), u.useEffect(() => {
670
670
  if (c) {
671
671
  At.add(m);
672
- const u = document.activeElement;
673
- if (!c.contains(u)) {
672
+ const f = document.activeElement;
673
+ if (!c.contains(f)) {
674
674
  const y = new CustomEvent(Ue, Ct);
675
- c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (hr(yr(Xt(c)), { select: !0 }), document.activeElement === u && J(c));
675
+ c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (hr(yr(Xt(c)), { select: !0 }), document.activeElement === f && J(c));
676
676
  }
677
677
  return () => {
678
678
  c.removeEventListener(Ue, l), setTimeout(() => {
679
679
  const y = new CustomEvent(Ye, Ct);
680
- c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(u ?? document.body, { select: !0 }), c.removeEventListener(Ye, h), At.remove(m);
680
+ c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(f ?? document.body, { select: !0 }), c.removeEventListener(Ye, h), At.remove(m);
681
681
  }, 0);
682
682
  };
683
683
  }
684
684
  }, [c, l, h, m]);
685
- const g = f.useCallback(
686
- (u) => {
685
+ const g = u.useCallback(
686
+ (f) => {
687
687
  if (!n && !r || m.paused) return;
688
- const v = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, y = document.activeElement;
688
+ const v = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, y = document.activeElement;
689
689
  if (v && y) {
690
- const w = u.currentTarget, [b, x] = mr(w);
691
- b && x ? !u.shiftKey && y === x ? (u.preventDefault(), n && J(b, { select: !0 })) : u.shiftKey && y === b && (u.preventDefault(), n && J(x, { select: !0 })) : y === w && u.preventDefault();
690
+ const w = f.currentTarget, [b, x] = mr(w);
691
+ b && x ? !f.shiftKey && y === x ? (f.preventDefault(), n && J(b, { select: !0 })) : f.shiftKey && y === b && (f.preventDefault(), n && J(x, { select: !0 })) : y === w && f.preventDefault();
692
692
  }
693
693
  },
694
694
  [n, r, m.paused]
695
695
  );
696
- return /* @__PURE__ */ P.jsx(ae.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
696
+ return /* @__PURE__ */ P.jsx(oe.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
697
697
  });
698
698
  dr.displayName = fr;
699
699
  function hr(e, { select: t = !1 } = {}) {
@@ -758,11 +758,11 @@ function Rt(e, t) {
758
758
  function yr(e) {
759
759
  return e.filter((t) => t.tagName !== "A");
760
760
  }
761
- var Ee = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
762
- }, wr = f.useId || (() => {
761
+ var Ee = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
762
+ }, wr = u.useId || (() => {
763
763
  }), xr = 0;
764
- function Si(e) {
765
- const [t, n] = f.useState(wr());
764
+ function Ri(e) {
765
+ const [t, n] = u.useState(wr());
766
766
  return Ee(() => {
767
767
  n((r) => r ?? String(xr++));
768
768
  }, [e]), t ? `radix-${t}` : "";
@@ -935,11 +935,11 @@ const Tr = async (e, t, n) => {
935
935
  x: h,
936
936
  y: d
937
937
  } = Pt(l, r, a), p = r, m = {}, g = 0;
938
- for (let u = 0; u < c.length; u++) {
938
+ for (let f = 0; f < c.length; f++) {
939
939
  const {
940
940
  name: v,
941
941
  fn: y
942
- } = c[u], {
942
+ } = c[f], {
943
943
  x: w,
944
944
  y: b,
945
945
  data: x,
@@ -971,7 +971,7 @@ const Tr = async (e, t, n) => {
971
971
  }) : E.rects), {
972
972
  x: h,
973
973
  y: d
974
- } = Pt(l, p, a)), u = -1);
974
+ } = Pt(l, p, a)), f = -1);
975
975
  }
976
976
  return {
977
977
  x: h,
@@ -1047,10 +1047,10 @@ const Mr = (e) => ({
1047
1047
  const d = Kt(h), p = {
1048
1048
  x: n,
1049
1049
  y: r
1050
- }, m = it(o), g = ot(m), u = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1050
+ }, m = it(o), g = ot(m), f = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1051
1051
  let S = C ? C[b] : 0;
1052
1052
  (!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[g]);
1053
- const A = x / 2 - E / 2, O = S / 2 - u[g] / 2 - 1, D = te(d[y], O), j = te(d[w], O), M = D, I = S - u[g] - j, N = S / 2 - u[g] / 2 + A, T = et(M, N, I), k = !a.arrow && pe(o) != null && N !== T && i.reference[g] / 2 - (N < M ? D : j) - u[g] / 2 < 0, R = k ? N < M ? N - M : N - I : 0;
1053
+ const A = x / 2 - E / 2, O = S / 2 - f[g] / 2 - 1, D = te(d[y], O), j = te(d[w], O), M = D, I = S - f[g] - j, N = S / 2 - f[g] / 2 + A, T = et(M, N, I), k = !a.arrow && pe(o) != null && N !== T && i.reference[g] / 2 - (N < M ? D : j) - f[g] / 2 < 0, R = k ? N < M ? N - M : N - I : 0;
1054
1054
  return {
1055
1055
  [m]: p[m] + R,
1056
1056
  data: {
@@ -1082,13 +1082,13 @@ const Mr = (e) => ({
1082
1082
  fallbackPlacements: p,
1083
1083
  fallbackStrategy: m = "bestFit",
1084
1084
  fallbackAxisSideDirection: g = "none",
1085
- flipAlignment: u = !0,
1085
+ flipAlignment: f = !0,
1086
1086
  ...v
1087
1087
  } = K(e, t);
1088
1088
  if ((n = i.arrow) != null && n.alignmentOffset)
1089
1089
  return {};
1090
- const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !u ? [We(c)] : Ar(c));
1091
- !p && g !== "none" && x.push(...Pr(c, u, g, b));
1090
+ const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !f ? [We(c)] : Ar(c));
1091
+ !p && g !== "none" && x.push(...Pr(c, f, g, b));
1092
1092
  const E = [c, ...x], C = await Ce(t, v), S = [];
1093
1093
  let A = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1094
1094
  if (h && S.push(C[y]), d) {
@@ -1276,16 +1276,16 @@ const kr = function(e) {
1276
1276
  const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = g + h[v], b = g - h[y];
1277
1277
  g = et(w, g, b);
1278
1278
  }
1279
- const u = c.fn({
1279
+ const f = c.fn({
1280
1280
  ...t,
1281
1281
  [p]: m,
1282
1282
  [d]: g
1283
1283
  });
1284
1284
  return {
1285
- ...u,
1285
+ ...f,
1286
1286
  data: {
1287
- x: u.x - n,
1288
- y: u.y - r
1287
+ x: f.x - n,
1288
+ y: f.y - r
1289
1289
  }
1290
1290
  };
1291
1291
  }
@@ -1309,13 +1309,13 @@ const kr = function(e) {
1309
1309
  y: r
1310
1310
  }, d = ve(o), p = rt(d);
1311
1311
  let m = h[p], g = h[d];
1312
- const u = K(c, t), v = typeof u == "number" ? {
1313
- mainAxis: u,
1312
+ const f = K(c, t), v = typeof f == "number" ? {
1313
+ mainAxis: f,
1314
1314
  crossAxis: 0
1315
1315
  } : {
1316
1316
  mainAxis: 0,
1317
1317
  crossAxis: 0,
1318
- ...u
1318
+ ...f
1319
1319
  };
1320
1320
  if (a) {
1321
1321
  const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + v.mainAxis, E = i.reference[p] + i.reference[b] - v.mainAxis;
@@ -1350,9 +1350,9 @@ const kr = function(e) {
1350
1350
  width: p,
1351
1351
  height: m
1352
1352
  } = r.floating;
1353
- let g, u;
1354
- l === "top" || l === "bottom" ? (g = l, u = h === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (u = l, g = h === "end" ? "top" : "bottom");
1355
- const v = m - a[g], y = p - a[u], w = !t.middlewareData.shift;
1353
+ let g, f;
1354
+ l === "top" || l === "bottom" ? (g = l, f = h === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (f = l, g = h === "end" ? "top" : "bottom");
1355
+ const v = m - a[g], y = p - a[f], w = !t.middlewareData.shift;
1356
1356
  let b = v, x = y;
1357
1357
  if (d) {
1358
1358
  const C = p - a.left - a.right;
@@ -1506,7 +1506,7 @@ function Qt(e) {
1506
1506
  function $r(e, t, n) {
1507
1507
  return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
1508
1508
  }
1509
- function ce(e, t, n, r) {
1509
+ function ae(e, t, n, r) {
1510
1510
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1511
1511
  const o = e.getBoundingClientRect(), i = at(e);
1512
1512
  let s = ne(1);
@@ -1515,10 +1515,10 @@ function ce(e, t, n, r) {
1515
1515
  let a = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, h = o.width / s.x, d = o.height / s.y;
1516
1516
  if (i) {
1517
1517
  const p = B(i), m = r && U(r) ? B(r) : r;
1518
- let g = p, u = g.frameElement;
1519
- for (; u && r && m !== g; ) {
1520
- const v = de(u), y = u.getBoundingClientRect(), w = $(u), b = y.left + (u.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = y.top + (u.clientTop + parseFloat(w.paddingTop)) * v.y;
1521
- a *= v.x, l *= v.y, h *= v.x, d *= v.y, a += b, l += x, g = B(u), u = g.frameElement;
1518
+ let g = p, f = g.frameElement;
1519
+ for (; f && r && m !== g; ) {
1520
+ const v = de(f), y = f.getBoundingClientRect(), w = $(f), b = y.left + (f.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = y.top + (f.clientTop + parseFloat(w.paddingTop)) * v.y;
1521
+ a *= v.x, l *= v.y, h *= v.x, d *= v.y, a += b, l += x, g = B(f), f = g.frameElement;
1522
1522
  }
1523
1523
  }
1524
1524
  return _e({
@@ -1554,7 +1554,7 @@ function Vr(e) {
1554
1554
  }, l = ne(1);
1555
1555
  const h = ne(0), d = Y(r);
1556
1556
  if ((d || !d && !i) && ((ge(r) !== "body" || Ae(s)) && (a = je(r)), Y(r))) {
1557
- const p = ce(r);
1557
+ const p = ae(r);
1558
1558
  l = de(r), h.x = p.x + r.clientLeft, h.y = p.y + r.clientTop;
1559
1559
  }
1560
1560
  return {
@@ -1568,7 +1568,7 @@ function zr(e) {
1568
1568
  return Array.from(e.getClientRects());
1569
1569
  }
1570
1570
  function Jt(e) {
1571
- return ce(Z(e)).left + je(e).scrollLeft;
1571
+ return ae(Z(e)).left + je(e).scrollLeft;
1572
1572
  }
1573
1573
  function Ur(e) {
1574
1574
  const t = Z(e), n = je(e), r = e.ownerDocument.body, o = _(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = _(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
@@ -1597,7 +1597,7 @@ function Yr(e, t) {
1597
1597
  };
1598
1598
  }
1599
1599
  function Xr(e, t) {
1600
- const n = ce(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? de(e) : ne(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = o * i.x, l = r * i.y;
1600
+ const n = ae(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? de(e) : ne(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = o * i.x, l = r * i.y;
1601
1601
  return {
1602
1602
  width: s,
1603
1603
  height: c,
@@ -1669,7 +1669,7 @@ function Zr(e) {
1669
1669
  };
1670
1670
  }
1671
1671
  function qr(e, t, n) {
1672
- const r = Y(t), o = Z(t), i = n === "fixed", s = ce(e, !0, i, t);
1672
+ const r = Y(t), o = Z(t), i = n === "fixed", s = ae(e, !0, i, t);
1673
1673
  let c = {
1674
1674
  scrollLeft: 0,
1675
1675
  scrollTop: 0
@@ -1677,7 +1677,7 @@ function qr(e, t, n) {
1677
1677
  const a = ne(0);
1678
1678
  if (r || !r && !i)
1679
1679
  if ((ge(t) !== "body" || Ae(o)) && (c = je(t)), r) {
1680
- const d = ce(t, !0, i, t);
1680
+ const d = ae(t, !0, i, t);
1681
1681
  a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
1682
1682
  } else o && (a.x = Jt(o));
1683
1683
  const l = s.left + c.scrollLeft - a.x, h = s.top + c.scrollTop - a.y;
@@ -1756,8 +1756,8 @@ function to(e, t) {
1756
1756
  } = e.getBoundingClientRect();
1757
1757
  if (c || t(), !d || !p)
1758
1758
  return;
1759
- const m = Oe(h), g = Oe(o.clientWidth - (l + d)), u = Oe(o.clientHeight - (h + p)), v = Oe(l), w = {
1760
- rootMargin: -m + "px " + -g + "px " + -u + "px " + -v + "px",
1759
+ const m = Oe(h), g = Oe(o.clientWidth - (l + d)), f = Oe(o.clientHeight - (h + p)), v = Oe(l), w = {
1760
+ rootMargin: -m + "px " + -g + "px " + -f + "px " + -v + "px",
1761
1761
  threshold: _(0, te(1, a)) || 1
1762
1762
  };
1763
1763
  let b = !0;
@@ -1808,11 +1808,11 @@ function no(e, t, n, r) {
1808
1808
  (b = m) == null || b.observe(t);
1809
1809
  })), n();
1810
1810
  }), l && !a && m.observe(l), m.observe(t));
1811
- let g, u = a ? ce(e) : null;
1811
+ let g, f = a ? ae(e) : null;
1812
1812
  a && v();
1813
1813
  function v() {
1814
- const y = ce(e);
1815
- u && (y.x !== u.x || y.y !== u.y || y.width !== u.width || y.height !== u.height) && n(), u = y, g = requestAnimationFrame(v);
1814
+ const y = ae(e);
1815
+ f && (y.x !== f.x || y.y !== f.y || y.width !== f.width || y.height !== f.height) && n(), f = y, g = requestAnimationFrame(v);
1816
1816
  }
1817
1817
  return n(), () => {
1818
1818
  var y;
@@ -1894,7 +1894,7 @@ function kt(e, t) {
1894
1894
  return Math.round(t * n) / n;
1895
1895
  }
1896
1896
  function Ft(e) {
1897
- const t = f.useRef(e);
1897
+ const t = u.useRef(e);
1898
1898
  return De(() => {
1899
1899
  t.current = e;
1900
1900
  }), t;
@@ -1913,20 +1913,20 @@ function fo(e) {
1913
1913
  transform: c = !0,
1914
1914
  whileElementsMounted: a,
1915
1915
  open: l
1916
- } = e, [h, d] = f.useState({
1916
+ } = e, [h, d] = u.useState({
1917
1917
  x: 0,
1918
1918
  y: 0,
1919
1919
  strategy: n,
1920
1920
  placement: t,
1921
1921
  middlewareData: {},
1922
1922
  isPositioned: !1
1923
- }), [p, m] = f.useState(r);
1923
+ }), [p, m] = u.useState(r);
1924
1924
  Be(p, r) || m(r);
1925
- const [g, u] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((R) => {
1926
- R !== C.current && (C.current = R, u(R));
1927
- }, []), b = f.useCallback((R) => {
1925
+ const [g, f] = u.useState(null), [v, y] = u.useState(null), w = u.useCallback((R) => {
1926
+ R !== C.current && (C.current = R, f(R));
1927
+ }, []), b = u.useCallback((R) => {
1928
1928
  R !== S.current && (S.current = R, y(R));
1929
- }, []), x = i || g, E = s || v, C = f.useRef(null), S = f.useRef(null), A = f.useRef(h), O = a != null, D = Ft(a), j = Ft(o), M = f.useCallback(() => {
1929
+ }, []), x = i || g, E = s || v, C = u.useRef(null), S = u.useRef(null), A = u.useRef(h), O = a != null, D = Ft(a), j = Ft(o), M = u.useCallback(() => {
1930
1930
  if (!C.current || !S.current)
1931
1931
  return;
1932
1932
  const R = {
@@ -1950,7 +1950,7 @@ function fo(e) {
1950
1950
  isPositioned: !1
1951
1951
  })));
1952
1952
  }, [l]);
1953
- const I = f.useRef(!1);
1953
+ const I = u.useRef(!1);
1954
1954
  De(() => (I.current = !0, () => {
1955
1955
  I.current = !1;
1956
1956
  }), []), De(() => {
@@ -1960,15 +1960,15 @@ function fo(e) {
1960
1960
  M();
1961
1961
  }
1962
1962
  }, [x, E, M, D, O]);
1963
- const N = f.useMemo(() => ({
1963
+ const N = u.useMemo(() => ({
1964
1964
  reference: C,
1965
1965
  floating: S,
1966
1966
  setReference: w,
1967
1967
  setFloating: b
1968
- }), [w, b]), T = f.useMemo(() => ({
1968
+ }), [w, b]), T = u.useMemo(() => ({
1969
1969
  reference: x,
1970
1970
  floating: E
1971
- }), [x, E]), k = f.useMemo(() => {
1971
+ }), [x, E]), k = u.useMemo(() => {
1972
1972
  const R = {
1973
1973
  position: n,
1974
1974
  left: 0,
@@ -1989,7 +1989,7 @@ function fo(e) {
1989
1989
  top: X
1990
1990
  };
1991
1991
  }, [n, c, T.floating, h.x, h.y]);
1992
- return f.useMemo(() => ({
1992
+ return u.useMemo(() => ({
1993
1993
  ...h,
1994
1994
  update: M,
1995
1995
  refs: N,
@@ -1997,10 +1997,10 @@ function fo(e) {
1997
1997
  floatingStyles: k
1998
1998
  }), [h, M, N, T, k]);
1999
1999
  }
2000
- var ho = "Arrow", rn = f.forwardRef((e, t) => {
2000
+ var ho = "Arrow", rn = u.forwardRef((e, t) => {
2001
2001
  const { children: n, width: r = 10, height: o = 5, ...i } = e;
2002
2002
  return /* @__PURE__ */ P.jsx(
2003
- ae.svg,
2003
+ oe.svg,
2004
2004
  {
2005
2005
  ...i,
2006
2006
  ref: t,
@@ -2015,7 +2015,7 @@ var ho = "Arrow", rn = f.forwardRef((e, t) => {
2015
2015
  rn.displayName = ho;
2016
2016
  var mo = rn;
2017
2017
  function po(e) {
2018
- const [t, n] = f.useState(void 0);
2018
+ const [t, n] = u.useState(void 0);
2019
2019
  return Ee(() => {
2020
2020
  if (e) {
2021
2021
  n({ width: e.offsetWidth, height: e.offsetHeight });
@@ -2036,21 +2036,21 @@ function po(e) {
2036
2036
  n(void 0);
2037
2037
  }, [e]), t;
2038
2038
  }
2039
- var ut = "Popper", [on, Ai] = zt(ut), [vo, sn] = on(ut), cn = (e) => {
2040
- const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
2039
+ var ut = "Popper", [on, Pi] = zt(ut), [vo, sn] = on(ut), cn = (e) => {
2040
+ const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
2041
2041
  return /* @__PURE__ */ P.jsx(vo, { scope: t, anchor: r, onAnchorChange: o, children: n });
2042
2042
  };
2043
2043
  cn.displayName = ut;
2044
- var an = "PopperAnchor", ln = f.forwardRef(
2044
+ var an = "PopperAnchor", ln = u.forwardRef(
2045
2045
  (e, t) => {
2046
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = sn(an, n), s = f.useRef(null), c = se(t, s);
2047
- return f.useEffect(() => {
2046
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = sn(an, n), s = u.useRef(null), c = ce(t, s);
2047
+ return u.useEffect(() => {
2048
2048
  i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
2049
- }), r ? null : /* @__PURE__ */ P.jsx(ae.div, { ...o, ref: c });
2049
+ }), r ? null : /* @__PURE__ */ P.jsx(oe.div, { ...o, ref: c });
2050
2050
  }
2051
2051
  );
2052
2052
  ln.displayName = an;
2053
- var ft = "PopperContent", [go, yo] = on(ft), un = f.forwardRef(
2053
+ var ft = "PopperContent", [go, yo] = on(ft), un = u.forwardRef(
2054
2054
  (e, t) => {
2055
2055
  var dt, ht, mt, pt, vt, gt;
2056
2056
  const {
@@ -2067,8 +2067,8 @@ var ft = "PopperContent", [go, yo] = on(ft), un = f.forwardRef(
2067
2067
  hideWhenDetached: p = !1,
2068
2068
  updatePositionStrategy: m = "optimized",
2069
2069
  onPlaced: g,
2070
- ...u
2071
- } = e, v = sn(ft, n), [y, w] = f.useState(null), b = se(t, (ye) => w(ye)), [x, E] = f.useState(null), C = po(x), S = (C == null ? void 0 : C.width) ?? 0, A = (C == null ? void 0 : C.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), D = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, j = Array.isArray(l) ? l : [l], M = j.length > 0, I = {
2070
+ ...f
2071
+ } = e, v = sn(ft, n), [y, w] = u.useState(null), b = ce(t, (ye) => w(ye)), [x, E] = u.useState(null), C = po(x), S = (C == null ? void 0 : C.width) ?? 0, A = (C == null ? void 0 : C.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), D = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, j = Array.isArray(l) ? l : [l], M = j.length > 0, I = {
2072
2072
  padding: D,
2073
2073
  boundary: j.filter(xo),
2074
2074
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -2107,7 +2107,7 @@ var ft = "PopperContent", [go, yo] = on(ft), un = f.forwardRef(
2107
2107
  Ee(() => {
2108
2108
  R && (Re == null || Re());
2109
2109
  }, [R, Re]);
2110
- const Cn = (dt = W.arrow) == null ? void 0 : dt.x, Sn = (ht = W.arrow) == null ? void 0 : ht.y, An = ((mt = W.arrow) == null ? void 0 : mt.centerOffset) !== 0, [Rn, Pn] = f.useState();
2110
+ const Cn = (dt = W.arrow) == null ? void 0 : dt.x, Sn = (ht = W.arrow) == null ? void 0 : ht.y, An = ((mt = W.arrow) == null ? void 0 : mt.centerOffset) !== 0, [Rn, Pn] = u.useState();
2111
2111
  return Ee(() => {
2112
2112
  y && Pn(window.getComputedStyle(y).zIndex);
2113
2113
  }, [y]), /* @__PURE__ */ P.jsx(
@@ -2144,14 +2144,14 @@ var ft = "PopperContent", [go, yo] = on(ft), un = f.forwardRef(
2144
2144
  arrowY: Sn,
2145
2145
  shouldHideArrow: An,
2146
2146
  children: /* @__PURE__ */ P.jsx(
2147
- ae.div,
2147
+ oe.div,
2148
2148
  {
2149
2149
  "data-side": X,
2150
2150
  "data-align": En,
2151
- ...u,
2151
+ ...f,
2152
2152
  ref: b,
2153
2153
  style: {
2154
- ...u.style,
2154
+ ...f.style,
2155
2155
  // if the PopperContent hasn't been placed yet (not all measurements done)
2156
2156
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
2157
2157
  animation: R ? void 0 : "none"
@@ -2170,7 +2170,7 @@ var fn = "PopperArrow", wo = {
2170
2170
  right: "left",
2171
2171
  bottom: "top",
2172
2172
  left: "right"
2173
- }, dn = f.forwardRef(function(t, n) {
2173
+ }, dn = u.forwardRef(function(t, n) {
2174
2174
  const { __scopePopper: r, ...o } = t, i = yo(fn, r), s = wo[i.placedSide];
2175
2175
  return (
2176
2176
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
@@ -2225,20 +2225,20 @@ var bo = (e) => ({
2225
2225
  fn(t) {
2226
2226
  var v, y, w;
2227
2227
  const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, a = s ? 0 : e.arrowHeight, [l, h] = hn(n), d = { start: "0%", center: "50%", end: "100%" }[h], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + a / 2;
2228
- let g = "", u = "";
2229
- return l === "bottom" ? (g = s ? d : `${p}px`, u = `${-a}px`) : l === "top" ? (g = s ? d : `${p}px`, u = `${r.floating.height + a}px`) : l === "right" ? (g = `${-a}px`, u = s ? d : `${m}px`) : l === "left" && (g = `${r.floating.width + a}px`, u = s ? d : `${m}px`), { data: { x: g, y: u } };
2228
+ let g = "", f = "";
2229
+ return l === "bottom" ? (g = s ? d : `${p}px`, f = `${-a}px`) : l === "top" ? (g = s ? d : `${p}px`, f = `${r.floating.height + a}px`) : l === "right" ? (g = `${-a}px`, f = s ? d : `${m}px`) : l === "left" && (g = `${r.floating.width + a}px`, f = s ? d : `${m}px`), { data: { x: g, y: f } };
2230
2230
  }
2231
2231
  });
2232
2232
  function hn(e) {
2233
2233
  const [t, n = "center"] = e.split("-");
2234
2234
  return [t, n];
2235
2235
  }
2236
- var Ri = cn, Pi = ln, Oi = un, Ti = dn, Eo = "Portal", Co = f.forwardRef((e, t) => {
2236
+ var Oi = cn, Ti = ln, Mi = un, Li = dn, Eo = "Portal", Co = u.forwardRef((e, t) => {
2237
2237
  var c;
2238
- const { container: n, ...r } = e, [o, i] = f.useState(!1);
2238
+ const { container: n, ...r } = e, [o, i] = u.useState(!1);
2239
2239
  Ee(() => i(!0), []);
2240
2240
  const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
2241
- return s ? Hn.createPortal(/* @__PURE__ */ P.jsx(ae.div, { ...r, ref: t }), s) : null;
2241
+ return s ? Hn.createPortal(/* @__PURE__ */ P.jsx(oe.div, { ...r, ref: t }), s) : null;
2242
2242
  });
2243
2243
  Co.displayName = Eo;
2244
2244
  var So = function(e) {
@@ -2270,8 +2270,8 @@ var So = function(e) {
2270
2270
  h(p);
2271
2271
  else
2272
2272
  try {
2273
- var m = p.getAttribute(r), g = m !== null && m !== "false", u = (le.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
2274
- le.set(p, u), i.set(p, v), s.push(p), u === 1 && g && Te.set(p, !0), v === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
2273
+ var m = p.getAttribute(r), g = m !== null && m !== "false", f = (le.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
2274
+ le.set(p, f), i.set(p, v), s.push(p), f === 1 && g && Te.set(p, !0), v === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
2275
2275
  } catch (y) {
2276
2276
  console.error("aria-hidden: cannot operate on ", p, y);
2277
2277
  }
@@ -2283,7 +2283,7 @@ var So = function(e) {
2283
2283
  le.set(d, p), i.set(d, m), p || (Te.has(d) || d.removeAttribute(r), Te.delete(d)), m || d.removeAttribute(n);
2284
2284
  }), Ke--, Ke || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Me = {});
2285
2285
  };
2286
- }, Mi = function(e, t, n) {
2286
+ }, Ni = function(e, t, n) {
2287
2287
  n === void 0 && (n = "data-aria-hidden");
2288
2288
  var r = Array.from(Array.isArray(e) ? e : [e]), o = So(e);
2289
2289
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ro(r, o, n, "aria-hidden")) : function() {
@@ -2336,7 +2336,7 @@ function Mo(e, t) {
2336
2336
  })[0];
2337
2337
  return n.callback = t, n.facade;
2338
2338
  }
2339
- var Lo = typeof window < "u" ? f.useLayoutEffect : f.useEffect, It = /* @__PURE__ */ new WeakMap();
2339
+ var Lo = typeof window < "u" ? u.useLayoutEffect : u.useEffect, It = /* @__PURE__ */ new WeakMap();
2340
2340
  function No(e, t) {
2341
2341
  var n = Mo(null, function(r) {
2342
2342
  return e.forEach(function(o) {
@@ -2426,24 +2426,24 @@ var vn = function(e) {
2426
2426
  var r = t.read();
2427
2427
  if (!r)
2428
2428
  throw new Error("Sidecar medium not found");
2429
- return f.createElement(r, z({}, n));
2429
+ return u.createElement(r, z({}, n));
2430
2430
  };
2431
2431
  vn.isSideCarExport = !0;
2432
2432
  function Io(e, t) {
2433
2433
  return e.useMedium(t), vn;
2434
2434
  }
2435
2435
  var gn = Fo(), Ze = function() {
2436
- }, $e = f.forwardRef(function(e, t) {
2437
- var n = f.useRef(null), r = f.useState({
2436
+ }, $e = u.forwardRef(function(e, t) {
2437
+ var n = u.useRef(null), r = u.useState({
2438
2438
  onScrollCapture: Ze,
2439
2439
  onWheelCapture: Ze,
2440
2440
  onTouchMoveCapture: Ze
2441
- }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, g = e.inert, u = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = No([n, t]), C = z(z({}, b), o);
2442
- return f.createElement(
2443
- f.Fragment,
2441
+ }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, g = e.inert, f = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = No([n, t]), C = z(z({}, b), o);
2442
+ return u.createElement(
2443
+ u.Fragment,
2444
2444
  null,
2445
- h && f.createElement(x, { sideCar: gn, removeScrollBar: l, shards: d, noIsolation: m, inert: g, setCallbacks: i, allowPinchZoom: !!u, lockRef: n, gapMode: w }),
2446
- s ? f.cloneElement(f.Children.only(c), z(z({}, C), { ref: E })) : f.createElement(y, z({}, C, { className: a, ref: E }), c)
2445
+ h && u.createElement(x, { sideCar: gn, removeScrollBar: l, shards: d, noIsolation: m, inert: g, setCallbacks: i, allowPinchZoom: !!f, lockRef: n, gapMode: w }),
2446
+ s ? u.cloneElement(u.Children.only(c), z(z({}, C), { ref: E })) : u.createElement(y, z({}, C, { className: a, ref: E }), c)
2447
2447
  );
2448
2448
  });
2449
2449
  $e.defaultProps = {
@@ -2487,7 +2487,7 @@ var $o = function() {
2487
2487
  }, Ho = function() {
2488
2488
  var e = $o();
2489
2489
  return function(t, n) {
2490
- f.useEffect(function() {
2490
+ u.useEffect(function() {
2491
2491
  return e.add(t), function() {
2492
2492
  e.remove();
2493
2493
  };
@@ -2567,7 +2567,7 @@ var $o = function() {
2567
2567
  var e = parseInt(document.body.getAttribute(he) || "0", 10);
2568
2568
  return isFinite(e) ? e : 0;
2569
2569
  }, Ko = function() {
2570
- f.useEffect(function() {
2570
+ u.useEffect(function() {
2571
2571
  return document.body.setAttribute(he, (Wt() + 1).toString()), function() {
2572
2572
  var e = Wt() - 1;
2573
2573
  e <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, e.toString());
@@ -2576,10 +2576,10 @@ var $o = function() {
2576
2576
  }, Go = function(e) {
2577
2577
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2578
2578
  Ko();
2579
- var i = f.useMemo(function() {
2579
+ var i = u.useMemo(function() {
2580
2580
  return Uo(o);
2581
2581
  }, [o]);
2582
- return f.createElement(Yo, { styles: Xo(i, !t, o, n ? "" : "!important") });
2582
+ return u.createElement(Yo, { styles: Xo(i, !t, o, n ? "" : "!important") });
2583
2583
  }, nt = !1;
2584
2584
  if (typeof window < "u")
2585
2585
  try {
@@ -2641,7 +2641,7 @@ var ue = nt ? { passive: !1 } : !1, Zo = function(e) {
2641
2641
  }, ni = function(e, t, n, r, o) {
2642
2642
  var i = ti(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, a = t.contains(c), l = !1, h = s > 0, d = 0, p = 0;
2643
2643
  do {
2644
- var m = bn(e, c), g = m[0], u = m[1], v = m[2], y = u - v - i * g;
2644
+ var m = bn(e, c), g = m[0], f = m[1], v = m[2], y = f - v - i * g;
2645
2645
  (g || y) && xn(e, c) && (d += y, p += g), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
2646
2646
  } while (
2647
2647
  // portaled content
@@ -2664,39 +2664,39 @@ var ue = nt ? { passive: !1 } : !1, Zo = function(e) {
2664
2664
  `);
2665
2665
  }, ii = 0, fe = [];
2666
2666
  function si(e) {
2667
- var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(ii++)[0], i = f.useState(yn)[0], s = f.useRef(e);
2668
- f.useEffect(function() {
2667
+ var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(ii++)[0], i = u.useState(yn)[0], s = u.useRef(e);
2668
+ u.useEffect(function() {
2669
2669
  s.current = e;
2670
- }, [e]), f.useEffect(function() {
2670
+ }, [e]), u.useEffect(function() {
2671
2671
  if (e.inert) {
2672
2672
  document.body.classList.add("block-interactivity-".concat(o));
2673
- var u = Po([e.lockRef.current], (e.shards || []).map(jt), !0).filter(Boolean);
2674
- return u.forEach(function(v) {
2673
+ var f = Po([e.lockRef.current], (e.shards || []).map(jt), !0).filter(Boolean);
2674
+ return f.forEach(function(v) {
2675
2675
  return v.classList.add("allow-interactivity-".concat(o));
2676
2676
  }), function() {
2677
- document.body.classList.remove("block-interactivity-".concat(o)), u.forEach(function(v) {
2677
+ document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(v) {
2678
2678
  return v.classList.remove("allow-interactivity-".concat(o));
2679
2679
  });
2680
2680
  };
2681
2681
  }
2682
2682
  }, [e.inert, e.lockRef.current, e.shards]);
2683
- var c = f.useCallback(function(u, v) {
2684
- if ("touches" in u && u.touches.length === 2)
2683
+ var c = u.useCallback(function(f, v) {
2684
+ if ("touches" in f && f.touches.length === 2)
2685
2685
  return !s.current.allowPinchZoom;
2686
- var y = Ne(u), w = n.current, b = "deltaX" in u ? u.deltaX : w[0] - y[0], x = "deltaY" in u ? u.deltaY : w[1] - y[1], E, C = u.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
2687
- if ("touches" in u && S === "h" && C.type === "range")
2686
+ var y = Ne(f), w = n.current, b = "deltaX" in f ? f.deltaX : w[0] - y[0], x = "deltaY" in f ? f.deltaY : w[1] - y[1], E, C = f.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
2687
+ if ("touches" in f && S === "h" && C.type === "range")
2688
2688
  return !1;
2689
2689
  var A = _t(S, C);
2690
2690
  if (!A)
2691
2691
  return !0;
2692
2692
  if (A ? E = S : (E = S === "v" ? "h" : "v", A = _t(S, C)), !A)
2693
2693
  return !1;
2694
- if (!r.current && "changedTouches" in u && (b || x) && (r.current = E), !E)
2694
+ if (!r.current && "changedTouches" in f && (b || x) && (r.current = E), !E)
2695
2695
  return !0;
2696
2696
  var O = r.current || E;
2697
- return ni(O, v, u, O === "h" ? b : x, !0);
2698
- }, []), a = f.useCallback(function(u) {
2699
- var v = u;
2697
+ return ni(O, v, f, O === "h" ? b : x, !0);
2698
+ }, []), a = u.useCallback(function(f) {
2699
+ var v = f;
2700
2700
  if (!(!fe.length || fe[fe.length - 1] !== i)) {
2701
2701
  var y = "deltaY" in v ? Bt(v) : Ne(v), w = t.current.filter(function(E) {
2702
2702
  return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && ri(E.delta, y);
@@ -2712,37 +2712,37 @@ function si(e) {
2712
2712
  x && v.cancelable && v.preventDefault();
2713
2713
  }
2714
2714
  }
2715
- }, []), l = f.useCallback(function(u, v, y, w) {
2716
- var b = { name: u, delta: v, target: y, should: w, shadowParent: ci(y) };
2715
+ }, []), l = u.useCallback(function(f, v, y, w) {
2716
+ var b = { name: f, delta: v, target: y, should: w, shadowParent: ci(y) };
2717
2717
  t.current.push(b), setTimeout(function() {
2718
2718
  t.current = t.current.filter(function(x) {
2719
2719
  return x !== b;
2720
2720
  });
2721
2721
  }, 1);
2722
- }, []), h = f.useCallback(function(u) {
2723
- n.current = Ne(u), r.current = void 0;
2724
- }, []), d = f.useCallback(function(u) {
2725
- l(u.type, Bt(u), u.target, c(u, e.lockRef.current));
2726
- }, []), p = f.useCallback(function(u) {
2727
- l(u.type, Ne(u), u.target, c(u, e.lockRef.current));
2722
+ }, []), h = u.useCallback(function(f) {
2723
+ n.current = Ne(f), r.current = void 0;
2724
+ }, []), d = u.useCallback(function(f) {
2725
+ l(f.type, Bt(f), f.target, c(f, e.lockRef.current));
2726
+ }, []), p = u.useCallback(function(f) {
2727
+ l(f.type, Ne(f), f.target, c(f, e.lockRef.current));
2728
2728
  }, []);
2729
- f.useEffect(function() {
2729
+ u.useEffect(function() {
2730
2730
  return fe.push(i), e.setCallbacks({
2731
2731
  onScrollCapture: d,
2732
2732
  onWheelCapture: d,
2733
2733
  onTouchMoveCapture: p
2734
2734
  }), document.addEventListener("wheel", a, ue), document.addEventListener("touchmove", a, ue), document.addEventListener("touchstart", h, ue), function() {
2735
- fe = fe.filter(function(u) {
2736
- return u !== i;
2735
+ fe = fe.filter(function(f) {
2736
+ return f !== i;
2737
2737
  }), document.removeEventListener("wheel", a, ue), document.removeEventListener("touchmove", a, ue), document.removeEventListener("touchstart", h, ue);
2738
2738
  };
2739
2739
  }, []);
2740
2740
  var m = e.removeScrollBar, g = e.inert;
2741
- return f.createElement(
2742
- f.Fragment,
2741
+ return u.createElement(
2742
+ u.Fragment,
2743
2743
  null,
2744
- g ? f.createElement(i, { styles: oi(o) }) : null,
2745
- m ? f.createElement(Go, { gapMode: e.gapMode }) : null
2744
+ g ? u.createElement(i, { styles: oi(o) }) : null,
2745
+ m ? u.createElement(Go, { gapMode: e.gapMode }) : null
2746
2746
  );
2747
2747
  }
2748
2748
  function ci(e) {
@@ -2751,39 +2751,64 @@ function ci(e) {
2751
2751
  return t;
2752
2752
  }
2753
2753
  const ai = Io(gn, si);
2754
- var li = f.forwardRef(function(e, t) {
2755
- return f.createElement($e, z({}, e, { ref: t, sideCar: ai }));
2754
+ var li = u.forwardRef(function(e, t) {
2755
+ return u.createElement($e, z({}, e, { ref: t, sideCar: ai }));
2756
2756
  });
2757
2757
  li.classNames = $e.classNames;
2758
+ var ui = "VisuallyHidden", fi = u.forwardRef(
2759
+ (e, t) => /* @__PURE__ */ P.jsx(
2760
+ oe.span,
2761
+ {
2762
+ ...e,
2763
+ ref: t,
2764
+ style: {
2765
+ // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
2766
+ position: "absolute",
2767
+ border: 0,
2768
+ width: 1,
2769
+ height: 1,
2770
+ padding: 0,
2771
+ margin: -1,
2772
+ overflow: "hidden",
2773
+ clip: "rect(0, 0, 0, 0)",
2774
+ whiteSpace: "nowrap",
2775
+ wordWrap: "normal",
2776
+ ...e.style
2777
+ }
2778
+ }
2779
+ )
2780
+ );
2781
+ fi.displayName = ui;
2758
2782
  export {
2759
- Pi as A,
2783
+ Ti as A,
2760
2784
  Gn as B,
2761
- Oi as C,
2785
+ Mi as C,
2762
2786
  sr as D,
2763
2787
  dr as F,
2764
- gi as M,
2765
- ae as P,
2788
+ wi as M,
2789
+ oe as P,
2766
2790
  li as R,
2767
2791
  be as S,
2792
+ fi as V,
2768
2793
  zt as a,
2769
- Ai as b,
2770
- bi as c,
2794
+ Pi as b,
2795
+ Ci as c,
2771
2796
  Ve as d,
2772
- Ci as e,
2797
+ Ai as e,
2773
2798
  ee as f,
2774
- Ti as g,
2775
- Mi as h,
2799
+ Li as g,
2800
+ Ni as h,
2776
2801
  Vt as i,
2777
2802
  er as j,
2778
- Ei as k,
2779
- Ri as l,
2803
+ Si as k,
2804
+ Oi as l,
2780
2805
  Co as m,
2781
- Si as n,
2782
- xi as o,
2783
- yi as p,
2784
- wi as q,
2785
- Ee as r,
2806
+ Ri as n,
2807
+ Ei as o,
2808
+ xi as p,
2809
+ Ee as q,
2810
+ bi as r,
2786
2811
  Zn as s,
2787
- se as u
2812
+ ce as u
2788
2813
  };
2789
- //# sourceMappingURL=Combination-BDDQcRSU.js.map
2814
+ //# sourceMappingURL=index-KUt-5Yzq.js.map