zudoku 0.13.4 → 0.13.6

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 (95) hide show
  1. package/dist/app/main.js +2 -4
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/validate.d.ts +63 -0
  4. package/dist/config/validators/validate.js +10 -0
  5. package/dist/config/validators/validate.js.map +1 -1
  6. package/dist/lib/authentication/components/CallbackHandler.js +21 -31
  7. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  8. package/dist/lib/components/index.d.ts +16 -8
  9. package/dist/lib/components/index.js +8 -3
  10. package/dist/lib/components/index.js.map +1 -1
  11. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  12. package/dist/lib/errors/ErrorAlert.js +8 -3
  13. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  14. package/dist/lib/util/invariant.d.ts +9 -0
  15. package/dist/lib/util/invariant.js +7 -3
  16. package/dist/lib/util/invariant.js.map +1 -1
  17. package/dist/vite/plugin-search.d.ts +3 -0
  18. package/dist/vite/plugin-search.js +26 -0
  19. package/dist/vite/plugin-search.js.map +1 -0
  20. package/dist/vite/plugin.js +2 -0
  21. package/dist/vite/plugin.js.map +1 -1
  22. package/lib/{AuthenticationPlugin-D1nhROkO.js → AuthenticationPlugin-tBvLKsFg.js} +3 -3
  23. package/lib/{AuthenticationPlugin-D1nhROkO.js.map → AuthenticationPlugin-tBvLKsFg.js.map} +1 -1
  24. package/lib/{CategoryHeading-B7TlPvuN.js → CategoryHeading-D2WS6sRI.js} +2 -2
  25. package/lib/{CategoryHeading-B7TlPvuN.js.map → CategoryHeading-D2WS6sRI.js.map} +1 -1
  26. package/lib/ClientOnly-CVN6leDu.js +11 -0
  27. package/lib/ClientOnly-CVN6leDu.js.map +1 -0
  28. package/lib/{DeveloperHint-B_QCCafl.js → DeveloperHint-CRiZjqd2.js} +2 -2
  29. package/lib/{DeveloperHint-B_QCCafl.js.map → DeveloperHint-CRiZjqd2.js.map} +1 -1
  30. package/lib/{Input-DrR6P3mq.js → Input-CO-1DOZa.js} +4 -4
  31. package/lib/{Input-DrR6P3mq.js.map → Input-CO-1DOZa.js.map} +1 -1
  32. package/lib/{Markdown-Y__eLG0x.js → Markdown-DM4zv3MA.js} +9 -8
  33. package/lib/{Markdown-Y__eLG0x.js.map → Markdown-DM4zv3MA.js.map} +1 -1
  34. package/lib/{MdxPage-B4FcPIi5.js → MdxPage-tWI_P8wP.js} +6 -6
  35. package/lib/{MdxPage-B4FcPIi5.js.map → MdxPage-tWI_P8wP.js.map} +1 -1
  36. package/lib/{OperationList-C2jKCTwZ.js → OperationList-Cd3lue0b.js} +11 -12
  37. package/lib/{OperationList-C2jKCTwZ.js.map → OperationList-Cd3lue0b.js.map} +1 -1
  38. package/lib/{Route-DWXcQzRK.js → Route-DI0Y0pIV.js} +3 -3
  39. package/lib/{Route-DWXcQzRK.js.map → Route-DI0Y0pIV.js.map} +1 -1
  40. package/lib/SlotletProvider-CBqY8mp6.js +241 -0
  41. package/lib/SlotletProvider-CBqY8mp6.js.map +1 -0
  42. package/lib/{SidebarBadge-C0iWtji9.js → Spinner-DFQhPMBl.js} +60 -58
  43. package/lib/Spinner-DFQhPMBl.js.map +1 -0
  44. package/lib/{ZudokuContext-MRoel6bS.js → ZudokuContext-DEoP3GGJ.js} +2 -2
  45. package/lib/{ZudokuContext-MRoel6bS.js.map → ZudokuContext-DEoP3GGJ.js.map} +1 -1
  46. package/lib/_commonjsHelpers-BkfeUUK-.js +29 -0
  47. package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
  48. package/lib/index-Bn6Lc9tq.js +9 -0
  49. package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
  50. package/lib/{index-Dso_b0di.js → index-Bs9roz8y.js} +518 -510
  51. package/lib/index-Bs9roz8y.js.map +1 -0
  52. package/lib/{index-Ch8VO_uX.js → index-CBr6BM_4.js} +12 -12
  53. package/lib/{index-Ch8VO_uX.js.map → index-CBr6BM_4.js.map} +1 -1
  54. package/lib/{index-DFN92YJN.js → index-CRo94sKK.js} +5 -4
  55. package/lib/{index-DFN92YJN.js.map → index-CRo94sKK.js.map} +1 -1
  56. package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
  57. package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
  58. package/lib/{index-bYAqbdYl.js → index-UUT9q9f9.js} +3 -3
  59. package/lib/{index-bYAqbdYl.js.map → index-UUT9q9f9.js.map} +1 -1
  60. package/lib/invariant-Caa8-XvF.js +26 -0
  61. package/lib/invariant-Caa8-XvF.js.map +1 -0
  62. package/lib/urql-core-KJnLL26g.js.map +1 -1
  63. package/lib/{useExposedProps-BWwxa-Hg.js → useExposedProps-B9K-9GTc.js} +2 -2
  64. package/lib/{useExposedProps-BWwxa-Hg.js.map → useExposedProps-B9K-9GTc.js.map} +1 -1
  65. package/lib/{utils-C8S3st2k.js → utils-G5XSiZc9.js} +4 -4
  66. package/lib/{utils-C8S3st2k.js.map → utils-G5XSiZc9.js.map} +1 -1
  67. package/lib/zudoku.auth-clerk.js +1 -1
  68. package/lib/zudoku.auth-openid.js +477 -483
  69. package/lib/zudoku.auth-openid.js.map +1 -1
  70. package/lib/zudoku.components.js +611 -607
  71. package/lib/zudoku.components.js.map +1 -1
  72. package/lib/zudoku.openapi-worker.js +2 -2
  73. package/lib/zudoku.plugin-api-keys.js +60 -70
  74. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  75. package/lib/zudoku.plugin-custom-pages.js +2 -2
  76. package/lib/zudoku.plugin-markdown.js +1 -1
  77. package/lib/zudoku.plugin-openapi.js +6 -7
  78. package/lib/zudoku.plugin-openapi.js.map +1 -1
  79. package/lib/zudoku.plugin-search-inkeep.js +9 -13
  80. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  81. package/package.json +1 -1
  82. package/src/app/main.tsx +2 -4
  83. package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
  84. package/src/lib/components/index.ts +11 -4
  85. package/src/lib/errors/ErrorAlert.tsx +18 -5
  86. package/src/lib/util/invariant.ts +15 -3
  87. package/lib/ErrorPage-DqqAV1dr.js +0 -16
  88. package/lib/ErrorPage-DqqAV1dr.js.map +0 -1
  89. package/lib/SidebarBadge-C0iWtji9.js.map +0 -1
  90. package/lib/SlotletProvider-DmqWiVFt.js +0 -239
  91. package/lib/SlotletProvider-DmqWiVFt.js.map +0 -1
  92. package/lib/Spinner-3cQDBVGr.js +0 -7
  93. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  94. package/lib/index-DJqnphbT.js +0 -35
  95. package/lib/index-Dso_b0di.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  var Ha = Object.defineProperty;
