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