zudoku 0.33.0 → 0.33.1

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 (48) hide show
  1. package/dist/lib/authentication/state.js +8 -2
  2. package/dist/lib/authentication/state.js.map +1 -1
  3. package/dist/lib/components/index.d.ts +1 -1
  4. package/dist/lib/core/RouteGuard.d.ts +1 -1
  5. package/dist/lib/core/RouteGuard.js +23 -18
  6. package/dist/lib/core/RouteGuard.js.map +1 -1
  7. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  8. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  9. package/lib/{AuthenticationPlugin-_gUMnGxb.js → AuthenticationPlugin-CiO1FM6Q.js} +2 -2
  10. package/lib/{AuthenticationPlugin-_gUMnGxb.js.map → AuthenticationPlugin-CiO1FM6Q.js.map} +1 -1
  11. package/lib/Dialog-DIKGQxQc.js +83 -0
  12. package/lib/Dialog-DIKGQxQc.js.map +1 -0
  13. package/lib/{MdxPage-DM9mE-G-.js → MdxPage-DZTt9ld7.js} +3 -3
  14. package/lib/{MdxPage-DM9mE-G-.js.map → MdxPage-DZTt9ld7.js.map} +1 -1
  15. package/lib/{OasProvider-Bvu4dDpX.js → OasProvider-SzD9mHJc.js} +3 -3
  16. package/lib/{OasProvider-Bvu4dDpX.js.map → OasProvider-SzD9mHJc.js.map} +1 -1
  17. package/lib/{OperationList-DWnNbwVg.js → OperationList-DDs9NblY.js} +5 -5
  18. package/lib/{OperationList-DWnNbwVg.js.map → OperationList-DDs9NblY.js.map} +1 -1
  19. package/lib/{Select-BmoX1iTH.js → Select-Dqtcn53H.js} +3 -3
  20. package/lib/{Select-BmoX1iTH.js.map → Select-Dqtcn53H.js.map} +1 -1
  21. package/lib/{hook-4_6pQSo4.js → hook-CN__aZIt.js} +39 -35
  22. package/lib/{hook-4_6pQSo4.js.map → hook-CN__aZIt.js.map} +1 -1
  23. package/lib/{index-DVBlM15k.js → index-CibzSNks.js} +27 -26
  24. package/lib/{index-DVBlM15k.js.map → index-CibzSNks.js.map} +1 -1
  25. package/lib/index-gQD2h1wX.js +447 -0
  26. package/lib/index-gQD2h1wX.js.map +1 -0
  27. package/lib/{mutation-DTunCQKB.js → mutation-EclmI0is.js} +2 -2
  28. package/lib/{mutation-DTunCQKB.js.map → mutation-EclmI0is.js.map} +1 -1
  29. package/lib/ui/Command.js +21 -20
  30. package/lib/ui/Command.js.map +1 -1
  31. package/lib/{useScrollToAnchor-BW8y_cwU.js → useScrollToAnchor-C7ilRSts.js} +2 -2
  32. package/lib/{useScrollToAnchor-BW8y_cwU.js.map → useScrollToAnchor-C7ilRSts.js.map} +1 -1
  33. package/lib/zudoku.auth-auth0.js +1 -1
  34. package/lib/zudoku.auth-clerk.js +2 -2
  35. package/lib/zudoku.auth-openid.js +2 -2
  36. package/lib/zudoku.components.js +475 -464
  37. package/lib/zudoku.components.js.map +1 -1
  38. package/lib/zudoku.hooks.js +1 -1
  39. package/lib/zudoku.plugin-api-catalog.js +1 -1
  40. package/lib/zudoku.plugin-api-keys.js +2 -2
  41. package/lib/zudoku.plugin-markdown.js +1 -1
  42. package/lib/zudoku.plugin-openapi.js +2 -2
  43. package/package.json +1 -1
  44. package/src/lib/authentication/state.ts +8 -2
  45. package/src/lib/core/RouteGuard.tsx +43 -18
  46. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  47. package/lib/index-Du5aNddU.js +0 -509
  48. package/lib/index-Du5aNddU.js.map +0 -1
@@ -4,69 +4,70 @@ var xe = (t) => {
4
4
  };
5
5
  var dt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
6
  var j = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), ve = (t, e, r) => e.has(t) || xe("Cannot " + r);