2
- var hn = (e) => {
2
+ var pn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var Ua = (e, t, n) => t in e ? Ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var ae = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n), pn = (e, t, n) => t.has(e) || hn("Cannot " + n);
7
- var w = (e, t, n) => (pn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? hn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (pn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
6
+ var ae = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n), mn = (e, t, n) => t.has(e) || pn("Cannot " + n);
7
+ var w = (e, t, n) => (mn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? pn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (mn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
8
  var ut = (e, t, n, r) => ({
9
9
  set _(o) {
10
10
  X(e, t, o, n);
@@ -13,30 +13,31 @@ var ut = (e, t, n, r) => ({
13
13
  return w(e, t, r);
14
14
  }
15
15
  });
16
- import { c as On, H as kt, M as za, d as Ka, A as qa, b as Qa } from "./utils-C8S3st2k.js";
17
- import { e as Va, f as Ga, R as Wa, N as Ze, L as $t, g as Ya, O as In, h as Xa, b as Ja, u as Ft } from "./index-DFN92YJN.js";
18
- import { E as An, S as xe, a as Za, R as eo } from "./SlotletProvider-DmqWiVFt.js";
16
+ import { c as In, H as kt, M as za, d as Ka, A as qa, b as Qa } from "./utils-G5XSiZc9.js";
17
+ import { e as Va, f as Ga, R as Wa, g as Je, L as $t, h as Ya, O as An, i as Xa, b as Za, u as Ft } from "./index-CRo94sKK.js";
18
+ import { u as Ja } from "./state-CsuHT8ZO.js";
19
+ import { E as kn, S as ye, a as eo, R as to } from "./SlotletProvider-CBqY8mp6.js";
19
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
20
- import { M as to, f as no, c as kn, p as $n, A as ro, d as rt, j as ao, b as I, k as oo, F as so, D as io, C as lo, P as qe, i as Lt, q as co, s as Fn, R as uo, S as fo, t as ho, h as po, r as Ln, m as mo, a as gt, u as Bn, n as vt, V as Hn, B as Nt } from "./index-Ch8VO_uX.js";
21
- import { a as F, c as Un, b as go, T as vo, d as wo, V as xo, u as Bt, e as yo, C as bo } from "./Markdown-Y__eLG0x.js";
21
+ import { M as no, g as ro, c as $n, p as Fn, A as ao, d as rt, k as oo, b as I, l as so, F as io, D as lo, C as co, P as qe, j as Lt, q as uo, s as Ln, R as fo, S as ho, t as po, i as mo, r as Bn, n as go, a as gt, u as Hn, f as vt, V as Un, B as Nt } from "./index-CBr6BM_4.js";
22
+ import { a as F, c as zn, b as vo, T as wo, d as yo, V as xo, u as Bt, e as bo, C as So } from "./Markdown-DM4zv3MA.js";
22
23
  import * as h from "react";
23
- import p, { StrictMode as zn, createContext as Kn, Component as So, createElement as mn, isValidElement as Co, useState as Ie, useMemo as mt, useLayoutEffect as Mo, useEffect as Ce, useCallback as qn, Suspense as Qn, memo as Vn, useContext as Ro, Fragment as Eo, useRef as Ht, forwardRef as Do } from "react";
24
- import { a as Ut } from "./index-DJqnphbT.js";
25
- import { B as Po } from "./router-BsfSoK2j.js";
26
- import { a as Tt, R as jo, T as No, C as To } from "./index-bYAqbdYl.js";
27
- import { S as Gn, f as Wn, Q as _o, n as se, m as gn, g as vn, i as be, j as Oo, k as Io, l as Ao, o as ko, p as wn, r as xn, q as $o, h as yn, t as bn, v as Fo, u as Ae, b as Lo, Z as Bo, w as Ho, c as Yn, x as Uo } from "./ZudokuContext-MRoel6bS.js";
24
+ import p, { StrictMode as Kn, createContext as qn, Component as Co, createElement as gn, isValidElement as Mo, useState as Ie, useMemo as mt, useLayoutEffect as Ro, useEffect as Ce, useCallback as Qn, Suspense as Vn, memo as Gn, useContext as Eo, Fragment as Do, useRef as Ht, forwardRef as Po } from "react";
25
+ import { a as Ut } from "./_commonjsHelpers-BkfeUUK-.js";
26
+ import { B as jo } from "./router-BsfSoK2j.js";
27
+ import { a as Tt, R as No, T as To, C as _o } from "./index-UUT9q9f9.js";
28
+ import { C as Oo } from "./ClientOnly-CVN6leDu.js";
29
+ import { S as Wn, f as Yn, Q as Io, n as se, m as vn, g as wn, i as be, j as Ao, k as ko, l as $o, o as Fo, p as yn, r as xn, q as Lo, h as bn, t as Sn, v as Bo, u as Ae, b as Ho, Z as Uo, w as zo, c as Xn, x as Ko } from "./ZudokuContext-DEoP3GGJ.js";
28
30
  import { j as wt } from "./joinPath-B7kNnUX4.js";
29
- import { ChevronRightIcon as Xn, CheckIcon as zo, DotIcon as Ko, CircleXIcon as qo, SearchIcon as Qo, MenuIcon as Vo, MoonStarIcon as Go, SunIcon as Wo, ExternalLinkIcon as Yo, PanelLeftIcon as Xo } from "lucide-react";
30
- import { c as Jn, P as bt, R as Jo, I as Zo, O as es, C as ts, T as ns, a as rs, b as as, D as os, d as ss, e as is, S as Mt } from "./SidebarBadge-C0iWtji9.js";
31
- import { S as ls } from "./Spinner-3cQDBVGr.js";
32
- function cs({ error: e }) {
33
- return /* @__PURE__ */ a.jsx(An, { error: e });
31
+ import { ChevronRightIcon as Zn, CheckIcon as qo, DotIcon as Qo, CircleXIcon as Vo, SearchIcon as Go, MenuIcon as Wo, MoonStarIcon as Yo, SunIcon as Xo, ExternalLinkIcon as Zo, PanelLeftIcon as Jo } from "lucide-react";
32
+ import { c as Jn, P as bt, R as es, I as ts, O as ns, C as rs, T as as, a as os, b as ss, D as is, d as ls, e as cs, S as Mt, f as us } from "./Spinner-DFQhPMBl.js";
33
+ function ds({ error: e }) {
34
+ return /* @__PURE__ */ a.jsx(kn, { error: e });
34
35
  }
35
36
  var at = {};
36
- const us = /* @__PURE__ */ Ut(Po), ds = /* @__PURE__ */ Ut(Va), fs = /* @__PURE__ */ Ut(Ga);
37
+ const fs = /* @__PURE__ */ Ut(jo), hs = /* @__PURE__ */ Ut(Va), ps = /* @__PURE__ */ Ut(Ga);
37
38
  Object.defineProperty(at, "__esModule", { value: !0 });
38
- var hs = p, we = us, zt = ds, Se = fs;
39
- function ps(e) {
39
+ var ms = p, we = fs, zt = hs, Se = ps;
40
+ function gs(e) {
40
41
  if (e && e.__esModule) return e;
41
42
  var t = /* @__PURE__ */ Object.create(null);
42
43
  return e && Object.keys(e).forEach(function(n) {
@@ -51,8 +52,8 @@ function ps(e) {
51
52
  }
52
53
  }), t.default = e, Object.freeze(t);
53
54
  }
54
- var ge = /* @__PURE__ */ ps(hs);
55
- function ms({
55
+ var ge = /* @__PURE__ */ gs(ms);
56
+ function vs({
56
57
  basename: e,
57
58
  children: t,
58
59
  location: n = "/",
@@ -65,7 +66,7 @@ function ms({
65
66
  hash: n.hash || "",
66
67
  state: n.state != null ? n.state : null,
67
68
  key: n.key || "default"
68
- }, i = Zn();
69
+ }, i = er();
69
70
  return /* @__PURE__ */ ge.createElement(Se.Router, {
70
71
  basename: e,
71
72
  children: t,
@@ -76,7 +77,7 @@ function ms({
76
77
  static: !0
77
78
  });
78
79
  }
79
- function gs({
80
+ function ws({
80
81
  context: e,
81
82
  router: t,
82
83
  hydrate: n = !0,
@@ -85,7 +86,7 @@ function gs({
85
86
  t && e || (process.env.NODE_ENV !== "production" ? we.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : we.UNSAFE_invariant(!1));
86
87
  let o = {
87
88
  router: t,
88
- navigator: Zn(),
89
+ navigator: er(),
89
90
  static: !0,
90
91
  staticContext: e,
91
92
  basename: e.basename || "/"
@@ -94,9 +95,9 @@ function gs({
94
95
  let u = {
95
96
  loaderData: e.loaderData,
96
97
  actionData: e.actionData,
97
- errors: ws(e.errors)
98
+ errors: xs(e.errors)
98
99
  };
99
- i = `window.__staticRouterHydrationData = JSON.parse(${Ms(JSON.stringify(JSON.stringify(u)))});`;
100
+ i = `window.__staticRouterHydrationData = JSON.parse(${Es(JSON.stringify(JSON.stringify(u)))});`;
100
101
  }
101
102
  let {
102
103
  state: l
@@ -120,7 +121,7 @@ function gs({
120
121
  future: {
121
122
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
122
123
  }
123
- }, /* @__PURE__ */ ge.createElement(vs, {
124
+ }, /* @__PURE__ */ ge.createElement(ys, {
124
125
  routes: t.routes,
125
126
  future: t.future,
126
127
  state: l
@@ -132,14 +133,14 @@ function gs({
132
133
  }
133
134
  }) : null);
134
135
  }
135
- function vs({
136
+ function ys({
136
137
  routes: e,
137
138
  future: t,
138
139
  state: n
139
140
  }) {
140
141
  return zt.UNSAFE_useRoutesImpl(e, void 0, n, t);
141
142
  }
142
- function ws(e) {
143
+ function xs(e) {
143
144
  if (!e) return null;
144
145
  let t = Object.entries(e), n = {};
145
146
  for (let [r, o] of t)
@@ -157,10 +158,10 @@ function ws(e) {
157
158
  } : n[r] = o;
158
159
  return n;
159
160
  }
160
- function Zn() {
161
+ function er() {
161
162
  return {
162
- createHref: er,
163
- encodeLocation: tr,
163
+ createHref: tr,
164
+ encodeLocation: nr,
164
165
  push(e) {
165
166
  throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
166
167
  },
@@ -178,13 +179,13 @@ function Zn() {
178
179
  }
179
180
  };
180
181
  }
181
- function xs(e, t) {
182
+ function bs(e, t) {
182
183
  return we.createStaticHandler(e, {
183
184
  ...t,
184
185
  mapRouteProperties: zt.UNSAFE_mapRouteProperties
185
186
  });
186
187
  }
187
- function ys(e, t, n = {}) {
188
+ function Ss(e, t, n = {}) {
188
189
  let r = {}, o = we.UNSAFE_convertRoutesToDataRoutes(e, zt.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
189
190
  let u = r[l.route.id] || l.route;
190
191
  return {
@@ -247,8 +248,8 @@ function ys(e, t, n = {}) {
247
248
  revalidate() {
248
249
  throw i("revalidate");
249
250
  },
250
- createHref: er,
251
- encodeLocation: tr,
251
+ createHref: tr,
252
+ encodeLocation: nr,
252
253
  getFetcher() {
253
254
  return we.IDLE_FETCHER;
254
255
  },
@@ -274,51 +275,51 @@ function ys(e, t, n = {}) {
274
275
  }
275
276
  };
276
277
  }
277
- function er(e) {
278
+ function tr(e) {
278
279
  return typeof e == "string" ? e : Se.createPath(e);
279
280
  }
280
- function tr(e) {
281
+ function nr(e) {
281
282
  let t = typeof e == "string" ? e : Se.createPath(e);
282
283
  t = t.replace(/ $/, "%20");
283
- let n = bs.test(t) ? new URL(t) : new URL(t, "http://localhost");
284
+ let n = Cs.test(t) ? new URL(t) : new URL(t, "http://localhost");
284
285
  return {
285
286
  pathname: n.pathname,
286
287
  search: n.search,
287
288
  hash: n.hash
288
289
  };
289
290
  }
290
- const bs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ss = {
291
+ const Cs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ms = {
291
292
  "&": "\\u0026",
292
293
  ">": "\\u003e",
293
294
  "<": "\\u003c",
294
295
  "\u2028": "\\u2028",
295
296
  "\u2029": "\\u2029"
296
- }, Cs = /[&><\u2028\u2029]/g;
297
- function Ms(e) {
298
- return e.replace(Cs, (t) => Ss[t]);
299
- }
300
- at.StaticRouter = ms;
301
- var Rs = at.StaticRouterProvider = gs;
302
- at.createStaticHandler = xs;
303
- at.createStaticRouter = ys;
304
- const Es = ({
297
+ }, Rs = /[&><\u2028\u2029]/g;
298
+ function Es(e) {
299
+ return e.replace(Rs, (t) => Ms[t]);
300
+ }
301
+ at.StaticRouter = vs;
302
+ var Ds = at.StaticRouterProvider = ws;
303
+ at.createStaticHandler = bs;
304
+ at.createStaticRouter = Ss;
305
+ const Ps = ({
305
306
  router: e,
306
307
  hydrate: t = !1
307
- }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { children: /* @__PURE__ */ a.jsx(Tt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Wa, { router: e }) }) }) }), Ds = ({
308
+ }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { children: /* @__PURE__ */ a.jsx(Tt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Wa, { router: e }) }) }) }), js = ({
308
309
  router: e,
309
310
  context: t,
310
311
  helmetContext: n
311
- }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { context: n, children: /* @__PURE__ */ a.jsx(Rs, { router: e, context: t }) }) });
312
- var ve, Nn, Ps = (Nn = class extends Gn {
312
+ }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { context: n, children: /* @__PURE__ */ a.jsx(Ds, { router: e, context: t }) }) });
313
+ var ve, Tn, Ns = (Tn = class extends Wn {
313
314
  constructor(t = {}) {
314
315
  super();
315
316
  ce(this, ve);
316
317
  this.config = t, X(this, ve, /* @__PURE__ */ new Map());
317
318
  }
318
319
  build(t, n, r) {
319
- const o = n.queryKey, s = n.queryHash ?? Wn(o, n);
320
+ const o = n.queryKey, s = n.queryHash ?? Yn(o, n);
320
321
  let i = this.get(s);
321
- return i || (i = new _o({
322
+ return i || (i = new Io({
322
323
  cache: this,
323
324
  queryKey: o,
324
325
  queryHash: s,
@@ -353,12 +354,12 @@ var ve, Nn, Ps = (Nn = class extends Gn {
353
354
  find(t) {
354
355
  const n = { exact: !0, ...t };
355
356
  return this.getAll().find(
356
- (r) => gn(n, r)
357
+ (r) => vn(n, r)
357
358
  );
358
359
  }
359
360
  findAll(t = {}) {
360
361
  const n = this.getAll();
361
- return Object.keys(t).length > 0 ? n.filter((r) => gn(t, r)) : n;
362
+ return Object.keys(t).length > 0 ? n.filter((r) => vn(t, r)) : n;
362
363
  }
363
364
  notify(t) {
364
365
  se.batch(() => {
@@ -381,7 +382,7 @@ var ve, Nn, Ps = (Nn = class extends Gn {
381
382
  });
382
383
  });
383
384
  }
384
- }, ve = new WeakMap(), Nn), oe, nt, Tn, js = (Tn = class extends Gn {
385
+ }, ve = new WeakMap(), Tn), oe, nt, _n, Ts = (_n = class extends Wn {
385
386
  constructor(t = {}) {
386
387
  super();
387
388
  ce(this, oe);
@@ -389,7 +390,7 @@ var ve, Nn, Ps = (Nn = class extends Gn {
389
390
  this.config = t, X(this, oe, /* @__PURE__ */ new Map()), X(this, nt, Date.now());
390
391
  }
391
392
  build(t, n, r) {
392
- const o = new to({
393
+ const o = new no({
393
394
  mutationCache: this,
394
395
  mutationId: ++ut(this, nt)._,
395
396
  options: t.defaultMutationOptions(n),
@@ -433,11 +434,11 @@ var ve, Nn, Ps = (Nn = class extends Gn {
433
434
  find(t) {
434
435
  const n = { exact: !0, ...t };
435
436
  return this.getAll().find(
436
- (r) => vn(n, r)
437
+ (r) => wn(n, r)
437
438
  );
438
439
  }
439
440
  findAll(t = {}) {
440
- return this.getAll().filter((n) => vn(t, n));
441
+ return this.getAll().filter((n) => wn(t, n));
441
442
  }
442
443
  notify(t) {
443
444
  se.batch(() => {
@@ -454,12 +455,12 @@ var ve, Nn, Ps = (Nn = class extends Gn {
454
455
  )
455
456
  );
456
457
  }
457
- }, oe = new WeakMap(), nt = new WeakMap(), Tn);
458
+ }, oe = new WeakMap(), nt = new WeakMap(), _n);
458
459
  function dt(e) {
459
460
  var t;
460
461
  return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
461
462
  }
462
- function Sn(e) {
463
+ function Cn(e) {
463
464
  return {
464
465
  onFetch: (t, n) => {
465
466
  var f, c, d, R, C;
@@ -474,36 +475,36 @@ function Sn(e) {
474
475
  g = !0;
475
476
  }), t.signal)
476
477
  });
477
- }, M = Oo(t.options, t.fetchOptions), A = async (P, v, z) => {
478
+ }, M = Ao(t.options, t.fetchOptions), A = async (P, v, z) => {
478
479
  if (g)
479
480
  return Promise.reject();
480
481
  if (v == null && P.pages.length)
481
482
  return Promise.resolve(P);
482
- const Z = {
483
+ const J = {
483
484
  queryKey: t.queryKey,
484
485
  pageParam: v,
485
486
  direction: z ? "backward" : "forward",
486
487
  meta: t.options.meta
487
488
  };
488
- T(Z);
489
+ T(J);
489
490
  const b = await M(
490
- Z
491
- ), { maxPages: j } = t.options, D = z ? Io : Ao;
491
+ J
492
+ ), { maxPages: j } = t.options, D = z ? ko : $o;
492
493
  return {
493
494
  pages: D(P.pages, b, j),
494
495
  pageParams: D(P.pageParams, v, j)
495
496
  };
496
497
  };
497
498
  if (o && s.length) {
498
- const P = o === "backward", v = P ? Ns : Cn, z = {
499
+ const P = o === "backward", v = P ? _s : Mn, z = {
499
500
  pages: s,
500
501
  pageParams: i
501
- }, Z = v(r, z);
502
- l = await A(z, Z, P);
502
+ }, J = v(r, z);
503
+ l = await A(z, J, P);
503
504
  } else {
504
505
  const P = e ?? s.length;
505
506
  do {
506
- const v = u === 0 ? i[0] ?? r.initialPageParam : Cn(r, l);
507
+ const v = u === 0 ? i[0] ?? r.initialPageParam : Mn(r, l);
507
508
  if (u > 0 && v == null)
508
509
  break;
509
510
  l = await A(l, v), u++;
@@ -527,7 +528,7 @@ function Sn(e) {
527
528
  }
528
529
  };
529
530
  }
530
- function Cn(e, { pages: t, pageParams: n }) {
531
+ function Mn(e, { pages: t, pageParams: n }) {
531
532
  const r = t.length - 1;
532
533
  return t.length > 0 ? e.getNextPageParam(
533
534
  t[r],
@@ -536,11 +537,11 @@ function Cn(e, { pages: t, pageParams: n }) {
536
537
  n
537
538
  ) : void 0;
538
539
  }
539
- function Ns(e, { pages: t, pageParams: n }) {
540
+ function _s(e, { pages: t, pageParams: n }) {
540
541
  var r;
541
542
  return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
542
543
  }
543
- var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
544
+ var $, Pe, je, He, Ue, Ne, ze, Ke, On, Os = (On = class {
544
545
  constructor(e = {}) {
545
546
  ce(this, $);
546
547
  ce(this, Pe);
@@ -550,12 +551,12 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
550
551
  ce(this, Ne);
551
552
  ce(this, ze);
552
553
  ce(this, Ke);
553
- X(this, $, e.queryCache || new Ps()), X(this, Pe, e.mutationCache || new js()), X(this, je, e.defaultOptions || {}), X(this, He, /* @__PURE__ */ new Map()), X(this, Ue, /* @__PURE__ */ new Map()), X(this, Ne, 0);
554
+ X(this, $, e.queryCache || new Ns()), X(this, Pe, e.mutationCache || new Ts()), X(this, je, e.defaultOptions || {}), X(this, He, /* @__PURE__ */ new Map()), X(this, Ue, /* @__PURE__ */ new Map()), X(this, Ne, 0);
554
555
  }
555
556
  mount() {
556
- ut(this, Ne)._++, w(this, Ne) === 1 && (X(this, ze, ko.subscribe(async (e) => {
557
+ ut(this, Ne)._++, w(this, Ne) === 1 && (X(this, ze, Fo.subscribe(async (e) => {
557
558
  e && (await this.resumePausedMutations(), w(this, $).onFocus());
558
- })), X(this, Ke, wn.subscribe(async (e) => {
559
+ })), X(this, Ke, yn.subscribe(async (e) => {
559
560
  e && (await this.resumePausedMutations(), w(this, $).onOnline());
560
561
  })));
561
562
  }
@@ -592,7 +593,7 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
592
593
  setQueryData(e, t, n) {
593
594
  const r = this.defaultQueryOptions({ queryKey: e }), o = w(this, $).get(
594
595
  r.queryHash
595
- ), s = o == null ? void 0 : o.state.data, i = $o(t, s);
596
+ ), s = o == null ? void 0 : o.state.data, i = Lo(t, s);
596
597
  if (i !== void 0)
597
598
  return w(this, $).build(this, r).setData(i, { ...n, manual: !0 });
598
599
  }
@@ -669,16 +670,16 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
669
670
  return this.fetchQuery(e).then(be).catch(be);
670
671
  }
671
672
  fetchInfiniteQuery(e) {
672
- return e.behavior = Sn(e.pages), this.fetchQuery(e);
673
+ return e.behavior = Cn(e.pages), this.fetchQuery(e);
673
674
  }
674
675
  prefetchInfiniteQuery(e) {
675
676
  return this.fetchInfiniteQuery(e).then(be).catch(be);
676
677
  }
677
678
  ensureInfiniteQueryData(e) {
678
- return e.behavior = Sn(e.pages), this.ensureQueryData(e);
679
+ return e.behavior = Cn(e.pages), this.ensureQueryData(e);
679
680
  }
680
681
  resumePausedMutations() {
681
- return wn.isOnline() ? w(this, Pe).resumePausedMutations() : Promise.resolve();
682
+ return yn.isOnline() ? w(this, Pe).resumePausedMutations() : Promise.resolve();
682
683
  }
683
684
  getQueryCache() {
684
685
  return w(this, $);
@@ -693,7 +694,7 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
693
694
  X(this, je, e);
694
695
  }
695
696
  setQueryDefaults(e, t) {
696
- w(this, He).set(yn(e), {
697
+ w(this, He).set(bn(e), {
697
698
  queryKey: e,
698
699
  defaultOptions: t
699
700
  });
@@ -702,11 +703,11 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
702
703
  const t = [...w(this, He).values()];
703
704
  let n = {};
704
705
  return t.forEach((r) => {
705
- bn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
706
+ Sn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
706
707
  }), n;
707
708
  }
708
709
  setMutationDefaults(e, t) {
709
- w(this, Ue).set(yn(e), {
710
+ w(this, Ue).set(bn(e), {
710
711
  mutationKey: e,
711
712
  defaultOptions: t
712
713
  });
@@ -715,7 +716,7 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
715
716
  const t = [...w(this, Ue).values()];
716
717
  let n = {};
717
718
  return t.forEach((r) => {
718
- bn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
719
+ Sn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
719
720
  }), n;
720
721
  }
721
722
  defaultQueryOptions(e) {
@@ -727,10 +728,10 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
727
728
  ...e,
728
729
  _defaulted: !0
729
730
  };
730
- return t.queryHash || (t.queryHash = Wn(
731
+ return t.queryHash || (t.queryHash = Yn(
731
732
  t.queryKey,
732
733
  t
733
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Fo && (t.enabled = !1), t;
734
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Bo && (t.enabled = !1), t;
734
735
  }
735
736
  defaultMutationOptions(e) {
736
737
  return e != null && e._defaulted ? e : {
@@ -743,12 +744,12 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
743
744
  clear() {
744
745
  w(this, $).clear(), w(this, Pe).clear();
745
746
  }
746
- }, $ = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), He = new WeakMap(), Ue = new WeakMap(), Ne = new WeakMap(), ze = new WeakMap(), Ke = new WeakMap(), _n);
747
- const _s = Kn(null), Rt = {
747
+ }, $ = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), He = new WeakMap(), Ue = new WeakMap(), Ne = new WeakMap(), ze = new WeakMap(), Ke = new WeakMap(), On);
748
+ const Is = qn(null), Rt = {
748
749
  didCatch: !1,
749
750
  error: null
750
751
  };
751
- class Os extends So {
752
+ class As extends Co {
752
753
  constructor(t) {
753
754
  super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Rt;
754
755
  }
@@ -781,7 +782,7 @@ class Os extends So {
781
782
  } = this.state, {
782
783
  resetKeys: o
783
784
  } = this.props;
784
- if (r && n.error !== null && Is(t.resetKeys, o)) {
785
+ if (r && n.error !== null && ks(t.resetKeys, o)) {
785
786
  var s, i;
786
787
  (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
787
788
  next: o,
@@ -809,13 +810,13 @@ class Os extends So {
809
810
  if (typeof n == "function")
810
811
  l = n(u);
811
812
  else if (r)
812
- l = mn(r, u);
813
- else if (o === null || Co(o))
813
+ l = gn(r, u);
814
+ else if (o === null || Mo(o))
814
815
  l = o;
815
816
  else
816
817
  throw i;
817
818
  }
818
- return mn(_s.Provider, {
819
+ return gn(Is.Provider, {
819
820
  value: {
820
821
  didCatch: s,
821
822
  error: i,
@@ -824,12 +825,12 @@ class Os extends So {
824
825
  }, l);
825
826
  }
826
827
  }
827
- function Is() {
828
+ function ks() {
828
829
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
829
830
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
830
831
  }
831
- const As = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", ks = (e) => "getRoutes" in e && typeof e.getRoutes == "function", $s = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Fs = (e) => "initialize" in e && typeof e.initialize == "function", Ls = (e) => "getHead" in e && typeof e.getHead == "function", Bs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Hs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", nr = new Ts();
832
- class Us {
832
+ const $s = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Fs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Ls = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Bs = (e) => "initialize" in e && typeof e.initialize == "function", Hs = (e) => "getHead" in e && typeof e.getHead == "function", Us = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", zs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", rr = new Os();
833
+ class Ks {
833
834
  constructor(t) {
834
835
  ae(this, "plugins");
835
836
  ae(this, "sidebars");
@@ -840,17 +841,17 @@ class Us {
840
841
  ae(this, "navigationPlugins");
841
842
  ae(this, "initialize", async () => {
842
843
  await Promise.all(
843
- this.plugins.filter(Fs).map((t) => {
844
+ this.plugins.filter(Bs).map((t) => {
844
845
  var n;
845
846
  return (n = t.initialize) == null ? void 0 : n.call(t, this);
846
847
  })
847
848
  );
848
849
  });
849
850
  ae(this, "invalidateCache", async (t) => {
850
- await nr.invalidateQueries({ queryKey: t });
851
+ await rr.invalidateQueries({ queryKey: t });
851
852
  });
852
853
  ae(this, "getApiIdentities", async () => (await Promise.all(
853
- this.plugins.filter(Hs).map((n) => n.getIdentities(this))
854
+ this.plugins.filter(zs).map((n) => n.getIdentities(this))
854
855
  )).flat());
855
856
  ae(this, "getPluginSidebar", async (t) => (await Promise.all(
856
857
  this.navigationPlugins.map(
@@ -866,26 +867,26 @@ class Us {
866
867
  const n = await this.authentication.getAccessToken();
867
868
  return t.headers.set("Authorization", `Bearer ${n}`), t;
868
869
  });
869
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ks), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
870
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Fs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
870
871
  }
871
872
  }
872
- function zs({ error: e, resetErrorBoundary: t }) {
873
- return /* @__PURE__ */ a.jsx(An, { error: e });
873
+ function qs({ error: e, resetErrorBoundary: t }) {
874
+ return /* @__PURE__ */ a.jsx(kn, { error: e });
874
875
  }
875
876
  const ft = globalThis;
876
877
  (!ft.requestIdleCallback || !ft.cancelIdleCallback) && (ft.requestIdleCallback = (e) => setTimeout(e, 1), ft.cancelIdleCallback = clearTimeout);
877
- var _t = ["Enter", " "], Ks = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp", "PageDown", "End"], qs = [...Ks, ...rr], Qs = {
878
+ var _t = ["Enter", " "], Qs = ["ArrowDown", "PageUp", "Home"], ar = ["ArrowUp", "PageDown", "End"], Vs = [...Qs, ...ar], Gs = {
878
879
  ltr: [..._t, "ArrowRight"],
879
880
  rtl: [..._t, "ArrowLeft"]
880
- }, Vs = {
881
+ }, Ws = {
881
882
  ltr: ["ArrowLeft"],
882
883
  rtl: ["ArrowRight"]
883
- }, ot = "Menu", [et, Gs, Ws] = no(ot), [ke, ar] = kn(ot, [
884
- Ws,
885
- $n,
884
+ }, ot = "Menu", [et, Ys, Xs] = ro(ot), [ke, or] = $n(ot, [
885
+ Xs,
886
+ Fn,
886
887
  Jn
887
- ]), st = $n(), or = Jn(), [sr, Te] = ke(ot), [Ys, it] = ke(ot), ir = (e) => {
888
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = Lt(s), d = po(o);
888
+ ]), st = Fn(), sr = Jn(), [ir, Te] = ke(ot), [Zs, it] = ke(ot), lr = (e) => {
889
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = Lt(s), d = mo(o);
889
890
  return h.useEffect(() => {
890
891
  const R = () => {
891
892
  f.current = !0, document.addEventListener("pointerdown", C, { capture: !0, once: !0 }), document.addEventListener("pointermove", C, { capture: !0, once: !0 });
@@ -893,8 +894,8 @@ var _t = ["Enter", " "], Ks = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
893
894
  return document.addEventListener("keydown", R, { capture: !0 }), () => {
894
895
  document.removeEventListener("keydown", R, { capture: !0 }), document.removeEventListener("pointerdown", C, { capture: !0 }), document.removeEventListener("pointermove", C, { capture: !0 });
895
896
  };
896
- }, []), /* @__PURE__ */ a.jsx(Ln, { ...l, children: /* @__PURE__ */ a.jsx(
897
- sr,
897
+ }, []), /* @__PURE__ */ a.jsx(Bn, { ...l, children: /* @__PURE__ */ a.jsx(
898
+ ir,
898
899
  {
899
900
  scope: t,
900
901
  open: n,
@@ -902,7 +903,7 @@ var _t = ["Enter", " "], Ks = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
902
903
  content: u,
903
904
  onContentChange: m,
904
905
  children: /* @__PURE__ */ a.jsx(
905
- Ys,
906
+ Zs,
906
907
  {
907
908
  scope: t,
908
909
  onClose: h.useCallback(() => c(!1), [c]),
@@ -915,32 +916,32 @@ var _t = ["Enter", " "], Ks = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
915
916
  }
916
917
  ) });
917
918
  };
918
- ir.displayName = ot;
919
- var Xs = "MenuAnchor", Kt = h.forwardRef(
919
+ lr.displayName = ot;
920
+ var Js = "MenuAnchor", Kt = h.forwardRef(
920
921
  (e, t) => {
921
922
  const { __scopeMenu: n, ...r } = e, o = st(n);
922
- return /* @__PURE__ */ a.jsx(ro, { ...o, ...r, ref: t });
923
+ return /* @__PURE__ */ a.jsx(ao, { ...o, ...r, ref: t });
923
924
  }
924
925
  );
925
- Kt.displayName = Xs;
926
- var qt = "MenuPortal", [Js, lr] = ke(qt, {
926
+ Kt.displayName = Js;
927
+ var qt = "MenuPortal", [ei, cr] = ke(qt, {
927
928
  forceMount: void 0
928
- }), cr = (e) => {
929
+ }), ur = (e) => {
929
930
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(qt, t);
930
- return /* @__PURE__ */ a.jsx(Js, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(bt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(mo, { asChild: !0, container: o, children: r }) }) });
931
+ return /* @__PURE__ */ a.jsx(ei, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(bt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(go, { asChild: !0, container: o, children: r }) }) });
931
932
  };
932
- cr.displayName = qt;
933
- var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
933
+ ur.displayName = qt;
934
+ var ue = "MenuContent", [ti, Qt] = ke(ue), dr = h.forwardRef(
934
935
  (e, t) => {
935
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu);
936
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ei, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ti, { ...o, ref: t }) }) }) });
936
+ const n = cr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu);
937
+ return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ni, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ri, { ...o, ref: t }) }) }) });
937
938
  }
938
- ), ei = h.forwardRef(
939
+ ), ni = h.forwardRef(
939
940
  (e, t) => {
940
941
  const n = Te(ue, e.__scopeMenu), r = h.useRef(null), o = rt(t, r);
941
942
  return h.useEffect(() => {
942
943
  const s = r.current;
943
- if (s) return ao(s);
944
+ if (s) return oo(s);
944
945
  }, []), /* @__PURE__ */ a.jsx(
945
946
  Vt,
946
947
  {
@@ -958,7 +959,7 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
958
959
  }
959
960
  );
960
961
  }
961
- ), ti = h.forwardRef((e, t) => {
962
+ ), ri = h.forwardRef((e, t) => {
962
963
  const n = Te(ue, e.__scopeMenu);
963
964
  return /* @__PURE__ */ a.jsx(
964
965
  Vt,
@@ -988,58 +989,58 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
988
989
  onDismiss: R,
989
990
  disableOutsideScroll: C,
990
991
  ...g
991
- } = e, T = Te(ue, n), M = it(ue, n), A = st(n), P = or(n), v = Gs(n), [z, Z] = h.useState(null), b = h.useRef(null), j = rt(t, b, T.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), x = h.useRef("right"), V = h.useRef(0), G = C ? uo : h.Fragment, te = C ? { as: fo, allowPinchZoom: !0 } : void 0, q = (y) => {
992
+ } = e, T = Te(ue, n), M = it(ue, n), A = st(n), P = sr(n), v = Ys(n), [z, J] = h.useState(null), b = h.useRef(null), j = rt(t, b, T.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), y = h.useRef("right"), V = h.useRef(0), G = C ? fo : h.Fragment, te = C ? { as: ho, allowPinchZoom: !0 } : void 0, q = (x) => {
992
993
  var le, Re;
993
- const Q = B.current + y, ie = v().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), $e = hi(Me, Q, pe), ye = (Re = ie.find((re) => re.textValue === $e)) == null ? void 0 : Re.ref.current;
994
+ const Q = B.current + x, ie = v().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), $e = mi(Me, Q, pe), xe = (Re = ie.find((re) => re.textValue === $e)) == null ? void 0 : Re.ref.current;
994
995
  (function re(Fe) {
995
996
  B.current = Fe, window.clearTimeout(D.current), Fe !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
996
- })(Q), ye && setTimeout(() => ye.focus());
997
+ })(Q), xe && setTimeout(() => xe.focus());
997
998
  };
998
- h.useEffect(() => () => window.clearTimeout(D.current), []), oo();
999
- const Y = h.useCallback((y) => {
999
+ h.useEffect(() => () => window.clearTimeout(D.current), []), so();
1000
+ const Y = h.useCallback((x) => {
1000
1001
  var ie, de;
1001
- return x.current === ((ie = W.current) == null ? void 0 : ie.side) && mi(y, (de = W.current) == null ? void 0 : de.area);
1002
+ return y.current === ((ie = W.current) == null ? void 0 : ie.side) && vi(x, (de = W.current) == null ? void 0 : de.area);
1002
1003
  }, []);
1003
1004
  return /* @__PURE__ */ a.jsx(
1004
- Zs,
1005
+ ti,
1005
1006
  {
1006
1007
  scope: n,
1007
1008
  searchRef: B,
1008
1009
  onItemEnter: h.useCallback(
1009
- (y) => {
1010
- Y(y) && y.preventDefault();
1010
+ (x) => {
1011
+ Y(x) && x.preventDefault();
1011
1012
  },
1012
1013
  [Y]
1013
1014
  ),
1014
1015
  onItemLeave: h.useCallback(
1015
- (y) => {
1016
+ (x) => {
1016
1017
  var Q;
1017
- Y(y) || ((Q = b.current) == null || Q.focus(), Z(null));
1018
+ Y(x) || ((Q = b.current) == null || Q.focus(), J(null));
1018
1019
  },
1019
1020
  [Y]
1020
1021
  ),
1021
1022
  onTriggerLeave: h.useCallback(
1022
- (y) => {
1023
- Y(y) && y.preventDefault();
1023
+ (x) => {
1024
+ Y(x) && x.preventDefault();
1024
1025
  },
1025
1026
  [Y]
1026
1027
  ),
1027
1028
  pointerGraceTimerRef: K,
1028
- onPointerGraceIntentChange: h.useCallback((y) => {
1029
- W.current = y;
1029
+ onPointerGraceIntentChange: h.useCallback((x) => {
1030
+ W.current = x;
1030
1031
  }, []),
1031
1032
  children: /* @__PURE__ */ a.jsx(G, { ...te, children: /* @__PURE__ */ a.jsx(
1032
- so,
1033
+ io,
1033
1034
  {
1034
1035
  asChild: !0,
1035
1036
  trapped: o,
1036
- onMountAutoFocus: I(s, (y) => {
1037
+ onMountAutoFocus: I(s, (x) => {
1037
1038
  var Q;
1038
- y.preventDefault(), (Q = b.current) == null || Q.focus({ preventScroll: !0 });
1039
+ x.preventDefault(), (Q = b.current) == null || Q.focus({ preventScroll: !0 });
1039
1040
  }),
1040
1041
  onUnmountAutoFocus: i,
1041
1042
  children: /* @__PURE__ */ a.jsx(
1042
- io,
1043
+ lo,
1043
1044
  {
1044
1045
  asChild: !0,
1045
1046
  disableOutsidePointerEvents: l,
@@ -1049,7 +1050,7 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
1049
1050
  onInteractOutside: d,
1050
1051
  onDismiss: R,
1051
1052
  children: /* @__PURE__ */ a.jsx(
1052
- Jo,
1053
+ es,
1053
1054
  {
1054
1055
  asChild: !0,
1055
1056
  ...P,
@@ -1057,42 +1058,42 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
1057
1058
  orientation: "vertical",
1058
1059
  loop: r,
1059
1060
  currentTabStopId: z,
1060
- onCurrentTabStopIdChange: Z,
1061
- onEntryFocus: I(u, (y) => {
1062
- M.isUsingKeyboardRef.current || y.preventDefault();
1061
+ onCurrentTabStopIdChange: J,
1062
+ onEntryFocus: I(u, (x) => {
1063
+ M.isUsingKeyboardRef.current || x.preventDefault();
1063
1064
  }),
1064
1065
  preventScrollOnEntryFocus: !0,
1065
1066
  children: /* @__PURE__ */ a.jsx(
1066
- lo,
1067
+ co,
1067
1068
  {
1068
1069
  role: "menu",
1069
1070
  "aria-orientation": "vertical",
1070
- "data-state": Dr(T.open),
1071
+ "data-state": Pr(T.open),
1071
1072
  "data-radix-menu-content": "",
1072
1073
  dir: M.dir,
1073
1074
  ...A,
1074
1075
  ...g,
1075
1076
  ref: j,
1076
1077
  style: { outline: "none", ...g.style },
1077
- onKeyDown: I(g.onKeyDown, (y) => {
1078
- const ie = y.target.closest("[data-radix-menu-content]") === y.currentTarget, de = y.ctrlKey || y.altKey || y.metaKey, pe = y.key.length === 1;
1079
- ie && (y.key === "Tab" && y.preventDefault(), !de && pe && q(y.key));
1078
+ onKeyDown: I(g.onKeyDown, (x) => {
1079
+ const ie = x.target.closest("[data-radix-menu-content]") === x.currentTarget, de = x.ctrlKey || x.altKey || x.metaKey, pe = x.key.length === 1;
1080
+ ie && (x.key === "Tab" && x.preventDefault(), !de && pe && q(x.key));
1080
1081
  const Me = b.current;
1081
- if (y.target !== Me || !qs.includes(y.key)) return;
1082
- y.preventDefault();
1083
- const ye = v().filter((le) => !le.disabled).map((le) => le.ref.current);
1084
- rr.includes(y.key) && ye.reverse(), di(ye);
1082
+ if (x.target !== Me || !Vs.includes(x.key)) return;
1083
+ x.preventDefault();
1084
+ const xe = v().filter((le) => !le.disabled).map((le) => le.ref.current);
1085
+ ar.includes(x.key) && xe.reverse(), hi(xe);
1085
1086
  }),
1086
- onBlur: I(e.onBlur, (y) => {
1087
- y.currentTarget.contains(y.target) || (window.clearTimeout(D.current), B.current = "");
1087
+ onBlur: I(e.onBlur, (x) => {
1088
+ x.currentTarget.contains(x.target) || (window.clearTimeout(D.current), B.current = "");
1088
1089
  }),
1089
1090
  onPointerMove: I(
1090
1091
  e.onPointerMove,
1091
- tt((y) => {
1092
- const Q = y.target, ie = V.current !== y.clientX;
1093
- if (y.currentTarget.contains(Q) && ie) {
1094
- const de = y.clientX > V.current ? "right" : "left";
1095
- x.current = de, V.current = y.clientX;
1092
+ tt((x) => {
1093
+ const Q = x.target, ie = V.current !== x.clientX;
1094
+ if (x.currentTarget.contains(Q) && ie) {
1095
+ const de = x.clientX > V.current ? "right" : "left";
1096
+ y.current = de, V.current = x.clientX;
1096
1097
  }
1097
1098
  })
1098
1099
  )
@@ -1108,32 +1109,32 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
1108
1109
  );
1109
1110
  }
1110
1111
  );
1111
- ur.displayName = ue;
1112
- var ni = "MenuGroup", Gt = h.forwardRef(
1112
+ dr.displayName = ue;
1113
+ var ai = "MenuGroup", Gt = h.forwardRef(
1113
1114
  (e, t) => {
1114
1115
  const { __scopeMenu: n, ...r } = e;
1115
1116
  return /* @__PURE__ */ a.jsx(qe.div, { role: "group", ...r, ref: t });
1116
1117
  }
1117
1118
  );
1118
- Gt.displayName = ni;
1119
- var ri = "MenuLabel", dr = h.forwardRef(
1119
+ Gt.displayName = ai;
1120
+ var oi = "MenuLabel", fr = h.forwardRef(
1120
1121
  (e, t) => {
1121
1122
  const { __scopeMenu: n, ...r } = e;
1122
1123
  return /* @__PURE__ */ a.jsx(qe.div, { ...r, ref: t });
1123
1124
  }
1124
1125
  );
1125
- dr.displayName = ri;
1126
- var xt = "MenuItem", Mn = "menu.itemSelect", St = h.forwardRef(
1126
+ fr.displayName = oi;
1127
+ var yt = "MenuItem", Rn = "menu.itemSelect", St = h.forwardRef(
1127
1128
  (e, t) => {
1128
- const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(xt, e.__scopeMenu), l = Qt(xt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1129
+ const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(yt, e.__scopeMenu), l = Qt(yt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1129
1130
  const c = s.current;
1130
1131
  if (!n && c) {
1131
- const d = new CustomEvent(Mn, { bubbles: !0, cancelable: !0 });
1132
- c.addEventListener(Mn, (R) => r == null ? void 0 : r(R), { once: !0 }), ho(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1132
+ const d = new CustomEvent(Rn, { bubbles: !0, cancelable: !0 });
1133
+ c.addEventListener(Rn, (R) => r == null ? void 0 : r(R), { once: !0 }), po(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1133
1134
  }
1134
1135
  };
1135
1136
  return /* @__PURE__ */ a.jsx(
1136
- fr,
1137
+ hr,
1137
1138
  {
1138
1139
  ...o,
1139
1140
  ref: u,
@@ -1155,10 +1156,10 @@ var xt = "MenuItem", Mn = "menu.itemSelect", St = h.forwardRef(
1155
1156
  );
1156
1157
  }
1157
1158
  );
1158
- St.displayName = xt;
1159
- var fr = h.forwardRef(
1159
+ St.displayName = yt;
1160
+ var hr = h.forwardRef(
1160
1161
  (e, t) => {
1161
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Qt(xt, n), l = or(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, R] = h.useState("");
1162
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Qt(yt, n), l = sr(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, R] = h.useState("");
1162
1163
  return h.useEffect(() => {
1163
1164
  const C = u.current;
1164
1165
  C && R((C.textContent ?? "").trim());
@@ -1168,7 +1169,7 @@ var fr = h.forwardRef(
1168
1169
  scope: n,
1169
1170
  disabled: r,
1170
1171
  textValue: o ?? d,
1171
- children: /* @__PURE__ */ a.jsx(Zo, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1172
+ children: /* @__PURE__ */ a.jsx(ts, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1172
1173
  qe.div,
1173
1174
  {
1174
1175
  role: "menuitem",
@@ -1194,42 +1195,42 @@ var fr = h.forwardRef(
1194
1195
  }
1195
1196
  );
1196
1197
  }
1197
- ), ai = "MenuCheckboxItem", hr = h.forwardRef(
1198
+ ), si = "MenuCheckboxItem", pr = h.forwardRef(
1198
1199
  (e, t) => {
1199
1200
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
1200
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1201
+ return /* @__PURE__ */ a.jsx(yr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1201
1202
  St,
1202
1203
  {
1203
1204
  role: "menuitemcheckbox",
1204
- "aria-checked": yt(n) ? "mixed" : n,
1205
+ "aria-checked": xt(n) ? "mixed" : n,
1205
1206
  ...o,
1206
1207
  ref: t,
1207
1208
  "data-state": Xt(n),
1208
1209
  onSelect: I(
1209
1210
  o.onSelect,
1210
- () => r == null ? void 0 : r(yt(n) ? !0 : !n),
1211
+ () => r == null ? void 0 : r(xt(n) ? !0 : !n),
1211
1212
  { checkForDefaultPrevented: !1 }
1212
1213
  )
1213
1214
  }
1214
1215
  ) });
1215
1216
  }
1216
1217
  );
1217
- hr.displayName = ai;
1218
- var pr = "MenuRadioGroup", [oi, si] = ke(
1219
- pr,
1218
+ pr.displayName = si;
1219
+ var mr = "MenuRadioGroup", [ii, li] = ke(
1220
+ mr,
1220
1221
  { value: void 0, onValueChange: () => {
1221
1222
  } }
1222
- ), mr = h.forwardRef(
1223
+ ), gr = h.forwardRef(
1223
1224
  (e, t) => {
1224
1225
  const { value: n, onValueChange: r, ...o } = e, s = Lt(r);
1225
- return /* @__PURE__ */ a.jsx(oi, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Gt, { ...o, ref: t }) });
1226
+ return /* @__PURE__ */ a.jsx(ii, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Gt, { ...o, ref: t }) });
1226
1227
  }
1227
1228
  );
1228
- mr.displayName = pr;
1229
- var gr = "MenuRadioItem", vr = h.forwardRef(
1229
+ gr.displayName = mr;
1230
+ var vr = "MenuRadioItem", wr = h.forwardRef(
1230
1231
  (e, t) => {
1231
- const { value: n, ...r } = e, o = si(gr, e.__scopeMenu), s = n === o.value;
1232
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1232
+ const { value: n, ...r } = e, o = li(vr, e.__scopeMenu), s = n === o.value;
1233
+ return /* @__PURE__ */ a.jsx(yr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1233
1234
  St,
1234
1235
  {
1235
1236
  role: "menuitemradio",
@@ -1249,17 +1250,17 @@ var gr = "MenuRadioItem", vr = h.forwardRef(
1249
1250
  ) });
1250
1251
  }
1251
1252
  );
1252
- vr.displayName = gr;
1253
- var Wt = "MenuItemIndicator", [wr, ii] = ke(
1253
+ wr.displayName = vr;
1254
+ var Wt = "MenuItemIndicator", [yr, ci] = ke(
1254
1255
  Wt,
1255
1256
  { checked: !1 }
1256
1257
  ), xr = h.forwardRef(
1257
1258
  (e, t) => {
1258
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = ii(Wt, n);
1259
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = ci(Wt, n);
1259
1260
  return /* @__PURE__ */ a.jsx(
1260
1261
  bt,
1261
1262
  {
1262
- present: r || yt(s.checked) || s.checked === !0,
1263
+ present: r || xt(s.checked) || s.checked === !0,
1263
1264
  children: /* @__PURE__ */ a.jsx(
1264
1265
  qe.span,
1265
1266
  {
@@ -1273,7 +1274,7 @@ var Wt = "MenuItemIndicator", [wr, ii] = ke(
1273
1274
  }
1274
1275
  );
1275
1276
  xr.displayName = Wt;
1276
- var li = "MenuSeparator", yr = h.forwardRef(
1277
+ var ui = "MenuSeparator", br = h.forwardRef(
1277
1278
  (e, t) => {
1278
1279
  const { __scopeMenu: n, ...r } = e;
1279
1280
  return /* @__PURE__ */ a.jsx(
@@ -1287,18 +1288,18 @@ var li = "MenuSeparator", yr = h.forwardRef(
1287
1288
  );
1288
1289
  }
1289
1290
  );
1290
- yr.displayName = li;
1291
- var ci = "MenuArrow", br = h.forwardRef(
1291
+ br.displayName = ui;
1292
+ var di = "MenuArrow", Sr = h.forwardRef(
1292
1293
  (e, t) => {
1293
1294
  const { __scopeMenu: n, ...r } = e, o = st(n);
1294
- return /* @__PURE__ */ a.jsx(co, { ...o, ...r, ref: t });
1295
+ return /* @__PURE__ */ a.jsx(uo, { ...o, ...r, ref: t });
1295
1296
  }
1296
1297
  );
1297
- br.displayName = ci;
1298
- var Yt = "MenuSub", [ui, Sr] = ke(Yt), Cr = (e) => {
1298
+ Sr.displayName = di;
1299
+ var Yt = "MenuSub", [fi, Cr] = ke(Yt), Mr = (e) => {
1299
1300
  const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(Yt, t), i = st(t), [l, u] = h.useState(null), [m, f] = h.useState(null), c = Lt(o);
1300
- return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(Ln, { ...i, children: /* @__PURE__ */ a.jsx(
1301
- sr,
1301
+ return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(Bn, { ...i, children: /* @__PURE__ */ a.jsx(
1302
+ ir,
1302
1303
  {
1303
1304
  scope: t,
1304
1305
  open: r,
@@ -1306,7 +1307,7 @@ var Yt = "MenuSub", [ui, Sr] = ke(Yt), Cr = (e) => {
1306
1307
  content: m,
1307
1308
  onContentChange: f,
1308
1309
  children: /* @__PURE__ */ a.jsx(
1309
- ui,
1310
+ fi,
1310
1311
  {
1311
1312
  scope: t,
1312
1313
  contentId: gt(),
@@ -1319,10 +1320,10 @@ var Yt = "MenuSub", [ui, Sr] = ke(Yt), Cr = (e) => {
1319
1320
  }
1320
1321
  ) });
1321
1322
  };
1322
- Cr.displayName = Yt;
1323
- var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1323
+ Mr.displayName = Yt;
1324
+ var Xe = "MenuSubTrigger", Rr = h.forwardRef(
1324
1325
  (e, t) => {
1325
- const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Sr(Xe, e.__scopeMenu), s = Qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1326
+ const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Cr(Xe, e.__scopeMenu), s = Qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1326
1327
  i.current && window.clearTimeout(i.current), i.current = null;
1327
1328
  }, []);
1328
1329
  return h.useEffect(() => f, [f]), h.useEffect(() => {
@@ -1331,15 +1332,15 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1331
1332
  window.clearTimeout(c), u(null);
1332
1333
  };
1333
1334
  }, [l, u]), /* @__PURE__ */ a.jsx(Kt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1334
- fr,
1335
+ hr,
1335
1336
  {
1336
1337
  id: o.triggerId,
1337
1338
  "aria-haspopup": "menu",
1338
1339
  "aria-expanded": n.open,
1339
1340
  "aria-controls": o.contentId,
1340
- "data-state": Dr(n.open),
1341
+ "data-state": Pr(n.open),
1341
1342
  ...e,
1342
- ref: Fn(t, o.onTriggerChange),
1343
+ ref: Ln(t, o.onTriggerChange),
1343
1344
  onClick: (c) => {
1344
1345
  var d;
1345
1346
  (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
@@ -1384,16 +1385,16 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1384
1385
  onKeyDown: I(e.onKeyDown, (c) => {
1385
1386
  var R;
1386
1387
  const d = s.searchRef.current !== "";
1387
- e.disabled || d && c.key === " " || Qs[r.dir].includes(c.key) && (n.onOpenChange(!0), (R = n.content) == null || R.focus(), c.preventDefault());
1388
+ e.disabled || d && c.key === " " || Gs[r.dir].includes(c.key) && (n.onOpenChange(!0), (R = n.content) == null || R.focus(), c.preventDefault());
1388
1389
  })
1389
1390
  }
1390
1391
  ) });
1391
1392
  }
1392
1393
  );
1393
- Mr.displayName = Xe;
1394
- var Rr = "MenuSubContent", Er = h.forwardRef(
1394
+ Rr.displayName = Xe;
1395
+ var Er = "MenuSubContent", Dr = h.forwardRef(
1395
1396
  (e, t) => {
1396
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu), l = Sr(Rr, e.__scopeMenu), u = h.useRef(null), m = rt(t, u);
1397
+ const n = cr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu), l = Cr(Er, e.__scopeMenu), u = h.useRef(null), m = rt(t, u);
1397
1398
  return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1398
1399
  Vt,
1399
1400
  {
@@ -1419,41 +1420,41 @@ var Rr = "MenuSubContent", Er = h.forwardRef(
1419
1420
  }),
1420
1421
  onKeyDown: I(e.onKeyDown, (f) => {
1421
1422
  var R;
1422
- const c = f.currentTarget.contains(f.target), d = Vs[i.dir].includes(f.key);
1423
+ const c = f.currentTarget.contains(f.target), d = Ws[i.dir].includes(f.key);
1423
1424
  c && d && (s.onOpenChange(!1), (R = l.trigger) == null || R.focus(), f.preventDefault());
1424
1425
  })
1425
1426
  }
1426
1427
  ) }) }) });
1427
1428
  }
1428
1429
  );
1429
- Er.displayName = Rr;
1430
- function Dr(e) {
1430
+ Dr.displayName = Er;
1431
+ function Pr(e) {
1431
1432
  return e ? "open" : "closed";
1432
1433
  }
1433
- function yt(e) {
1434
+ function xt(e) {
1434
1435
  return e === "indeterminate";
1435
1436
  }
1436
1437
  function Xt(e) {
1437
- return yt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1438
+ return xt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1438
1439
  }
1439
- function di(e) {
1440
+ function hi(e) {
1440
1441
  const t = document.activeElement;
1441
1442
  for (const n of e)
1442
1443
  if (n === t || (n.focus(), document.activeElement !== t)) return;
1443
1444
  }
1444
- function fi(e, t) {
1445
+ function pi(e, t) {
1445
1446
  return e.map((n, r) => e[(t + r) % e.length]);
1446
1447
  }
1447
- function hi(e, t, n) {
1448
+ function mi(e, t, n) {
1448
1449
  const o = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1449
- let i = fi(e, Math.max(s, 0));
1450
+ let i = pi(e, Math.max(s, 0));
1450
1451
  o.length === 1 && (i = i.filter((m) => m !== n));
1451
1452
  const u = i.find(
1452
1453
  (m) => m.toLowerCase().startsWith(o.toLowerCase())
1453
1454
  );
1454
1455
  return u !== n ? u : void 0;
1455
1456
  }
1456
- function pi(e, t) {
1457
+ function gi(e, t) {
1457
1458
  const { x: n, y: r } = e;
1458
1459
  let o = !1;
1459
1460
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -1462,18 +1463,18 @@ function pi(e, t) {
1462
1463
  }
1463
1464
  return o;
1464
1465
  }
1465
- function mi(e, t) {
1466
+ function vi(e, t) {
1466
1467
  if (!t) return !1;
1467
1468
  const n = { x: e.clientX, y: e.clientY };
1468
- return pi(n, t);
1469
+ return gi(n, t);
1469
1470
  }
1470
1471
  function tt(e) {
1471
1472
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1472
1473
  }
1473
- var gi = ir, vi = Kt, wi = cr, xi = ur, yi = Gt, bi = dr, Si = St, Ci = hr, Mi = mr, Ri = vr, Ei = xr, Di = yr, Pi = br, ji = Cr, Ni = Mr, Ti = Er, Jt = "DropdownMenu", [_i, fc] = kn(
1474
- Jt,
1475
- [ar]
1476
- ), J = ar(), [Oi, Pr] = _i(Jt), jr = (e) => {
1474
+ var wi = lr, yi = Kt, xi = ur, bi = dr, Si = Gt, Ci = fr, Mi = St, Ri = pr, Ei = gr, Di = wr, Pi = xr, ji = br, Ni = Sr, Ti = Mr, _i = Rr, Oi = Dr, Zt = "DropdownMenu", [Ii, mc] = $n(
1475
+ Zt,
1476
+ [or]
1477
+ ), Z = or(), [Ai, jr] = Ii(Zt), Nr = (e) => {
1477
1478
  const {
1478
1479
  __scopeDropdownMenu: t,
1479
1480
  children: n,
@@ -1482,13 +1483,13 @@ var gi = ir, vi = Kt, wi = cr, xi = ur, yi = Gt, bi = dr, Si = St, Ci = hr, Mi =
1482
1483
  defaultOpen: s,
1483
1484
  onOpenChange: i,
1484
1485
  modal: l = !0
1485
- } = e, u = J(t), m = h.useRef(null), [f = !1, c] = Bn({
1486
+ } = e, u = Z(t), m = h.useRef(null), [f = !1, c] = Hn({
1486
1487
  prop: o,
1487
1488
  defaultProp: s,
1488
1489
  onChange: i
1489
1490
  });
1490
1491
  return /* @__PURE__ */ a.jsx(
1491
- Oi,
1492
+ Ai,
1492
1493
  {
1493
1494
  scope: t,
1494
1495
  triggerId: gt(),
@@ -1498,15 +1499,15 @@ var gi = ir, vi = Kt, wi = cr, xi = ur, yi = Gt, bi = dr, Si = St, Ci = hr, Mi =
1498
1499
  onOpenChange: c,
1499
1500
  onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1500
1501
  modal: l,
1501
- children: /* @__PURE__ */ a.jsx(gi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1502
+ children: /* @__PURE__ */ a.jsx(wi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1502
1503
  }
1503
1504
  );
1504
1505
  };
1505
- jr.displayName = Jt;
1506
- var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1506
+ Nr.displayName = Zt;
1507
+ var Tr = "DropdownMenuTrigger", _r = h.forwardRef(
1507
1508
  (e, t) => {
1508
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Pr(Nr, n), i = J(n);
1509
- return /* @__PURE__ */ a.jsx(vi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1509
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = jr(Tr, n), i = Z(n);
1510
+ return /* @__PURE__ */ a.jsx(yi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1510
1511
  qe.button,
1511
1512
  {
1512
1513
  type: "button",
@@ -1518,7 +1519,7 @@ var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1518
1519
  "data-disabled": r ? "" : void 0,
1519
1520
  disabled: r,
1520
1521
  ...o,
1521
- ref: Fn(t, s.triggerRef),
1522
+ ref: Ln(t, s.triggerRef),
1522
1523
  onPointerDown: I(e.onPointerDown, (l) => {
1523
1524
  !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1524
1525
  }),
@@ -1529,17 +1530,17 @@ var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1529
1530
  ) });
1530
1531
  }
1531
1532
  );
1532
- Tr.displayName = Nr;
1533
- var Ii = "DropdownMenuPortal", _r = (e) => {
1534
- const { __scopeDropdownMenu: t, ...n } = e, r = J(t);
1535
- return /* @__PURE__ */ a.jsx(wi, { ...r, ...n });
1533
+ _r.displayName = Tr;
1534
+ var ki = "DropdownMenuPortal", Or = (e) => {
1535
+ const { __scopeDropdownMenu: t, ...n } = e, r = Z(t);
1536
+ return /* @__PURE__ */ a.jsx(xi, { ...r, ...n });
1536
1537
  };
1537
- _r.displayName = Ii;
1538
- var Or = "DropdownMenuContent", Ir = h.forwardRef(
1538
+ Or.displayName = ki;
1539
+ var Ir = "DropdownMenuContent", Ar = h.forwardRef(
1539
1540
  (e, t) => {
1540
- const { __scopeDropdownMenu: n, ...r } = e, o = Pr(Or, n), s = J(n), i = h.useRef(!1);
1541
+ const { __scopeDropdownMenu: n, ...r } = e, o = jr(Ir, n), s = Z(n), i = h.useRef(!1);
1541
1542
  return /* @__PURE__ */ a.jsx(
1542
- xi,
1543
+ bi,
1543
1544
  {
1544
1545
  id: o.contentId,
1545
1546
  "aria-labelledby": o.triggerId,
@@ -1566,76 +1567,76 @@ var Or = "DropdownMenuContent", Ir = h.forwardRef(
1566
1567
  );
1567
1568
  }
1568
1569
  );
1569
- Ir.displayName = Or;
1570
- var Ai = "DropdownMenuGroup", ki = h.forwardRef(
1570
+ Ar.displayName = Ir;
1571
+ var $i = "DropdownMenuGroup", Fi = h.forwardRef(
1571
1572
  (e, t) => {
1572
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1573
- return /* @__PURE__ */ a.jsx(yi, { ...o, ...r, ref: t });
1573
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1574
+ return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1574
1575
  }
1575
1576
  );
1576
- ki.displayName = Ai;
1577
- var $i = "DropdownMenuLabel", Ar = h.forwardRef(
1577
+ Fi.displayName = $i;
1578
+ var Li = "DropdownMenuLabel", kr = h.forwardRef(
1578
1579
  (e, t) => {
1579
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1580
- return /* @__PURE__ */ a.jsx(bi, { ...o, ...r, ref: t });
1580
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1581
+ return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1581
1582
  }
1582
1583
  );
1583
- Ar.displayName = $i;
1584
- var Fi = "DropdownMenuItem", kr = h.forwardRef(
1584
+ kr.displayName = Li;
1585
+ var Bi = "DropdownMenuItem", $r = h.forwardRef(
1585
1586
  (e, t) => {
1586
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1587
- return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1587
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1588
+ return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1588
1589
  }
1589
1590
  );
1590
- kr.displayName = Fi;
1591
- var Li = "DropdownMenuCheckboxItem", $r = h.forwardRef((e, t) => {
1592
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1593
- return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1594
- });
1595
- $r.displayName = Li;
1596
- var Bi = "DropdownMenuRadioGroup", Hi = h.forwardRef((e, t) => {
1597
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1598
- return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1599
- });
1600
- Hi.displayName = Bi;
1601
- var Ui = "DropdownMenuRadioItem", Fr = h.forwardRef((e, t) => {
1602
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1591
+ $r.displayName = Bi;
1592
+ var Hi = "DropdownMenuCheckboxItem", Fr = h.forwardRef((e, t) => {
1593
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1603
1594
  return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
1604
1595
  });
1605
- Fr.displayName = Ui;
1606
- var zi = "DropdownMenuItemIndicator", Lr = h.forwardRef((e, t) => {
1607
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1596
+ Fr.displayName = Hi;
1597
+ var Ui = "DropdownMenuRadioGroup", zi = h.forwardRef((e, t) => {
1598
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1608
1599
  return /* @__PURE__ */ a.jsx(Ei, { ...o, ...r, ref: t });
1609
1600
  });
1610
- Lr.displayName = zi;
1611
- var Ki = "DropdownMenuSeparator", Br = h.forwardRef((e, t) => {
1612
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1601
+ zi.displayName = Ui;
1602
+ var Ki = "DropdownMenuRadioItem", Lr = h.forwardRef((e, t) => {
1603
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1613
1604
  return /* @__PURE__ */ a.jsx(Di, { ...o, ...r, ref: t });
1614
1605
  });
1615
- Br.displayName = Ki;
1616
- var qi = "DropdownMenuArrow", Qi = h.forwardRef(
1606
+ Lr.displayName = Ki;
1607
+ var qi = "DropdownMenuItemIndicator", Br = h.forwardRef((e, t) => {
1608
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1609
+ return /* @__PURE__ */ a.jsx(Pi, { ...o, ...r, ref: t });
1610
+ });
1611
+ Br.displayName = qi;
1612
+ var Qi = "DropdownMenuSeparator", Hr = h.forwardRef((e, t) => {
1613
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1614
+ return /* @__PURE__ */ a.jsx(ji, { ...o, ...r, ref: t });
1615
+ });
1616
+ Hr.displayName = Qi;
1617
+ var Vi = "DropdownMenuArrow", Gi = h.forwardRef(
1617
1618
  (e, t) => {
1618
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1619
- return /* @__PURE__ */ a.jsx(Pi, { ...o, ...r, ref: t });
1619
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1620
+ return /* @__PURE__ */ a.jsx(Ni, { ...o, ...r, ref: t });
1620
1621
  }
1621
1622
  );
1622
- Qi.displayName = qi;
1623
- var Vi = (e) => {
1624
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = J(t), [l = !1, u] = Bn({
1623
+ Gi.displayName = Vi;
1624
+ var Wi = (e) => {
1625
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = Z(t), [l = !1, u] = Hn({
1625
1626
  prop: r,
1626
1627
  defaultProp: s,
1627
1628
  onChange: o
1628
1629
  });
1629
- return /* @__PURE__ */ a.jsx(ji, { ...i, open: l, onOpenChange: u, children: n });
1630
- }, Gi = "DropdownMenuSubTrigger", Hr = h.forwardRef((e, t) => {
1631
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1632
- return /* @__PURE__ */ a.jsx(Ni, { ...o, ...r, ref: t });
1630
+ return /* @__PURE__ */ a.jsx(Ti, { ...i, open: l, onOpenChange: u, children: n });
1631
+ }, Yi = "DropdownMenuSubTrigger", Ur = h.forwardRef((e, t) => {
1632
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1633
+ return /* @__PURE__ */ a.jsx(_i, { ...o, ...r, ref: t });
1633
1634
  });
1634
- Hr.displayName = Gi;
1635
- var Wi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1636
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1635
+ Ur.displayName = Yi;
1636
+ var Xi = "DropdownMenuSubContent", zr = h.forwardRef((e, t) => {
1637
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1637
1638
  return /* @__PURE__ */ a.jsx(
1638
- Ti,
1639
+ Oi,
1639
1640
  {
1640
1641
  ...o,
1641
1642
  ...r,
@@ -1651,10 +1652,10 @@ var Wi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1651
1652
  }
1652
1653
  );
1653
1654
  });
1654
- Ur.displayName = Wi;
1655
- var Yi = jr, Xi = Tr, zr = _r, Kr = Ir, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Ji = Vi, Xr = Hr, Jr = Ur;
1656
- const Zi = Yi, el = Xi, tl = zr, nl = Ji, Zr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1657
- Xr,
1655
+ zr.displayName = Xi;
1656
+ var Zi = Nr, Ji = _r, Kr = Or, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Xr = Hr, el = Wi, Zr = Ur, Jr = zr;
1657
+ const tl = Zi, nl = Ji, rl = Kr, al = el, ea = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1658
+ Zr,
1658
1659
  {
1659
1660
  ref: o,
1660
1661
  className: F(
@@ -1665,12 +1666,12 @@ const Zi = Yi, el = Xi, tl = zr, nl = Ji, Zr = h.forwardRef(({ className: e, ins
1665
1666
  ...r,
1666
1667
  children: [
1667
1668
  n,
1668
- /* @__PURE__ */ a.jsx(Xn, { className: "ml-auto h-4 w-4" })
1669
+ /* @__PURE__ */ a.jsx(Zn, { className: "ml-auto h-4 w-4" })
1669
1670
  ]
1670
1671
  }
1671
1672
  ));
1672
- Zr.displayName = Xr.displayName;
1673
- const ea = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1673
+ ea.displayName = Zr.displayName;
1674
+ const ta = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1674
1675
  Jr,
1675
1676
  {
1676
1677
  ref: n,
@@ -1681,9 +1682,9 @@ const ea = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1681
1682
  ...t
1682
1683
  }
1683
1684
  ));
1684
- ea.displayName = Jr.displayName;
1685
- const ta = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(zr, { children: /* @__PURE__ */ a.jsx(
1686
- Kr,
1685
+ ta.displayName = Jr.displayName;
1686
+ const na = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(Kr, { children: /* @__PURE__ */ a.jsx(
1687
+ qr,
1687
1688
  {
1688
1689
  ref: r,
1689
1690
  sideOffset: t,
@@ -1695,9 +1696,9 @@ const ta = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
1695
1696
  ...n
1696
1697
  }
1697
1698
  ) }));
1698
- ta.displayName = Kr.displayName;
1699
- const na = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1700
- Qr,
1699
+ na.displayName = qr.displayName;
1700
+ const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1701
+ Vr,
1701
1702
  {
1702
1703
  ref: r,
1703
1704
  className: F(
@@ -1708,9 +1709,9 @@ const na = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1708
1709
  ...n
1709
1710
  }
1710
1711
  ));
1711
- na.displayName = Qr.displayName;
1712
- const rl = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1713
- Vr,
1712
+ ra.displayName = Vr.displayName;
1713
+ const ol = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1714
+ Gr,
1714
1715
  {
1715
1716
  ref: o,
1716
1717
  className: F(
@@ -1720,14 +1721,14 @@ const rl = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
1720
1721
  checked: n,
1721
1722
  ...r,
1722
1723
  children: [
1723
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(zo, { className: "h-4 w-4" }) }) }),
1724
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Yr, { children: /* @__PURE__ */ a.jsx(qo, { className: "h-4 w-4" }) }) }),
1724
1725
  t
1725
1726
  ]
1726
1727
  }
1727
1728
  ));
1728
- rl.displayName = Vr.displayName;
1729
- const al = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1730
- Gr,
1729
+ ol.displayName = Gr.displayName;
1730
+ const sl = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1731
+ Wr,
1731
1732
  {
1732
1733
  ref: r,
1733
1734
  className: F(
@@ -1736,14 +1737,14 @@ const al = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
1736
1737
  ),
1737
1738
  ...n,
1738
1739
  children: [
1739
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Ko, { className: "h-4 w-4 fill-current" }) }) }),
1740
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Yr, { children: /* @__PURE__ */ a.jsx(Qo, { className: "h-4 w-4 fill-current" }) }) }),
1740
1741
  t
1741
1742
  ]
1742
1743
  }
1743
1744
  ));
1744
- al.displayName = Gr.displayName;
1745
- const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1746
- qr,
1745
+ sl.displayName = Wr.displayName;
1746
+ const aa = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1747
+ Qr,
1747
1748
  {
1748
1749
  ref: r,
1749
1750
  className: F(
@@ -1754,27 +1755,27 @@ const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1754
1755
  ...n
1755
1756
  }
1756
1757
  ));
1757
- ra.displayName = qr.displayName;
1758
- const aa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1759
- Yr,
1758
+ aa.displayName = Qr.displayName;
1759
+ const oa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1760
+ Xr,
1760
1761
  {
1761
1762
  ref: n,
1762
1763
  className: F("-mx-1 my-1 h-px bg-muted", e),
1763
1764
  ...t
1764
1765
  }
1765
1766
  ));
1766
- aa.displayName = Yr.displayName;
1767
- const Rn = {
1767
+ oa.displayName = Xr.displayName;
1768
+ const En = {
1768
1769
  info: "bg-blue-500",
1769
1770
  note: "bg-gray-500",
1770
1771
  tip: "bg-green-600",
1771
1772
  caution: "bg-orange-500",
1772
1773
  danger: "bg-rose-500"
1773
- }, ol = () => {
1774
+ }, il = () => {
1774
1775
  const { page: e } = Ae(), [t, n] = Ie(!0);
1775
1776
  if (!(e != null && e.banner) || !t)
1776
1777
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1777
- const r = e.banner.color && e.banner.color in Rn ? Rn[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = r ? {} : { backgroundColor: e.banner.color };
1778
+ const r = e.banner.color && e.banner.color in En ? En[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = r ? {} : { backgroundColor: e.banner.color };
1778
1779
  return /* @__PURE__ */ a.jsxs(
1779
1780
  "div",
1780
1781
  {
@@ -1791,19 +1792,19 @@ const Rn = {
1791
1792
  type: "button",
1792
1793
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1793
1794
  onClick: () => n(!1),
1794
- children: /* @__PURE__ */ a.jsx(qo, { size: 16 })
1795
+ children: /* @__PURE__ */ a.jsx(Vo, { size: 16 })
1795
1796
  }
1796
1797
  )
1797
1798
  ]
1798
1799
  }
1799
1800
  );
1800
1801
  };
1801
- function sl(e) {
1802
+ function ll(e) {
1802
1803
  if (typeof document > "u") return;
1803
1804
  let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
1804
1805
  n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
1805
1806
  }
1806
- const oa = p.createContext({
1807
+ const sa = p.createContext({
1807
1808
  drawerRef: {
1808
1809
  current: null
1809
1810
  },
@@ -1851,56 +1852,56 @@ const oa = p.createContext({
1851
1852
  container: null,
1852
1853
  autoFocus: !1
1853
1854
  }), Qe = () => {
1854
- const e = p.useContext(oa);
1855
+ const e = p.useContext(sa);
1855
1856
  if (!e)
1856
1857
  throw new Error("useDrawerContext must be used within a Drawer.Root");
1857
1858
  return e;
1858
1859
  };
1859
- sl(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
1860
+ ll(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
1860
1861
  [data-state=closed]
1861
1862
  ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
1862
- function il() {
1863
+ function cl() {
1863
1864
  const e = navigator.userAgent;
1864
1865
  return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
1865
1866
  /FxiOS/.test(e));
1866
1867
  }
1867
- function ll() {
1868
- return Zt(/^Mac/);
1868
+ function ul() {
1869
+ return Jt(/^Mac/);
1869
1870
  }
1870
- function cl() {
1871
- return Zt(/^iPhone/);
1871
+ function dl() {
1872
+ return Jt(/^iPhone/);
1872
1873
  }
1873
- function En() {
1874
+ function Dn() {
1874
1875
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
1875
1876
  }
1876
- function ul() {
1877
- return Zt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1878
- ll() && navigator.maxTouchPoints > 1;
1877
+ function fl() {
1878
+ return Jt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1879
+ ul() && navigator.maxTouchPoints > 1;
1879
1880
  }
1880
- function sa() {
1881
- return cl() || ul();
1881
+ function ia() {
1882
+ return dl() || fl();
1882
1883
  }
1883
- function Zt(e) {
1884
+ function Jt(e) {
1884
1885
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1885
1886
  }
1886
- const dl = 24, fl = typeof window < "u" ? Mo : Ce;
1887
- function Dn(...e) {
1887
+ const hl = 24, pl = typeof window < "u" ? Ro : Ce;
1888
+ function Pn(...e) {
1888
1889
  return (...t) => {
1889
1890
  for (let n of e)
1890
1891
  typeof n == "function" && n(...t);
1891
1892
  };
1892
1893
  }
1893
1894
  const Et = typeof document < "u" && window.visualViewport;
1894
- function Pn(e) {
1895
+ function jn(e) {
1895
1896
  let t = window.getComputedStyle(e);
1896
1897
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
1897
1898
  }
1898
- function ia(e) {
1899
- for (Pn(e) && (e = e.parentElement); e && !Pn(e); )
1899
+ function la(e) {
1900
+ for (jn(e) && (e = e.parentElement); e && !jn(e); )
1900
1901
  e = e.parentElement;
1901
1902
  return e || document.scrollingElement || document.documentElement;
1902
1903
  }
1903
- const hl = /* @__PURE__ */ new Set([
1904
+ const ml = /* @__PURE__ */ new Set([
1904
1905
  "checkbox",
1905
1906
  "radio",
1906
1907
  "range",
@@ -1912,20 +1913,20 @@ const hl = /* @__PURE__ */ new Set([
1912
1913
  "reset"
1913
1914
  ]);
1914
1915
  let ht = 0, Dt;
1915
- function pl(e = {}) {
1916
+ function gl(e = {}) {
1916
1917
  let { isDisabled: t } = e;
1917
- fl(() => {
1918
+ pl(() => {
1918
1919
  if (!t)
1919
- return ht++, ht === 1 && sa() && (Dt = ml()), () => {
1920
+ return ht++, ht === 1 && ia() && (Dt = vl()), () => {
1920
1921
  ht--, ht === 0 && (Dt == null || Dt());
1921
1922
  };
1922
1923
  }, [
1923
1924
  t
1924
1925
  ]);
1925
1926
  }
1926
- function ml() {
1927
+ function vl() {
1927
1928
  let e, t = 0, n = (c) => {
1928
- e = ia(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1929
+ e = la(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1929
1930
  }, r = (c) => {
1930
1931
  if (!e || e === document.documentElement || e === document.body) {
1931
1932
  c.preventDefault();
@@ -1942,16 +1943,16 @@ function ml() {
1942
1943
  let d = c.target;
1943
1944
  Ot(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1944
1945
  d.style.transform = "", Et && (Et.height < window.innerHeight ? requestAnimationFrame(() => {
1945
- jn(d);
1946
- }) : Et.addEventListener("resize", () => jn(d), {
1946
+ Nn(d);
1947
+ }) : Et.addEventListener("resize", () => Nn(d), {
1947
1948
  once: !0
1948
1949
  }));
1949
1950
  }));
1950
1951
  }, i = () => {
1951
1952
  window.scrollTo(0, 0);
1952
- }, l = window.pageXOffset, u = window.pageYOffset, m = Dn(gl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1953
+ }, l = window.pageXOffset, u = window.pageYOffset, m = Pn(wl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1953
1954
  window.scrollTo(0, 0);
1954
- let f = Dn(We(document, "touchstart", n, {
1955
+ let f = Pn(We(document, "touchstart", n, {
1955
1956
  passive: !1,
1956
1957
  capture: !0
1957
1958
  }), We(document, "touchmove", r, {
@@ -1965,7 +1966,7 @@ function ml() {
1965
1966
  m(), f(), window.scrollTo(l, u);
1966
1967
  };
1967
1968
  }
1968
- function gl(e, t, n) {
1969
+ function wl(e, t, n) {
1969
1970
  let r = e.style[t];
1970
1971
  return e.style[t] = n, () => {
1971
1972
  e.style[t] = r;
@@ -1976,31 +1977,31 @@ function We(e, t, n, r) {
1976
1977
  e.removeEventListener(t, n, r);
1977
1978
  };
1978
1979
  }
1979
- function jn(e) {
1980
+ function Nn(e) {
1980
1981
  let t = document.scrollingElement || document.documentElement;
1981
1982
  for (; e && e !== t; ) {
1982
- let n = ia(e);
1983
+ let n = la(e);
1983
1984
  if (n !== document.documentElement && n !== document.body && n !== e) {
1984
1985
  let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
1985
- const i = n.getBoundingClientRect().bottom + dl;
1986
+ const i = n.getBoundingClientRect().bottom + hl;
1986
1987
  s > i && (n.scrollTop += o - r);
1987
1988
  }
1988
1989
  e = n.parentElement;
1989
1990
  }
1990
1991
  }
1991
1992
  function Ot(e) {
1992
- return e instanceof HTMLInputElement && !hl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1993
+ return e instanceof HTMLInputElement && !ml.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1993
1994
  }
1994
- function vl(e, t) {
1995
+ function yl(e, t) {
1995
1996
  typeof e == "function" ? e(t) : e != null && (e.current = t);
1996
1997
  }
1997
- function wl(...e) {
1998
- return (t) => e.forEach((n) => vl(n, t));
1998
+ function xl(...e) {
1999
+ return (t) => e.forEach((n) => yl(n, t));
1999
2000
  }
2000
- function la(...e) {
2001
- return h.useCallback(wl(...e), e);
2001
+ function ca(...e) {
2002
+ return h.useCallback(xl(...e), e);
2002
2003
  }
2003
- const ca = /* @__PURE__ */ new WeakMap();
2004
+ const ua = /* @__PURE__ */ new WeakMap();
2004
2005
  function H(e, t, n = !1) {
2005
2006
  if (!e || !(e instanceof HTMLElement)) return;
2006
2007
  let r = {};
@@ -2010,11 +2011,11 @@ function H(e, t, n = !1) {
2010
2011
  return;
2011
2012
  }
2012
2013
  r[o] = e.style[o], e.style[o] = s;
2013
- }), !n && ca.set(e, r);
2014
+ }), !n && ua.set(e, r);
2014
2015
  }
2015
- function xl(e, t) {
2016
+ function bl(e, t) {
2016
2017
  if (!e || !(e instanceof HTMLElement)) return;
2017
- let n = ca.get(e);
2018
+ let n = ua.get(e);
2018
2019
  n && (e.style[t] = n[t]);
2019
2020
  }
2020
2021
  const U = (e) => {
@@ -2039,7 +2040,7 @@ function pt(e, t) {
2039
2040
  let o = r.match(/^matrix3d\((.+)\)$/);
2040
2041
  return o ? parseFloat(o[1].split(", ")[U(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[U(t) ? 5 : 4]) : null);
2041
2042
  }
2042
- function yl(e) {
2043
+ function Sl(e) {
2043
2044
  return 8 * (Math.log(e + 1) - 2);
2044
2045
  }
2045
2046
  function Pt(e, t) {
@@ -2050,7 +2051,7 @@ function Pt(e, t) {
2050
2051
  e.style.cssText = n;
2051
2052
  };
2052
2053
  }
2053
- function bl(...e) {
2054
+ function Cl(...e) {
2054
2055
  return (...t) => {
2055
2056
  for (const n of e)
2056
2057
  typeof n == "function" && n(...t);
@@ -2064,15 +2065,15 @@ const k = {
2064
2065
  0,
2065
2066
  1
2066
2067
  ]
2067
- }, ua = 0.4, Sl = 0.25, Cl = 100, da = 8, Oe = 16, It = 26, jt = "vaul-dragging";
2068
- function fa(e) {
2068
+ }, da = 0.4, Ml = 0.25, Rl = 100, fa = 8, Oe = 16, It = 26, jt = "vaul-dragging";
2069
+ function ha(e) {
2069
2070
  const t = p.useRef(e);
2070
2071
  return p.useEffect(() => {
2071
2072
  t.current = e;
2072
2073
  }), p.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2073
2074
  }
2074
- function Ml({ defaultProp: e, onChange: t }) {
2075
- const n = p.useState(e), [r] = n, o = p.useRef(r), s = fa(t);
2075
+ function El({ defaultProp: e, onChange: t }) {
2076
+ const n = p.useState(e), [r] = n, o = p.useRef(r), s = ha(t);
2076
2077
  return p.useEffect(() => {
2077
2078
  o.current !== r && (s(r), o.current = r);
2078
2079
  }, [
@@ -2081,12 +2082,12 @@ function Ml({ defaultProp: e, onChange: t }) {
2081
2082
  s
2082
2083
  ]), n;
2083
2084
  }
2084
- function ha({ prop: e, defaultProp: t, onChange: n = () => {
2085
+ function pa({ prop: e, defaultProp: t, onChange: n = () => {
2085
2086
  } }) {
2086
- const [r, o] = Ml({
2087
+ const [r, o] = El({
2087
2088
  defaultProp: t,
2088
2089
  onChange: n
2089
- }), s = e !== void 0, i = s ? e : r, l = fa(n), u = p.useCallback((m) => {
2090
+ }), s = e !== void 0, i = s ? e : r, l = ha(n), u = p.useCallback((m) => {
2090
2091
  if (s) {
2091
2092
  const c = typeof m == "function" ? m(e) : m;
2092
2093
  c !== e && l(c);
@@ -2103,8 +2104,8 @@ function ha({ prop: e, defaultProp: t, onChange: n = () => {
2103
2104
  u
2104
2105
  ];
2105
2106
  }
2106
- function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2107
- const [f, c] = ha({
2107
+ function Dl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2108
+ const [f, c] = pa({
2108
2109
  prop: e,
2109
2110
  defaultProp: n == null ? void 0 : n[0],
2110
2111
  onChange: t
@@ -2146,8 +2147,8 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2146
2147
  const B = typeof D == "string";
2147
2148
  let K = 0;
2148
2149
  if (B && (K = parseInt(D, 10)), U(l)) {
2149
- const x = B ? K : d ? D * b.height : 0;
2150
- return d ? l === "bottom" ? b.height - x : -b.height + x : x;
2150
+ const y = B ? K : d ? D * b.height : 0;
2151
+ return d ? l === "bottom" ? b.height - y : -b.height + y : y;
2151
2152
  }
2152
2153
  const W = B ? K : d ? D * b.width : 0;
2153
2154
  return d ? l === "right" ? b.width - W : -b.width + W : W;
@@ -2195,7 +2196,7 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2195
2196
  ]);
2196
2197
  function v({ draggedDistance: b, closeDrawer: j, velocity: D, dismissible: B }) {
2197
2198
  if (s === void 0) return;
2198
- const K = l === "bottom" || l === "right" ? (A ?? 0) - b : (A ?? 0) + b, W = g === s - 1, x = g === 0, V = b > 0;
2199
+ const K = l === "bottom" || l === "right" ? (A ?? 0) - b : (A ?? 0) + b, W = g === s - 1, y = g === 0, V = b > 0;
2199
2200
  if (W && H(o.current, {
2200
2201
  transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2201
2202
  }), !m && D > 2 && !V) {
@@ -2207,13 +2208,13 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2207
2208
  return;
2208
2209
  }
2209
2210
  const G = M == null ? void 0 : M.reduce((q, Y) => typeof q != "number" || typeof Y != "number" ? q : Math.abs(Y - K) < Math.abs(q - K) ? Y : q), te = U(l) ? window.innerHeight : window.innerWidth;
2210
- if (D > ua && Math.abs(b) < te * 0.4) {
2211
+ if (D > da && Math.abs(b) < te * 0.4) {
2211
2212
  const q = V ? 1 : -1;
2212
2213
  if (q > 0 && C && n) {
2213
2214
  P(M[n.length - 1]);
2214
2215
  return;
2215
2216
  }
2216
- if (x && q < 0 && B && j(), g === null) return;
2217
+ if (y && q < 0 && B && j(), g === null) return;
2217
2218
  P(M[g + q]);
2218
2219
  return;
2219
2220
  }
@@ -2226,21 +2227,21 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2226
2227
  transform: U(l) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
2227
2228
  });
2228
2229
  }
2229
- function Z(b, j) {
2230
+ function J(b, j) {
2230
2231
  if (!n || typeof g != "number" || !M || s === void 0) return null;
2231
2232
  const D = g === s - 1;
2232
2233
  if (g >= s && j)
2233
2234
  return 0;
2234
2235
  if (D && !j) return 1;
2235
2236
  if (!T && !D) return null;
2236
- const K = D ? g + 1 : g - 1, W = D ? M[K] - M[K - 1] : M[K + 1] - M[K], x = b / Math.abs(W);
2237
- return D ? 1 - x : x;
2237
+ const K = D ? g + 1 : g - 1, W = D ? M[K] - M[K - 1] : M[K + 1] - M[K], y = b / Math.abs(W);
2238
+ return D ? 1 - y : y;
2238
2239
  }
2239
2240
  return {
2240
2241
  isLastSnapPoint: C,
2241
2242
  activeSnapPoint: f,
2242
2243
  shouldFade: T,
2243
- getPercentageDragged: Z,
2244
+ getPercentageDragged: J,
2244
2245
  setActiveSnapPoint: c,
2245
2246
  activeSnapPointIndex: g,
2246
2247
  onRelease: v,
@@ -2248,9 +2249,9 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2248
2249
  snapPointsOffset: M
2249
2250
  };
2250
2251
  }
2251
- const El = () => () => {
2252
+ const Pl = () => () => {
2252
2253
  };
2253
- function Dl() {
2254
+ function jl() {
2254
2255
  const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = Qe(), s = p.useRef(null), i = mt(() => document.body.style.backgroundColor, []);
2255
2256
  function l() {
2256
2257
  return (window.innerWidth - It) / window.innerWidth;
@@ -2260,16 +2261,16 @@ function Dl() {
2260
2261
  s.current && clearTimeout(s.current);
2261
2262
  const u = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
2262
2263
  if (!u) return;
2263
- bl(r && !o ? Pt(document.body, {
2264
+ Cl(r && !o ? Pt(document.body, {
2264
2265
  background: "black"
2265
- }) : El, Pt(u, {
2266
+ }) : Pl, Pt(u, {
2266
2267
  transformOrigin: U(e) ? "top" : "left",
2267
2268
  transitionProperty: "transform, border-radius",
2268
2269
  transitionDuration: `${k.DURATION}s`,
2269
2270
  transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2270
2271
  }));
2271
2272
  const m = Pt(u, {
2272
- borderRadius: `${da}px`,
2273
+ borderRadius: `${fa}px`,
2273
2274
  overflow: "hidden",
2274
2275
  ...U(e) ? {
2275
2276
  transform: `scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
@@ -2290,9 +2291,9 @@ function Dl() {
2290
2291
  ]);
2291
2292
  }
2292
2293
  let Ye = null;
2293
- function Pl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2294
+ function Nl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2294
2295
  const [i, l] = p.useState(() => typeof window < "u" ? window.location.href : ""), u = p.useRef(0), m = p.useCallback(() => {
2295
- if (En() && Ye === null && e && !s) {
2296
+ if (Dn() && Ye === null && e && !s) {
2296
2297
  Ye = {
2297
2298
  position: document.body.style.position,
2298
2299
  top: document.body.style.top,
@@ -2314,7 +2315,7 @@ function Pl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
2314
2315
  }, [
2315
2316
  e
2316
2317
  ]), f = p.useCallback(() => {
2317
- if (En() && Ye !== null && !s) {
2318
+ if (Dn() && Ye !== null && !s) {
2318
2319
  const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
2319
2320
  Object.assign(document.body.style, Ye), window.requestAnimationFrame(() => {
2320
2321
  if (o && i !== window.location.href) {
@@ -2358,9 +2359,9 @@ function Pl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
2358
2359
  restorePositionSetting: f
2359
2360
  };
2360
2361
  }
2361
- function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = Sl, scrollLockTimeout: m = Cl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: R, setActiveSnapPoint: C, fixed: g, modal: T = !0, onClose: M, nested: A, noBodyStyles: P = !1, direction: v = "bottom", defaultOpen: z = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: b = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2362
- var x, V;
2363
- const [G = !1, te] = ha({
2362
+ function ma({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = Ml, scrollLockTimeout: m = Rl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: R, setActiveSnapPoint: C, fixed: g, modal: T = !0, onClose: M, nested: A, noBodyStyles: P = !1, direction: v = "bottom", defaultOpen: z = !1, disablePreventScroll: J = !0, snapToSequentialPoint: b = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2363
+ var y, V;
2364
+ const [G = !1, te] = pa({
2364
2365
  defaultProp: z,
2365
2366
  prop: e,
2366
2367
  onChange: (S) => {
@@ -2370,9 +2371,9 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2370
2371
  document.body.style.pointerEvents = "auto";
2371
2372
  }), S || (document.body.style.pointerEvents = "auto");
2372
2373
  }
2373
- }), [q, Y] = p.useState(!1), [y, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), $e = p.useRef(null), ye = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), Fe = p.useRef(0), Le = p.useRef(!1), rn = p.useRef(!z), an = p.useRef(0), E = p.useRef(null), on = p.useRef(((x = E.current) == null ? void 0 : x.getBoundingClientRect().height) || 0), sn = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), Ct = p.useRef(0), Pa = p.useCallback((S) => {
2374
+ }), [q, Y] = p.useState(!1), [x, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), $e = p.useRef(null), xe = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), Fe = p.useRef(0), Le = p.useRef(!1), an = p.useRef(!z), on = p.useRef(0), E = p.useRef(null), sn = p.useRef(((y = E.current) == null ? void 0 : y.getBoundingClientRect().height) || 0), ln = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), Ct = p.useRef(0), Pa = p.useCallback((S) => {
2374
2375
  s && S === Ve.length - 1 && (Me.current = /* @__PURE__ */ new Date());
2375
- }, []), { activeSnapPoint: ja, activeSnapPointIndex: Be, setActiveSnapPoint: ln, onRelease: Na, snapPointsOffset: Ve, onDrag: Ta, shouldFade: cn, getPercentageDragged: _a } = Rl({
2376
+ }, []), { activeSnapPoint: ja, activeSnapPointIndex: Be, setActiveSnapPoint: cn, onRelease: Na, snapPointsOffset: Ve, onDrag: Ta, shouldFade: un, getPercentageDragged: _a } = Dl({
2376
2377
  snapPoints: s,
2377
2378
  activeSnapPointProp: R,
2378
2379
  setActiveSnapPointProp: C,
@@ -2384,10 +2385,10 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2384
2385
  container: K,
2385
2386
  snapToSequentialPoint: b
2386
2387
  });
2387
- pl({
2388
- isDisabled: !G || y || !T || ie || !q || !D || !Z
2388
+ gl({
2389
+ isDisabled: !G || x || !T || ie || !q || !D || !J
2389
2390
  });
2390
- const { restorePositionSetting: Oa } = Pl({
2391
+ const { restorePositionSetting: Oa } = Nl({
2391
2392
  isOpen: G,
2392
2393
  modal: T,
2393
2394
  nested: A ?? !1,
@@ -2400,11 +2401,11 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2400
2401
  }
2401
2402
  function Ia(S) {
2402
2403
  var _, O;
2403
- !f && !s || E.current && !E.current.contains(S.target) || (on.current = ((_ = E.current) == null ? void 0 : _.getBoundingClientRect().height) || 0, sn.current = ((O = E.current) == null ? void 0 : O.getBoundingClientRect().width) || 0, Q(!0), $e.current = /* @__PURE__ */ new Date(), sa() && window.addEventListener("touchend", () => Re.current = !1, {
2404
+ !f && !s || E.current && !E.current.contains(S.target) || (sn.current = ((_ = E.current) == null ? void 0 : _.getBoundingClientRect().height) || 0, ln.current = ((O = E.current) == null ? void 0 : O.getBoundingClientRect().width) || 0, Q(!0), $e.current = /* @__PURE__ */ new Date(), ia() && window.addEventListener("touchend", () => Re.current = !1, {
2404
2405
  once: !0
2405
2406
  }), S.target.setPointerCapture(S.pointerId), Fe.current = U(v) ? S.pageY : S.pageX);
2406
2407
  }
2407
- function un(S, _) {
2408
+ function dn(S, _) {
2408
2409
  var O;
2409
2410
  let N = S;
2410
2411
  const L = (O = window.getSelection()) == null ? void 0 : O.toString(), ne = E.current ? pt(E.current, v) : null, ee = /* @__PURE__ */ new Date();
@@ -2432,13 +2433,13 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2432
2433
  return !0;
2433
2434
  }
2434
2435
  function Aa(S) {
2435
- if (E.current && y) {
2436
+ if (E.current && x) {
2436
2437
  const _ = v === "bottom" || v === "right" ? 1 : -1, O = (Fe.current - (U(v) ? S.pageY : S.pageX)) * _, N = O > 0, L = s && !f && !N;
2437
2438
  if (L && Be === 0) return;
2438
- const ne = Math.abs(O), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = v === "bottom" || v === "top" ? on.current : sn.current;
2439
+ const ne = Math.abs(O), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = v === "bottom" || v === "top" ? sn.current : ln.current;
2439
2440
  let fe = ne / Ee;
2440
2441
  const _e = _a(ne, N);
2441
- if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !un(S.target, N)) return;
2442
+ if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !dn(S.target, N)) return;
2442
2443
  if (E.current.classList.add(jt), Re.current = !0, H(E.current, {
2443
2444
  transition: "none"
2444
2445
  }), H(pe.current, {
@@ -2446,21 +2447,21 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2446
2447
  }), s && Ta({
2447
2448
  draggedDistance: O
2448
2449
  }), N && !s) {
2449
- const me = yl(O), ct = Math.min(me * -1, 0) * _;
2450
+ const me = Sl(O), ct = Math.min(me * -1, 0) * _;
2450
2451
  H(E.current, {
2451
2452
  transform: U(v) ? `translate3d(0, ${ct}px, 0)` : `translate3d(${ct}px, 0, 0)`
2452
2453
  });
2453
2454
  return;
2454
2455
  }
2455
2456
  const De = 1 - fe;
2456
- if ((cn || d && Be === d - 1) && (r == null || r(S, fe), H(pe.current, {
2457
+ if ((un || d && Be === d - 1) && (r == null || r(S, fe), H(pe.current, {
2457
2458
  opacity: `${De}`,
2458
2459
  transition: "none"
2459
2460
  }, !0)), ee && pe.current && i) {
2460
- const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, fn = Math.max(0, 14 - fe * 14);
2461
+ const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, hn = Math.max(0, 14 - fe * 14);
2461
2462
  H(ee, {
2462
2463
  borderRadius: `${ct}px`,
2463
- transform: U(v) ? `scale(${me}) translate3d(0, ${fn}px, 0)` : `scale(${me}) translate3d(${fn}px, 0, 0)`,
2464
+ transform: U(v) ? `scale(${me}) translate3d(0, ${hn}px, 0)` : `scale(${me}) translate3d(${hn}px, 0, 0)`,
2464
2465
  transition: "none"
2465
2466
  }, !0);
2466
2467
  }
@@ -2474,7 +2475,7 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2474
2475
  }
2475
2476
  p.useEffect(() => {
2476
2477
  window.requestAnimationFrame(() => {
2477
- rn.current = !0;
2478
+ an.current = !0;
2478
2479
  });
2479
2480
  }, []), p.useEffect(() => {
2480
2481
  var S;
@@ -2488,15 +2489,15 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2488
2489
  const Ee = E.current.getBoundingClientRect().height || 0, fe = Ee > ne * 0.8;
2489
2490
  Ct.current || (Ct.current = Ee);
2490
2491
  const _e = E.current.getBoundingClientRect().top;
2491
- if (Math.abs(an.current - ee) > 60 && (Le.current = !Le.current), s && s.length > 0 && Ve && Be) {
2492
+ if (Math.abs(on.current - ee) > 60 && (Le.current = !Le.current), s && s.length > 0 && Ve && Be) {
2492
2493
  const De = Ve[Be] || 0;
2493
2494
  ee += De;
2494
2495
  }
2495
- if (an.current = ee, Ee > L || Le.current) {
2496
+ if (on.current = ee, Ee > L || Le.current) {
2496
2497
  const De = E.current.getBoundingClientRect().height;
2497
2498
  let me = De;
2498
2499
  De > L && (me = L - (fe ? _e : It)), g ? E.current.style.height = `${De - Math.max(ee, 0)}px` : E.current.style.height = `${Math.max(me, L - _e)}px`;
2499
- } else il() || (E.current.style.height = `${Ct.current}px`);
2500
+ } else cl() || (E.current.style.height = `${Ct.current}px`);
2500
2501
  s && s.length > 0 && !Le.current ? E.current.style.bottom = "0px" : E.current.style.bottom = `${Math.max(ee, 0)}px`;
2501
2502
  }
2502
2503
  }
@@ -2511,10 +2512,10 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2511
2512
  ]);
2512
2513
  function Ge(S) {
2513
2514
  ka(), M == null || M(), S || te(!1), setTimeout(() => {
2514
- s && ln(s[0]);
2515
+ s && cn(s[0]);
2515
2516
  }, k.DURATION * 1e3);
2516
2517
  }
2517
- function dn() {
2518
+ function fn() {
2518
2519
  if (!E.current) return;
2519
2520
  const S = document.querySelector("[data-vaul-drawer-wrapper]"), _ = pt(E.current, v);
2520
2521
  H(E.current, {
@@ -2524,7 +2525,7 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2524
2525
  transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2525
2526
  opacity: "1"
2526
2527
  }), i && _ && _ > 0 && G && H(S, {
2527
- borderRadius: `${da}px`,
2528
+ borderRadius: `${fa}px`,
2528
2529
  overflow: "hidden",
2529
2530
  ...U(v) ? {
2530
2531
  transform: `scale(${lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
@@ -2539,14 +2540,14 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2539
2540
  }, !0);
2540
2541
  }
2541
2542
  function ka() {
2542
- !y || !E.current || (E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date());
2543
+ !x || !E.current || (E.current.classList.remove(jt), Re.current = !1, Q(!1), xe.current = /* @__PURE__ */ new Date());
2543
2544
  }
2544
2545
  function $a(S) {
2545
- if (!y || !E.current) return;
2546
- E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date();
2546
+ if (!x || !E.current) return;
2547
+ E.current.classList.remove(jt), Re.current = !1, Q(!1), xe.current = /* @__PURE__ */ new Date();
2547
2548
  const _ = pt(E.current, v);
2548
- if (!S || !un(S.target, !1) || !_ || Number.isNaN(_) || $e.current === null) return;
2549
- const O = ye.current.getTime() - $e.current.getTime(), N = Fe.current - (U(v) ? S.pageY : S.pageX), L = Math.abs(N) / O;
2549
+ if (!S || !dn(S.target, !1) || !_ || Number.isNaN(_) || $e.current === null) return;
2550
+ const O = xe.current.getTime() - $e.current.getTime(), N = Fe.current - (U(v) ? S.pageY : S.pageX), L = Math.abs(N) / O;
2550
2551
  if (L > 0.05 && (de(!0), setTimeout(() => {
2551
2552
  de(!1);
2552
2553
  }, 200)), s) {
@@ -2559,10 +2560,10 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2559
2560
  return;
2560
2561
  }
2561
2562
  if (v === "bottom" || v === "right" ? N > 0 : N < 0) {
2562
- dn(), o == null || o(S, !0);
2563
+ fn(), o == null || o(S, !0);
2563
2564
  return;
2564
2565
  }
2565
- if (L > ua) {
2566
+ if (L > da) {
2566
2567
  Ge(), o == null || o(S, !1);
2567
2568
  return;
2568
2569
  }
@@ -2574,12 +2575,12 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2574
2575
  Ge(), o == null || o(S, !1);
2575
2576
  return;
2576
2577
  }
2577
- o == null || o(S, !0), dn();
2578
+ o == null || o(S, !0), fn();
2578
2579
  }
2579
2580
  p.useEffect(() => (G && (H(document.documentElement, {
2580
2581
  scrollBehavior: "auto"
2581
2582
  }), Me.current = /* @__PURE__ */ new Date()), () => {
2582
- xl(document.documentElement, "scrollBehavior");
2583
+ bl(document.documentElement, "scrollBehavior");
2583
2584
  }), [
2584
2585
  G
2585
2586
  ]);
@@ -2617,17 +2618,17 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2617
2618
  });
2618
2619
  }, [
2619
2620
  T
2620
- ]), /* @__PURE__ */ p.createElement(ss, {
2621
+ ]), /* @__PURE__ */ p.createElement(ls, {
2621
2622
  defaultOpen: z,
2622
2623
  onOpenChange: (S) => {
2623
2624
  !f && !S || (S ? Y(!0) : Ge(!0), te(S));
2624
2625
  },
2625
2626
  open: G
2626
- }, /* @__PURE__ */ p.createElement(oa.Provider, {
2627
+ }, /* @__PURE__ */ p.createElement(sa.Provider, {
2627
2628
  value: {
2628
2629
  activeSnapPoint: ja,
2629
2630
  snapPoints: s,
2630
- setActiveSnapPoint: ln,
2631
+ setActiveSnapPoint: cn,
2631
2632
  drawerRef: E,
2632
2633
  overlayRef: pe,
2633
2634
  onOpenChange: t,
@@ -2635,11 +2636,11 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2635
2636
  onRelease: $a,
2636
2637
  onDrag: Aa,
2637
2638
  dismissible: f,
2638
- shouldAnimate: rn,
2639
+ shouldAnimate: an,
2639
2640
  handleOnly: c,
2640
2641
  isOpen: G,
2641
- isDragging: y,
2642
- shouldFade: cn,
2642
+ isDragging: x,
2643
+ shouldFade: un,
2643
2644
  closeDrawer: Ge,
2644
2645
  onNestedDrag: La,
2645
2646
  onNestedOpenChange: Fa,
@@ -2657,14 +2658,14 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2657
2658
  }
2658
2659
  }, n));
2659
2660
  }
2660
- const ma = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2661
- const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: s, isOpen: i, modal: l, shouldAnimate: u } = Qe(), m = la(t, n), f = r && r.length > 0;
2661
+ const ga = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2662
+ const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: s, isOpen: i, modal: l, shouldAnimate: u } = Qe(), m = ca(t, n), f = r && r.length > 0;
2662
2663
  if (!l)
2663
2664
  return null;
2664
2665
  const c = p.useCallback((d) => o(d), [
2665
2666
  o
2666
2667
  ]);
2667
- return /* @__PURE__ */ p.createElement(es, {
2668
+ return /* @__PURE__ */ p.createElement(ns, {
2668
2669
  onMouseUp: c,
2669
2670
  ref: m,
2670
2671
  "data-vaul-overlay": "",
@@ -2674,20 +2675,20 @@ const ma = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2674
2675
  ...e
2675
2676
  });
2676
2677
  });
2677
- ma.displayName = "Drawer.Overlay";
2678
- const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
2679
- const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: R, direction: C, snapPoints: g, container: T, handleOnly: M, shouldAnimate: A, autoFocus: P } = Qe(), [v, z] = p.useState(!1), Z = la(o, s), b = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = g && g.length > 0;
2680
- Dl();
2681
- const K = (x, V, G = 0) => {
2678
+ ga.displayName = "Drawer.Overlay";
2679
+ const va = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
2680
+ const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: R, direction: C, snapPoints: g, container: T, handleOnly: M, shouldAnimate: A, autoFocus: P } = Qe(), [v, z] = p.useState(!1), J = ca(o, s), b = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = g && g.length > 0;
2681
+ jl();
2682
+ const K = (y, V, G = 0) => {
2682
2683
  if (D.current) return !0;
2683
- const te = Math.abs(x.y), q = Math.abs(x.x), Y = q > te, y = [
2684
+ const te = Math.abs(y.y), q = Math.abs(y.x), Y = q > te, x = [
2684
2685
  "bottom",
2685
2686
  "right"
2686
2687
  ].includes(V) ? 1 : -1;
2687
2688
  if (V === "left" || V === "right") {
2688
- if (!(x.x * y < 0) && q >= 0 && q <= G)
2689
+ if (!(y.x * x < 0) && q >= 0 && q <= G)
2689
2690
  return Y;
2690
- } else if (!(x.y * y < 0) && te >= 0 && te <= G)
2691
+ } else if (!(y.y * x < 0) && te >= 0 && te <= G)
2691
2692
  return !Y;
2692
2693
  return D.current = !0, !0;
2693
2694
  };
@@ -2696,10 +2697,10 @@ const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, styl
2696
2697
  z(!0);
2697
2698
  });
2698
2699
  }, []);
2699
- function W(x) {
2700
- b.current = null, D.current = !1, l(x);
2700
+ function W(y) {
2701
+ b.current = null, D.current = !1, l(y);
2701
2702
  }
2702
- return /* @__PURE__ */ p.createElement(ts, {
2703
+ return /* @__PURE__ */ p.createElement(rs, {
2703
2704
  "data-vaul-drawer-direction": C,
2704
2705
  "data-vaul-drawer": "",
2705
2706
  "data-vaul-delayed-snap-points": v ? "true" : "false",
@@ -2707,54 +2708,54 @@ const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, styl
2707
2708
  "data-vaul-custom-container": T ? "true" : "false",
2708
2709
  "data-vaul-animate": A != null && A.current ? "true" : "false",
2709
2710
  ...r,
2710
- ref: Z,
2711
+ ref: J,
2711
2712
  style: f && f.length > 0 ? {
2712
2713
  "--snap-point-height": `${f[c ?? 0]}px`,
2713
2714
  ...t
2714
2715
  } : t,
2715
- onPointerDown: (x) => {
2716
- M || (r.onPointerDown == null || r.onPointerDown.call(r, x), b.current = {
2717
- x: x.pageX,
2718
- y: x.pageY
2719
- }, i(x));
2716
+ onPointerDown: (y) => {
2717
+ M || (r.onPointerDown == null || r.onPointerDown.call(r, y), b.current = {
2718
+ x: y.pageX,
2719
+ y: y.pageY
2720
+ }, i(y));
2720
2721
  },
2721
- onOpenAutoFocus: (x) => {
2722
- n == null || n(x), P || x.preventDefault();
2722
+ onOpenAutoFocus: (y) => {
2723
+ n == null || n(y), P || y.preventDefault();
2723
2724
  },
2724
- onPointerDownOutside: (x) => {
2725
- if (e == null || e(x), !d || x.defaultPrevented) {
2726
- x.preventDefault();
2725
+ onPointerDownOutside: (y) => {
2726
+ if (e == null || e(y), !d || y.defaultPrevented) {
2727
+ y.preventDefault();
2727
2728
  return;
2728
2729
  }
2729
2730
  m.current && (m.current = !1);
2730
2731
  },
2731
- onFocusOutside: (x) => {
2732
+ onFocusOutside: (y) => {
2732
2733
  if (!d) {
2733
- x.preventDefault();
2734
+ y.preventDefault();
2734
2735
  return;
2735
2736
  }
2736
2737
  },
2737
- onPointerMove: (x) => {
2738
- if (j.current = x, M || (r.onPointerMove == null || r.onPointerMove.call(r, x), !b.current)) return;
2739
- const V = x.pageY - b.current.y, G = x.pageX - b.current.x, te = x.pointerType === "touch" ? 10 : 2;
2738
+ onPointerMove: (y) => {
2739
+ if (j.current = y, M || (r.onPointerMove == null || r.onPointerMove.call(r, y), !b.current)) return;
2740
+ const V = y.pageY - b.current.y, G = y.pageX - b.current.x, te = y.pointerType === "touch" ? 10 : 2;
2740
2741
  K({
2741
2742
  x: G,
2742
2743
  y: V
2743
- }, C, te) ? u(x) : (Math.abs(G) > te || Math.abs(V) > te) && (b.current = null);
2744
+ }, C, te) ? u(y) : (Math.abs(G) > te || Math.abs(V) > te) && (b.current = null);
2744
2745
  },
2745
- onPointerUp: (x) => {
2746
- r.onPointerUp == null || r.onPointerUp.call(r, x), b.current = null, D.current = !1, l(x);
2746
+ onPointerUp: (y) => {
2747
+ r.onPointerUp == null || r.onPointerUp.call(r, y), b.current = null, D.current = !1, l(y);
2747
2748
  },
2748
- onPointerOut: (x) => {
2749
- r.onPointerOut == null || r.onPointerOut.call(r, x), W(j.current);
2749
+ onPointerOut: (y) => {
2750
+ r.onPointerOut == null || r.onPointerOut.call(r, y), W(j.current);
2750
2751
  },
2751
- onContextMenu: (x) => {
2752
- r.onContextMenu == null || r.onContextMenu.call(r, x), j.current && W(j.current);
2752
+ onContextMenu: (y) => {
2753
+ r.onContextMenu == null || r.onContextMenu.call(r, y), j.current && W(j.current);
2753
2754
  }
2754
2755
  });
2755
2756
  });
2756
- ga.displayName = "Drawer.Content";
2757
- const jl = 250, Nl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2757
+ va.displayName = "Drawer.Content";
2758
+ const Tl = 250, _l = 120, wa = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2758
2759
  const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: m, handleOnly: f, isOpen: c, onPress: d, onDrag: R } = Qe(), C = p.useRef(null), g = p.useRef(!1);
2759
2760
  function T() {
2760
2761
  if (g.current) {
@@ -2763,7 +2764,7 @@ const jl = 250, Nl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCy
2763
2764
  }
2764
2765
  window.setTimeout(() => {
2765
2766
  M();
2766
- }, Nl);
2767
+ }, _l);
2767
2768
  }
2768
2769
  function M() {
2769
2770
  if (s || e || g.current) {
@@ -2780,13 +2781,13 @@ const jl = 250, Nl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCy
2780
2781
  }
2781
2782
  const z = i.findIndex((b) => b === l);
2782
2783
  if (z === -1) return;
2783
- const Z = i[z + 1];
2784
- u(Z);
2784
+ const J = i[z + 1];
2785
+ u(J);
2785
2786
  }
2786
2787
  function A() {
2787
2788
  C.current = window.setTimeout(() => {
2788
2789
  g.current = !0;
2789
- }, jl);
2790
+ }, Tl);
2790
2791
  }
2791
2792
  function P() {
2792
2793
  C.current && window.clearTimeout(C.current), g.current = !1;
@@ -2811,12 +2812,12 @@ const jl = 250, Nl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCy
2811
2812
  "aria-hidden": "true"
2812
2813
  }, t));
2813
2814
  });
2814
- va.displayName = "Drawer.Handle";
2815
- function Tl({ onDrag: e, onOpenChange: t, ...n }) {
2815
+ wa.displayName = "Drawer.Handle";
2816
+ function Ol({ onDrag: e, onOpenChange: t, ...n }) {
2816
2817
  const { onNestedDrag: r, onNestedOpenChange: o, onNestedRelease: s } = Qe();
2817
2818
  if (!r)
2818
2819
  throw new Error("Drawer.NestedRoot must be placed in another drawer");
2819
- return /* @__PURE__ */ p.createElement(pa, {
2820
+ return /* @__PURE__ */ p.createElement(ma, {
2820
2821
  nested: !0,
2821
2822
  onClose: () => {
2822
2823
  o(!1);
@@ -2831,24 +2832,24 @@ function Tl({ onDrag: e, onOpenChange: t, ...n }) {
2831
2832
  ...n
2832
2833
  });
2833
2834
  }
2834
- function _l(e) {
2835
+ function Il(e) {
2835
2836
  const t = Qe(), { container: n = t.container, ...r } = e;
2836
- return /* @__PURE__ */ p.createElement(is, {
2837
+ return /* @__PURE__ */ p.createElement(cs, {
2837
2838
  container: n,
2838
2839
  ...r
2839
2840
  });
2840
2841
  }
2841
2842
  const he = {
2842
- Root: pa,
2843
- NestedRoot: Tl,
2844
- Content: ga,
2845
- Overlay: ma,
2846
- Trigger: ns,
2847
- Portal: _l,
2848
- Handle: va,
2849
- Close: rs,
2850
- Title: as,
2851
- Description: os
2843
+ Root: ma,
2844
+ NestedRoot: Ol,
2845
+ Content: va,
2846
+ Overlay: ga,
2847
+ Trigger: as,
2848
+ Portal: Il,
2849
+ Handle: wa,
2850
+ Close: os,
2851
+ Title: ss,
2852
+ Description: is
2852
2853
  }, en = ({
2853
2854
  shouldScaleBackground: e = !0,
2854
2855
  ...t
@@ -2860,7 +2861,7 @@ const he = {
2860
2861
  }
2861
2862
  );
2862
2863
  en.displayName = "Drawer";
2863
- const wa = he.Trigger, Ol = he.Portal, Il = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2864
+ const ya = he.Trigger, Al = he.Portal, kl = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2864
2865
  he.Overlay,
2865
2866
  {
2866
2867
  ref: n,
@@ -2870,7 +2871,7 @@ const wa = he.Trigger, Ol = he.Portal, Il = he.Close, xa = h.forwardRef(({ class
2870
2871
  ));
2871
2872
  xa.displayName = he.Overlay.displayName;
2872
2873
  const tn = h.forwardRef(
2873
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Ol, { children: [
2874
+ ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Al, { children: [
2874
2875
  /* @__PURE__ */ a.jsx(xa, {}),
2875
2876
  /* @__PURE__ */ a.jsxs(
2876
2877
  he.Content,
@@ -2902,7 +2903,7 @@ const nn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2902
2903
  }
2903
2904
  ));
2904
2905
  nn.displayName = he.Title.displayName;
2905
- const Al = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2906
+ const $l = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2906
2907
  he.Description,
2907
2908
  {
2908
2909
  ref: n,
@@ -2910,9 +2911,9 @@ const Al = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2910
2911
  ...t
2911
2912
  }
2912
2913
  ));
2913
- Al.displayName = he.Description.displayName;
2914
- const ya = () => {
2915
- const e = Ae(), [t, n] = Ie(!1), r = qn(() => n(!1), []);
2914
+ $l.displayName = he.Description.displayName;
2915
+ const ba = () => {
2916
+ const e = Ae(), [t, n] = Ie(!1), r = Qn(() => n(!1), []);
2916
2917
  Ce(() => {
2917
2918
  if (t)
2918
2919
  return;
@@ -2923,7 +2924,7 @@ const ya = () => {
2923
2924
  window.removeEventListener("keydown", s);
2924
2925
  };
2925
2926
  }, [t, n]);
2926
- const o = e.plugins.find($s);
2927
+ const o = e.plugins.find(Ls);
2927
2928
  return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2928
2929
  /* @__PURE__ */ a.jsxs(
2929
2930
  "button",
@@ -2933,24 +2934,24 @@ const ya = () => {
2933
2934
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
2934
2935
  children: [
2935
2936
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2936
- /* @__PURE__ */ a.jsx(Qo, { size: 14 }),
2937
+ /* @__PURE__ */ a.jsx(Go, { size: 14 }),
2937
2938
  "Search"
2938
2939
  ] }),
2939
2940
  /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
2940
2941
  ]
2941
2942
  }
2942
2943
  ),
2943
- /* @__PURE__ */ a.jsx(Qn, { fallback: null, children: o.renderSearch({
2944
+ /* @__PURE__ */ a.jsx(Vn, { fallback: null, children: o.renderSearch({
2944
2945
  isOpen: t,
2945
2946
  onClose: r
2946
2947
  }) })
2947
2948
  ] }) : null;
2948
- }, ba = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", kl = () => {
2949
+ }, Sa = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Fl = () => {
2949
2950
  const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
2950
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(ba(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2951
- Ze,
2951
+ return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(Sa(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2952
+ Je,
2952
2953
  {
2953
- className: ({ isActive: r }) => Un(
2954
+ className: ({ isActive: r }) => zn(
2954
2955
  "block py-3.5 font-medium -mb-px border-b-2",
2955
2956
  r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2956
2957
  ),
@@ -2958,43 +2959,43 @@ const ya = () => {
2958
2959
  children: n.label
2959
2960
  }
2960
2961
  ) }, n.label)) }) });
2961
- }, $l = () => {
2962
+ }, Ll = () => {
2962
2963
  const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
2963
2964
  return /* @__PURE__ */ a.jsxs(en, { direction: "right", children: [
2964
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(wa, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Vo, { size: 22 }) }) }),
2965
+ /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(ya, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Wo, { size: 22 }) }) }),
2965
2966
  /* @__PURE__ */ a.jsxs(
2966
2967
  tn,
2967
2968
  {
2968
2969
  className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
2969
2970
  "aria-describedby": void 0,
2970
2971
  children: [
2971
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(nn, { children: "Navigation" }) }),
2972
- /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ya, {}) }),
2973
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.filter(ba(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2974
- Ze,
2972
+ /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Navigation" }) }),
2973
+ /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ba, {}) }),
2974
+ /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.filter(Sa(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2975
+ Je,
2975
2976
  {
2976
- className: ({ isActive: r }) => Un(
2977
+ className: ({ isActive: r }) => zn(
2977
2978
  "block font-medium border-b-2",
2978
2979
  r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2979
2980
  ),
2980
2981
  to: n.id,
2981
- children: /* @__PURE__ */ a.jsx(Il, { children: n.label })
2982
+ children: /* @__PURE__ */ a.jsx(kl, { children: n.label })
2982
2983
  }
2983
2984
  ) }, n.label)) })
2984
2985
  ]
2985
2986
  }
2986
2987
  )
2987
2988
  ] });
2988
- }, Sa = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(nl, { children: [
2989
- /* @__PURE__ */ a.jsx(Zr, { children: e.label }),
2990
- /* @__PURE__ */ a.jsx(tl, { children: /* @__PURE__ */ a.jsx(ea, { children: e.children.map((t, n) => (
2989
+ }, Ca = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(al, { children: [
2990
+ /* @__PURE__ */ a.jsx(ea, { children: e.label }),
2991
+ /* @__PURE__ */ a.jsx(rl, { children: /* @__PURE__ */ a.jsx(ta, { children: e.children.map((t, n) => (
2991
2992
  // eslint-disable-next-line react/no-array-index-key
2992
- /* @__PURE__ */ a.jsx(Sa, { item: t }, n)
2993
+ /* @__PURE__ */ a.jsx(Ca, { item: t }, n)
2993
2994
  )) }) })
2994
- ] }, e.label) : /* @__PURE__ */ a.jsx($t, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(na, { children: e.label }, e.label) }), Ca = Vn(function() {
2995
- const t = vt(), [n, r] = go(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = vt(), l = Ae(), { page: u, plugins: m } = l, f = m.filter((d) => As(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(Sa, { item: d }, d.label)), c = n ? Go : Wo;
2995
+ ] }, e.label) : /* @__PURE__ */ a.jsx($t, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(ra, { children: e.label }, e.label) }), Ma = Gn(function() {
2996
+ const t = vt(), [n, r] = vo(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = vt(), l = Ae(), { page: u, plugins: m } = l, f = m.filter((d) => $s(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(Ca, { item: d }, d.label)), c = n ? Yo : Xo;
2996
2997
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
2997
- /* @__PURE__ */ a.jsx(ol, {}),
2998
+ /* @__PURE__ */ a.jsx(il, {}),
2998
2999
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
2999
3000
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
3000
3001
  /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx($t, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
@@ -3023,15 +3024,15 @@ const ya = () => {
3023
3024
  /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
3024
3025
  ] }) }) }),
3025
3026
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
3026
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ya, {}) }),
3027
- /* @__PURE__ */ a.jsx($l, {}),
3027
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ba, {}) }),
3028
+ /* @__PURE__ */ a.jsx(Ll, {}),
3028
3029
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3029
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-start" }),
3030
- i && !o ? /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(Zi, { modal: !1, children: [
3031
- /* @__PURE__ */ a.jsx(el, { asChild: !0, children: /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3032
- /* @__PURE__ */ a.jsxs(ta, { className: "w-56", children: [
3033
- /* @__PURE__ */ a.jsx(ra, { children: "My Account" }),
3034
- /* @__PURE__ */ a.jsx(aa, {}),
3030
+ /* @__PURE__ */ a.jsx(ye, { name: "head-navigation-start" }),
3031
+ i && !o ? /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(tl, { modal: !1, children: [
3032
+ /* @__PURE__ */ a.jsx(nl, { asChild: !0, children: /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3033
+ /* @__PURE__ */ a.jsxs(na, { className: "w-56", children: [
3034
+ /* @__PURE__ */ a.jsx(aa, { children: "My Account" }),
3035
+ /* @__PURE__ */ a.jsx(oa, {}),
3035
3036
  f
3036
3037
  ] })
3037
3038
  ] }),
@@ -3045,74 +3046,74 @@ const ya = () => {
3045
3046
  children: /* @__PURE__ */ a.jsx(c, { size: 18 })
3046
3047
  }
3047
3048
  ),
3048
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-end" })
3049
+ /* @__PURE__ */ a.jsx(ye, { name: "head-navigation-end" })
3049
3050
  ] })
3050
3051
  ] })
3051
3052
  ] }),
3052
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-before" }),
3053
- /* @__PURE__ */ a.jsx(kl, {}),
3054
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-after" })
3053
+ /* @__PURE__ */ a.jsx(ye, { name: "top-navigation-before" }),
3054
+ /* @__PURE__ */ a.jsx(Fl, {}),
3055
+ /* @__PURE__ */ a.jsx(ye, { name: "top-navigation-after" })
3055
3056
  ] })
3056
3057
  ] });
3057
- }), Ma = {
3058
- Header: Ca
3059
- }, Fl = Kn(Ma), Ll = Fl.Provider, Bl = (e) => {
3058
+ }), Ra = {
3059
+ Header: Ma
3060
+ }, Bl = qn(Ra), Hl = Bl.Provider, Ul = (e) => {
3060
3061
  const [t, n] = Ie(!1);
3061
3062
  Ce(() => {
3062
3063
  const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
3063
3064
  n(l);
3064
3065
  }, [t]);
3065
- const r = qn(() => {
3066
+ const r = Qn(() => {
3066
3067
  const s = !t;
3067
3068
  document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
3068
3069
  }, [t]), o = [t, r];
3069
- return /* @__PURE__ */ a.jsx(vo.Provider, { value: o, ...e });
3070
- }, Hl = ({
3070
+ return /* @__PURE__ */ a.jsx(wo.Provider, { value: o, ...e });
3071
+ }, zl = ({
3071
3072
  children: e,
3072
3073
  context: t
3073
- }) => (Lo({
3074
+ }) => (Ho({
3074
3075
  queryFn: async () => (await t.initialize(), !0),
3075
3076
  queryKey: ["zudoku-initialize"]
3076
- }), /* @__PURE__ */ a.jsx(Bo.Provider, { value: t, children: e })), Ul = ({
3077
+ }), /* @__PURE__ */ a.jsx(Uo.Provider, { value: t, children: e })), Kl = ({
3077
3078
  children: e,
3078
3079
  ...t
3079
3080
  }) => {
3080
3081
  var c, d;
3081
3082
  const n = mt(
3082
- () => ({ ...Ma, ...t.overrides }),
3083
+ () => ({ ...Ra, ...t.overrides }),
3083
3084
  [t.overrides]
3084
3085
  ), r = mt(() => {
3085
3086
  var C;
3086
3087
  return {
3087
- ...(t.plugins ?? []).filter(Bs).flatMap(
3088
+ ...(t.plugins ?? []).filter(Us).flatMap(
3088
3089
  (g) => g.getMdxComponents ? [g.getMdxComponents()] : []
3089
3090
  ).reduce((g, T) => ({ ...g, ...T }), {}),
3090
- ...wo,
3091
+ ...yo,
3091
3092
  ...(C = t.mdx) == null ? void 0 : C.components
3092
3093
  };
3093
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Ro(Tt), [s, i] = Ie(!1), l = mt(
3094
+ }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Eo(Tt), [s, i] = Ie(!1), l = mt(
3094
3095
  () => s ? { stagger: !0 } : { stagger: o },
3095
3096
  [o, s]
3096
3097
  ), u = Ya();
3097
3098
  Ce(() => {
3098
3099
  s || i(!0);
3099
3100
  }, [s, u.location]);
3100
- const [m] = Ie(() => new Us(t)), f = (d = t.plugins) == null ? void 0 : d.filter(Ls).map((R, C) => {
3101
+ const [m] = Ie(() => new Ks(t)), f = (d = t.plugins) == null ? void 0 : d.filter(Hs).map((R, C) => {
3101
3102
  var g;
3102
- return /* @__PURE__ */ a.jsx(Eo, { children: (g = R.getHead) == null ? void 0 : g.call(R) }, C);
3103
+ return /* @__PURE__ */ a.jsx(Do, { children: (g = R.getHead) == null ? void 0 : g.call(R) }, C);
3103
3104
  });
3104
- return /* @__PURE__ */ a.jsxs(Ho, { client: nr, children: [
3105
+ return /* @__PURE__ */ a.jsxs(zo, { client: rr, children: [
3105
3106
  /* @__PURE__ */ a.jsx(kt, { children: f }),
3106
- /* @__PURE__ */ a.jsx(Tt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(Hl, { context: m, children: /* @__PURE__ */ a.jsx(za, { components: r, children: /* @__PURE__ */ a.jsx(Bl, { children: /* @__PURE__ */ a.jsx(Ll, { value: n, children: /* @__PURE__ */ a.jsx(Za, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(xo, { children: e ?? /* @__PURE__ */ a.jsx(In, {}) }) }) }) }) }) }) })
3107
+ /* @__PURE__ */ a.jsx(Tt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(zl, { context: m, children: /* @__PURE__ */ a.jsx(za, { components: r, children: /* @__PURE__ */ a.jsx(Ul, { children: /* @__PURE__ */ a.jsx(Hl, { value: n, children: /* @__PURE__ */ a.jsx(eo, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(xo, { children: e ?? /* @__PURE__ */ a.jsx(An, {}) }) }) }) }) }) }) })
3107
3108
  ] });
3108
- }, zl = Vn(Ul), Ra = (e) => /* @__PURE__ */ a.jsx(Os, { FallbackComponent: zs, children: /* @__PURE__ */ a.jsx(zl, { ...e }) });
3109
- Ra.displayName = "DevPortal";
3110
- const Kl = ({
3109
+ }, ql = Gn(Kl), rn = (e) => /* @__PURE__ */ a.jsx(As, { FallbackComponent: qs, children: /* @__PURE__ */ a.jsx(ql, { ...e }) });
3110
+ rn.displayName = "DevPortal";
3111
+ const Ql = ({
3111
3112
  category: e,
3112
3113
  level: t
3113
3114
  }) => {
3114
3115
  var R, C;
3115
- const n = Yn(), r = Ka(e), [o, s] = Ie(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [m, f] = Ie(u), c = Xa(wt(n == null ? void 0 : n.id, (R = e.link) == null ? void 0 : R.id));
3116
+ const n = Xn(), r = Ka(e), [o, s] = Ie(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [m, f] = Ie(u), c = Xa(wt(n == null ? void 0 : n.id, (R = e.link) == null ? void 0 : R.id));
3116
3117
  Ce(() => {
3117
3118
  r && f(!0);
3118
3119
  }, [r]);
@@ -3124,7 +3125,7 @@ const Kl = ({
3124
3125
  g.preventDefault(), f((T) => !T), s(!0);
3125
3126
  },
3126
3127
  children: /* @__PURE__ */ a.jsx(
3127
- Xn,
3128
+ Zn,
3128
3129
  {
3129
3130
  size: 16,
3130
3131
  className: F(
@@ -3136,18 +3137,18 @@ const Kl = ({
3136
3137
  }
3137
3138
  );
3138
3139
  return /* @__PURE__ */ a.jsxs(
3139
- jo,
3140
+ No,
3140
3141
  {
3141
3142
  className: "flex flex-col",
3142
3143
  defaultOpen: u,
3143
3144
  open: m,
3144
3145
  onOpenChange: () => f(!0),
3145
3146
  children: [
3146
- /* @__PURE__ */ a.jsx(No, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
3147
+ /* @__PURE__ */ a.jsx(To, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
3147
3148
  "div",
3148
3149
  {
3149
3150
  onClick: () => s(!0),
3150
- className: Je({
3151
+ className: Ze({
3151
3152
  isActive: !1,
3152
3153
  isTopLevel: t === 0,
3153
3154
  className: [
@@ -3167,7 +3168,7 @@ const Kl = ({
3167
3168
  }
3168
3169
  ),
3169
3170
  ((C = e.link) == null ? void 0 : C.type) === "doc" ? /* @__PURE__ */ a.jsx(
3170
- Ze,
3171
+ Je,
3171
3172
  {
3172
3173
  to: wt(n == null ? void 0 : n.id, e.link.id),
3173
3174
  className: "flex-1",
@@ -3196,7 +3197,7 @@ const Kl = ({
3196
3197
  }
3197
3198
  ) }),
3198
3199
  /* @__PURE__ */ a.jsx(
3199
- To,
3200
+ _o,
3200
3201
  {
3201
3202
  className: F(
3202
3203
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
@@ -3215,7 +3216,7 @@ const Kl = ({
3215
3216
  ]
3216
3217
  }
3217
3218
  );
3218
- }, Je = yo(
3219
+ }, Ze = bo(
3219
3220
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3220
3221
  {
3221
3222
  variants: {
@@ -3241,15 +3242,15 @@ const Kl = ({
3241
3242
  level: t = 0
3242
3243
  }) => {
3243
3244
  var s, i;
3244
- const n = Yn(), { activeAnchor: r } = Bt(), [o] = Ja();
3245
+ const n = Xn(), { activeAnchor: r } = Bt(), [o] = Za();
3245
3246
  switch (e.type) {
3246
3247
  case "category":
3247
- return /* @__PURE__ */ a.jsx(Kl, { category: e, level: t });
3248
+ return /* @__PURE__ */ a.jsx(Ql, { category: e, level: t });
3248
3249
  case "doc":
3249
3250
  return /* @__PURE__ */ a.jsxs(
3250
- Ze,
3251
+ Je,
3251
3252
  {
3252
- className: ({ isActive: l }) => Je({ isActive: l, isTopLevel: t === 0 }),
3253
+ className: ({ isActive: l }) => Ze({ isActive: l, isTopLevel: t === 0 }),
3253
3254
  to: wt(n == null ? void 0 : n.id, e.id),
3254
3255
  children: [
3255
3256
  e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
@@ -3266,7 +3267,7 @@ const Kl = ({
3266
3267
  {
3267
3268
  to: { hash: e.href, search: o.toString() },
3268
3269
  [Ea]: e.href.slice(1),
3269
- className: Je({
3270
+ className: Ze({
3270
3271
  isActive: e.href.slice(1) === r,
3271
3272
  isTopLevel: t === 0,
3272
3273
  className: ((s = e.badge) == null ? void 0 : s.placement) !== "start" && "justify-between"
@@ -3279,19 +3280,19 @@ const Kl = ({
3279
3280
  ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
3280
3281
  "a",
3281
3282
  {
3282
- className: Je({ isTopLevel: t === 0 }),
3283
+ className: Ze({ isTopLevel: t === 0 }),
3283
3284
  href: e.href,
3284
3285
  target: "_blank",
3285
3286
  rel: "noopener noreferrer",
3286
3287
  children: [
3287
3288
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
3288
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Yo, { className: "inline -translate-y-0.5", size: 12 }) })
3289
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Zo, { className: "inline -translate-y-0.5", size: 12 }) })
3289
3290
  ]
3290
3291
  }
3291
3292
  ) : /* @__PURE__ */ a.jsx(
3292
- Ze,
3293
+ Je,
3293
3294
  {
3294
- className: Je({
3295
+ className: Ze({
3295
3296
  className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
3296
3297
  }),
3297
3298
  to: e.href,
@@ -3302,17 +3303,17 @@ const Kl = ({
3302
3303
  }
3303
3304
  );
3304
3305
  }
3305
- }, ql = (e, t = { block: "center" }) => {
3306
+ }, Vl = (e, t = { block: "center" }) => {
3306
3307
  if (!e) return;
3307
3308
  const n = e.getBoundingClientRect();
3308
3309
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3309
- }, Ql = () => {
3310
+ }, Gl = () => {
3310
3311
  const e = Ft(), { setActiveAnchor: t } = Bt();
3311
3312
  Ce(() => {
3312
3313
  if (!e.hash) return;
3313
3314
  const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3314
3315
  const o = document.getElementById(n), s = document.querySelector(`[${Ea}="${n}"]`);
3315
- return o ? (o.scrollIntoView(), ql(s), requestIdleCallback(() => t(n)), !0) : !1;
3316
+ return o ? (o.scrollIntoView(), Vl(s), requestIdleCallback(() => t(n)), !0) : !1;
3316
3317
  };
3317
3318
  if (!r()) {
3318
3319
  const o = new MutationObserver((s, i) => {
@@ -3321,12 +3322,12 @@ const Kl = ({
3321
3322
  return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
3322
3323
  }
3323
3324
  }, [e.hash, t]);
3324
- }, Vl = () => {
3325
+ }, Wl = () => {
3325
3326
  const e = Ft(), t = Ht(e.pathname);
3326
3327
  Ce(() => {
3327
3328
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3328
3329
  }, [e.pathname]);
3329
- }, Da = Do(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3330
+ }, Da = Po(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3330
3331
  "nav",
3331
3332
  {
3332
3333
  "data-navigation": String(n),
@@ -3341,8 +3342,8 @@ const Kl = ({
3341
3342
  }
3342
3343
  ));
3343
3344
  Da.displayName = "SidebarWrapper";
3344
- const Gl = () => {
3345
- const e = Ht(null), t = Uo();
3345
+ const Yl = () => {
3346
+ const e = Ht(null), t = Ko();
3346
3347
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3347
3348
  /* @__PURE__ */ a.jsxs(
3348
3349
  Da,
@@ -3350,9 +3351,9 @@ const Gl = () => {
3350
3351
  ref: e,
3351
3352
  pushMainContent: t.data.items.length > 0,
3352
3353
  children: [
3353
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-navigation" }),
3354
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-before-navigation" }),
3354
3355
  t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label)),
3355
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-navigation" })
3356
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-after-navigation" })
3356
3357
  ]
3357
3358
  }
3358
3359
  ),
@@ -3362,15 +3363,15 @@ const Gl = () => {
3362
3363
  className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
3363
3364
  "aria-describedby": void 0,
3364
3365
  children: [
3365
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(nn, { children: "Sidebar" }) }),
3366
+ /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Sidebar" }) }),
3366
3367
  t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label))
3367
3368
  ]
3368
3369
  }
3369
3370
  )
3370
3371
  ] });
3371
- }, Wl = ({ children: e }) => {
3372
+ }, Xl = ({ children: e }) => {
3372
3373
  const t = Ft(), { setActiveAnchor: n } = Bt(), { meta: r, authentication: o } = Ae();
3373
- Ql(), Vl();
3374
+ Gl(), Wl();
3374
3375
  const s = Ht(t.pathname);
3375
3376
  return Ce(() => {
3376
3377
  var i;
@@ -3383,15 +3384,15 @@ const Gl = () => {
3383
3384
  (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
3384
3385
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
3385
3386
  ] }),
3386
- /* @__PURE__ */ a.jsx(xe, { name: "layout-before-head" }),
3387
- /* @__PURE__ */ a.jsx(Ca, {}),
3388
- /* @__PURE__ */ a.jsx(xe, { name: "layout-after-head" }),
3387
+ /* @__PURE__ */ a.jsx(ye, { name: "layout-before-head" }),
3388
+ /* @__PURE__ */ a.jsx(Ma, {}),
3389
+ /* @__PURE__ */ a.jsx(ye, { name: "layout-after-head" }),
3389
3390
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
3390
- Qn,
3391
+ Vn,
3391
3392
  {
3392
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(ls, {}) }),
3393
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(us, {}) }),
3393
3394
  children: /* @__PURE__ */ a.jsxs(en, { direction: "left", children: [
3394
- /* @__PURE__ */ a.jsx(Gl, {}),
3395
+ /* @__PURE__ */ a.jsx(Yl, {}),
3395
3396
  /* @__PURE__ */ a.jsx(
3396
3397
  "div",
3397
3398
  {
@@ -3399,8 +3400,8 @@ const Gl = () => {
3399
3400
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3400
3401
  "peer-data-[navigation=false]:hidden"
3401
3402
  ),
3402
- children: /* @__PURE__ */ a.jsxs(wa, { className: "flex items-center gap-2", children: [
3403
- /* @__PURE__ */ a.jsx(Xo, { size: 16, strokeWidth: 1.5 }),
3403
+ children: /* @__PURE__ */ a.jsxs(ya, { className: "flex items-center gap-2", children: [
3404
+ /* @__PURE__ */ a.jsx(Jo, { size: 16, strokeWidth: 1.5 }),
3404
3405
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
3405
3406
  ] })
3406
3407
  }
@@ -3416,9 +3417,9 @@ const Gl = () => {
3416
3417
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3417
3418
  ),
3418
3419
  children: [
3419
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-content" }),
3420
- e ?? /* @__PURE__ */ a.jsx(In, {}),
3421
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-content" })
3420
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-before-content" }),
3421
+ e ?? /* @__PURE__ */ a.jsx(An, {}),
3422
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-after-content" })
3422
3423
  ]
3423
3424
  }
3424
3425
  )
@@ -3426,19 +3427,22 @@ const Gl = () => {
3426
3427
  }
3427
3428
  ) })
3428
3429
  ] });
3429
- }, hc = Qa, pc = bo, mc = Ra, gc = Wl, vc = $t, wc = eo, xc = cs, yc = Es, bc = Ds, Sc = Nt, Cc = kt, Mc = Ae;
3430
+ }, gc = Qa, vc = rn, wc = Xl, yc = to, xc = ds, bc = Ps, Sc = js, Cc = kt, Mc = Ae, Rc = Ja, Ec = rn, Dc = So, Pc = Oo, jc = Nt, Nc = $t;
3430
3431
  export {
3431
- yc as Bootstrap,
3432
- bc as BootstrapStatic,
3433
- Sc as Button,
3434
- pc as Callout,
3435
- mc as DevPortal,
3432
+ bc as Bootstrap,
3433
+ Sc as BootstrapStatic,
3434
+ jc as Button,
3435
+ Dc as Callout,
3436
+ Pc as ClientOnly,
3437
+ vc as DevPortal,
3436
3438
  Cc as Head,
3437
- gc as Layout,
3438
- vc as Link,
3439
- wc as RouterError,
3439
+ wc as Layout,
3440
+ Nc as Link,
3441
+ yc as RouterError,
3440
3442
  xc as ServerError,
3441
- hc as useMDXComponents,
3443
+ Ec as Zudoku,
3444
+ Rc as useAuth,
3445
+ gc as useMDXComponents,
3442
3446
  Mc as useZudoku
3443
3447
  };
3444
3448
  //# sourceMappingURL=zudoku.components.js.map