zudoku 0.13.4 → 0.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  var Ha = Object.defineProperty;
2
- var hn = (e) => {
2
+ var pn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var Ua = (e, t, n) => t in e ? Ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var ae = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n), pn = (e, t, n) => t.has(e) || hn("Cannot " + n);
7
- var w = (e, t, n) => (pn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? hn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (pn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
6
+ var ae = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n), mn = (e, t, n) => t.has(e) || pn("Cannot " + n);
7
+ var w = (e, t, n) => (mn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? pn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (mn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
8
  var ut = (e, t, n, r) => ({
9
9
  set _(o) {
10
10
  X(e, t, o, n);
@@ -13,30 +13,32 @@ var ut = (e, t, n, r) => ({
13
13
  return w(e, t, r);
14
14
  }
15
15
  });
16
- import { c as On, H as kt, M as za, d as Ka, A as qa, b as Qa } from "./utils-C8S3st2k.js";
17
- import { e as Va, f as Ga, R as Wa, N as Ze, L as $t, g as Ya, O as In, h as Xa, b as Ja, u as Ft } from "./index-DFN92YJN.js";
18
- import { E as An, S as xe, a as Za, R as eo } from "./SlotletProvider-DmqWiVFt.js";
16
+ import { c as In, H as kt, M as za, d as Ka, A as qa, b as Qa } from "./utils-C8S3st2k.js";
17
+ import { e as Va, f as Ga, R as Wa, N as Je, L as $t, g as Ya, O as An, h as Xa, b as Za, u as Ft } from "./index-DFN92YJN.js";
18
+ import { u as Ja } from "./state-CsuHT8ZO.js";
19
+ import { E as kn, S as ye, a as eo, R as to } from "./SlotletProvider-DmqWiVFt.js";
19
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
20
- import { M as to, f as no, c as kn, p as $n, A as ro, d as rt, j as ao, b as I, k as oo, F as so, D as io, C as lo, P as qe, i as Lt, q as co, s as Fn, R as uo, S as fo, t as ho, h as po, r as Ln, m as mo, a as gt, u as Bn, n as vt, V as Hn, B as Nt } from "./index-Ch8VO_uX.js";
21
- import { a as F, c as Un, b as go, T as vo, d as wo, V as xo, u as Bt, e as yo, C as bo } from "./Markdown-Y__eLG0x.js";
21
+ import { M as no, f as ro, c as $n, p as Fn, A as ao, d as rt, j as oo, b as I, k as so, F as io, D as lo, C as co, P as qe, i as Lt, q as uo, s as Ln, R as fo, S as ho, t as po, h as mo, r as Bn, m as go, a as gt, u as Hn, n as vt, V as Un, B as Nt } from "./index-Ch8VO_uX.js";
22
+ import { a as F, c as zn, b as vo, T as wo, d as yo, V as xo, u as Bt, e as bo, C as So } from "./Markdown-Y__eLG0x.js";
22
23
  import * as h from "react";
23
- import p, { StrictMode as zn, createContext as Kn, Component as So, createElement as mn, isValidElement as Co, useState as Ie, useMemo as mt, useLayoutEffect as Mo, useEffect as Ce, useCallback as qn, Suspense as Qn, memo as Vn, useContext as Ro, Fragment as Eo, useRef as Ht, forwardRef as Do } from "react";
24
+ import p, { StrictMode as Kn, createContext as qn, Component as Co, createElement as gn, isValidElement as Mo, useState as Ie, useMemo as mt, useLayoutEffect as Ro, useEffect as Ce, useCallback as Qn, Suspense as Vn, memo as Gn, useContext as Eo, Fragment as Do, useRef as Ht, forwardRef as Po } from "react";
24
25
  import { a as Ut } from "./index-DJqnphbT.js";
25
- import { B as Po } from "./router-BsfSoK2j.js";
26
- import { a as Tt, R as jo, T as No, C as To } from "./index-bYAqbdYl.js";
27
- import { S as Gn, f as Wn, Q as _o, n as se, m as gn, g as vn, i as be, j as Oo, k as Io, l as Ao, o as ko, p as wn, r as xn, q as $o, h as yn, t as bn, v as Fo, u as Ae, b as Lo, Z as Bo, w as Ho, c as Yn, x as Uo } from "./ZudokuContext-MRoel6bS.js";
26
+ import { B as jo } from "./router-BsfSoK2j.js";
27
+ import { a as Tt, R as No, T as To, C as _o } from "./index-bYAqbdYl.js";
28
+ import { C as Oo } from "./ClientOnly-CVN6leDu.js";
29
+ import { S as Wn, f as Yn, Q as Io, n as se, m as vn, g as wn, i as be, j as Ao, k as ko, l as $o, o as Fo, p as yn, r as xn, q as Lo, h as bn, t as Sn, v as Bo, u as Ae, b as Ho, Z as Uo, w as zo, c as Xn, x as Ko } from "./ZudokuContext-MRoel6bS.js";
28
30
  import { j as wt } from "./joinPath-B7kNnUX4.js";
29
- import { ChevronRightIcon as Xn, CheckIcon as zo, DotIcon as Ko, CircleXIcon as qo, SearchIcon as Qo, MenuIcon as Vo, MoonStarIcon as Go, SunIcon as Wo, ExternalLinkIcon as Yo, PanelLeftIcon as Xo } from "lucide-react";
30
- import { c as Jn, P as bt, R as Jo, I as Zo, O as es, C as ts, T as ns, a as rs, b as as, D as os, d as ss, e as is, S as Mt } from "./SidebarBadge-C0iWtji9.js";
31
- import { S as ls } from "./Spinner-3cQDBVGr.js";
32
- function cs({ error: e }) {
33
- return /* @__PURE__ */ a.jsx(An, { error: e });
31
+ import { ChevronRightIcon as Zn, CheckIcon as qo, DotIcon as Qo, CircleXIcon as Vo, SearchIcon as Go, MenuIcon as Wo, MoonStarIcon as Yo, SunIcon as Xo, ExternalLinkIcon as Zo, PanelLeftIcon as Jo } from "lucide-react";
32
+ import { c as Jn, P as bt, R as es, I as ts, O as ns, C as rs, T as as, a as os, b as ss, D as is, d as ls, e as cs, S as Mt } from "./SidebarBadge-C0iWtji9.js";
33
+ import { S as us } from "./Spinner-3cQDBVGr.js";
34
+ function ds({ error: e }) {
35
+ return /* @__PURE__ */ a.jsx(kn, { error: e });
34
36
  }
35
37
  var at = {};
36
- const us = /* @__PURE__ */ Ut(Po), ds = /* @__PURE__ */ Ut(Va), fs = /* @__PURE__ */ Ut(Ga);
38
+ const fs = /* @__PURE__ */ Ut(jo), hs = /* @__PURE__ */ Ut(Va), ps = /* @__PURE__ */ Ut(Ga);
37
39
  Object.defineProperty(at, "__esModule", { value: !0 });
38
- var hs = p, we = us, zt = ds, Se = fs;
39
- function ps(e) {
40
+ var ms = p, we = fs, zt = hs, Se = ps;
41
+ function gs(e) {
40
42
  if (e && e.__esModule) return e;
41
43
  var t = /* @__PURE__ */ Object.create(null);
42
44
  return e && Object.keys(e).forEach(function(n) {
@@ -51,8 +53,8 @@ function ps(e) {
51
53
  }
52
54
  }), t.default = e, Object.freeze(t);
53
55
  }
54
- var ge = /* @__PURE__ */ ps(hs);
55
- function ms({
56
+ var ge = /* @__PURE__ */ gs(ms);
57
+ function vs({
56
58
  basename: e,
57
59
  children: t,
58
60
  location: n = "/",
@@ -65,7 +67,7 @@ function ms({
65
67
  hash: n.hash || "",
66
68
  state: n.state != null ? n.state : null,
67
69
  key: n.key || "default"
68
- }, i = Zn();
70
+ }, i = er();
69
71
  return /* @__PURE__ */ ge.createElement(Se.Router, {
70
72
  basename: e,
71
73
  children: t,
@@ -76,7 +78,7 @@ function ms({
76
78
  static: !0
77
79
  });
78
80
  }
79
- function gs({
81
+ function ws({
80
82
  context: e,
81
83
  router: t,
82
84
  hydrate: n = !0,
@@ -85,7 +87,7 @@ function gs({
85
87
  t && e || (process.env.NODE_ENV !== "production" ? we.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : we.UNSAFE_invariant(!1));
86
88
  let o = {
87
89
  router: t,
88
- navigator: Zn(),
90
+ navigator: er(),
89
91
  static: !0,
90
92
  staticContext: e,
91
93
  basename: e.basename || "/"
@@ -94,9 +96,9 @@ function gs({
94
96
  let u = {
95
97
  loaderData: e.loaderData,
96
98
  actionData: e.actionData,
97
- errors: ws(e.errors)
99
+ errors: xs(e.errors)
98
100
  };
99
- i = `window.__staticRouterHydrationData = JSON.parse(${Ms(JSON.stringify(JSON.stringify(u)))});`;
101
+ i = `window.__staticRouterHydrationData = JSON.parse(${Es(JSON.stringify(JSON.stringify(u)))});`;
100
102
  }
101
103
  let {
102
104
  state: l
@@ -120,7 +122,7 @@ function gs({
120
122
  future: {
121
123
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
122
124
  }
123
- }, /* @__PURE__ */ ge.createElement(vs, {
125
+ }, /* @__PURE__ */ ge.createElement(ys, {
124
126
  routes: t.routes,
125
127
  future: t.future,
126
128
  state: l
@@ -132,14 +134,14 @@ function gs({
132
134
  }
133
135
  }) : null);
134
136
  }
135
- function vs({
137
+ function ys({
136
138
  routes: e,
137
139
  future: t,
138
140
  state: n
139
141
  }) {
140
142
  return zt.UNSAFE_useRoutesImpl(e, void 0, n, t);
141
143
  }
142
- function ws(e) {
144
+ function xs(e) {
143
145
  if (!e) return null;
144
146
  let t = Object.entries(e), n = {};
145
147
  for (let [r, o] of t)
@@ -157,10 +159,10 @@ function ws(e) {
157
159
  } : n[r] = o;
158
160
  return n;
159
161
  }
160
- function Zn() {
162
+ function er() {
161
163
  return {
162
- createHref: er,
163
- encodeLocation: tr,
164
+ createHref: tr,
165
+ encodeLocation: nr,
164
166
  push(e) {
165
167
  throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
166
168
  },
@@ -178,13 +180,13 @@ function Zn() {
178
180
  }
179
181
  };
180
182
  }
181
- function xs(e, t) {
183
+ function bs(e, t) {
182
184
  return we.createStaticHandler(e, {
183
185
  ...t,
184
186
  mapRouteProperties: zt.UNSAFE_mapRouteProperties
185
187
  });
186
188
  }
187
- function ys(e, t, n = {}) {
189
+ function Ss(e, t, n = {}) {
188
190
  let r = {}, o = we.UNSAFE_convertRoutesToDataRoutes(e, zt.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
189
191
  let u = r[l.route.id] || l.route;
190
192
  return {
@@ -247,8 +249,8 @@ function ys(e, t, n = {}) {
247
249
  revalidate() {
248
250
  throw i("revalidate");
249
251
  },
250
- createHref: er,
251
- encodeLocation: tr,
252
+ createHref: tr,
253
+ encodeLocation: nr,
252
254
  getFetcher() {
253
255
  return we.IDLE_FETCHER;
254
256
  },
@@ -274,51 +276,51 @@ function ys(e, t, n = {}) {
274
276
  }
275
277
  };
276
278
  }
277
- function er(e) {
279
+ function tr(e) {
278
280
  return typeof e == "string" ? e : Se.createPath(e);
279
281
  }
280
- function tr(e) {
282
+ function nr(e) {
281
283
  let t = typeof e == "string" ? e : Se.createPath(e);
282
284
  t = t.replace(/ $/, "%20");
283
- let n = bs.test(t) ? new URL(t) : new URL(t, "http://localhost");
285
+ let n = Cs.test(t) ? new URL(t) : new URL(t, "http://localhost");
284
286
  return {
285
287
  pathname: n.pathname,
286
288
  search: n.search,
287
289
  hash: n.hash
288
290
  };
289
291
  }
290
- const bs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ss = {
292
+ const Cs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ms = {
291
293
  "&": "\\u0026",
292
294
  ">": "\\u003e",
293
295
  "<": "\\u003c",
294
296
  "\u2028": "\\u2028",
295
297
  "\u2029": "\\u2029"
296
- }, Cs = /[&><\u2028\u2029]/g;
297
- function Ms(e) {
298
- return e.replace(Cs, (t) => Ss[t]);
299
- }
300
- at.StaticRouter = ms;
301
- var Rs = at.StaticRouterProvider = gs;
302
- at.createStaticHandler = xs;
303
- at.createStaticRouter = ys;
304
- const Es = ({
298
+ }, Rs = /[&><\u2028\u2029]/g;
299
+ function Es(e) {
300
+ return e.replace(Rs, (t) => Ms[t]);
301
+ }
302
+ at.StaticRouter = vs;
303
+ var Ds = at.StaticRouterProvider = ws;
304
+ at.createStaticHandler = bs;
305
+ at.createStaticRouter = Ss;
306
+ const Ps = ({
305
307
  router: e,
306
308
  hydrate: t = !1
307
- }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { children: /* @__PURE__ */ a.jsx(Tt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Wa, { router: e }) }) }) }), Ds = ({
309
+ }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { children: /* @__PURE__ */ a.jsx(Tt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Wa, { router: e }) }) }) }), js = ({
308
310
  router: e,
309
311
  context: t,
310
312
  helmetContext: n
311
- }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { context: n, children: /* @__PURE__ */ a.jsx(Rs, { router: e, context: t }) }) });
312
- var ve, Nn, Ps = (Nn = class extends Gn {
313
+ }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { context: n, children: /* @__PURE__ */ a.jsx(Ds, { router: e, context: t }) }) });
314
+ var ve, Tn, Ns = (Tn = class extends Wn {
313
315
  constructor(t = {}) {
314
316
  super();
315
317
  ce(this, ve);
316
318
  this.config = t, X(this, ve, /* @__PURE__ */ new Map());
317
319
  }
318
320
  build(t, n, r) {
319
- const o = n.queryKey, s = n.queryHash ?? Wn(o, n);
321
+ const o = n.queryKey, s = n.queryHash ?? Yn(o, n);
320
322
  let i = this.get(s);
321
- return i || (i = new _o({
323
+ return i || (i = new Io({
322
324
  cache: this,
323
325
  queryKey: o,
324
326
  queryHash: s,
@@ -353,12 +355,12 @@ var ve, Nn, Ps = (Nn = class extends Gn {
353
355
  find(t) {
354
356
  const n = { exact: !0, ...t };
355
357
  return this.getAll().find(
356
- (r) => gn(n, r)
358
+ (r) => vn(n, r)
357
359
  );
358
360
  }
359
361
  findAll(t = {}) {
360
362
  const n = this.getAll();
361
- return Object.keys(t).length > 0 ? n.filter((r) => gn(t, r)) : n;
363
+ return Object.keys(t).length > 0 ? n.filter((r) => vn(t, r)) : n;
362
364
  }
363
365
  notify(t) {
364
366
  se.batch(() => {
@@ -381,7 +383,7 @@ var ve, Nn, Ps = (Nn = class extends Gn {
381
383
  });
382
384
  });
383
385
  }
384
- }, ve = new WeakMap(), Nn), oe, nt, Tn, js = (Tn = class extends Gn {
386
+ }, ve = new WeakMap(), Tn), oe, nt, _n, Ts = (_n = class extends Wn {
385
387
  constructor(t = {}) {
386
388
  super();
387
389
  ce(this, oe);
@@ -389,7 +391,7 @@ var ve, Nn, Ps = (Nn = class extends Gn {
389
391
  this.config = t, X(this, oe, /* @__PURE__ */ new Map()), X(this, nt, Date.now());
390
392
  }
391
393
  build(t, n, r) {
392
- const o = new to({
394
+ const o = new no({
393
395
  mutationCache: this,
394
396
  mutationId: ++ut(this, nt)._,
395
397
  options: t.defaultMutationOptions(n),
@@ -433,11 +435,11 @@ var ve, Nn, Ps = (Nn = class extends Gn {
433
435
  find(t) {
434
436
  const n = { exact: !0, ...t };
435
437
  return this.getAll().find(
436
- (r) => vn(n, r)
438
+ (r) => wn(n, r)
437
439
  );
438
440
  }
439
441
  findAll(t = {}) {
440
- return this.getAll().filter((n) => vn(t, n));
442
+ return this.getAll().filter((n) => wn(t, n));
441
443
  }
442
444
  notify(t) {
443
445
  se.batch(() => {
@@ -454,12 +456,12 @@ var ve, Nn, Ps = (Nn = class extends Gn {
454
456
  )
455
457
  );
456
458
  }
457
- }, oe = new WeakMap(), nt = new WeakMap(), Tn);
459
+ }, oe = new WeakMap(), nt = new WeakMap(), _n);
458
460
  function dt(e) {
459
461
  var t;
460
462
  return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
461
463
  }
462
- function Sn(e) {
464
+ function Cn(e) {
463
465
  return {
464
466
  onFetch: (t, n) => {
465
467
  var f, c, d, R, C;
@@ -474,36 +476,36 @@ function Sn(e) {
474
476
  g = !0;
475
477
  }), t.signal)
476
478
  });
477
- }, M = Oo(t.options, t.fetchOptions), A = async (P, v, z) => {
479
+ }, M = Ao(t.options, t.fetchOptions), A = async (P, v, z) => {
478
480
  if (g)
479
481
  return Promise.reject();
480
482
  if (v == null && P.pages.length)
481
483
  return Promise.resolve(P);
482
- const Z = {
484
+ const J = {
483
485
  queryKey: t.queryKey,
484
486
  pageParam: v,
485
487
  direction: z ? "backward" : "forward",
486
488
  meta: t.options.meta
487
489
  };
488
- T(Z);
490
+ T(J);
489
491
  const b = await M(
490
- Z
491
- ), { maxPages: j } = t.options, D = z ? Io : Ao;
492
+ J
493
+ ), { maxPages: j } = t.options, D = z ? ko : $o;
492
494
  return {
493
495
  pages: D(P.pages, b, j),
494
496
  pageParams: D(P.pageParams, v, j)
495
497
  };
496
498
  };
497
499
  if (o && s.length) {
498
- const P = o === "backward", v = P ? Ns : Cn, z = {
500
+ const P = o === "backward", v = P ? _s : Mn, z = {
499
501
  pages: s,
500
502
  pageParams: i
501
- }, Z = v(r, z);
502
- l = await A(z, Z, P);
503
+ }, J = v(r, z);
504
+ l = await A(z, J, P);
503
505
  } else {
504
506
  const P = e ?? s.length;
505
507
  do {
506
- const v = u === 0 ? i[0] ?? r.initialPageParam : Cn(r, l);
508
+ const v = u === 0 ? i[0] ?? r.initialPageParam : Mn(r, l);
507
509
  if (u > 0 && v == null)
508
510
  break;
509
511
  l = await A(l, v), u++;
@@ -527,7 +529,7 @@ function Sn(e) {
527
529
  }
528
530
  };
529
531
  }
530
- function Cn(e, { pages: t, pageParams: n }) {
532
+ function Mn(e, { pages: t, pageParams: n }) {
531
533
  const r = t.length - 1;
532
534
  return t.length > 0 ? e.getNextPageParam(
533
535
  t[r],
@@ -536,11 +538,11 @@ function Cn(e, { pages: t, pageParams: n }) {
536
538
  n
537
539
  ) : void 0;
538
540
  }
539
- function Ns(e, { pages: t, pageParams: n }) {
541
+ function _s(e, { pages: t, pageParams: n }) {
540
542
  var r;
541
543
  return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
542
544
  }
543
- var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
545
+ var $, Pe, je, He, Ue, Ne, ze, Ke, On, Os = (On = class {
544
546
  constructor(e = {}) {
545
547
  ce(this, $);
546
548
  ce(this, Pe);
@@ -550,12 +552,12 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
550
552
  ce(this, Ne);
551
553
  ce(this, ze);
552
554
  ce(this, Ke);
553
- X(this, $, e.queryCache || new Ps()), X(this, Pe, e.mutationCache || new js()), X(this, je, e.defaultOptions || {}), X(this, He, /* @__PURE__ */ new Map()), X(this, Ue, /* @__PURE__ */ new Map()), X(this, Ne, 0);
555
+ X(this, $, e.queryCache || new Ns()), X(this, Pe, e.mutationCache || new Ts()), X(this, je, e.defaultOptions || {}), X(this, He, /* @__PURE__ */ new Map()), X(this, Ue, /* @__PURE__ */ new Map()), X(this, Ne, 0);
554
556
  }
555
557
  mount() {
556
- ut(this, Ne)._++, w(this, Ne) === 1 && (X(this, ze, ko.subscribe(async (e) => {
558
+ ut(this, Ne)._++, w(this, Ne) === 1 && (X(this, ze, Fo.subscribe(async (e) => {
557
559
  e && (await this.resumePausedMutations(), w(this, $).onFocus());
558
- })), X(this, Ke, wn.subscribe(async (e) => {
560
+ })), X(this, Ke, yn.subscribe(async (e) => {
559
561
  e && (await this.resumePausedMutations(), w(this, $).onOnline());
560
562
  })));
561
563
  }
@@ -592,7 +594,7 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
592
594
  setQueryData(e, t, n) {
593
595
  const r = this.defaultQueryOptions({ queryKey: e }), o = w(this, $).get(
594
596
  r.queryHash
595
- ), s = o == null ? void 0 : o.state.data, i = $o(t, s);
597
+ ), s = o == null ? void 0 : o.state.data, i = Lo(t, s);
596
598
  if (i !== void 0)
597
599
  return w(this, $).build(this, r).setData(i, { ...n, manual: !0 });
598
600
  }
@@ -669,16 +671,16 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
669
671
  return this.fetchQuery(e).then(be).catch(be);
670
672
  }
671
673
  fetchInfiniteQuery(e) {
672
- return e.behavior = Sn(e.pages), this.fetchQuery(e);
674
+ return e.behavior = Cn(e.pages), this.fetchQuery(e);
673
675
  }
674
676
  prefetchInfiniteQuery(e) {
675
677
  return this.fetchInfiniteQuery(e).then(be).catch(be);
676
678
  }
677
679
  ensureInfiniteQueryData(e) {
678
- return e.behavior = Sn(e.pages), this.ensureQueryData(e);
680
+ return e.behavior = Cn(e.pages), this.ensureQueryData(e);
679
681
  }
680
682
  resumePausedMutations() {
681
- return wn.isOnline() ? w(this, Pe).resumePausedMutations() : Promise.resolve();
683
+ return yn.isOnline() ? w(this, Pe).resumePausedMutations() : Promise.resolve();
682
684
  }
683
685
  getQueryCache() {
684
686
  return w(this, $);
@@ -693,7 +695,7 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
693
695
  X(this, je, e);
694
696
  }
695
697
  setQueryDefaults(e, t) {
696
- w(this, He).set(yn(e), {
698
+ w(this, He).set(bn(e), {
697
699
  queryKey: e,
698
700
  defaultOptions: t
699
701
  });
@@ -702,11 +704,11 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
702
704
  const t = [...w(this, He).values()];
703
705
  let n = {};
704
706
  return t.forEach((r) => {
705
- bn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
707
+ Sn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
706
708
  }), n;
707
709
  }
708
710
  setMutationDefaults(e, t) {
709
- w(this, Ue).set(yn(e), {
711
+ w(this, Ue).set(bn(e), {
710
712
  mutationKey: e,
711
713
  defaultOptions: t
712
714
  });
@@ -715,7 +717,7 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
715
717
  const t = [...w(this, Ue).values()];
716
718
  let n = {};
717
719
  return t.forEach((r) => {
718
- bn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
720
+ Sn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
719
721
  }), n;
720
722
  }
721
723
  defaultQueryOptions(e) {
@@ -727,10 +729,10 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
727
729
  ...e,
728
730
  _defaulted: !0
729
731
  };
730
- return t.queryHash || (t.queryHash = Wn(
732
+ return t.queryHash || (t.queryHash = Yn(
731
733
  t.queryKey,
732
734
  t
733
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Fo && (t.enabled = !1), t;
735
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Bo && (t.enabled = !1), t;
734
736
  }
735
737
  defaultMutationOptions(e) {
736
738
  return e != null && e._defaulted ? e : {
@@ -743,12 +745,12 @@ var $, Pe, je, He, Ue, Ne, ze, Ke, _n, Ts = (_n = class {
743
745
  clear() {
744
746
  w(this, $).clear(), w(this, Pe).clear();
745
747
  }
746
- }, $ = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), He = new WeakMap(), Ue = new WeakMap(), Ne = new WeakMap(), ze = new WeakMap(), Ke = new WeakMap(), _n);
747
- const _s = Kn(null), Rt = {
748
+ }, $ = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), He = new WeakMap(), Ue = new WeakMap(), Ne = new WeakMap(), ze = new WeakMap(), Ke = new WeakMap(), On);
749
+ const Is = qn(null), Rt = {
748
750
  didCatch: !1,
749
751
  error: null
750
752
  };
751
- class Os extends So {
753
+ class As extends Co {
752
754
  constructor(t) {
753
755
  super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Rt;
754
756
  }
@@ -781,7 +783,7 @@ class Os extends So {
781
783
  } = this.state, {
782
784
  resetKeys: o
783
785
  } = this.props;
784
- if (r && n.error !== null && Is(t.resetKeys, o)) {
786
+ if (r && n.error !== null && ks(t.resetKeys, o)) {
785
787
  var s, i;
786
788
  (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
787
789
  next: o,
@@ -809,13 +811,13 @@ class Os extends So {
809
811
  if (typeof n == "function")
810
812
  l = n(u);
811
813
  else if (r)
812
- l = mn(r, u);
813
- else if (o === null || Co(o))
814
+ l = gn(r, u);
815
+ else if (o === null || Mo(o))
814
816
  l = o;
815
817
  else
816
818
  throw i;
817
819
  }
818
- return mn(_s.Provider, {
820
+ return gn(Is.Provider, {
819
821
  value: {
820
822
  didCatch: s,
821
823
  error: i,
@@ -824,12 +826,12 @@ class Os extends So {
824
826
  }, l);
825
827
  }
826
828
  }
827
- function Is() {
829
+ function ks() {
828
830
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
829
831
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
830
832
  }
831
- const As = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", ks = (e) => "getRoutes" in e && typeof e.getRoutes == "function", $s = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Fs = (e) => "initialize" in e && typeof e.initialize == "function", Ls = (e) => "getHead" in e && typeof e.getHead == "function", Bs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Hs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", nr = new Ts();
832
- class Us {
833
+ const $s = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Fs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Ls = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Bs = (e) => "initialize" in e && typeof e.initialize == "function", Hs = (e) => "getHead" in e && typeof e.getHead == "function", Us = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", zs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", rr = new Os();
834
+ class Ks {
833
835
  constructor(t) {
834
836
  ae(this, "plugins");
835
837
  ae(this, "sidebars");
@@ -840,17 +842,17 @@ class Us {
840
842
  ae(this, "navigationPlugins");
841
843
  ae(this, "initialize", async () => {
842
844
  await Promise.all(
843
- this.plugins.filter(Fs).map((t) => {
845
+ this.plugins.filter(Bs).map((t) => {
844
846
  var n;
845
847
  return (n = t.initialize) == null ? void 0 : n.call(t, this);
846
848
  })
847
849
  );
848
850
  });
849
851
  ae(this, "invalidateCache", async (t) => {
850
- await nr.invalidateQueries({ queryKey: t });
852
+ await rr.invalidateQueries({ queryKey: t });
851
853
  });
852
854
  ae(this, "getApiIdentities", async () => (await Promise.all(
853
- this.plugins.filter(Hs).map((n) => n.getIdentities(this))
855
+ this.plugins.filter(zs).map((n) => n.getIdentities(this))
854
856
  )).flat());
855
857
  ae(this, "getPluginSidebar", async (t) => (await Promise.all(
856
858
  this.navigationPlugins.map(
@@ -866,26 +868,26 @@ class Us {
866
868
  const n = await this.authentication.getAccessToken();
867
869
  return t.headers.set("Authorization", `Bearer ${n}`), t;
868
870
  });
869
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ks), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
871
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Fs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
870
872
  }
871
873
  }
872
- function zs({ error: e, resetErrorBoundary: t }) {
873
- return /* @__PURE__ */ a.jsx(An, { error: e });
874
+ function qs({ error: e, resetErrorBoundary: t }) {
875
+ return /* @__PURE__ */ a.jsx(kn, { error: e });
874
876
  }
875
877
  const ft = globalThis;
876
878
  (!ft.requestIdleCallback || !ft.cancelIdleCallback) && (ft.requestIdleCallback = (e) => setTimeout(e, 1), ft.cancelIdleCallback = clearTimeout);
877
- var _t = ["Enter", " "], Ks = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp", "PageDown", "End"], qs = [...Ks, ...rr], Qs = {
879
+ var _t = ["Enter", " "], Qs = ["ArrowDown", "PageUp", "Home"], ar = ["ArrowUp", "PageDown", "End"], Vs = [...Qs, ...ar], Gs = {
878
880
  ltr: [..._t, "ArrowRight"],
879
881
  rtl: [..._t, "ArrowLeft"]
880
- }, Vs = {
882
+ }, Ws = {
881
883
  ltr: ["ArrowLeft"],
882
884
  rtl: ["ArrowRight"]
883
- }, ot = "Menu", [et, Gs, Ws] = no(ot), [ke, ar] = kn(ot, [
884
- Ws,
885
- $n,
885
+ }, ot = "Menu", [et, Ys, Xs] = ro(ot), [ke, or] = $n(ot, [
886
+ Xs,
887
+ Fn,
886
888
  Jn
887
- ]), st = $n(), or = Jn(), [sr, Te] = ke(ot), [Ys, it] = ke(ot), ir = (e) => {
888
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = Lt(s), d = po(o);
889
+ ]), st = Fn(), sr = Jn(), [ir, Te] = ke(ot), [Zs, it] = ke(ot), lr = (e) => {
890
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = Lt(s), d = mo(o);
889
891
  return h.useEffect(() => {
890
892
  const R = () => {
891
893
  f.current = !0, document.addEventListener("pointerdown", C, { capture: !0, once: !0 }), document.addEventListener("pointermove", C, { capture: !0, once: !0 });
@@ -893,8 +895,8 @@ var _t = ["Enter", " "], Ks = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
893
895
  return document.addEventListener("keydown", R, { capture: !0 }), () => {
894
896
  document.removeEventListener("keydown", R, { capture: !0 }), document.removeEventListener("pointerdown", C, { capture: !0 }), document.removeEventListener("pointermove", C, { capture: !0 });
895
897
  };
896
- }, []), /* @__PURE__ */ a.jsx(Ln, { ...l, children: /* @__PURE__ */ a.jsx(
897
- sr,
898
+ }, []), /* @__PURE__ */ a.jsx(Bn, { ...l, children: /* @__PURE__ */ a.jsx(
899
+ ir,
898
900
  {
899
901
  scope: t,
900
902
  open: n,
@@ -902,7 +904,7 @@ var _t = ["Enter", " "], Ks = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
902
904
  content: u,
903
905
  onContentChange: m,
904
906
  children: /* @__PURE__ */ a.jsx(
905
- Ys,
907
+ Zs,
906
908
  {
907
909
  scope: t,
908
910
  onClose: h.useCallback(() => c(!1), [c]),
@@ -915,32 +917,32 @@ var _t = ["Enter", " "], Ks = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp",
915
917
  }
916
918
  ) });
917
919
  };
918
- ir.displayName = ot;
919
- var Xs = "MenuAnchor", Kt = h.forwardRef(
920
+ lr.displayName = ot;
921
+ var Js = "MenuAnchor", Kt = h.forwardRef(
920
922
  (e, t) => {
921
923
  const { __scopeMenu: n, ...r } = e, o = st(n);
922
- return /* @__PURE__ */ a.jsx(ro, { ...o, ...r, ref: t });
924
+ return /* @__PURE__ */ a.jsx(ao, { ...o, ...r, ref: t });
923
925
  }
924
926
  );
925
- Kt.displayName = Xs;
926
- var qt = "MenuPortal", [Js, lr] = ke(qt, {
927
+ Kt.displayName = Js;
928
+ var qt = "MenuPortal", [ei, cr] = ke(qt, {
927
929
  forceMount: void 0
928
- }), cr = (e) => {
930
+ }), ur = (e) => {
929
931
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(qt, t);
930
- return /* @__PURE__ */ a.jsx(Js, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(bt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(mo, { asChild: !0, container: o, children: r }) }) });
932
+ return /* @__PURE__ */ a.jsx(ei, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(bt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(go, { asChild: !0, container: o, children: r }) }) });
931
933
  };
932
- cr.displayName = qt;
933
- var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
934
+ ur.displayName = qt;
935
+ var ue = "MenuContent", [ti, Qt] = ke(ue), dr = h.forwardRef(
934
936
  (e, t) => {
935
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu);
936
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ei, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ti, { ...o, ref: t }) }) }) });
937
+ const n = cr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu);
938
+ return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ni, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ri, { ...o, ref: t }) }) }) });
937
939
  }
938
- ), ei = h.forwardRef(
940
+ ), ni = h.forwardRef(
939
941
  (e, t) => {
940
942
  const n = Te(ue, e.__scopeMenu), r = h.useRef(null), o = rt(t, r);
941
943
  return h.useEffect(() => {
942
944
  const s = r.current;
943
- if (s) return ao(s);
945
+ if (s) return oo(s);
944
946
  }, []), /* @__PURE__ */ a.jsx(
945
947
  Vt,
946
948
  {
@@ -958,7 +960,7 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
958
960
  }
959
961
  );
960
962
  }
961
- ), ti = h.forwardRef((e, t) => {
963
+ ), ri = h.forwardRef((e, t) => {
962
964
  const n = Te(ue, e.__scopeMenu);
963
965
  return /* @__PURE__ */ a.jsx(
964
966
  Vt,
@@ -988,58 +990,58 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
988
990
  onDismiss: R,
989
991
  disableOutsideScroll: C,
990
992
  ...g
991
- } = e, T = Te(ue, n), M = it(ue, n), A = st(n), P = or(n), v = Gs(n), [z, Z] = h.useState(null), b = h.useRef(null), j = rt(t, b, T.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), x = h.useRef("right"), V = h.useRef(0), G = C ? uo : h.Fragment, te = C ? { as: fo, allowPinchZoom: !0 } : void 0, q = (y) => {
993
+ } = e, T = Te(ue, n), M = it(ue, n), A = st(n), P = sr(n), v = Ys(n), [z, J] = h.useState(null), b = h.useRef(null), j = rt(t, b, T.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), y = h.useRef("right"), V = h.useRef(0), G = C ? fo : h.Fragment, te = C ? { as: ho, allowPinchZoom: !0 } : void 0, q = (x) => {
992
994
  var le, Re;
993
- const Q = B.current + y, ie = v().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), $e = hi(Me, Q, pe), ye = (Re = ie.find((re) => re.textValue === $e)) == null ? void 0 : Re.ref.current;
995
+ const Q = B.current + x, ie = v().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), $e = mi(Me, Q, pe), xe = (Re = ie.find((re) => re.textValue === $e)) == null ? void 0 : Re.ref.current;
994
996
  (function re(Fe) {
995
997
  B.current = Fe, window.clearTimeout(D.current), Fe !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
996
- })(Q), ye && setTimeout(() => ye.focus());
998
+ })(Q), xe && setTimeout(() => xe.focus());
997
999
  };
998
- h.useEffect(() => () => window.clearTimeout(D.current), []), oo();
999
- const Y = h.useCallback((y) => {
1000
+ h.useEffect(() => () => window.clearTimeout(D.current), []), so();
1001
+ const Y = h.useCallback((x) => {
1000
1002
  var ie, de;
1001
- return x.current === ((ie = W.current) == null ? void 0 : ie.side) && mi(y, (de = W.current) == null ? void 0 : de.area);
1003
+ return y.current === ((ie = W.current) == null ? void 0 : ie.side) && vi(x, (de = W.current) == null ? void 0 : de.area);
1002
1004
  }, []);
1003
1005
  return /* @__PURE__ */ a.jsx(
1004
- Zs,
1006
+ ti,
1005
1007
  {
1006
1008
  scope: n,
1007
1009
  searchRef: B,
1008
1010
  onItemEnter: h.useCallback(
1009
- (y) => {
1010
- Y(y) && y.preventDefault();
1011
+ (x) => {
1012
+ Y(x) && x.preventDefault();
1011
1013
  },
1012
1014
  [Y]
1013
1015
  ),
1014
1016
  onItemLeave: h.useCallback(
1015
- (y) => {
1017
+ (x) => {
1016
1018
  var Q;
1017
- Y(y) || ((Q = b.current) == null || Q.focus(), Z(null));
1019
+ Y(x) || ((Q = b.current) == null || Q.focus(), J(null));
1018
1020
  },
1019
1021
  [Y]
1020
1022
  ),
1021
1023
  onTriggerLeave: h.useCallback(
1022
- (y) => {
1023
- Y(y) && y.preventDefault();
1024
+ (x) => {
1025
+ Y(x) && x.preventDefault();
1024
1026
  },
1025
1027
  [Y]
1026
1028
  ),
1027
1029
  pointerGraceTimerRef: K,
1028
- onPointerGraceIntentChange: h.useCallback((y) => {
1029
- W.current = y;
1030
+ onPointerGraceIntentChange: h.useCallback((x) => {
1031
+ W.current = x;
1030
1032
  }, []),
1031
1033
  children: /* @__PURE__ */ a.jsx(G, { ...te, children: /* @__PURE__ */ a.jsx(
1032
- so,
1034
+ io,
1033
1035
  {
1034
1036
  asChild: !0,
1035
1037
  trapped: o,
1036
- onMountAutoFocus: I(s, (y) => {
1038
+ onMountAutoFocus: I(s, (x) => {
1037
1039
  var Q;
1038
- y.preventDefault(), (Q = b.current) == null || Q.focus({ preventScroll: !0 });
1040
+ x.preventDefault(), (Q = b.current) == null || Q.focus({ preventScroll: !0 });
1039
1041
  }),
1040
1042
  onUnmountAutoFocus: i,
1041
1043
  children: /* @__PURE__ */ a.jsx(
1042
- io,
1044
+ lo,
1043
1045
  {
1044
1046
  asChild: !0,
1045
1047
  disableOutsidePointerEvents: l,
@@ -1049,7 +1051,7 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
1049
1051
  onInteractOutside: d,
1050
1052
  onDismiss: R,
1051
1053
  children: /* @__PURE__ */ a.jsx(
1052
- Jo,
1054
+ es,
1053
1055
  {
1054
1056
  asChild: !0,
1055
1057
  ...P,
@@ -1057,42 +1059,42 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
1057
1059
  orientation: "vertical",
1058
1060
  loop: r,
1059
1061
  currentTabStopId: z,
1060
- onCurrentTabStopIdChange: Z,
1061
- onEntryFocus: I(u, (y) => {
1062
- M.isUsingKeyboardRef.current || y.preventDefault();
1062
+ onCurrentTabStopIdChange: J,
1063
+ onEntryFocus: I(u, (x) => {
1064
+ M.isUsingKeyboardRef.current || x.preventDefault();
1063
1065
  }),
1064
1066
  preventScrollOnEntryFocus: !0,
1065
1067
  children: /* @__PURE__ */ a.jsx(
1066
- lo,
1068
+ co,
1067
1069
  {
1068
1070
  role: "menu",
1069
1071
  "aria-orientation": "vertical",
1070
- "data-state": Dr(T.open),
1072
+ "data-state": Pr(T.open),
1071
1073
  "data-radix-menu-content": "",
1072
1074
  dir: M.dir,
1073
1075
  ...A,
1074
1076
  ...g,
1075
1077
  ref: j,
1076
1078
  style: { outline: "none", ...g.style },
1077
- onKeyDown: I(g.onKeyDown, (y) => {
1078
- const ie = y.target.closest("[data-radix-menu-content]") === y.currentTarget, de = y.ctrlKey || y.altKey || y.metaKey, pe = y.key.length === 1;
1079
- ie && (y.key === "Tab" && y.preventDefault(), !de && pe && q(y.key));
1079
+ onKeyDown: I(g.onKeyDown, (x) => {
1080
+ const ie = x.target.closest("[data-radix-menu-content]") === x.currentTarget, de = x.ctrlKey || x.altKey || x.metaKey, pe = x.key.length === 1;
1081
+ ie && (x.key === "Tab" && x.preventDefault(), !de && pe && q(x.key));
1080
1082
  const Me = b.current;
1081
- if (y.target !== Me || !qs.includes(y.key)) return;
1082
- y.preventDefault();
1083
- const ye = v().filter((le) => !le.disabled).map((le) => le.ref.current);
1084
- rr.includes(y.key) && ye.reverse(), di(ye);
1083
+ if (x.target !== Me || !Vs.includes(x.key)) return;
1084
+ x.preventDefault();
1085
+ const xe = v().filter((le) => !le.disabled).map((le) => le.ref.current);
1086
+ ar.includes(x.key) && xe.reverse(), hi(xe);
1085
1087
  }),
1086
- onBlur: I(e.onBlur, (y) => {
1087
- y.currentTarget.contains(y.target) || (window.clearTimeout(D.current), B.current = "");
1088
+ onBlur: I(e.onBlur, (x) => {
1089
+ x.currentTarget.contains(x.target) || (window.clearTimeout(D.current), B.current = "");
1088
1090
  }),
1089
1091
  onPointerMove: I(
1090
1092
  e.onPointerMove,
1091
- tt((y) => {
1092
- const Q = y.target, ie = V.current !== y.clientX;
1093
- if (y.currentTarget.contains(Q) && ie) {
1094
- const de = y.clientX > V.current ? "right" : "left";
1095
- x.current = de, V.current = y.clientX;
1093
+ tt((x) => {
1094
+ const Q = x.target, ie = V.current !== x.clientX;
1095
+ if (x.currentTarget.contains(Q) && ie) {
1096
+ const de = x.clientX > V.current ? "right" : "left";
1097
+ y.current = de, V.current = x.clientX;
1096
1098
  }
1097
1099
  })
1098
1100
  )
@@ -1108,32 +1110,32 @@ var ue = "MenuContent", [Zs, Qt] = ke(ue), ur = h.forwardRef(
1108
1110
  );
1109
1111
  }
1110
1112
  );
1111
- ur.displayName = ue;
1112
- var ni = "MenuGroup", Gt = h.forwardRef(
1113
+ dr.displayName = ue;
1114
+ var ai = "MenuGroup", Gt = h.forwardRef(
1113
1115
  (e, t) => {
1114
1116
  const { __scopeMenu: n, ...r } = e;
1115
1117
  return /* @__PURE__ */ a.jsx(qe.div, { role: "group", ...r, ref: t });
1116
1118
  }
1117
1119
  );
1118
- Gt.displayName = ni;
1119
- var ri = "MenuLabel", dr = h.forwardRef(
1120
+ Gt.displayName = ai;
1121
+ var oi = "MenuLabel", fr = h.forwardRef(
1120
1122
  (e, t) => {
1121
1123
  const { __scopeMenu: n, ...r } = e;
1122
1124
  return /* @__PURE__ */ a.jsx(qe.div, { ...r, ref: t });
1123
1125
  }
1124
1126
  );
1125
- dr.displayName = ri;
1126
- var xt = "MenuItem", Mn = "menu.itemSelect", St = h.forwardRef(
1127
+ fr.displayName = oi;
1128
+ var yt = "MenuItem", Rn = "menu.itemSelect", St = h.forwardRef(
1127
1129
  (e, t) => {
1128
- const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(xt, e.__scopeMenu), l = Qt(xt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1130
+ const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(yt, e.__scopeMenu), l = Qt(yt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1129
1131
  const c = s.current;
1130
1132
  if (!n && c) {
1131
- const d = new CustomEvent(Mn, { bubbles: !0, cancelable: !0 });
1132
- c.addEventListener(Mn, (R) => r == null ? void 0 : r(R), { once: !0 }), ho(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1133
+ const d = new CustomEvent(Rn, { bubbles: !0, cancelable: !0 });
1134
+ c.addEventListener(Rn, (R) => r == null ? void 0 : r(R), { once: !0 }), po(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1133
1135
  }
1134
1136
  };
1135
1137
  return /* @__PURE__ */ a.jsx(
1136
- fr,
1138
+ hr,
1137
1139
  {
1138
1140
  ...o,
1139
1141
  ref: u,
@@ -1155,10 +1157,10 @@ var xt = "MenuItem", Mn = "menu.itemSelect", St = h.forwardRef(
1155
1157
  );
1156
1158
  }
1157
1159
  );
1158
- St.displayName = xt;
1159
- var fr = h.forwardRef(
1160
+ St.displayName = yt;
1161
+ var hr = h.forwardRef(
1160
1162
  (e, t) => {
1161
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Qt(xt, n), l = or(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, R] = h.useState("");
1163
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Qt(yt, n), l = sr(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, R] = h.useState("");
1162
1164
  return h.useEffect(() => {
1163
1165
  const C = u.current;
1164
1166
  C && R((C.textContent ?? "").trim());
@@ -1168,7 +1170,7 @@ var fr = h.forwardRef(
1168
1170
  scope: n,
1169
1171
  disabled: r,
1170
1172
  textValue: o ?? d,
1171
- children: /* @__PURE__ */ a.jsx(Zo, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1173
+ children: /* @__PURE__ */ a.jsx(ts, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1172
1174
  qe.div,
1173
1175
  {
1174
1176
  role: "menuitem",
@@ -1194,42 +1196,42 @@ var fr = h.forwardRef(
1194
1196
  }
1195
1197
  );
1196
1198
  }
1197
- ), ai = "MenuCheckboxItem", hr = h.forwardRef(
1199
+ ), si = "MenuCheckboxItem", pr = h.forwardRef(
1198
1200
  (e, t) => {
1199
1201
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
1200
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1202
+ return /* @__PURE__ */ a.jsx(yr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1201
1203
  St,
1202
1204
  {
1203
1205
  role: "menuitemcheckbox",
1204
- "aria-checked": yt(n) ? "mixed" : n,
1206
+ "aria-checked": xt(n) ? "mixed" : n,
1205
1207
  ...o,
1206
1208
  ref: t,
1207
1209
  "data-state": Xt(n),
1208
1210
  onSelect: I(
1209
1211
  o.onSelect,
1210
- () => r == null ? void 0 : r(yt(n) ? !0 : !n),
1212
+ () => r == null ? void 0 : r(xt(n) ? !0 : !n),
1211
1213
  { checkForDefaultPrevented: !1 }
1212
1214
  )
1213
1215
  }
1214
1216
  ) });
1215
1217
  }
1216
1218
  );
1217
- hr.displayName = ai;
1218
- var pr = "MenuRadioGroup", [oi, si] = ke(
1219
- pr,
1219
+ pr.displayName = si;
1220
+ var mr = "MenuRadioGroup", [ii, li] = ke(
1221
+ mr,
1220
1222
  { value: void 0, onValueChange: () => {
1221
1223
  } }
1222
- ), mr = h.forwardRef(
1224
+ ), gr = h.forwardRef(
1223
1225
  (e, t) => {
1224
1226
  const { value: n, onValueChange: r, ...o } = e, s = Lt(r);
1225
- return /* @__PURE__ */ a.jsx(oi, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Gt, { ...o, ref: t }) });
1227
+ return /* @__PURE__ */ a.jsx(ii, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Gt, { ...o, ref: t }) });
1226
1228
  }
1227
1229
  );
1228
- mr.displayName = pr;
1229
- var gr = "MenuRadioItem", vr = h.forwardRef(
1230
+ gr.displayName = mr;
1231
+ var vr = "MenuRadioItem", wr = h.forwardRef(
1230
1232
  (e, t) => {
1231
- const { value: n, ...r } = e, o = si(gr, e.__scopeMenu), s = n === o.value;
1232
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1233
+ const { value: n, ...r } = e, o = li(vr, e.__scopeMenu), s = n === o.value;
1234
+ return /* @__PURE__ */ a.jsx(yr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1233
1235
  St,
1234
1236
  {
1235
1237
  role: "menuitemradio",
@@ -1249,17 +1251,17 @@ var gr = "MenuRadioItem", vr = h.forwardRef(
1249
1251
  ) });
1250
1252
  }
1251
1253
  );
1252
- vr.displayName = gr;
1253
- var Wt = "MenuItemIndicator", [wr, ii] = ke(
1254
+ wr.displayName = vr;
1255
+ var Wt = "MenuItemIndicator", [yr, ci] = ke(
1254
1256
  Wt,
1255
1257
  { checked: !1 }
1256
1258
  ), xr = h.forwardRef(
1257
1259
  (e, t) => {
1258
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = ii(Wt, n);
1260
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = ci(Wt, n);
1259
1261
  return /* @__PURE__ */ a.jsx(
1260
1262
  bt,
1261
1263
  {
1262
- present: r || yt(s.checked) || s.checked === !0,
1264
+ present: r || xt(s.checked) || s.checked === !0,
1263
1265
  children: /* @__PURE__ */ a.jsx(
1264
1266
  qe.span,
1265
1267
  {
@@ -1273,7 +1275,7 @@ var Wt = "MenuItemIndicator", [wr, ii] = ke(
1273
1275
  }
1274
1276
  );
1275
1277
  xr.displayName = Wt;
1276
- var li = "MenuSeparator", yr = h.forwardRef(
1278
+ var ui = "MenuSeparator", br = h.forwardRef(
1277
1279
  (e, t) => {
1278
1280
  const { __scopeMenu: n, ...r } = e;
1279
1281
  return /* @__PURE__ */ a.jsx(
@@ -1287,18 +1289,18 @@ var li = "MenuSeparator", yr = h.forwardRef(
1287
1289
  );
1288
1290
  }
1289
1291
  );
1290
- yr.displayName = li;
1291
- var ci = "MenuArrow", br = h.forwardRef(
1292
+ br.displayName = ui;
1293
+ var di = "MenuArrow", Sr = h.forwardRef(
1292
1294
  (e, t) => {
1293
1295
  const { __scopeMenu: n, ...r } = e, o = st(n);
1294
- return /* @__PURE__ */ a.jsx(co, { ...o, ...r, ref: t });
1296
+ return /* @__PURE__ */ a.jsx(uo, { ...o, ...r, ref: t });
1295
1297
  }
1296
1298
  );
1297
- br.displayName = ci;
1298
- var Yt = "MenuSub", [ui, Sr] = ke(Yt), Cr = (e) => {
1299
+ Sr.displayName = di;
1300
+ var Yt = "MenuSub", [fi, Cr] = ke(Yt), Mr = (e) => {
1299
1301
  const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(Yt, t), i = st(t), [l, u] = h.useState(null), [m, f] = h.useState(null), c = Lt(o);
1300
- return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(Ln, { ...i, children: /* @__PURE__ */ a.jsx(
1301
- sr,
1302
+ return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(Bn, { ...i, children: /* @__PURE__ */ a.jsx(
1303
+ ir,
1302
1304
  {
1303
1305
  scope: t,
1304
1306
  open: r,
@@ -1306,7 +1308,7 @@ var Yt = "MenuSub", [ui, Sr] = ke(Yt), Cr = (e) => {
1306
1308
  content: m,
1307
1309
  onContentChange: f,
1308
1310
  children: /* @__PURE__ */ a.jsx(
1309
- ui,
1311
+ fi,
1310
1312
  {
1311
1313
  scope: t,
1312
1314
  contentId: gt(),
@@ -1319,10 +1321,10 @@ var Yt = "MenuSub", [ui, Sr] = ke(Yt), Cr = (e) => {
1319
1321
  }
1320
1322
  ) });
1321
1323
  };
1322
- Cr.displayName = Yt;
1323
- var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1324
+ Mr.displayName = Yt;
1325
+ var Xe = "MenuSubTrigger", Rr = h.forwardRef(
1324
1326
  (e, t) => {
1325
- const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Sr(Xe, e.__scopeMenu), s = Qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1327
+ const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Cr(Xe, e.__scopeMenu), s = Qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1326
1328
  i.current && window.clearTimeout(i.current), i.current = null;
1327
1329
  }, []);
1328
1330
  return h.useEffect(() => f, [f]), h.useEffect(() => {
@@ -1331,15 +1333,15 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1331
1333
  window.clearTimeout(c), u(null);
1332
1334
  };
1333
1335
  }, [l, u]), /* @__PURE__ */ a.jsx(Kt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1334
- fr,
1336
+ hr,
1335
1337
  {
1336
1338
  id: o.triggerId,
1337
1339
  "aria-haspopup": "menu",
1338
1340
  "aria-expanded": n.open,
1339
1341
  "aria-controls": o.contentId,
1340
- "data-state": Dr(n.open),
1342
+ "data-state": Pr(n.open),
1341
1343
  ...e,
1342
- ref: Fn(t, o.onTriggerChange),
1344
+ ref: Ln(t, o.onTriggerChange),
1343
1345
  onClick: (c) => {
1344
1346
  var d;
1345
1347
  (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
@@ -1384,16 +1386,16 @@ var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1384
1386
  onKeyDown: I(e.onKeyDown, (c) => {
1385
1387
  var R;
1386
1388
  const d = s.searchRef.current !== "";
1387
- e.disabled || d && c.key === " " || Qs[r.dir].includes(c.key) && (n.onOpenChange(!0), (R = n.content) == null || R.focus(), c.preventDefault());
1389
+ e.disabled || d && c.key === " " || Gs[r.dir].includes(c.key) && (n.onOpenChange(!0), (R = n.content) == null || R.focus(), c.preventDefault());
1388
1390
  })
1389
1391
  }
1390
1392
  ) });
1391
1393
  }
1392
1394
  );
1393
- Mr.displayName = Xe;
1394
- var Rr = "MenuSubContent", Er = h.forwardRef(
1395
+ Rr.displayName = Xe;
1396
+ var Er = "MenuSubContent", Dr = h.forwardRef(
1395
1397
  (e, t) => {
1396
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu), l = Sr(Rr, e.__scopeMenu), u = h.useRef(null), m = rt(t, u);
1398
+ const n = cr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu), l = Cr(Er, e.__scopeMenu), u = h.useRef(null), m = rt(t, u);
1397
1399
  return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1398
1400
  Vt,
1399
1401
  {
@@ -1419,41 +1421,41 @@ var Rr = "MenuSubContent", Er = h.forwardRef(
1419
1421
  }),
1420
1422
  onKeyDown: I(e.onKeyDown, (f) => {
1421
1423
  var R;
1422
- const c = f.currentTarget.contains(f.target), d = Vs[i.dir].includes(f.key);
1424
+ const c = f.currentTarget.contains(f.target), d = Ws[i.dir].includes(f.key);
1423
1425
  c && d && (s.onOpenChange(!1), (R = l.trigger) == null || R.focus(), f.preventDefault());
1424
1426
  })
1425
1427
  }
1426
1428
  ) }) }) });
1427
1429
  }
1428
1430
  );
1429
- Er.displayName = Rr;
1430
- function Dr(e) {
1431
+ Dr.displayName = Er;
1432
+ function Pr(e) {
1431
1433
  return e ? "open" : "closed";
1432
1434
  }
1433
- function yt(e) {
1435
+ function xt(e) {
1434
1436
  return e === "indeterminate";
1435
1437
  }
1436
1438
  function Xt(e) {
1437
- return yt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1439
+ return xt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1438
1440
  }
1439
- function di(e) {
1441
+ function hi(e) {
1440
1442
  const t = document.activeElement;
1441
1443
  for (const n of e)
1442
1444
  if (n === t || (n.focus(), document.activeElement !== t)) return;
1443
1445
  }
1444
- function fi(e, t) {
1446
+ function pi(e, t) {
1445
1447
  return e.map((n, r) => e[(t + r) % e.length]);
1446
1448
  }
1447
- function hi(e, t, n) {
1449
+ function mi(e, t, n) {
1448
1450
  const o = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1449
- let i = fi(e, Math.max(s, 0));
1451
+ let i = pi(e, Math.max(s, 0));
1450
1452
  o.length === 1 && (i = i.filter((m) => m !== n));
1451
1453
  const u = i.find(
1452
1454
  (m) => m.toLowerCase().startsWith(o.toLowerCase())
1453
1455
  );
1454
1456
  return u !== n ? u : void 0;
1455
1457
  }
1456
- function pi(e, t) {
1458
+ function gi(e, t) {
1457
1459
  const { x: n, y: r } = e;
1458
1460
  let o = !1;
1459
1461
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -1462,18 +1464,18 @@ function pi(e, t) {
1462
1464
  }
1463
1465
  return o;
1464
1466
  }
1465
- function mi(e, t) {
1467
+ function vi(e, t) {
1466
1468
  if (!t) return !1;
1467
1469
  const n = { x: e.clientX, y: e.clientY };
1468
- return pi(n, t);
1470
+ return gi(n, t);
1469
1471
  }
1470
1472
  function tt(e) {
1471
1473
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1472
1474
  }
1473
- var gi = ir, vi = Kt, wi = cr, xi = ur, yi = Gt, bi = dr, Si = St, Ci = hr, Mi = mr, Ri = vr, Ei = xr, Di = yr, Pi = br, ji = Cr, Ni = Mr, Ti = Er, Jt = "DropdownMenu", [_i, fc] = kn(
1474
- Jt,
1475
- [ar]
1476
- ), J = ar(), [Oi, Pr] = _i(Jt), jr = (e) => {
1475
+ var wi = lr, yi = Kt, xi = ur, bi = dr, Si = Gt, Ci = fr, Mi = St, Ri = pr, Ei = gr, Di = wr, Pi = xr, ji = br, Ni = Sr, Ti = Mr, _i = Rr, Oi = Dr, Zt = "DropdownMenu", [Ii, gc] = $n(
1476
+ Zt,
1477
+ [or]
1478
+ ), Z = or(), [Ai, jr] = Ii(Zt), Nr = (e) => {
1477
1479
  const {
1478
1480
  __scopeDropdownMenu: t,
1479
1481
  children: n,
@@ -1482,13 +1484,13 @@ var gi = ir, vi = Kt, wi = cr, xi = ur, yi = Gt, bi = dr, Si = St, Ci = hr, Mi =
1482
1484
  defaultOpen: s,
1483
1485
  onOpenChange: i,
1484
1486
  modal: l = !0
1485
- } = e, u = J(t), m = h.useRef(null), [f = !1, c] = Bn({
1487
+ } = e, u = Z(t), m = h.useRef(null), [f = !1, c] = Hn({
1486
1488
  prop: o,
1487
1489
  defaultProp: s,
1488
1490
  onChange: i
1489
1491
  });
1490
1492
  return /* @__PURE__ */ a.jsx(
1491
- Oi,
1493
+ Ai,
1492
1494
  {
1493
1495
  scope: t,
1494
1496
  triggerId: gt(),
@@ -1498,15 +1500,15 @@ var gi = ir, vi = Kt, wi = cr, xi = ur, yi = Gt, bi = dr, Si = St, Ci = hr, Mi =
1498
1500
  onOpenChange: c,
1499
1501
  onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1500
1502
  modal: l,
1501
- children: /* @__PURE__ */ a.jsx(gi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1503
+ children: /* @__PURE__ */ a.jsx(wi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1502
1504
  }
1503
1505
  );
1504
1506
  };
1505
- jr.displayName = Jt;
1506
- var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1507
+ Nr.displayName = Zt;
1508
+ var Tr = "DropdownMenuTrigger", _r = h.forwardRef(
1507
1509
  (e, t) => {
1508
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Pr(Nr, n), i = J(n);
1509
- return /* @__PURE__ */ a.jsx(vi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1510
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = jr(Tr, n), i = Z(n);
1511
+ return /* @__PURE__ */ a.jsx(yi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1510
1512
  qe.button,
1511
1513
  {
1512
1514
  type: "button",
@@ -1518,7 +1520,7 @@ var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1518
1520
  "data-disabled": r ? "" : void 0,
1519
1521
  disabled: r,
1520
1522
  ...o,
1521
- ref: Fn(t, s.triggerRef),
1523
+ ref: Ln(t, s.triggerRef),
1522
1524
  onPointerDown: I(e.onPointerDown, (l) => {
1523
1525
  !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1524
1526
  }),
@@ -1529,17 +1531,17 @@ var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1529
1531
  ) });
1530
1532
  }
1531
1533
  );
1532
- Tr.displayName = Nr;
1533
- var Ii = "DropdownMenuPortal", _r = (e) => {
1534
- const { __scopeDropdownMenu: t, ...n } = e, r = J(t);
1535
- return /* @__PURE__ */ a.jsx(wi, { ...r, ...n });
1534
+ _r.displayName = Tr;
1535
+ var ki = "DropdownMenuPortal", Or = (e) => {
1536
+ const { __scopeDropdownMenu: t, ...n } = e, r = Z(t);
1537
+ return /* @__PURE__ */ a.jsx(xi, { ...r, ...n });
1536
1538
  };
1537
- _r.displayName = Ii;
1538
- var Or = "DropdownMenuContent", Ir = h.forwardRef(
1539
+ Or.displayName = ki;
1540
+ var Ir = "DropdownMenuContent", Ar = h.forwardRef(
1539
1541
  (e, t) => {
1540
- const { __scopeDropdownMenu: n, ...r } = e, o = Pr(Or, n), s = J(n), i = h.useRef(!1);
1542
+ const { __scopeDropdownMenu: n, ...r } = e, o = jr(Ir, n), s = Z(n), i = h.useRef(!1);
1541
1543
  return /* @__PURE__ */ a.jsx(
1542
- xi,
1544
+ bi,
1543
1545
  {
1544
1546
  id: o.contentId,
1545
1547
  "aria-labelledby": o.triggerId,
@@ -1566,76 +1568,76 @@ var Or = "DropdownMenuContent", Ir = h.forwardRef(
1566
1568
  );
1567
1569
  }
1568
1570
  );
1569
- Ir.displayName = Or;
1570
- var Ai = "DropdownMenuGroup", ki = h.forwardRef(
1571
+ Ar.displayName = Ir;
1572
+ var $i = "DropdownMenuGroup", Fi = h.forwardRef(
1571
1573
  (e, t) => {
1572
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1573
- return /* @__PURE__ */ a.jsx(yi, { ...o, ...r, ref: t });
1574
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1575
+ return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1574
1576
  }
1575
1577
  );
1576
- ki.displayName = Ai;
1577
- var $i = "DropdownMenuLabel", Ar = h.forwardRef(
1578
+ Fi.displayName = $i;
1579
+ var Li = "DropdownMenuLabel", kr = h.forwardRef(
1578
1580
  (e, t) => {
1579
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1580
- return /* @__PURE__ */ a.jsx(bi, { ...o, ...r, ref: t });
1581
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1582
+ return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1581
1583
  }
1582
1584
  );
1583
- Ar.displayName = $i;
1584
- var Fi = "DropdownMenuItem", kr = h.forwardRef(
1585
+ kr.displayName = Li;
1586
+ var Bi = "DropdownMenuItem", $r = h.forwardRef(
1585
1587
  (e, t) => {
1586
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1587
- return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1588
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1589
+ return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1588
1590
  }
1589
1591
  );
1590
- kr.displayName = Fi;
1591
- var Li = "DropdownMenuCheckboxItem", $r = h.forwardRef((e, t) => {
1592
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1593
- return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1594
- });
1595
- $r.displayName = Li;
1596
- var Bi = "DropdownMenuRadioGroup", Hi = h.forwardRef((e, t) => {
1597
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1598
- return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1599
- });
1600
- Hi.displayName = Bi;
1601
- var Ui = "DropdownMenuRadioItem", Fr = h.forwardRef((e, t) => {
1602
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1592
+ $r.displayName = Bi;
1593
+ var Hi = "DropdownMenuCheckboxItem", Fr = h.forwardRef((e, t) => {
1594
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1603
1595
  return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
1604
1596
  });
1605
- Fr.displayName = Ui;
1606
- var zi = "DropdownMenuItemIndicator", Lr = h.forwardRef((e, t) => {
1607
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1597
+ Fr.displayName = Hi;
1598
+ var Ui = "DropdownMenuRadioGroup", zi = h.forwardRef((e, t) => {
1599
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1608
1600
  return /* @__PURE__ */ a.jsx(Ei, { ...o, ...r, ref: t });
1609
1601
  });
1610
- Lr.displayName = zi;
1611
- var Ki = "DropdownMenuSeparator", Br = h.forwardRef((e, t) => {
1612
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1602
+ zi.displayName = Ui;
1603
+ var Ki = "DropdownMenuRadioItem", Lr = h.forwardRef((e, t) => {
1604
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1613
1605
  return /* @__PURE__ */ a.jsx(Di, { ...o, ...r, ref: t });
1614
1606
  });
1615
- Br.displayName = Ki;
1616
- var qi = "DropdownMenuArrow", Qi = h.forwardRef(
1607
+ Lr.displayName = Ki;
1608
+ var qi = "DropdownMenuItemIndicator", Br = h.forwardRef((e, t) => {
1609
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1610
+ return /* @__PURE__ */ a.jsx(Pi, { ...o, ...r, ref: t });
1611
+ });
1612
+ Br.displayName = qi;
1613
+ var Qi = "DropdownMenuSeparator", Hr = h.forwardRef((e, t) => {
1614
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1615
+ return /* @__PURE__ */ a.jsx(ji, { ...o, ...r, ref: t });
1616
+ });
1617
+ Hr.displayName = Qi;
1618
+ var Vi = "DropdownMenuArrow", Gi = h.forwardRef(
1617
1619
  (e, t) => {
1618
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1619
- return /* @__PURE__ */ a.jsx(Pi, { ...o, ...r, ref: t });
1620
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1621
+ return /* @__PURE__ */ a.jsx(Ni, { ...o, ...r, ref: t });
1620
1622
  }
1621
1623
  );
1622
- Qi.displayName = qi;
1623
- var Vi = (e) => {
1624
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = J(t), [l = !1, u] = Bn({
1624
+ Gi.displayName = Vi;
1625
+ var Wi = (e) => {
1626
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = Z(t), [l = !1, u] = Hn({
1625
1627
  prop: r,
1626
1628
  defaultProp: s,
1627
1629
  onChange: o
1628
1630
  });
1629
- return /* @__PURE__ */ a.jsx(ji, { ...i, open: l, onOpenChange: u, children: n });
1630
- }, Gi = "DropdownMenuSubTrigger", Hr = h.forwardRef((e, t) => {
1631
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1632
- return /* @__PURE__ */ a.jsx(Ni, { ...o, ...r, ref: t });
1631
+ return /* @__PURE__ */ a.jsx(Ti, { ...i, open: l, onOpenChange: u, children: n });
1632
+ }, Yi = "DropdownMenuSubTrigger", Ur = h.forwardRef((e, t) => {
1633
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1634
+ return /* @__PURE__ */ a.jsx(_i, { ...o, ...r, ref: t });
1633
1635
  });
1634
- Hr.displayName = Gi;
1635
- var Wi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1636
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1636
+ Ur.displayName = Yi;
1637
+ var Xi = "DropdownMenuSubContent", zr = h.forwardRef((e, t) => {
1638
+ const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1637
1639
  return /* @__PURE__ */ a.jsx(
1638
- Ti,
1640
+ Oi,
1639
1641
  {
1640
1642
  ...o,
1641
1643
  ...r,
@@ -1651,10 +1653,10 @@ var Wi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1651
1653
  }
1652
1654
  );
1653
1655
  });
1654
- Ur.displayName = Wi;
1655
- var Yi = jr, Xi = Tr, zr = _r, Kr = Ir, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Ji = Vi, Xr = Hr, Jr = Ur;
1656
- const Zi = Yi, el = Xi, tl = zr, nl = Ji, Zr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1657
- Xr,
1656
+ zr.displayName = Xi;
1657
+ var Zi = Nr, Ji = _r, Kr = Or, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Xr = Hr, el = Wi, Zr = Ur, Jr = zr;
1658
+ const tl = Zi, nl = Ji, rl = Kr, al = el, ea = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1659
+ Zr,
1658
1660
  {
1659
1661
  ref: o,
1660
1662
  className: F(
@@ -1665,12 +1667,12 @@ const Zi = Yi, el = Xi, tl = zr, nl = Ji, Zr = h.forwardRef(({ className: e, ins
1665
1667
  ...r,
1666
1668
  children: [
1667
1669
  n,
1668
- /* @__PURE__ */ a.jsx(Xn, { className: "ml-auto h-4 w-4" })
1670
+ /* @__PURE__ */ a.jsx(Zn, { className: "ml-auto h-4 w-4" })
1669
1671
  ]
1670
1672
  }
1671
1673
  ));
1672
- Zr.displayName = Xr.displayName;
1673
- const ea = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1674
+ ea.displayName = Zr.displayName;
1675
+ const ta = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1674
1676
  Jr,
1675
1677
  {
1676
1678
  ref: n,
@@ -1681,9 +1683,9 @@ const ea = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1681
1683
  ...t
1682
1684
  }
1683
1685
  ));
1684
- ea.displayName = Jr.displayName;
1685
- const ta = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(zr, { children: /* @__PURE__ */ a.jsx(
1686
- Kr,
1686
+ ta.displayName = Jr.displayName;
1687
+ const na = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(Kr, { children: /* @__PURE__ */ a.jsx(
1688
+ qr,
1687
1689
  {
1688
1690
  ref: r,
1689
1691
  sideOffset: t,
@@ -1695,9 +1697,9 @@ const ta = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
1695
1697
  ...n
1696
1698
  }
1697
1699
  ) }));
1698
- ta.displayName = Kr.displayName;
1699
- const na = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1700
- Qr,
1700
+ na.displayName = qr.displayName;
1701
+ const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1702
+ Vr,
1701
1703
  {
1702
1704
  ref: r,
1703
1705
  className: F(
@@ -1708,9 +1710,9 @@ const na = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1708
1710
  ...n
1709
1711
  }
1710
1712
  ));
1711
- na.displayName = Qr.displayName;
1712
- const rl = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1713
- Vr,
1713
+ ra.displayName = Vr.displayName;
1714
+ const ol = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1715
+ Gr,
1714
1716
  {
1715
1717
  ref: o,
1716
1718
  className: F(
@@ -1720,14 +1722,14 @@ const rl = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
1720
1722
  checked: n,
1721
1723
  ...r,
1722
1724
  children: [
1723
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(zo, { className: "h-4 w-4" }) }) }),
1725
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Yr, { children: /* @__PURE__ */ a.jsx(qo, { className: "h-4 w-4" }) }) }),
1724
1726
  t
1725
1727
  ]
1726
1728
  }
1727
1729
  ));
1728
- rl.displayName = Vr.displayName;
1729
- const al = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1730
- Gr,
1730
+ ol.displayName = Gr.displayName;
1731
+ const sl = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1732
+ Wr,
1731
1733
  {
1732
1734
  ref: r,
1733
1735
  className: F(
@@ -1736,14 +1738,14 @@ const al = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
1736
1738
  ),
1737
1739
  ...n,
1738
1740
  children: [
1739
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Ko, { className: "h-4 w-4 fill-current" }) }) }),
1741
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Yr, { children: /* @__PURE__ */ a.jsx(Qo, { className: "h-4 w-4 fill-current" }) }) }),
1740
1742
  t
1741
1743
  ]
1742
1744
  }
1743
1745
  ));
1744
- al.displayName = Gr.displayName;
1745
- const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1746
- qr,
1746
+ sl.displayName = Wr.displayName;
1747
+ const aa = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1748
+ Qr,
1747
1749
  {
1748
1750
  ref: r,
1749
1751
  className: F(
@@ -1754,27 +1756,27 @@ const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1754
1756
  ...n
1755
1757
  }
1756
1758
  ));
1757
- ra.displayName = qr.displayName;
1758
- const aa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1759
- Yr,
1759
+ aa.displayName = Qr.displayName;
1760
+ const oa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1761
+ Xr,
1760
1762
  {
1761
1763
  ref: n,
1762
1764
  className: F("-mx-1 my-1 h-px bg-muted", e),
1763
1765
  ...t
1764
1766
  }
1765
1767
  ));
1766
- aa.displayName = Yr.displayName;
1767
- const Rn = {
1768
+ oa.displayName = Xr.displayName;
1769
+ const En = {
1768
1770
  info: "bg-blue-500",
1769
1771
  note: "bg-gray-500",
1770
1772
  tip: "bg-green-600",
1771
1773
  caution: "bg-orange-500",
1772
1774
  danger: "bg-rose-500"
1773
- }, ol = () => {
1775
+ }, il = () => {
1774
1776
  const { page: e } = Ae(), [t, n] = Ie(!0);
1775
1777
  if (!(e != null && e.banner) || !t)
1776
1778
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1777
- const r = e.banner.color && e.banner.color in Rn ? Rn[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = r ? {} : { backgroundColor: e.banner.color };
1779
+ const r = e.banner.color && e.banner.color in En ? En[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = r ? {} : { backgroundColor: e.banner.color };
1778
1780
  return /* @__PURE__ */ a.jsxs(
1779
1781
  "div",
1780
1782
  {
@@ -1791,19 +1793,19 @@ const Rn = {
1791
1793
  type: "button",
1792
1794
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1793
1795
  onClick: () => n(!1),
1794
- children: /* @__PURE__ */ a.jsx(qo, { size: 16 })
1796
+ children: /* @__PURE__ */ a.jsx(Vo, { size: 16 })
1795
1797
  }
1796
1798
  )
1797
1799
  ]
1798
1800
  }
1799
1801
  );
1800
1802
  };
1801
- function sl(e) {
1803
+ function ll(e) {
1802
1804
  if (typeof document > "u") return;
1803
1805
  let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
1804
1806
  n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
1805
1807
  }
1806
- const oa = p.createContext({
1808
+ const sa = p.createContext({
1807
1809
  drawerRef: {
1808
1810
  current: null
1809
1811
  },
@@ -1851,56 +1853,56 @@ const oa = p.createContext({
1851
1853
  container: null,
1852
1854
  autoFocus: !1
1853
1855
  }), Qe = () => {
1854
- const e = p.useContext(oa);
1856
+ const e = p.useContext(sa);
1855
1857
  if (!e)
1856
1858
  throw new Error("useDrawerContext must be used within a Drawer.Root");
1857
1859
  return e;
1858
1860
  };
1859
- sl(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
1861
+ ll(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
1860
1862
  [data-state=closed]
1861
1863
  ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
1862
- function il() {
1864
+ function cl() {
1863
1865
  const e = navigator.userAgent;
1864
1866
  return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
1865
1867
  /FxiOS/.test(e));
1866
1868
  }
1867
- function ll() {
1868
- return Zt(/^Mac/);
1869
+ function ul() {
1870
+ return Jt(/^Mac/);
1869
1871
  }
1870
- function cl() {
1871
- return Zt(/^iPhone/);
1872
+ function dl() {
1873
+ return Jt(/^iPhone/);
1872
1874
  }
1873
- function En() {
1875
+ function Dn() {
1874
1876
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
1875
1877
  }
1876
- function ul() {
1877
- return Zt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1878
- ll() && navigator.maxTouchPoints > 1;
1878
+ function fl() {
1879
+ return Jt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1880
+ ul() && navigator.maxTouchPoints > 1;
1879
1881
  }
1880
- function sa() {
1881
- return cl() || ul();
1882
+ function ia() {
1883
+ return dl() || fl();
1882
1884
  }
1883
- function Zt(e) {
1885
+ function Jt(e) {
1884
1886
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1885
1887
  }
1886
- const dl = 24, fl = typeof window < "u" ? Mo : Ce;
1887
- function Dn(...e) {
1888
+ const hl = 24, pl = typeof window < "u" ? Ro : Ce;
1889
+ function Pn(...e) {
1888
1890
  return (...t) => {
1889
1891
  for (let n of e)
1890
1892
  typeof n == "function" && n(...t);
1891
1893
  };
1892
1894
  }
1893
1895
  const Et = typeof document < "u" && window.visualViewport;
1894
- function Pn(e) {
1896
+ function jn(e) {
1895
1897
  let t = window.getComputedStyle(e);
1896
1898
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
1897
1899
  }
1898
- function ia(e) {
1899
- for (Pn(e) && (e = e.parentElement); e && !Pn(e); )
1900
+ function la(e) {
1901
+ for (jn(e) && (e = e.parentElement); e && !jn(e); )
1900
1902
  e = e.parentElement;
1901
1903
  return e || document.scrollingElement || document.documentElement;
1902
1904
  }
1903
- const hl = /* @__PURE__ */ new Set([
1905
+ const ml = /* @__PURE__ */ new Set([
1904
1906
  "checkbox",
1905
1907
  "radio",
1906
1908
  "range",
@@ -1912,20 +1914,20 @@ const hl = /* @__PURE__ */ new Set([
1912
1914
  "reset"
1913
1915
  ]);
1914
1916
  let ht = 0, Dt;
1915
- function pl(e = {}) {
1917
+ function gl(e = {}) {
1916
1918
  let { isDisabled: t } = e;
1917
- fl(() => {
1919
+ pl(() => {
1918
1920
  if (!t)
1919
- return ht++, ht === 1 && sa() && (Dt = ml()), () => {
1921
+ return ht++, ht === 1 && ia() && (Dt = vl()), () => {
1920
1922
  ht--, ht === 0 && (Dt == null || Dt());
1921
1923
  };
1922
1924
  }, [
1923
1925
  t
1924
1926
  ]);
1925
1927
  }
1926
- function ml() {
1928
+ function vl() {
1927
1929
  let e, t = 0, n = (c) => {
1928
- e = ia(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1930
+ e = la(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1929
1931
  }, r = (c) => {
1930
1932
  if (!e || e === document.documentElement || e === document.body) {
1931
1933
  c.preventDefault();
@@ -1942,16 +1944,16 @@ function ml() {
1942
1944
  let d = c.target;
1943
1945
  Ot(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1944
1946
  d.style.transform = "", Et && (Et.height < window.innerHeight ? requestAnimationFrame(() => {
1945
- jn(d);
1946
- }) : Et.addEventListener("resize", () => jn(d), {
1947
+ Nn(d);
1948
+ }) : Et.addEventListener("resize", () => Nn(d), {
1947
1949
  once: !0
1948
1950
  }));
1949
1951
  }));
1950
1952
  }, i = () => {
1951
1953
  window.scrollTo(0, 0);
1952
- }, l = window.pageXOffset, u = window.pageYOffset, m = Dn(gl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1954
+ }, l = window.pageXOffset, u = window.pageYOffset, m = Pn(wl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1953
1955
  window.scrollTo(0, 0);
1954
- let f = Dn(We(document, "touchstart", n, {
1956
+ let f = Pn(We(document, "touchstart", n, {
1955
1957
  passive: !1,
1956
1958
  capture: !0
1957
1959
  }), We(document, "touchmove", r, {
@@ -1965,7 +1967,7 @@ function ml() {
1965
1967
  m(), f(), window.scrollTo(l, u);
1966
1968
  };
1967
1969
  }
1968
- function gl(e, t, n) {
1970
+ function wl(e, t, n) {
1969
1971
  let r = e.style[t];
1970
1972
  return e.style[t] = n, () => {
1971
1973
  e.style[t] = r;
@@ -1976,31 +1978,31 @@ function We(e, t, n, r) {
1976
1978
  e.removeEventListener(t, n, r);
1977
1979
  };
1978
1980
  }
1979
- function jn(e) {
1981
+ function Nn(e) {
1980
1982
  let t = document.scrollingElement || document.documentElement;
1981
1983
  for (; e && e !== t; ) {
1982
- let n = ia(e);
1984
+ let n = la(e);
1983
1985
  if (n !== document.documentElement && n !== document.body && n !== e) {
1984
1986
  let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
1985
- const i = n.getBoundingClientRect().bottom + dl;
1987
+ const i = n.getBoundingClientRect().bottom + hl;
1986
1988
  s > i && (n.scrollTop += o - r);
1987
1989
  }
1988
1990
  e = n.parentElement;
1989
1991
  }
1990
1992
  }
1991
1993
  function Ot(e) {
1992
- return e instanceof HTMLInputElement && !hl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1994
+ return e instanceof HTMLInputElement && !ml.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1993
1995
  }
1994
- function vl(e, t) {
1996
+ function yl(e, t) {
1995
1997
  typeof e == "function" ? e(t) : e != null && (e.current = t);
1996
1998
  }
1997
- function wl(...e) {
1998
- return (t) => e.forEach((n) => vl(n, t));
1999
+ function xl(...e) {
2000
+ return (t) => e.forEach((n) => yl(n, t));
1999
2001
  }
2000
- function la(...e) {
2001
- return h.useCallback(wl(...e), e);
2002
+ function ca(...e) {
2003
+ return h.useCallback(xl(...e), e);
2002
2004
  }
2003
- const ca = /* @__PURE__ */ new WeakMap();
2005
+ const ua = /* @__PURE__ */ new WeakMap();
2004
2006
  function H(e, t, n = !1) {
2005
2007
  if (!e || !(e instanceof HTMLElement)) return;
2006
2008
  let r = {};
@@ -2010,11 +2012,11 @@ function H(e, t, n = !1) {
2010
2012
  return;
2011
2013
  }
2012
2014
  r[o] = e.style[o], e.style[o] = s;
2013
- }), !n && ca.set(e, r);
2015
+ }), !n && ua.set(e, r);
2014
2016
  }
2015
- function xl(e, t) {
2017
+ function bl(e, t) {
2016
2018
  if (!e || !(e instanceof HTMLElement)) return;
2017
- let n = ca.get(e);
2019
+ let n = ua.get(e);
2018
2020
  n && (e.style[t] = n[t]);
2019
2021
  }
2020
2022
  const U = (e) => {
@@ -2039,7 +2041,7 @@ function pt(e, t) {
2039
2041
  let o = r.match(/^matrix3d\((.+)\)$/);
2040
2042
  return o ? parseFloat(o[1].split(", ")[U(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[U(t) ? 5 : 4]) : null);
2041
2043
  }
2042
- function yl(e) {
2044
+ function Sl(e) {
2043
2045
  return 8 * (Math.log(e + 1) - 2);
2044
2046
  }
2045
2047
  function Pt(e, t) {
@@ -2050,7 +2052,7 @@ function Pt(e, t) {
2050
2052
  e.style.cssText = n;
2051
2053
  };
2052
2054
  }
2053
- function bl(...e) {
2055
+ function Cl(...e) {
2054
2056
  return (...t) => {
2055
2057
  for (const n of e)
2056
2058
  typeof n == "function" && n(...t);
@@ -2064,15 +2066,15 @@ const k = {
2064
2066
  0,
2065
2067
  1
2066
2068
  ]
2067
- }, ua = 0.4, Sl = 0.25, Cl = 100, da = 8, Oe = 16, It = 26, jt = "vaul-dragging";
2068
- function fa(e) {
2069
+ }, da = 0.4, Ml = 0.25, Rl = 100, fa = 8, Oe = 16, It = 26, jt = "vaul-dragging";
2070
+ function ha(e) {
2069
2071
  const t = p.useRef(e);
2070
2072
  return p.useEffect(() => {
2071
2073
  t.current = e;
2072
2074
  }), p.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2073
2075
  }
2074
- function Ml({ defaultProp: e, onChange: t }) {
2075
- const n = p.useState(e), [r] = n, o = p.useRef(r), s = fa(t);
2076
+ function El({ defaultProp: e, onChange: t }) {
2077
+ const n = p.useState(e), [r] = n, o = p.useRef(r), s = ha(t);
2076
2078
  return p.useEffect(() => {
2077
2079
  o.current !== r && (s(r), o.current = r);
2078
2080
  }, [
@@ -2081,12 +2083,12 @@ function Ml({ defaultProp: e, onChange: t }) {
2081
2083
  s
2082
2084
  ]), n;
2083
2085
  }
2084
- function ha({ prop: e, defaultProp: t, onChange: n = () => {
2086
+ function pa({ prop: e, defaultProp: t, onChange: n = () => {
2085
2087
  } }) {
2086
- const [r, o] = Ml({
2088
+ const [r, o] = El({
2087
2089
  defaultProp: t,
2088
2090
  onChange: n
2089
- }), s = e !== void 0, i = s ? e : r, l = fa(n), u = p.useCallback((m) => {
2091
+ }), s = e !== void 0, i = s ? e : r, l = ha(n), u = p.useCallback((m) => {
2090
2092
  if (s) {
2091
2093
  const c = typeof m == "function" ? m(e) : m;
2092
2094
  c !== e && l(c);
@@ -2103,8 +2105,8 @@ function ha({ prop: e, defaultProp: t, onChange: n = () => {
2103
2105
  u
2104
2106
  ];
2105
2107
  }
2106
- function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2107
- const [f, c] = ha({
2108
+ function Dl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2109
+ const [f, c] = pa({
2108
2110
  prop: e,
2109
2111
  defaultProp: n == null ? void 0 : n[0],
2110
2112
  onChange: t
@@ -2146,8 +2148,8 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2146
2148
  const B = typeof D == "string";
2147
2149
  let K = 0;
2148
2150
  if (B && (K = parseInt(D, 10)), U(l)) {
2149
- const x = B ? K : d ? D * b.height : 0;
2150
- return d ? l === "bottom" ? b.height - x : -b.height + x : x;
2151
+ const y = B ? K : d ? D * b.height : 0;
2152
+ return d ? l === "bottom" ? b.height - y : -b.height + y : y;
2151
2153
  }
2152
2154
  const W = B ? K : d ? D * b.width : 0;
2153
2155
  return d ? l === "right" ? b.width - W : -b.width + W : W;
@@ -2195,7 +2197,7 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2195
2197
  ]);
2196
2198
  function v({ draggedDistance: b, closeDrawer: j, velocity: D, dismissible: B }) {
2197
2199
  if (s === void 0) return;
2198
- const K = l === "bottom" || l === "right" ? (A ?? 0) - b : (A ?? 0) + b, W = g === s - 1, x = g === 0, V = b > 0;
2200
+ const K = l === "bottom" || l === "right" ? (A ?? 0) - b : (A ?? 0) + b, W = g === s - 1, y = g === 0, V = b > 0;
2199
2201
  if (W && H(o.current, {
2200
2202
  transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2201
2203
  }), !m && D > 2 && !V) {
@@ -2207,13 +2209,13 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2207
2209
  return;
2208
2210
  }
2209
2211
  const G = M == null ? void 0 : M.reduce((q, Y) => typeof q != "number" || typeof Y != "number" ? q : Math.abs(Y - K) < Math.abs(q - K) ? Y : q), te = U(l) ? window.innerHeight : window.innerWidth;
2210
- if (D > ua && Math.abs(b) < te * 0.4) {
2212
+ if (D > da && Math.abs(b) < te * 0.4) {
2211
2213
  const q = V ? 1 : -1;
2212
2214
  if (q > 0 && C && n) {
2213
2215
  P(M[n.length - 1]);
2214
2216
  return;
2215
2217
  }
2216
- if (x && q < 0 && B && j(), g === null) return;
2218
+ if (y && q < 0 && B && j(), g === null) return;
2217
2219
  P(M[g + q]);
2218
2220
  return;
2219
2221
  }
@@ -2226,21 +2228,21 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2226
2228
  transform: U(l) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
2227
2229
  });
2228
2230
  }
2229
- function Z(b, j) {
2231
+ function J(b, j) {
2230
2232
  if (!n || typeof g != "number" || !M || s === void 0) return null;
2231
2233
  const D = g === s - 1;
2232
2234
  if (g >= s && j)
2233
2235
  return 0;
2234
2236
  if (D && !j) return 1;
2235
2237
  if (!T && !D) return null;
2236
- const K = D ? g + 1 : g - 1, W = D ? M[K] - M[K - 1] : M[K + 1] - M[K], x = b / Math.abs(W);
2237
- return D ? 1 - x : x;
2238
+ const K = D ? g + 1 : g - 1, W = D ? M[K] - M[K - 1] : M[K + 1] - M[K], y = b / Math.abs(W);
2239
+ return D ? 1 - y : y;
2238
2240
  }
2239
2241
  return {
2240
2242
  isLastSnapPoint: C,
2241
2243
  activeSnapPoint: f,
2242
2244
  shouldFade: T,
2243
- getPercentageDragged: Z,
2245
+ getPercentageDragged: J,
2244
2246
  setActiveSnapPoint: c,
2245
2247
  activeSnapPointIndex: g,
2246
2248
  onRelease: v,
@@ -2248,9 +2250,9 @@ function Rl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2248
2250
  snapPointsOffset: M
2249
2251
  };
2250
2252
  }
2251
- const El = () => () => {
2253
+ const Pl = () => () => {
2252
2254
  };
2253
- function Dl() {
2255
+ function jl() {
2254
2256
  const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = Qe(), s = p.useRef(null), i = mt(() => document.body.style.backgroundColor, []);
2255
2257
  function l() {
2256
2258
  return (window.innerWidth - It) / window.innerWidth;
@@ -2260,16 +2262,16 @@ function Dl() {
2260
2262
  s.current && clearTimeout(s.current);
2261
2263
  const u = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
2262
2264
  if (!u) return;
2263
- bl(r && !o ? Pt(document.body, {
2265
+ Cl(r && !o ? Pt(document.body, {
2264
2266
  background: "black"
2265
- }) : El, Pt(u, {
2267
+ }) : Pl, Pt(u, {
2266
2268
  transformOrigin: U(e) ? "top" : "left",
2267
2269
  transitionProperty: "transform, border-radius",
2268
2270
  transitionDuration: `${k.DURATION}s`,
2269
2271
  transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2270
2272
  }));
2271
2273
  const m = Pt(u, {
2272
- borderRadius: `${da}px`,
2274
+ borderRadius: `${fa}px`,
2273
2275
  overflow: "hidden",
2274
2276
  ...U(e) ? {
2275
2277
  transform: `scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
@@ -2290,9 +2292,9 @@ function Dl() {
2290
2292
  ]);
2291
2293
  }
2292
2294
  let Ye = null;
2293
- function Pl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2295
+ function Nl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2294
2296
  const [i, l] = p.useState(() => typeof window < "u" ? window.location.href : ""), u = p.useRef(0), m = p.useCallback(() => {
2295
- if (En() && Ye === null && e && !s) {
2297
+ if (Dn() && Ye === null && e && !s) {
2296
2298
  Ye = {
2297
2299
  position: document.body.style.position,
2298
2300
  top: document.body.style.top,
@@ -2314,7 +2316,7 @@ function Pl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
2314
2316
  }, [
2315
2317
  e
2316
2318
  ]), f = p.useCallback(() => {
2317
- if (En() && Ye !== null && !s) {
2319
+ if (Dn() && Ye !== null && !s) {
2318
2320
  const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
2319
2321
  Object.assign(document.body.style, Ye), window.requestAnimationFrame(() => {
2320
2322
  if (o && i !== window.location.href) {
@@ -2358,9 +2360,9 @@ function Pl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
2358
2360
  restorePositionSetting: f
2359
2361
  };
2360
2362
  }
2361
- function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = Sl, scrollLockTimeout: m = Cl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: R, setActiveSnapPoint: C, fixed: g, modal: T = !0, onClose: M, nested: A, noBodyStyles: P = !1, direction: v = "bottom", defaultOpen: z = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: b = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2362
- var x, V;
2363
- const [G = !1, te] = ha({
2363
+ function ma({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = Ml, scrollLockTimeout: m = Rl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: R, setActiveSnapPoint: C, fixed: g, modal: T = !0, onClose: M, nested: A, noBodyStyles: P = !1, direction: v = "bottom", defaultOpen: z = !1, disablePreventScroll: J = !0, snapToSequentialPoint: b = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2364
+ var y, V;
2365
+ const [G = !1, te] = pa({
2364
2366
  defaultProp: z,
2365
2367
  prop: e,
2366
2368
  onChange: (S) => {
@@ -2370,9 +2372,9 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2370
2372
  document.body.style.pointerEvents = "auto";
2371
2373
  }), S || (document.body.style.pointerEvents = "auto");
2372
2374
  }
2373
- }), [q, Y] = p.useState(!1), [y, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), $e = p.useRef(null), ye = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), Fe = p.useRef(0), Le = p.useRef(!1), rn = p.useRef(!z), an = p.useRef(0), E = p.useRef(null), on = p.useRef(((x = E.current) == null ? void 0 : x.getBoundingClientRect().height) || 0), sn = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), Ct = p.useRef(0), Pa = p.useCallback((S) => {
2375
+ }), [q, Y] = p.useState(!1), [x, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), $e = p.useRef(null), xe = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), Fe = p.useRef(0), Le = p.useRef(!1), an = p.useRef(!z), on = p.useRef(0), E = p.useRef(null), sn = p.useRef(((y = E.current) == null ? void 0 : y.getBoundingClientRect().height) || 0), ln = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), Ct = p.useRef(0), Pa = p.useCallback((S) => {
2374
2376
  s && S === Ve.length - 1 && (Me.current = /* @__PURE__ */ new Date());
2375
- }, []), { activeSnapPoint: ja, activeSnapPointIndex: Be, setActiveSnapPoint: ln, onRelease: Na, snapPointsOffset: Ve, onDrag: Ta, shouldFade: cn, getPercentageDragged: _a } = Rl({
2377
+ }, []), { activeSnapPoint: ja, activeSnapPointIndex: Be, setActiveSnapPoint: cn, onRelease: Na, snapPointsOffset: Ve, onDrag: Ta, shouldFade: un, getPercentageDragged: _a } = Dl({
2376
2378
  snapPoints: s,
2377
2379
  activeSnapPointProp: R,
2378
2380
  setActiveSnapPointProp: C,
@@ -2384,10 +2386,10 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2384
2386
  container: K,
2385
2387
  snapToSequentialPoint: b
2386
2388
  });
2387
- pl({
2388
- isDisabled: !G || y || !T || ie || !q || !D || !Z
2389
+ gl({
2390
+ isDisabled: !G || x || !T || ie || !q || !D || !J
2389
2391
  });
2390
- const { restorePositionSetting: Oa } = Pl({
2392
+ const { restorePositionSetting: Oa } = Nl({
2391
2393
  isOpen: G,
2392
2394
  modal: T,
2393
2395
  nested: A ?? !1,
@@ -2400,11 +2402,11 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2400
2402
  }
2401
2403
  function Ia(S) {
2402
2404
  var _, O;
2403
- !f && !s || E.current && !E.current.contains(S.target) || (on.current = ((_ = E.current) == null ? void 0 : _.getBoundingClientRect().height) || 0, sn.current = ((O = E.current) == null ? void 0 : O.getBoundingClientRect().width) || 0, Q(!0), $e.current = /* @__PURE__ */ new Date(), sa() && window.addEventListener("touchend", () => Re.current = !1, {
2405
+ !f && !s || E.current && !E.current.contains(S.target) || (sn.current = ((_ = E.current) == null ? void 0 : _.getBoundingClientRect().height) || 0, ln.current = ((O = E.current) == null ? void 0 : O.getBoundingClientRect().width) || 0, Q(!0), $e.current = /* @__PURE__ */ new Date(), ia() && window.addEventListener("touchend", () => Re.current = !1, {
2404
2406
  once: !0
2405
2407
  }), S.target.setPointerCapture(S.pointerId), Fe.current = U(v) ? S.pageY : S.pageX);
2406
2408
  }
2407
- function un(S, _) {
2409
+ function dn(S, _) {
2408
2410
  var O;
2409
2411
  let N = S;
2410
2412
  const L = (O = window.getSelection()) == null ? void 0 : O.toString(), ne = E.current ? pt(E.current, v) : null, ee = /* @__PURE__ */ new Date();
@@ -2432,13 +2434,13 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2432
2434
  return !0;
2433
2435
  }
2434
2436
  function Aa(S) {
2435
- if (E.current && y) {
2437
+ if (E.current && x) {
2436
2438
  const _ = v === "bottom" || v === "right" ? 1 : -1, O = (Fe.current - (U(v) ? S.pageY : S.pageX)) * _, N = O > 0, L = s && !f && !N;
2437
2439
  if (L && Be === 0) return;
2438
- const ne = Math.abs(O), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = v === "bottom" || v === "top" ? on.current : sn.current;
2440
+ const ne = Math.abs(O), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = v === "bottom" || v === "top" ? sn.current : ln.current;
2439
2441
  let fe = ne / Ee;
2440
2442
  const _e = _a(ne, N);
2441
- if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !un(S.target, N)) return;
2443
+ if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !dn(S.target, N)) return;
2442
2444
  if (E.current.classList.add(jt), Re.current = !0, H(E.current, {
2443
2445
  transition: "none"
2444
2446
  }), H(pe.current, {
@@ -2446,21 +2448,21 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2446
2448
  }), s && Ta({
2447
2449
  draggedDistance: O
2448
2450
  }), N && !s) {
2449
- const me = yl(O), ct = Math.min(me * -1, 0) * _;
2451
+ const me = Sl(O), ct = Math.min(me * -1, 0) * _;
2450
2452
  H(E.current, {
2451
2453
  transform: U(v) ? `translate3d(0, ${ct}px, 0)` : `translate3d(${ct}px, 0, 0)`
2452
2454
  });
2453
2455
  return;
2454
2456
  }
2455
2457
  const De = 1 - fe;
2456
- if ((cn || d && Be === d - 1) && (r == null || r(S, fe), H(pe.current, {
2458
+ if ((un || d && Be === d - 1) && (r == null || r(S, fe), H(pe.current, {
2457
2459
  opacity: `${De}`,
2458
2460
  transition: "none"
2459
2461
  }, !0)), ee && pe.current && i) {
2460
- const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, fn = Math.max(0, 14 - fe * 14);
2462
+ const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, hn = Math.max(0, 14 - fe * 14);
2461
2463
  H(ee, {
2462
2464
  borderRadius: `${ct}px`,
2463
- transform: U(v) ? `scale(${me}) translate3d(0, ${fn}px, 0)` : `scale(${me}) translate3d(${fn}px, 0, 0)`,
2465
+ transform: U(v) ? `scale(${me}) translate3d(0, ${hn}px, 0)` : `scale(${me}) translate3d(${hn}px, 0, 0)`,
2464
2466
  transition: "none"
2465
2467
  }, !0);
2466
2468
  }
@@ -2474,7 +2476,7 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2474
2476
  }
2475
2477
  p.useEffect(() => {
2476
2478
  window.requestAnimationFrame(() => {
2477
- rn.current = !0;
2479
+ an.current = !0;
2478
2480
  });
2479
2481
  }, []), p.useEffect(() => {
2480
2482
  var S;
@@ -2488,15 +2490,15 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2488
2490
  const Ee = E.current.getBoundingClientRect().height || 0, fe = Ee > ne * 0.8;
2489
2491
  Ct.current || (Ct.current = Ee);
2490
2492
  const _e = E.current.getBoundingClientRect().top;
2491
- if (Math.abs(an.current - ee) > 60 && (Le.current = !Le.current), s && s.length > 0 && Ve && Be) {
2493
+ if (Math.abs(on.current - ee) > 60 && (Le.current = !Le.current), s && s.length > 0 && Ve && Be) {
2492
2494
  const De = Ve[Be] || 0;
2493
2495
  ee += De;
2494
2496
  }
2495
- if (an.current = ee, Ee > L || Le.current) {
2497
+ if (on.current = ee, Ee > L || Le.current) {
2496
2498
  const De = E.current.getBoundingClientRect().height;
2497
2499
  let me = De;
2498
2500
  De > L && (me = L - (fe ? _e : It)), g ? E.current.style.height = `${De - Math.max(ee, 0)}px` : E.current.style.height = `${Math.max(me, L - _e)}px`;
2499
- } else il() || (E.current.style.height = `${Ct.current}px`);
2501
+ } else cl() || (E.current.style.height = `${Ct.current}px`);
2500
2502
  s && s.length > 0 && !Le.current ? E.current.style.bottom = "0px" : E.current.style.bottom = `${Math.max(ee, 0)}px`;
2501
2503
  }
2502
2504
  }
@@ -2511,10 +2513,10 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2511
2513
  ]);
2512
2514
  function Ge(S) {
2513
2515
  ka(), M == null || M(), S || te(!1), setTimeout(() => {
2514
- s && ln(s[0]);
2516
+ s && cn(s[0]);
2515
2517
  }, k.DURATION * 1e3);
2516
2518
  }
2517
- function dn() {
2519
+ function fn() {
2518
2520
  if (!E.current) return;
2519
2521
  const S = document.querySelector("[data-vaul-drawer-wrapper]"), _ = pt(E.current, v);
2520
2522
  H(E.current, {
@@ -2524,7 +2526,7 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2524
2526
  transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2525
2527
  opacity: "1"
2526
2528
  }), i && _ && _ > 0 && G && H(S, {
2527
- borderRadius: `${da}px`,
2529
+ borderRadius: `${fa}px`,
2528
2530
  overflow: "hidden",
2529
2531
  ...U(v) ? {
2530
2532
  transform: `scale(${lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
@@ -2539,14 +2541,14 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2539
2541
  }, !0);
2540
2542
  }
2541
2543
  function ka() {
2542
- !y || !E.current || (E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date());
2544
+ !x || !E.current || (E.current.classList.remove(jt), Re.current = !1, Q(!1), xe.current = /* @__PURE__ */ new Date());
2543
2545
  }
2544
2546
  function $a(S) {
2545
- if (!y || !E.current) return;
2546
- E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date();
2547
+ if (!x || !E.current) return;
2548
+ E.current.classList.remove(jt), Re.current = !1, Q(!1), xe.current = /* @__PURE__ */ new Date();
2547
2549
  const _ = pt(E.current, v);
2548
- if (!S || !un(S.target, !1) || !_ || Number.isNaN(_) || $e.current === null) return;
2549
- const O = ye.current.getTime() - $e.current.getTime(), N = Fe.current - (U(v) ? S.pageY : S.pageX), L = Math.abs(N) / O;
2550
+ if (!S || !dn(S.target, !1) || !_ || Number.isNaN(_) || $e.current === null) return;
2551
+ const O = xe.current.getTime() - $e.current.getTime(), N = Fe.current - (U(v) ? S.pageY : S.pageX), L = Math.abs(N) / O;
2550
2552
  if (L > 0.05 && (de(!0), setTimeout(() => {
2551
2553
  de(!1);
2552
2554
  }, 200)), s) {
@@ -2559,10 +2561,10 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2559
2561
  return;
2560
2562
  }
2561
2563
  if (v === "bottom" || v === "right" ? N > 0 : N < 0) {
2562
- dn(), o == null || o(S, !0);
2564
+ fn(), o == null || o(S, !0);
2563
2565
  return;
2564
2566
  }
2565
- if (L > ua) {
2567
+ if (L > da) {
2566
2568
  Ge(), o == null || o(S, !1);
2567
2569
  return;
2568
2570
  }
@@ -2574,12 +2576,12 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2574
2576
  Ge(), o == null || o(S, !1);
2575
2577
  return;
2576
2578
  }
2577
- o == null || o(S, !0), dn();
2579
+ o == null || o(S, !0), fn();
2578
2580
  }
2579
2581
  p.useEffect(() => (G && (H(document.documentElement, {
2580
2582
  scrollBehavior: "auto"
2581
2583
  }), Me.current = /* @__PURE__ */ new Date()), () => {
2582
- xl(document.documentElement, "scrollBehavior");
2584
+ bl(document.documentElement, "scrollBehavior");
2583
2585
  }), [
2584
2586
  G
2585
2587
  ]);
@@ -2617,17 +2619,17 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2617
2619
  });
2618
2620
  }, [
2619
2621
  T
2620
- ]), /* @__PURE__ */ p.createElement(ss, {
2622
+ ]), /* @__PURE__ */ p.createElement(ls, {
2621
2623
  defaultOpen: z,
2622
2624
  onOpenChange: (S) => {
2623
2625
  !f && !S || (S ? Y(!0) : Ge(!0), te(S));
2624
2626
  },
2625
2627
  open: G
2626
- }, /* @__PURE__ */ p.createElement(oa.Provider, {
2628
+ }, /* @__PURE__ */ p.createElement(sa.Provider, {
2627
2629
  value: {
2628
2630
  activeSnapPoint: ja,
2629
2631
  snapPoints: s,
2630
- setActiveSnapPoint: ln,
2632
+ setActiveSnapPoint: cn,
2631
2633
  drawerRef: E,
2632
2634
  overlayRef: pe,
2633
2635
  onOpenChange: t,
@@ -2635,11 +2637,11 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2635
2637
  onRelease: $a,
2636
2638
  onDrag: Aa,
2637
2639
  dismissible: f,
2638
- shouldAnimate: rn,
2640
+ shouldAnimate: an,
2639
2641
  handleOnly: c,
2640
2642
  isOpen: G,
2641
- isDragging: y,
2642
- shouldFade: cn,
2643
+ isDragging: x,
2644
+ shouldFade: un,
2643
2645
  closeDrawer: Ge,
2644
2646
  onNestedDrag: La,
2645
2647
  onNestedOpenChange: Fa,
@@ -2657,14 +2659,14 @@ function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
2657
2659
  }
2658
2660
  }, n));
2659
2661
  }
2660
- const ma = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2661
- const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: s, isOpen: i, modal: l, shouldAnimate: u } = Qe(), m = la(t, n), f = r && r.length > 0;
2662
+ const ga = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2663
+ const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: s, isOpen: i, modal: l, shouldAnimate: u } = Qe(), m = ca(t, n), f = r && r.length > 0;
2662
2664
  if (!l)
2663
2665
  return null;
2664
2666
  const c = p.useCallback((d) => o(d), [
2665
2667
  o
2666
2668
  ]);
2667
- return /* @__PURE__ */ p.createElement(es, {
2669
+ return /* @__PURE__ */ p.createElement(ns, {
2668
2670
  onMouseUp: c,
2669
2671
  ref: m,
2670
2672
  "data-vaul-overlay": "",
@@ -2674,20 +2676,20 @@ const ma = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2674
2676
  ...e
2675
2677
  });
2676
2678
  });
2677
- ma.displayName = "Drawer.Overlay";
2678
- const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
2679
- const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: R, direction: C, snapPoints: g, container: T, handleOnly: M, shouldAnimate: A, autoFocus: P } = Qe(), [v, z] = p.useState(!1), Z = la(o, s), b = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = g && g.length > 0;
2680
- Dl();
2681
- const K = (x, V, G = 0) => {
2679
+ ga.displayName = "Drawer.Overlay";
2680
+ const va = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
2681
+ const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: R, direction: C, snapPoints: g, container: T, handleOnly: M, shouldAnimate: A, autoFocus: P } = Qe(), [v, z] = p.useState(!1), J = ca(o, s), b = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = g && g.length > 0;
2682
+ jl();
2683
+ const K = (y, V, G = 0) => {
2682
2684
  if (D.current) return !0;
2683
- const te = Math.abs(x.y), q = Math.abs(x.x), Y = q > te, y = [
2685
+ const te = Math.abs(y.y), q = Math.abs(y.x), Y = q > te, x = [
2684
2686
  "bottom",
2685
2687
  "right"
2686
2688
  ].includes(V) ? 1 : -1;
2687
2689
  if (V === "left" || V === "right") {
2688
- if (!(x.x * y < 0) && q >= 0 && q <= G)
2690
+ if (!(y.x * x < 0) && q >= 0 && q <= G)
2689
2691
  return Y;
2690
- } else if (!(x.y * y < 0) && te >= 0 && te <= G)
2692
+ } else if (!(y.y * x < 0) && te >= 0 && te <= G)
2691
2693
  return !Y;
2692
2694
  return D.current = !0, !0;
2693
2695
  };
@@ -2696,10 +2698,10 @@ const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, styl
2696
2698
  z(!0);
2697
2699
  });
2698
2700
  }, []);
2699
- function W(x) {
2700
- b.current = null, D.current = !1, l(x);
2701
+ function W(y) {
2702
+ b.current = null, D.current = !1, l(y);
2701
2703
  }
2702
- return /* @__PURE__ */ p.createElement(ts, {
2704
+ return /* @__PURE__ */ p.createElement(rs, {
2703
2705
  "data-vaul-drawer-direction": C,
2704
2706
  "data-vaul-drawer": "",
2705
2707
  "data-vaul-delayed-snap-points": v ? "true" : "false",
@@ -2707,54 +2709,54 @@ const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, styl
2707
2709
  "data-vaul-custom-container": T ? "true" : "false",
2708
2710
  "data-vaul-animate": A != null && A.current ? "true" : "false",
2709
2711
  ...r,
2710
- ref: Z,
2712
+ ref: J,
2711
2713
  style: f && f.length > 0 ? {
2712
2714
  "--snap-point-height": `${f[c ?? 0]}px`,
2713
2715
  ...t
2714
2716
  } : t,
2715
- onPointerDown: (x) => {
2716
- M || (r.onPointerDown == null || r.onPointerDown.call(r, x), b.current = {
2717
- x: x.pageX,
2718
- y: x.pageY
2719
- }, i(x));
2717
+ onPointerDown: (y) => {
2718
+ M || (r.onPointerDown == null || r.onPointerDown.call(r, y), b.current = {
2719
+ x: y.pageX,
2720
+ y: y.pageY
2721
+ }, i(y));
2720
2722
  },
2721
- onOpenAutoFocus: (x) => {
2722
- n == null || n(x), P || x.preventDefault();
2723
+ onOpenAutoFocus: (y) => {
2724
+ n == null || n(y), P || y.preventDefault();
2723
2725
  },
2724
- onPointerDownOutside: (x) => {
2725
- if (e == null || e(x), !d || x.defaultPrevented) {
2726
- x.preventDefault();
2726
+ onPointerDownOutside: (y) => {
2727
+ if (e == null || e(y), !d || y.defaultPrevented) {
2728
+ y.preventDefault();
2727
2729
  return;
2728
2730
  }
2729
2731
  m.current && (m.current = !1);
2730
2732
  },
2731
- onFocusOutside: (x) => {
2733
+ onFocusOutside: (y) => {
2732
2734
  if (!d) {
2733
- x.preventDefault();
2735
+ y.preventDefault();
2734
2736
  return;
2735
2737
  }
2736
2738
  },
2737
- onPointerMove: (x) => {
2738
- if (j.current = x, M || (r.onPointerMove == null || r.onPointerMove.call(r, x), !b.current)) return;
2739
- const V = x.pageY - b.current.y, G = x.pageX - b.current.x, te = x.pointerType === "touch" ? 10 : 2;
2739
+ onPointerMove: (y) => {
2740
+ if (j.current = y, M || (r.onPointerMove == null || r.onPointerMove.call(r, y), !b.current)) return;
2741
+ const V = y.pageY - b.current.y, G = y.pageX - b.current.x, te = y.pointerType === "touch" ? 10 : 2;
2740
2742
  K({
2741
2743
  x: G,
2742
2744
  y: V
2743
- }, C, te) ? u(x) : (Math.abs(G) > te || Math.abs(V) > te) && (b.current = null);
2745
+ }, C, te) ? u(y) : (Math.abs(G) > te || Math.abs(V) > te) && (b.current = null);
2744
2746
  },
2745
- onPointerUp: (x) => {
2746
- r.onPointerUp == null || r.onPointerUp.call(r, x), b.current = null, D.current = !1, l(x);
2747
+ onPointerUp: (y) => {
2748
+ r.onPointerUp == null || r.onPointerUp.call(r, y), b.current = null, D.current = !1, l(y);
2747
2749
  },
2748
- onPointerOut: (x) => {
2749
- r.onPointerOut == null || r.onPointerOut.call(r, x), W(j.current);
2750
+ onPointerOut: (y) => {
2751
+ r.onPointerOut == null || r.onPointerOut.call(r, y), W(j.current);
2750
2752
  },
2751
- onContextMenu: (x) => {
2752
- r.onContextMenu == null || r.onContextMenu.call(r, x), j.current && W(j.current);
2753
+ onContextMenu: (y) => {
2754
+ r.onContextMenu == null || r.onContextMenu.call(r, y), j.current && W(j.current);
2753
2755
  }
2754
2756
  });
2755
2757
  });
2756
- ga.displayName = "Drawer.Content";
2757
- const jl = 250, Nl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2758
+ va.displayName = "Drawer.Content";
2759
+ const Tl = 250, _l = 120, wa = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2758
2760
  const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: m, handleOnly: f, isOpen: c, onPress: d, onDrag: R } = Qe(), C = p.useRef(null), g = p.useRef(!1);
2759
2761
  function T() {
2760
2762
  if (g.current) {
@@ -2763,7 +2765,7 @@ const jl = 250, Nl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCy
2763
2765
  }
2764
2766
  window.setTimeout(() => {
2765
2767
  M();
2766
- }, Nl);
2768
+ }, _l);
2767
2769
  }
2768
2770
  function M() {
2769
2771
  if (s || e || g.current) {
@@ -2780,13 +2782,13 @@ const jl = 250, Nl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCy
2780
2782
  }
2781
2783
  const z = i.findIndex((b) => b === l);
2782
2784
  if (z === -1) return;
2783
- const Z = i[z + 1];
2784
- u(Z);
2785
+ const J = i[z + 1];
2786
+ u(J);
2785
2787
  }
2786
2788
  function A() {
2787
2789
  C.current = window.setTimeout(() => {
2788
2790
  g.current = !0;
2789
- }, jl);
2791
+ }, Tl);
2790
2792
  }
2791
2793
  function P() {
2792
2794
  C.current && window.clearTimeout(C.current), g.current = !1;
@@ -2811,12 +2813,12 @@ const jl = 250, Nl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCy
2811
2813
  "aria-hidden": "true"
2812
2814
  }, t));
2813
2815
  });
2814
- va.displayName = "Drawer.Handle";
2815
- function Tl({ onDrag: e, onOpenChange: t, ...n }) {
2816
+ wa.displayName = "Drawer.Handle";
2817
+ function Ol({ onDrag: e, onOpenChange: t, ...n }) {
2816
2818
  const { onNestedDrag: r, onNestedOpenChange: o, onNestedRelease: s } = Qe();
2817
2819
  if (!r)
2818
2820
  throw new Error("Drawer.NestedRoot must be placed in another drawer");
2819
- return /* @__PURE__ */ p.createElement(pa, {
2821
+ return /* @__PURE__ */ p.createElement(ma, {
2820
2822
  nested: !0,
2821
2823
  onClose: () => {
2822
2824
  o(!1);
@@ -2831,24 +2833,24 @@ function Tl({ onDrag: e, onOpenChange: t, ...n }) {
2831
2833
  ...n
2832
2834
  });
2833
2835
  }
2834
- function _l(e) {
2836
+ function Il(e) {
2835
2837
  const t = Qe(), { container: n = t.container, ...r } = e;
2836
- return /* @__PURE__ */ p.createElement(is, {
2838
+ return /* @__PURE__ */ p.createElement(cs, {
2837
2839
  container: n,
2838
2840
  ...r
2839
2841
  });
2840
2842
  }
2841
2843
  const he = {
2842
- Root: pa,
2843
- NestedRoot: Tl,
2844
- Content: ga,
2845
- Overlay: ma,
2846
- Trigger: ns,
2847
- Portal: _l,
2848
- Handle: va,
2849
- Close: rs,
2850
- Title: as,
2851
- Description: os
2844
+ Root: ma,
2845
+ NestedRoot: Ol,
2846
+ Content: va,
2847
+ Overlay: ga,
2848
+ Trigger: as,
2849
+ Portal: Il,
2850
+ Handle: wa,
2851
+ Close: os,
2852
+ Title: ss,
2853
+ Description: is
2852
2854
  }, en = ({
2853
2855
  shouldScaleBackground: e = !0,
2854
2856
  ...t
@@ -2860,7 +2862,7 @@ const he = {
2860
2862
  }
2861
2863
  );
2862
2864
  en.displayName = "Drawer";
2863
- const wa = he.Trigger, Ol = he.Portal, Il = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2865
+ const ya = he.Trigger, Al = he.Portal, kl = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2864
2866
  he.Overlay,
2865
2867
  {
2866
2868
  ref: n,
@@ -2870,7 +2872,7 @@ const wa = he.Trigger, Ol = he.Portal, Il = he.Close, xa = h.forwardRef(({ class
2870
2872
  ));
2871
2873
  xa.displayName = he.Overlay.displayName;
2872
2874
  const tn = h.forwardRef(
2873
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Ol, { children: [
2875
+ ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Al, { children: [
2874
2876
  /* @__PURE__ */ a.jsx(xa, {}),
2875
2877
  /* @__PURE__ */ a.jsxs(
2876
2878
  he.Content,
@@ -2902,7 +2904,7 @@ const nn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2902
2904
  }
2903
2905
  ));
2904
2906
  nn.displayName = he.Title.displayName;
2905
- const Al = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2907
+ const $l = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2906
2908
  he.Description,
2907
2909
  {
2908
2910
  ref: n,
@@ -2910,9 +2912,9 @@ const Al = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2910
2912
  ...t
2911
2913
  }
2912
2914
  ));
2913
- Al.displayName = he.Description.displayName;
2914
- const ya = () => {
2915
- const e = Ae(), [t, n] = Ie(!1), r = qn(() => n(!1), []);
2915
+ $l.displayName = he.Description.displayName;
2916
+ const ba = () => {
2917
+ const e = Ae(), [t, n] = Ie(!1), r = Qn(() => n(!1), []);
2916
2918
  Ce(() => {
2917
2919
  if (t)
2918
2920
  return;
@@ -2923,7 +2925,7 @@ const ya = () => {
2923
2925
  window.removeEventListener("keydown", s);
2924
2926
  };
2925
2927
  }, [t, n]);
2926
- const o = e.plugins.find($s);
2928
+ const o = e.plugins.find(Ls);
2927
2929
  return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2928
2930
  /* @__PURE__ */ a.jsxs(
2929
2931
  "button",
@@ -2933,24 +2935,24 @@ const ya = () => {
2933
2935
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
2934
2936
  children: [
2935
2937
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2936
- /* @__PURE__ */ a.jsx(Qo, { size: 14 }),
2938
+ /* @__PURE__ */ a.jsx(Go, { size: 14 }),
2937
2939
  "Search"
2938
2940
  ] }),
2939
2941
  /* @__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" })
2940
2942
  ]
2941
2943
  }
2942
2944
  ),
2943
- /* @__PURE__ */ a.jsx(Qn, { fallback: null, children: o.renderSearch({
2945
+ /* @__PURE__ */ a.jsx(Vn, { fallback: null, children: o.renderSearch({
2944
2946
  isOpen: t,
2945
2947
  onClose: r
2946
2948
  }) })
2947
2949
  ] }) : null;
2948
- }, ba = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", kl = () => {
2950
+ }, Sa = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Fl = () => {
2949
2951
  const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
2950
- 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.filter(ba(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2951
- Ze,
2952
+ 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.filter(Sa(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2953
+ Je,
2952
2954
  {
2953
- className: ({ isActive: r }) => Un(
2955
+ className: ({ isActive: r }) => zn(
2954
2956
  "block py-3.5 font-medium -mb-px border-b-2",
2955
2957
  r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2956
2958
  ),
@@ -2958,43 +2960,43 @@ const ya = () => {
2958
2960
  children: n.label
2959
2961
  }
2960
2962
  ) }, n.label)) }) });
2961
- }, $l = () => {
2963
+ }, Ll = () => {
2962
2964
  const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
2963
2965
  return /* @__PURE__ */ a.jsxs(en, { direction: "right", children: [
2964
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(wa, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Vo, { size: 22 }) }) }),
2966
+ /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(ya, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Wo, { size: 22 }) }) }),
2965
2967
  /* @__PURE__ */ a.jsxs(
2966
2968
  tn,
2967
2969
  {
2968
2970
  className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
2969
2971
  "aria-describedby": void 0,
2970
2972
  children: [
2971
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(nn, { children: "Navigation" }) }),
2972
- /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ya, {}) }),
2973
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.filter(ba(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2974
- Ze,
2973
+ /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Navigation" }) }),
2974
+ /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ba, {}) }),
2975
+ /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.filter(Sa(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2976
+ Je,
2975
2977
  {
2976
- className: ({ isActive: r }) => Un(
2978
+ className: ({ isActive: r }) => zn(
2977
2979
  "block font-medium border-b-2",
2978
2980
  r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2979
2981
  ),
2980
2982
  to: n.id,
2981
- children: /* @__PURE__ */ a.jsx(Il, { children: n.label })
2983
+ children: /* @__PURE__ */ a.jsx(kl, { children: n.label })
2982
2984
  }
2983
2985
  ) }, n.label)) })
2984
2986
  ]
2985
2987
  }
2986
2988
  )
2987
2989
  ] });
2988
- }, Sa = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(nl, { children: [
2989
- /* @__PURE__ */ a.jsx(Zr, { children: e.label }),
2990
- /* @__PURE__ */ a.jsx(tl, { children: /* @__PURE__ */ a.jsx(ea, { children: e.children.map((t, n) => (
2990
+ }, Ca = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(al, { children: [
2991
+ /* @__PURE__ */ a.jsx(ea, { children: e.label }),
2992
+ /* @__PURE__ */ a.jsx(rl, { children: /* @__PURE__ */ a.jsx(ta, { children: e.children.map((t, n) => (
2991
2993
  // eslint-disable-next-line react/no-array-index-key
2992
- /* @__PURE__ */ a.jsx(Sa, { item: t }, n)
2994
+ /* @__PURE__ */ a.jsx(Ca, { item: t }, n)
2993
2995
  )) }) })
2994
- ] }, e.label) : /* @__PURE__ */ a.jsx($t, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(na, { children: e.label }, e.label) }), Ca = Vn(function() {
2995
- const t = vt(), [n, r] = go(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = vt(), l = Ae(), { page: u, plugins: m } = l, f = m.filter((d) => As(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(Sa, { item: d }, d.label)), c = n ? Go : Wo;
2996
+ ] }, e.label) : /* @__PURE__ */ a.jsx($t, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(ra, { children: e.label }, e.label) }), Ma = Gn(function() {
2997
+ const t = vt(), [n, r] = vo(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = vt(), l = Ae(), { page: u, plugins: m } = l, f = m.filter((d) => $s(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(Ca, { item: d }, d.label)), c = n ? Yo : Xo;
2996
2998
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
2997
- /* @__PURE__ */ a.jsx(ol, {}),
2999
+ /* @__PURE__ */ a.jsx(il, {}),
2998
3000
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
2999
3001
  /* @__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: [
3000
3002
  /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx($t, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
@@ -3023,15 +3025,15 @@ const ya = () => {
3023
3025
  /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
3024
3026
  ] }) }) }),
3025
3027
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
3026
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ya, {}) }),
3027
- /* @__PURE__ */ a.jsx($l, {}),
3028
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ba, {}) }),
3029
+ /* @__PURE__ */ a.jsx(Ll, {}),
3028
3030
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3029
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-start" }),
3030
- i && !o ? /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(Zi, { modal: !1, children: [
3031
- /* @__PURE__ */ a.jsx(el, { asChild: !0, children: /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3032
- /* @__PURE__ */ a.jsxs(ta, { className: "w-56", children: [
3033
- /* @__PURE__ */ a.jsx(ra, { children: "My Account" }),
3034
- /* @__PURE__ */ a.jsx(aa, {}),
3031
+ /* @__PURE__ */ a.jsx(ye, { name: "head-navigation-start" }),
3032
+ i && !o ? /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(tl, { modal: !1, children: [
3033
+ /* @__PURE__ */ a.jsx(nl, { asChild: !0, children: /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3034
+ /* @__PURE__ */ a.jsxs(na, { className: "w-56", children: [
3035
+ /* @__PURE__ */ a.jsx(aa, { children: "My Account" }),
3036
+ /* @__PURE__ */ a.jsx(oa, {}),
3035
3037
  f
3036
3038
  ] })
3037
3039
  ] }),
@@ -3045,74 +3047,74 @@ const ya = () => {
3045
3047
  children: /* @__PURE__ */ a.jsx(c, { size: 18 })
3046
3048
  }
3047
3049
  ),
3048
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-end" })
3050
+ /* @__PURE__ */ a.jsx(ye, { name: "head-navigation-end" })
3049
3051
  ] })
3050
3052
  ] })
3051
3053
  ] }),
3052
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-before" }),
3053
- /* @__PURE__ */ a.jsx(kl, {}),
3054
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-after" })
3054
+ /* @__PURE__ */ a.jsx(ye, { name: "top-navigation-before" }),
3055
+ /* @__PURE__ */ a.jsx(Fl, {}),
3056
+ /* @__PURE__ */ a.jsx(ye, { name: "top-navigation-after" })
3055
3057
  ] })
3056
3058
  ] });
3057
- }), Ma = {
3058
- Header: Ca
3059
- }, Fl = Kn(Ma), Ll = Fl.Provider, Bl = (e) => {
3059
+ }), Ra = {
3060
+ Header: Ma
3061
+ }, Bl = qn(Ra), Hl = Bl.Provider, Ul = (e) => {
3060
3062
  const [t, n] = Ie(!1);
3061
3063
  Ce(() => {
3062
3064
  const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
3063
3065
  n(l);
3064
3066
  }, [t]);
3065
- const r = qn(() => {
3067
+ const r = Qn(() => {
3066
3068
  const s = !t;
3067
3069
  document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
3068
3070
  }, [t]), o = [t, r];
3069
- return /* @__PURE__ */ a.jsx(vo.Provider, { value: o, ...e });
3070
- }, Hl = ({
3071
+ return /* @__PURE__ */ a.jsx(wo.Provider, { value: o, ...e });
3072
+ }, zl = ({
3071
3073
  children: e,
3072
3074
  context: t
3073
- }) => (Lo({
3075
+ }) => (Ho({
3074
3076
  queryFn: async () => (await t.initialize(), !0),
3075
3077
  queryKey: ["zudoku-initialize"]
3076
- }), /* @__PURE__ */ a.jsx(Bo.Provider, { value: t, children: e })), Ul = ({
3078
+ }), /* @__PURE__ */ a.jsx(Uo.Provider, { value: t, children: e })), Kl = ({
3077
3079
  children: e,
3078
3080
  ...t
3079
3081
  }) => {
3080
3082
  var c, d;
3081
3083
  const n = mt(
3082
- () => ({ ...Ma, ...t.overrides }),
3084
+ () => ({ ...Ra, ...t.overrides }),
3083
3085
  [t.overrides]
3084
3086
  ), r = mt(() => {
3085
3087
  var C;
3086
3088
  return {
3087
- ...(t.plugins ?? []).filter(Bs).flatMap(
3089
+ ...(t.plugins ?? []).filter(Us).flatMap(
3088
3090
  (g) => g.getMdxComponents ? [g.getMdxComponents()] : []
3089
3091
  ).reduce((g, T) => ({ ...g, ...T }), {}),
3090
- ...wo,
3092
+ ...yo,
3091
3093
  ...(C = t.mdx) == null ? void 0 : C.components
3092
3094
  };
3093
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Ro(Tt), [s, i] = Ie(!1), l = mt(
3095
+ }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Eo(Tt), [s, i] = Ie(!1), l = mt(
3094
3096
  () => s ? { stagger: !0 } : { stagger: o },
3095
3097
  [o, s]
3096
3098
  ), u = Ya();
3097
3099
  Ce(() => {
3098
3100
  s || i(!0);
3099
3101
  }, [s, u.location]);
3100
- const [m] = Ie(() => new Us(t)), f = (d = t.plugins) == null ? void 0 : d.filter(Ls).map((R, C) => {
3102
+ const [m] = Ie(() => new Ks(t)), f = (d = t.plugins) == null ? void 0 : d.filter(Hs).map((R, C) => {
3101
3103
  var g;
3102
- return /* @__PURE__ */ a.jsx(Eo, { children: (g = R.getHead) == null ? void 0 : g.call(R) }, C);
3104
+ return /* @__PURE__ */ a.jsx(Do, { children: (g = R.getHead) == null ? void 0 : g.call(R) }, C);
3103
3105
  });
3104
- return /* @__PURE__ */ a.jsxs(Ho, { client: nr, children: [
3106
+ return /* @__PURE__ */ a.jsxs(zo, { client: rr, children: [
3105
3107
  /* @__PURE__ */ a.jsx(kt, { children: f }),
3106
- /* @__PURE__ */ a.jsx(Tt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(Hl, { context: m, children: /* @__PURE__ */ a.jsx(za, { components: r, children: /* @__PURE__ */ a.jsx(Bl, { children: /* @__PURE__ */ a.jsx(Ll, { value: n, children: /* @__PURE__ */ a.jsx(Za, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(xo, { children: e ?? /* @__PURE__ */ a.jsx(In, {}) }) }) }) }) }) }) })
3108
+ /* @__PURE__ */ a.jsx(Tt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(zl, { context: m, children: /* @__PURE__ */ a.jsx(za, { components: r, children: /* @__PURE__ */ a.jsx(Ul, { children: /* @__PURE__ */ a.jsx(Hl, { value: n, children: /* @__PURE__ */ a.jsx(eo, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(xo, { children: e ?? /* @__PURE__ */ a.jsx(An, {}) }) }) }) }) }) }) })
3107
3109
  ] });
3108
- }, zl = Vn(Ul), Ra = (e) => /* @__PURE__ */ a.jsx(Os, { FallbackComponent: zs, children: /* @__PURE__ */ a.jsx(zl, { ...e }) });
3109
- Ra.displayName = "DevPortal";
3110
- const Kl = ({
3110
+ }, ql = Gn(Kl), rn = (e) => /* @__PURE__ */ a.jsx(As, { FallbackComponent: qs, children: /* @__PURE__ */ a.jsx(ql, { ...e }) });
3111
+ rn.displayName = "DevPortal";
3112
+ const Ql = ({
3111
3113
  category: e,
3112
3114
  level: t
3113
3115
  }) => {
3114
3116
  var R, C;
3115
- const n = Yn(), r = Ka(e), [o, s] = Ie(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [m, f] = Ie(u), c = Xa(wt(n == null ? void 0 : n.id, (R = e.link) == null ? void 0 : R.id));
3117
+ const n = Xn(), r = Ka(e), [o, s] = Ie(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [m, f] = Ie(u), c = Xa(wt(n == null ? void 0 : n.id, (R = e.link) == null ? void 0 : R.id));
3116
3118
  Ce(() => {
3117
3119
  r && f(!0);
3118
3120
  }, [r]);
@@ -3124,7 +3126,7 @@ const Kl = ({
3124
3126
  g.preventDefault(), f((T) => !T), s(!0);
3125
3127
  },
3126
3128
  children: /* @__PURE__ */ a.jsx(
3127
- Xn,
3129
+ Zn,
3128
3130
  {
3129
3131
  size: 16,
3130
3132
  className: F(
@@ -3136,18 +3138,18 @@ const Kl = ({
3136
3138
  }
3137
3139
  );
3138
3140
  return /* @__PURE__ */ a.jsxs(
3139
- jo,
3141
+ No,
3140
3142
  {
3141
3143
  className: "flex flex-col",
3142
3144
  defaultOpen: u,
3143
3145
  open: m,
3144
3146
  onOpenChange: () => f(!0),
3145
3147
  children: [
3146
- /* @__PURE__ */ a.jsx(No, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
3148
+ /* @__PURE__ */ a.jsx(To, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
3147
3149
  "div",
3148
3150
  {
3149
3151
  onClick: () => s(!0),
3150
- className: Je({
3152
+ className: Ze({
3151
3153
  isActive: !1,
3152
3154
  isTopLevel: t === 0,
3153
3155
  className: [
@@ -3167,7 +3169,7 @@ const Kl = ({
3167
3169
  }
3168
3170
  ),
3169
3171
  ((C = e.link) == null ? void 0 : C.type) === "doc" ? /* @__PURE__ */ a.jsx(
3170
- Ze,
3172
+ Je,
3171
3173
  {
3172
3174
  to: wt(n == null ? void 0 : n.id, e.link.id),
3173
3175
  className: "flex-1",
@@ -3196,7 +3198,7 @@ const Kl = ({
3196
3198
  }
3197
3199
  ) }),
3198
3200
  /* @__PURE__ */ a.jsx(
3199
- To,
3201
+ _o,
3200
3202
  {
3201
3203
  className: F(
3202
3204
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
@@ -3215,7 +3217,7 @@ const Kl = ({
3215
3217
  ]
3216
3218
  }
3217
3219
  );
3218
- }, Je = yo(
3220
+ }, Ze = bo(
3219
3221
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3220
3222
  {
3221
3223
  variants: {
@@ -3241,15 +3243,15 @@ const Kl = ({
3241
3243
  level: t = 0
3242
3244
  }) => {
3243
3245
  var s, i;
3244
- const n = Yn(), { activeAnchor: r } = Bt(), [o] = Ja();
3246
+ const n = Xn(), { activeAnchor: r } = Bt(), [o] = Za();
3245
3247
  switch (e.type) {
3246
3248
  case "category":
3247
- return /* @__PURE__ */ a.jsx(Kl, { category: e, level: t });
3249
+ return /* @__PURE__ */ a.jsx(Ql, { category: e, level: t });
3248
3250
  case "doc":
3249
3251
  return /* @__PURE__ */ a.jsxs(
3250
- Ze,
3252
+ Je,
3251
3253
  {
3252
- className: ({ isActive: l }) => Je({ isActive: l, isTopLevel: t === 0 }),
3254
+ className: ({ isActive: l }) => Ze({ isActive: l, isTopLevel: t === 0 }),
3253
3255
  to: wt(n == null ? void 0 : n.id, e.id),
3254
3256
  children: [
3255
3257
  e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
@@ -3266,7 +3268,7 @@ const Kl = ({
3266
3268
  {
3267
3269
  to: { hash: e.href, search: o.toString() },
3268
3270
  [Ea]: e.href.slice(1),
3269
- className: Je({
3271
+ className: Ze({
3270
3272
  isActive: e.href.slice(1) === r,
3271
3273
  isTopLevel: t === 0,
3272
3274
  className: ((s = e.badge) == null ? void 0 : s.placement) !== "start" && "justify-between"
@@ -3279,19 +3281,19 @@ const Kl = ({
3279
3281
  ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
3280
3282
  "a",
3281
3283
  {
3282
- className: Je({ isTopLevel: t === 0 }),
3284
+ className: Ze({ isTopLevel: t === 0 }),
3283
3285
  href: e.href,
3284
3286
  target: "_blank",
3285
3287
  rel: "noopener noreferrer",
3286
3288
  children: [
3287
3289
  /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
3288
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Yo, { className: "inline -translate-y-0.5", size: 12 }) })
3290
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Zo, { className: "inline -translate-y-0.5", size: 12 }) })
3289
3291
  ]
3290
3292
  }
3291
3293
  ) : /* @__PURE__ */ a.jsx(
3292
- Ze,
3294
+ Je,
3293
3295
  {
3294
- className: Je({
3296
+ className: Ze({
3295
3297
  className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
3296
3298
  }),
3297
3299
  to: e.href,
@@ -3302,17 +3304,17 @@ const Kl = ({
3302
3304
  }
3303
3305
  );
3304
3306
  }
3305
- }, ql = (e, t = { block: "center" }) => {
3307
+ }, Vl = (e, t = { block: "center" }) => {
3306
3308
  if (!e) return;
3307
3309
  const n = e.getBoundingClientRect();
3308
3310
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3309
- }, Ql = () => {
3311
+ }, Gl = () => {
3310
3312
  const e = Ft(), { setActiveAnchor: t } = Bt();
3311
3313
  Ce(() => {
3312
3314
  if (!e.hash) return;
3313
3315
  const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3314
3316
  const o = document.getElementById(n), s = document.querySelector(`[${Ea}="${n}"]`);
3315
- return o ? (o.scrollIntoView(), ql(s), requestIdleCallback(() => t(n)), !0) : !1;
3317
+ return o ? (o.scrollIntoView(), Vl(s), requestIdleCallback(() => t(n)), !0) : !1;
3316
3318
  };
3317
3319
  if (!r()) {
3318
3320
  const o = new MutationObserver((s, i) => {
@@ -3321,12 +3323,12 @@ const Kl = ({
3321
3323
  return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
3322
3324
  }
3323
3325
  }, [e.hash, t]);
3324
- }, Vl = () => {
3326
+ }, Wl = () => {
3325
3327
  const e = Ft(), t = Ht(e.pathname);
3326
3328
  Ce(() => {
3327
3329
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3328
3330
  }, [e.pathname]);
3329
- }, Da = Do(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3331
+ }, Da = Po(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3330
3332
  "nav",
3331
3333
  {
3332
3334
  "data-navigation": String(n),
@@ -3341,8 +3343,8 @@ const Kl = ({
3341
3343
  }
3342
3344
  ));
3343
3345
  Da.displayName = "SidebarWrapper";
3344
- const Gl = () => {
3345
- const e = Ht(null), t = Uo();
3346
+ const Yl = () => {
3347
+ const e = Ht(null), t = Ko();
3346
3348
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3347
3349
  /* @__PURE__ */ a.jsxs(
3348
3350
  Da,
@@ -3350,9 +3352,9 @@ const Gl = () => {
3350
3352
  ref: e,
3351
3353
  pushMainContent: t.data.items.length > 0,
3352
3354
  children: [
3353
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-navigation" }),
3355
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-before-navigation" }),
3354
3356
  t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label)),
3355
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-navigation" })
3357
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-after-navigation" })
3356
3358
  ]
3357
3359
  }
3358
3360
  ),
@@ -3362,15 +3364,15 @@ const Gl = () => {
3362
3364
  className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
3363
3365
  "aria-describedby": void 0,
3364
3366
  children: [
3365
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(nn, { children: "Sidebar" }) }),
3367
+ /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Sidebar" }) }),
3366
3368
  t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label))
3367
3369
  ]
3368
3370
  }
3369
3371
  )
3370
3372
  ] });
3371
- }, Wl = ({ children: e }) => {
3373
+ }, Xl = ({ children: e }) => {
3372
3374
  const t = Ft(), { setActiveAnchor: n } = Bt(), { meta: r, authentication: o } = Ae();
3373
- Ql(), Vl();
3375
+ Gl(), Wl();
3374
3376
  const s = Ht(t.pathname);
3375
3377
  return Ce(() => {
3376
3378
  var i;
@@ -3383,15 +3385,15 @@ const Gl = () => {
3383
3385
  (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
3384
3386
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
3385
3387
  ] }),
3386
- /* @__PURE__ */ a.jsx(xe, { name: "layout-before-head" }),
3387
- /* @__PURE__ */ a.jsx(Ca, {}),
3388
- /* @__PURE__ */ a.jsx(xe, { name: "layout-after-head" }),
3388
+ /* @__PURE__ */ a.jsx(ye, { name: "layout-before-head" }),
3389
+ /* @__PURE__ */ a.jsx(Ma, {}),
3390
+ /* @__PURE__ */ a.jsx(ye, { name: "layout-after-head" }),
3389
3391
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
3390
- Qn,
3392
+ Vn,
3391
3393
  {
3392
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(ls, {}) }),
3394
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(us, {}) }),
3393
3395
  children: /* @__PURE__ */ a.jsxs(en, { direction: "left", children: [
3394
- /* @__PURE__ */ a.jsx(Gl, {}),
3396
+ /* @__PURE__ */ a.jsx(Yl, {}),
3395
3397
  /* @__PURE__ */ a.jsx(
3396
3398
  "div",
3397
3399
  {
@@ -3399,8 +3401,8 @@ const Gl = () => {
3399
3401
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3400
3402
  "peer-data-[navigation=false]:hidden"
3401
3403
  ),
3402
- children: /* @__PURE__ */ a.jsxs(wa, { className: "flex items-center gap-2", children: [
3403
- /* @__PURE__ */ a.jsx(Xo, { size: 16, strokeWidth: 1.5 }),
3404
+ children: /* @__PURE__ */ a.jsxs(ya, { className: "flex items-center gap-2", children: [
3405
+ /* @__PURE__ */ a.jsx(Jo, { size: 16, strokeWidth: 1.5 }),
3404
3406
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
3405
3407
  ] })
3406
3408
  }
@@ -3416,9 +3418,9 @@ const Gl = () => {
3416
3418
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3417
3419
  ),
3418
3420
  children: [
3419
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-content" }),
3420
- e ?? /* @__PURE__ */ a.jsx(In, {}),
3421
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-content" })
3421
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-before-content" }),
3422
+ e ?? /* @__PURE__ */ a.jsx(An, {}),
3423
+ /* @__PURE__ */ a.jsx(ye, { name: "zudoku-after-content" })
3422
3424
  ]
3423
3425
  }
3424
3426
  )
@@ -3426,19 +3428,22 @@ const Gl = () => {
3426
3428
  }
3427
3429
  ) })
3428
3430
  ] });
3429
- }, hc = Qa, pc = bo, mc = Ra, gc = Wl, vc = $t, wc = eo, xc = cs, yc = Es, bc = Ds, Sc = Nt, Cc = kt, Mc = Ae;
3431
+ }, vc = Qa, wc = rn, yc = Xl, xc = to, bc = ds, Sc = Ps, Cc = js, Mc = kt, Rc = Ae, Ec = Ja, Dc = rn, Pc = So, jc = Oo, Nc = Nt, Tc = $t;
3430
3432
  export {
3431
- yc as Bootstrap,
3432
- bc as BootstrapStatic,
3433
- Sc as Button,
3434
- pc as Callout,
3435
- mc as DevPortal,
3436
- Cc as Head,
3437
- gc as Layout,
3438
- vc as Link,
3439
- wc as RouterError,
3440
- xc as ServerError,
3441
- hc as useMDXComponents,
3442
- Mc as useZudoku
3433
+ Sc as Bootstrap,
3434
+ Cc as BootstrapStatic,
3435
+ Nc as Button,
3436
+ Pc as Callout,
3437
+ jc as ClientOnly,
3438
+ wc as DevPortal,
3439
+ Mc as Head,
3440
+ yc as Layout,
3441
+ Tc as Link,
3442
+ xc as RouterError,
3443
+ bc as ServerError,
3444
+ Dc as Zudoku,
3445
+ Ec as useAuth,
3446
+ vc as useMDXComponents,
3447
+ Rc as useZudoku
3443
3448
  };
3444
3449
  //# sourceMappingURL=zudoku.components.js.map