zudoku 0.0.0-f2a195f → 0.0.0-f417aae

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 (158) hide show
  1. package/dist/app/main.js +2 -4
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/InputSidebarSchema.d.ts +19 -4
  4. package/dist/config/validators/InputSidebarSchema.js +7 -28
  5. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  6. package/dist/config/validators/SidebarSchema.js +5 -6
  7. package/dist/config/validators/SidebarSchema.js.map +1 -1
  8. package/dist/config/validators/validate.d.ts +103 -19
  9. package/dist/config/validators/validate.js +17 -1
  10. package/dist/config/validators/validate.js.map +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/lib/authentication/components/CallbackHandler.js +21 -31
  13. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  14. package/dist/lib/authentication/hook.d.ts +1 -1
  15. package/dist/lib/authentication/hook.js +1 -1
  16. package/dist/lib/authentication/hook.js.map +1 -1
  17. package/dist/lib/components/MobileTopNavigation.js +4 -1
  18. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  19. package/dist/lib/components/SlotletProvider.d.ts +6 -2
  20. package/dist/lib/components/SlotletProvider.js +3 -5
  21. package/dist/lib/components/SlotletProvider.js.map +1 -1
  22. package/dist/lib/components/TopNavigation.d.ts +3 -0
  23. package/dist/lib/components/TopNavigation.js +9 -1
  24. package/dist/lib/components/TopNavigation.js.map +1 -1
  25. package/dist/lib/components/context/ZudokuContext.d.ts +2 -0
  26. package/dist/lib/components/index.d.ts +17 -8
  27. package/dist/lib/components/index.js +10 -3
  28. package/dist/lib/components/index.js.map +1 -1
  29. package/dist/lib/components/navigation/Sidebar.js +1 -1
  30. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  31. package/dist/lib/components/navigation/SidebarCategory.js +18 -7
  32. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  33. package/dist/lib/components/navigation/SidebarItem.js +12 -5
  34. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  35. package/dist/lib/core/DevPortalContext.d.ts +1 -0
  36. package/dist/lib/core/DevPortalContext.js.map +1 -1
  37. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  38. package/dist/lib/errors/ErrorAlert.js +8 -3
  39. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  40. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  41. package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
  42. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  43. package/dist/lib/plugins/custom-pages/index.d.ts +8 -6
  44. package/dist/lib/plugins/custom-pages/index.js +3 -4
  45. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  46. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  47. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  48. package/dist/lib/plugins/openapi/playground/Playground.js +1 -0
  49. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  50. package/dist/lib/util/invariant.d.ts +9 -0
  51. package/dist/lib/util/invariant.js +7 -3
  52. package/dist/lib/util/invariant.js.map +1 -1
  53. package/dist/lib/util/useExposedProps.d.ts +2 -0
  54. package/dist/lib/util/useExposedProps.js +8 -0
  55. package/dist/lib/util/useExposedProps.js.map +1 -0
  56. package/dist/vite/dev-server.js +1 -1
  57. package/dist/vite/dev-server.js.map +1 -1
  58. package/dist/vite/plugin-mdx.js +17 -0
  59. package/dist/vite/plugin-mdx.js.map +1 -1
  60. package/dist/vite/plugin-search.d.ts +3 -0
  61. package/dist/vite/plugin-search.js +26 -0
  62. package/dist/vite/plugin-search.js.map +1 -0
  63. package/dist/vite/plugin.js +2 -0
  64. package/dist/vite/plugin.js.map +1 -1
  65. package/lib/{AuthenticationPlugin-D_5jC4vE.js → AuthenticationPlugin-tBvLKsFg.js} +3 -3
  66. package/lib/{AuthenticationPlugin-D_5jC4vE.js.map → AuthenticationPlugin-tBvLKsFg.js.map} +1 -1
  67. package/lib/{CategoryHeading-C7VfgpFZ.js → CategoryHeading-D2WS6sRI.js} +2 -2
  68. package/lib/{CategoryHeading-C7VfgpFZ.js.map → CategoryHeading-D2WS6sRI.js.map} +1 -1
  69. package/lib/ClientOnly-CVN6leDu.js +11 -0
  70. package/lib/ClientOnly-CVN6leDu.js.map +1 -0
  71. package/lib/{DeveloperHint-CNyuFROc.js → DeveloperHint-CRiZjqd2.js} +2 -2
  72. package/lib/{DeveloperHint-CNyuFROc.js.map → DeveloperHint-CRiZjqd2.js.map} +1 -1
  73. package/lib/{Input-CYTkk51A.js → Input-CO-1DOZa.js} +4 -4
  74. package/lib/{Input-CYTkk51A.js.map → Input-CO-1DOZa.js.map} +1 -1
  75. package/lib/{Markdown-C-0TaxoY.js → Markdown-DM4zv3MA.js} +9 -8
  76. package/lib/{Markdown-C-0TaxoY.js.map → Markdown-DM4zv3MA.js.map} +1 -1
  77. package/lib/{MdxPage-Cbj8ILOL.js → MdxPage-tWI_P8wP.js} +7 -7
  78. package/lib/MdxPage-tWI_P8wP.js.map +1 -0
  79. package/lib/{OperationList-Dto8Wvgo.js → OperationList-Cd3lue0b.js} +11 -12
  80. package/lib/{OperationList-Dto8Wvgo.js.map → OperationList-Cd3lue0b.js.map} +1 -1
  81. package/lib/{Route-DLH-PALM.js → Route-DI0Y0pIV.js} +3 -3
  82. package/lib/{Route-DLH-PALM.js.map → Route-DI0Y0pIV.js.map} +1 -1
  83. package/lib/SlotletProvider-CBqY8mp6.js +241 -0
  84. package/lib/SlotletProvider-CBqY8mp6.js.map +1 -0
  85. package/lib/{SidebarBadge-BWvFQTc1.js → Spinner-DFQhPMBl.js} +60 -58
  86. package/lib/Spinner-DFQhPMBl.js.map +1 -0
  87. package/lib/{ZudokuContext-uV_XfHPK.js → ZudokuContext-DEoP3GGJ.js} +2 -2
  88. package/lib/{ZudokuContext-uV_XfHPK.js.map → ZudokuContext-DEoP3GGJ.js.map} +1 -1
  89. package/lib/_commonjsHelpers-BkfeUUK-.js +29 -0
  90. package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
  91. package/lib/index-Bn6Lc9tq.js +9 -0
  92. package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
  93. package/lib/{index-aHWE7ArR.js → index-Bs9roz8y.js} +599 -590
  94. package/lib/index-Bs9roz8y.js.map +1 -0
  95. package/lib/{index-SyxHzsgJ.js → index-CBr6BM_4.js} +13 -13
  96. package/lib/index-CBr6BM_4.js.map +1 -0
  97. package/lib/{index-SrtqdZ3j.js → index-CRo94sKK.js} +8 -6
  98. package/lib/{index-SrtqdZ3j.js.map → index-CRo94sKK.js.map} +1 -1
  99. package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
  100. package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
  101. package/lib/{index-LstIRx3V.js → index-UUT9q9f9.js} +3 -3
  102. package/lib/{index-LstIRx3V.js.map → index-UUT9q9f9.js.map} +1 -1
  103. package/lib/invariant-Caa8-XvF.js +26 -0
  104. package/lib/invariant-Caa8-XvF.js.map +1 -0
  105. package/lib/{router-Oe6YmY6B.js → router-BsfSoK2j.js} +3 -3
  106. package/lib/{router-Oe6YmY6B.js.map → router-BsfSoK2j.js.map} +1 -1
  107. package/lib/urql-core-KJnLL26g.js.map +1 -1
  108. package/lib/useExposedProps-B9K-9GTc.js +9 -0
  109. package/lib/useExposedProps-B9K-9GTc.js.map +1 -0
  110. package/lib/{utils-CCcr3AZm.js → utils-G5XSiZc9.js} +4 -4
  111. package/lib/{utils-CCcr3AZm.js.map → utils-G5XSiZc9.js.map} +1 -1
  112. package/lib/zudoku.auth-clerk.js +1 -1
  113. package/lib/zudoku.auth-openid.js +477 -483
  114. package/lib/zudoku.auth-openid.js.map +1 -1
  115. package/lib/zudoku.components.js +1014 -1002
  116. package/lib/zudoku.components.js.map +1 -1
  117. package/lib/zudoku.openapi-worker.js +2 -2
  118. package/lib/zudoku.plugin-api-keys.js +60 -70
  119. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  120. package/lib/zudoku.plugin-custom-pages.js +16 -8
  121. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  122. package/lib/zudoku.plugin-markdown.js +1 -1
  123. package/lib/zudoku.plugin-openapi.js +7 -8
  124. package/lib/zudoku.plugin-openapi.js.map +1 -1
  125. package/lib/zudoku.plugin-redirect.js +1 -1
  126. package/lib/zudoku.plugin-search-inkeep.js +9 -13
  127. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  128. package/package.json +1 -1
  129. package/src/app/main.css +0 -1
  130. package/src/app/main.tsx +2 -4
  131. package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
  132. package/src/lib/authentication/hook.ts +1 -1
  133. package/src/lib/components/MobileTopNavigation.tsx +6 -2
  134. package/src/lib/components/SlotletProvider.tsx +14 -7
  135. package/src/lib/components/TopNavigation.tsx +14 -1
  136. package/src/lib/components/index.ts +13 -4
  137. package/src/lib/components/navigation/Sidebar.tsx +1 -1
  138. package/src/lib/components/navigation/SidebarCategory.tsx +34 -26
  139. package/src/lib/components/navigation/SidebarItem.tsx +16 -17
  140. package/src/lib/core/DevPortalContext.ts +6 -1
  141. package/src/lib/errors/ErrorAlert.tsx +18 -5
  142. package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
  143. package/src/lib/plugins/custom-pages/index.tsx +11 -9
  144. package/src/lib/plugins/markdown/MdxPage.tsx +10 -8
  145. package/src/lib/plugins/openapi/playground/Playground.tsx +1 -0
  146. package/src/lib/util/invariant.ts +15 -3
  147. package/src/lib/util/useExposedProps.tsx +10 -0
  148. package/lib/ErrorPage-CUz-Zzmx.js +0 -16
  149. package/lib/ErrorPage-CUz-Zzmx.js.map +0 -1
  150. package/lib/MdxPage-Cbj8ILOL.js.map +0 -1
  151. package/lib/SidebarBadge-BWvFQTc1.js.map +0 -1
  152. package/lib/SlotletProvider-BGEs7yyu.js +0 -240
  153. package/lib/SlotletProvider-BGEs7yyu.js.map +0 -1
  154. package/lib/Spinner-3cQDBVGr.js +0 -7
  155. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  156. package/lib/index-DJqnphbT.js +0 -35
  157. package/lib/index-SyxHzsgJ.js.map +0 -1
  158. package/lib/index-aHWE7ArR.js.map +0 -1
@@ -1,10 +1,10 @@
1
- var Ba = Object.defineProperty;
2
- var fn = (e) => {
1
+ var Ha = Object.defineProperty;
2
+ var pn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Ha = (e, t, n) => t in e ? Ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var ae = (e, t, n) => Ha(e, typeof t != "symbol" ? t + "" : t, n), hn = (e, t, n) => t.has(e) || fn("Cannot " + n);
7
- var w = (e, t, n) => (hn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? fn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (hn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
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), 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 It, M as Ua, d as za, A as Ka, b as qa } from "./utils-CCcr3AZm.js";
17
- import { e as Qa, f as Va, R as Ga, N as Ze, L as At, g as Wa, O as In, u as Ya, b as kt } from "./index-SrtqdZ3j.js";
18
- import { E as An, S as xe, a as Xa, R as Ja } from "./SlotletProvider-BGEs7yyu.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 Za, f as eo, c as kn, p as $n, A as to, d as rt, j as no, b as A, k as ro, F as ao, D as oo, C as so, P as Ke, i as $t, q as io, s as Fn, R as lo, S as co, t as uo, h as fo, r as Ln, m as ho, a as gt, u as Bn, V as Hn, n as pn, B as Pt } from "./index-SyxHzsgJ.js";
21
- import { a as O, c as Un, b as po, T as mo, d as go, V as vo, u as Ft, e as wo, C as xo } from "./Markdown-C-0TaxoY.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 yo, createElement as mn, isValidElement as bo, useState as Ie, useMemo as mt, useLayoutEffect as So, useEffect as Ce, useCallback as qn, Suspense as Qn, memo as Vn, useContext as Co, Fragment as Mo, useRef as Lt, forwardRef as Ro } from "react";
24
- import { a as Bt } from "./index-DJqnphbT.js";
25
- import { B as Eo } from "./router-Oe6YmY6B.js";
26
- import { a as jt, R as Do, T as Po, C as jo } from "./index-LstIRx3V.js";
27
- import { S as Gn, f as Wn, Q as No, n as se, m as gn, g as vn, i as be, j as To, k as _o, l as Oo, o as Io, p as wn, r as xn, q as Ao, h as yn, t as bn, v as ko, u as qe, b as $o, Z as Fo, w as Lo, c as Yn, x as Bo } from "./ZudokuContext-uV_XfHPK.js";
28
- import { j as Ht } from "./joinPath-B7kNnUX4.js";
29
- import { ChevronRightIcon as Xn, CheckIcon as Ho, DotIcon as Uo, CircleXIcon as zo, SearchIcon as Ko, MenuIcon as qo, MoonStarIcon as Qo, SunIcon as Vo, ExternalLinkIcon as Go, PanelLeftIcon as Wo } from "lucide-react";
30
- import { c as Jn, P as xt, R as Yo, I as Xo, O as Jo, C as Zo, T as es, a as ts, b as ns, D as rs, d as as, e as os, S as St } from "./SidebarBadge-BWvFQTc1.js";
31
- import { S as ss } from "./Spinner-3cQDBVGr.js";
32
- function is({ error: e }) {
33
- return /* @__PURE__ */ a.jsx(An, { error: e });
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";
30
+ import { j as wt } from "./joinPath-B7kNnUX4.js";
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 ls = /* @__PURE__ */ Bt(Eo), cs = /* @__PURE__ */ Bt(Qa), us = /* @__PURE__ */ Bt(Va);
37
+ const fs = /* @__PURE__ */ Ut(jo), hs = /* @__PURE__ */ Ut(Va), ps = /* @__PURE__ */ Ut(Ga);
37
38
  Object.defineProperty(at, "__esModule", { value: !0 });
38
- var ds = p, we = ls, Ut = cs, Se = us;
39
- function fs(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 fs(e) {
51
52
  }
52
53
  }), t.default = e, Object.freeze(t);
53
54
  }
