zudoku 0.16.2 → 0.17.0

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 (174) hide show
  1. package/dist/app/entry.server.js +4 -5
  2. package/dist/app/entry.server.js.map +1 -1
  3. package/dist/app/main.d.ts +1 -1
  4. package/dist/app/main.js +2 -2
  5. package/dist/app/main.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +44 -44
  7. package/dist/config/validators/validate.js.map +1 -1
  8. package/dist/index.d.ts +2 -2
  9. package/dist/index.js +1 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/lib/authentication/authentication.d.ts +2 -2
  12. package/dist/lib/authentication/state.d.ts +1 -1
  13. package/dist/lib/authentication/state.js +5 -3
  14. package/dist/lib/authentication/state.js.map +1 -1
  15. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  16. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  17. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  18. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  19. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  20. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  21. package/dist/lib/components/ClientOnly.d.ts +4 -2
  22. package/dist/lib/components/ClientOnly.js +1 -1
  23. package/dist/lib/components/ClientOnly.js.map +1 -1
  24. package/dist/lib/components/Header.js +4 -2
  25. package/dist/lib/components/Header.js.map +1 -1
  26. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  27. package/dist/lib/components/{DevPortal.js → Zudoku.js} +11 -11
  28. package/dist/lib/components/Zudoku.js.map +1 -0
  29. package/dist/lib/components/context/ZudokuContext.d.ts +4 -4
  30. package/dist/lib/components/context/ZudokuContext.js +1 -1
  31. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  32. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  33. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  34. package/dist/lib/components/index.d.ts +4 -7
  35. package/dist/lib/components/index.js +2 -3
  36. package/dist/lib/components/index.js.map +1 -1
  37. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +5 -5
  38. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -2
  39. package/dist/lib/core/ZudokuContext.js.map +1 -0
  40. package/dist/lib/core/plugins.d.ts +12 -12
  41. package/dist/lib/core/plugins.js.map +1 -1
  42. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  43. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  44. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  45. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  46. package/dist/lib/plugins/markdown/index.d.ts +2 -2
  47. package/dist/lib/plugins/markdown/index.js.map +1 -1
  48. package/dist/lib/plugins/openapi/CollapsibleCode.js +4 -2
  49. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  50. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  51. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  52. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
  53. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  54. package/dist/lib/plugins/openapi/Sidecar.js +28 -24
  55. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  56. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +1 -4
  57. package/dist/lib/plugins/openapi/client/createMemoryClient.js +9 -1
  58. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  59. package/dist/lib/plugins/openapi/client/createWorkerClient.js +2 -1
  60. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  61. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  62. package/dist/lib/plugins/openapi/index.js.map +1 -1
  63. package/dist/lib/plugins/redirect/index.d.ts +2 -2
  64. package/dist/lib/plugins/redirect/index.js.map +1 -1
  65. package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
  66. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  67. package/dist/lib/ui/ActionButton.d.ts +4 -0
  68. package/dist/lib/ui/ActionButton.js +10 -0
  69. package/dist/lib/ui/ActionButton.js.map +1 -0
  70. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  71. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  72. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  73. package/dist/lib/util/useOnScreen.d.ts +4 -0
  74. package/dist/lib/util/useOnScreen.js +19 -0
  75. package/dist/lib/util/useOnScreen.js.map +1 -0
  76. package/dist/vite/plugin-mdx.d.ts +0 -6
  77. package/dist/vite/plugin-mdx.js.map +1 -1
  78. package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-DYbUOP9U.js} +2 -2
  79. package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-DYbUOP9U.js.map} +1 -1
  80. package/lib/{AuthenticationPlugin-C9BHGXlE.js → AuthenticationPlugin-bqGAKfot.js} +3 -3
  81. package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-bqGAKfot.js.map} +1 -1
  82. package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
  83. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  84. package/lib/{Markdown-BDcCAWwm.js → Markdown-D6UxMbZm.js} +2 -2
  85. package/lib/{Markdown-BDcCAWwm.js.map → Markdown-D6UxMbZm.js.map} +1 -1
  86. package/lib/{MdxPage-DKMH_t0f.js → MdxPage-DRKqyn2b.js} +5 -5
  87. package/lib/{MdxPage-DKMH_t0f.js.map → MdxPage-DRKqyn2b.js.map} +1 -1
  88. package/lib/{OperationList-35iw_Gil.js → OperationList-BHUBGM0c.js} +116 -113
  89. package/lib/OperationList-BHUBGM0c.js.map +1 -0
  90. package/lib/{Route-BsEZmkNl.js → Route-B0XuN1oC.js} +3 -3
  91. package/lib/{Route-BsEZmkNl.js.map → Route-B0XuN1oC.js.map} +1 -1
  92. package/lib/{Select-Bagt3Bme.js → Select-DYKDahHt.js} +3 -3
  93. package/lib/{Select-Bagt3Bme.js.map → Select-DYKDahHt.js.map} +1 -1
  94. package/lib/{Spinner-C6zroowC.js → SidebarBadge-Bbt92M5K.js} +16 -18
  95. package/lib/SidebarBadge-Bbt92M5K.js.map +1 -0
  96. package/lib/{SlotletProvider-Da7eFgd2.js → SlotletProvider-mhjLPG44.js} +4 -4
  97. package/lib/{SlotletProvider-Da7eFgd2.js.map → SlotletProvider-mhjLPG44.js.map} +1 -1
  98. package/lib/Spinner-ChOGyPls.js +51 -0
  99. package/lib/Spinner-ChOGyPls.js.map +1 -0
  100. package/lib/{hook-sn0zMTkE.js → hook-CjQERPa7.js} +3 -3
  101. package/lib/{hook-sn0zMTkE.js.map → hook-CjQERPa7.js.map} +1 -1
  102. package/lib/{index-BdD8UbS-.js → index-BRg5pi5D.js} +1351 -1364
  103. package/lib/index-BRg5pi5D.js.map +1 -0
  104. package/lib/{index-CRo94sKK.js → index-DM9hrcCG.js} +4 -4
  105. package/lib/{index-CRo94sKK.js.map → index-DM9hrcCG.js.map} +1 -1
  106. package/lib/state-BsPrOUAh.js +252 -0
  107. package/lib/state-BsPrOUAh.js.map +1 -0
  108. package/lib/ui/ActionButton.js +24 -0
  109. package/lib/ui/ActionButton.js.map +1 -0
  110. package/lib/urql-core-35Qt_U4i.js +1511 -0
  111. package/lib/{urql-core-KJnLL26g.js.map → urql-core-35Qt_U4i.js.map} +1 -1
  112. package/lib/{useExposedProps-ChOIUaS4.js → useExposedProps-BxyHjPNN.js} +2 -2
  113. package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-BxyHjPNN.js.map} +1 -1
  114. package/lib/{ZudokuContext-BKXGJTmu.js → utils-DNAltzXc.js} +153 -152
  115. package/lib/utils-DNAltzXc.js.map +1 -0
  116. package/lib/zudoku.auth-auth0.js +1 -1
  117. package/lib/zudoku.auth-clerk.js +2 -2
  118. package/lib/zudoku.auth-openid.js +4 -4
  119. package/lib/zudoku.components.js +690 -667
  120. package/lib/zudoku.components.js.map +1 -1
  121. package/lib/zudoku.openapi-worker.js +737 -729
  122. package/lib/zudoku.openapi-worker.js.map +1 -1
  123. package/lib/zudoku.plugin-api-keys.js +5 -5
  124. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  125. package/lib/zudoku.plugin-custom-pages.js +2 -2
  126. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  127. package/lib/zudoku.plugin-markdown.js +1 -1
  128. package/lib/zudoku.plugin-markdown.js.map +1 -1
  129. package/lib/zudoku.plugin-openapi.js +6 -6
  130. package/lib/zudoku.plugin-redirect.js.map +1 -1
  131. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  132. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  133. package/package.json +2 -2
  134. package/src/app/entry.server.tsx +9 -5
  135. package/src/app/main.tsx +4 -4
  136. package/src/lib/authentication/authentication.ts +2 -2
  137. package/src/lib/authentication/state.ts +12 -5
  138. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  139. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  140. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  141. package/src/lib/components/ClientOnly.tsx +6 -3
  142. package/src/lib/components/Header.tsx +31 -25
  143. package/src/lib/components/Zudoku.tsx +113 -0
  144. package/src/lib/components/context/ZudokuContext.ts +3 -3
  145. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  146. package/src/lib/components/index.ts +2 -3
  147. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +5 -5
  148. package/src/lib/core/plugins.ts +12 -16
  149. package/src/lib/plugins/api-keys/index.tsx +9 -9
  150. package/src/lib/plugins/custom-pages/index.tsx +2 -2
  151. package/src/lib/plugins/markdown/index.tsx +2 -2
  152. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -8
  153. package/src/lib/plugins/openapi/OperationList.tsx +2 -1
  154. package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
  155. package/src/lib/plugins/openapi/Sidecar.tsx +65 -51
  156. package/src/lib/plugins/openapi/client/createMemoryClient.ts +17 -3
  157. package/src/lib/plugins/openapi/client/createWorkerClient.ts +5 -1
  158. package/src/lib/plugins/openapi/index.tsx +2 -4
  159. package/src/lib/plugins/redirect/index.tsx +2 -2
  160. package/src/lib/plugins/search-inkeep/index.tsx +2 -2
  161. package/src/lib/ui/ActionButton.tsx +28 -0
  162. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  163. package/src/lib/util/useOnScreen.ts +32 -0
  164. package/dist/lib/components/DevPortal.js.map +0 -1
  165. package/dist/lib/core/DevPortalContext.js.map +0 -1
  166. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  167. package/lib/OperationList-35iw_Gil.js.map +0 -1
  168. package/lib/Spinner-C6zroowC.js.map +0 -1
  169. package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
  170. package/lib/index-BdD8UbS-.js.map +0 -1
  171. package/lib/state-CsuHT8ZO.js +0 -183
  172. package/lib/state-CsuHT8ZO.js.map +0 -1
  173. package/lib/urql-core-KJnLL26g.js +0 -1455
  174. package/src/lib/components/DevPortal.tsx +0 -111
