zudoku 0.3.0-dev.83 → 0.3.0-dev.84

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 (185) hide show
  1. package/cli.js +5 -1
  2. package/dist/app/demo.js +5 -4
  3. package/dist/app/demo.js.map +1 -1
  4. package/dist/app/main.js +3 -1
  5. package/dist/app/main.js.map +1 -1
  6. package/dist/app/standalone.js +5 -4
  7. package/dist/app/standalone.js.map +1 -1
  8. package/dist/config/validators/ResolvedSidebarSchema.d.ts +18 -0
  9. package/dist/config/validators/ResolvedSidebarSchema.js +76 -0
  10. package/dist/config/validators/ResolvedSidebarSchema.js.map +1 -0
  11. package/dist/config/validators/SidebarSchema.d.ts +177 -0
  12. package/dist/config/validators/SidebarSchema.js +71 -0
  13. package/dist/config/validators/SidebarSchema.js.map +1 -0
  14. package/dist/config/validators/validate.d.ts +411 -59
  15. package/dist/config/validators/validate.js +22 -4
  16. package/dist/config/validators/validate.js.map +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/lib/components/DevPortal.js +1 -1
  19. package/dist/lib/components/DevPortal.js.map +1 -1
  20. package/dist/lib/components/Header.js.map +1 -1
  21. package/dist/lib/components/Heading.d.ts +1 -1
  22. package/dist/lib/components/Layout.js +2 -2
  23. package/dist/lib/components/Layout.js.map +1 -1
  24. package/dist/lib/components/TopNavigation.js +5 -5
  25. package/dist/lib/components/TopNavigation.js.map +1 -1
  26. package/dist/lib/components/context/DevPortalProvider.d.ts +9 -3
  27. package/dist/lib/components/context/DevPortalProvider.js +11 -23
  28. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  29. package/dist/lib/components/context/ThemeContext.d.ts +1 -4
  30. package/dist/lib/components/context/ThemeContext.js +3 -29
  31. package/dist/lib/components/context/ThemeContext.js.map +1 -1
  32. package/dist/lib/components/context/ThemeProvider.d.ts +4 -0
  33. package/dist/lib/components/context/ThemeProvider.js +23 -0
  34. package/dist/lib/components/context/ThemeProvider.js.map +1 -0
  35. package/dist/lib/components/navigation/Sidebar.d.ts +1 -0
  36. package/dist/lib/components/navigation/Sidebar.js +12 -0
  37. package/dist/lib/components/navigation/Sidebar.js.map +1 -0
  38. package/dist/lib/components/navigation/SidebarBadge.d.ts +22 -0
  39. package/dist/lib/components/navigation/SidebarBadge.js +24 -0
  40. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -0
  41. package/dist/lib/components/navigation/SidebarCategory.d.ts +5 -0
  42. package/dist/lib/components/navigation/SidebarCategory.js +33 -0
  43. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -0
  44. package/dist/lib/components/navigation/SidebarItem.d.ts +12 -0
  45. package/dist/lib/components/navigation/SidebarItem.js +42 -0
  46. package/dist/lib/components/navigation/SidebarItem.js.map +1 -0
  47. package/dist/lib/components/navigation/{SideNavigationWrapper.d.ts → SidebarWrapper.d.ts} +1 -1
  48. package/dist/lib/components/navigation/{SideNavigationWrapper.js → SidebarWrapper.js} +2 -2
  49. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -0
  50. package/dist/lib/components/navigation/utils.d.ts +16 -0
  51. package/dist/lib/components/navigation/utils.js +85 -0
  52. package/dist/lib/components/navigation/utils.js.map +1 -0
  53. package/dist/lib/core/DevPortalContext.d.ts +9 -32
  54. package/dist/lib/core/DevPortalContext.js +8 -5
  55. package/dist/lib/core/DevPortalContext.js.map +1 -1
  56. package/dist/lib/core/plugins.d.ts +6 -8
  57. package/dist/lib/core/plugins.js.map +1 -1
  58. package/dist/lib/plugins/markdown/MdxPage.js +5 -36
  59. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  60. package/dist/lib/plugins/markdown/generateRoutes.js +20 -43
  61. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  62. package/dist/lib/plugins/openapi/Sidecar.js +12 -2
  63. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  64. package/dist/lib/plugins/openapi/index.js +14 -11
  65. package/dist/lib/plugins/openapi/index.js.map +1 -1
  66. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
  67. package/dist/lib/util/useScrollToAnchor.js +31 -17
  68. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  69. package/dist/vite/plugin-sidebar.d.ts +3 -0
  70. package/dist/vite/plugin-sidebar.js +23 -0
  71. package/dist/vite/plugin-sidebar.js.map +1 -0
  72. package/dist/vite/plugin.js +2 -0
  73. package/dist/vite/plugin.js.map +1 -1
  74. package/lib/{AuthenticationPlugin-XS0DoAhE.js → AuthenticationPlugin-DgwV0hVu.js} +7 -7
  75. package/lib/{AuthenticationPlugin-XS0DoAhE.js.map → AuthenticationPlugin-DgwV0hVu.js.map} +1 -1
  76. package/lib/{CategoryHeading-DCmchnA1.js → CategoryHeading-BWq12Bfa.js} +3 -3
  77. package/lib/{CategoryHeading-DCmchnA1.js.map → CategoryHeading-BWq12Bfa.js.map} +1 -1
  78. package/lib/{Combination-C442XfGG.js → Combination-DkycFHkm.js} +4 -4
  79. package/lib/{Combination-C442XfGG.js.map → Combination-DkycFHkm.js.map} +1 -1
  80. package/lib/{DevPortalProvider-BWeAysxF.js → DevPortalProvider-CTxoCHIT.js} +375 -417
  81. package/lib/DevPortalProvider-CTxoCHIT.js.map +1 -0
  82. package/lib/DeveloperHint-BQSFXH01.js +10 -0
  83. package/lib/{DeveloperHint-DQVwIery.js.map → DeveloperHint-BQSFXH01.js.map} +1 -1
  84. package/lib/{Input-3IEt27jb.js → Input-BclXSY0g.js} +5 -5
  85. package/lib/{Input-3IEt27jb.js.map → Input-BclXSY0g.js.map} +1 -1
  86. package/lib/{Markdown-QsZ-PHET.js → Markdown-B_Gax7at.js} +1136 -1152
  87. package/lib/{Markdown-QsZ-PHET.js.map → Markdown-B_Gax7at.js.map} +1 -1
  88. package/lib/{MdxPage-CA1WmW14.js → MdxPage-Crlr0GmN.js} +67 -81
  89. package/lib/MdxPage-Crlr0GmN.js.map +1 -0
  90. package/lib/{OperationList-CHK_erYP.js → OperationList-nQ0bd8TU.js} +8 -8
  91. package/lib/{OperationList-CHK_erYP.js.map → OperationList-nQ0bd8TU.js.map} +1 -1
  92. package/lib/Route-CNvxEBnR.js +14 -0
  93. package/lib/{Route-D70pGn9n.js.map → Route-CNvxEBnR.js.map} +1 -1
  94. package/lib/{SlotletProvider-B71hNEUL.js → SlotletProvider-CzMAO73_.js} +12 -12
  95. package/lib/{SlotletProvider-B71hNEUL.js.map → SlotletProvider-CzMAO73_.js.map} +1 -1
  96. package/lib/Spinner-fF-Xv-gw.js +274 -0
  97. package/lib/Spinner-fF-Xv-gw.js.map +1 -0
  98. package/lib/index-7kcHaXD6.js +1771 -0
  99. package/lib/index-7kcHaXD6.js.map +1 -0
  100. package/lib/{index-Bl6YeerK.js → index-CgCPw6Jn.js} +1026 -1043
  101. package/lib/index-CgCPw6Jn.js.map +1 -0
  102. package/lib/{index-BH-Ub36F.js → index-DkuZvRNP.js} +4 -4
  103. package/lib/{index-BH-Ub36F.js.map → index-DkuZvRNP.js.map} +1 -1
  104. package/lib/joinPath-VeNuJa7y.js +8 -0
  105. package/lib/joinPath-VeNuJa7y.js.map +1 -0
  106. package/lib/jsx-runtime-B6kdoens.js +635 -0
  107. package/lib/jsx-runtime-B6kdoens.js.map +1 -0
  108. package/lib/{AnchorLink-BZcpTwOs.js → utils-CzT_9Tsn.js} +258 -214
  109. package/lib/utils-CzT_9Tsn.js.map +1 -0
  110. package/lib/zudoku.auth-clerk.js +1 -1
  111. package/lib/zudoku.auth-openid.js +2 -2
  112. package/lib/zudoku.components.js +1229 -1227
  113. package/lib/zudoku.components.js.map +1 -1
  114. package/lib/zudoku.plugin-api-keys.js +19 -19
  115. package/lib/zudoku.plugin-custom-page.js +2 -2
  116. package/lib/zudoku.plugin-markdown.js +21 -38
  117. package/lib/zudoku.plugin-markdown.js.map +1 -1
  118. package/lib/zudoku.plugin-openapi.js +8 -6
  119. package/lib/zudoku.plugin-openapi.js.map +1 -1
  120. package/package.json +4 -1
  121. package/src/app/demo.tsx +5 -4
  122. package/src/app/main.css +2 -2
  123. package/src/app/main.tsx +3 -1
  124. package/src/app/standalone.tsx +5 -4
  125. package/src/lib/components/DevPortal.tsx +1 -1
  126. package/src/lib/components/Header.tsx +2 -2
  127. package/src/lib/components/Layout.tsx +2 -2
  128. package/src/lib/components/TopNavigation.tsx +5 -5
  129. package/src/lib/components/context/DevPortalProvider.ts +11 -28
  130. package/src/lib/components/context/ThemeContext.tsx +3 -41
  131. package/src/lib/components/context/ThemeProvider.tsx +27 -0
  132. package/src/lib/components/navigation/{SideNavigation.tsx → Sidebar.tsx} +7 -7
  133. package/src/lib/components/navigation/SidebarBadge.tsx +40 -0
  134. package/src/lib/components/navigation/SidebarCategory.tsx +105 -0
  135. package/src/lib/components/navigation/SidebarItem.tsx +96 -0
  136. package/src/lib/components/navigation/{SideNavigationWrapper.tsx → SidebarWrapper.tsx} +1 -1
  137. package/src/lib/components/navigation/utils.ts +120 -0
  138. package/src/lib/core/DevPortalContext.ts +12 -44
  139. package/src/lib/core/plugins.ts +6 -13
  140. package/src/lib/plugins/markdown/MdxPage.tsx +14 -50
  141. package/src/lib/plugins/markdown/generateRoutes.tsx +29 -57
  142. package/src/lib/plugins/openapi/Sidecar.tsx +15 -2
  143. package/src/lib/plugins/openapi/index.tsx +17 -23
  144. package/src/lib/plugins/openapi/interfaces.ts +1 -1
  145. package/src/lib/util/useScrollToAnchor.ts +39 -18
  146. package/dist/lib/components/navigation/SideNavigation.d.ts +0 -1
  147. package/dist/lib/components/navigation/SideNavigation.js +0 -12
  148. package/dist/lib/components/navigation/SideNavigation.js.map +0 -1
  149. package/dist/lib/components/navigation/SideNavigationCategory.d.ts +0 -4
  150. package/dist/lib/components/navigation/SideNavigationCategory.js +0 -26
  151. package/dist/lib/components/navigation/SideNavigationCategory.js.map +0 -1
  152. package/dist/lib/components/navigation/SideNavigationItem.d.ts +0 -9
  153. package/dist/lib/components/navigation/SideNavigationItem.js +0 -44
  154. package/dist/lib/components/navigation/SideNavigationItem.js.map +0 -1
  155. package/dist/lib/components/navigation/SideNavigationWrapper.js.map +0 -1
  156. package/dist/lib/components/navigation/useNavigationCollapsibleState.d.ts +0 -9
  157. package/dist/lib/components/navigation/useNavigationCollapsibleState.js +0 -28
  158. package/dist/lib/components/navigation/useNavigationCollapsibleState.js.map +0 -1
  159. package/dist/lib/components/navigation/util.d.ts +0 -8
  160. package/dist/lib/components/navigation/util.js +0 -15
  161. package/dist/lib/components/navigation/util.js.map +0 -1
  162. package/dist/lib/plugins/openapi/MethodBadge.d.ts +0 -13
  163. package/dist/lib/plugins/openapi/MethodBadge.js +0 -26
  164. package/dist/lib/plugins/openapi/MethodBadge.js.map +0 -1
  165. package/dist/lib/util/traverseNavigation.d.ts +0 -6
  166. package/dist/lib/util/traverseNavigation.js +0 -30
  167. package/dist/lib/util/traverseNavigation.js.map +0 -1
  168. package/lib/AnchorLink-BZcpTwOs.js.map +0 -1
  169. package/lib/DevPortalProvider-BWeAysxF.js.map +0 -1
  170. package/lib/DeveloperHint-DQVwIery.js +0 -10
  171. package/lib/MdxPage-CA1WmW14.js.map +0 -1
  172. package/lib/Route-D70pGn9n.js +0 -13
  173. package/lib/Spinner-Coi7ORUV.js +0 -244
  174. package/lib/Spinner-Coi7ORUV.js.map +0 -1
  175. package/lib/index-Bl6YeerK.js.map +0 -1
  176. package/lib/index-Dt-pU7Vu.js +0 -916
  177. package/lib/index-Dt-pU7Vu.js.map +0 -1
  178. package/lib/jsx-runtime-CJBdjYYx.js +0 -1526
  179. package/lib/jsx-runtime-CJBdjYYx.js.map +0 -1
  180. package/src/lib/components/navigation/SideNavigationCategory.tsx +0 -72
  181. package/src/lib/components/navigation/SideNavigationItem.tsx +0 -148
  182. package/src/lib/components/navigation/useNavigationCollapsibleState.ts +0 -42
  183. package/src/lib/components/navigation/util.ts +0 -38
  184. package/src/lib/plugins/openapi/MethodBadge.tsx +0 -36
  185. package/src/lib/util/traverseNavigation.ts +0 -55
