@golocalinteractive/golocal-cloud-wrapper 1.0.4 → 1.0.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,7 +1,7 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import pe, { useContext as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
2
|
+
import pe, { useContext as ia, createContext as ll, useMemo as tr, useRef as Ge, useEffect as sa, useLayoutEffect as la, createElement as on, useCallback as Nn, useDebugValue as cl, forwardRef as ca, useState as ua } from "react";
|
|
3
|
+
import * as da from "react-dom";
|
|
4
|
+
import ul from "react-dom";
|
|
5
5
|
var $t = { exports: {} }, yt = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -13,7 +13,7 @@ var $t = { exports: {} }, yt = {};
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
var lo;
|
|
16
|
-
function
|
|
16
|
+
function dl() {
|
|
17
17
|
if (lo) return yt;
|
|
18
18
|
lo = 1;
|
|
19
19
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
@@ -45,7 +45,7 @@ var Ct = {};
|
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
47
|
var co;
|
|
48
|
-
function
|
|
48
|
+
function fl() {
|
|
49
49
|
return co || (co = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
50
|
function e(E) {
|
|
51
51
|
if (E == null) return null;
|
|
@@ -278,10 +278,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
278
278
|
}()), Ct;
|
|
279
279
|
}
|
|
280
280
|
var uo;
|
|
281
|
-
function
|
|
282
|
-
return uo || (uo = 1, process.env.NODE_ENV === "production" ? $t.exports =
|
|
281
|
+
function pl() {
|
|
282
|
+
return uo || (uo = 1, process.env.NODE_ENV === "production" ? $t.exports = dl() : $t.exports = fl()), $t.exports;
|
|
283
283
|
}
|
|
284
|
-
var b =
|
|
284
|
+
var b = pl(), Vt = { exports: {} }, In = {};
|
|
285
285
|
/**
|
|
286
286
|
* @license React
|
|
287
287
|
* use-sync-external-store-shim.production.js
|
|
@@ -292,7 +292,7 @@ var b = ml(), Vt = { exports: {} }, In = {};
|
|
|
292
292
|
* LICENSE file in the root directory of this source tree.
|
|
293
293
|
*/
|
|
294
294
|
var fo;
|
|
295
|
-
function
|
|
295
|
+
function ml() {
|
|
296
296
|
if (fo) return In;
|
|
297
297
|
fo = 1;
|
|
298
298
|
var e = pe;
|
|
@@ -343,7 +343,7 @@ var Dn = {};
|
|
|
343
343
|
* LICENSE file in the root directory of this source tree.
|
|
344
344
|
*/
|
|
345
345
|
var po;
|
|
346
|
-
function
|
|
346
|
+
function hl() {
|
|
347
347
|
return po || (po = 1, process.env.NODE_ENV !== "production" && function() {
|
|
348
348
|
function e(v, g) {
|
|
349
349
|
return v === g && (v !== 0 || 1 / v === 1 / g) || v !== v && g !== g;
|
|
@@ -396,11 +396,11 @@ function gl() {
|
|
|
396
396
|
}()), Dn;
|
|
397
397
|
}
|
|
398
398
|
var mo;
|
|
399
|
-
function
|
|
400
|
-
return mo || (mo = 1, process.env.NODE_ENV === "production" ? Vt.exports =
|
|
399
|
+
function gl() {
|
|
400
|
+
return mo || (mo = 1, process.env.NODE_ENV === "production" ? Vt.exports = ml() : Vt.exports = hl()), Vt.exports;
|
|
401
401
|
}
|
|
402
|
-
var
|
|
403
|
-
const
|
|
402
|
+
var vl = gl();
|
|
403
|
+
const fa = 0, pa = 1, ma = 2, ho = 3;
|
|
404
404
|
var go = Object.prototype.hasOwnProperty;
|
|
405
405
|
function nr(e, t) {
|
|
406
406
|
var n, r;
|
|
@@ -429,7 +429,7 @@ const Ne = /* @__PURE__ */ new WeakMap(), Ye = () => {
|
|
|
429
429
|
), an = Object, K = (e) => e === ue, we = (e) => typeof e == "function", De = (e, t) => ({
|
|
430
430
|
...e,
|
|
431
431
|
...t
|
|
432
|
-
}),
|
|
432
|
+
}), ha = (e) => we(e.then), Ln = {}, Ht = {}, Cr = "undefined", Nt = typeof window != Cr, rr = typeof document != Cr, bl = Nt && "Deno" in window, xl = () => Nt && typeof window.requestAnimationFrame != Cr, ga = (e, t) => {
|
|
433
433
|
const n = Ne.get(e);
|
|
434
434
|
return [
|
|
435
435
|
// Getter
|
|
@@ -448,18 +448,18 @@ const Ne = /* @__PURE__ */ new WeakMap(), Ye = () => {
|
|
|
448
448
|
];
|
|
449
449
|
};
|
|
450
450
|
let or = !0;
|
|
451
|
-
const
|
|
451
|
+
const wl = () => or, [ar, ir] = Nt && window.addEventListener ? [
|
|
452
452
|
window.addEventListener.bind(window),
|
|
453
453
|
window.removeEventListener.bind(window)
|
|
454
454
|
] : [
|
|
455
455
|
Ye,
|
|
456
456
|
Ye
|
|
457
|
-
],
|
|
457
|
+
], yl = () => {
|
|
458
458
|
const e = rr && document.visibilityState;
|
|
459
459
|
return K(e) || e !== "hidden";
|
|
460
|
-
},
|
|
460
|
+
}, Cl = (e) => (rr && document.addEventListener("visibilitychange", e), ar("focus", e), () => {
|
|
461
461
|
rr && document.removeEventListener("visibilitychange", e), ir("focus", e);
|
|
462
|
-
}),
|
|
462
|
+
}), El = (e) => {
|
|
463
463
|
const t = () => {
|
|
464
464
|
or = !0, e();
|
|
465
465
|
}, n = () => {
|
|
@@ -468,23 +468,23 @@ const yl = () => or, [ar, ir] = Nt && window.addEventListener ? [
|
|
|
468
468
|
return ar("online", t), ar("offline", n), () => {
|
|
469
469
|
ir("online", t), ir("offline", n);
|
|
470
470
|
};
|
|
471
|
+
}, Sl = {
|
|
472
|
+
isOnline: wl,
|
|
473
|
+
isVisible: yl
|
|
471
474
|
}, Rl = {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
}, _l =
|
|
475
|
-
initFocus: El,
|
|
476
|
-
initReconnect: Sl
|
|
477
|
-
}, vo = !pe.useId, At = !Nt || xl, Al = (e) => wl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Jt = At ? la : ca, jn = typeof navigator < "u" && navigator.connection, bo = !At && jn && ([
|
|
475
|
+
initFocus: Cl,
|
|
476
|
+
initReconnect: El
|
|
477
|
+
}, vo = !pe.useId, At = !Nt || bl, _l = (e) => xl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Jt = At ? sa : la, jn = typeof navigator < "u" && navigator.connection, bo = !At && jn && ([
|
|
478
478
|
"slow-2g",
|
|
479
479
|
"2g"
|
|
480
480
|
].includes(jn.effectiveType) || jn.saveData), Wt = /* @__PURE__ */ new WeakMap(), Fn = (e, t) => an.prototype.toString.call(e) === `[object ${t}]`;
|
|
481
|
-
let
|
|
481
|
+
let Al = 0;
|
|
482
482
|
const sr = (e) => {
|
|
483
483
|
const t = typeof e, n = Fn(e, "Date"), r = Fn(e, "RegExp"), o = Fn(e, "Object");
|
|
484
484
|
let a, i;
|
|
485
485
|
if (an(e) === e && !n && !r) {
|
|
486
486
|
if (a = Wt.get(e), a) return a;
|
|
487
|
-
if (a = ++
|
|
487
|
+
if (a = ++Al + "~", Wt.set(e, a), Array.isArray(e)) {
|
|
488
488
|
for (a = "@", i = 0; i < e.length; i++)
|
|
489
489
|
a += sr(e[i]) + ",";
|
|
490
490
|
Wt.set(e, a);
|
|
@@ -512,9 +512,9 @@ const sr = (e) => {
|
|
|
512
512
|
t
|
|
513
513
|
];
|
|
514
514
|
};
|
|
515
|
-
let
|
|
516
|
-
const lr = () => ++
|
|
517
|
-
async function
|
|
515
|
+
let Pl = 0;
|
|
516
|
+
const lr = () => ++Pl;
|
|
517
|
+
async function va(...e) {
|
|
518
518
|
const [t, n, r, o] = e, a = De({
|
|
519
519
|
populateCache: !0,
|
|
520
520
|
throwOnError: !0
|
|
@@ -536,9 +536,9 @@ async function ba(...e) {
|
|
|
536
536
|
async function f(p) {
|
|
537
537
|
const [v] = Er(p);
|
|
538
538
|
if (!v) return;
|
|
539
|
-
const [g, m] =
|
|
539
|
+
const [g, m] = ga(t, v), [x, h, w, y] = Ne.get(t), S = () => {
|
|
540
540
|
const $ = x[v];
|
|
541
|
-
return (we(a.revalidate) ? a.revalidate(g().data, p) : a.revalidate !== !1) && (delete w[v], delete y[v], $ && $[0]) ? $[0](
|
|
541
|
+
return (we(a.revalidate) ? a.revalidate(g().data, p) : a.revalidate !== !1) && (delete w[v], delete y[v], $ && $[0]) ? $[0](ma).then(() => g().data) : g().data;
|
|
542
542
|
};
|
|
543
543
|
if (e.length < 3)
|
|
544
544
|
return S();
|
|
@@ -558,7 +558,7 @@ async function ba(...e) {
|
|
|
558
558
|
} catch ($) {
|
|
559
559
|
P = $;
|
|
560
560
|
}
|
|
561
|
-
if (R &&
|
|
561
|
+
if (R && ha(R))
|
|
562
562
|
if (R = await R.catch(($) => {
|
|
563
563
|
P = $;
|
|
564
564
|
}), A !== h[v][0]) {
|
|
@@ -596,9 +596,9 @@ async function ba(...e) {
|
|
|
596
596
|
const xo = (e, t) => {
|
|
597
597
|
for (const n in e)
|
|
598
598
|
e[n][0] && e[n][0](t);
|
|
599
|
-
},
|
|
599
|
+
}, ba = (e, t) => {
|
|
600
600
|
if (!Ne.has(e)) {
|
|
601
|
-
const n = De(
|
|
601
|
+
const n = De(Rl, t), r = /* @__PURE__ */ Object.create(null), o = va.bind(ue, e);
|
|
602
602
|
let a = Ye;
|
|
603
603
|
const i = /* @__PURE__ */ Object.create(null), s = (d, f) => {
|
|
604
604
|
const p = i[d] || [];
|
|
@@ -619,7 +619,7 @@ const xo = (e, t) => {
|
|
|
619
619
|
l,
|
|
620
620
|
s
|
|
621
621
|
]), !At)) {
|
|
622
|
-
const d = n.initFocus(setTimeout.bind(ue, xo.bind(ue, r,
|
|
622
|
+
const d = n.initFocus(setTimeout.bind(ue, xo.bind(ue, r, fa))), f = n.initReconnect(setTimeout.bind(ue, xo.bind(ue, r, pa)));
|
|
623
623
|
a = () => {
|
|
624
624
|
d && d(), f && f(), Ne.delete(e);
|
|
625
625
|
};
|
|
@@ -636,16 +636,16 @@ const xo = (e, t) => {
|
|
|
636
636
|
e,
|
|
637
637
|
Ne.get(e)[4]
|
|
638
638
|
];
|
|
639
|
-
},
|
|
639
|
+
}, Ml = (e, t, n, r, o) => {
|
|
640
640
|
const a = n.errorRetryCount, i = o.retryCount, s = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * n.errorRetryInterval;
|
|
641
641
|
!K(a) && i > a || setTimeout(r, s, o);
|
|
642
|
-
},
|
|
642
|
+
}, Tl = nr, [Sr, Ol] = ba(/* @__PURE__ */ new Map()), xa = De(
|
|
643
643
|
{
|
|
644
644
|
// events
|
|
645
645
|
onLoadingSlow: Ye,
|
|
646
646
|
onSuccess: Ye,
|
|
647
647
|
onError: Ye,
|
|
648
|
-
onErrorRetry:
|
|
648
|
+
onErrorRetry: Ml,
|
|
649
649
|
onDiscarded: Ye,
|
|
650
650
|
// switches
|
|
651
651
|
revalidateOnFocus: !0,
|
|
@@ -658,32 +658,32 @@ const xo = (e, t) => {
|
|
|
658
658
|
dedupingInterval: 2 * 1e3,
|
|
659
659
|
loadingTimeout: bo ? 5e3 : 3e3,
|
|
660
660
|
// providers
|
|
661
|
-
compare:
|
|
661
|
+
compare: Tl,
|
|
662
662
|
isPaused: () => !1,
|
|
663
663
|
cache: Sr,
|
|
664
|
-
mutate:
|
|
664
|
+
mutate: Ol,
|
|
665
665
|
fallback: {}
|
|
666
666
|
},
|
|
667
667
|
// use web preset by default
|
|
668
|
-
|
|
669
|
-
),
|
|
668
|
+
Sl
|
|
669
|
+
), wa = (e, t) => {
|
|
670
670
|
const n = De(e, t);
|
|
671
671
|
if (t) {
|
|
672
672
|
const { use: r, fallback: o } = e, { use: a, fallback: i } = t;
|
|
673
673
|
r && a && (n.use = r.concat(a)), o && i && (n.fallback = De(o, i));
|
|
674
674
|
}
|
|
675
675
|
return n;
|
|
676
|
-
}, cr =
|
|
677
|
-
const { value: t } = e, n =
|
|
676
|
+
}, cr = ll({}), kl = (e) => {
|
|
677
|
+
const { value: t } = e, n = ia(cr), r = we(t), o = tr(() => r ? t(n) : t, [
|
|
678
678
|
r,
|
|
679
679
|
n,
|
|
680
680
|
t
|
|
681
|
-
]), a = tr(() => r ? o :
|
|
681
|
+
]), a = tr(() => r ? o : wa(n, o), [
|
|
682
682
|
r,
|
|
683
683
|
n,
|
|
684
684
|
o
|
|
685
685
|
]), i = o && o.provider, s = Ge(ue);
|
|
686
|
-
i && !s.current && (s.current =
|
|
686
|
+
i && !s.current && (s.current = ba(i(a.cache || Sr), o));
|
|
687
687
|
const l = s.current;
|
|
688
688
|
return l && (a.cache = l[0], a.mutate = l[1]), Jt(() => {
|
|
689
689
|
if (l)
|
|
@@ -691,9 +691,9 @@ const xo = (e, t) => {
|
|
|
691
691
|
}, []), on(cr.Provider, De(e, {
|
|
692
692
|
value: a
|
|
693
693
|
}));
|
|
694
|
-
},
|
|
695
|
-
|
|
696
|
-
},
|
|
694
|
+
}, Nl = "$inf$", ya = Nt && window.__SWR_DEVTOOLS_USE__, Il = ya ? window.__SWR_DEVTOOLS_USE__ : [], Dl = () => {
|
|
695
|
+
ya && (window.__SWR_DEVTOOLS_REACT__ = pe);
|
|
696
|
+
}, Ll = (e) => we(e[1]) ? [
|
|
697
697
|
e[0],
|
|
698
698
|
e[1],
|
|
699
699
|
e[2] || {}
|
|
@@ -701,27 +701,27 @@ const xo = (e, t) => {
|
|
|
701
701
|
e[0],
|
|
702
702
|
null,
|
|
703
703
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
704
|
-
],
|
|
704
|
+
], jl = () => De(xa, ia(cr)), Fl = (e) => (t, n, r) => e(t, n && ((...a) => {
|
|
705
705
|
const [i] = Er(t), [, , , s] = Ne.get(Sr);
|
|
706
|
-
if (i.startsWith(
|
|
706
|
+
if (i.startsWith(Nl))
|
|
707
707
|
return n(...a);
|
|
708
708
|
const l = s[i];
|
|
709
709
|
return K(l) ? n(...a) : (delete s[i], l);
|
|
710
|
-
}), r),
|
|
711
|
-
const r =
|
|
710
|
+
}), r), $l = Il.concat(Fl), Vl = (e) => function(...n) {
|
|
711
|
+
const r = jl(), [o, a, i] = Ll(n), s = wa(r, i);
|
|
712
712
|
let l = e;
|
|
713
|
-
const { use: u } = s, d = (u || []).concat(
|
|
713
|
+
const { use: u } = s, d = (u || []).concat($l);
|
|
714
714
|
for (let f = d.length; f--; )
|
|
715
715
|
l = d[f](l);
|
|
716
716
|
return l(o, a || s.fetcher || null, s);
|
|
717
|
-
},
|
|
717
|
+
}, Hl = (e, t, n) => {
|
|
718
718
|
const r = t[e] || (t[e] = []);
|
|
719
719
|
return r.push(n), () => {
|
|
720
720
|
const o = r.indexOf(n);
|
|
721
721
|
o >= 0 && (r[o] = r[r.length - 1], r.pop());
|
|
722
722
|
};
|
|
723
723
|
};
|
|
724
|
-
|
|
724
|
+
Dl();
|
|
725
725
|
const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
|
|
726
726
|
// and emitting an error.
|
|
727
727
|
// We assume that this is only for the `use(thenable)` case, not `use(context)`.
|
|
@@ -743,8 +743,8 @@ const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
743
743
|
}
|
|
744
744
|
}), Vn = {
|
|
745
745
|
dedupe: !0
|
|
746
|
-
},
|
|
747
|
-
const { cache: r, compare: o, suspense: a, fallbackData: i, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: d, refreshWhenOffline: f, keepPreviousData: p } = n, [v, g, m, x] = Ne.get(r), [h, w] = Er(e), y = Ge(!1), S = Ge(!1), R = Ge(h), P = Ge(t), A = Ge(n), C = () => A.current, N = () => C().isVisible() && C().isOnline(), [I, W, z, $] =
|
|
746
|
+
}, Wl = (e, t, n) => {
|
|
747
|
+
const { cache: r, compare: o, suspense: a, fallbackData: i, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: d, refreshWhenOffline: f, keepPreviousData: p } = n, [v, g, m, x] = Ne.get(r), [h, w] = Er(e), y = Ge(!1), S = Ge(!1), R = Ge(h), P = Ge(t), A = Ge(n), C = () => A.current, N = () => C().isVisible() && C().isOnline(), [I, W, z, $] = ga(r, h), V = Ge({}).current, Y = K(i) ? K(n.fallback) ? ue : n.fallback[h] : i, L = (X, Z) => {
|
|
748
748
|
for (const se in V) {
|
|
749
749
|
const te = se;
|
|
750
750
|
if (te === "data") {
|
|
@@ -774,7 +774,7 @@ const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
774
774
|
}, [
|
|
775
775
|
r,
|
|
776
776
|
h
|
|
777
|
-
]), _ =
|
|
777
|
+
]), _ = vl.useSyncExternalStore(Nn(
|
|
778
778
|
(X) => z(h, (Z, se) => {
|
|
779
779
|
L(se, Z) || X();
|
|
780
780
|
}),
|
|
@@ -783,7 +783,7 @@ const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
783
783
|
r,
|
|
784
784
|
h
|
|
785
785
|
]
|
|
786
|
-
), U[0], U[1]), M = !y.current, E = v[h] && v[h].length > 0, T = _.data, D = K(T) ? Y &&
|
|
786
|
+
), U[0], U[1]), M = !y.current, E = v[h] && v[h].length > 0, T = _.data, D = K(T) ? Y && ha(Y) ? $n(Y) : Y : T, F = _.error, q = Ge(D), ee = p ? K(T) ? K(q.current) ? D : q.current : T : D, le = E && !K(F) ? !1 : M && !K(s) ? s : C().isPaused() ? !1 : a ? K(D) ? !1 : l : K(D) || l, G = !!(h && t && M && le), J = K(_.isValidating) ? G : _.isValidating, Q = K(_.isLoading) ? G : _.isLoading, oe = Nn(
|
|
787
787
|
async (X) => {
|
|
788
788
|
const Z = P.current;
|
|
789
789
|
if (!h || !Z || S.current || C().isPaused())
|
|
@@ -821,9 +821,9 @@ const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
821
821
|
} catch (ve) {
|
|
822
822
|
io();
|
|
823
823
|
const Oe = C(), { shouldRetryOnError: On } = Oe;
|
|
824
|
-
Oe.isPaused() || (Te.error = ve, re && de() && (Oe.onError(ve, h, Oe), (On === !0 || we(On) && On(ve)) && (!C().revalidateOnFocus || !C().revalidateOnReconnect || N()) && Oe.onErrorRetry(ve, h, Oe, (
|
|
824
|
+
Oe.isPaused() || (Te.error = ve, re && de() && (Oe.onError(ve, h, Oe), (On === !0 || we(On) && On(ve)) && (!C().revalidateOnFocus || !C().revalidateOnReconnect || N()) && Oe.onErrorRetry(ve, h, Oe, (sl) => {
|
|
825
825
|
const kn = v[h];
|
|
826
|
-
kn && kn[0] && kn[0](ho,
|
|
826
|
+
kn && kn[0] && kn[0](ho, sl);
|
|
827
827
|
}, {
|
|
828
828
|
retryCount: (Be.retryCount || 0) + 1,
|
|
829
829
|
dedupe: !0
|
|
@@ -848,7 +848,7 @@ const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
848
848
|
]
|
|
849
849
|
), xe = Nn(
|
|
850
850
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
851
|
-
(...X) =>
|
|
851
|
+
(...X) => va(r, R.current, ...X),
|
|
852
852
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
853
853
|
[]
|
|
854
854
|
);
|
|
@@ -859,14 +859,14 @@ const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
859
859
|
const X = oe.bind(ue, Vn);
|
|
860
860
|
let Z = 0;
|
|
861
861
|
C().revalidateOnFocus && (Z = Date.now() + C().focusThrottleInterval);
|
|
862
|
-
const te =
|
|
863
|
-
if (me ==
|
|
862
|
+
const te = Hl(h, v, (me, Be = {}) => {
|
|
863
|
+
if (me == fa) {
|
|
864
864
|
const re = Date.now();
|
|
865
865
|
C().revalidateOnFocus && re > Z && N() && (Z = re + C().focusThrottleInterval, X());
|
|
866
|
-
} else if (me ==
|
|
866
|
+
} else if (me == pa)
|
|
867
867
|
C().revalidateOnReconnect && N() && X();
|
|
868
868
|
else {
|
|
869
|
-
if (me ==
|
|
869
|
+
if (me == ma)
|
|
870
870
|
return oe();
|
|
871
871
|
if (me == ho)
|
|
872
872
|
return oe(Be);
|
|
@@ -874,7 +874,7 @@ const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
874
874
|
});
|
|
875
875
|
return S.current = !1, R.current = h, y.current = !0, W({
|
|
876
876
|
_k: w
|
|
877
|
-
}), le && (K(D) || At ? X() :
|
|
877
|
+
}), le && (K(D) || At ? X() : _l(X)), () => {
|
|
878
878
|
S.current = !0, te();
|
|
879
879
|
};
|
|
880
880
|
}, [
|
|
@@ -896,7 +896,7 @@ const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
896
896
|
d,
|
|
897
897
|
f,
|
|
898
898
|
h
|
|
899
|
-
]),
|
|
899
|
+
]), cl(ee), a && K(D) && h) {
|
|
900
900
|
if (!vo && At)
|
|
901
901
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
902
902
|
P.current = t, A.current = n, S.current = !1;
|
|
@@ -926,27 +926,27 @@ const $n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
926
926
|
return V.isLoading = !0, Q;
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
|
-
},
|
|
930
|
-
value:
|
|
931
|
-
}),
|
|
932
|
-
function
|
|
929
|
+
}, zl = an.defineProperty(kl, "defaultValue", {
|
|
930
|
+
value: xa
|
|
931
|
+
}), Bl = Vl(Wl);
|
|
932
|
+
function Ul(e) {
|
|
933
933
|
return e && !e.startsWith("/") ? `/${e}` : e;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Gl(e) {
|
|
936
936
|
return e && !e.endsWith("/") ? `${e}/` : e;
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function Kl(e) {
|
|
939
939
|
return e.startsWith("/") ? e.substring(1, e.length) : e;
|
|
940
940
|
}
|
|
941
|
-
const
|
|
941
|
+
const Yl = (e) => {
|
|
942
942
|
const t = process.env.NEXT_PUBLIC_BASE_PATH;
|
|
943
943
|
if (!t)
|
|
944
944
|
return e;
|
|
945
|
-
const n =
|
|
946
|
-
return
|
|
945
|
+
const n = Ul(t);
|
|
946
|
+
return Gl(n) + Kl(e);
|
|
947
947
|
};
|
|
948
|
-
function
|
|
949
|
-
const { data: e, error: t, isLoading: n, mutate: r } =
|
|
948
|
+
function ql() {
|
|
949
|
+
const { data: e, error: t, isLoading: n, mutate: r } = Bl(Yl(process.env.NEXT_PUBLIC_PROFILE_ROUTE || "/auth/profile"), (...o) => fetch(...o).then((a) => {
|
|
950
950
|
if (!a.ok)
|
|
951
951
|
throw new Error("Unauthorized");
|
|
952
952
|
return a.status === 204 ? null : a.json();
|
|
@@ -976,15 +976,15 @@ var yo;
|
|
|
976
976
|
(function(e) {
|
|
977
977
|
e.MISSING_SESSION = "missing_session", e.MISSING_REFRESH_TOKEN = "missing_refresh_token", e.FAILED_TO_EXCHANGE = "failed_to_exchange_refresh_token";
|
|
978
978
|
})(yo || (yo = {}));
|
|
979
|
-
function
|
|
980
|
-
return pe.createElement(
|
|
979
|
+
function Xl({ user: e, children: t }) {
|
|
980
|
+
return pe.createElement(zl, { value: {
|
|
981
981
|
fallback: {
|
|
982
982
|
[process.env.NEXT_PUBLIC_PROFILE_ROUTE || "/auth/profile"]: e
|
|
983
983
|
}
|
|
984
984
|
} }, t);
|
|
985
985
|
}
|
|
986
986
|
var Et = {}, Co;
|
|
987
|
-
function
|
|
987
|
+
function Zl() {
|
|
988
988
|
if (Co) return Et;
|
|
989
989
|
Co = 1, Object.defineProperty(Et, "__esModule", { value: !0 }), Et.parse = i, Et.serialize = u;
|
|
990
990
|
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, r = /^[\u0020-\u003A\u003D-\u007E]*$/, o = Object.prototype.toString, a = /* @__PURE__ */ (() => {
|
|
@@ -1108,7 +1108,7 @@ function Jl() {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
return Et;
|
|
1110
1110
|
}
|
|
1111
|
-
|
|
1111
|
+
Zl();
|
|
1112
1112
|
/**
|
|
1113
1113
|
* react-router v7.6.2
|
|
1114
1114
|
*
|
|
@@ -1149,19 +1149,19 @@ function Rr(e) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
return t;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1153
|
-
return
|
|
1152
|
+
function Ca(e, t, n = "/") {
|
|
1153
|
+
return Jl(e, t, n, !1);
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1155
|
+
function Jl(e, t, n, r) {
|
|
1156
1156
|
let o = typeof t == "string" ? Rr(t) : t, a = qe(o.pathname || "/", n);
|
|
1157
1157
|
if (a == null)
|
|
1158
1158
|
return null;
|
|
1159
|
-
let i =
|
|
1160
|
-
|
|
1159
|
+
let i = Ea(e);
|
|
1160
|
+
Ql(i);
|
|
1161
1161
|
let s = null;
|
|
1162
1162
|
for (let l = 0; s == null && l < i.length; ++l) {
|
|
1163
|
-
let u =
|
|
1164
|
-
s =
|
|
1163
|
+
let u = uc(a);
|
|
1164
|
+
s = lc(
|
|
1165
1165
|
i[l],
|
|
1166
1166
|
u,
|
|
1167
1167
|
r
|
|
@@ -1169,7 +1169,7 @@ function Ql(e, t, n, r) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
return s;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function Ea(e, t = [], n = [], r = "") {
|
|
1173
1173
|
let o = (a, i, s) => {
|
|
1174
1174
|
let l = {
|
|
1175
1175
|
relativePath: s === void 0 ? a.path || "" : s,
|
|
@@ -1187,9 +1187,9 @@ function Sa(e, t = [], n = [], r = "") {
|
|
|
1187
1187
|
// @ts-expect-error
|
|
1188
1188
|
a.index !== !0,
|
|
1189
1189
|
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
1190
|
-
),
|
|
1190
|
+
), Ea(a.children, t, d, u)), !(a.path == null && !a.index) && t.push({
|
|
1191
1191
|
path: u,
|
|
1192
|
-
score:
|
|
1192
|
+
score: ic(u, a.index),
|
|
1193
1193
|
routesMeta: d
|
|
1194
1194
|
});
|
|
1195
1195
|
};
|
|
@@ -1198,17 +1198,17 @@ function Sa(e, t = [], n = [], r = "") {
|
|
|
1198
1198
|
if (a.path === "" || !((s = a.path) != null && s.includes("?")))
|
|
1199
1199
|
o(a, i);
|
|
1200
1200
|
else
|
|
1201
|
-
for (let l of
|
|
1201
|
+
for (let l of Sa(a.path))
|
|
1202
1202
|
o(a, i, l);
|
|
1203
1203
|
}), t;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function Sa(e) {
|
|
1206
1206
|
let t = e.split("/");
|
|
1207
1207
|
if (t.length === 0) return [];
|
|
1208
1208
|
let [n, ...r] = t, o = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
1209
1209
|
if (r.length === 0)
|
|
1210
1210
|
return o ? [a, ""] : [a];
|
|
1211
|
-
let i =
|
|
1211
|
+
let i = Sa(r.join("/")), s = [];
|
|
1212
1212
|
return s.push(
|
|
1213
1213
|
...i.map(
|
|
1214
1214
|
(l) => l === "" ? a : [a, l].join("/")
|
|
@@ -1217,23 +1217,23 @@ function Ra(e) {
|
|
|
1217
1217
|
(l) => e.startsWith("/") && l === "" ? "/" : l
|
|
1218
1218
|
);
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function Ql(e) {
|
|
1221
1221
|
e.sort(
|
|
1222
|
-
(t, n) => t.score !== n.score ? n.score - t.score :
|
|
1222
|
+
(t, n) => t.score !== n.score ? n.score - t.score : sc(
|
|
1223
1223
|
t.routesMeta.map((r) => r.childrenIndex),
|
|
1224
1224
|
n.routesMeta.map((r) => r.childrenIndex)
|
|
1225
1225
|
)
|
|
1226
1226
|
);
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1229
|
-
function
|
|
1228
|
+
var ec = /^:[\w-]+$/, tc = 3, nc = 2, rc = 1, oc = 10, ac = -2, Eo = (e) => e === "*";
|
|
1229
|
+
function ic(e, t) {
|
|
1230
1230
|
let n = e.split("/"), r = n.length;
|
|
1231
|
-
return n.some(Eo) && (r +=
|
|
1232
|
-
(o, a) => o + (
|
|
1231
|
+
return n.some(Eo) && (r += ac), t && (r += nc), n.filter((o) => !Eo(o)).reduce(
|
|
1232
|
+
(o, a) => o + (ec.test(a) ? tc : a === "" ? rc : oc),
|
|
1233
1233
|
r
|
|
1234
1234
|
);
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function sc(e, t) {
|
|
1237
1237
|
return e.length === t.length && e.slice(0, -1).every((r, o) => r === t[o]) ? (
|
|
1238
1238
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
1239
1239
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -1246,7 +1246,7 @@ function lc(e, t) {
|
|
|
1246
1246
|
0
|
|
1247
1247
|
);
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function lc(e, t, n = !1) {
|
|
1250
1250
|
let { routesMeta: r } = e, o = {}, a = "/", i = [];
|
|
1251
1251
|
for (let s = 0; s < r.length; ++s) {
|
|
1252
1252
|
let l = r[s], u = s === r.length - 1, d = a === "/" ? t : t.slice(a.length) || "/", f = sn(
|
|
@@ -1266,7 +1266,7 @@ function cc(e, t, n = !1) {
|
|
|
1266
1266
|
// TODO: Can this as be avoided?
|
|
1267
1267
|
params: o,
|
|
1268
1268
|
pathname: Ie([a, f.pathname]),
|
|
1269
|
-
pathnameBase:
|
|
1269
|
+
pathnameBase: mc(
|
|
1270
1270
|
Ie([a, f.pathnameBase])
|
|
1271
1271
|
),
|
|
1272
1272
|
route: p
|
|
@@ -1276,7 +1276,7 @@ function cc(e, t, n = !1) {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
function sn(e, t) {
|
|
1278
1278
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
1279
|
-
let [n, r] =
|
|
1279
|
+
let [n, r] = cc(
|
|
1280
1280
|
e.path,
|
|
1281
1281
|
e.caseSensitive,
|
|
1282
1282
|
e.end
|
|
@@ -1300,7 +1300,7 @@ function sn(e, t) {
|
|
|
1300
1300
|
pattern: e
|
|
1301
1301
|
};
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function cc(e, t = !1, n = !0) {
|
|
1304
1304
|
Le(
|
|
1305
1305
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
1306
1306
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
@@ -1311,7 +1311,7 @@ function uc(e, t = !1, n = !0) {
|
|
|
1311
1311
|
);
|
|
1312
1312
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, t ? void 0 : "i"), r];
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function uc(e) {
|
|
1315
1315
|
try {
|
|
1316
1316
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
1317
1317
|
} catch (t) {
|
|
@@ -1328,19 +1328,19 @@ function qe(e, t) {
|
|
|
1328
1328
|
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
1329
1329
|
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function dc(e, t = "/") {
|
|
1332
1332
|
let {
|
|
1333
1333
|
pathname: n,
|
|
1334
1334
|
search: r = "",
|
|
1335
1335
|
hash: o = ""
|
|
1336
1336
|
} = typeof e == "string" ? Rr(e) : e;
|
|
1337
1337
|
return {
|
|
1338
|
-
pathname: n ? n.startsWith("/") ? n :
|
|
1339
|
-
search:
|
|
1340
|
-
hash:
|
|
1338
|
+
pathname: n ? n.startsWith("/") ? n : fc(n, t) : t,
|
|
1339
|
+
search: hc(r),
|
|
1340
|
+
hash: gc(o)
|
|
1341
1341
|
};
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function fc(e, t) {
|
|
1344
1344
|
let n = t.replace(/\/+$/, "").split("/");
|
|
1345
1345
|
return e.split("/").forEach((o) => {
|
|
1346
1346
|
o === ".." ? n.length > 1 && n.pop() : o !== "." && n.push(o);
|
|
@@ -1351,18 +1351,18 @@ function Hn(e, t, n, r) {
|
|
|
1351
1351
|
r
|
|
1352
1352
|
)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function pc(e) {
|
|
1355
1355
|
return e.filter(
|
|
1356
1356
|
(t, n) => n === 0 || t.route.path && t.route.path.length > 0
|
|
1357
1357
|
);
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1360
|
-
let t =
|
|
1359
|
+
function Ra(e) {
|
|
1360
|
+
let t = pc(e);
|
|
1361
1361
|
return t.map(
|
|
1362
1362
|
(n, r) => r === t.length - 1 ? n.pathname : n.pathnameBase
|
|
1363
1363
|
);
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function _a(e, t, n, r = !1) {
|
|
1366
1366
|
let o;
|
|
1367
1367
|
typeof e == "string" ? o = Rr(e) : (o = { ...e }, ce(
|
|
1368
1368
|
!o.pathname || !o.pathname.includes("?"),
|
|
@@ -1387,41 +1387,41 @@ function Aa(e, t, n, r = !1) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
s = f >= 0 ? t[f] : "/";
|
|
1389
1389
|
}
|
|
1390
|
-
let l =
|
|
1390
|
+
let l = dc(o, s), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && n.endsWith("/");
|
|
1391
1391
|
return !l.pathname.endsWith("/") && (u || d) && (l.pathname += "/"), l;
|
|
1392
1392
|
}
|
|
1393
|
-
var Ie = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
1394
|
-
function
|
|
1393
|
+
var Ie = (e) => e.join("/").replace(/\/\/+/g, "/"), mc = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), hc = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, gc = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
1394
|
+
function vc(e) {
|
|
1395
1395
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
1396
1396
|
}
|
|
1397
|
-
var
|
|
1397
|
+
var Aa = [
|
|
1398
1398
|
"POST",
|
|
1399
1399
|
"PUT",
|
|
1400
1400
|
"PATCH",
|
|
1401
1401
|
"DELETE"
|
|
1402
1402
|
];
|
|
1403
1403
|
new Set(
|
|
1404
|
-
|
|
1404
|
+
Aa
|
|
1405
1405
|
);
|
|
1406
|
-
var
|
|
1406
|
+
var bc = [
|
|
1407
1407
|
"GET",
|
|
1408
|
-
...
|
|
1408
|
+
...Aa
|
|
1409
1409
|
];
|
|
1410
|
-
new Set(
|
|
1410
|
+
new Set(bc);
|
|
1411
1411
|
var gt = c.createContext(null);
|
|
1412
1412
|
gt.displayName = "DataRouter";
|
|
1413
1413
|
var hn = c.createContext(null);
|
|
1414
1414
|
hn.displayName = "DataRouterState";
|
|
1415
|
-
var
|
|
1415
|
+
var Pa = c.createContext({
|
|
1416
1416
|
isTransitioning: !1
|
|
1417
1417
|
});
|
|
1418
|
-
|
|
1419
|
-
var
|
|
1418
|
+
Pa.displayName = "ViewTransition";
|
|
1419
|
+
var xc = c.createContext(
|
|
1420
1420
|
/* @__PURE__ */ new Map()
|
|
1421
1421
|
);
|
|
1422
|
-
|
|
1423
|
-
var
|
|
1424
|
-
|
|
1422
|
+
xc.displayName = "Fetchers";
|
|
1423
|
+
var wc = c.createContext(null);
|
|
1424
|
+
wc.displayName = "Await";
|
|
1425
1425
|
var Ve = c.createContext(
|
|
1426
1426
|
null
|
|
1427
1427
|
);
|
|
@@ -1438,7 +1438,7 @@ var He = c.createContext({
|
|
|
1438
1438
|
He.displayName = "Route";
|
|
1439
1439
|
var Ar = c.createContext(null);
|
|
1440
1440
|
Ar.displayName = "RouteError";
|
|
1441
|
-
function
|
|
1441
|
+
function yc(e, { relative: t } = {}) {
|
|
1442
1442
|
ce(
|
|
1443
1443
|
gn(),
|
|
1444
1444
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -1459,32 +1459,32 @@ function nt() {
|
|
|
1459
1459
|
"useLocation() may be used only in the context of a <Router> component."
|
|
1460
1460
|
), c.useContext(_r).location;
|
|
1461
1461
|
}
|
|
1462
|
-
var
|
|
1463
|
-
function
|
|
1462
|
+
var Ma = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
1463
|
+
function Ta(e) {
|
|
1464
1464
|
c.useContext(Ve).static || c.useLayoutEffect(e);
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1466
|
+
function Cc() {
|
|
1467
1467
|
let { isDataRoute: e } = c.useContext(He);
|
|
1468
|
-
return e ?
|
|
1468
|
+
return e ? Dc() : Ec();
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function Ec() {
|
|
1471
1471
|
ce(
|
|
1472
1472
|
gn(),
|
|
1473
1473
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
1474
1474
|
// router loaded. We can help them understand how to avoid that.
|
|
1475
1475
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
1476
1476
|
);
|
|
1477
|
-
let e = c.useContext(gt), { basename: t, navigator: n } = c.useContext(Ve), { matches: r } = c.useContext(He), { pathname: o } = nt(), a = JSON.stringify(
|
|
1478
|
-
return
|
|
1477
|
+
let e = c.useContext(gt), { basename: t, navigator: n } = c.useContext(Ve), { matches: r } = c.useContext(He), { pathname: o } = nt(), a = JSON.stringify(Ra(r)), i = c.useRef(!1);
|
|
1478
|
+
return Ta(() => {
|
|
1479
1479
|
i.current = !0;
|
|
1480
1480
|
}), c.useCallback(
|
|
1481
1481
|
(l, u = {}) => {
|
|
1482
|
-
if (Le(i.current,
|
|
1482
|
+
if (Le(i.current, Ma), !i.current) return;
|
|
1483
1483
|
if (typeof l == "number") {
|
|
1484
1484
|
n.go(l);
|
|
1485
1485
|
return;
|
|
1486
1486
|
}
|
|
1487
|
-
let d =
|
|
1487
|
+
let d = _a(
|
|
1488
1488
|
l,
|
|
1489
1489
|
JSON.parse(a),
|
|
1490
1490
|
o,
|
|
@@ -1507,9 +1507,9 @@ function Sc() {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
c.createContext(null);
|
|
1509
1509
|
function It(e, { relative: t } = {}) {
|
|
1510
|
-
let { matches: n } = c.useContext(He), { pathname: r } = nt(), o = JSON.stringify(
|
|
1510
|
+
let { matches: n } = c.useContext(He), { pathname: r } = nt(), o = JSON.stringify(Ra(n));
|
|
1511
1511
|
return c.useMemo(
|
|
1512
|
-
() =>
|
|
1512
|
+
() => _a(
|
|
1513
1513
|
e,
|
|
1514
1514
|
JSON.parse(o),
|
|
1515
1515
|
r,
|
|
@@ -1518,7 +1518,7 @@ function It(e, { relative: t } = {}) {
|
|
|
1518
1518
|
[e, o, r, t]
|
|
1519
1519
|
);
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function Sc(e, t, n, r) {
|
|
1522
1522
|
ce(
|
|
1523
1523
|
gn(),
|
|
1524
1524
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -1528,7 +1528,7 @@ function Rc(e, t, n, r) {
|
|
|
1528
1528
|
let { navigator: o } = c.useContext(Ve), { matches: a } = c.useContext(He), i = a[a.length - 1], s = i ? i.params : {}, l = i ? i.pathname : "/", u = i ? i.pathnameBase : "/", d = i && i.route;
|
|
1529
1529
|
{
|
|
1530
1530
|
let h = d && d.path || "";
|
|
1531
|
-
|
|
1531
|
+
Oa(
|
|
1532
1532
|
l,
|
|
1533
1533
|
!d || h.endsWith("*") || h.endsWith("*?"),
|
|
1534
1534
|
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
@@ -1543,14 +1543,14 @@ Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" :
|
|
|
1543
1543
|
let h = u.replace(/^\//, "").split("/");
|
|
1544
1544
|
g = "/" + v.replace(/^\//, "").split("/").slice(h.length).join("/");
|
|
1545
1545
|
}
|
|
1546
|
-
let m =
|
|
1546
|
+
let m = Ca(e, { pathname: g });
|
|
1547
1547
|
return Le(
|
|
1548
1548
|
d || m != null,
|
|
1549
1549
|
`No routes matched location "${p.pathname}${p.search}${p.hash}" `
|
|
1550
1550
|
), Le(
|
|
1551
1551
|
m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0,
|
|
1552
1552
|
`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
1553
|
-
),
|
|
1553
|
+
), Mc(
|
|
1554
1554
|
m && m.map(
|
|
1555
1555
|
(h) => Object.assign({}, h, {
|
|
1556
1556
|
params: Object.assign({}, s, h.params),
|
|
@@ -1571,14 +1571,14 @@ Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" :
|
|
|
1571
1571
|
r
|
|
1572
1572
|
);
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1575
|
-
let e =
|
|
1574
|
+
function Rc() {
|
|
1575
|
+
let e = Ic(), t = vc(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = { padding: "0.5rem", backgroundColor: r }, a = { padding: "2px 4px", backgroundColor: r }, i = null;
|
|
1576
1576
|
return console.error(
|
|
1577
1577
|
"Error handled by React Router default ErrorBoundary:",
|
|
1578
1578
|
e
|
|
1579
1579
|
), i = /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ c.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ c.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ c.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ c.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ c.createElement("pre", { style: o }, n) : null, i);
|
|
1580
1580
|
}
|
|
1581
|
-
var
|
|
1581
|
+
var _c = /* @__PURE__ */ c.createElement(Rc, null), Ac = class extends c.Component {
|
|
1582
1582
|
constructor(e) {
|
|
1583
1583
|
super(e), this.state = {
|
|
1584
1584
|
location: e.location,
|
|
@@ -1617,11 +1617,11 @@ var Ac = /* @__PURE__ */ c.createElement(_c, null), Pc = class extends c.Compone
|
|
|
1617
1617
|
)) : this.props.children;
|
|
1618
1618
|
}
|
|
1619
1619
|
};
|
|
1620
|
-
function
|
|
1620
|
+
function Pc({ routeContext: e, match: t, children: n }) {
|
|
1621
1621
|
let r = c.useContext(gt);
|
|
1622
1622
|
return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ c.createElement(He.Provider, { value: e }, n);
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function Mc(e, t = [], n = null, r = null) {
|
|
1625
1625
|
if (e == null) {
|
|
1626
1626
|
if (!n)
|
|
1627
1627
|
return null;
|
|
@@ -1661,7 +1661,7 @@ function Tc(e, t = [], n = null, r = null) {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
return o.reduceRight((l, u, d) => {
|
|
1663
1663
|
let f, p = !1, v = null, g = null;
|
|
1664
|
-
n && (f = a && u.route.id ? a[u.route.id] : void 0, v = u.route.errorElement ||
|
|
1664
|
+
n && (f = a && u.route.id ? a[u.route.id] : void 0, v = u.route.errorElement || _c, i && (s < 0 && d === 0 ? (Oa(
|
|
1665
1665
|
"route-fallback",
|
|
1666
1666
|
!1,
|
|
1667
1667
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
@@ -1669,7 +1669,7 @@ function Tc(e, t = [], n = null, r = null) {
|
|
|
1669
1669
|
let m = t.concat(o.slice(0, d + 1)), x = () => {
|
|
1670
1670
|
let h;
|
|
1671
1671
|
return f ? h = v : p ? h = g : u.route.Component ? h = /* @__PURE__ */ c.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = l, /* @__PURE__ */ c.createElement(
|
|
1672
|
-
|
|
1672
|
+
Pc,
|
|
1673
1673
|
{
|
|
1674
1674
|
match: u,
|
|
1675
1675
|
routeContext: {
|
|
@@ -1682,7 +1682,7 @@ function Tc(e, t = [], n = null, r = null) {
|
|
|
1682
1682
|
);
|
|
1683
1683
|
};
|
|
1684
1684
|
return n && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */ c.createElement(
|
|
1685
|
-
|
|
1685
|
+
Ac,
|
|
1686
1686
|
{
|
|
1687
1687
|
location: n.location,
|
|
1688
1688
|
revalidation: n.revalidation,
|
|
@@ -1697,34 +1697,34 @@ function Tc(e, t = [], n = null, r = null) {
|
|
|
1697
1697
|
function Pr(e) {
|
|
1698
1698
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function Tc(e) {
|
|
1701
1701
|
let t = c.useContext(gt);
|
|
1702
1702
|
return ce(t, Pr(e)), t;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Oc(e) {
|
|
1705
1705
|
let t = c.useContext(hn);
|
|
1706
1706
|
return ce(t, Pr(e)), t;
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function kc(e) {
|
|
1709
1709
|
let t = c.useContext(He);
|
|
1710
1710
|
return ce(t, Pr(e)), t;
|
|
1711
1711
|
}
|
|
1712
1712
|
function Mr(e) {
|
|
1713
|
-
let t =
|
|
1713
|
+
let t = kc(e), n = t.matches[t.matches.length - 1];
|
|
1714
1714
|
return ce(
|
|
1715
1715
|
n.route.id,
|
|
1716
1716
|
`${e} can only be used on routes that contain a unique "id"`
|
|
1717
1717
|
), n.route.id;
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function Nc() {
|
|
1720
1720
|
return Mr(
|
|
1721
1721
|
"useRouteId"
|
|
1722
1722
|
/* UseRouteId */
|
|
1723
1723
|
);
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function Ic() {
|
|
1726
1726
|
var r;
|
|
1727
|
-
let e = c.useContext(Ar), t =
|
|
1727
|
+
let e = c.useContext(Ar), t = Oc(
|
|
1728
1728
|
"useRouteError"
|
|
1729
1729
|
/* UseRouteError */
|
|
1730
1730
|
), n = Mr(
|
|
@@ -1733,58 +1733,58 @@ function Dc() {
|
|
|
1733
1733
|
);
|
|
1734
1734
|
return e !== void 0 ? e : (r = t.errors) == null ? void 0 : r[n];
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1737
|
-
let { router: e } =
|
|
1736
|
+
function Dc() {
|
|
1737
|
+
let { router: e } = Tc(
|
|
1738
1738
|
"useNavigate"
|
|
1739
1739
|
/* UseNavigateStable */
|
|
1740
1740
|
), t = Mr(
|
|
1741
1741
|
"useNavigate"
|
|
1742
1742
|
/* UseNavigateStable */
|
|
1743
1743
|
), n = c.useRef(!1);
|
|
1744
|
-
return
|
|
1744
|
+
return Ta(() => {
|
|
1745
1745
|
n.current = !0;
|
|
1746
1746
|
}), c.useCallback(
|
|
1747
1747
|
async (o, a = {}) => {
|
|
1748
|
-
Le(n.current,
|
|
1748
|
+
Le(n.current, Ma), n.current && (typeof o == "number" ? e.navigate(o) : await e.navigate(o, { fromRouteId: t, ...a }));
|
|
1749
1749
|
},
|
|
1750
1750
|
[e, t]
|
|
1751
1751
|
);
|
|
1752
1752
|
}
|
|
1753
1753
|
var So = {};
|
|
1754
|
-
function
|
|
1754
|
+
function Oa(e, t, n) {
|
|
1755
1755
|
!t && !So[e] && (So[e] = !0, Le(!1, n));
|
|
1756
1756
|
}
|
|
1757
|
-
c.memo(
|
|
1758
|
-
function
|
|
1757
|
+
c.memo(Lc);
|
|
1758
|
+
function Lc({
|
|
1759
1759
|
routes: e,
|
|
1760
1760
|
future: t,
|
|
1761
1761
|
state: n
|
|
1762
1762
|
}) {
|
|
1763
|
-
return
|
|
1763
|
+
return Sc(e, void 0, n, t);
|
|
1764
1764
|
}
|
|
1765
1765
|
var Qt = "get", en = "application/x-www-form-urlencoded";
|
|
1766
1766
|
function vn(e) {
|
|
1767
1767
|
return e != null && typeof e.tagName == "string";
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function jc(e) {
|
|
1770
1770
|
return vn(e) && e.tagName.toLowerCase() === "button";
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function Fc(e) {
|
|
1773
1773
|
return vn(e) && e.tagName.toLowerCase() === "form";
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function $c(e) {
|
|
1776
1776
|
return vn(e) && e.tagName.toLowerCase() === "input";
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function Vc(e) {
|
|
1779
1779
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Hc(e, t) {
|
|
1782
1782
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1783
1783
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
1784
|
-
!
|
|
1784
|
+
!Vc(e);
|
|
1785
1785
|
}
|
|
1786
1786
|
var zt = null;
|
|
1787
|
-
function
|
|
1787
|
+
function Wc() {
|
|
1788
1788
|
if (zt === null)
|
|
1789
1789
|
try {
|
|
1790
1790
|
new FormData(
|
|
@@ -1797,30 +1797,30 @@ function zc() {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
return zt;
|
|
1799
1799
|
}
|
|
1800
|
-
var
|
|
1800
|
+
var zc = /* @__PURE__ */ new Set([
|
|
1801
1801
|
"application/x-www-form-urlencoded",
|
|
1802
1802
|
"multipart/form-data",
|
|
1803
1803
|
"text/plain"
|
|
1804
1804
|
]);
|
|
1805
1805
|
function Wn(e) {
|
|
1806
|
-
return e != null && !
|
|
1806
|
+
return e != null && !zc.has(e) ? (Le(
|
|
1807
1807
|
!1,
|
|
1808
1808
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${en}"`
|
|
1809
1809
|
), null) : e;
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function Bc(e, t) {
|
|
1812
1812
|
let n, r, o, a, i;
|
|
1813
|
-
if (
|
|
1813
|
+
if (Fc(e)) {
|
|
1814
1814
|
let s = e.getAttribute("action");
|
|
1815
1815
|
r = s ? qe(s, t) : null, n = e.getAttribute("method") || Qt, o = Wn(e.getAttribute("enctype")) || en, a = new FormData(e);
|
|
1816
|
-
} else if (
|
|
1816
|
+
} else if (jc(e) || $c(e) && (e.type === "submit" || e.type === "image")) {
|
|
1817
1817
|
let s = e.form;
|
|
1818
1818
|
if (s == null)
|
|
1819
1819
|
throw new Error(
|
|
1820
1820
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1821
1821
|
);
|
|
1822
1822
|
let l = e.getAttribute("formaction") || s.getAttribute("action");
|
|
1823
|
-
if (r = l ? qe(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || Qt, o = Wn(e.getAttribute("formenctype")) || Wn(s.getAttribute("enctype")) || en, a = new FormData(s, e), !
|
|
1823
|
+
if (r = l ? qe(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || Qt, o = Wn(e.getAttribute("formenctype")) || Wn(s.getAttribute("enctype")) || en, a = new FormData(s, e), !Wc()) {
|
|
1824
1824
|
let { name: u, type: d, value: f } = e;
|
|
1825
1825
|
if (d === "image") {
|
|
1826
1826
|
let p = u ? `${u}.` : "";
|
|
@@ -1840,7 +1840,7 @@ function Tr(e, t) {
|
|
|
1840
1840
|
if (e === !1 || e === null || typeof e > "u")
|
|
1841
1841
|
throw new Error(t);
|
|
1842
1842
|
}
|
|
1843
|
-
async function
|
|
1843
|
+
async function Uc(e, t) {
|
|
1844
1844
|
if (e.id in t)
|
|
1845
1845
|
return t[e.id];
|
|
1846
1846
|
try {
|
|
@@ -1857,22 +1857,22 @@ async function Gc(e, t) {
|
|
|
1857
1857
|
});
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function Gc(e) {
|
|
1861
1861
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
1862
1862
|
}
|
|
1863
|
-
async function
|
|
1863
|
+
async function Kc(e, t, n) {
|
|
1864
1864
|
let r = await Promise.all(
|
|
1865
1865
|
e.map(async (o) => {
|
|
1866
1866
|
let a = t.routes[o.route.id];
|
|
1867
1867
|
if (a) {
|
|
1868
|
-
let i = await
|
|
1868
|
+
let i = await Uc(a, n);
|
|
1869
1869
|
return i.links ? i.links() : [];
|
|
1870
1870
|
}
|
|
1871
1871
|
return [];
|
|
1872
1872
|
})
|
|
1873
1873
|
);
|
|
1874
|
-
return
|
|
1875
|
-
r.flat(1).filter(
|
|
1874
|
+
return Zc(
|
|
1875
|
+
r.flat(1).filter(Gc).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
|
|
1876
1876
|
(o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
|
|
1877
1877
|
)
|
|
1878
1878
|
);
|
|
@@ -1913,8 +1913,8 @@ function Ro(e, t, n, r, o, a) {
|
|
|
1913
1913
|
return !0;
|
|
1914
1914
|
}) : [];
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1917
|
-
return
|
|
1916
|
+
function Yc(e, t, { includeHydrateFallback: n } = {}) {
|
|
1917
|
+
return qc(
|
|
1918
1918
|
e.map((r) => {
|
|
1919
1919
|
let o = t.routes[r.route.id];
|
|
1920
1920
|
if (!o) return [];
|
|
@@ -1923,25 +1923,25 @@ function qc(e, t, { includeHydrateFallback: n } = {}) {
|
|
|
1923
1923
|
}).flat(1)
|
|
1924
1924
|
);
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function qc(e) {
|
|
1927
1927
|
return [...new Set(e)];
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function Xc(e) {
|
|
1930
1930
|
let t = {}, n = Object.keys(e).sort();
|
|
1931
1931
|
for (let r of n)
|
|
1932
1932
|
t[r] = e[r];
|
|
1933
1933
|
return t;
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Zc(e, t) {
|
|
1936
1936
|
let n = /* @__PURE__ */ new Set();
|
|
1937
1937
|
return new Set(t), e.reduce((r, o) => {
|
|
1938
|
-
let a = JSON.stringify(
|
|
1938
|
+
let a = JSON.stringify(Xc(o));
|
|
1939
1939
|
return n.has(a) || (n.add(a), r.push({ key: a, link: o })), r;
|
|
1940
1940
|
}, []);
|
|
1941
1941
|
}
|
|
1942
1942
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
1943
|
-
var
|
|
1944
|
-
function
|
|
1943
|
+
var Jc = /* @__PURE__ */ new Set([100, 101, 204, 205]);
|
|
1944
|
+
function Qc(e, t) {
|
|
1945
1945
|
let n = typeof e == "string" ? new URL(
|
|
1946
1946
|
e,
|
|
1947
1947
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
@@ -1950,14 +1950,14 @@ function eu(e, t) {
|
|
|
1950
1950
|
) : e;
|
|
1951
1951
|
return n.pathname === "/" ? n.pathname = "_root.data" : t && qe(n.pathname, t) === "/" ? n.pathname = `${t.replace(/\/$/, "")}/_root.data` : n.pathname = `${n.pathname.replace(/\/$/, "")}.data`, n;
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1953
|
+
function ka() {
|
|
1954
1954
|
let e = c.useContext(gt);
|
|
1955
1955
|
return Tr(
|
|
1956
1956
|
e,
|
|
1957
1957
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1958
1958
|
), e;
|
|
1959
1959
|
}
|
|
1960
|
-
function
|
|
1960
|
+
function eu() {
|
|
1961
1961
|
let e = c.useContext(hn);
|
|
1962
1962
|
return Tr(
|
|
1963
1963
|
e,
|
|
@@ -1966,14 +1966,14 @@ function tu() {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
var Or = c.createContext(void 0);
|
|
1968
1968
|
Or.displayName = "FrameworkContext";
|
|
1969
|
-
function
|
|
1969
|
+
function Na() {
|
|
1970
1970
|
let e = c.useContext(Or);
|
|
1971
1971
|
return Tr(
|
|
1972
1972
|
e,
|
|
1973
1973
|
"You must render this element inside a <HydratedRouter> element"
|
|
1974
1974
|
), e;
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function tu(e, t) {
|
|
1977
1977
|
let n = c.useContext(Or), [r, o] = c.useState(!1), [a, i] = c.useState(!1), { onFocus: s, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = t, p = c.useRef(null);
|
|
1978
1978
|
c.useEffect(() => {
|
|
1979
1979
|
if (e === "render" && i(!0), e === "viewport") {
|
|
@@ -2018,21 +2018,21 @@ function St(e, t) {
|
|
|
2018
2018
|
e && e(n), n.defaultPrevented || t(n);
|
|
2019
2019
|
};
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function nu({
|
|
2022
2022
|
page: e,
|
|
2023
2023
|
...t
|
|
2024
2024
|
}) {
|
|
2025
|
-
let { router: n } =
|
|
2026
|
-
() =>
|
|
2025
|
+
let { router: n } = ka(), r = c.useMemo(
|
|
2026
|
+
() => Ca(n.routes, e, n.basename),
|
|
2027
2027
|
[n.routes, e, n.basename]
|
|
2028
2028
|
);
|
|
2029
|
-
return r ? /* @__PURE__ */ c.createElement(
|
|
2029
|
+
return r ? /* @__PURE__ */ c.createElement(ou, { page: e, matches: r, ...t }) : null;
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2032
|
-
let { manifest: t, routeModules: n } =
|
|
2031
|
+
function ru(e) {
|
|
2032
|
+
let { manifest: t, routeModules: n } = Na(), [r, o] = c.useState([]);
|
|
2033
2033
|
return c.useEffect(() => {
|
|
2034
2034
|
let a = !1;
|
|
2035
|
-
return
|
|
2035
|
+
return Kc(e, t, n).then(
|
|
2036
2036
|
(i) => {
|
|
2037
2037
|
a || o(i);
|
|
2038
2038
|
}
|
|
@@ -2041,12 +2041,12 @@ function ou(e) {
|
|
|
2041
2041
|
};
|
|
2042
2042
|
}, [e, t, n]), r;
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2044
|
+
function ou({
|
|
2045
2045
|
page: e,
|
|
2046
2046
|
matches: t,
|
|
2047
2047
|
...n
|
|
2048
2048
|
}) {
|
|
2049
|
-
let r = nt(), { manifest: o, routeModules: a } =
|
|
2049
|
+
let r = nt(), { manifest: o, routeModules: a } = Na(), { basename: i } = ka(), { loaderData: s, matches: l } = eu(), u = c.useMemo(
|
|
2050
2050
|
() => Ro(
|
|
2051
2051
|
e,
|
|
2052
2052
|
t,
|
|
@@ -2076,7 +2076,7 @@ function au({
|
|
|
2076
2076
|
!w || !w.hasLoader || (!u.some((S) => S.route.id === h.route.id) && h.route.id in s && ((y = a[h.route.id]) != null && y.shouldRevalidate) || w.hasClientLoader ? m = !0 : g.add(h.route.id));
|
|
2077
2077
|
}), g.size === 0)
|
|
2078
2078
|
return [];
|
|
2079
|
-
let x =
|
|
2079
|
+
let x = Qc(e, i);
|
|
2080
2080
|
return m && g.size > 0 && x.searchParams.set(
|
|
2081
2081
|
"_routes",
|
|
2082
2082
|
t.filter((h) => g.has(h.route.id)).map((h) => h.route.id).join(",")
|
|
@@ -2091,28 +2091,28 @@ function au({
|
|
|
2091
2091
|
e,
|
|
2092
2092
|
a
|
|
2093
2093
|
]), p = c.useMemo(
|
|
2094
|
-
() =>
|
|
2094
|
+
() => Yc(d, o),
|
|
2095
2095
|
[d, o]
|
|
2096
|
-
), v =
|
|
2096
|
+
), v = ru(d);
|
|
2097
2097
|
return /* @__PURE__ */ c.createElement(c.Fragment, null, f.map((g) => /* @__PURE__ */ c.createElement("link", { key: g, rel: "prefetch", as: "fetch", href: g, ...n })), p.map((g) => /* @__PURE__ */ c.createElement("link", { key: g, rel: "modulepreload", href: g, ...n })), v.map(({ key: g, link: m }) => (
|
|
2098
2098
|
// these don't spread `linkProps` because they are full link descriptors
|
|
2099
2099
|
// already with their own props
|
|
2100
2100
|
/* @__PURE__ */ c.createElement("link", { key: g, ...m })
|
|
2101
2101
|
)));
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function au(...e) {
|
|
2104
2104
|
return (t) => {
|
|
2105
2105
|
e.forEach((n) => {
|
|
2106
2106
|
typeof n == "function" ? n(t) : n != null && (n.current = t);
|
|
2107
2107
|
});
|
|
2108
2108
|
};
|
|
2109
2109
|
}
|
|
2110
|
-
var
|
|
2110
|
+
var Ia = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
2111
2111
|
try {
|
|
2112
|
-
|
|
2112
|
+
Ia && (window.__reactRouterVersion = "7.6.2");
|
|
2113
2113
|
} catch {
|
|
2114
2114
|
}
|
|
2115
|
-
var
|
|
2115
|
+
var Da = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Pt = c.forwardRef(
|
|
2116
2116
|
function({
|
|
2117
2117
|
onClick: t,
|
|
2118
2118
|
discover: n = "render",
|
|
@@ -2127,8 +2127,8 @@ var La = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Pt = c.forwardRef(
|
|
|
2127
2127
|
viewTransition: f,
|
|
2128
2128
|
...p
|
|
2129
2129
|
}, v) {
|
|
2130
|
-
let { basename: g } = c.useContext(Ve), m = typeof u == "string" &&
|
|
2131
|
-
if (typeof u == "string" && m && (x = u,
|
|
2130
|
+
let { basename: g } = c.useContext(Ve), m = typeof u == "string" && Da.test(u), x, h = !1;
|
|
2131
|
+
if (typeof u == "string" && m && (x = u, Ia))
|
|
2132
2132
|
try {
|
|
2133
2133
|
let N = new URL(window.location.href), I = u.startsWith("//") ? new URL(N.protocol + u) : new URL(u), W = qe(I.pathname, g);
|
|
2134
2134
|
I.origin === N.origin && W != null ? u = W + I.search + I.hash : h = !0;
|
|
@@ -2138,10 +2138,10 @@ var La = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Pt = c.forwardRef(
|
|
|
2138
2138
|
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
2139
2139
|
);
|
|
2140
2140
|
}
|
|
2141
|
-
let w =
|
|
2141
|
+
let w = yc(u, { relative: o }), [y, S, R] = tu(
|
|
2142
2142
|
r,
|
|
2143
2143
|
p
|
|
2144
|
-
), P =
|
|
2144
|
+
), P = cu(u, {
|
|
2145
2145
|
replace: i,
|
|
2146
2146
|
state: s,
|
|
2147
2147
|
target: l,
|
|
@@ -2161,17 +2161,17 @@ var La = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Pt = c.forwardRef(
|
|
|
2161
2161
|
...R,
|
|
2162
2162
|
href: x || w,
|
|
2163
2163
|
onClick: h || a ? t : A,
|
|
2164
|
-
ref:
|
|
2164
|
+
ref: au(v, S),
|
|
2165
2165
|
target: l,
|
|
2166
2166
|
"data-discover": !m && n === "render" ? "true" : void 0
|
|
2167
2167
|
}
|
|
2168
2168
|
)
|
|
2169
2169
|
);
|
|
2170
|
-
return y && !m ? /* @__PURE__ */ c.createElement(c.Fragment, null, C, /* @__PURE__ */ c.createElement(
|
|
2170
|
+
return y && !m ? /* @__PURE__ */ c.createElement(c.Fragment, null, C, /* @__PURE__ */ c.createElement(nu, { page: w })) : C;
|
|
2171
2171
|
}
|
|
2172
2172
|
);
|
|
2173
2173
|
Pt.displayName = "Link";
|
|
2174
|
-
var
|
|
2174
|
+
var iu = c.forwardRef(
|
|
2175
2175
|
function({
|
|
2176
2176
|
"aria-current": t = "page",
|
|
2177
2177
|
caseSensitive: n = !1,
|
|
@@ -2185,7 +2185,7 @@ var su = c.forwardRef(
|
|
|
2185
2185
|
}, d) {
|
|
2186
2186
|
let f = It(i, { relative: u.relative }), p = nt(), v = c.useContext(hn), { navigator: g, basename: m } = c.useContext(Ve), x = v != null && // Conditional usage is OK here because the usage of a data router is static
|
|
2187
2187
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2188
|
-
|
|
2188
|
+
mu(f) && s === !0, h = g.encodeLocation ? g.encodeLocation(f).pathname : f.pathname, w = p.pathname, y = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
|
|
2189
2189
|
n || (w = w.toLowerCase(), y = y ? y.toLowerCase() : null, h = h.toLowerCase()), y && m && (y = qe(y, m) || y);
|
|
2190
2190
|
const S = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
2191
2191
|
let R = w === h || !o && w.startsWith(h) && w.charAt(S) === "/", P = y != null && (y === h || !o && y.startsWith(h) && y.charAt(h.length) === "/"), A = {
|
|
@@ -2215,8 +2215,8 @@ var su = c.forwardRef(
|
|
|
2215
2215
|
);
|
|
2216
2216
|
}
|
|
2217
2217
|
);
|
|
2218
|
-
|
|
2219
|
-
var
|
|
2218
|
+
iu.displayName = "NavLink";
|
|
2219
|
+
var su = c.forwardRef(
|
|
2220
2220
|
({
|
|
2221
2221
|
discover: e = "render",
|
|
2222
2222
|
fetcherKey: t,
|
|
@@ -2232,7 +2232,7 @@ var lu = c.forwardRef(
|
|
|
2232
2232
|
viewTransition: f,
|
|
2233
2233
|
...p
|
|
2234
2234
|
}, v) => {
|
|
2235
|
-
let g =
|
|
2235
|
+
let g = fu(), m = pu(s, { relative: u }), x = i.toLowerCase() === "get" ? "get" : "post", h = typeof s == "string" && Da.test(s), w = (y) => {
|
|
2236
2236
|
if (l && l(y), y.defaultPrevented) return;
|
|
2237
2237
|
y.preventDefault();
|
|
2238
2238
|
let S = y.nativeEvent.submitter, R = (S == null ? void 0 : S.getAttribute("formmethod")) || i;
|
|
@@ -2260,15 +2260,15 @@ var lu = c.forwardRef(
|
|
|
2260
2260
|
);
|
|
2261
2261
|
}
|
|
2262
2262
|
);
|
|
2263
|
-
|
|
2264
|
-
function
|
|
2263
|
+
su.displayName = "Form";
|
|
2264
|
+
function lu(e) {
|
|
2265
2265
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function La(e) {
|
|
2268
2268
|
let t = c.useContext(gt);
|
|
2269
|
-
return ce(t,
|
|
2269
|
+
return ce(t, lu(e)), t;
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function cu(e, {
|
|
2272
2272
|
target: t,
|
|
2273
2273
|
replace: n,
|
|
2274
2274
|
state: r,
|
|
@@ -2276,10 +2276,10 @@ function uu(e, {
|
|
|
2276
2276
|
relative: a,
|
|
2277
2277
|
viewTransition: i
|
|
2278
2278
|
} = {}) {
|
|
2279
|
-
let s =
|
|
2279
|
+
let s = Cc(), l = nt(), u = It(e, { relative: a });
|
|
2280
2280
|
return c.useCallback(
|
|
2281
2281
|
(d) => {
|
|
2282
|
-
if (
|
|
2282
|
+
if (Hc(d, t)) {
|
|
2283
2283
|
d.preventDefault();
|
|
2284
2284
|
let f = n !== void 0 ? n : ur(l) === ur(u);
|
|
2285
2285
|
s(e, {
|
|
@@ -2305,20 +2305,20 @@ function uu(e, {
|
|
|
2305
2305
|
]
|
|
2306
2306
|
);
|
|
2307
2307
|
}
|
|
2308
|
-
var
|
|
2309
|
-
function
|
|
2310
|
-
let { router: e } =
|
|
2308
|
+
var uu = 0, du = () => `__${String(++uu)}__`;
|
|
2309
|
+
function fu() {
|
|
2310
|
+
let { router: e } = La(
|
|
2311
2311
|
"useSubmit"
|
|
2312
2312
|
/* UseSubmit */
|
|
2313
|
-
), { basename: t } = c.useContext(Ve), n =
|
|
2313
|
+
), { basename: t } = c.useContext(Ve), n = Nc();
|
|
2314
2314
|
return c.useCallback(
|
|
2315
2315
|
async (r, o = {}) => {
|
|
2316
|
-
let { action: a, method: i, encType: s, formData: l, body: u } =
|
|
2316
|
+
let { action: a, method: i, encType: s, formData: l, body: u } = Bc(
|
|
2317
2317
|
r,
|
|
2318
2318
|
t
|
|
2319
2319
|
);
|
|
2320
2320
|
if (o.navigate === !1) {
|
|
2321
|
-
let d = o.fetcherKey ||
|
|
2321
|
+
let d = o.fetcherKey || du();
|
|
2322
2322
|
await e.fetch(d, n, o.action || a, {
|
|
2323
2323
|
preventScrollReset: o.preventScrollReset,
|
|
2324
2324
|
formData: l,
|
|
@@ -2344,7 +2344,7 @@ function pu() {
|
|
|
2344
2344
|
[e, t, n]
|
|
2345
2345
|
);
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2347
|
+
function pu(e, { relative: t } = {}) {
|
|
2348
2348
|
let { basename: n } = c.useContext(Ve), r = c.useContext(He);
|
|
2349
2349
|
ce(r, "useFormAction must be used inside a RouteContext");
|
|
2350
2350
|
let [o] = r.matches.slice(-1), a = { ...It(e || ".", { relative: t }) }, i = nt();
|
|
@@ -2359,13 +2359,13 @@ function mu(e, { relative: t } = {}) {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
return (!e || e === ".") && o.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (a.pathname = a.pathname === "/" ? n : Ie([n, a.pathname])), ur(a);
|
|
2361
2361
|
}
|
|
2362
|
-
function
|
|
2363
|
-
let n = c.useContext(
|
|
2362
|
+
function mu(e, t = {}) {
|
|
2363
|
+
let n = c.useContext(Pa);
|
|
2364
2364
|
ce(
|
|
2365
2365
|
n != null,
|
|
2366
2366
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
2367
2367
|
);
|
|
2368
|
-
let { basename: r } =
|
|
2368
|
+
let { basename: r } = La(
|
|
2369
2369
|
"useViewTransitionState"
|
|
2370
2370
|
/* useViewTransitionState */
|
|
2371
2371
|
), o = It(e, { relative: t.relative });
|
|
@@ -2375,7 +2375,7 @@ function hu(e, t = {}) {
|
|
|
2375
2375
|
return sn(o.pathname, i) != null || sn(o.pathname, a) != null;
|
|
2376
2376
|
}
|
|
2377
2377
|
[
|
|
2378
|
-
...
|
|
2378
|
+
...Jc
|
|
2379
2379
|
];
|
|
2380
2380
|
/**
|
|
2381
2381
|
* @license lucide-react v0.522.0 - ISC
|
|
@@ -2383,13 +2383,13 @@ function hu(e, t = {}) {
|
|
|
2383
2383
|
* This source code is licensed under the ISC license.
|
|
2384
2384
|
* See the LICENSE file in the root directory of this source tree.
|
|
2385
2385
|
*/
|
|
2386
|
-
const
|
|
2386
|
+
const hu = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), gu = (e) => e.replace(
|
|
2387
2387
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
2388
2388
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
2389
2389
|
), _o = (e) => {
|
|
2390
|
-
const t =
|
|
2390
|
+
const t = gu(e);
|
|
2391
2391
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2392
|
-
},
|
|
2392
|
+
}, ja = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), vu = (e) => {
|
|
2393
2393
|
for (const t in e)
|
|
2394
2394
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
2395
2395
|
return !0;
|
|
@@ -2400,7 +2400,7 @@ const gu = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), vu = (
|
|
|
2400
2400
|
* This source code is licensed under the ISC license.
|
|
2401
2401
|
* See the LICENSE file in the root directory of this source tree.
|
|
2402
2402
|
*/
|
|
2403
|
-
var
|
|
2403
|
+
var bu = {
|
|
2404
2404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2405
2405
|
width: 24,
|
|
2406
2406
|
height: 24,
|
|
@@ -2417,7 +2417,7 @@ var xu = {
|
|
|
2417
2417
|
* This source code is licensed under the ISC license.
|
|
2418
2418
|
* See the LICENSE file in the root directory of this source tree.
|
|
2419
2419
|
*/
|
|
2420
|
-
const
|
|
2420
|
+
const xu = ca(
|
|
2421
2421
|
({
|
|
2422
2422
|
color: e = "currentColor",
|
|
2423
2423
|
size: t = 24,
|
|
@@ -2431,13 +2431,13 @@ const wu = ua(
|
|
|
2431
2431
|
"svg",
|
|
2432
2432
|
{
|
|
2433
2433
|
ref: l,
|
|
2434
|
-
...
|
|
2434
|
+
...bu,
|
|
2435
2435
|
width: t,
|
|
2436
2436
|
height: t,
|
|
2437
2437
|
stroke: e,
|
|
2438
2438
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
2439
|
-
className:
|
|
2440
|
-
...!a && !
|
|
2439
|
+
className: ja("lucide", o),
|
|
2440
|
+
...!a && !vu(s) && { "aria-hidden": "true" },
|
|
2441
2441
|
...s
|
|
2442
2442
|
},
|
|
2443
2443
|
[
|
|
@@ -2453,12 +2453,12 @@ const wu = ua(
|
|
|
2453
2453
|
* See the LICENSE file in the root directory of this source tree.
|
|
2454
2454
|
*/
|
|
2455
2455
|
const Ee = (e, t) => {
|
|
2456
|
-
const n =
|
|
2457
|
-
({ className: r, ...o }, a) => on(
|
|
2456
|
+
const n = ca(
|
|
2457
|
+
({ className: r, ...o }, a) => on(xu, {
|
|
2458
2458
|
ref: a,
|
|
2459
2459
|
iconNode: t,
|
|
2460
|
-
className:
|
|
2461
|
-
`lucide-${
|
|
2460
|
+
className: ja(
|
|
2461
|
+
`lucide-${hu(_o(e))}`,
|
|
2462
2462
|
`lucide-${e}`,
|
|
2463
2463
|
r
|
|
2464
2464
|
),
|
|
@@ -2473,7 +2473,7 @@ const Ee = (e, t) => {
|
|
|
2473
2473
|
* This source code is licensed under the ISC license.
|
|
2474
2474
|
* See the LICENSE file in the root directory of this source tree.
|
|
2475
2475
|
*/
|
|
2476
|
-
const
|
|
2476
|
+
const wu = [
|
|
2477
2477
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
2478
2478
|
[
|
|
2479
2479
|
"path",
|
|
@@ -2482,36 +2482,36 @@ const yu = [
|
|
|
2482
2482
|
key: "q0gr47"
|
|
2483
2483
|
}
|
|
2484
2484
|
]
|
|
2485
|
-
],
|
|
2485
|
+
], yu = Ee("chart-area", wu);
|
|
2486
2486
|
/**
|
|
2487
2487
|
* @license lucide-react v0.522.0 - ISC
|
|
2488
2488
|
*
|
|
2489
2489
|
* This source code is licensed under the ISC license.
|
|
2490
2490
|
* See the LICENSE file in the root directory of this source tree.
|
|
2491
2491
|
*/
|
|
2492
|
-
const
|
|
2492
|
+
const Cu = [
|
|
2493
2493
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
2494
2494
|
["path", { d: "M18 17V9", key: "2bz60n" }],
|
|
2495
2495
|
["path", { d: "M13 17V5", key: "1frdt8" }],
|
|
2496
2496
|
["path", { d: "M8 17v-3", key: "17ska0" }]
|
|
2497
|
-
],
|
|
2497
|
+
], Eu = Ee("chart-column", Cu);
|
|
2498
2498
|
/**
|
|
2499
2499
|
* @license lucide-react v0.522.0 - ISC
|
|
2500
2500
|
*
|
|
2501
2501
|
* This source code is licensed under the ISC license.
|
|
2502
2502
|
* See the LICENSE file in the root directory of this source tree.
|
|
2503
2503
|
*/
|
|
2504
|
-
const
|
|
2504
|
+
const Su = [
|
|
2505
2505
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
2506
2506
|
["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
|
|
2507
|
-
], Ao = Ee("chart-line",
|
|
2507
|
+
], Ao = Ee("chart-line", Su);
|
|
2508
2508
|
/**
|
|
2509
2509
|
* @license lucide-react v0.522.0 - ISC
|
|
2510
2510
|
*
|
|
2511
2511
|
* This source code is licensed under the ISC license.
|
|
2512
2512
|
* See the LICENSE file in the root directory of this source tree.
|
|
2513
2513
|
*/
|
|
2514
|
-
const
|
|
2514
|
+
const Ru = [
|
|
2515
2515
|
[
|
|
2516
2516
|
"path",
|
|
2517
2517
|
{
|
|
@@ -2520,28 +2520,28 @@ const _u = [
|
|
|
2520
2520
|
}
|
|
2521
2521
|
],
|
|
2522
2522
|
["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
|
|
2523
|
-
],
|
|
2523
|
+
], _u = Ee("chart-pie", Ru);
|
|
2524
2524
|
/**
|
|
2525
2525
|
* @license lucide-react v0.522.0 - ISC
|
|
2526
2526
|
*
|
|
2527
2527
|
* This source code is licensed under the ISC license.
|
|
2528
2528
|
* See the LICENSE file in the root directory of this source tree.
|
|
2529
2529
|
*/
|
|
2530
|
-
const
|
|
2530
|
+
const Au = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Pu = Ee("chevron-down", Au);
|
|
2531
2531
|
/**
|
|
2532
2532
|
* @license lucide-react v0.522.0 - ISC
|
|
2533
2533
|
*
|
|
2534
2534
|
* This source code is licensed under the ISC license.
|
|
2535
2535
|
* See the LICENSE file in the root directory of this source tree.
|
|
2536
2536
|
*/
|
|
2537
|
-
const
|
|
2537
|
+
const Mu = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Tu = Ee("chevron-right", Mu);
|
|
2538
2538
|
/**
|
|
2539
2539
|
* @license lucide-react v0.522.0 - ISC
|
|
2540
2540
|
*
|
|
2541
2541
|
* This source code is licensed under the ISC license.
|
|
2542
2542
|
* See the LICENSE file in the root directory of this source tree.
|
|
2543
2543
|
*/
|
|
2544
|
-
const
|
|
2544
|
+
const Ou = [
|
|
2545
2545
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
2546
2546
|
[
|
|
2547
2547
|
"path",
|
|
@@ -2550,48 +2550,48 @@ const ku = [
|
|
|
2550
2550
|
key: "1d0kgt"
|
|
2551
2551
|
}
|
|
2552
2552
|
]
|
|
2553
|
-
],
|
|
2553
|
+
], Fa = Ee("house", Ou);
|
|
2554
2554
|
/**
|
|
2555
2555
|
* @license lucide-react v0.522.0 - ISC
|
|
2556
2556
|
*
|
|
2557
2557
|
* This source code is licensed under the ISC license.
|
|
2558
2558
|
* See the LICENSE file in the root directory of this source tree.
|
|
2559
2559
|
*/
|
|
2560
|
-
const
|
|
2560
|
+
const ku = [
|
|
2561
2561
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
2562
2562
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
2563
2563
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
2564
|
-
],
|
|
2564
|
+
], Nu = Ee("log-out", ku);
|
|
2565
2565
|
/**
|
|
2566
2566
|
* @license lucide-react v0.522.0 - ISC
|
|
2567
2567
|
*
|
|
2568
2568
|
* This source code is licensed under the ISC license.
|
|
2569
2569
|
* See the LICENSE file in the root directory of this source tree.
|
|
2570
2570
|
*/
|
|
2571
|
-
const
|
|
2571
|
+
const Iu = [
|
|
2572
2572
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
2573
2573
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
2574
|
-
],
|
|
2574
|
+
], Du = Ee("panel-left", Iu);
|
|
2575
2575
|
/**
|
|
2576
2576
|
* @license lucide-react v0.522.0 - ISC
|
|
2577
2577
|
*
|
|
2578
2578
|
* This source code is licensed under the ISC license.
|
|
2579
2579
|
* See the LICENSE file in the root directory of this source tree.
|
|
2580
2580
|
*/
|
|
2581
|
-
const
|
|
2581
|
+
const Lu = [
|
|
2582
2582
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
2583
2583
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
2584
|
-
], Po = Ee("user",
|
|
2584
|
+
], Po = Ee("user", Lu);
|
|
2585
2585
|
/**
|
|
2586
2586
|
* @license lucide-react v0.522.0 - ISC
|
|
2587
2587
|
*
|
|
2588
2588
|
* This source code is licensed under the ISC license.
|
|
2589
2589
|
* See the LICENSE file in the root directory of this source tree.
|
|
2590
2590
|
*/
|
|
2591
|
-
const
|
|
2591
|
+
const ju = [
|
|
2592
2592
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
2593
2593
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
2594
|
-
],
|
|
2594
|
+
], Fu = Ee("x", ju);
|
|
2595
2595
|
function Mo(e, t) {
|
|
2596
2596
|
if (typeof e == "function")
|
|
2597
2597
|
return e(t);
|
|
@@ -2618,8 +2618,8 @@ function ie(...e) {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
// @__NO_SIDE_EFFECTS__
|
|
2620
2620
|
function pt(e) {
|
|
2621
|
-
const t = /* @__PURE__ */
|
|
2622
|
-
const { children: a, ...i } = r, s = c.Children.toArray(a), l = s.find(
|
|
2621
|
+
const t = /* @__PURE__ */ $u(e), n = c.forwardRef((r, o) => {
|
|
2622
|
+
const { children: a, ...i } = r, s = c.Children.toArray(a), l = s.find(Hu);
|
|
2623
2623
|
if (l) {
|
|
2624
2624
|
const u = l.props.children, d = s.map((f) => f === l ? c.Children.count(u) > 1 ? c.Children.only(null) : c.isValidElement(u) ? u.props.children : null : f);
|
|
2625
2625
|
return /* @__PURE__ */ b.jsx(t, { ...i, ref: o, children: c.isValidElement(u) ? c.cloneElement(u, void 0, d) : null });
|
|
@@ -2628,29 +2628,29 @@ function pt(e) {
|
|
|
2628
2628
|
});
|
|
2629
2629
|
return n.displayName = `${e}.Slot`, n;
|
|
2630
2630
|
}
|
|
2631
|
-
var
|
|
2631
|
+
var $a = /* @__PURE__ */ pt("Slot");
|
|
2632
2632
|
// @__NO_SIDE_EFFECTS__
|
|
2633
|
-
function
|
|
2633
|
+
function $u(e) {
|
|
2634
2634
|
const t = c.forwardRef((n, r) => {
|
|
2635
2635
|
const { children: o, ...a } = n;
|
|
2636
2636
|
if (c.isValidElement(o)) {
|
|
2637
|
-
const i =
|
|
2637
|
+
const i = zu(o), s = Wu(a, o.props);
|
|
2638
2638
|
return o.type !== c.Fragment && (s.ref = r ? bn(r, i) : i), c.cloneElement(o, s);
|
|
2639
2639
|
}
|
|
2640
2640
|
return c.Children.count(o) > 1 ? c.Children.only(null) : null;
|
|
2641
2641
|
});
|
|
2642
2642
|
return t.displayName = `${e}.SlotClone`, t;
|
|
2643
2643
|
}
|
|
2644
|
-
var
|
|
2644
|
+
var Va = Symbol("radix.slottable");
|
|
2645
2645
|
// @__NO_SIDE_EFFECTS__
|
|
2646
|
-
function
|
|
2646
|
+
function Vu(e) {
|
|
2647
2647
|
const t = ({ children: n }) => /* @__PURE__ */ b.jsx(b.Fragment, { children: n });
|
|
2648
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
2648
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = Va, t;
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2651
|
-
return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
2650
|
+
function Hu(e) {
|
|
2651
|
+
return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Va;
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2653
|
+
function Wu(e, t) {
|
|
2654
2654
|
const n = { ...t };
|
|
2655
2655
|
for (const r in t) {
|
|
2656
2656
|
const o = e[r], a = t[r];
|
|
@@ -2661,25 +2661,25 @@ function zu(e, t) {
|
|
|
2661
2661
|
}
|
|
2662
2662
|
return { ...e, ...n };
|
|
2663
2663
|
}
|
|
2664
|
-
function
|
|
2664
|
+
function zu(e) {
|
|
2665
2665
|
var r, o;
|
|
2666
2666
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2667
2667
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2669
|
+
function Ha(e) {
|
|
2670
2670
|
var t, n, r = "";
|
|
2671
2671
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2672
2672
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2673
2673
|
var o = e.length;
|
|
2674
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
2674
|
+
for (t = 0; t < o; t++) e[t] && (n = Ha(e[t])) && (r && (r += " "), r += n);
|
|
2675
2675
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2676
2676
|
return r;
|
|
2677
2677
|
}
|
|
2678
|
-
function
|
|
2679
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
2678
|
+
function Wa() {
|
|
2679
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Ha(e)) && (r && (r += " "), r += t);
|
|
2680
2680
|
return r;
|
|
2681
2681
|
}
|
|
2682
|
-
const To = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Oo =
|
|
2682
|
+
const To = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Oo = Wa, za = (e, t) => (n) => {
|
|
2683
2683
|
var r;
|
|
2684
2684
|
if ((t == null ? void 0 : t.variants) == null) return Oo(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2685
2685
|
const { variants: o, defaultVariants: a } = t, i = Object.keys(o).map((u) => {
|
|
@@ -2709,35 +2709,35 @@ const To = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Oo = za, B
|
|
|
2709
2709
|
}, []);
|
|
2710
2710
|
return Oo(e, i, l, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2711
2711
|
};
|
|
2712
|
-
function
|
|
2713
|
-
const [e, t] =
|
|
2714
|
-
return
|
|
2712
|
+
function Bu() {
|
|
2713
|
+
const [e, t] = ua(!1);
|
|
2714
|
+
return sa(() => {
|
|
2715
2715
|
const n = () => {
|
|
2716
2716
|
t(window.innerWidth < 768);
|
|
2717
2717
|
};
|
|
2718
2718
|
return n(), window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
2719
2719
|
}, []), e;
|
|
2720
2720
|
}
|
|
2721
|
-
const kr = "-",
|
|
2722
|
-
const t =
|
|
2721
|
+
const kr = "-", Uu = (e) => {
|
|
2722
|
+
const t = Ku(e), {
|
|
2723
2723
|
conflictingClassGroups: n,
|
|
2724
2724
|
conflictingClassGroupModifiers: r
|
|
2725
2725
|
} = e;
|
|
2726
2726
|
return {
|
|
2727
2727
|
getClassGroupId: (i) => {
|
|
2728
2728
|
const s = i.split(kr);
|
|
2729
|
-
return s[0] === "" && s.length !== 1 && s.shift(),
|
|
2729
|
+
return s[0] === "" && s.length !== 1 && s.shift(), Ba(s, t) || Gu(i);
|
|
2730
2730
|
},
|
|
2731
2731
|
getConflictingClassGroupIds: (i, s) => {
|
|
2732
2732
|
const l = n[i] || [];
|
|
2733
2733
|
return s && r[i] ? [...l, ...r[i]] : l;
|
|
2734
2734
|
}
|
|
2735
2735
|
};
|
|
2736
|
-
},
|
|
2736
|
+
}, Ba = (e, t) => {
|
|
2737
2737
|
var i;
|
|
2738
2738
|
if (e.length === 0)
|
|
2739
2739
|
return t.classGroupId;
|
|
2740
|
-
const n = e[0], r = t.nextPart.get(n), o = r ?
|
|
2740
|
+
const n = e[0], r = t.nextPart.get(n), o = r ? Ba(e.slice(1), r) : void 0;
|
|
2741
2741
|
if (o)
|
|
2742
2742
|
return o;
|
|
2743
2743
|
if (t.validators.length === 0)
|
|
@@ -2746,13 +2746,13 @@ const kr = "-", Gu = (e) => {
|
|
|
2746
2746
|
return (i = t.validators.find(({
|
|
2747
2747
|
validator: s
|
|
2748
2748
|
}) => s(a))) == null ? void 0 : i.classGroupId;
|
|
2749
|
-
}, ko = /^\[(.+)\]$/,
|
|
2749
|
+
}, ko = /^\[(.+)\]$/, Gu = (e) => {
|
|
2750
2750
|
if (ko.test(e)) {
|
|
2751
2751
|
const t = ko.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
2752
2752
|
if (n)
|
|
2753
2753
|
return "arbitrary.." + n;
|
|
2754
2754
|
}
|
|
2755
|
-
},
|
|
2755
|
+
}, Ku = (e) => {
|
|
2756
2756
|
const {
|
|
2757
2757
|
theme: t,
|
|
2758
2758
|
classGroups: n
|
|
@@ -2771,7 +2771,7 @@ const kr = "-", Gu = (e) => {
|
|
|
2771
2771
|
return;
|
|
2772
2772
|
}
|
|
2773
2773
|
if (typeof o == "function") {
|
|
2774
|
-
if (
|
|
2774
|
+
if (Yu(o)) {
|
|
2775
2775
|
dr(o(r), t, n, r);
|
|
2776
2776
|
return;
|
|
2777
2777
|
}
|
|
@@ -2793,7 +2793,7 @@ const kr = "-", Gu = (e) => {
|
|
|
2793
2793
|
validators: []
|
|
2794
2794
|
}), n = n.nextPart.get(r);
|
|
2795
2795
|
}), n;
|
|
2796
|
-
},
|
|
2796
|
+
}, Yu = (e) => e.isThemeGetter, qu = (e) => {
|
|
2797
2797
|
if (e < 1)
|
|
2798
2798
|
return {
|
|
2799
2799
|
get: () => {
|
|
@@ -2817,7 +2817,7 @@ const kr = "-", Gu = (e) => {
|
|
|
2817
2817
|
n.has(a) ? n.set(a, i) : o(a, i);
|
|
2818
2818
|
}
|
|
2819
2819
|
};
|
|
2820
|
-
}, fr = "!", pr = ":",
|
|
2820
|
+
}, fr = "!", pr = ":", Xu = pr.length, Zu = (e) => {
|
|
2821
2821
|
const {
|
|
2822
2822
|
prefix: t,
|
|
2823
2823
|
experimentalParseClassName: n
|
|
@@ -2829,7 +2829,7 @@ const kr = "-", Gu = (e) => {
|
|
|
2829
2829
|
let m = o[g];
|
|
2830
2830
|
if (i === 0 && s === 0) {
|
|
2831
2831
|
if (m === pr) {
|
|
2832
|
-
a.push(o.slice(l, g)), l = g +
|
|
2832
|
+
a.push(o.slice(l, g)), l = g + Xu;
|
|
2833
2833
|
continue;
|
|
2834
2834
|
}
|
|
2835
2835
|
if (m === "/") {
|
|
@@ -2839,7 +2839,7 @@ const kr = "-", Gu = (e) => {
|
|
|
2839
2839
|
}
|
|
2840
2840
|
m === "[" ? i++ : m === "]" ? i-- : m === "(" ? s++ : m === ")" && s--;
|
|
2841
2841
|
}
|
|
2842
|
-
const d = a.length === 0 ? o : o.substring(l), f =
|
|
2842
|
+
const d = a.length === 0 ? o : o.substring(l), f = Ju(d), p = f !== d, v = u && u > l ? u - l : void 0;
|
|
2843
2843
|
return {
|
|
2844
2844
|
modifiers: a,
|
|
2845
2845
|
hasImportantModifier: p,
|
|
@@ -2865,7 +2865,7 @@ const kr = "-", Gu = (e) => {
|
|
|
2865
2865
|
});
|
|
2866
2866
|
}
|
|
2867
2867
|
return r;
|
|
2868
|
-
},
|
|
2868
|
+
}, Ju = (e) => e.endsWith(fr) ? e.substring(0, e.length - 1) : e.startsWith(fr) ? e.substring(1) : e, Qu = (e) => {
|
|
2869
2869
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
|
|
2870
2870
|
return (r) => {
|
|
2871
2871
|
if (r.length <= 1)
|
|
@@ -2876,18 +2876,18 @@ const kr = "-", Gu = (e) => {
|
|
|
2876
2876
|
i[0] === "[" || t[i] ? (o.push(...a.sort(), i), a = []) : a.push(i);
|
|
2877
2877
|
}), o.push(...a.sort()), o;
|
|
2878
2878
|
};
|
|
2879
|
-
},
|
|
2880
|
-
cache:
|
|
2881
|
-
parseClassName:
|
|
2882
|
-
sortModifiers:
|
|
2883
|
-
...
|
|
2884
|
-
}),
|
|
2879
|
+
}, ed = (e) => ({
|
|
2880
|
+
cache: qu(e.cacheSize),
|
|
2881
|
+
parseClassName: Zu(e),
|
|
2882
|
+
sortModifiers: Qu(e),
|
|
2883
|
+
...Uu(e)
|
|
2884
|
+
}), td = /\s+/, nd = (e, t) => {
|
|
2885
2885
|
const {
|
|
2886
2886
|
parseClassName: n,
|
|
2887
2887
|
getClassGroupId: r,
|
|
2888
2888
|
getConflictingClassGroupIds: o,
|
|
2889
2889
|
sortModifiers: a
|
|
2890
|
-
} = t, i = [], s = e.trim().split(
|
|
2890
|
+
} = t, i = [], s = e.trim().split(td);
|
|
2891
2891
|
let l = "";
|
|
2892
2892
|
for (let u = s.length - 1; u >= 0; u -= 1) {
|
|
2893
2893
|
const d = s[u], {
|
|
@@ -2926,52 +2926,52 @@ const kr = "-", Gu = (e) => {
|
|
|
2926
2926
|
}
|
|
2927
2927
|
return l;
|
|
2928
2928
|
};
|
|
2929
|
-
function
|
|
2929
|
+
function rd() {
|
|
2930
2930
|
let e = 0, t, n, r = "";
|
|
2931
2931
|
for (; e < arguments.length; )
|
|
2932
|
-
(t = arguments[e++]) && (n =
|
|
2932
|
+
(t = arguments[e++]) && (n = Ua(t)) && (r && (r += " "), r += n);
|
|
2933
2933
|
return r;
|
|
2934
2934
|
}
|
|
2935
|
-
const
|
|
2935
|
+
const Ua = (e) => {
|
|
2936
2936
|
if (typeof e == "string")
|
|
2937
2937
|
return e;
|
|
2938
2938
|
let t, n = "";
|
|
2939
2939
|
for (let r = 0; r < e.length; r++)
|
|
2940
|
-
e[r] && (t =
|
|
2940
|
+
e[r] && (t = Ua(e[r])) && (n && (n += " "), n += t);
|
|
2941
2941
|
return n;
|
|
2942
2942
|
};
|
|
2943
|
-
function
|
|
2943
|
+
function od(e, ...t) {
|
|
2944
2944
|
let n, r, o, a = i;
|
|
2945
2945
|
function i(l) {
|
|
2946
2946
|
const u = t.reduce((d, f) => f(d), e());
|
|
2947
|
-
return n =
|
|
2947
|
+
return n = ed(u), r = n.cache.get, o = n.cache.set, a = s, s(l);
|
|
2948
2948
|
}
|
|
2949
2949
|
function s(l) {
|
|
2950
2950
|
const u = r(l);
|
|
2951
2951
|
if (u)
|
|
2952
2952
|
return u;
|
|
2953
|
-
const d =
|
|
2953
|
+
const d = nd(l, n);
|
|
2954
2954
|
return o(l, d), d;
|
|
2955
2955
|
}
|
|
2956
2956
|
return function() {
|
|
2957
|
-
return a(
|
|
2957
|
+
return a(rd.apply(null, arguments));
|
|
2958
2958
|
};
|
|
2959
2959
|
}
|
|
2960
2960
|
const ae = (e) => {
|
|
2961
2961
|
const t = (n) => n[e] || [];
|
|
2962
2962
|
return t.isThemeGetter = !0, t;
|
|
2963
|
-
},
|
|
2963
|
+
}, Ga = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ka = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ad = /^\d+\/\d+$/, id = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ld = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, cd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ud = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, it = (e) => ad.test(e), H = (e) => !!e && !Number.isNaN(Number(e)), Ue = (e) => !!e && Number.isInteger(Number(e)), zn = (e) => e.endsWith("%") && H(e.slice(0, -1)), ke = (e) => id.test(e), dd = () => !0, fd = (e) => (
|
|
2964
2964
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
2965
2965
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2966
2966
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2967
|
-
|
|
2968
|
-
),
|
|
2969
|
-
const r =
|
|
2967
|
+
sd.test(e) && !ld.test(e)
|
|
2968
|
+
), Ya = () => !1, pd = (e) => cd.test(e), md = (e) => ud.test(e), hd = (e) => !O(e) && !k(e), gd = (e) => vt(e, Za, Ya), O = (e) => Ga.test(e), Qe = (e) => vt(e, Ja, fd), Bn = (e) => vt(e, yd, H), Io = (e) => vt(e, qa, Ya), vd = (e) => vt(e, Xa, md), Bt = (e) => vt(e, Qa, pd), k = (e) => Ka.test(e), Rt = (e) => bt(e, Ja), bd = (e) => bt(e, Cd), Do = (e) => bt(e, qa), xd = (e) => bt(e, Za), wd = (e) => bt(e, Xa), Ut = (e) => bt(e, Qa, !0), vt = (e, t, n) => {
|
|
2969
|
+
const r = Ga.exec(e);
|
|
2970
2970
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
2971
2971
|
}, bt = (e, t, n = !1) => {
|
|
2972
|
-
const r =
|
|
2972
|
+
const r = Ka.exec(e);
|
|
2973
2973
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
2974
|
-
},
|
|
2974
|
+
}, qa = (e) => e === "position" || e === "percentage", Xa = (e) => e === "image" || e === "url", Za = (e) => e === "length" || e === "size" || e === "bg-size", Ja = (e) => e === "length", yd = (e) => e === "number", Cd = (e) => e === "family-name", Qa = (e) => e === "shadow", Ed = () => {
|
|
2975
2975
|
const e = ae("color"), t = ae("font"), n = ae("text"), r = ae("font-weight"), o = ae("tracking"), a = ae("leading"), i = ae("breakpoint"), s = ae("container"), l = ae("spacing"), u = ae("radius"), d = ae("shadow"), f = ae("inset-shadow"), p = ae("text-shadow"), v = ae("drop-shadow"), g = ae("blur"), m = ae("perspective"), x = ae("aspect"), h = ae("ease"), w = ae("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
2976
2976
|
"center",
|
|
2977
2977
|
"top",
|
|
@@ -2996,7 +2996,7 @@ const ae = (e) => {
|
|
|
2996
2996
|
position: [k, O]
|
|
2997
2997
|
}], E = () => ["no-repeat", {
|
|
2998
2998
|
repeat: ["", "x", "y", "space", "round"]
|
|
2999
|
-
}], T = () => ["auto", "cover", "contain",
|
|
2999
|
+
}], T = () => ["auto", "cover", "contain", xd, gd, {
|
|
3000
3000
|
size: [k, O]
|
|
3001
3001
|
}], D = () => [zn, Rt, Qe], F = () => [
|
|
3002
3002
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -3021,11 +3021,11 @@ const ae = (e) => {
|
|
|
3021
3021
|
aspect: ["video"],
|
|
3022
3022
|
blur: [ke],
|
|
3023
3023
|
breakpoint: [ke],
|
|
3024
|
-
color: [
|
|
3024
|
+
color: [dd],
|
|
3025
3025
|
container: [ke],
|
|
3026
3026
|
"drop-shadow": [ke],
|
|
3027
3027
|
ease: ["in", "out", "in-out"],
|
|
3028
|
-
font: [
|
|
3028
|
+
font: [hd],
|
|
3029
3029
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
3030
3030
|
"inset-shadow": [ke],
|
|
3031
3031
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -3737,7 +3737,7 @@ const ae = (e) => {
|
|
|
3737
3737
|
* @see https://tailwindcss.com/docs/font-family
|
|
3738
3738
|
*/
|
|
3739
3739
|
"font-family": [{
|
|
3740
|
-
font: [
|
|
3740
|
+
font: [bd, O, t]
|
|
3741
3741
|
}],
|
|
3742
3742
|
/**
|
|
3743
3743
|
* Font Variant Numeric
|
|
@@ -3992,7 +3992,7 @@ const ae = (e) => {
|
|
|
3992
3992
|
}, Ue, k, O],
|
|
3993
3993
|
radial: ["", k, O],
|
|
3994
3994
|
conic: [Ue, k, O]
|
|
3995
|
-
},
|
|
3995
|
+
}, wd, vd]
|
|
3996
3996
|
}],
|
|
3997
3997
|
/**
|
|
3998
3998
|
* Background Color
|
|
@@ -5441,11 +5441,11 @@ const ae = (e) => {
|
|
|
5441
5441
|
},
|
|
5442
5442
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
5443
5443
|
};
|
|
5444
|
-
},
|
|
5444
|
+
}, Sd = /* @__PURE__ */ od(Ed);
|
|
5445
5445
|
function B(...e) {
|
|
5446
|
-
return
|
|
5446
|
+
return Sd(Wa(e));
|
|
5447
5447
|
}
|
|
5448
|
-
const
|
|
5448
|
+
const Rd = za(
|
|
5449
5449
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
5450
5450
|
{
|
|
5451
5451
|
variants: {
|
|
@@ -5471,11 +5471,11 @@ const _d = Ba(
|
|
|
5471
5471
|
}
|
|
5472
5472
|
), Nr = c.forwardRef(
|
|
5473
5473
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, a) => {
|
|
5474
|
-
const i = r ?
|
|
5474
|
+
const i = r ? $a : "button";
|
|
5475
5475
|
return /* @__PURE__ */ b.jsx(
|
|
5476
5476
|
i,
|
|
5477
5477
|
{
|
|
5478
|
-
className: B(
|
|
5478
|
+
className: B(Rd({ variant: t, size: n, className: e })),
|
|
5479
5479
|
ref: a,
|
|
5480
5480
|
...o
|
|
5481
5481
|
}
|
|
@@ -5483,7 +5483,7 @@ const _d = Ba(
|
|
|
5483
5483
|
}
|
|
5484
5484
|
);
|
|
5485
5485
|
Nr.displayName = "Button";
|
|
5486
|
-
const
|
|
5486
|
+
const _d = c.forwardRef(
|
|
5487
5487
|
({ className: e, type: t, ...n }, r) => /* @__PURE__ */ b.jsx(
|
|
5488
5488
|
"input",
|
|
5489
5489
|
{
|
|
@@ -5497,8 +5497,8 @@ const Ad = c.forwardRef(
|
|
|
5497
5497
|
}
|
|
5498
5498
|
)
|
|
5499
5499
|
);
|
|
5500
|
-
|
|
5501
|
-
var
|
|
5500
|
+
_d.displayName = "Input";
|
|
5501
|
+
var Ad = [
|
|
5502
5502
|
"a",
|
|
5503
5503
|
"button",
|
|
5504
5504
|
"div",
|
|
@@ -5516,18 +5516,18 @@ var Pd = [
|
|
|
5516
5516
|
"span",
|
|
5517
5517
|
"svg",
|
|
5518
5518
|
"ul"
|
|
5519
|
-
], ne =
|
|
5519
|
+
], ne = Ad.reduce((e, t) => {
|
|
5520
5520
|
const n = /* @__PURE__ */ pt(`Primitive.${t}`), r = c.forwardRef((o, a) => {
|
|
5521
5521
|
const { asChild: i, ...s } = o, l = i ? n : t;
|
|
5522
5522
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ b.jsx(l, { ...s, ref: a });
|
|
5523
5523
|
});
|
|
5524
5524
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
5525
5525
|
}, {});
|
|
5526
|
-
function
|
|
5527
|
-
e &&
|
|
5526
|
+
function ei(e, t) {
|
|
5527
|
+
e && da.flushSync(() => e.dispatchEvent(t));
|
|
5528
5528
|
}
|
|
5529
|
-
var
|
|
5530
|
-
const { decorative: n, orientation: r = Lo, ...o } = e, a =
|
|
5529
|
+
var Pd = "Separator", Lo = "horizontal", Md = ["horizontal", "vertical"], ti = c.forwardRef((e, t) => {
|
|
5530
|
+
const { decorative: n, orientation: r = Lo, ...o } = e, a = Td(r) ? r : Lo, s = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
5531
5531
|
return /* @__PURE__ */ b.jsx(
|
|
5532
5532
|
ne.div,
|
|
5533
5533
|
{
|
|
@@ -5538,14 +5538,14 @@ var Md = "Separator", Lo = "horizontal", Td = ["horizontal", "vertical"], ni = c
|
|
|
5538
5538
|
}
|
|
5539
5539
|
);
|
|
5540
5540
|
});
|
|
5541
|
-
|
|
5542
|
-
function
|
|
5543
|
-
return
|
|
5541
|
+
ti.displayName = Pd;
|
|
5542
|
+
function Td(e) {
|
|
5543
|
+
return Md.includes(e);
|
|
5544
5544
|
}
|
|
5545
|
-
var
|
|
5546
|
-
const
|
|
5545
|
+
var ni = ti;
|
|
5546
|
+
const ri = c.forwardRef(
|
|
5547
5547
|
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ b.jsx(
|
|
5548
|
-
|
|
5548
|
+
ni,
|
|
5549
5549
|
{
|
|
5550
5550
|
ref: o,
|
|
5551
5551
|
decorative: n,
|
|
@@ -5559,14 +5559,14 @@ const oi = c.forwardRef(
|
|
|
5559
5559
|
}
|
|
5560
5560
|
)
|
|
5561
5561
|
);
|
|
5562
|
-
|
|
5562
|
+
ri.displayName = ni.displayName;
|
|
5563
5563
|
function j(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
5564
5564
|
return function(o) {
|
|
5565
5565
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
5566
5566
|
return t == null ? void 0 : t(o);
|
|
5567
5567
|
};
|
|
5568
5568
|
}
|
|
5569
|
-
function
|
|
5569
|
+
function Od(e, t) {
|
|
5570
5570
|
const n = c.createContext(t), r = (a) => {
|
|
5571
5571
|
const { children: i, ...s } = a, l = c.useMemo(() => s, Object.values(s));
|
|
5572
5572
|
return /* @__PURE__ */ b.jsx(n.Provider, { value: l, children: i });
|
|
@@ -5610,9 +5610,9 @@ function rt(e, t = []) {
|
|
|
5610
5610
|
);
|
|
5611
5611
|
};
|
|
5612
5612
|
};
|
|
5613
|
-
return o.scopeName = e, [r,
|
|
5613
|
+
return o.scopeName = e, [r, kd(o, ...t)];
|
|
5614
5614
|
}
|
|
5615
|
-
function
|
|
5615
|
+
function kd(...e) {
|
|
5616
5616
|
const t = e[0];
|
|
5617
5617
|
if (e.length === 1) return t;
|
|
5618
5618
|
const n = () => {
|
|
@@ -5631,15 +5631,15 @@ function Nd(...e) {
|
|
|
5631
5631
|
return n.scopeName = t.scopeName, n;
|
|
5632
5632
|
}
|
|
5633
5633
|
var Xe = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
|
|
5634
|
-
},
|
|
5635
|
-
}),
|
|
5634
|
+
}, Nd = c[" useId ".trim().toString()] || (() => {
|
|
5635
|
+
}), Id = 0;
|
|
5636
5636
|
function ut(e) {
|
|
5637
|
-
const [t, n] = c.useState(
|
|
5637
|
+
const [t, n] = c.useState(Nd());
|
|
5638
5638
|
return Xe(() => {
|
|
5639
|
-
n((r) => r ?? String(
|
|
5639
|
+
n((r) => r ?? String(Id++));
|
|
5640
5640
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
5641
5641
|
}
|
|
5642
|
-
var
|
|
5642
|
+
var Dd = c[" useInsertionEffect ".trim().toString()] || Xe;
|
|
5643
5643
|
function Ir({
|
|
5644
5644
|
prop: e,
|
|
5645
5645
|
defaultProp: t,
|
|
@@ -5647,7 +5647,7 @@ function Ir({
|
|
|
5647
5647
|
},
|
|
5648
5648
|
caller: r
|
|
5649
5649
|
}) {
|
|
5650
|
-
const [o, a, i] =
|
|
5650
|
+
const [o, a, i] = Ld({
|
|
5651
5651
|
defaultProp: t,
|
|
5652
5652
|
onChange: n
|
|
5653
5653
|
}), s = e !== void 0, l = s ? e : o;
|
|
@@ -5664,7 +5664,7 @@ function Ir({
|
|
|
5664
5664
|
(d) => {
|
|
5665
5665
|
var f;
|
|
5666
5666
|
if (s) {
|
|
5667
|
-
const p =
|
|
5667
|
+
const p = jd(d) ? d(e) : d;
|
|
5668
5668
|
p !== e && ((f = i.current) == null || f.call(i, p));
|
|
5669
5669
|
} else
|
|
5670
5670
|
a(d);
|
|
@@ -5673,19 +5673,19 @@ function Ir({
|
|
|
5673
5673
|
);
|
|
5674
5674
|
return [l, u];
|
|
5675
5675
|
}
|
|
5676
|
-
function
|
|
5676
|
+
function Ld({
|
|
5677
5677
|
defaultProp: e,
|
|
5678
5678
|
onChange: t
|
|
5679
5679
|
}) {
|
|
5680
5680
|
const [n, r] = c.useState(e), o = c.useRef(n), a = c.useRef(t);
|
|
5681
|
-
return
|
|
5681
|
+
return Dd(() => {
|
|
5682
5682
|
a.current = t;
|
|
5683
5683
|
}, [t]), c.useEffect(() => {
|
|
5684
5684
|
var i;
|
|
5685
5685
|
o.current !== n && ((i = a.current) == null || i.call(a, n), o.current = n);
|
|
5686
5686
|
}, [n, o]), [n, r, a];
|
|
5687
5687
|
}
|
|
5688
|
-
function
|
|
5688
|
+
function jd(e) {
|
|
5689
5689
|
return typeof e == "function";
|
|
5690
5690
|
}
|
|
5691
5691
|
function je(e) {
|
|
@@ -5697,7 +5697,7 @@ function je(e) {
|
|
|
5697
5697
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
5698
5698
|
}, []);
|
|
5699
5699
|
}
|
|
5700
|
-
function
|
|
5700
|
+
function Fd(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
5701
5701
|
const n = je(e);
|
|
5702
5702
|
c.useEffect(() => {
|
|
5703
5703
|
const r = (o) => {
|
|
@@ -5706,7 +5706,7 @@ function $d(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5706
5706
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
5707
5707
|
}, [n, t]);
|
|
5708
5708
|
}
|
|
5709
|
-
var
|
|
5709
|
+
var $d = "DismissableLayer", mr = "dismissableLayer.update", Vd = "dismissableLayer.pointerDownOutside", Hd = "dismissableLayer.focusOutside", jo, oi = c.createContext({
|
|
5710
5710
|
layers: /* @__PURE__ */ new Set(),
|
|
5711
5711
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5712
5712
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -5720,14 +5720,14 @@ var Vd = "DismissableLayer", mr = "dismissableLayer.update", Hd = "dismissableLa
|
|
|
5720
5720
|
onInteractOutside: i,
|
|
5721
5721
|
onDismiss: s,
|
|
5722
5722
|
...l
|
|
5723
|
-
} = e, u = c.useContext(
|
|
5723
|
+
} = e, u = c.useContext(oi), [d, f] = c.useState(null), p = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = c.useState({}), g = ie(t, (A) => f(A)), m = Array.from(u.layers), [x] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), h = m.indexOf(x), w = d ? m.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= h, R = Bd((A) => {
|
|
5724
5724
|
const C = A.target, N = [...u.branches].some((I) => I.contains(C));
|
|
5725
5725
|
!S || N || (o == null || o(A), i == null || i(A), A.defaultPrevented || s == null || s());
|
|
5726
|
-
}, p), P =
|
|
5726
|
+
}, p), P = Ud((A) => {
|
|
5727
5727
|
const C = A.target;
|
|
5728
5728
|
[...u.branches].some((I) => I.contains(C)) || (a == null || a(A), i == null || i(A), A.defaultPrevented || s == null || s());
|
|
5729
5729
|
}, p);
|
|
5730
|
-
return
|
|
5730
|
+
return Fd((A) => {
|
|
5731
5731
|
w === u.layers.size - 1 && (r == null || r(A), !A.defaultPrevented && s && (A.preventDefault(), s()));
|
|
5732
5732
|
}, p), c.useEffect(() => {
|
|
5733
5733
|
if (d)
|
|
@@ -5758,9 +5758,9 @@ var Vd = "DismissableLayer", mr = "dismissableLayer.update", Hd = "dismissableLa
|
|
|
5758
5758
|
);
|
|
5759
5759
|
}
|
|
5760
5760
|
);
|
|
5761
|
-
xn.displayName =
|
|
5762
|
-
var
|
|
5763
|
-
const n = c.useContext(
|
|
5761
|
+
xn.displayName = $d;
|
|
5762
|
+
var Wd = "DismissableLayerBranch", zd = c.forwardRef((e, t) => {
|
|
5763
|
+
const n = c.useContext(oi), r = c.useRef(null), o = ie(t, r);
|
|
5764
5764
|
return c.useEffect(() => {
|
|
5765
5765
|
const a = r.current;
|
|
5766
5766
|
if (a)
|
|
@@ -5769,16 +5769,16 @@ var zd = "DismissableLayerBranch", Bd = c.forwardRef((e, t) => {
|
|
|
5769
5769
|
};
|
|
5770
5770
|
}, [n.branches]), /* @__PURE__ */ b.jsx(ne.div, { ...e, ref: o });
|
|
5771
5771
|
});
|
|
5772
|
-
|
|
5773
|
-
function
|
|
5772
|
+
zd.displayName = Wd;
|
|
5773
|
+
function Bd(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
5774
5774
|
const n = je(e), r = c.useRef(!1), o = c.useRef(() => {
|
|
5775
5775
|
});
|
|
5776
5776
|
return c.useEffect(() => {
|
|
5777
5777
|
const a = (s) => {
|
|
5778
5778
|
if (s.target && !r.current) {
|
|
5779
5779
|
let l = function() {
|
|
5780
|
-
|
|
5781
|
-
|
|
5780
|
+
ai(
|
|
5781
|
+
Vd,
|
|
5782
5782
|
n,
|
|
5783
5783
|
u,
|
|
5784
5784
|
{ discrete: !0 }
|
|
@@ -5800,11 +5800,11 @@ function Ud(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5800
5800
|
onPointerDownCapture: () => r.current = !0
|
|
5801
5801
|
};
|
|
5802
5802
|
}
|
|
5803
|
-
function
|
|
5803
|
+
function Ud(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
5804
5804
|
const n = je(e), r = c.useRef(!1);
|
|
5805
5805
|
return c.useEffect(() => {
|
|
5806
5806
|
const o = (a) => {
|
|
5807
|
-
a.target && !r.current &&
|
|
5807
|
+
a.target && !r.current && ai(Hd, n, { originalEvent: a }, {
|
|
5808
5808
|
discrete: !1
|
|
5809
5809
|
});
|
|
5810
5810
|
};
|
|
@@ -5818,11 +5818,11 @@ function Fo() {
|
|
|
5818
5818
|
const e = new CustomEvent(mr);
|
|
5819
5819
|
document.dispatchEvent(e);
|
|
5820
5820
|
}
|
|
5821
|
-
function
|
|
5821
|
+
function ai(e, t, n, { discrete: r }) {
|
|
5822
5822
|
const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
5823
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
5823
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? ei(o, a) : o.dispatchEvent(a);
|
|
5824
5824
|
}
|
|
5825
|
-
var Un = "focusScope.autoFocusOnMount", Gn = "focusScope.autoFocusOnUnmount", $o = { bubbles: !1, cancelable: !0 },
|
|
5825
|
+
var Un = "focusScope.autoFocusOnMount", Gn = "focusScope.autoFocusOnUnmount", $o = { bubbles: !1, cancelable: !0 }, Gd = "FocusScope", Dr = c.forwardRef((e, t) => {
|
|
5826
5826
|
const {
|
|
5827
5827
|
loop: n = !1,
|
|
5828
5828
|
trapped: r = !1,
|
|
@@ -5865,7 +5865,7 @@ var Un = "focusScope.autoFocusOnMount", Gn = "focusScope.autoFocusOnUnmount", $o
|
|
|
5865
5865
|
const m = document.activeElement;
|
|
5866
5866
|
if (!s.contains(m)) {
|
|
5867
5867
|
const h = new CustomEvent(Un, $o);
|
|
5868
|
-
s.addEventListener(Un, u), s.dispatchEvent(h), h.defaultPrevented || (
|
|
5868
|
+
s.addEventListener(Un, u), s.dispatchEvent(h), h.defaultPrevented || (Kd(Jd(ii(s)), { select: !0 }), document.activeElement === m && Ke(s));
|
|
5869
5869
|
}
|
|
5870
5870
|
return () => {
|
|
5871
5871
|
s.removeEventListener(Un, u), setTimeout(() => {
|
|
@@ -5880,7 +5880,7 @@ var Un = "focusScope.autoFocusOnMount", Gn = "focusScope.autoFocusOnUnmount", $o
|
|
|
5880
5880
|
if (!n && !r || v.paused) return;
|
|
5881
5881
|
const x = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, h = document.activeElement;
|
|
5882
5882
|
if (x && h) {
|
|
5883
|
-
const w = m.currentTarget, [y, S] =
|
|
5883
|
+
const w = m.currentTarget, [y, S] = Yd(w);
|
|
5884
5884
|
y && S ? !m.shiftKey && h === S ? (m.preventDefault(), n && Ke(y, { select: !0 })) : m.shiftKey && h === y && (m.preventDefault(), n && Ke(S, { select: !0 })) : h === w && m.preventDefault();
|
|
5885
5885
|
}
|
|
5886
5886
|
},
|
|
@@ -5888,17 +5888,17 @@ var Un = "focusScope.autoFocusOnMount", Gn = "focusScope.autoFocusOnUnmount", $o
|
|
|
5888
5888
|
);
|
|
5889
5889
|
return /* @__PURE__ */ b.jsx(ne.div, { tabIndex: -1, ...i, ref: p, onKeyDown: g });
|
|
5890
5890
|
});
|
|
5891
|
-
Dr.displayName =
|
|
5892
|
-
function
|
|
5891
|
+
Dr.displayName = Gd;
|
|
5892
|
+
function Kd(e, { select: t = !1 } = {}) {
|
|
5893
5893
|
const n = document.activeElement;
|
|
5894
5894
|
for (const r of e)
|
|
5895
5895
|
if (Ke(r, { select: t }), document.activeElement !== n) return;
|
|
5896
5896
|
}
|
|
5897
|
-
function
|
|
5898
|
-
const t =
|
|
5897
|
+
function Yd(e) {
|
|
5898
|
+
const t = ii(e), n = Vo(t, e), r = Vo(t.reverse(), e);
|
|
5899
5899
|
return [n, r];
|
|
5900
5900
|
}
|
|
5901
|
-
function
|
|
5901
|
+
function ii(e) {
|
|
5902
5902
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
5903
5903
|
acceptNode: (r) => {
|
|
5904
5904
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -5910,9 +5910,9 @@ function si(e) {
|
|
|
5910
5910
|
}
|
|
5911
5911
|
function Vo(e, t) {
|
|
5912
5912
|
for (const n of e)
|
|
5913
|
-
if (!
|
|
5913
|
+
if (!qd(n, { upTo: t })) return n;
|
|
5914
5914
|
}
|
|
5915
|
-
function
|
|
5915
|
+
function qd(e, { upTo: t }) {
|
|
5916
5916
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
5917
5917
|
for (; e; ) {
|
|
5918
5918
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -5921,17 +5921,17 @@ function Xd(e, { upTo: t }) {
|
|
|
5921
5921
|
}
|
|
5922
5922
|
return !1;
|
|
5923
5923
|
}
|
|
5924
|
-
function
|
|
5924
|
+
function Xd(e) {
|
|
5925
5925
|
return e instanceof HTMLInputElement && "select" in e;
|
|
5926
5926
|
}
|
|
5927
5927
|
function Ke(e, { select: t = !1 } = {}) {
|
|
5928
5928
|
if (e && e.focus) {
|
|
5929
5929
|
const n = document.activeElement;
|
|
5930
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
5930
|
+
e.focus({ preventScroll: !0 }), e !== n && Xd(e) && t && e.select();
|
|
5931
5931
|
}
|
|
5932
5932
|
}
|
|
5933
|
-
var Ho =
|
|
5934
|
-
function
|
|
5933
|
+
var Ho = Zd();
|
|
5934
|
+
function Zd() {
|
|
5935
5935
|
let e = [];
|
|
5936
5936
|
return {
|
|
5937
5937
|
add(t) {
|
|
@@ -5948,27 +5948,27 @@ function Wo(e, t) {
|
|
|
5948
5948
|
const n = [...e], r = n.indexOf(t);
|
|
5949
5949
|
return r !== -1 && n.splice(r, 1), n;
|
|
5950
5950
|
}
|
|
5951
|
-
function
|
|
5951
|
+
function Jd(e) {
|
|
5952
5952
|
return e.filter((t) => t.tagName !== "A");
|
|
5953
5953
|
}
|
|
5954
|
-
var
|
|
5954
|
+
var Qd = "Portal", Lr = c.forwardRef((e, t) => {
|
|
5955
5955
|
var s;
|
|
5956
5956
|
const { container: n, ...r } = e, [o, a] = c.useState(!1);
|
|
5957
5957
|
Xe(() => a(!0), []);
|
|
5958
5958
|
const i = n || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
|
|
5959
|
-
return i ?
|
|
5959
|
+
return i ? ul.createPortal(/* @__PURE__ */ b.jsx(ne.div, { ...r, ref: t }), i) : null;
|
|
5960
5960
|
});
|
|
5961
|
-
Lr.displayName =
|
|
5962
|
-
function
|
|
5961
|
+
Lr.displayName = Qd;
|
|
5962
|
+
function ef(e, t) {
|
|
5963
5963
|
return c.useReducer((n, r) => t[n][r] ?? n, e);
|
|
5964
5964
|
}
|
|
5965
5965
|
var We = (e) => {
|
|
5966
|
-
const { present: t, children: n } = e, r =
|
|
5966
|
+
const { present: t, children: n } = e, r = tf(t), o = typeof n == "function" ? n({ present: r.isPresent }) : c.Children.only(n), a = ie(r.ref, nf(o));
|
|
5967
5967
|
return typeof n == "function" || r.isPresent ? c.cloneElement(o, { ref: a }) : null;
|
|
5968
5968
|
};
|
|
5969
5969
|
We.displayName = "Presence";
|
|
5970
|
-
function
|
|
5971
|
-
const [t, n] = c.useState(), r = c.useRef(null), o = c.useRef(e), a = c.useRef("none"), i = e ? "mounted" : "unmounted", [s, l] =
|
|
5970
|
+
function tf(e) {
|
|
5971
|
+
const [t, n] = c.useState(), r = c.useRef(null), o = c.useRef(e), a = c.useRef("none"), i = e ? "mounted" : "unmounted", [s, l] = ef(i, {
|
|
5972
5972
|
mounted: {
|
|
5973
5973
|
UNMOUNT: "unmounted",
|
|
5974
5974
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -6019,13 +6019,13 @@ function nf(e) {
|
|
|
6019
6019
|
function Gt(e) {
|
|
6020
6020
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
6021
6021
|
}
|
|
6022
|
-
function
|
|
6022
|
+
function nf(e) {
|
|
6023
6023
|
var r, o;
|
|
6024
6024
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6025
6025
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
6026
6026
|
}
|
|
6027
6027
|
var Kn = 0;
|
|
6028
|
-
function
|
|
6028
|
+
function si() {
|
|
6029
6029
|
c.useEffect(() => {
|
|
6030
6030
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
6031
6031
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? zo()), document.body.insertAdjacentElement("beforeend", e[1] ?? zo()), Kn++, () => {
|
|
@@ -6046,7 +6046,7 @@ var Re = function() {
|
|
|
6046
6046
|
return t;
|
|
6047
6047
|
}, Re.apply(this, arguments);
|
|
6048
6048
|
};
|
|
6049
|
-
function
|
|
6049
|
+
function li(e, t) {
|
|
6050
6050
|
var n = {};
|
|
6051
6051
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
6052
6052
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -6054,17 +6054,17 @@ function ci(e, t) {
|
|
|
6054
6054
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
6055
6055
|
return n;
|
|
6056
6056
|
}
|
|
6057
|
-
function
|
|
6057
|
+
function rf(e, t, n) {
|
|
6058
6058
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
6059
6059
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
6060
6060
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
6061
6061
|
}
|
|
6062
|
-
var tn = "right-scroll-bar-position", nn = "width-before-scroll-bar",
|
|
6062
|
+
var tn = "right-scroll-bar-position", nn = "width-before-scroll-bar", of = "with-scroll-bars-hidden", af = "--removed-body-scroll-bar-size";
|
|
6063
6063
|
function Yn(e, t) {
|
|
6064
6064
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
6065
6065
|
}
|
|
6066
|
-
function
|
|
6067
|
-
var n =
|
|
6066
|
+
function sf(e, t) {
|
|
6067
|
+
var n = ua(function() {
|
|
6068
6068
|
return {
|
|
6069
6069
|
// value
|
|
6070
6070
|
value: e,
|
|
@@ -6084,14 +6084,14 @@ function lf(e, t) {
|
|
|
6084
6084
|
})[0];
|
|
6085
6085
|
return n.callback = t, n.facade;
|
|
6086
6086
|
}
|
|
6087
|
-
var
|
|
6088
|
-
function
|
|
6089
|
-
var n =
|
|
6087
|
+
var lf = typeof window < "u" ? c.useLayoutEffect : c.useEffect, Bo = /* @__PURE__ */ new WeakMap();
|
|
6088
|
+
function cf(e, t) {
|
|
6089
|
+
var n = sf(null, function(r) {
|
|
6090
6090
|
return e.forEach(function(o) {
|
|
6091
6091
|
return Yn(o, r);
|
|
6092
6092
|
});
|
|
6093
6093
|
});
|
|
6094
|
-
return
|
|
6094
|
+
return lf(function() {
|
|
6095
6095
|
var r = Bo.get(n);
|
|
6096
6096
|
if (r) {
|
|
6097
6097
|
var o = new Set(r), a = new Set(e), i = n.current;
|
|
@@ -6104,11 +6104,11 @@ function uf(e, t) {
|
|
|
6104
6104
|
Bo.set(n, e);
|
|
6105
6105
|
}, [e]), n;
|
|
6106
6106
|
}
|
|
6107
|
-
function
|
|
6107
|
+
function uf(e) {
|
|
6108
6108
|
return e;
|
|
6109
6109
|
}
|
|
6110
|
-
function
|
|
6111
|
-
t === void 0 && (t =
|
|
6110
|
+
function df(e, t) {
|
|
6111
|
+
t === void 0 && (t = uf);
|
|
6112
6112
|
var n = [], r = !1, o = {
|
|
6113
6113
|
read: function() {
|
|
6114
6114
|
if (r)
|
|
@@ -6162,13 +6162,13 @@ function ff(e, t) {
|
|
|
6162
6162
|
};
|
|
6163
6163
|
return o;
|
|
6164
6164
|
}
|
|
6165
|
-
function
|
|
6165
|
+
function ff(e) {
|
|
6166
6166
|
e === void 0 && (e = {});
|
|
6167
|
-
var t =
|
|
6167
|
+
var t = df(null);
|
|
6168
6168
|
return t.options = Re({ async: !0, ssr: !1 }, e), t;
|
|
6169
6169
|
}
|
|
6170
|
-
var
|
|
6171
|
-
var t = e.sideCar, n =
|
|
6170
|
+
var ci = function(e) {
|
|
6171
|
+
var t = e.sideCar, n = li(e, ["sideCar"]);
|
|
6172
6172
|
if (!t)
|
|
6173
6173
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
6174
6174
|
var r = t.read();
|
|
@@ -6176,21 +6176,21 @@ var ui = function(e) {
|
|
|
6176
6176
|
throw new Error("Sidecar medium not found");
|
|
6177
6177
|
return c.createElement(r, Re({}, n));
|
|
6178
6178
|
};
|
|
6179
|
-
|
|
6180
|
-
function
|
|
6181
|
-
return e.useMedium(t),
|
|
6179
|
+
ci.isSideCarExport = !0;
|
|
6180
|
+
function pf(e, t) {
|
|
6181
|
+
return e.useMedium(t), ci;
|
|
6182
6182
|
}
|
|
6183
|
-
var
|
|
6183
|
+
var ui = ff(), qn = function() {
|
|
6184
6184
|
}, wn = c.forwardRef(function(e, t) {
|
|
6185
6185
|
var n = c.useRef(null), r = c.useState({
|
|
6186
6186
|
onScrollCapture: qn,
|
|
6187
6187
|
onWheelCapture: qn,
|
|
6188
6188
|
onTouchMoveCapture: qn
|
|
6189
|
-
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, v = e.noRelative, g = e.noIsolation, m = e.inert, x = e.allowPinchZoom, h = e.as, w = h === void 0 ? "div" : h, y = e.gapMode, S =
|
|
6189
|
+
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, v = e.noRelative, g = e.noIsolation, m = e.inert, x = e.allowPinchZoom, h = e.as, w = h === void 0 ? "div" : h, y = e.gapMode, S = li(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = p, P = cf([n, t]), A = Re(Re({}, S), o);
|
|
6190
6190
|
return c.createElement(
|
|
6191
6191
|
c.Fragment,
|
|
6192
6192
|
null,
|
|
6193
|
-
d && c.createElement(R, { sideCar:
|
|
6193
|
+
d && c.createElement(R, { sideCar: ui, removeScrollBar: u, shards: f, noRelative: v, noIsolation: g, inert: m, setCallbacks: a, allowPinchZoom: !!x, lockRef: n, gapMode: y }),
|
|
6194
6194
|
i ? c.cloneElement(c.Children.only(s), Re(Re({}, A), { ref: P })) : c.createElement(w, Re({}, A, { className: l, ref: P }), s)
|
|
6195
6195
|
);
|
|
6196
6196
|
});
|
|
@@ -6203,37 +6203,37 @@ wn.classNames = {
|
|
|
6203
6203
|
fullWidth: nn,
|
|
6204
6204
|
zeroRight: tn
|
|
6205
6205
|
};
|
|
6206
|
-
var
|
|
6206
|
+
var mf = function() {
|
|
6207
6207
|
if (typeof __webpack_nonce__ < "u")
|
|
6208
6208
|
return __webpack_nonce__;
|
|
6209
6209
|
};
|
|
6210
|
-
function
|
|
6210
|
+
function hf() {
|
|
6211
6211
|
if (!document)
|
|
6212
6212
|
return null;
|
|
6213
6213
|
var e = document.createElement("style");
|
|
6214
6214
|
e.type = "text/css";
|
|
6215
|
-
var t =
|
|
6215
|
+
var t = mf();
|
|
6216
6216
|
return t && e.setAttribute("nonce", t), e;
|
|
6217
6217
|
}
|
|
6218
|
-
function
|
|
6218
|
+
function gf(e, t) {
|
|
6219
6219
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
6220
6220
|
}
|
|
6221
|
-
function
|
|
6221
|
+
function vf(e) {
|
|
6222
6222
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
6223
6223
|
t.appendChild(e);
|
|
6224
6224
|
}
|
|
6225
|
-
var
|
|
6225
|
+
var bf = function() {
|
|
6226
6226
|
var e = 0, t = null;
|
|
6227
6227
|
return {
|
|
6228
6228
|
add: function(n) {
|
|
6229
|
-
e == 0 && (t =
|
|
6229
|
+
e == 0 && (t = hf()) && (gf(t, n), vf(t)), e++;
|
|
6230
6230
|
},
|
|
6231
6231
|
remove: function() {
|
|
6232
6232
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
6233
6233
|
}
|
|
6234
6234
|
};
|
|
6235
|
-
},
|
|
6236
|
-
var e =
|
|
6235
|
+
}, xf = function() {
|
|
6236
|
+
var e = bf();
|
|
6237
6237
|
return function(t, n) {
|
|
6238
6238
|
c.useEffect(function() {
|
|
6239
6239
|
return e.add(t), function() {
|
|
@@ -6241,36 +6241,36 @@ var xf = function() {
|
|
|
6241
6241
|
};
|
|
6242
6242
|
}, [t && n]);
|
|
6243
6243
|
};
|
|
6244
|
-
},
|
|
6245
|
-
var e =
|
|
6244
|
+
}, di = function() {
|
|
6245
|
+
var e = xf(), t = function(n) {
|
|
6246
6246
|
var r = n.styles, o = n.dynamic;
|
|
6247
6247
|
return e(r, o), null;
|
|
6248
6248
|
};
|
|
6249
6249
|
return t;
|
|
6250
|
-
},
|
|
6250
|
+
}, wf = {
|
|
6251
6251
|
left: 0,
|
|
6252
6252
|
top: 0,
|
|
6253
6253
|
right: 0,
|
|
6254
6254
|
gap: 0
|
|
6255
6255
|
}, Xn = function(e) {
|
|
6256
6256
|
return parseInt(e || "", 10) || 0;
|
|
6257
|
-
},
|
|
6257
|
+
}, yf = function(e) {
|
|
6258
6258
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
6259
6259
|
return [Xn(n), Xn(r), Xn(o)];
|
|
6260
|
-
},
|
|
6260
|
+
}, Cf = function(e) {
|
|
6261
6261
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
6262
|
-
return
|
|
6263
|
-
var t =
|
|
6262
|
+
return wf;
|
|
6263
|
+
var t = yf(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
6264
6264
|
return {
|
|
6265
6265
|
left: t[0],
|
|
6266
6266
|
top: t[1],
|
|
6267
6267
|
right: t[2],
|
|
6268
6268
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
6269
6269
|
};
|
|
6270
|
-
},
|
|
6270
|
+
}, Ef = di(), dt = "data-scroll-locked", Sf = function(e, t, n, r) {
|
|
6271
6271
|
var o = e.left, a = e.top, i = e.right, s = e.gap;
|
|
6272
6272
|
return n === void 0 && (n = "margin"), `
|
|
6273
|
-
.`.concat(
|
|
6273
|
+
.`.concat(of, ` {
|
|
6274
6274
|
overflow: hidden `).concat(r, `;
|
|
6275
6275
|
padding-right: `).concat(s, "px ").concat(r, `;
|
|
6276
6276
|
}
|
|
@@ -6308,26 +6308,26 @@ var xf = function() {
|
|
|
6308
6308
|
}
|
|
6309
6309
|
|
|
6310
6310
|
body[`).concat(dt, `] {
|
|
6311
|
-
`).concat(
|
|
6311
|
+
`).concat(af, ": ").concat(s, `px;
|
|
6312
6312
|
}
|
|
6313
6313
|
`);
|
|
6314
6314
|
}, Uo = function() {
|
|
6315
6315
|
var e = parseInt(document.body.getAttribute(dt) || "0", 10);
|
|
6316
6316
|
return isFinite(e) ? e : 0;
|
|
6317
|
-
},
|
|
6317
|
+
}, Rf = function() {
|
|
6318
6318
|
c.useEffect(function() {
|
|
6319
6319
|
return document.body.setAttribute(dt, (Uo() + 1).toString()), function() {
|
|
6320
6320
|
var e = Uo() - 1;
|
|
6321
6321
|
e <= 0 ? document.body.removeAttribute(dt) : document.body.setAttribute(dt, e.toString());
|
|
6322
6322
|
};
|
|
6323
6323
|
}, []);
|
|
6324
|
-
},
|
|
6324
|
+
}, _f = function(e) {
|
|
6325
6325
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
6326
|
-
|
|
6326
|
+
Rf();
|
|
6327
6327
|
var a = c.useMemo(function() {
|
|
6328
|
-
return
|
|
6328
|
+
return Cf(o);
|
|
6329
6329
|
}, [o]);
|
|
6330
|
-
return c.createElement(
|
|
6330
|
+
return c.createElement(Ef, { styles: Sf(a, !t, o, n ? "" : "!important") });
|
|
6331
6331
|
}, hr = !1;
|
|
6332
6332
|
if (typeof window < "u")
|
|
6333
6333
|
try {
|
|
@@ -6340,61 +6340,61 @@ if (typeof window < "u")
|
|
|
6340
6340
|
} catch {
|
|
6341
6341
|
hr = !1;
|
|
6342
6342
|
}
|
|
6343
|
-
var st = hr ? { passive: !1 } : !1,
|
|
6343
|
+
var st = hr ? { passive: !1 } : !1, Af = function(e) {
|
|
6344
6344
|
return e.tagName === "TEXTAREA";
|
|
6345
|
-
},
|
|
6345
|
+
}, fi = function(e, t) {
|
|
6346
6346
|
if (!(e instanceof Element))
|
|
6347
6347
|
return !1;
|
|
6348
6348
|
var n = window.getComputedStyle(e);
|
|
6349
6349
|
return (
|
|
6350
6350
|
// not-not-scrollable
|
|
6351
6351
|
n[t] !== "hidden" && // contains scroll inside self
|
|
6352
|
-
!(n.overflowY === n.overflowX && !
|
|
6352
|
+
!(n.overflowY === n.overflowX && !Af(e) && n[t] === "visible")
|
|
6353
6353
|
);
|
|
6354
|
+
}, Pf = function(e) {
|
|
6355
|
+
return fi(e, "overflowY");
|
|
6354
6356
|
}, Mf = function(e) {
|
|
6355
|
-
return
|
|
6356
|
-
}, Tf = function(e) {
|
|
6357
|
-
return pi(e, "overflowX");
|
|
6357
|
+
return fi(e, "overflowX");
|
|
6358
6358
|
}, Go = function(e, t) {
|
|
6359
6359
|
var n = t.ownerDocument, r = t;
|
|
6360
6360
|
do {
|
|
6361
6361
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
6362
|
-
var o =
|
|
6362
|
+
var o = pi(e, r);
|
|
6363
6363
|
if (o) {
|
|
6364
|
-
var a =
|
|
6364
|
+
var a = mi(e, r), i = a[1], s = a[2];
|
|
6365
6365
|
if (i > s)
|
|
6366
6366
|
return !0;
|
|
6367
6367
|
}
|
|
6368
6368
|
r = r.parentNode;
|
|
6369
6369
|
} while (r && r !== n.body);
|
|
6370
6370
|
return !1;
|
|
6371
|
-
},
|
|
6371
|
+
}, Tf = function(e) {
|
|
6372
6372
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
6373
6373
|
return [
|
|
6374
6374
|
t,
|
|
6375
6375
|
n,
|
|
6376
6376
|
r
|
|
6377
6377
|
];
|
|
6378
|
-
},
|
|
6378
|
+
}, Of = function(e) {
|
|
6379
6379
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
6380
6380
|
return [
|
|
6381
6381
|
t,
|
|
6382
6382
|
n,
|
|
6383
6383
|
r
|
|
6384
6384
|
];
|
|
6385
|
+
}, pi = function(e, t) {
|
|
6386
|
+
return e === "v" ? Pf(t) : Mf(t);
|
|
6385
6387
|
}, mi = function(e, t) {
|
|
6386
|
-
return e === "v" ?
|
|
6387
|
-
},
|
|
6388
|
-
return e === "v" ? Of(t) : kf(t);
|
|
6389
|
-
}, Nf = function(e, t) {
|
|
6388
|
+
return e === "v" ? Tf(t) : Of(t);
|
|
6389
|
+
}, kf = function(e, t) {
|
|
6390
6390
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
6391
|
-
},
|
|
6392
|
-
var a =
|
|
6391
|
+
}, Nf = function(e, t, n, r, o) {
|
|
6392
|
+
var a = kf(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), u = !1, d = i > 0, f = 0, p = 0;
|
|
6393
6393
|
do {
|
|
6394
6394
|
if (!s)
|
|
6395
6395
|
break;
|
|
6396
|
-
var v =
|
|
6397
|
-
(g || h) &&
|
|
6396
|
+
var v = mi(e, s), g = v[0], m = v[1], x = v[2], h = m - x - a * g;
|
|
6397
|
+
(g || h) && pi(e, s) && (f += h, p += g);
|
|
6398
6398
|
var w = s.parentNode;
|
|
6399
6399
|
s = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
|
|
6400
6400
|
} while (
|
|
@@ -6409,22 +6409,22 @@ var st = hr ? { passive: !1 } : !1, Pf = function(e) {
|
|
|
6409
6409
|
return [e.deltaX, e.deltaY];
|
|
6410
6410
|
}, Yo = function(e) {
|
|
6411
6411
|
return e && "current" in e ? e.current : e;
|
|
6412
|
-
},
|
|
6412
|
+
}, If = function(e, t) {
|
|
6413
6413
|
return e[0] === t[0] && e[1] === t[1];
|
|
6414
|
-
},
|
|
6414
|
+
}, Df = function(e) {
|
|
6415
6415
|
return `
|
|
6416
6416
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
6417
6417
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
6418
6418
|
`);
|
|
6419
|
-
},
|
|
6420
|
-
function
|
|
6421
|
-
var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(
|
|
6419
|
+
}, Lf = 0, lt = [];
|
|
6420
|
+
function jf(e) {
|
|
6421
|
+
var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Lf++)[0], a = c.useState(di)[0], i = c.useRef(e);
|
|
6422
6422
|
c.useEffect(function() {
|
|
6423
6423
|
i.current = e;
|
|
6424
6424
|
}, [e]), c.useEffect(function() {
|
|
6425
6425
|
if (e.inert) {
|
|
6426
6426
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
6427
|
-
var m =
|
|
6427
|
+
var m = rf([e.lockRef.current], (e.shards || []).map(Yo), !0).filter(Boolean);
|
|
6428
6428
|
return m.forEach(function(x) {
|
|
6429
6429
|
return x.classList.add("allow-interactivity-".concat(o));
|
|
6430
6430
|
}), function() {
|
|
@@ -6448,12 +6448,12 @@ function Ff(e) {
|
|
|
6448
6448
|
if (!r.current && "changedTouches" in m && (y || S) && (r.current = R), !R)
|
|
6449
6449
|
return !0;
|
|
6450
6450
|
var N = r.current || R;
|
|
6451
|
-
return
|
|
6451
|
+
return Nf(N, x, m, N === "h" ? y : S);
|
|
6452
6452
|
}, []), l = c.useCallback(function(m) {
|
|
6453
6453
|
var x = m;
|
|
6454
6454
|
if (!(!lt.length || lt[lt.length - 1] !== a)) {
|
|
6455
6455
|
var h = "deltaY" in x ? Ko(x) : Yt(x), w = t.current.filter(function(R) {
|
|
6456
|
-
return R.name === x.type && (R.target === x.target || x.target === R.shadowParent) &&
|
|
6456
|
+
return R.name === x.type && (R.target === x.target || x.target === R.shadowParent) && If(R.delta, h);
|
|
6457
6457
|
})[0];
|
|
6458
6458
|
if (w && w.should) {
|
|
6459
6459
|
x.cancelable && x.preventDefault();
|
|
@@ -6467,7 +6467,7 @@ function Ff(e) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
}
|
|
6469
6469
|
}, []), u = c.useCallback(function(m, x, h, w) {
|
|
6470
|
-
var y = { name: m, delta: x, target: h, should: w, shadowParent:
|
|
6470
|
+
var y = { name: m, delta: x, target: h, should: w, shadowParent: Ff(h) };
|
|
6471
6471
|
t.current.push(y), setTimeout(function() {
|
|
6472
6472
|
t.current = t.current.filter(function(S) {
|
|
6473
6473
|
return S !== y;
|
|
@@ -6495,38 +6495,38 @@ function Ff(e) {
|
|
|
6495
6495
|
return c.createElement(
|
|
6496
6496
|
c.Fragment,
|
|
6497
6497
|
null,
|
|
6498
|
-
g ? c.createElement(a, { styles:
|
|
6499
|
-
v ? c.createElement(
|
|
6498
|
+
g ? c.createElement(a, { styles: Df(o) }) : null,
|
|
6499
|
+
v ? c.createElement(_f, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
6500
6500
|
);
|
|
6501
6501
|
}
|
|
6502
|
-
function
|
|
6502
|
+
function Ff(e) {
|
|
6503
6503
|
for (var t = null; e !== null; )
|
|
6504
6504
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
6505
6505
|
return t;
|
|
6506
6506
|
}
|
|
6507
|
-
const
|
|
6507
|
+
const $f = pf(ui, jf);
|
|
6508
6508
|
var jr = c.forwardRef(function(e, t) {
|
|
6509
|
-
return c.createElement(wn, Re({}, e, { ref: t, sideCar:
|
|
6509
|
+
return c.createElement(wn, Re({}, e, { ref: t, sideCar: $f }));
|
|
6510
6510
|
});
|
|
6511
6511
|
jr.classNames = wn.classNames;
|
|
6512
|
-
var
|
|
6512
|
+
var Vf = function(e) {
|
|
6513
6513
|
if (typeof document > "u")
|
|
6514
6514
|
return null;
|
|
6515
6515
|
var t = Array.isArray(e) ? e[0] : e;
|
|
6516
6516
|
return t.ownerDocument.body;
|
|
6517
|
-
}, ct = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Xt = {}, Zn = 0,
|
|
6518
|
-
return e && (e.host ||
|
|
6519
|
-
},
|
|
6517
|
+
}, ct = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Xt = {}, Zn = 0, hi = function(e) {
|
|
6518
|
+
return e && (e.host || hi(e.parentNode));
|
|
6519
|
+
}, Hf = function(e, t) {
|
|
6520
6520
|
return t.map(function(n) {
|
|
6521
6521
|
if (e.contains(n))
|
|
6522
6522
|
return n;
|
|
6523
|
-
var r =
|
|
6523
|
+
var r = hi(n);
|
|
6524
6524
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
6525
6525
|
}).filter(function(n) {
|
|
6526
6526
|
return !!n;
|
|
6527
6527
|
});
|
|
6528
|
-
},
|
|
6529
|
-
var o =
|
|
6528
|
+
}, Wf = function(e, t, n, r) {
|
|
6529
|
+
var o = Hf(t, Array.isArray(e) ? e : [e]);
|
|
6530
6530
|
Xt[n] || (Xt[n] = /* @__PURE__ */ new WeakMap());
|
|
6531
6531
|
var a = Xt[n], i = [], s = /* @__PURE__ */ new Set(), l = new Set(o), u = function(f) {
|
|
6532
6532
|
!f || s.has(f) || (s.add(f), u(f.parentNode));
|
|
@@ -6551,13 +6551,13 @@ var Hf = function(e) {
|
|
|
6551
6551
|
ct.set(f, p), a.set(f, v), p || (qt.has(f) || f.removeAttribute(r), qt.delete(f)), v || f.removeAttribute(n);
|
|
6552
6552
|
}), Zn--, Zn || (ct = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Xt = {});
|
|
6553
6553
|
};
|
|
6554
|
-
},
|
|
6554
|
+
}, gi = function(e, t, n) {
|
|
6555
6555
|
n === void 0 && (n = "data-aria-hidden");
|
|
6556
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
6557
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
6556
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = Vf(e);
|
|
6557
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Wf(r, o, n, "aria-hidden")) : function() {
|
|
6558
6558
|
return null;
|
|
6559
6559
|
};
|
|
6560
|
-
}, yn = "Dialog", [
|
|
6560
|
+
}, yn = "Dialog", [vi, B0] = rt(yn), [zf, Se] = vi(yn), bi = (e) => {
|
|
6561
6561
|
const {
|
|
6562
6562
|
__scopeDialog: t,
|
|
6563
6563
|
children: n,
|
|
@@ -6572,7 +6572,7 @@ var Hf = function(e) {
|
|
|
6572
6572
|
caller: yn
|
|
6573
6573
|
});
|
|
6574
6574
|
return /* @__PURE__ */ b.jsx(
|
|
6575
|
-
|
|
6575
|
+
zf,
|
|
6576
6576
|
{
|
|
6577
6577
|
scope: t,
|
|
6578
6578
|
triggerRef: s,
|
|
@@ -6588,10 +6588,10 @@ var Hf = function(e) {
|
|
|
6588
6588
|
}
|
|
6589
6589
|
);
|
|
6590
6590
|
};
|
|
6591
|
-
|
|
6592
|
-
var
|
|
6591
|
+
bi.displayName = yn;
|
|
6592
|
+
var xi = "DialogTrigger", Bf = c.forwardRef(
|
|
6593
6593
|
(e, t) => {
|
|
6594
|
-
const { __scopeDialog: n, ...r } = e, o = Se(
|
|
6594
|
+
const { __scopeDialog: n, ...r } = e, o = Se(xi, n), a = ie(t, o.triggerRef);
|
|
6595
6595
|
return /* @__PURE__ */ b.jsx(
|
|
6596
6596
|
ne.button,
|
|
6597
6597
|
{
|
|
@@ -6607,28 +6607,28 @@ var wi = "DialogTrigger", Uf = c.forwardRef(
|
|
|
6607
6607
|
);
|
|
6608
6608
|
}
|
|
6609
6609
|
);
|
|
6610
|
-
|
|
6611
|
-
var Fr = "DialogPortal", [
|
|
6610
|
+
Bf.displayName = xi;
|
|
6611
|
+
var Fr = "DialogPortal", [Uf, wi] = vi(Fr, {
|
|
6612
6612
|
forceMount: void 0
|
|
6613
|
-
}),
|
|
6613
|
+
}), yi = (e) => {
|
|
6614
6614
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = Se(Fr, t);
|
|
6615
|
-
return /* @__PURE__ */ b.jsx(
|
|
6615
|
+
return /* @__PURE__ */ b.jsx(Uf, { scope: t, forceMount: n, children: c.Children.map(r, (i) => /* @__PURE__ */ b.jsx(We, { present: n || a.open, children: /* @__PURE__ */ b.jsx(Lr, { asChild: !0, container: o, children: i }) })) });
|
|
6616
6616
|
};
|
|
6617
|
-
|
|
6618
|
-
var ln = "DialogOverlay",
|
|
6617
|
+
yi.displayName = Fr;
|
|
6618
|
+
var ln = "DialogOverlay", Ci = c.forwardRef(
|
|
6619
6619
|
(e, t) => {
|
|
6620
|
-
const n =
|
|
6621
|
-
return a.modal ? /* @__PURE__ */ b.jsx(We, { present: r || a.open, children: /* @__PURE__ */ b.jsx(
|
|
6620
|
+
const n = wi(ln, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = Se(ln, e.__scopeDialog);
|
|
6621
|
+
return a.modal ? /* @__PURE__ */ b.jsx(We, { present: r || a.open, children: /* @__PURE__ */ b.jsx(Kf, { ...o, ref: t }) }) : null;
|
|
6622
6622
|
}
|
|
6623
6623
|
);
|
|
6624
|
-
|
|
6625
|
-
var
|
|
6624
|
+
Ci.displayName = ln;
|
|
6625
|
+
var Gf = /* @__PURE__ */ pt("DialogOverlay.RemoveScroll"), Kf = c.forwardRef(
|
|
6626
6626
|
(e, t) => {
|
|
6627
6627
|
const { __scopeDialog: n, ...r } = e, o = Se(ln, n);
|
|
6628
6628
|
return (
|
|
6629
6629
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
6630
6630
|
// ie. when `Overlay` and `Content` are siblings
|
|
6631
|
-
/* @__PURE__ */ b.jsx(jr, { as:
|
|
6631
|
+
/* @__PURE__ */ b.jsx(jr, { as: Gf, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ b.jsx(
|
|
6632
6632
|
ne.div,
|
|
6633
6633
|
{
|
|
6634
6634
|
"data-state": Vr(o.open),
|
|
@@ -6639,21 +6639,21 @@ var Kf = /* @__PURE__ */ pt("DialogOverlay.RemoveScroll"), Yf = c.forwardRef(
|
|
|
6639
6639
|
) })
|
|
6640
6640
|
);
|
|
6641
6641
|
}
|
|
6642
|
-
), et = "DialogContent",
|
|
6642
|
+
), et = "DialogContent", Ei = c.forwardRef(
|
|
6643
6643
|
(e, t) => {
|
|
6644
|
-
const n =
|
|
6645
|
-
return /* @__PURE__ */ b.jsx(We, { present: r || a.open, children: a.modal ? /* @__PURE__ */ b.jsx(
|
|
6644
|
+
const n = wi(et, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = Se(et, e.__scopeDialog);
|
|
6645
|
+
return /* @__PURE__ */ b.jsx(We, { present: r || a.open, children: a.modal ? /* @__PURE__ */ b.jsx(Yf, { ...o, ref: t }) : /* @__PURE__ */ b.jsx(qf, { ...o, ref: t }) });
|
|
6646
6646
|
}
|
|
6647
6647
|
);
|
|
6648
|
-
|
|
6649
|
-
var
|
|
6648
|
+
Ei.displayName = et;
|
|
6649
|
+
var Yf = c.forwardRef(
|
|
6650
6650
|
(e, t) => {
|
|
6651
6651
|
const n = Se(et, e.__scopeDialog), r = c.useRef(null), o = ie(t, n.contentRef, r);
|
|
6652
6652
|
return c.useEffect(() => {
|
|
6653
6653
|
const a = r.current;
|
|
6654
|
-
if (a) return
|
|
6654
|
+
if (a) return gi(a);
|
|
6655
6655
|
}, []), /* @__PURE__ */ b.jsx(
|
|
6656
|
-
|
|
6656
|
+
Si,
|
|
6657
6657
|
{
|
|
6658
6658
|
...e,
|
|
6659
6659
|
ref: o,
|
|
@@ -6674,11 +6674,11 @@ var qf = c.forwardRef(
|
|
|
6674
6674
|
}
|
|
6675
6675
|
);
|
|
6676
6676
|
}
|
|
6677
|
-
),
|
|
6677
|
+
), qf = c.forwardRef(
|
|
6678
6678
|
(e, t) => {
|
|
6679
6679
|
const n = Se(et, e.__scopeDialog), r = c.useRef(!1), o = c.useRef(!1);
|
|
6680
6680
|
return /* @__PURE__ */ b.jsx(
|
|
6681
|
-
|
|
6681
|
+
Si,
|
|
6682
6682
|
{
|
|
6683
6683
|
...e,
|
|
6684
6684
|
ref: t,
|
|
@@ -6697,10 +6697,10 @@ var qf = c.forwardRef(
|
|
|
6697
6697
|
}
|
|
6698
6698
|
);
|
|
6699
6699
|
}
|
|
6700
|
-
),
|
|
6700
|
+
), Si = c.forwardRef(
|
|
6701
6701
|
(e, t) => {
|
|
6702
6702
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = Se(et, n), l = c.useRef(null), u = ie(t, l);
|
|
6703
|
-
return
|
|
6703
|
+
return si(), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
6704
6704
|
/* @__PURE__ */ b.jsx(
|
|
6705
6705
|
Dr,
|
|
6706
6706
|
{
|
|
@@ -6725,28 +6725,28 @@ var qf = c.forwardRef(
|
|
|
6725
6725
|
}
|
|
6726
6726
|
),
|
|
6727
6727
|
/* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
6728
|
-
/* @__PURE__ */ b.jsx(
|
|
6729
|
-
/* @__PURE__ */ b.jsx(
|
|
6728
|
+
/* @__PURE__ */ b.jsx(Xf, { titleId: s.titleId }),
|
|
6729
|
+
/* @__PURE__ */ b.jsx(Jf, { contentRef: l, descriptionId: s.descriptionId })
|
|
6730
6730
|
] })
|
|
6731
6731
|
] });
|
|
6732
6732
|
}
|
|
6733
|
-
), $r = "DialogTitle",
|
|
6733
|
+
), $r = "DialogTitle", Ri = c.forwardRef(
|
|
6734
6734
|
(e, t) => {
|
|
6735
6735
|
const { __scopeDialog: n, ...r } = e, o = Se($r, n);
|
|
6736
6736
|
return /* @__PURE__ */ b.jsx(ne.h2, { id: o.titleId, ...r, ref: t });
|
|
6737
6737
|
}
|
|
6738
6738
|
);
|
|
6739
|
-
|
|
6740
|
-
var
|
|
6739
|
+
Ri.displayName = $r;
|
|
6740
|
+
var _i = "DialogDescription", Ai = c.forwardRef(
|
|
6741
6741
|
(e, t) => {
|
|
6742
|
-
const { __scopeDialog: n, ...r } = e, o = Se(
|
|
6742
|
+
const { __scopeDialog: n, ...r } = e, o = Se(_i, n);
|
|
6743
6743
|
return /* @__PURE__ */ b.jsx(ne.p, { id: o.descriptionId, ...r, ref: t });
|
|
6744
6744
|
}
|
|
6745
6745
|
);
|
|
6746
|
-
|
|
6747
|
-
var
|
|
6746
|
+
Ai.displayName = _i;
|
|
6747
|
+
var Pi = "DialogClose", Mi = c.forwardRef(
|
|
6748
6748
|
(e, t) => {
|
|
6749
|
-
const { __scopeDialog: n, ...r } = e, o = Se(
|
|
6749
|
+
const { __scopeDialog: n, ...r } = e, o = Se(Pi, n);
|
|
6750
6750
|
return /* @__PURE__ */ b.jsx(
|
|
6751
6751
|
ne.button,
|
|
6752
6752
|
{
|
|
@@ -6758,16 +6758,16 @@ var Mi = "DialogClose", Ti = c.forwardRef(
|
|
|
6758
6758
|
);
|
|
6759
6759
|
}
|
|
6760
6760
|
);
|
|
6761
|
-
|
|
6761
|
+
Mi.displayName = Pi;
|
|
6762
6762
|
function Vr(e) {
|
|
6763
6763
|
return e ? "open" : "closed";
|
|
6764
6764
|
}
|
|
6765
|
-
var
|
|
6765
|
+
var Ti = "DialogTitleWarning", [U0, Oi] = Od(Ti, {
|
|
6766
6766
|
contentName: et,
|
|
6767
6767
|
titleName: $r,
|
|
6768
6768
|
docsSlug: "dialog"
|
|
6769
|
-
}),
|
|
6770
|
-
const t =
|
|
6769
|
+
}), Xf = ({ titleId: e }) => {
|
|
6770
|
+
const t = Oi(Ti), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
6771
6771
|
|
|
6772
6772
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
6773
6773
|
|
|
@@ -6775,16 +6775,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
6775
6775
|
return c.useEffect(() => {
|
|
6776
6776
|
e && (document.getElementById(e) || console.error(n));
|
|
6777
6777
|
}, [n, e]), null;
|
|
6778
|
-
},
|
|
6779
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
6778
|
+
}, Zf = "DialogDescriptionWarning", Jf = ({ contentRef: e, descriptionId: t }) => {
|
|
6779
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oi(Zf).contentName}}.`;
|
|
6780
6780
|
return c.useEffect(() => {
|
|
6781
6781
|
var a;
|
|
6782
6782
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
6783
6783
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
6784
6784
|
}, [r, e, t]), null;
|
|
6785
|
-
}, ep =
|
|
6786
|
-
const
|
|
6787
|
-
|
|
6785
|
+
}, Qf = bi, ep = yi, ki = Ci, Ni = Ei, Ii = Ri, Di = Ai, tp = Mi;
|
|
6786
|
+
const np = Qf, rp = ep, Li = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
|
|
6787
|
+
ki,
|
|
6788
6788
|
{
|
|
6789
6789
|
className: B(
|
|
6790
6790
|
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -6794,8 +6794,8 @@ const rp = ep, op = tp, ji = c.forwardRef(({ className: e, ...t }, n) => /* @__P
|
|
|
6794
6794
|
ref: n
|
|
6795
6795
|
}
|
|
6796
6796
|
));
|
|
6797
|
-
|
|
6798
|
-
const
|
|
6797
|
+
Li.displayName = ki.displayName;
|
|
6798
|
+
const op = za(
|
|
6799
6799
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
6800
6800
|
{
|
|
6801
6801
|
variants: {
|
|
@@ -6810,26 +6810,26 @@ const ap = Ba(
|
|
|
6810
6810
|
side: "right"
|
|
6811
6811
|
}
|
|
6812
6812
|
}
|
|
6813
|
-
),
|
|
6814
|
-
/* @__PURE__ */ b.jsx(
|
|
6813
|
+
), ji = c.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ b.jsxs(rp, { children: [
|
|
6814
|
+
/* @__PURE__ */ b.jsx(Li, {}),
|
|
6815
6815
|
/* @__PURE__ */ b.jsxs(
|
|
6816
|
-
|
|
6816
|
+
Ni,
|
|
6817
6817
|
{
|
|
6818
6818
|
ref: o,
|
|
6819
|
-
className: B(
|
|
6819
|
+
className: B(op({ side: e }), t),
|
|
6820
6820
|
...r,
|
|
6821
6821
|
children: [
|
|
6822
6822
|
n,
|
|
6823
|
-
/* @__PURE__ */ b.jsxs(
|
|
6824
|
-
/* @__PURE__ */ b.jsx(
|
|
6823
|
+
/* @__PURE__ */ b.jsxs(tp, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
6824
|
+
/* @__PURE__ */ b.jsx(Fu, { className: "h-4 w-4" }),
|
|
6825
6825
|
/* @__PURE__ */ b.jsx("span", { className: "sr-only", children: "Close" })
|
|
6826
6826
|
] })
|
|
6827
6827
|
]
|
|
6828
6828
|
}
|
|
6829
6829
|
)
|
|
6830
6830
|
] }));
|
|
6831
|
-
|
|
6832
|
-
const
|
|
6831
|
+
ji.displayName = Ni.displayName;
|
|
6832
|
+
const Fi = ({
|
|
6833
6833
|
className: e,
|
|
6834
6834
|
...t
|
|
6835
6835
|
}) => /* @__PURE__ */ b.jsx(
|
|
@@ -6842,34 +6842,34 @@ const $i = ({
|
|
|
6842
6842
|
...t
|
|
6843
6843
|
}
|
|
6844
6844
|
);
|
|
6845
|
-
|
|
6846
|
-
const
|
|
6847
|
-
|
|
6845
|
+
Fi.displayName = "SheetHeader";
|
|
6846
|
+
const $i = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
|
|
6847
|
+
Ii,
|
|
6848
6848
|
{
|
|
6849
6849
|
ref: n,
|
|
6850
6850
|
className: B("text-lg font-semibold text-foreground", e),
|
|
6851
6851
|
...t
|
|
6852
6852
|
}
|
|
6853
6853
|
));
|
|
6854
|
-
|
|
6855
|
-
const
|
|
6856
|
-
|
|
6854
|
+
$i.displayName = Ii.displayName;
|
|
6855
|
+
const Vi = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
|
|
6856
|
+
Di,
|
|
6857
6857
|
{
|
|
6858
6858
|
ref: n,
|
|
6859
6859
|
className: B("text-sm text-muted-foreground", e),
|
|
6860
6860
|
...t
|
|
6861
6861
|
}
|
|
6862
6862
|
));
|
|
6863
|
-
|
|
6864
|
-
const
|
|
6863
|
+
Vi.displayName = Di.displayName;
|
|
6864
|
+
const ap = ["top", "right", "bottom", "left"], Ze = Math.min, he = Math.max, cn = Math.round, Zt = Math.floor, Ae = (e) => ({
|
|
6865
6865
|
x: e,
|
|
6866
6866
|
y: e
|
|
6867
|
-
}),
|
|
6867
|
+
}), ip = {
|
|
6868
6868
|
left: "right",
|
|
6869
6869
|
right: "left",
|
|
6870
6870
|
bottom: "top",
|
|
6871
6871
|
top: "bottom"
|
|
6872
|
-
},
|
|
6872
|
+
}, sp = {
|
|
6873
6873
|
start: "end",
|
|
6874
6874
|
end: "start"
|
|
6875
6875
|
};
|
|
@@ -6897,20 +6897,20 @@ function _e(e) {
|
|
|
6897
6897
|
function zr(e) {
|
|
6898
6898
|
return Hr(_e(e));
|
|
6899
6899
|
}
|
|
6900
|
-
function
|
|
6900
|
+
function lp(e, t, n) {
|
|
6901
6901
|
n === void 0 && (n = !1);
|
|
6902
6902
|
const r = xt(e), o = zr(e), a = Wr(o);
|
|
6903
6903
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
6904
6904
|
return t.reference[a] > t.floating[a] && (i = un(i)), [i, un(i)];
|
|
6905
6905
|
}
|
|
6906
|
-
function
|
|
6906
|
+
function cp(e) {
|
|
6907
6907
|
const t = un(e);
|
|
6908
6908
|
return [vr(e), t, vr(t)];
|
|
6909
6909
|
}
|
|
6910
6910
|
function vr(e) {
|
|
6911
|
-
return e.replace(/start|end/g, (t) =>
|
|
6911
|
+
return e.replace(/start|end/g, (t) => sp[t]);
|
|
6912
6912
|
}
|
|
6913
|
-
function
|
|
6913
|
+
function up(e, t, n) {
|
|
6914
6914
|
const r = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], i = ["bottom", "top"];
|
|
6915
6915
|
switch (e) {
|
|
6916
6916
|
case "top":
|
|
@@ -6923,15 +6923,15 @@ function dp(e, t, n) {
|
|
|
6923
6923
|
return [];
|
|
6924
6924
|
}
|
|
6925
6925
|
}
|
|
6926
|
-
function
|
|
6926
|
+
function dp(e, t, n, r) {
|
|
6927
6927
|
const o = xt(e);
|
|
6928
|
-
let a =
|
|
6928
|
+
let a = up($e(e), n === "start", r);
|
|
6929
6929
|
return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(vr)))), a;
|
|
6930
6930
|
}
|
|
6931
6931
|
function un(e) {
|
|
6932
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
6932
|
+
return e.replace(/left|right|bottom|top/g, (t) => ip[t]);
|
|
6933
6933
|
}
|
|
6934
|
-
function
|
|
6934
|
+
function fp(e) {
|
|
6935
6935
|
return {
|
|
6936
6936
|
top: 0,
|
|
6937
6937
|
right: 0,
|
|
@@ -6940,8 +6940,8 @@ function pp(e) {
|
|
|
6940
6940
|
...e
|
|
6941
6941
|
};
|
|
6942
6942
|
}
|
|
6943
|
-
function
|
|
6944
|
-
return typeof e != "number" ?
|
|
6943
|
+
function Hi(e) {
|
|
6944
|
+
return typeof e != "number" ? fp(e) : {
|
|
6945
6945
|
top: e,
|
|
6946
6946
|
right: e,
|
|
6947
6947
|
bottom: e,
|
|
@@ -7014,7 +7014,7 @@ function qo(e, t, n) {
|
|
|
7014
7014
|
}
|
|
7015
7015
|
return v;
|
|
7016
7016
|
}
|
|
7017
|
-
const
|
|
7017
|
+
const pp = async (e, t, n) => {
|
|
7018
7018
|
const {
|
|
7019
7019
|
placement: r = "bottom",
|
|
7020
7020
|
strategy: o = "absolute",
|
|
@@ -7091,7 +7091,7 @@ async function Mt(e, t) {
|
|
|
7091
7091
|
elementContext: f = "floating",
|
|
7092
7092
|
altBoundary: p = !1,
|
|
7093
7093
|
padding: v = 0
|
|
7094
|
-
} = Fe(t, e), g =
|
|
7094
|
+
} = Fe(t, e), g = Hi(v), x = s[p ? f === "floating" ? "reference" : "floating" : f], h = dn(await a.getClippingRect({
|
|
7095
7095
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(x))) == null || n ? x : x.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
7096
7096
|
boundary: u,
|
|
7097
7097
|
rootBoundary: d,
|
|
@@ -7120,7 +7120,7 @@ async function Mt(e, t) {
|
|
|
7120
7120
|
right: (R.right - h.right + g.right) / S.x
|
|
7121
7121
|
};
|
|
7122
7122
|
}
|
|
7123
|
-
const
|
|
7123
|
+
const mp = (e) => ({
|
|
7124
7124
|
name: "arrow",
|
|
7125
7125
|
options: e,
|
|
7126
7126
|
async fn(t) {
|
|
@@ -7138,7 +7138,7 @@ const hp = (e) => ({
|
|
|
7138
7138
|
} = Fe(e, t) || {};
|
|
7139
7139
|
if (u == null)
|
|
7140
7140
|
return {};
|
|
7141
|
-
const f =
|
|
7141
|
+
const f = Hi(d), p = {
|
|
7142
7142
|
x: n,
|
|
7143
7143
|
y: r
|
|
7144
7144
|
}, v = zr(o), g = Wr(v), m = await i.getDimensions(u), x = v === "y", h = x ? "top" : "left", w = x ? "bottom" : "right", y = x ? "clientHeight" : "clientWidth", S = a.reference[g] + a.reference[v] - p[v] - a.floating[g], R = p[v] - a.reference[v], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
@@ -7157,7 +7157,7 @@ const hp = (e) => ({
|
|
|
7157
7157
|
reset: L
|
|
7158
7158
|
};
|
|
7159
7159
|
}
|
|
7160
|
-
}),
|
|
7160
|
+
}), hp = function(e) {
|
|
7161
7161
|
return e === void 0 && (e = {}), {
|
|
7162
7162
|
name: "flip",
|
|
7163
7163
|
options: e,
|
|
@@ -7181,12 +7181,12 @@ const hp = (e) => ({
|
|
|
7181
7181
|
} = Fe(e, t);
|
|
7182
7182
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
7183
7183
|
return {};
|
|
7184
|
-
const h = $e(o), w = _e(s), y = $e(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), R = p || (y || !m ? [un(s)] :
|
|
7185
|
-
!p && P && R.push(...
|
|
7184
|
+
const h = $e(o), w = _e(s), y = $e(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), R = p || (y || !m ? [un(s)] : cp(s)), P = g !== "none";
|
|
7185
|
+
!p && P && R.push(...dp(s, m, g, S));
|
|
7186
7186
|
const A = [s, ...R], C = await Mt(t, x), N = [];
|
|
7187
7187
|
let I = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
7188
7188
|
if (d && N.push(C[h]), f) {
|
|
7189
|
-
const V =
|
|
7189
|
+
const V = lp(o, i, S);
|
|
7190
7190
|
N.push(C[V[0]], C[V[1]]);
|
|
7191
7191
|
}
|
|
7192
7192
|
if (I = [...I, {
|
|
@@ -7248,9 +7248,9 @@ function Xo(e, t) {
|
|
|
7248
7248
|
};
|
|
7249
7249
|
}
|
|
7250
7250
|
function Zo(e) {
|
|
7251
|
-
return
|
|
7251
|
+
return ap.some((t) => e[t] >= 0);
|
|
7252
7252
|
}
|
|
7253
|
-
const
|
|
7253
|
+
const gp = function(e) {
|
|
7254
7254
|
return e === void 0 && (e = {}), {
|
|
7255
7255
|
name: "hide",
|
|
7256
7256
|
options: e,
|
|
@@ -7292,7 +7292,7 @@ const vp = function(e) {
|
|
|
7292
7292
|
}
|
|
7293
7293
|
};
|
|
7294
7294
|
};
|
|
7295
|
-
async function
|
|
7295
|
+
async function vp(e, t) {
|
|
7296
7296
|
const {
|
|
7297
7297
|
placement: n,
|
|
7298
7298
|
platform: r,
|
|
@@ -7319,7 +7319,7 @@ async function bp(e, t) {
|
|
|
7319
7319
|
y: v * d
|
|
7320
7320
|
};
|
|
7321
7321
|
}
|
|
7322
|
-
const
|
|
7322
|
+
const bp = function(e) {
|
|
7323
7323
|
return e === void 0 && (e = 0), {
|
|
7324
7324
|
name: "offset",
|
|
7325
7325
|
options: e,
|
|
@@ -7330,7 +7330,7 @@ const xp = function(e) {
|
|
|
7330
7330
|
y: a,
|
|
7331
7331
|
placement: i,
|
|
7332
7332
|
middlewareData: s
|
|
7333
|
-
} = t, l = await
|
|
7333
|
+
} = t, l = await vp(t, e);
|
|
7334
7334
|
return i === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
|
|
7335
7335
|
x: o + l.x,
|
|
7336
7336
|
y: a + l.y,
|
|
@@ -7341,7 +7341,7 @@ const xp = function(e) {
|
|
|
7341
7341
|
};
|
|
7342
7342
|
}
|
|
7343
7343
|
};
|
|
7344
|
-
},
|
|
7344
|
+
}, xp = function(e) {
|
|
7345
7345
|
return e === void 0 && (e = {}), {
|
|
7346
7346
|
name: "shift",
|
|
7347
7347
|
options: e,
|
|
@@ -7397,7 +7397,7 @@ const xp = function(e) {
|
|
|
7397
7397
|
};
|
|
7398
7398
|
}
|
|
7399
7399
|
};
|
|
7400
|
-
},
|
|
7400
|
+
}, wp = function(e) {
|
|
7401
7401
|
return e === void 0 && (e = {}), {
|
|
7402
7402
|
options: e,
|
|
7403
7403
|
fn(t) {
|
|
@@ -7439,7 +7439,7 @@ const xp = function(e) {
|
|
|
7439
7439
|
};
|
|
7440
7440
|
}
|
|
7441
7441
|
};
|
|
7442
|
-
},
|
|
7442
|
+
}, yp = function(e) {
|
|
7443
7443
|
return e === void 0 && (e = {}), {
|
|
7444
7444
|
name: "size",
|
|
7445
7445
|
options: e,
|
|
@@ -7484,7 +7484,7 @@ function Cn() {
|
|
|
7484
7484
|
return typeof window < "u";
|
|
7485
7485
|
}
|
|
7486
7486
|
function wt(e) {
|
|
7487
|
-
return
|
|
7487
|
+
return Wi(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
7488
7488
|
}
|
|
7489
7489
|
function ge(e) {
|
|
7490
7490
|
var t;
|
|
@@ -7492,9 +7492,9 @@ function ge(e) {
|
|
|
7492
7492
|
}
|
|
7493
7493
|
function Me(e) {
|
|
7494
7494
|
var t;
|
|
7495
|
-
return (t = (
|
|
7495
|
+
return (t = (Wi(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
7496
7496
|
}
|
|
7497
|
-
function
|
|
7497
|
+
function Wi(e) {
|
|
7498
7498
|
return Cn() ? e instanceof Node || e instanceof ge(e).Node : !1;
|
|
7499
7499
|
}
|
|
7500
7500
|
function ye(e) {
|
|
@@ -7515,7 +7515,7 @@ function Dt(e) {
|
|
|
7515
7515
|
} = Ce(e);
|
|
7516
7516
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
7517
7517
|
}
|
|
7518
|
-
function
|
|
7518
|
+
function Cp(e) {
|
|
7519
7519
|
return ["table", "td", "th"].includes(wt(e));
|
|
7520
7520
|
}
|
|
7521
7521
|
function En(e) {
|
|
@@ -7531,7 +7531,7 @@ function Br(e) {
|
|
|
7531
7531
|
const t = Ur(), n = ye(e) ? Ce(e) : e;
|
|
7532
7532
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
7533
7533
|
}
|
|
7534
|
-
function
|
|
7534
|
+
function Ep(e) {
|
|
7535
7535
|
let t = Je(e);
|
|
7536
7536
|
for (; Pe(t) && !mt(t); ) {
|
|
7537
7537
|
if (Br(t))
|
|
@@ -7572,14 +7572,14 @@ function Je(e) {
|
|
|
7572
7572
|
);
|
|
7573
7573
|
return Jo(t) ? t.host : t;
|
|
7574
7574
|
}
|
|
7575
|
-
function
|
|
7575
|
+
function zi(e) {
|
|
7576
7576
|
const t = Je(e);
|
|
7577
|
-
return mt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Pe(t) && Dt(t) ? t :
|
|
7577
|
+
return mt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Pe(t) && Dt(t) ? t : zi(t);
|
|
7578
7578
|
}
|
|
7579
7579
|
function Tt(e, t, n) {
|
|
7580
7580
|
var r;
|
|
7581
7581
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
7582
|
-
const o =
|
|
7582
|
+
const o = zi(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = ge(o);
|
|
7583
7583
|
if (a) {
|
|
7584
7584
|
const s = br(i);
|
|
7585
7585
|
return t.concat(i, i.visualViewport || [], Dt(o) ? o : [], s && n ? Tt(s) : []);
|
|
@@ -7589,7 +7589,7 @@ function Tt(e, t, n) {
|
|
|
7589
7589
|
function br(e) {
|
|
7590
7590
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
7591
7591
|
}
|
|
7592
|
-
function
|
|
7592
|
+
function Bi(e) {
|
|
7593
7593
|
const t = Ce(e);
|
|
7594
7594
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
7595
7595
|
const o = Pe(e), a = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, s = cn(n) !== a || cn(r) !== i;
|
|
@@ -7610,22 +7610,22 @@ function ft(e) {
|
|
|
7610
7610
|
width: r,
|
|
7611
7611
|
height: o,
|
|
7612
7612
|
$: a
|
|
7613
|
-
} =
|
|
7613
|
+
} = Bi(t);
|
|
7614
7614
|
let i = (a ? cn(n.width) : n.width) / r, s = (a ? cn(n.height) : n.height) / o;
|
|
7615
7615
|
return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
7616
7616
|
x: i,
|
|
7617
7617
|
y: s
|
|
7618
7618
|
};
|
|
7619
7619
|
}
|
|
7620
|
-
const
|
|
7621
|
-
function
|
|
7620
|
+
const Sp = /* @__PURE__ */ Ae(0);
|
|
7621
|
+
function Ui(e) {
|
|
7622
7622
|
const t = ge(e);
|
|
7623
|
-
return !Ur() || !t.visualViewport ?
|
|
7623
|
+
return !Ur() || !t.visualViewport ? Sp : {
|
|
7624
7624
|
x: t.visualViewport.offsetLeft,
|
|
7625
7625
|
y: t.visualViewport.offsetTop
|
|
7626
7626
|
};
|
|
7627
7627
|
}
|
|
7628
|
-
function
|
|
7628
|
+
function Rp(e, t, n) {
|
|
7629
7629
|
return t === void 0 && (t = !1), !n || t && n !== ge(e) ? !1 : t;
|
|
7630
7630
|
}
|
|
7631
7631
|
function tt(e, t, n, r) {
|
|
@@ -7633,7 +7633,7 @@ function tt(e, t, n, r) {
|
|
|
7633
7633
|
const o = e.getBoundingClientRect(), a = Gr(e);
|
|
7634
7634
|
let i = Ae(1);
|
|
7635
7635
|
t && (r ? ye(r) && (i = ft(r)) : i = ft(e));
|
|
7636
|
-
const s =
|
|
7636
|
+
const s = Rp(a, n, r) ? Ui(a) : Ae(0);
|
|
7637
7637
|
let l = (o.left + s.x) / i.x, u = (o.top + s.y) / i.y, d = o.width / i.x, f = o.height / i.y;
|
|
7638
7638
|
if (a) {
|
|
7639
7639
|
const p = ge(a), v = r && ye(r) ? ge(r) : r;
|
|
@@ -7654,7 +7654,7 @@ function Kr(e, t) {
|
|
|
7654
7654
|
const n = Sn(e).scrollLeft;
|
|
7655
7655
|
return t ? t.left + n : tt(Me(e)).left + n;
|
|
7656
7656
|
}
|
|
7657
|
-
function
|
|
7657
|
+
function Gi(e, t, n) {
|
|
7658
7658
|
n === void 0 && (n = !1);
|
|
7659
7659
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
7660
7660
|
// RTL <body> scrollbar.
|
|
@@ -7665,7 +7665,7 @@ function Ki(e, t, n) {
|
|
|
7665
7665
|
y: a
|
|
7666
7666
|
};
|
|
7667
7667
|
}
|
|
7668
|
-
function
|
|
7668
|
+
function _p(e) {
|
|
7669
7669
|
let {
|
|
7670
7670
|
elements: t,
|
|
7671
7671
|
rect: n,
|
|
@@ -7684,7 +7684,7 @@ function Ap(e) {
|
|
|
7684
7684
|
const v = tt(r);
|
|
7685
7685
|
u = ft(r), d.x = v.x + r.clientLeft, d.y = v.y + r.clientTop;
|
|
7686
7686
|
}
|
|
7687
|
-
const p = i && !f && !a ?
|
|
7687
|
+
const p = i && !f && !a ? Gi(i, l, !0) : Ae(0);
|
|
7688
7688
|
return {
|
|
7689
7689
|
width: n.width * u.x,
|
|
7690
7690
|
height: n.height * u.y,
|
|
@@ -7692,10 +7692,10 @@ function Ap(e) {
|
|
|
7692
7692
|
y: n.y * u.y - l.scrollTop * u.y + d.y + p.y
|
|
7693
7693
|
};
|
|
7694
7694
|
}
|
|
7695
|
-
function
|
|
7695
|
+
function Ap(e) {
|
|
7696
7696
|
return Array.from(e.getClientRects());
|
|
7697
7697
|
}
|
|
7698
|
-
function
|
|
7698
|
+
function Pp(e) {
|
|
7699
7699
|
const t = Me(e), n = Sn(e), r = e.ownerDocument.body, o = he(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = he(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7700
7700
|
let i = -n.scrollLeft + Kr(e);
|
|
7701
7701
|
const s = -n.scrollTop;
|
|
@@ -7706,7 +7706,7 @@ function Mp(e) {
|
|
|
7706
7706
|
y: s
|
|
7707
7707
|
};
|
|
7708
7708
|
}
|
|
7709
|
-
function
|
|
7709
|
+
function Mp(e, t) {
|
|
7710
7710
|
const n = ge(e), r = Me(e), o = n.visualViewport;
|
|
7711
7711
|
let a = r.clientWidth, i = r.clientHeight, s = 0, l = 0;
|
|
7712
7712
|
if (o) {
|
|
@@ -7721,7 +7721,7 @@ function Tp(e, t) {
|
|
|
7721
7721
|
y: l
|
|
7722
7722
|
};
|
|
7723
7723
|
}
|
|
7724
|
-
function
|
|
7724
|
+
function Tp(e, t) {
|
|
7725
7725
|
const n = tt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Pe(e) ? ft(e) : Ae(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, l = o * a.x, u = r * a.y;
|
|
7726
7726
|
return {
|
|
7727
7727
|
width: i,
|
|
@@ -7733,13 +7733,13 @@ function Op(e, t) {
|
|
|
7733
7733
|
function Qo(e, t, n) {
|
|
7734
7734
|
let r;
|
|
7735
7735
|
if (t === "viewport")
|
|
7736
|
-
r =
|
|
7736
|
+
r = Mp(e, n);
|
|
7737
7737
|
else if (t === "document")
|
|
7738
|
-
r =
|
|
7738
|
+
r = Pp(Me(e));
|
|
7739
7739
|
else if (ye(t))
|
|
7740
|
-
r =
|
|
7740
|
+
r = Tp(t, n);
|
|
7741
7741
|
else {
|
|
7742
|
-
const o =
|
|
7742
|
+
const o = Ui(e);
|
|
7743
7743
|
r = {
|
|
7744
7744
|
x: t.x - o.x,
|
|
7745
7745
|
y: t.y - o.y,
|
|
@@ -7749,11 +7749,11 @@ function Qo(e, t, n) {
|
|
|
7749
7749
|
}
|
|
7750
7750
|
return dn(r);
|
|
7751
7751
|
}
|
|
7752
|
-
function
|
|
7752
|
+
function Ki(e, t) {
|
|
7753
7753
|
const n = Je(e);
|
|
7754
|
-
return n === t || !ye(n) || mt(n) ? !1 : Ce(n).position === "fixed" ||
|
|
7754
|
+
return n === t || !ye(n) || mt(n) ? !1 : Ce(n).position === "fixed" || Ki(n, t);
|
|
7755
7755
|
}
|
|
7756
|
-
function
|
|
7756
|
+
function Op(e, t) {
|
|
7757
7757
|
const n = t.get(e);
|
|
7758
7758
|
if (n)
|
|
7759
7759
|
return n;
|
|
@@ -7762,18 +7762,18 @@ function kp(e, t) {
|
|
|
7762
7762
|
let i = a ? Je(e) : e;
|
|
7763
7763
|
for (; ye(i) && !mt(i); ) {
|
|
7764
7764
|
const s = Ce(i), l = Br(i);
|
|
7765
|
-
!l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Dt(i) && !l &&
|
|
7765
|
+
!l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Dt(i) && !l && Ki(e, i)) ? r = r.filter((d) => d !== i) : o = s, i = Je(i);
|
|
7766
7766
|
}
|
|
7767
7767
|
return t.set(e, r), r;
|
|
7768
7768
|
}
|
|
7769
|
-
function
|
|
7769
|
+
function kp(e) {
|
|
7770
7770
|
let {
|
|
7771
7771
|
element: t,
|
|
7772
7772
|
boundary: n,
|
|
7773
7773
|
rootBoundary: r,
|
|
7774
7774
|
strategy: o
|
|
7775
7775
|
} = e;
|
|
7776
|
-
const i = [...n === "clippingAncestors" ? En(t) ? [] :
|
|
7776
|
+
const i = [...n === "clippingAncestors" ? En(t) ? [] : Op(t, this._c) : [].concat(n), r], s = i[0], l = i.reduce((u, d) => {
|
|
7777
7777
|
const f = Qo(t, d, o);
|
|
7778
7778
|
return u.top = he(f.top, u.top), u.right = Ze(f.right, u.right), u.bottom = Ze(f.bottom, u.bottom), u.left = he(f.left, u.left), u;
|
|
7779
7779
|
}, Qo(t, s, o));
|
|
@@ -7784,17 +7784,17 @@ function Np(e) {
|
|
|
7784
7784
|
y: l.top
|
|
7785
7785
|
};
|
|
7786
7786
|
}
|
|
7787
|
-
function
|
|
7787
|
+
function Np(e) {
|
|
7788
7788
|
const {
|
|
7789
7789
|
width: t,
|
|
7790
7790
|
height: n
|
|
7791
|
-
} =
|
|
7791
|
+
} = Bi(e);
|
|
7792
7792
|
return {
|
|
7793
7793
|
width: t,
|
|
7794
7794
|
height: n
|
|
7795
7795
|
};
|
|
7796
7796
|
}
|
|
7797
|
-
function
|
|
7797
|
+
function Ip(e, t, n) {
|
|
7798
7798
|
const r = Pe(t), o = Me(t), a = n === "fixed", i = tt(e, !0, a, t);
|
|
7799
7799
|
let s = {
|
|
7800
7800
|
scrollLeft: 0,
|
|
@@ -7810,7 +7810,7 @@ function Dp(e, t, n) {
|
|
|
7810
7810
|
l.x = v.x + t.clientLeft, l.y = v.y + t.clientTop;
|
|
7811
7811
|
} else o && u();
|
|
7812
7812
|
a && !r && o && u();
|
|
7813
|
-
const d = o && !r && !a ?
|
|
7813
|
+
const d = o && !r && !a ? Gi(o, s) : Ae(0), f = i.left + s.scrollLeft - l.x - d.x, p = i.top + s.scrollTop - l.y - d.y;
|
|
7814
7814
|
return {
|
|
7815
7815
|
x: f,
|
|
7816
7816
|
y: p,
|
|
@@ -7829,7 +7829,7 @@ function ea(e, t) {
|
|
|
7829
7829
|
let n = e.offsetParent;
|
|
7830
7830
|
return Me(e) === n && (n = n.ownerDocument.body), n;
|
|
7831
7831
|
}
|
|
7832
|
-
function
|
|
7832
|
+
function Yi(e, t) {
|
|
7833
7833
|
const n = ge(e);
|
|
7834
7834
|
if (En(e))
|
|
7835
7835
|
return n;
|
|
@@ -7843,14 +7843,14 @@ function qi(e, t) {
|
|
|
7843
7843
|
return n;
|
|
7844
7844
|
}
|
|
7845
7845
|
let r = ea(e, t);
|
|
7846
|
-
for (; r &&
|
|
7846
|
+
for (; r && Cp(r) && Jn(r); )
|
|
7847
7847
|
r = ea(r, t);
|
|
7848
|
-
return r && mt(r) && Jn(r) && !Br(r) ? n : r ||
|
|
7848
|
+
return r && mt(r) && Jn(r) && !Br(r) ? n : r || Ep(e) || n;
|
|
7849
7849
|
}
|
|
7850
|
-
const
|
|
7851
|
-
const t = this.getOffsetParent ||
|
|
7850
|
+
const Dp = async function(e) {
|
|
7851
|
+
const t = this.getOffsetParent || Yi, n = this.getDimensions, r = await n(e.floating);
|
|
7852
7852
|
return {
|
|
7853
|
-
reference:
|
|
7853
|
+
reference: Ip(e.reference, await t(e.floating), e.strategy),
|
|
7854
7854
|
floating: {
|
|
7855
7855
|
x: 0,
|
|
7856
7856
|
y: 0,
|
|
@@ -7859,25 +7859,25 @@ const Lp = async function(e) {
|
|
|
7859
7859
|
}
|
|
7860
7860
|
};
|
|
7861
7861
|
};
|
|
7862
|
-
function
|
|
7862
|
+
function Lp(e) {
|
|
7863
7863
|
return Ce(e).direction === "rtl";
|
|
7864
7864
|
}
|
|
7865
|
-
const
|
|
7866
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
7865
|
+
const jp = {
|
|
7866
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: _p,
|
|
7867
7867
|
getDocumentElement: Me,
|
|
7868
|
-
getClippingRect:
|
|
7869
|
-
getOffsetParent:
|
|
7870
|
-
getElementRects:
|
|
7871
|
-
getClientRects:
|
|
7872
|
-
getDimensions:
|
|
7868
|
+
getClippingRect: kp,
|
|
7869
|
+
getOffsetParent: Yi,
|
|
7870
|
+
getElementRects: Dp,
|
|
7871
|
+
getClientRects: Ap,
|
|
7872
|
+
getDimensions: Np,
|
|
7873
7873
|
getScale: ft,
|
|
7874
7874
|
isElement: ye,
|
|
7875
|
-
isRTL:
|
|
7875
|
+
isRTL: Lp
|
|
7876
7876
|
};
|
|
7877
|
-
function
|
|
7877
|
+
function qi(e, t) {
|
|
7878
7878
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
7879
7879
|
}
|
|
7880
|
-
function
|
|
7880
|
+
function Fp(e, t) {
|
|
7881
7881
|
let n = null, r;
|
|
7882
7882
|
const o = Me(e);
|
|
7883
7883
|
function a() {
|
|
@@ -7908,7 +7908,7 @@ function $p(e, t) {
|
|
|
7908
7908
|
i(!1, 1e-7);
|
|
7909
7909
|
}, 1e3);
|
|
7910
7910
|
}
|
|
7911
|
-
A === 1 && !
|
|
7911
|
+
A === 1 && !qi(u, e.getBoundingClientRect()) && i(), S = !1;
|
|
7912
7912
|
}
|
|
7913
7913
|
try {
|
|
7914
7914
|
n = new IntersectionObserver(R, {
|
|
@@ -7923,7 +7923,7 @@ function $p(e, t) {
|
|
|
7923
7923
|
}
|
|
7924
7924
|
return i(!0), a;
|
|
7925
7925
|
}
|
|
7926
|
-
function
|
|
7926
|
+
function $p(e, t, n, r) {
|
|
7927
7927
|
r === void 0 && (r = {});
|
|
7928
7928
|
const {
|
|
7929
7929
|
ancestorScroll: o = !0,
|
|
@@ -7937,7 +7937,7 @@ function Vp(e, t, n, r) {
|
|
|
7937
7937
|
passive: !0
|
|
7938
7938
|
}), a && h.addEventListener("resize", n);
|
|
7939
7939
|
});
|
|
7940
|
-
const f = u && s ?
|
|
7940
|
+
const f = u && s ? Fp(u, n) : null;
|
|
7941
7941
|
let p = -1, v = null;
|
|
7942
7942
|
i && (v = new ResizeObserver((h) => {
|
|
7943
7943
|
let [w] = h;
|
|
@@ -7950,7 +7950,7 @@ function Vp(e, t, n, r) {
|
|
|
7950
7950
|
l && x();
|
|
7951
7951
|
function x() {
|
|
7952
7952
|
const h = tt(e);
|
|
7953
|
-
m && !
|
|
7953
|
+
m && !qi(m, h) && n(), m = h, g = requestAnimationFrame(x);
|
|
7954
7954
|
}
|
|
7955
7955
|
return n(), () => {
|
|
7956
7956
|
var h;
|
|
@@ -7959,21 +7959,21 @@ function Vp(e, t, n, r) {
|
|
|
7959
7959
|
}), f == null || f(), (h = v) == null || h.disconnect(), v = null, l && cancelAnimationFrame(g);
|
|
7960
7960
|
};
|
|
7961
7961
|
}
|
|
7962
|
-
const Hp = xp, Wp =
|
|
7962
|
+
const Vp = bp, Hp = xp, Wp = hp, zp = yp, Bp = gp, ta = mp, Up = wp, Gp = (e, t, n) => {
|
|
7963
7963
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
7964
|
-
platform:
|
|
7964
|
+
platform: jp,
|
|
7965
7965
|
...n
|
|
7966
7966
|
}, a = {
|
|
7967
7967
|
...o.platform,
|
|
7968
7968
|
_c: r
|
|
7969
7969
|
};
|
|
7970
|
-
return
|
|
7970
|
+
return pp(e, t, {
|
|
7971
7971
|
...o,
|
|
7972
7972
|
platform: a
|
|
7973
7973
|
});
|
|
7974
7974
|
};
|
|
7975
|
-
var
|
|
7976
|
-
}, rn =
|
|
7975
|
+
var Kp = typeof document < "u", Yp = function() {
|
|
7976
|
+
}, rn = Kp ? la : Yp;
|
|
7977
7977
|
function fn(e, t) {
|
|
7978
7978
|
if (e === t)
|
|
7979
7979
|
return !0;
|
|
@@ -8004,11 +8004,11 @@ function fn(e, t) {
|
|
|
8004
8004
|
}
|
|
8005
8005
|
return e !== e && t !== t;
|
|
8006
8006
|
}
|
|
8007
|
-
function
|
|
8007
|
+
function Xi(e) {
|
|
8008
8008
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
8009
8009
|
}
|
|
8010
8010
|
function na(e, t) {
|
|
8011
|
-
const n =
|
|
8011
|
+
const n = Xi(e);
|
|
8012
8012
|
return Math.round(t * n) / n;
|
|
8013
8013
|
}
|
|
8014
8014
|
function Qn(e) {
|
|
@@ -8017,7 +8017,7 @@ function Qn(e) {
|
|
|
8017
8017
|
t.current = e;
|
|
8018
8018
|
}), t;
|
|
8019
8019
|
}
|
|
8020
|
-
function
|
|
8020
|
+
function qp(e) {
|
|
8021
8021
|
e === void 0 && (e = {});
|
|
8022
8022
|
const {
|
|
8023
8023
|
placement: t = "bottom",
|
|
@@ -8052,7 +8052,7 @@ function Xp(e) {
|
|
|
8052
8052
|
strategy: n,
|
|
8053
8053
|
middleware: p
|
|
8054
8054
|
};
|
|
8055
|
-
W.current && (_.platform = W.current),
|
|
8055
|
+
W.current && (_.platform = W.current), Gp(P.current, A.current, _).then((M) => {
|
|
8056
8056
|
const E = {
|
|
8057
8057
|
...M,
|
|
8058
8058
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -8061,7 +8061,7 @@ function Xp(e) {
|
|
|
8061
8061
|
// setting it to `true` when `open === false` (must be specified).
|
|
8062
8062
|
isPositioned: z.current !== !1
|
|
8063
8063
|
};
|
|
8064
|
-
V.current && !fn(C.current, E) && (C.current = E,
|
|
8064
|
+
V.current && !fn(C.current, E) && (C.current = E, da.flushSync(() => {
|
|
8065
8065
|
f(E);
|
|
8066
8066
|
}));
|
|
8067
8067
|
});
|
|
@@ -8102,7 +8102,7 @@ function Xp(e) {
|
|
|
8102
8102
|
return s ? {
|
|
8103
8103
|
..._,
|
|
8104
8104
|
transform: "translate(" + M + "px, " + E + "px)",
|
|
8105
|
-
...
|
|
8105
|
+
...Xi(L.floating) >= 1.5 && {
|
|
8106
8106
|
willChange: "transform"
|
|
8107
8107
|
}
|
|
8108
8108
|
} : {
|
|
@@ -8119,7 +8119,7 @@ function Xp(e) {
|
|
|
8119
8119
|
floatingStyles: U
|
|
8120
8120
|
}), [d, $, Y, L, U]);
|
|
8121
8121
|
}
|
|
8122
|
-
const
|
|
8122
|
+
const Xp = (e) => {
|
|
8123
8123
|
function t(n) {
|
|
8124
8124
|
return {}.hasOwnProperty.call(n, "current");
|
|
8125
8125
|
}
|
|
@@ -8140,14 +8140,17 @@ const Zp = (e) => {
|
|
|
8140
8140
|
}).fn(n) : {};
|
|
8141
8141
|
}
|
|
8142
8142
|
};
|
|
8143
|
-
},
|
|
8143
|
+
}, Zp = (e, t) => ({
|
|
8144
|
+
...Vp(e),
|
|
8145
|
+
options: [e, t]
|
|
8146
|
+
}), Jp = (e, t) => ({
|
|
8144
8147
|
...Hp(e),
|
|
8145
8148
|
options: [e, t]
|
|
8146
8149
|
}), Qp = (e, t) => ({
|
|
8147
|
-
...
|
|
8150
|
+
...Up(e),
|
|
8148
8151
|
options: [e, t]
|
|
8149
8152
|
}), em = (e, t) => ({
|
|
8150
|
-
...
|
|
8153
|
+
...Wp(e),
|
|
8151
8154
|
options: [e, t]
|
|
8152
8155
|
}), tm = (e, t) => ({
|
|
8153
8156
|
...zp(e),
|
|
@@ -8156,13 +8159,10 @@ const Zp = (e) => {
|
|
|
8156
8159
|
...Bp(e),
|
|
8157
8160
|
options: [e, t]
|
|
8158
8161
|
}), rm = (e, t) => ({
|
|
8159
|
-
...
|
|
8160
|
-
options: [e, t]
|
|
8161
|
-
}), om = (e, t) => ({
|
|
8162
|
-
...Zp(e),
|
|
8162
|
+
...Xp(e),
|
|
8163
8163
|
options: [e, t]
|
|
8164
8164
|
});
|
|
8165
|
-
var
|
|
8165
|
+
var om = "Arrow", Zi = c.forwardRef((e, t) => {
|
|
8166
8166
|
const { children: n, width: r = 10, height: o = 5, ...a } = e;
|
|
8167
8167
|
return /* @__PURE__ */ b.jsx(
|
|
8168
8168
|
ne.svg,
|
|
@@ -8177,9 +8177,9 @@ var am = "Arrow", Ji = c.forwardRef((e, t) => {
|
|
|
8177
8177
|
}
|
|
8178
8178
|
);
|
|
8179
8179
|
});
|
|
8180
|
-
|
|
8181
|
-
var
|
|
8182
|
-
function
|
|
8180
|
+
Zi.displayName = om;
|
|
8181
|
+
var am = Zi;
|
|
8182
|
+
function im(e) {
|
|
8183
8183
|
const [t, n] = c.useState(void 0);
|
|
8184
8184
|
return Xe(() => {
|
|
8185
8185
|
if (e) {
|
|
@@ -8201,21 +8201,21 @@ function sm(e) {
|
|
|
8201
8201
|
n(void 0);
|
|
8202
8202
|
}, [e]), t;
|
|
8203
8203
|
}
|
|
8204
|
-
var Yr = "Popper", [
|
|
8204
|
+
var Yr = "Popper", [Ji, Rn] = rt(Yr), [sm, Qi] = Ji(Yr), es = (e) => {
|
|
8205
8205
|
const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
|
|
8206
|
-
return /* @__PURE__ */ b.jsx(
|
|
8206
|
+
return /* @__PURE__ */ b.jsx(sm, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
8207
8207
|
};
|
|
8208
|
-
|
|
8209
|
-
var
|
|
8208
|
+
es.displayName = Yr;
|
|
8209
|
+
var ts = "PopperAnchor", ns = c.forwardRef(
|
|
8210
8210
|
(e, t) => {
|
|
8211
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, a =
|
|
8211
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, a = Qi(ts, n), i = c.useRef(null), s = ie(t, i);
|
|
8212
8212
|
return c.useEffect(() => {
|
|
8213
8213
|
a.onAnchorChange((r == null ? void 0 : r.current) || i.current);
|
|
8214
8214
|
}), r ? null : /* @__PURE__ */ b.jsx(ne.div, { ...o, ref: s });
|
|
8215
8215
|
}
|
|
8216
8216
|
);
|
|
8217
|
-
|
|
8218
|
-
var qr = "PopperContent", [
|
|
8217
|
+
ns.displayName = ts;
|
|
8218
|
+
var qr = "PopperContent", [lm, cm] = Ji(qr), rs = c.forwardRef(
|
|
8219
8219
|
(e, t) => {
|
|
8220
8220
|
var G, J, Q, oe, xe, ze;
|
|
8221
8221
|
const {
|
|
@@ -8233,42 +8233,42 @@ var qr = "PopperContent", [cm, um] = Qi(qr), os = c.forwardRef(
|
|
|
8233
8233
|
updatePositionStrategy: v = "optimized",
|
|
8234
8234
|
onPlaced: g,
|
|
8235
8235
|
...m
|
|
8236
|
-
} = e, x =
|
|
8236
|
+
} = e, x = Qi(qr, n), [h, w] = c.useState(null), y = ie(t, (X) => w(X)), [S, R] = c.useState(null), P = im(S), A = (P == null ? void 0 : P.width) ?? 0, C = (P == null ? void 0 : P.height) ?? 0, N = r + (a !== "center" ? "-" + a : ""), I = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, W = Array.isArray(u) ? u : [u], z = W.length > 0, $ = {
|
|
8237
8237
|
padding: I,
|
|
8238
|
-
boundary: W.filter(
|
|
8238
|
+
boundary: W.filter(dm),
|
|
8239
8239
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
8240
8240
|
altBoundary: z
|
|
8241
|
-
}, { refs: V, floatingStyles: Y, placement: L, isPositioned: U, middlewareData: _ } =
|
|
8241
|
+
}, { refs: V, floatingStyles: Y, placement: L, isPositioned: U, middlewareData: _ } = qp({
|
|
8242
8242
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
8243
8243
|
strategy: "fixed",
|
|
8244
8244
|
placement: N,
|
|
8245
|
-
whileElementsMounted: (...X) =>
|
|
8245
|
+
whileElementsMounted: (...X) => $p(...X, {
|
|
8246
8246
|
animationFrame: v === "always"
|
|
8247
8247
|
}),
|
|
8248
8248
|
elements: {
|
|
8249
8249
|
reference: x.anchor
|
|
8250
8250
|
},
|
|
8251
8251
|
middleware: [
|
|
8252
|
-
|
|
8253
|
-
l &&
|
|
8252
|
+
Zp({ mainAxis: o + C, alignmentAxis: i }),
|
|
8253
|
+
l && Jp({
|
|
8254
8254
|
mainAxis: !0,
|
|
8255
8255
|
crossAxis: !1,
|
|
8256
|
-
limiter: f === "partial" ?
|
|
8256
|
+
limiter: f === "partial" ? Qp() : void 0,
|
|
8257
8257
|
...$
|
|
8258
8258
|
}),
|
|
8259
|
-
l &&
|
|
8260
|
-
|
|
8259
|
+
l && em({ ...$ }),
|
|
8260
|
+
tm({
|
|
8261
8261
|
...$,
|
|
8262
8262
|
apply: ({ elements: X, rects: Z, availableWidth: se, availableHeight: te }) => {
|
|
8263
8263
|
const { width: me, height: Be } = Z.reference, re = X.floating.style;
|
|
8264
8264
|
re.setProperty("--radix-popper-available-width", `${se}px`), re.setProperty("--radix-popper-available-height", `${te}px`), re.setProperty("--radix-popper-anchor-width", `${me}px`), re.setProperty("--radix-popper-anchor-height", `${Be}px`);
|
|
8265
8265
|
}
|
|
8266
8266
|
}),
|
|
8267
|
-
S &&
|
|
8268
|
-
|
|
8269
|
-
p &&
|
|
8267
|
+
S && rm({ element: S, padding: s }),
|
|
8268
|
+
fm({ arrowWidth: A, arrowHeight: C }),
|
|
8269
|
+
p && nm({ strategy: "referenceHidden", ...$ })
|
|
8270
8270
|
]
|
|
8271
|
-
}), [M, E] =
|
|
8271
|
+
}), [M, E] = is(L), T = je(g);
|
|
8272
8272
|
Xe(() => {
|
|
8273
8273
|
U && (T == null || T());
|
|
8274
8274
|
}, [U, T]);
|
|
@@ -8300,7 +8300,7 @@ var qr = "PopperContent", [cm, um] = Qi(qr), os = c.forwardRef(
|
|
|
8300
8300
|
},
|
|
8301
8301
|
dir: e.dir,
|
|
8302
8302
|
children: /* @__PURE__ */ b.jsx(
|
|
8303
|
-
|
|
8303
|
+
lm,
|
|
8304
8304
|
{
|
|
8305
8305
|
scope: n,
|
|
8306
8306
|
placedSide: M,
|
|
@@ -8329,14 +8329,14 @@ var qr = "PopperContent", [cm, um] = Qi(qr), os = c.forwardRef(
|
|
|
8329
8329
|
);
|
|
8330
8330
|
}
|
|
8331
8331
|
);
|
|
8332
|
-
|
|
8333
|
-
var
|
|
8332
|
+
rs.displayName = qr;
|
|
8333
|
+
var os = "PopperArrow", um = {
|
|
8334
8334
|
top: "bottom",
|
|
8335
8335
|
right: "left",
|
|
8336
8336
|
bottom: "top",
|
|
8337
8337
|
left: "right"
|
|
8338
|
-
},
|
|
8339
|
-
const { __scopePopper: r, ...o } = t, a =
|
|
8338
|
+
}, as = c.forwardRef(function(t, n) {
|
|
8339
|
+
const { __scopePopper: r, ...o } = t, a = cm(os, r), i = um[a.placedSide];
|
|
8340
8340
|
return (
|
|
8341
8341
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
8342
8342
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -8365,7 +8365,7 @@ var as = "PopperArrow", dm = {
|
|
|
8365
8365
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
8366
8366
|
},
|
|
8367
8367
|
children: /* @__PURE__ */ b.jsx(
|
|
8368
|
-
|
|
8368
|
+
am,
|
|
8369
8369
|
{
|
|
8370
8370
|
...o,
|
|
8371
8371
|
ref: n,
|
|
@@ -8380,25 +8380,25 @@ var as = "PopperArrow", dm = {
|
|
|
8380
8380
|
)
|
|
8381
8381
|
);
|
|
8382
8382
|
});
|
|
8383
|
-
|
|
8384
|
-
function
|
|
8383
|
+
as.displayName = os;
|
|
8384
|
+
function dm(e) {
|
|
8385
8385
|
return e !== null;
|
|
8386
8386
|
}
|
|
8387
|
-
var
|
|
8387
|
+
var fm = (e) => ({
|
|
8388
8388
|
name: "transformOrigin",
|
|
8389
8389
|
options: e,
|
|
8390
8390
|
fn(t) {
|
|
8391
8391
|
var x, h, w;
|
|
8392
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = ((x = o.arrow) == null ? void 0 : x.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, d] =
|
|
8392
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = ((x = o.arrow) == null ? void 0 : x.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, d] = is(n), f = { start: "0%", center: "50%", end: "100%" }[d], p = (((h = o.arrow) == null ? void 0 : h.x) ?? 0) + s / 2, v = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + l / 2;
|
|
8393
8393
|
let g = "", m = "";
|
|
8394
8394
|
return u === "bottom" ? (g = i ? f : `${p}px`, m = `${-l}px`) : u === "top" ? (g = i ? f : `${p}px`, m = `${r.floating.height + l}px`) : u === "right" ? (g = `${-l}px`, m = i ? f : `${v}px`) : u === "left" && (g = `${r.floating.width + l}px`, m = i ? f : `${v}px`), { data: { x: g, y: m } };
|
|
8395
8395
|
}
|
|
8396
8396
|
});
|
|
8397
|
-
function
|
|
8397
|
+
function is(e) {
|
|
8398
8398
|
const [t, n = "center"] = e.split("-");
|
|
8399
8399
|
return [t, n];
|
|
8400
8400
|
}
|
|
8401
|
-
var
|
|
8401
|
+
var pm = es, ss = ns, ls = rs, cs = as, mm = Object.freeze({
|
|
8402
8402
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
8403
8403
|
position: "absolute",
|
|
8404
8404
|
border: 0,
|
|
@@ -8410,23 +8410,23 @@ var mm = ts, ls = rs, cs = os, us = is, hm = Object.freeze({
|
|
|
8410
8410
|
clip: "rect(0, 0, 0, 0)",
|
|
8411
8411
|
whiteSpace: "nowrap",
|
|
8412
8412
|
wordWrap: "normal"
|
|
8413
|
-
}),
|
|
8413
|
+
}), hm = "VisuallyHidden", us = c.forwardRef(
|
|
8414
8414
|
(e, t) => /* @__PURE__ */ b.jsx(
|
|
8415
8415
|
ne.span,
|
|
8416
8416
|
{
|
|
8417
8417
|
...e,
|
|
8418
8418
|
ref: t,
|
|
8419
|
-
style: { ...
|
|
8419
|
+
style: { ...mm, ...e.style }
|
|
8420
8420
|
}
|
|
8421
8421
|
)
|
|
8422
8422
|
);
|
|
8423
|
-
|
|
8424
|
-
var
|
|
8423
|
+
us.displayName = hm;
|
|
8424
|
+
var gm = us, [_n, G0] = rt("Tooltip", [
|
|
8425
8425
|
Rn
|
|
8426
|
-
]), Xr = Rn(),
|
|
8426
|
+
]), Xr = Rn(), ds = "TooltipProvider", vm = 700, ra = "tooltip.open", [bm, fs] = _n(ds), ps = (e) => {
|
|
8427
8427
|
const {
|
|
8428
8428
|
__scopeTooltip: t,
|
|
8429
|
-
delayDuration: n =
|
|
8429
|
+
delayDuration: n = vm,
|
|
8430
8430
|
skipDelayDuration: r = 300,
|
|
8431
8431
|
disableHoverableContent: o = !1,
|
|
8432
8432
|
children: a
|
|
@@ -8435,7 +8435,7 @@ var vm = ds, [_n, G0] = rt("Tooltip", [
|
|
|
8435
8435
|
const u = l.current;
|
|
8436
8436
|
return () => window.clearTimeout(u);
|
|
8437
8437
|
}, []), /* @__PURE__ */ b.jsx(
|
|
8438
|
-
|
|
8438
|
+
bm,
|
|
8439
8439
|
{
|
|
8440
8440
|
scope: t,
|
|
8441
8441
|
isOpenDelayedRef: i,
|
|
@@ -8458,11 +8458,11 @@ var vm = ds, [_n, G0] = rt("Tooltip", [
|
|
|
8458
8458
|
}
|
|
8459
8459
|
);
|
|
8460
8460
|
};
|
|
8461
|
-
|
|
8462
|
-
var
|
|
8461
|
+
ps.displayName = ds;
|
|
8462
|
+
var ms = "Tooltip", [K0, An] = _n(ms), xr = "TooltipTrigger", xm = c.forwardRef(
|
|
8463
8463
|
(e, t) => {
|
|
8464
|
-
const { __scopeTooltip: n, ...r } = e, o = An(xr, n), a =
|
|
8465
|
-
return c.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ b.jsx(
|
|
8464
|
+
const { __scopeTooltip: n, ...r } = e, o = An(xr, n), a = fs(xr, n), i = Xr(n), s = c.useRef(null), l = ie(t, s, o.onTriggerChange), u = c.useRef(!1), d = c.useRef(!1), f = c.useCallback(() => u.current = !1, []);
|
|
8465
|
+
return c.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ b.jsx(ss, { asChild: !0, ...i, children: /* @__PURE__ */ b.jsx(
|
|
8466
8466
|
ne.button,
|
|
8467
8467
|
{
|
|
8468
8468
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -8487,20 +8487,20 @@ var hs = "Tooltip", [K0, An] = _n(hs), xr = "TooltipTrigger", wm = c.forwardRef(
|
|
|
8487
8487
|
) });
|
|
8488
8488
|
}
|
|
8489
8489
|
);
|
|
8490
|
-
|
|
8491
|
-
var
|
|
8490
|
+
xm.displayName = xr;
|
|
8491
|
+
var wm = "TooltipPortal", [Y0, ym] = _n(wm, {
|
|
8492
8492
|
forceMount: void 0
|
|
8493
|
-
}), ht = "TooltipContent",
|
|
8493
|
+
}), ht = "TooltipContent", hs = c.forwardRef(
|
|
8494
8494
|
(e, t) => {
|
|
8495
|
-
const n =
|
|
8496
|
-
return /* @__PURE__ */ b.jsx(We, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ b.jsx(
|
|
8495
|
+
const n = ym(ht, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, i = An(ht, e.__scopeTooltip);
|
|
8496
|
+
return /* @__PURE__ */ b.jsx(We, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ b.jsx(gs, { side: o, ...a, ref: t }) : /* @__PURE__ */ b.jsx(Cm, { side: o, ...a, ref: t }) });
|
|
8497
8497
|
}
|
|
8498
|
-
),
|
|
8499
|
-
const n = An(ht, e.__scopeTooltip), r =
|
|
8498
|
+
), Cm = c.forwardRef((e, t) => {
|
|
8499
|
+
const n = An(ht, e.__scopeTooltip), r = fs(ht, e.__scopeTooltip), o = c.useRef(null), a = ie(t, o), [i, s] = c.useState(null), { trigger: l, onClose: u } = n, d = o.current, { onPointerInTransitChange: f } = r, p = c.useCallback(() => {
|
|
8500
8500
|
s(null), f(!1);
|
|
8501
8501
|
}, [f]), v = c.useCallback(
|
|
8502
8502
|
(g, m) => {
|
|
8503
|
-
const x = g.currentTarget, h = { x: g.clientX, y: g.clientY }, w =
|
|
8503
|
+
const x = g.currentTarget, h = { x: g.clientX, y: g.clientY }, w = Am(h, x.getBoundingClientRect()), y = Pm(h, w), S = Mm(m.getBoundingClientRect()), R = Om([...y, ...S]);
|
|
8504
8504
|
s(R), f(!0);
|
|
8505
8505
|
},
|
|
8506
8506
|
[f]
|
|
@@ -8515,13 +8515,13 @@ var ym = "TooltipPortal", [Y0, Cm] = _n(ym, {
|
|
|
8515
8515
|
}, [l, d, v, p]), c.useEffect(() => {
|
|
8516
8516
|
if (i) {
|
|
8517
8517
|
const g = (m) => {
|
|
8518
|
-
const x = m.target, h = { x: m.clientX, y: m.clientY }, w = (l == null ? void 0 : l.contains(x)) || (d == null ? void 0 : d.contains(x)), y = !
|
|
8518
|
+
const x = m.target, h = { x: m.clientX, y: m.clientY }, w = (l == null ? void 0 : l.contains(x)) || (d == null ? void 0 : d.contains(x)), y = !Tm(h, i);
|
|
8519
8519
|
w ? p() : y && (p(), u());
|
|
8520
8520
|
};
|
|
8521
8521
|
return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
|
|
8522
8522
|
}
|
|
8523
|
-
}, [l, d, i, u, p]), /* @__PURE__ */ b.jsx(
|
|
8524
|
-
}), [
|
|
8523
|
+
}, [l, d, i, u, p]), /* @__PURE__ */ b.jsx(gs, { ...e, ref: a });
|
|
8524
|
+
}), [Em, Sm] = _n(ms, { isInside: !1 }), Rm = /* @__PURE__ */ Vu("TooltipContent"), gs = c.forwardRef(
|
|
8525
8525
|
(e, t) => {
|
|
8526
8526
|
const {
|
|
8527
8527
|
__scopeTooltip: n,
|
|
@@ -8549,7 +8549,7 @@ var ym = "TooltipPortal", [Y0, Cm] = _n(ym, {
|
|
|
8549
8549
|
onFocusOutside: (f) => f.preventDefault(),
|
|
8550
8550
|
onDismiss: d,
|
|
8551
8551
|
children: /* @__PURE__ */ b.jsxs(
|
|
8552
|
-
|
|
8552
|
+
ls,
|
|
8553
8553
|
{
|
|
8554
8554
|
"data-state": l.stateAttribute,
|
|
8555
8555
|
...u,
|
|
@@ -8564,8 +8564,8 @@ var ym = "TooltipPortal", [Y0, Cm] = _n(ym, {
|
|
|
8564
8564
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
8565
8565
|
},
|
|
8566
8566
|
children: [
|
|
8567
|
-
/* @__PURE__ */ b.jsx(
|
|
8568
|
-
/* @__PURE__ */ b.jsx(
|
|
8567
|
+
/* @__PURE__ */ b.jsx(Rm, { children: r }),
|
|
8568
|
+
/* @__PURE__ */ b.jsx(Em, { scope: n, isInside: !0, children: /* @__PURE__ */ b.jsx(gm, { id: l.contentId, role: "tooltip", children: o || r }) })
|
|
8569
8569
|
]
|
|
8570
8570
|
}
|
|
8571
8571
|
)
|
|
@@ -8573,18 +8573,18 @@ var ym = "TooltipPortal", [Y0, Cm] = _n(ym, {
|
|
|
8573
8573
|
);
|
|
8574
8574
|
}
|
|
8575
8575
|
);
|
|
8576
|
-
|
|
8577
|
-
var
|
|
8576
|
+
hs.displayName = ht;
|
|
8577
|
+
var vs = "TooltipArrow", _m = c.forwardRef(
|
|
8578
8578
|
(e, t) => {
|
|
8579
8579
|
const { __scopeTooltip: n, ...r } = e, o = Xr(n);
|
|
8580
|
-
return
|
|
8581
|
-
|
|
8580
|
+
return Sm(
|
|
8581
|
+
vs,
|
|
8582
8582
|
n
|
|
8583
|
-
).isInside ? null : /* @__PURE__ */ b.jsx(
|
|
8583
|
+
).isInside ? null : /* @__PURE__ */ b.jsx(cs, { ...o, ...r, ref: t });
|
|
8584
8584
|
}
|
|
8585
8585
|
);
|
|
8586
|
-
|
|
8587
|
-
function
|
|
8586
|
+
_m.displayName = vs;
|
|
8587
|
+
function Am(e, t) {
|
|
8588
8588
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
8589
8589
|
switch (Math.min(n, r, o, a)) {
|
|
8590
8590
|
case a:
|
|
@@ -8599,7 +8599,7 @@ function Pm(e, t) {
|
|
|
8599
8599
|
throw new Error("unreachable");
|
|
8600
8600
|
}
|
|
8601
8601
|
}
|
|
8602
|
-
function
|
|
8602
|
+
function Pm(e, t, n = 5) {
|
|
8603
8603
|
const r = [];
|
|
8604
8604
|
switch (t) {
|
|
8605
8605
|
case "top":
|
|
@@ -8629,7 +8629,7 @@ function Mm(e, t, n = 5) {
|
|
|
8629
8629
|
}
|
|
8630
8630
|
return r;
|
|
8631
8631
|
}
|
|
8632
|
-
function
|
|
8632
|
+
function Mm(e) {
|
|
8633
8633
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
8634
8634
|
return [
|
|
8635
8635
|
{ x: o, y: t },
|
|
@@ -8638,7 +8638,7 @@ function Tm(e) {
|
|
|
8638
8638
|
{ x: o, y: r }
|
|
8639
8639
|
];
|
|
8640
8640
|
}
|
|
8641
|
-
function
|
|
8641
|
+
function Tm(e, t) {
|
|
8642
8642
|
const { x: n, y: r } = e;
|
|
8643
8643
|
let o = !1;
|
|
8644
8644
|
for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
|
|
@@ -8647,11 +8647,11 @@ function Om(e, t) {
|
|
|
8647
8647
|
}
|
|
8648
8648
|
return o;
|
|
8649
8649
|
}
|
|
8650
|
-
function
|
|
8650
|
+
function Om(e) {
|
|
8651
8651
|
const t = e.slice();
|
|
8652
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
8652
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), km(t);
|
|
8653
8653
|
}
|
|
8654
|
-
function
|
|
8654
|
+
function km(e) {
|
|
8655
8655
|
if (e.length <= 1) return e.slice();
|
|
8656
8656
|
const t = [];
|
|
8657
8657
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -8676,9 +8676,9 @@ function Nm(e) {
|
|
|
8676
8676
|
}
|
|
8677
8677
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
8678
8678
|
}
|
|
8679
|
-
var
|
|
8680
|
-
const
|
|
8681
|
-
|
|
8679
|
+
var Nm = ps, bs = hs;
|
|
8680
|
+
const Im = Nm, Dm = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ b.jsx(
|
|
8681
|
+
bs,
|
|
8682
8682
|
{
|
|
8683
8683
|
ref: r,
|
|
8684
8684
|
sideOffset: t,
|
|
@@ -8689,15 +8689,15 @@ const Dm = Im, Lm = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r)
|
|
|
8689
8689
|
...n
|
|
8690
8690
|
}
|
|
8691
8691
|
));
|
|
8692
|
-
|
|
8693
|
-
const
|
|
8692
|
+
Dm.displayName = bs.displayName;
|
|
8693
|
+
const Lm = "sidebar_state", jm = 60 * 60 * 24 * 7, Fm = "16rem", $m = "18rem", Vm = "3rem", Hm = "b", xs = c.createContext(null);
|
|
8694
8694
|
function Zr() {
|
|
8695
|
-
const e = c.useContext(
|
|
8695
|
+
const e = c.useContext(xs);
|
|
8696
8696
|
if (!e)
|
|
8697
8697
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
8698
8698
|
return e;
|
|
8699
8699
|
}
|
|
8700
|
-
function
|
|
8700
|
+
function Wm({
|
|
8701
8701
|
defaultOpen: e = !0,
|
|
8702
8702
|
open: t,
|
|
8703
8703
|
onOpenChange: n,
|
|
@@ -8706,16 +8706,16 @@ function zm({
|
|
|
8706
8706
|
children: a,
|
|
8707
8707
|
...i
|
|
8708
8708
|
}) {
|
|
8709
|
-
const s =
|
|
8709
|
+
const s = Bu(), [l, u] = c.useState(!1), [d, f] = c.useState(e), p = t ?? d, v = c.useCallback(
|
|
8710
8710
|
(h) => {
|
|
8711
8711
|
const w = typeof h == "function" ? h(p) : h;
|
|
8712
|
-
n ? n(w) : f(w), document.cookie = `${
|
|
8712
|
+
n ? n(w) : f(w), document.cookie = `${Lm}=${w}; path=/; max-age=${jm}`;
|
|
8713
8713
|
},
|
|
8714
8714
|
[n, p]
|
|
8715
8715
|
), g = c.useCallback(() => s ? u((h) => !h) : v((h) => !h), [s, v, u]);
|
|
8716
8716
|
c.useEffect(() => {
|
|
8717
8717
|
const h = (w) => {
|
|
8718
|
-
w.key ===
|
|
8718
|
+
w.key === Hm && (w.metaKey || w.ctrlKey) && (w.preventDefault(), g());
|
|
8719
8719
|
};
|
|
8720
8720
|
return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
|
|
8721
8721
|
}, [g]);
|
|
@@ -8731,13 +8731,13 @@ function zm({
|
|
|
8731
8731
|
}),
|
|
8732
8732
|
[m, p, v, s, l, u, g]
|
|
8733
8733
|
);
|
|
8734
|
-
return /* @__PURE__ */ b.jsx(
|
|
8734
|
+
return /* @__PURE__ */ b.jsx(xs.Provider, { value: x, children: /* @__PURE__ */ b.jsx(Im, { delayDuration: 0, children: /* @__PURE__ */ b.jsx(
|
|
8735
8735
|
"div",
|
|
8736
8736
|
{
|
|
8737
8737
|
"data-slot": "sidebar-wrapper",
|
|
8738
8738
|
style: {
|
|
8739
|
-
"--sidebar-width":
|
|
8740
|
-
"--sidebar-width-icon":
|
|
8739
|
+
"--sidebar-width": Fm,
|
|
8740
|
+
"--sidebar-width-icon": Vm,
|
|
8741
8741
|
...o
|
|
8742
8742
|
},
|
|
8743
8743
|
className: B(
|
|
@@ -8749,7 +8749,7 @@ function zm({
|
|
|
8749
8749
|
}
|
|
8750
8750
|
) }) });
|
|
8751
8751
|
}
|
|
8752
|
-
function
|
|
8752
|
+
function zm({
|
|
8753
8753
|
side: e = "left",
|
|
8754
8754
|
variant: t = "sidebar",
|
|
8755
8755
|
collapsible: n = "offcanvas",
|
|
@@ -8769,21 +8769,21 @@ function Bm({
|
|
|
8769
8769
|
...a,
|
|
8770
8770
|
children: o
|
|
8771
8771
|
}
|
|
8772
|
-
) : i ? /* @__PURE__ */ b.jsx(
|
|
8773
|
-
|
|
8772
|
+
) : i ? /* @__PURE__ */ b.jsx(np, { open: l, onOpenChange: u, ...a, children: /* @__PURE__ */ b.jsxs(
|
|
8773
|
+
ji,
|
|
8774
8774
|
{
|
|
8775
8775
|
"data-sidebar": "sidebar",
|
|
8776
8776
|
"data-slot": "sidebar",
|
|
8777
8777
|
"data-mobile": "true",
|
|
8778
8778
|
className: "bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
8779
8779
|
style: {
|
|
8780
|
-
"--sidebar-width":
|
|
8780
|
+
"--sidebar-width": $m
|
|
8781
8781
|
},
|
|
8782
8782
|
side: e,
|
|
8783
8783
|
children: [
|
|
8784
|
-
/* @__PURE__ */ b.jsxs(
|
|
8785
|
-
/* @__PURE__ */ b.jsx(
|
|
8786
|
-
/* @__PURE__ */ b.jsx(
|
|
8784
|
+
/* @__PURE__ */ b.jsxs(Fi, { className: "sr-only", children: [
|
|
8785
|
+
/* @__PURE__ */ b.jsx($i, { children: "Sidebar" }),
|
|
8786
|
+
/* @__PURE__ */ b.jsx(Vi, { children: "Displays the mobile sidebar." })
|
|
8787
8787
|
] }),
|
|
8788
8788
|
/* @__PURE__ */ b.jsx("div", { className: "flex h-full w-full flex-col", children: o })
|
|
8789
8789
|
]
|
|
@@ -8837,7 +8837,7 @@ function Bm({
|
|
|
8837
8837
|
}
|
|
8838
8838
|
);
|
|
8839
8839
|
}
|
|
8840
|
-
function
|
|
8840
|
+
function Bm({
|
|
8841
8841
|
className: e,
|
|
8842
8842
|
onClick: t,
|
|
8843
8843
|
...n
|
|
@@ -8856,13 +8856,13 @@ function Um({
|
|
|
8856
8856
|
},
|
|
8857
8857
|
...n,
|
|
8858
8858
|
children: [
|
|
8859
|
-
/* @__PURE__ */ b.jsx(
|
|
8859
|
+
/* @__PURE__ */ b.jsx(Du, {}),
|
|
8860
8860
|
/* @__PURE__ */ b.jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
8861
8861
|
]
|
|
8862
8862
|
}
|
|
8863
8863
|
);
|
|
8864
8864
|
}
|
|
8865
|
-
function
|
|
8865
|
+
function Um({ className: e, ...t }) {
|
|
8866
8866
|
const { toggleSidebar: n } = Zr();
|
|
8867
8867
|
return /* @__PURE__ */ b.jsx(
|
|
8868
8868
|
"button",
|
|
@@ -8886,7 +8886,7 @@ function Gm({ className: e, ...t }) {
|
|
|
8886
8886
|
}
|
|
8887
8887
|
);
|
|
8888
8888
|
}
|
|
8889
|
-
function
|
|
8889
|
+
function Gm({ className: e, ...t }) {
|
|
8890
8890
|
return /* @__PURE__ */ b.jsx(
|
|
8891
8891
|
"main",
|
|
8892
8892
|
{
|
|
@@ -8900,7 +8900,7 @@ function Km({ className: e, ...t }) {
|
|
|
8900
8900
|
}
|
|
8901
8901
|
);
|
|
8902
8902
|
}
|
|
8903
|
-
function
|
|
8903
|
+
function Km({ className: e, ...t }) {
|
|
8904
8904
|
return /* @__PURE__ */ b.jsx(
|
|
8905
8905
|
"div",
|
|
8906
8906
|
{
|
|
@@ -8911,7 +8911,7 @@ function Ym({ className: e, ...t }) {
|
|
|
8911
8911
|
}
|
|
8912
8912
|
);
|
|
8913
8913
|
}
|
|
8914
|
-
function
|
|
8914
|
+
function Ym({ className: e, ...t }) {
|
|
8915
8915
|
return /* @__PURE__ */ b.jsx(
|
|
8916
8916
|
"div",
|
|
8917
8917
|
{
|
|
@@ -8925,7 +8925,7 @@ function qm({ className: e, ...t }) {
|
|
|
8925
8925
|
}
|
|
8926
8926
|
);
|
|
8927
8927
|
}
|
|
8928
|
-
function
|
|
8928
|
+
function qm({ className: e, ...t }) {
|
|
8929
8929
|
return /* @__PURE__ */ b.jsx(
|
|
8930
8930
|
"div",
|
|
8931
8931
|
{
|
|
@@ -8939,7 +8939,7 @@ function Xm({ className: e, ...t }) {
|
|
|
8939
8939
|
}
|
|
8940
8940
|
);
|
|
8941
8941
|
}
|
|
8942
|
-
function
|
|
8942
|
+
function Xm({
|
|
8943
8943
|
className: e,
|
|
8944
8944
|
...t
|
|
8945
8945
|
}) {
|
|
@@ -8953,7 +8953,7 @@ function Zm({
|
|
|
8953
8953
|
}
|
|
8954
8954
|
);
|
|
8955
8955
|
}
|
|
8956
|
-
function
|
|
8956
|
+
function Zm({ className: e, ...t }) {
|
|
8957
8957
|
return /* @__PURE__ */ b.jsx(
|
|
8958
8958
|
"ul",
|
|
8959
8959
|
{
|
|
@@ -8968,7 +8968,7 @@ function Jm({ className: e, ...t }) {
|
|
|
8968
8968
|
}
|
|
8969
8969
|
);
|
|
8970
8970
|
}
|
|
8971
|
-
function
|
|
8971
|
+
function Jm({
|
|
8972
8972
|
className: e,
|
|
8973
8973
|
...t
|
|
8974
8974
|
}) {
|
|
@@ -8982,14 +8982,14 @@ function Qm({
|
|
|
8982
8982
|
}
|
|
8983
8983
|
);
|
|
8984
8984
|
}
|
|
8985
|
-
function
|
|
8985
|
+
function Qm({
|
|
8986
8986
|
asChild: e = !1,
|
|
8987
8987
|
size: t = "md",
|
|
8988
8988
|
isActive: n = !1,
|
|
8989
8989
|
className: r,
|
|
8990
8990
|
...o
|
|
8991
8991
|
}) {
|
|
8992
|
-
const a = e ?
|
|
8992
|
+
const a = e ? $a : "a";
|
|
8993
8993
|
return /* @__PURE__ */ b.jsx(
|
|
8994
8994
|
a,
|
|
8995
8995
|
{
|
|
@@ -9009,7 +9009,7 @@ function eh({
|
|
|
9009
9009
|
}
|
|
9010
9010
|
);
|
|
9011
9011
|
}
|
|
9012
|
-
function
|
|
9012
|
+
function eh({
|
|
9013
9013
|
title: e,
|
|
9014
9014
|
url: t,
|
|
9015
9015
|
children: n,
|
|
@@ -9020,7 +9020,7 @@ function th({
|
|
|
9020
9020
|
const [i, s] = c.useState(r);
|
|
9021
9021
|
return c.useEffect(() => {
|
|
9022
9022
|
a && s(!0);
|
|
9023
|
-
}, [a]), /* @__PURE__ */ b.jsx(
|
|
9023
|
+
}, [a]), /* @__PURE__ */ b.jsx(qm, { children: /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col", children: [
|
|
9024
9024
|
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-row items-center justify-between", children: [
|
|
9025
9025
|
/* @__PURE__ */ b.jsxs(
|
|
9026
9026
|
Pt,
|
|
@@ -9045,7 +9045,7 @@ function th({
|
|
|
9045
9045
|
l.preventDefault(), l.stopPropagation(), s(!i);
|
|
9046
9046
|
},
|
|
9047
9047
|
"aria-label": i ? "Collapse section" : "Expand section",
|
|
9048
|
-
children: i ? /* @__PURE__ */ b.jsx(
|
|
9048
|
+
children: i ? /* @__PURE__ */ b.jsx(Pu, { className: "h-4 w-4" }) : /* @__PURE__ */ b.jsx(Tu, { className: "h-4 w-4" })
|
|
9049
9049
|
}
|
|
9050
9050
|
)
|
|
9051
9051
|
] }),
|
|
@@ -9061,17 +9061,17 @@ function th({
|
|
|
9061
9061
|
)
|
|
9062
9062
|
] }) });
|
|
9063
9063
|
}
|
|
9064
|
-
const nh = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e", rh = {
|
|
9064
|
+
const th = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e", nh = {
|
|
9065
9065
|
navMain: [
|
|
9066
9066
|
{
|
|
9067
9067
|
title: "Essential Insights",
|
|
9068
9068
|
url: "/overall-performance",
|
|
9069
|
-
icon: /* @__PURE__ */ b.jsx(
|
|
9069
|
+
icon: /* @__PURE__ */ b.jsx(_u, { className: "h-5 w-5" }),
|
|
9070
9070
|
items: [
|
|
9071
9071
|
{
|
|
9072
9072
|
title: "Overall Performance",
|
|
9073
9073
|
url: "/overall-performance",
|
|
9074
|
-
icon: /* @__PURE__ */ b.jsx(
|
|
9074
|
+
icon: /* @__PURE__ */ b.jsx(Fa, { className: "h-4 w-4" })
|
|
9075
9075
|
},
|
|
9076
9076
|
{
|
|
9077
9077
|
title: "Organic Performance",
|
|
@@ -9081,7 +9081,7 @@ const nh = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
9081
9081
|
{
|
|
9082
9082
|
title: "Paid Performance",
|
|
9083
9083
|
url: "/paid-performance",
|
|
9084
|
-
icon: /* @__PURE__ */ b.jsx(
|
|
9084
|
+
icon: /* @__PURE__ */ b.jsx(Eu, { className: "h-4 w-4" })
|
|
9085
9085
|
},
|
|
9086
9086
|
{
|
|
9087
9087
|
title: "Keyword Performance",
|
|
@@ -9091,24 +9091,24 @@ const nh = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
9091
9091
|
{
|
|
9092
9092
|
title: "More Components",
|
|
9093
9093
|
url: "/more-components",
|
|
9094
|
-
icon: /* @__PURE__ */ b.jsx(
|
|
9094
|
+
icon: /* @__PURE__ */ b.jsx(yu, { className: "h-4 w-4" })
|
|
9095
9095
|
}
|
|
9096
9096
|
]
|
|
9097
9097
|
}
|
|
9098
9098
|
]
|
|
9099
9099
|
};
|
|
9100
|
-
function
|
|
9100
|
+
function rh({ ...e }) {
|
|
9101
9101
|
const t = window.location.pathname, n = (a) => t === a ? !0 : a === "/essential-insights" ? !1 : !!t.startsWith(a + "/"), r = (a) => a.some((i) => n(i.url)), o = (a) => n(a.url) || r(a.items);
|
|
9102
|
-
return /* @__PURE__ */ b.jsxs(
|
|
9103
|
-
/* @__PURE__ */ b.jsx(
|
|
9102
|
+
return /* @__PURE__ */ b.jsxs(zm, { ...e, children: [
|
|
9103
|
+
/* @__PURE__ */ b.jsx(Km, { children: /* @__PURE__ */ b.jsx("div", { className: "relative h-12 w-32 overflow-hidden", children: /* @__PURE__ */ b.jsx(
|
|
9104
9104
|
"img",
|
|
9105
9105
|
{
|
|
9106
|
-
src:
|
|
9106
|
+
src: th,
|
|
9107
9107
|
alt: "GLI Logo",
|
|
9108
9108
|
className: "h-full w-full object-contain"
|
|
9109
9109
|
}
|
|
9110
9110
|
) }) }),
|
|
9111
|
-
/* @__PURE__ */ b.jsxs(
|
|
9111
|
+
/* @__PURE__ */ b.jsxs(Ym, { children: [
|
|
9112
9112
|
/* @__PURE__ */ b.jsx("div", { className: "relative flex w-full min-w-0 flex-col px-2 py-1", children: /* @__PURE__ */ b.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ b.jsxs(
|
|
9113
9113
|
Pt,
|
|
9114
9114
|
{
|
|
@@ -9119,7 +9119,7 @@ function oa({ ...e }) {
|
|
|
9119
9119
|
),
|
|
9120
9120
|
children: [
|
|
9121
9121
|
/* @__PURE__ */ b.jsx(
|
|
9122
|
-
|
|
9122
|
+
Fa,
|
|
9123
9123
|
{
|
|
9124
9124
|
className: B(
|
|
9125
9125
|
"h-5 w-5",
|
|
@@ -9131,15 +9131,15 @@ function oa({ ...e }) {
|
|
|
9131
9131
|
]
|
|
9132
9132
|
}
|
|
9133
9133
|
) }) }),
|
|
9134
|
-
|
|
9135
|
-
|
|
9134
|
+
nh.navMain.map((a) => /* @__PURE__ */ b.jsx(
|
|
9135
|
+
eh,
|
|
9136
9136
|
{
|
|
9137
9137
|
title: a.title,
|
|
9138
9138
|
url: a.url,
|
|
9139
9139
|
defaultOpen: r(a.items) || n(a.url),
|
|
9140
9140
|
icon: a.icon,
|
|
9141
9141
|
isActive: o(a),
|
|
9142
|
-
children: /* @__PURE__ */ b.jsx(
|
|
9142
|
+
children: /* @__PURE__ */ b.jsx(Xm, { children: /* @__PURE__ */ b.jsx(Zm, { children: a.items.map((i) => /* @__PURE__ */ b.jsx(Jm, { children: /* @__PURE__ */ b.jsx(Qm, { asChild: !0, children: /* @__PURE__ */ b.jsxs(
|
|
9143
9143
|
Pt,
|
|
9144
9144
|
{
|
|
9145
9145
|
to: i.url,
|
|
@@ -9173,10 +9173,10 @@ function oa({ ...e }) {
|
|
|
9173
9173
|
a.title
|
|
9174
9174
|
))
|
|
9175
9175
|
] }),
|
|
9176
|
-
/* @__PURE__ */ b.jsx(
|
|
9176
|
+
/* @__PURE__ */ b.jsx(Um, {})
|
|
9177
9177
|
] });
|
|
9178
9178
|
}
|
|
9179
|
-
function
|
|
9179
|
+
function ws(e) {
|
|
9180
9180
|
const t = e + "CollectionProvider", [n, r] = rt(t), [o, a] = n(
|
|
9181
9181
|
t,
|
|
9182
9182
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -9217,17 +9217,17 @@ function ys(e) {
|
|
|
9217
9217
|
];
|
|
9218
9218
|
}
|
|
9219
9219
|
var oh = c.createContext(void 0);
|
|
9220
|
-
function
|
|
9220
|
+
function ys(e) {
|
|
9221
9221
|
const t = c.useContext(oh);
|
|
9222
9222
|
return e || t || "ltr";
|
|
9223
9223
|
}
|
|
9224
|
-
var er = "rovingFocusGroup.onEntryFocus", ah = { bubbles: !1, cancelable: !0 }, Lt = "RovingFocusGroup", [wr,
|
|
9224
|
+
var er = "rovingFocusGroup.onEntryFocus", ah = { bubbles: !1, cancelable: !0 }, Lt = "RovingFocusGroup", [wr, Cs, ih] = ws(Lt), [sh, Es] = rt(
|
|
9225
9225
|
Lt,
|
|
9226
9226
|
[ih]
|
|
9227
|
-
), [lh, ch] = sh(Lt),
|
|
9227
|
+
), [lh, ch] = sh(Lt), Ss = c.forwardRef(
|
|
9228
9228
|
(e, t) => /* @__PURE__ */ b.jsx(wr.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ b.jsx(wr.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ b.jsx(uh, { ...e, ref: t }) }) })
|
|
9229
9229
|
);
|
|
9230
|
-
|
|
9230
|
+
Ss.displayName = Lt;
|
|
9231
9231
|
var uh = c.forwardRef((e, t) => {
|
|
9232
9232
|
const {
|
|
9233
9233
|
__scopeRovingFocusGroup: n,
|
|
@@ -9240,12 +9240,12 @@ var uh = c.forwardRef((e, t) => {
|
|
|
9240
9240
|
onEntryFocus: u,
|
|
9241
9241
|
preventScrollOnEntryFocus: d = !1,
|
|
9242
9242
|
...f
|
|
9243
|
-
} = e, p = c.useRef(null), v = ie(t, p), g =
|
|
9243
|
+
} = e, p = c.useRef(null), v = ie(t, p), g = ys(a), [m, x] = Ir({
|
|
9244
9244
|
prop: i,
|
|
9245
9245
|
defaultProp: s ?? null,
|
|
9246
9246
|
onChange: l,
|
|
9247
9247
|
caller: Lt
|
|
9248
|
-
}), [h, w] = c.useState(!1), y = je(u), S =
|
|
9248
|
+
}), [h, w] = c.useState(!1), y = je(u), S = Cs(n), R = c.useRef(!1), [P, A] = c.useState(0);
|
|
9249
9249
|
return c.useEffect(() => {
|
|
9250
9250
|
const C = p.current;
|
|
9251
9251
|
if (C)
|
|
@@ -9290,7 +9290,7 @@ var uh = c.forwardRef((e, t) => {
|
|
|
9290
9290
|
const W = S().filter((L) => L.focusable), z = W.find((L) => L.active), $ = W.find((L) => L.id === m), Y = [z, $, ...W].filter(
|
|
9291
9291
|
Boolean
|
|
9292
9292
|
).map((L) => L.ref.current);
|
|
9293
|
-
|
|
9293
|
+
As(Y, d);
|
|
9294
9294
|
}
|
|
9295
9295
|
}
|
|
9296
9296
|
R.current = !1;
|
|
@@ -9300,7 +9300,7 @@ var uh = c.forwardRef((e, t) => {
|
|
|
9300
9300
|
)
|
|
9301
9301
|
}
|
|
9302
9302
|
);
|
|
9303
|
-
}),
|
|
9303
|
+
}), Rs = "RovingFocusGroupItem", _s = c.forwardRef(
|
|
9304
9304
|
(e, t) => {
|
|
9305
9305
|
const {
|
|
9306
9306
|
__scopeRovingFocusGroup: n,
|
|
@@ -9309,7 +9309,7 @@ var uh = c.forwardRef((e, t) => {
|
|
|
9309
9309
|
tabStopId: a,
|
|
9310
9310
|
children: i,
|
|
9311
9311
|
...s
|
|
9312
|
-
} = e, l = ut(), u = a || l, d = ch(
|
|
9312
|
+
} = e, l = ut(), u = a || l, d = ch(Rs, n), f = d.currentTabStopId === u, p = Cs(n), { onFocusableItemAdd: v, onFocusableItemRemove: g, currentTabStopId: m } = d;
|
|
9313
9313
|
return c.useEffect(() => {
|
|
9314
9314
|
if (r)
|
|
9315
9315
|
return v(), () => g();
|
|
@@ -9348,7 +9348,7 @@ var uh = c.forwardRef((e, t) => {
|
|
|
9348
9348
|
const S = y.indexOf(x.currentTarget);
|
|
9349
9349
|
y = d.loop ? mh(y, S + 1) : y.slice(S + 1);
|
|
9350
9350
|
}
|
|
9351
|
-
setTimeout(() =>
|
|
9351
|
+
setTimeout(() => As(y));
|
|
9352
9352
|
}
|
|
9353
9353
|
}),
|
|
9354
9354
|
children: typeof i == "function" ? i({ isCurrentTabStop: f, hasTabStop: m != null }) : i
|
|
@@ -9358,7 +9358,7 @@ var uh = c.forwardRef((e, t) => {
|
|
|
9358
9358
|
);
|
|
9359
9359
|
}
|
|
9360
9360
|
);
|
|
9361
|
-
|
|
9361
|
+
_s.displayName = Rs;
|
|
9362
9362
|
var dh = {
|
|
9363
9363
|
ArrowLeft: "prev",
|
|
9364
9364
|
ArrowUp: "prev",
|
|
@@ -9377,7 +9377,7 @@ function ph(e, t, n) {
|
|
|
9377
9377
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
9378
9378
|
return dh[r];
|
|
9379
9379
|
}
|
|
9380
|
-
function
|
|
9380
|
+
function As(e, t = !1) {
|
|
9381
9381
|
const n = document.activeElement;
|
|
9382
9382
|
for (const r of e)
|
|
9383
9383
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
@@ -9385,18 +9385,18 @@ function Ps(e, t = !1) {
|
|
|
9385
9385
|
function mh(e, t) {
|
|
9386
9386
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
9387
9387
|
}
|
|
9388
|
-
var hh =
|
|
9388
|
+
var hh = Ss, gh = _s, yr = ["Enter", " "], vh = ["ArrowDown", "PageUp", "Home"], Ps = ["ArrowUp", "PageDown", "End"], bh = [...vh, ...Ps], xh = {
|
|
9389
9389
|
ltr: [...yr, "ArrowRight"],
|
|
9390
9390
|
rtl: [...yr, "ArrowLeft"]
|
|
9391
9391
|
}, wh = {
|
|
9392
9392
|
ltr: ["ArrowLeft"],
|
|
9393
9393
|
rtl: ["ArrowRight"]
|
|
9394
|
-
}, jt = "Menu", [Ot, yh, Ch] =
|
|
9394
|
+
}, jt = "Menu", [Ot, yh, Ch] = ws(jt), [ot, Ms] = rt(jt, [
|
|
9395
9395
|
Ch,
|
|
9396
9396
|
Rn,
|
|
9397
|
-
|
|
9398
|
-
]), Pn = Rn(),
|
|
9399
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: i = !0 } = e, s = Pn(t), [l, u] = c.useState(null), d = c.useRef(!1), f = je(a), p =
|
|
9397
|
+
Es
|
|
9398
|
+
]), Pn = Rn(), Ts = Es(), [Eh, at] = ot(jt), [Sh, Ft] = ot(jt), Os = (e) => {
|
|
9399
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: i = !0 } = e, s = Pn(t), [l, u] = c.useState(null), d = c.useRef(!1), f = je(a), p = ys(o);
|
|
9400
9400
|
return c.useEffect(() => {
|
|
9401
9401
|
const v = () => {
|
|
9402
9402
|
d.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
|
|
@@ -9404,7 +9404,7 @@ var hh = Rs, gh = As, yr = ["Enter", " "], vh = ["ArrowDown", "PageUp", "Home"],
|
|
|
9404
9404
|
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
9405
9405
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
|
|
9406
9406
|
};
|
|
9407
|
-
}, []), /* @__PURE__ */ b.jsx(
|
|
9407
|
+
}, []), /* @__PURE__ */ b.jsx(pm, { ...s, children: /* @__PURE__ */ b.jsx(
|
|
9408
9408
|
Eh,
|
|
9409
9409
|
{
|
|
9410
9410
|
scope: t,
|
|
@@ -9426,24 +9426,24 @@ var hh = Rs, gh = As, yr = ["Enter", " "], vh = ["ArrowDown", "PageUp", "Home"],
|
|
|
9426
9426
|
}
|
|
9427
9427
|
) });
|
|
9428
9428
|
};
|
|
9429
|
-
|
|
9429
|
+
Os.displayName = jt;
|
|
9430
9430
|
var Rh = "MenuAnchor", Jr = c.forwardRef(
|
|
9431
9431
|
(e, t) => {
|
|
9432
9432
|
const { __scopeMenu: n, ...r } = e, o = Pn(n);
|
|
9433
|
-
return /* @__PURE__ */ b.jsx(
|
|
9433
|
+
return /* @__PURE__ */ b.jsx(ss, { ...o, ...r, ref: t });
|
|
9434
9434
|
}
|
|
9435
9435
|
);
|
|
9436
9436
|
Jr.displayName = Rh;
|
|
9437
|
-
var Qr = "MenuPortal", [_h,
|
|
9437
|
+
var Qr = "MenuPortal", [_h, ks] = ot(Qr, {
|
|
9438
9438
|
forceMount: void 0
|
|
9439
|
-
}),
|
|
9439
|
+
}), Ns = (e) => {
|
|
9440
9440
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, a = at(Qr, t);
|
|
9441
9441
|
return /* @__PURE__ */ b.jsx(_h, { scope: t, forceMount: n, children: /* @__PURE__ */ b.jsx(We, { present: n || a.open, children: /* @__PURE__ */ b.jsx(Lr, { asChild: !0, container: o, children: r }) }) });
|
|
9442
9442
|
};
|
|
9443
|
-
|
|
9444
|
-
var be = "MenuContent", [Ah, eo] = ot(be),
|
|
9443
|
+
Ns.displayName = Qr;
|
|
9444
|
+
var be = "MenuContent", [Ah, eo] = ot(be), Is = c.forwardRef(
|
|
9445
9445
|
(e, t) => {
|
|
9446
|
-
const n =
|
|
9446
|
+
const n = ks(be, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = at(be, e.__scopeMenu), i = Ft(be, e.__scopeMenu);
|
|
9447
9447
|
return /* @__PURE__ */ b.jsx(Ot.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ b.jsx(We, { present: r || a.open, children: /* @__PURE__ */ b.jsx(Ot.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ b.jsx(Ph, { ...o, ref: t }) : /* @__PURE__ */ b.jsx(Mh, { ...o, ref: t }) }) }) });
|
|
9448
9448
|
}
|
|
9449
9449
|
), Ph = c.forwardRef(
|
|
@@ -9451,7 +9451,7 @@ var be = "MenuContent", [Ah, eo] = ot(be), Ds = c.forwardRef(
|
|
|
9451
9451
|
const n = at(be, e.__scopeMenu), r = c.useRef(null), o = ie(t, r);
|
|
9452
9452
|
return c.useEffect(() => {
|
|
9453
9453
|
const a = r.current;
|
|
9454
|
-
if (a) return
|
|
9454
|
+
if (a) return gi(a);
|
|
9455
9455
|
}, []), /* @__PURE__ */ b.jsx(
|
|
9456
9456
|
to,
|
|
9457
9457
|
{
|
|
@@ -9499,14 +9499,14 @@ var be = "MenuContent", [Ah, eo] = ot(be), Ds = c.forwardRef(
|
|
|
9499
9499
|
onDismiss: v,
|
|
9500
9500
|
disableOutsideScroll: g,
|
|
9501
9501
|
...m
|
|
9502
|
-
} = e, x = at(be, n), h = Ft(be, n), w = Pn(n), y =
|
|
9502
|
+
} = e, x = at(be, n), h = Ft(be, n), w = Pn(n), y = Ts(n), S = yh(n), [R, P] = c.useState(null), A = c.useRef(null), C = ie(t, A, x.onContentChange), N = c.useRef(0), I = c.useRef(""), W = c.useRef(0), z = c.useRef(null), $ = c.useRef("right"), V = c.useRef(0), Y = g ? jr : c.Fragment, L = g ? { as: Th, allowPinchZoom: !0 } : void 0, U = (M) => {
|
|
9503
9503
|
var G, J;
|
|
9504
9504
|
const E = I.current + M, T = S().filter((Q) => !Q.disabled), D = document.activeElement, F = (G = T.find((Q) => Q.ref.current === D)) == null ? void 0 : G.textValue, q = T.map((Q) => Q.textValue), ee = Wh(q, E, F), le = (J = T.find((Q) => Q.textValue === ee)) == null ? void 0 : J.ref.current;
|
|
9505
9505
|
(function Q(oe) {
|
|
9506
9506
|
I.current = oe, window.clearTimeout(N.current), oe !== "" && (N.current = window.setTimeout(() => Q(""), 1e3));
|
|
9507
9507
|
})(E), le && setTimeout(() => le.focus());
|
|
9508
9508
|
};
|
|
9509
|
-
c.useEffect(() => () => window.clearTimeout(N.current), []),
|
|
9509
|
+
c.useEffect(() => () => window.clearTimeout(N.current), []), si();
|
|
9510
9510
|
const _ = c.useCallback((M) => {
|
|
9511
9511
|
var T, D;
|
|
9512
9512
|
return $.current === ((T = z.current) == null ? void 0 : T.side) && Bh(M, (D = z.current) == null ? void 0 : D.area);
|
|
@@ -9574,11 +9574,11 @@ var be = "MenuContent", [Ah, eo] = ot(be), Ds = c.forwardRef(
|
|
|
9574
9574
|
}),
|
|
9575
9575
|
preventScrollOnEntryFocus: !0,
|
|
9576
9576
|
children: /* @__PURE__ */ b.jsx(
|
|
9577
|
-
|
|
9577
|
+
ls,
|
|
9578
9578
|
{
|
|
9579
9579
|
role: "menu",
|
|
9580
9580
|
"aria-orientation": "vertical",
|
|
9581
|
-
"data-state":
|
|
9581
|
+
"data-state": Xs(x.open),
|
|
9582
9582
|
"data-radix-menu-content": "",
|
|
9583
9583
|
dir: h.dir,
|
|
9584
9584
|
...w,
|
|
@@ -9592,7 +9592,7 @@ var be = "MenuContent", [Ah, eo] = ot(be), Ds = c.forwardRef(
|
|
|
9592
9592
|
if (M.target !== q || !bh.includes(M.key)) return;
|
|
9593
9593
|
M.preventDefault();
|
|
9594
9594
|
const le = S().filter((G) => !G.disabled).map((G) => G.ref.current);
|
|
9595
|
-
|
|
9595
|
+
Ps.includes(M.key) && le.reverse(), Vh(le);
|
|
9596
9596
|
}),
|
|
9597
9597
|
onBlur: j(e.onBlur, (M) => {
|
|
9598
9598
|
M.currentTarget.contains(M.target) || (window.clearTimeout(N.current), I.current = "");
|
|
@@ -9619,7 +9619,7 @@ var be = "MenuContent", [Ah, eo] = ot(be), Ds = c.forwardRef(
|
|
|
9619
9619
|
);
|
|
9620
9620
|
}
|
|
9621
9621
|
);
|
|
9622
|
-
|
|
9622
|
+
Is.displayName = be;
|
|
9623
9623
|
var Oh = "MenuGroup", no = c.forwardRef(
|
|
9624
9624
|
(e, t) => {
|
|
9625
9625
|
const { __scopeMenu: n, ...r } = e;
|
|
@@ -9627,24 +9627,24 @@ var Oh = "MenuGroup", no = c.forwardRef(
|
|
|
9627
9627
|
}
|
|
9628
9628
|
);
|
|
9629
9629
|
no.displayName = Oh;
|
|
9630
|
-
var kh = "MenuLabel",
|
|
9630
|
+
var kh = "MenuLabel", Ds = c.forwardRef(
|
|
9631
9631
|
(e, t) => {
|
|
9632
9632
|
const { __scopeMenu: n, ...r } = e;
|
|
9633
9633
|
return /* @__PURE__ */ b.jsx(ne.div, { ...r, ref: t });
|
|
9634
9634
|
}
|
|
9635
9635
|
);
|
|
9636
|
-
|
|
9637
|
-
var pn = "MenuItem",
|
|
9636
|
+
Ds.displayName = kh;
|
|
9637
|
+
var pn = "MenuItem", oa = "menu.itemSelect", Mn = c.forwardRef(
|
|
9638
9638
|
(e, t) => {
|
|
9639
9639
|
const { disabled: n = !1, onSelect: r, ...o } = e, a = c.useRef(null), i = Ft(pn, e.__scopeMenu), s = eo(pn, e.__scopeMenu), l = ie(t, a), u = c.useRef(!1), d = () => {
|
|
9640
9640
|
const f = a.current;
|
|
9641
9641
|
if (!n && f) {
|
|
9642
|
-
const p = new CustomEvent(
|
|
9643
|
-
f.addEventListener(
|
|
9642
|
+
const p = new CustomEvent(oa, { bubbles: !0, cancelable: !0 });
|
|
9643
|
+
f.addEventListener(oa, (v) => r == null ? void 0 : r(v), { once: !0 }), ei(f, p), p.defaultPrevented ? u.current = !1 : i.onClose();
|
|
9644
9644
|
}
|
|
9645
9645
|
};
|
|
9646
9646
|
return /* @__PURE__ */ b.jsx(
|
|
9647
|
-
|
|
9647
|
+
Ls,
|
|
9648
9648
|
{
|
|
9649
9649
|
...o,
|
|
9650
9650
|
ref: l,
|
|
@@ -9667,9 +9667,9 @@ var pn = "MenuItem", aa = "menu.itemSelect", Mn = c.forwardRef(
|
|
|
9667
9667
|
}
|
|
9668
9668
|
);
|
|
9669
9669
|
Mn.displayName = pn;
|
|
9670
|
-
var
|
|
9670
|
+
var Ls = c.forwardRef(
|
|
9671
9671
|
(e, t) => {
|
|
9672
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...a } = e, i = eo(pn, n), s =
|
|
9672
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...a } = e, i = eo(pn, n), s = Ts(n), l = c.useRef(null), u = ie(t, l), [d, f] = c.useState(!1), [p, v] = c.useState("");
|
|
9673
9673
|
return c.useEffect(() => {
|
|
9674
9674
|
const g = l.current;
|
|
9675
9675
|
g && v((g.textContent ?? "").trim());
|
|
@@ -9705,10 +9705,10 @@ var js = c.forwardRef(
|
|
|
9705
9705
|
}
|
|
9706
9706
|
);
|
|
9707
9707
|
}
|
|
9708
|
-
), Nh = "MenuCheckboxItem",
|
|
9708
|
+
), Nh = "MenuCheckboxItem", js = c.forwardRef(
|
|
9709
9709
|
(e, t) => {
|
|
9710
9710
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
9711
|
-
return /* @__PURE__ */ b.jsx(
|
|
9711
|
+
return /* @__PURE__ */ b.jsx(Ws, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ b.jsx(
|
|
9712
9712
|
Mn,
|
|
9713
9713
|
{
|
|
9714
9714
|
role: "menuitemcheckbox",
|
|
@@ -9725,22 +9725,22 @@ var js = c.forwardRef(
|
|
|
9725
9725
|
) });
|
|
9726
9726
|
}
|
|
9727
9727
|
);
|
|
9728
|
-
|
|
9729
|
-
var
|
|
9730
|
-
|
|
9728
|
+
js.displayName = Nh;
|
|
9729
|
+
var Fs = "MenuRadioGroup", [Ih, Dh] = ot(
|
|
9730
|
+
Fs,
|
|
9731
9731
|
{ value: void 0, onValueChange: () => {
|
|
9732
9732
|
} }
|
|
9733
|
-
),
|
|
9733
|
+
), $s = c.forwardRef(
|
|
9734
9734
|
(e, t) => {
|
|
9735
9735
|
const { value: n, onValueChange: r, ...o } = e, a = je(r);
|
|
9736
9736
|
return /* @__PURE__ */ b.jsx(Ih, { scope: e.__scopeMenu, value: n, onValueChange: a, children: /* @__PURE__ */ b.jsx(no, { ...o, ref: t }) });
|
|
9737
9737
|
}
|
|
9738
9738
|
);
|
|
9739
|
-
|
|
9740
|
-
var
|
|
9739
|
+
$s.displayName = Fs;
|
|
9740
|
+
var Vs = "MenuRadioItem", Hs = c.forwardRef(
|
|
9741
9741
|
(e, t) => {
|
|
9742
|
-
const { value: n, ...r } = e, o = Dh(
|
|
9743
|
-
return /* @__PURE__ */ b.jsx(
|
|
9742
|
+
const { value: n, ...r } = e, o = Dh(Vs, e.__scopeMenu), a = n === o.value;
|
|
9743
|
+
return /* @__PURE__ */ b.jsx(Ws, { scope: e.__scopeMenu, checked: a, children: /* @__PURE__ */ b.jsx(
|
|
9744
9744
|
Mn,
|
|
9745
9745
|
{
|
|
9746
9746
|
role: "menuitemradio",
|
|
@@ -9760,11 +9760,11 @@ var Hs = "MenuRadioItem", Ws = c.forwardRef(
|
|
|
9760
9760
|
) });
|
|
9761
9761
|
}
|
|
9762
9762
|
);
|
|
9763
|
-
|
|
9764
|
-
var ro = "MenuItemIndicator", [
|
|
9763
|
+
Hs.displayName = Vs;
|
|
9764
|
+
var ro = "MenuItemIndicator", [Ws, Lh] = ot(
|
|
9765
9765
|
ro,
|
|
9766
9766
|
{ checked: !1 }
|
|
9767
|
-
),
|
|
9767
|
+
), zs = c.forwardRef(
|
|
9768
9768
|
(e, t) => {
|
|
9769
9769
|
const { __scopeMenu: n, forceMount: r, ...o } = e, a = Lh(ro, n);
|
|
9770
9770
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -9783,8 +9783,8 @@ var ro = "MenuItemIndicator", [zs, Lh] = ot(
|
|
|
9783
9783
|
);
|
|
9784
9784
|
}
|
|
9785
9785
|
);
|
|
9786
|
-
|
|
9787
|
-
var jh = "MenuSeparator",
|
|
9786
|
+
zs.displayName = ro;
|
|
9787
|
+
var jh = "MenuSeparator", Bs = c.forwardRef(
|
|
9788
9788
|
(e, t) => {
|
|
9789
9789
|
const { __scopeMenu: n, ...r } = e;
|
|
9790
9790
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -9798,17 +9798,17 @@ var jh = "MenuSeparator", Us = c.forwardRef(
|
|
|
9798
9798
|
);
|
|
9799
9799
|
}
|
|
9800
9800
|
);
|
|
9801
|
-
|
|
9802
|
-
var Fh = "MenuArrow",
|
|
9801
|
+
Bs.displayName = jh;
|
|
9802
|
+
var Fh = "MenuArrow", Us = c.forwardRef(
|
|
9803
9803
|
(e, t) => {
|
|
9804
9804
|
const { __scopeMenu: n, ...r } = e, o = Pn(n);
|
|
9805
|
-
return /* @__PURE__ */ b.jsx(
|
|
9805
|
+
return /* @__PURE__ */ b.jsx(cs, { ...o, ...r, ref: t });
|
|
9806
9806
|
}
|
|
9807
9807
|
);
|
|
9808
|
-
|
|
9809
|
-
var $h = "MenuSub", [q0,
|
|
9808
|
+
Us.displayName = Fh;
|
|
9809
|
+
var $h = "MenuSub", [q0, Gs] = ot($h), _t = "MenuSubTrigger", Ks = c.forwardRef(
|
|
9810
9810
|
(e, t) => {
|
|
9811
|
-
const n = at(_t, e.__scopeMenu), r = Ft(_t, e.__scopeMenu), o =
|
|
9811
|
+
const n = at(_t, e.__scopeMenu), r = Ft(_t, e.__scopeMenu), o = Gs(_t, e.__scopeMenu), a = eo(_t, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: l } = a, u = { __scopeMenu: e.__scopeMenu }, d = c.useCallback(() => {
|
|
9812
9812
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
9813
9813
|
}, []);
|
|
9814
9814
|
return c.useEffect(() => d, [d]), c.useEffect(() => {
|
|
@@ -9817,13 +9817,13 @@ var $h = "MenuSub", [q0, Ks] = ot($h), _t = "MenuSubTrigger", Ys = c.forwardRef(
|
|
|
9817
9817
|
window.clearTimeout(f), l(null);
|
|
9818
9818
|
};
|
|
9819
9819
|
}, [s, l]), /* @__PURE__ */ b.jsx(Jr, { asChild: !0, ...u, children: /* @__PURE__ */ b.jsx(
|
|
9820
|
-
|
|
9820
|
+
Ls,
|
|
9821
9821
|
{
|
|
9822
9822
|
id: o.triggerId,
|
|
9823
9823
|
"aria-haspopup": "menu",
|
|
9824
9824
|
"aria-expanded": n.open,
|
|
9825
9825
|
"aria-controls": o.contentId,
|
|
9826
|
-
"data-state":
|
|
9826
|
+
"data-state": Xs(n.open),
|
|
9827
9827
|
...e,
|
|
9828
9828
|
ref: bn(t, o.onTriggerChange),
|
|
9829
9829
|
onClick: (f) => {
|
|
@@ -9876,10 +9876,10 @@ var $h = "MenuSub", [q0, Ks] = ot($h), _t = "MenuSubTrigger", Ys = c.forwardRef(
|
|
|
9876
9876
|
) });
|
|
9877
9877
|
}
|
|
9878
9878
|
);
|
|
9879
|
-
|
|
9880
|
-
var
|
|
9879
|
+
Ks.displayName = _t;
|
|
9880
|
+
var Ys = "MenuSubContent", qs = c.forwardRef(
|
|
9881
9881
|
(e, t) => {
|
|
9882
|
-
const n =
|
|
9882
|
+
const n = ks(be, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = at(be, e.__scopeMenu), i = Ft(be, e.__scopeMenu), s = Gs(Ys, e.__scopeMenu), l = c.useRef(null), u = ie(t, l);
|
|
9883
9883
|
return /* @__PURE__ */ b.jsx(Ot.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ b.jsx(We, { present: r || a.open, children: /* @__PURE__ */ b.jsx(Ot.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ b.jsx(
|
|
9884
9884
|
to,
|
|
9885
9885
|
{
|
|
@@ -9912,8 +9912,8 @@ var qs = "MenuSubContent", Xs = c.forwardRef(
|
|
|
9912
9912
|
) }) }) });
|
|
9913
9913
|
}
|
|
9914
9914
|
);
|
|
9915
|
-
|
|
9916
|
-
function
|
|
9915
|
+
qs.displayName = Ys;
|
|
9916
|
+
function Xs(e) {
|
|
9917
9917
|
return e ? "open" : "closed";
|
|
9918
9918
|
}
|
|
9919
9919
|
function mn(e) {
|
|
@@ -9956,10 +9956,10 @@ function Bh(e, t) {
|
|
|
9956
9956
|
function kt(e) {
|
|
9957
9957
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
9958
9958
|
}
|
|
9959
|
-
var Uh =
|
|
9959
|
+
var Uh = Os, Gh = Jr, Kh = Ns, Yh = Is, qh = no, Xh = Ds, Zh = Mn, Jh = js, Qh = $s, e0 = Hs, t0 = zs, n0 = Bs, r0 = Us, o0 = Ks, a0 = qs, Tn = "DropdownMenu", [i0, X0] = rt(
|
|
9960
9960
|
Tn,
|
|
9961
|
-
[
|
|
9962
|
-
), fe =
|
|
9961
|
+
[Ms]
|
|
9962
|
+
), fe = Ms(), [s0, Zs] = i0(Tn), Js = (e) => {
|
|
9963
9963
|
const {
|
|
9964
9964
|
__scopeDropdownMenu: t,
|
|
9965
9965
|
children: n,
|
|
@@ -9989,10 +9989,10 @@ var Uh = ks, Gh = Jr, Kh = Is, Yh = Ds, qh = no, Xh = Ls, Zh = Mn, Jh = Fs, Qh =
|
|
|
9989
9989
|
}
|
|
9990
9990
|
);
|
|
9991
9991
|
};
|
|
9992
|
-
|
|
9993
|
-
var
|
|
9992
|
+
Js.displayName = Tn;
|
|
9993
|
+
var Qs = "DropdownMenuTrigger", el = c.forwardRef(
|
|
9994
9994
|
(e, t) => {
|
|
9995
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, a =
|
|
9995
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, a = Zs(Qs, n), i = fe(n);
|
|
9996
9996
|
return /* @__PURE__ */ b.jsx(Gh, { asChild: !0, ...i, children: /* @__PURE__ */ b.jsx(
|
|
9997
9997
|
ne.button,
|
|
9998
9998
|
{
|
|
@@ -10016,15 +10016,15 @@ var el = "DropdownMenuTrigger", tl = c.forwardRef(
|
|
|
10016
10016
|
) });
|
|
10017
10017
|
}
|
|
10018
10018
|
);
|
|
10019
|
-
|
|
10020
|
-
var l0 = "DropdownMenuPortal",
|
|
10019
|
+
el.displayName = Qs;
|
|
10020
|
+
var l0 = "DropdownMenuPortal", tl = (e) => {
|
|
10021
10021
|
const { __scopeDropdownMenu: t, ...n } = e, r = fe(t);
|
|
10022
10022
|
return /* @__PURE__ */ b.jsx(Kh, { ...r, ...n });
|
|
10023
10023
|
};
|
|
10024
|
-
|
|
10025
|
-
var
|
|
10024
|
+
tl.displayName = l0;
|
|
10025
|
+
var nl = "DropdownMenuContent", rl = c.forwardRef(
|
|
10026
10026
|
(e, t) => {
|
|
10027
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
10027
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = Zs(nl, n), a = fe(n), i = c.useRef(!1);
|
|
10028
10028
|
return /* @__PURE__ */ b.jsx(
|
|
10029
10029
|
Yh,
|
|
10030
10030
|
{
|
|
@@ -10053,7 +10053,7 @@ var rl = "DropdownMenuContent", ol = c.forwardRef(
|
|
|
10053
10053
|
);
|
|
10054
10054
|
}
|
|
10055
10055
|
);
|
|
10056
|
-
|
|
10056
|
+
rl.displayName = nl;
|
|
10057
10057
|
var c0 = "DropdownMenuGroup", u0 = c.forwardRef(
|
|
10058
10058
|
(e, t) => {
|
|
10059
10059
|
const { __scopeDropdownMenu: n, ...r } = e, o = fe(n);
|
|
@@ -10061,20 +10061,20 @@ var c0 = "DropdownMenuGroup", u0 = c.forwardRef(
|
|
|
10061
10061
|
}
|
|
10062
10062
|
);
|
|
10063
10063
|
u0.displayName = c0;
|
|
10064
|
-
var d0 = "DropdownMenuLabel",
|
|
10064
|
+
var d0 = "DropdownMenuLabel", ol = c.forwardRef(
|
|
10065
10065
|
(e, t) => {
|
|
10066
10066
|
const { __scopeDropdownMenu: n, ...r } = e, o = fe(n);
|
|
10067
10067
|
return /* @__PURE__ */ b.jsx(Xh, { ...o, ...r, ref: t });
|
|
10068
10068
|
}
|
|
10069
10069
|
);
|
|
10070
|
-
|
|
10071
|
-
var f0 = "DropdownMenuItem",
|
|
10070
|
+
ol.displayName = d0;
|
|
10071
|
+
var f0 = "DropdownMenuItem", al = c.forwardRef(
|
|
10072
10072
|
(e, t) => {
|
|
10073
10073
|
const { __scopeDropdownMenu: n, ...r } = e, o = fe(n);
|
|
10074
10074
|
return /* @__PURE__ */ b.jsx(Zh, { ...o, ...r, ref: t });
|
|
10075
10075
|
}
|
|
10076
10076
|
);
|
|
10077
|
-
|
|
10077
|
+
al.displayName = f0;
|
|
10078
10078
|
var p0 = "DropdownMenuCheckboxItem", m0 = c.forwardRef((e, t) => {
|
|
10079
10079
|
const { __scopeDropdownMenu: n, ...r } = e, o = fe(n);
|
|
10080
10080
|
return /* @__PURE__ */ b.jsx(Jh, { ...o, ...r, ref: t });
|
|
@@ -10095,11 +10095,11 @@ var x0 = "DropdownMenuItemIndicator", w0 = c.forwardRef((e, t) => {
|
|
|
10095
10095
|
return /* @__PURE__ */ b.jsx(t0, { ...o, ...r, ref: t });
|
|
10096
10096
|
});
|
|
10097
10097
|
w0.displayName = x0;
|
|
10098
|
-
var y0 = "DropdownMenuSeparator",
|
|
10098
|
+
var y0 = "DropdownMenuSeparator", il = c.forwardRef((e, t) => {
|
|
10099
10099
|
const { __scopeDropdownMenu: n, ...r } = e, o = fe(n);
|
|
10100
10100
|
return /* @__PURE__ */ b.jsx(n0, { ...o, ...r, ref: t });
|
|
10101
10101
|
});
|
|
10102
|
-
|
|
10102
|
+
il.displayName = y0;
|
|
10103
10103
|
var C0 = "DropdownMenuArrow", E0 = c.forwardRef(
|
|
10104
10104
|
(e, t) => {
|
|
10105
10105
|
const { __scopeDropdownMenu: n, ...r } = e, o = fe(n);
|
|
@@ -10132,7 +10132,7 @@ var _0 = "DropdownMenuSubContent", A0 = c.forwardRef((e, t) => {
|
|
|
10132
10132
|
);
|
|
10133
10133
|
});
|
|
10134
10134
|
A0.displayName = _0;
|
|
10135
|
-
var P0 =
|
|
10135
|
+
var P0 = Js, M0 = el, T0 = tl, O0 = rl, k0 = ol, N0 = al, I0 = il;
|
|
10136
10136
|
function D0({
|
|
10137
10137
|
...e
|
|
10138
10138
|
}) {
|
|
@@ -10167,7 +10167,7 @@ function j0({
|
|
|
10167
10167
|
}
|
|
10168
10168
|
) });
|
|
10169
10169
|
}
|
|
10170
|
-
function
|
|
10170
|
+
function aa({
|
|
10171
10171
|
className: e,
|
|
10172
10172
|
inset: t,
|
|
10173
10173
|
variant: n = "default",
|
|
@@ -10219,7 +10219,7 @@ function $0({
|
|
|
10219
10219
|
);
|
|
10220
10220
|
}
|
|
10221
10221
|
const V0 = () => {
|
|
10222
|
-
const { user: e, error: t, isLoading: n } =
|
|
10222
|
+
const { user: e, error: t, isLoading: n } = ql(), r = () => {
|
|
10223
10223
|
window.location.href = "/auth/logout";
|
|
10224
10224
|
};
|
|
10225
10225
|
return n ? /* @__PURE__ */ b.jsx("div", { className: "h-10 w-10 animate-pulse rounded-full bg-gray-200" }) : t ? /* @__PURE__ */ b.jsxs("div", { children: [
|
|
@@ -10250,34 +10250,31 @@ const V0 = () => {
|
|
|
10250
10250
|
/* @__PURE__ */ b.jsx("p", { className: "truncate text-xs text-gray-500", children: e.email })
|
|
10251
10251
|
] }) }) }),
|
|
10252
10252
|
/* @__PURE__ */ b.jsx($0, {}),
|
|
10253
|
-
/* @__PURE__ */ b.jsx(
|
|
10253
|
+
/* @__PURE__ */ b.jsx(aa, { asChild: !0, children: /* @__PURE__ */ b.jsxs("a", { href: "/profile", className: "flex w-full cursor-default", children: [
|
|
10254
10254
|
/* @__PURE__ */ b.jsx(Po, { className: "mr-2 h-4 w-4" }),
|
|
10255
10255
|
/* @__PURE__ */ b.jsx("span", { children: "Profile" })
|
|
10256
10256
|
] }) }),
|
|
10257
|
-
/* @__PURE__ */ b.jsxs(
|
|
10258
|
-
/* @__PURE__ */ b.jsx(
|
|
10257
|
+
/* @__PURE__ */ b.jsxs(aa, { onClick: r, children: [
|
|
10258
|
+
/* @__PURE__ */ b.jsx(Nu, { className: "mr-2 h-4 w-4" }),
|
|
10259
10259
|
/* @__PURE__ */ b.jsx("span", { children: "Sign out" })
|
|
10260
10260
|
] })
|
|
10261
10261
|
] })
|
|
10262
10262
|
] }) }) : null;
|
|
10263
10263
|
}, H0 = () => /* @__PURE__ */ b.jsx("div", { className: "sticky top-0 z-50", children: /* @__PURE__ */ b.jsxs("header", { className: "flex h-16 items-center justify-between border-b bg-white px-4", children: [
|
|
10264
10264
|
/* @__PURE__ */ b.jsxs("div", { className: "flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden", children: [
|
|
10265
|
-
/* @__PURE__ */ b.jsx(
|
|
10266
|
-
/* @__PURE__ */ b.jsx(
|
|
10265
|
+
/* @__PURE__ */ b.jsx(Bm, {}),
|
|
10266
|
+
/* @__PURE__ */ b.jsx(ri, { orientation: "vertical" })
|
|
10267
10267
|
] }),
|
|
10268
10268
|
/* @__PURE__ */ b.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ b.jsx(V0, {}) })
|
|
10269
10269
|
] }) }), Z0 = ({
|
|
10270
10270
|
children: e
|
|
10271
|
-
}) => /* @__PURE__ */ b.jsxs(
|
|
10272
|
-
/* @__PURE__ */ b.jsx(
|
|
10273
|
-
/* @__PURE__ */ b.
|
|
10274
|
-
/* @__PURE__ */ b.jsx(
|
|
10275
|
-
/* @__PURE__ */ b.
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
] })
|
|
10279
|
-
] }) })
|
|
10280
|
-
] });
|
|
10271
|
+
}) => /* @__PURE__ */ b.jsx(Xl, { children: /* @__PURE__ */ b.jsx(Wm, { children: /* @__PURE__ */ b.jsxs("div", { className: "flex h-screen w-full", children: [
|
|
10272
|
+
/* @__PURE__ */ b.jsx(rh, {}),
|
|
10273
|
+
/* @__PURE__ */ b.jsxs(Gm, { className: "flex-1 flex flex-col min-w-0", children: [
|
|
10274
|
+
/* @__PURE__ */ b.jsx(H0, {}),
|
|
10275
|
+
/* @__PURE__ */ b.jsx("main", { className: "flex-1 bg-white", id: "page-content", children: e })
|
|
10276
|
+
] })
|
|
10277
|
+
] }) }) });
|
|
10281
10278
|
export {
|
|
10282
10279
|
Z0 as GLICloudProvider
|
|
10283
10280
|
};
|