@@ -1,49 +1,50 @@
1
- var ut = Object.defineProperty;
2
- var ye = (t) => {
1
+ var ht = Object.defineProperty;
2
+ var be = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var dt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
- var v = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), je = (t, e, r) => e.has(t) || ye("Cannot " + r);
7
- var l = (t, e, r) => (je(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), g = (t, e, r, s) => (je(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
8
- var X = (t, e, r, s) => ({
5
+ var ft = (t, e, r) => e in t ? ht(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var v = (t, e, r) => ft(t, typeof e != "symbol" ? e + "" : e, r), ye = (t, e, r) => e.has(t) || be("Cannot " + r);
7
+ var l = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? be("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), m = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
8
+ var Y = (t, e, r, s) => ({
9
9
  set _(n) {
10
- g(t, e, n, r);
10
+ m(t, e, n, r);
11
11
  },
12
12
  get _() {
13
13
  return l(t, e, s);
14
14
  }
15
15
  });
16
- import { a as Te, H as ce, M as ht, A as ft, u as gt } from "./AnchorLink-BbB2q-jx.js";
17
- import { e as mt, f as pt, R as vt, L as te, g as G, h as xt, O as _e, i as bt, b as yt, u as ue } from "./index-CRo94sKK.js";
18
- import { u as jt } from "./state-CsuHT8ZO.js";
19
- import { E as Fe, S as k, a as wt, R as Nt } from "./SlotletProvider-Da7eFgd2.js";
16
+ import { a as Ie, A as mt, H as ce, M as gt, u as pt } from "./AnchorLink-DYbUOP9U.js";
17
+ import { e as vt, f as xt, R as bt, g as yt, h as G, b as jt, u as ue, L as te, O as Te, i as wt } from "./index-DM9hrcCG.js";
18
+ import { u as Nt } from "./state-BsPrOUAh.js";
19
+ import { E as _e, S as A, a as St, R as kt } from "./SlotletProvider-mhjLPG44.js";
20
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
21
- import { Button as ie } from "./ui/Button.js";
22
- import { Callout as Pt } from "./ui/Callout.js";
23
- import St, { StrictMode as Qe, createContext as Le, Component as Ct, createElement as we, useState as Q, useCallback as Be, useEffect as _, Suspense as de, memo as He, useMemo as re, useContext as Et, Fragment as kt, useRef as he, forwardRef as At } from "react";
21
+ import { Button as Pt } from "./ui/Button.js";
22
+ import { Callout as Ct } from "./ui/Callout.js";
23
+ import Et, { StrictMode as Fe, useState as Q, useEffect as _, useRef as de, useCallback as Qe, Suspense as he, memo as Be, forwardRef as At, createContext as Le, Component as Mt, createElement as je, useMemo as re, useContext as Ot, Fragment as Dt } from "react";
24
24
  import { a as fe } from "./_commonjsHelpers-BkfeUUK-.js";
25
- import { B as Mt } from "./router-BsfSoK2j.js";
25
+ import { B as Rt } from "./router-BsfSoK2j.js";
26
26
  import { a as oe } from "./StaggeredRender-DDHSzQKE.js";
27
- import { C as Dt } from "./ClientOnly-CVN6leDu.js";
28
- import { S as ze, i as qe, Q as Ot, n as b, m as Ne, j as Pe, k as M, l as Rt, o as It, p as Tt, q as _t, r as Se, t as Ce, v as Ft, h as Ee, w as ke, x as Qt, y as L, u as F, z as Ke, A as Lt, g as Bt, Z as Ht, B as zt, C as qt } from "./ZudokuContext-BKXGJTmu.js";
29
- import { M as Kt, u as ee } from "./hook-sn0zMTkE.js";
30
- import { a as $t, T as Ut, b as Vt, V as Wt, u as ge } from "./Markdown-BDcCAWwm.js";
31
- import { CircleXIcon as Yt, SearchIcon as Xt, MenuIcon as Zt, MoonStarIcon as Jt, SunIcon as Gt, ChevronRightIcon as er, ExternalLinkIcon as tr, PanelLeftIcon as rr } from "lucide-react";
32
- import { DropdownMenu as ar, DropdownMenuTrigger as sr, DropdownMenuContent as nr, DropdownMenuLabel as ir, DropdownMenuSeparator as or, DropdownMenuSub as lr, DropdownMenuSubTrigger as cr, DropdownMenuPortal as ur, DropdownMenuSubContent as dr, DropdownMenuItem as hr } from "./ui/DropdownMenu.js";
33
- import { c as A } from "./cn-BmFQLtkS.js";
34
- import { VisuallyHidden as $e } from "@radix-ui/react-visually-hidden";
35
- import { a as Ue, c as fr } from "./index-BuAyrJe3.js";
36
- import { Drawer as Ve, DrawerTrigger as We, DrawerContent as Ye, DrawerTitle as Xe, DrawerClose as gr } from "./ui/Drawer.js";
37
- import { S as ae, a as mr } from "./Spinner-C6zroowC.js";
27
+ import { C as ze } from "./ClientOnly-E7hGysn1.js";
28
+ import { ChevronRightIcon as It, ExternalLinkIcon as Tt, CircleXIcon as _t, SearchIcon as Ft, MenuIcon as Qt, MoonStarIcon as Bt, SunIcon as Lt, PanelLeftIcon as zt } from "lucide-react";
29
+ import { Drawer as He, DrawerTrigger as qe, DrawerContent as Ke, DrawerTitle as $e, DrawerClose as Ht } from "./ui/Drawer.js";
30
+ import { c as N } from "./cn-BmFQLtkS.js";
31
+ import { u as me, a as qt, T as Kt, b as $t, V as Ut } from "./Markdown-D6UxMbZm.js";
32
+ import { c as Vt, a as Ue } from "./index-BuAyrJe3.js";
33
+ import { S as Ve, i as Ze, Q as Zt, n as b, m as we, j as Ne, k as M, l as Wt, o as Yt, p as Xt, q as Jt, r as Se, t as ke, v as Gt, h as Pe, w as Ce, x as er, y as tr, z as B, u as F, A as We, B as rr, g as ar, Z as sr, C as nr } from "./utils-DNAltzXc.js";
34
+ import { S as ae } from "./SidebarBadge-Bbt92M5K.js";
38
35
  import * as se from "@radix-ui/react-collapsible";
39
- function pr({ error: t }) {
40
- return /* @__PURE__ */ a.jsx(Fe, { error: t });
36
+ import { B as ne, S as ir } from "./Spinner-ChOGyPls.js";
37
+ import { M as or, u as ee } from "./hook-CjQERPa7.js";
38
+ import { DropdownMenu as lr, DropdownMenuTrigger as cr, DropdownMenuContent as ur, DropdownMenuLabel as dr, DropdownMenuSeparator as hr, DropdownMenuSub as fr, DropdownMenuSubTrigger as mr, DropdownMenuPortal as gr, DropdownMenuSubContent as pr, DropdownMenuItem as vr } from "./ui/DropdownMenu.js";
39
+ import { VisuallyHidden as Ye } from "@radix-ui/react-visually-hidden";
40
+ function xr({ error: t }) {
41
+ return /* @__PURE__ */ a.jsx(_e, { error: t });
41
42
  }
42
- var W = {};
43
- const vr = /* @__PURE__ */ fe(Mt), xr = /* @__PURE__ */ fe(mt), br = /* @__PURE__ */ fe(pt);
44
- Object.defineProperty(W, "__esModule", { value: !0 });
45
- var yr = St, E = vr, me = xr, D = br;
46
- function jr(t) {
43
+ var Z = {};
44
+ const br = /* @__PURE__ */ fe(Rt), yr = /* @__PURE__ */ fe(vt), jr = /* @__PURE__ */ fe(xt);
45
+ Object.defineProperty(Z, "__esModule", { value: !0 });
46
+ var wr = Et, E = br, ge = yr, O = jr;
47
+ function Nr(t) {
47
48
  if (t && t.__esModule) return t;
48
49
  var e = /* @__PURE__ */ Object.create(null);
49
50
  return t && Object.keys(t).forEach(function(r) {
@@ -58,22 +59,22 @@ function jr(t) {
58
59
  }
59
60
  }), e.default = t, Object.freeze(e);
60
61
  }
61
- var S = /* @__PURE__ */ jr(yr);
62
- function wr({
62
+ var P = /* @__PURE__ */ Nr(wr);
63
+ function Sr({
63
64
  basename: t,
64
65
  children: e,
65
66
  location: r = "/",
66
67
  future: s
67
68
  }) {
68
- typeof r == "string" && (r = D.parsePath(r));
69
+ typeof r == "string" && (r = O.parsePath(r));
69
70
  let n = E.Action.Pop, i = {
70
71
  pathname: r.pathname || "/",
71
72
  search: r.search || "",
72
73
  hash: r.hash || "",
73
74
  state: r.state != null ? r.state : null,
74
75
  key: r.key || "default"
75
- }, o = Ze();
76
- return /* @__PURE__ */ S.createElement(D.Router, {
76
+ }, o = Xe();
77
+ return /* @__PURE__ */ P.createElement(O.Router, {
77
78
  basename: t,
78
79
  children: e,
79
80
  location: i,
@@ -83,7 +84,7 @@ function wr({
83
84
  static: !0
84
85
  });
85
86
  }
86
- function Nr({
87
+ function kr({
87
88
  context: t,
88
89
  router: e,
89
90
  hydrate: r = !0,
@@ -92,7 +93,7 @@ function Nr({
92
93
  e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
93
94
  let n = {
94
95
  router: e,
95
- navigator: Ze(),
96
+ navigator: Xe(),
96
97
  static: !0,
97
98
  staticContext: t,
98
99
  basename: t.basename || "/"
@@ -101,24 +102,24 @@ function Nr({
101
102
  let c = {
102
103
  loaderData: t.loaderData,
103
104
  actionData: t.actionData,
104
- errors: Sr(t.errors)
105
+ errors: Cr(t.errors)
105
106
  };
106
- o = `window.__staticRouterHydrationData = JSON.parse(${Dr(JSON.stringify(JSON.stringify(c)))});`;
107
+ o = `window.__staticRouterHydrationData = JSON.parse(${Rr(JSON.stringify(JSON.stringify(c)))});`;
107
108
  }
108
109
  let {
109
110
  state: u
110
111
  } = n.router;
111
- return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(D.UNSAFE_DataRouterContext.Provider, {
112
+ return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(O.UNSAFE_DataRouterContext.Provider, {
112
113
  value: n
113
- }, /* @__PURE__ */ S.createElement(D.UNSAFE_DataRouterStateContext.Provider, {
114
+ }, /* @__PURE__ */ P.createElement(O.UNSAFE_DataRouterStateContext.Provider, {
114
115
  value: u
115
- }, /* @__PURE__ */ S.createElement(D.UNSAFE_FetchersContext.Provider, {
116
+ }, /* @__PURE__ */ P.createElement(O.UNSAFE_FetchersContext.Provider, {
116
117
  value: i
117
- }, /* @__PURE__ */ S.createElement(D.UNSAFE_ViewTransitionContext.Provider, {
118
+ }, /* @__PURE__ */ P.createElement(O.UNSAFE_ViewTransitionContext.Provider, {
118
119
  value: {
119
120
  isTransitioning: !1
120
121
  }
121
- }, /* @__PURE__ */ S.createElement(D.Router, {
122
+ }, /* @__PURE__ */ P.createElement(O.Router, {
122
123
  basename: n.basename,
123
124
  location: u.location,
124
125
  navigationType: u.historyAction,
@@ -127,11 +128,11 @@ function Nr({
127
128
  future: {
128
129
  v7_relativeSplatPath: e.future.v7_relativeSplatPath
129
130
  }
130
- }, /* @__PURE__ */ S.createElement(Pr, {
131
+ }, /* @__PURE__ */ P.createElement(Pr, {
131
132
  routes: e.routes,
132
133
  future: e.future,
133
134
  state: u
134
- })))))), o ? /* @__PURE__ */ S.createElement("script", {
135
+ })))))), o ? /* @__PURE__ */ P.createElement("script", {
135
136
  suppressHydrationWarning: !0,
136
137
  nonce: s,
137
138
  dangerouslySetInnerHTML: {
@@ -144,9 +145,9 @@ function Pr({
144
145
  future: e,
145
146
  state: r
146
147
  }) {
147
- return me.UNSAFE_useRoutesImpl(t, void 0, r, e);
148
+ return ge.UNSAFE_useRoutesImpl(t, void 0, r, e);
148
149
  }
149
- function Sr(t) {
150
+ function Cr(t) {
150
151
  if (!t) return null;
151
152
  let e = Object.entries(t), r = {};
152
153
  for (let [s, n] of e)
@@ -164,7 +165,7 @@ function Sr(t) {
164
165
  } : r[s] = n;
165
166
  return r;
166
167
  }
167
- function Ze() {
168
+ function Xe() {
168
169
  return {
169
170
  createHref: Je,
170
171
  encodeLocation: Ge,
@@ -185,14 +186,14 @@ function Ze() {
185
186
  }
186
187
  };
187
188
  }
188
- function Cr(t, e) {
189
+ function Er(t, e) {
189
190
  return E.createStaticHandler(t, {
190
191
  ...e,
191
- mapRouteProperties: me.UNSAFE_mapRouteProperties
192
+ mapRouteProperties: ge.UNSAFE_mapRouteProperties
192
193
  });
193
194
  }
194
- function Er(t, e, r = {}) {
195
- let s = {}, n = E.UNSAFE_convertRoutesToDataRoutes(t, me.UNSAFE_mapRouteProperties, void 0, s), i = e.matches.map((u) => {
195
+ function Ar(t, e, r = {}) {
196
+ let s = {}, n = E.UNSAFE_convertRoutesToDataRoutes(t, ge.UNSAFE_mapRouteProperties, void 0, s), i = e.matches.map((u) => {
196
197
  let c = s[u.route.id] || u.route;
197
198
  return {
198
199
  ...u,
@@ -282,50 +283,50 @@ function Er(t, e, r = {}) {
282
283
  };
283
284
  }
284
285
  function Je(t) {
285
- return typeof t == "string" ? t : D.createPath(t);
286
+ return typeof t == "string" ? t : O.createPath(t);
286
287
  }
287
288
  function Ge(t) {
288
- let e = typeof t == "string" ? t : D.createPath(t);
289
+ let e = typeof t == "string" ? t : O.createPath(t);
289
290
  e = e.replace(/ $/, "%20");
290
- let r = kr.test(e) ? new URL(e) : new URL(e, "http://localhost");
291
+ let r = Mr.test(e) ? new URL(e) : new URL(e, "http://localhost");
291
292
  return {
292
293
  pathname: r.pathname,
293
294
  search: r.search,
294
295
  hash: r.hash
295
296
  };
296
297
  }
297
- const kr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ar = {
298
+ const Mr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Or = {
298
299
  "&": "\\u0026",
299
300
  ">": "\\u003e",
300
301
  "<": "\\u003c",
301
302
  "\u2028": "\\u2028",
302
303
  "\u2029": "\\u2029"
303
- }, Mr = /[&><\u2028\u2029]/g;
304
- function Dr(t) {
305
- return t.replace(Mr, (e) => Ar[e]);
304
+ }, Dr = /[&><\u2028\u2029]/g;
305
+ function Rr(t) {
306
+ return t.replace(Dr, (e) => Or[e]);
306
307
  }
307
- W.StaticRouter = wr;
308
- var Or = W.StaticRouterProvider = Nr;
309
- W.createStaticHandler = Cr;
310
- W.createStaticRouter = Er;
311
- const Rr = ({
308
+ Z.StaticRouter = Sr;
309
+ var Ir = Z.StaticRouterProvider = kr;
310
+ Z.createStaticHandler = Er;
311
+ Z.createStaticRouter = Ar;
312
+ const Tr = ({
312
313
  router: t,
313
314
  hydrate: e = !1
314
- }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { children: /* @__PURE__ */ a.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ a.jsx(vt, { router: t }) }) }) }), Ir = ({
315
+ }) => /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(Ie, { children: /* @__PURE__ */ a.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ a.jsx(bt, { router: t }) }) }) }), _r = ({
315
316
  router: t,
316
317
  context: e,
317
318
  helmetContext: r
318
- }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { context: r, children: /* @__PURE__ */ a.jsx(Or, { router: t, context: e }) }) });
319
- var C, Oe, Tr = (Oe = class extends ze {
319
+ }) => /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(Ie, { context: r, children: /* @__PURE__ */ a.jsx(Ir, { router: t, context: e }) }) });
320
+ var C, Oe, Fr = (Oe = class extends Ve {
320
321
  constructor(e = {}) {
321
322
  super();
322
323
  y(this, C);
323
- this.config = e, g(this, C, /* @__PURE__ */ new Map());
324
+ this.config = e, m(this, C, /* @__PURE__ */ new Map());
324
325
  }
325
326
  build(e, r, s) {
326
- const n = r.queryKey, i = r.queryHash ?? qe(n, r);
327
+ const n = r.queryKey, i = r.queryHash ?? Ze(n, r);
327
328
  let o = this.get(i);
328
- return o || (o = new Ot({
329
+ return o || (o = new Zt({
329
330
  cache: this,
330
331
  queryKey: n,
331
332
  queryHash: i,
@@ -360,12 +361,12 @@ var C, Oe, Tr = (Oe = class extends ze {
360
361
  find(e) {
361
362
  const r = { exact: !0, ...e };
362
363
  return this.getAll().find(
363
- (s) => Ne(r, s)
364
+ (s) => we(r, s)
364
365
  );
365
366
  }
366
367
  findAll(e = {}) {
367
368
  const r = this.getAll();
368
- return Object.keys(e).length > 0 ? r.filter((s) => Ne(e, s)) : r;
369
+ return Object.keys(e).length > 0 ? r.filter((s) => we(e, s)) : r;
369
370
  }
370
371
  notify(e) {
371
372
  b.batch(() => {
@@ -388,29 +389,29 @@ var C, Oe, Tr = (Oe = class extends ze {
388
389
  });
389
390
  });
390
391
  }
391
- }, C = new WeakMap(), Oe), x, V, Re, _r = (Re = class extends ze {
392
+ }, C = new WeakMap(), Oe), x, V, De, Qr = (De = class extends Ve {
392
393
  constructor(e = {}) {
393
394
  super();
394
395
  y(this, x);
395
396
  y(this, V);
396
- this.config = e, g(this, x, /* @__PURE__ */ new Map()), g(this, V, Date.now());
397
+ this.config = e, m(this, x, /* @__PURE__ */ new Map()), m(this, V, Date.now());
397
398
  }
398
399
  build(e, r, s) {
399
- const n = new Kt({
400
+ const n = new or({
400
401
  mutationCache: this,
401
- mutationId: ++X(this, V)._,
402
+ mutationId: ++Y(this, V)._,
402
403
  options: e.defaultMutationOptions(r),
403
404
  state: s
404
405
  });
405
406
  return this.add(n), n;
406
407
  }
407
408
  add(e) {
408
- const r = Z(e), s = l(this, x).get(r) ?? [];
409
+ const r = X(e), s = l(this, x).get(r) ?? [];
409
410
  s.push(e), l(this, x).set(r, s), this.notify({ type: "added", mutation: e });
410
411
  }
411
412
  remove(e) {
412
413
  var s;
413
- const r = Z(e);
414
+ const r = X(e);
414
415
  if (l(this, x).has(r)) {
415
416
  const n = (s = l(this, x).get(r)) == null ? void 0 : s.filter((i) => i !== e);
416
417
  n && (n.length === 0 ? l(this, x).delete(r) : l(this, x).set(r, n));
@@ -419,12 +420,12 @@ var C, Oe, Tr = (Oe = class extends ze {
419
420
  }
420
421
  canRun(e) {
421
422
  var s;
422
- const r = (s = l(this, x).get(Z(e))) == null ? void 0 : s.find((n) => n.state.status === "pending");
423
+ const r = (s = l(this, x).get(X(e))) == null ? void 0 : s.find((n) => n.state.status === "pending");
423
424
  return !r || r === e;
424
425
  }
425
426
  runNext(e) {
426
427
  var s;
427
- const r = (s = l(this, x).get(Z(e))) == null ? void 0 : s.find((n) => n !== e && n.state.isPaused);
428
+ const r = (s = l(this, x).get(X(e))) == null ? void 0 : s.find((n) => n !== e && n.state.isPaused);
428
429
  return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
429
430
  }
430
431
  clear() {
@@ -440,11 +441,11 @@ var C, Oe, Tr = (Oe = class extends ze {
440
441
  find(e) {
441
442
  const r = { exact: !0, ...e };
442
443
  return this.getAll().find(
443
- (s) => Pe(r, s)
444
+ (s) => Ne(r, s)
444
445
  );
445
446
  }
446
447
  findAll(e = {}) {
447
- return this.getAll().filter((r) => Pe(e, r));
448
+ return this.getAll().filter((r) => Ne(e, r));
448
449
  }
449
450
  notify(e) {
450
451
  b.batch(() => {
@@ -461,68 +462,68 @@ var C, Oe, Tr = (Oe = class extends ze {
461
462
  )
462
463
  );
463
464
  }
464
- }, x = new WeakMap(), V = new WeakMap(), Re);
465
- function Z(t) {
465
+ }, x = new WeakMap(), V = new WeakMap(), De);
466
+ function X(t) {
466
467
  var e;
467
468
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
468
469
  }
469
- function Ae(t) {
470
+ function Ee(t) {
470
471
  return {
471
472
  onFetch: (e, r) => {
472
- var j, N, p, P, h;
473
- const s = e.options, n = (p = (N = (j = e.fetchOptions) == null ? void 0 : j.meta) == null ? void 0 : N.fetchMore) == null ? void 0 : p.direction, i = ((P = e.state.data) == null ? void 0 : P.pages) || [], o = ((h = e.state.data) == null ? void 0 : h.pageParams) || [];
473
+ var j, S, p, k, h;
474
+ const s = e.options, n = (p = (S = (j = e.fetchOptions) == null ? void 0 : j.meta) == null ? void 0 : S.fetchMore) == null ? void 0 : p.direction, i = ((k = e.state.data) == null ? void 0 : k.pages) || [], o = ((h = e.state.data) == null ? void 0 : h.pageParams) || [];
474
475
  let u = { pages: [], pageParams: [] }, c = 0;
475
- const m = async () => {
476
+ const g = async () => {
476
477
  let f = !1;
477
- const B = (w) => {
478
+ const L = (w) => {
478
479
  Object.defineProperty(w, "signal", {
479
480
  enumerable: !0,
480
481
  get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
481
482
  f = !0;
482
483
  }), e.signal)
483
484
  });
484
- }, lt = Rt(e.options, e.fetchOptions), ve = async (w, O, $) => {
485
+ }, ut = Wt(e.options, e.fetchOptions), pe = async (w, D, $) => {
485
486
  if (f)
486
487
  return Promise.reject();
487
- if (O == null && w.pages.length)
488
+ if (D == null && w.pages.length)
488
489
  return Promise.resolve(w);
489
- const Y = {
490
+ const W = {
490
491
  queryKey: e.queryKey,
491
- pageParam: O,
492
+ pageParam: D,
492
493
  direction: $ ? "backward" : "forward",
493
494
  meta: e.options.meta
494
495
  };
495
- B(Y);
496
- const ct = await lt(
497
- Y
498
- ), { maxPages: xe } = e.options, be = $ ? It : Tt;
496
+ L(W);
497
+ const dt = await ut(
498
+ W
499
+ ), { maxPages: ve } = e.options, xe = $ ? Yt : Xt;
499
500
  return {
500
- pages: be(w.pages, ct, xe),
501
- pageParams: be(w.pageParams, O, xe)
501
+ pages: xe(w.pages, dt, ve),
502
+ pageParams: xe(w.pageParams, D, ve)
502
503
  };
503
504
  };
504
505
  if (n && i.length) {
505
- const w = n === "backward", O = w ? Fr : Me, $ = {
506
+ const w = n === "backward", D = w ? Br : Ae, $ = {
506
507
  pages: i,
507
508
  pageParams: o
508
- }, Y = O(s, $);
509
- u = await ve($, Y, w);
509
+ }, W = D(s, $);
510
+ u = await pe($, W, w);
510
511
  } else {
511
512
  const w = t ?? i.length;
512
513
  do {
513
- const O = c === 0 ? o[0] ?? s.initialPageParam : Me(s, u);
514
- if (c > 0 && O == null)
514
+ const D = c === 0 ? o[0] ?? s.initialPageParam : Ae(s, u);
515
+ if (c > 0 && D == null)
515
516
  break;
516
- u = await ve(u, O), c++;
517
+ u = await pe(u, D), c++;
517
518
  } while (c < w);
518
519
  }
519
520
  return u;
520
521
  };
521
522
  e.options.persister ? e.fetchFn = () => {
522
- var f, B;
523
- return (B = (f = e.options).persister) == null ? void 0 : B.call(
523
+ var f, L;
524
+ return (L = (f = e.options).persister) == null ? void 0 : L.call(
524
525
  f,
525
- m,
526
+ g,
526
527
  {
527
528
  queryKey: e.queryKey,
528
529
  meta: e.options.meta,
@@ -530,11 +531,11 @@ function Ae(t) {
530
531
  },
531
532
  r
532
533
  );
533
- } : e.fetchFn = m;
534
+ } : e.fetchFn = g;
534
535
  }
535
536
  };
536
537
  }
537
- function Me(t, { pages: e, pageParams: r }) {
538
+ function Ae(t, { pages: e, pageParams: r }) {
538
539
  const s = e.length - 1;
539
540
  return e.length > 0 ? t.getNextPageParam(
540
541
  e[s],
@@ -543,32 +544,32 @@ function Me(t, { pages: e, pageParams: r }) {
543
544
  r
544
545
  ) : void 0;
545
546
  }
546
- function Fr(t, { pages: e, pageParams: r }) {
547
+ function Br(t, { pages: e, pageParams: r }) {
547
548
  var s;
548
549
  return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, r[0], r) : void 0;
549
550
  }
550
- var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
551
+ var d, R, I, z, H, T, q, K, Re, Lr = (Re = class {
551
552
  constructor(t = {}) {
552
553
  y(this, d);
553
554
  y(this, R);
554
555
  y(this, I);
555
- y(this, H);
556
556
  y(this, z);
557
+ y(this, H);
557
558
  y(this, T);
558
559
  y(this, q);
559
560
  y(this, K);
560
- g(this, d, t.queryCache || new Tr()), g(this, R, t.mutationCache || new _r()), g(this, I, t.defaultOptions || {}), g(this, H, /* @__PURE__ */ new Map()), g(this, z, /* @__PURE__ */ new Map()), g(this, T, 0);
561
+ m(this, d, t.queryCache || new Fr()), m(this, R, t.mutationCache || new Qr()), m(this, I, t.defaultOptions || {}), m(this, z, /* @__PURE__ */ new Map()), m(this, H, /* @__PURE__ */ new Map()), m(this, T, 0);
561
562
  }
562
563
  mount() {
563
- X(this, T)._++, l(this, T) === 1 && (g(this, q, _t.subscribe(async (t) => {
564
+ Y(this, T)._++, l(this, T) === 1 && (m(this, q, Jt.subscribe(async (t) => {
564
565
  t && (await this.resumePausedMutations(), l(this, d).onFocus());
565
- })), g(this, K, Se.subscribe(async (t) => {
566
+ })), m(this, K, Se.subscribe(async (t) => {
566
567
  t && (await this.resumePausedMutations(), l(this, d).onOnline());
567
568
  })));
568
569
  }
569
570
  unmount() {
570
571
  var t, e;
571
- X(this, T)._--, l(this, T) === 0 && ((t = l(this, q)) == null || t.call(this), g(this, q, void 0), (e = l(this, K)) == null || e.call(this), g(this, K, void 0));
572
+ Y(this, T)._--, l(this, T) === 0 && ((t = l(this, q)) == null || t.call(this), m(this, q, void 0), (e = l(this, K)) == null || e.call(this), m(this, K, void 0));
572
573
  }
573
574
  isFetching(t) {
574
575
  return l(this, d).findAll({ ...t, fetchStatus: "fetching" }).length;
@@ -587,7 +588,7 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
587
588
  return this.fetchQuery(t);
588
589
  {
589
590
  const r = this.defaultQueryOptions(t), s = l(this, d).build(this, r);
590
- return t.revalidateIfStale && s.isStaleByTime(Ce(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(e);
591
+ return t.revalidateIfStale && s.isStaleByTime(ke(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(e);
591
592
  }
592
593
  }
593
594
  getQueriesData(t) {
@@ -599,7 +600,7 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
599
600
  setQueryData(t, e, r) {
600
601
  const s = this.defaultQueryOptions({ queryKey: t }), n = l(this, d).get(
601
602
  s.queryHash
602
- ), i = n == null ? void 0 : n.state.data, o = Ft(e, i);
603
+ ), i = n == null ? void 0 : n.state.data, o = Gt(e, i);
603
604
  if (o !== void 0)
604
605
  return l(this, d).build(this, s).setData(o, { ...r, manual: !0 });
605
606
  }
@@ -669,20 +670,20 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
669
670
  e.retry === void 0 && (e.retry = !1);
670
671
  const r = l(this, d).build(this, e);
671
672
  return r.isStaleByTime(
672
- Ce(e.staleTime, r)
673
+ ke(e.staleTime, r)
673
674
  ) ? r.fetch(e) : Promise.resolve(r.state.data);
674
675
  }
675
676
  prefetchQuery(t) {
676
677
  return this.fetchQuery(t).then(M).catch(M);
677
678
  }
678
679
  fetchInfiniteQuery(t) {
679
- return t.behavior = Ae(t.pages), this.fetchQuery(t);
680
+ return t.behavior = Ee(t.pages), this.fetchQuery(t);
680
681
  }
681
682
  prefetchInfiniteQuery(t) {
682
683
  return this.fetchInfiniteQuery(t).then(M).catch(M);
683
684
  }
684
685
  ensureInfiniteQueryData(t) {
685
- return t.behavior = Ae(t.pages), this.ensureQueryData(t);
686
+ return t.behavior = Ee(t.pages), this.ensureQueryData(t);
686
687
  }
687
688
  resumePausedMutations() {
688
689
  return Se.isOnline() ? l(this, R).resumePausedMutations() : Promise.resolve();
@@ -697,32 +698,32 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
697
698
  return l(this, I);
698
699
  }
699
700
  setDefaultOptions(t) {
700
- g(this, I, t);
701
+ m(this, I, t);
701
702
  }
702
703
  setQueryDefaults(t, e) {
703
- l(this, H).set(Ee(t), {
704
+ l(this, z).set(Pe(t), {
704
705
  queryKey: t,
705
706
  defaultOptions: e
706
707
  });
707
708
  }
708
709
  getQueryDefaults(t) {
709
- const e = [...l(this, H).values()];
710
+ const e = [...l(this, z).values()];
710
711
  let r = {};
711
712
  return e.forEach((s) => {
712
- ke(t, s.queryKey) && (r = { ...r, ...s.defaultOptions });
713
+ Ce(t, s.queryKey) && (r = { ...r, ...s.defaultOptions });
713
714
  }), r;
714
715
  }
715
716
  setMutationDefaults(t, e) {
716
- l(this, z).set(Ee(t), {
717
+ l(this, H).set(Pe(t), {
717
718
  mutationKey: t,
718
719
  defaultOptions: e
719
720
  });
720
721
  }
721
722
  getMutationDefaults(t) {
722
- const e = [...l(this, z).values()];
723
+ const e = [...l(this, H).values()];
723
724
  let r = {};
724
725
  return e.forEach((s) => {
725
- ke(t, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
726
+ Ce(t, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
726
727
  }), r;
727
728
  }
728
729
  defaultQueryOptions(t) {
@@ -734,10 +735,10 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
734
735
  ...t,
735
736
  _defaulted: !0
736
737
  };
737
- return e.queryHash || (e.queryHash = qe(
738
+ return e.queryHash || (e.queryHash = Ze(
738
739
  e.queryKey,
739
740
  e
740
- )), 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 === Qt && (e.enabled = !1), e;
741
+ )), 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 === er && (e.enabled = !1), e;
741
742
  }
742
743
  defaultMutationOptions(t) {
743
744
  return t != null && t._defaulted ? t : {
@@ -750,212 +751,314 @@ var d, R, I, H, z, T, q, K, Ie, Qr = (Ie = class {
750
751
  clear() {
751
752
  l(this, d).clear(), l(this, R).clear();
752
753
  }
753
- }, d = new WeakMap(), R = new WeakMap(), I = new WeakMap(), H = new WeakMap(), z = new WeakMap(), T = new WeakMap(), q = new WeakMap(), K = new WeakMap(), Ie);
754
- const Lr = Le(null), ne = {
755
- didCatch: !1,
756
- error: null
757
- };
758
- class Br extends Ct {
759
- constructor(e) {
760
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
761
- }
762
- static getDerivedStateFromError(e) {
763
- return {
764
- didCatch: !0,
765
- error: e
766
- };
767
- }
768
- resetErrorBoundary() {
769
- const {
770
- error: e
771
- } = this.state;
772
- if (e !== null) {
773
- for (var r, s, n = arguments.length, i = new Array(n), o = 0; o < n; o++)
774
- i[o] = arguments[o];
775
- (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
776
- args: i,
777
- reason: "imperative-api"
778
- }), this.setState(ne);
779
- }
780
- }
781
- componentDidCatch(e, r) {
782
- var s, n;
783
- (s = (n = this.props).onError) === null || s === void 0 || s.call(n, e, r);
784
- }
785
- componentDidUpdate(e, r) {
786
- const {
787
- didCatch: s
788
- } = this.state, {
789
- resetKeys: n
790
- } = this.props;
791
- if (s && r.error !== null && Hr(e.resetKeys, n)) {
792
- var i, o;
793
- (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
794
- next: n,
795
- prev: e.resetKeys,
796
- reason: "keys"
797
- }), this.setState(ne);
798
- }
799
- }
800
- render() {
801
- const {
802
- children: e,
803
- fallbackRender: r,
804
- FallbackComponent: s,
805
- fallback: n
806
- } = this.props, {
807
- didCatch: i,
808
- error: o
809
- } = this.state;
810
- let u = e;
811
- if (i) {
812
- const c = {
813
- error: o,
814
- resetErrorBoundary: this.resetErrorBoundary
815
- };
816
- if (typeof r == "function")
817
- u = r(c);
818
- else if (s)
819
- u = we(s, c);
820
- else if (n !== void 0)
821
- u = n;
822
- else
823
- throw o;
824
- }
825
- return we(Lr.Provider, {
826
- value: {
827
- didCatch: i,
828
- error: o,
829
- resetErrorBoundary: this.resetErrorBoundary
830
- }
831
- }, u);
832
- }
833
- }
834
- function Hr() {
835
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
836
- return t.length !== e.length || t.some((r, s) => !Object.is(r, e[s]));
837
- }
838
- const zr = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", qr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Kr = (t) => "renderSearch" in t && typeof t.renderSearch == "function", $r = (t) => "initialize" in t && typeof t.initialize == "function", Ur = (t) => "getHead" in t && typeof t.getHead == "function", Vr = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", Wr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new Qr();
839
- class Yr {
840
- constructor(e) {
841
- v(this, "plugins");
842
- v(this, "sidebars");
843
- v(this, "topNavigation");
844
- v(this, "meta");
845
- v(this, "page");
846
- v(this, "authentication");
847
- v(this, "navigationPlugins");
848
- v(this, "initialize", async () => {
849
- await Promise.all(
850
- this.plugins.filter($r).map((e) => {
851
- var r;
852
- return (r = e.initialize) == null ? void 0 : r.call(e, this);
853
- })
854
- );
855
- });
856
- v(this, "invalidateCache", async (e) => {
857
- await et.invalidateQueries({ queryKey: e });
858
- });
859
- v(this, "getApiIdentities", async () => (await Promise.all(
860
- this.plugins.filter(Wr).map((r) => r.getIdentities(this))
861
- )).flat());
862
- v(this, "getPluginSidebar", async (e) => (await Promise.all(
863
- this.navigationPlugins.map(
864
- (s) => {
865
- var n;
866
- return (n = s.getSidebar) == null ? void 0 : n.call(s, L(e));
754
+ }, d = new WeakMap(), R = new WeakMap(), I = new WeakMap(), z = new WeakMap(), H = new WeakMap(), T = new WeakMap(), q = new WeakMap(), K = new WeakMap(), Re);
755
+ const zr = ({
756
+ category: t,
757
+ level: e
758
+ }) => {
759
+ var p, k;
760
+ const r = tr(t), [s, n] = Q(!1), i = t.collapsible ?? !0, o = t.collapsed ?? !0, u = !!(!i || !o || r), [c, g] = Q(u), j = yt(((p = t.link) == null ? void 0 : p.id) ?? "");
761
+ _(() => {
762
+ r && g(!0);
763
+ }, [r]);
764
+ const S = i && /* @__PURE__ */ a.jsx(
765
+ "button",
766
+ {
767
+ type: "button",
768
+ onClick: (h) => {
769
+ h.preventDefault(), g((f) => !f), n(!0);
770
+ },
771
+ children: /* @__PURE__ */ a.jsx(
772
+ It,
773
+ {
774
+ size: 16,
775
+ className: N(
776
+ s && "transition",
777
+ "shrink-0 group-data-[state=open]:rotate-90"
778
+ )
867
779
  }
868
780
  )
869
- )).flatMap((s) => s ?? []));
870
- v(this, "signRequest", async (e) => {
871
- if (!this.authentication)
872
- throw new Error("No authentication provider configured");
873
- const r = await this.authentication.getAccessToken();
874
- return e.headers.set("Authorization", `Bearer ${r}`), e;
875
- });
876
- this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(qr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
877
- }
878
- }
879
- function Xr({ error: t, resetErrorBoundary: e }) {
880
- return /* @__PURE__ */ a.jsx(Fe, { error: t });
881
- }
882
- const J = globalThis;
883
- (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
884
- const De = {
885
- info: "bg-blue-500",
886
- note: "bg-gray-500",
887
- tip: "bg-green-600",
888
- caution: "bg-orange-500",
889
- danger: "bg-rose-500"
890
- }, Zr = () => {
891
- const { page: t } = F(), [e, r] = Q(!0);
892
- if (!(t != null && t.banner) || !e)
893
- return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
894
- const s = t.banner.color && t.banner.color in De ? De[t.banner.color] : t.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: t.banner.color };
781
+ }
782
+ );
895
783
  return /* @__PURE__ */ a.jsxs(
896
- "div",
784
+ se.Root,
897
785
  {
898
- className: A(
899
- "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
900
- s
901
- ),
902
- style: n,
786
+ className: "flex flex-col",
787
+ defaultOpen: u,
788
+ open: c,
789
+ onOpenChange: () => g(!0),
903
790
  children: [
904
- /* @__PURE__ */ a.jsx("div", { className: "w-full", children: t.banner.message }),
905
- t.banner.dismissible && /* @__PURE__ */ a.jsx(
906
- "button",
791
+ /* @__PURE__ */ a.jsx(se.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
792
+ "div",
907
793
  {
908
- type: "button",
909
- className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
910
- onClick: () => r(!1),
911
- children: /* @__PURE__ */ a.jsx(Yt, { size: 16 })
794
+ onClick: () => n(!0),
795
+ className: U({
796
+ isActive: !1,
797
+ isTopLevel: e === 0,
798
+ className: [
799
+ "text-start",
800
+ i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
801
+ ]
802
+ }),
803
+ children: [
804
+ t.icon && /* @__PURE__ */ a.jsx(
805
+ t.icon,
806
+ {
807
+ size: 16,
808
+ className: N(
809
+ "align-[-0.125em] -translate-x-1",
810
+ j && "text-primary"
811
+ )
812
+ }
813
+ ),
814
+ ((k = t.link) == null ? void 0 : k.type) === "doc" ? /* @__PURE__ */ a.jsx(
815
+ G,
816
+ {
817
+ to: B(t.link.id),
818
+ className: "flex-1",
819
+ onClick: () => {
820
+ j && !c && g(!0);
821
+ },
822
+ children: /* @__PURE__ */ a.jsxs(
823
+ "div",
824
+ {
825
+ className: N(
826
+ "flex items-center gap-2 justify-between w-full",
827
+ j ? "text-primary" : "text-foreground/80"
828
+ ),
829
+ children: [
830
+ /* @__PURE__ */ a.jsx("div", { className: "truncate", children: t.label }),
831
+ S
832
+ ]
833
+ }
834
+ )
835
+ }
836
+ ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
837
+ /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: t.label }),
838
+ S
839
+ ] })
840
+ ]
841
+ }
842
+ ) }),
843
+ /* @__PURE__ */ a.jsx(
844
+ se.Content,
845
+ {
846
+ className: N(
847
+ // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
848
+ s && "CollapsibleContent"
849
+ ),
850
+ children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: t.items.map((h) => /* @__PURE__ */ a.jsx(
851
+ le,
852
+ {
853
+ level: e + 1,
854
+ item: h
855
+ },
856
+ ("id" in h ? h.id : "") + ("href" in h ? h.href : "") + h.label
857
+ )) })
912
858
  }
913
859
  )
914
860
  ]
915
861
  }
916
862
  );
917
- }, tt = () => {
918
- const t = F(), [e, r] = Q(!1), s = Be(() => r(!1), []);
919
- _(() => {
920
- if (e)
921
- return;
922
- function i(o) {
923
- o.key === "k" && (o.metaKey || o.ctrlKey) && (o.preventDefault(), r(!0));
924
- }
925
- return window.addEventListener("keydown", i), () => {
926
- window.removeEventListener("keydown", i);
927
- };
928
- }, [e, r]);
929
- const n = t.plugins.find(Kr);
930
- return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
931
- /* @__PURE__ */ a.jsxs(
932
- "button",
933
- {
934
- type: "button",
935
- onClick: () => r(!0),
936
- className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
937
- children: [
938
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
939
- /* @__PURE__ */ a.jsx(Xt, { size: 14 }),
940
- "Search"
941
- ] }),
942
- /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
943
- ]
863
+ }, U = Vt(
864
+ "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
865
+ {
866
+ variants: {
867
+ isTopLevel: {
868
+ true: "font-medium -mx-[--padding-nav-item]",
869
+ false: "-mr-[--padding-nav-item] ml-[--padding-nav-item]"
870
+ },
871
+ isActive: {
872
+ true: "text-primary font-medium",
873
+ false: "text-foreground/80"
874
+ },
875
+ isMuted: {
876
+ true: "text-foreground/30",
877
+ false: ""
944
878
  }
945
- ),
946
- /* @__PURE__ */ a.jsx(de, { fallback: null, children: n.renderSearch({
879
+ },
880
+ defaultVariants: {
881
+ isActive: !1
882
+ }
883
+ }
884
+ ), et = "data-anchor", le = ({
885
+ item: t,
886
+ level: e = 0
887
+ }) => {
888
+ var n, i;
889
+ const { activeAnchor: r } = me(), [s] = jt();
890
+ switch (t.type) {
891
+ case "category":
892
+ return /* @__PURE__ */ a.jsx(zr, { category: t, level: e });
893
+ case "doc":
894
+ return /* @__PURE__ */ a.jsxs(
895
+ G,
896
+ {
897
+ className: ({ isActive: o }) => U({ isActive: o, isTopLevel: e === 0 }),
898
+ to: B(t.id),
899
+ children: [
900
+ t.icon && /* @__PURE__ */ a.jsx(t.icon, { size: 16, className: "align-[-0.125em]" }),
901
+ t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
902
+ /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: t.label, children: t.label }),
903
+ /* @__PURE__ */ a.jsx(ae, { ...t.badge })
904
+ ] }) : t.label
905
+ ]
906
+ }
907
+ );
908
+ case "link":
909
+ return t.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
910
+ mt,
911
+ {
912
+ to: { hash: t.href, search: s.toString() },
913
+ [et]: t.href.slice(1),
914
+ className: U({
915
+ isActive: t.href.slice(1) === r,
916
+ isTopLevel: e === 0,
917
+ className: ((n = t.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
918
+ }),
919
+ children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
920
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
921
+ /* @__PURE__ */ a.jsx(ae, { ...t.badge })
922
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
923
+ }
924
+ ) : t.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
925
+ "a",
926
+ {
927
+ className: U({ isTopLevel: e === 0 }),
928
+ href: t.href,
929
+ target: "_blank",
930
+ rel: "noopener noreferrer",
931
+ children: [
932
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: t.label }),
933
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Tt, { className: "inline -translate-y-0.5", size: 12 }) })
934
+ ]
935
+ }
936
+ ) : /* @__PURE__ */ a.jsx(
937
+ G,
938
+ {
939
+ className: U({
940
+ className: ((i = t.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
941
+ }),
942
+ to: t.href,
943
+ children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
944
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
945
+ /* @__PURE__ */ a.jsx(ae, { ...t.badge })
946
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
947
+ }
948
+ );
949
+ }
950
+ }, Hr = (t, e = { block: "center" }) => {
951
+ if (!t) return;
952
+ const r = t.getBoundingClientRect();
953
+ r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || t.scrollIntoView(e);
954
+ }, qr = () => {
955
+ const t = ue(), { setActiveAnchor: e } = me();
956
+ _(() => {
957
+ if (!t.hash) return;
958
+ const r = decodeURIComponent(t.hash.split("/")[0].slice(1)), s = () => {
959
+ const n = document.getElementById(r), i = document.querySelector(`[${et}="${r}"]`);
960
+ return n ? (n.scrollIntoView(), Hr(i), requestIdleCallback(() => e(r)), !0) : !1;
961
+ };
962
+ if (!s()) {
963
+ const n = new MutationObserver((i, o) => {
964
+ s() && o.disconnect();
965
+ });
966
+ return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
967
+ }
968
+ }, [t.hash, e]);
969
+ }, Kr = () => {
970
+ const t = ue(), e = de(t.pathname);
971
+ _(() => {
972
+ e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
973
+ }, [t.pathname]);
974
+ };
975
+ function $r({
976
+ className: t,
977
+ ...e
978
+ }) {
979
+ return /* @__PURE__ */ a.jsx(
980
+ "div",
981
+ {
982
+ className: N("animate-pulse rounded-md bg-muted", t),
983
+ ...e
984
+ }
985
+ );
986
+ }
987
+ const Ur = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Vr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Zr = (t) => "renderSearch" in t && typeof t.renderSearch == "function", Wr = (t) => "initialize" in t && typeof t.initialize == "function", Yr = (t) => "getHead" in t && typeof t.getHead == "function", Xr = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", Jr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Me = {
988
+ info: "bg-blue-500",
989
+ note: "bg-gray-500",
990
+ tip: "bg-green-600",
991
+ caution: "bg-orange-500",
992
+ danger: "bg-rose-500"
993
+ }, Gr = () => {
994
+ const { page: t } = F(), [e, r] = Q(!0);
995
+ if (!(t != null && t.banner) || !e)
996
+ return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
997
+ const s = t.banner.color && t.banner.color in Me ? Me[t.banner.color] : t.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: t.banner.color };
998
+ return /* @__PURE__ */ a.jsxs(
999
+ "div",
1000
+ {
1001
+ className: N(
1002
+ "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1003
+ s
1004
+ ),
1005
+ style: n,
1006
+ children: [
1007
+ /* @__PURE__ */ a.jsx("div", { className: "w-full", children: t.banner.message }),
1008
+ t.banner.dismissible && /* @__PURE__ */ a.jsx(
1009
+ "button",
1010
+ {
1011
+ type: "button",
1012
+ className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1013
+ onClick: () => r(!1),
1014
+ children: /* @__PURE__ */ a.jsx(_t, { size: 16 })
1015
+ }
1016
+ )
1017
+ ]
1018
+ }
1019
+ );
1020
+ }, tt = () => {
1021
+ const t = F(), [e, r] = Q(!1), s = Qe(() => r(!1), []);
1022
+ _(() => {
1023
+ if (e)
1024
+ return;
1025
+ function i(o) {
1026
+ o.key === "k" && (o.metaKey || o.ctrlKey) && (o.preventDefault(), r(!0));
1027
+ }
1028
+ return window.addEventListener("keydown", i), () => {
1029
+ window.removeEventListener("keydown", i);
1030
+ };
1031
+ }, [e, r]);
1032
+ const n = t.plugins.find(Zr);
1033
+ return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1034
+ /* @__PURE__ */ a.jsxs(
1035
+ "button",
1036
+ {
1037
+ type: "button",
1038
+ onClick: () => r(!0),
1039
+ className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
1040
+ children: [
1041
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
1042
+ /* @__PURE__ */ a.jsx(Ft, { size: 14 }),
1043
+ "Search"
1044
+ ] }),
1045
+ /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
1046
+ ]
1047
+ }
1048
+ ),
1049
+ /* @__PURE__ */ a.jsx(he, { fallback: null, children: n.renderSearch({
947
1050
  isOpen: e,
948
1051
  onClose: s
949
1052
  }) })
950
1053
  ] }) : null;
951
- }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Jr = () => {
1054
+ }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", ea = () => {
952
1055
  const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
953
- return t.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(de, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(Gr, { ...r }) }, r.id)) }) }) });
954
- }, Gr = ({ id: t, label: e, default: r }) => {
1056
+ return t.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(he, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ta, { ...r }) }, r.id)) }) }) });
1057
+ }, ta = ({ id: t, label: e, default: r }) => {
955
1058
  var c;
956
- const { sidebars: s } = F(), n = Ke(), i = s[t], o = r ?? (i ? Lt(i, (m) => {
957
- if (m.type === "doc") return L(m.id);
958
- }) : L(t));
1059
+ const { sidebars: s } = F(), n = We(), i = s[t], o = r ?? (i ? rr(i, (g) => {
1060
+ if (g.type === "doc") return B(g.id);
1061
+ }) : B(t));
959
1062
  if (!o)
960
1063
  throw new Error(
961
1064
  `No links found in top navigation for top navigation '${t}'. Check that the sidebar isn't empty or that a default link set.`
@@ -972,17 +1075,17 @@ const De = {
972
1075
  children: e
973
1076
  }
974
1077
  );
975
- }, ea = () => {
1078
+ }, ra = () => {
976
1079
  const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
977
- return /* @__PURE__ */ a.jsxs(Ve, { direction: "right", children: [
978
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(We, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Zt, { size: 22 }) }) }),
1080
+ return /* @__PURE__ */ a.jsxs(He, { direction: "right", children: [
1081
+ /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(qe, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Qt, { size: 22 }) }) }),
979
1082
  /* @__PURE__ */ a.jsxs(
980
- Ye,
1083
+ Ke,
981
1084
  {
982
1085
  className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
983
1086
  "aria-describedby": void 0,
984
1087
  children: [
985
- /* @__PURE__ */ a.jsx($e, { children: /* @__PURE__ */ a.jsx(Xe, { children: "Navigation" }) }),
1088
+ /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx($e, { children: "Navigation" }) }),
986
1089
  /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(tt, {}) }),
987
1090
  /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
988
1091
  G,
@@ -992,23 +1095,23 @@ const De = {
992
1095
  s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
993
1096
  ),
994
1097
  to: r.id,
995
- children: /* @__PURE__ */ a.jsx(gr, { children: r.label })
1098
+ children: /* @__PURE__ */ a.jsx(Ht, { children: r.label })
996
1099
  }
997
1100
  ) }, r.label)) })
998
1101
  ]
999
1102
  }
1000
1103
  )
1001
1104
  ] });
1002
- }, at = ({ item: t }) => t.children ? /* @__PURE__ */ a.jsxs(lr, { children: [
1003
- /* @__PURE__ */ a.jsx(cr, { children: t.label }),
1004
- /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(dr, { children: t.children.map((e, r) => (
1105
+ }, at = ({ item: t }) => t.children ? /* @__PURE__ */ a.jsxs(fr, { children: [
1106
+ /* @__PURE__ */ a.jsx(mr, { children: t.label }),
1107
+ /* @__PURE__ */ a.jsx(gr, { children: /* @__PURE__ */ a.jsx(pr, { children: t.children.map((e, r) => (
1005
1108
  // eslint-disable-next-line react/no-array-index-key
1006
1109
  /* @__PURE__ */ a.jsx(at, { item: e }, r)
1007
1110
  )) }) })
1008
- ] }, t.label) : /* @__PURE__ */ a.jsx(te, { to: t.path ?? "", children: /* @__PURE__ */ a.jsx(hr, { children: t.label }, t.label) }), st = He(function() {
1009
- const e = ee(), [r, s] = $t(), { isAuthenticated: n, profile: i, isAuthEnabled: o } = ee(), u = F(), { page: c, plugins: m } = u, j = m.filter((p) => zr(p)).flatMap((p) => p.getProfileMenuItems(u)).map((p) => /* @__PURE__ */ a.jsx(at, { item: p }, p.label)), N = r ? Jt : Gt;
1111
+ ] }, t.label) : /* @__PURE__ */ a.jsx(te, { to: t.path ?? "", children: /* @__PURE__ */ a.jsx(vr, { children: t.label }, t.label) }), st = Be(function() {
1112
+ const e = ee(), [r, s] = qt(), { isAuthenticated: n, profile: i, isAuthEnabled: o } = ee(), u = F(), { page: c, plugins: g } = u, j = g.filter((p) => Ur(p)).flatMap((p) => p.getProfileMenuItems(u)).map((p) => /* @__PURE__ */ a.jsx(at, { item: p }, p.label)), S = r ? Bt : Lt;
1010
1113
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1011
- /* @__PURE__ */ a.jsx(Zr, {}),
1114
+ /* @__PURE__ */ a.jsx(Gr, {}),
1012
1115
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1013
1116
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
1014
1117
  /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(te, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
@@ -1016,26 +1119,26 @@ const De = {
1016
1119
  /* @__PURE__ */ a.jsx(
1017
1120
  "img",
1018
1121
  {
1019
- src: /https?:\/\//.test(c.logo.src.light) ? c.logo.src.light : L(
1122
+ src: /https?:\/\//.test(c.logo.src.light) ? c.logo.src.light : B(
1020
1123
  "/",
1021
1124
  c.logo.src.light
1022
1125
  ),
1023
1126
  alt: c.logo.alt ?? c.pageTitle,
1024
1127
  style: { width: c.logo.width },
1025
- className: A("h-10", r && "hidden"),
1128
+ className: N("h-10", r && "hidden"),
1026
1129
  loading: "lazy"
1027
1130
  }
1028
1131
  ),
1029
1132
  /* @__PURE__ */ a.jsx(
1030
1133
  "img",
1031
1134
  {
1032
- src: /https?:\/\//.test(c.logo.src.dark) ? c.logo.src.dark : L(
1135
+ src: /https?:\/\//.test(c.logo.src.dark) ? c.logo.src.dark : B(
1033
1136
  "/",
1034
1137
  c.logo.src.dark
1035
1138
  ),
1036
1139
  alt: c.logo.alt ?? c.pageTitle,
1037
1140
  style: { width: c.logo.width },
1038
- className: A("h-10", !r && "hidden"),
1141
+ className: N("h-10", !r && "hidden"),
1039
1142
  loading: "lazy"
1040
1143
  }
1041
1144
  )
@@ -1044,313 +1147,47 @@ const De = {
1044
1147
  ] }) }) }),
1045
1148
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1046
1149
  /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(tt, {}) }),
1047
- /* @__PURE__ */ a.jsx(ea, {}),
1150
+ /* @__PURE__ */ a.jsx(ra, {}),
1048
1151
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1049
- /* @__PURE__ */ a.jsx(k, { name: "head-navigation-start" }),
1050
- o && !n ? /* @__PURE__ */ a.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" }) : j.length > 0 && /* @__PURE__ */ a.jsxs(ar, { modal: !1, children: [
1051
- /* @__PURE__ */ a.jsx(sr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ie, { variant: "ghost", children: i != null && i.email ? `${i.email}` : "My Account" }) }),
1052
- /* @__PURE__ */ a.jsxs(nr, { className: "w-56", children: [
1053
- /* @__PURE__ */ a.jsx(ir, { children: "My Account" }),
1054
- /* @__PURE__ */ a.jsx(or, {}),
1055
- j
1056
- ] })
1057
- ] }),
1152
+ /* @__PURE__ */ a.jsx(A, { name: "head-navigation-start" }),
1058
1153
  /* @__PURE__ */ a.jsx(
1059
- "button",
1154
+ ze,
1060
1155
  {
1061
- type: "button",
1156
+ fallback: /* @__PURE__ */ a.jsx($r, { className: "rounded h-5 w-24 mr-4" }),
1157
+ children: o && !n ? /* @__PURE__ */ a.jsx(ne, { variant: "ghost", onClick: () => e.login(), children: "Login" }) : j.length > 0 && /* @__PURE__ */ a.jsxs(lr, { modal: !1, children: [
1158
+ /* @__PURE__ */ a.jsx(cr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ne, { variant: "ghost", children: i != null && i.email ? `${i.email}` : "My Account" }) }),
1159
+ /* @__PURE__ */ a.jsxs(ur, { className: "w-56", children: [
1160
+ /* @__PURE__ */ a.jsx(dr, { children: "My Account" }),
1161
+ /* @__PURE__ */ a.jsx(hr, {}),
1162
+ j
1163
+ ] })
1164
+ ] })
1165
+ }
1166
+ ),
1167
+ /* @__PURE__ */ a.jsx(
1168
+ ne,
1169
+ {
1170
+ variant: "ghost",
1062
1171
  "aria-label": r ? "Switch to light mode" : "Switch to dark mode",
1063
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1172
+ className: "p-2.5 -m-2.5 rounded-full",
1064
1173
  onClick: s,
1065
- children: /* @__PURE__ */ a.jsx(N, { size: 18 })
1174
+ children: /* @__PURE__ */ a.jsx(S, { size: 18 })
1066
1175
  }
1067
1176
  ),
1068
- /* @__PURE__ */ a.jsx(k, { name: "head-navigation-end" })
1177
+ /* @__PURE__ */ a.jsx(A, { name: "head-navigation-end" })
1069
1178
  ] })
1070
1179
  ] })