@@ -1,38 +1,39 @@
1
- var ir = Object.defineProperty;
2
- var dt = (t) => {
3
- throw TypeError(t);
1
+ var or = Object.defineProperty;
2
+ var lt = (e) => {
3
+ throw TypeError(e);
4
4
  };
5
- var cr = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var A = (t, e, n) => cr(t, typeof e != "symbol" ? e + "" : e, n), ht = (t, e, n) => e.has(t) || dt("Cannot " + n);
7
- var h = (t, e, n) => (ht(t, e, "read from private field"), n ? n.call(t) : e.get(t)), O = (t, e, n) => e.has(t) ? dt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), b = (t, e, n, r) => (ht(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
- var Ce = (t, e, n, r) => ({
9
- set _(a) {
10
- b(t, e, a, n);
5
+ var ar = (e, t, n) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var _ = (e, t, n) => ar(e, typeof t != "symbol" ? t + "" : t, n), dt = (e, t, n) => t.has(e) || lt("Cannot " + n);
7
+ var h = (e, t, n) => (dt(e, t, "read from private field"), n ? n.call(e) : t.get(e)), O = (e, t, n) => t.has(e) ? lt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), C = (e, t, n, r) => (dt(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
+ var be = (e, t, n, r) => ({
9
+ set _(o) {
10
+ C(e, t, o, n);
11
11
  },
12
12
  get _() {
13
- return h(t, e, r);
13
+ return h(e, t, r);
14
14
  }
15
15
  });
16
- import { H as _t, a as Ge, M as ur, A as lr, u as dr } from "./AnchorLink-BZcpTwOs.js";
17
- import { d as hr, R as pr, N as $e, L as Ee } from "./index-Dt-pU7Vu.js";
18
- import { E as Et, S as fr, a as Se, R as mr } from "./SlotletProvider-B71hNEUL.js";
19
- import { j as o, d as gr, u as J, a as vr, b as xr, O as St } from "./jsx-runtime-CJBdjYYx.js";
20
- import { M as yr, c as wr, a as jt, b as Nt, A as Mr, u as fe, h as br, d as y, e as Cr, F as Pr, D as Rr, C as _r, P as ie, f as qe, g as Er, i as Dt, R as Sr, S as jr, j as Nr, k as Dr, l as It, m as Ir, n as je, o as At, p as Ar, B as Be } from "./Combination-C442XfGG.js";
21
- import { c as me, a as P, C as Or, b as Tr, u as kr, M as Fr, T as Lr, V as Kr, d as He, e as $r, f as Br } from "./Markdown-QsZ-PHET.js";
22
- import * as u from "react";
23
- import Qr, { StrictMode as Ot, createContext as Tt, Component as Ur, createElement as pt, isValidElement as Gr, memo as kt, useMemo as Le, useState as le, useContext as qr, useRef as ge, useEffect as W, Fragment as Hr, forwardRef as zr, Suspense as Vr } from "react";
16
+ import { H as Rt, a as Ue, M as sr, u as ir, A as cr, b as ur } from "./utils-CzT_9Tsn.js";
17
+ import { d as lr, a as dr, R as hr, N as Ge, u as Ne, L as Re, b as fr, c as pr, O as Et } from "./index-7kcHaXD6.js";
18
+ import { E as St, S as mr, a as Ee, R as gr } from "./SlotletProvider-CzMAO73_.js";
19
+ import { j as a } from "./jsx-runtime-B6kdoens.js";
20
+ import { M as vr, c as xr, a as _t, b as jt, A as wr, u as fe, h as yr, d as w, e as br, F as Mr, D as Cr, C as Pr, P as se, f as He, g as Rr, i as Nt, R as Er, S as Sr, j as _r, k as jr, l as Dt, m as Nr, n as Se, o as It, p as Dr, B as $e } from "./Combination-DkycFHkm.js";
21
+ import { c as pe, a as M, C as Ir, b as Ar, u as Or, T as Tr, M as kr, V as Fr, d as qe, e as Lr, f as Kr } from "./Markdown-B_Gax7at.js";
22
+ import * as c from "react";
23
+ import $r, { StrictMode as At, createContext as Ot, Component as Br, createElement as ht, isValidElement as Qr, memo as Tt, useState as ue, useEffect as W, useCallback as Ur, useMemo as Le, useContext as Gr, useRef as De, Fragment as Hr, forwardRef as qr, Suspense as zr } from "react";
24
24
  import { g as ze } from "./_commonjsHelpers-BVfed4GL.js";
25
- import { r as Yr } from "./router-BiRCp01d.js";
26
- import { S as Qe, R as Ft, T as Lt, C as Kt } from "./index-BH-Ub36F.js";
27
- import { S as $t, h as Bt, Q as Xr, n as j, m as ft, a as mt, b as Q, e as Wr, c as Jr, d as Zr, f as ea, o as gt, r as vt, g as ta, i as xt, p as yt, s as na, u as Ve, j as ra, D as aa, k as Ye, l as wt, q as Qt, t as oa, v as sa, w as ia } from "./DevPortalProvider-BWeAysxF.js";
28
- import { c as Ut, P as Ie, R as ca, I as ua, S as la } from "./Spinner-Coi7ORUV.js";
25
+ import { r as Vr } from "./router-BiRCp01d.js";
26
+ import { S as Be, R as Yr, T as Xr, C as Wr } from "./index-DkuZvRNP.js";
27
+ import { S as kt, h as Ft, Q as Jr, n as N, m as ft, a as pt, b as Q, e as Zr, c as eo, d as to, f as no, o as mt, r as gt, g as ro, i as vt, p as xt, s as oo, u as Ve, j as ao, D as so, k as Lt, l as io } from "./DevPortalProvider-CTxoCHIT.js";
28
+ import { j as Ye } from "./joinPath-VeNuJa7y.js";
29
+ import { c as Kt, P as Ie, R as co, I as uo, S as wt, a as lo } from "./Spinner-fF-Xv-gw.js";
29
30
  /**
30
31
  * @license lucide-react v0.378.0 - ISC
31
32
  *
32
33
  * This source code is licensed under the ISC license.
33
34
  * See the LICENSE file in the root directory of this source tree.
34
35
  */
35
- const Xe = me("ChevronRight", [
36
+ const $t = pe("ChevronRight", [
36
37
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
37
38
  ]);
38
39
  /**
@@ -41,7 +42,7 @@ const Xe = me("ChevronRight", [
41
42
  * This source code is licensed under the ISC license.
42
43
  * See the LICENSE file in the root directory of this source tree.
43
44
  */
44
- const da = me("Dot", [
45
+ const ho = pe("Dot", [
45
46
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
46
47
  ]);
47
48
  /**
@@ -50,7 +51,7 @@ const da = me("Dot", [
50
51
  * This source code is licensed under the ISC license.
51
52
  * See the LICENSE file in the root directory of this source tree.
52
53
  */
53
- const ha = me("ExternalLink", [
54
+ const fo = pe("ExternalLink", [
54
55
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
55
56
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
56
57
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -61,7 +62,7 @@ const ha = me("ExternalLink", [
61
62
  * This source code is licensed under the ISC license.
62
63
  * See the LICENSE file in the root directory of this source tree.
63
64
  */
64
- const pa = me("MoonStar", [
65
+ const po = pe("MoonStar", [
65
66
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
66
67
  ["path", { d: "M20 3v4", key: "1olli1" }],
67
68
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -72,7 +73,7 @@ const pa = me("MoonStar", [
72
73
  * This source code is licensed under the ISC license.
73
74
  * See the LICENSE file in the root directory of this source tree.
74
75
  */
75
- const fa = me("Sun", [
76
+ const mo = pe("Sun", [
76
77
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
77
78
  ["path", { d: "M12 2v2", key: "tus03m" }],
78
79
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -83,82 +84,82 @@ const fa = me("Sun", [
83
84
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
84
85
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
85
86
  ]);
86
- function ma({ error: t }) {
87
- return /* @__PURE__ */ o.jsx(Et, { error: t });
87
+ function go({ error: e }) {
88
+ return /* @__PURE__ */ a.jsx(St, { error: e });
88
89
  }
89
- var ve = {};
90
- const ga = /* @__PURE__ */ ze(Yr), va = /* @__PURE__ */ ze(gr), xa = /* @__PURE__ */ ze(hr);
91
- Object.defineProperty(ve, "__esModule", { value: !0 });
92
- var ya = Qr, K = ga, We = va, U = xa;
93
- function wa(t) {
94
- if (t && t.__esModule) return t;
95
- var e = /* @__PURE__ */ Object.create(null);
96
- return t && Object.keys(t).forEach(function(n) {
90
+ var me = {};
91
+ const vo = /* @__PURE__ */ ze(Vr), xo = /* @__PURE__ */ ze(lr), wo = /* @__PURE__ */ ze(dr);
92
+ Object.defineProperty(me, "__esModule", { value: !0 });
93
+ var yo = $r, K = vo, Xe = xo, U = wo;
94
+ function bo(e) {
95
+ if (e && e.__esModule) return e;
96
+ var t = /* @__PURE__ */ Object.create(null);
97
+ return e && Object.keys(e).forEach(function(n) {
97
98
  if (n !== "default") {
98
- var r = Object.getOwnPropertyDescriptor(t, n);
99
- Object.defineProperty(e, n, r.get ? r : {
99
+ var r = Object.getOwnPropertyDescriptor(e, n);
100
+ Object.defineProperty(t, n, r.get ? r : {
100
101
  enumerable: !0,
101
102
  get: function() {
102
- return t[n];
103
+ return e[n];
103
104
  }
104
105
  });
105
106
  }
106
- }), e.default = t, Object.freeze(e);
107
+ }), t.default = e, Object.freeze(t);
107
108
  }
108
- var F = /* @__PURE__ */ wa(ya);
109
- function Ma({
110
- basename: t,
111
- children: e,
109
+ var F = /* @__PURE__ */ bo(yo);
110
+ function Mo({
111
+ basename: e,
112
+ children: t,
112
113
  location: n = "/",
113
114
  future: r
114
115
  }) {
115
116
  typeof n == "string" && (n = U.parsePath(n));
116
- let a = K.Action.Pop, s = {
117
+ let o = K.Action.Pop, s = {
117
118
  pathname: n.pathname || "/",
118
119
  search: n.search || "",
119
120
  hash: n.hash || "",
120
121
  state: n.state != null ? n.state : null,
121
122
  key: n.key || "default"
122
- }, i = Gt();
123
+ }, i = Bt();
123
124
  return /* @__PURE__ */ F.createElement(U.Router, {
124
- basename: t,
125
- children: e,
125
+ basename: e,
126
+ children: t,
126
127
  location: s,
127
- navigationType: a,
128
+ navigationType: o,
128
129
  navigator: i,
129
130
  future: r,
130
131
  static: !0
131
132
  });
132
133
  }
133
- function ba({
134
- context: t,
135
- router: e,
134
+ function Co({
135
+ context: e,
136
+ router: t,
136
137
  hydrate: n = !0,
137
138
  nonce: r
138
139
  }) {
139
- e && t || (process.env.NODE_ENV !== "production" ? K.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : K.UNSAFE_invariant(!1));
140
- let a = {
141
- router: e,
142
- navigator: Gt(),
140
+ t && e || (process.env.NODE_ENV !== "production" ? K.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : K.UNSAFE_invariant(!1));
141
+ let o = {
142
+ router: t,
143
+ navigator: Bt(),
143
144
  static: !0,
144
- staticContext: t,
145
- basename: t.basename || "/"
145
+ staticContext: e,
146
+ basename: e.basename || "/"
146
147
  }, s = /* @__PURE__ */ new Map(), i = "";
147
148
  if (n !== !1) {
148
- let l = {
149
- loaderData: t.loaderData,
150
- actionData: t.actionData,
151
- errors: Pa(t.errors)
149
+ let d = {
150
+ loaderData: e.loaderData,
151
+ actionData: e.actionData,
152
+ errors: Ro(e.errors)
152
153
  };
153
- i = `window.__staticRouterHydrationData = JSON.parse(${Na(JSON.stringify(JSON.stringify(l)))});`;
154
+ i = `window.__staticRouterHydrationData = JSON.parse(${Do(JSON.stringify(JSON.stringify(d)))});`;
154
155
  }
155
156
  let {
156
- state: c
157
- } = a.router;
157
+ state: u
158
+ } = o.router;
158
159
  return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterContext.Provider, {
159
- value: a
160
+ value: o
160
161
  }, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterStateContext.Provider, {
161
- value: c
162
+ value: u
162
163
  }, /* @__PURE__ */ F.createElement(U.UNSAFE_FetchersContext.Provider, {
163
164
  value: s
164
165
  }, /* @__PURE__ */ F.createElement(U.UNSAFE_ViewTransitionContext.Provider, {
@@ -166,18 +167,18 @@ function ba({
166
167
  isTransitioning: !1
167
168
  }
168
169
  }, /* @__PURE__ */ F.createElement(U.Router, {
169
- basename: a.basename,
170
- location: c.location,
171
- navigationType: c.historyAction,
172
- navigator: a.navigator,
173
- static: a.static,
170
+ basename: o.basename,
171
+ location: u.location,
172
+ navigationType: u.historyAction,
173
+ navigator: o.navigator,
174
+ static: o.static,
174
175
  future: {
175
- v7_relativeSplatPath: e.future.v7_relativeSplatPath
176
+ v7_relativeSplatPath: t.future.v7_relativeSplatPath
176
177
  }
177
- }, /* @__PURE__ */ F.createElement(Ca, {
178
- routes: e.routes,
179
- future: e.future,
180
- state: c
178
+ }, /* @__PURE__ */ F.createElement(Po, {
179
+ routes: t.routes,
180
+ future: t.future,
181
+ state: u
181
182
  })))))), i ? /* @__PURE__ */ F.createElement("script", {
182
183
  suppressHydrationWarning: !0,
183
184
  nonce: r,
@@ -186,43 +187,43 @@ function ba({
186
187
  }
187
188
  }) : null);
188
189
  }
189
- function Ca({
190
- routes: t,
191
- future: e,
190
+ function Po({
191
+ routes: e,
192
+ future: t,
192
193
  state: n
193
194
  }) {
194
- return We.UNSAFE_useRoutesImpl(t, void 0, n, e);
195
+ return Xe.UNSAFE_useRoutesImpl(e, void 0, n, t);
195
196
  }
196
- function Pa(t) {
197
- if (!t) return null;
198
- let e = Object.entries(t), n = {};
199
- for (let [r, a] of e)
200
- K.isRouteErrorResponse(a) ? n[r] = {
201
- ...a,
197
+ function Ro(e) {
198
+ if (!e) return null;
199
+ let t = Object.entries(e), n = {};
200
+ for (let [r, o] of t)
201
+ K.isRouteErrorResponse(o) ? n[r] = {
202
+ ...o,
202
203
  __type: "RouteErrorResponse"
203
- } : a instanceof Error ? n[r] = {
204
- message: a.message,
204
+ } : o instanceof Error ? n[r] = {
205
+ message: o.message,
205
206
  __type: "Error",
206
207
  // If this is a subclass (i.e., ReferenceError), send up the type so we
207
208
  // can re-create the same type during hydration.
208
- ...a.name !== "Error" ? {
209
- __subType: a.name
209
+ ...o.name !== "Error" ? {
210
+ __subType: o.name
210
211
  } : {}
211
- } : n[r] = a;
212
+ } : n[r] = o;
212
213
  return n;
213
214
  }
214
- function Gt() {
215
+ function Bt() {
215
216
  return {
216
- createHref: qt,
217
- encodeLocation: Ht,
218
- push(t) {
219
- 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(t)})\` somewhere in your app.`);
217
+ createHref: Qt,
218
+ encodeLocation: Ut,
219
+ push(e) {
220
+ 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.`);
220
221
  },
221
- replace(t) {
222
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)}, { replace: true })\` somewhere in your app.`);
222
+ replace(e) {
223
+ throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
223
224
  },
224
- go(t) {
225
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${t})\` somewhere in your app.`);
225
+ go(e) {
226
+ throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
226
227
  },
227
228
  back() {
228
229
  throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
@@ -232,43 +233,43 @@ function Gt() {
232
233
  }
233
234
  };
234
235
  }
235
- function Ra(t, e) {
236
- return K.createStaticHandler(t, {
237
- ...e,
238
- mapRouteProperties: We.UNSAFE_mapRouteProperties
236
+ function Eo(e, t) {
237
+ return K.createStaticHandler(e, {
238
+ ...t,
239
+ mapRouteProperties: Xe.UNSAFE_mapRouteProperties
239
240
  });
240
241
  }
241
- function _a(t, e, n = {}) {
242
- let r = {}, a = K.UNSAFE_convertRoutesToDataRoutes(t, We.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((c) => {
243
- let l = r[c.route.id] || c.route;
242
+ function So(e, t, n = {}) {
243
+ let r = {}, o = K.UNSAFE_convertRoutesToDataRoutes(e, Xe.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
244
+ let d = r[u.route.id] || u.route;
244
245
  return {
245
- ...c,
246
- route: l
246
+ ...u,
247
+ route: d
247
248
  };
248
- }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
249
+ }), i = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
249
250
  return {
250
251
  get basename() {
251
- return e.basename;
252
+ return t.basename;
252
253
  },
253
254
  get future() {
254
- var c, l;
255
+ var u, d;
255
256
  return {
256
257
  v7_fetcherPersist: !1,
257
258
  v7_normalizeFormMethod: !1,
258
- v7_partialHydration: ((c = n.future) == null ? void 0 : c.v7_partialHydration) === !0,
259
+ v7_partialHydration: ((u = n.future) == null ? void 0 : u.v7_partialHydration) === !0,
259
260
  v7_prependBasename: !1,
260
- v7_relativeSplatPath: ((l = n.future) == null ? void 0 : l.v7_relativeSplatPath) === !0,
261
+ v7_relativeSplatPath: ((d = n.future) == null ? void 0 : d.v7_relativeSplatPath) === !0,
261
262
  v7_skipActionErrorRevalidation: !1
262
263
  };
263
264
  },
264
265
  get state() {
265
266
  return {
266
267
  historyAction: K.Action.Pop,
267
- location: e.location,
268
+ location: t.location,
268
269
  matches: s,
269
- loaderData: e.loaderData,
270
- actionData: e.actionData,
271
- errors: e.errors,
270
+ loaderData: t.loaderData,
271
+ actionData: t.actionData,
272
+ errors: t.errors,
272
273
  initialized: !0,
273
274
  navigation: K.IDLE_NAVIGATION,
274
275
  restoreScrollPosition: null,
@@ -279,7 +280,7 @@ function _a(t, e, n = {}) {
279
280
  };
280
281
  },
281
282
  get routes() {
282
- return a;
283
+ return o;
283
284
  },
284
285
  get window() {
285
286
  },
@@ -301,8 +302,8 @@ function _a(t, e, n = {}) {
301
302
  revalidate() {
302
303
  throw i("revalidate");
303
304
  },
304
- createHref: qt,
305
- encodeLocation: Ht,
305
+ createHref: Qt,
306
+ encodeLocation: Ut,
306
307
  getFetcher() {
307
308
  return K.IDLE_FETCHER;
308
309
  },
@@ -328,501 +329,501 @@ function _a(t, e, n = {}) {
328
329
  }
329
330
  };
330
331
  }
331
- function qt(t) {
332
- return typeof t == "string" ? t : U.createPath(t);
332
+ function Qt(e) {
333
+ return typeof e == "string" ? e : U.createPath(e);
333
334
  }
334
- function Ht(t) {
335
- let e = typeof t == "string" ? t : U.createPath(t);
336
- e = e.replace(/ $/, "%20");
337
- let n = Ea.test(e) ? new URL(e) : new URL(e, "http://localhost");
335
+ function Ut(e) {
336
+ let t = typeof e == "string" ? e : U.createPath(e);
337
+ t = t.replace(/ $/, "%20");
338
+ let n = _o.test(t) ? new URL(t) : new URL(t, "http://localhost");
338
339
  return {
339
340
  pathname: n.pathname,
340
341
  search: n.search,
341
342
  hash: n.hash
342
343
  };
343
344
  }
344
- const Ea = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Sa = {
345
+ const _o = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, jo = {
345
346
  "&": "\\u0026",
346
347
  ">": "\\u003e",
347
348
  "<": "\\u003c",
348
349
  "\u2028": "\\u2028",
349
350
  "\u2029": "\\u2029"
350
- }, ja = /[&><\u2028\u2029]/g;
351
- function Na(t) {
352
- return t.replace(ja, (e) => Sa[e]);
351
+ }, No = /[&><\u2028\u2029]/g;
352
+ function Do(e) {
353
+ return e.replace(No, (t) => jo[t]);
353
354
  }
354
- ve.StaticRouter = Ma;
355
- var Da = ve.StaticRouterProvider = ba;
356
- ve.createStaticHandler = Ra;
357
- ve.createStaticRouter = _a;
358
- const Ia = ({
359
- router: t,
360
- hydrate: e = !1
361
- }) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { children: /* @__PURE__ */ o.jsx(Qe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(pr, { router: t }) }) }) }), Aa = ({
362
- router: t,
363
- context: e,
355
+ me.StaticRouter = Mo;
356
+ var Io = me.StaticRouterProvider = Co;
357
+ me.createStaticHandler = Eo;
358
+ me.createStaticRouter = So;
359
+ const Ao = ({
360
+ router: e,
361
+ hydrate: t = !1
362
+ }) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(Rt, { children: /* @__PURE__ */ a.jsx(Be.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(hr, { router: e }) }) }) }), Oo = ({
363
+ router: e,
364
+ context: t,
364
365
  helmetContext: n
365
- }) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { context: n, children: /* @__PURE__ */ o.jsx(Da, { router: t, context: e }) }) });
366
- var L, Ct, Oa = (Ct = class extends $t {
367
- constructor(e = {}) {
366
+ }) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(Rt, { context: n, children: /* @__PURE__ */ a.jsx(Io, { router: e, context: t }) }) });
367
+ var L, Mt, To = (Mt = class extends kt {
368
+ constructor(t = {}) {
368
369
  super();
369
370
  O(this, L);
370
- this.config = e, b(this, L, /* @__PURE__ */ new Map());
371
+ this.config = t, C(this, L, /* @__PURE__ */ new Map());
371
372
  }
372
- build(e, n, r) {
373
- const a = n.queryKey, s = n.queryHash ?? Bt(a, n);
373
+ build(t, n, r) {
374
+ const o = n.queryKey, s = n.queryHash ?? Ft(o, n);
374
375
  let i = this.get(s);
375
- return i || (i = new Xr({
376
+ return i || (i = new Jr({
376
377
  cache: this,
377
- queryKey: a,
378
+ queryKey: o,
378
379
  queryHash: s,
379
- options: e.defaultQueryOptions(n),
380
+ options: t.defaultQueryOptions(n),
380
381
  state: r,
381
- defaultOptions: e.getQueryDefaults(a)
382
+ defaultOptions: t.getQueryDefaults(o)
382
383
  }), this.add(i)), i;
383
384
  }
384
- add(e) {
385
- h(this, L).has(e.queryHash) || (h(this, L).set(e.queryHash, e), this.notify({
385
+ add(t) {
386
+ h(this, L).has(t.queryHash) || (h(this, L).set(t.queryHash, t), this.notify({
386
387
  type: "added",
387
- query: e
388
+ query: t
388
389
  }));
389
390
  }
390
- remove(e) {
391
- const n = h(this, L).get(e.queryHash);
392
- n && (e.destroy(), n === e && h(this, L).delete(e.queryHash), this.notify({ type: "removed", query: e }));
391
+ remove(t) {
392
+ const n = h(this, L).get(t.queryHash);
393
+ n && (t.destroy(), n === t && h(this, L).delete(t.queryHash), this.notify({ type: "removed", query: t }));
393
394
  }
394
395
  clear() {
395
- j.batch(() => {
396
- this.getAll().forEach((e) => {
397
- this.remove(e);
396
+ N.batch(() => {
397
+ this.getAll().forEach((t) => {
398
+ this.remove(t);
398
399
  });
399
400
  });
400
401
  }
401
- get(e) {
402
- return h(this, L).get(e);
402
+ get(t) {
403
+ return h(this, L).get(t);
403
404
  }
404
405
  getAll() {
405
406
  return [...h(this, L).values()];
406
407
  }
407
- find(e) {
408
- const n = { exact: !0, ...e };
408
+ find(t) {
409
+ const n = { exact: !0, ...t };
409
410
  return this.getAll().find(
410
411
  (r) => ft(n, r)
411
412
  );
412
413
  }
413
- findAll(e = {}) {
414
+ findAll(t = {}) {
414
415
  const n = this.getAll();
415
- return Object.keys(e).length > 0 ? n.filter((r) => ft(e, r)) : n;
416
+ return Object.keys(t).length > 0 ? n.filter((r) => ft(t, r)) : n;
416
417
  }
417
- notify(e) {
418
- j.batch(() => {
418
+ notify(t) {
419
+ N.batch(() => {
419
420
  this.listeners.forEach((n) => {
420
- n(e);
421
+ n(t);
421
422
  });
422
423
  });
423
424
  }
424
425
  onFocus() {
425
- j.batch(() => {
426
- this.getAll().forEach((e) => {
427
- e.onFocus();
426
+ N.batch(() => {
427
+ this.getAll().forEach((t) => {
428
+ t.onFocus();
428
429
  });
429
430
  });
430
431
  }
431
432
  onOnline() {
432
- j.batch(() => {
433
- this.getAll().forEach((e) => {
434
- e.onOnline();
433
+ N.batch(() => {
434
+ this.getAll().forEach((t) => {
435
+ t.onOnline();
435
436
  });
436
437
  });
437
438
  }
438
- }, L = new WeakMap(), Ct), S, pe, Pt, Ta = (Pt = class extends $t {
439
- constructor(e = {}) {
439
+ }, L = new WeakMap(), Mt), j, he, Ct, ko = (Ct = class extends kt {
440
+ constructor(t = {}) {
440
441
  super();
441
- O(this, S);
442
- O(this, pe);
443
- this.config = e, b(this, S, /* @__PURE__ */ new Map()), b(this, pe, Date.now());
442
+ O(this, j);
443
+ O(this, he);
444
+ this.config = t, C(this, j, /* @__PURE__ */ new Map()), C(this, he, Date.now());
444
445
  }
445
- build(e, n, r) {
446
- const a = new yr({
446
+ build(t, n, r) {
447
+ const o = new vr({
447
448
  mutationCache: this,
448
- mutationId: ++Ce(this, pe)._,
449
- options: e.defaultMutationOptions(n),
449
+ mutationId: ++be(this, he)._,
450
+ options: t.defaultMutationOptions(n),
450
451
  state: r
451
452
  });
452
- return this.add(a), a;
453
+ return this.add(o), o;
453
454
  }
454
- add(e) {
455
- const n = Pe(e), r = h(this, S).get(n) ?? [];
456
- r.push(e), h(this, S).set(n, r), this.notify({ type: "added", mutation: e });
455
+ add(t) {
456
+ const n = Me(t), r = h(this, j).get(n) ?? [];
457
+ r.push(t), h(this, j).set(n, r), this.notify({ type: "added", mutation: t });
457
458
  }
458
- remove(e) {
459
+ remove(t) {
459
460
  var r;
460
- const n = Pe(e);
461
- if (h(this, S).has(n)) {
462
- const a = (r = h(this, S).get(n)) == null ? void 0 : r.filter((s) => s !== e);
463
- a && (a.length === 0 ? h(this, S).delete(n) : h(this, S).set(n, a));
461
+ const n = Me(t);
462
+ if (h(this, j).has(n)) {
463
+ const o = (r = h(this, j).get(n)) == null ? void 0 : r.filter((s) => s !== t);
464
+ o && (o.length === 0 ? h(this, j).delete(n) : h(this, j).set(n, o));
464
465
  }
465
- this.notify({ type: "removed", mutation: e });
466
+ this.notify({ type: "removed", mutation: t });
466
467
  }
467
- canRun(e) {
468
+ canRun(t) {
468
469
  var r;
469
- const n = (r = h(this, S).get(Pe(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
470
- return !n || n === e;
470
+ const n = (r = h(this, j).get(Me(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
471
+ return !n || n === t;
471
472
  }
472
- runNext(e) {
473
+ runNext(t) {
473
474
  var r;
474
- const n = (r = h(this, S).get(Pe(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
475
+ const n = (r = h(this, j).get(Me(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
475
476
  return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
476
477
  }
477
478
  clear() {
478
- j.batch(() => {
479
- this.getAll().forEach((e) => {
480
- this.remove(e);
479
+ N.batch(() => {
480
+ this.getAll().forEach((t) => {
481
+ this.remove(t);
481
482
  });
482
483
  });
483
484
  }
484
485
  getAll() {
485
- return [...h(this, S).values()].flat();
486
+ return [...h(this, j).values()].flat();
486
487
  }
487
- find(e) {
488
- const n = { exact: !0, ...e };
488
+ find(t) {
489
+ const n = { exact: !0, ...t };
489
490
  return this.getAll().find(
490
- (r) => mt(n, r)
491
+ (r) => pt(n, r)
491
492
  );
492
493
  }
493
- findAll(e = {}) {
494
- return this.getAll().filter((n) => mt(e, n));
494
+ findAll(t = {}) {
495
+ return this.getAll().filter((n) => pt(t, n));
495
496
  }
496
- notify(e) {
497
- j.batch(() => {
497
+ notify(t) {
498
+ N.batch(() => {
498
499
  this.listeners.forEach((n) => {
499
- n(e);
500
+ n(t);
500
501
  });
501
502
  });
502
503
  }
503
504
  resumePausedMutations() {
504
- const e = this.getAll().filter((n) => n.state.isPaused);
505
- return j.batch(
505
+ const t = this.getAll().filter((n) => n.state.isPaused);
506
+ return N.batch(
506
507
  () => Promise.all(
507
- e.map((n) => n.continue().catch(Q))
508
+ t.map((n) => n.continue().catch(Q))
508
509
  )
509
510
  );
510
511
  }
511
- }, S = new WeakMap(), pe = new WeakMap(), Pt);
512
- function Pe(t) {
513
- var e;
514
- return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
512
+ }, j = new WeakMap(), he = new WeakMap(), Ct);
513
+ function Me(e) {
514
+ var t;
515
+ return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
515
516
  }
516
- function ka(t) {
517
+ function Fo(e) {
517
518
  return {
518
- onFetch: (e, n) => {
519
+ onFetch: (t, n) => {
519
520
  const r = async () => {
520
- var x, R, N, _, D;
521
- const a = e.options, s = (N = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : N.direction, i = ((_ = e.state.data) == null ? void 0 : _.pages) || [], c = ((D = e.state.data) == null ? void 0 : D.pageParams) || [], l = { pages: [], pageParams: [] };
522
- let p = !1;
523
- const f = (w) => {
524
- Object.defineProperty(w, "signal", {
521
+ var x, R, D, E, I;
522
+ const o = t.options, s = (D = (R = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : D.direction, i = ((E = t.state.data) == null ? void 0 : E.pages) || [], u = ((I = t.state.data) == null ? void 0 : I.pageParams) || [], d = { pages: [], pageParams: [] };
523
+ let m = !1;
524
+ const f = (y) => {
525
+ Object.defineProperty(y, "signal", {
525
526
  enumerable: !0,
526
- get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
527
- p = !0;
528
- }), e.signal)
527
+ get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
528
+ m = !0;
529
+ }), t.signal)
529
530
  });
530
- }, d = Wr(e.options, e.fetchOptions), g = async (w, E, $) => {
531
- if (p)
531
+ }, l = Zr(t.options, t.fetchOptions), p = async (y, S, $) => {
532
+ if (m)
532
533
  return Promise.reject();
533
- if (E == null && w.pages.length)
534
- return Promise.resolve(w);
534
+ if (S == null && y.pages.length)
535
+ return Promise.resolve(y);
535
536
  const Y = {
536
- queryKey: e.queryKey,
537
- pageParam: E,
537
+ queryKey: t.queryKey,
538
+ pageParam: S,
538
539
  direction: $ ? "backward" : "forward",
539
- meta: e.options.meta
540
+ meta: t.options.meta
540
541
  };
541
542
  f(Y);
542
- const ee = await d(
543
+ const Z = await l(
543
544
  Y
544
- ), { maxPages: Me } = e.options, X = $ ? Jr : Zr;
545
+ ), { maxPages: we } = t.options, X = $ ? eo : to;
545
546
  return {
546
- pages: X(w.pages, ee, Me),
547
- pageParams: X(w.pageParams, E, Me)
547
+ pages: X(y.pages, Z, we),
548
+ pageParams: X(y.pageParams, S, we)
548
549
  };
549
550
  };
550
551
  let v;
551
552
  if (s && i.length) {
552
- const w = s === "backward", E = w ? Fa : Mt, $ = {
553
+ const y = s === "backward", S = y ? Lo : yt, $ = {
553
554
  pages: i,
554
- pageParams: c
555
- }, Y = E(a, $);
556
- v = await g($, Y, w);
555
+ pageParams: u
556
+ }, Y = S(o, $);
557
+ v = await p($, Y, y);
557
558
  } else {
558
- v = await g(
559
- l,
560
- c[0] ?? a.initialPageParam
559
+ v = await p(
560
+ d,
561
+ u[0] ?? o.initialPageParam
561
562
  );
562
- const w = t ?? i.length;
563
- for (let E = 1; E < w; E++) {
564
- const $ = Mt(a, v);
565
- v = await g(v, $);
563
+ const y = e ?? i.length;
564
+ for (let S = 1; S < y; S++) {
565
+ const $ = yt(o, v);
566
+ v = await p(v, $);
566
567
  }
567
568
  }
568
569
  return v;
569
570
  };
570
- e.options.persister ? e.fetchFn = () => {
571
- var a, s;
572
- return (s = (a = e.options).persister) == null ? void 0 : s.call(
573
- a,
571
+ t.options.persister ? t.fetchFn = () => {
572
+ var o, s;
573
+ return (s = (o = t.options).persister) == null ? void 0 : s.call(
574
+ o,
574
575
  r,
575
576
  {
576
- queryKey: e.queryKey,
577
- meta: e.options.meta,
578
- signal: e.signal
577
+ queryKey: t.queryKey,
578
+ meta: t.options.meta,
579
+ signal: t.signal
579
580
  },
580
581
  n
581
582
  );
582
- } : e.fetchFn = r;
583
+ } : t.fetchFn = r;
583
584
  }
584
585
  };
585
586
  }
586
- function Mt(t, { pages: e, pageParams: n }) {
587
- const r = e.length - 1;
588
- return t.getNextPageParam(
589
- e[r],
590
- e,
587
+ function yt(e, { pages: t, pageParams: n }) {
588
+ const r = t.length - 1;
589
+ return e.getNextPageParam(
590
+ t[r],
591
+ t,
591
592
  n[r],
592
593
  n
593
594
  );
594
595
  }
595
- function Fa(t, { pages: e, pageParams: n }) {
596
+ function Lo(e, { pages: t, pageParams: n }) {
596
597
  var r;
597
- return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
598
- t,
599
- e[0],
598
+ return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
600
599
  e,
600
+ t[0],
601
+ t,
601
602
  n[0],
602
603
  n
603
604
  );
604
605
  }
605
- var M, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
606
- constructor(t = {}) {
607
- O(this, M);
608
- O(this, q);
606
+ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
607
+ constructor(e = {}) {
608
+ O(this, b);
609
609
  O(this, H);
610
+ O(this, q);
611
+ O(this, ne);
610
612
  O(this, re);
611
- O(this, ae);
612
613
  O(this, z);
613
614
  O(this, oe);
614
- O(this, se);
615
- b(this, M, t.queryCache || new Oa()), b(this, q, t.mutationCache || new Ta()), b(this, H, t.defaultOptions || {}), b(this, re, /* @__PURE__ */ new Map()), b(this, ae, /* @__PURE__ */ new Map()), b(this, z, 0);
615
+ O(this, ae);
616
+ C(this, b, e.queryCache || new To()), C(this, H, e.mutationCache || new ko()), C(this, q, e.defaultOptions || {}), C(this, ne, /* @__PURE__ */ new Map()), C(this, re, /* @__PURE__ */ new Map()), C(this, z, 0);
616
617
  }
617
618
  mount() {
618
- Ce(this, z)._++, h(this, z) === 1 && (b(this, oe, ea.subscribe(async (t) => {
619
- t && (await this.resumePausedMutations(), h(this, M).onFocus());
620
- })), b(this, se, gt.subscribe(async (t) => {
621
- t && (await this.resumePausedMutations(), h(this, M).onOnline());
619
+ be(this, z)._++, h(this, z) === 1 && (C(this, oe, no.subscribe(async (e) => {
620
+ e && (await this.resumePausedMutations(), h(this, b).onFocus());
621
+ })), C(this, ae, mt.subscribe(async (e) => {
622
+ e && (await this.resumePausedMutations(), h(this, b).onOnline());
622
623
  })));
623
624
  }
624
625
  unmount() {
625
- var t, e;
626
- Ce(this, z)._--, h(this, z) === 0 && ((t = h(this, oe)) == null || t.call(this), b(this, oe, void 0), (e = h(this, se)) == null || e.call(this), b(this, se, void 0));
626
+ var e, t;
627
+ be(this, z)._--, h(this, z) === 0 && ((e = h(this, oe)) == null || e.call(this), C(this, oe, void 0), (t = h(this, ae)) == null || t.call(this), C(this, ae, void 0));
627
628
  }
628
- isFetching(t) {
629
- return h(this, M).findAll({ ...t, fetchStatus: "fetching" }).length;
629
+ isFetching(e) {
630
+ return h(this, b).findAll({ ...e, fetchStatus: "fetching" }).length;
630
631
  }
631
- isMutating(t) {
632
- return h(this, q).findAll({ ...t, status: "pending" }).length;
632
+ isMutating(e) {
633
+ return h(this, H).findAll({ ...e, status: "pending" }).length;
633
634
  }
634
- getQueryData(t) {
635
+ getQueryData(e) {
635
636
  var n;
636
- const e = this.defaultQueryOptions({ queryKey: t });
637
- return (n = h(this, M).get(e.queryHash)) == null ? void 0 : n.state.data;
637
+ const t = this.defaultQueryOptions({ queryKey: e });
638
+ return (n = h(this, b).get(t.queryHash)) == null ? void 0 : n.state.data;
638
639
  }
639
- ensureQueryData(t) {
640
- const e = this.getQueryData(t.queryKey);
641
- if (e === void 0)
642
- return this.fetchQuery(t);
640
+ ensureQueryData(e) {
641
+ const t = this.getQueryData(e.queryKey);
642
+ if (t === void 0)
643
+ return this.fetchQuery(e);
643
644
  {
644
- const n = this.defaultQueryOptions(t), r = h(this, M).build(this, n);
645
- return t.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
645
+ const n = this.defaultQueryOptions(e), r = h(this, b).build(this, n);
646
+ return e.revalidateIfStale && r.isStaleByTime(gt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
646
647
  }
647
648
  }
648
- getQueriesData(t) {
649
- return h(this, M).findAll(t).map(({ queryKey: e, state: n }) => {
649
+ getQueriesData(e) {
650
+ return h(this, b).findAll(e).map(({ queryKey: t, state: n }) => {
650
651
  const r = n.data;
651
- return [e, r];
652
+ return [t, r];
652
653
  });
653
654
  }
654
- setQueryData(t, e, n) {
655
- const r = this.defaultQueryOptions({ queryKey: t }), a = h(this, M).get(
655
+ setQueryData(e, t, n) {
656
+ const r = this.defaultQueryOptions({ queryKey: e }), o = h(this, b).get(
656
657
  r.queryHash
657
- ), s = a == null ? void 0 : a.state.data, i = ta(e, s);
658
+ ), s = o == null ? void 0 : o.state.data, i = ro(t, s);
658
659
  if (i !== void 0)
659
- return h(this, M).build(this, r).setData(i, { ...n, manual: !0 });
660
+ return h(this, b).build(this, r).setData(i, { ...n, manual: !0 });
660
661
  }
661
- setQueriesData(t, e, n) {
662
- return j.batch(
663
- () => h(this, M).findAll(t).map(({ queryKey: r }) => [
662
+ setQueriesData(e, t, n) {
663
+ return N.batch(
664
+ () => h(this, b).findAll(e).map(({ queryKey: r }) => [
664
665
  r,
665
- this.setQueryData(r, e, n)
666
+ this.setQueryData(r, t, n)
666
667
  ])
667
668
  );
668
669
  }
669
- getQueryState(t) {
670
+ getQueryState(e) {
670
671
  var n;
671
- const e = this.defaultQueryOptions({ queryKey: t });
672
- return (n = h(this, M).get(e.queryHash)) == null ? void 0 : n.state;
673
- }
674
- removeQueries(t) {
675
- const e = h(this, M);
676
- j.batch(() => {
677
- e.findAll(t).forEach((n) => {
678
- e.remove(n);
672
+ const t = this.defaultQueryOptions({ queryKey: e });
673
+ return (n = h(this, b).get(t.queryHash)) == null ? void 0 : n.state;
674
+ }
675
+ removeQueries(e) {
676
+ const t = h(this, b);
677
+ N.batch(() => {
678
+ t.findAll(e).forEach((n) => {
679
+ t.remove(n);
679
680
  });
680
681
  });
681
682
  }
682
- resetQueries(t, e) {
683
- const n = h(this, M), r = {
683
+ resetQueries(e, t) {
684
+ const n = h(this, b), r = {
684
685
  type: "active",
685
- ...t
686
+ ...e
686
687
  };
687
- return j.batch(() => (n.findAll(t).forEach((a) => {
688
- a.reset();
689
- }), this.refetchQueries(r, e)));
688
+ return N.batch(() => (n.findAll(e).forEach((o) => {
689
+ o.reset();
690
+ }), this.refetchQueries(r, t)));
690
691
  }
691
- cancelQueries(t = {}, e = {}) {
692
- const n = { revert: !0, ...e }, r = j.batch(
693
- () => h(this, M).findAll(t).map((a) => a.cancel(n))
692
+ cancelQueries(e = {}, t = {}) {
693
+ const n = { revert: !0, ...t }, r = N.batch(
694
+ () => h(this, b).findAll(e).map((o) => o.cancel(n))
694
695
  );
695
696
  return Promise.all(r).then(Q).catch(Q);
696
697
  }
697
- invalidateQueries(t = {}, e = {}) {
698
- return j.batch(() => {
699
- if (h(this, M).findAll(t).forEach((r) => {
698
+ invalidateQueries(e = {}, t = {}) {
699
+ return N.batch(() => {
700
+ if (h(this, b).findAll(e).forEach((r) => {
700
701
  r.invalidate();
701
- }), t.refetchType === "none")
702
+ }), e.refetchType === "none")
702
703
  return Promise.resolve();
703
704
  const n = {
704
- ...t,
705
- type: t.refetchType ?? t.type ?? "active"
705
+ ...e,
706
+ type: e.refetchType ?? e.type ?? "active"
706
707
  };
707
- return this.refetchQueries(n, e);
708
+ return this.refetchQueries(n, t);
708
709
  });
709
710
  }
710
- refetchQueries(t = {}, e) {
711
+ refetchQueries(e = {}, t) {
711
712
  const n = {
712
- ...e,
713
- cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
714
- }, r = j.batch(
715
- () => h(this, M).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
716
- let s = a.fetch(void 0, n);
717
- return n.throwOnError || (s = s.catch(Q)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
713
+ ...t,
714
+ cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
715
+ }, r = N.batch(
716
+ () => h(this, b).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
717
+ let s = o.fetch(void 0, n);
718
+ return n.throwOnError || (s = s.catch(Q)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
718
719
  })
719
720
  );
720
721
  return Promise.all(r).then(Q);
721
722
  }
722
- fetchQuery(t) {
723
- const e = this.defaultQueryOptions(t);
724
- e.retry === void 0 && (e.retry = !1);
725
- const n = h(this, M).build(this, e);
723
+ fetchQuery(e) {
724
+ const t = this.defaultQueryOptions(e);
725
+ t.retry === void 0 && (t.retry = !1);
726
+ const n = h(this, b).build(this, t);
726
727
  return n.isStaleByTime(
727
- vt(e.staleTime, n)
728
- ) ? n.fetch(e) : Promise.resolve(n.state.data);
728
+ gt(t.staleTime, n)
729
+ ) ? n.fetch(t) : Promise.resolve(n.state.data);
729
730
  }
730
- prefetchQuery(t) {
731
- return this.fetchQuery(t).then(Q).catch(Q);
731
+ prefetchQuery(e) {
732
+ return this.fetchQuery(e).then(Q).catch(Q);
732
733
  }
733
- fetchInfiniteQuery(t) {
734
- return t.behavior = ka(t.pages), this.fetchQuery(t);
734
+ fetchInfiniteQuery(e) {
735
+ return e.behavior = Fo(e.pages), this.fetchQuery(e);
735
736
  }
736
- prefetchInfiniteQuery(t) {
737
- return this.fetchInfiniteQuery(t).then(Q).catch(Q);
737
+ prefetchInfiniteQuery(e) {
738
+ return this.fetchInfiniteQuery(e).then(Q).catch(Q);
738
739
  }
739
740
  resumePausedMutations() {
740
- return gt.isOnline() ? h(this, q).resumePausedMutations() : Promise.resolve();
741
+ return mt.isOnline() ? h(this, H).resumePausedMutations() : Promise.resolve();
741
742
  }
742
743
  getQueryCache() {
743
- return h(this, M);
744
+ return h(this, b);
744
745
  }
745
746
  getMutationCache() {
746
- return h(this, q);
747
+ return h(this, H);
747
748
  }
748
749
  getDefaultOptions() {
749
- return h(this, H);
750
+ return h(this, q);
750
751
  }
751
- setDefaultOptions(t) {
752
- b(this, H, t);
752
+ setDefaultOptions(e) {
753
+ C(this, q, e);
753
754
  }
754
- setQueryDefaults(t, e) {
755
- h(this, re).set(xt(t), {
756
- queryKey: t,
757
- defaultOptions: e
755
+ setQueryDefaults(e, t) {
756
+ h(this, ne).set(vt(e), {
757
+ queryKey: e,
758
+ defaultOptions: t
758
759
  });
759
760
  }
760
- getQueryDefaults(t) {
761
- const e = [...h(this, re).values()];
761
+ getQueryDefaults(e) {
762
+ const t = [...h(this, ne).values()];
762
763
  let n = {};
763
- return e.forEach((r) => {
764
- yt(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
764
+ return t.forEach((r) => {
765
+ xt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
765
766
  }), n;
766
767
  }
767
- setMutationDefaults(t, e) {
768
- h(this, ae).set(xt(t), {
769
- mutationKey: t,
770
- defaultOptions: e
768
+ setMutationDefaults(e, t) {
769
+ h(this, re).set(vt(e), {
770
+ mutationKey: e,
771
+ defaultOptions: t
771
772
  });
772
773
  }
773
- getMutationDefaults(t) {
774
- const e = [...h(this, ae).values()];
774
+ getMutationDefaults(e) {
775
+ const t = [...h(this, re).values()];
775
776
  let n = {};
776
- return e.forEach((r) => {
777
- yt(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
777
+ return t.forEach((r) => {
778
+ xt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
778
779
  }), n;
779
780
  }
780
- defaultQueryOptions(t) {
781
- if (t._defaulted)
782
- return t;
783
- const e = {
784
- ...h(this, H).queries,
785
- ...this.getQueryDefaults(t.queryKey),
786
- ...t,
781
+ defaultQueryOptions(e) {
782
+ if (e._defaulted)
783
+ return e;
784
+ const t = {
785
+ ...h(this, q).queries,
786
+ ...this.getQueryDefaults(e.queryKey),
787
+ ...e,
787
788
  _defaulted: !0
788
789
  };
789
- return e.queryHash || (e.queryHash = Bt(
790
- e.queryKey,
791
- e
792
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === na && (e.enabled = !1), e;
790
+ return t.queryHash || (t.queryHash = Ft(
791
+ t.queryKey,
792
+ t
793
+ )), 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 === oo && (t.enabled = !1), t;
793
794
  }
794
- defaultMutationOptions(t) {
795
- return t != null && t._defaulted ? t : {
796
- ...h(this, H).mutations,
797
- ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
798
- ...t,
795
+ defaultMutationOptions(e) {
796
+ return e != null && e._defaulted ? e : {
797
+ ...h(this, q).mutations,
798
+ ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
799
+ ...e,
799
800
  _defaulted: !0
800
801
  };
801
802
  }
802
803
  clear() {
803
- h(this, M).clear(), h(this, q).clear();
804
+ h(this, b).clear(), h(this, H).clear();
804
805
  }
805
- }, M = new WeakMap(), q = new WeakMap(), H = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), z = new WeakMap(), oe = new WeakMap(), se = new WeakMap(), Rt);
806
- const Ka = Tt(null), Ke = {
806
+ }, b = new WeakMap(), H = new WeakMap(), q = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), z = new WeakMap(), oe = new WeakMap(), ae = new WeakMap(), Pt);
807
+ const $o = Ot(null), Ke = {
807
808
  didCatch: !1,
808
809
  error: null
809
810
  };
810
- class $a extends Ur {
811
- constructor(e) {
812
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ke;
811
+ class Bo extends Br {
812
+ constructor(t) {
813
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ke;
813
814
  }
814
- static getDerivedStateFromError(e) {
815
+ static getDerivedStateFromError(t) {
815
816
  return {
816
817
  didCatch: !0,
817
- error: e
818
+ error: t
818
819
  };
819
820
  }
820
821
  resetErrorBoundary() {
821
822
  const {
822
- error: e
823
+ error: t
823
824
  } = this.state;
824
- if (e !== null) {
825
- for (var n, r, a = arguments.length, s = new Array(a), i = 0; i < a; i++)
825
+ if (t !== null) {
826
+ for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
826
827
  s[i] = arguments[i];
827
828
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
828
829
  args: s,
@@ -830,144 +831,145 @@ class $a extends Ur {
830
831
  }), this.setState(Ke);
831
832
  }
832
833
  }
833
- componentDidCatch(e, n) {
834
- var r, a;
835
- (r = (a = this.props).onError) === null || r === void 0 || r.call(a, e, n);
834
+ componentDidCatch(t, n) {
835
+ var r, o;
836
+ (r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
836
837
  }
837
- componentDidUpdate(e, n) {
838
+ componentDidUpdate(t, n) {
838
839
  const {
839
840
  didCatch: r
840
841
  } = this.state, {
841
- resetKeys: a
842
+ resetKeys: o
842
843
  } = this.props;
843
- if (r && n.error !== null && Ba(e.resetKeys, a)) {
844
+ if (r && n.error !== null && Qo(t.resetKeys, o)) {
844
845
  var s, i;
845
846
  (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
846
- next: a,
847
- prev: e.resetKeys,
847
+ next: o,
848
+ prev: t.resetKeys,
848
849
  reason: "keys"
849
850
  }), this.setState(Ke);
850
851
  }
851
852
  }
852
853
  render() {
853
854
  const {
854
- children: e,
855
+ children: t,
855
856
  fallbackRender: n,
856
857
  FallbackComponent: r,
857
- fallback: a
858
+ fallback: o
858
859
  } = this.props, {
859
860
  didCatch: s,
860
861
  error: i
861
862
  } = this.state;
862
- let c = e;
863
+ let u = t;
863
864
  if (s) {
864
- const l = {
865
+ const d = {
865
866
  error: i,
866
867
  resetErrorBoundary: this.resetErrorBoundary
867
868
  };
868
869
  if (typeof n == "function")
869
- c = n(l);
870
+ u = n(d);
870
871
  else if (r)
871
- c = pt(r, l);
872
- else if (a === null || Gr(a))
873
- c = a;
872
+ u = ht(r, d);
873
+ else if (o === null || Qr(o))
874
+ u = o;
874
875
  else
875
876
  throw i;
876
877
  }
877
- return pt(Ka.Provider, {
878
+ return ht($o.Provider, {
878
879
  value: {
879
880
  didCatch: s,
880
881
  error: i,
881
882
  resetErrorBoundary: this.resetErrorBoundary
882
883
  }
883
- }, c);
884
+ }, u);
884
885
  }
885
886
  }
886
- function Ba() {
887
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
888
- return t.length !== e.length || t.some((n, r) => !Object.is(n, e[r]));
887
+ function Qo() {
888
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
889
+ return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
889
890
  }
890
- const Qa = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Ua = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Ga = (t) => "initialize" in t && typeof t.initialize == "function", qa = (t) => "getHead" in t && typeof t.getHead == "function", Ha = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", za = (t) => "getIdentities" in t && typeof t.getIdentities == "function", zt = new La();
891
- class Va {
892
- constructor(e) {
893
- A(this, "plugins", []);
894
- A(this, "navigation");
895
- A(this, "meta");
896
- A(this, "page");
897
- A(this, "authentication");
898
- A(this, "navigationPlugins");
899
- A(this, "initialize", async ({
900
- navigate: e
891
+ const Uo = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Go = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Ho = (e) => "initialize" in e && typeof e.initialize == "function", qo = (e) => "getHead" in e && typeof e.getHead == "function", zo = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Vo = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Gt = new Ko();
892
+ class Yo {
893
+ constructor(t) {
894
+ _(this, "plugins");
895
+ _(this, "sidebars");
896
+ _(this, "topNavigation");
897
+ _(this, "meta");
898
+ _(this, "page");
899
+ _(this, "authentication");
900
+ _(this, "navigationPlugins");
901
+ _(this, "initialize", async ({
902
+ navigate: t
901
903
  }) => {
902
904
  await Promise.all(
903
- this.plugins.filter(Ga).map((n) => {
905
+ this.plugins.filter(Ho).map((n) => {
904
906
  var r;
905
- return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: e });
907
+ return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: t });
906
908
  })
907
909
  );
908
910
  });
909
- A(this, "invalidateCache", async (e) => {
910
- await zt.invalidateQueries({ queryKey: e });
911
+ _(this, "invalidateCache", async (t) => {
912
+ await Gt.invalidateQueries({ queryKey: t });
911
913
  });
912
- A(this, "getApiIdentities", async () => (await Promise.all(
913
- this.plugins.filter(za).map((n) => n.getIdentities(this))
914
+ _(this, "getApiIdentities", async () => (await Promise.all(
915
+ this.plugins.filter(Vo).map((n) => n.getIdentities(this))
914
916
  )).flat());
915
- A(this, "getNavigation", async (e) => (await Promise.all(
917
+ _(this, "getPluginNavigation", async (t) => (await Promise.all(
916
918
  this.navigationPlugins.map(
917
- async (r) => {
918
- var a;
919
- return (a = r.getNavigation) == null ? void 0 : a.call(r, e);
919
+ (r) => {
920
+ var o;
921
+ return (o = r.getNavigation) == null ? void 0 : o.call(r, Ye(t));
920
922
  }
921
923
  )
922
924
  )).flatMap((r) => r ?? []));
923
- A(this, "signRequest", async (e) => {
925
+ _(this, "signRequest", async (t) => {
924
926
  if (!this.authentication)
925
927
  throw new Error("No authentication provider configured");
926
928
  const n = await this.authentication.getAccessToken();
927
- return e.headers.set("Authorization", `Bearer ${n}`), e;
929
+ return t.headers.set("Authorization", `Bearer ${n}`), t;
928
930
  });
929
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ua), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
931
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Go), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
930
932
  }
931
933
  }
932
- function Ya({ error: t, resetErrorBoundary: e }) {
933
- return /* @__PURE__ */ o.jsx(Et, { error: t });
934
+ function Xo({ error: e, resetErrorBoundary: t }) {
935
+ return /* @__PURE__ */ a.jsx(St, { error: e });
934
936
  }
935
- const Re = globalThis;
936
- (!Re.requestIdleCallback || !Re.cancelIdleCallback) && (Re.requestIdleCallback = (t) => setTimeout(t, 1), Re.cancelIdleCallback = clearTimeout);
937
- var Ue = ["Enter", " "], Xa = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], Wa = [...Xa, ...Vt], Ja = {
938
- ltr: [...Ue, "ArrowRight"],
939
- rtl: [...Ue, "ArrowLeft"]
940
- }, Za = {
937
+ const Ce = globalThis;
938
+ (!Ce.requestIdleCallback || !Ce.cancelIdleCallback) && (Ce.requestIdleCallback = (e) => setTimeout(e, 1), Ce.cancelIdleCallback = clearTimeout);
939
+ var Qe = ["Enter", " "], Wo = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp", "PageDown", "End"], Jo = [...Wo, ...Ht], Zo = {
940
+ ltr: [...Qe, "ArrowRight"],
941
+ rtl: [...Qe, "ArrowLeft"]
942
+ }, ea = {
941
943
  ltr: ["ArrowLeft"],
942
944
  rtl: ["ArrowRight"]
943
- }, xe = "Menu", [de, eo, to] = wr(xe), [Z, Yt] = jt(xe, [
944
- to,
945
- Nt,
946
- Ut
947
- ]), ye = Nt(), Xt = Ut(), [Wt, V] = Z(xe), [no, we] = Z(xe), Jt = (t) => {
948
- const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, c = ye(e), [l, p] = u.useState(null), f = u.useRef(!1), d = qe(s), g = Dr(a);
949
- return u.useEffect(() => {
945
+ }, ge = "Menu", [le, ta, na] = xr(ge), [J, qt] = _t(ge, [
946
+ na,
947
+ jt,
948
+ Kt
949
+ ]), ve = jt(), zt = Kt(), [Vt, V] = J(ge), [ra, xe] = J(ge), Yt = (e) => {
950
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ve(t), [d, m] = c.useState(null), f = c.useRef(!1), l = He(s), p = jr(o);
951
+ return c.useEffect(() => {
950
952
  const v = () => {
951
953
  f.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
952
954
  }, x = () => f.current = !1;
953
955
  return document.addEventListener("keydown", v, { capture: !0 }), () => {
954
956
  document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
955
957
  };
956
- }, []), /* @__PURE__ */ o.jsx(It, { ...c, children: /* @__PURE__ */ o.jsx(
957
- Wt,
958
+ }, []), /* @__PURE__ */ a.jsx(Dt, { ...u, children: /* @__PURE__ */ a.jsx(
959
+ Vt,
958
960
  {
959
- scope: e,
961
+ scope: t,
960
962
  open: n,
961
- onOpenChange: d,
962
- content: l,
963
- onContentChange: p,
964
- children: /* @__PURE__ */ o.jsx(
965
- no,
963
+ onOpenChange: l,
964
+ content: d,
965
+ onContentChange: m,
966
+ children: /* @__PURE__ */ a.jsx(
967
+ ra,
966
968
  {
967
- scope: e,
968
- onClose: u.useCallback(() => d(!1), [d]),
969
+ scope: t,
970
+ onClose: c.useCallback(() => l(!1), [l]),
969
971
  isUsingKeyboardRef: f,
970
- dir: g,
972
+ dir: p,
971
973
  modal: i,
972
974
  children: r
973
975
  }
@@ -975,42 +977,42 @@ var Ue = ["Enter", " "], Xa = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
975
977
  }
976
978
  ) });
977
979
  };
978
- Jt.displayName = xe;
979
- var ro = "MenuAnchor", Je = u.forwardRef(
980
- (t, e) => {
981
- const { __scopeMenu: n, ...r } = t, a = ye(n);
982
- return /* @__PURE__ */ o.jsx(Mr, { ...a, ...r, ref: e });
980
+ Yt.displayName = ge;
981
+ var oa = "MenuAnchor", We = c.forwardRef(
982
+ (e, t) => {
983
+ const { __scopeMenu: n, ...r } = e, o = ve(n);
984
+ return /* @__PURE__ */ a.jsx(wr, { ...o, ...r, ref: t });
983
985
  }
984
986
  );
985
- Je.displayName = ro;
986
- var Ze = "MenuPortal", [ao, Zt] = Z(Ze, {
987
+ We.displayName = oa;
988
+ var Je = "MenuPortal", [aa, Xt] = J(Je, {
987
989
  forceMount: void 0
988
- }), en = (t) => {
989
- const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = V(Ze, e);
990
- return /* @__PURE__ */ o.jsx(ao, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ir, { asChild: !0, container: a, children: r }) }) });
990
+ }), Wt = (e) => {
991
+ const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = V(Je, t);
992
+ return /* @__PURE__ */ a.jsx(aa, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Nr, { asChild: !0, container: o, children: r }) }) });
991
993
  };
992
- en.displayName = Ze;
993
- var T = "MenuContent", [oo, et] = Z(T), tn = u.forwardRef(
994
- (t, e) => {
995
- const n = Zt(T, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(T, t.__scopeMenu), i = we(T, t.__scopeMenu);
996
- return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(so, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(io, { ...a, ref: e }) }) }) });
997
- }
998
- ), so = u.forwardRef(
999
- (t, e) => {
1000
- const n = V(T, t.__scopeMenu), r = u.useRef(null), a = fe(e, r);
1001
- return u.useEffect(() => {
994
+ Wt.displayName = Je;
995
+ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
996
+ (e, t) => {
997
+ const n = Xt(T, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(T, e.__scopeMenu), i = xe(T, e.__scopeMenu);
998
+ return /* @__PURE__ */ a.jsx(le.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ a.jsx(le.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ia, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ca, { ...o, ref: t }) }) }) });
999
+ }
1000
+ ), ia = c.forwardRef(
1001
+ (e, t) => {
1002
+ const n = V(T, e.__scopeMenu), r = c.useRef(null), o = fe(t, r);
1003
+ return c.useEffect(() => {
1002
1004
  const s = r.current;
1003
- if (s) return br(s);
1004
- }, []), /* @__PURE__ */ o.jsx(
1005
- tt,
1005
+ if (s) return yr(s);
1006
+ }, []), /* @__PURE__ */ a.jsx(
1007
+ et,
1006
1008
  {
1007
- ...t,
1008
- ref: a,
1009
+ ...e,
1010
+ ref: o,
1009
1011
  trapFocus: n.open,
1010
1012
  disableOutsidePointerEvents: n.open,
1011
1013
  disableOutsideScroll: !0,
1012
- onFocusOutside: y(
1013
- t.onFocusOutside,
1014
+ onFocusOutside: w(
1015
+ e.onFocusOutside,
1014
1016
  (s) => s.preventDefault(),
1015
1017
  { checkForDefaultPrevented: !1 }
1016
1018
  ),
@@ -1018,141 +1020,141 @@ var T = "MenuContent", [oo, et] = Z(T), tn = u.forwardRef(
1018
1020
  }
1019
1021
  );
1020
1022
  }
1021
- ), io = u.forwardRef((t, e) => {
1022
- const n = V(T, t.__scopeMenu);
1023
- return /* @__PURE__ */ o.jsx(
1024
- tt,
1023
+ ), ca = c.forwardRef((e, t) => {
1024
+ const n = V(T, e.__scopeMenu);
1025
+ return /* @__PURE__ */ a.jsx(
1026
+ et,
1025
1027
  {
1026
- ...t,
1027
- ref: e,
1028
+ ...e,
1029
+ ref: t,
1028
1030
  trapFocus: !1,
1029
1031
  disableOutsidePointerEvents: !1,
1030
1032
  disableOutsideScroll: !1,
1031
1033
  onDismiss: () => n.onOpenChange(!1)
1032
1034
  }
1033
1035
  );
1034
- }), tt = u.forwardRef(
1035
- (t, e) => {
1036
+ }), et = c.forwardRef(
1037
+ (e, t) => {
1036
1038
  const {
1037
1039
  __scopeMenu: n,
1038
1040
  loop: r = !1,
1039
- trapFocus: a,
1041
+ trapFocus: o,
1040
1042
  onOpenAutoFocus: s,
1041
1043
  onCloseAutoFocus: i,
1042
- disableOutsidePointerEvents: c,
1043
- onEntryFocus: l,
1044
- onEscapeKeyDown: p,
1044
+ disableOutsidePointerEvents: u,
1045
+ onEntryFocus: d,
1046
+ onEscapeKeyDown: m,
1045
1047
  onPointerDownOutside: f,
1046
- onFocusOutside: d,
1047
- onInteractOutside: g,
1048
+ onFocusOutside: l,
1049
+ onInteractOutside: p,
1048
1050
  onDismiss: v,
1049
1051
  disableOutsideScroll: x,
1050
1052
  ...R
1051
- } = t, N = V(T, n), _ = we(T, n), D = ye(n), w = Xt(n), E = eo(n), [$, Y] = u.useState(null), ee = u.useRef(null), Me = fe(e, ee, N.onContentChange), X = u.useRef(0), be = u.useRef(""), rr = u.useRef(0), Oe = u.useRef(null), it = u.useRef("right"), Te = u.useRef(0), ar = x ? Sr : u.Fragment, or = x ? { as: jr, allowPinchZoom: !0 } : void 0, sr = (m) => {
1052
- var ne, ut;
1053
- const I = be.current + m, k = E().filter((B) => !B.disabled), G = document.activeElement, ke = (ne = k.find((B) => B.ref.current === G)) == null ? void 0 : ne.textValue, Fe = k.map((B) => B.textValue), ct = wo(Fe, I, ke), ce = (ut = k.find((B) => B.textValue === ct)) == null ? void 0 : ut.ref.current;
1054
- (function B(lt) {
1055
- be.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => B(""), 1e3));
1056
- })(I), ce && setTimeout(() => ce.focus());
1053
+ } = e, D = V(T, n), E = xe(T, n), I = ve(n), y = zt(n), S = ta(n), [$, Y] = c.useState(null), Z = c.useRef(null), we = fe(t, Z, D.onContentChange), X = c.useRef(0), ye = c.useRef(""), er = c.useRef(0), Oe = c.useRef(null), st = c.useRef("right"), Te = c.useRef(0), tr = x ? Er : c.Fragment, nr = x ? { as: Sr, allowPinchZoom: !0 } : void 0, rr = (g) => {
1054
+ var te, ct;
1055
+ const A = ye.current + g, k = S().filter((B) => !B.disabled), G = document.activeElement, ke = (te = k.find((B) => B.ref.current === G)) == null ? void 0 : te.textValue, Fe = k.map((B) => B.textValue), it = ya(Fe, A, ke), ie = (ct = k.find((B) => B.textValue === it)) == null ? void 0 : ct.ref.current;
1056
+ (function B(ut) {
1057
+ ye.current = ut, window.clearTimeout(X.current), ut !== "" && (X.current = window.setTimeout(() => B(""), 1e3));
1058
+ })(A), ie && setTimeout(() => ie.focus());
1057
1059
  };
1058
- u.useEffect(() => () => window.clearTimeout(X.current), []), Cr();
1059
- const te = u.useCallback((m) => {
1060
+ c.useEffect(() => () => window.clearTimeout(X.current), []), br();
1061
+ const ee = c.useCallback((g) => {
1060
1062
  var k, G;
1061
- return it.current === ((k = Oe.current) == null ? void 0 : k.side) && bo(m, (G = Oe.current) == null ? void 0 : G.area);
1063
+ return st.current === ((k = Oe.current) == null ? void 0 : k.side) && Ma(g, (G = Oe.current) == null ? void 0 : G.area);
1062
1064
  }, []);
1063
- return /* @__PURE__ */ o.jsx(
1064
- oo,
1065
+ return /* @__PURE__ */ a.jsx(
1066
+ sa,
1065
1067
  {
1066
1068
  scope: n,
1067
- searchRef: be,
1068
- onItemEnter: u.useCallback(
1069
- (m) => {
1070
- te(m) && m.preventDefault();
1069
+ searchRef: ye,
1070
+ onItemEnter: c.useCallback(
1071
+ (g) => {
1072
+ ee(g) && g.preventDefault();
1071
1073
  },
1072
- [te]
1074
+ [ee]
1073
1075
  ),
1074
- onItemLeave: u.useCallback(
1075
- (m) => {
1076
- var I;
1077
- te(m) || ((I = ee.current) == null || I.focus(), Y(null));
1076
+ onItemLeave: c.useCallback(
1077
+ (g) => {
1078
+ var A;
1079
+ ee(g) || ((A = Z.current) == null || A.focus(), Y(null));
1078
1080
  },
1079
- [te]
1081
+ [ee]
1080
1082
  ),
1081
- onTriggerLeave: u.useCallback(
1082
- (m) => {
1083
- te(m) && m.preventDefault();
1083
+ onTriggerLeave: c.useCallback(
1084
+ (g) => {
1085
+ ee(g) && g.preventDefault();
1084
1086
  },
1085
- [te]
1087
+ [ee]
1086
1088
  ),
1087
- pointerGraceTimerRef: rr,
1088
- onPointerGraceIntentChange: u.useCallback((m) => {
1089
- Oe.current = m;
1089
+ pointerGraceTimerRef: er,
1090
+ onPointerGraceIntentChange: c.useCallback((g) => {
1091
+ Oe.current = g;
1090
1092
  }, []),
1091
- children: /* @__PURE__ */ o.jsx(ar, { ...or, children: /* @__PURE__ */ o.jsx(
1092
- Pr,
1093
+ children: /* @__PURE__ */ a.jsx(tr, { ...nr, children: /* @__PURE__ */ a.jsx(
1094
+ Mr,
1093
1095
  {
1094
1096
  asChild: !0,
1095
- trapped: a,
1096
- onMountAutoFocus: y(s, (m) => {
1097
- var I;
1098
- m.preventDefault(), (I = ee.current) == null || I.focus({ preventScroll: !0 });
1097
+ trapped: o,
1098
+ onMountAutoFocus: w(s, (g) => {
1099
+ var A;
1100
+ g.preventDefault(), (A = Z.current) == null || A.focus({ preventScroll: !0 });
1099
1101
  }),
1100
1102
  onUnmountAutoFocus: i,
1101
- children: /* @__PURE__ */ o.jsx(
1102
- Rr,
1103
+ children: /* @__PURE__ */ a.jsx(
1104
+ Cr,
1103
1105
  {
1104
1106
  asChild: !0,
1105
- disableOutsidePointerEvents: c,
1106
- onEscapeKeyDown: p,
1107
+ disableOutsidePointerEvents: u,
1108
+ onEscapeKeyDown: m,
1107
1109
  onPointerDownOutside: f,
1108
- onFocusOutside: d,
1109
- onInteractOutside: g,
1110
+ onFocusOutside: l,
1111
+ onInteractOutside: p,
1110
1112
  onDismiss: v,
1111
- children: /* @__PURE__ */ o.jsx(
1112
- ca,
1113
+ children: /* @__PURE__ */ a.jsx(
1114
+ co,
1113
1115
  {
1114
1116
  asChild: !0,
1115
- ...w,
1116
- dir: _.dir,
1117
+ ...y,
1118
+ dir: E.dir,
1117
1119
  orientation: "vertical",
1118
1120
  loop: r,
1119
1121
  currentTabStopId: $,
1120
1122
  onCurrentTabStopIdChange: Y,
1121
- onEntryFocus: y(l, (m) => {
1122
- _.isUsingKeyboardRef.current || m.preventDefault();
1123
+ onEntryFocus: w(d, (g) => {
1124
+ E.isUsingKeyboardRef.current || g.preventDefault();
1123
1125
  }),
1124
1126
  preventScrollOnEntryFocus: !0,
1125
- children: /* @__PURE__ */ o.jsx(
1126
- _r,
1127
+ children: /* @__PURE__ */ a.jsx(
1128
+ Pr,
1127
1129
  {
1128
1130
  role: "menu",
1129
1131
  "aria-orientation": "vertical",
1130
- "data-state": yn(N.open),
1132
+ "data-state": gn(D.open),
1131
1133
  "data-radix-menu-content": "",
1132
- dir: _.dir,
1133
- ...D,
1134
+ dir: E.dir,
1135
+ ...I,
1134
1136
  ...R,
1135
- ref: Me,
1137
+ ref: we,
1136
1138
  style: { outline: "none", ...R.style },
1137
- onKeyDown: y(R.onKeyDown, (m) => {
1138
- const k = m.target.closest("[data-radix-menu-content]") === m.currentTarget, G = m.ctrlKey || m.altKey || m.metaKey, ke = m.key.length === 1;
1139
- k && (m.key === "Tab" && m.preventDefault(), !G && ke && sr(m.key));
1140
- const Fe = ee.current;
1141
- if (m.target !== Fe || !Wa.includes(m.key)) return;
1142
- m.preventDefault();
1143
- const ce = E().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
1144
- Vt.includes(m.key) && ce.reverse(), xo(ce);
1139
+ onKeyDown: w(R.onKeyDown, (g) => {
1140
+ const k = g.target.closest("[data-radix-menu-content]") === g.currentTarget, G = g.ctrlKey || g.altKey || g.metaKey, ke = g.key.length === 1;
1141
+ k && (g.key === "Tab" && g.preventDefault(), !G && ke && rr(g.key));
1142
+ const Fe = Z.current;
1143
+ if (g.target !== Fe || !Jo.includes(g.key)) return;
1144
+ g.preventDefault();
1145
+ const ie = S().filter((te) => !te.disabled).map((te) => te.ref.current);
1146
+ Ht.includes(g.key) && ie.reverse(), xa(ie);
1145
1147
  }),
1146
- onBlur: y(t.onBlur, (m) => {
1147
- m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), be.current = "");
1148
+ onBlur: w(e.onBlur, (g) => {
1149
+ g.currentTarget.contains(g.target) || (window.clearTimeout(X.current), ye.current = "");
1148
1150
  }),
1149
- onPointerMove: y(
1150
- t.onPointerMove,
1151
- he((m) => {
1152
- const I = m.target, k = Te.current !== m.clientX;
1153
- if (m.currentTarget.contains(I) && k) {
1154
- const G = m.clientX > Te.current ? "right" : "left";
1155
- it.current = G, Te.current = m.clientX;
1151
+ onPointerMove: w(
1152
+ e.onPointerMove,
1153
+ de((g) => {
1154
+ const A = g.target, k = Te.current !== g.clientX;
1155
+ if (g.currentTarget.contains(A) && k) {
1156
+ const G = g.clientX > Te.current ? "right" : "left";
1157
+ st.current = G, Te.current = g.clientX;
1156
1158
  }
1157
1159
  })
1158
1160
  )
@@ -1168,140 +1170,140 @@ var T = "MenuContent", [oo, et] = Z(T), tn = u.forwardRef(
1168
1170
  );
1169
1171
  }
1170
1172
  );
1171
- tn.displayName = T;
1172
- var co = "MenuGroup", nt = u.forwardRef(
1173
- (t, e) => {
1174
- const { __scopeMenu: n, ...r } = t;
1175
- return /* @__PURE__ */ o.jsx(ie.div, { role: "group", ...r, ref: e });
1173
+ Jt.displayName = T;
1174
+ var ua = "MenuGroup", tt = c.forwardRef(
1175
+ (e, t) => {
1176
+ const { __scopeMenu: n, ...r } = e;
1177
+ return /* @__PURE__ */ a.jsx(se.div, { role: "group", ...r, ref: t });
1176
1178
  }
1177
1179
  );
1178
- nt.displayName = co;
1179
- var uo = "MenuLabel", nn = u.forwardRef(
1180
- (t, e) => {
1181
- const { __scopeMenu: n, ...r } = t;
1182
- return /* @__PURE__ */ o.jsx(ie.div, { ...r, ref: e });
1180
+ tt.displayName = ua;
1181
+ var la = "MenuLabel", Zt = c.forwardRef(
1182
+ (e, t) => {
1183
+ const { __scopeMenu: n, ...r } = e;
1184
+ return /* @__PURE__ */ a.jsx(se.div, { ...r, ref: t });
1183
1185
  }
1184
1186
  );
1185
- nn.displayName = uo;
1186
- var Ne = "MenuItem", bt = "menu.itemSelect", Ae = u.forwardRef(
1187
- (t, e) => {
1188
- const { disabled: n = !1, onSelect: r, ...a } = t, s = u.useRef(null), i = we(Ne, t.__scopeMenu), c = et(Ne, t.__scopeMenu), l = fe(e, s), p = u.useRef(!1), f = () => {
1189
- const d = s.current;
1190
- if (!n && d) {
1191
- const g = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
1192
- d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Nr(d, g), g.defaultPrevented ? p.current = !1 : i.onClose();
1187
+ Zt.displayName = la;
1188
+ var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
1189
+ (e, t) => {
1190
+ const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = xe(_e, e.__scopeMenu), u = Ze(_e, e.__scopeMenu), d = fe(t, s), m = c.useRef(!1), f = () => {
1191
+ const l = s.current;
1192
+ if (!n && l) {
1193
+ const p = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
1194
+ l.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), _r(l, p), p.defaultPrevented ? m.current = !1 : i.onClose();
1193
1195
  }
1194
1196
  };
1195
- return /* @__PURE__ */ o.jsx(
1196
- rn,
1197
+ return /* @__PURE__ */ a.jsx(
1198
+ en,
1197
1199
  {
1198
- ...a,
1199
- ref: l,
1200
+ ...o,
1201
+ ref: d,
1200
1202
  disabled: n,
1201
- onClick: y(t.onClick, f),
1202
- onPointerDown: (d) => {
1203
- var g;
1204
- (g = t.onPointerDown) == null || g.call(t, d), p.current = !0;
1203
+ onClick: w(e.onClick, f),
1204
+ onPointerDown: (l) => {
1205
+ var p;
1206
+ (p = e.onPointerDown) == null || p.call(e, l), m.current = !0;
1205
1207
  },
1206
- onPointerUp: y(t.onPointerUp, (d) => {
1207
- var g;
1208
- p.current || (g = d.currentTarget) == null || g.click();
1208
+ onPointerUp: w(e.onPointerUp, (l) => {
1209
+ var p;
1210
+ m.current || (p = l.currentTarget) == null || p.click();
1209
1211
  }),
1210
- onKeyDown: y(t.onKeyDown, (d) => {
1211
- const g = c.searchRef.current !== "";
1212
- n || g && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
1212
+ onKeyDown: w(e.onKeyDown, (l) => {
1213
+ const p = u.searchRef.current !== "";
1214
+ n || p && l.key === " " || Qe.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
1213
1215
  })
1214
1216
  }
1215
1217
  );
1216
1218
  }
1217
1219
  );
1218
- Ae.displayName = Ne;
1219
- var rn = u.forwardRef(
1220
- (t, e) => {
1221
- const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = et(Ne, n), c = Xt(n), l = u.useRef(null), p = fe(e, l), [f, d] = u.useState(!1), [g, v] = u.useState("");
1222
- return u.useEffect(() => {
1223
- const x = l.current;
1220
+ Ae.displayName = _e;
1221
+ var en = c.forwardRef(
1222
+ (e, t) => {
1223
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Ze(_e, n), u = zt(n), d = c.useRef(null), m = fe(t, d), [f, l] = c.useState(!1), [p, v] = c.useState("");
1224
+ return c.useEffect(() => {
1225
+ const x = d.current;
1224
1226
  x && v((x.textContent ?? "").trim());
1225
- }, [s.children]), /* @__PURE__ */ o.jsx(
1226
- de.ItemSlot,
1227
+ }, [s.children]), /* @__PURE__ */ a.jsx(
1228
+ le.ItemSlot,
1227
1229
  {
1228
1230
  scope: n,
1229
1231
  disabled: r,
1230
- textValue: a ?? g,
1231
- children: /* @__PURE__ */ o.jsx(ua, { asChild: !0, ...c, focusable: !r, children: /* @__PURE__ */ o.jsx(
1232
- ie.div,
1232
+ textValue: o ?? p,
1233
+ children: /* @__PURE__ */ a.jsx(uo, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ a.jsx(
1234
+ se.div,
1233
1235
  {
1234
1236
  role: "menuitem",
1235
1237
  "data-highlighted": f ? "" : void 0,
1236
1238
  "aria-disabled": r || void 0,
1237
1239
  "data-disabled": r ? "" : void 0,
1238
1240
  ...s,
1239
- ref: p,
1240
- onPointerMove: y(
1241
- t.onPointerMove,
1242
- he((x) => {
1241
+ ref: m,
1242
+ onPointerMove: w(
1243
+ e.onPointerMove,
1244
+ de((x) => {
1243
1245
  r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
1244
1246
  })
1245
1247
  ),
1246
- onPointerLeave: y(
1247
- t.onPointerLeave,
1248
- he((x) => i.onItemLeave(x))
1248
+ onPointerLeave: w(
1249
+ e.onPointerLeave,
1250
+ de((x) => i.onItemLeave(x))
1249
1251
  ),
1250
- onFocus: y(t.onFocus, () => d(!0)),
1251
- onBlur: y(t.onBlur, () => d(!1))
1252
+ onFocus: w(e.onFocus, () => l(!0)),
1253
+ onBlur: w(e.onBlur, () => l(!1))
1252
1254
  }
1253
1255
  ) })
1254
1256
  }
1255
1257
  );
1256
1258
  }
1257
- ), lo = "MenuCheckboxItem", an = u.forwardRef(
1258
- (t, e) => {
1259
- const { checked: n = !1, onCheckedChange: r, ...a } = t;
1260
- return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
1259
+ ), da = "MenuCheckboxItem", tn = c.forwardRef(
1260
+ (e, t) => {
1261
+ const { checked: n = !1, onCheckedChange: r, ...o } = e;
1262
+ return /* @__PURE__ */ a.jsx(sn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1261
1263
  Ae,
1262
1264
  {
1263
1265
  role: "menuitemcheckbox",
1264
- "aria-checked": De(n) ? "mixed" : n,
1265
- ...a,
1266
- ref: e,
1266
+ "aria-checked": je(n) ? "mixed" : n,
1267
+ ...o,
1268
+ ref: t,
1267
1269
  "data-state": ot(n),
1268
- onSelect: y(
1269
- a.onSelect,
1270
- () => r == null ? void 0 : r(De(n) ? !0 : !n),
1270
+ onSelect: w(
1271
+ o.onSelect,
1272
+ () => r == null ? void 0 : r(je(n) ? !0 : !n),
1271
1273
  { checkForDefaultPrevented: !1 }
1272
1274
  )
1273
1275
  }
1274
1276
  ) });
1275
1277
  }
1276
1278
  );
1277
- an.displayName = lo;
1278
- var on = "MenuRadioGroup", [ho, po] = Z(
1279
- on,
1279
+ tn.displayName = da;
1280
+ var nn = "MenuRadioGroup", [ha, fa] = J(
1281
+ nn,
1280
1282
  { value: void 0, onValueChange: () => {
1281
1283
  } }
1282
- ), sn = u.forwardRef(
1283
- (t, e) => {
1284
- const { value: n, onValueChange: r, ...a } = t, s = qe(r);
1285
- return /* @__PURE__ */ o.jsx(ho, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(nt, { ...a, ref: e }) });
1284
+ ), rn = c.forwardRef(
1285
+ (e, t) => {
1286
+ const { value: n, onValueChange: r, ...o } = e, s = He(r);
1287
+ return /* @__PURE__ */ a.jsx(ha, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(tt, { ...o, ref: t }) });
1286
1288
  }
1287
1289
  );
1288
- sn.displayName = on;
1289
- var cn = "MenuRadioItem", un = u.forwardRef(
1290
- (t, e) => {
1291
- const { value: n, ...r } = t, a = po(cn, t.__scopeMenu), s = n === a.value;
1292
- return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
1290
+ rn.displayName = nn;
1291
+ var on = "MenuRadioItem", an = c.forwardRef(
1292
+ (e, t) => {
1293
+ const { value: n, ...r } = e, o = fa(on, e.__scopeMenu), s = n === o.value;
1294
+ return /* @__PURE__ */ a.jsx(sn, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1293
1295
  Ae,
1294
1296
  {
1295
1297
  role: "menuitemradio",
1296
1298
  "aria-checked": s,
1297
1299
  ...r,
1298
- ref: e,
1300
+ ref: t,
1299
1301
  "data-state": ot(s),
1300
- onSelect: y(
1302
+ onSelect: w(
1301
1303
  r.onSelect,
1302
1304
  () => {
1303
1305
  var i;
1304
- return (i = a.onValueChange) == null ? void 0 : i.call(a, n);
1306
+ return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
1305
1307
  },
1306
1308
  { checkForDefaultPrevented: !1 }
1307
1309
  )
@@ -1309,22 +1311,22 @@ var cn = "MenuRadioItem", un = u.forwardRef(
1309
1311
  ) });
1310
1312
  }
1311
1313
  );
1312
- un.displayName = cn;
1313
- var rt = "MenuItemIndicator", [ln, fo] = Z(
1314
- rt,
1314
+ an.displayName = on;
1315
+ var nt = "MenuItemIndicator", [sn, pa] = J(
1316
+ nt,
1315
1317
  { checked: !1 }
1316
- ), dn = u.forwardRef(
1317
- (t, e) => {
1318
- const { __scopeMenu: n, forceMount: r, ...a } = t, s = fo(rt, n);
1319
- return /* @__PURE__ */ o.jsx(
1318
+ ), cn = c.forwardRef(
1319
+ (e, t) => {
1320
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = pa(nt, n);
1321
+ return /* @__PURE__ */ a.jsx(
1320
1322
  Ie,
1321
1323
  {
1322
- present: r || De(s.checked) || s.checked === !0,
1323
- children: /* @__PURE__ */ o.jsx(
1324
- ie.span,
1324
+ present: r || je(s.checked) || s.checked === !0,
1325
+ children: /* @__PURE__ */ a.jsx(
1326
+ se.span,
1325
1327
  {
1326
- ...a,
1327
- ref: e,
1328
+ ...o,
1329
+ ref: t,
1328
1330
  "data-state": ot(s.checked)
1329
1331
  }
1330
1332
  )
@@ -1332,242 +1334,242 @@ var rt = "MenuItemIndicator", [ln, fo] = Z(
1332
1334
  );
1333
1335
  }
1334
1336
  );
1335
- dn.displayName = rt;
1336
- var mo = "MenuSeparator", hn = u.forwardRef(
1337
- (t, e) => {
1338
- const { __scopeMenu: n, ...r } = t;
1339
- return /* @__PURE__ */ o.jsx(
1340
- ie.div,
1337
+ cn.displayName = nt;
1338
+ var ma = "MenuSeparator", un = c.forwardRef(
1339
+ (e, t) => {
1340
+ const { __scopeMenu: n, ...r } = e;
1341
+ return /* @__PURE__ */ a.jsx(
1342
+ se.div,
1341
1343
  {
1342
1344
  role: "separator",
1343
1345
  "aria-orientation": "horizontal",
1344
1346
  ...r,
1345
- ref: e
1347
+ ref: t
1346
1348
  }
1347
1349
  );
1348
1350
  }
1349
1351
  );
1350
- hn.displayName = mo;
1351
- var go = "MenuArrow", pn = u.forwardRef(
1352
- (t, e) => {
1353
- const { __scopeMenu: n, ...r } = t, a = ye(n);
1354
- return /* @__PURE__ */ o.jsx(Er, { ...a, ...r, ref: e });
1352
+ un.displayName = ma;
1353
+ var ga = "MenuArrow", ln = c.forwardRef(
1354
+ (e, t) => {
1355
+ const { __scopeMenu: n, ...r } = e, o = ve(n);
1356
+ return /* @__PURE__ */ a.jsx(Rr, { ...o, ...r, ref: t });
1355
1357
  }
1356
1358
  );
1357
- pn.displayName = go;
1358
- var at = "MenuSub", [vo, fn] = Z(at), mn = (t) => {
1359
- const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = V(at, e), i = ye(e), [c, l] = u.useState(null), [p, f] = u.useState(null), d = qe(a);
1360
- return u.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(It, { ...i, children: /* @__PURE__ */ o.jsx(
1361
- Wt,
1359
+ ln.displayName = ga;
1360
+ var rt = "MenuSub", [va, dn] = J(rt), hn = (e) => {
1361
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = V(rt, t), i = ve(t), [u, d] = c.useState(null), [m, f] = c.useState(null), l = He(o);
1362
+ return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ a.jsx(Dt, { ...i, children: /* @__PURE__ */ a.jsx(
1363
+ Vt,
1362
1364
  {
1363
- scope: e,
1365
+ scope: t,
1364
1366
  open: r,
1365
- onOpenChange: d,
1366
- content: p,
1367
+ onOpenChange: l,
1368
+ content: m,
1367
1369
  onContentChange: f,
1368
- children: /* @__PURE__ */ o.jsx(
1369
- vo,
1370
+ children: /* @__PURE__ */ a.jsx(
1371
+ va,
1370
1372
  {
1371
- scope: e,
1372
- contentId: je(),
1373
- triggerId: je(),
1374
- trigger: c,
1375
- onTriggerChange: l,
1373
+ scope: t,
1374
+ contentId: Se(),
1375
+ triggerId: Se(),
1376
+ trigger: u,
1377
+ onTriggerChange: d,
1376
1378
  children: n
1377
1379
  }
1378
1380
  )
1379
1381
  }
1380
1382
  ) });
1381
1383
  };
1382
- mn.displayName = at;
1383
- var ue = "MenuSubTrigger", gn = u.forwardRef(
1384
- (t, e) => {
1385
- const n = V(ue, t.__scopeMenu), r = we(ue, t.__scopeMenu), a = fn(ue, t.__scopeMenu), s = et(ue, t.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = s, p = { __scopeMenu: t.__scopeMenu }, f = u.useCallback(() => {
1384
+ hn.displayName = rt;
1385
+ var ce = "MenuSubTrigger", fn = c.forwardRef(
1386
+ (e, t) => {
1387
+ const n = V(ce, e.__scopeMenu), r = xe(ce, e.__scopeMenu), o = dn(ce, e.__scopeMenu), s = Ze(ce, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: d } = s, m = { __scopeMenu: e.__scopeMenu }, f = c.useCallback(() => {
1386
1388
  i.current && window.clearTimeout(i.current), i.current = null;
1387
1389
  }, []);
1388
- return u.useEffect(() => f, [f]), u.useEffect(() => {
1389
- const d = c.current;
1390
+ return c.useEffect(() => f, [f]), c.useEffect(() => {
1391
+ const l = u.current;
1390
1392
  return () => {
1391
- window.clearTimeout(d), l(null);
1393
+ window.clearTimeout(l), d(null);
1392
1394
  };
1393
- }, [c, l]), /* @__PURE__ */ o.jsx(Je, { asChild: !0, ...p, children: /* @__PURE__ */ o.jsx(
1394
- rn,
1395
+ }, [u, d]), /* @__PURE__ */ a.jsx(We, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1396
+ en,
1395
1397
  {
1396
- id: a.triggerId,
1398
+ id: o.triggerId,
1397
1399
  "aria-haspopup": "menu",
1398
1400
  "aria-expanded": n.open,
1399
- "aria-controls": a.contentId,
1400
- "data-state": yn(n.open),
1401
- ...t,
1402
- ref: Dt(e, a.onTriggerChange),
1403
- onClick: (d) => {
1404
- var g;
1405
- (g = t.onClick) == null || g.call(t, d), !(t.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
1401
+ "aria-controls": o.contentId,
1402
+ "data-state": gn(n.open),
1403
+ ...e,
1404
+ ref: Nt(t, o.onTriggerChange),
1405
+ onClick: (l) => {
1406
+ var p;
1407
+ (p = e.onClick) == null || p.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
1406
1408
  },
1407
- onPointerMove: y(
1408
- t.onPointerMove,
1409
- he((d) => {
1410
- s.onItemEnter(d), !d.defaultPrevented && !t.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1409
+ onPointerMove: w(
1410
+ e.onPointerMove,
1411
+ de((l) => {
1412
+ s.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1411
1413
  n.onOpenChange(!0), f();
1412
1414
  }, 100));
1413
1415
  })
1414
1416
  ),
1415
- onPointerLeave: y(
1416
- t.onPointerLeave,
1417
- he((d) => {
1417
+ onPointerLeave: w(
1418
+ e.onPointerLeave,
1419
+ de((l) => {
1418
1420
  var v, x;
1419
1421
  f();
1420
- const g = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1421
- if (g) {
1422
- const R = (x = n.content) == null ? void 0 : x.dataset.side, N = R === "right", _ = N ? -5 : 5, D = g[N ? "left" : "right"], w = g[N ? "right" : "left"];
1422
+ const p = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1423
+ if (p) {
1424
+ const R = (x = n.content) == null ? void 0 : x.dataset.side, D = R === "right", E = D ? -5 : 5, I = p[D ? "left" : "right"], y = p[D ? "right" : "left"];
1423
1425
  s.onPointerGraceIntentChange({
1424
1426
  area: [
1425
1427
  // Apply a bleed on clientX to ensure that our exit point is
1426
1428
  // consistently within polygon bounds
1427
- { x: d.clientX + _, y: d.clientY },
1428
- { x: D, y: g.top },
1429
- { x: w, y: g.top },
1430
- { x: w, y: g.bottom },
1431
- { x: D, y: g.bottom }
1429
+ { x: l.clientX + E, y: l.clientY },
1430
+ { x: I, y: p.top },
1431
+ { x: y, y: p.top },
1432
+ { x: y, y: p.bottom },
1433
+ { x: I, y: p.bottom }
1432
1434
  ],
1433
1435
  side: R
1434
- }), window.clearTimeout(c.current), c.current = window.setTimeout(
1436
+ }), window.clearTimeout(u.current), u.current = window.setTimeout(
1435
1437
  () => s.onPointerGraceIntentChange(null),
1436
1438
  300
1437
1439
  );
1438
1440
  } else {
1439
- if (s.onTriggerLeave(d), d.defaultPrevented) return;
1441
+ if (s.onTriggerLeave(l), l.defaultPrevented) return;
1440
1442
  s.onPointerGraceIntentChange(null);
1441
1443
  }
1442
1444
  })
1443
1445
  ),
1444
- onKeyDown: y(t.onKeyDown, (d) => {
1446
+ onKeyDown: w(e.onKeyDown, (l) => {
1445
1447
  var v;
1446
- const g = s.searchRef.current !== "";
1447
- t.disabled || g && d.key === " " || Ja[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1448
+ const p = s.searchRef.current !== "";
1449
+ e.disabled || p && l.key === " " || Zo[r.dir].includes(l.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), l.preventDefault());
1448
1450
  })
1449
1451
  }
1450
1452
  ) });
1451
1453
  }
1452
1454
  );
1453
- gn.displayName = ue;
1454
- var vn = "MenuSubContent", xn = u.forwardRef(
1455
- (t, e) => {
1456
- const n = Zt(T, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(T, t.__scopeMenu), i = we(T, t.__scopeMenu), c = fn(vn, t.__scopeMenu), l = u.useRef(null), p = fe(e, l);
1457
- return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1458
- tt,
1455
+ fn.displayName = ce;
1456
+ var pn = "MenuSubContent", mn = c.forwardRef(
1457
+ (e, t) => {
1458
+ const n = Xt(T, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(T, e.__scopeMenu), i = xe(T, e.__scopeMenu), u = dn(pn, e.__scopeMenu), d = c.useRef(null), m = fe(t, d);
1459
+ return /* @__PURE__ */ a.jsx(le.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ a.jsx(le.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1460
+ et,
1459
1461
  {
1460
- id: c.contentId,
1461
- "aria-labelledby": c.triggerId,
1462
- ...a,
1463
- ref: p,
1462
+ id: u.contentId,
1463
+ "aria-labelledby": u.triggerId,
1464
+ ...o,
1465
+ ref: m,
1464
1466
  align: "start",
1465
1467
  side: i.dir === "rtl" ? "left" : "right",
1466
1468
  disableOutsidePointerEvents: !1,
1467
1469
  disableOutsideScroll: !1,
1468
1470
  trapFocus: !1,
1469
1471
  onOpenAutoFocus: (f) => {
1470
- var d;
1471
- i.isUsingKeyboardRef.current && ((d = l.current) == null || d.focus()), f.preventDefault();
1472
+ var l;
1473
+ i.isUsingKeyboardRef.current && ((l = d.current) == null || l.focus()), f.preventDefault();
1472
1474
  },
1473
1475
  onCloseAutoFocus: (f) => f.preventDefault(),
1474
- onFocusOutside: y(t.onFocusOutside, (f) => {
1475
- f.target !== c.trigger && s.onOpenChange(!1);
1476
+ onFocusOutside: w(e.onFocusOutside, (f) => {
1477
+ f.target !== u.trigger && s.onOpenChange(!1);
1476
1478
  }),
1477
- onEscapeKeyDown: y(t.onEscapeKeyDown, (f) => {
1479
+ onEscapeKeyDown: w(e.onEscapeKeyDown, (f) => {
1478
1480
  i.onClose(), f.preventDefault();
1479
1481
  }),
1480
- onKeyDown: y(t.onKeyDown, (f) => {
1482
+ onKeyDown: w(e.onKeyDown, (f) => {
1481
1483
  var v;
1482
- const d = f.currentTarget.contains(f.target), g = Za[i.dir].includes(f.key);
1483
- d && g && (s.onOpenChange(!1), (v = c.trigger) == null || v.focus(), f.preventDefault());
1484
+ const l = f.currentTarget.contains(f.target), p = ea[i.dir].includes(f.key);
1485
+ l && p && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), f.preventDefault());
1484
1486
  })
1485
1487
  }
1486
1488
  ) }) }) });
1487
1489
  }
1488
1490
  );
1489
- xn.displayName = vn;
1490
- function yn(t) {
1491
- return t ? "open" : "closed";
1491
+ mn.displayName = pn;
1492
+ function gn(e) {
1493
+ return e ? "open" : "closed";
1492
1494
  }
1493
- function De(t) {
1494
- return t === "indeterminate";
1495
+ function je(e) {
1496
+ return e === "indeterminate";
1495
1497
  }
1496
- function ot(t) {
1497
- return De(t) ? "indeterminate" : t ? "checked" : "unchecked";
1498
+ function ot(e) {
1499
+ return je(e) ? "indeterminate" : e ? "checked" : "unchecked";
1498
1500
  }
1499
- function xo(t) {
1500
- const e = document.activeElement;
1501
- for (const n of t)
1502
- if (n === e || (n.focus(), document.activeElement !== e)) return;
1501
+ function xa(e) {
1502
+ const t = document.activeElement;
1503
+ for (const n of e)
1504
+ if (n === t || (n.focus(), document.activeElement !== t)) return;
1503
1505
  }
1504
- function yo(t, e) {
1505
- return t.map((n, r) => t[(e + r) % t.length]);
1506
+ function wa(e, t) {
1507
+ return e.map((n, r) => e[(t + r) % e.length]);
1506
1508
  }
1507
- function wo(t, e, n) {
1508
- const a = e.length > 1 && Array.from(e).every((p) => p === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
1509
- let i = yo(t, Math.max(s, 0));
1510
- a.length === 1 && (i = i.filter((p) => p !== n));
1511
- const l = i.find(
1512
- (p) => p.toLowerCase().startsWith(a.toLowerCase())
1509
+ function ya(e, t, n) {
1510
+ const o = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1511
+ let i = wa(e, Math.max(s, 0));
1512
+ o.length === 1 && (i = i.filter((m) => m !== n));
1513
+ const d = i.find(
1514
+ (m) => m.toLowerCase().startsWith(o.toLowerCase())
1513
1515
  );
1514
- return l !== n ? l : void 0;
1516
+ return d !== n ? d : void 0;
1515
1517
  }
1516
- function Mo(t, e) {
1517
- const { x: n, y: r } = t;
1518
- let a = !1;
1519
- for (let s = 0, i = e.length - 1; s < e.length; i = s++) {
1520
- const c = e[s].x, l = e[s].y, p = e[i].x, f = e[i].y;
1521
- l > r != f > r && n < (p - c) * (r - l) / (f - l) + c && (a = !a);
1522
- }
1523
- return a;
1518
+ function ba(e, t) {
1519
+ const { x: n, y: r } = e;
1520
+ let o = !1;
1521
+ for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1522
+ const u = t[s].x, d = t[s].y, m = t[i].x, f = t[i].y;
1523
+ d > r != f > r && n < (m - u) * (r - d) / (f - d) + u && (o = !o);
1524
+ }
1525
+ return o;
1524
1526
  }
1525
- function bo(t, e) {
1526
- if (!e) return !1;
1527
- const n = { x: t.clientX, y: t.clientY };
1528
- return Mo(n, e);
1527
+ function Ma(e, t) {
1528
+ if (!t) return !1;
1529
+ const n = { x: e.clientX, y: e.clientY };
1530
+ return ba(n, t);
1529
1531
  }
1530
- function he(t) {
1531
- return (e) => e.pointerType === "mouse" ? t(e) : void 0;
1532
+ function de(e) {
1533
+ return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1532
1534
  }
1533
- var Co = Jt, Po = Je, Ro = en, _o = tn, Eo = nt, So = nn, jo = Ae, No = an, Do = sn, Io = un, Ao = dn, Oo = hn, To = pn, ko = mn, Fo = gn, Lo = xn, st = "DropdownMenu", [Ko, Fs] = jt(
1534
- st,
1535
- [Yt]
1536
- ), C = Yt(), [$o, wn] = Ko(st), Mn = (t) => {
1535
+ var Ca = Yt, Pa = We, Ra = Wt, Ea = Jt, Sa = tt, _a = Zt, ja = Ae, Na = tn, Da = rn, Ia = an, Aa = cn, Oa = un, Ta = ln, ka = hn, Fa = fn, La = mn, at = "DropdownMenu", [Ka, Ks] = _t(
1536
+ at,
1537
+ [qt]
1538
+ ), P = qt(), [$a, vn] = Ka(at), xn = (e) => {
1537
1539
  const {
1538
- __scopeDropdownMenu: e,
1540
+ __scopeDropdownMenu: t,
1539
1541
  children: n,
1540
1542
  dir: r,
1541
- open: a,
1543
+ open: o,
1542
1544
  defaultOpen: s,
1543
1545
  onOpenChange: i,
1544
- modal: c = !0
1545
- } = t, l = C(e), p = u.useRef(null), [f = !1, d] = At({
1546
- prop: a,
1546
+ modal: u = !0
1547
+ } = e, d = P(t), m = c.useRef(null), [f = !1, l] = It({
1548
+ prop: o,
1547
1549
  defaultProp: s,
1548
1550
  onChange: i
1549
1551
  });
1550
- return /* @__PURE__ */ o.jsx(
1551
- $o,
1552
+ return /* @__PURE__ */ a.jsx(
1553
+ $a,
1552
1554
  {
1553
- scope: e,
1554
- triggerId: je(),
1555
- triggerRef: p,
1556
- contentId: je(),
1555
+ scope: t,
1556
+ triggerId: Se(),
1557
+ triggerRef: m,
1558
+ contentId: Se(),
1557
1559
  open: f,
1558
- onOpenChange: d,
1559
- onOpenToggle: u.useCallback(() => d((g) => !g), [d]),
1560
- modal: c,
1561
- children: /* @__PURE__ */ o.jsx(Co, { ...l, open: f, onOpenChange: d, dir: r, modal: c, children: n })
1560
+ onOpenChange: l,
1561
+ onOpenToggle: c.useCallback(() => l((p) => !p), [l]),
1562
+ modal: u,
1563
+ children: /* @__PURE__ */ a.jsx(Ca, { ...d, open: f, onOpenChange: l, dir: r, modal: u, children: n })
1562
1564
  }
1563
1565
  );
1564
1566
  };
1565
- Mn.displayName = st;
1566
- var bn = "DropdownMenuTrigger", Cn = u.forwardRef(
1567
- (t, e) => {
1568
- const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(bn, n), i = C(n);
1569
- return /* @__PURE__ */ o.jsx(Po, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
1570
- ie.button,
1567
+ xn.displayName = at;
1568
+ var wn = "DropdownMenuTrigger", yn = c.forwardRef(
1569
+ (e, t) => {
1570
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = vn(wn, n), i = P(n);
1571
+ return /* @__PURE__ */ a.jsx(Pa, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1572
+ se.button,
1571
1573
  {
1572
1574
  type: "button",
1573
1575
  id: s.triggerId,
@@ -1577,45 +1579,45 @@ var bn = "DropdownMenuTrigger", Cn = u.forwardRef(
1577
1579
  "data-state": s.open ? "open" : "closed",
1578
1580
  "data-disabled": r ? "" : void 0,
1579
1581
  disabled: r,
1580
- ...a,
1581
- ref: Dt(e, s.triggerRef),
1582
- onPointerDown: y(t.onPointerDown, (c) => {
1583
- !r && c.button === 0 && c.ctrlKey === !1 && (s.onOpenToggle(), s.open || c.preventDefault());
1582
+ ...o,
1583
+ ref: Nt(t, s.triggerRef),
1584
+ onPointerDown: w(e.onPointerDown, (u) => {
1585
+ !r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
1584
1586
  }),
1585
- onKeyDown: y(t.onKeyDown, (c) => {
1586
- r || (["Enter", " "].includes(c.key) && s.onOpenToggle(), c.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(c.key) && c.preventDefault());
1587
+ onKeyDown: w(e.onKeyDown, (u) => {
1588
+ r || (["Enter", " "].includes(u.key) && s.onOpenToggle(), u.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(u.key) && u.preventDefault());
1587
1589
  })
1588
1590
  }
1589
1591
  ) });
1590
1592
  }
1591
1593
  );
1592
- Cn.displayName = bn;
1593
- var Bo = "DropdownMenuPortal", Pn = (t) => {
1594
- const { __scopeDropdownMenu: e, ...n } = t, r = C(e);
1595
- return /* @__PURE__ */ o.jsx(Ro, { ...r, ...n });
1594
+ yn.displayName = wn;
1595
+ var Ba = "DropdownMenuPortal", bn = (e) => {
1596
+ const { __scopeDropdownMenu: t, ...n } = e, r = P(t);
1597
+ return /* @__PURE__ */ a.jsx(Ra, { ...r, ...n });
1596
1598
  };
1597
- Pn.displayName = Bo;
1598
- var Rn = "DropdownMenuContent", _n = u.forwardRef(
1599
- (t, e) => {
1600
- const { __scopeDropdownMenu: n, ...r } = t, a = wn(Rn, n), s = C(n), i = u.useRef(!1);
1601
- return /* @__PURE__ */ o.jsx(
1602
- _o,
1599
+ bn.displayName = Ba;
1600
+ var Mn = "DropdownMenuContent", Cn = c.forwardRef(
1601
+ (e, t) => {
1602
+ const { __scopeDropdownMenu: n, ...r } = e, o = vn(Mn, n), s = P(n), i = c.useRef(!1);
1603
+ return /* @__PURE__ */ a.jsx(
1604
+ Ea,
1603
1605
  {
1604
- id: a.contentId,
1605
- "aria-labelledby": a.triggerId,
1606
+ id: o.contentId,
1607
+ "aria-labelledby": o.triggerId,
1606
1608
  ...s,
1607
1609
  ...r,
1608
- ref: e,
1609
- onCloseAutoFocus: y(t.onCloseAutoFocus, (c) => {
1610
- var l;
1611
- i.current || (l = a.triggerRef.current) == null || l.focus(), i.current = !1, c.preventDefault();
1610
+ ref: t,
1611
+ onCloseAutoFocus: w(e.onCloseAutoFocus, (u) => {
1612
+ var d;
1613
+ i.current || (d = o.triggerRef.current) == null || d.focus(), i.current = !1, u.preventDefault();
1612
1614
  }),
1613
- onInteractOutside: y(t.onInteractOutside, (c) => {
1614
- const l = c.detail.originalEvent, p = l.button === 0 && l.ctrlKey === !0, f = l.button === 2 || p;
1615
- (!a.modal || f) && (i.current = !0);
1615
+ onInteractOutside: w(e.onInteractOutside, (u) => {
1616
+ const d = u.detail.originalEvent, m = d.button === 0 && d.ctrlKey === !0, f = d.button === 2 || m;
1617
+ (!o.modal || f) && (i.current = !0);
1616
1618
  }),
1617
1619
  style: {
1618
- ...t.style,
1620
+ ...e.style,
1619
1621
  "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1620
1622
  "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1621
1623
  "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
@@ -1626,82 +1628,82 @@ var Rn = "DropdownMenuContent", _n = u.forwardRef(
1626
1628
  );
1627
1629
  }
1628
1630
  );
1629
- _n.displayName = Rn;
1630
- var Qo = "DropdownMenuGroup", Uo = u.forwardRef(
1631
- (t, e) => {
1632
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1633
- return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: e });
1631
+ Cn.displayName = Mn;
1632
+ var Qa = "DropdownMenuGroup", Ua = c.forwardRef(
1633
+ (e, t) => {
1634
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1635
+ return /* @__PURE__ */ a.jsx(Sa, { ...o, ...r, ref: t });
1634
1636
  }
1635
1637
  );
1636
- Uo.displayName = Qo;
1637
- var Go = "DropdownMenuLabel", En = u.forwardRef(
1638
- (t, e) => {
1639
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1640
- return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: e });
1638
+ Ua.displayName = Qa;
1639
+ var Ga = "DropdownMenuLabel", Pn = c.forwardRef(
1640
+ (e, t) => {
1641
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1642
+ return /* @__PURE__ */ a.jsx(_a, { ...o, ...r, ref: t });
1641
1643
  }
1642
1644
  );
1643
- En.displayName = Go;
1644
- var qo = "DropdownMenuItem", Sn = u.forwardRef(
1645
- (t, e) => {
1646
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1647
- return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: e });
1645
+ Pn.displayName = Ga;
1646
+ var Ha = "DropdownMenuItem", Rn = c.forwardRef(
1647
+ (e, t) => {
1648
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1649
+ return /* @__PURE__ */ a.jsx(ja, { ...o, ...r, ref: t });
1648
1650
  }
1649
1651
  );
1650
- Sn.displayName = qo;
1651
- var Ho = "DropdownMenuCheckboxItem", jn = u.forwardRef((t, e) => {
1652
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1653
- return /* @__PURE__ */ o.jsx(No, { ...a, ...r, ref: e });
1652
+ Rn.displayName = Ha;
1653
+ var qa = "DropdownMenuCheckboxItem", En = c.forwardRef((e, t) => {
1654
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1655
+ return /* @__PURE__ */ a.jsx(Na, { ...o, ...r, ref: t });
1654
1656
  });
1655
- jn.displayName = Ho;
1656
- var zo = "DropdownMenuRadioGroup", Vo = u.forwardRef((t, e) => {
1657
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1658
- return /* @__PURE__ */ o.jsx(Do, { ...a, ...r, ref: e });
1657
+ En.displayName = qa;
1658
+ var za = "DropdownMenuRadioGroup", Va = c.forwardRef((e, t) => {
1659
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1660
+ return /* @__PURE__ */ a.jsx(Da, { ...o, ...r, ref: t });
1659
1661
  });
1660
- Vo.displayName = zo;
1661
- var Yo = "DropdownMenuRadioItem", Nn = u.forwardRef((t, e) => {
1662
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1663
- return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: e });
1662
+ Va.displayName = za;
1663
+ var Ya = "DropdownMenuRadioItem", Sn = c.forwardRef((e, t) => {
1664
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1665
+ return /* @__PURE__ */ a.jsx(Ia, { ...o, ...r, ref: t });
1664
1666
  });
1665
- Nn.displayName = Yo;
1666
- var Xo = "DropdownMenuItemIndicator", Dn = u.forwardRef((t, e) => {
1667
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1668
- return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
1667
+ Sn.displayName = Ya;
1668
+ var Xa = "DropdownMenuItemIndicator", _n = c.forwardRef((e, t) => {
1669
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1670
+ return /* @__PURE__ */ a.jsx(Aa, { ...o, ...r, ref: t });
1669
1671
  });
1670
- Dn.displayName = Xo;
1671
- var Wo = "DropdownMenuSeparator", In = u.forwardRef((t, e) => {
1672
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1673
- return /* @__PURE__ */ o.jsx(Oo, { ...a, ...r, ref: e });
1672
+ _n.displayName = Xa;
1673
+ var Wa = "DropdownMenuSeparator", jn = c.forwardRef((e, t) => {
1674
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1675
+ return /* @__PURE__ */ a.jsx(Oa, { ...o, ...r, ref: t });
1674
1676
  });
1675
- In.displayName = Wo;
1676
- var Jo = "DropdownMenuArrow", Zo = u.forwardRef(
1677
- (t, e) => {
1678
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1679
- return /* @__PURE__ */ o.jsx(To, { ...a, ...r, ref: e });
1677
+ jn.displayName = Wa;
1678
+ var Ja = "DropdownMenuArrow", Za = c.forwardRef(
1679
+ (e, t) => {
1680
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1681
+ return /* @__PURE__ */ a.jsx(Ta, { ...o, ...r, ref: t });
1680
1682
  }
1681
1683
  );
1682
- Zo.displayName = Jo;
1683
- var es = (t) => {
1684
- const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [c = !1, l] = At({
1684
+ Za.displayName = Ja;
1685
+ var es = (e) => {
1686
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = P(t), [u = !1, d] = It({
1685
1687
  prop: r,
1686
1688
  defaultProp: s,
1687
- onChange: a
1689
+ onChange: o
1688
1690
  });
1689
- return /* @__PURE__ */ o.jsx(ko, { ...i, open: c, onOpenChange: l, children: n });
1690
- }, ts = "DropdownMenuSubTrigger", An = u.forwardRef((t, e) => {
1691
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1692
- return /* @__PURE__ */ o.jsx(Fo, { ...a, ...r, ref: e });
1691
+ return /* @__PURE__ */ a.jsx(ka, { ...i, open: u, onOpenChange: d, children: n });
1692
+ }, ts = "DropdownMenuSubTrigger", Nn = c.forwardRef((e, t) => {
1693
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1694
+ return /* @__PURE__ */ a.jsx(Fa, { ...o, ...r, ref: t });
1693
1695
  });
1694
- An.displayName = ts;
1695
- var ns = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
1696
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1697
- return /* @__PURE__ */ o.jsx(
1698
- Lo,
1696
+ Nn.displayName = ts;
1697
+ var ns = "DropdownMenuSubContent", Dn = c.forwardRef((e, t) => {
1698
+ const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
1699
+ return /* @__PURE__ */ a.jsx(
1700
+ La,
1699
1701
  {
1700
- ...a,
1702
+ ...o,
1701
1703
  ...r,
1702
- ref: e,
1704
+ ref: t,
1703
1705
  style: {
1704
- ...t.style,
1706
+ ...e.style,
1705
1707
  "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1706
1708
  "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1707
1709
  "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
@@ -1711,172 +1713,172 @@ var ns = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
1711
1713
  }
1712
1714
  );
1713
1715
  });
1714
- On.displayName = ns;
1715
- var rs = Mn, as = Cn, Tn = Pn, kn = _n, Fn = En, Ln = Sn, Kn = jn, $n = Nn, Bn = Dn, Qn = In, os = es, Un = An, Gn = On;
1716
- const ss = rs, is = as, cs = Tn, us = os, qn = u.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1717
- Un,
1716
+ Dn.displayName = ns;
1717
+ var rs = xn, os = yn, In = bn, An = Cn, On = Pn, Tn = Rn, kn = En, Fn = Sn, Ln = _n, Kn = jn, as = es, $n = Nn, Bn = Dn;
1718
+ const ss = rs, is = os, cs = In, us = as, Qn = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1719
+ $n,
1718
1720
  {
1719
- ref: a,
1720
- className: P(
1721
+ ref: o,
1722
+ className: M(
1721
1723
  "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",
1722
- e && "pl-8",
1723
- t
1724
+ t && "pl-8",
1725
+ e
1724
1726
  ),
1725
1727
  ...r,
1726
1728
  children: [
1727
1729
  n,
1728
- /* @__PURE__ */ o.jsx(Xe, { className: "ml-auto h-4 w-4" })
1730
+ /* @__PURE__ */ a.jsx($t, { className: "ml-auto h-4 w-4" })
1729
1731
  ]
1730
1732
  }
1731
1733
  ));
1732
- qn.displayName = Un.displayName;
1733
- const Hn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1734
- Gn,
1734
+ Qn.displayName = $n.displayName;
1735
+ const Un = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1736
+ Bn,
1735
1737
  {
1736
1738
  ref: n,
1737
- className: P(
1739
+ className: M(
1738
1740
  "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",
1739
- t
1741
+ e
1740
1742
  ),
1741
- ...e
1743
+ ...t
1742
1744
  }
1743
1745
  ));
1744
- Hn.displayName = Gn.displayName;
1745
- const zn = u.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ o.jsx(Tn, { children: /* @__PURE__ */ o.jsx(
1746
- kn,
1746
+ Un.displayName = Bn.displayName;
1747
+ const Gn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(In, { children: /* @__PURE__ */ a.jsx(
1748
+ An,
1747
1749
  {
1748
1750
  ref: r,
1749
- sideOffset: e,
1750
- className: P(
1751
+ sideOffset: t,
1752
+ className: M(
1751
1753
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1752
1754
  "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",
1753
- t
1755
+ e
1754
1756
  ),
1755
1757
  ...n
1756
1758
  }
1757
1759
  ) }));
1758
- zn.displayName = kn.displayName;
1759
- const Vn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
1760
- Ln,
1760
+ Gn.displayName = An.displayName;
1761
+ const Hn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1762
+ Tn,
1761
1763
  {
1762
1764
  ref: r,
1763
- className: P(
1765
+ className: M(
1764
1766
  "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",
1765
- e && "pl-8",
1766
- t
1767
+ t && "pl-8",
1768
+ e
1767
1769
  ),
1768
1770
  ...n
1769
1771
  }
1770
1772
  ));
1771
- Vn.displayName = Ln.displayName;
1772
- const ls = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1773
- Kn,
1773
+ Hn.displayName = Tn.displayName;
1774
+ const ls = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1775
+ kn,
1774
1776
  {
1775
- ref: a,
1776
- className: P(
1777
+ ref: o,
1778
+ className: M(
1777
1779
  "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",
1778
- t
1780
+ e
1779
1781
  ),
1780
1782
  checked: n,
1781
1783
  ...r,
1782
1784
  children: [
1783
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(Or, { className: "h-4 w-4" }) }) }),
1784
- e
1785
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Ln, { children: /* @__PURE__ */ a.jsx(Ir, { className: "h-4 w-4" }) }) }),
1786
+ t
1785
1787
  ]
1786
1788
  }
1787
1789
  ));
1788
- ls.displayName = Kn.displayName;
1789
- const ds = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ o.jsxs(
1790
- $n,
1790
+ ls.displayName = kn.displayName;
1791
+ const ds = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1792
+ Fn,
1791
1793
  {
1792
1794
  ref: r,
1793
- className: P(
1795
+ className: M(
1794
1796
  "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",
1795
- t
1797
+ e
1796
1798
  ),
1797
1799
  ...n,
1798
1800
  children: [
1799
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(da, { className: "h-4 w-4 fill-current" }) }) }),
1800
- e
1801
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Ln, { children: /* @__PURE__ */ a.jsx(ho, { className: "h-4 w-4 fill-current" }) }) }),
1802
+ t
1801
1803
  ]
1802
1804
  }
1803
1805
  ));
1804
- ds.displayName = $n.displayName;
1805
- const Yn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
1806
- Fn,
1806
+ ds.displayName = Fn.displayName;
1807
+ const qn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1808
+ On,
1807
1809
  {
1808
1810
  ref: r,
1809
- className: P(
1811
+ className: M(
1810
1812
  "px-2 py-1.5 text-sm font-semibold",
1811
- e && "pl-8",
1812
- t
1813
+ t && "pl-8",
1814
+ e
1813
1815
  ),
1814
1816
  ...n
1815
1817
  }
1816
1818
  ));
1817
- Yn.displayName = Fn.displayName;
1818
- const Xn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1819
- Qn,
1819
+ qn.displayName = On.displayName;
1820
+ const zn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1821
+ Kn,
1820
1822
  {
1821
1823
  ref: n,
1822
- className: P("-mx-1 my-1 h-px bg-muted", t),
1823
- ...e
1824
+ className: M("-mx-1 my-1 h-px bg-muted", e),
1825
+ ...t
1824
1826
  }
1825
1827
  ));
1826
- Xn.displayName = Qn.displayName;
1828
+ zn.displayName = Kn.displayName;
1827
1829
  const hs = () => {
1828
- const { navigation: t } = Ve();
1829
- return t.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
1830
- $e,
1830
+ const { topNavigation: e } = Ve();
1831
+ return e.length <= 1 ? null : /* @__PURE__ */ a.jsx("nav", { className: "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(
1832
+ Ge,
1831
1833
  {
1832
- className: ({ isActive: n }) => Tr(
1834
+ className: ({ isActive: n }) => Ar(
1833
1835
  "block py-3.5 font-medium -mb-px border-b-2",
1834
1836
  n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1835
1837
  ),
1836
- to: e.path,
1837
- children: e.label
1838
+ to: t.id,
1839
+ children: t.label
1838
1840
  }
1839
- ) }, e.label)) }) });
1840
- }, Wn = ({ item: t }) => t.children ? /* @__PURE__ */ o.jsxs(us, { children: [
1841
- /* @__PURE__ */ o.jsx(qn, { children: t.label }),
1842
- /* @__PURE__ */ o.jsx(cs, { children: /* @__PURE__ */ o.jsx(Hn, { children: t.children.map((e, n) => (
1841
+ ) }, t.label)) }) });
1842
+ }, Vn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(us, { children: [
1843
+ /* @__PURE__ */ a.jsx(Qn, { children: e.label }),
1844
+ /* @__PURE__ */ a.jsx(cs, { children: /* @__PURE__ */ a.jsx(Un, { children: e.children.map((t, n) => (
1843
1845
  // eslint-disable-next-line react/no-array-index-key
1844
- /* @__PURE__ */ o.jsx(Wn, { item: e }, n)
1846
+ /* @__PURE__ */ a.jsx(Vn, { item: t }, n)
1845
1847
  )) }) })
1846
- ] }, t.label) : /* @__PURE__ */ o.jsx(Ee, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Vn, { children: t.label }, t.label) }), Jn = kt(function() {
1847
- const [e, n] = kr(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = Ar(), { pathname: i } = J(), c = Ve(), { page: l, plugins: p } = c, f = e ? pa : fa;
1848
- return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1849
- /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1850
- /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Ee, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
1851
- (l == null ? void 0 : l.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1852
- /* @__PURE__ */ o.jsx(
1848
+ ] }, e.label) : /* @__PURE__ */ a.jsx(Re, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(Hn, { children: e.label }, e.label) }), Yn = Tt(function() {
1849
+ const [t, n] = Or(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = Dr(), { pathname: i } = Ne(), u = Ve(), { page: d, plugins: m } = u, f = t ? po : mo;
1850
+ return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1851
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1852
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Re, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1853
+ (d == null ? void 0 : d.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1854
+ /* @__PURE__ */ a.jsx(
1853
1855
  "img",
1854
1856
  {
1855
- src: l.logo.src.light,
1856
- alt: l.logo.alt ?? l.pageTitle,
1857
- style: { width: l.logo.width },
1858
- className: P("h-10", e && "hidden"),
1857
+ src: d.logo.src.light,
1858
+ alt: d.logo.alt ?? d.pageTitle,
1859
+ style: { width: d.logo.width },
1860
+ className: M("h-10", t && "hidden"),
1859
1861
  loading: "lazy"
1860
1862
  }
1861
1863
  ),
1862
- /* @__PURE__ */ o.jsx(
1864
+ /* @__PURE__ */ a.jsx(
1863
1865
  "img",
1864
1866
  {
1865
- src: l.logo.src.dark,
1866
- alt: l.logo.alt ?? l.pageTitle,
1867
- style: { width: l.logo.width },
1868
- className: P("h-10", !e && "hidden"),
1867
+ src: d.logo.src.dark,
1868
+ alt: d.logo.alt ?? d.pageTitle,
1869
+ style: { width: d.logo.width },
1870
+ className: M("h-10", !t && "hidden"),
1869
1871
  loading: "lazy"
1870
1872
  }
1871
1873
  )
1872
1874
  ] }),
1873
- /* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1875
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: d == null ? void 0 : d.pageTitle })
1874
1876
  ] }) }) }),
1875
- /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1876
- /* @__PURE__ */ o.jsx("div", { className: "w-full max-w-prose" }),
1877
- /* @__PURE__ */ o.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1878
- s && !r ? /* @__PURE__ */ o.jsx(Be, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(
1879
- Ee,
1877
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1878
+ /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-prose" }),
1879
+ /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1880
+ s && !r ? /* @__PURE__ */ a.jsx($e, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ a.jsx(
1881
+ Re,
1880
1882
  {
1881
1883
  to: {
1882
1884
  pathname: "/signin",
@@ -1884,116 +1886,161 @@ const hs = () => {
1884
1886
  },
1885
1887
  children: "Login"
1886
1888
  }
1887
- ) }) : /* @__PURE__ */ o.jsxs(ss, { children: [
1888
- /* @__PURE__ */ o.jsx(is, { asChild: !0, children: /* @__PURE__ */ o.jsx(Be, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
1889
- /* @__PURE__ */ o.jsxs(zn, { className: "w-56", children: [
1890
- /* @__PURE__ */ o.jsx(Yn, { children: "My Account" }),
1891
- /* @__PURE__ */ o.jsx(Xn, {}),
1892
- p.filter((d) => Qa(d)).flatMap((d) => d.getProfileMenuItems(c)).map((d) => /* @__PURE__ */ o.jsx(Wn, { item: d }, d.label))
1889
+ ) }) : /* @__PURE__ */ a.jsxs(ss, { children: [
1890
+ /* @__PURE__ */ a.jsx(is, { asChild: !0, children: /* @__PURE__ */ a.jsx($e, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
1891
+ /* @__PURE__ */ a.jsxs(Gn, { className: "w-56", children: [
1892
+ /* @__PURE__ */ a.jsx(qn, { children: "My Account" }),
1893
+ /* @__PURE__ */ a.jsx(zn, {}),
1894
+ m.filter((l) => Uo(l)).flatMap((l) => l.getProfileMenuItems(u)).map((l) => /* @__PURE__ */ a.jsx(Vn, { item: l }, l.label))
1893
1895
  ] })
1894
1896
  ] }),
1895
- /* @__PURE__ */ o.jsx(
1897
+ /* @__PURE__ */ a.jsx(
1896
1898
  "button",
1897
1899
  {
1898
1900
  type: "button",
1899
- "aria-label": e ? "Switch to light mode" : "Switch to dark mode",
1901
+ "aria-label": t ? "Switch to light mode" : "Switch to dark mode",
1900
1902
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1901
1903
  onClick: n,
1902
- children: /* @__PURE__ */ o.jsx(f, { size: 18 })
1904
+ children: /* @__PURE__ */ a.jsx(f, { size: 18 })
1903
1905
  }
1904
1906
  )
1905
1907
  ] })
1906
1908
  ] })
1907
1909
  ] }),
1908
- /* @__PURE__ */ o.jsx(hs, {})
1910
+ /* @__PURE__ */ a.jsx(hs, {})
1909
1911
  ] }) });
1910
- }), Zn = {
1911
- Header: Jn
1912
- }, ps = Tt(Zn), fs = ps.Provider, ms = ({
1913
- children: t,
1914
- ...e
1912
+ }), Xn = {
1913
+ Header: Yn
1914
+ }, fs = Ot(Xn), ps = fs.Provider, ms = (e) => {
1915
+ const [t, n] = ue(!1);
1916
+ W(() => {
1917
+ const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
1918
+ n(u);
1919
+ }, [t]);
1920
+ const r = Ur(() => {
1921
+ const s = !t;
1922
+ document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
1923
+ }, [t]), o = [t, r];
1924
+ return /* @__PURE__ */ a.jsx(Tr.Provider, { value: o, ...e });
1925
+ }, gs = ({
1926
+ children: e,
1927
+ ...t
1915
1928
  }) => {
1916
- var R, N;
1929
+ var R, D;
1917
1930
  const n = Le(
1918
- () => ({ ...Zn, ...e.overrides }),
1919
- [e.overrides]
1931
+ () => ({ ...Xn, ...t.overrides }),
1932
+ [t.overrides]
1920
1933
  ), r = Le(() => {
1921
- var D;
1934
+ var I;
1922
1935
  return {
1923
- ...(e.plugins ?? []).filter(Ha).flatMap(
1924
- (w) => w.getMdxComponents ? [w.getMdxComponents()] : []
1925
- ).reduce((w, E) => ({ ...w, ...E }), {}),
1926
- ...Fr,
1927
- ...(D = e.mdx) == null ? void 0 : D.components
1936
+ ...(t.plugins ?? []).filter(zo).flatMap(
1937
+ (y) => y.getMdxComponents ? [y.getMdxComponents()] : []
1938
+ ).reduce((y, S) => ({ ...y, ...S }), {}),
1939
+ ...kr,
1940
+ ...(I = t.mdx) == null ? void 0 : I.components
1928
1941
  };
1929
- }, [(R = e.mdx) == null ? void 0 : R.components, e.plugins]), [a, s] = le(!1), { stagger: i } = qr(Qe), [c, l] = le(!1), p = vr(), f = ge("idle"), d = Le(
1930
- () => c ? { stagger: !0 } : { stagger: i },
1931
- [i, c]
1932
- ), g = xr();
1942
+ }, [(R = t.mdx) == null ? void 0 : R.components, t.plugins]), [o, s] = ue(!1), { stagger: i } = Gr(Be), [u, d] = ue(!1), m = fr(), f = De("idle"), l = Le(
1943
+ () => u ? { stagger: !0 } : { stagger: i },
1944
+ [i, u]
1945
+ ), p = pr();
1933
1946
  W(() => {
1934
- c || l(!0);
1935
- }, [c, g.location]);
1936
- const [v] = le(() => new Va(e));
1947
+ u || d(!0);
1948
+ }, [u, p.location]);
1949
+ const [v] = ue(() => new Yo(t));
1937
1950
  W(() => {
1938
- f.current !== "pending" && (f.current = "pending", v.initialize({ navigate: p }).then(() => {
1951
+ f.current !== "pending" && (f.current = "pending", v.initialize({ navigate: m }).then(() => {
1939
1952
  f.current = "done", s(!0);
1940
1953
  }));
1941
- }, [v, p]);
1942
- const x = (N = e.plugins) == null ? void 0 : N.filter(qa).map((_, D) => {
1943
- var w;
1944
- return /* @__PURE__ */ o.jsx(Hr, { children: (w = _.getHead) == null ? void 0 : w.call(_) }, D);
1954
+ }, [v, m]);
1955
+ const x = (D = t.plugins) == null ? void 0 : D.filter(qo).map((E, I) => {
1956
+ var y;
1957
+ return /* @__PURE__ */ a.jsx(Hr, { children: (y = E.getHead) == null ? void 0 : y.call(E) }, I);
1945
1958
  });
1946
- return a ? /* @__PURE__ */ o.jsxs(ra, { client: zt, children: [
1947
- /* @__PURE__ */ o.jsx(Ge, { children: x }),
1948
- /* @__PURE__ */ o.jsx(Qe.Provider, { value: d, children: /* @__PURE__ */ o.jsx(aa, { value: v, children: /* @__PURE__ */ o.jsx(ur, { components: r, children: /* @__PURE__ */ o.jsx(Lr, { children: /* @__PURE__ */ o.jsx(fs, { value: n, children: /* @__PURE__ */ o.jsx(fr, { slotlets: e.slotlets, children: /* @__PURE__ */ o.jsx(Kr, { children: t ?? /* @__PURE__ */ o.jsx(St, {}) }) }) }) }) }) }) })
1959
+ return o ? /* @__PURE__ */ a.jsxs(ao, { client: Gt, children: [
1960
+ /* @__PURE__ */ a.jsx(Ue, { children: x }),
1961
+ /* @__PURE__ */ a.jsx(Be.Provider, { value: l, children: /* @__PURE__ */ a.jsx(so, { value: v, children: /* @__PURE__ */ a.jsx(sr, { components: r, children: /* @__PURE__ */ a.jsx(ms, { children: /* @__PURE__ */ a.jsx(ps, { value: n, children: /* @__PURE__ */ a.jsx(mr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Fr, { children: e ?? /* @__PURE__ */ a.jsx(Et, {}) }) }) }) }) }) }) })
1949
1962
  ] }) : null;
1950
- }, gs = kt(ms), er = (t) => /* @__PURE__ */ o.jsx($a, { FallbackComponent: Ya, children: /* @__PURE__ */ o.jsx(gs, { ...t }) });
1951
- er.displayName = "DevPortal";
1952
- const vs = () => {
1953
- const t = J(), { setActiveAnchor: e } = He();
1954
- W(() => {
1955
- if (!t.hash) return;
1956
- const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
1957
- if (r) {
1958
- requestAnimationFrame(() => {
1959
- r.scrollIntoView(), requestIdleCallback(() => e(n));
1960
- });
1961
- return;
1962
- }
1963
- const a = new MutationObserver((s, i) => {
1964
- const c = document.getElementById(decodeURIComponent(n));
1965
- c && (c.scrollIntoView(), requestIdleCallback(() => e(n)), i.disconnect());
1966
- });
1967
- return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
1968
- }, [t.hash, e]);
1969
- }, xs = () => {
1970
- const t = J(), e = ge(t.pathname);
1971
- W(() => {
1972
- e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1973
- }, [t.pathname]);
1974
- }, tr = ({
1975
- item: t,
1976
- defaultOpen: e,
1977
- path: n
1963
+ }, vs = Tt(gs), Wn = (e) => /* @__PURE__ */ a.jsx(Bo, { FallbackComponent: Xo, children: /* @__PURE__ */ a.jsx(vs, { ...e }) });
1964
+ Wn.displayName = "DevPortal";
1965
+ const xs = ({
1966
+ category: e,
1967
+ level: t
1978
1968
  }) => {
1979
- const [r, a] = le(e), s = J(), i = ge(s.pathname), [c, l] = le(!1);
1969
+ var f;
1970
+ const n = Lt(), r = ir(e), o = e.collapsible ?? !0, s = e.collapsed ?? !0, i = !!(!o || !s || r), [u, d] = ue(i);
1980
1971
  W(() => {
1981
- !r && i.current !== s.pathname && a(Ye(t, s.pathname, n)), i.current = s.pathname;
1982
- }, [r, t, n, s.pathname]);
1983
- const p = () => {
1984
- l(!0), a((f) => !f);
1985
- };
1986
- return W(() => {
1987
- l(!1);
1988
- }, []), {
1989
- open: r,
1990
- onOpenChange: p,
1991
- "data-animate": c
1992
- };
1993
- }, _e = $r(
1972
+ r && d(!0);
1973
+ }, [r]);
1974
+ const m = o && /* @__PURE__ */ a.jsx(
1975
+ "button",
1976
+ {
1977
+ type: "button",
1978
+ onClick: (l) => {
1979
+ l.preventDefault(), d((p) => !p);
1980
+ },
1981
+ children: /* @__PURE__ */ a.jsx(
1982
+ $t,
1983
+ {
1984
+ size: 16,
1985
+ className: "transition shrink-0 group-data-[state=open]:rotate-90"
1986
+ }
1987
+ )
1988
+ }
1989
+ );
1990
+ return /* @__PURE__ */ a.jsxs(
1991
+ Yr,
1992
+ {
1993
+ className: M("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
1994
+ defaultOpen: i,
1995
+ open: u,
1996
+ onOpenChange: () => d(!0),
1997
+ children: [
1998
+ /* @__PURE__ */ a.jsx(
1999
+ Xr,
2000
+ {
2001
+ className: M(
2002
+ "group text-start",
2003
+ Pe({ isActive: !1, isTopLevel: t === 0 }),
2004
+ o ? "cursor-pointer" : "cursor-default hover:bg-transparent"
2005
+ ),
2006
+ asChild: !0,
2007
+ disabled: !o,
2008
+ children: ((f = e.link) == null ? void 0 : f.type) === "doc" ? /* @__PURE__ */ a.jsx(Ge, { to: Ye(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: l }) => /* @__PURE__ */ a.jsxs(
2009
+ "div",
2010
+ {
2011
+ className: M(
2012
+ "flex items-center gap-2 justify-between w-full",
2013
+ l ? "text-primary font-medium" : "text-foreground/80"
2014
+ ),
2015
+ children: [
2016
+ /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
2017
+ m
2018
+ ]
2019
+ }
2020
+ ) }) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
2021
+ /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
2022
+ m
2023
+ ] })
2024
+ }
2025
+ ),
2026
+ /* @__PURE__ */ a.jsx(Wr, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((l) => /* @__PURE__ */ a.jsx(
2027
+ Zn,
2028
+ {
2029
+ level: t + 1,
2030
+ item: l
2031
+ },
2032
+ l.label
2033
+ )) }) })
2034
+ ]
2035
+ }
2036
+ );
2037
+ }, Pe = Lr(
1994
2038
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1995
2039
  {
1996
2040
  variants: {
2041
+ isTopLevel: {
2042
+ true: "font-semibold"
2043
+ },
1997
2044
  isActive: {
1998
2045
  true: "text-primary font-medium",
1999
2046
  false: "text-foreground/80"
@@ -2004,191 +2051,146 @@ const vs = () => {
2004
2051
  }
2005
2052
  }
2006
2053
  }
2007
- ), ys = "data-anchor", nr = ({
2008
- category: t,
2054
+ ), Jn = "data-anchor", Zn = ({
2009
2055
  item: e,
2010
- activeAnchor: n,
2011
- currentTopNavItem: r,
2012
- basePath: a = ""
2056
+ level: t = 0
2013
2057
  }) => {
2014
- const s = wt(e) ? Qt(a, e.path) : "", i = J(), c = tr({
2015
- item: e,
2016
- path: s,
2017
- defaultOpen: () => Ye(e, i.pathname, a)
2018
- });
2019
- if (oa(e)) {
2020
- const p = P(
2021
- "flex items-center gap-2",
2022
- _e({
2023
- isActive: e.href === i.pathname
2024
- })
2025
- );
2026
- return e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
2027
- "a",
2028
- {
2029
- className: p,
2030
- href: e.href,
2031
- target: "_blank",
2032
- rel: "noopener noreferrer",
2033
- children: [
2034
- e.label,
2035
- /* @__PURE__ */ o.jsx(ha, { size: 14 })
2036
- ]
2037
- }
2038
- ) : /* @__PURE__ */ o.jsx($e, { className: p, to: e.href, children: e.label });
2058
+ const n = Lt(), { activeAnchor: r } = qe();
2059
+ switch (e.type) {
2060
+ case "category":
2061
+ return /* @__PURE__ */ a.jsx(xs, { category: e, level: t });
2062
+ case "doc":
2063
+ return /* @__PURE__ */ a.jsxs(
2064
+ Ge,
2065
+ {
2066
+ className: ({ isActive: o }) => Pe({ isActive: o, isTopLevel: t === 0 }),
2067
+ to: Ye(n == null ? void 0 : n.id, e.id),
2068
+ children: [
2069
+ e.label,
2070
+ e.badge && /* @__PURE__ */ a.jsx(wt, { ...e.badge })
2071
+ ]
2072
+ }
2073
+ );
2074
+ case "link":
2075
+ return e.href.startsWith("#") ? /* @__PURE__ */ a.jsxs(
2076
+ cr,
2077
+ {
2078
+ to: e.href,
2079
+ [Jn]: e.href.slice(1),
2080
+ className: M(
2081
+ "flex gap-2.5 justify-between",
2082
+ t === 0 && "-mx-[--padding-nav-item]",
2083
+ Pe({
2084
+ isActive: e.href.slice(1) === r
2085
+ })
2086
+ ),
2087
+ children: [
2088
+ e.label,
2089
+ e.badge && /* @__PURE__ */ a.jsx(wt, { ...e.badge })
2090
+ ]
2091
+ }
2092
+ ) : /* @__PURE__ */ a.jsxs(
2093
+ "a",
2094
+ {
2095
+ className: M(
2096
+ Pe({ isTopLevel: t === 0 }),
2097
+ "block"
2098
+ ),
2099
+ href: e.href,
2100
+ target: "_blank",
2101
+ rel: "noopener noreferrer",
2102
+ children: [
2103
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
2104
+ /* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
2105
+ " ",
2106
+ /* @__PURE__ */ a.jsx(fo, { className: "inline ml-1", size: 12 })
2107
+ ] })
2108
+ ]
2109
+ }
2110
+ );
2039
2111
  }
2040
- const l = /* @__PURE__ */ o.jsxs("div", { className: "flex justify-between w-full", children: [
2041
- /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
2042
- e.icon,
2043
- typeof e.label != "string" ? e.label : /* @__PURE__ */ o.jsx("span", { className: "truncate", children: e.label })
2044
- ] }),
2045
- e.children && /* @__PURE__ */ o.jsx(
2046
- Xe,
2047
- {
2048
- size: 16,
2049
- className: "transition shrink-0 group-data-[state=open]:rotate-90"
2050
- }
2051
- )
2052
- ] });
2053
- return /* @__PURE__ */ o.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ o.jsxs(Ft, { ...c, className: "flex flex-col", children: [
2054
- /* @__PURE__ */ o.jsx(
2055
- Lt,
2056
- {
2057
- className: P(
2058
- "group text-start",
2059
- _e({ isActive: !1 })
2060
- ),
2061
- children: l
2062
- }
2063
- ),
2064
- /* @__PURE__ */ o.jsx(Kt, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((p) => /* @__PURE__ */ o.jsx(
2065
- nr,
2066
- {
2067
- category: t,
2068
- item: p,
2069
- activeAnchor: n,
2070
- currentTopNavItem: r,
2071
- basePath: s
2072
- },
2073
- wt(p) ? p.path : p.href
2074
- )) }) })
2075
- ] }) : e.path.startsWith("#") ? /* @__PURE__ */ o.jsx(
2076
- lr,
2077
- {
2078
- to: e.path,
2079
- [ys]: e.path,
2080
- className: _e({
2081
- isActive: e.path.slice(1) === n,
2082
- isMuted: e.muted
2083
- }),
2084
- children: l
2085
- }
2086
- ) : /* @__PURE__ */ o.jsx(
2087
- $e,
2088
- {
2089
- className: ({ isActive: p }) => _e({ isActive: p }),
2090
- to: s,
2091
- children: l
2112
+ }, ws = (e, t = { block: "center" }) => {
2113
+ if (!e) return;
2114
+ const n = e.getBoundingClientRect();
2115
+ n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
2116
+ }, ys = () => {
2117
+ const e = Ne(), { setActiveAnchor: t } = qe();
2118
+ W(() => {
2119
+ if (!e.hash) return;
2120
+ const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
2121
+ const o = document.getElementById(n), s = document.querySelector(`[${Jn}="${n}"]`);
2122
+ return o ? (o.scrollIntoView(), ws(s), requestIdleCallback(() => t(n)), !0) : !1;
2123
+ };
2124
+ if (!r()) {
2125
+ const o = new MutationObserver((s, i) => {
2126
+ r() && i.disconnect();
2127
+ });
2128
+ return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
2092
2129
  }
2093
- ) });
2094
- }, ws = ({
2095
- category: t
2096
- }) => {
2097
- const { activeAnchor: e } = He(), n = sa(), r = J(), a = t.collapsible ?? !0, s = tr({
2098
- item: t,
2099
- path: (n == null ? void 0 : n.path) ?? "",
2100
- defaultOpen: () => !a || t.expanded || Ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
2101
- });
2102
- return /* @__PURE__ */ o.jsxs(Ft, { ...s, children: [
2103
- t.label.length > 0 ? /* @__PURE__ */ o.jsx(Lt, { asChild: a, disabled: !a, children: /* @__PURE__ */ o.jsxs(
2104
- "h5",
2105
- {
2106
- className: P(
2107
- "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
2108
- a ? "hover:bg-accent" : "cursor-auto"
2109
- ),
2110
- children: [
2111
- t.label,
2112
- a && /* @__PURE__ */ o.jsx(
2113
- Xe,
2114
- {
2115
- className: "group-data-[state=open]:rotate-90 transition",
2116
- size: 16
2117
- }
2118
- )
2119
- ]
2120
- }
2121
- ) }) : "Endpoints",
2122
- /* @__PURE__ */ o.jsx(Kt, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ o.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((i, c) => /* @__PURE__ */ o.jsx(
2123
- nr,
2124
- {
2125
- category: t,
2126
- item: i,
2127
- activeAnchor: e,
2128
- currentTopNavItem: n,
2129
- basePath: Qt(n == null ? void 0 : n.path, t.path)
2130
- },
2131
- c
2132
- )) }) })
2133
- ] }, t.label);
2134
- }, Ms = zr(function({ children: e, className: n, pushMainContent: r }, a) {
2135
- return /* @__PURE__ */ o.jsx(
2130
+ }, [e.hash, t]);
2131
+ }, bs = () => {
2132
+ const e = Ne(), t = De(e.pathname);
2133
+ W(() => {
2134
+ t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
2135
+ }, [e.pathname]);
2136
+ }, Ms = qr(function({ children: t, className: n, pushMainContent: r }, o) {
2137
+ return /* @__PURE__ */ a.jsx(
2136
2138
  "nav",
2137
2139
  {
2138
2140
  "data-navigation": String(r),
2139
- className: P(
2141
+ className: M(
2140
2142
  "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
2141
2143
  n
2142
2144
  ),
2143
- ref: a,
2144
- children: e
2145
+ ref: o,
2146
+ children: t
2145
2147
  }
2146
2148
  );
2147
- }), bs = () => {
2148
- const t = ge(null), e = ia();
2149
- return /* @__PURE__ */ o.jsxs(
2149
+ }), Cs = () => {
2150
+ const e = De(null), t = io();
2151
+ return /* @__PURE__ */ a.jsxs(
2150
2152
  Ms,
2151
2153
  {
2152
- ref: t,
2153
- pushMainContent: e.data.items.length > 0,
2154
+ ref: e,
2155
+ pushMainContent: t.data.items.length > 0,
2154
2156
  children: [
2155
- /* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-navigation" }),
2156
- e.data.items.map((n) => /* @__PURE__ */ o.jsx(ws, { category: n }, n.label)),
2157
- /* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-navigation" })
2157
+ /* @__PURE__ */ a.jsx(Ee, { name: "zudoku-before-navigation" }),
2158
+ t.data.items.map((n) => /* @__PURE__ */ a.jsx(Zn, { item: n }, n.label)),
2159
+ /* @__PURE__ */ a.jsx(Ee, { name: "zudoku-after-navigation" })
2158
2160
  ]
2159
2161
  }
2160
2162
  );
2161
- }, Cs = ({ children: t }) => {
2162
- const e = J(), { setActiveAnchor: n } = He(), { meta: r } = Ve();
2163
- vs(), xs();
2164
- const a = ge(e.pathname);
2163
+ }, Ps = ({ children: e }) => {
2164
+ const t = Ne(), { setActiveAnchor: n } = qe(), { meta: r } = Ve();
2165
+ ys(), bs();
2166
+ const o = De(t.pathname);
2165
2167
  return W(() => {
2166
- e.pathname !== a.current && n(""), a.current = e.pathname;
2167
- }, [e.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2168
- /* @__PURE__ */ o.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
2169
- (r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
2170
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
2168
+ t.pathname !== o.current && n(""), o.current = t.pathname;
2169
+ }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2170
+ /* @__PURE__ */ a.jsxs(Ue, { titleTemplate: r == null ? void 0 : r.title, children: [
2171
+ (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
2172
+ (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
2171
2173
  ] }),
2172
- /* @__PURE__ */ o.jsx(Jn, {}),
2173
- /* @__PURE__ */ o.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ o.jsxs(
2174
- Vr,
2174
+ /* @__PURE__ */ a.jsx(Yn, {}),
2175
+ /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
2176
+ zr,
2175
2177
  {
2176
- fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(la, {}) }),
2178
+ fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(lo, {}) }),
2177
2179
  children: [
2178
- /* @__PURE__ */ o.jsx(bs, {}),
2179
- /* @__PURE__ */ o.jsxs(
2180
+ /* @__PURE__ */ a.jsx(Cs, {}),
2181
+ /* @__PURE__ */ a.jsxs(
2180
2182
  "main",
2181
2183
  {
2182
- className: P(
2184
+ className: M(
2183
2185
  "dark:border-white/10 translate-x-0 h-full",
2184
2186
  "lg:overflow-visible",
2185
2187
  "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
2186
2188
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
2187
2189
  ),
2188
2190
  children: [
2189
- /* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-content" }),
2190
- t ?? /* @__PURE__ */ o.jsx(St, {}),
2191
- /* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-content" })
2191
+ /* @__PURE__ */ a.jsx(Ee, { name: "zudoku-before-content" }),
2192
+ e ?? /* @__PURE__ */ a.jsx(Et, {}),
2193
+ /* @__PURE__ */ a.jsx(Ee, { name: "zudoku-after-content" })
2192
2194
  ]
2193
2195
  }
2194
2196
  )
@@ -2196,18 +2198,18 @@ const vs = () => {
2196
2198
  }
2197
2199
  ) })
2198
2200
  ] });
2199
- }, Ls = dr, Ks = Br, $s = er, Bs = Cs, Qs = Ee, Us = mr, Gs = ma, qs = Ia, Hs = Aa, zs = Be, Vs = Ge;
2201
+ }, $s = ur, Bs = Kr, Qs = Wn, Us = Ps, Gs = Re, Hs = gr, qs = go, zs = Ao, Vs = Oo, Ys = $e, Xs = Ue;
2200
2202
  export {
2201
- qs as Bootstrap,
2202
- Hs as BootstrapStatic,
2203
- zs as Button,
2204
- Ks as Callout,
2205
- $s as DevPortal,
2206
- Vs as Head,
2207
- Bs as Layout,
2208
- Qs as Link,
2209
- Us as RouterError,
2210
- Gs as ServerError,
2211
- Ls as useMDXComponents
2203
+ zs as Bootstrap,
2204
+ Vs as BootstrapStatic,
2205
+ Ys as Button,
2206
+ Bs as Callout,
2207
+ Qs as DevPortal,
2208
+ Xs as Head,
2209
+ Us as Layout,
2210
+ Gs as Link,
2211
+ Hs as RouterError,
2212
+ qs as ServerError,
2213
+ $s as useMDXComponents
2212
2214
  };
2213
2215
  //# sourceMappingURL=zudoku.components.js.map