7
- var l = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), w = (t, e, r) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), y = (t, e, r, s) => (ve(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
8
- var _ = (t, e, r, s) => ({
7
+ var l = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), w = (t, e, r) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), y = (t, e, r, n) => (ve(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
8
+ var _ = (t, e, r, n) => ({
9
9
  set _(a) {
10
10
  y(t, e, a, r);
11
11
  },
12
12
  get _() {
13
- return l(t, e, s);
13
+ return l(t, e, n);
14
14
  }
15
15
  });
16
16
  import { a as Fe, H as le } from "./index.esm-CQHE3GEU.js";
17
- import { z as Be, J as ht } from "./index-DwT-v3zK.js";
18
- import { u as te, m as ft, O as ce, R as mt, S as gt, h as ue, f as pt, L as de } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
19
- import { S as He, q as ze, Q as xt, n as P, r as ye, t as be, v as M, w as vt, x as yt, y as bt, z as jt, A as je, B as we, C as wt, h as Pe, D as ke, E as Pt, f as kt, k as z, a as D, F as Le, G as Ke, H as Ct, j as ae, b as St, Z as Nt, I as Et, J as Dt } from "./hook-4_6pQSo4.js";
20
- import { j as n } from "./jsx-runtime-CYK1ROHF.js";
17
+ import { z as He, J as ht } from "./index-DwT-v3zK.js";
18
+ import { a as ft, u as te, m as gt, O as ce, R as mt, S as pt, h as ue, f as xt, L as de } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
19
+ import { S as Be, q as Le, Q as vt, n as P, r as ye, t as be, v as M, w as yt, x as bt, y as jt, z as wt, A as je, B as we, C as Pt, h as Pe, D as Ce, E as Ct, f as kt, k as L, a as E, m as St, F as ze, G as Ke, H as Nt, j as ae, b as Dt, Z as Et, I as Mt, J as Ot } from "./hook-CN__aZIt.js";
20
+ import { j as s } from "./jsx-runtime-CYK1ROHF.js";
21
+ import { D as At, a as qt, d as Tt, c as It, e as Qt } from "./Dialog-DIKGQxQc.js";
22
+ import { Z as $e } from "./invariant-Caa8-XvF.js";
21
23
  import * as U from "react";
22
- import Mt, { useRef as V, useEffect as A, createContext as he, StrictMode as $e, useState as L, useCallback as Ot, Suspense as fe, memo as Ue, forwardRef as At, Component as qt, createElement as Ce, useMemo as re, useContext as Tt } from "react";
23
- import { Z as Ze } from "./invariant-Caa8-XvF.js";
24
- import { E as Ye, S, a as It, R as Qt } from "./SlotletProvider-DdtIOUi6.js";
25
- import { Button as Rt } from "./ui/Button.js";
26
- import { Callout as Ft } from "./ui/Callout.js";
27
- import { M as Bt } from "./mutation-DTunCQKB.js";
28
- import * as Ht from "react-dom";
29
- import { C as me } from "./ClientOnly-E7hGysn1.js";
30
- import { CircleXIcon as zt, SearchIcon as Lt, SunIcon as Kt, MoonIcon as $t, MenuIcon as Ut, PanelLeftIcon as Zt } from "lucide-react";
24
+ import Rt, { useRef as V, useEffect as I, createContext as he, StrictMode as Ue, useState as z, useCallback as Ft, Suspense as fe, memo as Ze, forwardRef as Ht, Component as Bt, createElement as ke, useMemo as re, useContext as Lt } from "react";
25
+ import { E as Ye, S, a as zt, R as Kt } from "./SlotletProvider-DdtIOUi6.js";
26
+ import { Button as $t } from "./ui/Button.js";
27
+ import { Callout as Ut } from "./ui/Callout.js";
28
+ import { M as Zt } from "./mutation-EclmI0is.js";
29
+ import * as Yt from "react-dom";
30
+ import { C as ge } from "./ClientOnly-E7hGysn1.js";
31
+ import { CircleXIcon as Vt, SearchIcon as Xt, SunIcon as Gt, MoonIcon as _t, MenuIcon as Wt, PanelLeftIcon as Jt } from "lucide-react";
31
32
  import { Drawer as Ve, DrawerTrigger as Xe, DrawerContent as Ge, DrawerTitle as _e } from "./ui/Drawer.js";
32
33
  import { c as Q } from "./cn-qaFjX9_3.js";
33
- import { s as Yt, S as Se, a as Vt, M as Xt, u as Gt } from "./useScrollToAnchor-BW8y_cwU.js";
34
- import { u as _t, H as Wt, P as Jt, a as er, V as tr, M as rr } from "./Markdown-DePfm7oQ.js";
34
+ import { s as er, S as Se, a as tr, M as rr, u as sr } from "./useScrollToAnchor-C7ilRSts.js";
35
+ import { u as nr, H as ar, P as ir, a as or, V as lr, M as cr } from "./Markdown-DePfm7oQ.js";
35
36
  import { B as ie, S as We } from "./Spinner-1KrEmx1V.js";
36
- import { isSearchPlugin as sr, isProfileMenuPlugin as nr, isNavigationPlugin as ar, isEventConsumerPlugin as ir, needsInitialization as or, isApiIdentityPlugin as lr, isMdxProviderPlugin as cr, hasHead as ur } from "./zudoku.plugins.js";
37
- import { DropdownMenu as dr, DropdownMenuTrigger as hr, DropdownMenuContent as fr, DropdownMenuLabel as mr, DropdownMenuSeparator as se, DropdownMenuSub as gr, DropdownMenuSubTrigger as pr, DropdownMenuPortal as xr, DropdownMenuSubContent as vr, DropdownMenuItem as yr } from "./ui/DropdownMenu.js";
37
+ import { isSearchPlugin as ur, isProfileMenuPlugin as dr, isNavigationPlugin as hr, isEventConsumerPlugin as fr, needsInitialization as gr, isApiIdentityPlugin as mr, isMdxProviderPlugin as pr, hasHead as xr } from "./zudoku.plugins.js";
38
+ import { DropdownMenu as vr, DropdownMenuTrigger as yr, DropdownMenuContent as br, DropdownMenuLabel as jr, DropdownMenuSeparator as se, DropdownMenuSub as wr, DropdownMenuSubTrigger as Pr, DropdownMenuPortal as Cr, DropdownMenuSubContent as kr, DropdownMenuItem as Sr } from "./ui/DropdownMenu.js";
38
39
  import { j as Ne } from "./joinUrl-10po2Jdj.js";
39
40
  import { VisuallyHidden as Je } from "@radix-ui/react-visually-hidden";
40
- import { a as br } from "./index-CPNSgwSb.js";
41
- import { C as jr } from "./CategoryHeading-DpB47wvk.js";
42
- import { o as wr } from "./objectEntries-yMIkr2mI.js";
43
- var E, Ie, Pr = (Ie = class extends He {
41
+ import { a as Nr } from "./index-CPNSgwSb.js";
42
+ import { C as Dr } from "./CategoryHeading-DpB47wvk.js";
43
+ import { o as Er } from "./objectEntries-yMIkr2mI.js";
44
+ var D, Ie, Mr = (Ie = class extends Be {
44
45
  constructor(e = {}) {
45
46
  super();
46
- w(this, E);
47
- this.config = e, y(this, E, /* @__PURE__ */ new Map());
47
+ w(this, D);
48
+ this.config = e, y(this, D, /* @__PURE__ */ new Map());
48
49
  }
49
- build(e, r, s) {
50
- const a = r.queryKey, o = r.queryHash ?? ze(a, r);
51
- let i = this.get(o);
52
- return i || (i = new xt({
50
+ build(e, r, n) {
51
+ const a = r.queryKey, i = r.queryHash ?? Le(a, r);
52
+ let o = this.get(i);
53
+ return o || (o = new vt({
53
54
  client: e,
54
55
  queryKey: a,
55
- queryHash: o,
56
+ queryHash: i,
56
57
  options: e.defaultQueryOptions(r),
57
- state: s,
58
+ state: n,
58
59
  defaultOptions: e.getQueryDefaults(a)
59
- }), this.add(i)), i;
60
+ }), this.add(o)), o;
60
61
  }
61
62
  add(e) {
62
- l(this, E).has(e.queryHash) || (l(this, E).set(e.queryHash, e), this.notify({
63
+ l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
63
64
  type: "added",
64
65
  query: e
65
66
  }));
66
67
  }
67
68
  remove(e) {
68
- const r = l(this, E).get(e.queryHash);
69
- r && (e.destroy(), r === e && l(this, E).delete(e.queryHash), this.notify({ type: "removed", query: e }));
69
+ const r = l(this, D).get(e.queryHash);
70
+ r && (e.destroy(), r === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
70
71
  }
71
72
  clear() {
72
73
  P.batch(() => {
@@ -76,20 +77,20 @@ var E, Ie, Pr = (Ie = class extends He {
76
77
  });
77
78
  }
78
79
  get(e) {
79
- return l(this, E).get(e);
80
+ return l(this, D).get(e);
80
81
  }
81
82
  getAll() {
82
- return [...l(this, E).values()];
83
+ return [...l(this, D).values()];
83
84
  }
84
85
  find(e) {
85
86
  const r = { exact: !0, ...e };
86
87
  return this.getAll().find(
87
- (s) => ye(r, s)
88
+ (n) => ye(r, n)
88
89
  );
89
90
  }
90
91
  findAll(e = {}) {
91
92
  const r = this.getAll();
92
- return Object.keys(e).length > 0 ? r.filter((s) => ye(e, s)) : r;
93
+ return Object.keys(e).length > 0 ? r.filter((n) => ye(e, n)) : r;
93
94
  }
94
95
  notify(e) {
95
96
  P.batch(() => {
@@ -112,20 +113,20 @@ var E, Ie, Pr = (Ie = class extends He {
112
113
  });
113
114
  });
114
115
  }
115
- }, E = new WeakMap(), Ie), O, C, Y, Qe, kr = (Qe = class extends He {
116
+ }, D = new WeakMap(), Ie), O, k, Y, Qe, Or = (Qe = class extends Be {
116
117
  constructor(e = {}) {
117
118
  super();
118
119
  w(this, O);
119
- w(this, C);
120
+ w(this, k);
120
121
  w(this, Y);
121
- this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, C, /* @__PURE__ */ new Map()), y(this, Y, 0);
122
+ this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, k, /* @__PURE__ */ new Map()), y(this, Y, 0);
122
123
  }
123
- build(e, r, s) {
124
- const a = new Bt({
124
+ build(e, r, n) {
125
+ const a = new Zt({
125
126
  mutationCache: this,
126
127
  mutationId: ++_(this, Y)._,
127
128
  options: e.defaultMutationOptions(r),
128
- state: s
129
+ state: n
129
130
  });
130
131
  return this.add(a), a;
131
132
  }
@@ -133,8 +134,8 @@ var E, Ie, Pr = (Ie = class extends He {
133
134
  l(this, O).add(e);
134
135
  const r = W(e);
135
136
  if (typeof r == "string") {
136
- const s = l(this, C).get(r);
137
- s ? s.push(e) : l(this, C).set(r, [e]);
137
+ const n = l(this, k).get(r);
138
+ n ? n.push(e) : l(this, k).set(r, [e]);
138
139
  }
139
140
  this.notify({ type: "added", mutation: e });
140
141
  }
@@ -142,12 +143,12 @@ var E, Ie, Pr = (Ie = class extends He {
142
143
  if (l(this, O).delete(e)) {
143
144
  const r = W(e);
144
145
  if (typeof r == "string") {
145
- const s = l(this, C).get(r);
146
- if (s)
147
- if (s.length > 1) {
148
- const a = s.indexOf(e);
149
- a !== -1 && s.splice(a, 1);
150
- } else s[0] === e && l(this, C).delete(r);
146
+ const n = l(this, k).get(r);
147
+ if (n)
148
+ if (n.length > 1) {
149
+ const a = n.indexOf(e);
150
+ a !== -1 && n.splice(a, 1);
151
+ } else n[0] === e && l(this, k).delete(r);
151
152
  }
152
153
  }
153
154
  this.notify({ type: "removed", mutation: e });
@@ -155,18 +156,18 @@ var E, Ie, Pr = (Ie = class extends He {
155
156
  canRun(e) {
156
157
  const r = W(e);
157
158
  if (typeof r == "string") {
158
- const s = l(this, C).get(r), a = s == null ? void 0 : s.find(
159
- (o) => o.state.status === "pending"
159
+ const n = l(this, k).get(r), a = n == null ? void 0 : n.find(
160
+ (i) => i.state.status === "pending"
160
161
  );
161
162
  return !a || a === e;
162
163
  } else
163
164
  return !0;
164
165
  }
165
166
  runNext(e) {
166
- var s;
167
+ var n;
167
168
  const r = W(e);
168
169
  if (typeof r == "string") {
169
- const a = (s = l(this, C).get(r)) == null ? void 0 : s.find((o) => o !== e && o.state.isPaused);
170
+ const a = (n = l(this, k).get(r)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
170
171
  return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
171
172
  } else
172
173
  return Promise.resolve();
@@ -175,7 +176,7 @@ var E, Ie, Pr = (Ie = class extends He {
175
176
  P.batch(() => {
176
177
  l(this, O).forEach((e) => {
177
178
  this.notify({ type: "removed", mutation: e });
178
- }), l(this, O).clear(), l(this, C).clear();
179
+ }), l(this, O).clear(), l(this, k).clear();
179
180
  });
180
181
  }
181
182
  getAll() {
@@ -184,7 +185,7 @@ var E, Ie, Pr = (Ie = class extends He {
184
185
  find(e) {
185
186
  const r = { exact: !0, ...e };
186
187
  return this.getAll().find(
187
- (s) => be(r, s)
188
+ (n) => be(r, n)
188
189
  );
189
190
  }
190
191
  findAll(e = {}) {
@@ -205,27 +206,27 @@ var E, Ie, Pr = (Ie = class extends He {
205
206
  )
206
207
  );
207
208
  }
208
- }, O = new WeakMap(), C = new WeakMap(), Y = new WeakMap(), Qe);
209
+ }, O = new WeakMap(), k = new WeakMap(), Y = new WeakMap(), Qe);
209
210
  function W(t) {
210
211
  var e;
211
212
  return (e = t.options.scope) == null ? void 0 : e.id;
212
213
  }
213
- function Ee(t) {
214
+ function De(t) {
214
215
  return {
215
216
  onFetch: (e, r) => {
216
- var g, m, h, f, v;
217
- const s = e.options, a = (h = (m = (g = e.fetchOptions) == null ? void 0 : g.meta) == null ? void 0 : m.fetchMore) == null ? void 0 : h.direction, o = ((f = e.state.data) == null ? void 0 : f.pages) || [], i = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
217
+ var m, g, h, f, v;
218
+ const n = e.options, a = (h = (g = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((f = e.state.data) == null ? void 0 : f.pages) || [], o = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
218
219
  let u = { pages: [], pageParams: [] }, d = 0;
219
220
  const c = async () => {
220
221
  let x = !1;
221
- const k = (b) => {
222
+ const C = (b) => {
222
223
  Object.defineProperty(b, "signal", {
223
224
  enumerable: !0,
224
225
  get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
225
226
  x = !0;
226
227
  }), e.signal)
227
228
  });
228
- }, X = vt(e.options, e.fetchOptions), K = async (b, N, $) => {
229
+ }, X = yt(e.options, e.fetchOptions), K = async (b, N, $) => {
229
230
  if (x)
230
231
  return Promise.reject();
231
232
  if (N == null && b.pages.length)
@@ -237,25 +238,25 @@ function Ee(t) {
237
238
  direction: $ ? "backward" : "forward",
238
239
  meta: e.options.meta
239
240
  };
240
- k(G);
241
+ C(G);
241
242
  const ct = await X(
242
243
  G
243
- ), { maxPages: ge } = e.options, pe = $ ? yt : bt;
244
+ ), { maxPages: me } = e.options, pe = $ ? bt : jt;
244
245
  return {
245
- pages: pe(b.pages, ct, ge),
246
- pageParams: pe(b.pageParams, N, ge)
246
+ pages: pe(b.pages, ct, me),
247
+ pageParams: pe(b.pageParams, N, me)
247
248
  };
248
249
  };
249
- if (a && o.length) {
250
- const b = a === "backward", N = b ? Cr : De, $ = {
251
- pages: o,
252
- pageParams: i
253
- }, G = N(s, $);
250
+ if (a && i.length) {
251
+ const b = a === "backward", N = b ? Ar : Ee, $ = {
252
+ pages: i,
253
+ pageParams: o
254
+ }, G = N(n, $);
254
255
  u = await K($, G, b);
255
256
  } else {
256
- const b = t ?? o.length;
257
+ const b = t ?? i.length;
257
258
  do {
258
- const N = d === 0 ? i[0] ?? s.initialPageParam : De(s, u);
259
+ const N = d === 0 ? o[0] ?? n.initialPageParam : Ee(n, u);
259
260
  if (d > 0 && N == null)
260
261
  break;
261
262
  u = await K(u, N), d++;
@@ -264,8 +265,8 @@ function Ee(t) {
264
265
  return u;
265
266
  };
266
267
  e.options.persister ? e.fetchFn = () => {
267
- var x, k;
268
- return (k = (x = e.options).persister) == null ? void 0 : k.call(
268
+ var x, C;
269
+ return (C = (x = e.options).persister) == null ? void 0 : C.call(
269
270
  x,
270
271
  c,
271
272
  {
@@ -280,47 +281,47 @@ function Ee(t) {
280
281
  }
281
282
  };
282
283
  }
283
- function De(t, { pages: e, pageParams: r }) {
284
- const s = e.length - 1;
284
+ function Ee(t, { pages: e, pageParams: r }) {
285
+ const n = e.length - 1;
285
286
  return e.length > 0 ? t.getNextPageParam(
286
- e[s],
287
+ e[n],
287
288
  e,
288
- r[s],
289
+ r[n],
289
290
  r
290
291
  ) : void 0;
291
292
  }
292
- function Cr(t, { pages: e, pageParams: r }) {
293
- var s;
294
- return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, r[0], r) : void 0;
293
+ function Ar(t, { pages: e, pageParams: r }) {
294
+ var n;
295
+ return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, r[0], r) : void 0;
295
296
  }
296
- var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
297
+ var p, A, q, R, F, T, H, B, Re, qr = (Re = class {
297
298
  constructor(t = {}) {
298
299
  w(this, p);
300
+ w(this, A);
299
301
  w(this, q);
300
- w(this, T);
301
302
  w(this, R);
302
303
  w(this, F);
303
- w(this, I);
304
- w(this, B);
304
+ w(this, T);
305
305
  w(this, H);
306
- y(this, p, t.queryCache || new Pr()), y(this, q, t.mutationCache || new kr()), y(this, T, t.defaultOptions || {}), y(this, R, /* @__PURE__ */ new Map()), y(this, F, /* @__PURE__ */ new Map()), y(this, I, 0);
306
+ w(this, B);
307
+ y(this, p, t.queryCache || new Mr()), y(this, A, t.mutationCache || new Or()), y(this, q, t.defaultOptions || {}), y(this, R, /* @__PURE__ */ new Map()), y(this, F, /* @__PURE__ */ new Map()), y(this, T, 0);
307
308
  }
308
309
  mount() {
309
- _(this, I)._++, l(this, I) === 1 && (y(this, B, jt.subscribe(async (t) => {
310
+ _(this, T)._++, l(this, T) === 1 && (y(this, H, wt.subscribe(async (t) => {
310
311
  t && (await this.resumePausedMutations(), l(this, p).onFocus());
311
- })), y(this, H, je.subscribe(async (t) => {
312
+ })), y(this, B, je.subscribe(async (t) => {
312
313
  t && (await this.resumePausedMutations(), l(this, p).onOnline());
313
314
  })));
314
315
  }
315
316
  unmount() {
316
317
  var t, e;
317
- _(this, I)._--, l(this, I) === 0 && ((t = l(this, B)) == null || t.call(this), y(this, B, void 0), (e = l(this, H)) == null || e.call(this), y(this, H, void 0));
318
+ _(this, T)._--, l(this, T) === 0 && ((t = l(this, H)) == null || t.call(this), y(this, H, void 0), (e = l(this, B)) == null || e.call(this), y(this, B, void 0));
318
319
  }
319
320
  isFetching(t) {
320
321
  return l(this, p).findAll({ ...t, fetchStatus: "fetching" }).length;
321
322
  }
322
323
  isMutating(t) {
323
- return l(this, q).findAll({ ...t, status: "pending" }).length;
324
+ return l(this, A).findAll({ ...t, status: "pending" }).length;
324
325
  }
325
326
  getQueryData(t) {
326
327
  var r;
@@ -328,27 +329,27 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
328
329
  return (r = l(this, p).get(e.queryHash)) == null ? void 0 : r.state.data;
329
330
  }
330
331
  ensureQueryData(t) {
331
- const e = this.defaultQueryOptions(t), r = l(this, p).build(this, e), s = r.state.data;
332
- return s === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(we(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(s));
332
+ const e = this.defaultQueryOptions(t), r = l(this, p).build(this, e), n = r.state.data;
333
+ return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(we(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(n));
333
334
  }
334
335
  getQueriesData(t) {
335
336
  return l(this, p).findAll(t).map(({ queryKey: e, state: r }) => {
336
- const s = r.data;
337
- return [e, s];
337
+ const n = r.data;
338
+ return [e, n];
338
339
  });
339
340
  }
340
341
  setQueryData(t, e, r) {
341
- const s = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
342
- s.queryHash
343
- ), o = a == null ? void 0 : a.state.data, i = wt(e, o);
344
- if (i !== void 0)
345
- return l(this, p).build(this, s).setData(i, { ...r, manual: !0 });
342
+ const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
343
+ n.queryHash
344
+ ), i = a == null ? void 0 : a.state.data, o = Pt(e, i);
345
+ if (o !== void 0)
346
+ return l(this, p).build(this, n).setData(o, { ...r, manual: !0 });
346
347
  }
347
348
  setQueriesData(t, e, r) {
348
349
  return P.batch(
349
- () => l(this, p).findAll(t).map(({ queryKey: s }) => [
350
- s,
351
- this.setQueryData(s, e, r)
350
+ () => l(this, p).findAll(t).map(({ queryKey: n }) => [
351
+ n,
352
+ this.setQueryData(n, e, r)
352
353
  ])
353
354
  );
354
355
  }
@@ -368,24 +369,24 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
368
369
  });
369
370
  }
370
371
  resetQueries(t, e) {
371
- const r = l(this, p), s = {
372
+ const r = l(this, p), n = {
372
373
  type: "active",
373
374
  ...t
374
375
  };
375
376
  return P.batch(() => (r.findAll(t).forEach((a) => {
376
377
  a.reset();
377
- }), this.refetchQueries(s, e)));
378
+ }), this.refetchQueries(n, e)));
378
379
  }
379
380
  cancelQueries(t, e = {}) {
380
- const r = { revert: !0, ...e }, s = P.batch(
381
+ const r = { revert: !0, ...e }, n = P.batch(
381
382
  () => l(this, p).findAll(t).map((a) => a.cancel(r))
382
383
  );
383
- return Promise.all(s).then(M).catch(M);
384
+ return Promise.all(n).then(M).catch(M);
384
385
  }
385
386
  invalidateQueries(t, e = {}) {
386
387
  return P.batch(() => {
387
- if (l(this, p).findAll(t).forEach((s) => {
388
- s.invalidate();
388
+ if (l(this, p).findAll(t).forEach((n) => {
389
+ n.invalidate();
389
390
  }), (t == null ? void 0 : t.refetchType) === "none")
390
391
  return Promise.resolve();
391
392
  const r = {
@@ -399,13 +400,13 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
399
400
  const r = {
400
401
  ...e,
401
402
  cancelRefetch: e.cancelRefetch ?? !0
402
- }, s = P.batch(
403
+ }, n = P.batch(
403
404
  () => l(this, p).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
404
- let o = a.fetch(void 0, r);
405
- return r.throwOnError || (o = o.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
405
+ let i = a.fetch(void 0, r);
406
+ return r.throwOnError || (i = i.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
406
407
  })
407
408
  );
408
- return Promise.all(s).then(M);
409
+ return Promise.all(n).then(M);
409
410
  }
410
411
  fetchQuery(t) {
411
412
  const e = this.defaultQueryOptions(t);
@@ -419,28 +420,28 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
419
420
  return this.fetchQuery(t).then(M).catch(M);
420
421
  }
421
422
  fetchInfiniteQuery(t) {
422
- return t.behavior = Ee(t.pages), this.fetchQuery(t);
423
+ return t.behavior = De(t.pages), this.fetchQuery(t);
423
424
  }
424
425
  prefetchInfiniteQuery(t) {
425
426
  return this.fetchInfiniteQuery(t).then(M).catch(M);
426
427
  }
427
428
  ensureInfiniteQueryData(t) {
428
- return t.behavior = Ee(t.pages), this.ensureQueryData(t);
429
+ return t.behavior = De(t.pages), this.ensureQueryData(t);
429
430
  }
430
431
  resumePausedMutations() {
431
- return je.isOnline() ? l(this, q).resumePausedMutations() : Promise.resolve();
432
+ return je.isOnline() ? l(this, A).resumePausedMutations() : Promise.resolve();
432
433
  }
433
434
  getQueryCache() {
434
435
  return l(this, p);
435
436
  }
436
437
  getMutationCache() {
437
- return l(this, q);
438
+ return l(this, A);
438
439
  }
439
440
  getDefaultOptions() {
440
- return l(this, T);
441
+ return l(this, q);
441
442
  }
442
443
  setDefaultOptions(t) {
443
- y(this, T, t);
444
+ y(this, q, t);
444
445
  }
445
446
  setQueryDefaults(t, e) {
446
447
  l(this, R).set(Pe(t), {
@@ -450,8 +451,8 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
450
451
  }
451
452
  getQueryDefaults(t) {
452
453
  const e = [...l(this, R).values()], r = {};
453
- return e.forEach((s) => {
454
- ke(t, s.queryKey) && Object.assign(r, s.defaultOptions);
454
+ return e.forEach((n) => {
455
+ Ce(t, n.queryKey) && Object.assign(r, n.defaultOptions);
455
456
  }), r;
456
457
  }
457
458
  setMutationDefaults(t, e) {
@@ -463,65 +464,65 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
463
464
  getMutationDefaults(t) {
464
465
  const e = [...l(this, F).values()];
465
466
  let r = {};
466
- return e.forEach((s) => {
467
- ke(t, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
467
+ return e.forEach((n) => {
468
+ Ce(t, n.mutationKey) && (r = { ...r, ...n.defaultOptions });
468
469
  }), r;
469
470
  }
470
471
  defaultQueryOptions(t) {
471
472
  if (t._defaulted)
472
473
  return t;
473
474
  const e = {
474
- ...l(this, T).queries,
475
+ ...l(this, q).queries,
475
476
  ...this.getQueryDefaults(t.queryKey),
476
477
  ...t,
477
478
  _defaulted: !0
478
479
  };
479
- return e.queryHash || (e.queryHash = ze(
480
+ return e.queryHash || (e.queryHash = Le(
480
481
  e.queryKey,
481
482
  e
482
- )), 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 === Pt && (e.enabled = !1), e;
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 === Ct && (e.enabled = !1), e;
483
484
  }
484
485
  defaultMutationOptions(t) {
485
486
  return t != null && t._defaulted ? t : {
486
- ...l(this, T).mutations,
487
+ ...l(this, q).mutations,
487
488
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
488
489
  ...t,
489
490
  _defaulted: !0
490
491
  };
491
492
  }
492
493
  clear() {
493
- l(this, p).clear(), l(this, q).clear();
494
+ l(this, p).clear(), l(this, A).clear();
494
495
  }
495
- }, p = new WeakMap(), q = new WeakMap(), T = new WeakMap(), R = new WeakMap(), F = new WeakMap(), I = new WeakMap(), B = new WeakMap(), H = new WeakMap(), Re);
496
- function Nr(t) {
496
+ }, p = new WeakMap(), A = new WeakMap(), q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), T = new WeakMap(), H = new WeakMap(), B = new WeakMap(), Re);
497
+ function Tr(t) {
497
498
  return t;
498
499
  }
499
500
  function Me(t, e, r) {
500
501
  var d, c;
501
502
  if (typeof e != "object" || e === null)
502
503
  return;
503
- const s = t.getMutationCache(), a = t.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Nr, i = e.mutations || [], u = e.queries || [];
504
- i.forEach(({ state: g, ...m }) => {
504
+ const n = t.getMutationCache(), a = t.getQueryCache(), i = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Tr, o = e.mutations || [], u = e.queries || [];
505
+ o.forEach(({ state: m, ...g }) => {
505
506
  var h, f;
506
- s.build(
507
+ n.build(
507
508
  t,
508
509
  {
509
510
  ...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
510
511
  ...(f = r == null ? void 0 : r.defaultOptions) == null ? void 0 : f.mutations,
511
- ...m
512
+ ...g
512
513
  },
513
- g
514
+ m
514
515
  );
515
- }), u.forEach(({ queryKey: g, state: m, queryHash: h, meta: f, promise: v }) => {
516
+ }), u.forEach(({ queryKey: m, state: g, queryHash: h, meta: f, promise: v }) => {
516
517
  var X, K;
517
518
  let x = a.get(h);
518
- const k = m.data === void 0 ? m.data : o(m.data);
519
+ const C = g.data === void 0 ? g.data : i(g.data);
519
520
  if (x) {
520
- if (x.state.dataUpdatedAt < m.dataUpdatedAt) {
521
- const { fetchStatus: b, ...N } = m;
521
+ if (x.state.dataUpdatedAt < g.dataUpdatedAt) {
522
+ const { fetchStatus: b, ...N } = g;
522
523
  x.setState({
523
524
  ...N,
524
- data: k
525
+ data: C
525
526
  });
526
527
  }
527
528
  } else
@@ -530,88 +531,98 @@ function Me(t, e, r) {
530
531
  {
531
532
  ...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
532
533
  ...(K = r == null ? void 0 : r.defaultOptions) == null ? void 0 : K.queries,
533
- queryKey: g,
534
+ queryKey: m,
534
535
  queryHash: h,
535
536
  meta: f
536
537
  },
537
538
  // Reset fetch status to idle to avoid
538
539
  // query being stuck in fetching state upon hydration
539
540
  {
540
- ...m,
541
- data: k,
541
+ ...g,
542
+ data: C,
542
543
  fetchStatus: "idle"
543
544
  }
544
545
  );
545
546
  if (v) {
546
- const b = Promise.resolve(v).then(o);
547
+ const b = Promise.resolve(v).then(i);
547
548
  x.fetch(void 0, { initialPromise: b });
548
549
  }
549
550
  });
550
551
  }
551
- var Oe = (t, e) => typeof t == "object" && t !== null && e in t, Er = ({
552
+ var Oe = (t, e) => typeof t == "object" && t !== null && e in t, Ir = ({
552
553
  children: t,
553
554
  options: e = {},
554
555
  state: r,
555
- queryClient: s
556
+ queryClient: n
556
557
  }) => {
557
- const a = kt(s), [o, i] = U.useState(), u = U.useRef(e);
558
+ const a = kt(n), [i, o] = U.useState(), u = U.useRef(e);
558
559
  return u.current = e, U.useMemo(() => {
559
560
  if (r) {
560
561
  if (typeof r != "object")
561
562
  return;
562
- const d = a.getQueryCache(), c = r.queries || [], g = [], m = [];
563
+ const d = a.getQueryCache(), c = r.queries || [], m = [], g = [];
563
564
  for (const h of c) {
564
565
  const f = d.get(h.queryHash);
565
566
  if (!f)
566
- g.push(h);
567
+ m.push(h);
567
568
  else {
568
569
  const v = h.state.dataUpdatedAt > f.state.dataUpdatedAt || // RSC special serialized then-able chunks
569
- Oe(h.promise, "status") && Oe(f.promise, "status") && h.promise.status !== f.promise.status, x = o == null ? void 0 : o.find(
570
- (k) => k.queryHash === h.queryHash
570
+ Oe(h.promise, "status") && Oe(f.promise, "status") && h.promise.status !== f.promise.status, x = i == null ? void 0 : i.find(
571
+ (C) => C.queryHash === h.queryHash
571
572
  );
572
- v && (!x || h.state.dataUpdatedAt > x.state.dataUpdatedAt) && m.push(h);
573
+ v && (!x || h.state.dataUpdatedAt > x.state.dataUpdatedAt) && g.push(h);
573
574
  }
574
575
  }
575
- g.length > 0 && Me(a, { queries: g }, u.current), m.length > 0 && i(
576
- (h) => h ? [...h, ...m] : m
576
+ m.length > 0 && Me(a, { queries: m }, u.current), g.length > 0 && o(
577
+ (h) => h ? [...h, ...g] : g
577
578
  );
578
579
  }
579
- }, [a, o, r]), U.useEffect(() => {
580
- o && (Me(a, { queries: o }, u.current), i(void 0));
581
- }, [a, o]), t;
580
+ }, [a, i, r]), U.useEffect(() => {
581
+ i && (Me(a, { queries: i }, u.current), o(void 0));
582
+ }, [a, i]), t;
582
583
  };
583
- const Dr = (t) => {
584
+ const Qr = (t) => {
584
585
  const e = V(t);
585
- return e.current = t, A(() => {
586
+ return e.current = t, I(() => {
586
587
  e.current = t;
587
588
  }, [t]), e;
588
- }, Mr = () => {
589
+ }, Rr = () => {
589
590
  var o;
590
- const t = z(), e = D(), r = te(), s = Dr(r.pathname), a = (o = e.options.protectedRoutes) == null ? void 0 : o.some(
591
- (i) => ft({ path: i, end: !0 }, r.pathname)
591
+ const t = L(), e = E(), r = ft(), n = te(), a = Qr(n.pathname), i = (o = e.options.protectedRoutes) == null ? void 0 : o.some(
592
+ (u) => gt({ path: u, end: !0 }, n.pathname)
592
593
  );
593
- if (A(() => {
594
- var i;
595
- !a || t.isPending || t.isAuthenticated || (i = e.authentication) == null || i.signIn({
596
- redirectTo: s.current
597
- });
598
- }, [
599
- a,
600
- t.isPending,
601
- t.isAuthenticated,
602
- e.authentication,
603
- s
604
- ]), a && !t.isAuthenticated)
605
- return null;
606
- if (a && !t.isAuthEnabled)
607
- throw new Ze("Authentication is not enabled", {
594
+ if (St({
595
+ queryKey: ["login-redirect"],
596
+ queryFn: async () => {
597
+ var u;
598
+ return await new Promise((d) => setTimeout(d, 1200)), (u = e.authentication) == null ? void 0 : u.signIn({
599
+ redirectTo: a.current
600
+ });
601
+ },
602
+ enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
603
+ }), i && !t.isAuthenticated)
604
+ return /* @__PURE__ */ s.jsx(
605
+ At,
606
+ {
607
+ open: !0,
608
+ onOpenChange: (u) => {
609
+ u || r(-1);
610
+ },
611
+ children: /* @__PURE__ */ s.jsxs(qt, { children: [
612
+ /* @__PURE__ */ s.jsx(Tt, { children: /* @__PURE__ */ s.jsx(It, { children: "Logging you in..." }) }),
613
+ /* @__PURE__ */ s.jsx(Qt, { children: "Please wait while we log you in." })
614
+ ] })
615
+ }
616
+ );
617
+ if (i && !t.isAuthEnabled)
618
+ throw new $e("Authentication is not enabled", {
608
619
  title: "Authentication is not enabled",
609
620
  developerHint: "To use protectedRoutes you need authentication to be enabled"
610
621
  });
611
- return /* @__PURE__ */ n.jsx(ce, {});
622
+ return /* @__PURE__ */ s.jsx(ce, {});
612
623
  };
613
- function Or({ error: t }) {
614
- return /* @__PURE__ */ n.jsx(Ye, { error: t });
624
+ function Fr({ error: t }) {
625
+ return /* @__PURE__ */ s.jsx(Ye, { error: t });
615
626
  }
616
627
  /**
617
628
  * react-router v7.1.5
@@ -623,46 +634,46 @@ function Or({ error: t }) {
623
634
  *
624
635
  * @license MIT
625
636
  */
626
- function Ar(t) {
627
- return /* @__PURE__ */ U.createElement(mt, { flushSync: Ht.flushSync, ...t });
637
+ function Hr(t) {
638
+ return /* @__PURE__ */ U.createElement(mt, { flushSync: Yt.flushSync, ...t });
628
639
  }
629
- const oe = he({ stagger: !1 }), qr = new Sr({
640
+ const oe = he({ stagger: !1 }), Br = new qr({
630
641
  defaultOptions: {
631
642
  queries: {
632
643
  staleTime: 1e3 * 60 * 5
633
644
  }
634
645
  }
635
- }), Tr = ({
646
+ }), Lr = ({
636
647
  router: t,
637
648
  hydrate: e = !1
638
- }) => /* @__PURE__ */ n.jsx($e, { children: /* @__PURE__ */ n.jsx(Le, { client: qr, children: /* @__PURE__ */ n.jsx(Er, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ n.jsx(Fe, { children: /* @__PURE__ */ n.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ n.jsx(Ar, { router: t }) }) }) }) }) }), Ir = ({
649
+ }) => /* @__PURE__ */ s.jsx(Ue, { children: /* @__PURE__ */ s.jsx(ze, { client: Br, children: /* @__PURE__ */ s.jsx(Ir, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Hr, { router: t }) }) }) }) }) }), zr = ({
639
650
  router: t,
640
651
  context: e,
641
652
  queryClient: r,
642
- helmetContext: s
643
- }) => /* @__PURE__ */ n.jsx($e, { children: /* @__PURE__ */ n.jsx(Le, { client: r, children: /* @__PURE__ */ n.jsx(Fe, { context: s, children: /* @__PURE__ */ n.jsx(gt, { router: t, context: e }) }) }) });
644
- var Z = { exports: {} }, Qr = Z.exports, Ae;
645
- function Rr() {
653
+ helmetContext: n
654
+ }) => /* @__PURE__ */ s.jsx(Ue, { children: /* @__PURE__ */ s.jsx(ze, { client: r, children: /* @__PURE__ */ s.jsx(Fe, { context: n, children: /* @__PURE__ */ s.jsx(pt, { router: t, context: e }) }) }) });
655
+ var Z = { exports: {} }, Kr = Z.exports, Ae;
656
+ function $r() {
646
657
  return Ae || (Ae = 1, function(t, e) {
647
- (function(r, s) {
648
- s(e, Mt);
649
- })(Qr, function(r, s) {
658
+ (function(r, n) {
659
+ n(e, Rt);
660
+ })(Kr, function(r, n) {
650
661
  const a = {
651
662
  delay: 500,
652
663
  minDuration: 200,
653
664
  ssr: !0
654
665
  };
655
- function o() {
656
- const [u, d] = s.useState(!0);
657
- return s.useEffect(() => {
666
+ function i() {
667
+ const [u, d] = n.useState(!0);
668
+ return n.useEffect(() => {
658
669
  d(!1);
659
670
  }, []), u;
660
671
  }
661
- function i(u, d) {
672
+ function o(u, d) {
662
673
  d = Object.assign({}, a, d);
663
- const c = o() && d.ssr, g = c && u ? "DISPLAY" : "IDLE", [m, h] = s.useState(g), f = s.useRef(null);
664
- return s.useEffect(() => {
665
- if (u && (m === "IDLE" || c)) {
674
+ const c = i() && d.ssr, m = c && u ? "DISPLAY" : "IDLE", [g, h] = n.useState(m), f = n.useRef(null);
675
+ return n.useEffect(() => {
676
+ if (u && (g === "IDLE" || c)) {
666
677
  clearTimeout(f.current);
667
678
  const v = c ? 0 : d.delay;
668
679
  f.current = setTimeout(() => {
@@ -673,26 +684,26 @@ function Rr() {
673
684
  }, d.minDuration), h("DISPLAY");
674
685
  }, v), c || h("DELAY");
675
686
  }
676
- !u && m !== "DISPLAY" && (clearTimeout(f.current), h("IDLE"));
677
- }, [u, m, d.delay, d.minDuration, c]), s.useEffect(() => () => clearTimeout(f.current), []), m === "DISPLAY" || m === "EXPIRE";
687
+ !u && g !== "DISPLAY" && (clearTimeout(f.current), h("IDLE"));
688
+ }, [u, g, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(f.current), []), g === "DISPLAY" || g === "EXPIRE";
678
689
  }
679
- r.defaultOptions = a, r.useSpinDelay = i;
690
+ r.defaultOptions = a, r.useSpinDelay = o;
680
691
  });
681
692
  }(Z, Z.exports)), Z.exports;
682
693
  }
683
- var Fr = Rr();
684
- const Br = () => {
694
+ var Ur = $r();
695
+ const Zr = () => {
685
696
  const t = te(), e = V(t.pathname);
686
- A(() => {
687
- const r = e.current !== t.pathname, s = t.hash !== "";
688
- r && !s && window.scrollTo(0, 0), e.current = t.pathname;
697
+ I(() => {
698
+ const r = e.current !== t.pathname, n = t.hash !== "";
699
+ r && !n && window.scrollTo(0, 0), e.current = t.pathname;
689
700
  }, [t.pathname, t.hash]);
690
701
  };
691
- function Hr({
702
+ function Yr({
692
703
  className: t,
693
704
  ...e
694
705
  }) {
695
- return /* @__PURE__ */ n.jsx(
706
+ return /* @__PURE__ */ s.jsx(
696
707
  "div",
697
708
  {
698
709
  className: Q("animate-pulse rounded-md bg-muted", t),
@@ -706,70 +717,70 @@ const qe = {
706
717
  tip: "bg-green-600",
707
718
  caution: "bg-orange-500",
708
719
  danger: "bg-rose-500"
709
- }, zr = () => {
710
- const { page: t } = D(), [e, r] = L(!0);
720
+ }, Vr = () => {
721
+ const { page: t } = E(), [e, r] = z(!0);
711
722
  if (!(t != null && t.banner) || !e)
712
- return /* @__PURE__ */ n.jsx("style", { children: ":root { --banner-height: 0px; }" });
713
- const s = t.banner.color && t.banner.color in qe ? qe[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = s ? {} : { backgroundColor: t.banner.color };
714
- return /* @__PURE__ */ n.jsxs(
723
+ return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
724
+ 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 };
725
+ return /* @__PURE__ */ s.jsxs(
715
726
  "div",
716
727
  {
717
728
  className: Q(
718
729
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
719
- s
730
+ n
720
731
  ),
721
732
  style: a,
722
733
  children: [
723
- /* @__PURE__ */ n.jsx("div", { className: "w-full", children: t.banner.message }),
724
- t.banner.dismissible && /* @__PURE__ */ n.jsx(
734
+ /* @__PURE__ */ s.jsx("div", { className: "w-full", children: t.banner.message }),
735
+ t.banner.dismissible && /* @__PURE__ */ s.jsx(
725
736
  "button",
726
737
  {
727
738
  type: "button",
728
739
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
729
740
  onClick: () => r(!1),
730
- children: /* @__PURE__ */ n.jsx(zt, { size: 16 })
741
+ children: /* @__PURE__ */ s.jsx(Vt, { size: 16 })
731
742
  }
732
743
  )
733
744
  ]
734
745
  }
735
746
  );
736
747
  }, et = ({ className: t }) => {
737
- const e = D(), [r, s] = L(!1), a = Ot(() => s(!1), []);
738
- A(() => {
748
+ const e = E(), [r, n] = z(!1), a = Ft(() => n(!1), []);
749
+ I(() => {
739
750
  if (r)
740
751
  return;
741
- function i(u) {
742
- u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), s(!0));
752
+ function o(u) {
753
+ u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
743
754
  }
744
- return window.addEventListener("keydown", i), () => {
745
- window.removeEventListener("keydown", i);
755
+ return window.addEventListener("keydown", o), () => {
756
+ window.removeEventListener("keydown", o);
746
757
  };
747
- }, [r, s]);
748
- const o = e.plugins.find(sr);
749
- return o ? /* @__PURE__ */ n.jsxs("div", { className: t, children: [
750
- /* @__PURE__ */ n.jsxs(
758
+ }, [r, n]);
759
+ const i = e.plugins.find(ur);
760
+ return i ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
761
+ /* @__PURE__ */ s.jsxs(
751
762
  "button",
752
763
  {
753
764
  type: "button",
754
- onClick: () => s(!0),
765
+ onClick: () => n(!0),
755
766
  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",
756
767
  children: [
757
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
758
- /* @__PURE__ */ n.jsx(Lt, { size: 14 }),
768
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
769
+ /* @__PURE__ */ s.jsx(Xt, { size: 14 }),
759
770
  "Search"
760
771
  ] }),
761
- /* @__PURE__ */ n.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" })
772
+ /* @__PURE__ */ s.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" })
762
773
  ]
763
774
  }
764
775
  ),
765
- /* @__PURE__ */ n.jsx(fe, { fallback: null, children: o.renderSearch({
776
+ /* @__PURE__ */ s.jsx(fe, { fallback: null, children: i.renderSearch({
766
777
  isOpen: r,
767
778
  onClose: a
768
779
  }) })
769
780
  ] }) : null;
770
781
  }, tt = () => {
771
- const { resolvedTheme: t, setTheme: e } = Be();
772
- return /* @__PURE__ */ n.jsx(me, { fallback: /* @__PURE__ */ n.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ n.jsxs(
782
+ const { resolvedTheme: t, setTheme: e } = He();
783
+ return /* @__PURE__ */ s.jsx(ge, { fallback: /* @__PURE__ */ s.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
773
784
  "button",
774
785
  {
775
786
  type: "button",
@@ -777,7 +788,7 @@ const qe = {
777
788
  onClick: () => e(t === "dark" ? "light" : "dark"),
778
789
  "aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
779
790
  children: [
780
- /* @__PURE__ */ n.jsx(
791
+ /* @__PURE__ */ s.jsx(
781
792
  "div",
782
793
  {
783
794
  className: Q(
@@ -785,10 +796,10 @@ const qe = {
785
796
  t === "light" && "border-border bg-muted",
786
797
  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] "
787
798
  ),
788
- children: /* @__PURE__ */ n.jsx(Kt, { size: 16 })
799
+ children: /* @__PURE__ */ s.jsx(Gt, { size: 16 })
789
800
  }
790
801
  ),
791
- /* @__PURE__ */ n.jsx(
802
+ /* @__PURE__ */ s.jsx(
792
803
  "div",
793
804
  {
794
805
  className: Q(
@@ -796,17 +807,17 @@ const qe = {
796
807
  t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
797
808
  t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
798
809
  ),
799
- children: /* @__PURE__ */ n.jsx($t, { size: 16 })
810
+ children: /* @__PURE__ */ s.jsx(_t, { size: 16 })
800
811
  }
801
812
  )
802
813
  ]
803
814
  }
804
815
  ) });
805
- }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Lr = () => {
806
- const { topNavigation: t } = D(), { isAuthenticated: e } = z();
807
- return t.length <= 1 ? /* @__PURE__ */ n.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ n.jsx(fe, { children: /* @__PURE__ */ n.jsxs("div", { className: " items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
808
- /* @__PURE__ */ n.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(st, { ...r }) }, r.id)) }) }),
809
- /* @__PURE__ */ n.jsx(S, { name: "top-navigation-side" })
816
+ }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Xr = () => {
817
+ const { topNavigation: t } = E(), { isAuthenticated: e } = L();
818
+ return t.length <= 1 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(fe, { children: /* @__PURE__ */ s.jsxs("div", { className: " items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
819
+ /* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(st, { ...r }) }, r.id)) }) }),
820
+ /* @__PURE__ */ s.jsx(S, { name: "top-navigation-side" })
810
821
  ] }) });
811
822
  }, st = ({
812
823
  id: t,
@@ -814,49 +825,49 @@ const qe = {
814
825
  default: r
815
826
  }) => {
816
827
  var c;
817
- const { sidebars: s } = D(), a = s[t], o = Ke(), i = !!ue().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = r ?? (a ? Ct(a, (g) => {
818
- if (g.type === "doc") return ae(g.id);
828
+ const { sidebars: n } = E(), a = n[t], i = Ke(), o = !!ue().location, u = ((c = i.topNavItem) == null ? void 0 : c.id) === t && !o, d = r ?? (a ? Nt(a, (m) => {
829
+ if (m.type === "doc") return ae(m.id);
819
830
  }) : ae(t));
820
831
  if (!d)
821
- throw new Ze("Page not found.", {
832
+ throw new $e("Page not found.", {
822
833
  developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
823
834
  });
824
835
  return (
825
836
  // We don't use isActive here because it has to be inside the sidebar,
826
837
  // the top nav id doesn't necessarily start with the sidebar id
827
- /* @__PURE__ */ n.jsx(
828
- pt,
838
+ /* @__PURE__ */ s.jsx(
839
+ xt,
829
840
  {
830
- className: ({ isPending: g }) => br(
841
+ className: ({ isPending: m }) => Nr(
831
842
  "block lg:py-3.5 font-medium -mb-px",
832
- u || g ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
843
+ u || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
833
844
  ),
834
845
  to: d,
835
846
  children: e
836
847
  }
837
848
  )
838
849
  );
839
- }, Kr = () => {
840
- const { topNavigation: t } = D(), { isAuthenticated: e } = z(), [r, s] = L(!1);
841
- return /* @__PURE__ */ n.jsxs(
850
+ }, Gr = () => {
851
+ const { topNavigation: t } = E(), { isAuthenticated: e } = L(), [r, n] = z(!1);
852
+ return /* @__PURE__ */ s.jsxs(
842
853
  Ve,
843
854
  {
844
855
  direction: "right",
845
856
  open: r,
846
- onOpenChange: (a) => s(a),
857
+ onOpenChange: (a) => n(a),
847
858
  children: [
848
- /* @__PURE__ */ n.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ n.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ n.jsx(Ut, { size: 22 }) }) }),
849
- /* @__PURE__ */ n.jsx(
859
+ /* @__PURE__ */ s.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ s.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Wt, { size: 22 }) }) }),
860
+ /* @__PURE__ */ s.jsx(
850
861
  Ge,
851
862
  {
852
863
  className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
853
864
  "aria-describedby": void 0,
854
- children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
855
- /* @__PURE__ */ n.jsx(Je, { children: /* @__PURE__ */ n.jsx(_e, { children: "Navigation" }) }),
856
- /* @__PURE__ */ n.jsx(et, { className: "flex p-4" }),
857
- /* @__PURE__ */ n.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
858
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(tt, {}) }),
859
- t.filter(rt(e)).map((a) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ n.jsx(st, { ...a }) }) }, a.label))
865
+ children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
866
+ /* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Navigation" }) }),
867
+ /* @__PURE__ */ s.jsx(et, { className: "flex p-4" }),
868
+ /* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
869
+ /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(tt, {}) }),
870
+ t.filter(rt(e)).map((a) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ s.jsx(st, { ...a }) }) }, a.label))
860
871
  ] })
861
872
  ] })
862
873
  }
@@ -864,93 +875,93 @@ const qe = {
864
875
  ]
865
876
  }
866
877
  );
867
- }, ee = ({ item: t }) => t.children ? /* @__PURE__ */ n.jsxs(gr, { children: [
868
- /* @__PURE__ */ n.jsx(pr, { children: t.label }),
869
- /* @__PURE__ */ n.jsx(xr, { children: /* @__PURE__ */ n.jsx(vr, { children: t.children.map((e, r) => (
878
+ }, ee = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(wr, { children: [
879
+ /* @__PURE__ */ s.jsx(Pr, { children: t.label }),
880
+ /* @__PURE__ */ s.jsx(Cr, { children: /* @__PURE__ */ s.jsx(kr, { children: t.children.map((e, r) => (
870
881
  // eslint-disable-next-line react/no-array-index-key
871
- /* @__PURE__ */ n.jsx(ee, { item: e }, r)
882
+ /* @__PURE__ */ s.jsx(ee, { item: e }, r)
872
883
  )) }) })
873
- ] }, t.label) : /* @__PURE__ */ n.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ n.jsxs(yr, { className: "flex gap-2", children: [
874
- t.icon && /* @__PURE__ */ n.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
884
+ ] }, t.label) : /* @__PURE__ */ s.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(Sr, { className: "flex gap-2", children: [
885
+ t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
875
886
  t.label
876
- ] }, t.label) }), nt = Ue(function() {
877
- const e = z(), { isAuthenticated: r, profile: s, isAuthEnabled: a } = z(), o = D(), { page: i, plugins: u } = o, d = u.filter((c) => nr(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
878
- return /* @__PURE__ */ n.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
879
- /* @__PURE__ */ n.jsx(zr, {}),
880
- /* @__PURE__ */ n.jsx("div", { className: "border-b", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-8 h-[--top-header-height]", children: [
881
- /* @__PURE__ */ n.jsx("div", { className: "flex", children: /* @__PURE__ */ n.jsx(de, { to: "/", children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
882
- (i == null ? void 0 : i.logo) && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
883
- /* @__PURE__ */ n.jsx(
887
+ ] }, t.label) }), nt = Ze(function() {
888
+ const e = L(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = L(), i = E(), { page: o, plugins: u } = i, d = u.filter((c) => dr(c)).flatMap((c) => c.getProfileMenuItems(i)).sort((c) => c.weight ?? 0);
889
+ return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
890
+ /* @__PURE__ */ s.jsx(Vr, {}),
891
+ /* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-8 h-[--top-header-height]", children: [
892
+ /* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(de, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
893
+ (o == null ? void 0 : o.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
894
+ /* @__PURE__ */ s.jsx(
884
895
  "img",
885
896
  {
886
- src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Ne(
897
+ src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : Ne(
887
898
  "/",
888
- i.logo.src.light
899
+ o.logo.src.light
889
900
  ),
890
- alt: i.logo.alt ?? i.pageTitle,
891
- style: { width: i.logo.width },
901
+ alt: o.logo.alt ?? o.pageTitle,
902
+ style: { width: o.logo.width },
892
903
  className: "h-10 dark:hidden",
893
904
  loading: "lazy"
894
905
  }
895
906
  ),
896
- /* @__PURE__ */ n.jsx(
907
+ /* @__PURE__ */ s.jsx(
897
908
  "img",
898
909
  {
899
- src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Ne(
910
+ src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : Ne(
900
911
  "/",
901
- i.logo.src.dark
912
+ o.logo.src.dark
902
913
  ),
903
- alt: i.logo.alt ?? i.pageTitle,
904
- style: { width: i.logo.width },
914
+ alt: o.logo.alt ?? o.pageTitle,
915
+ style: { width: o.logo.width },
905
916
  className: "h-10 hidden dark:block",
906
917
  loading: "lazy"
907
918
  }
908
919
  )
909
920
  ] }),
910
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
921
+ /* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
911
922
  ] }) }) }),
912
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
913
- /* @__PURE__ */ n.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ n.jsx(et, {}) }),
914
- /* @__PURE__ */ n.jsx(Kr, {}),
915
- /* @__PURE__ */ n.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
916
- /* @__PURE__ */ n.jsx(S, { name: "head-navigation-start" }),
917
- a && /* @__PURE__ */ n.jsx(
918
- me,
923
+ /* @__PURE__ */ s.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
924
+ /* @__PURE__ */ s.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ s.jsx(et, {}) }),
925
+ /* @__PURE__ */ s.jsx(Gr, {}),
926
+ /* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
927
+ /* @__PURE__ */ s.jsx(S, { name: "head-navigation-start" }),
928
+ a && /* @__PURE__ */ s.jsx(
929
+ ge,
919
930
  {
920
- fallback: /* @__PURE__ */ n.jsx(Hr, { className: "rounded h-5 w-24 mr-4" }),
921
- children: r ? Object.values(d).length > 0 && /* @__PURE__ */ n.jsxs(dr, { modal: !1, children: [
922
- /* @__PURE__ */ n.jsx(hr, { asChild: !0, children: /* @__PURE__ */ n.jsx(ie, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
923
- /* @__PURE__ */ n.jsxs(fr, { className: "w-56", children: [
924
- /* @__PURE__ */ n.jsxs(mr, { children: [
925
- s != null && s.name ? `${s.name}` : "My Account",
926
- (s == null ? void 0 : s.email) && /* @__PURE__ */ n.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
931
+ fallback: /* @__PURE__ */ s.jsx(Yr, { className: "rounded h-5 w-24 mr-4" }),
932
+ children: r ? Object.values(d).length > 0 && /* @__PURE__ */ s.jsxs(vr, { modal: !1, children: [
933
+ /* @__PURE__ */ s.jsx(yr, { asChild: !0, children: /* @__PURE__ */ s.jsx(ie, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
934
+ /* @__PURE__ */ s.jsxs(br, { className: "w-56", children: [
935
+ /* @__PURE__ */ s.jsxs(jr, { children: [
936
+ n != null && n.name ? `${n.name}` : "My Account",
937
+ (n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
927
938
  ] }),
928
- d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ n.jsx(se, {}),
929
- d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ n.jsx(ee, { item: c }, c.label)),
939
+ d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ s.jsx(se, {}),
940
+ d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label)),
930
941
  d.filter(
931
942
  (c) => !c.category || c.category === "middle"
932
- ).length > 0 && /* @__PURE__ */ n.jsx(se, {}),
943
+ ).length > 0 && /* @__PURE__ */ s.jsx(se, {}),
933
944
  d.filter(
934
945
  (c) => !c.category || c.category === "middle"
935
- ).map((c) => /* @__PURE__ */ n.jsx(ee, { item: c }, c.label)),
936
- d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ n.jsx(se, {}),
937
- d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ n.jsx(ee, { item: c }, c.label))
946
+ ).map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label)),
947
+ d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(se, {}),
948
+ d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label))
938
949
  ] })
939
- ] }) : /* @__PURE__ */ n.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
950
+ ] }) : /* @__PURE__ */ s.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
940
951
  }
941
952
  ),
942
- /* @__PURE__ */ n.jsx(S, { name: "head-navigation-end" }),
943
- /* @__PURE__ */ n.jsx(tt, {})
953
+ /* @__PURE__ */ s.jsx(S, { name: "head-navigation-end" }),
954
+ /* @__PURE__ */ s.jsx(tt, {})
944
955
  ] })
945
956
  ] })
946
957
  ] }) }),
947
- /* @__PURE__ */ n.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto 2xl:border-x", children: [
948
- /* @__PURE__ */ n.jsx(S, { name: "top-navigation-before" }),
949
- /* @__PURE__ */ n.jsx(Lr, {}),
950
- /* @__PURE__ */ n.jsx(S, { name: "top-navigation-after" })
958
+ /* @__PURE__ */ s.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto 2xl:border-x", children: [
959
+ /* @__PURE__ */ s.jsx(S, { name: "top-navigation-before" }),
960
+ /* @__PURE__ */ s.jsx(Xr, {}),
961
+ /* @__PURE__ */ s.jsx(S, { name: "top-navigation-after" })
951
962
  ] }) })
952
963
  ] });
953
- }), at = At(({ children: t, className: e, pushMainContent: r }, s) => /* @__PURE__ */ n.jsx(
964
+ }), at = Ht(({ children: t, className: e, pushMainContent: r }, n) => /* @__PURE__ */ s.jsx(
954
965
  "nav",
955
966
  {
956
967
  "data-navigation": String(r),
@@ -961,96 +972,96 @@ const qe = {
961
972
  !r && "border-r-0",
962
973
  e
963
974
  ),
964
- ref: s,
975
+ ref: n,
965
976
  children: t
966
977
  }
967
978
  ));
968
979
  at.displayName = "SidebarWrapper";
969
- const $r = ({
980
+ const _r = ({
970
981
  onRequestClose: t
971
982
  }) => {
972
983
  const e = V(null), r = Ke();
973
- return A(() => {
984
+ return I(() => {
974
985
  var a;
975
- const s = (a = e.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
976
- Yt(s ?? null);
977
- }, []), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
978
- /* @__PURE__ */ n.jsxs(
986
+ const n = (a = e.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
987
+ er(n ?? null);
988
+ }, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
989
+ /* @__PURE__ */ s.jsxs(
979
990
  at,
980
991
  {
981
992
  ref: e,
982
993
  pushMainContent: r.sidebar.length > 0,
983
994
  children: [
984
- /* @__PURE__ */ n.jsx(S, { name: "zudoku-before-navigation" }),
985
- r.sidebar.map((s) => /* @__PURE__ */ n.jsx(Se, { item: s }, s.label)),
986
- /* @__PURE__ */ n.jsx(S, { name: "zudoku-after-navigation" })
995
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-before-navigation" }),
996
+ r.sidebar.map((n) => /* @__PURE__ */ s.jsx(Se, { item: n }, n.label)),
997
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-after-navigation" })
987
998
  ]
988
999
  }
989
1000
  ),
990
- /* @__PURE__ */ n.jsx(
1001
+ /* @__PURE__ */ s.jsx(
991
1002
  Ge,
992
1003
  {
993
1004
  className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
994
1005
  "aria-describedby": void 0,
995
- children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
996
- /* @__PURE__ */ n.jsx(Je, { children: /* @__PURE__ */ n.jsx(_e, { children: "Sidebar" }) }),
997
- r.sidebar.map((s) => /* @__PURE__ */ n.jsx(
1006
+ children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1007
+ /* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Sidebar" }) }),
1008
+ r.sidebar.map((n) => /* @__PURE__ */ s.jsx(
998
1009
  Se,
999
1010
  {
1000
- item: s,
1011
+ item: n,
1001
1012
  onRequestClose: t
1002
1013
  },
1003
- s.label
1014
+ n.label
1004
1015
  ))
1005
1016
  ] })
1006
1017
  }
1007
1018
  )
1008
1019
  ] });
1009
- }, Te = () => /* @__PURE__ */ n.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ n.jsx(We, {}) }), Ur = ({ children: t }) => {
1010
- const e = te(), { setActiveAnchor: r } = _t(), { meta: s, authentication: a } = D();
1011
- Vt(), Br();
1012
- const o = V(e.pathname);
1013
- A(() => {
1014
- var g;
1015
- (g = a == null ? void 0 : a.onPageLoad) == null || g.call(a);
1016
- }, [a]), A(() => {
1017
- e.pathname !== o.current && r(""), o.current = e.pathname;
1020
+ }, Te = () => /* @__PURE__ */ s.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ s.jsx(We, {}) }), Wr = ({ children: t }) => {
1021
+ const e = te(), { setActiveAnchor: r } = nr(), { meta: n, authentication: a } = E();
1022
+ tr(), Zr();
1023
+ const i = V(e.pathname);
1024
+ I(() => {
1025
+ var m;
1026
+ (m = a == null ? void 0 : a.onPageLoad) == null || m.call(a);
1027
+ }, [a]), I(() => {
1028
+ e.pathname !== i.current && r(""), i.current = e.pathname;
1018
1029
  }, [e.pathname, r]);
1019
- const i = !!ue().location, u = Fr.useSpinDelay(i, {
1030
+ const o = !!ue().location, u = Ur.useSpinDelay(o, {
1020
1031
  delay: 300,
1021
1032
  minDuration: 500
1022
- }), [d, c] = L(!1);
1023
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1033
+ }), [d, c] = z(!1);
1034
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1024
1035
  !1,
1025
- /* @__PURE__ */ n.jsxs(le, { titleTemplate: s == null ? void 0 : s.title, children: [
1026
- (s == null ? void 0 : s.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: s.description }),
1027
- (s == null ? void 0 : s.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: s.favicon })
1036
+ /* @__PURE__ */ s.jsxs(le, { titleTemplate: n == null ? void 0 : n.title, children: [
1037
+ (n == null ? void 0 : n.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: n.description }),
1038
+ (n == null ? void 0 : n.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: n.favicon })
1028
1039
  ] }),
1029
- /* @__PURE__ */ n.jsx(S, { name: "layout-before-head" }),
1030
- /* @__PURE__ */ n.jsx(nt, {}),
1031
- /* @__PURE__ */ n.jsx(S, { name: "layout-after-head" }),
1032
- /* @__PURE__ */ n.jsx("div", { className: "w-full min-h-[calc(100vh-var(--header-height))] max-w-screen-2xl mx-auto px-4 lg:px-8 2xl:border-x", children: u ? /* @__PURE__ */ n.jsx(Te, {}) : /* @__PURE__ */ n.jsx(fe, { fallback: /* @__PURE__ */ n.jsx(Te, {}), children: /* @__PURE__ */ n.jsxs(
1040
+ /* @__PURE__ */ s.jsx(S, { name: "layout-before-head" }),
1041
+ /* @__PURE__ */ s.jsx(nt, {}),
1042
+ /* @__PURE__ */ s.jsx(S, { name: "layout-after-head" }),
1043
+ /* @__PURE__ */ s.jsx("div", { className: "w-full min-h-[calc(100vh-var(--header-height))] max-w-screen-2xl mx-auto px-4 lg:px-8 2xl:border-x", children: u ? /* @__PURE__ */ s.jsx(Te, {}) : /* @__PURE__ */ s.jsx(fe, { fallback: /* @__PURE__ */ s.jsx(Te, {}), children: /* @__PURE__ */ s.jsxs(
1033
1044
  Ve,
1034
1045
  {
1035
1046
  direction: "left",
1036
1047
  open: d,
1037
- onOpenChange: (g) => c(g),
1048
+ onOpenChange: (m) => c(m),
1038
1049
  children: [
1039
- /* @__PURE__ */ n.jsx($r, { onRequestClose: () => c(!1) }),
1040
- /* @__PURE__ */ n.jsx(
1050
+ /* @__PURE__ */ s.jsx(_r, { onRequestClose: () => c(!1) }),
1051
+ /* @__PURE__ */ s.jsx(
1041
1052
  "div",
1042
1053
  {
1043
1054
  className: Q(
1044
1055
  "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1045
1056
  "peer-data-[navigation=false]:hidden"
1046
1057
  ),
1047
- children: /* @__PURE__ */ n.jsxs(Xe, { className: "flex items-center gap-2", children: [
1048
- /* @__PURE__ */ n.jsx(Zt, { size: 16, strokeWidth: 1.5 }),
1049
- /* @__PURE__ */ n.jsx("span", { className: "text-sm", children: "Menu" })
1058
+ children: /* @__PURE__ */ s.jsxs(Xe, { className: "flex items-center gap-2", children: [
1059
+ /* @__PURE__ */ s.jsx(Jt, { size: 16, strokeWidth: 1.5 }),
1060
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
1050
1061
  ] })
1051
1062
  }
1052
1063
  ),
1053
- /* @__PURE__ */ n.jsxs(
1064
+ /* @__PURE__ */ s.jsxs(
1054
1065
  "main",
1055
1066
  {
1056
1067
  className: Q(
@@ -1061,9 +1072,9 @@ const $r = ({
1061
1072
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1062
1073
  ),
1063
1074
  children: [
1064
- /* @__PURE__ */ n.jsx(S, { name: "zudoku-before-content" }),
1065
- t ?? /* @__PURE__ */ n.jsx(ce, {}),
1066
- /* @__PURE__ */ n.jsx(S, { name: "zudoku-after-content" })
1075
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-before-content" }),
1076
+ t ?? /* @__PURE__ */ s.jsx(ce, {}),
1077
+ /* @__PURE__ */ s.jsx(S, { name: "zudoku-after-content" })
1067
1078
  ]
1068
1079
  }
1069
1080
  )
@@ -1071,15 +1082,15 @@ const $r = ({
1071
1082
  }
1072
1083
  ) }) })
1073
1084
  ] });
1074
- }, Zr = ({
1085
+ }, Jr = ({
1075
1086
  title: t = "An error occurred",
1076
1087
  message: e,
1077
1088
  category: r
1078
- }) => /* @__PURE__ */ n.jsxs("div", { className: Jt + " h-full pt-[--padding-content-top]", children: [
1079
- r && /* @__PURE__ */ n.jsx(jr, { children: r }),
1080
- t && /* @__PURE__ */ n.jsx(Wt, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1081
- /* @__PURE__ */ n.jsx("p", { children: e })
1082
- ] }), Yr = (t) => {
1089
+ }) => /* @__PURE__ */ s.jsxs("div", { className: ir + " h-full pt-[--padding-content-top]", children: [
1090
+ r && /* @__PURE__ */ s.jsx(Dr, { children: r }),
1091
+ t && /* @__PURE__ */ s.jsx(ar, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1092
+ /* @__PURE__ */ s.jsx("p", { children: e })
1093
+ ] }), es = (t) => {
1083
1094
  switch (t) {
1084
1095
  case 400:
1085
1096
  return {
@@ -1142,21 +1153,21 @@ const $r = ({
1142
1153
  message: "Something went wrong while processing your request."
1143
1154
  };
1144
1155
  }
1145
- }, Vr = ({ statusCode: t, message: e }) => {
1146
- const r = Yr(t);
1147
- return /* @__PURE__ */ n.jsx(
1148
- Zr,
1156
+ }, ts = ({ statusCode: t, message: e }) => {
1157
+ const r = es(t);
1158
+ return /* @__PURE__ */ s.jsx(
1159
+ Jr,
1149
1160
  {
1150
1161
  title: r.title,
1151
1162
  message: e ?? r.message,
1152
1163
  category: t
1153
1164
  }
1154
1165
  );
1155
- }, Xr = he(null), ne = {
1166
+ }, rs = he(null), ne = {
1156
1167
  didCatch: !1,
1157
1168
  error: null
1158
1169
  };
1159
- class Gr extends qt {
1170
+ class ss extends Bt {
1160
1171
  constructor(e) {
1161
1172
  super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
1162
1173
  }
@@ -1171,27 +1182,27 @@ class Gr extends qt {
1171
1182
  error: e
1172
1183
  } = this.state;
1173
1184
  if (e !== null) {
1174
- for (var r, s, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
1175
- o[i] = arguments[i];
1176
- (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
1177
- args: o,
1185
+ for (var r, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1186
+ i[o] = arguments[o];
1187
+ (r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
1188
+ args: i,
1178
1189
  reason: "imperative-api"
1179
1190
  }), this.setState(ne);
1180
1191
  }
1181
1192
  }
1182
1193
  componentDidCatch(e, r) {
1183
- var s, a;
1184
- (s = (a = this.props).onError) === null || s === void 0 || s.call(a, e, r);
1194
+ var n, a;
1195
+ (n = (a = this.props).onError) === null || n === void 0 || n.call(a, e, r);
1185
1196
  }
1186
1197
  componentDidUpdate(e, r) {
1187
1198
  const {
1188
- didCatch: s
1199
+ didCatch: n
1189
1200
  } = this.state, {
1190
1201
  resetKeys: a
1191
1202
  } = this.props;
1192
- if (s && r.error !== null && _r(e.resetKeys, a)) {
1193
- var o, i;
1194
- (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1203
+ if (n && r.error !== null && ns(e.resetKeys, a)) {
1204
+ var i, o;
1205
+ (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1195
1206
  next: a,
1196
1207
  prev: e.resetKeys,
1197
1208
  reason: "keys"
@@ -1202,55 +1213,55 @@ class Gr extends qt {
1202
1213
  const {
1203
1214
  children: e,
1204
1215
  fallbackRender: r,
1205
- FallbackComponent: s,
1216
+ FallbackComponent: n,
1206
1217
  fallback: a
1207
1218
  } = this.props, {
1208
- didCatch: o,
1209
- error: i
1219
+ didCatch: i,
1220
+ error: o
1210
1221
  } = this.state;
1211
1222
  let u = e;
1212
- if (o) {
1223
+ if (i) {
1213
1224
  const d = {
1214
- error: i,
1225
+ error: o,
1215
1226
  resetErrorBoundary: this.resetErrorBoundary
1216
1227
  };
1217
1228
  if (typeof r == "function")
1218
1229
  u = r(d);
1219
- else if (s)
1220
- u = Ce(s, d);
1230
+ else if (n)
1231
+ u = ke(n, d);
1221
1232
  else if (a !== void 0)
1222
1233
  u = a;
1223
1234
  else
1224
- throw i;
1235
+ throw o;
1225
1236
  }
1226
- return Ce(Xr.Provider, {
1237
+ return ke(rs.Provider, {
1227
1238
  value: {
1228
- didCatch: o,
1229
- error: i,
1239
+ didCatch: i,
1240
+ error: o,
1230
1241
  resetErrorBoundary: this.resetErrorBoundary
1231
1242
  }
1232
1243
  }, u);
1233
1244
  }
1234
1245
  }
1235
- function _r() {
1246
+ function ns() {
1236
1247
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1237
- return t.length !== e.length || t.some((r, s) => !Object.is(r, e[s]));
1248
+ return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
1238
1249
  }
1239
- let Wr = () => ({
1250
+ let as = () => ({
1240
1251
  emit(t, ...e) {
1241
- for (let r = this.events[t] || [], s = 0, a = r.length; s < a; s++)
1242
- r[s](...e);
1252
+ for (let r = this.events[t] || [], n = 0, a = r.length; n < a; n++)
1253
+ r[n](...e);
1243
1254
  },
1244
1255
  events: {},
1245
1256
  on(t, e) {
1246
1257
  var r;
1247
1258
  return ((r = this.events)[t] || (r[t] = [])).push(e), () => {
1248
- var s;
1249
- this.events[t] = (s = this.events[t]) == null ? void 0 : s.filter((a) => e !== a);
1259
+ var n;
1260
+ this.events[t] = (n = this.events[t]) == null ? void 0 : n.filter((a) => e !== a);
1250
1261
  };
1251
1262
  }
1252
1263
  });
1253
- class Jr {
1264
+ class is {
1254
1265
  constructor(e) {
1255
1266
  j(this, "plugins");
1256
1267
  j(this, "sidebars");
@@ -1259,36 +1270,36 @@ class Jr {
1259
1270
  j(this, "page");
1260
1271
  j(this, "authentication");
1261
1272
  j(this, "navigationPlugins");
1262
- j(this, "emitter", Wr());
1273
+ j(this, "emitter", as());
1263
1274
  j(this, "initialize", async () => {
1264
1275
  await Promise.all(
1265
- this.plugins.filter(or).map((e) => {
1276
+ this.plugins.filter(gr).map((e) => {
1266
1277
  var r;
1267
1278
  return (r = e.initialize) == null ? void 0 : r.call(e, this);
1268
1279
  })
1269
1280
  );
1270
1281
  });
1271
1282
  j(this, "getApiIdentities", async () => (await Promise.all(
1272
- this.plugins.filter(lr).map((r) => r.getIdentities(this))
1283
+ this.plugins.filter(mr).map((r) => r.getIdentities(this))
1273
1284
  )).flat());
1274
1285
  j(this, "emitEvent", (e, ...r) => this.emitter.emit(e, ...r));
1275
1286
  j(this, "getPluginSidebar", async (e) => (await Promise.all(
1276
1287
  this.navigationPlugins.map(
1277
- (s) => {
1288
+ (n) => {
1278
1289
  var a;
1279
- return (a = s.getSidebar) == null ? void 0 : a.call(s, ae(e));
1290
+ return (a = n.getSidebar) == null ? void 0 : a.call(n, ae(e));
1280
1291
  }
1281
1292
  )
1282
- )).flatMap((s) => s ?? []));
1293
+ )).flatMap((n) => n ?? []));
1283
1294
  j(this, "signRequest", async (e) => {
1284
1295
  if (!this.authentication)
1285
1296
  throw new Error("No authentication provider configured");
1286
1297
  const r = await this.authentication.getAccessToken();
1287
1298
  return e.headers.set("Authorization", `Bearer ${r}`), e;
1288
1299
  });
1289
- this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ar), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((r) => {
1290
- ir(r) && wr(r.events).forEach(([s, a]) => {
1291
- this.emitter.on(s, a);
1300
+ this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(hr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((r) => {
1301
+ fr(r) && Er(r.events).forEach(([n, a]) => {
1302
+ this.emitter.on(n, a);
1292
1303
  });
1293
1304
  });
1294
1305
  }
@@ -1296,90 +1307,90 @@ class Jr {
1296
1307
  return this.emitter.on(e, r);
1297
1308
  }
1298
1309
  }
1299
- function es({ error: t, resetErrorBoundary: e }) {
1300
- return /* @__PURE__ */ n.jsx(Ye, { error: t });
1310
+ function os({ error: t, resetErrorBoundary: e }) {
1311
+ return /* @__PURE__ */ s.jsx(Ye, { error: t });
1301
1312
  }
1302
1313
  const J = globalThis;
1303
1314
  (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
1304
1315
  const it = {
1305
1316
  Header: nt
1306
- }, ts = he(it), rs = ts.Provider, ss = () => {
1307
- const t = te(), e = D(), r = V(void 0);
1308
- return A(() => {
1317
+ }, ls = he(it), cs = ls.Provider, us = () => {
1318
+ const t = te(), e = E(), r = V(void 0);
1319
+ return I(() => {
1309
1320
  e.emitEvent("location", {
1310
1321
  from: r.current,
1311
1322
  to: t
1312
1323
  }), r.current = t;
1313
1324
  }, [e, t]), null;
1314
- }, ns = ({
1325
+ }, ds = ({
1315
1326
  children: t,
1316
1327
  context: e
1317
- }) => (St({
1328
+ }) => (Dt({
1318
1329
  queryFn: async () => (await e.initialize(), !0),
1319
1330
  queryKey: ["zudoku-initialize"]
1320
- }), /* @__PURE__ */ n.jsx(Nt.Provider, { value: e, children: t })), ot = Ue(
1331
+ }), /* @__PURE__ */ s.jsx(Et.Provider, { value: e, children: t })), ot = Ze(
1321
1332
  ({ children: t, ...e }) => {
1322
- var m, h;
1333
+ var g, h;
1323
1334
  const r = re(
1324
1335
  () => ({ ...it, ...e.overrides }),
1325
1336
  [e.overrides]
1326
- ), s = re(() => {
1337
+ ), n = re(() => {
1327
1338
  var v;
1328
1339
  return {
1329
- ...(e.plugins ?? []).filter(cr).flatMap(
1340
+ ...(e.plugins ?? []).filter(pr).flatMap(
1330
1341
  (x) => x.getMdxComponents ? [x.getMdxComponents()] : []
1331
1342
  ).reduce(
1332
- (x, k) => ({ ...x, ...k }),
1343
+ (x, C) => ({ ...x, ...C }),
1333
1344
  {}
1334
1345
  ),
1335
- ...er,
1346
+ ...or,
1336
1347
  ...(v = e.mdx) == null ? void 0 : v.components
1337
1348
  };
1338
- }, [(m = e.mdx) == null ? void 0 : m.components, e.plugins]), { stagger: a } = Tt(oe), [o, i] = L(!1), u = re(
1339
- () => o ? { stagger: !0 } : { stagger: a },
1340
- [a, o]
1349
+ }, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: a } = Lt(oe), [i, o] = z(!1), u = re(
1350
+ () => i ? { stagger: !0 } : { stagger: a },
1351
+ [a, i]
1341
1352
  ), d = ue();
1342
- A(() => {
1343
- o || i(!0);
1344
- }, [o, d.location]);
1345
- const [c] = L(() => new Jr(e)), g = (h = e.plugins) == null ? void 0 : h.flatMap((f) => {
1353
+ I(() => {
1354
+ i || o(!0);
1355
+ }, [i, d.location]);
1356
+ const [c] = z(() => new is(e)), m = (h = e.plugins) == null ? void 0 : h.flatMap((f) => {
1346
1357
  var v;
1347
- return ur(f) ? ((v = f.getHead) == null ? void 0 : v.call(f)) ?? [] : [];
1348
- }).map((f, v) => /* @__PURE__ */ n.jsx(le, { children: f }, v));
1349
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1350
- g,
1351
- /* @__PURE__ */ n.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ n.jsxs(ns, { context: c, children: [
1352
- /* @__PURE__ */ n.jsx(ss, {}),
1353
- /* @__PURE__ */ n.jsx(Xt, { components: s, children: /* @__PURE__ */ n.jsx(ht, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ n.jsx(rs, { value: r, children: /* @__PURE__ */ n.jsx(It, { slotlets: e.slotlets, children: /* @__PURE__ */ n.jsx(tr, { children: t ?? /* @__PURE__ */ n.jsx(ce, {}) }) }) }) }) })
1358
+ return xr(f) ? ((v = f.getHead) == null ? void 0 : v.call(f)) ?? [] : [];
1359
+ }).map((f, v) => /* @__PURE__ */ s.jsx(le, { children: f }, v));
1360
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1361
+ m,
1362
+ /* @__PURE__ */ s.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ s.jsxs(ds, { context: c, children: [
1363
+ /* @__PURE__ */ s.jsx(us, {}),
1364
+ /* @__PURE__ */ s.jsx(rr, { components: n, children: /* @__PURE__ */ s.jsx(ht, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(cs, { value: r, children: /* @__PURE__ */ s.jsx(zt, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(lr, { children: t ?? /* @__PURE__ */ s.jsx(ce, {}) }) }) }) }) })
1354
1365
  ] }) })
1355
1366
  ] });
1356
1367
  }
1357
1368
  );
1358
1369
  ot.displayName = "ZudokoInner";
1359
- const lt = (t) => /* @__PURE__ */ n.jsx(Gr, { FallbackComponent: es, children: /* @__PURE__ */ n.jsx(ot, { ...t }) });
1370
+ const lt = (t) => /* @__PURE__ */ s.jsx(ss, { FallbackComponent: os, children: /* @__PURE__ */ s.jsx(ot, { ...t }) });
1360
1371
  lt.displayName = "Zudoku";
1361
- const Os = Gt, As = Ur, qs = Qt, Ts = Or, Is = Tr, Qs = Ir, Rs = Mr, Fs = le, Bs = D, Hs = z, zs = Et, Ls = Dt, Ks = lt, $s = Vr, Us = Ft, Zs = rr, Ys = We, Vs = me, Xs = Rt, Gs = de, _s = Be;
1372
+ const Hs = sr, Bs = Wr, Ls = Kt, zs = Fr, Ks = Lr, $s = zr, Us = Rr, Zs = le, Ys = E, Vs = L, Xs = Mt, Gs = Ot, _s = lt, Ws = ts, Js = Ut, en = cr, tn = We, rn = ge, sn = $t, nn = de, an = He;
1362
1373
  export {
1363
- Is as Bootstrap,
1364
- Qs as BootstrapStatic,
1365
- Xs as Button,
1366
- Ls as CACHE_KEYS,
1367
- Us as Callout,
1368
- Vs as ClientOnly,
1369
- Fs as Head,
1370
- As as Layout,
1371
- Gs as Link,
1372
- Zs as Markdown,
1373
- Rs as RouteGuard,
1374
- qs as RouterError,
1375
- Ts as ServerError,
1376
- Ys as Spinner,
1377
- $s as StatusPage,
1378
- Ks as Zudoku,
1379
- Hs as useAuth,
1380
- zs as useCache,
1381
- Os as useMDXComponents,
1382
- _s as useTheme,
1383
- Bs as useZudoku
1374
+ Ks as Bootstrap,
1375
+ $s as BootstrapStatic,
1376
+ sn as Button,
1377
+ Gs as CACHE_KEYS,
1378
+ Js as Callout,
1379
+ rn as ClientOnly,
1380
+ Zs as Head,
1381
+ Bs as Layout,
1382
+ nn as Link,
1383
+ en as Markdown,
1384
+ Us as RouteGuard,
1385
+ Ls as RouterError,
1386
+ zs as ServerError,
1387
+ tn as Spinner,
1388
+ Ws as StatusPage,
1389
+ _s as Zudoku,
1390
+ Vs as useAuth,
1391
+ Xs as useCache,
1392
+ Hs as useMDXComponents,
1393
+ an as useTheme,
1394
+ Ys as useZudoku
1384
1395
  };
1385
1396
  //# sourceMappingURL=zudoku.components.js.map