zudoku 0.3.0-dev.3 → 0.3.0-dev.5

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.
@@ -2,8 +2,8 @@ var De = Object.defineProperty;
2
2
  var se = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Se = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var y = (t, e, s) => Se(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
5
+ var Te = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
+ var x = (t, e, s) => Te(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
7
7
  var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), m = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
8
  var F = (t, e, s, a) => ({
9
9
  set _(r) {
@@ -13,21 +13,21 @@ var F = (t, e, s, a) => ({
13
13
  return i(t, e, a);
14
14
  }
15
15
  });
16
- import { j as n, u as D, O as Ee } from "./index-DNx3xWa2.js";
17
- import { S as me, h as ge, Q as Te, n as p, m as ne, M as Ie, a as re, b as j, e as Fe, c as Re, d as He, f as Le, o as ie, r as oe, g as ze, i as le, p as ce, s as Ke, j as E, u as K, N as V, k as _e, l as Be, q as W, t as X, v as U, w as ve, x as Ve, y as z, R as ye, T as xe, C as be, A as Ue, z as We, B as Xe, D as $e, H as Ge, E as Je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, V as it } from "./Spinner-7LezPqGn.js";
18
- import { W as Vt, U as Ut } from "./Spinner-7LezPqGn.js";
19
- import { memo as je, createContext as ot, useEffect as T, useRef as _, useState as lt, forwardRef as ct, Suspense as we, useMemo as L } from "react";
20
- import { c as ht, u as ut } from "./state-oycsxkHz.js";
21
- var x, de, dt = (de = class extends me {
16
+ import { j as n, u as D, O as Ie } from "./index-DNx3xWa2.js";
17
+ import { S as me, h as ge, Q as Se, n as p, m as ne, M as Ee, a as re, b as j, e as Fe, c as Re, d as He, f as Le, o as ie, r as oe, g as ze, i as le, p as ce, s as Ke, j as I, u as U, N as B, k as _e, l as Be, q as Ve, t as W, v as X, w as V, x as ve, y as Ue, z, R as xe, T as ye, C as be, A as We, B as Xe, D as $e, E as Ge, H as Je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, U as it, V as ot } from "./Spinner-DWHrSHMP.js";
18
+ import { X as Bt, W as Vt } from "./Spinner-DWHrSHMP.js";
19
+ import { memo as je, createContext as lt, useEffect as S, useRef as K, useState as ct, forwardRef as ht, Suspense as Pe, useMemo as L } from "react";
20
+ import { c as ut } from "./state-DfftBQ9X.js";
21
+ var y, de, dt = (de = class extends me {
22
22
  constructor(e = {}) {
23
23
  super();
24
- m(this, x);
25
- this.config = e, u(this, x, /* @__PURE__ */ new Map());
24
+ m(this, y);
25
+ this.config = e, u(this, y, /* @__PURE__ */ new Map());
26
26
  }
27
27
  build(e, s, a) {
28
28
  const r = s.queryKey, o = s.queryHash ?? ge(r, s);
29
29
  let l = this.get(o);
30
- return l || (l = new Te({
30
+ return l || (l = new Se({
31
31
  cache: this,
32
32
  queryKey: r,
33
33
  queryHash: o,
@@ -37,14 +37,14 @@ var x, de, dt = (de = class extends me {
37
37
  }), this.add(l)), l;
38
38
  }
39
39
  add(e) {
40
- i(this, x).has(e.queryHash) || (i(this, x).set(e.queryHash, e), this.notify({
40
+ i(this, y).has(e.queryHash) || (i(this, y).set(e.queryHash, e), this.notify({
41
41
  type: "added",
42
42
  query: e
43
43
  }));
44
44
  }
45
45
  remove(e) {
46
- const s = i(this, x).get(e.queryHash);
47
- s && (e.destroy(), s === e && i(this, x).delete(e.queryHash), this.notify({ type: "removed", query: e }));
46
+ const s = i(this, y).get(e.queryHash);
47
+ s && (e.destroy(), s === e && i(this, y).delete(e.queryHash), this.notify({ type: "removed", query: e }));
48
48
  }
49
49
  clear() {
50
50
  p.batch(() => {
@@ -54,10 +54,10 @@ var x, de, dt = (de = class extends me {
54
54
  });
55
55
  }
56
56
  get(e) {
57
- return i(this, x).get(e);
57
+ return i(this, y).get(e);
58
58
  }
59
59
  getAll() {
60
- return [...i(this, x).values()];
60
+ return [...i(this, y).values()];
61
61
  }
62
62
  find(e) {
63
63
  const s = { exact: !0, ...e };
@@ -90,17 +90,17 @@ var x, de, dt = (de = class extends me {
90
90
  });
91
91
  });
92
92
  }
93
- }, x = new WeakMap(), de), f, S, fe, ft = (fe = class extends me {
93
+ }, y = new WeakMap(), de), f, T, fe, ft = (fe = class extends me {
94
94
  constructor(e = {}) {
95
95
  super();
96
96
  m(this, f);
97
- m(this, S);
98
- this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, S, Date.now());
97
+ m(this, T);
98
+ this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, T, Date.now());
99
99
  }
100
100
  build(e, s, a) {
101
- const r = new Ie({
101
+ const r = new Ee({
102
102
  mutationCache: this,
103
- mutationId: ++F(this, S)._,
103
+ mutationId: ++F(this, T)._,
104
104
  options: e.defaultMutationOptions(s),
105
105
  state: a
106
106
  });
@@ -163,7 +163,7 @@ var x, de, dt = (de = class extends me {
163
163
  )
164
164
  );
165
165
  }
166
- }, f = new WeakMap(), S = new WeakMap(), fe);
166
+ }, f = new WeakMap(), T = new WeakMap(), fe);
167
167
  function R(t) {
168
168
  var e;
169
169
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
@@ -182,45 +182,45 @@ function pt(t) {
182
182
  b = !0;
183
183
  }), e.signal)
184
184
  });
185
- }, Qe = Fe(e.options, e.fetchOptions), B = async (v, w, O) => {
185
+ }, Qe = Fe(e.options, e.fetchOptions), _ = async (v, P, O) => {
186
186
  if (b)
187
187
  return Promise.reject();
188
- if (w == null && v.pages.length)
188
+ if (P == null && v.pages.length)
189
189
  return Promise.resolve(v);
190
- const I = {
190
+ const E = {
191
191
  queryKey: e.queryKey,
192
- pageParam: w,
192
+ pageParam: P,
193
193
  direction: O ? "backward" : "forward",
194
194
  meta: e.options.meta
195
195
  };
196
- d(I);
196
+ d(E);
197
197
  const qe = await Qe(
198
- I
198
+ E
199
199
  ), { maxPages: ee } = e.options, te = O ? Re : He;
200
200
  return {
201
201
  pages: te(v.pages, qe, ee),
202
- pageParams: te(v.pageParams, w, ee)
202
+ pageParams: te(v.pageParams, P, ee)
203
203
  };
204
204
  };
205
- let A;
205
+ let C;
206
206
  if (o && l.length) {
207
- const v = o === "backward", w = v ? mt : he, O = {
207
+ const v = o === "backward", P = v ? mt : he, O = {
208
208
  pages: l,
209
209
  pageParams: h
210
- }, I = w(r, O);
211
- A = await B(O, I, v);
210
+ }, E = P(r, O);
211
+ C = await _(O, E, v);
212
212
  } else {
213
- A = await B(
213
+ C = await _(
214
214
  g,
215
215
  h[0] ?? r.initialPageParam
216
216
  );
217
217
  const v = t ?? l.length;
218
- for (let w = 1; w < v; w++) {
219
- const O = he(r, A);
220
- A = await B(A, O);
218
+ for (let P = 1; P < v; P++) {
219
+ const O = he(r, C);
220
+ C = await _(C, O);
221
221
  }
222
222
  }
223
- return A;
223
+ return C;
224
224
  };
225
225
  e.options.persister ? e.fetchFn = () => {
226
226
  var r, o;
@@ -257,17 +257,17 @@ function mt(t, { pages: e, pageParams: s }) {
257
257
  s
258
258
  );
259
259
  }
260
- var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
260
+ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
261
261
  constructor(t = {}) {
262
262
  m(this, c);
263
- m(this, P);
263
+ m(this, w);
264
264
  m(this, N);
265
- m(this, C);
266
265
  m(this, M);
266
+ m(this, A);
267
267
  m(this, k);
268
268
  m(this, Q);
269
269
  m(this, q);
270
- u(this, c, t.queryCache || new dt()), u(this, P, t.mutationCache || new ft()), u(this, N, t.defaultOptions || {}), u(this, C, /* @__PURE__ */ new Map()), u(this, M, /* @__PURE__ */ new Map()), u(this, k, 0);
270
+ u(this, c, t.queryCache || new dt()), u(this, w, t.mutationCache || new ft()), u(this, N, t.defaultOptions || {}), u(this, M, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
271
271
  }
272
272
  mount() {
273
273
  F(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
@@ -284,7 +284,7 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
284
284
  return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
285
285
  }
286
286
  isMutating(t) {
287
- return i(this, P).findAll({ ...t, status: "pending" }).length;
287
+ return i(this, w).findAll({ ...t, status: "pending" }).length;
288
288
  }
289
289
  getQueryData(t) {
290
290
  var s;
@@ -392,13 +392,13 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
392
392
  return this.fetchInfiniteQuery(t).then(j).catch(j);
393
393
  }
394
394
  resumePausedMutations() {
395
- return ie.isOnline() ? i(this, P).resumePausedMutations() : Promise.resolve();
395
+ return ie.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
396
396
  }
397
397
  getQueryCache() {
398
398
  return i(this, c);
399
399
  }
400
400
  getMutationCache() {
401
- return i(this, P);
401
+ return i(this, w);
402
402
  }
403
403
  getDefaultOptions() {
404
404
  return i(this, N);
@@ -407,26 +407,26 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
407
407
  u(this, N, t);
408
408
  }
409
409
  setQueryDefaults(t, e) {
410
- i(this, C).set(le(t), {
410
+ i(this, M).set(le(t), {
411
411
  queryKey: t,
412
412
  defaultOptions: e
413
413
  });
414
414
  }
415
415
  getQueryDefaults(t) {
416
- const e = [...i(this, C).values()];
416
+ const e = [...i(this, M).values()];
417
417
  let s = {};
418
418
  return e.forEach((a) => {
419
419
  ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
420
420
  }), s;
421
421
  }
422
422
  setMutationDefaults(t, e) {
423
- i(this, M).set(le(t), {
423
+ i(this, A).set(le(t), {
424
424
  mutationKey: t,
425
425
  defaultOptions: e
426
426
  });
427
427
  }
428
428
  getMutationDefaults(t) {
429
- const e = [...i(this, M).values()];
429
+ const e = [...i(this, A).values()];
430
430
  let s = {};
431
431
  return e.forEach((a) => {
432
432
  ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
@@ -455,28 +455,29 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
455
455
  };
456
456
  }
457
457
  clear() {
458
- i(this, c).clear(), i(this, P).clear();
458
+ i(this, c).clear(), i(this, w).clear();
459
459
  }
460
- }, c = new WeakMap(), P = new WeakMap(), N = new WeakMap(), C = new WeakMap(), M = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
461
- const Pe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function", yt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = new gt(), xt = ht(() => ({}));
460
+ }, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), M = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
461
+ const we = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function", xt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = new gt(), yt = ut(() => ({}));
462
462
  class bt {
463
463
  constructor(e) {
464
- y(this, "plugins", []);
465
- y(this, "navigationPlugins");
466
- y(this, "navigation");
467
- y(this, "meta");
468
- y(this, "authentication");
469
- y(this, "state");
470
- y(this, "initialize", async () => {
471
- this.plugins.filter(vt).forEach((e) => e.initialize(this));
464
+ x(this, "plugins", []);
465
+ x(this, "navigationPlugins");
466
+ x(this, "navigation");
467
+ x(this, "meta");
468
+ x(this, "authentication");
469
+ x(this, "state");
470
+ x(this, "initialize", async () => {
471
+ var e;
472
+ this.plugins.filter(vt).forEach((s) => s.initialize(this)), (e = this.authentication) == null || e.initialize(this);
472
473
  });
473
- y(this, "invalidateCache", async (e) => {
474
+ x(this, "invalidateCache", async (e) => {
474
475
  await Ne.invalidateQueries({ queryKey: e });
475
476
  });
476
- y(this, "getApiIdentities", async () => (await Promise.all(
477
- this.plugins.filter(yt).map((s) => s.getIdentities(this))
477
+ x(this, "getApiIdentities", async () => (await Promise.all(
478
+ this.plugins.filter(xt).map((s) => s.getIdentities(this))
478
479
  )).flat());
479
- y(this, "getNavigation", async (e) => (await Promise.all(
480
+ x(this, "getNavigation", async (e) => (await Promise.all(
480
481
  this.navigationPlugins.map(
481
482
  async (a) => {
482
483
  var r;
@@ -484,7 +485,7 @@ class bt {
484
485
  }
485
486
  )
486
487
  )).flatMap((a) => a ?? []));
487
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Pe), this.authentication = e.authentication, this.meta = e.meta, this.state = xt;
488
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(we), this.authentication = e.authentication, this.meta = e.meta, this.state = yt;
488
489
  }
489
490
  async signRequest(e) {
490
491
  if (!this.authentication)
@@ -499,7 +500,7 @@ class bt {
499
500
  * This source code is licensed under the ISC license.
500
501
  * See the LICENSE file in the root directory of this source tree.
501
502
  */
502
- const ke = E("ChevronRight", [
503
+ const ke = I("ChevronRight", [
503
504
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
504
505
  ]);
505
506
  /**
@@ -508,7 +509,7 @@ const ke = E("ChevronRight", [
508
509
  * This source code is licensed under the ISC license.
509
510
  * See the LICENSE file in the root directory of this source tree.
510
511
  */
511
- const jt = E("ExternalLink", [
512
+ const jt = I("ExternalLink", [
512
513
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
513
514
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
514
515
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -519,7 +520,7 @@ const jt = E("ExternalLink", [
519
520
  * This source code is licensed under the ISC license.
520
521
  * See the LICENSE file in the root directory of this source tree.
521
522
  */
522
- const wt = E("MoonStar", [
523
+ const Pt = I("MoonStar", [
523
524
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
524
525
  ["path", { d: "M20 3v4", key: "1olli1" }],
525
526
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -530,7 +531,7 @@ const wt = E("MoonStar", [
530
531
  * This source code is licensed under the ISC license.
531
532
  * See the LICENSE file in the root directory of this source tree.
532
533
  */
533
- const Pt = E("Search", [
534
+ const wt = I("Search", [
534
535
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
535
536
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
536
537
  ]);
@@ -540,7 +541,7 @@ const Pt = E("Search", [
540
541
  * This source code is licensed under the ISC license.
541
542
  * See the LICENSE file in the root directory of this source tree.
542
543
  */
543
- const Nt = E("Sun", [
544
+ const Nt = I("Sun", [
544
545
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
545
546
  ["path", { d: "M12 2v2", key: "tus03m" }],
546
547
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -551,26 +552,9 @@ const Nt = E("Sun", [
551
552
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
552
553
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
553
554
  ]), kt = () => {
554
- const { authentication: t } = K(), e = ut(), s = typeof t < "u";
555
- return {
556
- isAuthEnabled: s,
557
- profile: e.profile,
558
- isAuthenticated: e.profile,
559
- login: async () => {
560
- if (!s)
561
- throw new Error("Authentication is not enabled.");
562
- await t.login();
563
- },
564
- logout: async () => {
565
- if (!s)
566
- throw new Error("Authentication is not enabled.");
567
- await t.logout(), window.location.href = "/";
568
- }
569
- };
570
- }, Ot = () => {
571
- const { navigation: t } = K();
555
+ const { navigation: t } = U();
572
556
  return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
573
- V,
557
+ B,
574
558
  {
575
559
  className: ({ isActive: s }) => _e(
576
560
  "block py-3.5 font-medium -mb-px border-b-2",
@@ -581,7 +565,7 @@ const Nt = E("Sun", [
581
565
  }
582
566
  ) }, e.label)) }) });
583
567
  }, Oe = je(function() {
584
- const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = kt(), { meta: g } = K(), b = e ? wt : Nt;
568
+ const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ve(), { meta: g } = U(), b = e ? Pt : Nt;
585
569
  return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
586
570
  /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
587
571
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
@@ -591,7 +575,7 @@ const Nt = E("Sun", [
591
575
  /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
592
576
  /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ n.jsxs("button", { 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-40 sm:w-72", children: [
593
577
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
594
- /* @__PURE__ */ n.jsx(Pt, { size: 14 }),
578
+ /* @__PURE__ */ n.jsx(wt, { size: 14 }),
595
579
  "Search"
596
580
  ] }),
597
581
  /* @__PURE__ */ n.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
@@ -626,13 +610,13 @@ const Nt = E("Sun", [
626
610
  ] })
627
611
  ] })
628
612
  ] }),
629
- /* @__PURE__ */ n.jsx(Ot, {})
613
+ /* @__PURE__ */ n.jsx(kt, {})
630
614
  ] }) });
631
- }), Ae = {
615
+ }), Ce = {
632
616
  Header: Oe
633
- }, At = ot(Ae), Ct = At.Provider, Mt = () => {
617
+ }, Ot = lt(Ce), Ct = Ot.Provider, Mt = () => {
634
618
  const t = D(), { setActiveAnchor: e } = W();
635
- T(() => {
619
+ S(() => {
636
620
  if (!t.hash) return;
637
621
  const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
638
622
  if (a) {
@@ -647,21 +631,21 @@ const Nt = E("Sun", [
647
631
  });
648
632
  return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
649
633
  }, [t.hash, e]);
650
- }, Qt = () => {
651
- const t = D(), e = _(t.pathname);
652
- T(() => {
634
+ }, At = () => {
635
+ const t = D(), e = K(t.pathname);
636
+ S(() => {
653
637
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
654
638
  }, [t.pathname]);
655
- }, Ce = ({
639
+ }, Me = ({
656
640
  item: t,
657
641
  defaultOpen: e,
658
642
  path: s
659
643
  }) => {
660
- const [a, r] = lt(e), o = D(), l = _(o.pathname);
661
- return T(() => {
644
+ const [a, r] = ct(e), o = D(), l = K(o.pathname);
645
+ return S(() => {
662
646
  !a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
663
647
  }, [a, t, s, o.pathname]), [a, r];
664
- }, H = We(
648
+ }, H = Xe(
665
649
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
666
650
  {
667
651
  variants: {
@@ -675,19 +659,19 @@ const Nt = E("Sun", [
675
659
  }
676
660
  }
677
661
  }
678
- ), qt = "data-anchor", Me = ({
662
+ ), Qt = "data-anchor", Ae = ({
679
663
  category: t,
680
664
  item: e,
681
665
  activeAnchor: s,
682
666
  currentTopNavItem: a,
683
667
  basePath: r = ""
684
668
  }) => {
685
- const o = U(e) ? ve(r, e.path) : "", l = D(), [h, g] = Ce({
669
+ const o = V(e) ? ve(r, e.path) : "", l = D(), [h, g] = Me({
686
670
  item: e,
687
671
  path: o,
688
672
  defaultOpen: () => X(e, l.pathname, o)
689
673
  });
690
- if (Ve(e)) {
674
+ if (Ue(e)) {
691
675
  const d = z(
692
676
  "flex items-center gap-2",
693
677
  H({
@@ -706,7 +690,7 @@ const Nt = E("Sun", [
706
690
  /* @__PURE__ */ n.jsx(jt, { size: 14 })
707
691
  ]
708
692
  }
709
- ) : /* @__PURE__ */ n.jsx(V, { className: d, to: e.href, children: e.label });
693
+ ) : /* @__PURE__ */ n.jsx(B, { className: d, to: e.href, children: e.label });
710
694
  }
711
695
  const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
712
696
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
@@ -722,14 +706,14 @@ const Nt = E("Sun", [
722
706
  )
723
707
  ] });
724
708
  return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
725
- ye,
709
+ xe,
726
710
  {
727
711
  open: h,
728
712
  onOpenChange: () => g((d) => !d),
729
713
  className: "flex flex-col",
730
714
  children: [
731
715
  /* @__PURE__ */ n.jsx(
732
- xe,
716
+ ye,
733
717
  {
734
718
  className: z(
735
719
  "group text-start",
@@ -739,7 +723,7 @@ const Nt = E("Sun", [
739
723
  }
740
724
  ),
741
725
  /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((d) => /* @__PURE__ */ n.jsx(
742
- Me,
726
+ Ae,
743
727
  {
744
728
  category: t,
745
729
  item: d,
@@ -747,15 +731,15 @@ const Nt = E("Sun", [
747
731
  currentTopNavItem: a,
748
732
  basePath: o
749
733
  },
750
- U(d) ? d.path : d.href
734
+ V(d) ? d.path : d.href
751
735
  )) }) })
752
736
  ]
753
737
  }
754
738
  ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
755
- Ue,
739
+ We,
756
740
  {
757
741
  to: e.path,
758
- [qt]: e.path,
742
+ [Qt]: e.path,
759
743
  className: H({
760
744
  isActive: e.path.slice(1) === s,
761
745
  isMuted: e.muted
@@ -763,28 +747,28 @@ const Nt = E("Sun", [
763
747
  children: b
764
748
  }
765
749
  ) : /* @__PURE__ */ n.jsx(
766
- V,
750
+ B,
767
751
  {
768
752
  className: ({ isActive: d }) => H({ isActive: d }),
769
753
  to: o,
770
754
  children: b
771
755
  }
772
756
  ) });
773
- }, Dt = ({
757
+ }, qt = ({
774
758
  category: t
775
759
  }) => {
776
- const { activeAnchor: e } = W(), s = Xe(), a = D(), r = t.collapsible ?? !0, [o, l] = Ce({
760
+ const { activeAnchor: e } = W(), s = $e(), a = D(), r = t.collapsible ?? !0, [o, l] = Me({
777
761
  item: t,
778
762
  path: (s == null ? void 0 : s.path) ?? "",
779
763
  defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
780
764
  });
781
765
  return /* @__PURE__ */ n.jsxs(
782
- ye,
766
+ xe,
783
767
  {
784
768
  open: o,
785
769
  onOpenChange: () => l((h) => !h),
786
770
  children: [
787
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(xe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
771
+ t.label.length > 0 ? /* @__PURE__ */ n.jsx(ye, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
788
772
  "h5",
789
773
  {
790
774
  className: z(
@@ -804,7 +788,7 @@ const Nt = E("Sun", [
804
788
  }
805
789
  ) }) : "Endpoints",
806
790
  /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((h) => /* @__PURE__ */ n.jsx(
807
- Me,
791
+ Ae,
808
792
  {
809
793
  category: t,
810
794
  item: h,
@@ -812,13 +796,13 @@ const Nt = E("Sun", [
812
796
  currentTopNavItem: s,
813
797
  basePath: ve(s == null ? void 0 : s.path, t.path)
814
798
  },
815
- U(h) ? h.path + h.label : h.href
799
+ V(h) ? h.path + h.label : h.href
816
800
  )) }) })
817
801
  ]
818
802
  },
819
803
  t.label
820
804
  );
821
- }, St = ct(function({ children: e, className: s, pushMainContent: a }, r) {
805
+ }, Dt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
822
806
  return /* @__PURE__ */ n.jsx(
823
807
  "nav",
824
808
  {
@@ -831,43 +815,43 @@ const Nt = E("Sun", [
831
815
  children: e
832
816
  }
833
817
  );
834
- }), Et = () => {
835
- const t = _(null), e = $e();
818
+ }), Tt = () => {
819
+ const t = K(null), e = Ge();
836
820
  return /* @__PURE__ */ n.jsx(
837
- St,
821
+ Dt,
838
822
  {
839
823
  ref: t,
840
824
  pushMainContent: e.data.items.length > 0,
841
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Dt, { category: s }, s.label))
825
+ children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(qt, { category: s }, s.label))
842
826
  }
843
827
  );
844
828
  }, ue = ({ children: t }) => {
845
- const e = D(), { setActiveAnchor: s } = W(), { meta: a } = K();
846
- Mt(), Qt();
847
- const r = _(e.pathname);
848
- return T(() => {
829
+ const e = D(), { setActiveAnchor: s } = W(), { meta: a } = U();
830
+ Mt(), At();
831
+ const r = K(e.pathname);
832
+ return S(() => {
849
833
  e.pathname !== r.current && s(""), r.current = e.pathname;
850
834
  }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
851
- /* @__PURE__ */ n.jsxs(Ge, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
835
+ /* @__PURE__ */ n.jsxs(Je, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
852
836
  /* @__PURE__ */ n.jsx("title", { children: "Home" }),
853
837
  (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
854
838
  (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
855
839
  ] }),
856
840
  /* @__PURE__ */ n.jsx(Oe, {}),
857
841
  /* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
858
- we,
842
+ Pe,
859
843
  {
860
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Je, {}) }),
844
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Ye, {}) }),
861
845
  children: [
862
- /* @__PURE__ */ n.jsx(Et, {}),
846
+ /* @__PURE__ */ n.jsx(Tt, {}),
863
847
  /* @__PURE__ */ n.jsx(
864
848
  "main",
865
849
  {
866
- className: `dark:border-white/10 translate-x-0
850
+ className: `dark:border-white/10 translate-x-0 h-full
867
851
  lg:overflow-visible
868
852
  lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
869
853
  lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
870
- children: t ?? /* @__PURE__ */ n.jsx(Ee, {})
854
+ children: t ?? /* @__PURE__ */ n.jsx(Ie, {})
871
855
  }
872
856
  )
873
857
  ]
@@ -875,12 +859,12 @@ const Nt = E("Sun", [
875
859
  ) })
876
860
  ] });
877
861
  };
878
- function Tt({ plugins: t }) {
862
+ function It({ plugins: t }) {
879
863
  const e = L(() => {
880
864
  const s = (t ?? []).flatMap(
881
- (a) => Pe(a) ? a.getRoutes() : []
865
+ (a) => we(a) ? a.getRoutes() : []
882
866
  );
883
- return Ye([
867
+ return Ze([
884
868
  {
885
869
  path: "/",
886
870
  element: /* @__PURE__ */ n.jsx(ue, {}),
@@ -889,24 +873,24 @@ function Tt({ plugins: t }) {
889
873
  }
890
874
  ]);
891
875
  }, [t]);
892
- return /* @__PURE__ */ n.jsx(Ze, { router: e });
876
+ return /* @__PURE__ */ n.jsx(et, { router: e });
893
877
  }
894
- const It = (t) => {
878
+ const St = (t) => {
895
879
  const e = L(
896
- () => ({ ...Ae, ...t.overrides }),
880
+ () => ({ ...Ce, ...t.overrides }),
897
881
  [t.overrides]
898
882
  ), s = L(
899
- () => ({ ...et, ...t.mdxComponents }),
883
+ () => ({ ...tt, ...t.mdxComponents }),
900
884
  [t.mdxComponents]
901
885
  ), a = L(() => new bt(t), [t]);
902
- return T(() => {
886
+ return S(() => {
903
887
  a.initialize();
904
- }, [a]), /* @__PURE__ */ n.jsx(tt, { client: Ne, children: /* @__PURE__ */ n.jsx(st, { children: /* @__PURE__ */ n.jsx(at, { value: a, children: /* @__PURE__ */ n.jsx(nt, { components: s, children: /* @__PURE__ */ n.jsx(rt, { children: /* @__PURE__ */ n.jsx(Ct, { value: e, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(
905
- we,
888
+ }, [a]), /* @__PURE__ */ n.jsx(st, { client: Ne, children: /* @__PURE__ */ n.jsx(at, { children: /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Ct, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
889
+ Pe,
906
890
  {
907
891
  fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
908
892
  children: /* @__PURE__ */ n.jsx(
909
- Tt,
893
+ It,
910
894
  {
911
895
  plugins: [
912
896
  ...t.plugins ?? [],
@@ -916,10 +900,10 @@ const It = (t) => {
916
900
  )
917
901
  }
918
902
  ) }) }) }) }) }) }) });
919
- }, Ft = je(It);
920
- Ft.displayName = "DevPortal";
903
+ }, Et = je(St);
904
+ Et.displayName = "DevPortal";
921
905
  export {
922
- Ft as DevPortal,
923
- Vt as Link,
924
- Ut as useMDXComponents
906
+ Et as DevPortal,
907
+ Bt as Link,
908
+ Vt as useMDXComponents
925
909
  };