zudoku 0.19.0 → 0.20.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 (68) hide show
  1. package/dist/cli/common/outdated.js +2 -1
  2. package/dist/cli/common/outdated.js.map +1 -1
  3. package/dist/config/common.d.ts +8 -0
  4. package/dist/config/common.js +2 -0
  5. package/dist/config/common.js.map +1 -0
  6. package/dist/config/config.d.ts +3 -2
  7. package/dist/config/loader.d.ts +5 -0
  8. package/dist/config/loader.js +110 -0
  9. package/dist/config/loader.js.map +1 -0
  10. package/dist/config/validators/common.d.ts +4651 -0
  11. package/dist/config/validators/common.js +269 -0
  12. package/dist/config/validators/common.js.map +1 -0
  13. package/dist/config/validators/validate.d.ts +350 -584
  14. package/dist/config/validators/validate.js +9 -246
  15. package/dist/config/validators/validate.js.map +1 -1
  16. package/dist/lib/components/Heading.d.ts +1 -1
  17. package/dist/lib/components/TopNavigation.d.ts +1 -1
  18. package/dist/lib/components/navigation/SidebarCategory.d.ts +1 -2
  19. package/dist/lib/components/navigation/SidebarCategory.js +3 -4
  20. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  21. package/dist/lib/components/navigation/SidebarItem.d.ts +1 -3
  22. package/dist/lib/components/navigation/SidebarItem.js +4 -9
  23. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  24. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  25. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  26. package/dist/lib/core/ZudokuContext.d.ts +1 -1
  27. package/dist/lib/plugins/markdown/index.d.ts +1 -1
  28. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  29. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  30. package/dist/lib/ui/Command.d.ts +1 -1
  31. package/dist/lib/util/MdxComponents.d.ts +2 -3
  32. package/dist/lib/util/MdxComponents.js.map +1 -1
  33. package/dist/vite/build.js +4 -1
  34. package/dist/vite/build.js.map +1 -1
  35. package/dist/vite/config.d.ts +1 -3
  36. package/dist/vite/config.js +2 -4
  37. package/dist/vite/config.js.map +1 -1
  38. package/dist/vite/dev-server.js.map +1 -1
  39. package/dist/vite/output.d.ts +1 -1
  40. package/dist/vite/output.js.map +1 -1
  41. package/dist/vite/plugin-config-reload.d.ts +1 -2
  42. package/dist/vite/plugin-config-reload.js.map +1 -1
  43. package/dist/vite/plugin.d.ts +1 -2
  44. package/dist/vite/plugin.js.map +1 -1
  45. package/dist/vite/prerender.d.ts +2 -1
  46. package/dist/vite/prerender.js +2 -2
  47. package/dist/vite/prerender.js.map +1 -1
  48. package/dist/vite/sitemap.d.ts +1 -1
  49. package/dist/zuplo/env.d.ts +6 -0
  50. package/dist/zuplo/env.js +9 -0
  51. package/dist/zuplo/env.js.map +1 -0
  52. package/dist/zuplo/with-zuplo.d.ts +2 -2
  53. package/dist/zuplo/with-zuplo.js.map +1 -1
  54. package/lib/Markdown-ievDDhFT.js.map +1 -1
  55. package/lib/zudoku.components.js +259 -271
  56. package/lib/zudoku.components.js.map +1 -1
  57. package/lib/zudoku.plugin-markdown.js.map +1 -1
  58. package/lib/zudoku.plugin-redirect.js.map +1 -1
  59. package/package.json +2 -2
  60. package/src/lib/components/TopNavigation.tsx +1 -1
  61. package/src/lib/components/navigation/SidebarCategory.tsx +7 -9
  62. package/src/lib/components/navigation/SidebarItem.tsx +3 -16
  63. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  64. package/src/lib/core/ZudokuContext.ts +1 -1
  65. package/src/lib/plugins/markdown/index.tsx +1 -1
  66. package/src/lib/plugins/markdown/resolver.ts +2 -4
  67. package/src/lib/plugins/redirect/index.tsx +1 -1
  68. package/src/lib/util/MdxComponents.tsx +2 -5
