zudoku 0.35.6 → 0.37.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 (190) hide show
  1. package/README.md +1 -1
  2. package/dist/app/entry.server.js +5 -1
  3. package/dist/app/entry.server.js.map +1 -1
  4. package/dist/config/validators/common.d.ts +428 -428
  5. package/dist/config/validators/common.js +12 -7
  6. package/dist/config/validators/common.js.map +1 -1
  7. package/dist/config/validators/validate.d.ts +158 -158
  8. package/dist/lib/components/InlineCode.d.ts +2 -1
  9. package/dist/lib/components/InlineCode.js +1 -1
  10. package/dist/lib/components/InlineCode.js.map +1 -1
  11. package/dist/lib/components/Layout.js +3 -14
  12. package/dist/lib/components/Layout.js.map +1 -1
  13. package/dist/lib/components/MobileTopNavigation.js +1 -1
  14. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  15. package/dist/lib/components/TopNavigation.d.ts +2 -2
  16. package/dist/lib/components/TopNavigation.js +9 -12
  17. package/dist/lib/components/TopNavigation.js.map +1 -1
  18. package/dist/lib/components/Zudoku.js +3 -1
  19. package/dist/lib/components/Zudoku.js.map +1 -1
  20. package/dist/lib/components/cache.d.ts +7 -0
  21. package/dist/lib/components/cache.js +7 -0
  22. package/dist/lib/components/cache.js.map +1 -1
  23. package/dist/lib/components/context/ViewportAnchorContext.js +3 -6
  24. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  25. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  26. package/dist/lib/components/context/ZudokuContext.js +13 -7
  27. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  28. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  29. package/dist/lib/components/navigation/SidebarCategory.js +10 -6
  30. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  31. package/dist/lib/components/navigation/SidebarItem.js +2 -2
  32. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  33. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  34. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  35. package/dist/lib/core/ZudokuContext.d.ts +8 -6
  36. package/dist/lib/core/ZudokuContext.js +4 -2
  37. package/dist/lib/core/ZudokuContext.js.map +1 -1
  38. package/dist/lib/core/plugins.d.ts +3 -3
  39. package/dist/lib/hooks/useEvent.test.js +1 -1
  40. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  41. package/dist/lib/oas/graphql/index.d.ts +13 -2
  42. package/dist/lib/oas/graphql/index.js +59 -39
  43. package/dist/lib/oas/graphql/index.js.map +1 -1
  44. package/dist/lib/plugins/openapi/OperationList.js +19 -5
  45. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  46. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  47. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  48. package/dist/lib/plugins/openapi/ParamInfos.js +12 -4
  49. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  50. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  51. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  52. package/dist/lib/plugins/openapi/Sidecar.js +2 -2
  53. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  54. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
  55. package/dist/lib/plugins/openapi/client/useCreateQuery.js +2 -1
  56. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  57. package/dist/lib/plugins/openapi/graphql/gql.d.ts +4 -4
  58. package/dist/lib/plugins/openapi/graphql/gql.js +3 -3
  59. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  60. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +33 -44
  61. package/dist/lib/plugins/openapi/graphql/graphql.js +19 -29
  62. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  63. package/dist/lib/plugins/openapi/index.d.ts +5 -10
  64. package/dist/lib/plugins/openapi/index.js +29 -60
  65. package/dist/lib/plugins/openapi/index.js.map +1 -1
  66. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -1
  67. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +3 -3
  68. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  69. package/dist/lib/plugins/openapi/schema/SchemaView.js +13 -6
  70. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  71. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +5 -7
  72. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -1
  73. package/dist/lib/ui/Badge.d.ts +1 -1
  74. package/dist/lib/ui/Button.d.ts +1 -1
  75. package/dist/lib/ui/Button.js +1 -1
  76. package/dist/lib/ui/Button.js.map +1 -1
  77. package/dist/lib/ui/Command.d.ts +6 -6
  78. package/dist/lib/util/joinPath.d.ts +3 -0
  79. package/dist/lib/util/joinPath.js +3 -0
  80. package/dist/lib/util/joinPath.js.map +1 -1
  81. package/dist/lib/util/traverse.js +2 -2
  82. package/dist/lib/util/traverse.js.map +1 -1
  83. package/dist/lib/util/useScrollToAnchor.js +2 -0
  84. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  85. package/dist/vite/api/schema-codegen.js +19 -4
  86. package/dist/vite/api/schema-codegen.js.map +1 -1
  87. package/dist/vite/api/schema-codegen.test.js +61 -0
  88. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  89. package/dist/vite/config.js +1 -1
  90. package/dist/vite/config.js.map +1 -1
  91. package/dist/vite/plugin-api.js +4 -12
  92. package/dist/vite/plugin-api.js.map +1 -1
  93. package/dist/vite/plugin-docs.d.ts +1 -1
  94. package/dist/vite/plugin-docs.js +18 -1
  95. package/dist/vite/plugin-docs.js.map +1 -1
  96. package/lib/{AuthenticationPlugin-4ip08maU.js → AuthenticationPlugin-Cij2tPWa.js} +2 -2
  97. package/lib/{AuthenticationPlugin-4ip08maU.js.map → AuthenticationPlugin-Cij2tPWa.js.map} +1 -1
  98. package/lib/{Spinner-C6n4eOvh.js → Button-Fp19CMUr.js} +15 -18
  99. package/lib/Button-Fp19CMUr.js.map +1 -0
  100. package/lib/{Markdown-C0eXdzGn.js → Markdown-DT5Rrq8_.js} +3526 -3264
  101. package/lib/Markdown-DT5Rrq8_.js.map +1 -0
  102. package/lib/{MdxPage-BKkG1cm1.js → MdxPage-D2rD1vC4.js} +3 -3
  103. package/lib/{MdxPage-BKkG1cm1.js.map → MdxPage-D2rD1vC4.js.map} +1 -1
  104. package/lib/{OasProvider-CwhKwrwl.js → OasProvider-DdEBf2qS.js} +3 -3
  105. package/lib/{OasProvider-CwhKwrwl.js.map → OasProvider-DdEBf2qS.js.map} +1 -1
  106. package/lib/{OperationList-DGYoFitT.js → OperationList-DT4-gm_S.js} +1122 -1093
  107. package/lib/OperationList-DT4-gm_S.js.map +1 -0
  108. package/lib/{Select-FAYHOYTy.js → Select-z1Lwl0-J.js} +3 -3
  109. package/lib/{Select-FAYHOYTy.js.map → Select-z1Lwl0-J.js.map} +1 -1
  110. package/lib/{SlotletProvider-BJC58V32.js → SlotletProvider-D8OBnr77.js} +2 -2
  111. package/lib/{SlotletProvider-BJC58V32.js.map → SlotletProvider-D8OBnr77.js.map} +1 -1
  112. package/lib/Spinner-CE68iCm0.js +7 -0
  113. package/lib/Spinner-CE68iCm0.js.map +1 -0
  114. package/lib/{circular-v7K6lDDh.js → circular-ByJI6Mci.js} +4887 -4419
  115. package/lib/circular-ByJI6Mci.js.map +1 -0
  116. package/lib/{createServer-CbL1Uh2Q.js → createServer-DjgKDpGV.js} +3301 -3747
  117. package/lib/createServer-DjgKDpGV.js.map +1 -0
  118. package/lib/{hook-CfCFKZ-2.js → hook-DzQC8PzJ.js} +78 -73
  119. package/lib/hook-DzQC8PzJ.js.map +1 -0
  120. package/lib/{index-Dm1QJHVl.js → index-DdQSV2RF.js} +593 -633
  121. package/lib/index-DdQSV2RF.js.map +1 -0
  122. package/lib/{useQuery-CQUwWR9i.js → joinUrl-BjDooT-T.js} +240 -223
  123. package/lib/joinUrl-BjDooT-T.js.map +1 -0
  124. package/lib/{mutation-B81DztCT.js → mutation-_Z5C2wFZ.js} +2 -2
  125. package/lib/{mutation-B81DztCT.js.map → mutation-_Z5C2wFZ.js.map} +1 -1
  126. package/lib/post-processors/traverse.js +2 -2
  127. package/lib/post-processors/traverse.js.map +1 -1
  128. package/lib/ui/ActionButton.js +11 -10
  129. package/lib/ui/ActionButton.js.map +1 -1
  130. package/lib/ui/Button.js +1 -1
  131. package/lib/ui/Button.js.map +1 -1
  132. package/lib/zudoku.auth-auth0.js +1 -1
  133. package/lib/zudoku.auth-clerk.js +2 -2
  134. package/lib/zudoku.auth-openid.js +3 -3
  135. package/lib/zudoku.components.js +438 -444
  136. package/lib/zudoku.components.js.map +1 -1
  137. package/lib/zudoku.hooks.js +1 -1
  138. package/lib/zudoku.plugin-api-catalog.js +3 -3
  139. package/lib/zudoku.plugin-api-keys.js +4 -4
  140. package/lib/zudoku.plugin-custom-pages.js +1 -1
  141. package/lib/zudoku.plugin-markdown.js +1 -1
  142. package/lib/zudoku.plugin-openapi.js +5 -6
  143. package/lib/zudoku.plugin-openapi.js.map +1 -1
  144. package/lib/zudoku.plugin-search-pagefind.js +15 -16
  145. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  146. package/lib/zudoku.plugins.js.map +1 -1
  147. package/package.json +3 -1
  148. package/src/app/entry.server.tsx +7 -1
  149. package/src/lib/components/InlineCode.tsx +3 -1
  150. package/src/lib/components/Layout.tsx +3 -16
  151. package/src/lib/components/MobileTopNavigation.tsx +1 -1
  152. package/src/lib/components/TopNavigation.tsx +12 -16
  153. package/src/lib/components/Zudoku.tsx +5 -1
  154. package/src/lib/components/cache.ts +8 -0
  155. package/src/lib/components/context/ViewportAnchorContext.tsx +3 -6
  156. package/src/lib/components/context/ZudokuContext.ts +17 -8
  157. package/src/lib/components/navigation/SidebarCategory.tsx +15 -12
  158. package/src/lib/components/navigation/SidebarItem.tsx +2 -2
  159. package/src/lib/components/navigation/SidebarWrapper.tsx +2 -2
  160. package/src/lib/core/ZudokuContext.ts +11 -8
  161. package/src/lib/core/plugins.ts +4 -4
  162. package/src/lib/hooks/useEvent.test.tsx +1 -1
  163. package/src/lib/oas/graphql/index.ts +104 -64
  164. package/src/lib/plugins/openapi/OperationList.tsx +30 -36
  165. package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
  166. package/src/lib/plugins/openapi/ParamInfos.tsx +27 -4
  167. package/src/lib/plugins/openapi/ParameterListItem.tsx +5 -1
  168. package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
  169. package/src/lib/plugins/openapi/client/useCreateQuery.ts +2 -1
  170. package/src/lib/plugins/openapi/graphql/gql.ts +17 -17
  171. package/src/lib/plugins/openapi/graphql/graphql.ts +57 -75
  172. package/src/lib/plugins/openapi/index.tsx +40 -84
  173. package/src/lib/plugins/openapi/interfaces.ts +4 -1
  174. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +5 -2
  175. package/src/lib/plugins/openapi/schema/SchemaView.tsx +48 -35
  176. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +5 -7
  177. package/src/lib/ui/Button.tsx +1 -1
  178. package/src/lib/util/joinPath.tsx +3 -0
  179. package/src/lib/util/traverse.ts +2 -2
  180. package/src/lib/util/useScrollToAnchor.ts +2 -0
  181. package/lib/Markdown-C0eXdzGn.js.map +0 -1
  182. package/lib/OperationList-DGYoFitT.js.map +0 -1
  183. package/lib/Spinner-C6n4eOvh.js.map +0 -1
  184. package/lib/circular-v7K6lDDh.js.map +0 -1
  185. package/lib/createServer-CbL1Uh2Q.js.map +0 -1
  186. package/lib/hook-CfCFKZ-2.js.map +0 -1
  187. package/lib/index-Dm1QJHVl.js.map +0 -1
  188. package/lib/joinUrl-10po2Jdj.js +0 -20
  189. package/lib/joinUrl-10po2Jdj.js.map +0 -1
  190. package/lib/useQuery-CQUwWR9i.js.map +0 -1
