zudoku 0.4.5-dev.0 → 0.4.5-dev.2

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.
@@ -6,8 +6,8 @@ var Io = (e, t, n) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writ
6
6
  var J = (e, t, n) => Io(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || ln("Cannot " + n);
7
7
  var x = (e, t, n) => (cn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ae = (e, t, n) => t.has(e) ? ln("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, r) => (cn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
8
  var lt = (e, t, n, r) => ({
9
- set _(o) {
10
- G(e, t, o, n);
9
+ set _(a) {
10
+ G(e, t, a, n);
11
11
  },
12
12
  get _() {
13
13
  return x(e, t, r);
@@ -16,7 +16,7 @@ var lt = (e, t, n, r) => ({
16
16
  import { H as Dn, a as Ot, M as Ao, u as ko, A as $o, b as Lo } from "./utils-BPHLKjns.js";
17
17
  import { d as Fo, a as Ho, R as Uo, N as We, L as It, u as Bo, O as jn, b as zo, c as At } from "./index-ChhUJhLT.js";
18
18
  import { E as Nn, S as Te, a as Ko, R as qo } from "./SlotletProvider-CRKX9y2Z.js";
19
- import { j as a } from "./jsx-runtime-B6kdoens.js";
19
+ import { j as o } from "./jsx-runtime-B6kdoens.js";
20
20
  import { M as Vo, c as Qo, a as Pn, b as Tn, A as Go, u as Ze, h as Wo, d as I, e as Yo, F as Xo, D as Jo, C as Zo, P as Ue, f as kt, g as ea, i as _n, R as ta, S as na, j as ra, k as oa, l as On, m as aa, n as pt, o as In, V as An, p as un, B as Dt } from "./index-KUt-5Yzq.js";
21
21
  import { c as Re, a as A, C as sa, b as kn, u as ia, T as la, M as ca, V as ua, d as $t, e as da, f as fa } from "./Markdown-Bg4SS0au.js";
22
22
  import * as h from "react";
@@ -117,7 +117,7 @@ const Xa = Re("Sun", [
117
117
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
118
118
  ]);
119
119
  function Ja({ error: e }) {
120
- return /* @__PURE__ */ a.jsx(Nn, { error: e });
120
+ return /* @__PURE__ */ o.jsx(Nn, { error: e });
121
121
  }
122
122
  var tt = {};
123
123
  const Za = /* @__PURE__ */ Ft(xa), es = /* @__PURE__ */ Ft(Fo), ts = /* @__PURE__ */ Ft(Ho);
@@ -146,7 +146,7 @@ function os({
146
146
  future: r
147
147
  }) {
148
148
  typeof n == "string" && (n = we.parsePath(n));
149
- let o = fe.Action.Pop, s = {
149
+ let a = fe.Action.Pop, s = {
150
150
  pathname: n.pathname || "/",
151
151
  search: n.search || "",
152
152
  hash: n.hash || "",
@@ -157,7 +157,7 @@ function os({
157
157
  basename: e,
158
158
  children: t,
159
159
  location: s,
160
- navigationType: o,
160
+ navigationType: a,
161
161
  navigator: i,
162
162
  future: r,
163
163
  static: !0
@@ -170,7 +170,7 @@ function as({
170
170
  nonce: r
171
171
  }) {
172
172
  t && e || (process.env.NODE_ENV !== "production" ? fe.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : fe.UNSAFE_invariant(!1));
173
- let o = {
173
+ let a = {
174
174
  router: t,
175
175
  navigator: Qn(),
176
176
  static: !0,
@@ -187,9 +187,9 @@ function as({
187
187
  }
188
188
  let {
189
189
  state: l
190
- } = o.router;
190
+ } = a.router;
191
191
  return /* @__PURE__ */ ue.createElement(ue.Fragment, null, /* @__PURE__ */ ue.createElement(we.UNSAFE_DataRouterContext.Provider, {
192
- value: o
192
+ value: a
193
193
  }, /* @__PURE__ */ ue.createElement(we.UNSAFE_DataRouterStateContext.Provider, {
194
194
  value: l
195
195
  }, /* @__PURE__ */ ue.createElement(we.UNSAFE_FetchersContext.Provider, {
@@ -199,11 +199,11 @@ function as({
199
199
  isTransitioning: !1
200
200
  }
201
201
  }, /* @__PURE__ */ ue.createElement(we.Router, {
202
- basename: o.basename,
202
+ basename: a.basename,
203
203
  location: l.location,
204
204
  navigationType: l.historyAction,
205
- navigator: o.navigator,
206
- static: o.static,
205
+ navigator: a.navigator,
206
+ static: a.static,
207
207
  future: {
208
208
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
209
209
  }
@@ -229,19 +229,19 @@ function ss({
229
229
  function is(e) {
230
230
  if (!e) return null;
231
231
  let t = Object.entries(e), n = {};
232
- for (let [r, o] of t)
233
- fe.isRouteErrorResponse(o) ? n[r] = {
234
- ...o,
232
+ for (let [r, a] of t)
233
+ fe.isRouteErrorResponse(a) ? n[r] = {
234
+ ...a,
235
235
  __type: "RouteErrorResponse"
236
- } : o instanceof Error ? n[r] = {
237
- message: o.message,
236
+ } : a instanceof Error ? n[r] = {
237
+ message: a.message,
238
238
  __type: "Error",
239
239
  // If this is a subclass (i.e., ReferenceError), send up the type so we
240
240
  // can re-create the same type during hydration.
241
- ...o.name !== "Error" ? {
242
- __subType: o.name
241
+ ...a.name !== "Error" ? {
242
+ __subType: a.name
243
243
  } : {}
244
- } : n[r] = o;
244
+ } : n[r] = a;
245
245
  return n;
246
246
  }
247
247
  function Qn() {
@@ -272,7 +272,7 @@ function ls(e, t) {
272
272
  });
273
273
  }
274
274
  function cs(e, t, n = {}) {
275
- let r = {}, o = fe.UNSAFE_convertRoutesToDataRoutes(e, Ut.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
275
+ let r = {}, a = fe.UNSAFE_convertRoutesToDataRoutes(e, Ut.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
276
276
  let u = r[l.route.id] || l.route;
277
277
  return {
278
278
  ...l,
@@ -312,7 +312,7 @@ function cs(e, t, n = {}) {
312
312
  };
313
313
  },
314
314
  get routes() {
315
- return o;
315
+ return a;
316
316
  },
317
317
  get window() {
318
318
  },
@@ -391,11 +391,11 @@ tt.createStaticRouter = cs;
391
391
  const ms = ({
392
392
  router: e,
393
393
  hydrate: t = !1
394
- }) => /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(Dn, { children: /* @__PURE__ */ a.jsx(jt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Uo, { router: e }) }) }) }), gs = ({
394
+ }) => /* @__PURE__ */ o.jsx($n, { children: /* @__PURE__ */ o.jsx(Dn, { children: /* @__PURE__ */ o.jsx(jt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ o.jsx(Uo, { router: e }) }) }) }), gs = ({
395
395
  router: e,
396
396
  context: t,
397
397
  helmetContext: n
398
- }) => /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(Dn, { context: n, children: /* @__PURE__ */ a.jsx(ps, { router: e, context: t }) }) });
398
+ }) => /* @__PURE__ */ o.jsx($n, { children: /* @__PURE__ */ o.jsx(Dn, { context: n, children: /* @__PURE__ */ o.jsx(ps, { router: e, context: t }) }) });
399
399
  var de, En, vs = (En = class extends Bn {
400
400
  constructor(t = {}) {
401
401
  super();
@@ -403,15 +403,15 @@ var de, En, vs = (En = class extends Bn {
403
403
  this.config = t, G(this, de, /* @__PURE__ */ new Map());
404
404
  }
405
405
  build(t, n, r) {
406
- const o = n.queryKey, s = n.queryHash ?? zn(o, n);
406
+ const a = n.queryKey, s = n.queryHash ?? zn(a, n);
407
407
  let i = this.get(s);
408
408
  return i || (i = new Sa({
409
409
  cache: this,
410
- queryKey: o,
410
+ queryKey: a,
411
411
  queryHash: s,
412
412
  options: t.defaultQueryOptions(n),
413
413
  state: r,
414
- defaultOptions: t.getQueryDefaults(o)
414
+ defaultOptions: t.getQueryDefaults(a)
415
415
  }), this.add(i)), i;
416
416
  }
417
417
  add(t) {
@@ -476,13 +476,13 @@ var de, En, vs = (En = class extends Bn {
476
476
  this.config = t, G(this, Z, /* @__PURE__ */ new Map()), G(this, Je, Date.now());
477
477
  }
478
478
  build(t, n, r) {
479
- const o = new Vo({
479
+ const a = new Vo({
480
480
  mutationCache: this,
481
481
  mutationId: ++lt(this, Je)._,
482
482
  options: t.defaultMutationOptions(n),
483
483
  state: r
484
484
  });
485
- return this.add(o), o;
485
+ return this.add(a), a;
486
486
  }
487
487
  add(t) {
488
488
  const n = ct(t), r = x(this, Z).get(n) ?? [];
@@ -492,19 +492,19 @@ var de, En, vs = (En = class extends Bn {
492
492
  var r;
493
493
  const n = ct(t);
494
494
  if (x(this, Z).has(n)) {
495
- const o = (r = x(this, Z).get(n)) == null ? void 0 : r.filter((s) => s !== t);
496
- o && (o.length === 0 ? x(this, Z).delete(n) : x(this, Z).set(n, o));
495
+ const a = (r = x(this, Z).get(n)) == null ? void 0 : r.filter((s) => s !== t);
496
+ a && (a.length === 0 ? x(this, Z).delete(n) : x(this, Z).set(n, a));
497
497
  }
498
498
  this.notify({ type: "removed", mutation: t });
499
499
  }
500
500
  canRun(t) {
501
501
  var r;
502
- const n = (r = x(this, Z).get(ct(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
502
+ const n = (r = x(this, Z).get(ct(t))) == null ? void 0 : r.find((a) => a.state.status === "pending");
503
503
  return !n || n === t;
504
504
  }
505
505
  runNext(t) {
506
506
  var r;
507
- const n = (r = x(this, Z).get(ct(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
507
+ const n = (r = x(this, Z).get(ct(t))) == null ? void 0 : r.find((a) => a !== t && a.state.isPaused);
508
508
  return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
509
509
  }
510
510
  clear() {
@@ -551,7 +551,7 @@ function xs(e) {
551
551
  onFetch: (t, n) => {
552
552
  const r = async () => {
553
553
  var b, R, K, H, Q;
554
- const o = t.options, s = (K = (R = (b = t.fetchOptions) == null ? void 0 : b.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : K.direction, i = ((H = t.state.data) == null ? void 0 : H.pages) || [], l = ((Q = t.state.data) == null ? void 0 : Q.pageParams) || [], u = { pages: [], pageParams: [] };
554
+ const a = t.options, s = (K = (R = (b = t.fetchOptions) == null ? void 0 : b.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : K.direction, i = ((H = t.state.data) == null ? void 0 : H.pages) || [], l = ((Q = t.state.data) == null ? void 0 : Q.pageParams) || [], u = { pages: [], pageParams: [] };
555
555
  let v = !1;
556
556
  const m = (y) => {
557
557
  Object.defineProperty(y, "signal", {
@@ -585,25 +585,25 @@ function xs(e) {
585
585
  const y = s === "backward", p = y ? ys : wn, C = {
586
586
  pages: i,
587
587
  pageParams: l
588
- }, N = p(o, C);
588
+ }, N = p(a, C);
589
589
  f = await d(C, N, y);
590
590
  } else {
591
591
  f = await d(
592
592
  u,
593
- l[0] ?? o.initialPageParam
593
+ l[0] ?? a.initialPageParam
594
594
  );
595
595
  const y = e ?? i.length;
596
596
  for (let p = 1; p < y; p++) {
597
- const C = wn(o, f);
597
+ const C = wn(a, f);
598
598
  f = await d(f, C);
599
599
  }
600
600
  }
601
601
  return f;
602
602
  };
603
603
  t.options.persister ? t.fetchFn = () => {
604
- var o, s;
605
- return (s = (o = t.options).persister) == null ? void 0 : s.call(
606
- o,
604
+ var a, s;
605
+ return (s = (a = t.options).persister) == null ? void 0 : s.call(
606
+ a,
607
607
  r,
608
608
  {
609
609
  queryKey: t.queryKey,
@@ -685,9 +685,9 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn, bs = (Rn = class {
685
685
  });
686
686
  }
687
687
  setQueryData(e, t, n) {
688
- const r = this.defaultQueryOptions({ queryKey: e }), o = x(this, $).get(
688
+ const r = this.defaultQueryOptions({ queryKey: e }), a = x(this, $).get(
689
689
  r.queryHash
690
- ), s = o == null ? void 0 : o.state.data, i = ja(t, s);
690
+ ), s = a == null ? void 0 : a.state.data, i = ja(t, s);
691
691
  if (i !== void 0)
692
692
  return x(this, $).build(this, r).setData(i, { ...n, manual: !0 });
693
693
  }
@@ -717,13 +717,13 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn, bs = (Rn = class {
717
717
  type: "active",
718
718
  ...e
719
719
  };
720
- return ee.batch(() => (n.findAll(e).forEach((o) => {
721
- o.reset();
720
+ return ee.batch(() => (n.findAll(e).forEach((a) => {
721
+ a.reset();
722
722
  }), this.refetchQueries(r, t)));
723
723
  }
724
724
  cancelQueries(e = {}, t = {}) {
725
725
  const n = { revert: !0, ...t }, r = ee.batch(
726
- () => x(this, $).findAll(e).map((o) => o.cancel(n))
726
+ () => x(this, $).findAll(e).map((a) => a.cancel(n))
727
727
  );
728
728
  return Promise.all(r).then(ve).catch(ve);
729
729
  }
@@ -745,9 +745,9 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn, bs = (Rn = class {
745
745
  ...t,
746
746
  cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
747
747
  }, r = ee.batch(
748
- () => x(this, $).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
749
- let s = o.fetch(void 0, n);
750
- return n.throwOnError || (s = s.catch(ve)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
748
+ () => x(this, $).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
749
+ let s = a.fetch(void 0, n);
750
+ return n.throwOnError || (s = s.catch(ve)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
751
751
  })
752
752
  );
753
753
  return Promise.all(r).then(ve);
@@ -855,7 +855,7 @@ class Ss extends ha {
855
855
  error: t
856
856
  } = this.state;
857
857
  if (t !== null) {
858
- for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
858
+ for (var n, r, a = arguments.length, s = new Array(a), i = 0; i < a; i++)
859
859
  s[i] = arguments[i];
860
860
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
861
861
  args: s,
@@ -864,19 +864,19 @@ class Ss extends ha {
864
864
  }
865
865
  }
866
866
  componentDidCatch(t, n) {
867
- var r, o;
868
- (r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
867
+ var r, a;
868
+ (r = (a = this.props).onError) === null || r === void 0 || r.call(a, t, n);
869
869
  }
870
870
  componentDidUpdate(t, n) {
871
871
  const {
872
872
  didCatch: r
873
873
  } = this.state, {
874
- resetKeys: o
874
+ resetKeys: a
875
875
  } = this.props;
876
- if (r && n.error !== null && Es(t.resetKeys, o)) {
876
+ if (r && n.error !== null && Es(t.resetKeys, a)) {
877
877
  var s, i;
878
878
  (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
879
- next: o,
879
+ next: a,
880
880
  prev: t.resetKeys,
881
881
  reason: "keys"
882
882
  }), this.setState(St);
@@ -887,7 +887,7 @@ class Ss extends ha {
887
887
  children: t,
888
888
  fallbackRender: n,
889
889
  FallbackComponent: r,
890
- fallback: o
890
+ fallback: a
891
891
  } = this.props, {
892
892
  didCatch: s,
893
893
  error: i
@@ -902,8 +902,8 @@ class Ss extends ha {
902
902
  l = n(u);
903
903
  else if (r)
904
904
  l = dn(r, u);
905
- else if (o === null || pa(o))
906
- l = o;
905
+ else if (a === null || pa(a))
906
+ l = a;
907
907
  else
908
908
  throw i;
909
909
  }
@@ -947,8 +947,8 @@ class _s {
947
947
  J(this, "getPluginSidebar", async (t) => (await Promise.all(
948
948
  this.navigationPlugins.map(
949
949
  (r) => {
950
- var o;
951
- return (o = r.getSidebar) == null ? void 0 : o.call(r, Ht(t));
950
+ var a;
951
+ return (a = r.getSidebar) == null ? void 0 : a.call(r, Ht(t));
952
952
  }
953
953
  )
954
954
  )).flatMap((r) => r ?? []));
@@ -962,7 +962,7 @@ class _s {
962
962
  }
963
963
  }
964
964
  function Os({ error: e, resetErrorBoundary: t }) {
965
- return /* @__PURE__ */ a.jsx(Nn, { error: e });
965
+ return /* @__PURE__ */ o.jsx(Nn, { error: e });
966
966
  }
967
967
  const ut = globalThis;
968
968
  (!ut.requestIdleCallback || !ut.cancelIdleCallback) && (ut.requestIdleCallback = (e) => setTimeout(e, 1), ut.cancelIdleCallback = clearTimeout);
@@ -977,7 +977,7 @@ var Nt = ["Enter", " "], Is = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp",
977
977
  Tn,
978
978
  qn
979
979
  ]), rt = Tn(), Zn = qn(), [er, De] = _e(nt), [Hs, ot] = _e(nt), tr = (e) => {
980
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = rt(t), [u, v] = h.useState(null), m = h.useRef(!1), c = kt(s), d = oa(o);
980
+ const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, l = rt(t), [u, v] = h.useState(null), m = h.useRef(!1), c = kt(s), d = oa(a);
981
981
  return h.useEffect(() => {
982
982
  const f = () => {
983
983
  m.current = !0, document.addEventListener("pointerdown", b, { capture: !0, once: !0 }), document.addEventListener("pointermove", b, { capture: !0, once: !0 });
@@ -985,7 +985,7 @@ var Nt = ["Enter", " "], Is = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp",
985
985
  return document.addEventListener("keydown", f, { capture: !0 }), () => {
986
986
  document.removeEventListener("keydown", f, { capture: !0 }), document.removeEventListener("pointerdown", b, { capture: !0 }), document.removeEventListener("pointermove", b, { capture: !0 });
987
987
  };
988
- }, []), /* @__PURE__ */ a.jsx(On, { ...l, children: /* @__PURE__ */ a.jsx(
988
+ }, []), /* @__PURE__ */ o.jsx(On, { ...l, children: /* @__PURE__ */ o.jsx(
989
989
  er,
990
990
  {
991
991
  scope: t,
@@ -993,7 +993,7 @@ var Nt = ["Enter", " "], Is = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp",
993
993
  onOpenChange: c,
994
994
  content: u,
995
995
  onContentChange: v,
996
- children: /* @__PURE__ */ a.jsx(
996
+ children: /* @__PURE__ */ o.jsx(
997
997
  Hs,
998
998
  {
999
999
  scope: t,
@@ -1010,34 +1010,34 @@ var Nt = ["Enter", " "], Is = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp",
1010
1010
  tr.displayName = nt;
1011
1011
  var Us = "MenuAnchor", Bt = h.forwardRef(
1012
1012
  (e, t) => {
1013
- const { __scopeMenu: n, ...r } = e, o = rt(n);
1014
- return /* @__PURE__ */ a.jsx(Go, { ...o, ...r, ref: t });
1013
+ const { __scopeMenu: n, ...r } = e, a = rt(n);
1014
+ return /* @__PURE__ */ o.jsx(Go, { ...a, ...r, ref: t });
1015
1015
  }
1016
1016
  );
1017
1017
  Bt.displayName = Us;
1018
1018
  var zt = "MenuPortal", [Bs, nr] = _e(zt, {
1019
1019
  forceMount: void 0
1020
1020
  }), rr = (e) => {
1021
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = De(zt, t);
1022
- return /* @__PURE__ */ a.jsx(Bs, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(vt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(aa, { asChild: !0, container: o, children: r }) }) });
1021
+ const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, s = De(zt, t);
1022
+ return /* @__PURE__ */ o.jsx(Bs, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(vt, { present: n || s.open, children: /* @__PURE__ */ o.jsx(aa, { asChild: !0, container: a, children: r }) }) });
1023
1023
  };
1024
1024
  rr.displayName = zt;
1025
1025
  var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
1026
1026
  (e, t) => {
1027
- const n = nr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = De(se, e.__scopeMenu), i = ot(se, e.__scopeMenu);
1028
- return /* @__PURE__ */ a.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(Ye.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(Ks, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(qs, { ...o, ref: t }) }) }) });
1027
+ const n = nr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = De(se, e.__scopeMenu), i = ot(se, e.__scopeMenu);
1028
+ return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(Ks, { ...a, ref: t }) : /* @__PURE__ */ o.jsx(qs, { ...a, ref: t }) }) }) });
1029
1029
  }
1030
1030
  ), Ks = h.forwardRef(
1031
1031
  (e, t) => {
1032
- const n = De(se, e.__scopeMenu), r = h.useRef(null), o = Ze(t, r);
1032
+ const n = De(se, e.__scopeMenu), r = h.useRef(null), a = Ze(t, r);
1033
1033
  return h.useEffect(() => {
1034
1034
  const s = r.current;
1035
1035
  if (s) return Wo(s);
1036
- }, []), /* @__PURE__ */ a.jsx(
1036
+ }, []), /* @__PURE__ */ o.jsx(
1037
1037
  qt,
1038
1038
  {
1039
1039
  ...e,
1040
- ref: o,
1040
+ ref: a,
1041
1041
  trapFocus: n.open,
1042
1042
  disableOutsidePointerEvents: n.open,
1043
1043
  disableOutsideScroll: !0,
@@ -1052,7 +1052,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
1052
1052
  }
1053
1053
  ), qs = h.forwardRef((e, t) => {
1054
1054
  const n = De(se, e.__scopeMenu);
1055
- return /* @__PURE__ */ a.jsx(
1055
+ return /* @__PURE__ */ o.jsx(
1056
1056
  qt,
1057
1057
  {
1058
1058
  ...e,
@@ -1068,7 +1068,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
1068
1068
  const {
1069
1069
  __scopeMenu: n,
1070
1070
  loop: r = !1,
1071
- trapFocus: o,
1071
+ trapFocus: a,
1072
1072
  onOpenAutoFocus: s,
1073
1073
  onCloseAutoFocus: i,
1074
1074
  disableOutsidePointerEvents: l,
@@ -1092,7 +1092,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
1092
1092
  var Y, ne;
1093
1093
  return q.current === ((Y = V.current) == null ? void 0 : Y.side) && ai(E, (ne = V.current) == null ? void 0 : ne.area);
1094
1094
  }, []);
1095
- return /* @__PURE__ */ a.jsx(
1095
+ return /* @__PURE__ */ o.jsx(
1096
1096
  zs,
1097
1097
  {
1098
1098
  scope: n,
@@ -1120,17 +1120,17 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
1120
1120
  onPointerGraceIntentChange: h.useCallback((E) => {
1121
1121
  V.current = E;
1122
1122
  }, []),
1123
- children: /* @__PURE__ */ a.jsx(Oe, { ...he, children: /* @__PURE__ */ a.jsx(
1123
+ children: /* @__PURE__ */ o.jsx(Oe, { ...he, children: /* @__PURE__ */ o.jsx(
1124
1124
  Xo,
1125
1125
  {
1126
1126
  asChild: !0,
1127
- trapped: o,
1127
+ trapped: a,
1128
1128
  onMountAutoFocus: I(s, (E) => {
1129
1129
  var U;
1130
1130
  E.preventDefault(), (U = P.current) == null || U.focus({ preventScroll: !0 });
1131
1131
  }),
1132
1132
  onUnmountAutoFocus: i,
1133
- children: /* @__PURE__ */ a.jsx(
1133
+ children: /* @__PURE__ */ o.jsx(
1134
1134
  Jo,
1135
1135
  {
1136
1136
  asChild: !0,
@@ -1140,7 +1140,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
1140
1140
  onFocusOutside: c,
1141
1141
  onInteractOutside: d,
1142
1142
  onDismiss: f,
1143
- children: /* @__PURE__ */ a.jsx(
1143
+ children: /* @__PURE__ */ o.jsx(
1144
1144
  Ia,
1145
1145
  {
1146
1146
  asChild: !0,
@@ -1154,7 +1154,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
1154
1154
  H.isUsingKeyboardRef.current || E.preventDefault();
1155
1155
  }),
1156
1156
  preventScrollOnEntryFocus: !0,
1157
- children: /* @__PURE__ */ a.jsx(
1157
+ children: /* @__PURE__ */ o.jsx(
1158
1158
  Zo,
1159
1159
  {
1160
1160
  role: "menu",
@@ -1204,30 +1204,30 @@ or.displayName = se;
1204
1204
  var Vs = "MenuGroup", Vt = h.forwardRef(
1205
1205
  (e, t) => {
1206
1206
  const { __scopeMenu: n, ...r } = e;
1207
- return /* @__PURE__ */ a.jsx(Ue.div, { role: "group", ...r, ref: t });
1207
+ return /* @__PURE__ */ o.jsx(Ue.div, { role: "group", ...r, ref: t });
1208
1208
  }
1209
1209
  );
1210
1210
  Vt.displayName = Vs;
1211
1211
  var Qs = "MenuLabel", ar = h.forwardRef(
1212
1212
  (e, t) => {
1213
1213
  const { __scopeMenu: n, ...r } = e;
1214
- return /* @__PURE__ */ a.jsx(Ue.div, { ...r, ref: t });
1214
+ return /* @__PURE__ */ o.jsx(Ue.div, { ...r, ref: t });
1215
1215
  }
1216
1216
  );
1217
1217
  ar.displayName = Qs;
1218
1218
  var mt = "MenuItem", xn = "menu.itemSelect", wt = h.forwardRef(
1219
1219
  (e, t) => {
1220
- const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = ot(mt, e.__scopeMenu), l = Kt(mt, e.__scopeMenu), u = Ze(t, s), v = h.useRef(!1), m = () => {
1220
+ const { disabled: n = !1, onSelect: r, ...a } = e, s = h.useRef(null), i = ot(mt, e.__scopeMenu), l = Kt(mt, e.__scopeMenu), u = Ze(t, s), v = h.useRef(!1), m = () => {
1221
1221
  const c = s.current;
1222
1222
  if (!n && c) {
1223
1223
  const d = new CustomEvent(xn, { bubbles: !0, cancelable: !0 });
1224
1224
  c.addEventListener(xn, (f) => r == null ? void 0 : r(f), { once: !0 }), ra(c, d), d.defaultPrevented ? v.current = !1 : i.onClose();
1225
1225
  }
1226
1226
  };
1227
- return /* @__PURE__ */ a.jsx(
1227
+ return /* @__PURE__ */ o.jsx(
1228
1228
  sr,
1229
1229
  {
1230
- ...o,
1230
+ ...a,
1231
1231
  ref: u,
1232
1232
  disabled: n,
1233
1233
  onClick: I(e.onClick, m),
@@ -1250,17 +1250,17 @@ var mt = "MenuItem", xn = "menu.itemSelect", wt = h.forwardRef(
1250
1250
  wt.displayName = mt;
1251
1251
  var sr = h.forwardRef(
1252
1252
  (e, t) => {
1253
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Kt(mt, n), l = Zn(n), u = h.useRef(null), v = Ze(t, u), [m, c] = h.useState(!1), [d, f] = h.useState("");
1253
+ const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = e, i = Kt(mt, n), l = Zn(n), u = h.useRef(null), v = Ze(t, u), [m, c] = h.useState(!1), [d, f] = h.useState("");
1254
1254
  return h.useEffect(() => {
1255
1255
  const b = u.current;
1256
1256
  b && f((b.textContent ?? "").trim());
1257
- }, [s.children]), /* @__PURE__ */ a.jsx(
1257
+ }, [s.children]), /* @__PURE__ */ o.jsx(
1258
1258
  Ye.ItemSlot,
1259
1259
  {
1260
1260
  scope: n,
1261
1261
  disabled: r,
1262
- textValue: o ?? d,
1263
- children: /* @__PURE__ */ a.jsx(Aa, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1262
+ textValue: a ?? d,
1263
+ children: /* @__PURE__ */ o.jsx(Aa, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ o.jsx(
1264
1264
  Ue.div,
1265
1265
  {
1266
1266
  role: "menuitem",
@@ -1288,17 +1288,17 @@ var sr = h.forwardRef(
1288
1288
  }
1289
1289
  ), Gs = "MenuCheckboxItem", ir = h.forwardRef(
1290
1290
  (e, t) => {
1291
- const { checked: n = !1, onCheckedChange: r, ...o } = e;
1292
- return /* @__PURE__ */ a.jsx(fr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1291
+ const { checked: n = !1, onCheckedChange: r, ...a } = e;
1292
+ return /* @__PURE__ */ o.jsx(fr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
1293
1293
  wt,
1294
1294
  {
1295
1295
  role: "menuitemcheckbox",
1296
1296
  "aria-checked": gt(n) ? "mixed" : n,
1297
- ...o,
1297
+ ...a,
1298
1298
  ref: t,
1299
1299
  "data-state": Wt(n),
1300
1300
  onSelect: I(
1301
- o.onSelect,
1301
+ a.onSelect,
1302
1302
  () => r == null ? void 0 : r(gt(n) ? !0 : !n),
1303
1303
  { checkForDefaultPrevented: !1 }
1304
1304
  )
@@ -1313,15 +1313,15 @@ var lr = "MenuRadioGroup", [Ws, Ys] = _e(
1313
1313
  } }
1314
1314
  ), cr = h.forwardRef(
1315
1315
  (e, t) => {
1316
- const { value: n, onValueChange: r, ...o } = e, s = kt(r);
1317
- return /* @__PURE__ */ a.jsx(Ws, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Vt, { ...o, ref: t }) });
1316
+ const { value: n, onValueChange: r, ...a } = e, s = kt(r);
1317
+ return /* @__PURE__ */ o.jsx(Ws, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(Vt, { ...a, ref: t }) });
1318
1318
  }
1319
1319
  );
1320
1320
  cr.displayName = lr;
1321
1321
  var ur = "MenuRadioItem", dr = h.forwardRef(
1322
1322
  (e, t) => {
1323
- const { value: n, ...r } = e, o = Ys(ur, e.__scopeMenu), s = n === o.value;
1324
- return /* @__PURE__ */ a.jsx(fr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1323
+ const { value: n, ...r } = e, a = Ys(ur, e.__scopeMenu), s = n === a.value;
1324
+ return /* @__PURE__ */ o.jsx(fr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
1325
1325
  wt,
1326
1326
  {
1327
1327
  role: "menuitemradio",
@@ -1333,7 +1333,7 @@ var ur = "MenuRadioItem", dr = h.forwardRef(
1333
1333
  r.onSelect,
1334
1334
  () => {
1335
1335
  var i;
1336
- return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
1336
+ return (i = a.onValueChange) == null ? void 0 : i.call(a, n);
1337
1337
  },
1338
1338
  { checkForDefaultPrevented: !1 }
1339
1339
  )
@@ -1347,15 +1347,15 @@ var Qt = "MenuItemIndicator", [fr, Xs] = _e(
1347
1347
  { checked: !1 }
1348
1348
  ), hr = h.forwardRef(
1349
1349
  (e, t) => {
1350
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = Xs(Qt, n);
1351
- return /* @__PURE__ */ a.jsx(
1350
+ const { __scopeMenu: n, forceMount: r, ...a } = e, s = Xs(Qt, n);
1351
+ return /* @__PURE__ */ o.jsx(
1352
1352
  vt,
1353
1353
  {
1354
1354
  present: r || gt(s.checked) || s.checked === !0,
1355
- children: /* @__PURE__ */ a.jsx(
1355
+ children: /* @__PURE__ */ o.jsx(
1356
1356
  Ue.span,
1357
1357
  {
1358
- ...o,
1358
+ ...a,
1359
1359
  ref: t,
1360
1360
  "data-state": Wt(s.checked)
1361
1361
  }
@@ -1368,7 +1368,7 @@ hr.displayName = Qt;
1368
1368
  var Js = "MenuSeparator", pr = h.forwardRef(
1369
1369
  (e, t) => {
1370
1370
  const { __scopeMenu: n, ...r } = e;
1371
- return /* @__PURE__ */ a.jsx(
1371
+ return /* @__PURE__ */ o.jsx(
1372
1372
  Ue.div,
1373
1373
  {
1374
1374
  role: "separator",
@@ -1382,14 +1382,14 @@ var Js = "MenuSeparator", pr = h.forwardRef(
1382
1382
  pr.displayName = Js;
1383
1383
  var Zs = "MenuArrow", mr = h.forwardRef(
1384
1384
  (e, t) => {
1385
- const { __scopeMenu: n, ...r } = e, o = rt(n);
1386
- return /* @__PURE__ */ a.jsx(ea, { ...o, ...r, ref: t });
1385
+ const { __scopeMenu: n, ...r } = e, a = rt(n);
1386
+ return /* @__PURE__ */ o.jsx(ea, { ...a, ...r, ref: t });
1387
1387
  }
1388
1388
  );
1389
1389
  mr.displayName = Zs;
1390
1390
  var Gt = "MenuSub", [ei, gr] = _e(Gt), vr = (e) => {
1391
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = De(Gt, t), i = rt(t), [l, u] = h.useState(null), [v, m] = h.useState(null), c = kt(o);
1392
- return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(On, { ...i, children: /* @__PURE__ */ a.jsx(
1391
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s = De(Gt, t), i = rt(t), [l, u] = h.useState(null), [v, m] = h.useState(null), c = kt(a);
1392
+ return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ o.jsx(On, { ...i, children: /* @__PURE__ */ o.jsx(
1393
1393
  er,
1394
1394
  {
1395
1395
  scope: t,
@@ -1397,7 +1397,7 @@ var Gt = "MenuSub", [ei, gr] = _e(Gt), vr = (e) => {
1397
1397
  onOpenChange: c,
1398
1398
  content: v,
1399
1399
  onContentChange: m,
1400
- children: /* @__PURE__ */ a.jsx(
1400
+ children: /* @__PURE__ */ o.jsx(
1401
1401
  ei,
1402
1402
  {
1403
1403
  scope: t,
@@ -1414,7 +1414,7 @@ var Gt = "MenuSub", [ei, gr] = _e(Gt), vr = (e) => {
1414
1414
  vr.displayName = Gt;
1415
1415
  var Qe = "MenuSubTrigger", wr = h.forwardRef(
1416
1416
  (e, t) => {
1417
- const n = De(Qe, e.__scopeMenu), r = ot(Qe, e.__scopeMenu), o = gr(Qe, e.__scopeMenu), s = Kt(Qe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, v = { __scopeMenu: e.__scopeMenu }, m = h.useCallback(() => {
1417
+ const n = De(Qe, e.__scopeMenu), r = ot(Qe, e.__scopeMenu), a = gr(Qe, e.__scopeMenu), s = Kt(Qe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, v = { __scopeMenu: e.__scopeMenu }, m = h.useCallback(() => {
1418
1418
  i.current && window.clearTimeout(i.current), i.current = null;
1419
1419
  }, []);
1420
1420
  return h.useEffect(() => m, [m]), h.useEffect(() => {
@@ -1422,16 +1422,16 @@ var Qe = "MenuSubTrigger", wr = h.forwardRef(
1422
1422
  return () => {
1423
1423
  window.clearTimeout(c), u(null);
1424
1424
  };
1425
- }, [l, u]), /* @__PURE__ */ a.jsx(Bt, { asChild: !0, ...v, children: /* @__PURE__ */ a.jsx(
1425
+ }, [l, u]), /* @__PURE__ */ o.jsx(Bt, { asChild: !0, ...v, children: /* @__PURE__ */ o.jsx(
1426
1426
  sr,
1427
1427
  {
1428
- id: o.triggerId,
1428
+ id: a.triggerId,
1429
1429
  "aria-haspopup": "menu",
1430
1430
  "aria-expanded": n.open,
1431
- "aria-controls": o.contentId,
1431
+ "aria-controls": a.contentId,
1432
1432
  "data-state": br(n.open),
1433
1433
  ...e,
1434
- ref: _n(t, o.onTriggerChange),
1434
+ ref: _n(t, a.onTriggerChange),
1435
1435
  onClick: (c) => {
1436
1436
  var d;
1437
1437
  (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
@@ -1485,13 +1485,13 @@ var Qe = "MenuSubTrigger", wr = h.forwardRef(
1485
1485
  wr.displayName = Qe;
1486
1486
  var xr = "MenuSubContent", yr = h.forwardRef(
1487
1487
  (e, t) => {
1488
- const n = nr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = De(se, e.__scopeMenu), i = ot(se, e.__scopeMenu), l = gr(xr, e.__scopeMenu), u = h.useRef(null), v = Ze(t, u);
1489
- return /* @__PURE__ */ a.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(Ye.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1488
+ const n = nr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = De(se, e.__scopeMenu), i = ot(se, e.__scopeMenu), l = gr(xr, e.__scopeMenu), u = h.useRef(null), v = Ze(t, u);
1489
+ return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1490
1490
  qt,
1491
1491
  {
1492
1492
  id: l.contentId,
1493
1493
  "aria-labelledby": l.triggerId,
1494
- ...o,
1494
+ ...a,
1495
1495
  ref: v,
1496
1496
  align: "start",
1497
1497
  side: i.dir === "rtl" ? "left" : "right",
@@ -1537,22 +1537,22 @@ function ni(e, t) {
1537
1537
  return e.map((n, r) => e[(t + r) % e.length]);
1538
1538
  }
1539
1539
  function ri(e, t, n) {
1540
- const o = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1540
+ const a = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1541
1541
  let i = ni(e, Math.max(s, 0));
1542
- o.length === 1 && (i = i.filter((v) => v !== n));
1542
+ a.length === 1 && (i = i.filter((v) => v !== n));
1543
1543
  const u = i.find(
1544
- (v) => v.toLowerCase().startsWith(o.toLowerCase())
1544
+ (v) => v.toLowerCase().startsWith(a.toLowerCase())
1545
1545
  );
1546
1546
  return u !== n ? u : void 0;
1547
1547
  }
1548
1548
  function oi(e, t) {
1549
1549
  const { x: n, y: r } = e;
1550
- let o = !1;
1550
+ let a = !1;
1551
1551
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1552
1552
  const l = t[s].x, u = t[s].y, v = t[i].x, m = t[i].y;
1553
- u > r != m > r && n < (v - l) * (r - u) / (m - u) + l && (o = !o);
1553
+ u > r != m > r && n < (v - l) * (r - u) / (m - u) + l && (a = !a);
1554
1554
  }
1555
- return o;
1555
+ return a;
1556
1556
  }
1557
1557
  function ai(e, t) {
1558
1558
  if (!t) return !1;
@@ -1570,16 +1570,16 @@ var si = tr, ii = Bt, li = rr, ci = or, ui = Vt, di = ar, fi = wt, hi = ir, pi =
1570
1570
  __scopeDropdownMenu: t,
1571
1571
  children: n,
1572
1572
  dir: r,
1573
- open: o,
1573
+ open: a,
1574
1574
  defaultOpen: s,
1575
1575
  onOpenChange: i,
1576
1576
  modal: l = !0
1577
1577
  } = e, u = W(t), v = h.useRef(null), [m = !1, c] = In({
1578
- prop: o,
1578
+ prop: a,
1579
1579
  defaultProp: s,
1580
1580
  onChange: i
1581
1581
  });
1582
- return /* @__PURE__ */ a.jsx(
1582
+ return /* @__PURE__ */ o.jsx(
1583
1583
  Si,
1584
1584
  {
1585
1585
  scope: t,
@@ -1590,15 +1590,15 @@ var si = tr, ii = Bt, li = rr, ci = or, ui = Vt, di = ar, fi = wt, hi = ir, pi =
1590
1590
  onOpenChange: c,
1591
1591
  onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1592
1592
  modal: l,
1593
- children: /* @__PURE__ */ a.jsx(si, { ...u, open: m, onOpenChange: c, dir: r, modal: l, children: n })
1593
+ children: /* @__PURE__ */ o.jsx(si, { ...u, open: m, onOpenChange: c, dir: r, modal: l, children: n })
1594
1594
  }
1595
1595
  );
1596
1596
  };
1597
1597
  Sr.displayName = Yt;
1598
1598
  var Er = "DropdownMenuTrigger", Cr = h.forwardRef(
1599
1599
  (e, t) => {
1600
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Mr(Er, n), i = W(n);
1601
- return /* @__PURE__ */ a.jsx(ii, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1600
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = Mr(Er, n), i = W(n);
1601
+ return /* @__PURE__ */ o.jsx(ii, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
1602
1602
  Ue.button,
1603
1603
  {
1604
1604
  type: "button",
@@ -1609,7 +1609,7 @@ var Er = "DropdownMenuTrigger", Cr = h.forwardRef(
1609
1609
  "data-state": s.open ? "open" : "closed",
1610
1610
  "data-disabled": r ? "" : void 0,
1611
1611
  disabled: r,
1612
- ...o,
1612
+ ...a,
1613
1613
  ref: _n(t, s.triggerRef),
1614
1614
  onPointerDown: I(e.onPointerDown, (l) => {
1615
1615
  !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
@@ -1624,27 +1624,27 @@ var Er = "DropdownMenuTrigger", Cr = h.forwardRef(
1624
1624
  Cr.displayName = Er;
1625
1625
  var Ei = "DropdownMenuPortal", Rr = (e) => {
1626
1626
  const { __scopeDropdownMenu: t, ...n } = e, r = W(t);
1627
- return /* @__PURE__ */ a.jsx(li, { ...r, ...n });
1627
+ return /* @__PURE__ */ o.jsx(li, { ...r, ...n });
1628
1628
  };
1629
1629
  Rr.displayName = Ei;
1630
1630
  var Dr = "DropdownMenuContent", jr = h.forwardRef(
1631
1631
  (e, t) => {
1632
- const { __scopeDropdownMenu: n, ...r } = e, o = Mr(Dr, n), s = W(n), i = h.useRef(!1);
1633
- return /* @__PURE__ */ a.jsx(
1632
+ const { __scopeDropdownMenu: n, ...r } = e, a = Mr(Dr, n), s = W(n), i = h.useRef(!1);
1633
+ return /* @__PURE__ */ o.jsx(
1634
1634
  ci,
1635
1635
  {
1636
- id: o.contentId,
1637
- "aria-labelledby": o.triggerId,
1636
+ id: a.contentId,
1637
+ "aria-labelledby": a.triggerId,
1638
1638
  ...s,
1639
1639
  ...r,
1640
1640
  ref: t,
1641
1641
  onCloseAutoFocus: I(e.onCloseAutoFocus, (l) => {
1642
1642
  var u;
1643
- i.current || (u = o.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1643
+ i.current || (u = a.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1644
1644
  }),
1645
1645
  onInteractOutside: I(e.onInteractOutside, (l) => {
1646
1646
  const u = l.detail.originalEvent, v = u.button === 0 && u.ctrlKey === !0, m = u.button === 2 || v;
1647
- (!o.modal || m) && (i.current = !0);
1647
+ (!a.modal || m) && (i.current = !0);
1648
1648
  }),
1649
1649
  style: {
1650
1650
  ...e.style,
@@ -1661,75 +1661,75 @@ var Dr = "DropdownMenuContent", jr = h.forwardRef(
1661
1661
  jr.displayName = Dr;
1662
1662
  var Ci = "DropdownMenuGroup", Ri = h.forwardRef(
1663
1663
  (e, t) => {
1664
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1665
- return /* @__PURE__ */ a.jsx(ui, { ...o, ...r, ref: t });
1664
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1665
+ return /* @__PURE__ */ o.jsx(ui, { ...a, ...r, ref: t });
1666
1666
  }
1667
1667
  );
1668
1668
  Ri.displayName = Ci;
1669
1669
  var Di = "DropdownMenuLabel", Nr = h.forwardRef(
1670
1670
  (e, t) => {
1671
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1672
- return /* @__PURE__ */ a.jsx(di, { ...o, ...r, ref: t });
1671
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1672
+ return /* @__PURE__ */ o.jsx(di, { ...a, ...r, ref: t });
1673
1673
  }
1674
1674
  );
1675
1675
  Nr.displayName = Di;
1676
1676
  var ji = "DropdownMenuItem", Pr = h.forwardRef(
1677
1677
  (e, t) => {
1678
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1679
- return /* @__PURE__ */ a.jsx(fi, { ...o, ...r, ref: t });
1678
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1679
+ return /* @__PURE__ */ o.jsx(fi, { ...a, ...r, ref: t });
1680
1680
  }
1681
1681
  );
1682
1682
  Pr.displayName = ji;
1683
1683
  var Ni = "DropdownMenuCheckboxItem", Tr = h.forwardRef((e, t) => {
1684
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1685
- return /* @__PURE__ */ a.jsx(hi, { ...o, ...r, ref: t });
1684
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1685
+ return /* @__PURE__ */ o.jsx(hi, { ...a, ...r, ref: t });
1686
1686
  });
1687
1687
  Tr.displayName = Ni;
1688
1688
  var Pi = "DropdownMenuRadioGroup", Ti = h.forwardRef((e, t) => {
1689
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1690
- return /* @__PURE__ */ a.jsx(pi, { ...o, ...r, ref: t });
1689
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1690
+ return /* @__PURE__ */ o.jsx(pi, { ...a, ...r, ref: t });
1691
1691
  });
1692
1692
  Ti.displayName = Pi;
1693
1693
  var _i = "DropdownMenuRadioItem", _r = h.forwardRef((e, t) => {
1694
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1695
- return /* @__PURE__ */ a.jsx(mi, { ...o, ...r, ref: t });
1694
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1695
+ return /* @__PURE__ */ o.jsx(mi, { ...a, ...r, ref: t });
1696
1696
  });
1697
1697
  _r.displayName = _i;
1698
1698
  var Oi = "DropdownMenuItemIndicator", Or = h.forwardRef((e, t) => {
1699
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1700
- return /* @__PURE__ */ a.jsx(gi, { ...o, ...r, ref: t });
1699
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1700
+ return /* @__PURE__ */ o.jsx(gi, { ...a, ...r, ref: t });
1701
1701
  });
1702
1702
  Or.displayName = Oi;
1703
1703
  var Ii = "DropdownMenuSeparator", Ir = h.forwardRef((e, t) => {
1704
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1705
- return /* @__PURE__ */ a.jsx(vi, { ...o, ...r, ref: t });
1704
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1705
+ return /* @__PURE__ */ o.jsx(vi, { ...a, ...r, ref: t });
1706
1706
  });
1707
1707
  Ir.displayName = Ii;
1708
1708
  var Ai = "DropdownMenuArrow", ki = h.forwardRef(
1709
1709
  (e, t) => {
1710
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1711
- return /* @__PURE__ */ a.jsx(wi, { ...o, ...r, ref: t });
1710
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1711
+ return /* @__PURE__ */ o.jsx(wi, { ...a, ...r, ref: t });
1712
1712
  }
1713
1713
  );
1714
1714
  ki.displayName = Ai;
1715
1715
  var $i = (e) => {
1716
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = W(t), [l = !1, u] = In({
1716
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, i = W(t), [l = !1, u] = In({
1717
1717
  prop: r,
1718
1718
  defaultProp: s,
1719
- onChange: o
1719
+ onChange: a
1720
1720
  });
1721
- return /* @__PURE__ */ a.jsx(xi, { ...i, open: l, onOpenChange: u, children: n });
1721
+ return /* @__PURE__ */ o.jsx(xi, { ...i, open: l, onOpenChange: u, children: n });
1722
1722
  }, Li = "DropdownMenuSubTrigger", Ar = h.forwardRef((e, t) => {
1723
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1724
- return /* @__PURE__ */ a.jsx(yi, { ...o, ...r, ref: t });
1723
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1724
+ return /* @__PURE__ */ o.jsx(yi, { ...a, ...r, ref: t });
1725
1725
  });
1726
1726
  Ar.displayName = Li;
1727
1727
  var Fi = "DropdownMenuSubContent", kr = h.forwardRef((e, t) => {
1728
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
1729
- return /* @__PURE__ */ a.jsx(
1728
+ const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1729
+ return /* @__PURE__ */ o.jsx(
1730
1730
  bi,
1731
1731
  {
1732
- ...o,
1732
+ ...a,
1733
1733
  ...r,
1734
1734
  ref: t,
1735
1735
  style: {
@@ -1745,10 +1745,10 @@ var Fi = "DropdownMenuSubContent", kr = h.forwardRef((e, t) => {
1745
1745
  });
1746
1746
  kr.displayName = Fi;
1747
1747
  var Hi = Sr, Ui = Cr, $r = Rr, Lr = jr, Fr = Nr, Hr = Pr, Ur = Tr, Br = _r, zr = Or, Kr = Ir, Bi = $i, qr = Ar, Vr = kr;
1748
- const zi = Hi, Ki = Ui, qi = $r, Vi = Bi, Qr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1748
+ const zi = Hi, Ki = Ui, qi = $r, Vi = Bi, Qr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1749
1749
  qr,
1750
1750
  {
1751
- ref: o,
1751
+ ref: a,
1752
1752
  className: A(
1753
1753
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1754
1754
  t && "pl-8",
@@ -1757,12 +1757,12 @@ const zi = Hi, Ki = Ui, qi = $r, Vi = Bi, Qr = h.forwardRef(({ className: e, ins
1757
1757
  ...r,
1758
1758
  children: [
1759
1759
  n,
1760
- /* @__PURE__ */ a.jsx(Vn, { className: "ml-auto h-4 w-4" })
1760
+ /* @__PURE__ */ o.jsx(Vn, { className: "ml-auto h-4 w-4" })
1761
1761
  ]
1762
1762
  }
1763
1763
  ));
1764
1764
  Qr.displayName = qr.displayName;
1765
- const Gr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1765
+ const Gr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
1766
1766
  Vr,
1767
1767
  {
1768
1768
  ref: n,
@@ -1774,7 +1774,7 @@ const Gr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1774
1774
  }
1775
1775
  ));
1776
1776
  Gr.displayName = Vr.displayName;
1777
- const Wr = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx($r, { children: /* @__PURE__ */ a.jsx(
1777
+ const Wr = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ o.jsx($r, { children: /* @__PURE__ */ o.jsx(
1778
1778
  Lr,
1779
1779
  {
1780
1780
  ref: r,
@@ -1788,7 +1788,7 @@ const Wr = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
1788
1788
  }
1789
1789
  ) }));
1790
1790
  Wr.displayName = Lr.displayName;
1791
- const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1791
+ const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
1792
1792
  Hr,
1793
1793
  {
1794
1794
  ref: r,
@@ -1801,10 +1801,10 @@ const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1801
1801
  }
1802
1802
  ));
1803
1803
  Yr.displayName = Hr.displayName;
1804
- const Qi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1804
+ const Qi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1805
1805
  Ur,
1806
1806
  {
1807
- ref: o,
1807
+ ref: a,
1808
1808
  className: A(
1809
1809
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1810
1810
  e
@@ -1812,13 +1812,13 @@ const Qi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
1812
1812
  checked: n,
1813
1813
  ...r,
1814
1814
  children: [
1815
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(zr, { children: /* @__PURE__ */ a.jsx(sa, { className: "h-4 w-4" }) }) }),
1815
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(zr, { children: /* @__PURE__ */ o.jsx(sa, { className: "h-4 w-4" }) }) }),
1816
1816
  t
1817
1817
  ]
1818
1818
  }
1819
1819
  ));
1820
1820
  Qi.displayName = Ur.displayName;
1821
- const Gi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1821
+ const Gi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ o.jsxs(
1822
1822
  Br,
1823
1823
  {
1824
1824
  ref: r,
@@ -1828,13 +1828,13 @@ const Gi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
1828
1828
  ),
1829
1829
  ...n,
1830
1830
  children: [
1831
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(zr, { children: /* @__PURE__ */ a.jsx(qa, { className: "h-4 w-4 fill-current" }) }) }),
1831
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(zr, { children: /* @__PURE__ */ o.jsx(qa, { className: "h-4 w-4 fill-current" }) }) }),
1832
1832
  t
1833
1833
  ]
1834
1834
  }
1835
1835
  ));
1836
1836
  Gi.displayName = Br.displayName;
1837
- const Xr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1837
+ const Xr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
1838
1838
  Fr,
1839
1839
  {
1840
1840
  ref: r,
@@ -1847,7 +1847,7 @@ const Xr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1847
1847
  }
1848
1848
  ));
1849
1849
  Xr.displayName = Fr.displayName;
1850
- const Jr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1850
+ const Jr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
1851
1851
  Kr,
1852
1852
  {
1853
1853
  ref: n,
@@ -1981,7 +1981,7 @@ function rl() {
1981
1981
  }
1982
1982
  let d = c.changedTouches[0].pageY, f = e.scrollTop, b = e.scrollHeight - e.clientHeight;
1983
1983
  b !== 0 && ((f <= 0 && d > t || f >= b && d < t) && c.preventDefault(), t = d);
1984
- }, o = (c) => {
1984
+ }, a = (c) => {
1985
1985
  let d = c.target;
1986
1986
  Tt(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1987
1987
  d.style.transform = "";
@@ -2005,7 +2005,7 @@ function rl() {
2005
2005
  }), qe(document, "touchmove", r, {
2006
2006
  passive: !1,
2007
2007
  capture: !0
2008
- }), qe(document, "touchend", o, {
2008
+ }), qe(document, "touchend", a, {
2009
2009
  passive: !1,
2010
2010
  capture: !0
2011
2011
  }), qe(document, "focus", s, !0), qe(window, "scroll", i));
@@ -2029,9 +2029,9 @@ function bn(e) {
2029
2029
  for (; e && e !== t; ) {
2030
2030
  let n = to(e);
2031
2031
  if (n !== document.documentElement && n !== document.body && n !== e) {
2032
- let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
2032
+ let r = n.getBoundingClientRect().top, a = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
2033
2033
  const i = n.getBoundingClientRect().bottom;
2034
- s > i && (n.scrollTop += o - r);
2034
+ s > i && (n.scrollTop += a - r);
2035
2035
  }
2036
2036
  e = n.parentElement;
2037
2037
  }
@@ -2049,7 +2049,7 @@ function ro(...e) {
2049
2049
  return h.useCallback(al(...e), e);
2050
2050
  }
2051
2051
  let Ve = null;
2052
- function sl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2052
+ function sl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: a, noBodyStyles: s }) {
2053
2053
  const [i, l] = g.useState(() => typeof window < "u" ? window.location.href : ""), u = g.useRef(0), v = g.useCallback(() => {
2054
2054
  if (Ve === null && e && !s) {
2055
2055
  Ve = {
@@ -2076,7 +2076,7 @@ function sl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
2076
2076
  if (Ve !== null && !s) {
2077
2077
  const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
2078
2078
  Object.assign(document.body.style, Ve), window.requestAnimationFrame(() => {
2079
- if (o && i !== window.location.href) {
2079
+ if (a && i !== window.location.href) {
2080
2080
  l(window.location.href);
2081
2081
  return;
2082
2082
  }
@@ -2113,19 +2113,19 @@ const oo = /* @__PURE__ */ new WeakMap();
2113
2113
  function O(e, t, n = !1) {
2114
2114
  if (!e || !(e instanceof HTMLElement)) return;
2115
2115
  let r = {};
2116
- Object.entries(t).forEach(([o, s]) => {
2117
- if (o.startsWith("--")) {
2118
- e.style.setProperty(o, s);
2116
+ Object.entries(t).forEach(([a, s]) => {
2117
+ if (a.startsWith("--")) {
2118
+ e.style.setProperty(a, s);
2119
2119
  return;
2120
2120
  }
2121
- r[o] = e.style[o], e.style[o] = s;
2121
+ r[a] = e.style[a], e.style[a] = s;
2122
2122
  }), !n && oo.set(e, r);
2123
2123
  }
2124
2124
  function ft(e, t) {
2125
2125
  if (!e || !(e instanceof HTMLElement)) return;
2126
2126
  let n = oo.get(e);
2127
- n && (t ? e.style[t] = n[t] : Object.entries(n).forEach(([r, o]) => {
2128
- e.style[r] = o;
2127
+ n && (t ? e.style[t] = n[t] : Object.entries(n).forEach(([r, a]) => {
2128
+ e.style[r] = a;
2129
2129
  }));
2130
2130
  }
2131
2131
  const z = (e) => {
@@ -2147,8 +2147,8 @@ function ht(e, t) {
2147
2147
  // @ts-ignore
2148
2148
  n.transform || n.webkitTransform || n.mozTransform
2149
2149
  );
2150
- let o = r.match(/^matrix3d\((.+)\)$/);
2151
- return o ? parseFloat(o[1].split(", ")[z(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[z(t) ? 5 : 4]) : null);
2150
+ let a = r.match(/^matrix3d\((.+)\)$/);
2151
+ return a ? parseFloat(a[1].split(", ")[z(t) ? 13 : 12]) : (a = r.match(/^matrix\((.+)\)$/), a ? parseFloat(a[1].split(", ")[z(t) ? 5 : 4]) : null);
2152
2152
  }
2153
2153
  function il(e) {
2154
2154
  return 8 * (Math.log(e + 1) - 2);
@@ -2169,18 +2169,18 @@ function so(e) {
2169
2169
  }), g.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2170
2170
  }
2171
2171
  function ll({ defaultProp: e, onChange: t }) {
2172
- const n = g.useState(e), [r] = n, o = g.useRef(r), s = so(t);
2172
+ const n = g.useState(e), [r] = n, a = g.useRef(r), s = so(t);
2173
2173
  return g.useEffect(() => {
2174
- o.current !== r && (s(r), o.current = r);
2174
+ a.current !== r && (s(r), a.current = r);
2175
2175
  }, [
2176
2176
  r,
2177
- o,
2177
+ a,
2178
2178
  s
2179
2179
  ]), n;
2180
2180
  }
2181
2181
  function cl({ prop: e, defaultProp: t, onChange: n = () => {
2182
2182
  } }) {
2183
- const [r, o] = ll({
2183
+ const [r, a] = ll({
2184
2184
  defaultProp: t,
2185
2185
  onChange: n
2186
2186
  }), s = e !== void 0, i = s ? e : r, l = so(n), u = g.useCallback((v) => {
@@ -2188,11 +2188,11 @@ function cl({ prop: e, defaultProp: t, onChange: n = () => {
2188
2188
  const c = typeof v == "function" ? v(e) : v;
2189
2189
  c !== e && l(c);
2190
2190
  } else
2191
- o(v);
2191
+ a(v);
2192
2192
  }, [
2193
2193
  s,
2194
2194
  e,
2195
- o,
2195
+ a,
2196
2196
  l
2197
2197
  ]);
2198
2198
  return [
@@ -2200,7 +2200,7 @@ function cl({ prop: e, defaultProp: t, onChange: n = () => {
2200
2200
  u
2201
2201
  ];
2202
2202
  }
2203
- function ul({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom" }) {
2203
+ function ul({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: a, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom" }) {
2204
2204
  const [u, v] = cl({
2205
2205
  prop: e,
2206
2206
  defaultProp: n == null ? void 0 : n[0],
@@ -2234,10 +2234,10 @@ function ul({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2234
2234
  i(C), O(r.current, {
2235
2235
  transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2236
2236
  transform: z(l) ? `translate3d(0, ${y}px, 0)` : `translate3d(${y}px, 0, 0)`
2237
- }), f && C !== f.length - 1 && C !== s ? O(o.current, {
2237
+ }), f && C !== f.length - 1 && C !== s ? O(a.current, {
2238
2238
  transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2239
2239
  opacity: "0"
2240
- }) : O(o.current, {
2240
+ }) : O(a.current, {
2241
2241
  transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2242
2242
  opacity: "1"
2243
2243
  }), v(C !== null ? n == null ? void 0 : n[C] : null);
@@ -2246,7 +2246,7 @@ function ul({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2246
2246
  n,
2247
2247
  f,
2248
2248
  s,
2249
- o,
2249
+ a,
2250
2250
  v
2251
2251
  ]);
2252
2252
  g.useEffect(() => {
@@ -2265,7 +2265,7 @@ function ul({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2265
2265
  function K({ draggedDistance: y, closeDrawer: p, velocity: C, dismissible: N }) {
2266
2266
  if (s === void 0) return;
2267
2267
  const P = l === "bottom" || l === "right" ? (b ?? 0) - y : (b ?? 0) + y, _ = d === s - 1, w = d === 0, L = y > 0;
2268
- if (_ && O(o.current, {
2268
+ if (_ && O(a.current, {
2269
2269
  transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
2270
2270
  }), C > 2 && !L) {
2271
2271
  N ? p() : R(f[0]);
@@ -2318,7 +2318,7 @@ function ul({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2318
2318
  };
2319
2319
  }
2320
2320
  const dl = 0.25, fl = 100, Mn = 8, Pe = 16, Sn = 26, Rt = "vaul-dragging";
2321
- function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, onDrag: o, onRelease: s, snapPoints: i, nested: l = !1, setBackgroundColorOnScale: u = !0, closeThreshold: v = dl, scrollLockTimeout: m = fl, dismissible: c = !0, handleOnly: d = !1, fadeFromIndex: f = i && i.length - 1, activeSnapPoint: b, setActiveSnapPoint: R, fixed: K, modal: H = !0, onClose: Q, noBodyStyles: y, direction: p = "bottom", preventScrollRestoration: C = !0, disablePreventScroll: N = !1 }) {
2321
+ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, onDrag: a, onRelease: s, snapPoints: i, nested: l = !1, setBackgroundColorOnScale: u = !0, closeThreshold: v = dl, scrollLockTimeout: m = fl, dismissible: c = !0, handleOnly: d = !1, fadeFromIndex: f = i && i.length - 1, activeSnapPoint: b, setActiveSnapPoint: R, fixed: K, modal: H = !0, onClose: Q, noBodyStyles: y, direction: p = "bottom", preventScrollRestoration: C = !0, disablePreventScroll: N = !1 }) {
2322
2322
  var P;
2323
2323
  const [_ = !1, w] = g.useState(!1), [L, te] = g.useState(!1), [V, q] = g.useState(!1), [X, Oe] = g.useState(!1), [he, Be] = g.useState(!1), [ye, E] = g.useState(!1), U = g.useRef(null), Y = g.useRef(null), ne = g.useRef(null), je = g.useRef(null), pe = g.useRef(null), be = g.useRef(!1), me = g.useRef(null), le = g.useRef(0), ge = g.useRef(!1), re = g.useRef(0), M = g.useRef(null), tn = g.useRef(((P = M.current) == null ? void 0 : P.getBoundingClientRect().height) || 0), yt = g.useRef(0), yo = g.useCallback((S) => {
2324
2324
  i && S === Ke.length - 1 && (Y.current = /* @__PURE__ */ new Date());
@@ -2401,7 +2401,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
2401
2401
  return;
2402
2402
  }
2403
2403
  const st = 1 - ce;
2404
- if ((rn || f && ze === f - 1) && (o == null || o(S, ce), O(U.current, {
2404
+ if ((rn || f && ze === f - 1) && (a == null || a(S, ce), O(U.current, {
2405
2405
  opacity: `${st}`,
2406
2406
  transition: "none"
2407
2407
  }, !0)), oe && U.current && r) {
@@ -2663,7 +2663,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
2663
2663
  }, n));
2664
2664
  }
2665
2665
  const hl = 250, pl = 120, lo = /* @__PURE__ */ g.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2666
- const { visible: o, closeDrawer: s, isDragging: i, snapPoints: l, activeSnapPoint: u, setActiveSnapPoint: v, dismissible: m, handleOnly: c, onPress: d, onDrag: f } = xt(), b = g.useRef(null), R = g.useRef(!1);
2666
+ const { visible: a, closeDrawer: s, isDragging: i, snapPoints: l, activeSnapPoint: u, setActiveSnapPoint: v, dismissible: m, handleOnly: c, onPress: d, onDrag: f } = xt(), b = g.useRef(null), R = g.useRef(!1);
2667
2667
  function K() {
2668
2668
  if (R.current) {
2669
2669
  y();
@@ -2713,7 +2713,7 @@ const hl = 250, pl = 120, lo = /* @__PURE__ */ g.forwardRef(function({ preventCy
2713
2713
  },
2714
2714
  // onPointerUp is already handled by the content component
2715
2715
  ref: r,
2716
- "vaul-drawer-visible": o ? "true" : "false",
2716
+ "vaul-drawer-visible": a ? "true" : "false",
2717
2717
  "vaul-handle": "",
2718
2718
  "aria-hidden": "true",
2719
2719
  ...n
@@ -2724,7 +2724,7 @@ const hl = 250, pl = 120, lo = /* @__PURE__ */ g.forwardRef(function({ preventCy
2724
2724
  });
2725
2725
  lo.displayName = "Drawer.Handle";
2726
2726
  const co = /* @__PURE__ */ g.forwardRef(function({ children: e, ...t }, n) {
2727
- const { overlayRef: r, snapPoints: o, onRelease: s, shouldFade: i, isOpen: l, visible: u } = xt(), v = ro(n, r), m = o && o.length > 0;
2727
+ const { overlayRef: r, snapPoints: a, onRelease: s, shouldFade: i, isOpen: l, visible: u } = xt(), v = ro(n, r), m = a && a.length > 0;
2728
2728
  return /* @__PURE__ */ g.createElement(ka, {
2729
2729
  onMouseUp: s,
2730
2730
  ref: v,
@@ -2736,7 +2736,7 @@ const co = /* @__PURE__ */ g.forwardRef(function({ children: e, ...t }, n) {
2736
2736
  });
2737
2737
  });
2738
2738
  co.displayName = "Drawer.Overlay";
2739
- const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointerDownOutside: t, onAnimationEnd: n, style: r, ...o }, s) {
2739
+ const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointerDownOutside: t, onAnimationEnd: n, style: r, ...a }, s) {
2740
2740
  const { drawerRef: i, onPress: l, onRelease: u, onDrag: v, dismissible: m, keyboardIsOpen: c, snapPointsOffset: d, visible: f, closeDrawer: b, modal: R, openProp: K, onOpenChange: H, setVisible: Q, handleOnly: y, direction: p } = xt(), C = ro(s, i), N = g.useRef(null), P = g.useRef(!1), _ = (w, L, te = 0) => {
2741
2741
  if (P.current) return !0;
2742
2742
  const V = Math.abs(w.y), q = Math.abs(w.x), X = q > V, Oe = [
@@ -2756,7 +2756,7 @@ const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointer
2756
2756
  "vaul-drawer": "",
2757
2757
  "vaul-drawer-direction": p,
2758
2758
  "vaul-drawer-visible": f ? "true" : "false",
2759
- ...o,
2759
+ ...a,
2760
2760
  ref: C,
2761
2761
  style: d && d.length > 0 ? {
2762
2762
  "--snap-point-height": `${d[0]}px`,
@@ -2771,7 +2771,7 @@ const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointer
2771
2771
  }
2772
2772
  },
2773
2773
  onPointerDown: (w) => {
2774
- y || (o.onPointerDown == null || o.onPointerDown.call(o, w), N.current = {
2774
+ y || (a.onPointerDown == null || a.onPointerDown.call(a, w), N.current = {
2775
2775
  x: w.clientX,
2776
2776
  y: w.clientY
2777
2777
  }, l(w));
@@ -2796,7 +2796,7 @@ const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointer
2796
2796
  }
2797
2797
  },
2798
2798
  onPointerMove: (w) => {
2799
- if (y || (o.onPointerMove == null || o.onPointerMove.call(o, w), !N.current)) return;
2799
+ if (y || (a.onPointerMove == null || a.onPointerMove.call(a, w), !N.current)) return;
2800
2800
  const L = w.clientY - N.current.y, te = w.clientX - N.current.x, V = w.pointerType === "touch" ? 10 : 2;
2801
2801
  _({
2802
2802
  x: te,
@@ -2804,25 +2804,25 @@ const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointer
2804
2804
  }, p, V) ? v(w) : (Math.abs(te) > V || Math.abs(L) > V) && (N.current = null);
2805
2805
  },
2806
2806
  onPointerUp: (w) => {
2807
- o.onPointerUp == null || o.onPointerUp.call(o, w), N.current = null, P.current = !1, u(w);
2807
+ a.onPointerUp == null || a.onPointerUp.call(a, w), N.current = null, P.current = !1, u(w);
2808
2808
  }
2809
2809
  });
2810
2810
  });
2811
2811
  uo.displayName = "Drawer.Content";
2812
2812
  function ml({ onDrag: e, onOpenChange: t, ...n }) {
2813
- const { onNestedDrag: r, onNestedOpenChange: o, onNestedRelease: s } = xt();
2813
+ const { onNestedDrag: r, onNestedOpenChange: a, onNestedRelease: s } = xt();
2814
2814
  if (!r)
2815
2815
  throw new Error("Drawer.NestedRoot must be placed in another drawer");
2816
2816
  return /* @__PURE__ */ g.createElement(io, {
2817
2817
  nested: !0,
2818
2818
  onClose: () => {
2819
- o(!1);
2819
+ a(!1);
2820
2820
  },
2821
2821
  onDrag: (i, l) => {
2822
2822
  r(i, l), e == null || e(i, l);
2823
2823
  },
2824
2824
  onOpenChange: (i) => {
2825
- i && o(i), t == null || t(i);
2825
+ i && a(i), t == null || t(i);
2826
2826
  },
2827
2827
  onRelease: s,
2828
2828
  ...n
@@ -2842,7 +2842,7 @@ const ie = {
2842
2842
  }, Jt = ({
2843
2843
  shouldScaleBackground: e = !0,
2844
2844
  ...t
2845
- }) => /* @__PURE__ */ a.jsx(
2845
+ }) => /* @__PURE__ */ o.jsx(
2846
2846
  ie.Root,
2847
2847
  {
2848
2848
  shouldScaleBackground: e,
@@ -2850,7 +2850,7 @@ const ie = {
2850
2850
  }
2851
2851
  );
2852
2852
  Jt.displayName = "Drawer";
2853
- const fo = ie.Trigger, gl = ie.Portal, vl = ie.Close, ho = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2853
+ const fo = ie.Trigger, gl = ie.Portal, vl = ie.Close, ho = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
2854
2854
  ie.Overlay,
2855
2855
  {
2856
2856
  ref: n,
@@ -2859,26 +2859,26 @@ const fo = ie.Trigger, gl = ie.Portal, vl = ie.Close, ho = h.forwardRef(({ class
2859
2859
  }
2860
2860
  ));
2861
2861
  ho.displayName = ie.Overlay.displayName;
2862
- const Zt = h.forwardRef(({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(gl, { children: [
2863
- /* @__PURE__ */ a.jsx(ho, {}),
2864
- /* @__PURE__ */ a.jsxs(
2862
+ const Zt = h.forwardRef(({ className: e, children: t, hideBar: n = !0, ...r }, a) => /* @__PURE__ */ o.jsxs(gl, { children: [
2863
+ /* @__PURE__ */ o.jsx(ho, {}),
2864
+ /* @__PURE__ */ o.jsxs(
2865
2865
  ie.Content,
2866
2866
  {
2867
- ref: o,
2867
+ ref: a,
2868
2868
  className: A(
2869
2869
  "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2870
2870
  e
2871
2871
  ),
2872
2872
  ...r,
2873
2873
  children: [
2874
- !n && /* @__PURE__ */ a.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2874
+ !n && /* @__PURE__ */ o.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2875
2875
  t
2876
2876
  ]
2877
2877
  }
2878
2878
  )
2879
2879
  ] }));
2880
2880
  Zt.displayName = "DrawerContent";
2881
- const en = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2881
+ const en = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
2882
2882
  ie.Title,
2883
2883
  {
2884
2884
  ref: n,
@@ -2890,7 +2890,7 @@ const en = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2890
2890
  }
2891
2891
  ));
2892
2892
  en.displayName = ie.Title.displayName;
2893
- const wl = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2893
+ const wl = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
2894
2894
  ie.Description,
2895
2895
  {
2896
2896
  ref: n,
@@ -2901,16 +2901,16 @@ const wl = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2901
2901
  wl.displayName = ie.Description.displayName;
2902
2902
  const xl = () => {
2903
2903
  const { topNavigation: e } = et();
2904
- return /* @__PURE__ */ a.jsxs(Jt, { direction: "right", children: [
2905
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(fo, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Qa, { size: 22 }) }) }),
2906
- /* @__PURE__ */ a.jsxs(
2904
+ return /* @__PURE__ */ o.jsxs(Jt, { direction: "right", children: [
2905
+ /* @__PURE__ */ o.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ o.jsx(fo, { className: "lg:hidden", children: /* @__PURE__ */ o.jsx(Qa, { size: 22 }) }) }),
2906
+ /* @__PURE__ */ o.jsxs(
2907
2907
  Zt,
2908
2908
  {
2909
2909
  className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
2910
2910
  "aria-describedby": void 0,
2911
2911
  children: [
2912
- /* @__PURE__ */ a.jsx(An, { children: /* @__PURE__ */ a.jsx(en, { children: "Navigation" }) }),
2913
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2912
+ /* @__PURE__ */ o.jsx(An, { children: /* @__PURE__ */ o.jsx(en, { children: "Navigation" }) }),
2913
+ /* @__PURE__ */ o.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
2914
2914
  We,
2915
2915
  {
2916
2916
  className: ({ isActive: n }) => kn(
@@ -2918,7 +2918,7 @@ const xl = () => {
2918
2918
  n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2919
2919
  ),
2920
2920
  to: t.id,
2921
- children: /* @__PURE__ */ a.jsx(vl, { children: t.label })
2921
+ children: /* @__PURE__ */ o.jsx(vl, { children: t.label })
2922
2922
  }
2923
2923
  ) }, t.label)) })
2924
2924
  ]
@@ -2937,31 +2937,31 @@ const xl = () => {
2937
2937
  window.removeEventListener("keydown", s);
2938
2938
  };
2939
2939
  }, [t, n]);
2940
- const o = e.plugins.find(Ds);
2941
- return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2942
- /* @__PURE__ */ a.jsxs(
2940
+ const a = e.plugins.find(Ds);
2941
+ return a ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2942
+ /* @__PURE__ */ o.jsxs(
2943
2943
  "button",
2944
2944
  {
2945
2945
  type: "button",
2946
2946
  onClick: () => n(!0),
2947
2947
  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",
2948
2948
  children: [
2949
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2950
- /* @__PURE__ */ a.jsx(Ya, { size: 14 }),
2949
+ /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2950
+ /* @__PURE__ */ o.jsx(Ya, { size: 14 }),
2951
2951
  "Search"
2952
2952
  ] }),
2953
- /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
2953
+ /* @__PURE__ */ o.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
2954
2954
  ]
2955
2955
  }
2956
2956
  ),
2957
- /* @__PURE__ */ a.jsx(Hn, { fallback: null, children: o.renderSearch({
2957
+ /* @__PURE__ */ o.jsx(Hn, { fallback: null, children: a.renderSearch({
2958
2958
  isOpen: t,
2959
2959
  onClose: r
2960
2960
  }) })
2961
2961
  ] }) : null;
2962
2962
  }, bl = () => {
2963
2963
  const { topNavigation: e } = et();
2964
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2964
+ return e.length <= 1 ? /* @__PURE__ */ o.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ o.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
2965
2965
  We,
2966
2966
  {
2967
2967
  className: ({ isActive: n }) => kn(
@@ -2972,70 +2972,73 @@ const xl = () => {
2972
2972
  children: t.label
2973
2973
  }
2974
2974
  ) }, t.label)) }) });
2975
- }, po = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(Vi, { children: [
2976
- /* @__PURE__ */ a.jsx(Qr, { children: e.label }),
2977
- /* @__PURE__ */ a.jsx(qi, { children: /* @__PURE__ */ a.jsx(Gr, { children: e.children.map((t, n) => (
2975
+ }, po = ({ item: e }) => e.children ? /* @__PURE__ */ o.jsxs(Vi, { children: [
2976
+ /* @__PURE__ */ o.jsx(Qr, { children: e.label }),
2977
+ /* @__PURE__ */ o.jsx(qi, { children: /* @__PURE__ */ o.jsx(Gr, { children: e.children.map((t, n) => (
2978
2978
  // eslint-disable-next-line react/no-array-index-key
2979
- /* @__PURE__ */ a.jsx(po, { item: t }, n)
2979
+ /* @__PURE__ */ o.jsx(po, { item: t }, n)
2980
2980
  )) }) })
2981
- ] }, e.label) : /* @__PURE__ */ a.jsx(It, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(Yr, { children: e.label }, e.label) }), mo = Un(function() {
2982
- const t = un(), [n, r] = ia(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = un(), l = et(), { page: u, plugins: v } = l, m = v.filter((d) => Cs(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(po, { item: d }, d.label)), c = n ? Ga : Xa;
2983
- return /* @__PURE__ */ a.jsx("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
2984
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
2985
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(It, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
2986
- (u == null ? void 0 : u.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2987
- /* @__PURE__ */ a.jsx(
2988
- "img",
2989
- {
2990
- src: u.logo.src.light,
2991
- alt: u.logo.alt ?? u.pageTitle,
2992
- style: { width: u.logo.width },
2993
- className: A("h-10", n && "hidden"),
2994
- loading: "lazy"
2995
- }
2996
- ),
2997
- /* @__PURE__ */ a.jsx(
2998
- "img",
2999
- {
3000
- src: u.logo.src.dark,
3001
- alt: u.logo.alt ?? u.pageTitle,
3002
- style: { width: u.logo.width },
3003
- className: A("h-10", !n && "hidden"),
3004
- loading: "lazy"
3005
- }
3006
- )
3007
- ] }),
3008
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
3009
- ] }) }) }),
3010
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
3011
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(yl, {}) }),
3012
- /* @__PURE__ */ a.jsx(xl, {}),
3013
- /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3014
- /* @__PURE__ */ a.jsx(Te, { name: "head-navigation-start" }),
3015
- i && !o ? /* @__PURE__ */ a.jsx(Dt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : m.length > 0 && /* @__PURE__ */ a.jsxs(zi, { modal: !1, children: [
3016
- /* @__PURE__ */ a.jsx(Ki, { asChild: !0, children: /* @__PURE__ */ a.jsx(Dt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3017
- /* @__PURE__ */ a.jsxs(Wr, { className: "w-56", children: [
3018
- /* @__PURE__ */ a.jsx(Xr, { children: "My Account" }),
3019
- /* @__PURE__ */ a.jsx(Jr, {}),
3020
- m
3021
- ] })
2981
+ ] }, e.label) : /* @__PURE__ */ o.jsx(It, { to: e.path ?? "", children: /* @__PURE__ */ o.jsx(Yr, { children: e.label }, e.label) }), mo = Un(function() {
2982
+ const t = un(), [n, r] = ia(), { isAuthenticated: a, profile: s, isAuthEnabled: i } = un(), l = et(), { page: u, plugins: v } = l, m = v.filter((d) => Cs(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ o.jsx(po, { item: d }, d.label)), c = n ? Ga : Xa;
2983
+ return /* @__PURE__ */ o.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
2984
+ /* @__PURE__ */ o.jsx(o.Fragment, { children: u != null && u.banner ? /* @__PURE__ */ o.jsx("div", { className: "h-[--banner-height] bg-primary/90 text-primary-foreground text-center text-sm font-medium py-2 flex items-center justify-center", children: /* @__PURE__ */ o.jsx("div", { children: u.banner.message }) }) : /* @__PURE__ */ o.jsx("style", { children: ":root{--banner-height: 0}" }) }),
2985
+ /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
2986
+ /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
2987
+ /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(It, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
2988
+ (u == null ? void 0 : u.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2989
+ /* @__PURE__ */ o.jsx(
2990
+ "img",
2991
+ {
2992
+ src: u.logo.src.light,
2993
+ alt: u.logo.alt ?? u.pageTitle,
2994
+ style: { width: u.logo.width },
2995
+ className: A("h-10", n && "hidden"),
2996
+ loading: "lazy"
2997
+ }
2998
+ ),
2999
+ /* @__PURE__ */ o.jsx(
3000
+ "img",
3001
+ {
3002
+ src: u.logo.src.dark,
3003
+ alt: u.logo.alt ?? u.pageTitle,
3004
+ style: { width: u.logo.width },
3005
+ className: A("h-10", !n && "hidden"),
3006
+ loading: "lazy"
3007
+ }
3008
+ )
3022
3009
  ] }),
3023
- /* @__PURE__ */ a.jsx(
3024
- "button",
3025
- {
3026
- type: "button",
3027
- "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
3028
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
3029
- onClick: r,
3030
- children: /* @__PURE__ */ a.jsx(c, { size: 18 })
3031
- }
3032
- ),
3033
- /* @__PURE__ */ a.jsx(Te, { name: "head-navigation-end" })
3010
+ /* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
3011
+ ] }) }) }),
3012
+ /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
3013
+ /* @__PURE__ */ o.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ o.jsx(yl, {}) }),
3014
+ /* @__PURE__ */ o.jsx(xl, {}),
3015
+ /* @__PURE__ */ o.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3016
+ /* @__PURE__ */ o.jsx(Te, { name: "head-navigation-start" }),
3017
+ i && !a ? /* @__PURE__ */ o.jsx(Dt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : m.length > 0 && /* @__PURE__ */ o.jsxs(zi, { modal: !1, children: [
3018
+ /* @__PURE__ */ o.jsx(Ki, { asChild: !0, children: /* @__PURE__ */ o.jsx(Dt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3019
+ /* @__PURE__ */ o.jsxs(Wr, { className: "w-56", children: [
3020
+ /* @__PURE__ */ o.jsx(Xr, { children: "My Account" }),
3021
+ /* @__PURE__ */ o.jsx(Jr, {}),
3022
+ m
3023
+ ] })
3024
+ ] }),
3025
+ /* @__PURE__ */ o.jsx(
3026
+ "button",
3027
+ {
3028
+ type: "button",
3029
+ "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
3030
+ className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
3031
+ onClick: r,
3032
+ children: /* @__PURE__ */ o.jsx(c, { size: 18 })
3033
+ }
3034
+ ),
3035
+ /* @__PURE__ */ o.jsx(Te, { name: "head-navigation-end" })
3036
+ ] })
3034
3037
  ] })
3035
- ] })
3036
- ] }),
3037
- /* @__PURE__ */ a.jsx(bl, {})
3038
- ] }) });
3038
+ ] }),
3039
+ /* @__PURE__ */ o.jsx(bl, {})
3040
+ ] })
3041
+ ] });
3039
3042
  }), go = {
3040
3043
  Header: mo
3041
3044
  }, Ml = Ln(go), Sl = Ml.Provider, El = (e) => {
@@ -3047,15 +3050,15 @@ const xl = () => {
3047
3050
  const r = Fn(() => {
3048
3051
  const s = !t;
3049
3052
  document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
3050
- }, [t]), o = [t, r];
3051
- return /* @__PURE__ */ a.jsx(la.Provider, { value: o, ...e });
3053
+ }, [t]), a = [t, r];
3054
+ return /* @__PURE__ */ o.jsx(la.Provider, { value: a, ...e });
3052
3055
  }, Cl = ({
3053
3056
  children: e,
3054
3057
  context: t
3055
3058
  }) => (Pa({
3056
3059
  queryFn: async () => (await t.initialize(), !0),
3057
3060
  queryKey: ["zudoku-initialize"]
3058
- }), /* @__PURE__ */ a.jsx(Ta.Provider, { value: t, children: e })), Rl = ({
3061
+ }), /* @__PURE__ */ o.jsx(Ta.Provider, { value: t, children: e })), Rl = ({
3059
3062
  children: e,
3060
3063
  ...t
3061
3064
  }) => {
@@ -3072,52 +3075,52 @@ const xl = () => {
3072
3075
  ...ca,
3073
3076
  ...(b = t.mdx) == null ? void 0 : b.components
3074
3077
  };
3075
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = ga(jt), [s, i] = He(!1), l = bt(
3076
- () => s ? { stagger: !0 } : { stagger: o },
3077
- [o, s]
3078
+ }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: a } = ga(jt), [s, i] = He(!1), l = bt(
3079
+ () => s ? { stagger: !0 } : { stagger: a },
3080
+ [a, s]
3078
3081
  ), u = Bo();
3079
3082
  xe(() => {
3080
3083
  s || i(!0);
3081
3084
  }, [s, u.location]);
3082
3085
  const [v] = He(() => new _s(t)), m = (d = t.plugins) == null ? void 0 : d.filter(Ns).map((f, b) => {
3083
3086
  var R;
3084
- return /* @__PURE__ */ a.jsx(va, { children: (R = f.getHead) == null ? void 0 : R.call(f) }, b);
3087
+ return /* @__PURE__ */ o.jsx(va, { children: (R = f.getHead) == null ? void 0 : R.call(f) }, b);
3085
3088
  });
3086
- return /* @__PURE__ */ a.jsxs(_a, { client: Yn, children: [
3087
- /* @__PURE__ */ a.jsx(Ot, { children: m }),
3088
- /* @__PURE__ */ a.jsx(jt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(Cl, { context: v, children: /* @__PURE__ */ a.jsx(Ao, { components: r, children: /* @__PURE__ */ a.jsx(El, { children: /* @__PURE__ */ a.jsx(Sl, { value: n, children: /* @__PURE__ */ a.jsx(Ko, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(ua, { children: e ?? /* @__PURE__ */ a.jsx(jn, {}) }) }) }) }) }) }) })
3089
+ return /* @__PURE__ */ o.jsxs(_a, { client: Yn, children: [
3090
+ /* @__PURE__ */ o.jsx(Ot, { children: m }),
3091
+ /* @__PURE__ */ o.jsx(jt.Provider, { value: l, children: /* @__PURE__ */ o.jsx(Cl, { context: v, children: /* @__PURE__ */ o.jsx(Ao, { components: r, children: /* @__PURE__ */ o.jsx(El, { children: /* @__PURE__ */ o.jsx(Sl, { value: n, children: /* @__PURE__ */ o.jsx(Ko, { slotlets: t.slotlets, children: /* @__PURE__ */ o.jsx(ua, { children: e ?? /* @__PURE__ */ o.jsx(jn, {}) }) }) }) }) }) }) })
3089
3092
  ] });
3090
- }, Dl = Un(Rl), vo = (e) => /* @__PURE__ */ a.jsx(Ss, { FallbackComponent: Os, children: /* @__PURE__ */ a.jsx(Dl, { ...e }) });
3093
+ }, Dl = Un(Rl), vo = (e) => /* @__PURE__ */ o.jsx(Ss, { FallbackComponent: Os, children: /* @__PURE__ */ o.jsx(Dl, { ...e }) });
3091
3094
  vo.displayName = "DevPortal";
3092
3095
  const jl = ({
3093
3096
  category: e,
3094
3097
  level: t
3095
3098
  }) => {
3096
3099
  var d;
3097
- const n = Kn(), r = ko(e), [o, s] = He(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [v, m] = He(u);
3100
+ const n = Kn(), r = ko(e), [a, s] = He(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [v, m] = He(u);
3098
3101
  xe(() => {
3099
3102
  r && m(!0);
3100
3103
  }, [r]);
3101
- const c = i && /* @__PURE__ */ a.jsx(
3104
+ const c = i && /* @__PURE__ */ o.jsx(
3102
3105
  "button",
3103
3106
  {
3104
3107
  type: "button",
3105
3108
  onClick: (f) => {
3106
3109
  f.preventDefault(), m((b) => !b), s(!0);
3107
3110
  },
3108
- children: /* @__PURE__ */ a.jsx(
3111
+ children: /* @__PURE__ */ o.jsx(
3109
3112
  Vn,
3110
3113
  {
3111
3114
  size: 16,
3112
3115
  className: A(
3113
- o && "transition",
3116
+ a && "transition",
3114
3117
  "shrink-0 group-data-[state=open]:rotate-90"
3115
3118
  )
3116
3119
  }
3117
3120
  )
3118
3121
  }
3119
3122
  );
3120
- return /* @__PURE__ */ a.jsxs(
3123
+ return /* @__PURE__ */ o.jsxs(
3121
3124
  ya,
3122
3125
  {
3123
3126
  className: A("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
@@ -3125,7 +3128,7 @@ const jl = ({
3125
3128
  open: v,
3126
3129
  onOpenChange: () => m(!0),
3127
3130
  children: [
3128
- /* @__PURE__ */ a.jsx(
3131
+ /* @__PURE__ */ o.jsx(
3129
3132
  ba,
3130
3133
  {
3131
3134
  className: A(
@@ -3135,7 +3138,7 @@ const jl = ({
3135
3138
  ),
3136
3139
  asChild: !0,
3137
3140
  disabled: !i,
3138
- children: ((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ a.jsx(We, { to: Ht(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: f }) => /* @__PURE__ */ a.jsxs(
3141
+ children: ((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ o.jsx(We, { to: Ht(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: f }) => /* @__PURE__ */ o.jsxs(
3139
3142
  "div",
3140
3143
  {
3141
3144
  className: A(
@@ -3143,25 +3146,25 @@ const jl = ({
3143
3146
  f ? "text-primary font-medium" : "text-foreground/80"
3144
3147
  ),
3145
3148
  children: [
3146
- /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
3149
+ /* @__PURE__ */ o.jsx("div", { className: "truncate", children: e.label }),
3147
3150
  c
3148
3151
  ]
3149
3152
  }
3150
- ) }) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3151
- /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3153
+ ) }) : /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3154
+ /* @__PURE__ */ o.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3152
3155
  c
3153
3156
  ] })
3154
3157
  }
3155
3158
  ),
3156
- /* @__PURE__ */ a.jsx(
3159
+ /* @__PURE__ */ o.jsx(
3157
3160
  Ma,
3158
3161
  {
3159
3162
  className: A(
3160
3163
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3161
- o && "CollapsibleContent",
3164
+ a && "CollapsibleContent",
3162
3165
  "ms-[calc(var(--padding-nav-item)*1.125)]"
3163
3166
  ),
3164
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((f) => /* @__PURE__ */ a.jsx(
3167
+ children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((f) => /* @__PURE__ */ o.jsx(
3165
3168
  _t,
3166
3169
  {
3167
3170
  level: t + 1,
@@ -3195,27 +3198,27 @@ const jl = ({
3195
3198
  item: e,
3196
3199
  level: t = 0
3197
3200
  }) => {
3198
- const n = Kn(), { activeAnchor: r } = $t(), [o] = zo();
3201
+ const n = Kn(), { activeAnchor: r } = $t(), [a] = zo();
3199
3202
  switch (e.type) {
3200
3203
  case "category":
3201
- return /* @__PURE__ */ a.jsx(jl, { category: e, level: t });
3204
+ return /* @__PURE__ */ o.jsx(jl, { category: e, level: t });
3202
3205
  case "doc":
3203
- return /* @__PURE__ */ a.jsx(
3206
+ return /* @__PURE__ */ o.jsx(
3204
3207
  We,
3205
3208
  {
3206
3209
  className: ({ isActive: s }) => Ge({ isActive: s, isTopLevel: t === 0 }),
3207
3210
  to: Ht(n == null ? void 0 : n.id, e.id),
3208
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3209
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3210
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3211
+ children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3212
+ /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3213
+ /* @__PURE__ */ o.jsx(Mt, { ...e.badge })
3211
3214
  ] }) : e.label
3212
3215
  }
3213
3216
  );
3214
3217
  case "link":
3215
- return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
3218
+ return e.href.startsWith("#") ? /* @__PURE__ */ o.jsx(
3216
3219
  $o,
3217
3220
  {
3218
- to: { hash: e.href, search: o.toString() },
3221
+ to: { hash: e.href, search: a.toString() },
3219
3222
  [wo]: e.href.slice(1),
3220
3223
  className: A(
3221
3224
  "flex gap-2.5 justify-between",
@@ -3224,12 +3227,12 @@ const jl = ({
3224
3227
  isActive: e.href.slice(1) === r
3225
3228
  })
3226
3229
  ),
3227
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3228
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3229
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3230
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3230
+ children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3231
+ /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3232
+ /* @__PURE__ */ o.jsx(Mt, { ...e.badge })
3233
+ ] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
3231
3234
  }
3232
- ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
3235
+ ) : e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
3233
3236
  "a",
3234
3237
  {
3235
3238
  className: A(
@@ -3240,22 +3243,22 @@ const jl = ({
3240
3243
  target: "_blank",
3241
3244
  rel: "noopener noreferrer",
3242
3245
  children: [
3243
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
3244
- /* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
3246
+ /* @__PURE__ */ o.jsx("span", { className: "whitespace-normal", children: e.label }),
3247
+ /* @__PURE__ */ o.jsxs("span", { className: "whitespace-nowrap", children: [
3245
3248
  " ",
3246
- /* @__PURE__ */ a.jsx(Va, { className: "inline ml-1", size: 12 })
3249
+ /* @__PURE__ */ o.jsx(Va, { className: "inline ml-1", size: 12 })
3247
3250
  ] })
3248
3251
  ]
3249
3252
  }
3250
- ) : /* @__PURE__ */ a.jsx(
3253
+ ) : /* @__PURE__ */ o.jsx(
3251
3254
  We,
3252
3255
  {
3253
3256
  className: A("flex gap-2.5 justify-between", Ge()),
3254
3257
  to: e.href,
3255
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3256
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3257
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3258
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3258
+ children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3259
+ /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3260
+ /* @__PURE__ */ o.jsx(Mt, { ...e.badge })
3261
+ ] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
3259
3262
  }
3260
3263
  );
3261
3264
  }
@@ -3268,14 +3271,14 @@ const jl = ({
3268
3271
  xe(() => {
3269
3272
  if (!e.hash) return;
3270
3273
  const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3271
- const o = document.getElementById(n), s = document.querySelector(`[${wo}="${n}"]`);
3272
- return o ? (o.scrollIntoView(), Nl(s), requestIdleCallback(() => t(n)), !0) : !1;
3274
+ const a = document.getElementById(n), s = document.querySelector(`[${wo}="${n}"]`);
3275
+ return a ? (a.scrollIntoView(), Nl(s), requestIdleCallback(() => t(n)), !0) : !1;
3273
3276
  };
3274
3277
  if (!r()) {
3275
- const o = new MutationObserver((s, i) => {
3278
+ const a = new MutationObserver((s, i) => {
3276
3279
  r() && i.disconnect();
3277
3280
  });
3278
- return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
3281
+ return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
3279
3282
  }
3280
3283
  }, [e.hash, t]);
3281
3284
  }, Tl = () => {
@@ -3283,7 +3286,7 @@ const jl = ({
3283
3286
  xe(() => {
3284
3287
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3285
3288
  }, [e.pathname]);
3286
- }, xo = wa(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3289
+ }, xo = wa(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ o.jsx(
3287
3290
  "nav",
3288
3291
  {
3289
3292
  "data-navigation": String(n),
@@ -3300,67 +3303,68 @@ const jl = ({
3300
3303
  xo.displayName = "SidebarWrapper";
3301
3304
  const _l = () => {
3302
3305
  const e = Lt(null), t = Oa();
3303
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3304
- /* @__PURE__ */ a.jsxs(
3306
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3307
+ /* @__PURE__ */ o.jsxs(
3305
3308
  xo,
3306
3309
  {
3307
3310
  ref: e,
3308
3311
  pushMainContent: t.data.items.length > 0,
3309
3312
  children: [
3310
- /* @__PURE__ */ a.jsx(Te, { name: "zudoku-before-navigation" }),
3311
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(_t, { item: n }, n.label)),
3312
- /* @__PURE__ */ a.jsx(Te, { name: "zudoku-after-navigation" })
3313
+ /* @__PURE__ */ o.jsx(Te, { name: "zudoku-before-navigation" }),
3314
+ t.data.items.map((n) => /* @__PURE__ */ o.jsx(_t, { item: n }, n.label)),
3315
+ /* @__PURE__ */ o.jsx(Te, { name: "zudoku-after-navigation" })
3313
3316
  ]
3314
3317
  }
3315
3318
  ),
3316
- /* @__PURE__ */ a.jsxs(
3319
+ /* @__PURE__ */ o.jsxs(
3317
3320
  Zt,
3318
3321
  {
3319
3322
  className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none",
3320
3323
  "aria-describedby": void 0,
3321
3324
  children: [
3322
- /* @__PURE__ */ a.jsx(An, { children: /* @__PURE__ */ a.jsx(en, { children: "Sidebar" }) }),
3323
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(_t, { item: n }, n.label))
3325
+ /* @__PURE__ */ o.jsx(An, { children: /* @__PURE__ */ o.jsx(en, { children: "Sidebar" }) }),
3326
+ t.data.items.map((n) => /* @__PURE__ */ o.jsx(_t, { item: n }, n.label))
3324
3327
  ]
3325
3328
  }
3326
3329
  )
3327
3330
  ] });
3328
3331
  }, Ol = ({ children: e }) => {
3329
- const t = At(), { setActiveAnchor: n } = $t(), { meta: r, authentication: o } = et();
3332
+ const t = At(), { setActiveAnchor: n } = $t(), { meta: r, authentication: a } = et();
3330
3333
  Pl(), Tl();
3331
3334
  const s = Lt(t.pathname);
3332
3335
  return xe(() => {
3333
- o != null && o.pageLoad && o.pageLoad();
3334
- }, [o]), xe(() => {
3336
+ var i;
3337
+ (i = a == null ? void 0 : a.pageLoad) == null || i.call(a);
3338
+ }, [a]), xe(() => {
3335
3339
  t.pathname !== s.current && n(""), s.current = t.pathname;
3336
- }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3340
+ }, [t.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3337
3341
  !1,
3338
- /* @__PURE__ */ a.jsxs(Ot, { titleTemplate: r == null ? void 0 : r.title, children: [
3339
- (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
3340
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
3342
+ /* @__PURE__ */ o.jsxs(Ot, { titleTemplate: r == null ? void 0 : r.title, children: [
3343
+ (r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
3344
+ (r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
3341
3345
  ] }),
3342
- /* @__PURE__ */ a.jsx(Te, { name: "layout-before-head" }),
3343
- /* @__PURE__ */ a.jsx(mo, {}),
3344
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
3346
+ /* @__PURE__ */ o.jsx(Te, { name: "layout-before-head" }),
3347
+ /* @__PURE__ */ o.jsx(mo, {}),
3348
+ /* @__PURE__ */ o.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ o.jsx(
3345
3349
  Hn,
3346
3350
  {
3347
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(Ka, {}) }),
3348
- children: /* @__PURE__ */ a.jsxs(Jt, { direction: "left", children: [
3349
- /* @__PURE__ */ a.jsx(_l, {}),
3350
- /* @__PURE__ */ a.jsx(
3351
+ fallback: /* @__PURE__ */ o.jsx("main", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(Ka, {}) }),
3352
+ children: /* @__PURE__ */ o.jsxs(Jt, { direction: "left", children: [
3353
+ /* @__PURE__ */ o.jsx(_l, {}),
3354
+ /* @__PURE__ */ o.jsx(
3351
3355
  "div",
3352
3356
  {
3353
3357
  className: A(
3354
3358
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3355
3359
  "peer-data-[navigation=false]:hidden"
3356
3360
  ),
3357
- children: /* @__PURE__ */ a.jsxs(fo, { className: "flex items-center gap-2", children: [
3358
- /* @__PURE__ */ a.jsx(Wa, { size: 16, strokeWidth: 1.5 }),
3359
- /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
3361
+ children: /* @__PURE__ */ o.jsxs(fo, { className: "flex items-center gap-2", children: [
3362
+ /* @__PURE__ */ o.jsx(Wa, { size: 16, strokeWidth: 1.5 }),
3363
+ /* @__PURE__ */ o.jsx("span", { className: "text-sm", children: "Menu" })
3360
3364
  ] })
3361
3365
  }
3362
3366
  ),
3363
- /* @__PURE__ */ a.jsxs(
3367
+ /* @__PURE__ */ o.jsxs(
3364
3368
  "main",
3365
3369
  {
3366
3370
  className: A(
@@ -3371,9 +3375,9 @@ const _l = () => {
3371
3375
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3372
3376
  ),
3373
3377
  children: [
3374
- /* @__PURE__ */ a.jsx(Te, { name: "zudoku-before-content" }),
3375
- e ?? /* @__PURE__ */ a.jsx(jn, {}),
3376
- /* @__PURE__ */ a.jsx(Te, { name: "zudoku-after-content" })
3378
+ /* @__PURE__ */ o.jsx(Te, { name: "zudoku-before-content" }),
3379
+ e ?? /* @__PURE__ */ o.jsx(jn, {}),
3380
+ /* @__PURE__ */ o.jsx(Te, { name: "zudoku-after-content" })
3377
3381
  ]
3378
3382
  }
3379
3383
  )