zudoku 0.3.0-dev.61 → 0.3.0-dev.63

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.
@@ -1,36 +1,36 @@
1
1
  var ar = Object.defineProperty;
2
- var ct = (t) => {
2
+ var ut = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var or = (t, e, n) => e in t ? ar(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var N = (t, e, n) => or(t, typeof e != "symbol" ? e + "" : e, n), ut = (t, e, n) => e.has(t) || ct("Cannot " + n);
7
- var f = (t, e, n) => (ut(t, e, "read from private field"), n ? n.call(t) : e.get(t)), j = (t, e, n) => e.has(t) ? ct("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), b = (t, e, n, r) => (ut(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
6
+ var N = (t, e, n) => or(t, typeof e != "symbol" ? e + "" : e, n), lt = (t, e, n) => e.has(t) || ut("Cannot " + n);
7
+ var p = (t, e, n) => (lt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), j = (t, e, n) => e.has(t) ? ut("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), b = (t, e, n, r) => (lt(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
8
  var Me = (t, e, n, r) => ({
9
9
  set _(a) {
10
10
  b(t, e, a, n);
11
11
  },
12
12
  get _() {
13
- return f(t, e, r);
13
+ return p(t, e, r);
14
14
  }
15
15
  });
16
- import { H as Ct, a as $e, M as sr, A as ir, u as cr } from "./AnchorLink-Bj1hwDuD.js";
17
- import { c as pe, d as ur, R as lr, a as P, C as dr, N as ke, b as hr, u as pr, L as Be, M as fr, T as mr, V as gr, e as Qe, f as vr, g as xr } from "./Markdown-BjRJKl_E.js";
18
- import { E as Pt, u as yr, R as wr } from "./hook-BY1NP0kj.js";
16
+ import { H as Pt, a as Qe, M as sr, A as ir, u as cr } from "./AnchorLink-Bj1hwDuD.js";
17
+ import { c as pe, d as ur, R as lr, a as P, C as dr, N as Fe, b as hr, u as pr, L as Re, M as fr, T as mr, V as gr, e as Ue, f as vr, g as xr } from "./Markdown-BjRJKl_E.js";
18
+ import { E as Rt, u as yr, R as wr } from "./hook-BY1NP0kj.js";
19
19
  import { j as o, d as Mr, u as br, a as se, O as Cr } from "./jsx-runtime-BIr0WBt_.js";
20
- import { M as Pr, c as Rr, a as Rt, b as _t, A as _r, u as fe, h as Er, d as y, e as Sr, F as Nr, D as jr, C as Dr, P as ie, f as Ue, g as Ir, i as Et, R as Ar, S as Or, j as Tr, k as kr, l as St, m as Fr, n as Re, o as Nt, B as Fe } from "./Combination-lAFQBd6U.js";
20
+ import { M as Pr, c as Rr, a as _t, b as Et, A as _r, u as fe, h as Er, d as y, e as Sr, F as Nr, D as jr, C as Dr, P as ie, f as Ge, g as Ar, i as St, R as Ir, S as Or, j as Tr, k as kr, l as Nt, m as Fr, n as _e, o as jt, B as Le } from "./Combination-lAFQBd6U.js";
21
21
  import * as c from "react";
22
- import Lr, { StrictMode as jt, createContext as Dt, Component as Kr, createElement as lt, isValidElement as $r, memo as It, useMemo as be, useContext as Br, useState as At, useEffect as oe, Fragment as Qr, useRef as Se, forwardRef as Ur, Suspense as Gr } from "react";
23
- import { g as Ge } from "./_commonjsHelpers-BVfed4GL.js";
22
+ import Lr, { StrictMode as Dt, createContext as At, Component as Kr, createElement as dt, isValidElement as $r, memo as It, useMemo as be, useContext as Br, useState as Ke, useEffect as W, Fragment as Qr, useRef as Ne, forwardRef as Ur, Suspense as Gr } from "react";
23
+ import { g as He } from "./_commonjsHelpers-BVfed4GL.js";
24
24
  import { r as Hr } from "./router-BiRCp01d.js";
25
- import { S as Le, c as Ot, P as Ne, R as qr, I as zr, a as Tt, T as kt, C as Ft, b as Vr } from "./Spinner-Ciq_pWU7.js";
26
- import { S as Lt, h as Kt, Q as Yr, n as E, m as dt, a as ht, b as $, e as Xr, c as Wr, d as Jr, f as Zr, o as pt, r as ft, g as ea, i as mt, p as gt, s as ta, u as He, j as na, D as ra, k as qe, l as vt, q as $t, t as aa, v as oa, w as sa } from "./DevPortalProvider-BBhQ8kgI.js";
25
+ import { S as $e, c as Ot, P as je, R as qr, I as zr, a as Tt, T as kt, C as Ft, b as Vr } from "./Spinner-Ciq_pWU7.js";
26
+ import { S as Lt, h as Kt, Q as Yr, n as E, m as ht, a as pt, b as $, e as Xr, c as Wr, d as Jr, f as Zr, o as ft, r as mt, g as ea, i as gt, p as vt, s as ta, u as qe, j as na, D as ra, k as ze, l as xt, q as $t, t as aa, v as oa, w as sa } from "./DevPortalProvider-BBhQ8kgI.js";
27
27
  /**
28
28
  * @license lucide-react v0.378.0 - ISC
29
29
  *
30
30
  * This source code is licensed under the ISC license.
31
31
  * See the LICENSE file in the root directory of this source tree.
32
32
  */
33
- const ze = pe("ChevronRight", [
33
+ const Ve = pe("ChevronRight", [
34
34
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
35
35
  ]);
36
36
  /**
@@ -82,12 +82,12 @@ const la = pe("Sun", [
82
82
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
83
83
  ]);
84
84
  function da({ error: t }) {
85
- return /* @__PURE__ */ o.jsx(Pt, { error: t });
85
+ return /* @__PURE__ */ o.jsx(Rt, { error: t });
86
86
  }
87
87
  var me = {};
88
- const ha = /* @__PURE__ */ Ge(Hr), pa = /* @__PURE__ */ Ge(Mr), fa = /* @__PURE__ */ Ge(ur);
88
+ const ha = /* @__PURE__ */ He(Hr), pa = /* @__PURE__ */ He(Mr), fa = /* @__PURE__ */ He(ur);
89
89
  Object.defineProperty(me, "__esModule", { value: !0 });
90
- var ma = Lr, k = ha, Ve = pa, B = fa;
90
+ var ma = Lr, k = ha, Ye = pa, B = fa;
91
91
  function ga(t) {
92
92
  if (t && t.__esModule) return t;
93
93
  var e = /* @__PURE__ */ Object.create(null);
@@ -143,12 +143,12 @@ function xa({
143
143
  basename: t.basename || "/"
144
144
  }, s = /* @__PURE__ */ new Map(), i = "";
145
145
  if (n !== !1) {
146
- let d = {
146
+ let h = {
147
147
  loaderData: t.loaderData,
148
148
  actionData: t.actionData,
149
149
  errors: wa(t.errors)
150
150
  };
151
- i = `window.__staticRouterHydrationData = JSON.parse(${_a(JSON.stringify(JSON.stringify(d)))});`;
151
+ i = `window.__staticRouterHydrationData = JSON.parse(${_a(JSON.stringify(JSON.stringify(h)))});`;
152
152
  }
153
153
  let {
154
154
  state: u
@@ -189,7 +189,7 @@ function ya({
189
189
  future: e,
190
190
  state: n
191
191
  }) {
192
- return Ve.UNSAFE_useRoutesImpl(t, void 0, n, e);
192
+ return Ye.UNSAFE_useRoutesImpl(t, void 0, n, e);
193
193
  }
194
194
  function wa(t) {
195
195
  if (!t) return null;
@@ -233,15 +233,15 @@ function Bt() {
233
233
  function Ma(t, e) {
234
234
  return k.createStaticHandler(t, {
235
235
  ...e,
236
- mapRouteProperties: Ve.UNSAFE_mapRouteProperties
236
+ mapRouteProperties: Ye.UNSAFE_mapRouteProperties
237
237
  });
238
238
  }
239
239
  function ba(t, e, n = {}) {
240
- let r = {}, a = k.UNSAFE_convertRoutesToDataRoutes(t, Ve.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((u) => {
241
- let d = r[u.route.id] || u.route;
240
+ let r = {}, a = k.UNSAFE_convertRoutesToDataRoutes(t, Ye.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((u) => {
241
+ let h = r[u.route.id] || u.route;
242
242
  return {
243
243
  ...u,
244
- route: d
244
+ route: h
245
245
  };
246
246
  }), i = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
247
247
  return {
@@ -249,13 +249,13 @@ function ba(t, e, n = {}) {
249
249
  return e.basename;
250
250
  },
251
251
  get future() {
252
- var u, d;
252
+ var u, h;
253
253
  return {
254
254
  v7_fetcherPersist: !1,
255
255
  v7_normalizeFormMethod: !1,
256
256
  v7_partialHydration: ((u = n.future) == null ? void 0 : u.v7_partialHydration) === !0,
257
257
  v7_prependBasename: !1,
258
- v7_relativeSplatPath: ((d = n.future) == null ? void 0 : d.v7_relativeSplatPath) === !0,
258
+ v7_relativeSplatPath: ((h = n.future) == null ? void 0 : h.v7_relativeSplatPath) === !0,
259
259
  v7_skipActionErrorRevalidation: !1
260
260
  };
261
261
  },
@@ -356,12 +356,12 @@ me.createStaticRouter = ba;
356
356
  const Sa = ({
357
357
  router: t,
358
358
  hydrate: e = !1
359
- }) => /* @__PURE__ */ o.jsx(jt, { children: /* @__PURE__ */ o.jsx(Ct, { children: /* @__PURE__ */ o.jsx(Le.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(lr, { router: t }) }) }) }), Na = ({
359
+ }) => /* @__PURE__ */ o.jsx(Dt, { children: /* @__PURE__ */ o.jsx(Pt, { children: /* @__PURE__ */ o.jsx($e.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(lr, { router: t }) }) }) }), Na = ({
360
360
  router: t,
361
361
  context: e,
362
362
  helmetContext: n
363
- }) => /* @__PURE__ */ o.jsx(jt, { children: /* @__PURE__ */ o.jsx(Ct, { context: n, children: /* @__PURE__ */ o.jsx(Ea, { router: t, context: e }) }) });
364
- var T, wt, ja = (wt = class extends Lt {
363
+ }) => /* @__PURE__ */ o.jsx(Dt, { children: /* @__PURE__ */ o.jsx(Pt, { context: n, children: /* @__PURE__ */ o.jsx(Ea, { router: t, context: e }) }) });
364
+ var T, Mt, ja = (Mt = class extends Lt {
365
365
  constructor(e = {}) {
366
366
  super();
367
367
  j(this, T);
@@ -380,14 +380,14 @@ var T, wt, ja = (wt = class extends Lt {
380
380
  }), this.add(i)), i;
381
381
  }
382
382
  add(e) {
383
- f(this, T).has(e.queryHash) || (f(this, T).set(e.queryHash, e), this.notify({
383
+ p(this, T).has(e.queryHash) || (p(this, T).set(e.queryHash, e), this.notify({
384
384
  type: "added",
385
385
  query: e
386
386
  }));
387
387
  }
388
388
  remove(e) {
389
- const n = f(this, T).get(e.queryHash);
390
- n && (e.destroy(), n === e && f(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
389
+ const n = p(this, T).get(e.queryHash);
390
+ n && (e.destroy(), n === e && p(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
391
391
  }
392
392
  clear() {
393
393
  E.batch(() => {
@@ -397,20 +397,20 @@ var T, wt, ja = (wt = class extends Lt {
397
397
  });
398
398
  }
399
399
  get(e) {
400
- return f(this, T).get(e);
400
+ return p(this, T).get(e);
401
401
  }
402
402
  getAll() {
403
- return [...f(this, T).values()];
403
+ return [...p(this, T).values()];
404
404
  }
405
405
  find(e) {
406
406
  const n = { exact: !0, ...e };
407
407
  return this.getAll().find(
408
- (r) => dt(n, r)
408
+ (r) => ht(n, r)
409
409
  );
410
410
  }
411
411
  findAll(e = {}) {
412
412
  const n = this.getAll();
413
- return Object.keys(e).length > 0 ? n.filter((r) => dt(e, r)) : n;
413
+ return Object.keys(e).length > 0 ? n.filter((r) => ht(e, r)) : n;
414
414
  }
415
415
  notify(e) {
416
416
  E.batch(() => {
@@ -433,7 +433,7 @@ var T, wt, ja = (wt = class extends Lt {
433
433
  });
434
434
  });
435
435
  }
436
- }, T = new WeakMap(), wt), _, he, Mt, Da = (Mt = class extends Lt {
436
+ }, T = new WeakMap(), Mt), _, he, bt, Da = (bt = class extends Lt {
437
437
  constructor(e = {}) {
438
438
  super();
439
439
  j(this, _);
@@ -450,26 +450,26 @@ var T, wt, ja = (wt = class extends Lt {
450
450
  return this.add(a), a;
451
451
  }
452
452
  add(e) {
453
- const n = Ce(e), r = f(this, _).get(n) ?? [];
454
- r.push(e), f(this, _).set(n, r), this.notify({ type: "added", mutation: e });
453
+ const n = Ce(e), r = p(this, _).get(n) ?? [];
454
+ r.push(e), p(this, _).set(n, r), this.notify({ type: "added", mutation: e });
455
455
  }
456
456
  remove(e) {
457
457
  var r;
458
458
  const n = Ce(e);
459
- if (f(this, _).has(n)) {
460
- const a = (r = f(this, _).get(n)) == null ? void 0 : r.filter((s) => s !== e);
461
- a && (a.length === 0 ? f(this, _).delete(n) : f(this, _).set(n, a));
459
+ if (p(this, _).has(n)) {
460
+ const a = (r = p(this, _).get(n)) == null ? void 0 : r.filter((s) => s !== e);
461
+ a && (a.length === 0 ? p(this, _).delete(n) : p(this, _).set(n, a));
462
462
  }
463
463
  this.notify({ type: "removed", mutation: e });
464
464
  }
465
465
  canRun(e) {
466
466
  var r;
467
- const n = (r = f(this, _).get(Ce(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
467
+ const n = (r = p(this, _).get(Ce(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
468
468
  return !n || n === e;
469
469
  }
470
470
  runNext(e) {
471
471
  var r;
472
- const n = (r = f(this, _).get(Ce(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
472
+ const n = (r = p(this, _).get(Ce(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
473
473
  return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
474
474
  }
475
475
  clear() {
@@ -480,16 +480,16 @@ var T, wt, ja = (wt = class extends Lt {
480
480
  });
481
481
  }
482
482
  getAll() {
483
- return [...f(this, _).values()].flat();
483
+ return [...p(this, _).values()].flat();
484
484
  }
485
485
  find(e) {
486
486
  const n = { exact: !0, ...e };
487
487
  return this.getAll().find(
488
- (r) => ht(n, r)
488
+ (r) => pt(n, r)
489
489
  );
490
490
  }
491
491
  findAll(e = {}) {
492
- return this.getAll().filter((n) => ht(e, n));
492
+ return this.getAll().filter((n) => pt(e, n));
493
493
  }
494
494
  notify(e) {
495
495
  E.batch(() => {
@@ -506,61 +506,61 @@ var T, wt, ja = (wt = class extends Lt {
506
506
  )
507
507
  );
508
508
  }
509
- }, _ = new WeakMap(), he = new WeakMap(), Mt);
509
+ }, _ = new WeakMap(), he = new WeakMap(), bt);
510
510
  function Ce(t) {
511
511
  var e;
512
512
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
513
513
  }
514
- function Ia(t) {
514
+ function Aa(t) {
515
515
  return {
516
516
  onFetch: (e, n) => {
517
517
  const r = async () => {
518
518
  var x, R, F, Q, V;
519
- const a = e.options, s = (F = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : F.direction, i = ((Q = e.state.data) == null ? void 0 : Q.pages) || [], u = ((V = e.state.data) == null ? void 0 : V.pageParams) || [], d = { pages: [], pageParams: [] };
520
- let h = !1;
521
- const p = (M) => {
519
+ const a = e.options, s = (F = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : F.direction, i = ((Q = e.state.data) == null ? void 0 : Q.pages) || [], u = ((V = e.state.data) == null ? void 0 : V.pageParams) || [], h = { pages: [], pageParams: [] };
520
+ let l = !1;
521
+ const m = (M) => {
522
522
  Object.defineProperty(M, "signal", {
523
523
  enumerable: !0,
524
- get: () => (e.signal.aborted ? h = !0 : e.signal.addEventListener("abort", () => {
525
- h = !0;
524
+ get: () => (e.signal.aborted ? l = !0 : e.signal.addEventListener("abort", () => {
525
+ l = !0;
526
526
  }), e.signal)
527
527
  });
528
- }, l = Xr(e.options, e.fetchOptions), m = async (M, I, L) => {
529
- if (h)
528
+ }, d = Xr(e.options, e.fetchOptions), f = async (M, A, L) => {
529
+ if (l)
530
530
  return Promise.reject();
531
- if (I == null && M.pages.length)
531
+ if (A == null && M.pages.length)
532
532
  return Promise.resolve(M);
533
533
  const Y = {
534
534
  queryKey: e.queryKey,
535
- pageParam: I,
535
+ pageParam: A,
536
536
  direction: L ? "backward" : "forward",
537
537
  meta: e.options.meta
538
538
  };
539
- p(Y);
540
- const J = await l(
539
+ m(Y);
540
+ const Z = await d(
541
541
  Y
542
542
  ), { maxPages: ye } = e.options, X = L ? Wr : Jr;
543
543
  return {
544
- pages: X(M.pages, J, ye),
545
- pageParams: X(M.pageParams, I, ye)
544
+ pages: X(M.pages, Z, ye),
545
+ pageParams: X(M.pageParams, A, ye)
546
546
  };
547
547
  };
548
548
  let v;
549
549
  if (s && i.length) {
550
- const M = s === "backward", I = M ? Aa : xt, L = {
550
+ const M = s === "backward", A = M ? Ia : yt, L = {
551
551
  pages: i,
552
552
  pageParams: u
553
- }, Y = I(a, L);
554
- v = await m(L, Y, M);
553
+ }, Y = A(a, L);
554
+ v = await f(L, Y, M);
555
555
  } else {
556
- v = await m(
557
- d,
556
+ v = await f(
557
+ h,
558
558
  u[0] ?? a.initialPageParam
559
559
  );
560
560
  const M = t ?? i.length;
561
- for (let I = 1; I < M; I++) {
562
- const L = xt(a, v);
563
- v = await m(v, L);
561
+ for (let A = 1; A < M; A++) {
562
+ const L = yt(a, v);
563
+ v = await f(v, L);
564
564
  }
565
565
  }
566
566
  return v;
@@ -581,7 +581,7 @@ function Ia(t) {
581
581
  }
582
582
  };
583
583
  }
584
- function xt(t, { pages: e, pageParams: n }) {
584
+ function yt(t, { pages: e, pageParams: n }) {
585
585
  const r = e.length - 1;
586
586
  return t.getNextPageParam(
587
587
  e[r],
@@ -590,7 +590,7 @@ function xt(t, { pages: e, pageParams: n }) {
590
590
  n
591
591
  );
592
592
  }
593
- function Aa(t, { pages: e, pageParams: n }) {
593
+ function Ia(t, { pages: e, pageParams: n }) {
594
594
  var r;
595
595
  return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
596
596
  t,
@@ -600,65 +600,65 @@ function Aa(t, { pages: e, pageParams: n }) {
600
600
  n
601
601
  );
602
602
  }
603
- var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
603
+ var w, G, H, ne, re, q, ae, oe, Ct, Oa = (Ct = class {
604
604
  constructor(t = {}) {
605
605
  j(this, w);
606
606
  j(this, G);
607
607
  j(this, H);
608
- j(this, te);
609
608
  j(this, ne);
610
- j(this, q);
611
609
  j(this, re);
610
+ j(this, q);
612
611
  j(this, ae);
613
- b(this, w, t.queryCache || new ja()), b(this, G, t.mutationCache || new Da()), b(this, H, t.defaultOptions || {}), b(this, te, /* @__PURE__ */ new Map()), b(this, ne, /* @__PURE__ */ new Map()), b(this, q, 0);
612
+ j(this, oe);
613
+ b(this, w, t.queryCache || new ja()), b(this, G, t.mutationCache || new Da()), b(this, H, t.defaultOptions || {}), b(this, ne, /* @__PURE__ */ new Map()), b(this, re, /* @__PURE__ */ new Map()), b(this, q, 0);
614
614
  }
615
615
  mount() {
616
- Me(this, q)._++, f(this, q) === 1 && (b(this, re, Zr.subscribe(async (t) => {
617
- t && (await this.resumePausedMutations(), f(this, w).onFocus());
618
- })), b(this, ae, pt.subscribe(async (t) => {
619
- t && (await this.resumePausedMutations(), f(this, w).onOnline());
616
+ Me(this, q)._++, p(this, q) === 1 && (b(this, ae, Zr.subscribe(async (t) => {
617
+ t && (await this.resumePausedMutations(), p(this, w).onFocus());
618
+ })), b(this, oe, ft.subscribe(async (t) => {
619
+ t && (await this.resumePausedMutations(), p(this, w).onOnline());
620
620
  })));
621
621
  }
622
622
  unmount() {
623
623
  var t, e;
624
- Me(this, q)._--, f(this, q) === 0 && ((t = f(this, re)) == null || t.call(this), b(this, re, void 0), (e = f(this, ae)) == null || e.call(this), b(this, ae, void 0));
624
+ Me(this, q)._--, p(this, q) === 0 && ((t = p(this, ae)) == null || t.call(this), b(this, ae, void 0), (e = p(this, oe)) == null || e.call(this), b(this, oe, void 0));
625
625
  }
626
626
  isFetching(t) {
627
- return f(this, w).findAll({ ...t, fetchStatus: "fetching" }).length;
627
+ return p(this, w).findAll({ ...t, fetchStatus: "fetching" }).length;
628
628
  }
629
629
  isMutating(t) {
630
- return f(this, G).findAll({ ...t, status: "pending" }).length;
630
+ return p(this, G).findAll({ ...t, status: "pending" }).length;
631
631
  }
632
632
  getQueryData(t) {
633
633
  var n;
634
634
  const e = this.defaultQueryOptions({ queryKey: t });
635
- return (n = f(this, w).get(e.queryHash)) == null ? void 0 : n.state.data;
635
+ return (n = p(this, w).get(e.queryHash)) == null ? void 0 : n.state.data;
636
636
  }
637
637
  ensureQueryData(t) {
638
638
  const e = this.getQueryData(t.queryKey);
639
639
  if (e === void 0)
640
640
  return this.fetchQuery(t);
641
641
  {
642
- const n = this.defaultQueryOptions(t), r = f(this, w).build(this, n);
643
- return t.revalidateIfStale && r.isStaleByTime(ft(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
642
+ const n = this.defaultQueryOptions(t), r = p(this, w).build(this, n);
643
+ return t.revalidateIfStale && r.isStaleByTime(mt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
644
644
  }
645
645
  }
646
646
  getQueriesData(t) {
647
- return f(this, w).findAll(t).map(({ queryKey: e, state: n }) => {
647
+ return p(this, w).findAll(t).map(({ queryKey: e, state: n }) => {
648
648
  const r = n.data;
649
649
  return [e, r];
650
650
  });
651
651
  }
652
652
  setQueryData(t, e, n) {
653
- const r = this.defaultQueryOptions({ queryKey: t }), a = f(this, w).get(
653
+ const r = this.defaultQueryOptions({ queryKey: t }), a = p(this, w).get(
654
654
  r.queryHash
655
655
  ), s = a == null ? void 0 : a.state.data, i = ea(e, s);
656
656
  if (i !== void 0)
657
- return f(this, w).build(this, r).setData(i, { ...n, manual: !0 });
657
+ return p(this, w).build(this, r).setData(i, { ...n, manual: !0 });
658
658
  }
659
659
  setQueriesData(t, e, n) {
660
660
  return E.batch(
661
- () => f(this, w).findAll(t).map(({ queryKey: r }) => [
661
+ () => p(this, w).findAll(t).map(({ queryKey: r }) => [
662
662
  r,
663
663
  this.setQueryData(r, e, n)
664
664
  ])
@@ -667,10 +667,10 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
667
667
  getQueryState(t) {
668
668
  var n;
669
669
  const e = this.defaultQueryOptions({ queryKey: t });
670
- return (n = f(this, w).get(e.queryHash)) == null ? void 0 : n.state;
670
+ return (n = p(this, w).get(e.queryHash)) == null ? void 0 : n.state;
671
671
  }
672
672
  removeQueries(t) {
673
- const e = f(this, w);
673
+ const e = p(this, w);
674
674
  E.batch(() => {
675
675
  e.findAll(t).forEach((n) => {
676
676
  e.remove(n);
@@ -678,7 +678,7 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
678
678
  });
679
679
  }
680
680
  resetQueries(t, e) {
681
- const n = f(this, w), r = {
681
+ const n = p(this, w), r = {
682
682
  type: "active",
683
683
  ...t
684
684
  };
@@ -688,13 +688,13 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
688
688
  }
689
689
  cancelQueries(t = {}, e = {}) {
690
690
  const n = { revert: !0, ...e }, r = E.batch(
691
- () => f(this, w).findAll(t).map((a) => a.cancel(n))
691
+ () => p(this, w).findAll(t).map((a) => a.cancel(n))
692
692
  );
693
693
  return Promise.all(r).then($).catch($);
694
694
  }
695
695
  invalidateQueries(t = {}, e = {}) {
696
696
  return E.batch(() => {
697
- if (f(this, w).findAll(t).forEach((r) => {
697
+ if (p(this, w).findAll(t).forEach((r) => {
698
698
  r.invalidate();
699
699
  }), t.refetchType === "none")
700
700
  return Promise.resolve();
@@ -710,7 +710,7 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
710
710
  ...e,
711
711
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
712
712
  }, r = E.batch(
713
- () => f(this, w).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
713
+ () => p(this, w).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
714
714
  let s = a.fetch(void 0, n);
715
715
  return n.throwOnError || (s = s.catch($)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
716
716
  })
@@ -720,66 +720,66 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
720
720
  fetchQuery(t) {
721
721
  const e = this.defaultQueryOptions(t);
722
722
  e.retry === void 0 && (e.retry = !1);
723
- const n = f(this, w).build(this, e);
723
+ const n = p(this, w).build(this, e);
724
724
  return n.isStaleByTime(
725
- ft(e.staleTime, n)
725
+ mt(e.staleTime, n)
726
726
  ) ? n.fetch(e) : Promise.resolve(n.state.data);
727
727
  }
728
728
  prefetchQuery(t) {
729
729
  return this.fetchQuery(t).then($).catch($);
730
730
  }
731
731
  fetchInfiniteQuery(t) {
732
- return t.behavior = Ia(t.pages), this.fetchQuery(t);
732
+ return t.behavior = Aa(t.pages), this.fetchQuery(t);
733
733
  }
734
734
  prefetchInfiniteQuery(t) {
735
735
  return this.fetchInfiniteQuery(t).then($).catch($);
736
736
  }
737
737
  resumePausedMutations() {
738
- return pt.isOnline() ? f(this, G).resumePausedMutations() : Promise.resolve();
738
+ return ft.isOnline() ? p(this, G).resumePausedMutations() : Promise.resolve();
739
739
  }
740
740
  getQueryCache() {
741
- return f(this, w);
741
+ return p(this, w);
742
742
  }
743
743
  getMutationCache() {
744
- return f(this, G);
744
+ return p(this, G);
745
745
  }
746
746
  getDefaultOptions() {
747
- return f(this, H);
747
+ return p(this, H);
748
748
  }
749
749
  setDefaultOptions(t) {
750
750
  b(this, H, t);
751
751
  }
752
752
  setQueryDefaults(t, e) {
753
- f(this, te).set(mt(t), {
753
+ p(this, ne).set(gt(t), {
754
754
  queryKey: t,
755
755
  defaultOptions: e
756
756
  });
757
757
  }
758
758
  getQueryDefaults(t) {
759
- const e = [...f(this, te).values()];
759
+ const e = [...p(this, ne).values()];
760
760
  let n = {};
761
761
  return e.forEach((r) => {
762
- gt(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
762
+ vt(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
763
763
  }), n;
764
764
  }
765
765
  setMutationDefaults(t, e) {
766
- f(this, ne).set(mt(t), {
766
+ p(this, re).set(gt(t), {
767
767
  mutationKey: t,
768
768
  defaultOptions: e
769
769
  });
770
770
  }
771
771
  getMutationDefaults(t) {
772
- const e = [...f(this, ne).values()];
772
+ const e = [...p(this, re).values()];
773
773
  let n = {};
774
774
  return e.forEach((r) => {
775
- gt(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
775
+ vt(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
776
776
  }), n;
777
777
  }
778
778
  defaultQueryOptions(t) {
779
779
  if (t._defaulted)
780
780
  return t;
781
781
  const e = {
782
- ...f(this, H).queries,
782
+ ...p(this, H).queries,
783
783
  ...this.getQueryDefaults(t.queryKey),
784
784
  ...t,
785
785
  _defaulted: !0
@@ -791,23 +791,23 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
791
791
  }
792
792
  defaultMutationOptions(t) {
793
793
  return t != null && t._defaulted ? t : {
794
- ...f(this, H).mutations,
794
+ ...p(this, H).mutations,
795
795
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
796
796
  ...t,
797
797
  _defaulted: !0
798
798
  };
799
799
  }
800
800
  clear() {
801
- f(this, w).clear(), f(this, G).clear();
801
+ p(this, w).clear(), p(this, G).clear();
802
802
  }
803
- }, w = new WeakMap(), G = new WeakMap(), H = new WeakMap(), te = new WeakMap(), ne = new WeakMap(), q = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), bt);
804
- const Ta = Dt(null), Te = {
803
+ }, w = new WeakMap(), G = new WeakMap(), H = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), q = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), Ct);
804
+ const Ta = At(null), ke = {
805
805
  didCatch: !1,
806
806
  error: null
807
807
  };
808
808
  class ka extends Kr {
809
809
  constructor(e) {
810
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Te;
810
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ke;
811
811
  }
812
812
  static getDerivedStateFromError(e) {
813
813
  return {
@@ -825,7 +825,7 @@ class ka extends Kr {
825
825
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
826
826
  args: s,
827
827
  reason: "imperative-api"
828
- }), this.setState(Te);
828
+ }), this.setState(ke);
829
829
  }
830
830
  }
831
831
  componentDidCatch(e, n) {
@@ -844,7 +844,7 @@ class ka extends Kr {
844
844
  next: a,
845
845
  prev: e.resetKeys,
846
846
  reason: "keys"
847
- }), this.setState(Te);
847
+ }), this.setState(ke);
848
848
  }
849
849
  }
850
850
  render() {
@@ -859,20 +859,20 @@ class ka extends Kr {
859
859
  } = this.state;
860
860
  let u = e;
861
861
  if (s) {
862
- const d = {
862
+ const h = {
863
863
  error: i,
864
864
  resetErrorBoundary: this.resetErrorBoundary
865
865
  };
866
866
  if (typeof n == "function")
867
- u = n(d);
867
+ u = n(h);
868
868
  else if (r)
869
- u = lt(r, d);
869
+ u = dt(r, h);
870
870
  else if (a === null || $r(a))
871
871
  u = a;
872
872
  else
873
873
  throw i;
874
874
  }
875
- return lt(Ta.Provider, {
875
+ return dt(Ta.Provider, {
876
876
  value: {
877
877
  didCatch: s,
878
878
  error: i,
@@ -926,42 +926,42 @@ class Ua {
926
926
  }
927
927
  }
928
928
  function Ga({ error: t, resetErrorBoundary: e }) {
929
- return /* @__PURE__ */ o.jsx(Pt, { error: t });
929
+ return /* @__PURE__ */ o.jsx(Rt, { error: t });
930
930
  }
931
- var Ke = ["Enter", " "], Ha = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp", "PageDown", "End"], qa = [...Ha, ...Ht], za = {
932
- ltr: [...Ke, "ArrowRight"],
933
- rtl: [...Ke, "ArrowLeft"]
931
+ var Be = ["Enter", " "], Ha = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp", "PageDown", "End"], qa = [...Ha, ...Ht], za = {
932
+ ltr: [...Be, "ArrowRight"],
933
+ rtl: [...Be, "ArrowLeft"]
934
934
  }, Va = {
935
935
  ltr: ["ArrowLeft"],
936
936
  rtl: ["ArrowRight"]
937
- }, ge = "Menu", [le, Ya, Xa] = Rr(ge), [W, qt] = Rt(ge, [
937
+ }, ge = "Menu", [le, Ya, Xa] = Rr(ge), [J, qt] = _t(ge, [
938
938
  Xa,
939
- _t,
939
+ Et,
940
940
  Ot
941
- ]), ve = _t(), zt = Ot(), [Vt, z] = W(ge), [Wa, xe] = W(ge), Yt = (t) => {
942
- const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, u = ve(e), [d, h] = c.useState(null), p = c.useRef(!1), l = Ue(s), m = kr(a);
941
+ ]), ve = Et(), zt = Ot(), [Vt, z] = J(ge), [Wa, xe] = J(ge), Yt = (t) => {
942
+ const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, u = ve(e), [h, l] = c.useState(null), m = c.useRef(!1), d = Ge(s), f = kr(a);
943
943
  return c.useEffect(() => {
944
944
  const v = () => {
945
- p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
946
- }, x = () => p.current = !1;
945
+ m.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
946
+ }, x = () => m.current = !1;
947
947
  return document.addEventListener("keydown", v, { capture: !0 }), () => {
948
948
  document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
949
949
  };
950
- }, []), /* @__PURE__ */ o.jsx(St, { ...u, children: /* @__PURE__ */ o.jsx(
950
+ }, []), /* @__PURE__ */ o.jsx(Nt, { ...u, children: /* @__PURE__ */ o.jsx(
951
951
  Vt,
952
952
  {
953
953
  scope: e,
954
954
  open: n,
955
- onOpenChange: l,
956
- content: d,
957
- onContentChange: h,
955
+ onOpenChange: d,
956
+ content: h,
957
+ onContentChange: l,
958
958
  children: /* @__PURE__ */ o.jsx(
959
959
  Wa,
960
960
  {
961
961
  scope: e,
962
- onClose: c.useCallback(() => l(!1), [l]),
963
- isUsingKeyboardRef: p,
964
- dir: m,
962
+ onClose: c.useCallback(() => d(!1), [d]),
963
+ isUsingKeyboardRef: m,
964
+ dir: f,
965
965
  modal: i,
966
966
  children: r
967
967
  }
@@ -970,24 +970,24 @@ var Ke = ["Enter", " "], Ha = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
970
970
  ) });
971
971
  };
972
972
  Yt.displayName = ge;
973
- var Ja = "MenuAnchor", Ye = c.forwardRef(
973
+ var Ja = "MenuAnchor", Xe = c.forwardRef(
974
974
  (t, e) => {
975
975
  const { __scopeMenu: n, ...r } = t, a = ve(n);
976
976
  return /* @__PURE__ */ o.jsx(_r, { ...a, ...r, ref: e });
977
977
  }
978
978
  );
979
- Ye.displayName = Ja;
980
- var Xe = "MenuPortal", [Za, Xt] = W(Xe, {
979
+ Xe.displayName = Ja;
980
+ var We = "MenuPortal", [Za, Xt] = J(We, {
981
981
  forceMount: void 0
982
982
  }), Wt = (t) => {
983
- const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = z(Xe, e);
984
- return /* @__PURE__ */ o.jsx(Za, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(Ne, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Fr, { asChild: !0, container: a, children: r }) }) });
983
+ const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = z(We, e);
984
+ return /* @__PURE__ */ o.jsx(Za, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(je, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Fr, { asChild: !0, container: a, children: r }) }) });
985
985
  };
986
- Wt.displayName = Xe;
987
- var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
986
+ Wt.displayName = We;
987
+ var D = "MenuContent", [eo, Je] = J(D), Jt = c.forwardRef(
988
988
  (t, e) => {
989
989
  const n = Xt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu);
990
- return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ne, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(to, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(no, { ...a, ref: e }) }) }) });
990
+ return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(je, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(to, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(no, { ...a, ref: e }) }) }) });
991
991
  }
992
992
  ), to = c.forwardRef(
993
993
  (t, e) => {
@@ -996,7 +996,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
996
996
  const s = r.current;
997
997
  if (s) return Er(s);
998
998
  }, []), /* @__PURE__ */ o.jsx(
999
- Je,
999
+ Ze,
1000
1000
  {
1001
1001
  ...t,
1002
1002
  ref: a,
@@ -1015,7 +1015,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1015
1015
  ), no = c.forwardRef((t, e) => {
1016
1016
  const n = z(D, t.__scopeMenu);
1017
1017
  return /* @__PURE__ */ o.jsx(
1018
- Je,
1018
+ Ze,
1019
1019
  {
1020
1020
  ...t,
1021
1021
  ref: e,
@@ -1025,7 +1025,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1025
1025
  onDismiss: () => n.onOpenChange(!1)
1026
1026
  }
1027
1027
  );
1028
- }), Je = c.forwardRef(
1028
+ }), Ze = c.forwardRef(
1029
1029
  (t, e) => {
1030
1030
  const {
1031
1031
  __scopeMenu: n,
@@ -1034,25 +1034,25 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1034
1034
  onOpenAutoFocus: s,
1035
1035
  onCloseAutoFocus: i,
1036
1036
  disableOutsidePointerEvents: u,
1037
- onEntryFocus: d,
1038
- onEscapeKeyDown: h,
1039
- onPointerDownOutside: p,
1040
- onFocusOutside: l,
1041
- onInteractOutside: m,
1037
+ onEntryFocus: h,
1038
+ onEscapeKeyDown: l,
1039
+ onPointerDownOutside: m,
1040
+ onFocusOutside: d,
1041
+ onInteractOutside: f,
1042
1042
  onDismiss: v,
1043
1043
  disableOutsideScroll: x,
1044
1044
  ...R
1045
- } = t, F = z(D, n), Q = xe(D, n), V = ve(n), M = zt(n), I = Ya(n), [L, Y] = c.useState(null), J = c.useRef(null), ye = fe(e, J, F.onContentChange), X = c.useRef(0), we = c.useRef(""), er = c.useRef(0), De = c.useRef(null), at = c.useRef("right"), Ie = c.useRef(0), tr = x ? Ar : c.Fragment, nr = x ? { as: Or, allowPinchZoom: !0 } : void 0, rr = (g) => {
1046
- var ee, st;
1047
- const S = we.current + g, A = I().filter((K) => !K.disabled), U = document.activeElement, Ae = (ee = A.find((K) => K.ref.current === U)) == null ? void 0 : ee.textValue, Oe = A.map((K) => K.textValue), ot = mo(Oe, S, Ae), ce = (st = A.find((K) => K.textValue === ot)) == null ? void 0 : st.ref.current;
1048
- (function K(it) {
1049
- we.current = it, window.clearTimeout(X.current), it !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
1045
+ } = t, F = z(D, n), Q = xe(D, n), V = ve(n), M = zt(n), A = Ya(n), [L, Y] = c.useState(null), Z = c.useRef(null), ye = fe(e, Z, F.onContentChange), X = c.useRef(0), we = c.useRef(""), er = c.useRef(0), Ae = c.useRef(null), ot = c.useRef("right"), Ie = c.useRef(0), tr = x ? Ir : c.Fragment, nr = x ? { as: Or, allowPinchZoom: !0 } : void 0, rr = (g) => {
1046
+ var te, it;
1047
+ const S = we.current + g, I = A().filter((K) => !K.disabled), U = document.activeElement, Oe = (te = I.find((K) => K.ref.current === U)) == null ? void 0 : te.textValue, Te = I.map((K) => K.textValue), st = mo(Te, S, Oe), ce = (it = I.find((K) => K.textValue === st)) == null ? void 0 : it.ref.current;
1048
+ (function K(ct) {
1049
+ we.current = ct, window.clearTimeout(X.current), ct !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
1050
1050
  })(S), ce && setTimeout(() => ce.focus());
1051
1051
  };
1052
1052
  c.useEffect(() => () => window.clearTimeout(X.current), []), Sr();
1053
- const Z = c.useCallback((g) => {
1054
- var A, U;
1055
- return at.current === ((A = De.current) == null ? void 0 : A.side) && vo(g, (U = De.current) == null ? void 0 : U.area);
1053
+ const ee = c.useCallback((g) => {
1054
+ var I, U;
1055
+ return ot.current === ((I = Ae.current) == null ? void 0 : I.side) && vo(g, (U = Ae.current) == null ? void 0 : U.area);
1056
1056
  }, []);
1057
1057
  return /* @__PURE__ */ o.jsx(
1058
1058
  eo,
@@ -1061,26 +1061,26 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1061
1061
  searchRef: we,
1062
1062
  onItemEnter: c.useCallback(
1063
1063
  (g) => {
1064
- Z(g) && g.preventDefault();
1064
+ ee(g) && g.preventDefault();
1065
1065
  },
1066
- [Z]
1066
+ [ee]
1067
1067
  ),
1068
1068
  onItemLeave: c.useCallback(
1069
1069
  (g) => {
1070
1070
  var S;
1071
- Z(g) || ((S = J.current) == null || S.focus(), Y(null));
1071
+ ee(g) || ((S = Z.current) == null || S.focus(), Y(null));
1072
1072
  },
1073
- [Z]
1073
+ [ee]
1074
1074
  ),
1075
1075
  onTriggerLeave: c.useCallback(
1076
1076
  (g) => {
1077
- Z(g) && g.preventDefault();
1077
+ ee(g) && g.preventDefault();
1078
1078
  },
1079
- [Z]
1079
+ [ee]
1080
1080
  ),
1081
1081
  pointerGraceTimerRef: er,
1082
1082
  onPointerGraceIntentChange: c.useCallback((g) => {
1083
- De.current = g;
1083
+ Ae.current = g;
1084
1084
  }, []),
1085
1085
  children: /* @__PURE__ */ o.jsx(tr, { ...nr, children: /* @__PURE__ */ o.jsx(
1086
1086
  Nr,
@@ -1089,7 +1089,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1089
1089
  trapped: a,
1090
1090
  onMountAutoFocus: y(s, (g) => {
1091
1091
  var S;
1092
- g.preventDefault(), (S = J.current) == null || S.focus({ preventScroll: !0 });
1092
+ g.preventDefault(), (S = Z.current) == null || S.focus({ preventScroll: !0 });
1093
1093
  }),
1094
1094
  onUnmountAutoFocus: i,
1095
1095
  children: /* @__PURE__ */ o.jsx(
@@ -1097,10 +1097,10 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1097
1097
  {
1098
1098
  asChild: !0,
1099
1099
  disableOutsidePointerEvents: u,
1100
- onEscapeKeyDown: h,
1101
- onPointerDownOutside: p,
1102
- onFocusOutside: l,
1103
- onInteractOutside: m,
1100
+ onEscapeKeyDown: l,
1101
+ onPointerDownOutside: m,
1102
+ onFocusOutside: d,
1103
+ onInteractOutside: f,
1104
1104
  onDismiss: v,
1105
1105
  children: /* @__PURE__ */ o.jsx(
1106
1106
  qr,
@@ -1112,7 +1112,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1112
1112
  loop: r,
1113
1113
  currentTabStopId: L,
1114
1114
  onCurrentTabStopIdChange: Y,
1115
- onEntryFocus: y(d, (g) => {
1115
+ onEntryFocus: y(h, (g) => {
1116
1116
  Q.isUsingKeyboardRef.current || g.preventDefault();
1117
1117
  }),
1118
1118
  preventScrollOnEntryFocus: !0,
@@ -1129,12 +1129,12 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1129
1129
  ref: ye,
1130
1130
  style: { outline: "none", ...R.style },
1131
1131
  onKeyDown: y(R.onKeyDown, (g) => {
1132
- const A = g.target.closest("[data-radix-menu-content]") === g.currentTarget, U = g.ctrlKey || g.altKey || g.metaKey, Ae = g.key.length === 1;
1133
- A && (g.key === "Tab" && g.preventDefault(), !U && Ae && rr(g.key));
1134
- const Oe = J.current;
1135
- if (g.target !== Oe || !qa.includes(g.key)) return;
1132
+ const I = g.target.closest("[data-radix-menu-content]") === g.currentTarget, U = g.ctrlKey || g.altKey || g.metaKey, Oe = g.key.length === 1;
1133
+ I && (g.key === "Tab" && g.preventDefault(), !U && Oe && rr(g.key));
1134
+ const Te = Z.current;
1135
+ if (g.target !== Te || !qa.includes(g.key)) return;
1136
1136
  g.preventDefault();
1137
- const ce = I().filter((ee) => !ee.disabled).map((ee) => ee.ref.current);
1137
+ const ce = A().filter((te) => !te.disabled).map((te) => te.ref.current);
1138
1138
  Ht.includes(g.key) && ce.reverse(), po(ce);
1139
1139
  }),
1140
1140
  onBlur: y(t.onBlur, (g) => {
@@ -1143,10 +1143,10 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1143
1143
  onPointerMove: y(
1144
1144
  t.onPointerMove,
1145
1145
  de((g) => {
1146
- const S = g.target, A = Ie.current !== g.clientX;
1147
- if (g.currentTarget.contains(S) && A) {
1146
+ const S = g.target, I = Ie.current !== g.clientX;
1147
+ if (g.currentTarget.contains(S) && I) {
1148
1148
  const U = g.clientX > Ie.current ? "right" : "left";
1149
- at.current = U, Ie.current = g.clientX;
1149
+ ot.current = U, Ie.current = g.clientX;
1150
1150
  }
1151
1151
  })
1152
1152
  )
@@ -1163,13 +1163,13 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
1163
1163
  }
1164
1164
  );
1165
1165
  Jt.displayName = D;
1166
- var ro = "MenuGroup", Ze = c.forwardRef(
1166
+ var ro = "MenuGroup", et = c.forwardRef(
1167
1167
  (t, e) => {
1168
1168
  const { __scopeMenu: n, ...r } = t;
1169
1169
  return /* @__PURE__ */ o.jsx(ie.div, { role: "group", ...r, ref: e });
1170
1170
  }
1171
1171
  );
1172
- Ze.displayName = ro;
1172
+ et.displayName = ro;
1173
1173
  var ao = "MenuLabel", Zt = c.forwardRef(
1174
1174
  (t, e) => {
1175
1175
  const { __scopeMenu: n, ...r } = t;
@@ -1177,60 +1177,60 @@ var ao = "MenuLabel", Zt = c.forwardRef(
1177
1177
  }
1178
1178
  );
1179
1179
  Zt.displayName = ao;
1180
- var _e = "MenuItem", yt = "menu.itemSelect", je = c.forwardRef(
1180
+ var Ee = "MenuItem", wt = "menu.itemSelect", De = c.forwardRef(
1181
1181
  (t, e) => {
1182
- const { disabled: n = !1, onSelect: r, ...a } = t, s = c.useRef(null), i = xe(_e, t.__scopeMenu), u = We(_e, t.__scopeMenu), d = fe(e, s), h = c.useRef(!1), p = () => {
1183
- const l = s.current;
1184
- if (!n && l) {
1185
- const m = new CustomEvent(yt, { bubbles: !0, cancelable: !0 });
1186
- l.addEventListener(yt, (v) => r == null ? void 0 : r(v), { once: !0 }), Tr(l, m), m.defaultPrevented ? h.current = !1 : i.onClose();
1182
+ const { disabled: n = !1, onSelect: r, ...a } = t, s = c.useRef(null), i = xe(Ee, t.__scopeMenu), u = Je(Ee, t.__scopeMenu), h = fe(e, s), l = c.useRef(!1), m = () => {
1183
+ const d = s.current;
1184
+ if (!n && d) {
1185
+ const f = new CustomEvent(wt, { bubbles: !0, cancelable: !0 });
1186
+ d.addEventListener(wt, (v) => r == null ? void 0 : r(v), { once: !0 }), Tr(d, f), f.defaultPrevented ? l.current = !1 : i.onClose();
1187
1187
  }
1188
1188
  };
1189
1189
  return /* @__PURE__ */ o.jsx(
1190
1190
  en,
1191
1191
  {
1192
1192
  ...a,
1193
- ref: d,
1193
+ ref: h,
1194
1194
  disabled: n,
1195
- onClick: y(t.onClick, p),
1196
- onPointerDown: (l) => {
1197
- var m;
1198
- (m = t.onPointerDown) == null || m.call(t, l), h.current = !0;
1195
+ onClick: y(t.onClick, m),
1196
+ onPointerDown: (d) => {
1197
+ var f;
1198
+ (f = t.onPointerDown) == null || f.call(t, d), l.current = !0;
1199
1199
  },
1200
- onPointerUp: y(t.onPointerUp, (l) => {
1201
- var m;
1202
- h.current || (m = l.currentTarget) == null || m.click();
1200
+ onPointerUp: y(t.onPointerUp, (d) => {
1201
+ var f;
1202
+ l.current || (f = d.currentTarget) == null || f.click();
1203
1203
  }),
1204
- onKeyDown: y(t.onKeyDown, (l) => {
1205
- const m = u.searchRef.current !== "";
1206
- n || m && l.key === " " || Ke.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
1204
+ onKeyDown: y(t.onKeyDown, (d) => {
1205
+ const f = u.searchRef.current !== "";
1206
+ n || f && d.key === " " || Be.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
1207
1207
  })
1208
1208
  }
1209
1209
  );
1210
1210
  }
1211
1211
  );
1212
- je.displayName = _e;
1212
+ De.displayName = Ee;
1213
1213
  var en = c.forwardRef(
1214
1214
  (t, e) => {
1215
- const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = We(_e, n), u = zt(n), d = c.useRef(null), h = fe(e, d), [p, l] = c.useState(!1), [m, v] = c.useState("");
1215
+ const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = Je(Ee, n), u = zt(n), h = c.useRef(null), l = fe(e, h), [m, d] = c.useState(!1), [f, v] = c.useState("");
1216
1216
  return c.useEffect(() => {
1217
- const x = d.current;
1217
+ const x = h.current;
1218
1218
  x && v((x.textContent ?? "").trim());
1219
1219
  }, [s.children]), /* @__PURE__ */ o.jsx(
1220
1220
  le.ItemSlot,
1221
1221
  {
1222
1222
  scope: n,
1223
1223
  disabled: r,
1224
- textValue: a ?? m,
1224
+ textValue: a ?? f,
1225
1225
  children: /* @__PURE__ */ o.jsx(zr, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ o.jsx(
1226
1226
  ie.div,
1227
1227
  {
1228
1228
  role: "menuitem",
1229
- "data-highlighted": p ? "" : void 0,
1229
+ "data-highlighted": m ? "" : void 0,
1230
1230
  "aria-disabled": r || void 0,
1231
1231
  "data-disabled": r ? "" : void 0,
1232
1232
  ...s,
1233
- ref: h,
1233
+ ref: l,
1234
1234
  onPointerMove: y(
1235
1235
  t.onPointerMove,
1236
1236
  de((x) => {
@@ -1241,8 +1241,8 @@ var en = c.forwardRef(
1241
1241
  t.onPointerLeave,
1242
1242
  de((x) => i.onItemLeave(x))
1243
1243
  ),
1244
- onFocus: y(t.onFocus, () => l(!0)),
1245
- onBlur: y(t.onBlur, () => l(!1))
1244
+ onFocus: y(t.onFocus, () => d(!0)),
1245
+ onBlur: y(t.onBlur, () => d(!1))
1246
1246
  }
1247
1247
  ) })
1248
1248
  }
@@ -1252,16 +1252,16 @@ var en = c.forwardRef(
1252
1252
  (t, e) => {
1253
1253
  const { checked: n = !1, onCheckedChange: r, ...a } = t;
1254
1254
  return /* @__PURE__ */ o.jsx(sn, { scope: t.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
1255
- je,
1255
+ De,
1256
1256
  {
1257
1257
  role: "menuitemcheckbox",
1258
- "aria-checked": Ee(n) ? "mixed" : n,
1258
+ "aria-checked": Se(n) ? "mixed" : n,
1259
1259
  ...a,
1260
1260
  ref: e,
1261
- "data-state": nt(n),
1261
+ "data-state": rt(n),
1262
1262
  onSelect: y(
1263
1263
  a.onSelect,
1264
- () => r == null ? void 0 : r(Ee(n) ? !0 : !n),
1264
+ () => r == null ? void 0 : r(Se(n) ? !0 : !n),
1265
1265
  { checkForDefaultPrevented: !1 }
1266
1266
  )
1267
1267
  }
@@ -1269,14 +1269,14 @@ var en = c.forwardRef(
1269
1269
  }
1270
1270
  );
1271
1271
  tn.displayName = oo;
1272
- var nn = "MenuRadioGroup", [so, io] = W(
1272
+ var nn = "MenuRadioGroup", [so, io] = J(
1273
1273
  nn,
1274
1274
  { value: void 0, onValueChange: () => {
1275
1275
  } }
1276
1276
  ), rn = c.forwardRef(
1277
1277
  (t, e) => {
1278
- const { value: n, onValueChange: r, ...a } = t, s = Ue(r);
1279
- return /* @__PURE__ */ o.jsx(so, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(Ze, { ...a, ref: e }) });
1278
+ const { value: n, onValueChange: r, ...a } = t, s = Ge(r);
1279
+ return /* @__PURE__ */ o.jsx(so, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(et, { ...a, ref: e }) });
1280
1280
  }
1281
1281
  );
1282
1282
  rn.displayName = nn;
@@ -1284,13 +1284,13 @@ var an = "MenuRadioItem", on = c.forwardRef(
1284
1284
  (t, e) => {
1285
1285
  const { value: n, ...r } = t, a = io(an, t.__scopeMenu), s = n === a.value;
1286
1286
  return /* @__PURE__ */ o.jsx(sn, { scope: t.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
1287
- je,
1287
+ De,
1288
1288
  {
1289
1289
  role: "menuitemradio",
1290
1290
  "aria-checked": s,
1291
1291
  ...r,
1292
1292
  ref: e,
1293
- "data-state": nt(s),
1293
+ "data-state": rt(s),
1294
1294
  onSelect: y(
1295
1295
  r.onSelect,
1296
1296
  () => {
@@ -1304,29 +1304,29 @@ var an = "MenuRadioItem", on = c.forwardRef(
1304
1304
  }
1305
1305
  );
1306
1306
  on.displayName = an;
1307
- var et = "MenuItemIndicator", [sn, co] = W(
1308
- et,
1307
+ var tt = "MenuItemIndicator", [sn, co] = J(
1308
+ tt,
1309
1309
  { checked: !1 }
1310
1310
  ), cn = c.forwardRef(
1311
1311
  (t, e) => {
1312
- const { __scopeMenu: n, forceMount: r, ...a } = t, s = co(et, n);
1312
+ const { __scopeMenu: n, forceMount: r, ...a } = t, s = co(tt, n);
1313
1313
  return /* @__PURE__ */ o.jsx(
1314
- Ne,
1314
+ je,
1315
1315
  {
1316
- present: r || Ee(s.checked) || s.checked === !0,
1316
+ present: r || Se(s.checked) || s.checked === !0,
1317
1317
  children: /* @__PURE__ */ o.jsx(
1318
1318
  ie.span,
1319
1319
  {
1320
1320
  ...a,
1321
1321
  ref: e,
1322
- "data-state": nt(s.checked)
1322
+ "data-state": rt(s.checked)
1323
1323
  }
1324
1324
  )
1325
1325
  }
1326
1326
  );
1327
1327
  }
1328
1328
  );
1329
- cn.displayName = et;
1329
+ cn.displayName = tt;
1330
1330
  var uo = "MenuSeparator", un = c.forwardRef(
1331
1331
  (t, e) => {
1332
1332
  const { __scopeMenu: n, ...r } = t;
@@ -1345,46 +1345,46 @@ un.displayName = uo;
1345
1345
  var lo = "MenuArrow", ln = c.forwardRef(
1346
1346
  (t, e) => {
1347
1347
  const { __scopeMenu: n, ...r } = t, a = ve(n);
1348
- return /* @__PURE__ */ o.jsx(Ir, { ...a, ...r, ref: e });
1348
+ return /* @__PURE__ */ o.jsx(Ar, { ...a, ...r, ref: e });
1349
1349
  }
1350
1350
  );
1351
1351
  ln.displayName = lo;
1352
- var tt = "MenuSub", [ho, dn] = W(tt), hn = (t) => {
1353
- const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = z(tt, e), i = ve(e), [u, d] = c.useState(null), [h, p] = c.useState(null), l = Ue(a);
1354
- return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ o.jsx(St, { ...i, children: /* @__PURE__ */ o.jsx(
1352
+ var nt = "MenuSub", [ho, dn] = J(nt), hn = (t) => {
1353
+ const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = z(nt, e), i = ve(e), [u, h] = c.useState(null), [l, m] = c.useState(null), d = Ge(a);
1354
+ return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(Nt, { ...i, children: /* @__PURE__ */ o.jsx(
1355
1355
  Vt,
1356
1356
  {
1357
1357
  scope: e,
1358
1358
  open: r,
1359
- onOpenChange: l,
1360
- content: h,
1361
- onContentChange: p,
1359
+ onOpenChange: d,
1360
+ content: l,
1361
+ onContentChange: m,
1362
1362
  children: /* @__PURE__ */ o.jsx(
1363
1363
  ho,
1364
1364
  {
1365
1365
  scope: e,
1366
- contentId: Re(),
1367
- triggerId: Re(),
1366
+ contentId: _e(),
1367
+ triggerId: _e(),
1368
1368
  trigger: u,
1369
- onTriggerChange: d,
1369
+ onTriggerChange: h,
1370
1370
  children: n
1371
1371
  }
1372
1372
  )
1373
1373
  }
1374
1374
  ) });
1375
1375
  };
1376
- hn.displayName = tt;
1376
+ hn.displayName = nt;
1377
1377
  var ue = "MenuSubTrigger", pn = c.forwardRef(
1378
1378
  (t, e) => {
1379
- const n = z(ue, t.__scopeMenu), r = xe(ue, t.__scopeMenu), a = dn(ue, t.__scopeMenu), s = We(ue, t.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: d } = s, h = { __scopeMenu: t.__scopeMenu }, p = c.useCallback(() => {
1379
+ const n = z(ue, t.__scopeMenu), r = xe(ue, t.__scopeMenu), a = dn(ue, t.__scopeMenu), s = Je(ue, t.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: h } = s, l = { __scopeMenu: t.__scopeMenu }, m = c.useCallback(() => {
1380
1380
  i.current && window.clearTimeout(i.current), i.current = null;
1381
1381
  }, []);
1382
- return c.useEffect(() => p, [p]), c.useEffect(() => {
1383
- const l = u.current;
1382
+ return c.useEffect(() => m, [m]), c.useEffect(() => {
1383
+ const d = u.current;
1384
1384
  return () => {
1385
- window.clearTimeout(l), d(null);
1385
+ window.clearTimeout(d), h(null);
1386
1386
  };
1387
- }, [u, d]), /* @__PURE__ */ o.jsx(Ye, { asChild: !0, ...h, children: /* @__PURE__ */ o.jsx(
1387
+ }, [u, h]), /* @__PURE__ */ o.jsx(Xe, { asChild: !0, ...l, children: /* @__PURE__ */ o.jsx(
1388
1388
  en,
1389
1389
  {
1390
1390
  id: a.triggerId,
@@ -1393,36 +1393,36 @@ var ue = "MenuSubTrigger", pn = c.forwardRef(
1393
1393
  "aria-controls": a.contentId,
1394
1394
  "data-state": gn(n.open),
1395
1395
  ...t,
1396
- ref: Et(e, a.onTriggerChange),
1397
- onClick: (l) => {
1398
- var m;
1399
- (m = t.onClick) == null || m.call(t, l), !(t.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
1396
+ ref: St(e, a.onTriggerChange),
1397
+ onClick: (d) => {
1398
+ var f;
1399
+ (f = t.onClick) == null || f.call(t, d), !(t.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
1400
1400
  },
1401
1401
  onPointerMove: y(
1402
1402
  t.onPointerMove,
1403
- de((l) => {
1404
- s.onItemEnter(l), !l.defaultPrevented && !t.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1405
- n.onOpenChange(!0), p();
1403
+ de((d) => {
1404
+ s.onItemEnter(d), !d.defaultPrevented && !t.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1405
+ n.onOpenChange(!0), m();
1406
1406
  }, 100));
1407
1407
  })
1408
1408
  ),
1409
1409
  onPointerLeave: y(
1410
1410
  t.onPointerLeave,
1411
- de((l) => {
1411
+ de((d) => {
1412
1412
  var v, x;
1413
- p();
1414
- const m = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1415
- if (m) {
1416
- const R = (x = n.content) == null ? void 0 : x.dataset.side, F = R === "right", Q = F ? -5 : 5, V = m[F ? "left" : "right"], M = m[F ? "right" : "left"];
1413
+ m();
1414
+ const f = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1415
+ if (f) {
1416
+ const R = (x = n.content) == null ? void 0 : x.dataset.side, F = R === "right", Q = F ? -5 : 5, V = f[F ? "left" : "right"], M = f[F ? "right" : "left"];
1417
1417
  s.onPointerGraceIntentChange({
1418
1418
  area: [
1419
1419
  // Apply a bleed on clientX to ensure that our exit point is
1420
1420
  // consistently within polygon bounds
1421
- { x: l.clientX + Q, y: l.clientY },
1422
- { x: V, y: m.top },
1423
- { x: M, y: m.top },
1424
- { x: M, y: m.bottom },
1425
- { x: V, y: m.bottom }
1421
+ { x: d.clientX + Q, y: d.clientY },
1422
+ { x: V, y: f.top },
1423
+ { x: M, y: f.top },
1424
+ { x: M, y: f.bottom },
1425
+ { x: V, y: f.bottom }
1426
1426
  ],
1427
1427
  side: R
1428
1428
  }), window.clearTimeout(u.current), u.current = window.setTimeout(
@@ -1430,15 +1430,15 @@ var ue = "MenuSubTrigger", pn = c.forwardRef(
1430
1430
  300
1431
1431
  );
1432
1432
  } else {
1433
- if (s.onTriggerLeave(l), l.defaultPrevented) return;
1433
+ if (s.onTriggerLeave(d), d.defaultPrevented) return;
1434
1434
  s.onPointerGraceIntentChange(null);
1435
1435
  }
1436
1436
  })
1437
1437
  ),
1438
- onKeyDown: y(t.onKeyDown, (l) => {
1438
+ onKeyDown: y(t.onKeyDown, (d) => {
1439
1439
  var v;
1440
- const m = s.searchRef.current !== "";
1441
- t.disabled || m && l.key === " " || za[r.dir].includes(l.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), l.preventDefault());
1440
+ const f = s.searchRef.current !== "";
1441
+ t.disabled || f && d.key === " " || za[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1442
1442
  })
1443
1443
  }
1444
1444
  ) });
@@ -1447,34 +1447,34 @@ var ue = "MenuSubTrigger", pn = c.forwardRef(
1447
1447
  pn.displayName = ue;
1448
1448
  var fn = "MenuSubContent", mn = c.forwardRef(
1449
1449
  (t, e) => {
1450
- const n = Xt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu), u = dn(fn, t.__scopeMenu), d = c.useRef(null), h = fe(e, d);
1451
- return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ne, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1452
- Je,
1450
+ const n = Xt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu), u = dn(fn, t.__scopeMenu), h = c.useRef(null), l = fe(e, h);
1451
+ return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(je, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1452
+ Ze,
1453
1453
  {
1454
1454
  id: u.contentId,
1455
1455
  "aria-labelledby": u.triggerId,
1456
1456
  ...a,
1457
- ref: h,
1457
+ ref: l,
1458
1458
  align: "start",
1459
1459
  side: i.dir === "rtl" ? "left" : "right",
1460
1460
  disableOutsidePointerEvents: !1,
1461
1461
  disableOutsideScroll: !1,
1462
1462
  trapFocus: !1,
1463
- onOpenAutoFocus: (p) => {
1464
- var l;
1465
- i.isUsingKeyboardRef.current && ((l = d.current) == null || l.focus()), p.preventDefault();
1463
+ onOpenAutoFocus: (m) => {
1464
+ var d;
1465
+ i.isUsingKeyboardRef.current && ((d = h.current) == null || d.focus()), m.preventDefault();
1466
1466
  },
1467
- onCloseAutoFocus: (p) => p.preventDefault(),
1468
- onFocusOutside: y(t.onFocusOutside, (p) => {
1469
- p.target !== u.trigger && s.onOpenChange(!1);
1467
+ onCloseAutoFocus: (m) => m.preventDefault(),
1468
+ onFocusOutside: y(t.onFocusOutside, (m) => {
1469
+ m.target !== u.trigger && s.onOpenChange(!1);
1470
1470
  }),
1471
- onEscapeKeyDown: y(t.onEscapeKeyDown, (p) => {
1472
- i.onClose(), p.preventDefault();
1471
+ onEscapeKeyDown: y(t.onEscapeKeyDown, (m) => {
1472
+ i.onClose(), m.preventDefault();
1473
1473
  }),
1474
- onKeyDown: y(t.onKeyDown, (p) => {
1474
+ onKeyDown: y(t.onKeyDown, (m) => {
1475
1475
  var v;
1476
- const l = p.currentTarget.contains(p.target), m = Va[i.dir].includes(p.key);
1477
- l && m && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
1476
+ const d = m.currentTarget.contains(m.target), f = Va[i.dir].includes(m.key);
1477
+ d && f && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), m.preventDefault());
1478
1478
  })
1479
1479
  }
1480
1480
  ) }) }) });
@@ -1484,11 +1484,11 @@ mn.displayName = fn;
1484
1484
  function gn(t) {
1485
1485
  return t ? "open" : "closed";
1486
1486
  }
1487
- function Ee(t) {
1487
+ function Se(t) {
1488
1488
  return t === "indeterminate";
1489
1489
  }
1490
- function nt(t) {
1491
- return Ee(t) ? "indeterminate" : t ? "checked" : "unchecked";
1490
+ function rt(t) {
1491
+ return Se(t) ? "indeterminate" : t ? "checked" : "unchecked";
1492
1492
  }
1493
1493
  function po(t) {
1494
1494
  const e = document.activeElement;
@@ -1499,20 +1499,20 @@ function fo(t, e) {
1499
1499
  return t.map((n, r) => t[(e + r) % t.length]);
1500
1500
  }
1501
1501
  function mo(t, e, n) {
1502
- const a = e.length > 1 && Array.from(e).every((h) => h === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
1502
+ const a = e.length > 1 && Array.from(e).every((l) => l === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
1503
1503
  let i = fo(t, Math.max(s, 0));
1504
- a.length === 1 && (i = i.filter((h) => h !== n));
1505
- const d = i.find(
1506
- (h) => h.toLowerCase().startsWith(a.toLowerCase())
1504
+ a.length === 1 && (i = i.filter((l) => l !== n));
1505
+ const h = i.find(
1506
+ (l) => l.toLowerCase().startsWith(a.toLowerCase())
1507
1507
  );
1508
- return d !== n ? d : void 0;
1508
+ return h !== n ? h : void 0;
1509
1509
  }
1510
1510
  function go(t, e) {
1511
1511
  const { x: n, y: r } = t;
1512
1512
  let a = !1;
1513
1513
  for (let s = 0, i = e.length - 1; s < e.length; i = s++) {
1514
- const u = e[s].x, d = e[s].y, h = e[i].x, p = e[i].y;
1515
- d > r != p > r && n < (h - u) * (r - d) / (p - d) + u && (a = !a);
1514
+ const u = e[s].x, h = e[s].y, l = e[i].x, m = e[i].y;
1515
+ h > r != m > r && n < (l - u) * (r - h) / (m - h) + u && (a = !a);
1516
1516
  }
1517
1517
  return a;
1518
1518
  }
@@ -1524,10 +1524,10 @@ function vo(t, e) {
1524
1524
  function de(t) {
1525
1525
  return (e) => e.pointerType === "mouse" ? t(e) : void 0;
1526
1526
  }
1527
- var xo = Yt, yo = Ye, wo = Wt, Mo = Jt, bo = Ze, Co = Zt, Po = je, Ro = tn, _o = rn, Eo = on, So = cn, No = un, jo = ln, Do = hn, Io = pn, Ao = mn, rt = "DropdownMenu", [Oo, js] = Rt(
1528
- rt,
1527
+ var xo = Yt, yo = Xe, wo = Wt, Mo = Jt, bo = et, Co = Zt, Po = De, Ro = tn, _o = rn, Eo = on, So = cn, No = un, jo = ln, Do = hn, Ao = pn, Io = mn, at = "DropdownMenu", [Oo, js] = _t(
1528
+ at,
1529
1529
  [qt]
1530
- ), C = qt(), [To, vn] = Oo(rt), xn = (t) => {
1530
+ ), C = qt(), [To, vn] = Oo(at), xn = (t) => {
1531
1531
  const {
1532
1532
  __scopeDropdownMenu: e,
1533
1533
  children: n,
@@ -1536,7 +1536,7 @@ var xo = Yt, yo = Ye, wo = Wt, Mo = Jt, bo = Ze, Co = Zt, Po = je, Ro = tn, _o =
1536
1536
  defaultOpen: s,
1537
1537
  onOpenChange: i,
1538
1538
  modal: u = !0
1539
- } = t, d = C(e), h = c.useRef(null), [p = !1, l] = Nt({
1539
+ } = t, h = C(e), l = c.useRef(null), [m = !1, d] = jt({
1540
1540
  prop: a,
1541
1541
  defaultProp: s,
1542
1542
  onChange: i
@@ -1545,18 +1545,18 @@ var xo = Yt, yo = Ye, wo = Wt, Mo = Jt, bo = Ze, Co = Zt, Po = je, Ro = tn, _o =
1545
1545
  To,
1546
1546
  {
1547
1547
  scope: e,
1548
- triggerId: Re(),
1549
- triggerRef: h,
1550
- contentId: Re(),
1551
- open: p,
1552
- onOpenChange: l,
1553
- onOpenToggle: c.useCallback(() => l((m) => !m), [l]),
1548
+ triggerId: _e(),
1549
+ triggerRef: l,
1550
+ contentId: _e(),
1551
+ open: m,
1552
+ onOpenChange: d,
1553
+ onOpenToggle: c.useCallback(() => d((f) => !f), [d]),
1554
1554
  modal: u,
1555
- children: /* @__PURE__ */ o.jsx(xo, { ...d, open: p, onOpenChange: l, dir: r, modal: u, children: n })
1555
+ children: /* @__PURE__ */ o.jsx(xo, { ...h, open: m, onOpenChange: d, dir: r, modal: u, children: n })
1556
1556
  }
1557
1557
  );
1558
1558
  };
1559
- xn.displayName = rt;
1559
+ xn.displayName = at;
1560
1560
  var yn = "DropdownMenuTrigger", wn = c.forwardRef(
1561
1561
  (t, e) => {
1562
1562
  const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = vn(yn, n), i = C(n);
@@ -1572,7 +1572,7 @@ var yn = "DropdownMenuTrigger", wn = c.forwardRef(
1572
1572
  "data-disabled": r ? "" : void 0,
1573
1573
  disabled: r,
1574
1574
  ...a,
1575
- ref: Et(e, s.triggerRef),
1575
+ ref: St(e, s.triggerRef),
1576
1576
  onPointerDown: y(t.onPointerDown, (u) => {
1577
1577
  !r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
1578
1578
  }),
@@ -1601,12 +1601,12 @@ var bn = "DropdownMenuContent", Cn = c.forwardRef(
1601
1601
  ...r,
1602
1602
  ref: e,
1603
1603
  onCloseAutoFocus: y(t.onCloseAutoFocus, (u) => {
1604
- var d;
1605
- i.current || (d = a.triggerRef.current) == null || d.focus(), i.current = !1, u.preventDefault();
1604
+ var h;
1605
+ i.current || (h = a.triggerRef.current) == null || h.focus(), i.current = !1, u.preventDefault();
1606
1606
  }),
1607
1607
  onInteractOutside: y(t.onInteractOutside, (u) => {
1608
- const d = u.detail.originalEvent, h = d.button === 0 && d.ctrlKey === !0, p = d.button === 2 || h;
1609
- (!a.modal || p) && (i.current = !0);
1608
+ const h = u.detail.originalEvent, l = h.button === 0 && h.ctrlKey === !0, m = h.button === 2 || l;
1609
+ (!a.modal || m) && (i.current = !0);
1610
1610
  }),
1611
1611
  style: {
1612
1612
  ...t.style,
@@ -1675,21 +1675,21 @@ var zo = "DropdownMenuArrow", Vo = c.forwardRef(
1675
1675
  );
1676
1676
  Vo.displayName = zo;
1677
1677
  var Yo = (t) => {
1678
- const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [u = !1, d] = Nt({
1678
+ const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [u = !1, h] = jt({
1679
1679
  prop: r,
1680
1680
  defaultProp: s,
1681
1681
  onChange: a
1682
1682
  });
1683
- return /* @__PURE__ */ o.jsx(Do, { ...i, open: u, onOpenChange: d, children: n });
1683
+ return /* @__PURE__ */ o.jsx(Do, { ...i, open: u, onOpenChange: h, children: n });
1684
1684
  }, Xo = "DropdownMenuSubTrigger", jn = c.forwardRef((t, e) => {
1685
1685
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1686
- return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: e });
1686
+ return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
1687
1687
  });
1688
1688
  jn.displayName = Xo;
1689
1689
  var Wo = "DropdownMenuSubContent", Dn = c.forwardRef((t, e) => {
1690
1690
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1691
1691
  return /* @__PURE__ */ o.jsx(
1692
- Ao,
1692
+ Io,
1693
1693
  {
1694
1694
  ...a,
1695
1695
  ...r,
@@ -1706,8 +1706,8 @@ var Wo = "DropdownMenuSubContent", Dn = c.forwardRef((t, e) => {
1706
1706
  );
1707
1707
  });
1708
1708
  Dn.displayName = Wo;
1709
- var Jo = xn, Zo = wn, In = Mn, An = Cn, On = Pn, Tn = Rn, kn = _n, Fn = En, Ln = Sn, Kn = Nn, es = Yo, $n = jn, Bn = Dn;
1710
- const ts = Jo, ns = Zo, rs = In, as = es, Qn = c.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1709
+ var Jo = xn, Zo = wn, An = Mn, In = Cn, On = Pn, Tn = Rn, kn = _n, Fn = En, Ln = Sn, Kn = Nn, es = Yo, $n = jn, Bn = Dn;
1710
+ const ts = Jo, ns = Zo, rs = An, as = es, Qn = c.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1711
1711
  $n,
1712
1712
  {
1713
1713
  ref: a,
@@ -1719,7 +1719,7 @@ const ts = Jo, ns = Zo, rs = In, as = es, Qn = c.forwardRef(({ className: t, ins
1719
1719
  ...r,
1720
1720
  children: [
1721
1721
  n,
1722
- /* @__PURE__ */ o.jsx(ze, { className: "ml-auto h-4 w-4" })
1722
+ /* @__PURE__ */ o.jsx(Ve, { className: "ml-auto h-4 w-4" })
1723
1723
  ]
1724
1724
  }
1725
1725
  ));
@@ -1736,8 +1736,8 @@ const Un = c.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1736
1736
  }
1737
1737
  ));
1738
1738
  Un.displayName = Bn.displayName;
1739
- const Gn = c.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ o.jsx(In, { children: /* @__PURE__ */ o.jsx(
1740
- An,
1739
+ const Gn = c.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ o.jsx(An, { children: /* @__PURE__ */ o.jsx(
1740
+ In,
1741
1741
  {
1742
1742
  ref: r,
1743
1743
  sideOffset: e,
@@ -1749,7 +1749,7 @@ const Gn = c.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__
1749
1749
  ...n
1750
1750
  }
1751
1751
  ) }));
1752
- Gn.displayName = An.displayName;
1752
+ Gn.displayName = In.displayName;
1753
1753
  const Hn = c.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
1754
1754
  Tn,
1755
1755
  {
@@ -1819,9 +1819,9 @@ const zn = c.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1819
1819
  ));
1820
1820
  zn.displayName = Kn.displayName;
1821
1821
  const is = () => {
1822
- const { navigation: t } = He();
1822
+ const { navigation: t } = qe();
1823
1823
  return t.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
1824
- ke,
1824
+ Fe,
1825
1825
  {
1826
1826
  className: ({ isActive: n }) => hr(
1827
1827
  "block py-3.5 font-medium -mb-px border-b-2",
@@ -1837,18 +1837,18 @@ const is = () => {
1837
1837
  // eslint-disable-next-line react/no-array-index-key
1838
1838
  /* @__PURE__ */ o.jsx(Vn, { item: e }, n)
1839
1839
  )) }) })
1840
- ] }, t.label) : /* @__PURE__ */ o.jsx(Be, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Hn, { children: t.label }, t.label) }), Yn = It(function() {
1841
- const [e, n] = pr(), { isAuthenticated: r, profile: a, isAuthEnabled: s, login: i, logout: u } = yr(), d = He(), { page: h, plugins: p } = d, l = e ? ua : la;
1840
+ ] }, t.label) : /* @__PURE__ */ o.jsx(Re, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Hn, { children: t.label }, t.label) }), Yn = It(function() {
1841
+ const [e, n] = pr(), { isAuthenticated: r, profile: a, isAuthEnabled: s, login: i, logout: u } = yr(), h = qe(), { page: l, plugins: m } = h, d = e ? ua : la;
1842
1842
  return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1843
1843
  /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1844
- /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
1845
- (h == null ? void 0 : h.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1844
+ /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Re, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
1845
+ (l == null ? void 0 : l.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1846
1846
  /* @__PURE__ */ o.jsx(
1847
1847
  "img",
1848
1848
  {
1849
- src: h.logo.src.light,
1850
- alt: h.logo.alt ?? h.pageTitle,
1851
- style: { width: h.logo.width },
1849
+ src: l.logo.src.light,
1850
+ alt: l.logo.alt ?? l.pageTitle,
1851
+ style: { width: l.logo.width },
1852
1852
  className: P("h-10", e && "hidden"),
1853
1853
  loading: "lazy"
1854
1854
  }
@@ -1856,25 +1856,25 @@ const is = () => {
1856
1856
  /* @__PURE__ */ o.jsx(
1857
1857
  "img",
1858
1858
  {
1859
- src: h.logo.src.dark,
1860
- alt: h.logo.alt ?? h.pageTitle,
1861
- style: { width: h.logo.width },
1859
+ src: l.logo.src.dark,
1860
+ alt: l.logo.alt ?? l.pageTitle,
1861
+ style: { width: l.logo.width },
1862
1862
  className: P("h-10", !e && "hidden"),
1863
1863
  loading: "lazy"
1864
1864
  }
1865
1865
  )
1866
1866
  ] }),
1867
- /* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: h == null ? void 0 : h.pageTitle })
1868
- ] }),
1867
+ /* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1868
+ ] }) }) }),
1869
1869
  /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1870
1870
  /* @__PURE__ */ o.jsx("div", { className: "w-full max-w-prose" }),
1871
1871
  /* @__PURE__ */ o.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1872
- s && !r ? /* @__PURE__ */ o.jsx(Fe, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(Be, { to: "/signin", children: "Login" }) }) : /* @__PURE__ */ o.jsxs(ts, { children: [
1873
- /* @__PURE__ */ o.jsx(ns, { asChild: !0, children: /* @__PURE__ */ o.jsx(Fe, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
1872
+ s && !r ? /* @__PURE__ */ o.jsx(Le, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(Re, { to: "/signin", children: "Login" }) }) : /* @__PURE__ */ o.jsxs(ts, { children: [
1873
+ /* @__PURE__ */ o.jsx(ns, { asChild: !0, children: /* @__PURE__ */ o.jsx(Le, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
1874
1874
  /* @__PURE__ */ o.jsxs(Gn, { className: "w-56", children: [
1875
1875
  /* @__PURE__ */ o.jsx(qn, { children: "My Account" }),
1876
1876
  /* @__PURE__ */ o.jsx(zn, {}),
1877
- p.filter((m) => La(m)).flatMap((m) => m.getProfileMenuItems(d)).map((m) => /* @__PURE__ */ o.jsx(Vn, { item: m }, m.label))
1877
+ m.filter((f) => La(f)).flatMap((f) => f.getProfileMenuItems(h)).map((f) => /* @__PURE__ */ o.jsx(Vn, { item: f }, f.label))
1878
1878
  ] })
1879
1879
  ] }),
1880
1880
  /* @__PURE__ */ o.jsx(
@@ -1884,7 +1884,7 @@ const is = () => {
1884
1884
  "aria-label": e ? "Switch to light mode" : "Switch to dark mode",
1885
1885
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1886
1886
  onClick: n,
1887
- children: /* @__PURE__ */ o.jsx(l, { size: 18 })
1887
+ children: /* @__PURE__ */ o.jsx(d, { size: 18 })
1888
1888
  }
1889
1889
  )
1890
1890
  ] })
@@ -1894,11 +1894,11 @@ const is = () => {
1894
1894
  ] }) });
1895
1895
  }), Xn = {
1896
1896
  Header: Yn
1897
- }, cs = Dt(Xn), us = cs.Provider, ls = ({
1897
+ }, cs = At(Xn), us = cs.Provider, ls = ({
1898
1898
  children: t,
1899
1899
  ...e
1900
1900
  }) => {
1901
- var l, m;
1901
+ var d, f;
1902
1902
  const n = be(
1903
1903
  () => ({ ...Xn, ...e.overrides }),
1904
1904
  [e.overrides]
@@ -1907,31 +1907,31 @@ const is = () => {
1907
1907
  var v;
1908
1908
  return { ...fr, ...(v = e.mdx) == null ? void 0 : v.components };
1909
1909
  },
1910
- [(l = e.mdx) == null ? void 0 : l.components]
1911
- ), { stagger: a } = Br(Le), [s, i] = At(!1), u = be(
1910
+ [(d = e.mdx) == null ? void 0 : d.components]
1911
+ ), { stagger: a } = Br($e), [s, i] = Ke(!1), u = be(
1912
1912
  () => s ? { stagger: !0 } : { stagger: a },
1913
1913
  [a, s]
1914
- ), d = br();
1915
- oe(() => {
1914
+ ), h = br();
1915
+ W(() => {
1916
1916
  s || i(!0);
1917
- }, [s, d.location]);
1918
- const h = be(() => new Ua(e), [e]);
1919
- oe(() => {
1920
- h.initialize();
1921
- }, [h]);
1922
- const p = (m = e.plugins) == null ? void 0 : m.filter(Ba).map((v, x) => {
1917
+ }, [s, h.location]);
1918
+ const l = be(() => new Ua(e), [e]);
1919
+ W(() => {
1920
+ l.initialize();
1921
+ }, [l]);
1922
+ const m = (f = e.plugins) == null ? void 0 : f.filter(Ba).map((v, x) => {
1923
1923
  var R;
1924
1924
  return /* @__PURE__ */ o.jsx(Qr, { children: (R = v.getHead) == null ? void 0 : R.call(v) }, x);
1925
1925
  });
1926
1926
  return /* @__PURE__ */ o.jsxs(na, { client: Gt, children: [
1927
- /* @__PURE__ */ o.jsx($e, { children: p }),
1928
- /* @__PURE__ */ o.jsx(Le.Provider, { value: u, children: /* @__PURE__ */ o.jsx(ra, { value: h, children: /* @__PURE__ */ o.jsx(sr, { components: r, children: /* @__PURE__ */ o.jsx(mr, { children: /* @__PURE__ */ o.jsx(us, { value: n, children: /* @__PURE__ */ o.jsx(gr, { children: t }) }) }) }) }) })
1927
+ /* @__PURE__ */ o.jsx(Qe, { children: m }),
1928
+ /* @__PURE__ */ o.jsx($e.Provider, { value: u, children: /* @__PURE__ */ o.jsx(ra, { value: l, children: /* @__PURE__ */ o.jsx(sr, { components: r, children: /* @__PURE__ */ o.jsx(mr, { children: /* @__PURE__ */ o.jsx(us, { value: n, children: /* @__PURE__ */ o.jsx(gr, { children: t }) }) }) }) }) })
1929
1929
  ] });
1930
1930
  }, ds = It(ls), Wn = (t) => /* @__PURE__ */ o.jsx(ka, { FallbackComponent: Ga, children: /* @__PURE__ */ o.jsx(ds, { ...t }) });
1931
1931
  Wn.displayName = "DevPortal";
1932
1932
  const hs = () => {
1933
- const t = se(), { setActiveAnchor: e } = Qe();
1934
- oe(() => {
1933
+ const t = se(), { setActiveAnchor: e } = Ue();
1934
+ W(() => {
1935
1935
  if (!t.hash) return;
1936
1936
  const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
1937
1937
  if (r) {
@@ -1947,8 +1947,8 @@ const hs = () => {
1947
1947
  return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
1948
1948
  }, [t.hash, e]);
1949
1949
  }, ps = () => {
1950
- const t = se(), e = Se(t.pathname);
1951
- oe(() => {
1950
+ const t = se(), e = Ne(t.pathname);
1951
+ W(() => {
1952
1952
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1953
1953
  }, [t.pathname]);
1954
1954
  }, Jn = ({
@@ -1956,10 +1956,20 @@ const hs = () => {
1956
1956
  defaultOpen: e,
1957
1957
  path: n
1958
1958
  }) => {
1959
- const [r, a] = At(e), s = se(), i = Se(s.pathname);
1960
- return oe(() => {
1961
- !r && i.current !== s.pathname && a(qe(t, s.pathname, n)), i.current = s.pathname;
1962
- }, [r, t, n, s.pathname]), [r, a];
1959
+ const [r, a] = Ke(e), s = se(), i = Ne(s.pathname), [u, h] = Ke(!1);
1960
+ W(() => {
1961
+ !r && i.current !== s.pathname && a(ze(t, s.pathname, n)), i.current = s.pathname;
1962
+ }, [r, t, n, s.pathname]);
1963
+ const l = () => {
1964
+ h(!0), a((m) => !m);
1965
+ };
1966
+ return W(() => {
1967
+ h(!1);
1968
+ }, []), {
1969
+ open: r,
1970
+ onOpenChange: l,
1971
+ "data-animate": u
1972
+ };
1963
1973
  }, Pe = vr(
1964
1974
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1965
1975
  {
@@ -1981,13 +1991,13 @@ const hs = () => {
1981
1991
  currentTopNavItem: r,
1982
1992
  basePath: a = ""
1983
1993
  }) => {
1984
- const s = vt(e) ? $t(a, e.path) : "", i = se(), [u, d] = Jn({
1994
+ const s = xt(e) ? $t(a, e.path) : "", i = se(), u = Jn({
1985
1995
  item: e,
1986
1996
  path: s,
1987
- defaultOpen: () => qe(e, i.pathname, s)
1997
+ defaultOpen: () => ze(e, i.pathname, a)
1988
1998
  });
1989
1999
  if (aa(e)) {
1990
- const p = P(
2000
+ const l = P(
1991
2001
  "flex items-center gap-2",
1992
2002
  Pe({
1993
2003
  isActive: e.href === i.pathname
@@ -1996,7 +2006,7 @@ const hs = () => {
1996
2006
  return e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
1997
2007
  "a",
1998
2008
  {
1999
- className: p,
2009
+ className: l,
2000
2010
  href: e.href,
2001
2011
  target: "_blank",
2002
2012
  rel: "noopener noreferrer",
@@ -2005,7 +2015,7 @@ const hs = () => {
2005
2015
  /* @__PURE__ */ o.jsx(ca, { size: 14 })
2006
2016
  ]
2007
2017
  }
2008
- ) : /* @__PURE__ */ o.jsx(ke, { className: p, to: e.href, children: e.label });
2018
+ ) : /* @__PURE__ */ o.jsx(Fe, { className: l, to: e.href, children: e.label });
2009
2019
  }
2010
2020
  const h = /* @__PURE__ */ o.jsxs("div", { className: "flex justify-between w-full", children: [
2011
2021
  /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
@@ -2013,44 +2023,36 @@ const hs = () => {
2013
2023
  typeof e.label != "string" ? e.label : /* @__PURE__ */ o.jsx("span", { className: "truncate", children: e.label })
2014
2024
  ] }),
2015
2025
  e.children && /* @__PURE__ */ o.jsx(
2016
- ze,
2026
+ Ve,
2017
2027
  {
2018
2028
  size: 16,
2019
2029
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
2020
2030
  }
2021
2031
  )
2022
2032
  ] });
2023
- return /* @__PURE__ */ o.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ o.jsxs(
2024
- Tt,
2025
- {
2026
- open: u,
2027
- onOpenChange: () => d((p) => !p),
2028
- className: "flex flex-col",
2029
- children: [
2030
- /* @__PURE__ */ o.jsx(
2031
- kt,
2032
- {
2033
- className: P(
2034
- "group text-start",
2035
- Pe({ isActive: !1 })
2036
- ),
2037
- children: h
2038
- }
2033
+ return /* @__PURE__ */ o.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ o.jsxs(Tt, { ...u, className: "flex flex-col", children: [
2034
+ /* @__PURE__ */ o.jsx(
2035
+ kt,
2036
+ {
2037
+ className: P(
2038
+ "group text-start",
2039
+ Pe({ isActive: !1 })
2039
2040
  ),
2040
- /* @__PURE__ */ o.jsx(Ft, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((p) => /* @__PURE__ */ o.jsx(
2041
- Zn,
2042
- {
2043
- category: t,
2044
- item: p,
2045
- activeAnchor: n,
2046
- currentTopNavItem: r,
2047
- basePath: s
2048
- },
2049
- vt(p) ? p.path : p.href
2050
- )) }) })
2051
- ]
2052
- }
2053
- ) : e.path.startsWith("#") ? /* @__PURE__ */ o.jsx(
2041
+ children: h
2042
+ }
2043
+ ),
2044
+ /* @__PURE__ */ o.jsx(Ft, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((l) => /* @__PURE__ */ o.jsx(
2045
+ Zn,
2046
+ {
2047
+ category: t,
2048
+ item: l,
2049
+ activeAnchor: n,
2050
+ currentTopNavItem: r,
2051
+ basePath: s
2052
+ },
2053
+ xt(l) ? l.path : l.href
2054
+ )) }) })
2055
+ ] }) : e.path.startsWith("#") ? /* @__PURE__ */ o.jsx(
2054
2056
  ir,
2055
2057
  {
2056
2058
  to: e.path,
@@ -2062,9 +2064,9 @@ const hs = () => {
2062
2064
  children: h
2063
2065
  }
2064
2066
  ) : /* @__PURE__ */ o.jsx(
2065
- ke,
2067
+ Fe,
2066
2068
  {
2067
- className: ({ isActive: p }) => Pe({ isActive: p }),
2069
+ className: ({ isActive: l }) => Pe({ isActive: l }),
2068
2070
  to: s,
2069
2071
  children: h
2070
2072
  }
@@ -2072,51 +2074,43 @@ const hs = () => {
2072
2074
  }, ms = ({
2073
2075
  category: t
2074
2076
  }) => {
2075
- const { activeAnchor: e } = Qe(), n = oa(), r = se(), a = t.collapsible ?? !0, [s, i] = Jn({
2077
+ const { activeAnchor: e } = Ue(), n = oa(), r = se(), a = t.collapsible ?? !0, s = Jn({
2076
2078
  item: t,
2077
2079
  path: (n == null ? void 0 : n.path) ?? "",
2078
- defaultOpen: () => !a || t.expanded || qe(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
2080
+ defaultOpen: () => !a || t.expanded || ze(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
2079
2081
  });
2080
- return /* @__PURE__ */ o.jsxs(
2081
- Tt,
2082
- {
2083
- open: s,
2084
- onOpenChange: () => i((u) => !u),
2085
- children: [
2086
- t.label.length > 0 ? /* @__PURE__ */ o.jsx(kt, { asChild: a, disabled: !a, children: /* @__PURE__ */ o.jsxs(
2087
- "h5",
2088
- {
2089
- className: P(
2090
- "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
2091
- a ? "hover:bg-accent" : "cursor-auto"
2092
- ),
2093
- children: [
2094
- t.label,
2095
- a && /* @__PURE__ */ o.jsx(
2096
- ze,
2097
- {
2098
- className: "group-data-[state=open]:rotate-90 transition",
2099
- size: 16
2100
- }
2101
- )
2102
- ]
2103
- }
2104
- ) }) : "Endpoints",
2105
- /* @__PURE__ */ o.jsx(Ft, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ o.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((u, d) => /* @__PURE__ */ o.jsx(
2106
- Zn,
2107
- {
2108
- category: t,
2109
- item: u,
2110
- activeAnchor: e,
2111
- currentTopNavItem: n,
2112
- basePath: $t(n == null ? void 0 : n.path, t.path)
2113
- },
2114
- d
2115
- )) }) })
2116
- ]
2117
- },
2118
- t.label
2119
- );
2082
+ return /* @__PURE__ */ o.jsxs(Tt, { ...s, children: [
2083
+ t.label.length > 0 ? /* @__PURE__ */ o.jsx(kt, { asChild: a, disabled: !a, children: /* @__PURE__ */ o.jsxs(
2084
+ "h5",
2085
+ {
2086
+ className: P(
2087
+ "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
2088
+ a ? "hover:bg-accent" : "cursor-auto"
2089
+ ),
2090
+ children: [
2091
+ t.label,
2092
+ a && /* @__PURE__ */ o.jsx(
2093
+ Ve,
2094
+ {
2095
+ className: "group-data-[state=open]:rotate-90 transition",
2096
+ size: 16
2097
+ }
2098
+ )
2099
+ ]
2100
+ }
2101
+ ) }) : "Endpoints",
2102
+ /* @__PURE__ */ o.jsx(Ft, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ o.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((i, u) => /* @__PURE__ */ o.jsx(
2103
+ Zn,
2104
+ {
2105
+ category: t,
2106
+ item: i,
2107
+ activeAnchor: e,
2108
+ currentTopNavItem: n,
2109
+ basePath: $t(n == null ? void 0 : n.path, t.path)
2110
+ },
2111
+ u
2112
+ )) }) })
2113
+ ] }, t.label);
2120
2114
  }, gs = Ur(function({ children: e, className: n, pushMainContent: r }, a) {
2121
2115
  return /* @__PURE__ */ o.jsx(
2122
2116
  "nav",
@@ -2131,7 +2125,7 @@ const hs = () => {
2131
2125
  }
2132
2126
  );
2133
2127
  }), vs = () => {
2134
- const t = Se(null), e = sa();
2128
+ const t = Ne(null), e = sa();
2135
2129
  return /* @__PURE__ */ o.jsx(
2136
2130
  gs,
2137
2131
  {
@@ -2141,13 +2135,13 @@ const hs = () => {
2141
2135
  }
2142
2136
  );
2143
2137
  }, xs = ({ children: t }) => {
2144
- const e = se(), { setActiveAnchor: n } = Qe(), { meta: r } = He();
2138
+ const e = se(), { setActiveAnchor: n } = Ue(), { meta: r } = qe();
2145
2139
  hs(), ps();
2146
- const a = Se(e.pathname);
2147
- return oe(() => {
2140
+ const a = Ne(e.pathname);
2141
+ return W(() => {
2148
2142
  e.pathname !== a.current && n(""), a.current = e.pathname;
2149
2143
  }, [e.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2150
- /* @__PURE__ */ o.jsxs($e, { titleTemplate: r == null ? void 0 : r.title, children: [
2144
+ /* @__PURE__ */ o.jsxs(Qe, { titleTemplate: r == null ? void 0 : r.title, children: [
2151
2145
  (r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
2152
2146
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
2153
2147
  ] }),
@@ -2174,13 +2168,13 @@ const hs = () => {
2174
2168
  }
2175
2169
  ) })
2176
2170
  ] });
2177
- }, Ds = cr, Is = xr, As = Wn, Os = xs, Ts = Be, ks = wr, Fs = da, Ls = Sa, Ks = Na, $s = Fe, Bs = $e;
2171
+ }, Ds = cr, As = xr, Is = Wn, Os = xs, Ts = Re, ks = wr, Fs = da, Ls = Sa, Ks = Na, $s = Le, Bs = Qe;
2178
2172
  export {
2179
2173
  Ls as Bootstrap,
2180
2174
  Ks as BootstrapStatic,
2181
2175
  $s as Button,
2182
- Is as Callout,
2183
- As as DevPortal,
2176
+ As as Callout,
2177
+ Is as DevPortal,
2184
2178
  Bs as Head,
2185
2179
  Os as Layout,
2186
2180
  Ts as Link,