@@ -1,11 +1,11 @@
1
- var dt = Object.defineProperty;
1
+ var ut = Object.defineProperty;
2
2
  var ye = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var ht = (t, e, s) => e in t ? dt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var j = (t, e, s) => ht(t, typeof e != "symbol" ? e + "" : e, s), ve = (t, e, s) => e.has(t) || ye("Cannot " + s);
7
- var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)), w = (t, e, s) => e.has(t) ? ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), v = (t, e, s, n) => (ve(t, e, "write to private field"), n ? n.call(t, s) : e.set(t, s), s);
8
- var G = (t, e, s, n) => ({
5
+ var dt = (t, e, s) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
+ var w = (t, e, s) => dt(t, typeof e != "symbol" ? e + "" : e, s), ve = (t, e, s) => e.has(t) || ye("Cannot " + s);
7
+ var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)), P = (t, e, s) => e.has(t) ? ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), v = (t, e, s, n) => (ve(t, e, "write to private field"), n ? n.call(t, s) : e.set(t, s), s);
8
+ var W = (t, e, s, n) => ({
9
9
  set _(a) {
10
10
  v(t, e, a, s);
11
11
  },
@@ -13,51 +13,51 @@ var G = (t, e, s, n) => ({
13
13
  return l(t, e, n);
14
14
  }
15
15
  });
16
- import { a as ze, H as ce, M as ft, u as mt } from "./index.esm-CltAN0Tf.js";
17
- import { z as He, J as gt } from "./index-DwT-v3zK.js";
18
- import { a as pt, u as te, m as xt, O as ue, R as yt, S as vt, g as de, h as bt, L as he } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
19
- import { e as K, a as O, f as Le, t as jt, j as ie, b as wt, Z as Pt, g as Ct, C as Nt } from "./hook-CfCFKZ-2.js";
16
+ import { a as Fe, H as oe, M as ht, u as ft } from "./index.esm-CltAN0Tf.js";
17
+ import { z as ze, J as mt } from "./index-DwT-v3zK.js";
18
+ import { a as gt, u as le, m as pt, O as ce, R as xt, S as yt, g as ue, h as vt, L as de } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
19
+ import { e as K, a as O, f as Be, t as bt, j as jt, b as wt, Z as Pt, g as Ct, C as Nt } from "./hook-DzQC8PzJ.js";
20
20
  import { j as r } from "./jsx-runtime-CYK1ROHF.js";
21
- import { S as Be, i as Ke, j as kt, n as P, m as be, l as je, o as A, p as Dt, q as St, r as Et, t as Ot, v as we, w as Pe, x as Mt, h as Ce, y as Ne, e as At, u as Tt, d as qt, z as $e } from "./useQuery-CQUwWR9i.js";
22
- import { D as It, a as Qt, c as Rt, b as Ft, d as zt } from "./Dialog-sbgekbjb.js";
23
- import { Z as Ue } from "./invariant-Caa8-XvF.js";
24
- import { u as Ht, o as Lt } from "./objectEntries-BS7aAgOm.js";
25
- import { E as Ze, S as k, a as Bt, R as Kt } from "./SlotletProvider-BJC58V32.js";
21
+ import { S as He, i as Le, l as Dt, n as C, m as be, o as je, p as A, q as kt, r as St, t as Et, v as Ot, w as we, x as Pe, y as Mt, h as Ce, z as Ne, e as At, u as Ke, d as Tt, A as $e, j as V } from "./joinUrl-BjDooT-T.js";
22
+ import { D as qt, a as It, c as Qt, b as Rt, d as Ft } from "./Dialog-sbgekbjb.js";
23
+ import { Z as zt } from "./invariant-Caa8-XvF.js";
24
+ import { u as Bt, o as Ht } from "./objectEntries-BS7aAgOm.js";
25
+ import { E as Ue, S as D, a as Lt, R as Kt } from "./SlotletProvider-D8OBnr77.js";
26
26
  import { Button as $t } from "./ui/Button.js";
27
27
  import { Callout as Ut } from "./ui/Callout.js";
28
- import { M as Zt } from "./mutation-B81DztCT.js";
28
+ import { M as Zt } from "./mutation-_Z5C2wFZ.js";
29
29
  import * as q from "react";
30
- import Yt, { createContext as fe, StrictMode as Ye, useRef as se, useEffect as F, useState as $, useCallback as Vt, Suspense as me, memo as Ve, Component as Xt, createElement as ke, useMemo as re, useContext as _t } from "react";
30
+ import Yt, { createContext as he, StrictMode as Ze, useRef as fe, useEffect as U, useState as $, useCallback as Xt, Suspense as me, memo as Ye, Component as Vt, createElement as De, useMemo as se, useContext as _t } from "react";
31
31
  import * as Gt from "react-dom";
32
32
  import { C as ge } from "./ClientOnly-E7hGysn1.js";
33
- import { s as Wt, S as De, u as Jt, a as es, H as ts, P as ss, b as rs, V as ns, M as as } from "./Markdown-C0eXdzGn.js";
34
- import { B as oe, S as Xe } from "./Spinner-C6n4eOvh.js";
33
+ import { s as Wt, S as ke, a as Jt, H as es, P as ts, b as ss, V as rs, M as ns } from "./Markdown-DT5Rrq8_.js";
34
+ import { B as ae } from "./Button-Fp19CMUr.js";
35
35
  import { c as E } from "./cn-qaFjX9_3.js";
36
- import { isSearchPlugin as is, isProfileMenuPlugin as os, isNavigationPlugin as ls, isEventConsumerPlugin as cs, needsInitialization as us, isApiIdentityPlugin as ds, isMdxProviderPlugin as hs, hasHead as fs } from "./zudoku.plugins.js";
37
- import { DropdownMenu as ms, DropdownMenuTrigger as gs, DropdownMenuContent as ps, DropdownMenuLabel as xs, DropdownMenuSeparator as ne, DropdownMenuSub as ys, DropdownMenuSubTrigger as vs, DropdownMenuPortal as bs, DropdownMenuSubContent as js, DropdownMenuItem as ws } from "./ui/DropdownMenu.js";
38
- import { j as Se } from "./joinUrl-10po2Jdj.js";
39
- import { CircleXIcon as Ps, SearchIcon as Cs, SunIcon as Ns, MoonIcon as ks, MenuIcon as Ds, PanelLeftIcon as Ss } from "lucide-react";
40
- import { VisuallyHidden as _e } from "@radix-ui/react-visually-hidden";
41
- import { D as Es, a as Os, b as Ge, c as We, d as M } from "./Drawer-kDAfOq_2.js";
42
- import { a as Ms } from "./index-CPNSgwSb.js";
43
- import { C as As } from "./CategoryHeading-DpB47wvk.js";
44
- var S, Qe, Ts = (Qe = class extends Be {
36
+ import { isSearchPlugin as as, isProfileMenuPlugin as is, isNavigationPlugin as os, isEventConsumerPlugin as ls, needsInitialization as cs, isApiIdentityPlugin as us, isMdxProviderPlugin as ds, hasHead as hs } from "./zudoku.plugins.js";
37
+ import { DropdownMenu as fs, DropdownMenuTrigger as ms, DropdownMenuContent as gs, DropdownMenuLabel as ps, DropdownMenuSeparator as re, DropdownMenuSub as xs, DropdownMenuSubTrigger as ys, DropdownMenuPortal as vs, DropdownMenuSubContent as bs, DropdownMenuItem as js } from "./ui/DropdownMenu.js";
38
+ import { CircleXIcon as ws, SearchIcon as Ps, SunIcon as Cs, MoonIcon as Ns, MenuIcon as Ds, PanelLeftIcon as ks } from "lucide-react";
39
+ import { VisuallyHidden as Xe } from "@radix-ui/react-visually-hidden";
40
+ import { D as Ss, a as Es, b as Ve, c as _e, d as M } from "./Drawer-kDAfOq_2.js";
41
+ import { a as Os } from "./index-CPNSgwSb.js";
42
+ import { S as Ge } from "./Spinner-CE68iCm0.js";
43
+ import { C as Ms } from "./CategoryHeading-DpB47wvk.js";
44
+ var S, Ie, As = (Ie = class extends He {
45
45
  constructor(e = {}) {
46
46
  super();
47
- w(this, S);
47
+ P(this, S);
48
48
  this.config = e, v(this, S, /* @__PURE__ */ new Map());
49
49
  }
50
50
  build(e, s, n) {
51
- const a = s.queryKey, o = s.queryHash ?? Ke(a, s);
52
- let i = this.get(o);
53
- return i || (i = new kt({
51
+ const a = s.queryKey, i = s.queryHash ?? Le(a, s);
52
+ let o = this.get(i);
53
+ return o || (o = new Dt({
54
54
  client: e,
55
55
  queryKey: a,
56
- queryHash: o,
56
+ queryHash: i,
57
57
  options: e.defaultQueryOptions(s),
58
58
  state: n,
59
59
  defaultOptions: e.getQueryDefaults(a)
60
- }), this.add(i)), i;
60
+ }), this.add(o)), o;
61
61
  }
62
62
  add(e) {
63
63
  l(this, S).has(e.queryHash) || (l(this, S).set(e.queryHash, e), this.notify({
@@ -70,7 +70,7 @@ var S, Qe, Ts = (Qe = class extends Be {
70
70
  s && (e.destroy(), s === e && l(this, S).delete(e.queryHash), this.notify({ type: "removed", query: e }));
71
71
  }
72
72
  clear() {
73
- P.batch(() => {
73
+ C.batch(() => {
74
74
  this.getAll().forEach((e) => {
75
75
  this.remove(e);
76
76
  });
@@ -93,38 +93,38 @@ var S, Qe, Ts = (Qe = class extends Be {
93
93
  return Object.keys(e).length > 0 ? s.filter((n) => be(e, n)) : s;
94
94
  }
95
95
  notify(e) {
96
- P.batch(() => {
96
+ C.batch(() => {
97
97
  this.listeners.forEach((s) => {
98
98
  s(e);
99
99
  });
100
100
  });
101
101
  }
102
102
  onFocus() {
103
- P.batch(() => {
103
+ C.batch(() => {
104
104
  this.getAll().forEach((e) => {
105
105
  e.onFocus();
106
106
  });
107
107
  });
108
108
  }
109
109
  onOnline() {
110
- P.batch(() => {
110
+ C.batch(() => {
111
111
  this.getAll().forEach((e) => {
112
112
  e.onOnline();
113
113
  });
114
114
  });
115
115
  }
116
- }, S = new WeakMap(), Qe), T, N, V, Re, qs = (Re = class extends Be {
116
+ }, S = new WeakMap(), Ie), T, N, _, Qe, Ts = (Qe = class extends He {
117
117
  constructor(e = {}) {
118
118
  super();
119
- w(this, T);
120
- w(this, N);
121
- w(this, V);
122
- this.config = e, v(this, T, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this, V, 0);
119
+ P(this, T);
120
+ P(this, N);
121
+ P(this, _);
122
+ this.config = e, v(this, T, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this, _, 0);
123
123
  }
124
124
  build(e, s, n) {
125
125
  const a = new Zt({
126
126
  mutationCache: this,
127
- mutationId: ++G(this, V)._,
127
+ mutationId: ++W(this, _)._,
128
128
  options: e.defaultMutationOptions(s),
129
129
  state: n
130
130
  });
@@ -132,7 +132,7 @@ var S, Qe, Ts = (Qe = class extends Be {
132
132
  }
133
133
  add(e) {
134
134
  l(this, T).add(e);
135
- const s = W(e);
135
+ const s = J(e);
136
136
  if (typeof s == "string") {
137
137
  const n = l(this, N).get(s);
138
138
  n ? n.push(e) : l(this, N).set(s, [e]);
@@ -141,7 +141,7 @@ var S, Qe, Ts = (Qe = class extends Be {
141
141
  }
142
142
  remove(e) {
143
143
  if (l(this, T).delete(e)) {
144
- const s = W(e);
144
+ const s = J(e);
145
145
  if (typeof s == "string") {
146
146
  const n = l(this, N).get(s);
147
147
  if (n)
@@ -154,10 +154,10 @@ var S, Qe, Ts = (Qe = class extends Be {
154
154
  this.notify({ type: "removed", mutation: e });
155
155
  }
156
156
  canRun(e) {
157
- const s = W(e);
157
+ const s = J(e);
158
158
  if (typeof s == "string") {
159
159
  const n = l(this, N).get(s), a = n == null ? void 0 : n.find(
160
- (o) => o.state.status === "pending"
160
+ (i) => i.state.status === "pending"
161
161
  );
162
162
  return !a || a === e;
163
163
  } else
@@ -165,15 +165,15 @@ var S, Qe, Ts = (Qe = class extends Be {
165
165
  }
166
166
  runNext(e) {
167
167
  var n;
168
- const s = W(e);
168
+ const s = J(e);
169
169
  if (typeof s == "string") {
170
- const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((o) => o !== e && o.state.isPaused);
170
+ const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
171
171
  return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
172
172
  } else
173
173
  return Promise.resolve();
174
174
  }
175
175
  clear() {
176
- P.batch(() => {
176
+ C.batch(() => {
177
177
  l(this, T).forEach((e) => {
178
178
  this.notify({ type: "removed", mutation: e });
179
179
  }), l(this, T).clear(), l(this, N).clear();
@@ -192,7 +192,7 @@ var S, Qe, Ts = (Qe = class extends Be {
192
192
  return this.getAll().filter((s) => je(e, s));
193
193
  }
194
194
  notify(e) {
195
- P.batch(() => {
195
+ C.batch(() => {
196
196
  this.listeners.forEach((s) => {
197
197
  s(e);
198
198
  });
@@ -200,74 +200,74 @@ var S, Qe, Ts = (Qe = class extends Be {
200
200
  }
201
201
  resumePausedMutations() {
202
202
  const e = this.getAll().filter((s) => s.state.isPaused);
203
- return P.batch(
203
+ return C.batch(
204
204
  () => Promise.all(
205
205
  e.map((s) => s.continue().catch(A))
206
206
  )
207
207
  );
208
208
  }
209
- }, T = new WeakMap(), N = new WeakMap(), V = new WeakMap(), Re);
210
- function W(t) {
209
+ }, T = new WeakMap(), N = new WeakMap(), _ = new WeakMap(), Qe);
210
+ function J(t) {
211
211
  var e;
212
212
  return (e = t.options.scope) == null ? void 0 : e.id;
213
213
  }
214
- function Ee(t) {
214
+ function Se(t) {
215
215
  return {
216
216
  onFetch: (e, s) => {
217
- var x, m, h, f, y;
218
- const n = e.options, a = (h = (m = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : m.fetchMore) == null ? void 0 : h.direction, o = ((f = e.state.data) == null ? void 0 : f.pages) || [], i = ((y = e.state.data) == null ? void 0 : y.pageParams) || [];
217
+ var x, f, h, p, y;
218
+ const n = e.options, a = (h = (f = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, i = ((p = e.state.data) == null ? void 0 : p.pages) || [], o = ((y = e.state.data) == null ? void 0 : y.pageParams) || [];
219
219
  let u = { pages: [], pageParams: [] }, d = 0;
220
220
  const c = async () => {
221
- let p = !1;
222
- const C = (b) => {
223
- Object.defineProperty(b, "signal", {
221
+ let m = !1;
222
+ const b = (j) => {
223
+ Object.defineProperty(j, "signal", {
224
224
  enumerable: !0,
225
- get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
226
- p = !0;
225
+ get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
226
+ m = !0;
227
227
  }), e.signal)
228
228
  });
229
- }, X = Dt(e.options, e.fetchOptions), U = async (b, D, Z) => {
230
- if (p)
229
+ }, F = kt(e.options, e.fetchOptions), Z = async (j, k, Y) => {
230
+ if (m)
231
231
  return Promise.reject();
232
- if (D == null && b.pages.length)
233
- return Promise.resolve(b);
234
- const _ = {
232
+ if (k == null && j.pages.length)
233
+ return Promise.resolve(j);
234
+ const G = {
235
235
  client: e.client,
236
236
  queryKey: e.queryKey,
237
- pageParam: D,
238
- direction: Z ? "backward" : "forward",
237
+ pageParam: k,
238
+ direction: Y ? "backward" : "forward",
239
239
  meta: e.options.meta
240
240
  };
241
- C(_);
242
- const ut = await X(
243
- _
244
- ), { maxPages: pe } = e.options, xe = Z ? St : Et;
241
+ b(G);
242
+ const ct = await F(
243
+ G
244
+ ), { maxPages: pe } = e.options, xe = Y ? St : Et;
245
245
  return {
246
- pages: xe(b.pages, ut, pe),
247
- pageParams: xe(b.pageParams, D, pe)
246
+ pages: xe(j.pages, ct, pe),
247
+ pageParams: xe(j.pageParams, k, pe)
248
248
  };
249
249
  };
250
- if (a && o.length) {
251
- const b = a === "backward", D = b ? Is : Oe, Z = {
252
- pages: o,
253
- pageParams: i
254
- }, _ = D(n, Z);
255
- u = await U(Z, _, b);
250
+ if (a && i.length) {
251
+ const j = a === "backward", k = j ? qs : Ee, Y = {
252
+ pages: i,
253
+ pageParams: o
254
+ }, G = k(n, Y);
255
+ u = await Z(Y, G, j);
256
256
  } else {
257
- const b = t ?? o.length;
257
+ const j = t ?? i.length;
258
258
  do {
259
- const D = d === 0 ? i[0] ?? n.initialPageParam : Oe(n, u);
260
- if (d > 0 && D == null)
259
+ const k = d === 0 ? o[0] ?? n.initialPageParam : Ee(n, u);
260
+ if (d > 0 && k == null)
261
261
  break;
262
- u = await U(u, D), d++;
263
- } while (d < b);
262
+ u = await Z(u, k), d++;
263
+ } while (d < j);
264
264
  }
265
265
  return u;
266
266
  };
267
267
  e.options.persister ? e.fetchFn = () => {
268
- var p, C;
269
- return (C = (p = e.options).persister) == null ? void 0 : C.call(
270
- p,
268
+ var m, b;
269
+ return (b = (m = e.options).persister) == null ? void 0 : b.call(
270
+ m,
271
271
  c,
272
272
  {
273
273
  client: e.client,
@@ -281,7 +281,7 @@ function Ee(t) {
281
281
  }
282
282
  };
283
283
  }
284
- function Oe(t, { pages: e, pageParams: s }) {
284
+ function Ee(t, { pages: e, pageParams: s }) {
285
285
  const n = e.length - 1;
286
286
  return e.length > 0 ? t.getNextPageParam(
287
287
  e[n],
@@ -290,32 +290,32 @@ function Oe(t, { pages: e, pageParams: s }) {
290
290
  s
291
291
  ) : void 0;
292
292
  }
293
- function Is(t, { pages: e, pageParams: s }) {
293
+ function qs(t, { pages: e, pageParams: s }) {
294
294
  var n;
295
295
  return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, s[0], s) : void 0;
296
296
  }
297
- var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
297
+ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
298
298
  constructor(t = {}) {
299
- w(this, g);
300
- w(this, I);
301
- w(this, Q);
302
- w(this, z);
303
- w(this, H);
304
- w(this, R);
305
- w(this, L);
306
- w(this, B);
307
- v(this, g, t.queryCache || new Ts()), v(this, I, t.mutationCache || new qs()), v(this, Q, t.defaultOptions || {}), v(this, z, /* @__PURE__ */ new Map()), v(this, H, /* @__PURE__ */ new Map()), v(this, R, 0);
299
+ P(this, g);
300
+ P(this, I);
301
+ P(this, Q);
302
+ P(this, z);
303
+ P(this, B);
304
+ P(this, R);
305
+ P(this, H);
306
+ P(this, L);
307
+ v(this, g, t.queryCache || new As()), v(this, I, t.mutationCache || new Ts()), v(this, Q, t.defaultOptions || {}), v(this, z, /* @__PURE__ */ new Map()), v(this, B, /* @__PURE__ */ new Map()), v(this, R, 0);
308
308
  }
309
309
  mount() {
310
- G(this, R)._++, l(this, R) === 1 && (v(this, L, Ot.subscribe(async (t) => {
310
+ W(this, R)._++, l(this, R) === 1 && (v(this, H, Ot.subscribe(async (t) => {
311
311
  t && (await this.resumePausedMutations(), l(this, g).onFocus());
312
- })), v(this, B, we.subscribe(async (t) => {
312
+ })), v(this, L, we.subscribe(async (t) => {
313
313
  t && (await this.resumePausedMutations(), l(this, g).onOnline());
314
314
  })));
315
315
  }
316
316
  unmount() {
317
317
  var t, e;
318
- G(this, R)._--, l(this, R) === 0 && ((t = l(this, L)) == null || t.call(this), v(this, L, void 0), (e = l(this, B)) == null || e.call(this), v(this, B, void 0));
318
+ W(this, R)._--, l(this, R) === 0 && ((t = l(this, H)) == null || t.call(this), v(this, H, void 0), (e = l(this, L)) == null || e.call(this), v(this, L, void 0));
319
319
  }
320
320
  isFetching(t) {
321
321
  return l(this, g).findAll({ ...t, fetchStatus: "fetching" }).length;
@@ -341,12 +341,12 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
341
341
  setQueryData(t, e, s) {
342
342
  const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, g).get(
343
343
  n.queryHash
344
- ), o = a == null ? void 0 : a.state.data, i = Mt(e, o);
345
- if (i !== void 0)
346
- return l(this, g).build(this, n).setData(i, { ...s, manual: !0 });
344
+ ), i = a == null ? void 0 : a.state.data, o = Mt(e, i);
345
+ if (o !== void 0)
346
+ return l(this, g).build(this, n).setData(o, { ...s, manual: !0 });
347
347
  }
348
348
  setQueriesData(t, e, s) {
349
- return P.batch(
349
+ return C.batch(
350
350
  () => l(this, g).findAll(t).map(({ queryKey: n }) => [
351
351
  n,
352
352
  this.setQueryData(n, e, s)
@@ -362,7 +362,7 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
362
362
  }
363
363
  removeQueries(t) {
364
364
  const e = l(this, g);
365
- P.batch(() => {
365
+ C.batch(() => {
366
366
  e.findAll(t).forEach((s) => {
367
367
  e.remove(s);
368
368
  });
@@ -373,18 +373,18 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
373
373
  type: "active",
374
374
  ...t
375
375
  };
376
- return P.batch(() => (s.findAll(t).forEach((a) => {
376
+ return C.batch(() => (s.findAll(t).forEach((a) => {
377
377
  a.reset();
378
378
  }), this.refetchQueries(n, e)));
379
379
  }
380
380
  cancelQueries(t, e = {}) {
381
- const s = { revert: !0, ...e }, n = P.batch(
381
+ const s = { revert: !0, ...e }, n = C.batch(
382
382
  () => l(this, g).findAll(t).map((a) => a.cancel(s))
383
383
  );
384
384
  return Promise.all(n).then(A).catch(A);
385
385
  }
386
386
  invalidateQueries(t, e = {}) {
387
- return P.batch(() => {
387
+ return C.batch(() => {
388
388
  if (l(this, g).findAll(t).forEach((n) => {
389
389
  n.invalidate();
390
390
  }), (t == null ? void 0 : t.refetchType) === "none")
@@ -400,10 +400,10 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
400
400
  const s = {
401
401
  ...e,
402
402
  cancelRefetch: e.cancelRefetch ?? !0
403
- }, n = P.batch(
403
+ }, n = C.batch(
404
404
  () => l(this, g).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
405
- let o = a.fetch(void 0, s);
406
- return s.throwOnError || (o = o.catch(A)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
405
+ let i = a.fetch(void 0, s);
406
+ return s.throwOnError || (i = i.catch(A)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
407
407
  })
408
408
  );
409
409
  return Promise.all(n).then(A);
@@ -420,13 +420,13 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
420
420
  return this.fetchQuery(t).then(A).catch(A);
421
421
  }
422
422
  fetchInfiniteQuery(t) {
423
- return t.behavior = Ee(t.pages), this.fetchQuery(t);
423
+ return t.behavior = Se(t.pages), this.fetchQuery(t);
424
424
  }
425
425
  prefetchInfiniteQuery(t) {
426
426
  return this.fetchInfiniteQuery(t).then(A).catch(A);
427
427
  }
428
428
  ensureInfiniteQueryData(t) {
429
- return t.behavior = Ee(t.pages), this.ensureQueryData(t);
429
+ return t.behavior = Se(t.pages), this.ensureQueryData(t);
430
430
  }
431
431
  resumePausedMutations() {
432
432
  return we.isOnline() ? l(this, I).resumePausedMutations() : Promise.resolve();
@@ -456,13 +456,13 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
456
456
  }), s;
457
457
  }
458
458
  setMutationDefaults(t, e) {
459
- l(this, H).set(Ce(t), {
459
+ l(this, B).set(Ce(t), {
460
460
  mutationKey: t,
461
461
  defaultOptions: e
462
462
  });
463
463
  }
464
464
  getMutationDefaults(t) {
465
- const e = [...l(this, H).values()];
465
+ const e = [...l(this, B).values()];
466
466
  let s = {};
467
467
  return e.forEach((n) => {
468
468
  Ne(t, n.mutationKey) && (s = { ...s, ...n.defaultOptions });
@@ -477,7 +477,7 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
477
477
  ...t,
478
478
  _defaulted: !0
479
479
  };
480
- return e.queryHash || (e.queryHash = Ke(
480
+ return e.queryHash || (e.queryHash = Le(
481
481
  e.queryKey,
482
482
  e
483
483
  )), 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.queryFn === At && (e.enabled = !1), e;
@@ -493,99 +493,99 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
493
493
  clear() {
494
494
  l(this, g).clear(), l(this, I).clear();
495
495
  }
496
- }, g = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), H = new WeakMap(), R = new WeakMap(), L = new WeakMap(), B = new WeakMap(), Fe);
497
- function Rs(t) {
496
+ }, g = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), B = new WeakMap(), R = new WeakMap(), H = new WeakMap(), L = new WeakMap(), Re);
497
+ function Qs(t) {
498
498
  return t;
499
499
  }
500
- function Me(t, e, s) {
500
+ function Oe(t, e, s) {
501
501
  var d, c;
502
502
  if (typeof e != "object" || e === null)
503
503
  return;
504
- const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Rs, i = e.mutations || [], u = e.queries || [];
505
- i.forEach(({ state: x, ...m }) => {
506
- var h, f;
504
+ const n = t.getMutationCache(), a = t.getQueryCache(), i = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Qs, o = e.mutations || [], u = e.queries || [];
505
+ o.forEach(({ state: x, ...f }) => {
506
+ var h, p;
507
507
  n.build(
508
508
  t,
509
509
  {
510
510
  ...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
511
- ...(f = s == null ? void 0 : s.defaultOptions) == null ? void 0 : f.mutations,
512
- ...m
511
+ ...(p = s == null ? void 0 : s.defaultOptions) == null ? void 0 : p.mutations,
512
+ ...f
513
513
  },
514
514
  x
515
515
  );
516
- }), u.forEach(({ queryKey: x, state: m, queryHash: h, meta: f, promise: y }) => {
517
- var X, U;
518
- let p = a.get(h);
519
- const C = m.data === void 0 ? m.data : o(m.data);
520
- if (p) {
521
- if (p.state.dataUpdatedAt < m.dataUpdatedAt) {
522
- const { fetchStatus: b, ...D } = m;
523
- p.setState({
524
- ...D,
525
- data: C
516
+ }), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise: y }) => {
517
+ var F, Z;
518
+ let m = a.get(h);
519
+ const b = f.data === void 0 ? f.data : i(f.data);
520
+ if (m) {
521
+ if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
522
+ const { fetchStatus: j, ...k } = f;
523
+ m.setState({
524
+ ...k,
525
+ data: b
526
526
  });
527
527
  }
528
528
  } else
529
- p = a.build(
529
+ m = a.build(
530
530
  t,
531
531
  {
532
- ...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
533
- ...(U = s == null ? void 0 : s.defaultOptions) == null ? void 0 : U.queries,
532
+ ...(F = t.getDefaultOptions().hydrate) == null ? void 0 : F.queries,
533
+ ...(Z = s == null ? void 0 : s.defaultOptions) == null ? void 0 : Z.queries,
534
534
  queryKey: x,
535
535
  queryHash: h,
536
- meta: f
536
+ meta: p
537
537
  },
538
538
  // Reset fetch status to idle to avoid
539
539
  // query being stuck in fetching state upon hydration
540
540
  {
541
- ...m,
542
- data: C,
541
+ ...f,
542
+ data: b,
543
543
  fetchStatus: "idle"
544
544
  }
545
545
  );
546
546
  if (y) {
547
- const b = Promise.resolve(y).then(o);
548
- p.fetch(void 0, { initialPromise: b });
547
+ const j = Promise.resolve(y).then(i);
548
+ m.fetch(void 0, { initialPromise: j });
549
549
  }
550
550
  });
551
551
  }
552
- var Ae = (t, e) => typeof t == "object" && t !== null && e in t, Fs = ({
552
+ var Me = (t, e) => typeof t == "object" && t !== null && e in t, Rs = ({
553
553
  children: t,
554
554
  options: e = {},
555
555
  state: s,
556
556
  queryClient: n
557
557
  }) => {
558
- const a = Tt(n), [o, i] = q.useState(), u = q.useRef(e);
558
+ const a = Ke(n), [i, o] = q.useState(), u = q.useRef(e);
559
559
  return u.current = e, q.useMemo(() => {
560
560
  if (s) {
561
561
  if (typeof s != "object")
562
562
  return;
563
- const d = a.getQueryCache(), c = s.queries || [], x = [], m = [];
563
+ const d = a.getQueryCache(), c = s.queries || [], x = [], f = [];
564
564
  for (const h of c) {
565
- const f = d.get(h.queryHash);
566
- if (!f)
565
+ const p = d.get(h.queryHash);
566
+ if (!p)
567
567
  x.push(h);
568
568
  else {
569
- const y = h.state.dataUpdatedAt > f.state.dataUpdatedAt || // RSC special serialized then-able chunks
570
- Ae(h.promise, "status") && Ae(f.promise, "status") && h.promise.status !== f.promise.status, p = o == null ? void 0 : o.find(
571
- (C) => C.queryHash === h.queryHash
569
+ const y = h.state.dataUpdatedAt > p.state.dataUpdatedAt || // RSC special serialized then-able chunks
570
+ Me(h.promise, "status") && Me(p.promise, "status") && h.promise.status !== p.promise.status, m = i == null ? void 0 : i.find(
571
+ (b) => b.queryHash === h.queryHash
572
572
  );
573
- y && (!p || h.state.dataUpdatedAt > p.state.dataUpdatedAt) && m.push(h);
573
+ y && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
574
574
  }
575
575
  }
576
- x.length > 0 && Me(a, { queries: x }, u.current), m.length > 0 && i(
577
- (h) => h ? [...h, ...m] : m
576
+ x.length > 0 && Oe(a, { queries: x }, u.current), f.length > 0 && o(
577
+ (h) => h ? [...h, ...f] : f
578
578
  );
579
579
  }
580
- }, [a, o, s]), q.useEffect(() => {
581
- o && (Me(a, { queries: o }, u.current), i(void 0));
582
- }, [a, o]), t;
580
+ }, [a, i, s]), q.useEffect(() => {
581
+ i && (Oe(a, { queries: i }, u.current), o(void 0));
582
+ }, [a, i]), t;
583
583
  };
584
- const zs = () => {
585
- const t = K(), e = O(), s = pt(), n = te(), a = Ht(n.pathname), { protectedRoutes: o = [] } = e.options, i = o.some(
586
- (u) => xt({ path: u, end: !0 }, n.pathname)
584
+ const Fs = () => {
585
+ const t = K(), e = O(), s = gt(), n = le(), a = Bt(n.pathname), { protectedRoutes: i = [] } = e.options, o = i.some(
586
+ (u) => pt({ path: u, end: !0 }, n.pathname)
587
587
  );
588
- if (qt({
588
+ if (Tt({
589
589
  queryKey: ["login-redirect"],
590
590
  queryFn: async () => {
591
591
  var u;
@@ -593,30 +593,30 @@ const zs = () => {
593
593
  redirectTo: a.current
594
594
  })), !0;
595
595
  },
596
- enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
597
- }), i && !t.isAuthenticated)
596
+ enabled: typeof window < "u" && o && !t.isPending && !t.isAuthenticated
597
+ }), o && !t.isAuthenticated)
598
598
  return /* @__PURE__ */ r.jsx(
599
- It,
599
+ qt,
600
600
  {
601
601
  open: !0,
602
602
  onOpenChange: (u) => {
603
603
  u || s(-1);
604
604
  },
605
- children: /* @__PURE__ */ r.jsxs(Qt, { children: [
606
- /* @__PURE__ */ r.jsx(Rt, { children: /* @__PURE__ */ r.jsx(Ft, { children: "Logging you in..." }) }),
607
- /* @__PURE__ */ r.jsx(zt, { children: "Please wait while we log you in." })
605
+ children: /* @__PURE__ */ r.jsxs(It, { children: [
606
+ /* @__PURE__ */ r.jsx(Qt, { children: /* @__PURE__ */ r.jsx(Rt, { children: "Logging you in..." }) }),
607
+ /* @__PURE__ */ r.jsx(Ft, { children: "Please wait while we log you in." })
608
608
  ] })
609
609
  }
610
610
  );
611
- if (i && !t.isAuthEnabled)
612
- throw new Ue("Authentication is not enabled", {
611
+ if (o && !t.isAuthEnabled)
612
+ throw new zt("Authentication is not enabled", {
613
613
  title: "Authentication is not enabled",
614
614
  developerHint: "To use protectedRoutes you need authentication to be enabled"
615
615
  });
616
- return /* @__PURE__ */ r.jsx(ue, {});
616
+ return /* @__PURE__ */ r.jsx(ce, {});
617
617
  };
618
- function Hs({ error: t }) {
619
- return /* @__PURE__ */ r.jsx(Ze, { error: t });
618
+ function zs({ error: t }) {
619
+ return /* @__PURE__ */ r.jsx(Ue, { error: t });
620
620
  }
621
621
  /**
622
622
  * react-router v7.2.0
@@ -628,67 +628,67 @@ function Hs({ error: t }) {
628
628
  *
629
629
  * @license MIT
630
630
  */
631
- function Ls(t) {
632
- return /* @__PURE__ */ q.createElement(yt, { flushSync: Gt.flushSync, ...t });
631
+ function Bs(t) {
632
+ return /* @__PURE__ */ q.createElement(xt, { flushSync: Gt.flushSync, ...t });
633
633
  }
634
- const le = fe({ stagger: !1 }), Bs = new Qs({
634
+ const ie = he({ stagger: !1 }), Hs = new Is({
635
635
  defaultOptions: {
636
636
  queries: {
637
637
  staleTime: 1e3 * 60 * 5
638
638
  }
639
639
  }
640
- }), Ks = ({
640
+ }), Ls = ({
641
641
  router: t,
642
642
  hydrate: e = !1
643
- }) => /* @__PURE__ */ r.jsx(Ye, { children: /* @__PURE__ */ r.jsx($e, { client: Bs, children: /* @__PURE__ */ r.jsx(Fs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(ze, { children: /* @__PURE__ */ r.jsx(le.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(Ls, { router: t }) }) }) }) }) }), $s = ({
643
+ }) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx($e, { client: Hs, children: /* @__PURE__ */ r.jsx(Rs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Fe, { children: /* @__PURE__ */ r.jsx(ie.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(Bs, { router: t }) }) }) }) }) }), Ks = ({
644
644
  router: t,
645
645
  context: e,
646
646
  queryClient: s,
647
647
  helmetContext: n
648
- }) => /* @__PURE__ */ r.jsx(Ye, { children: /* @__PURE__ */ r.jsx($e, { client: s, children: /* @__PURE__ */ r.jsx(ze, { context: n, children: /* @__PURE__ */ r.jsx(vt, { router: t, context: e }) }) }) });
649
- var Y = { exports: {} }, Us = Y.exports, Te;
650
- function Zs() {
651
- return Te || (Te = 1, function(t, e) {
648
+ }) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx($e, { client: s, children: /* @__PURE__ */ r.jsx(Fe, { context: n, children: /* @__PURE__ */ r.jsx(yt, { router: t, context: e }) }) }) });
649
+ var X = { exports: {} }, $s = X.exports, Ae;
650
+ function Us() {
651
+ return Ae || (Ae = 1, function(t, e) {
652
652
  (function(s, n) {
653
653
  n(e, Yt);
654
- })(Us, function(s, n) {
654
+ })($s, function(s, n) {
655
655
  const a = {
656
656
  delay: 500,
657
657
  minDuration: 200,
658
658
  ssr: !0
659
659
  };
660
- function o() {
660
+ function i() {
661
661
  const [u, d] = n.useState(!0);
662
662
  return n.useEffect(() => {
663
663
  d(!1);
664
664
  }, []), u;
665
665
  }
666
- function i(u, d) {
666
+ function o(u, d) {
667
667
  d = Object.assign({}, a, d);
668
- const c = o() && d.ssr, x = c && u ? "DISPLAY" : "IDLE", [m, h] = n.useState(x), f = n.useRef(null);
668
+ const c = i() && d.ssr, x = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(x), p = n.useRef(null);
669
669
  return n.useEffect(() => {
670
- if (u && (m === "IDLE" || c)) {
671
- clearTimeout(f.current);
670
+ if (u && (f === "IDLE" || c)) {
671
+ clearTimeout(p.current);
672
672
  const y = c ? 0 : d.delay;
673
- f.current = setTimeout(() => {
673
+ p.current = setTimeout(() => {
674
674
  if (!u)
675
675
  return h("IDLE");
676
- f.current = setTimeout(() => {
676
+ p.current = setTimeout(() => {
677
677
  h("EXPIRE");
678
678
  }, d.minDuration), h("DISPLAY");
679
679
  }, y), c || h("DELAY");
680
680
  }
681
- !u && m !== "DISPLAY" && (clearTimeout(f.current), h("IDLE"));
682
- }, [u, m, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(f.current), []), m === "DISPLAY" || m === "EXPIRE";
681
+ !u && f !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
682
+ }, [u, f, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(p.current), []), f === "DISPLAY" || f === "EXPIRE";
683
683
  }
684
- s.defaultOptions = a, s.useSpinDelay = i;
684
+ s.defaultOptions = a, s.useSpinDelay = o;
685
685
  });
686
- }(Y, Y.exports)), Y.exports;
686
+ }(X, X.exports)), X.exports;
687
687
  }
688
- var Ys = Zs();
689
- const Vs = () => {
690
- const t = te(), e = se(t.pathname);
691
- F(() => {
688
+ var Zs = Us();
689
+ const Ys = () => {
690
+ const t = le(), e = fe(t.pathname);
691
+ U(() => {
692
692
  const s = e.current !== t.pathname, n = t.hash !== "";
693
693
  s && !n && window.scrollTo(0, 0), e.current = t.pathname;
694
694
  }, [t.pathname, t.hash]);
@@ -705,17 +705,17 @@ function Xs({
705
705
  }
706
706
  );
707
707
  }
708
- const qe = {
708
+ const Te = {
709
709
  info: "bg-blue-500",
710
710
  note: "bg-gray-500",
711
711
  tip: "bg-green-600",
712
712
  caution: "bg-orange-500",
713
713
  danger: "bg-rose-500"
714
- }, _s = () => {
714
+ }, Vs = () => {
715
715
  const { page: t } = O(), [e, s] = $(!0);
716
716
  if (!(t != null && t.banner) || !e)
717
717
  return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
718
- const n = t.banner.color && t.banner.color in qe ? qe[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
718
+ const n = t.banner.color && t.banner.color in Te ? Te[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
719
719
  return /* @__PURE__ */ r.jsxs(
720
720
  "div",
721
721
  {
@@ -733,26 +733,26 @@ const qe = {
733
733
  type: "button",
734
734
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
735
735
  onClick: () => s(!1),
736
- children: /* @__PURE__ */ r.jsx(Ps, { size: 16 })
736
+ children: /* @__PURE__ */ r.jsx(ws, { size: 16 })
737
737
  }
738
738
  )
739
739
  ]
740
740
  }
741
741
  );
742
- }, Je = ({ className: t }) => {
743
- const e = O(), [s, n] = $(!1), a = Vt(() => n(!1), []);
744
- F(() => {
742
+ }, We = ({ className: t }) => {
743
+ const e = O(), [s, n] = $(!1), a = Xt(() => n(!1), []);
744
+ U(() => {
745
745
  if (s)
746
746
  return;
747
- function i(u) {
747
+ function o(u) {
748
748
  u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
749
749
  }
750
- return window.addEventListener("keydown", i), () => {
751
- window.removeEventListener("keydown", i);
750
+ return window.addEventListener("keydown", o), () => {
751
+ window.removeEventListener("keydown", o);
752
752
  };
753
753
  }, [s, n]);
754
- const o = e.plugins.find(is);
755
- return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
754
+ const i = e.plugins.find(as);
755
+ return i ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
756
756
  /* @__PURE__ */ r.jsxs(
757
757
  "button",
758
758
  {
@@ -761,21 +761,21 @@ const qe = {
761
761
  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",
762
762
  children: [
763
763
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
764
- /* @__PURE__ */ r.jsx(Cs, { size: 14 }),
764
+ /* @__PURE__ */ r.jsx(Ps, { size: 14 }),
765
765
  "Search"
766
766
  ] }),
767
767
  /* @__PURE__ */ r.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" })
768
768
  ]
769
769
  }
770
770
  ),
771
- /* @__PURE__ */ r.jsx(me, { fallback: null, children: o.renderSearch({
771
+ /* @__PURE__ */ r.jsx(me, { fallback: null, children: i.renderSearch({
772
772
  isOpen: s,
773
773
  onClose: a
774
774
  }) })
775
775
  ] }) : null;
776
- }, et = () => {
777
- const { resolvedTheme: t, setTheme: e } = He();
778
- return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(oe, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
776
+ }, Je = () => {
777
+ const { resolvedTheme: t, setTheme: e } = ze();
778
+ return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(ae, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
779
779
  "button",
780
780
  {
781
781
  type: "button",
@@ -791,7 +791,7 @@ const qe = {
791
791
  t === "light" && "border-border bg-muted",
792
792
  t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
793
793
  ),
794
- children: /* @__PURE__ */ r.jsx(Ns, { size: 16 })
794
+ children: /* @__PURE__ */ r.jsx(Cs, { size: 16 })
795
795
  }
796
796
  ),
797
797
  /* @__PURE__ */ r.jsx(
@@ -802,38 +802,34 @@ const qe = {
802
802
  t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
803
803
  t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
804
804
  ),
805
- children: /* @__PURE__ */ r.jsx(ks, { size: 16 })
805
+ children: /* @__PURE__ */ r.jsx(Ns, { size: 16 })
806
806
  }
807
807
  )
808
808
  ]
809
809
  }
810
810
  ) });
811
- }, tt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Gs = () => {
812
- const { topNavigation: t } = O(), { isAuthenticated: e } = K();
813
- return t.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(me, { children: /* @__PURE__ */ r.jsxs("div", { className: " items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
814
- /* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(tt(e)).map((s) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(st, { ...s }) }, s.id)) }) }),
815
- /* @__PURE__ */ r.jsx(k, { name: "top-navigation-side" })
811
+ }, et = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", _s = () => {
812
+ const { topNavigation: t } = O(), { isAuthenticated: e } = K(), s = t.filter(et(e));
813
+ return s.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(me, { children: /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
814
+ /* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: s.map((n) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(tt, { ...n }) }, n.id)) }) }),
815
+ /* @__PURE__ */ r.jsx(D, { name: "top-navigation-side" })
816
816
  ] }) });
817
- }, st = ({
817
+ }, tt = ({
818
818
  id: t,
819
819
  label: e,
820
820
  default: s
821
821
  }) => {
822
822
  var c;
823
- const { sidebars: n } = O(), a = n[t], o = Le(), i = !!de().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = s ?? (a ? jt(a, (x) => {
824
- if (x.type === "doc") return ie(x.id);
825
- }) : ie(t));
826
- if (!d)
827
- throw new Ue("Page not found.", {
828
- developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
829
- });
823
+ const { sidebars: n } = O(), a = n[t], i = Be(), o = !!ue().location, u = ((c = i.topNavItem) == null ? void 0 : c.id) === t && !o, d = s ?? (a ? bt(a, (x) => {
824
+ if (x.type === "doc") return V(x.id);
825
+ }) : V(t)) ?? V(t);
830
826
  return (
831
827
  // We don't use isActive here because it has to be inside the sidebar,
832
828
  // the top nav id doesn't necessarily start with the sidebar id
833
829
  /* @__PURE__ */ r.jsx(
834
- bt,
830
+ vt,
835
831
  {
836
- className: ({ isPending: x }) => Ms(
832
+ className: ({ isPending: x }) => Os(
837
833
  "block lg:py-3.5 font-medium -mb-px",
838
834
  u || x ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
839
835
  ),
@@ -842,27 +838,27 @@ const qe = {
842
838
  }
843
839
  )
844
840
  );
845
- }, Ws = () => {
841
+ }, Gs = () => {
846
842
  const { topNavigation: t } = O(), { isAuthenticated: e } = K(), [s, n] = $(!1);
847
843
  return /* @__PURE__ */ r.jsxs(
848
- Es,
844
+ Ss,
849
845
  {
850
846
  direction: "right",
851
847
  open: s,
852
848
  onOpenChange: (a) => n(a),
853
849
  children: [
854
- /* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Os, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Ds, { size: 22 }) }) }),
850
+ /* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Es, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Ds, { size: 22 }) }) }),
855
851
  /* @__PURE__ */ r.jsx(
856
- Ge,
852
+ Ve,
857
853
  {
858
854
  className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
859
855
  "aria-describedby": void 0,
860
856
  children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
861
- /* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(We, { children: "Navigation" }) }),
862
- /* @__PURE__ */ r.jsx(Je, { className: "flex p-4" }),
857
+ /* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(_e, { children: "Navigation" }) }),
858
+ /* @__PURE__ */ r.jsx(We, { className: "flex p-4" }),
863
859
  /* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
864
- /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(et, {}) }),
865
- t.filter(tt(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ r.jsx(st, { ...a }) }) }, a.label))
860
+ /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Je, {}) }),
861
+ t.filter(et(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { type: "button", onClick: () => n(!1), children: /* @__PURE__ */ r.jsx(tt, { ...a }) }) }, a.label))
866
862
  ] })
867
863
  ] })
868
864
  }
@@ -870,31 +866,31 @@ const qe = {
870
866
  ]
871
867
  }
872
868
  );
873
- }, ee = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(ys, { children: [
874
- /* @__PURE__ */ r.jsx(vs, { children: t.label }),
875
- /* @__PURE__ */ r.jsx(bs, { children: /* @__PURE__ */ r.jsx(js, { children: t.children.map((e, s) => (
869
+ }, te = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(xs, { children: [
870
+ /* @__PURE__ */ r.jsx(ys, { children: t.label }),
871
+ /* @__PURE__ */ r.jsx(vs, { children: /* @__PURE__ */ r.jsx(bs, { children: t.children.map((e, s) => (
876
872
  // eslint-disable-next-line react/no-array-index-key
877
- /* @__PURE__ */ r.jsx(ee, { item: e }, s)
873
+ /* @__PURE__ */ r.jsx(te, { item: e }, s)
878
874
  )) }) })
879
- ] }, t.label) : /* @__PURE__ */ r.jsx(he, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(ws, { className: "flex gap-2", children: [
875
+ ] }, t.label) : /* @__PURE__ */ r.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(js, { className: "flex gap-2", children: [
880
876
  t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
881
877
  t.label
882
- ] }, t.label) }), rt = Ve(function() {
883
- const e = K(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = K(), o = O(), { page: i, plugins: u } = o, d = u.filter((c) => os(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
878
+ ] }, t.label) }), st = Ye(function() {
879
+ const e = K(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = K(), i = O(), { page: o, plugins: u } = i, d = u.filter((c) => is(c)).flatMap((c) => c.getProfileMenuItems(i)).sort((c) => c.weight ?? 0);
884
880
  return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
885
- /* @__PURE__ */ r.jsx(_s, {}),
881
+ /* @__PURE__ */ r.jsx(Vs, {}),
886
882
  /* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto flex relative items-center justify-between px-4 lg:px-8 h-[--top-header-height]", children: [
887
- /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(he, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
888
- (i == null ? void 0 : i.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
883
+ /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(de, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
884
+ (o == null ? void 0 : o.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
889
885
  /* @__PURE__ */ r.jsx(
890
886
  "img",
891
887
  {
892
- src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Se(
888
+ src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : V(
893
889
  "/",
894
- i.logo.src.light
890
+ o.logo.src.light
895
891
  ),
896
- alt: i.logo.alt ?? i.pageTitle,
897
- style: { width: i.logo.width },
892
+ alt: o.logo.alt ?? o.pageTitle,
893
+ style: { width: o.logo.width },
898
894
  className: "h-10 dark:hidden",
899
895
  loading: "lazy"
900
896
  }
@@ -902,61 +898,61 @@ const qe = {
902
898
  /* @__PURE__ */ r.jsx(
903
899
  "img",
904
900
  {
905
- src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Se(
901
+ src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : V(
906
902
  "/",
907
- i.logo.src.dark
903
+ o.logo.src.dark
908
904
  ),
909
- alt: i.logo.alt ?? i.pageTitle,
910
- style: { width: i.logo.width },
905
+ alt: o.logo.alt ?? o.pageTitle,
906
+ style: { width: o.logo.width },
911
907
  className: "h-10 hidden dark:block",
912
908
  loading: "lazy"
913
909
  }
914
910
  )
915
911
  ] }),
916
- /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
912
+ /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
917
913
  ] }) }) }),
918
- /* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(Je, { className: "pointer-events-auto" }) }),
914
+ /* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(We, { className: "pointer-events-auto" }) }),
919
915
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
920
- /* @__PURE__ */ r.jsx(Ws, {}),
916
+ /* @__PURE__ */ r.jsx(Gs, {}),
921
917
  /* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
922
- /* @__PURE__ */ r.jsx(k, { name: "head-navigation-start" }),
918
+ /* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
923
919
  a && /* @__PURE__ */ r.jsx(
924
920
  ge,
925
921
  {
926
922
  fallback: /* @__PURE__ */ r.jsx(Xs, { className: "rounded h-5 w-24 mr-4" }),
927
- children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(ms, { modal: !1, children: [
928
- /* @__PURE__ */ r.jsx(gs, { asChild: !0, children: /* @__PURE__ */ r.jsx(oe, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
929
- /* @__PURE__ */ r.jsxs(ps, { className: "w-56", children: [
930
- /* @__PURE__ */ r.jsxs(xs, { children: [
923
+ children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(fs, { modal: !1, children: [
924
+ /* @__PURE__ */ r.jsx(ms, { asChild: !0, children: /* @__PURE__ */ r.jsx(ae, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
925
+ /* @__PURE__ */ r.jsxs(gs, { className: "w-56", children: [
926
+ /* @__PURE__ */ r.jsxs(ps, { children: [
931
927
  n != null && n.name ? `${n.name}` : "My Account",
932
928
  (n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
933
929
  ] }),
934
- d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
935
- d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label)),
930
+ d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(re, {}),
931
+ d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label)),
936
932
  d.filter(
937
933
  (c) => !c.category || c.category === "middle"
938
- ).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
934
+ ).length > 0 && /* @__PURE__ */ r.jsx(re, {}),
939
935
  d.filter(
940
936
  (c) => !c.category || c.category === "middle"
941
- ).map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label)),
942
- d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
943
- d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label))
937
+ ).map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label)),
938
+ d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(re, {}),
939
+ d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label))
944
940
  ] })
945
- ] }) : /* @__PURE__ */ r.jsx(oe, { variant: "ghost", onClick: () => e.login(), children: "Login" })
941
+ ] }) : /* @__PURE__ */ r.jsx(ae, { variant: "ghost", onClick: () => e.login(), children: "Login" })
946
942
  }
947
943
  ),
948
- /* @__PURE__ */ r.jsx(k, { name: "head-navigation-end" }),
949
- /* @__PURE__ */ r.jsx(et, {})
944
+ /* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" }),
945
+ /* @__PURE__ */ r.jsx(Je, {})
950
946
  ] })
951
947
  ] })
952
948
  ] }) }),
953
949
  /* @__PURE__ */ r.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto 2xl:border-x", children: [
954
- /* @__PURE__ */ r.jsx(k, { name: "top-navigation-before" }),
955
- /* @__PURE__ */ r.jsx(Gs, {}),
956
- /* @__PURE__ */ r.jsx(k, { name: "top-navigation-after" })
950
+ /* @__PURE__ */ r.jsx(D, { name: "top-navigation-before" }),
951
+ /* @__PURE__ */ r.jsx(_s, {}),
952
+ /* @__PURE__ */ r.jsx(D, { name: "top-navigation-after" })
957
953
  ] }) })
958
954
  ] });
959
- }), nt = ({
955
+ }), rt = ({
960
956
  shouldScaleBackground: t = !0,
961
957
  ...e
962
958
  }) => /* @__PURE__ */ r.jsx(
@@ -966,8 +962,8 @@ const qe = {
966
962
  ...e
967
963
  }
968
964
  );
969
- nt.displayName = "Drawer";
970
- const Js = M.Trigger, er = M.Portal, at = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
965
+ rt.displayName = "Drawer";
966
+ const Ws = M.Trigger, Js = M.Portal, nt = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
971
967
  M.Overlay,
972
968
  {
973
969
  ref: s,
@@ -975,10 +971,10 @@ const Js = M.Trigger, er = M.Portal, at = q.forwardRef(({ className: t, ...e },
975
971
  ...e
976
972
  }
977
973
  ));
978
- at.displayName = M.Overlay.displayName;
979
- const tr = q.forwardRef(
980
- ({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(er, { children: [
981
- /* @__PURE__ */ r.jsx(at, {}),
974
+ nt.displayName = M.Overlay.displayName;
975
+ const er = q.forwardRef(
976
+ ({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(Js, { children: [
977
+ /* @__PURE__ */ r.jsx(nt, {}),
982
978
  /* @__PURE__ */ r.jsxs(
983
979
  M.Content,
984
980
  {
@@ -996,8 +992,8 @@ const tr = q.forwardRef(
996
992
  )
997
993
  ] })
998
994
  );
999
- tr.displayName = "DrawerContent";
1000
- const sr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
995
+ er.displayName = "DrawerContent";
996
+ const tr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
1001
997
  M.Title,
1002
998
  {
1003
999
  ref: s,
@@ -1008,8 +1004,8 @@ const sr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
1008
1004
  ...e
1009
1005
  }
1010
1006
  ));
1011
- sr.displayName = M.Title.displayName;
1012
- const rr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
1007
+ tr.displayName = M.Title.displayName;
1008
+ const sr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
1013
1009
  M.Description,
1014
1010
  {
1015
1011
  ref: s,
@@ -1017,8 +1013,8 @@ const rr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
1017
1013
  ...e
1018
1014
  }
1019
1015
  ));
1020
- rr.displayName = M.Description.displayName;
1021
- const it = ({
1016
+ sr.displayName = M.Description.displayName;
1017
+ const at = ({
1022
1018
  children: t,
1023
1019
  className: e,
1024
1020
  ref: s
@@ -1026,40 +1022,40 @@ const it = ({
1026
1022
  "nav",
1027
1023
  {
1028
1024
  className: E(
1029
- "hidden lg:flex h-full scrollbar peer flex-col overflow-y-auto shrink-0 text-sm border-r pr-6",
1025
+ "hidden lg:flex h-full scrollbar flex-col overflow-y-auto shrink-0 text-sm border-r pr-6",
1030
1026
  "sticky top-[--header-height] h-[calc(100vh-var(--header-height))]",
1031
- "-mx-[--padding-nav-item] max-w-[--side-nav-width] pb-20 pt-[--padding-content-top] scroll-pt-2 gap-2",
1027
+ "-mx-[--padding-nav-item] max-w-[--side-nav-width] pb-6 pt-[--padding-content-top] scroll-pt-2 gap-2",
1032
1028
  e
1033
1029
  ),
1034
1030
  ref: s,
1035
1031
  children: t
1036
1032
  }
1037
1033
  );
1038
- it.displayName = "SidebarWrapper";
1039
- const nr = ({
1034
+ at.displayName = "SidebarWrapper";
1035
+ const rr = ({
1040
1036
  onRequestClose: t,
1041
1037
  sidebar: e
1042
1038
  }) => {
1043
- const s = se(null);
1044
- return F(() => {
1039
+ const s = fe(null);
1040
+ return U(() => {
1045
1041
  var a;
1046
1042
  const n = (a = s.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
1047
1043
  Wt(n ?? null);
1048
1044
  }, []), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1049
- /* @__PURE__ */ r.jsxs(it, { ref: s, children: [
1050
- /* @__PURE__ */ r.jsx(k, { name: "zudoku-before-navigation" }),
1051
- e.map((n) => /* @__PURE__ */ r.jsx(De, { item: n }, n.label)),
1052
- /* @__PURE__ */ r.jsx(k, { name: "zudoku-after-navigation" })
1045
+ /* @__PURE__ */ r.jsxs(at, { ref: s, children: [
1046
+ /* @__PURE__ */ r.jsx(D, { name: "zudoku-before-navigation" }),
1047
+ e.map((n) => /* @__PURE__ */ r.jsx(ke, { item: n }, n.label)),
1048
+ /* @__PURE__ */ r.jsx(D, { name: "zudoku-after-navigation" })
1053
1049
  ] }),
1054
1050
  /* @__PURE__ */ r.jsx(
1055
- Ge,
1051
+ Ve,
1056
1052
  {
1057
1053
  className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
1058
1054
  "aria-describedby": void 0,
1059
1055
  children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1060
- /* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(We, { children: "Sidebar" }) }),
1056
+ /* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(_e, { children: "Sidebar" }) }),
1061
1057
  e.map((n) => /* @__PURE__ */ r.jsx(
1062
- De,
1058
+ ke,
1063
1059
  {
1064
1060
  item: n,
1065
1061
  onRequestClose: t
@@ -1070,24 +1066,24 @@ const nr = ({
1070
1066
  }
1071
1067
  )
1072
1068
  ] });
1073
- }, ar = ({ children: t }) => {
1074
- const [e, s] = $(!1), { sidebar: n } = Le(), a = n.length > 0;
1069
+ }, nr = ({ children: t }) => {
1070
+ const [e, s] = $(!1), { sidebar: n } = Be(), a = n.length > 0;
1075
1071
  return /* @__PURE__ */ r.jsxs(
1076
- nt,
1072
+ rt,
1077
1073
  {
1078
1074
  direction: "left",
1079
1075
  open: e,
1080
- onOpenChange: (o) => s(o),
1076
+ onOpenChange: (i) => s(i),
1081
1077
  children: [
1082
1078
  a && /* @__PURE__ */ r.jsx(
1083
- nr,
1079
+ rr,
1084
1080
  {
1085
1081
  onRequestClose: () => s(!1),
1086
1082
  sidebar: n
1087
1083
  }
1088
1084
  ),
1089
- a && /* @__PURE__ */ r.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b", children: /* @__PURE__ */ r.jsxs(Js, { className: "flex items-center gap-2", children: [
1090
- /* @__PURE__ */ r.jsx(Ss, { size: 16, strokeWidth: 1.5 }),
1085
+ a && /* @__PURE__ */ r.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b", children: /* @__PURE__ */ r.jsxs(Ws, { className: "flex items-center gap-2", children: [
1086
+ /* @__PURE__ */ r.jsx(ks, { size: 16, strokeWidth: 1.5 }),
1091
1087
  /* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
1092
1088
  ] }) }),
1093
1089
  /* @__PURE__ */ r.jsxs(
@@ -1099,49 +1095,45 @@ const nr = ({
1099
1095
  a ? "lg:pl-12" : "col-span-full"
1100
1096
  ),
1101
1097
  children: [
1102
- /* @__PURE__ */ r.jsx(k, { name: "zudoku-before-content" }),
1098
+ /* @__PURE__ */ r.jsx(D, { name: "zudoku-before-content" }),
1103
1099
  t,
1104
- /* @__PURE__ */ r.jsx(k, { name: "zudoku-after-content" })
1100
+ /* @__PURE__ */ r.jsx(D, { name: "zudoku-after-content" })
1105
1101
  ]
1106
1102
  }
1107
1103
  )
1108
1104
  ]
1109
1105
  }
1110
1106
  );
1111
- }, Ie = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(Xe, {}) }), ir = ({ children: t }) => {
1112
- const e = te(), { setActiveAnchor: s } = Jt(), { meta: n, authentication: a } = O();
1113
- es(), Vs();
1114
- const o = se(e.pathname);
1115
- F(() => {
1116
- var d;
1117
- (d = a == null ? void 0 : a.onPageLoad) == null || d.call(a);
1118
- }, [a]), F(() => {
1119
- e.pathname !== o.current && s(""), o.current = e.pathname;
1120
- }, [e.pathname, s]);
1121
- const i = !!de().location, u = Ys.useSpinDelay(i, {
1107
+ }, qe = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(Ge, {}) }), ar = ({ children: t }) => {
1108
+ const { meta: e, authentication: s } = O();
1109
+ Jt(), Ys(), U(() => {
1110
+ var i;
1111
+ (i = s == null ? void 0 : s.onPageLoad) == null || i.call(s);
1112
+ }, [s]);
1113
+ const n = !!ue().location, a = Zs.useSpinDelay(n, {
1122
1114
  delay: 300,
1123
1115
  minDuration: 500
1124
1116
  });
1125
1117
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1126
1118
  !1,
1127
- /* @__PURE__ */ r.jsxs(ce, { titleTemplate: n == null ? void 0 : n.title, children: [
1128
- (n == null ? void 0 : n.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: n.description }),
1129
- (n == null ? void 0 : n.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: n.favicon })
1119
+ /* @__PURE__ */ r.jsxs(oe, { titleTemplate: e == null ? void 0 : e.title, children: [
1120
+ (e == null ? void 0 : e.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: e.description }),
1121
+ (e == null ? void 0 : e.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: e.favicon })
1130
1122
  ] }),
1131
- /* @__PURE__ */ r.jsx(k, { name: "layout-before-head" }),
1132
- /* @__PURE__ */ r.jsx(rt, {}),
1133
- /* @__PURE__ */ r.jsx(k, { name: "layout-after-head" }),
1134
- /* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-1 grid-rows-[min-content_1fr] lg:grid-cols-[var(--side-nav-width)_1fr] max-w-screen-2xl w-full lg:mx-auto px-4 lg:px-8 2xl:border-x", children: u ? /* @__PURE__ */ r.jsx(Ie, {}) : /* @__PURE__ */ r.jsx(me, { fallback: /* @__PURE__ */ r.jsx(Ie, {}), children: /* @__PURE__ */ r.jsx(ar, { children: t ?? /* @__PURE__ */ r.jsx(ue, {}) }) }) })
1123
+ /* @__PURE__ */ r.jsx(D, { name: "layout-before-head" }),
1124
+ /* @__PURE__ */ r.jsx(st, {}),
1125
+ /* @__PURE__ */ r.jsx(D, { name: "layout-after-head" }),
1126
+ /* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-1 grid-rows-[min-content_1fr] lg:grid-cols-[var(--side-nav-width)_1fr] max-w-screen-2xl w-full lg:mx-auto px-4 lg:px-8 2xl:border-x", children: a ? /* @__PURE__ */ r.jsx(qe, {}) : /* @__PURE__ */ r.jsx(me, { fallback: /* @__PURE__ */ r.jsx(qe, {}), children: /* @__PURE__ */ r.jsx(nr, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) })
1135
1127
  ] });
1136
- }, or = ({
1128
+ }, ir = ({
1137
1129
  title: t = "An error occurred",
1138
1130
  message: e,
1139
1131
  category: s
1140
- }) => /* @__PURE__ */ r.jsxs("div", { className: ss + " h-full pt-[--padding-content-top]", children: [
1141
- s && /* @__PURE__ */ r.jsx(As, { children: s }),
1142
- t && /* @__PURE__ */ r.jsx(ts, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1132
+ }) => /* @__PURE__ */ r.jsxs("div", { className: ts + " h-full pt-[--padding-content-top]", children: [
1133
+ s && /* @__PURE__ */ r.jsx(Ms, { children: s }),
1134
+ t && /* @__PURE__ */ r.jsx(es, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1143
1135
  /* @__PURE__ */ r.jsx("p", { children: e })
1144
- ] }), lr = (t) => {
1136
+ ] }), or = (t) => {
1145
1137
  switch (t) {
1146
1138
  case 400:
1147
1139
  return {
@@ -1204,23 +1196,23 @@ const nr = ({
1204
1196
  message: "Something went wrong while processing your request."
1205
1197
  };
1206
1198
  }
1207
- }, cr = ({ statusCode: t, message: e }) => {
1208
- const s = lr(t);
1199
+ }, lr = ({ statusCode: t, message: e }) => {
1200
+ const s = or(t);
1209
1201
  return /* @__PURE__ */ r.jsx(
1210
- or,
1202
+ ir,
1211
1203
  {
1212
1204
  title: s.title,
1213
1205
  message: e ?? s.message,
1214
1206
  category: t
1215
1207
  }
1216
1208
  );
1217
- }, ur = fe(null), ae = {
1209
+ }, cr = he(null), ne = {
1218
1210
  didCatch: !1,
1219
1211
  error: null
1220
1212
  };
1221
- class dr extends Xt {
1213
+ class ur extends Vt {
1222
1214
  constructor(e) {
1223
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ae;
1215
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
1224
1216
  }
1225
1217
  static getDerivedStateFromError(e) {
1226
1218
  return {
@@ -1233,12 +1225,12 @@ class dr extends Xt {
1233
1225
  error: e
1234
1226
  } = this.state;
1235
1227
  if (e !== null) {
1236
- for (var s, n, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
1237
- o[i] = arguments[i];
1228
+ for (var s, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1229
+ i[o] = arguments[o];
1238
1230
  (s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
1239
- args: o,
1231
+ args: i,
1240
1232
  reason: "imperative-api"
1241
- }), this.setState(ae);
1233
+ }), this.setState(ne);
1242
1234
  }
1243
1235
  }
1244
1236
  componentDidCatch(e, s) {
@@ -1251,13 +1243,13 @@ class dr extends Xt {
1251
1243
  } = this.state, {
1252
1244
  resetKeys: a
1253
1245
  } = this.props;
1254
- if (n && s.error !== null && hr(e.resetKeys, a)) {
1255
- var o, i;
1256
- (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1246
+ if (n && s.error !== null && dr(e.resetKeys, a)) {
1247
+ var i, o;
1248
+ (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1257
1249
  next: a,
1258
1250
  prev: e.resetKeys,
1259
1251
  reason: "keys"
1260
- }), this.setState(ae);
1252
+ }), this.setState(ne);
1261
1253
  }
1262
1254
  }
1263
1255
  render() {
@@ -1267,38 +1259,38 @@ class dr extends Xt {
1267
1259
  FallbackComponent: n,
1268
1260
  fallback: a
1269
1261
  } = this.props, {
1270
- didCatch: o,
1271
- error: i
1262
+ didCatch: i,
1263
+ error: o
1272
1264
  } = this.state;
1273
1265
  let u = e;
1274
- if (o) {
1266
+ if (i) {
1275
1267
  const d = {
1276
- error: i,
1268
+ error: o,
1277
1269
  resetErrorBoundary: this.resetErrorBoundary
1278
1270
  };
1279
1271
  if (typeof s == "function")
1280
1272
  u = s(d);
1281
1273
  else if (n)
1282
- u = ke(n, d);
1274
+ u = De(n, d);
1283
1275
  else if (a !== void 0)
1284
1276
  u = a;
1285
1277
  else
1286
- throw i;
1278
+ throw o;
1287
1279
  }
1288
- return ke(ur.Provider, {
1280
+ return De(cr.Provider, {
1289
1281
  value: {
1290
- didCatch: o,
1291
- error: i,
1282
+ didCatch: i,
1283
+ error: o,
1292
1284
  resetErrorBoundary: this.resetErrorBoundary
1293
1285
  }
1294
1286
  }, u);
1295
1287
  }
1296
1288
  }
1297
- function hr() {
1289
+ function dr() {
1298
1290
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1299
1291
  return t.length !== e.length || t.some((s, n) => !Object.is(s, e[n]));
1300
1292
  }
1301
- let fr = () => ({
1293
+ let hr = () => ({
1302
1294
  emit(t, ...e) {
1303
1295
  for (let s = this.events[t] || [], n = 0, a = s.length; n < a; n++)
1304
1296
  s[n](...e);
@@ -1312,45 +1304,45 @@ let fr = () => ({
1312
1304
  };
1313
1305
  }
1314
1306
  });
1315
- class mr {
1316
- constructor(e) {
1317
- j(this, "plugins");
1318
- j(this, "sidebars");
1319
- j(this, "topNavigation");
1320
- j(this, "meta");
1321
- j(this, "page");
1322
- j(this, "authentication");
1323
- j(this, "navigationPlugins");
1324
- j(this, "emitter", fr());
1325
- j(this, "initialize", async () => {
1307
+ class fr {
1308
+ constructor(e, s) {
1309
+ w(this, "plugins");
1310
+ w(this, "sidebars");
1311
+ w(this, "topNavigation");
1312
+ w(this, "meta");
1313
+ w(this, "page");
1314
+ w(this, "authentication");
1315
+ w(this, "navigationPlugins");
1316
+ w(this, "emitter", hr());
1317
+ w(this, "initialize", async () => {
1326
1318
  await Promise.all(
1327
- this.plugins.filter(us).map((e) => {
1319
+ this.plugins.filter(cs).map((e) => {
1328
1320
  var s;
1329
1321
  return (s = e.initialize) == null ? void 0 : s.call(e, this);
1330
1322
  })
1331
1323
  );
1332
1324
  });
1333
- j(this, "getApiIdentities", async () => (await Promise.all(
1334
- this.plugins.filter(ds).map((s) => s.getIdentities(this))
1325
+ w(this, "getApiIdentities", async () => (await Promise.all(
1326
+ this.plugins.filter(us).map((s) => s.getIdentities(this))
1335
1327
  )).flat());
1336
- j(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
1337
- j(this, "getPluginSidebar", async (e) => (await Promise.all(
1328
+ w(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
1329
+ w(this, "getPluginSidebar", async (e) => (await Promise.all(
1338
1330
  this.navigationPlugins.map(
1339
1331
  (n) => {
1340
1332
  var a;
1341
- return (a = n.getSidebar) == null ? void 0 : a.call(n, ie(e));
1333
+ return (a = n.getSidebar) == null ? void 0 : a.call(n, jt(e), this);
1342
1334
  }
1343
1335
  )
1344
1336
  )).flatMap((n) => n ?? []));
1345
- j(this, "signRequest", async (e) => {
1337
+ w(this, "signRequest", async (e) => {
1346
1338
  if (!this.authentication)
1347
1339
  throw new Error("No authentication provider configured");
1348
1340
  const s = await this.authentication.getAccessToken();
1349
1341
  return e.headers.set("Authorization", `Bearer ${s}`), e;
1350
1342
  });
1351
- this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ls), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((s) => {
1352
- cs(s) && Lt(s.events).forEach(([n, a]) => {
1353
- this.emitter.on(n, a);
1343
+ this.options = e, this.queryClient = s, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(os), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
1344
+ ls(n) && Ht(n.events).forEach(([a, i]) => {
1345
+ this.emitter.on(a, i);
1354
1346
  });
1355
1347
  });
1356
1348
  }
@@ -1358,90 +1350,92 @@ class mr {
1358
1350
  return this.emitter.on(e, s);
1359
1351
  }
1360
1352
  }
1361
- function gr({ error: t, resetErrorBoundary: e }) {
1362
- return /* @__PURE__ */ r.jsx(Ze, { error: t });
1353
+ function mr({ error: t, resetErrorBoundary: e }) {
1354
+ return /* @__PURE__ */ r.jsx(Ue, { error: t });
1363
1355
  }
1364
- const J = globalThis;
1365
- (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
1366
- const ot = {
1367
- Header: rt
1368
- }, pr = fe(ot), xr = pr.Provider, yr = () => {
1369
- const t = te(), e = O(), s = se(void 0);
1370
- return F(() => {
1356
+ const ee = globalThis;
1357
+ (!ee.requestIdleCallback || !ee.cancelIdleCallback) && (ee.requestIdleCallback = (t) => setTimeout(t, 1), ee.cancelIdleCallback = clearTimeout);
1358
+ const it = {
1359
+ Header: st
1360
+ }, gr = he(it), pr = gr.Provider, xr = () => {
1361
+ const t = le(), e = O(), s = fe(void 0);
1362
+ return U(() => {
1371
1363
  e.emitEvent("location", {
1372
1364
  from: s.current,
1373
1365
  to: t
1374
1366
  }), s.current = t;
1375
1367
  }, [e, t]), null;
1376
- }, vr = ({
1368
+ }, yr = ({
1377
1369
  children: t,
1378
1370
  context: e
1379
1371
  }) => (wt({
1380
1372
  queryFn: async () => (await e.initialize(), !0),
1381
1373
  queryKey: ["zudoku-initialize"]
1382
- }), /* @__PURE__ */ r.jsx(Pt.Provider, { value: e, children: t })), lt = Ve(
1374
+ }), /* @__PURE__ */ r.jsx(Pt.Provider, { value: e, children: t })), ot = Ye(
1383
1375
  ({ children: t, ...e }) => {
1384
- var m, h;
1385
- const s = re(
1386
- () => ({ ...ot, ...e.overrides }),
1376
+ var h, p;
1377
+ const s = se(
1378
+ () => ({ ...it, ...e.overrides }),
1387
1379
  [e.overrides]
1388
- ), n = re(() => {
1389
- var y;
1380
+ ), n = se(() => {
1381
+ var m;
1390
1382
  return {
1391
- ...(e.plugins ?? []).filter(hs).flatMap(
1392
- (p) => p.getMdxComponents ? [p.getMdxComponents()] : []
1383
+ ...(e.plugins ?? []).filter(ds).flatMap(
1384
+ (b) => b.getMdxComponents ? [b.getMdxComponents()] : []
1393
1385
  ).reduce(
1394
- (p, C) => ({ ...p, ...C }),
1386
+ (b, F) => ({ ...b, ...F }),
1395
1387
  {}
1396
1388
  ),
1397
- ...rs,
1398
- ...(y = e.mdx) == null ? void 0 : y.components
1389
+ ...ss,
1390
+ ...(m = e.mdx) == null ? void 0 : m.components
1399
1391
  };
1400
- }, [(m = e.mdx) == null ? void 0 : m.components, e.plugins]), { stagger: a } = _t(le), [o, i] = $(!1), u = re(
1401
- () => o ? { stagger: !0 } : { stagger: a },
1402
- [a, o]
1403
- ), d = de();
1404
- F(() => {
1405
- o || i(!0);
1406
- }, [o, d.location]);
1407
- const [c] = $(() => new mr(e)), x = (h = e.plugins) == null ? void 0 : h.flatMap((f) => {
1408
- var y;
1409
- return fs(f) ? ((y = f.getHead) == null ? void 0 : y.call(f)) ?? [] : [];
1410
- }).map((f, y) => /* @__PURE__ */ r.jsx(ce, { children: f }, y));
1392
+ }, [(h = e.mdx) == null ? void 0 : h.components, e.plugins]), { stagger: a } = _t(ie), [i, o] = $(!1), u = se(
1393
+ () => i ? { stagger: !0 } : { stagger: a },
1394
+ [a, i]
1395
+ ), d = ue(), c = Ke();
1396
+ U(() => {
1397
+ i || o(!0);
1398
+ }, [i, d.location]);
1399
+ const [x] = $(
1400
+ () => new fr(e, c)
1401
+ ), f = (p = e.plugins) == null ? void 0 : p.flatMap((y) => {
1402
+ var m;
1403
+ return hs(y) ? ((m = y.getHead) == null ? void 0 : m.call(y)) ?? [] : [];
1404
+ }).map((y, m) => /* @__PURE__ */ r.jsx(oe, { children: y }, m));
1411
1405
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1412
- x,
1413
- /* @__PURE__ */ r.jsx(le.Provider, { value: u, children: /* @__PURE__ */ r.jsxs(vr, { context: c, children: [
1414
- /* @__PURE__ */ r.jsx(yr, {}),
1415
- /* @__PURE__ */ r.jsx(ft, { components: n, children: /* @__PURE__ */ r.jsx(gt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(xr, { value: s, children: /* @__PURE__ */ r.jsx(Bt, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(ns, { children: t ?? /* @__PURE__ */ r.jsx(ue, {}) }) }) }) }) })
1406
+ f,
1407
+ /* @__PURE__ */ r.jsx(ie.Provider, { value: u, children: /* @__PURE__ */ r.jsxs(yr, { context: x, children: [
1408
+ /* @__PURE__ */ r.jsx(xr, {}),
1409
+ /* @__PURE__ */ r.jsx(ht, { components: n, children: /* @__PURE__ */ r.jsx(mt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(pr, { value: s, children: /* @__PURE__ */ r.jsx(Lt, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(rs, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) }) }) })
1416
1410
  ] }) })
1417
1411
  ] });
1418
1412
  }
1419
1413
  );
1420
- lt.displayName = "ZudokoInner";
1421
- const ct = (t) => /* @__PURE__ */ r.jsx(dr, { FallbackComponent: gr, children: /* @__PURE__ */ r.jsx(lt, { ...t }) });
1422
- ct.displayName = "Zudoku";
1423
- const Yr = mt, Vr = ir, Xr = Kt, _r = Hs, Gr = Ks, Wr = $s, Jr = zs, en = ce, tn = O, sn = K, rn = Ct, nn = Nt, an = ct, on = cr, ln = Ut, cn = as, un = Xe, dn = ge, hn = $t, fn = he, mn = He;
1414
+ ot.displayName = "ZudokoInner";
1415
+ const lt = (t) => /* @__PURE__ */ r.jsx(ur, { FallbackComponent: mr, children: /* @__PURE__ */ r.jsx(ot, { ...t }) });
1416
+ lt.displayName = "Zudoku";
1417
+ const Zr = ft, Yr = ar, Xr = Kt, Vr = zs, _r = Ls, Gr = Ks, Wr = Fs, Jr = oe, en = O, tn = K, sn = Ct, rn = Nt, nn = lt, an = lr, on = Ut, ln = ns, cn = Ge, un = ge, dn = $t, hn = de, fn = ze;
1424
1418
  export {
1425
- Gr as Bootstrap,
1426
- Wr as BootstrapStatic,
1427
- hn as Button,
1428
- nn as CACHE_KEYS,
1429
- ln as Callout,
1430
- dn as ClientOnly,
1431
- en as Head,
1432
- Vr as Layout,
1433
- fn as Link,
1434
- cn as Markdown,
1435
- Jr as RouteGuard,
1419
+ _r as Bootstrap,
1420
+ Gr as BootstrapStatic,
1421
+ dn as Button,
1422
+ rn as CACHE_KEYS,
1423
+ on as Callout,
1424
+ un as ClientOnly,
1425
+ Jr as Head,
1426
+ Yr as Layout,
1427
+ hn as Link,
1428
+ ln as Markdown,
1429
+ Wr as RouteGuard,
1436
1430
  Xr as RouterError,
1437
- _r as ServerError,
1438
- un as Spinner,
1439
- on as StatusPage,
1440
- an as Zudoku,
1441
- sn as useAuth,
1442
- rn as useCache,
1443
- Yr as useMDXComponents,
1444
- mn as useTheme,
1445
- tn as useZudoku
1431
+ Vr as ServerError,
1432
+ cn as Spinner,
1433
+ an as StatusPage,
1434
+ nn as Zudoku,
1435
+ tn as useAuth,
1436
+ sn as useCache,
1437
+ Zr as useMDXComponents,
1438
+ fn as useTheme,
1439
+ en as useZudoku
1446
1440
  };
1447
1441
  //# sourceMappingURL=zudoku.components.js.map