54
- var ge = /* @__PURE__ */ fs(ds);
55
- function hs({
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 hs({
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 hs({
76
77
  static: !0
77
78
  });
78
79
  }
79
- function ps({
80
+ function ws({
80
81
  context: e,
81
82
  router: t,
82
83
  hydrate: n = !0,
@@ -85,7 +86,7 @@ function ps({
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 ps({
94
95
  let u = {
95
96
  loaderData: e.loaderData,
96
97
  actionData: e.actionData,
97
- errors: gs(e.errors)
98
+ errors: xs(e.errors)
98
99
  };
99
- i = `window.__staticRouterHydrationData = JSON.parse(${Ss(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 ps({
120
121
  future: {
121
122
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
122
123
  }
123
- }, /* @__PURE__ */ ge.createElement(ms, {
124
+ }, /* @__PURE__ */ ge.createElement(ys, {
124
125
  routes: t.routes,
125
126
  future: t.future,
126
127
  state: l
@@ -132,14 +133,14 @@ function ps({
132
133
  }
133
134
  }) : null);
134
135
  }
135
- function ms({
136
+ function ys({
136
137
  routes: e,
137
138
  future: t,
138
139
  state: n
139
140
  }) {
140
- return Ut.UNSAFE_useRoutesImpl(e, void 0, n, t);
141
+ return zt.UNSAFE_useRoutesImpl(e, void 0, n, t);
141
142
  }
142
- function gs(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 gs(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,14 +179,14 @@ function Zn() {
178
179
  }
179
180
  };
180
181
  }
181
- function vs(e, t) {
182
+ function bs(e, t) {
182
183
  return we.createStaticHandler(e, {
183
184
  ...t,
184
- mapRouteProperties: Ut.UNSAFE_mapRouteProperties
185
+ mapRouteProperties: zt.UNSAFE_mapRouteProperties
185
186
  });
186
187
  }
187
- function ws(e, t, n = {}) {
188
- let r = {}, o = we.UNSAFE_convertRoutesToDataRoutes(e, Ut.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
188
+ function Ss(e, t, n = {}) {
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 {
191
192
  ...l,
@@ -247,8 +248,8 @@ function ws(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 ws(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 = xs.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 xs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ys = {
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
- }, bs = /[&><\u2028\u2029]/g;
297
- function Ss(e) {
298
- return e.replace(bs, (t) => ys[t]);
299
- }
300
- at.StaticRouter = hs;
301
- var Cs = at.StaticRouterProvider = ps;
302
- at.createStaticHandler = vs;
303
- at.createStaticRouter = ws;
304
- const Ms = ({
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(jt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Ga, { router: e }) }) }) }), Rs = ({
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(Cs, { router: e, context: t }) }) });
312
- var ve, Nn, Es = (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 No({
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, Es = (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, Es = (Nn = class extends Gn {
381
382
  });
382
383
  });
383
384
  }
384
- }, ve = new WeakMap(), Nn), oe, nt, Tn, Ds = (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, Es = (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 Za({
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, Es = (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,67 +455,67 @@ var ve, Nn, Es = (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
- var f, c, d, v, M;
466
- const r = t.options, o = (d = (c = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : d.direction, s = ((v = t.state.data) == null ? void 0 : v.pages) || [], i = ((M = t.state.data) == null ? void 0 : M.pageParams) || [];
466
+ var f, c, d, R, C;
467
+ const r = t.options, o = (d = (c = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : d.direction, s = ((R = t.state.data) == null ? void 0 : R.pages) || [], i = ((C = t.state.data) == null ? void 0 : C.pageParams) || [];
467
468
  let l = { pages: [], pageParams: [] }, u = 0;
468
469
  const m = async () => {
469
- let C = !1;
470
- const _ = (P) => {
470
+ let g = !1;
471
+ const T = (P) => {
471
472
  Object.defineProperty(P, "signal", {
472
473
  enumerable: !0,
473
- get: () => (t.signal.aborted ? C = !0 : t.signal.addEventListener("abort", () => {
474
- C = !0;
474
+ get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
475
+ g = !0;
475
476
  }), t.signal)
476
477
  });
477
- }, R = To(t.options, t.fetchOptions), k = async (P, g, z) => {
478
- if (C)
478
+ }, M = Ao(t.options, t.fetchOptions), A = async (P, v, z) => {
479
+ if (g)
479
480
  return Promise.reject();
480
- if (g == null && P.pages.length)
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
- pageParam: g,
485
+ pageParam: v,
485
486
  direction: z ? "backward" : "forward",
486
487
  meta: t.options.meta
487
488
  };
488
- _(Z);
489
- const b = await R(
490
- Z
491
- ), { maxPages: j } = t.options, D = z ? _o : Oo;
489
+ T(J);
490
+ const b = await M(
491
+ J
492
+ ), { maxPages: j } = t.options, D = z ? ko : $o;
492
493
  return {
493
494
  pages: D(P.pages, b, j),
494
- pageParams: D(P.pageParams, g, j)
495
+ pageParams: D(P.pageParams, v, j)
495
496
  };
496
497
  };
497
498
  if (o && s.length) {
498
- const P = o === "backward", g = P ? Ps : Cn, z = {
499
+ const P = o === "backward", v = P ? _s : Mn, z = {
499
500
  pages: s,
500
501
  pageParams: i
501
- }, Z = g(r, z);
502
- l = await k(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 g = u === 0 ? i[0] ?? r.initialPageParam : Cn(r, l);
507
- if (u > 0 && g == null)
507
+ const v = u === 0 ? i[0] ?? r.initialPageParam : Mn(r, l);
508
+ if (u > 0 && v == null)
508
509
  break;
509
- l = await k(l, g), u++;
510
+ l = await A(l, v), u++;
510
511
  } while (u < P);
511
512
  }
512
513
  return l;
513
514
  };
514
515
  t.options.persister ? t.fetchFn = () => {
515
- var C, _;
516
- return (_ = (C = t.options).persister) == null ? void 0 : _.call(
517
- C,
516
+ var g, T;
517
+ return (T = (g = t.options).persister) == null ? void 0 : T.call(
518
+ g,
518
519
  m,
519
520
  {
520
521
  queryKey: t.queryKey,
@@ -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,35 +537,35 @@ function Cn(e, { pages: t, pageParams: n }) {
536
537
  n
537
538
  ) : void 0;
538
539
  }
539
- function Ps(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 F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
544
+ var $, Pe, je, He, Ue, Ne, ze, Ke, On, Os = (On = class {
544
545
  constructor(e = {}) {
545
- ce(this, F);
546
+ ce(this, $);
546
547
  ce(this, Pe);
547
548
  ce(this, je);
548
- ce(this, Be);
549
549
  ce(this, He);
550
- ce(this, Ne);
551
550
  ce(this, Ue);
551
+ ce(this, Ne);
552
552
  ce(this, ze);
553
- X(this, F, e.queryCache || new Es()), X(this, Pe, e.mutationCache || new Ds()), X(this, je, e.defaultOptions || {}), X(this, Be, /* @__PURE__ */ new Map()), X(this, He, /* @__PURE__ */ new Map()), X(this, Ne, 0);
553
+ ce(this, Ke);
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, Ue, Io.subscribe(async (e) => {
557
- e && (await this.resumePausedMutations(), w(this, F).onFocus());
558
- })), X(this, ze, wn.subscribe(async (e) => {
559
- e && (await this.resumePausedMutations(), w(this, F).onOnline());
557
+ ut(this, Ne)._++, w(this, Ne) === 1 && (X(this, ze, Fo.subscribe(async (e) => {
558
+ e && (await this.resumePausedMutations(), w(this, $).onFocus());
559
+ })), X(this, Ke, yn.subscribe(async (e) => {
560
+ e && (await this.resumePausedMutations(), w(this, $).onOnline());
560
561
  })));
561
562
  }
562
563
  unmount() {
563
564
  var e, t;
564
- ut(this, Ne)._--, w(this, Ne) === 0 && ((e = w(this, Ue)) == null || e.call(this), X(this, Ue, void 0), (t = w(this, ze)) == null || t.call(this), X(this, ze, void 0));
565
+ ut(this, Ne)._--, w(this, Ne) === 0 && ((e = w(this, ze)) == null || e.call(this), X(this, ze, void 0), (t = w(this, Ke)) == null || t.call(this), X(this, Ke, void 0));
565
566
  }
566
567
  isFetching(e) {
567
- return w(this, F).findAll({ ...e, fetchStatus: "fetching" }).length;
568
+ return w(this, $).findAll({ ...e, fetchStatus: "fetching" }).length;
568
569
  }
569
570
  isMutating(e) {
570
571
  return w(this, Pe).findAll({ ...e, status: "pending" }).length;
@@ -572,33 +573,33 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
572
573
  getQueryData(e) {
573
574
  var n;
574
575
  const t = this.defaultQueryOptions({ queryKey: e });
575
- return (n = w(this, F).get(t.queryHash)) == null ? void 0 : n.state.data;
576
+ return (n = w(this, $).get(t.queryHash)) == null ? void 0 : n.state.data;
576
577
  }
577
578
  ensureQueryData(e) {
578
579
  const t = this.getQueryData(e.queryKey);
579
580
  if (t === void 0)
580
581
  return this.fetchQuery(e);
581
582
  {
582
- const n = this.defaultQueryOptions(e), r = w(this, F).build(this, n);
583
+ const n = this.defaultQueryOptions(e), r = w(this, $).build(this, n);
583
584
  return e.revalidateIfStale && r.isStaleByTime(xn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
584
585
  }
585
586
  }
586
587
  getQueriesData(e) {
587
- return w(this, F).findAll(e).map(({ queryKey: t, state: n }) => {
588
+ return w(this, $).findAll(e).map(({ queryKey: t, state: n }) => {
588
589
  const r = n.data;
589
590
  return [t, r];
590
591
  });
591
592
  }
592
593
  setQueryData(e, t, n) {
593
- const r = this.defaultQueryOptions({ queryKey: e }), o = w(this, F).get(
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 = Ao(t, s);
596
+ ), s = o == null ? void 0 : o.state.data, i = Lo(t, s);
596
597
  if (i !== void 0)
597
- return w(this, F).build(this, r).setData(i, { ...n, manual: !0 });
598
+ return w(this, $).build(this, r).setData(i, { ...n, manual: !0 });
598
599
  }
599
600
  setQueriesData(e, t, n) {
600
601
  return se.batch(
601
- () => w(this, F).findAll(e).map(({ queryKey: r }) => [
602
+ () => w(this, $).findAll(e).map(({ queryKey: r }) => [
602
603
  r,
603
604
  this.setQueryData(r, t, n)
604
605
  ])
@@ -607,10 +608,10 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
607
608
  getQueryState(e) {
608
609
  var n;
609
610
  const t = this.defaultQueryOptions({ queryKey: e });
610
- return (n = w(this, F).get(t.queryHash)) == null ? void 0 : n.state;
611
+ return (n = w(this, $).get(t.queryHash)) == null ? void 0 : n.state;
611
612
  }
612
613
  removeQueries(e) {
613
- const t = w(this, F);
614
+ const t = w(this, $);
614
615
  se.batch(() => {
615
616
  t.findAll(e).forEach((n) => {
616
617
  t.remove(n);
@@ -618,7 +619,7 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
618
619
  });
619
620
  }
620
621
  resetQueries(e, t) {
621
- const n = w(this, F), r = {
622
+ const n = w(this, $), r = {
622
623
  type: "active",
623
624
  ...e
624
625
  };
@@ -628,13 +629,13 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
628
629
  }
629
630
  cancelQueries(e = {}, t = {}) {
630
631
  const n = { revert: !0, ...t }, r = se.batch(
631
- () => w(this, F).findAll(e).map((o) => o.cancel(n))
632
+ () => w(this, $).findAll(e).map((o) => o.cancel(n))
632
633
  );
633
634
  return Promise.all(r).then(be).catch(be);
634
635
  }
635
636
  invalidateQueries(e = {}, t = {}) {
636
637
  return se.batch(() => {
637
- if (w(this, F).findAll(e).forEach((r) => {
638
+ if (w(this, $).findAll(e).forEach((r) => {
638
639
  r.invalidate();
639
640
  }), e.refetchType === "none")
640
641
  return Promise.resolve();
@@ -650,7 +651,7 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
650
651
  ...t,
651
652
  cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
652
653
  }, r = se.batch(
653
- () => w(this, F).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
654
+ () => w(this, $).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
654
655
  let s = o.fetch(void 0, n);
655
656
  return n.throwOnError || (s = s.catch(be)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
656
657
  })
@@ -660,7 +661,7 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
660
661
  fetchQuery(e) {
661
662
  const t = this.defaultQueryOptions(e);
662
663
  t.retry === void 0 && (t.retry = !1);
663
- const n = w(this, F).build(this, t);
664
+ const n = w(this, $).build(this, t);
664
665
  return n.isStaleByTime(
665
666
  xn(t.staleTime, n)
666
667
  ) ? n.fetch(t) : Promise.resolve(n.state.data);
@@ -669,19 +670,19 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_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
- return w(this, F);
685
+ return w(this, $);
685
686
  }
686
687
  getMutationCache() {
687
688
  return w(this, Pe);
@@ -693,29 +694,29 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
693
694
  X(this, je, e);
694
695
  }
695
696
  setQueryDefaults(e, t) {
696
- w(this, Be).set(yn(e), {
697
+ w(this, He).set(bn(e), {
697
698
  queryKey: e,
698
699
  defaultOptions: t
699
700
  });
700
701
  }
701
702
  getQueryDefaults(e) {
702
- const t = [...w(this, Be).values()];
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, He).set(yn(e), {
710
+ w(this, Ue).set(bn(e), {
710
711
  mutationKey: e,
711
712
  defaultOptions: t
712
713
  });
713
714
  }
714
715
  getMutationDefaults(e) {
715
- const t = [...w(this, He).values()];
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 F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_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 === ko && (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 : {
@@ -741,16 +742,16 @@ var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
741
742
  };
742
743
  }
743
744
  clear() {
744
- w(this, F).clear(), w(this, Pe).clear();
745
+ w(this, $).clear(), w(this, Pe).clear();
745
746
  }
746
- }, F = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), Be = new WeakMap(), He = new WeakMap(), Ne = new WeakMap(), Ue = new WeakMap(), ze = new WeakMap(), _n);
747
- const Ns = Kn(null), Ct = {
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 Ts extends yo {
752
+ class As extends Co {
752
753
  constructor(t) {
753
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ct;
754
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Rt;
754
755
  }
755
756
  static getDerivedStateFromError(t) {
756
757
  return {
@@ -768,7 +769,7 @@ class Ts extends yo {
768
769
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
769
770
  args: s,
770
771
  reason: "imperative-api"
771
- }), this.setState(Ct);
772
+ }), this.setState(Rt);
772
773
  }
773
774
  }
774
775
  componentDidCatch(t, n) {
@@ -781,13 +782,13 @@ class Ts extends yo {
781
782
  } = this.state, {
782
783
  resetKeys: o
783
784
  } = this.props;
784
- if (r && n.error !== null && _s(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,
788
789
  prev: t.resetKeys,
789
790
  reason: "keys"
790
- }), this.setState(Ct);
791
+ }), this.setState(Rt);
791
792
  }
792
793
  }
793
794
  render() {
@@ -809,13 +810,13 @@ class Ts extends yo {
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 || bo(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(Ns.Provider, {
819
+ return gn(Is.Provider, {
819
820
  value: {
820
821
  didCatch: s,
821
822
  error: i,
@@ -824,12 +825,12 @@ class Ts extends yo {
824
825
  }, l);
825
826
  }
826
827
  }
827
- function _s() {
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 Os = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Is = (e) => "getRoutes" in e && typeof e.getRoutes == "function", As = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ks = (e) => "initialize" in e && typeof e.initialize == "function", $s = (e) => "getHead" in e && typeof e.getHead == "function", Fs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ls = (e) => "getIdentities" in e && typeof e.getIdentities == "function", nr = new js();
832
- class Bs {
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,23 +841,23 @@ class Bs {
840
841
  ae(this, "navigationPlugins");
841
842
  ae(this, "initialize", async () => {
842
843
  await Promise.all(
843
- this.plugins.filter(ks).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(Ls).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(
857
858
  (r) => {
858
859
  var o;
859
- return (o = r.getSidebar) == null ? void 0 : o.call(r, Ht(t));
860
+ return (o = r.getSidebar) == null ? void 0 : o.call(r, wt(t));
860
861
  }
861
862
  )
862
863
  )).flatMap((r) => r ?? []));
@@ -866,35 +867,35 @@ class Bs {
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(Is), 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 Hs({ 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 Nt = ["Enter", " "], Us = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp", "PageDown", "End"], zs = [...Us, ...rr], Ks = {
878
- ltr: [...Nt, "ArrowRight"],
879
- rtl: [...Nt, "ArrowLeft"]
880
- }, qs = {
878
+ var _t = ["Enter", " "], Qs = ["ArrowDown", "PageUp", "Home"], ar = ["ArrowUp", "PageDown", "End"], Vs = [...Qs, ...ar], Gs = {
879
+ ltr: [..._t, "ArrowRight"],
880
+ rtl: [..._t, "ArrowLeft"]
881
+ }, Ws = {
881
882
  ltr: ["ArrowLeft"],
882
883
  rtl: ["ArrowRight"]
883
- }, ot = "Menu", [et, Qs, Vs] = eo(ot), [Ae, ar] = kn(ot, [
884
- Vs,
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] = Ae(ot), [Gs, it] = Ae(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 = $t(s), d = fo(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
- const v = () => {
891
- f.current = !0, document.addEventListener("pointerdown", M, { capture: !0, once: !0 }), document.addEventListener("pointermove", M, { capture: !0, once: !0 });
892
- }, M = () => f.current = !1;
893
- return document.addEventListener("keydown", v, { capture: !0 }), () => {
894
- document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", M, { capture: !0 }), document.removeEventListener("pointermove", M, { capture: !0 });
891
+ const R = () => {
892
+ f.current = !0, document.addEventListener("pointerdown", C, { capture: !0, once: !0 }), document.addEventListener("pointermove", C, { capture: !0, once: !0 });
893
+ }, C = () => f.current = !1;
894
+ return document.addEventListener("keydown", R, { capture: !0 }), () => {
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 Nt = ["Enter", " "], Us = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
902
903
  content: u,
903
904
  onContentChange: m,
904
905
  children: /* @__PURE__ */ a.jsx(
905
- Gs,
906
+ Zs,
906
907
  {
907
908
  scope: t,
908
909
  onClose: h.useCallback(() => c(!1), [c]),
@@ -915,41 +916,41 @@ var Nt = ["Enter", " "], Us = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
915
916
  }
916
917
  ) });
917
918
  };
918
- ir.displayName = ot;
919
- var Ws = "MenuAnchor", zt = 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(to, { ...o, ...r, ref: t });
923
+ return /* @__PURE__ */ a.jsx(ao, { ...o, ...r, ref: t });
923
924
  }
924
925
  );
925
- zt.displayName = Ws;
926
- var Kt = "MenuPortal", [Ys, lr] = Ae(Kt, {
926
+ Kt.displayName = Js;
927
+ var qt = "MenuPortal", [ei, cr] = ke(qt, {
927
928
  forceMount: void 0
928
- }), cr = (e) => {
929
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(Kt, t);
930
- return /* @__PURE__ */ a.jsx(Ys, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(xt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(ho, { asChild: !0, container: o, children: r }) }) });
929
+ }), ur = (e) => {
930
+ const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(qt, t);
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 = Kt;
933
- var ue = "MenuContent", [Xs, qt] = Ae(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(xt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(Js, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(Zs, { ...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
- ), Js = 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 no(s);
944
+ if (s) return oo(s);
944
945
  }, []), /* @__PURE__ */ a.jsx(
945
- Qt,
946
+ Vt,
946
947
  {
947
948
  ...e,
948
949
  ref: o,
949
950
  trapFocus: n.open,
950
951
  disableOutsidePointerEvents: n.open,
951
952
  disableOutsideScroll: !0,
952
- onFocusOutside: A(
953
+ onFocusOutside: I(
953
954
  e.onFocusOutside,
954
955
  (s) => s.preventDefault(),
955
956
  { checkForDefaultPrevented: !1 }
@@ -958,10 +959,10 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
958
959
  }
959
960
  );
960
961
  }
961
- ), Zs = 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
- Qt,
965
+ Vt,
965
966
  {
966
967
  ...e,
967
968
  ref: t,
@@ -971,7 +972,7 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
971
972
  onDismiss: () => n.onOpenChange(!1)
972
973
  }
973
974
  );
974
- }), Qt = h.forwardRef(
975
+ }), Vt = h.forwardRef(
975
976
  (e, t) => {
976
977
  const {
977
978
  __scopeMenu: n,
@@ -985,61 +986,61 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
985
986
  onPointerDownOutside: f,
986
987
  onFocusOutside: c,
987
988
  onInteractOutside: d,
988
- onDismiss: v,
989
- disableOutsideScroll: M,
990
- ...C
991
- } = e, _ = Te(ue, n), R = it(ue, n), k = st(n), P = or(n), g = Qs(n), [z, Z] = h.useState(null), b = h.useRef(null), j = rt(t, b, _.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 = M ? lo : h.Fragment, te = M ? { as: co, allowPinchZoom: !0 } : void 0, q = (y) => {
989
+ onDismiss: R,
990
+ disableOutsideScroll: C,
991
+ ...g
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 = g().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), ke = di(Me, Q, pe), ye = (Re = ie.find((re) => re.textValue === ke)) == null ? void 0 : Re.ref.current;
994
- (function re($e) {
995
- B.current = $e, window.clearTimeout(D.current), $e !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
996
- })(Q), ye && setTimeout(() => ye.focus());
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;
995
+ (function re(Fe) {
996
+ B.current = Fe, window.clearTimeout(D.current), Fe !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
997
+ })(Q), xe && setTimeout(() => xe.focus());
997
998
  };
998
- h.useEffect(() => () => window.clearTimeout(D.current), []), ro();
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) && hi(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
- Xs,
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
- ao,
1033
+ io,
1033
1034
  {
1034
1035
  asChild: !0,
1035
1036
  trapped: o,
1036
- onMountAutoFocus: A(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
- oo,
1043
+ lo,
1043
1044
  {
1044
1045
  asChild: !0,
1045
1046
  disableOutsidePointerEvents: l,
@@ -1047,52 +1048,52 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
1047
1048
  onPointerDownOutside: f,
1048
1049
  onFocusOutside: c,
1049
1050
  onInteractOutside: d,
1050
- onDismiss: v,
1051
+ onDismiss: R,
1051
1052
  children: /* @__PURE__ */ a.jsx(
1052
- Yo,
1053
+ es,
1053
1054
  {
1054
1055
  asChild: !0,
1055
1056
  ...P,
1056
- dir: R.dir,
1057
+ dir: M.dir,
1057
1058
  orientation: "vertical",
1058
1059
  loop: r,
1059
1060
  currentTabStopId: z,
1060
- onCurrentTabStopIdChange: Z,
1061
- onEntryFocus: A(u, (y) => {
1062
- R.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
- so,
1067
+ co,
1067
1068
  {
1068
1069
  role: "menu",
1069
1070
  "aria-orientation": "vertical",
1070
- "data-state": Dr(_.open),
1071
+ "data-state": Pr(T.open),
1071
1072
  "data-radix-menu-content": "",
1072
- dir: R.dir,
1073
- ...k,
1074
- ...C,
1073
+ dir: M.dir,
1074
+ ...A,
1075
+ ...g,
1075
1076
  ref: j,
1076
- style: { outline: "none", ...C.style },
1077
- onKeyDown: A(C.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));
1077
+ style: { outline: "none", ...g.style },
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 || !zs.includes(y.key)) return;
1082
- y.preventDefault();
1083
- const ye = g().filter((le) => !le.disabled).map((le) => le.ref.current);
1084
- rr.includes(y.key) && ye.reverse(), ci(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: A(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
- onPointerMove: A(
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,68 +1109,68 @@ var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
1108
1109
  );
1109
1110
  }
1110
1111
  );
1111
- ur.displayName = ue;
1112
- var ei = "MenuGroup", Vt = 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
- return /* @__PURE__ */ a.jsx(Ke.div, { role: "group", ...r, ref: t });
1116
+ return /* @__PURE__ */ a.jsx(qe.div, { role: "group", ...r, ref: t });
1116
1117
  }
1117
1118
  );
1118
- Vt.displayName = ei;
1119
- var ti = "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
- return /* @__PURE__ */ a.jsx(Ke.div, { ...r, ref: t });
1123
+ return /* @__PURE__ */ a.jsx(qe.div, { ...r, ref: t });
1123
1124
  }
1124
1125
  );
1125
- dr.displayName = ti;
1126
- var vt = "MenuItem", Mn = "menu.itemSelect", yt = 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(vt, e.__scopeMenu), l = qt(vt, 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, (v) => r == null ? void 0 : r(v), { once: !0 }), uo(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,
1140
1141
  disabled: n,
1141
- onClick: A(e.onClick, f),
1142
+ onClick: I(e.onClick, f),
1142
1143
  onPointerDown: (c) => {
1143
1144
  var d;
1144
1145
  (d = e.onPointerDown) == null || d.call(e, c), m.current = !0;
1145
1146
  },
1146
- onPointerUp: A(e.onPointerUp, (c) => {
1147
+ onPointerUp: I(e.onPointerUp, (c) => {
1147
1148
  var d;
1148
1149
  m.current || (d = c.currentTarget) == null || d.click();
1149
1150
  }),
1150
- onKeyDown: A(e.onKeyDown, (c) => {
1151
+ onKeyDown: I(e.onKeyDown, (c) => {
1151
1152
  const d = l.searchRef.current !== "";
1152
- n || d && c.key === " " || Nt.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1153
+ n || d && c.key === " " || _t.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1153
1154
  })
1154
1155
  }
1155
1156
  );
1156
1157
  }
1157
1158
  );
1158
- yt.displayName = vt;
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(vt, n), l = or(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, v] = 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
- const M = u.current;
1164
- M && v((M.textContent ?? "").trim());
1164
+ const C = u.current;
1165
+ C && R((C.textContent ?? "").trim());
1165
1166
  }, [s.children]), /* @__PURE__ */ a.jsx(
1166
1167
  et.ItemSlot,
1167
1168
  {
1168
1169
  scope: n,
1169
1170
  disabled: r,
1170
1171
  textValue: o ?? d,
1171
- children: /* @__PURE__ */ a.jsx(Xo, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1172
- Ke.div,
1172
+ children: /* @__PURE__ */ a.jsx(ts, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1173
+ qe.div,
1173
1174
  {
1174
1175
  role: "menuitem",
1175
1176
  "data-highlighted": f ? "" : void 0,
@@ -1177,67 +1178,67 @@ var fr = h.forwardRef(
1177
1178
  "data-disabled": r ? "" : void 0,
1178
1179
  ...s,
1179
1180
  ref: m,
1180
- onPointerMove: A(
1181
+ onPointerMove: I(
1181
1182
  e.onPointerMove,
1182
- tt((M) => {
1183
- r ? i.onItemLeave(M) : (i.onItemEnter(M), M.defaultPrevented || M.currentTarget.focus({ preventScroll: !0 }));
1183
+ tt((C) => {
1184
+ r ? i.onItemLeave(C) : (i.onItemEnter(C), C.defaultPrevented || C.currentTarget.focus({ preventScroll: !0 }));
1184
1185
  })
1185
1186
  ),
1186
- onPointerLeave: A(
1187
+ onPointerLeave: I(
1187
1188
  e.onPointerLeave,
1188
- tt((M) => i.onItemLeave(M))
1189
+ tt((C) => i.onItemLeave(C))
1189
1190
  ),
1190
- onFocus: A(e.onFocus, () => c(!0)),
1191
- onBlur: A(e.onBlur, () => c(!1))
1191
+ onFocus: I(e.onFocus, () => c(!0)),
1192
+ onBlur: I(e.onBlur, () => c(!1))
1192
1193
  }
1193
1194
  ) })
1194
1195
  }
1195
1196
  );
1196
1197
  }
1197
- ), ni = "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
- yt,
1201
+ return /* @__PURE__ */ a.jsx(yr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1202
+ St,
1202
1203
  {
1203
1204
  role: "menuitemcheckbox",
1204
- "aria-checked": wt(n) ? "mixed" : n,
1205
+ "aria-checked": xt(n) ? "mixed" : n,
1205
1206
  ...o,
1206
1207
  ref: t,
1207
- "data-state": Yt(n),
1208
- onSelect: A(
1208
+ "data-state": Xt(n),
1209
+ onSelect: I(
1209
1210
  o.onSelect,
1210
- () => r == null ? void 0 : r(wt(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 = ni;
1218
- var pr = "MenuRadioGroup", [ri, ai] = Ae(
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
- const { value: n, onValueChange: r, ...o } = e, s = $t(r);
1225
- return /* @__PURE__ */ a.jsx(ri, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Vt, { ...o, ref: t }) });
1225
+ const { value: n, onValueChange: r, ...o } = e, s = Lt(r);
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 = ai(gr, e.__scopeMenu), s = n === o.value;
1232
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1233
- yt,
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(
1234
+ St,
1234
1235
  {
1235
1236
  role: "menuitemradio",
1236
1237
  "aria-checked": s,
1237
1238
  ...r,
1238
1239
  ref: t,
1239
- "data-state": Yt(s),
1240
- onSelect: A(
1240
+ "data-state": Xt(s),
1241
+ onSelect: I(
1241
1242
  r.onSelect,
1242
1243
  () => {
1243
1244
  var i;
@@ -1249,35 +1250,35 @@ var gr = "MenuRadioItem", vr = h.forwardRef(
1249
1250
  ) });
1250
1251
  }
1251
1252
  );
1252
- vr.displayName = gr;
1253
- var Gt = "MenuItemIndicator", [wr, oi] = Ae(
1254
- Gt,
1253
+ wr.displayName = vr;
1254
+ var Wt = "MenuItemIndicator", [yr, ci] = ke(
1255
+ Wt,
1255
1256
  { checked: !1 }
1256
1257
  ), xr = h.forwardRef(
1257
1258
  (e, t) => {
1258
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = oi(Gt, n);
1259
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = ci(Wt, n);
1259
1260
  return /* @__PURE__ */ a.jsx(
1260
- xt,
1261
+ bt,
1261
1262
  {
1262
- present: r || wt(s.checked) || s.checked === !0,
1263
+ present: r || xt(s.checked) || s.checked === !0,
1263
1264
  children: /* @__PURE__ */ a.jsx(
1264
- Ke.span,
1265
+ qe.span,
1265
1266
  {
1266
1267
  ...o,
1267
1268
  ref: t,
1268
- "data-state": Yt(s.checked)
1269
+ "data-state": Xt(s.checked)
1269
1270
  }
1270
1271
  )
1271
1272
  }
1272
1273
  );
1273
1274
  }
1274
1275
  );
1275
- xr.displayName = Gt;
1276
- var si = "MenuSeparator", yr = h.forwardRef(
1276
+ xr.displayName = Wt;
1277
+ var ui = "MenuSeparator", br = h.forwardRef(
1277
1278
  (e, t) => {
1278
1279
  const { __scopeMenu: n, ...r } = e;
1279
1280
  return /* @__PURE__ */ a.jsx(
1280
- Ke.div,
1281
+ qe.div,
1281
1282
  {
1282
1283
  role: "separator",
1283
1284
  "aria-orientation": "horizontal",
@@ -1287,18 +1288,18 @@ var si = "MenuSeparator", yr = h.forwardRef(
1287
1288
  );
1288
1289
  }
1289
1290
  );
1290
- yr.displayName = si;
1291
- var ii = "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(io, { ...o, ...r, ref: t });
1295
+ return /* @__PURE__ */ a.jsx(uo, { ...o, ...r, ref: t });
1295
1296
  }
1296
1297
  );
1297
- br.displayName = ii;
1298
- var Wt = "MenuSub", [li, Sr] = Ae(Wt), Cr = (e) => {
1299
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(Wt, t), i = st(t), [l, u] = h.useState(null), [m, f] = h.useState(null), c = $t(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,
1298
+ Sr.displayName = di;
1299
+ var Yt = "MenuSub", [fi, Cr] = ke(Yt), Mr = (e) => {
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);
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 Wt = "MenuSub", [li, Sr] = Ae(Wt), Cr = (e) => {
1306
1307
  content: m,
1307
1308
  onContentChange: f,
1308
1309
  children: /* @__PURE__ */ a.jsx(
1309
- li,
1310
+ fi,
1310
1311
  {
1311
1312
  scope: t,
1312
1313
  contentId: gt(),
@@ -1319,10 +1320,10 @@ var Wt = "MenuSub", [li, Sr] = Ae(Wt), Cr = (e) => {
1319
1320
  }
1320
1321
  ) });
1321
1322
  };
1322
- Cr.displayName = Wt;
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(() => {
@@ -1330,21 +1331,21 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1330
1331
  return () => {
1331
1332
  window.clearTimeout(c), u(null);
1332
1333
  };
1333
- }, [l, u]), /* @__PURE__ */ a.jsx(zt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1334
- fr,
1334
+ }, [l, u]), /* @__PURE__ */ a.jsx(Kt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
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));
1346
1347
  },
1347
- onPointerMove: A(
1348
+ onPointerMove: I(
1348
1349
  e.onPointerMove,
1349
1350
  tt((c) => {
1350
1351
  s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
@@ -1352,25 +1353,25 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1352
1353
  }, 100));
1353
1354
  })
1354
1355
  ),
1355
- onPointerLeave: A(
1356
+ onPointerLeave: I(
1356
1357
  e.onPointerLeave,
1357
1358
  tt((c) => {
1358
- var v, M;
1359
+ var R, C;
1359
1360
  f();
1360
- const d = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1361
+ const d = (R = n.content) == null ? void 0 : R.getBoundingClientRect();
1361
1362
  if (d) {
1362
- const C = (M = n.content) == null ? void 0 : M.dataset.side, _ = C === "right", R = _ ? -5 : 5, k = d[_ ? "left" : "right"], P = d[_ ? "right" : "left"];
1363
+ const g = (C = n.content) == null ? void 0 : C.dataset.side, T = g === "right", M = T ? -5 : 5, A = d[T ? "left" : "right"], P = d[T ? "right" : "left"];
1363
1364
  s.onPointerGraceIntentChange({
1364
1365
  area: [
1365
1366
  // Apply a bleed on clientX to ensure that our exit point is
1366
1367
  // consistently within polygon bounds
1367
- { x: c.clientX + R, y: c.clientY },
1368
- { x: k, y: d.top },
1368
+ { x: c.clientX + M, y: c.clientY },
1369
+ { x: A, y: d.top },
1369
1370
  { x: P, y: d.top },
1370
1371
  { x: P, y: d.bottom },
1371
- { x: k, y: d.bottom }
1372
+ { x: A, y: d.bottom }
1372
1373
  ],
1373
- side: C
1374
+ side: g
1374
1375
  }), window.clearTimeout(l.current), l.current = window.setTimeout(
1375
1376
  () => s.onPointerGraceIntentChange(null),
1376
1377
  300
@@ -1381,21 +1382,21 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1381
1382
  }
1382
1383
  })
1383
1384
  ),
1384
- onKeyDown: A(e.onKeyDown, (c) => {
1385
- var v;
1385
+ onKeyDown: I(e.onKeyDown, (c) => {
1386
+ var R;
1386
1387
  const d = s.searchRef.current !== "";
1387
- e.disabled || d && c.key === " " || Ks[r.dir].includes(c.key) && (n.onOpenChange(!0), (v = n.content) == null || v.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
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(xt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1398
- Qt,
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);
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(
1399
+ Vt,
1399
1400
  {
1400
1401
  id: l.contentId,
1401
1402
  "aria-labelledby": l.triggerId,
@@ -1411,49 +1412,49 @@ var Rr = "MenuSubContent", Er = h.forwardRef(
1411
1412
  i.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), f.preventDefault();
1412
1413
  },
1413
1414
  onCloseAutoFocus: (f) => f.preventDefault(),
1414
- onFocusOutside: A(e.onFocusOutside, (f) => {
1415
+ onFocusOutside: I(e.onFocusOutside, (f) => {
1415
1416
  f.target !== l.trigger && s.onOpenChange(!1);
1416
1417
  }),
1417
- onEscapeKeyDown: A(e.onEscapeKeyDown, (f) => {
1418
+ onEscapeKeyDown: I(e.onEscapeKeyDown, (f) => {
1418
1419
  i.onClose(), f.preventDefault();
1419
1420
  }),
1420
- onKeyDown: A(e.onKeyDown, (f) => {
1421
- var v;
1422
- const c = f.currentTarget.contains(f.target), d = qs[i.dir].includes(f.key);
1423
- c && d && (s.onOpenChange(!1), (v = l.trigger) == null || v.focus(), f.preventDefault());
1421
+ onKeyDown: I(e.onKeyDown, (f) => {
1422
+ var R;
1423
+ const c = f.currentTarget.contains(f.target), d = Ws[i.dir].includes(f.key);
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 wt(e) {
1434
+ function xt(e) {
1434
1435
  return e === "indeterminate";
1435
1436
  }
1436
- function Yt(e) {
1437
- return wt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1437
+ function Xt(e) {
1438
+ return xt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1438
1439
  }
1439
- function ci(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 ui(e, t) {
1445
+ function pi(e, t) {
1445
1446
  return e.map((n, r) => e[(t + r) % e.length]);
1446
1447
  }
1447
- function di(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 = ui(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 fi(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 fi(e, t) {
1462
1463
  }
1463
1464
  return o;
1464
1465
  }
1465
- function hi(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 fi(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 pi = ir, mi = zt, gi = cr, vi = ur, wi = Vt, xi = dr, yi = yt, bi = hr, Si = mr, Ci = vr, Mi = xr, Ri = yr, Ei = br, Di = Cr, Pi = Mr, ji = Er, Xt = "DropdownMenu", [Ni, uc] = kn(
1474
- Xt,
1475
- [ar]
1476
- ), J = ar(), [Ti, Pr] = Ni(Xt), 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 pi = ir, mi = zt, gi = cr, vi = ur, wi = Vt, xi = dr, yi = yt, bi = hr, Si =
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
- Ti,
1492
+ Ai,
1492
1493
  {
1493
1494
  scope: t,
1494
1495
  triggerId: gt(),
@@ -1498,16 +1499,16 @@ var pi = ir, mi = zt, gi = cr, vi = ur, wi = Vt, xi = dr, yi = yt, bi = hr, Si =
1498
1499
  onOpenChange: c,
1499
1500
  onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1500
1501
  modal: l,
1501
- children: /* @__PURE__ */ a.jsx(pi, { ...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 = Xt;
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(mi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1510
- Ke.button,
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(
1511
+ qe.button,
1511
1512
  {
1512
1513
  type: "button",
1513
1514
  id: s.triggerId,
@@ -1518,39 +1519,39 @@ 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
- onPointerDown: A(e.onPointerDown, (l) => {
1522
+ ref: Ln(t, s.triggerRef),
1523
+ onPointerDown: I(e.onPointerDown, (l) => {
1523
1524
  !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1524
1525
  }),
1525
- onKeyDown: A(e.onKeyDown, (l) => {
1526
+ onKeyDown: I(e.onKeyDown, (l) => {
1526
1527
  r || (["Enter", " "].includes(l.key) && s.onOpenToggle(), l.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
1527
1528
  })
1528
1529
  }
1529
1530
  ) });
1530
1531
  }
1531
1532
  );
1532
- Tr.displayName = Nr;
1533
- var _i = "DropdownMenuPortal", _r = (e) => {
1534
- const { __scopeDropdownMenu: t, ...n } = e, r = J(t);
1535
- return /* @__PURE__ */ a.jsx(gi, { ...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 = _i;
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
- vi,
1543
+ bi,
1543
1544
  {
1544
1545
  id: o.contentId,
1545
1546
  "aria-labelledby": o.triggerId,
1546
1547
  ...s,
1547
1548
  ...r,
1548
1549
  ref: t,
1549
- onCloseAutoFocus: A(e.onCloseAutoFocus, (l) => {
1550
+ onCloseAutoFocus: I(e.onCloseAutoFocus, (l) => {
1550
1551
  var u;
1551
1552
  i.current || (u = o.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1552
1553
  }),
1553
- onInteractOutside: A(e.onInteractOutside, (l) => {
1554
+ onInteractOutside: I(e.onInteractOutside, (l) => {
1554
1555
  const u = l.detail.originalEvent, m = u.button === 0 && u.ctrlKey === !0, f = u.button === 2 || m;
1555
1556
  (!o.modal || f) && (i.current = !0);
1556
1557
  }),
@@ -1566,76 +1567,76 @@ var Or = "DropdownMenuContent", Ir = h.forwardRef(
1566
1567
  );
1567
1568
  }
1568
1569
  );
1569
- Ir.displayName = Or;
1570
- var Oi = "DropdownMenuGroup", Ii = 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(wi, { ...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
- Ii.displayName = Oi;
1577
- var Ai = "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(xi, { ...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 = Ai;
1584
- var ki = "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(yi, { ...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 = ki;
1591
- var $i = "DropdownMenuCheckboxItem", $r = h.forwardRef((e, t) => {
1592
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1593
- return /* @__PURE__ */ a.jsx(bi, { ...o, ...r, ref: t });
1591
+ $r.displayName = Bi;
1592
+ var Hi = "DropdownMenuCheckboxItem", Fr = h.forwardRef((e, t) => {
1593
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1594
+ return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
1594
1595
  });
1595
- $r.displayName = $i;
1596
- var Fi = "DropdownMenuRadioGroup", Li = h.forwardRef((e, t) => {
1597
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1598
- return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1596
+ Fr.displayName = Hi;
1597
+ var Ui = "DropdownMenuRadioGroup", zi = h.forwardRef((e, t) => {
1598
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1599
+ return /* @__PURE__ */ a.jsx(Ei, { ...o, ...r, ref: t });
1599
1600
  });
1600
- Li.displayName = Fi;
1601
- var Bi = "DropdownMenuRadioItem", Fr = h.forwardRef((e, t) => {
1602
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1603
- return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1601
+ zi.displayName = Ui;
1602
+ var Ki = "DropdownMenuRadioItem", Lr = h.forwardRef((e, t) => {
1603
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1604
+ return /* @__PURE__ */ a.jsx(Di, { ...o, ...r, ref: t });
1604
1605
  });
1605
- Fr.displayName = Bi;
1606
- var Hi = "DropdownMenuItemIndicator", Lr = h.forwardRef((e, t) => {
1607
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1608
- return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
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 });
1609
1610
  });
1610
- Lr.displayName = Hi;
1611
- var Ui = "DropdownMenuSeparator", Br = h.forwardRef((e, t) => {
1612
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1613
- return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
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 });
1614
1615
  });
1615
- Br.displayName = Ui;
1616
- var zi = "DropdownMenuArrow", Ki = h.forwardRef(
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(Ei, { ...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
- Ki.displayName = zi;
1623
- var qi = (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(Di, { ...i, open: l, onOpenChange: u, children: n });
1630
- }, Qi = "DropdownMenuSubTrigger", Hr = h.forwardRef((e, t) => {
1631
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1632
- return /* @__PURE__ */ a.jsx(Pi, { ...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 = Qi;
1635
- var Vi = "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
- ji,
1639
+ Oi,
1639
1640
  {
1640
1641
  ...o,
1641
1642
  ...r,
@@ -1651,13 +1652,13 @@ var Vi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1651
1652
  }
1652
1653
  );
1653
1654
  });
1654
- Ur.displayName = Vi;
1655
- var Gi = jr, Wi = Tr, zr = _r, Kr = Ir, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Yi = qi, Xr = Hr, Jr = Ur;
1656
- const Xi = Gi, Ji = Wi, Zi = zr, el = Yi, 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
- className: O(
1661
+ className: F(
1661
1662
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1662
1663
  t && "pl-8",
1663
1664
  e
@@ -1665,29 +1666,29 @@ const Xi = Gi, Ji = Wi, Zi = zr, el = Yi, 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,
1677
- className: O(
1678
+ className: F(
1678
1679
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1679
1680
  e
1680
1681
  ),
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,
1690
- className: O(
1691
+ className: F(
1691
1692
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1692
1693
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1693
1694
  e
@@ -1695,12 +1696,12 @@ 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
- className: O(
1704
+ className: F(
1704
1705
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1705
1706
  t && "pl-8",
1706
1707
  e
@@ -1708,45 +1709,45 @@ 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 tl = 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
- className: O(
1717
+ className: F(
1717
1718
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1718
1719
  e
1719
1720
  ),
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(Ho, { 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
- tl.displayName = Vr.displayName;
1729
- const nl = 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
- className: O(
1734
+ className: F(
1734
1735
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1735
1736
  e
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(Uo, { 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
- nl.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
- className: O(
1750
+ className: F(
1750
1751
  "px-2 py-1.5 text-sm font-semibold",
1751
1752
  t && "pl-8",
1752
1753
  e
@@ -1754,31 +1755,31 @@ 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
- className: O("-mx-1 my-1 h-px bg-muted", e),
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
- }, rl = () => {
1774
- const { page: e } = qe(), [t, n] = Ie(!0);
1774
+ }, il = () => {
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
  {
1781
- className: O(
1782
+ className: F(
1782
1783
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1783
1784
  r
1784
1785
  ),
@@ -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(zo, { size: 16 })
1795
+ children: /* @__PURE__ */ a.jsx(Vo, { size: 16 })
1795
1796
  }
1796
1797
  )
1797
1798
  ]
1798
1799
  }
1799
1800
  );
1800
1801
  };
1801
- function al(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
- al(`[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 ol() {
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 sl() {
1868
+ function ul() {
1868
1869
  return Jt(/^Mac/);
1869
1870
  }
1870
- function il() {
1871
+ function dl() {
1871
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 ll() {
1877
+ function fl() {
1877
1878
  return Jt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1878
- sl() && navigator.maxTouchPoints > 1;
1879
+ ul() && navigator.maxTouchPoints > 1;
1879
1880
  }
1880
- function sa() {
1881
- return il() || ll();
1881
+ function ia() {
1882
+ return dl() || fl();
1882
1883
  }
1883
1884
  function Jt(e) {
1884
1885
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1885
1886
  }
1886
- const cl = 24, ul = typeof window < "u" ? So : 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
- const Mt = typeof document < "u" && window.visualViewport;
1894
- function Pn(e) {
1894
+ const Et = typeof document < "u" && window.visualViewport;
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 dl = /* @__PURE__ */ new Set([
1904
+ const ml = /* @__PURE__ */ new Set([
1904
1905
  "checkbox",
1905
1906
  "radio",
1906
1907
  "range",
@@ -1911,47 +1912,47 @@ const dl = /* @__PURE__ */ new Set([
1911
1912
  "submit",
1912
1913
  "reset"
1913
1914
  ]);
1914
- let ht = 0, Rt;
1915
- function fl(e = {}) {
1915
+ let ht = 0, Dt;
1916
+ function gl(e = {}) {
1916
1917
  let { isDisabled: t } = e;
1917
- ul(() => {
1918
+ pl(() => {
1918
1919
  if (!t)
1919
- return ht++, ht === 1 && sa() && (Rt = hl()), () => {
1920
- ht--, ht === 0 && (Rt == null || Rt());
1920
+ return ht++, ht === 1 && ia() && (Dt = vl()), () => {
1921
+ ht--, ht === 0 && (Dt == null || Dt());
1921
1922
  };
1922
1923
  }, [
1923
1924
  t
1924
1925
  ]);
1925
1926
  }
1926
- function hl() {
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();
1932
1933
  return;
1933
1934
  }
1934
- let d = c.changedTouches[0].pageY, v = e.scrollTop, M = e.scrollHeight - e.clientHeight;
1935
- M !== 0 && ((v <= 0 && d > t || v >= M && d < t) && c.preventDefault(), t = d);
1935
+ let d = c.changedTouches[0].pageY, R = e.scrollTop, C = e.scrollHeight - e.clientHeight;
1936
+ C !== 0 && ((R <= 0 && d > t || R >= C && d < t) && c.preventDefault(), t = d);
1936
1937
  }, o = (c) => {
1937
1938
  let d = c.target;
1938
- Tt(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1939
+ Ot(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1939
1940
  d.style.transform = "";
1940
1941
  }));
1941
1942
  }, s = (c) => {
1942
1943
  let d = c.target;
1943
- Tt(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1944
- d.style.transform = "", Mt && (Mt.height < window.innerHeight ? requestAnimationFrame(() => {
1945
- jn(d);
1946
- }) : Mt.addEventListener("resize", () => jn(d), {
1944
+ Ot(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1945
+ d.style.transform = "", Et && (Et.height < window.innerHeight ? requestAnimationFrame(() => {
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(pl(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 hl() {
1965
1966
  m(), f(), window.scrollTo(l, u);
1966
1967
  };
1967
1968
  }
1968
- function pl(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 + cl;
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
- function Tt(e) {
1992
- return e instanceof HTMLInputElement && !dl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1992
+ function Ot(e) {
1993
+ return e instanceof HTMLInputElement && !ml.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1993
1994
  }
1994
- function ml(e, t) {
1995
+ function yl(e, t) {
1995
1996
  typeof e == "function" ? e(t) : e != null && (e.current = t);
1996
1997
  }
1997
- function gl(...e) {
1998
- return (t) => e.forEach((n) => ml(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(gl(...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 vl(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,10 +2040,10 @@ 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 wl(e) {
2043
+ function Sl(e) {
2043
2044
  return 8 * (Math.log(e + 1) - 2);
2044
2045
  }
2045
- function Et(e, t) {
2046
+ function Pt(e, t) {
2046
2047
  if (!e) return () => {
2047
2048
  };
2048
2049
  const n = e.style.cssText;
@@ -2050,13 +2051,13 @@ function Et(e, t) {
2050
2051
  e.style.cssText = n;
2051
2052
  };
2052
2053
  }
2053
- function xl(...e) {
2054
+ function Cl(...e) {
2054
2055
  return (...t) => {
2055
2056
  for (const n of e)
2056
2057
  typeof n == "function" && n(...t);
2057
2058
  };
2058
2059
  }
2059
- const $ = {
2060
+ const k = {
2060
2061
  DURATION: 0.5,
2061
2062
  EASE: [
2062
2063
  0.32,
@@ -2064,15 +2065,15 @@ const $ = {
2064
2065
  0,
2065
2066
  1
2066
2067
  ]
2067
- }, ua = 0.4, yl = 0.25, bl = 100, da = 8, Oe = 16, _t = 26, Dt = "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 Sl({ 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 Sl({ 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] = Sl({
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,34 +2104,34 @@ function ha({ prop: e, defaultProp: t, onChange: n = () => {
2103
2104
  u
2104
2105
  ];
2105
2106
  }
2106
- function Cl({ 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
2111
- }), [d, v] = p.useState(typeof window < "u" ? {
2112
+ }), [d, R] = p.useState(typeof window < "u" ? {
2112
2113
  innerWidth: window.innerWidth,
2113
2114
  innerHeight: window.innerHeight
2114
2115
  } : void 0);
2115
2116
  p.useEffect(() => {
2116
2117
  function b() {
2117
- v({
2118
+ R({
2118
2119
  innerWidth: window.innerWidth,
2119
2120
  innerHeight: window.innerHeight
2120
2121
  });
2121
2122
  }
2122
2123
  return window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
2123
2124
  }, []);
2124
- const M = p.useMemo(() => f === (n == null ? void 0 : n[n.length - 1]) || null, [
2125
+ const C = p.useMemo(() => f === (n == null ? void 0 : n[n.length - 1]) || null, [
2125
2126
  n,
2126
2127
  f
2127
- ]), C = p.useMemo(() => {
2128
+ ]), g = p.useMemo(() => {
2128
2129
  var b;
2129
2130
  return (b = n == null ? void 0 : n.findIndex((j) => j === f)) != null ? b : null;
2130
2131
  }, [
2131
2132
  n,
2132
2133
  f
2133
- ]), _ = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === f || !n, R = p.useMemo(() => {
2134
+ ]), T = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === f || !n, M = p.useMemo(() => {
2134
2135
  const b = u ? {
2135
2136
  width: u.getBoundingClientRect().width,
2136
2137
  height: u.getBoundingClientRect().height
@@ -2146,8 +2147,8 @@ function Cl({ 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;
@@ -2156,26 +2157,26 @@ function Cl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2156
2157
  n,
2157
2158
  d,
2158
2159
  u
2159
- ]), k = p.useMemo(() => C !== null ? R == null ? void 0 : R[C] : null, [
2160
- R,
2161
- C
2160
+ ]), A = p.useMemo(() => g !== null ? M == null ? void 0 : M[g] : null, [
2161
+ M,
2162
+ g
2162
2163
  ]), P = p.useCallback((b) => {
2163
2164
  var j;
2164
- const D = (j = R == null ? void 0 : R.findIndex((B) => B === b)) != null ? j : null;
2165
+ const D = (j = M == null ? void 0 : M.findIndex((B) => B === b)) != null ? j : null;
2165
2166
  i(D), H(r.current, {
2166
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2167
+ transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2167
2168
  transform: U(l) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
2168
- }), R && D !== R.length - 1 && s !== void 0 && D !== s && D < s ? H(o.current, {
2169
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2169
+ }), M && D !== M.length - 1 && s !== void 0 && D !== s && D < s ? H(o.current, {
2170
+ transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2170
2171
  opacity: "0"
2171
2172
  }) : H(o.current, {
2172
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2173
+ transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2173
2174
  opacity: "1"
2174
2175
  }), c(n == null ? void 0 : n[Math.max(D, 0)]);
2175
2176
  }, [
2176
2177
  r.current,
2177
2178
  n,
2178
- R,
2179
+ M,
2179
2180
  s,
2180
2181
  o,
2181
2182
  c
@@ -2184,92 +2185,92 @@ function Cl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2184
2185
  if (f || e) {
2185
2186
  var b;
2186
2187
  const j = (b = n == null ? void 0 : n.findIndex((D) => D === e || D === f)) != null ? b : -1;
2187
- R && j !== -1 && typeof R[j] == "number" && P(R[j]);
2188
+ M && j !== -1 && typeof M[j] == "number" && P(M[j]);
2188
2189
  }
2189
2190
  }, [
2190
2191
  f,
2191
2192
  e,
2192
2193
  n,
2193
- R,
2194
+ M,
2194
2195
  P
2195
2196
  ]);
2196
- function g({ draggedDistance: b, closeDrawer: j, velocity: D, dismissible: B }) {
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" ? (k ?? 0) - b : (k ?? 0) + b, W = C === s - 1, x = C === 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
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`
2201
+ transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2201
2202
  }), !m && D > 2 && !V) {
2202
- B ? j() : P(R[0]);
2203
+ B ? j() : P(M[0]);
2203
2204
  return;
2204
2205
  }
2205
- if (!m && D > 2 && V && R && n) {
2206
- P(R[n.length - 1]);
2206
+ if (!m && D > 2 && V && M && n) {
2207
+ P(M[n.length - 1]);
2207
2208
  return;
2208
2209
  }
2209
- const G = R == null ? void 0 : R.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) {
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;
2211
+ if (D > da && Math.abs(b) < te * 0.4) {
2211
2212
  const q = V ? 1 : -1;
2212
- if (q > 0 && M && n) {
2213
- P(R[n.length - 1]);
2213
+ if (q > 0 && C && n) {
2214
+ P(M[n.length - 1]);
2214
2215
  return;
2215
2216
  }
2216
- if (x && q < 0 && B && j(), C === null) return;
2217
- P(R[C + q]);
2217
+ if (y && q < 0 && B && j(), g === null) return;
2218
+ P(M[g + q]);
2218
2219
  return;
2219
2220
  }
2220
2221
  P(G);
2221
2222
  }
2222
2223
  function z({ draggedDistance: b }) {
2223
- if (k === null) return;
2224
- const j = l === "bottom" || l === "right" ? k - b : k + b;
2225
- (l === "bottom" || l === "right") && j < R[R.length - 1] || (l === "top" || l === "left") && j > R[R.length - 1] || H(r.current, {
2224
+ if (A === null) return;
2225
+ const j = l === "bottom" || l === "right" ? A - b : A + b;
2226
+ (l === "bottom" || l === "right") && j < M[M.length - 1] || (l === "top" || l === "left") && j > M[M.length - 1] || H(r.current, {
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
- if (!n || typeof C != "number" || !R || s === void 0) return null;
2231
- const D = C === s - 1;
2232
- if (C >= s && j)
2230
+ function J(b, j) {
2231
+ if (!n || typeof g != "number" || !M || s === void 0) return null;
2232
+ const D = g === s - 1;
2233
+ if (g >= s && j)
2233
2234
  return 0;
2234
2235
  if (D && !j) return 1;
2235
- if (!_ && !D) return null;
2236
- const K = D ? C + 1 : C - 1, W = D ? R[K] - R[K - 1] : R[K + 1] - R[K], x = b / Math.abs(W);
2237
- return D ? 1 - x : x;
2236
+ if (!T && !D) return null;
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
- isLastSnapPoint: M,
2241
+ isLastSnapPoint: C,
2241
2242
  activeSnapPoint: f,
2242
- shouldFade: _,
2243
- getPercentageDragged: Z,
2243
+ shouldFade: T,
2244
+ getPercentageDragged: J,
2244
2245
  setActiveSnapPoint: c,
2245
- activeSnapPointIndex: C,
2246
- onRelease: g,
2246
+ activeSnapPointIndex: g,
2247
+ onRelease: v,
2247
2248
  onDrag: z,
2248
- snapPointsOffset: R
2249
+ snapPointsOffset: M
2249
2250
  };
2250
2251
  }
2251
- const Ml = () => () => {
2252
+ const Pl = () => () => {
2252
2253
  };
2253
- function Rl() {
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
- return (window.innerWidth - _t) / window.innerWidth;
2257
+ return (window.innerWidth - It) / window.innerWidth;
2257
2258
  }
2258
2259
  p.useEffect(() => {
2259
2260
  if (t && n) {
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
- xl(r && !o ? Et(document.body, {
2264
+ Cl(r && !o ? Pt(document.body, {
2264
2265
  background: "black"
2265
- }) : Ml, Et(u, {
2266
+ }) : Pl, Pt(u, {
2266
2267
  transformOrigin: U(e) ? "top" : "left",
2267
2268
  transitionProperty: "transform, border-radius",
2268
- transitionDuration: `${$.DURATION}s`,
2269
- transitionTimingFunction: `cubic-bezier(${$.EASE.join(",")})`
2269
+ transitionDuration: `${k.DURATION}s`,
2270
+ transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2270
2271
  }));
2271
- const m = Et(u, {
2272
- borderRadius: `${da}px`,
2272
+ const m = Pt(u, {
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)`
@@ -2280,7 +2281,7 @@ function Rl() {
2280
2281
  return () => {
2281
2282
  m(), s.current = window.setTimeout(() => {
2282
2283
  i ? document.body.style.background = i : document.body.style.removeProperty("background");
2283
- }, $.DURATION * 1e3);
2284
+ }, k.DURATION * 1e3);
2284
2285
  };
2285
2286
  }
2286
2287
  }, [
@@ -2290,9 +2291,9 @@ function Rl() {
2290
2291
  ]);
2291
2292
  }
2292
2293
  let Ye = null;
2293
- function El({ 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,
@@ -2307,14 +2308,14 @@ function El({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
2307
2308
  right: "0px",
2308
2309
  height: "auto"
2309
2310
  }), window.setTimeout(() => window.requestAnimationFrame(() => {
2310
- const v = d - window.innerHeight;
2311
- v && u.current >= d && (document.body.style.top = `${-(u.current + v)}px`);
2311
+ const R = d - window.innerHeight;
2312
+ R && u.current >= d && (document.body.style.top = `${-(u.current + R)}px`);
2312
2313
  }), 300);
2313
2314
  }
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,67 +2359,67 @@ function El({ 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 = yl, scrollLockTimeout: m = bl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: v, setActiveSnapPoint: M, fixed: C, modal: _ = !0, onClose: R, nested: k, noBodyStyles: P = !1, direction: g = "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) => {
2367
- t == null || t(S), !S && !k && _a(), setTimeout(() => {
2368
+ t == null || t(S), !S && !A && Oa(), setTimeout(() => {
2368
2369
  B == null || B(S);
2369
- }, $.DURATION * 1e3), S && !_ && typeof window < "u" && window.requestAnimationFrame(() => {
2370
+ }, k.DURATION * 1e3), S && !T && typeof window < "u" && window.requestAnimationFrame(() => {
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), ke = p.useRef(null), ye = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), $e = p.useRef(0), Fe = p.useRef(!1), nn = p.useRef(!z), rn = p.useRef(0), E = p.useRef(null), an = p.useRef(((x = E.current) == null ? void 0 : x.getBoundingClientRect().height) || 0), on = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), bt = p.useRef(0), Da = 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: Pa, activeSnapPointIndex: Le, setActiveSnapPoint: sn, onRelease: ja, snapPointsOffset: Ve, onDrag: Na, shouldFade: ln, getPercentageDragged: Ta } = Cl({
2376
+ }, []), { activeSnapPoint: ja, activeSnapPointIndex: Be, setActiveSnapPoint: cn, onRelease: Na, snapPointsOffset: Ve, onDrag: Ta, shouldFade: un, getPercentageDragged: _a } = Dl({
2376
2377
  snapPoints: s,
2377
- activeSnapPointProp: v,
2378
- setActiveSnapPointProp: M,
2378
+ activeSnapPointProp: R,
2379
+ setActiveSnapPointProp: C,
2379
2380
  drawerRef: E,
2380
2381
  fadeFromIndex: d,
2381
2382
  overlayRef: pe,
2382
- onSnapPointChange: Da,
2383
- direction: g,
2383
+ onSnapPointChange: Pa,
2384
+ direction: v,
2384
2385
  container: K,
2385
2386
  snapToSequentialPoint: b
2386
2387
  });
2387
- fl({
2388
- isDisabled: !G || y || !_ || ie || !q || !D || !Z
2388
+ gl({
2389
+ isDisabled: !G || x || !T || ie || !q || !D || !J
2389
2390
  });
2390
- const { restorePositionSetting: _a } = El({
2391
+ const { restorePositionSetting: Oa } = Nl({
2391
2392
  isOpen: G,
2392
- modal: _,
2393
- nested: k ?? !1,
2393
+ modal: T,
2394
+ nested: A ?? !1,
2394
2395
  hasBeenOpened: q,
2395
2396
  preventScrollRestoration: j,
2396
2397
  noBodyStyles: P
2397
2398
  });
2398
2399
  function lt() {
2399
- return (window.innerWidth - _t) / window.innerWidth;
2400
+ return (window.innerWidth - It) / window.innerWidth;
2400
2401
  }
2401
- function Oa(S) {
2402
- var T, I;
2403
- !f && !s || E.current && !E.current.contains(S.target) || (an.current = ((T = E.current) == null ? void 0 : T.getBoundingClientRect().height) || 0, on.current = ((I = E.current) == null ? void 0 : I.getBoundingClientRect().width) || 0, Q(!0), ke.current = /* @__PURE__ */ new Date(), sa() && window.addEventListener("touchend", () => Re.current = !1, {
2402
+ function Ia(S) {
2403
+ var _, O;
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
- }), S.target.setPointerCapture(S.pointerId), $e.current = U(g) ? S.pageY : S.pageX);
2406
+ }), S.target.setPointerCapture(S.pointerId), Fe.current = U(v) ? S.pageY : S.pageX);
2406
2407
  }
2407
- function cn(S, T) {
2408
- var I;
2408
+ function dn(S, _) {
2409
+ var O;
2409
2410
  let N = S;
2410
- const L = (I = window.getSelection()) == null ? void 0 : I.toString(), ne = E.current ? pt(E.current, g) : null, ee = /* @__PURE__ */ new Date();
2411
+ const L = (O = window.getSelection()) == null ? void 0 : O.toString(), ne = E.current ? pt(E.current, v) : null, ee = /* @__PURE__ */ new Date();
2411
2412
  if (N.tagName === "SELECT" || N.hasAttribute("data-vaul-no-drag") || N.closest("[data-vaul-no-drag]"))
2412
2413
  return !1;
2413
- if (g === "right" || g === "left")
2414
+ if (v === "right" || v === "left")
2414
2415
  return !0;
2415
2416
  if (Me.current && ee.getTime() - Me.current.getTime() < 500)
2416
2417
  return !1;
2417
- if (ne !== null && (g === "bottom" ? ne > 0 : ne < 0))
2418
+ if (ne !== null && (v === "bottom" ? ne > 0 : ne < 0))
2418
2419
  return !0;
2419
2420
  if (L && L.length > 0)
2420
2421
  return !1;
2421
- if (le.current && ee.getTime() - le.current.getTime() < m && ne === 0 || T)
2422
+ if (le.current && ee.getTime() - le.current.getTime() < m && ne === 0 || _)
2422
2423
  return le.current = ee, !1;
2423
2424
  for (; N; ) {
2424
2425
  if (N.scrollHeight > N.clientHeight) {
@@ -2431,102 +2432,102 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2431
2432
  }
2432
2433
  return !0;
2433
2434
  }
2434
- function Ia(S) {
2435
- if (E.current && y) {
2436
- const T = g === "bottom" || g === "right" ? 1 : -1, I = ($e.current - (U(g) ? S.pageY : S.pageX)) * T, N = I > 0, L = s && !f && !N;
2437
- if (L && Le === 0) return;
2438
- const ne = Math.abs(I), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = g === "bottom" || g === "top" ? an.current : on.current;
2435
+ function Aa(S) {
2436
+ if (E.current && x) {
2437
+ const _ = v === "bottom" || v === "right" ? 1 : -1, O = (Fe.current - (U(v) ? S.pageY : S.pageX)) * _, N = O > 0, L = s && !f && !N;
2438
+ if (L && Be === 0) return;
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
- const _e = Ta(ne, N);
2441
- if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !cn(S.target, N)) return;
2442
- if (E.current.classList.add(Dt), Re.current = !0, H(E.current, {
2441
+ const _e = _a(ne, N);
2442
+ if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !dn(S.target, N)) return;
2443
+ if (E.current.classList.add(jt), Re.current = !0, H(E.current, {
2443
2444
  transition: "none"
2444
2445
  }), H(pe.current, {
2445
2446
  transition: "none"
2446
- }), s && Na({
2447
- draggedDistance: I
2447
+ }), s && Ta({
2448
+ draggedDistance: O
2448
2449
  }), N && !s) {
2449
- const me = wl(I), ct = Math.min(me * -1, 0) * T;
2450
+ const me = Sl(O), ct = Math.min(me * -1, 0) * _;
2450
2451
  H(E.current, {
2451
- transform: U(g) ? `translate3d(0, ${ct}px, 0)` : `translate3d(${ct}px, 0, 0)`
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 ((ln || d && Le === 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, dn = 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(g) ? `scale(${me}) translate3d(0, ${dn}px, 0)` : `scale(${me}) translate3d(${dn}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
  }
2467
2468
  if (!s) {
2468
- const me = ne * T;
2469
+ const me = ne * _;
2469
2470
  H(E.current, {
2470
- transform: U(g) ? `translate3d(0, ${me}px, 0)` : `translate3d(${me}px, 0, 0)`
2471
+ transform: U(v) ? `translate3d(0, ${me}px, 0)` : `translate3d(${me}px, 0, 0)`
2471
2472
  });
2472
2473
  }
2473
2474
  }
2474
2475
  }
2475
2476
  p.useEffect(() => {
2476
2477
  window.requestAnimationFrame(() => {
2477
- nn.current = !0;
2478
+ an.current = !0;
2478
2479
  });
2479
2480
  }, []), p.useEffect(() => {
2480
2481
  var S;
2481
- function T() {
2482
+ function _() {
2482
2483
  if (!E.current || !D) return;
2483
- const I = document.activeElement;
2484
- if (Tt(I) || Fe.current) {
2484
+ const O = document.activeElement;
2485
+ if (Ot(O) || Le.current) {
2485
2486
  var N;
2486
2487
  const L = ((N = window.visualViewport) == null ? void 0 : N.height) || 0, ne = window.innerHeight;
2487
2488
  let ee = ne - L;
2488
2489
  const Ee = E.current.getBoundingClientRect().height || 0, fe = Ee > ne * 0.8;
2489
- bt.current || (bt.current = Ee);
2490
+ Ct.current || (Ct.current = Ee);
2490
2491
  const _e = E.current.getBoundingClientRect().top;
2491
- if (Math.abs(rn.current - ee) > 60 && (Fe.current = !Fe.current), s && s.length > 0 && Ve && Le) {
2492
- const De = Ve[Le] || 0;
2492
+ if (Math.abs(on.current - ee) > 60 && (Le.current = !Le.current), s && s.length > 0 && Ve && Be) {
2493
+ const De = Ve[Be] || 0;
2493
2494
  ee += De;
2494
2495
  }
2495
- if (rn.current = ee, Ee > L || Fe.current) {
2496
+ if (on.current = ee, Ee > L || Le.current) {
2496
2497
  const De = E.current.getBoundingClientRect().height;
2497
2498
  let me = De;
2498
- De > L && (me = L - (fe ? _e : _t)), C ? E.current.style.height = `${De - Math.max(ee, 0)}px` : E.current.style.height = `${Math.max(me, L - _e)}px`;
2499
- } else ol() || (E.current.style.height = `${bt.current}px`);
2500
- s && s.length > 0 && !Fe.current ? E.current.style.bottom = "0px" : E.current.style.bottom = `${Math.max(ee, 0)}px`;
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`;
2500
+ } else cl() || (E.current.style.height = `${Ct.current}px`);
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
  }
2503
- return (S = window.visualViewport) == null || S.addEventListener("resize", T), () => {
2504
- var I;
2505
- return (I = window.visualViewport) == null ? void 0 : I.removeEventListener("resize", T);
2504
+ return (S = window.visualViewport) == null || S.addEventListener("resize", _), () => {
2505
+ var O;
2506
+ return (O = window.visualViewport) == null ? void 0 : O.removeEventListener("resize", _);
2506
2507
  };
2507
2508
  }, [
2508
- Le,
2509
+ Be,
2509
2510
  s,
2510
2511
  Ve
2511
2512
  ]);
2512
2513
  function Ge(S) {
2513
- Aa(), R == null || R(), S || te(!1), setTimeout(() => {
2514
- s && sn(s[0]);
2515
- }, $.DURATION * 1e3);
2514
+ ka(), M == null || M(), S || te(!1), setTimeout(() => {
2515
+ s && cn(s[0]);
2516
+ }, k.DURATION * 1e3);
2516
2517
  }
2517
- function un() {
2518
+ function fn() {
2518
2519
  if (!E.current) return;
2519
- const S = document.querySelector("[data-vaul-drawer-wrapper]"), T = pt(E.current, g);
2520
+ const S = document.querySelector("[data-vaul-drawer-wrapper]"), _ = pt(E.current, v);
2520
2521
  H(E.current, {
2521
2522
  transform: "translate3d(0, 0, 0)",
2522
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`
2523
+ transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2523
2524
  }), H(pe.current, {
2524
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2525
+ transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2525
2526
  opacity: "1"
2526
- }), i && T && T > 0 && G && H(S, {
2527
- borderRadius: `${da}px`,
2527
+ }), i && _ && _ > 0 && G && H(S, {
2528
+ borderRadius: `${fa}px`,
2528
2529
  overflow: "hidden",
2529
- ...U(g) ? {
2530
+ ...U(v) ? {
2530
2531
  transform: `scale(${lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2531
2532
  transformOrigin: "top"
2532
2533
  } : {
@@ -2534,121 +2535,121 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2534
2535
  transformOrigin: "left"
2535
2536
  },
2536
2537
  transitionProperty: "transform, border-radius",
2537
- transitionDuration: `${$.DURATION}s`,
2538
- transitionTimingFunction: `cubic-bezier(${$.EASE.join(",")})`
2538
+ transitionDuration: `${k.DURATION}s`,
2539
+ transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2539
2540
  }, !0);
2540
2541
  }
2541
- function Aa() {
2542
- !y || !E.current || (E.current.classList.remove(Dt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date());
2542
+ function ka() {
2543
+ !x || !E.current || (E.current.classList.remove(jt), Re.current = !1, Q(!1), xe.current = /* @__PURE__ */ new Date());
2543
2544
  }
2544
- function ka(S) {
2545
- if (!y || !E.current) return;
2546
- E.current.classList.remove(Dt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date();
2547
- const T = pt(E.current, g);
2548
- if (!S || !cn(S.target, !1) || !T || Number.isNaN(T) || ke.current === null) return;
2549
- const I = ye.current.getTime() - ke.current.getTime(), N = $e.current - (U(g) ? S.pageY : S.pageX), L = Math.abs(N) / I;
2545
+ function $a(S) {
2546
+ if (!x || !E.current) return;
2547
+ E.current.classList.remove(jt), Re.current = !1, Q(!1), xe.current = /* @__PURE__ */ new Date();
2548
+ const _ = pt(E.current, v);
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) {
2553
- ja({
2554
- draggedDistance: N * (g === "bottom" || g === "right" ? 1 : -1),
2554
+ Na({
2555
+ draggedDistance: N * (v === "bottom" || v === "right" ? 1 : -1),
2555
2556
  closeDrawer: Ge,
2556
2557
  velocity: L,
2557
2558
  dismissible: f
2558
2559
  }), o == null || o(S, !0);
2559
2560
  return;
2560
2561
  }
2561
- if (g === "bottom" || g === "right" ? N > 0 : N < 0) {
2562
- un(), o == null || o(S, !0);
2562
+ if (v === "bottom" || v === "right" ? N > 0 : N < 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
  }
2569
2570
  var ne;
2570
2571
  const ee = Math.min((ne = E.current.getBoundingClientRect().height) != null ? ne : 0, window.innerHeight);
2571
2572
  var Ee;
2572
- const fe = Math.min((Ee = E.current.getBoundingClientRect().width) != null ? Ee : 0, window.innerWidth), _e = g === "left" || g === "right";
2573
- if (Math.abs(T) >= (_e ? fe : ee) * u) {
2573
+ const fe = Math.min((Ee = E.current.getBoundingClientRect().width) != null ? Ee : 0, window.innerWidth), _e = v === "left" || v === "right";
2574
+ if (Math.abs(_) >= (_e ? fe : ee) * u) {
2574
2575
  Ge(), o == null || o(S, !1);
2575
2576
  return;
2576
2577
  }
2577
- o == null || o(S, !0), un();
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
- vl(document.documentElement, "scrollBehavior");
2583
+ bl(document.documentElement, "scrollBehavior");
2583
2584
  }), [
2584
2585
  G
2585
2586
  ]);
2586
- function $a(S) {
2587
- const T = S ? (window.innerWidth - Oe) / window.innerWidth : 1, I = S ? -Oe : 0;
2587
+ function Fa(S) {
2588
+ const _ = S ? (window.innerWidth - Oe) / window.innerWidth : 1, O = S ? -Oe : 0;
2588
2589
  re.current && window.clearTimeout(re.current), H(E.current, {
2589
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2590
- transform: `scale(${T}) translate3d(0, ${I}px, 0)`
2590
+ transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2591
+ transform: `scale(${_}) translate3d(0, ${O}px, 0)`
2591
2592
  }), !S && E.current && (re.current = setTimeout(() => {
2592
- const N = pt(E.current, g);
2593
+ const N = pt(E.current, v);
2593
2594
  H(E.current, {
2594
2595
  transition: "none",
2595
- transform: U(g) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
2596
+ transform: U(v) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
2596
2597
  });
2597
2598
  }, 500));
2598
2599
  }
2599
- function Fa(S, T) {
2600
- if (T < 0) return;
2601
- const I = (window.innerWidth - Oe) / window.innerWidth, N = I + T * (1 - I), L = -Oe + T * Oe;
2600
+ function La(S, _) {
2601
+ if (_ < 0) return;
2602
+ const O = (window.innerWidth - Oe) / window.innerWidth, N = O + _ * (1 - O), L = -Oe + _ * Oe;
2602
2603
  H(E.current, {
2603
- transform: U(g) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`,
2604
+ transform: U(v) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`,
2604
2605
  transition: "none"
2605
2606
  });
2606
2607
  }
2607
- function La(S, T) {
2608
- const I = U(g) ? window.innerHeight : window.innerWidth, N = T ? (I - Oe) / I : 1, L = T ? -Oe : 0;
2609
- T && H(E.current, {
2610
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2611
- transform: U(g) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`
2608
+ function Ba(S, _) {
2609
+ const O = U(v) ? window.innerHeight : window.innerWidth, N = _ ? (O - Oe) / O : 1, L = _ ? -Oe : 0;
2610
+ _ && H(E.current, {
2611
+ transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2612
+ transform: U(v) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`
2612
2613
  });
2613
2614
  }
2614
2615
  return p.useEffect(() => {
2615
- _ || window.requestAnimationFrame(() => {
2616
+ T || window.requestAnimationFrame(() => {
2616
2617
  document.body.style.pointerEvents = "auto";
2617
2618
  });
2618
2619
  }, [
2619
- _
2620
- ]), /* @__PURE__ */ p.createElement(as, {
2620
+ T
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
- activeSnapPoint: Pa,
2629
+ activeSnapPoint: ja,
2629
2630
  snapPoints: s,
2630
- setActiveSnapPoint: sn,
2631
+ setActiveSnapPoint: cn,
2631
2632
  drawerRef: E,
2632
2633
  overlayRef: pe,
2633
2634
  onOpenChange: t,
2634
- onPress: Oa,
2635
- onRelease: ka,
2636
- onDrag: Ia,
2635
+ onPress: Ia,
2636
+ onRelease: $a,
2637
+ onDrag: Aa,
2637
2638
  dismissible: f,
2638
- shouldAnimate: nn,
2639
+ shouldAnimate: an,
2639
2640
  handleOnly: c,
2640
2641
  isOpen: G,
2641
- isDragging: y,
2642
- shouldFade: ln,
2642
+ isDragging: x,
2643
+ shouldFade: un,
2643
2644
  closeDrawer: Ge,
2644
- onNestedDrag: Fa,
2645
- onNestedOpenChange: $a,
2646
- onNestedRelease: La,
2647
- keyboardIsOpen: Fe,
2648
- modal: _,
2645
+ onNestedDrag: La,
2646
+ onNestedOpenChange: Fa,
2647
+ onNestedRelease: Ba,
2648
+ keyboardIsOpen: Le,
2649
+ modal: T,
2649
2650
  snapPointsOffset: Ve,
2650
- activeSnapPointIndex: Le,
2651
- direction: g,
2651
+ activeSnapPointIndex: Be,
2652
+ direction: v,
2652
2653
  shouldScaleBackground: i,
2653
2654
  setBackgroundColorOnScale: l,
2654
2655
  noBodyStyles: P,
@@ -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(Jo, {
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: v, direction: M, snapPoints: C, container: _, handleOnly: R, shouldAnimate: k, autoFocus: P } = Qe(), [g, z] = p.useState(!1), Z = la(o, s), b = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = C && C.length > 0;
2680
- Rl();
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,77 +2697,77 @@ 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(Zo, {
2703
- "data-vaul-drawer-direction": M,
2703
+ return /* @__PURE__ */ p.createElement(rs, {
2704
+ "data-vaul-drawer-direction": C,
2704
2705
  "data-vaul-drawer": "",
2705
- "data-vaul-delayed-snap-points": g ? "true" : "false",
2706
- "data-vaul-snap-points": v && B ? "true" : "false",
2707
- "data-vaul-custom-container": _ ? "true" : "false",
2708
- "data-vaul-animate": k != null && k.current ? "true" : "false",
2706
+ "data-vaul-delayed-snap-points": v ? "true" : "false",
2707
+ "data-vaul-snap-points": R && B ? "true" : "false",
2708
+ "data-vaul-custom-container": T ? "true" : "false",
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
- R || (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, R || (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
- }, M, 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 Dl = 250, Pl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2758
- const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: m, handleOnly: f, isOpen: c, onPress: d, onDrag: v } = Qe(), M = p.useRef(null), C = p.useRef(!1);
2759
- function _() {
2760
- if (C.current) {
2757
+ va.displayName = "Drawer.Content";
2758
+ const Tl = 250, _l = 120, wa = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
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);
2760
+ function T() {
2761
+ if (g.current) {
2761
2762
  P();
2762
2763
  return;
2763
2764
  }
2764
2765
  window.setTimeout(() => {
2765
- R();
2766
- }, Pl);
2766
+ M();
2767
+ }, _l);
2767
2768
  }
2768
- function R() {
2769
- if (s || e || C.current) {
2769
+ function M() {
2770
+ if (s || e || g.current) {
2770
2771
  P();
2771
2772
  return;
2772
2773
  }
@@ -2780,25 +2781,25 @@ const Dl = 250, Pl = 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
- function k() {
2787
- M.current = window.setTimeout(() => {
2788
- C.current = !0;
2789
- }, Dl);
2787
+ function A() {
2788
+ C.current = window.setTimeout(() => {
2789
+ g.current = !0;
2790
+ }, Tl);
2790
2791
  }
2791
2792
  function P() {
2792
- M.current && window.clearTimeout(M.current), C.current = !1;
2793
+ C.current && window.clearTimeout(C.current), g.current = !1;
2793
2794
  }
2794
2795
  return /* @__PURE__ */ p.createElement("div", {
2795
- onClick: _,
2796
+ onClick: T,
2796
2797
  onPointerCancel: P,
2797
- onPointerDown: (g) => {
2798
- f && d(g), k();
2798
+ onPointerDown: (v) => {
2799
+ f && d(v), A();
2799
2800
  },
2800
- onPointerMove: (g) => {
2801
- f && v(g);
2801
+ onPointerMove: (v) => {
2802
+ f && R(v);
2802
2803
  },
2803
2804
  // onPointerUp is already handled by the content component
2804
2805
  ref: r,
@@ -2811,12 +2812,12 @@ const Dl = 250, Pl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCy
2811
2812
  "aria-hidden": "true"
2812
2813
  }, t));
2813
2814
  });
2814
- va.displayName = "Drawer.Handle";
2815
- function jl({ 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,25 +2832,25 @@ function jl({ onDrag: e, onOpenChange: t, ...n }) {
2831
2832
  ...n
2832
2833
  });
2833
2834
  }
2834
- function Nl(e) {
2835
+ function Il(e) {
2835
2836
  const t = Qe(), { container: n = t.container, ...r } = e;
2836
- return /* @__PURE__ */ p.createElement(os, {
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: jl,
2844
- Content: ga,
2845
- Overlay: ma,
2846
- Trigger: es,
2847
- Portal: Nl,
2848
- Handle: va,
2849
- Close: ts,
2850
- Title: ns,
2851
- Description: rs
2852
- }, Zt = ({
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
2853
+ }, en = ({
2853
2854
  shouldScaleBackground: e = !0,
2854
2855
  ...t
2855
2856
  }) => /* @__PURE__ */ a.jsx(
@@ -2859,24 +2860,24 @@ const he = {
2859
2860
  ...t
2860
2861
  }
2861
2862
  );
2862
- Zt.displayName = "Drawer";
2863
- const wa = he.Trigger, Tl = he.Portal, _l = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2863
+ en.displayName = "Drawer";
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,
2867
- className: O("fixed inset-0 z-50 bg-black/80", e),
2868
+ className: F("fixed inset-0 z-50 bg-black/80", e),
2868
2869
  ...t
2869
2870
  }
2870
2871
  ));
2871
2872
  xa.displayName = he.Overlay.displayName;
2872
- const en = h.forwardRef(
2873
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Tl, { children: [
2873
+ const tn = h.forwardRef(
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,
2877
2878
  {
2878
2879
  ref: o,
2879
- className: O(
2880
+ className: F(
2880
2881
  "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2881
2882
  e
2882
2883
  ),
@@ -2889,30 +2890,30 @@ const en = h.forwardRef(
2889
2890
  )
2890
2891
  ] })
2891
2892
  );
2892
- en.displayName = "DrawerContent";
2893
- const tn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2893
+ tn.displayName = "DrawerContent";
2894
+ const nn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2894
2895
  he.Title,
2895
2896
  {
2896
2897
  ref: n,
2897
- className: O(
2898
+ className: F(
2898
2899
  "text-lg font-semibold leading-none tracking-tight",
2899
2900
  e
2900
2901
  ),
2901
2902
  ...t
2902
2903
  }
2903
2904
  ));
2904
- tn.displayName = he.Title.displayName;
2905
- const Ol = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2905
+ nn.displayName = he.Title.displayName;
2906
+ const $l = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2906
2907
  he.Description,
2907
2908
  {
2908
2909
  ref: n,
2909
- className: O("text-sm text-muted-foreground", e),
2910
+ className: F("text-sm text-muted-foreground", e),
2910
2911
  ...t
2911
2912
  }
2912
2913
  ));
2913
- Ol.displayName = he.Description.displayName;
2914
- const ya = () => {
2915
- const e = qe(), [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(As);
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,71 +2934,71 @@ 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(Ko, { 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
- }, Il = () => {
2949
- const { topNavigation: e } = qe();
2950
- return /* @__PURE__ */ a.jsxs(Zt, { direction: "right", children: [
2951
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(wa, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(qo, { size: 22 }) }) }),
2949
+ }, Sa = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Fl = () => {
2950
+ const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
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,
2953
+ {
2954
+ className: ({ isActive: r }) => zn(
2955
+ "block py-3.5 font-medium -mb-px border-b-2",
2956
+ r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2957
+ ),
2958
+ to: n.id,
2959
+ children: n.label
2960
+ }
2961
+ ) }, n.label)) }) });
2962
+ }, Ll = () => {
2963
+ const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
2964
+ return /* @__PURE__ */ a.jsxs(en, { direction: "right", children: [
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 }) }) }),
2952
2966
  /* @__PURE__ */ a.jsxs(
2953
- en,
2967
+ tn,
2954
2968
  {
2955
- className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
2969
+ className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
2956
2970
  "aria-describedby": void 0,
2957
2971
  children: [
2958
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(tn, { children: "Navigation" }) }),
2959
- /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ya, {}) }),
2960
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2961
- 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,
2962
2976
  {
2963
- className: ({ isActive: n }) => Un(
2977
+ className: ({ isActive: r }) => zn(
2964
2978
  "block font-medium border-b-2",
2965
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2979
+ r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2966
2980
  ),
2967
- to: t.id,
2968
- children: /* @__PURE__ */ a.jsx(_l, { children: t.label })
2981
+ to: n.id,
2982
+ children: /* @__PURE__ */ a.jsx(kl, { children: n.label })
2969
2983
  }
2970
- ) }, t.label)) })
2984
+ ) }, n.label)) })
2971
2985
  ]
2972
2986
  }
2973
2987
  )
2974
2988
  ] });
2975
- }, Al = () => {
2976
- const { topNavigation: e } = qe();
2977
- 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.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2978
- Ze,
2979
- {
2980
- className: ({ isActive: n }) => Un(
2981
- "block py-3.5 font-medium -mb-px border-b-2",
2982
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2983
- ),
2984
- to: t.id,
2985
- children: t.label
2986
- }
2987
- ) }, t.label)) }) });
2988
- }, ba = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(el, { children: [
2989
- /* @__PURE__ */ a.jsx(Zr, { children: e.label }),
2990
- /* @__PURE__ */ a.jsx(Zi, { 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(ba, { item: t }, n)
2993
+ /* @__PURE__ */ a.jsx(Ca, { item: t }, n)
2993
2994
  )) }) })
2994
- ] }, e.label) : /* @__PURE__ */ a.jsx(At, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(na, { children: e.label }, e.label) }), Sa = Vn(function() {
2995
- const t = pn(), [n, r] = po(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = pn(), l = qe(), { page: u, plugins: m } = l, f = m.filter((d) => Os(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(ba, { item: d }, d.label)), c = n ? Qo : Vo;
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(rl, {}),
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
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(At, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
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: [
3001
3002
  (u == null ? void 0 : u.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3002
3003
  /* @__PURE__ */ a.jsx(
3003
3004
  "img",
@@ -3005,7 +3006,7 @@ const ya = () => {
3005
3006
  src: u.logo.src.light,
3006
3007
  alt: u.logo.alt ?? u.pageTitle,
3007
3008
  style: { width: u.logo.width },
3008
- className: O("h-10", n && "hidden"),
3009
+ className: F("h-10", n && "hidden"),
3009
3010
  loading: "lazy"
3010
3011
  }
3011
3012
  ),
@@ -3015,7 +3016,7 @@ const ya = () => {
3015
3016
  src: u.logo.src.dark,
3016
3017
  alt: u.logo.alt ?? u.pageTitle,
3017
3018
  style: { width: u.logo.width },
3018
- className: O("h-10", !n && "hidden"),
3019
+ className: F("h-10", !n && "hidden"),
3019
3020
  loading: "lazy"
3020
3021
  }
3021
3022
  )
@@ -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(Il, {}),
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(Pt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(Xi, { modal: !1, children: [
3031
- /* @__PURE__ */ a.jsx(Ji, { asChild: !0, children: /* @__PURE__ */ a.jsx(Pt, { 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,89 +3046,89 @@ 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(Al, {}),
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
- }), Ca = {
3058
- Header: Sa
3059
- }, kl = Kn(Ca), $l = kl.Provider, Fl = (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(mo.Provider, { value: o, ...e });
3070
- }, Ll = ({
3070
+ return /* @__PURE__ */ a.jsx(wo.Provider, { value: o, ...e });
3071
+ }, zl = ({
3071
3072
  children: e,
3072
3073
  context: t
3073
- }) => ($o({
3074
+ }) => (Ho({
3074
3075
  queryFn: async () => (await t.initialize(), !0),
3075
3076
  queryKey: ["zudoku-initialize"]
3076
- }), /* @__PURE__ */ a.jsx(Fo.Provider, { value: t, children: e })), Bl = ({
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
- () => ({ ...Ca, ...t.overrides }),
3083
+ () => ({ ...Ra, ...t.overrides }),
3083
3084
  [t.overrides]
3084
3085
  ), r = mt(() => {
3085
- var M;
3086
+ var C;
3086
3087
  return {
3087
- ...(t.plugins ?? []).filter(Fs).flatMap(
3088
- (C) => C.getMdxComponents ? [C.getMdxComponents()] : []
3089
- ).reduce((C, _) => ({ ...C, ..._ }), {}),
3090
- ...go,
3091
- ...(M = t.mdx) == null ? void 0 : M.components
3088
+ ...(t.plugins ?? []).filter(Us).flatMap(
3089
+ (g) => g.getMdxComponents ? [g.getMdxComponents()] : []
3090
+ ).reduce((g, T) => ({ ...g, ...T }), {}),
3091
+ ...yo,
3092
+ ...(C = t.mdx) == null ? void 0 : C.components
3092
3093
  };
3093
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Co(jt), [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
- ), u = Wa();
3097
+ ), u = Ya();
3097
3098
  Ce(() => {
3098
3099
  s || i(!0);
3099
3100
  }, [s, u.location]);
3100
- const [m] = Ie(() => new Bs(t)), f = (d = t.plugins) == null ? void 0 : d.filter($s).map((v, M) => {
3101
- var C;
3102
- return /* @__PURE__ */ a.jsx(Mo, { children: (C = v.getHead) == null ? void 0 : C.call(v) }, M);
3101
+ const [m] = Ie(() => new Ks(t)), f = (d = t.plugins) == null ? void 0 : d.filter(Hs).map((R, C) => {
3102
+ var g;
3103
+ return /* @__PURE__ */ a.jsx(Do, { children: (g = R.getHead) == null ? void 0 : g.call(R) }, C);
3103
3104
  });
3104
- return /* @__PURE__ */ a.jsxs(Lo, { client: nr, children: [
3105
- /* @__PURE__ */ a.jsx(It, { children: f }),
3106
- /* @__PURE__ */ a.jsx(jt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(Ll, { context: m, children: /* @__PURE__ */ a.jsx(Ua, { components: r, children: /* @__PURE__ */ a.jsx(Fl, { children: /* @__PURE__ */ a.jsx($l, { value: n, children: /* @__PURE__ */ a.jsx(Xa, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(vo, { children: e ?? /* @__PURE__ */ a.jsx(In, {}) }) }) }) }) }) }) })
3105
+ return /* @__PURE__ */ a.jsxs(zo, { client: rr, children: [
3106
+ /* @__PURE__ */ a.jsx(kt, { children: f }),
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
- }, Hl = Vn(Bl), Ma = (e) => /* @__PURE__ */ a.jsx(Ts, { FallbackComponent: Hs, children: /* @__PURE__ */ a.jsx(Hl, { ...e }) });
3109
- Ma.displayName = "DevPortal";
3110
- const Ul = ({
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
- var d;
3115
- const n = Yn(), r = za(e), [o, s] = Ie(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [m, f] = Ie(u);
3115
+ var R, C;
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]);
3119
- const c = i && /* @__PURE__ */ a.jsx(
3120
+ const d = i && /* @__PURE__ */ a.jsx(
3120
3121
  "button",
3121
3122
  {
3122
3123
  type: "button",
3123
- onClick: (v) => {
3124
- v.preventDefault(), f((M) => !M), s(!0);
3124
+ onClick: (g) => {
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
- className: O(
3131
+ className: F(
3131
3132
  o && "transition",
3132
3133
  "shrink-0 group-data-[state=open]:rotate-90"
3133
3134
  )
@@ -3136,83 +3137,92 @@ const Ul = ({
3136
3137
  }
3137
3138
  );
3138
3139
  return /* @__PURE__ */ a.jsxs(
3139
- Do,
3140
+ No,
3140
3141
  {
3141
- className: O("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
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(Po, { 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
- className: O(
3150
- "text-start",
3151
- Je({ isActive: !1, isTopLevel: t === 0 }),
3152
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3153
- ),
3150
+ onClick: () => s(!0),
3151
+ className: Ze({
3152
+ isActive: !1,
3153
+ isTopLevel: t === 0,
3154
+ className: [
3155
+ "text-start",
3156
+ i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3157
+ ]
3158
+ }),
3154
3159
  children: [
3155
3160
  e.icon && /* @__PURE__ */ a.jsx(
3156
3161
  e.icon,
3157
3162
  {
3158
3163
  size: 16,
3159
- className: "align-[-0.125em] -translate-x-1"
3164
+ className: F(
3165
+ "align-[-0.125em] -translate-x-1",
3166
+ c && "text-primary"
3167
+ )
3160
3168
  }
3161
3169
  ),
3162
- ((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ a.jsx(
3163
- Ze,
3170
+ ((C = e.link) == null ? void 0 : C.type) === "doc" ? /* @__PURE__ */ a.jsx(
3171
+ Je,
3164
3172
  {
3165
- to: Ht(n == null ? void 0 : n.id, e.link.id),
3173
+ to: wt(n == null ? void 0 : n.id, e.link.id),
3166
3174
  className: "flex-1",
3167
- onClick: () => s(!0),
3168
- children: ({ isActive: v }) => /* @__PURE__ */ a.jsxs(
3175
+ onClick: () => {
3176
+ c && !m && f(!0);
3177
+ },
3178
+ children: /* @__PURE__ */ a.jsxs(
3169
3179
  "div",
3170
3180
  {
3171
- className: O(
3181
+ className: F(
3172
3182
  "flex items-center gap-2 justify-between w-full",
3173
- v ? "text-primary font-medium" : "text-foreground/80"
3183
+ c ? "text-primary" : "text-foreground/80"
3174
3184
  ),
3175
3185
  children: [
3176
3186
  /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
3177
- c
3187
+ d
3178
3188
  ]
3179
3189
  }
3180
3190
  )
3181
3191
  }
3182
3192
  ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3183
3193
  /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3184
- c
3194
+ d
3185
3195
  ] })
3186
3196
  ]
3187
3197
  }
3188
3198
  ) }),
3189
3199
  /* @__PURE__ */ a.jsx(
3190
- jo,
3200
+ _o,
3191
3201
  {
3192
- className: O(
3202
+ className: F(
3193
3203
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3194
- o && "CollapsibleContent",
3195
- "ms-[calc(var(--padding-nav-item)*1.125)]"
3204
+ o && "CollapsibleContent"
3196
3205
  ),
3197
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
3198
- Ot,
3206
+ children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((g) => /* @__PURE__ */ a.jsx(
3207
+ At,
3199
3208
  {
3200
3209
  level: t + 1,
3201
- item: v
3210
+ item: g
3202
3211
  },
3203
- ("id" in v ? v.id : "") + ("href" in v ? v.href : "") + v.label
3212
+ ("id" in g ? g.id : "") + ("href" in g ? g.href : "") + g.label
3204
3213
  )) })
3205
3214
  }
3206
3215
  )
3207
3216
  ]
3208
3217
  }
3209
3218
  );
3210
- }, Je = wo(
3219
+ }, Ze = bo(
3211
3220
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3212
3221
  {
3213
3222
  variants: {
3214
3223
  isTopLevel: {
3215
- true: "font-semibold"
3224
+ true: "font-medium -mx-[--padding-nav-item]",
3225
+ false: "-mr-[--padding-nav-item] ml-[--padding-nav-item]"
3216
3226
  },
3217
3227
  isActive: {
3218
3228
  true: "text-primary font-medium",
@@ -3222,90 +3232,88 @@ const Ul = ({
3222
3232
  true: "text-foreground/30",
3223
3233
  false: ""
3224
3234
  }
3235
+ },
3236
+ defaultVariants: {
3237
+ isActive: !1
3225
3238
  }
3226
3239
  }
3227
- ), Ra = "data-anchor", Ot = ({
3240
+ ), Ea = "data-anchor", At = ({
3228
3241
  item: e,
3229
3242
  level: t = 0
3230
3243
  }) => {
3231
- const n = Yn(), { activeAnchor: r } = Ft(), [o] = Ya();
3244
+ var s, i;
3245
+ const n = Xn(), { activeAnchor: r } = Bt(), [o] = Za();
3232
3246
  switch (e.type) {
3233
3247
  case "category":
3234
- return /* @__PURE__ */ a.jsx(Ul, { category: e, level: t });
3248
+ return /* @__PURE__ */ a.jsx(Ql, { category: e, level: t });
3235
3249
  case "doc":
3236
3250
  return /* @__PURE__ */ a.jsxs(
3237
- Ze,
3251
+ Je,
3238
3252
  {
3239
- className: ({ isActive: s }) => Je({ isActive: s, isTopLevel: t === 0 }),
3240
- to: Ht(n == null ? void 0 : n.id, e.id),
3253
+ className: ({ isActive: l }) => Ze({ isActive: l, isTopLevel: t === 0 }),
3254
+ to: wt(n == null ? void 0 : n.id, e.id),
3241
3255
  children: [
3242
3256
  e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3243
3257
  e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3244
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3245
- /* @__PURE__ */ a.jsx(St, { ...e.badge })
3258
+ /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
3259
+ /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3246
3260
  ] }) : e.label
3247
3261
  ]
3248
3262
  }
3249
3263
  );
3250
3264
  case "link":
3251
3265
  return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
3252
- Ka,
3266
+ qa,
3253
3267
  {
3254
3268
  to: { hash: e.href, search: o.toString() },
3255
- [Ra]: e.href.slice(1),
3256
- className: O(
3257
- "flex gap-2.5 justify-between",
3258
- t === 0 && "-mx-[--padding-nav-item]",
3259
- Je({
3260
- isActive: e.href.slice(1) === r
3261
- })
3262
- ),
3269
+ [Ea]: e.href.slice(1),
3270
+ className: Ze({
3271
+ isActive: e.href.slice(1) === r,
3272
+ isTopLevel: t === 0,
3273
+ className: ((s = e.badge) == null ? void 0 : s.placement) !== "start" && "justify-between"
3274
+ }),
3263
3275
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3264
3276
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3265
- /* @__PURE__ */ a.jsx(St, { ...e.badge })
3277
+ /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3266
3278
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3267
3279
  }
3268
3280
  ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
3269
3281
  "a",
3270
3282
  {
3271
- className: O(
3272
- Je({ isTopLevel: t === 0 }),
3273
- "block"
3274
- ),
3283
+ className: Ze({ isTopLevel: t === 0 }),
3275
3284
  href: e.href,
3276
3285
  target: "_blank",
3277
3286
  rel: "noopener noreferrer",
3278
3287
  children: [
3279
3288
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
3280
- /* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
3281
- " ",
3282
- /* @__PURE__ */ a.jsx(Go, { className: "inline ml-1", size: 12 })
3283
- ] })
3289
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Zo, { className: "inline -translate-y-0.5", size: 12 }) })
3284
3290
  ]
3285
3291
  }
3286
3292
  ) : /* @__PURE__ */ a.jsx(
3287
- Ze,
3293
+ Je,
3288
3294
  {
3289
- className: O("flex gap-2.5 justify-between", Je()),
3295
+ className: Ze({
3296
+ className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
3297
+ }),
3290
3298
  to: e.href,
3291
3299
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3292
3300
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3293
- /* @__PURE__ */ a.jsx(St, { ...e.badge })
3301
+ /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3294
3302
  ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3295
3303
  }
3296
3304
  );
3297
3305
  }
3298
- }, zl = (e, t = { block: "center" }) => {
3306
+ }, Vl = (e, t = { block: "center" }) => {
3299
3307
  if (!e) return;
3300
3308
  const n = e.getBoundingClientRect();
3301
3309
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3302
- }, Kl = () => {
3303
- const e = kt(), { setActiveAnchor: t } = Ft();
3310
+ }, Gl = () => {
3311
+ const e = Ft(), { setActiveAnchor: t } = Bt();
3304
3312
  Ce(() => {
3305
3313
  if (!e.hash) return;
3306
3314
  const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3307
- const o = document.getElementById(n), s = document.querySelector(`[${Ra}="${n}"]`);
3308
- return o ? (o.scrollIntoView(), zl(s), requestIdleCallback(() => t(n)), !0) : !1;
3315
+ const o = document.getElementById(n), s = document.querySelector(`[${Ea}="${n}"]`);
3316
+ return o ? (o.scrollIntoView(), Vl(s), requestIdleCallback(() => t(n)), !0) : !1;
3309
3317
  };
3310
3318
  if (!r()) {
3311
3319
  const o = new MutationObserver((s, i) => {
@@ -3314,16 +3322,16 @@ const Ul = ({
3314
3322
  return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
3315
3323
  }
3316
3324
  }, [e.hash, t]);
3317
- }, ql = () => {
3318
- const e = kt(), t = Lt(e.pathname);
3325
+ }, Wl = () => {
3326
+ const e = Ft(), t = Ht(e.pathname);
3319
3327
  Ce(() => {
3320
3328
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3321
3329
  }, [e.pathname]);
3322
- }, Ea = Ro(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3330
+ }, Da = Po(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3323
3331
  "nav",
3324
3332
  {
3325
3333
  "data-navigation": String(n),
3326
- className: O(
3334
+ className: F(
3327
3335
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
3328
3336
  "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
3329
3337
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
@@ -3333,38 +3341,38 @@ const Ul = ({
3333
3341
  children: e
3334
3342
  }
3335
3343
  ));
3336
- Ea.displayName = "SidebarWrapper";
3337
- const Ql = () => {
3338
- const e = Lt(null), t = Bo();
3344
+ Da.displayName = "SidebarWrapper";
3345
+ const Yl = () => {
3346
+ const e = Ht(null), t = Ko();
3339
3347
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3340
3348
  /* @__PURE__ */ a.jsxs(
3341
- Ea,
3349
+ Da,
3342
3350
  {
3343
3351
  ref: e,
3344
3352
  pushMainContent: t.data.items.length > 0,
3345
3353
  children: [
3346
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-navigation" }),
3347
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(Ot, { item: n }, n.label)),
3348
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-navigation" })
3354
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-before-navigation" }),
3355
+ t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label)),
3356
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-after-navigation" })
3349
3357
  ]
3350
3358
  }
3351
3359
  ),
3352
3360
  /* @__PURE__ */ a.jsxs(
3353
- en,
3361
+ tn,
3354
3362
  {
3355
- className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none",
3363
+ className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
3356
3364
  "aria-describedby": void 0,
3357
3365
  children: [
3358
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(tn, { children: "Sidebar" }) }),
3359
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(Ot, { item: n }, n.label))
3366
+ /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Sidebar" }) }),
3367
+ t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label))
3360
3368
  ]
3361
3369
  }
3362
3370
  )
3363
3371
  ] });
3364
- }, Vl = ({ children: e }) => {
3365
- const t = kt(), { setActiveAnchor: n } = Ft(), { meta: r, authentication: o } = qe();
3366
- Kl(), ql();
3367
- const s = Lt(t.pathname);
3372
+ }, Xl = ({ children: e }) => {
3373
+ const t = Ft(), { setActiveAnchor: n } = Bt(), { meta: r, authentication: o } = Ae();
3374
+ Gl(), Wl();
3375
+ const s = Ht(t.pathname);
3368
3376
  return Ce(() => {
3369
3377
  var i;
3370
3378
  (i = o == null ? void 0 : o.pageLoad) == null || i.call(o);
@@ -3372,28 +3380,28 @@ const Ql = () => {
3372
3380
  t.pathname !== s.current && n(""), s.current = t.pathname;
3373
3381
  }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3374
3382
  !1,
3375
- /* @__PURE__ */ a.jsxs(It, { titleTemplate: r == null ? void 0 : r.title, children: [
3383
+ /* @__PURE__ */ a.jsxs(kt, { titleTemplate: r == null ? void 0 : r.title, children: [
3376
3384
  (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
3377
3385
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
3378
3386
  ] }),
3379
- /* @__PURE__ */ a.jsx(xe, { name: "layout-before-head" }),
3380
- /* @__PURE__ */ a.jsx(Sa, {}),
3381
- /* @__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" }),
3382
3390
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
3383
- Qn,
3391
+ Vn,
3384
3392
  {
3385
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(ss, {}) }),
3386
- children: /* @__PURE__ */ a.jsxs(Zt, { direction: "left", children: [
3387
- /* @__PURE__ */ a.jsx(Ql, {}),
3393
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(us, {}) }),
3394
+ children: /* @__PURE__ */ a.jsxs(en, { direction: "left", children: [
3395
+ /* @__PURE__ */ a.jsx(Yl, {}),
3388
3396
  /* @__PURE__ */ a.jsx(
3389
3397
  "div",
3390
3398
  {
3391
- className: O(
3399
+ className: F(
3392
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",
3393
3401
  "peer-data-[navigation=false]:hidden"
3394
3402
  ),
3395
- children: /* @__PURE__ */ a.jsxs(wa, { className: "flex items-center gap-2", children: [
3396
- /* @__PURE__ */ a.jsx(Wo, { 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 }),
3397
3405
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
3398
3406
  ] })
3399
3407
  }
@@ -3401,7 +3409,7 @@ const Ql = () => {
3401
3409
  /* @__PURE__ */ a.jsxs(
3402
3410
  "main",
3403
3411
  {
3404
- className: O(
3412
+ className: F(
3405
3413
  "h-full dark:border-white/10 translate-x-0",
3406
3414
  "lg:overflow-visible",
3407
3415
  // This works in tandem with the `SidebarWrapper` component
@@ -3409,9 +3417,9 @@ const Ql = () => {
3409
3417
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3410
3418
  ),
3411
3419
  children: [
3412
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-content" }),
3413
- e ?? /* @__PURE__ */ a.jsx(In, {}),
3414
- /* @__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" })
3415
3423
  ]
3416
3424
  }
3417
3425
  )
@@ -3419,18 +3427,22 @@ const Ql = () => {
3419
3427
  }
3420
3428
  ) })
3421
3429
  ] });
3422
- }, dc = qa, fc = xo, hc = Ma, pc = Vl, mc = At, gc = Ja, vc = is, wc = Ms, xc = Rs, yc = Pt, bc = It;
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;
3423
3431
  export {
3424
- wc as Bootstrap,
3425
- xc as BootstrapStatic,
3426
- yc as Button,
3427
- fc as Callout,
3428
- hc as DevPortal,
3429
- bc as Head,
3430
- pc as Layout,
3431
- mc as Link,
3432
- gc as RouterError,
3433
- vc as ServerError,
3434
- dc as useMDXComponents
3432
+ bc as Bootstrap,
3433
+ Sc as BootstrapStatic,
3434
+ jc as Button,
3435
+ Dc as Callout,
3436
+ Pc as ClientOnly,
3437
+ vc as DevPortal,
3438
+ Cc as Head,
3439
+ wc as Layout,
3440
+ Nc as Link,
3441
+ yc as RouterError,
3442
+ xc as ServerError,
3443
+ Ec as Zudoku,
3444
+ Rc as useAuth,
3445
+ gc as useMDXComponents,
3446
+ Mc as useZudoku
3435
3447
  };
3436
3448
  //# sourceMappingURL=zudoku.components.js.map