@@ -3,8 +3,8 @@ var Ce = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var bt = (e, t, r) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var N = (e, t, r) => bt(e, typeof t != "symbol" ? t + "" : t, r), Pe = (e, t, r) => t.has(e) || Ce("Cannot " + r);
7
- var u = (e, t, r) => (Pe(e, t, "read from private field"), r ? r.call(e) : t.get(e)), E = (e, t, r) => t.has(e) ? Ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Pe(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
6
+ var S = (e, t, r) => bt(e, typeof t != "symbol" ? t + "" : t, r), Pe = (e, t, r) => t.has(e) || Ce("Cannot " + r);
7
+ var u = (e, t, r) => (Pe(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Pe(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
8
8
  var J = (e, t, r, s) => ({
9
9
  set _(n) {
10
10
  y(e, t, n, r);
@@ -20,10 +20,10 @@ import { E as Ue, S as O, a as Et, R as Ct } from "./SlotletProvider-DyomlzGx.js
20
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
21
21
  import { Button as Pt } from "./ui/Button.js";
22
22
  import { Callout as kt } from "./ui/Callout.js";
23
- import { S as $e, l as Ke, Q as Dt, n as S, m as ke, o as De, p as A, q as Ot, r as At, t as Mt, v as Rt, w as Oe, x as Ae, y as It, h as Me, z as Re, A as Tt, d as _t, B as Ve, C as Qt, j as q, u as F, D as Ze, E as Ft, g as qt, Z as Lt } from "./utils-DcpDOncX.js";
24
- import { M as zt, u as se } from "./hook-hEqe7fPB.js";
23
+ import { S as $e, l as Ke, Q as Dt, n as w, m as ke, o as De, p as A, q as Ot, r as At, t as Mt, v as Rt, w as Oe, x as Ae, y as It, h as Me, z as Re, A as Tt, d as _t, B as Ve, C as Qt, j as q, u as F, D as Ze, E as Ft, g as qt, Z as zt } from "./utils-DcpDOncX.js";
24
+ import { M as Bt, u as se } from "./hook-hEqe7fPB.js";
25
25
  import * as G from "react";
26
- import Ye, { StrictMode as We, useState as Q, useEffect as L, useRef as pe, useCallback as Bt, Suspense as ve, memo as Xe, forwardRef as Ht, createContext as Je, Component as Ut, createElement as Ie, useMemo as ne, useContext as $t, Fragment as Kt } from "react";
26
+ import Ye, { StrictMode as We, useState as Q, useEffect as z, useRef as pe, useCallback as Lt, Suspense as ve, memo as Xe, forwardRef as Ht, createContext as Je, Component as Ut, createElement as Ie, useMemo as ne, useContext as $t, Fragment as Kt } from "react";
27
27
  import { a as xe, c as Vt } from "./_commonjsHelpers-BkfeUUK-.js";
28
28
  import { B as Zt } from "./router-lfyopgBI.js";
29
29
  import { I as Yt, y as Wt, u as ye, j as be, O as Ge } from "./index-Czzd9rjU.js";
@@ -45,10 +45,10 @@ import { S as Nr } from "./Spinner-3cQDBVGr.js";
45
45
  function Er({ error: e }) {
46
46
  return /* @__PURE__ */ a.jsx(Ue, { error: e });
47
47
  }
48
- var k, Le, Cr = (Le = class extends $e {
48
+ var k, ze, Cr = (ze = class extends $e {
49
49
  constructor(t = {}) {
50
50
  super();
51
- E(this, k);
51
+ N(this, k);
52
52
  this.config = t, y(this, k, /* @__PURE__ */ new Map());
53
53
  }
54
54
  build(t, r, s) {
@@ -74,7 +74,7 @@ var k, Le, Cr = (Le = class extends $e {
74
74
  r && (t.destroy(), r === t && u(this, k).delete(t.queryHash), this.notify({ type: "removed", query: t }));
75
75
  }
76
76
  clear() {
77
- S.batch(() => {
77
+ w.batch(() => {
78
78
  this.getAll().forEach((t) => {
79
79
  this.remove(t);
80
80
  });
@@ -97,35 +97,35 @@ var k, Le, Cr = (Le = class extends $e {
97
97
  return Object.keys(t).length > 0 ? r.filter((s) => ke(t, s)) : r;
98
98
  }
99
99
  notify(t) {
100
- S.batch(() => {
100
+ w.batch(() => {
101
101
  this.listeners.forEach((r) => {
102
102
  r(t);
103
103
  });
104
104
  });
105
105
  }
106
106
  onFocus() {
107
- S.batch(() => {
107
+ w.batch(() => {
108
108
  this.getAll().forEach((t) => {
109
109
  t.onFocus();
110
110
  });
111
111
  });
112
112
  }
113
113
  onOnline() {
114
- S.batch(() => {
114
+ w.batch(() => {
115
115
  this.getAll().forEach((t) => {
116
116
  t.onOnline();
117
117
  });
118
118
  });
119
119
  }
120
- }, k = new WeakMap(), Le), w, Z, ze, Pr = (ze = class extends $e {
120
+ }, k = new WeakMap(), ze), j, Z, Be, Pr = (Be = class extends $e {
121
121
  constructor(t = {}) {
122
122
  super();
123
- E(this, w);
124
- E(this, Z);
125
- this.config = t, y(this, w, /* @__PURE__ */ new Map()), y(this, Z, Date.now());
123
+ N(this, j);
124
+ N(this, Z);
125
+ this.config = t, y(this, j, /* @__PURE__ */ new Map()), y(this, Z, Date.now());
126
126
  }
127
127
  build(t, r, s) {
128
- const n = new zt({
128
+ const n = new Bt({
129
129
  mutationCache: this,
130
130
  mutationId: ++J(this, Z)._,
131
131
  options: t.defaultMutationOptions(r),
@@ -134,37 +134,37 @@ var k, Le, Cr = (Le = class extends $e {
134
134
  return this.add(n), n;
135
135
  }
136
136
  add(t) {
137
- const r = ee(t), s = u(this, w).get(r) ?? [];
138
- s.push(t), u(this, w).set(r, s), this.notify({ type: "added", mutation: t });
137
+ const r = ee(t), s = u(this, j).get(r) ?? [];
138
+ s.push(t), u(this, j).set(r, s), this.notify({ type: "added", mutation: t });
139
139
  }
140
140
  remove(t) {
141
141
  var s;
142
142
  const r = ee(t);
143
- if (u(this, w).has(r)) {
144
- const n = (s = u(this, w).get(r)) == null ? void 0 : s.filter((o) => o !== t);
145
- n && (n.length === 0 ? u(this, w).delete(r) : u(this, w).set(r, n));
143
+ if (u(this, j).has(r)) {
144
+ const n = (s = u(this, j).get(r)) == null ? void 0 : s.filter((o) => o !== t);
145
+ n && (n.length === 0 ? u(this, j).delete(r) : u(this, j).set(r, n));
146
146
  }
147
147
  this.notify({ type: "removed", mutation: t });
148
148
  }
149
149
  canRun(t) {
150
150
  var s;
151
- const r = (s = u(this, w).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
151
+ const r = (s = u(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
152
152
  return !r || r === t;
153
153
  }
154
154
  runNext(t) {
155
155
  var s;
156
- const r = (s = u(this, w).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
156
+ const r = (s = u(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
157
157
  return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
158
158
  }
159
159
  clear() {
160
- S.batch(() => {
160
+ w.batch(() => {
161
161
  this.getAll().forEach((t) => {
162
162
  this.remove(t);
163
163
  });
164
164
  });
165
165
  }
166
166
  getAll() {
167
- return [...u(this, w).values()].flat();
167
+ return [...u(this, j).values()].flat();
168
168
  }
169
169
  find(t) {
170
170
  const r = { exact: !0, ...t };
@@ -176,7 +176,7 @@ var k, Le, Cr = (Le = class extends $e {
176
176
  return this.getAll().filter((r) => De(t, r));
177
177
  }
178
178
  notify(t) {
179
- S.batch(() => {
179
+ w.batch(() => {
180
180
  this.listeners.forEach((r) => {
181
181
  r(t);
182
182
  });
@@ -184,13 +184,13 @@ var k, Le, Cr = (Le = class extends $e {
184
184
  }
185
185
  resumePausedMutations() {
186
186
  const t = this.getAll().filter((r) => r.state.isPaused);
187
- return S.batch(
187
+ return w.batch(
188
188
  () => Promise.all(
189
189
  t.map((r) => r.continue().catch(A))
190
190
  )
191
191
  );
192
192
  }
193
- }, w = new WeakMap(), Z = new WeakMap(), ze);
193
+ }, j = new WeakMap(), Z = new WeakMap(), Be);
194
194
  function ee(e) {
195
195
  var t;
196
196
  return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
@@ -198,20 +198,20 @@ function ee(e) {
198
198
  function Te(e) {
199
199
  return {
200
200
  onFetch: (t, r) => {
201
- var m, g, f, p, x;
202
- const s = t.options, n = (f = (g = (m = t.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : f.direction, o = ((p = t.state.data) == null ? void 0 : p.pages) || [], i = ((x = t.state.data) == null ? void 0 : x.pageParams) || [];
203
- let l = { pages: [], pageParams: [] }, d = 0;
204
- const c = async () => {
205
- let h = !1;
206
- const j = (b) => {
201
+ var f, m, h, p, v;
202
+ const s = t.options, n = (h = (m = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : m.fetchMore) == null ? void 0 : h.direction, o = ((p = t.state.data) == null ? void 0 : p.pages) || [], i = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
203
+ let c = { pages: [], pageParams: [] }, d = 0;
204
+ const l = async () => {
205
+ let g = !1;
206
+ const E = (b) => {
207
207
  Object.defineProperty(b, "signal", {
208
208
  enumerable: !0,
209
- get: () => (t.signal.aborted ? h = !0 : t.signal.addEventListener("abort", () => {
210
- h = !0;
209
+ get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
210
+ g = !0;
211
211
  }), t.signal)
212
212
  });
213
213
  }, W = Ot(t.options, t.fetchOptions), $ = async (b, C, K) => {
214
- if (h)
214
+ if (g)
215
215
  return Promise.reject();
216
216
  if (C == null && b.pages.length)
217
217
  return Promise.resolve(b);
@@ -221,7 +221,7 @@ function Te(e) {
221
221
  direction: K ? "backward" : "forward",
222
222
  meta: t.options.meta
223
223
  };
224
- j(X);
224
+ E(X);
225
225
  const xt = await W(
226
226
  X
227
227
  ), { maxPages: Ne } = t.options, Ee = K ? At : Mt;
@@ -235,23 +235,23 @@ function Te(e) {
235
235
  pages: o,
236
236
  pageParams: i
237
237
  }, X = C(s, K);
238
- l = await $(K, X, b);
238
+ c = await $(K, X, b);
239
239
  } else {
240
240
  const b = e ?? o.length;
241
241
  do {
242
- const C = d === 0 ? i[0] ?? s.initialPageParam : _e(s, l);
242
+ const C = d === 0 ? i[0] ?? s.initialPageParam : _e(s, c);
243
243
  if (d > 0 && C == null)
244
244
  break;
245
- l = await $(l, C), d++;
245
+ c = await $(c, C), d++;
246
246
  } while (d < b);
247
247
  }
248
- return l;
248
+ return c;
249
249
  };
250
250
  t.options.persister ? t.fetchFn = () => {
251
- var h, j;
252
- return (j = (h = t.options).persister) == null ? void 0 : j.call(
253
- h,
254
- c,
251
+ var g, E;
252
+ return (E = (g = t.options).persister) == null ? void 0 : E.call(
253
+ g,
254
+ l,
255
255
  {
256
256
  queryKey: t.queryKey,
257
257
  meta: t.options.meta,
@@ -259,7 +259,7 @@ function Te(e) {
259
259
  },
260
260
  r
261
261
  );
262
- } : t.fetchFn = c;
262
+ } : t.fetchFn = l;
263
263
  }
264
264
  };
265
265
  }
@@ -276,23 +276,23 @@ function kr(e, { pages: t, pageParams: r }) {
276
276
  var s;
277
277
  return t.length > 0 ? (s = e.getPreviousPageParam) == null ? void 0 : s.call(e, t[0], t, r[0], r) : void 0;
278
278
  }
279
- var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
279
+ var x, I, T, B, L, _, H, U, Le, Dr = (Le = class {
280
280
  constructor(e = {}) {
281
- E(this, v);
282
- E(this, I);
283
- E(this, T);
284
- E(this, z);
285
- E(this, B);
286
- E(this, _);
287
- E(this, H);
288
- E(this, U);
289
- y(this, v, e.queryCache || new Cr()), y(this, I, e.mutationCache || new Pr()), y(this, T, e.defaultOptions || {}), y(this, z, /* @__PURE__ */ new Map()), y(this, B, /* @__PURE__ */ new Map()), y(this, _, 0);
281
+ N(this, x);
282
+ N(this, I);
283
+ N(this, T);
284
+ N(this, B);
285
+ N(this, L);
286
+ N(this, _);
287
+ N(this, H);
288
+ N(this, U);
289
+ y(this, x, e.queryCache || new Cr()), y(this, I, e.mutationCache || new Pr()), y(this, T, e.defaultOptions || {}), y(this, B, /* @__PURE__ */ new Map()), y(this, L, /* @__PURE__ */ new Map()), y(this, _, 0);
290
290
  }
291
291
  mount() {
292
292
  J(this, _)._++, u(this, _) === 1 && (y(this, H, Rt.subscribe(async (e) => {
293
- e && (await this.resumePausedMutations(), u(this, v).onFocus());
293
+ e && (await this.resumePausedMutations(), u(this, x).onFocus());
294
294
  })), y(this, U, Oe.subscribe(async (e) => {
295
- e && (await this.resumePausedMutations(), u(this, v).onOnline());
295
+ e && (await this.resumePausedMutations(), u(this, x).onOnline());
296
296
  })));
297
297
  }
298
298
  unmount() {
@@ -300,7 +300,7 @@ var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
300
300
  J(this, _)._--, u(this, _) === 0 && ((e = u(this, H)) == null || e.call(this), y(this, H, void 0), (t = u(this, U)) == null || t.call(this), y(this, U, void 0));
301
301
  }
302
302
  isFetching(e) {
303
- return u(this, v).findAll({ ...e, fetchStatus: "fetching" }).length;
303
+ return u(this, x).findAll({ ...e, fetchStatus: "fetching" }).length;
304
304
  }
305
305
  isMutating(e) {
306
306
  return u(this, I).findAll({ ...e, status: "pending" }).length;
@@ -308,33 +308,33 @@ var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
308
308
  getQueryData(e) {
309
309
  var r;
310
310
  const t = this.defaultQueryOptions({ queryKey: e });
311
- return (r = u(this, v).get(t.queryHash)) == null ? void 0 : r.state.data;
311
+ return (r = u(this, x).get(t.queryHash)) == null ? void 0 : r.state.data;
312
312
  }
313
313
  ensureQueryData(e) {
314
314
  const t = this.getQueryData(e.queryKey);
315
315
  if (t === void 0)
316
316
  return this.fetchQuery(e);
317
317
  {
318
- const r = this.defaultQueryOptions(e), s = u(this, v).build(this, r);
318
+ const r = this.defaultQueryOptions(e), s = u(this, x).build(this, r);
319
319
  return e.revalidateIfStale && s.isStaleByTime(Ae(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(t);
320
320
  }
321
321
  }
322
322
  getQueriesData(e) {
323
- return u(this, v).findAll(e).map(({ queryKey: t, state: r }) => {
323
+ return u(this, x).findAll(e).map(({ queryKey: t, state: r }) => {
324
324
  const s = r.data;
325
325
  return [t, s];
326
326
  });
327
327
  }
328
328
  setQueryData(e, t, r) {
329
- const s = this.defaultQueryOptions({ queryKey: e }), n = u(this, v).get(
329
+ const s = this.defaultQueryOptions({ queryKey: e }), n = u(this, x).get(
330
330
  s.queryHash
331
331
  ), o = n == null ? void 0 : n.state.data, i = It(t, o);
332
332
  if (i !== void 0)
333
- return u(this, v).build(this, s).setData(i, { ...r, manual: !0 });
333
+ return u(this, x).build(this, s).setData(i, { ...r, manual: !0 });
334
334
  }
335
335
  setQueriesData(e, t, r) {
336
- return S.batch(
337
- () => u(this, v).findAll(e).map(({ queryKey: s }) => [
336
+ return w.batch(
337
+ () => u(this, x).findAll(e).map(({ queryKey: s }) => [
338
338
  s,
339
339
  this.setQueryData(s, t, r)
340
340
  ])
@@ -343,34 +343,34 @@ var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
343
343
  getQueryState(e) {
344
344
  var r;
345
345
  const t = this.defaultQueryOptions({ queryKey: e });
346
- return (r = u(this, v).get(t.queryHash)) == null ? void 0 : r.state;
346
+ return (r = u(this, x).get(t.queryHash)) == null ? void 0 : r.state;
347
347
  }
348
348
  removeQueries(e) {
349
- const t = u(this, v);
350
- S.batch(() => {
349
+ const t = u(this, x);
350
+ w.batch(() => {
351
351
  t.findAll(e).forEach((r) => {
352
352
  t.remove(r);
353
353
  });
354
354
  });
355
355
  }
356
356
  resetQueries(e, t) {
357
- const r = u(this, v), s = {
357
+ const r = u(this, x), s = {
358
358
  type: "active",
359
359
  ...e
360
360
  };
361
- return S.batch(() => (r.findAll(e).forEach((n) => {
361
+ return w.batch(() => (r.findAll(e).forEach((n) => {
362
362
  n.reset();
363
363
  }), this.refetchQueries(s, t)));
364
364
  }
365
365
  cancelQueries(e = {}, t = {}) {
366
- const r = { revert: !0, ...t }, s = S.batch(
367
- () => u(this, v).findAll(e).map((n) => n.cancel(r))
366
+ const r = { revert: !0, ...t }, s = w.batch(
367
+ () => u(this, x).findAll(e).map((n) => n.cancel(r))
368
368
  );
369
369
  return Promise.all(s).then(A).catch(A);
370
370
  }
371
371
  invalidateQueries(e = {}, t = {}) {
372
- return S.batch(() => {
373
- if (u(this, v).findAll(e).forEach((s) => {
372
+ return w.batch(() => {
373
+ if (u(this, x).findAll(e).forEach((s) => {
374
374
  s.invalidate();
375
375
  }), e.refetchType === "none")
376
376
  return Promise.resolve();
@@ -385,8 +385,8 @@ var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
385
385
  const r = {
386
386
  ...t,
387
387
  cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
388
- }, s = S.batch(
389
- () => u(this, v).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
388
+ }, s = w.batch(
389
+ () => u(this, x).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
390
390
  let o = n.fetch(void 0, r);
391
391
  return r.throwOnError || (o = o.catch(A)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
392
392
  })
@@ -396,7 +396,7 @@ var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
396
396
  fetchQuery(e) {
397
397
  const t = this.defaultQueryOptions(e);
398
398
  t.retry === void 0 && (t.retry = !1);
399
- const r = u(this, v).build(this, t);
399
+ const r = u(this, x).build(this, t);
400
400
  return r.isStaleByTime(
401
401
  Ae(t.staleTime, r)
402
402
  ) ? r.fetch(t) : Promise.resolve(r.state.data);
@@ -417,7 +417,7 @@ var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
417
417
  return Oe.isOnline() ? u(this, I).resumePausedMutations() : Promise.resolve();
418
418
  }
419
419
  getQueryCache() {
420
- return u(this, v);
420
+ return u(this, x);
421
421
  }
422
422
  getMutationCache() {
423
423
  return u(this, I);
@@ -429,26 +429,26 @@ var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
429
429
  y(this, T, e);
430
430
  }
431
431
  setQueryDefaults(e, t) {
432
- u(this, z).set(Me(e), {
432
+ u(this, B).set(Me(e), {
433
433
  queryKey: e,
434
434
  defaultOptions: t
435
435
  });
436
436
  }
437
437
  getQueryDefaults(e) {
438
- const t = [...u(this, z).values()];
438
+ const t = [...u(this, B).values()];
439
439
  let r = {};
440
440
  return t.forEach((s) => {
441
441
  Re(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
442
442
  }), r;
443
443
  }
444
444
  setMutationDefaults(e, t) {
445
- u(this, B).set(Me(e), {
445
+ u(this, L).set(Me(e), {
446
446
  mutationKey: e,
447
447
  defaultOptions: t
448
448
  });
449
449
  }
450
450
  getMutationDefaults(e) {
451
- const t = [...u(this, B).values()];
451
+ const t = [...u(this, L).values()];
452
452
  let r = {};
453
453
  return t.forEach((s) => {
454
454
  Re(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
@@ -477,61 +477,61 @@ var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
477
477
  };
478
478
  }
479
479
  clear() {
480
- u(this, v).clear(), u(this, I).clear();
480
+ u(this, x).clear(), u(this, I).clear();
481
481
  }
482
- }, v = new WeakMap(), I = new WeakMap(), T = new WeakMap(), z = new WeakMap(), B = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), U = new WeakMap(), Be);
482
+ }, x = new WeakMap(), I = new WeakMap(), T = new WeakMap(), B = new WeakMap(), L = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), U = new WeakMap(), Le);
483
483
  function Or(e) {
484
484
  return e;
485
485
  }
486
486
  function Qe(e, t, r) {
487
- var d, c;
487
+ var d, l;
488
488
  if (typeof t != "object" || t === null)
489
489
  return;
490
- const s = e.getMutationCache(), n = e.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = e.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Or, i = t.mutations || [], l = t.queries || [];
491
- i.forEach(({ state: m, ...g }) => {
492
- var f, p;
490
+ const s = e.getMutationCache(), n = e.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? Or, i = t.mutations || [], c = t.queries || [];
491
+ i.forEach(({ state: f, ...m }) => {
492
+ var h, p;
493
493
  s.build(
494
494
  e,
495
495
  {
496
- ...(f = e.getDefaultOptions().hydrate) == null ? void 0 : f.mutations,
496
+ ...(h = e.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
497
497
  ...(p = r == null ? void 0 : r.defaultOptions) == null ? void 0 : p.mutations,
498
- ...g
498
+ ...m
499
499
  },
500
- m
500
+ f
501
501
  );
502
- }), l.forEach(({ queryKey: m, state: g, queryHash: f, meta: p, promise: x }) => {
502
+ }), c.forEach(({ queryKey: f, state: m, queryHash: h, meta: p, promise: v }) => {
503
503
  var W, $;
504
- let h = n.get(f);
505
- const j = g.data === void 0 ? g.data : o(g.data);
506
- if (h) {
507
- if (h.state.dataUpdatedAt < g.dataUpdatedAt) {
508
- const { fetchStatus: b, ...C } = g;
509
- h.setState({
504
+ let g = n.get(h);
505
+ const E = m.data === void 0 ? m.data : o(m.data);
506
+ if (g) {
507
+ if (g.state.dataUpdatedAt < m.dataUpdatedAt) {
508
+ const { fetchStatus: b, ...C } = m;
509
+ g.setState({
510
510
  ...C,
511
- data: j
511
+ data: E
512
512
  });
513
513
  }
514
514
  } else
515
- h = n.build(
515
+ g = n.build(
516
516
  e,
517
517
  {
518
518
  ...(W = e.getDefaultOptions().hydrate) == null ? void 0 : W.queries,
519
519
  ...($ = r == null ? void 0 : r.defaultOptions) == null ? void 0 : $.queries,
520
- queryKey: m,
521
- queryHash: f,
520
+ queryKey: f,
521
+ queryHash: h,
522
522
  meta: p
523
523
  },
524
524
  // Reset fetch status to idle to avoid
525
525
  // query being stuck in fetching state upon hydration
526
526
  {
527
- ...g,
528
- data: j,
527
+ ...m,
528
+ data: E,
529
529
  fetchStatus: "idle"
530
530
  }
531
531
  );
532
- if (x) {
533
- const b = Promise.resolve(x).then(o);
534
- h.fetch(void 0, { initialPromise: b });
532
+ if (v) {
533
+ const b = Promise.resolve(v).then(o);
534
+ g.fetch(void 0, { initialPromise: b });
535
535
  }
536
536
  });
537
537
  }
@@ -541,29 +541,29 @@ var Ar = ({
541
541
  state: r,
542
542
  queryClient: s
543
543
  }) => {
544
- const n = _t(s), [o, i] = G.useState(), l = G.useRef(t);
545
- return l.current = t, G.useMemo(() => {
544
+ const n = _t(s), [o, i] = G.useState(), c = G.useRef(t);
545
+ return c.current = t, G.useMemo(() => {
546
546
  if (r) {
547
547
  if (typeof r != "object")
548
548
  return;
549
- const d = n.getQueryCache(), c = r.queries || [], m = [], g = [];
550
- for (const f of c) {
551
- const p = d.get(f.queryHash);
549
+ const d = n.getQueryCache(), l = r.queries || [], f = [], m = [];
550
+ for (const h of l) {
551
+ const p = d.get(h.queryHash);
552
552
  if (!p)
553
- m.push(f);
553
+ f.push(h);
554
554
  else {
555
- const x = f.state.dataUpdatedAt > p.state.dataUpdatedAt, h = o == null ? void 0 : o.find(
556
- (j) => j.queryHash === f.queryHash
555
+ const v = h.state.dataUpdatedAt > p.state.dataUpdatedAt, g = o == null ? void 0 : o.find(
556
+ (E) => E.queryHash === h.queryHash
557
557
  );
558
- x && (!h || f.state.dataUpdatedAt > h.state.dataUpdatedAt) && g.push(f);
558
+ v && (!g || h.state.dataUpdatedAt > g.state.dataUpdatedAt) && m.push(h);
559
559
  }
560
560
  }
561
- m.length > 0 && Qe(n, { queries: m }, l.current), g.length > 0 && i(
562
- (f) => f ? [...f, ...g] : g
561
+ f.length > 0 && Qe(n, { queries: f }, c.current), m.length > 0 && i(
562
+ (h) => h ? [...h, ...m] : m
563
563
  );
564
564
  }
565
565
  }, [n, o, r]), G.useEffect(() => {
566
- o && (Qe(n, { queries: o }, l.current), i(void 0));
566
+ o && (Qe(n, { queries: o }, c.current), i(void 0));
567
567
  }, [n, o]), e;
568
568
  }, Y = {};
569
569
  const Mr = /* @__PURE__ */ xe(Zt), Rr = /* @__PURE__ */ xe(Yt), Ir = /* @__PURE__ */ xe(jt);
@@ -627,17 +627,17 @@ function Fr({
627
627
  let d = {
628
628
  loaderData: e.loaderData,
629
629
  actionData: e.actionData,
630
- errors: Lr(e.errors)
630
+ errors: zr(e.errors)
631
631
  };
632
632
  i = `window.__staticRouterHydrationData = JSON.parse(${Kr(JSON.stringify(JSON.stringify(d)))});`;
633
633
  }
634
634
  let {
635
- state: l
635
+ state: c
636
636
  } = n.router;
637
637
  return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterContext.Provider, {
638
638
  value: n
639
639
  }, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
640
- value: l
640
+ value: c
641
641
  }, /* @__PURE__ */ P.createElement(M.UNSAFE_FetchersContext.Provider, {
642
642
  value: o
643
643
  }, /* @__PURE__ */ P.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
@@ -646,8 +646,8 @@ function Fr({
646
646
  }
647
647
  }, /* @__PURE__ */ P.createElement(M.Router, {
648
648
  basename: n.basename,
649
- location: l.location,
650
- navigationType: l.historyAction,
649
+ location: c.location,
650
+ navigationType: c.historyAction,
651
651
  navigator: n.navigator,
652
652
  static: n.static,
653
653
  future: {
@@ -656,7 +656,7 @@ function Fr({
656
656
  }, /* @__PURE__ */ P.createElement(qr, {
657
657
  routes: t.routes,
658
658
  future: t.future,
659
- state: l
659
+ state: c
660
660
  })))))), i ? /* @__PURE__ */ P.createElement("script", {
661
661
  suppressHydrationWarning: !0,
662
662
  nonce: s,
@@ -672,7 +672,7 @@ function qr({
672
672
  }) {
673
673
  return Se.UNSAFE_useRoutesImpl(e, void 0, r, t);
674
674
  }
675
- function Lr(e) {
675
+ function zr(e) {
676
676
  if (!e) return null;
677
677
  let t = Object.entries(e), r = {};
678
678
  for (let [s, n] of t)
@@ -711,30 +711,30 @@ function nt() {
711
711
  }
712
712
  };
713
713
  }
714
- function zr(e, t) {
714
+ function Br(e, t) {
715
715
  return D.createStaticHandler(e, {
716
716
  ...t,
717
717
  mapRouteProperties: Se.UNSAFE_mapRouteProperties
718
718
  });
719
719
  }
720
- function Br(e, t, r = {}) {
721
- let s = {}, n = D.UNSAFE_convertRoutesToDataRoutes(e, Se.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((l) => {
722
- let d = s[l.route.id] || l.route;
720
+ function Lr(e, t, r = {}) {
721
+ let s = {}, n = D.UNSAFE_convertRoutesToDataRoutes(e, Se.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((c) => {
722
+ let d = s[c.route.id] || c.route;
723
723
  return {
724
- ...l,
724
+ ...c,
725
725
  route: d
726
726
  };
727
- }), i = (l) => `You cannot use router.${l}() on the server because it is a stateless environment`;
727
+ }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
728
728
  return {
729
729
  get basename() {
730
730
  return t.basename;
731
731
  },
732
732
  get future() {
733
- var l, d;
733
+ var c, d;
734
734
  return {
735
735
  v7_fetcherPersist: !1,
736
736
  v7_normalizeFormMethod: !1,
737
- v7_partialHydration: ((l = r.future) == null ? void 0 : l.v7_partialHydration) === !0,
737
+ v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
738
738
  v7_prependBasename: !1,
739
739
  v7_relativeSplatPath: ((d = r.future) == null ? void 0 : d.v7_relativeSplatPath) === !0,
740
740
  v7_skipActionErrorRevalidation: !1
@@ -832,8 +832,8 @@ function Kr(e) {
832
832
  }
833
833
  Y.StaticRouter = Qr;
834
834
  var Vr = Y.StaticRouterProvider = Fr;
835
- Y.createStaticHandler = zr;
836
- Y.createStaticRouter = Br;
835
+ Y.createStaticHandler = Br;
836
+ Y.createStaticRouter = Lr;
837
837
  const Zr = new Dr({
838
838
  defaultOptions: {
839
839
  queries: {
@@ -866,28 +866,28 @@ var he = { exports: {} };
866
866
  ssr: !0
867
867
  };
868
868
  function o() {
869
- const [l, d] = s.useState(!0);
869
+ const [c, d] = s.useState(!0);
870
870
  return s.useEffect(() => {
871
871
  d(!1);
872
- }, []), l;
872
+ }, []), c;
873
873
  }
874
- function i(l, d) {
874
+ function i(c, d) {
875
875
  d = Object.assign({}, n, d);
876
- const c = o() && d.ssr, m = c && l ? "DISPLAY" : "IDLE", [g, f] = s.useState(m), p = s.useRef(null);
876
+ const l = o() && d.ssr, f = l && c ? "DISPLAY" : "IDLE", [m, h] = s.useState(f), p = s.useRef(null);
877
877
  return s.useEffect(() => {
878
- if (l && (g === "IDLE" || c)) {
878
+ if (c && (m === "IDLE" || l)) {
879
879
  clearTimeout(p.current);
880
- const x = c ? 0 : d.delay;
880
+ const v = l ? 0 : d.delay;
881
881
  p.current = setTimeout(() => {
882
- if (!l)
883
- return f("IDLE");
882
+ if (!c)
883
+ return h("IDLE");
884
884
  p.current = setTimeout(() => {
885
- f("EXPIRE");
886
- }, d.minDuration), f("DISPLAY");
887
- }, x), c || f("DELAY");
885
+ h("EXPIRE");
886
+ }, d.minDuration), h("DISPLAY");
887
+ }, v), l || h("DELAY");
888
888
  }
889
- !l && g !== "DISPLAY" && (clearTimeout(p.current), f("IDLE"));
890
- }, [l, g, d.delay, d.minDuration, c]), s.useEffect(() => () => clearTimeout(p.current), []), g === "DISPLAY" || g === "EXPIRE";
889
+ !c && m !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
890
+ }, [c, m, d.delay, d.minDuration, l]), s.useEffect(() => () => clearTimeout(p.current), []), m === "DISPLAY" || m === "EXPIRE";
891
891
  }
892
892
  r.defaultOptions = n, r.useSpinDelay = i;
893
893
  });
@@ -895,27 +895,26 @@ var he = { exports: {} };
895
895
  var Xr = he.exports;
896
896
  const Jr = ({
897
897
  category: e,
898
- level: t,
899
- onRequestClose: r
898
+ onRequestClose: t
900
899
  }) => {
901
- var p, x;
902
- const s = Qt(e), [n, o] = Q(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, d = !!(!i || !l || s), [c, m] = Q(d), g = Wt(((p = e.link) == null ? void 0 : p.id) ?? "");
903
- L(() => {
904
- s && m(!0);
905
- }, [s]);
906
- const f = i && /* @__PURE__ */ a.jsx(
900
+ var h, p;
901
+ const r = Qt(e), [s, n] = Q(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [d, l] = Q(c), f = Wt(((h = e.link) == null ? void 0 : h.id) ?? "");
902
+ z(() => {
903
+ r && l(!0);
904
+ }, [r]);
905
+ const m = o && /* @__PURE__ */ a.jsx(
907
906
  "button",
908
907
  {
909
908
  type: "button",
910
- onClick: (h) => {
911
- h.preventDefault(), m((j) => !j), o(!0);
909
+ onClick: (v) => {
910
+ v.preventDefault(), l((g) => !g), n(!0);
912
911
  },
913
912
  children: /* @__PURE__ */ a.jsx(
914
913
  Xt,
915
914
  {
916
915
  size: 16,
917
916
  className: R(
918
- n && "transition",
917
+ s && "transition",
919
918
  "shrink-0 group-data-[state=open]:rotate-90"
920
919
  )
921
920
  }
@@ -926,20 +925,19 @@ const Jr = ({
926
925
  oe.Root,
927
926
  {
928
927
  className: "flex flex-col",
929
- defaultOpen: d,
930
- open: c,
931
- onOpenChange: () => m(!0),
928
+ defaultOpen: c,
929
+ open: d,
930
+ onOpenChange: () => l(!0),
932
931
  children: [
933
- /* @__PURE__ */ a.jsx(oe.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
932
+ /* @__PURE__ */ a.jsx(oe.Trigger, { className: "group", asChild: !0, disabled: !o, children: /* @__PURE__ */ a.jsxs(
934
933
  "div",
935
934
  {
936
- onClick: () => o(!0),
935
+ onClick: () => n(!0),
937
936
  className: V({
938
937
  isActive: !1,
939
- isTopLevel: t === 0,
940
938
  className: [
941
939
  "text-start",
942
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
940
+ o ? "cursor-pointer" : "cursor-default hover:bg-transparent"
943
941
  ]
944
942
  }),
945
943
  children: [
@@ -947,37 +945,34 @@ const Jr = ({
947
945
  e.icon,
948
946
  {
949
947
  size: 16,
950
- className: R(
951
- "align-[-0.125em] -translate-x-1",
952
- g && "text-primary"
953
- )
948
+ className: R("align-[-0.125em] ", f && "text-primary")
954
949
  }
955
950
  ),
956
- ((x = e.link) == null ? void 0 : x.type) === "doc" ? /* @__PURE__ */ a.jsx(
951
+ ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ a.jsx(
957
952
  ae,
958
953
  {
959
954
  to: q(e.link.id),
960
955
  className: "flex-1",
961
956
  onClick: () => {
962
- g && !c && m(!0);
957
+ f && !d && l(!0);
963
958
  },
964
959
  children: /* @__PURE__ */ a.jsxs(
965
960
  "div",
966
961
  {
967
962
  className: R(
968
963
  "flex items-center gap-2 justify-between w-full",
969
- g ? "text-primary" : "text-foreground/80"
964
+ f ? "text-primary" : "text-foreground/80"
970
965
  ),
971
966
  children: [
972
967
  /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
973
- f
968
+ m
974
969
  ]
975
970
  }
976
971
  )
977
972
  }
978
973
  ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
979
974
  /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
980
- f
975
+ m
981
976
  ] })
982
977
  ]
983
978
  }
@@ -987,17 +982,23 @@ const Jr = ({
987
982
  {
988
983
  className: R(
989
984
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
990
- n && "CollapsibleContent"
985
+ s && "CollapsibleContent",
986
+ "ms-6 my-1"
991
987
  ),
992
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((h) => /* @__PURE__ */ a.jsx(
993
- fe,
988
+ children: /* @__PURE__ */ a.jsx(
989
+ "ul",
994
990
  {
995
- onRequestClose: r,
996
- level: t + 1,
997
- item: h
998
- },
999
- ("id" in h ? h.id : "") + ("href" in h ? h.href : "") + h.label
1000
- )) })
991
+ className: "relative after:absolute after:-left-[--padding-nav-item] after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border",
992
+ children: e.items.map((v) => /* @__PURE__ */ a.jsx(
993
+ fe,
994
+ {
995
+ onRequestClose: t,
996
+ item: v
997
+ },
998
+ ("id" in v ? v.id : "") + ("href" in v ? v.href : "") + v.label
999
+ ))
1000
+ }
1001
+ )
1001
1002
  }
1002
1003
  )
1003
1004
  ]
@@ -1007,10 +1008,6 @@ const Jr = ({
1007
1008
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1008
1009
  {
1009
1010
  variants: {
1010
- isTopLevel: {
1011
- true: "font-medium -mx-[--padding-nav-item]",
1012
- false: "-mr-[--padding-nav-item] ml-[--padding-nav-item]"
1013
- },
1014
1011
  isActive: {
1015
1012
  true: "text-primary font-medium",
1016
1013
  false: "text-foreground/80"
@@ -1026,28 +1023,20 @@ const Jr = ({
1026
1023
  }
1027
1024
  ), lt = "data-anchor", fe = ({
1028
1025
  item: e,
1029
- level: t = 0,
1030
- onRequestClose: r
1026
+ onRequestClose: t
1031
1027
  }) => {
1032
- var o, i;
1033
- const { activeAnchor: s } = we(), [n] = St();
1028
+ var n, o;
1029
+ const { activeAnchor: r } = we(), [s] = St();
1034
1030
  switch (e.type) {
1035
1031
  case "category":
1036
- return /* @__PURE__ */ a.jsx(
1037
- Jr,
1038
- {
1039
- category: e,
1040
- level: t,
1041
- onRequestClose: r
1042
- }
1043
- );
1032
+ return /* @__PURE__ */ a.jsx(Jr, { category: e, onRequestClose: t });
1044
1033
  case "doc":
1045
1034
  return /* @__PURE__ */ a.jsxs(
1046
1035
  ae,
1047
1036
  {
1048
- className: ({ isActive: l }) => V({ isActive: l, isTopLevel: t === 0 }),
1037
+ className: ({ isActive: i }) => V({ isActive: i }),
1049
1038
  to: q(e.id),
1050
- onClick: r,
1039
+ onClick: t,
1051
1040
  children: [
1052
1041
  e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
1053
1042
  e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -1061,14 +1050,13 @@ const Jr = ({
1061
1050
  return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
1062
1051
  cr,
1063
1052
  {
1064
- to: { hash: e.href, search: n.toString() },
1053
+ to: { hash: e.href, search: s.toString() },
1065
1054
  [lt]: e.href.slice(1),
1066
1055
  className: V({
1067
- isActive: e.href.slice(1) === s,
1068
- isTopLevel: t === 0,
1069
- className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
1056
+ isActive: e.href.slice(1) === r,
1057
+ className: ((n = e.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
1070
1058
  }),
1071
- onClick: r,
1059
+ onClick: t,
1072
1060
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1073
1061
  /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
1074
1062
  /* @__PURE__ */ a.jsx(ie, { ...e.badge })
@@ -1077,11 +1065,11 @@ const Jr = ({
1077
1065
  ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
1078
1066
  "a",
1079
1067
  {
1080
- className: V({ isTopLevel: t === 0 }),
1068
+ className: V(),
1081
1069
  href: e.href,
1082
1070
  target: "_blank",
1083
1071
  rel: "noopener noreferrer",
1084
- onClick: r,
1072
+ onClick: t,
1085
1073
  children: [
1086
1074
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
1087
1075
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Jt, { className: "inline -translate-y-0.5", size: 12 }) })
@@ -1091,7 +1079,7 @@ const Jr = ({
1091
1079
  ae,
1092
1080
  {
1093
1081
  className: V({
1094
- className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
1082
+ className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
1095
1083
  }),
1096
1084
  to: e.href,
1097
1085
  children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -1107,7 +1095,7 @@ const Jr = ({
1107
1095
  r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
1108
1096
  }, ea = () => {
1109
1097
  const e = ye(), { setActiveAnchor: t } = we();
1110
- L(() => {
1098
+ z(() => {
1111
1099
  if (!e.hash) return;
1112
1100
  const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
1113
1101
  const n = document.getElementById(r), o = document.querySelector(`[${lt}="${r}"]`);
@@ -1122,7 +1110,7 @@ const Jr = ({
1122
1110
  }, [e.hash, t]);
1123
1111
  }, ta = () => {
1124
1112
  const e = ye(), t = pe(e.pathname);
1125
- L(() => {
1113
+ z(() => {
1126
1114
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
1127
1115
  }, [e.pathname]);
1128
1116
  };
@@ -1172,12 +1160,12 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1172
1160
  }
1173
1161
  );
1174
1162
  }, ct = ({ className: e }) => {
1175
- const t = F(), [r, s] = Q(!1), n = Bt(() => s(!1), []);
1176
- L(() => {
1163
+ const t = F(), [r, s] = Q(!1), n = Lt(() => s(!1), []);
1164
+ z(() => {
1177
1165
  if (r)
1178
1166
  return;
1179
- function i(l) {
1180
- l.key === "k" && (l.metaKey || l.ctrlKey) && (l.preventDefault(), s(!0));
1167
+ function i(c) {
1168
+ c.key === "k" && (c.metaKey || c.ctrlKey) && (c.preventDefault(), s(!0));
1181
1169
  }
1182
1170
  return window.addEventListener("keydown", i), () => {
1183
1171
  window.removeEventListener("keydown", i);
@@ -1225,9 +1213,9 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1225
1213
  label: t,
1226
1214
  default: r
1227
1215
  }) => {
1228
- var c;
1229
- const { sidebars: s } = F(), n = s[e], o = Ze(), i = !!be().location, l = ((c = o.topNavItem) == null ? void 0 : c.id) === e && !i, d = r ?? (n ? Ft(n, (m) => {
1230
- if (m.type === "doc") return q(m.id);
1216
+ var l;
1217
+ const { sidebars: s } = F(), n = s[e], o = Ze(), i = !!be().location, c = ((l = o.topNavItem) == null ? void 0 : l.id) === e && !i, d = r ?? (n ? Ft(n, (f) => {
1218
+ if (f.type === "doc") return q(f.id);
1231
1219
  }) : q(e));
1232
1220
  if (!d)
1233
1221
  throw new Sr("Page not found.", {
@@ -1239,9 +1227,9 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1239
1227
  /* @__PURE__ */ a.jsx(
1240
1228
  ae,
1241
1229
  {
1242
- className: ({ isPending: m }) => lr(
1230
+ className: ({ isPending: f }) => lr(
1243
1231
  "block lg:py-3.5 font-medium -mb-px border-b-2",
1244
- l || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1232
+ c || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1245
1233
  ),
1246
1234
  to: d,
1247
1235
  children: t
@@ -1286,7 +1274,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1286
1274
  e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
1287
1275
  e.label
1288
1276
  ] }, e.label) }), ft = Xe(function() {
1289
- const t = se(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = se(), o = F(), { page: i, plugins: l } = o, d = l.filter((c) => aa(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
1277
+ const t = se(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = se(), o = F(), { page: i, plugins: c } = o, d = c.filter((l) => aa(l)).flatMap((l) => l.getProfileMenuItems(o)).sort((l) => l.weight ?? 0);
1290
1278
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1291
1279
  /* @__PURE__ */ a.jsx(ua, {}),
1292
1280
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
@@ -1338,16 +1326,16 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1338
1326
  s != null && s.name ? `${s.name}` : "My Account",
1339
1327
  (s == null ? void 0 : s.email) && /* @__PURE__ */ a.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
1340
1328
  ] }),
1341
- d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1342
- d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ a.jsx(re, { item: c }, c.label)),
1329
+ d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1330
+ d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
1343
1331
  d.filter(
1344
- (c) => !c.category || c.category === "middle"
1332
+ (l) => !l.category || l.category === "middle"
1345
1333
  ).length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1346
1334
  d.filter(
1347
- (c) => !c.category || c.category === "middle"
1348
- ).map((c) => /* @__PURE__ */ a.jsx(re, { item: c }, c.label)),
1349
- d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1350
- d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ a.jsx(re, { item: c }, c.label))
1335
+ (l) => !l.category || l.category === "middle"
1336
+ ).map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
1337
+ d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
1338
+ d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label))
1351
1339
  ] })
1352
1340
  ] }) : /* @__PURE__ */ a.jsx(de, { variant: "ghost", onClick: () => t.login(), children: "Login" })
1353
1341
  }
@@ -1368,7 +1356,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1368
1356
  "data-navigation": String(r),
1369
1357
  className: R(
1370
1358
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
1371
- "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
1359
+ "-mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
1372
1360
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
1373
1361
  t
1374
1362
  ),
@@ -1417,16 +1405,16 @@ const fa = ({
1417
1405
  const t = ye(), { setActiveAnchor: r } = we(), { meta: s, authentication: n } = F();
1418
1406
  ea(), ta();
1419
1407
  const o = pe(t.pathname);
1420
- L(() => {
1421
- var m;
1422
- (m = n == null ? void 0 : n.onPageLoad) == null || m.call(n);
1423
- }, [n]), L(() => {
1408
+ z(() => {
1409
+ var f;
1410
+ (f = n == null ? void 0 : n.onPageLoad) == null || f.call(n);
1411
+ }, [n]), z(() => {
1424
1412
  t.pathname !== o.current && r(""), o.current = t.pathname;
1425
1413
  }, [t.pathname, r]);
1426
- const i = !!be().location, l = Xr.useSpinDelay(i, {
1414
+ const i = !!be().location, c = Xr.useSpinDelay(i, {
1427
1415
  delay: 300,
1428
1416
  minDuration: 500
1429
- }), [d, c] = Q(!1);
1417
+ }), [d, l] = Q(!1);
1430
1418
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1431
1419
  !1,
1432
1420
  /* @__PURE__ */ a.jsxs(me, { titleTemplate: s == null ? void 0 : s.title, children: [
@@ -1436,14 +1424,14 @@ const fa = ({
1436
1424
  /* @__PURE__ */ a.jsx(O, { name: "layout-before-head" }),
1437
1425
  /* @__PURE__ */ a.jsx(ft, {}),
1438
1426
  /* @__PURE__ */ a.jsx(O, { name: "layout-after-head" }),
1439
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: l ? /* @__PURE__ */ a.jsx(qe, {}) : /* @__PURE__ */ a.jsx(ve, { fallback: /* @__PURE__ */ a.jsx(qe, {}), children: /* @__PURE__ */ a.jsxs(
1427
+ /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: c ? /* @__PURE__ */ a.jsx(qe, {}) : /* @__PURE__ */ a.jsx(ve, { fallback: /* @__PURE__ */ a.jsx(qe, {}), children: /* @__PURE__ */ a.jsxs(
1440
1428
  et,
1441
1429
  {
1442
1430
  direction: "left",
1443
1431
  open: d,
1444
- onOpenChange: (m) => c(m),
1432
+ onOpenChange: (f) => l(f),
1445
1433
  children: [
1446
- /* @__PURE__ */ a.jsx(fa, { onRequestClose: () => c(!1) }),
1434
+ /* @__PURE__ */ a.jsx(fa, { onRequestClose: () => l(!1) }),
1447
1435
  /* @__PURE__ */ a.jsx(
1448
1436
  "div",
1449
1437
  {
@@ -1534,18 +1522,18 @@ class pa extends Ut {
1534
1522
  didCatch: o,
1535
1523
  error: i
1536
1524
  } = this.state;
1537
- let l = t;
1525
+ let c = t;
1538
1526
  if (o) {
1539
1527
  const d = {
1540
1528
  error: i,
1541
1529
  resetErrorBoundary: this.resetErrorBoundary
1542
1530
  };
1543
1531
  if (typeof r == "function")
1544
- l = r(d);
1532
+ c = r(d);
1545
1533
  else if (s)
1546
- l = Ie(s, d);
1534
+ c = Ie(s, d);
1547
1535
  else if (n !== void 0)
1548
- l = n;
1536
+ c = n;
1549
1537
  else
1550
1538
  throw i;
1551
1539
  }
@@ -1555,7 +1543,7 @@ class pa extends Ut {
1555
1543
  error: i,
1556
1544
  resetErrorBoundary: this.resetErrorBoundary
1557
1545
  }
1558
- }, l);
1546
+ }, c);
1559
1547
  }
1560
1548
  }
1561
1549
  function va() {
@@ -1564,14 +1552,14 @@ function va() {
1564
1552
  }
1565
1553
  class xa {
1566
1554
  constructor(t) {
1567
- N(this, "plugins");
1568
- N(this, "sidebars");
1569
- N(this, "topNavigation");
1570
- N(this, "meta");
1571
- N(this, "page");
1572
- N(this, "authentication");
1573
- N(this, "navigationPlugins");
1574
- N(this, "initialize", async () => {
1555
+ S(this, "plugins");
1556
+ S(this, "sidebars");
1557
+ S(this, "topNavigation");
1558
+ S(this, "meta");
1559
+ S(this, "page");
1560
+ S(this, "authentication");
1561
+ S(this, "navigationPlugins");
1562
+ S(this, "initialize", async () => {
1575
1563
  await Promise.all(
1576
1564
  this.plugins.filter(ia).map((t) => {
1577
1565
  var r;
@@ -1579,10 +1567,10 @@ class xa {
1579
1567
  })
1580
1568
  );
1581
1569
  });
1582
- N(this, "getApiIdentities", async () => (await Promise.all(
1570
+ S(this, "getApiIdentities", async () => (await Promise.all(
1583
1571
  this.plugins.filter(ca).map((r) => r.getIdentities(this))
1584
1572
  )).flat());
1585
- N(this, "getPluginSidebar", async (t) => (await Promise.all(
1573
+ S(this, "getPluginSidebar", async (t) => (await Promise.all(
1586
1574
  this.navigationPlugins.map(
1587
1575
  (s) => {
1588
1576
  var n;
@@ -1590,7 +1578,7 @@ class xa {
1590
1578
  }
1591
1579
  )
1592
1580
  )).flatMap((s) => s ?? []));
1593
- N(this, "signRequest", async (t) => {
1581
+ S(this, "signRequest", async (t) => {
1594
1582
  if (!this.authentication)
1595
1583
  throw new Error("No authentication provider configured");
1596
1584
  const r = await this.authentication.getAccessToken();
@@ -1612,38 +1600,38 @@ const gt = {
1612
1600
  }) => (qt({
1613
1601
  queryFn: async () => (await t.initialize(), !0),
1614
1602
  queryKey: ["zudoku-initialize"]
1615
- }), /* @__PURE__ */ a.jsx(Lt.Provider, { value: t, children: e })), pt = Xe(
1603
+ }), /* @__PURE__ */ a.jsx(zt.Provider, { value: t, children: e })), pt = Xe(
1616
1604
  ({ children: e, ...t }) => {
1617
- var g, f;
1605
+ var m, h;
1618
1606
  const r = ne(
1619
1607
  () => ({ ...gt, ...t.overrides }),
1620
1608
  [t.overrides]
1621
1609
  ), s = ne(() => {
1622
- var x;
1610
+ var v;
1623
1611
  return {
1624
1612
  ...(t.plugins ?? []).filter(la).flatMap(
1625
- (h) => h.getMdxComponents ? [h.getMdxComponents()] : []
1613
+ (g) => g.getMdxComponents ? [g.getMdxComponents()] : []
1626
1614
  ).reduce(
1627
- (h, j) => ({ ...h, ...j }),
1615
+ (g, E) => ({ ...g, ...E }),
1628
1616
  {}
1629
1617
  ),
1630
1618
  ...nr,
1631
- ...(x = t.mdx) == null ? void 0 : x.components
1619
+ ...(v = t.mdx) == null ? void 0 : v.components
1632
1620
  };
1633
- }, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: n } = $t(ue), [o, i] = Q(!1), l = ne(
1621
+ }, [(m = t.mdx) == null ? void 0 : m.components, t.plugins]), { stagger: n } = $t(ue), [o, i] = Q(!1), c = ne(
1634
1622
  () => o ? { stagger: !0 } : { stagger: n },
1635
1623
  [n, o]
1636
1624
  ), d = be();
1637
- L(() => {
1625
+ z(() => {
1638
1626
  o || i(!0);
1639
1627
  }, [o, d.location]);
1640
- const [c] = Q(() => new xa(t)), m = (f = t.plugins) == null ? void 0 : f.filter(oa).map((p, x) => {
1641
- var h;
1642
- return /* @__PURE__ */ a.jsx(Kt, { children: (h = p.getHead) == null ? void 0 : h.call(p) }, x);
1628
+ const [l] = Q(() => new xa(t)), f = (h = t.plugins) == null ? void 0 : h.filter(oa).map((p, v) => {
1629
+ var g;
1630
+ return /* @__PURE__ */ a.jsx(Kt, { children: (g = p.getHead) == null ? void 0 : g.call(p) }, v);
1643
1631
  });
1644
1632
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1645
- /* @__PURE__ */ a.jsx(me, { children: m }),
1646
- /* @__PURE__ */ a.jsx(ue.Provider, { value: l, children: /* @__PURE__ */ a.jsx(wa, { context: c, children: /* @__PURE__ */ a.jsx(ur, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ja, { value: r, children: /* @__PURE__ */ a.jsx(Et, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(ir, { children: e ?? /* @__PURE__ */ a.jsx(Ge, {}) }) }) }) }) }) }) })
1633
+ /* @__PURE__ */ a.jsx(me, { children: f }),
1634
+ /* @__PURE__ */ a.jsx(ue.Provider, { value: c, children: /* @__PURE__ */ a.jsx(wa, { context: l, children: /* @__PURE__ */ a.jsx(ur, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ja, { value: r, children: /* @__PURE__ */ a.jsx(Et, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(ir, { children: e ?? /* @__PURE__ */ a.jsx(Ge, {}) }) }) }) }) }) }) })
1647
1635
  ] });
1648
1636
  }
1649
1637
  );