1071
1180
  ] }),
1072
- /* @__PURE__ */ a.jsx(k, { name: "top-navigation-before" }),
1073
- /* @__PURE__ */ a.jsx(Jr, {}),
1074
- /* @__PURE__ */ a.jsx(k, { name: "top-navigation-after" })
1181
+ /* @__PURE__ */ a.jsx(A, { name: "top-navigation-before" }),
1182
+ /* @__PURE__ */ a.jsx(ea, {}),
1183
+ /* @__PURE__ */ a.jsx(A, { name: "top-navigation-after" })
1075
1184
  ] })
1076
1185
  ] });
1077
- }), nt = {
1078
- Header: st
1079
- }, ta = Le(nt), ra = ta.Provider, aa = (t) => {
1080
- const [e, r] = Q(!1);
1081
- _(() => {
1082
- const i = localStorage.getItem("theme"), o = window.matchMedia("(prefers-color-scheme: dark)"), u = i === "dark" || !i && o.matches;
1083
- r(u);
1084
- }, [e]);
1085
- const s = Be(() => {
1086
- const i = !e;
1087
- document.documentElement.classList.toggle("dark", i), localStorage.setItem("theme", i ? "dark" : "light"), r(i);
1088
- }, [e]), n = [e, s];
1089
- return /* @__PURE__ */ a.jsx(Ut.Provider, { value: n, ...t });
1090
- }, sa = ({
1091
- children: t,
1092
- context: e
1093
- }) => (Bt({
1094
- queryFn: async () => (await e.initialize(), !0),
1095
- queryKey: ["zudoku-initialize"]
1096
- }), /* @__PURE__ */ a.jsx(Ht.Provider, { value: e, children: t })), na = ({
1097
- children: t,
1098
- ...e
1099
- }) => {
1100
- var N, p;
1101
- const r = re(
1102
- () => ({ ...nt, ...e.overrides }),
1103
- [e.overrides]
1104
- ), s = re(() => {
1105
- var h;
1106
- return {
1107
- ...(e.plugins ?? []).filter(Vr).flatMap(
1108
- (f) => f.getMdxComponents ? [f.getMdxComponents()] : []
1109
- ).reduce((f, B) => ({ ...f, ...B }), {}),
1110
- ...Vt,
1111
- ...(h = e.mdx) == null ? void 0 : h.components
1112
- };
1113
- }, [(N = e.mdx) == null ? void 0 : N.components, e.plugins]), { stagger: n } = Et(oe), [i, o] = Q(!1), u = re(
1114
- () => i ? { stagger: !0 } : { stagger: n },
1115
- [n, i]
1116
- ), c = xt();
1117
- _(() => {
1118
- i || o(!0);
1119
- }, [i, c.location]);
1120
- const [m] = Q(() => new Yr(e)), j = (p = e.plugins) == null ? void 0 : p.filter(Ur).map((P, h) => {
1121
- var f;
1122
- return /* @__PURE__ */ a.jsx(kt, { children: (f = P.getHead) == null ? void 0 : f.call(P) }, h);
1123
- });
1124
- return /* @__PURE__ */ a.jsxs(zt, { client: et, children: [
1125
- /* @__PURE__ */ a.jsx(ce, { children: j }),
1126
- /* @__PURE__ */ a.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(sa, { context: m, children: /* @__PURE__ */ a.jsx(ht, { components: s, children: /* @__PURE__ */ a.jsx(aa, { children: /* @__PURE__ */ a.jsx(ra, { value: r, children: /* @__PURE__ */ a.jsx(wt, { slotlets: e.slotlets, children: /* @__PURE__ */ a.jsx(Wt, { children: t ?? /* @__PURE__ */ a.jsx(_e, {}) }) }) }) }) }) }) })
1127
- ] });
1128
- }, ia = He(na), pe = (t) => /* @__PURE__ */ a.jsx(Br, { FallbackComponent: Xr, children: /* @__PURE__ */ a.jsx(ia, { ...t }) });
1129
- pe.displayName = "DevPortal";
1130
- const oa = ({
1131
- category: t,
1132
- level: e
1133
- }) => {
1134
- var p, P;
1135
- const r = qt(t), [s, n] = Q(!1), i = t.collapsible ?? !0, o = t.collapsed ?? !0, u = !!(!i || !o || r), [c, m] = Q(u), j = bt(((p = t.link) == null ? void 0 : p.id) ?? "");
1136
- _(() => {
1137
- r && m(!0);
1138
- }, [r]);
1139
- const N = i && /* @__PURE__ */ a.jsx(
1140
- "button",
1141
- {
1142
- type: "button",
1143
- onClick: (h) => {
1144
- h.preventDefault(), m((f) => !f), n(!0);
1145
- },
1146
- children: /* @__PURE__ */ a.jsx(
1147
- er,
1148
- {
1149
- size: 16,
1150
- className: A(
1151
- s && "transition",
1152
- "shrink-0 group-data-[state=open]:rotate-90"
1153
- )
1154
- }
1155
- )
1156
- }
1157
- );
1158
- return /* @__PURE__ */ a.jsxs(
1159
- se.Root,
1160
- {
1161
- className: "flex flex-col",
1162
- defaultOpen: u,
1163
- open: c,
1164
- onOpenChange: () => m(!0),
1165
- children: [
1166
- /* @__PURE__ */ a.jsx(se.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
1167
- "div",
1168
- {
1169
- onClick: () => n(!0),
1170
- className: U({
1171
- isActive: !1,
1172
- isTopLevel: e === 0,
1173
- className: [
1174
- "text-start",
1175
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
1176
- ]
1177
- }),
1178
- children: [
1179
- t.icon && /* @__PURE__ */ a.jsx(
1180
- t.icon,
1181
- {
1182
- size: 16,
1183
- className: A(
1184
- "align-[-0.125em] -translate-x-1",
1185
- j && "text-primary"
1186
- )
1187
- }
1188
- ),
1189
- ((P = t.link) == null ? void 0 : P.type) === "doc" ? /* @__PURE__ */ a.jsx(
1190
- G,
1191
- {
1192
- to: L(t.link.id),
1193
- className: "flex-1",
1194
- onClick: () => {
1195
- j && !c && m(!0);
1196
- },
1197
- children: /* @__PURE__ */ a.jsxs(
1198
- "div",
1199
- {
1200
- className: A(
1201
- "flex items-center gap-2 justify-between w-full",
1202
- j ? "text-primary" : "text-foreground/80"
1203
- ),
1204
- children: [
1205
- /* @__PURE__ */ a.jsx("div", { className: "truncate", children: t.label }),
1206
- N
1207
- ]
1208
- }
1209
- )
1210
- }
1211
- ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
1212
- /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: t.label }),
1213
- N
1214
- ] })
1215
- ]
1216
- }
1217
- ) }),
1218
- /* @__PURE__ */ a.jsx(
1219
- se.Content,
1220
- {
1221
- className: A(
1222
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
1223
- s && "CollapsibleContent"
1224
- ),
1225
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: t.items.map((h) => /* @__PURE__ */ a.jsx(
1226
- le,
1227
- {
1228
- level: e + 1,
1229
- item: h
1230
- },
1231
- ("id" in h ? h.id : "") + ("href" in h ? h.href : "") + h.label
1232
- )) })
1233
- }
1234
- )
1235
- ]
1236
- }
1237
- );
1238
- }, U = fr(
1239
- "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1240
- {
1241
- variants: {
1242
- isTopLevel: {
1243
- true: "font-medium -mx-[--padding-nav-item]",
1244
- false: "-mr-[--padding-nav-item] ml-[--padding-nav-item]"
1245
- },
1246
- isActive: {
1247
- true: "text-primary font-medium",
1248
- false: "text-foreground/80"
1249
- },
1250
- isMuted: {
1251
- true: "text-foreground/30",
1252
- false: ""
1253
- }
1254
- },
1255
- defaultVariants: {
1256
- isActive: !1
1257
- }
1258
- }
1259
- ), it = "data-anchor", le = ({
1260
- item: t,
1261
- level: e = 0
1262
- }) => {
1263
- var n, i;
1264
- const { activeAnchor: r } = ge(), [s] = yt();
1265
- switch (t.type) {
1266
- case "category":
1267
- return /* @__PURE__ */ a.jsx(oa, { category: t, level: e });
1268
- case "doc":
1269
- return /* @__PURE__ */ a.jsxs(
1270
- G,
1271
- {
1272
- className: ({ isActive: o }) => U({ isActive: o, isTopLevel: e === 0 }),
1273
- to: L(t.id),
1274
- children: [
1275
- t.icon && /* @__PURE__ */ a.jsx(t.icon, { size: 16, className: "align-[-0.125em]" }),
1276
- t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1277
- /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: t.label, children: t.label }),
1278
- /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1279
- ] }) : t.label
1280
- ]
1281
- }
1282
- );
1283
- case "link":
1284
- return t.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
1285
- ft,
1286
- {
1287
- to: { hash: t.href, search: s.toString() },
1288
- [it]: t.href.slice(1),
1289
- className: U({
1290
- isActive: t.href.slice(1) === r,
1291
- isTopLevel: e === 0,
1292
- className: ((n = t.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
1293
- }),
1294
- children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1295
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
1296
- /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1297
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
1298
- }
1299
- ) : t.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
1300
- "a",
1301
- {
1302
- className: U({ isTopLevel: e === 0 }),
1303
- href: t.href,
1304
- target: "_blank",
1305
- rel: "noopener noreferrer",
1306
- children: [
1307
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: t.label }),
1308
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(tr, { className: "inline -translate-y-0.5", size: 12 }) })
1309
- ]
1310
- }
1311
- ) : /* @__PURE__ */ a.jsx(
1312
- G,
1313
- {
1314
- className: U({
1315
- className: ((i = t.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
1316
- }),
1317
- to: t.href,
1318
- children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1319
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
1320
- /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1321
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
1322
- }
1323
- );
1324
- }
1325
- }, la = (t, e = { block: "center" }) => {
1326
- if (!t) return;
1327
- const r = t.getBoundingClientRect();
1328
- r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || t.scrollIntoView(e);
1329
- }, ca = () => {
1330
- const t = ue(), { setActiveAnchor: e } = ge();
1331
- _(() => {
1332
- if (!t.hash) return;
1333
- const r = decodeURIComponent(t.hash.split("/")[0].slice(1)), s = () => {
1334
- const n = document.getElementById(r), i = document.querySelector(`[${it}="${r}"]`);
1335
- return n ? (n.scrollIntoView(), la(i), requestIdleCallback(() => e(r)), !0) : !1;
1336
- };
1337
- if (!s()) {
1338
- const n = new MutationObserver((i, o) => {
1339
- s() && o.disconnect();
1340
- });
1341
- return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
1342
- }
1343
- }, [t.hash, e]);
1344
- }, ua = () => {
1345
- const t = ue(), e = he(t.pathname);
1346
- _(() => {
1347
- e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1348
- }, [t.pathname]);
1349
- }, ot = At(({ children: t, className: e, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1186
+ }), nt = At(({ children: t, className: e, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1350
1187
  "nav",
1351
1188
  {
1352
1189
  "data-navigation": String(r),
1353
- className: A(
1190
+ className: N(
1354
1191
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
1355
1192
  "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
1356
1193
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
@@ -1360,38 +1197,38 @@ const oa = ({
1360
1197
  children: t
1361
1198
  }
1362
1199
  ));
1363
- ot.displayName = "SidebarWrapper";
1364
- const da = () => {
1365
- const t = he(null), e = Ke();
1200
+ nt.displayName = "SidebarWrapper";
1201
+ const aa = () => {
1202
+ const t = de(null), e = We();
1366
1203
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1367
1204
  /* @__PURE__ */ a.jsxs(
1368
- ot,
1205
+ nt,
1369
1206
  {
1370
1207
  ref: t,
1371
1208
  pushMainContent: e.data.sidebar.length > 0,
1372
1209
  children: [
1373
- /* @__PURE__ */ a.jsx(k, { name: "zudoku-before-navigation" }),
1210
+ /* @__PURE__ */ a.jsx(A, { name: "zudoku-before-navigation" }),
1374
1211
  e.data.sidebar.map((r) => /* @__PURE__ */ a.jsx(le, { item: r }, r.label)),
1375
- /* @__PURE__ */ a.jsx(k, { name: "zudoku-after-navigation" })
1212
+ /* @__PURE__ */ a.jsx(A, { name: "zudoku-after-navigation" })
1376
1213
  ]
1377
1214
  }
1378
1215
  ),
1379
1216
  /* @__PURE__ */ a.jsxs(
1380
- Ye,
1217
+ Ke,
1381
1218
  {
1382
1219
  className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
1383
1220
  "aria-describedby": void 0,
1384
1221
  children: [
1385
- /* @__PURE__ */ a.jsx($e, { children: /* @__PURE__ */ a.jsx(Xe, { children: "Sidebar" }) }),
1222
+ /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx($e, { children: "Sidebar" }) }),
1386
1223
  e.data.sidebar.map((r) => /* @__PURE__ */ a.jsx(le, { item: r }, r.label))
1387
1224
  ]
1388
1225
  }
1389
1226
  )
1390
1227
  ] });
1391
- }, ha = ({ children: t }) => {
1392
- const e = ue(), { setActiveAnchor: r } = ge(), { meta: s, authentication: n } = F();
1393
- ca(), ua();
1394
- const i = he(e.pathname);
1228
+ }, sa = ({ children: t }) => {
1229
+ const e = ue(), { setActiveAnchor: r } = me(), { meta: s, authentication: n } = F();
1230
+ qr(), Kr();
1231
+ const i = de(e.pathname);
1395
1232
  return _(() => {
1396
1233
  var o;
1397
1234
  (o = n == null ? void 0 : n.pageLoad) == null || o.call(n);
@@ -1403,24 +1240,24 @@ const da = () => {
1403
1240
  (s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
1404
1241
  (s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
1405
1242
  ] }),
1406
- /* @__PURE__ */ a.jsx(k, { name: "layout-before-head" }),
1243
+ /* @__PURE__ */ a.jsx(A, { name: "layout-before-head" }),
1407
1244
  /* @__PURE__ */ a.jsx(st, {}),
1408
- /* @__PURE__ */ a.jsx(k, { name: "layout-after-head" }),
1245
+ /* @__PURE__ */ a.jsx(A, { name: "layout-after-head" }),
1409
1246
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
1410
- de,
1247
+ he,
1411
1248
  {
1412
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(mr, {}) }),
1413
- children: /* @__PURE__ */ a.jsxs(Ve, { direction: "left", children: [
1414
- /* @__PURE__ */ a.jsx(da, {}),
1249
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(ir, {}) }),
1250
+ children: /* @__PURE__ */ a.jsxs(He, { direction: "left", children: [
1251
+ /* @__PURE__ */ a.jsx(aa, {}),
1415
1252
  /* @__PURE__ */ a.jsx(
1416
1253
  "div",
1417
1254
  {
1418
- className: A(
1255
+ className: N(
1419
1256
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1420
1257
  "peer-data-[navigation=false]:hidden"
1421
1258
  ),
1422
- children: /* @__PURE__ */ a.jsxs(We, { className: "flex items-center gap-2", children: [
1423
- /* @__PURE__ */ a.jsx(rr, { size: 16, strokeWidth: 1.5 }),
1259
+ children: /* @__PURE__ */ a.jsxs(qe, { className: "flex items-center gap-2", children: [
1260
+ /* @__PURE__ */ a.jsx(zt, { size: 16, strokeWidth: 1.5 }),
1424
1261
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
1425
1262
  ] })
1426
1263
  }
@@ -1428,7 +1265,7 @@ const da = () => {
1428
1265
  /* @__PURE__ */ a.jsxs(
1429
1266
  "main",
1430
1267
  {
1431
- className: A(
1268
+ className: N(
1432
1269
  "h-full dark:border-white/10 translate-x-0",
1433
1270
  "lg:overflow-visible",
1434
1271
  // This works in tandem with the `SidebarWrapper` component
@@ -1436,9 +1273,9 @@ const da = () => {
1436
1273
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1437
1274
  ),
1438
1275
  children: [
1439
- /* @__PURE__ */ a.jsx(k, { name: "zudoku-before-content" }),
1440
- t ?? /* @__PURE__ */ a.jsx(_e, {}),
1441
- /* @__PURE__ */ a.jsx(k, { name: "zudoku-after-content" })
1276
+ /* @__PURE__ */ a.jsx(A, { name: "zudoku-before-content" }),
1277
+ t ?? /* @__PURE__ */ a.jsx(Te, {}),
1278
+ /* @__PURE__ */ a.jsx(A, { name: "zudoku-after-content" })
1442
1279
  ]
1443
1280
  }
1444
1281
  )
@@ -1446,22 +1283,208 @@ const da = () => {
1446
1283
  }
1447
1284
  ) })
1448
1285
  ] });
1449
- }, _a = gt, Fa = pe, Qa = ha, La = Nt, Ba = pr, Ha = Rr, za = Ir, qa = ce, Ka = F, $a = jt, Ua = pe, Va = Pt, Wa = Dt, Ya = ie, Xa = te;
1286
+ }, na = Le(null), ie = {
1287
+ didCatch: !1,
1288
+ error: null
1289
+ };
1290
+ class ia extends Mt {
1291
+ constructor(e) {
1292
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ie;
1293
+ }
1294
+ static getDerivedStateFromError(e) {
1295
+ return {
1296
+ didCatch: !0,
1297
+ error: e
1298
+ };
1299
+ }
1300
+ resetErrorBoundary() {
1301
+ const {
1302
+ error: e
1303
+ } = this.state;
1304
+ if (e !== null) {
1305
+ for (var r, s, n = arguments.length, i = new Array(n), o = 0; o < n; o++)
1306
+ i[o] = arguments[o];
1307
+ (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
1308
+ args: i,
1309
+ reason: "imperative-api"
1310
+ }), this.setState(ie);
1311
+ }
1312
+ }
1313
+ componentDidCatch(e, r) {
1314
+ var s, n;
1315
+ (s = (n = this.props).onError) === null || s === void 0 || s.call(n, e, r);
1316
+ }
1317
+ componentDidUpdate(e, r) {
1318
+ const {
1319
+ didCatch: s
1320
+ } = this.state, {
1321
+ resetKeys: n
1322
+ } = this.props;
1323
+ if (s && r.error !== null && oa(e.resetKeys, n)) {
1324
+ var i, o;
1325
+ (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1326
+ next: n,
1327
+ prev: e.resetKeys,
1328
+ reason: "keys"
1329
+ }), this.setState(ie);
1330
+ }
1331
+ }
1332
+ render() {
1333
+ const {
1334
+ children: e,
1335
+ fallbackRender: r,
1336
+ FallbackComponent: s,
1337
+ fallback: n
1338
+ } = this.props, {
1339
+ didCatch: i,
1340
+ error: o
1341
+ } = this.state;
1342
+ let u = e;
1343
+ if (i) {
1344
+ const c = {
1345
+ error: o,
1346
+ resetErrorBoundary: this.resetErrorBoundary
1347
+ };
1348
+ if (typeof r == "function")
1349
+ u = r(c);
1350
+ else if (s)
1351
+ u = je(s, c);
1352
+ else if (n !== void 0)
1353
+ u = n;
1354
+ else
1355
+ throw o;
1356
+ }
1357
+ return je(na.Provider, {
1358
+ value: {
1359
+ didCatch: i,
1360
+ error: o,
1361
+ resetErrorBoundary: this.resetErrorBoundary
1362
+ }
1363
+ }, u);
1364
+ }
1365
+ }
1366
+ function oa() {
1367
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1368
+ return t.length !== e.length || t.some((r, s) => !Object.is(r, e[s]));
1369
+ }
1370
+ const it = new Lr();
1371
+ class la {
1372
+ constructor(e) {
1373
+ v(this, "plugins");
1374
+ v(this, "sidebars");
1375
+ v(this, "topNavigation");
1376
+ v(this, "meta");
1377
+ v(this, "page");
1378
+ v(this, "authentication");
1379
+ v(this, "navigationPlugins");
1380
+ v(this, "initialize", async () => {
1381
+ await Promise.all(
1382
+ this.plugins.filter(Wr).map((e) => {
1383
+ var r;
1384
+ return (r = e.initialize) == null ? void 0 : r.call(e, this);
1385
+ })
1386
+ );
1387
+ });
1388
+ v(this, "invalidateCache", async (e) => {
1389
+ await it.invalidateQueries({ queryKey: e });
1390
+ });
1391
+ v(this, "getApiIdentities", async () => (await Promise.all(
1392
+ this.plugins.filter(Jr).map((r) => r.getIdentities(this))
1393
+ )).flat());
1394
+ v(this, "getPluginSidebar", async (e) => (await Promise.all(
1395
+ this.navigationPlugins.map(
1396
+ (s) => {
1397
+ var n;
1398
+ return (n = s.getSidebar) == null ? void 0 : n.call(s, B(e));
1399
+ }
1400
+ )
1401
+ )).flatMap((s) => s ?? []));
1402
+ v(this, "signRequest", async (e) => {
1403
+ if (!this.authentication)
1404
+ throw new Error("No authentication provider configured");
1405
+ const r = await this.authentication.getAccessToken();
1406
+ return e.headers.set("Authorization", `Bearer ${r}`), e;
1407
+ });
1408
+ this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Vr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
1409
+ }
1410
+ }
1411
+ function ca({ error: t, resetErrorBoundary: e }) {
1412
+ return /* @__PURE__ */ a.jsx(_e, { error: t });
1413
+ }
1414
+ const J = globalThis;
1415
+ (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
1416
+ const ot = {
1417
+ Header: st
1418
+ }, ua = Le(ot), da = ua.Provider, ha = (t) => {
1419
+ const [e, r] = Q(!1);
1420
+ _(() => {
1421
+ const i = localStorage.getItem("theme"), o = window.matchMedia("(prefers-color-scheme: dark)"), u = i === "dark" || !i && o.matches;
1422
+ r(u);
1423
+ }, [e]);
1424
+ const s = Qe(() => {
1425
+ const i = !e;
1426
+ document.documentElement.classList.toggle("dark", i), localStorage.setItem("theme", i ? "dark" : "light"), r(i);
1427
+ }, [e]), n = [e, s];
1428
+ return /* @__PURE__ */ a.jsx(Kt.Provider, { value: n, ...t });
1429
+ }, fa = ({
1430
+ children: t,
1431
+ context: e
1432
+ }) => (ar({
1433
+ queryFn: async () => (await e.initialize(), !0),
1434
+ queryKey: ["zudoku-initialize"]
1435
+ }), /* @__PURE__ */ a.jsx(sr.Provider, { value: e, children: t })), lt = Be(
1436
+ ({ children: t, ...e }) => {
1437
+ var S, p;
1438
+ const r = re(
1439
+ () => ({ ...ot, ...e.overrides }),
1440
+ [e.overrides]
1441
+ ), s = re(() => {
1442
+ var h;
1443
+ return {
1444
+ ...(e.plugins ?? []).filter(Xr).flatMap(
1445
+ (f) => f.getMdxComponents ? [f.getMdxComponents()] : []
1446
+ ).reduce(
1447
+ (f, L) => ({ ...f, ...L }),
1448
+ {}
1449
+ ),
1450
+ ...$t,
1451
+ ...(h = e.mdx) == null ? void 0 : h.components
1452
+ };
1453
+ }, [(S = e.mdx) == null ? void 0 : S.components, e.plugins]), { stagger: n } = Ot(oe), [i, o] = Q(!1), u = re(
1454
+ () => i ? { stagger: !0 } : { stagger: n },
1455
+ [n, i]
1456
+ ), c = wt();
1457
+ _(() => {
1458
+ i || o(!0);
1459
+ }, [i, c.location]);
1460
+ const [g] = Q(() => new la(e)), j = (p = e.plugins) == null ? void 0 : p.filter(Yr).map((k, h) => {
1461
+ var f;
1462
+ return /* @__PURE__ */ a.jsx(Dt, { children: (f = k.getHead) == null ? void 0 : f.call(k) }, h);
1463
+ });
1464
+ return /* @__PURE__ */ a.jsxs(nr, { client: it, children: [
1465
+ /* @__PURE__ */ a.jsx(ce, { children: j }),
1466
+ /* @__PURE__ */ a.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(fa, { context: g, children: /* @__PURE__ */ a.jsx(gt, { components: s, children: /* @__PURE__ */ a.jsx(ha, { children: /* @__PURE__ */ a.jsx(da, { value: r, children: /* @__PURE__ */ a.jsx(St, { slotlets: e.slotlets, children: /* @__PURE__ */ a.jsx(Ut, { children: t ?? /* @__PURE__ */ a.jsx(Te, {}) }) }) }) }) }) }) })
1467
+ ] });
1468
+ }
1469
+ );
1470
+ lt.displayName = "ZudokoInner";
1471
+ const ct = (t) => /* @__PURE__ */ a.jsx(ia, { FallbackComponent: ca, children: /* @__PURE__ */ a.jsx(lt, { ...t }) });
1472
+ ct.displayName = "Zudoku";
1473
+ const Qa = pt, Ba = sa, La = kt, za = xr, Ha = Tr, qa = _r, Ka = ce, $a = F, Ua = Nt, Va = ct, Za = Ct, Wa = ze, Ya = Pt, Xa = te;
1450
1474
  export {
1451
1475
  Ha as Bootstrap,
1452
- za as BootstrapStatic,
1476
+ qa as BootstrapStatic,
1453
1477
  Ya as Button,
1454
- Va as Callout,
1478
+ Za as Callout,
1455
1479
  Wa as ClientOnly,
1456
- Fa as DevPortal,
1457
- qa as Head,
1458
- Qa as Layout,
1480
+ Ka as Head,
1481
+ Ba as Layout,
1459
1482
  Xa as Link,
1460
1483
  La as RouterError,
1461
- Ba as ServerError,
1462
- Ua as Zudoku,
1463
- $a as useAuth,
1464
- _a as useMDXComponents,
1465
- Ka as useZudoku
1484
+ za as ServerError,
1485
+ Va as Zudoku,
1486
+ Ua as useAuth,
1487
+ Qa as useMDXComponents,
1488
+ $a as useZudoku
1466
1489
  };
1467
1490
  //# sourceMappingURL=zudoku.components.js.map