@sentinel-core/sentinel 1.0.19 → 1.0.20
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.
- package/dist/sentinel.cjs +6 -6
- package/dist/sentinel.css +1 -1
- package/dist/sentinel.es.js +527 -476
- package/package.json +1 -1
package/dist/sentinel.es.js
CHANGED
|
@@ -3555,7 +3555,7 @@ var la = (e) => {
|
|
|
3555
3555
|
}
|
|
3556
3556
|
i(!0), setTimeout(() => i(!1), 2e3);
|
|
3557
3557
|
}, c = n?.slice(1) ?? [];
|
|
3558
|
-
return /* @__PURE__ */ t.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ t.createElement("div", { className: "relative bg-primary text-primary-foreground p-4 rounded-md font-mono text-sm leading-6 overflow-x-hidden" }, /* @__PURE__ */ t.createElement("button", {
|
|
3558
|
+
return /* @__PURE__ */ t.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ t.createElement("div", { className: "relative bg-primary text-primary-foreground p-4! rounded-md font-mono text-sm leading-6 overflow-x-hidden" }, /* @__PURE__ */ t.createElement("button", {
|
|
3559
3559
|
onClick: s,
|
|
3560
3560
|
className: "absolute top-2 right-2 text-xs text-muted-foreground hover:text-primary-foreground transition-colors"
|
|
3561
3561
|
}, r ? "✓ Copied" : "Copy"), /* @__PURE__ */ t.createElement(ga, { value: e })), c.length > 0 && /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement("button", {
|
|
@@ -3570,7 +3570,7 @@ var la = (e) => {
|
|
|
3570
3570
|
let [t] = e.split(":");
|
|
3571
3571
|
return t.replace(/\\/g, "/").split("/").slice(-3).join("/");
|
|
3572
3572
|
}, ya = () => {
|
|
3573
|
-
let { openDialogId: e, closeDialog: n, dialogMeta: r } =
|
|
3573
|
+
let { openDialogId: e, closeDialog: n, dialogMeta: r } = ql();
|
|
3574
3574
|
return /* @__PURE__ */ t.createElement(ta, {
|
|
3575
3575
|
open: e !== null,
|
|
3576
3576
|
onOpenChange: (e) => !e && n()
|
|
@@ -3613,7 +3613,7 @@ var la = (e) => {
|
|
|
3613
3613
|
...!o && !Ta(c) && { "aria-hidden": "true" },
|
|
3614
3614
|
...c
|
|
3615
3615
|
}, [...s.map(([e, t]) => r(e, t)), ...Array.isArray(o) ? o : [o]]);
|
|
3616
|
-
}), ka = (
|
|
3616
|
+
}), ka = (e, t) => {
|
|
3617
3617
|
let n = i(({ className: n, ...i }, a) => r(Oa, {
|
|
3618
3618
|
ref: a,
|
|
3619
3619
|
iconNode: t,
|
|
@@ -3621,7 +3621,24 @@ var la = (e) => {
|
|
|
3621
3621
|
...i
|
|
3622
3622
|
}));
|
|
3623
3623
|
return n.displayName = Ca(e), n;
|
|
3624
|
-
}
|
|
3624
|
+
}, Aa = ka("maximize-2", [
|
|
3625
|
+
["path", {
|
|
3626
|
+
d: "M15 3h6v6",
|
|
3627
|
+
key: "1q9fwt"
|
|
3628
|
+
}],
|
|
3629
|
+
["path", {
|
|
3630
|
+
d: "m21 3-7 7",
|
|
3631
|
+
key: "1l2asr"
|
|
3632
|
+
}],
|
|
3633
|
+
["path", {
|
|
3634
|
+
d: "m3 21 7-7",
|
|
3635
|
+
key: "tjx5ai"
|
|
3636
|
+
}],
|
|
3637
|
+
["path", {
|
|
3638
|
+
d: "M9 21H3v-6",
|
|
3639
|
+
key: "wtvkvv"
|
|
3640
|
+
}]
|
|
3641
|
+
]), ja = ka("scan-eye", [
|
|
3625
3642
|
["path", {
|
|
3626
3643
|
d: "M3 7V5a2 2 0 0 1 2-2h2",
|
|
3627
3644
|
key: "aa7l1z"
|
|
@@ -3648,80 +3665,80 @@ var la = (e) => {
|
|
|
3648
3665
|
d: "M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",
|
|
3649
3666
|
key: "11ak4c"
|
|
3650
3667
|
}]
|
|
3651
|
-
]),
|
|
3668
|
+
]), Ma = [
|
|
3652
3669
|
"top",
|
|
3653
3670
|
"right",
|
|
3654
3671
|
"bottom",
|
|
3655
3672
|
"left"
|
|
3656
|
-
],
|
|
3673
|
+
], Na = Math.min, q = Math.max, Pa = Math.round, Fa = Math.floor, J = (e) => ({
|
|
3657
3674
|
x: e,
|
|
3658
3675
|
y: e
|
|
3659
|
-
}),
|
|
3676
|
+
}), Ia = {
|
|
3660
3677
|
left: "right",
|
|
3661
3678
|
right: "left",
|
|
3662
3679
|
bottom: "top",
|
|
3663
3680
|
top: "bottom"
|
|
3664
3681
|
};
|
|
3665
|
-
function
|
|
3666
|
-
return q(e,
|
|
3682
|
+
function La(e, t, n) {
|
|
3683
|
+
return q(e, Na(t, n));
|
|
3667
3684
|
}
|
|
3668
|
-
function
|
|
3685
|
+
function Ra(e, t) {
|
|
3669
3686
|
return typeof e == "function" ? e(t) : e;
|
|
3670
3687
|
}
|
|
3671
|
-
function
|
|
3688
|
+
function za(e) {
|
|
3672
3689
|
return e.split("-")[0];
|
|
3673
3690
|
}
|
|
3674
|
-
function
|
|
3691
|
+
function Ba(e) {
|
|
3675
3692
|
return e.split("-")[1];
|
|
3676
3693
|
}
|
|
3677
|
-
function
|
|
3694
|
+
function Va(e) {
|
|
3678
3695
|
return e === "x" ? "y" : "x";
|
|
3679
3696
|
}
|
|
3680
|
-
function
|
|
3697
|
+
function Ha(e) {
|
|
3681
3698
|
return e === "y" ? "height" : "width";
|
|
3682
3699
|
}
|
|
3683
3700
|
function Y(e) {
|
|
3684
3701
|
let t = e[0];
|
|
3685
3702
|
return t === "t" || t === "b" ? "y" : "x";
|
|
3686
3703
|
}
|
|
3687
|
-
function
|
|
3688
|
-
return
|
|
3704
|
+
function Ua(e) {
|
|
3705
|
+
return Va(Y(e));
|
|
3689
3706
|
}
|
|
3690
|
-
function
|
|
3707
|
+
function Wa(e, t, n) {
|
|
3691
3708
|
n === void 0 && (n = !1);
|
|
3692
|
-
let r =
|
|
3693
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
3709
|
+
let r = Ba(e), i = Ua(e), a = Ha(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
3710
|
+
return t.reference[a] > t.floating[a] && (o = $a(o)), [o, $a(o)];
|
|
3694
3711
|
}
|
|
3695
|
-
function
|
|
3696
|
-
let t =
|
|
3712
|
+
function Ga(e) {
|
|
3713
|
+
let t = $a(e);
|
|
3697
3714
|
return [
|
|
3698
|
-
|
|
3715
|
+
Ka(e),
|
|
3699
3716
|
t,
|
|
3700
|
-
|
|
3717
|
+
Ka(t)
|
|
3701
3718
|
];
|
|
3702
3719
|
}
|
|
3703
|
-
function
|
|
3720
|
+
function Ka(e) {
|
|
3704
3721
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
3705
3722
|
}
|
|
3706
|
-
var
|
|
3707
|
-
function
|
|
3723
|
+
var qa = ["left", "right"], Ja = ["right", "left"], Ya = ["top", "bottom"], Xa = ["bottom", "top"];
|
|
3724
|
+
function Za(e, t, n) {
|
|
3708
3725
|
switch (e) {
|
|
3709
3726
|
case "top":
|
|
3710
|
-
case "bottom": return n ? t ?
|
|
3727
|
+
case "bottom": return n ? t ? Ja : qa : t ? qa : Ja;
|
|
3711
3728
|
case "left":
|
|
3712
|
-
case "right": return t ?
|
|
3729
|
+
case "right": return t ? Ya : Xa;
|
|
3713
3730
|
default: return [];
|
|
3714
3731
|
}
|
|
3715
3732
|
}
|
|
3716
|
-
function
|
|
3717
|
-
let i =
|
|
3718
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
3733
|
+
function Qa(e, t, n, r) {
|
|
3734
|
+
let i = Ba(e), a = Za(za(e), n === "start", r);
|
|
3735
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ka)))), a;
|
|
3719
3736
|
}
|
|
3720
|
-
function
|
|
3721
|
-
let t =
|
|
3722
|
-
return
|
|
3737
|
+
function $a(e) {
|
|
3738
|
+
let t = za(e);
|
|
3739
|
+
return Ia[t] + e.slice(t.length);
|
|
3723
3740
|
}
|
|
3724
|
-
function
|
|
3741
|
+
function eo(e) {
|
|
3725
3742
|
return {
|
|
3726
3743
|
top: 0,
|
|
3727
3744
|
right: 0,
|
|
@@ -3730,15 +3747,15 @@ function Qa(e) {
|
|
|
3730
3747
|
...e
|
|
3731
3748
|
};
|
|
3732
3749
|
}
|
|
3733
|
-
function
|
|
3750
|
+
function to(e) {
|
|
3734
3751
|
return typeof e == "number" ? {
|
|
3735
3752
|
top: e,
|
|
3736
3753
|
right: e,
|
|
3737
3754
|
bottom: e,
|
|
3738
3755
|
left: e
|
|
3739
|
-
} :
|
|
3756
|
+
} : eo(e);
|
|
3740
3757
|
}
|
|
3741
|
-
function
|
|
3758
|
+
function no(e) {
|
|
3742
3759
|
let { x: t, y: n, width: r, height: i } = e;
|
|
3743
3760
|
return {
|
|
3744
3761
|
width: r,
|
|
@@ -3753,8 +3770,8 @@ function eo(e) {
|
|
|
3753
3770
|
}
|
|
3754
3771
|
//#endregion
|
|
3755
3772
|
//#region ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
3756
|
-
function
|
|
3757
|
-
let { reference: r, floating: i } = e, a = Y(t), o =
|
|
3773
|
+
function ro(e, t, n) {
|
|
3774
|
+
let { reference: r, floating: i } = e, a = Y(t), o = Ua(t), s = Ha(o), c = za(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
3758
3775
|
switch (c) {
|
|
3759
3776
|
case "top":
|
|
3760
3777
|
p = {
|
|
@@ -3785,7 +3802,7 @@ function to(e, t, n) {
|
|
|
3785
3802
|
y: r.y
|
|
3786
3803
|
};
|
|
3787
3804
|
}
|
|
3788
|
-
switch (
|
|
3805
|
+
switch (Ba(t)) {
|
|
3789
3806
|
case "start":
|
|
3790
3807
|
p[o] -= f * (n && l ? -1 : 1);
|
|
3791
3808
|
break;
|
|
@@ -3795,9 +3812,9 @@ function to(e, t, n) {
|
|
|
3795
3812
|
}
|
|
3796
3813
|
return p;
|
|
3797
3814
|
}
|
|
3798
|
-
async function
|
|
3815
|
+
async function io(e, t) {
|
|
3799
3816
|
t === void 0 && (t = {});
|
|
3800
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
3817
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Ra(t, e), p = to(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = no(await i.getClippingRect({
|
|
3801
3818
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
3802
3819
|
boundary: c,
|
|
3803
3820
|
rootBoundary: l,
|
|
@@ -3810,7 +3827,7 @@ async function no(e, t) {
|
|
|
3810
3827
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
3811
3828
|
x: 1,
|
|
3812
3829
|
y: 1
|
|
3813
|
-
}, y =
|
|
3830
|
+
}, y = no(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3814
3831
|
elements: o,
|
|
3815
3832
|
rect: g,
|
|
3816
3833
|
offsetParent: _,
|
|
@@ -3823,15 +3840,15 @@ async function no(e, t) {
|
|
|
3823
3840
|
right: (y.right - h.right + p.right) / v.x
|
|
3824
3841
|
};
|
|
3825
3842
|
}
|
|
3826
|
-
var
|
|
3843
|
+
var ao = 50, oo = async (e, t, n) => {
|
|
3827
3844
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
3828
3845
|
...o,
|
|
3829
|
-
detectOverflow:
|
|
3846
|
+
detectOverflow: io
|
|
3830
3847
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
3831
3848
|
reference: e,
|
|
3832
3849
|
floating: t,
|
|
3833
3850
|
strategy: i
|
|
3834
|
-
}), { x: u, y: d } =
|
|
3851
|
+
}), { x: u, y: d } = ro(l, r, c), f = r, p = 0, m = {};
|
|
3835
3852
|
for (let n = 0; n < a.length; n++) {
|
|
3836
3853
|
let h = a[n];
|
|
3837
3854
|
if (!h) continue;
|
|
@@ -3852,11 +3869,11 @@ var ro = 50, io = async (e, t, n) => {
|
|
|
3852
3869
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
3853
3870
|
...m[g],
|
|
3854
3871
|
...b
|
|
3855
|
-
}, x && p <
|
|
3872
|
+
}, x && p < ao && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
3856
3873
|
reference: e,
|
|
3857
3874
|
floating: t,
|
|
3858
3875
|
strategy: i
|
|
3859
|
-
}) : x.rects), {x: u, y: d} =
|
|
3876
|
+
}) : x.rects), {x: u, y: d} = ro(l, f, c)), n = -1);
|
|
3860
3877
|
}
|
|
3861
3878
|
return {
|
|
3862
3879
|
x: u,
|
|
@@ -3865,18 +3882,18 @@ var ro = 50, io = async (e, t, n) => {
|
|
|
3865
3882
|
strategy: i,
|
|
3866
3883
|
middlewareData: m
|
|
3867
3884
|
};
|
|
3868
|
-
},
|
|
3885
|
+
}, so = (e) => ({
|
|
3869
3886
|
name: "arrow",
|
|
3870
3887
|
options: e,
|
|
3871
3888
|
async fn(t) {
|
|
3872
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
3889
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Ra(e, t) || {};
|
|
3873
3890
|
if (l == null) return {};
|
|
3874
|
-
let d =
|
|
3891
|
+
let d = to(u), f = {
|
|
3875
3892
|
x: n,
|
|
3876
3893
|
y: r
|
|
3877
|
-
}, p =
|
|
3894
|
+
}, p = Ua(i), m = Ha(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
3878
3895
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
3879
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
3896
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Na(d[_], T), ee = Na(d[v], T), D = E, te = C - h[m] - ee, O = C / 2 - h[m] / 2 + w, k = La(D, O, te), A = !c.arrow && Ba(i) != null && O !== k && a.reference[m] / 2 - (O < D ? E : ee) - h[m] / 2 < 0, j = A ? O < D ? O - D : O - te : 0;
|
|
3880
3897
|
return {
|
|
3881
3898
|
[p]: f[p] + j,
|
|
3882
3899
|
data: {
|
|
@@ -3887,19 +3904,19 @@ var ro = 50, io = async (e, t, n) => {
|
|
|
3887
3904
|
reset: A
|
|
3888
3905
|
};
|
|
3889
3906
|
}
|
|
3890
|
-
}),
|
|
3907
|
+
}), co = function(e) {
|
|
3891
3908
|
return e === void 0 && (e = {}), {
|
|
3892
3909
|
name: "flip",
|
|
3893
3910
|
options: e,
|
|
3894
3911
|
async fn(t) {
|
|
3895
3912
|
var n;
|
|
3896
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
3913
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Ra(e, t);
|
|
3897
3914
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
3898
|
-
let g =
|
|
3899
|
-
!d && x && b.push(...
|
|
3915
|
+
let g = za(r), _ = Y(o), v = za(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [$a(o)] : Ga(o)), x = p !== "none";
|
|
3916
|
+
!d && x && b.push(...Qa(o, m, p, y));
|
|
3900
3917
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
3901
3918
|
if (l && w.push(C[g]), u) {
|
|
3902
|
-
let e =
|
|
3919
|
+
let e = Wa(r, a, y);
|
|
3903
3920
|
w.push(C[e[0]], C[e[1]]);
|
|
3904
3921
|
}
|
|
3905
3922
|
if (T = [...T, {
|
|
@@ -3937,7 +3954,7 @@ var ro = 50, io = async (e, t, n) => {
|
|
|
3937
3954
|
}
|
|
3938
3955
|
};
|
|
3939
3956
|
};
|
|
3940
|
-
function
|
|
3957
|
+
function lo(e, t) {
|
|
3941
3958
|
return {
|
|
3942
3959
|
top: e.top - t.height,
|
|
3943
3960
|
right: e.right - t.width,
|
|
@@ -3945,43 +3962,43 @@ function so(e, t) {
|
|
|
3945
3962
|
left: e.left - t.width
|
|
3946
3963
|
};
|
|
3947
3964
|
}
|
|
3948
|
-
function
|
|
3949
|
-
return
|
|
3965
|
+
function uo(e) {
|
|
3966
|
+
return Ma.some((t) => e[t] >= 0);
|
|
3950
3967
|
}
|
|
3951
|
-
var
|
|
3968
|
+
var fo = function(e) {
|
|
3952
3969
|
return e === void 0 && (e = {}), {
|
|
3953
3970
|
name: "hide",
|
|
3954
3971
|
options: e,
|
|
3955
3972
|
async fn(t) {
|
|
3956
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
3973
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = Ra(e, t);
|
|
3957
3974
|
switch (i) {
|
|
3958
3975
|
case "referenceHidden": {
|
|
3959
|
-
let e =
|
|
3976
|
+
let e = lo(await r.detectOverflow(t, {
|
|
3960
3977
|
...a,
|
|
3961
3978
|
elementContext: "reference"
|
|
3962
3979
|
}), n.reference);
|
|
3963
3980
|
return { data: {
|
|
3964
3981
|
referenceHiddenOffsets: e,
|
|
3965
|
-
referenceHidden:
|
|
3982
|
+
referenceHidden: uo(e)
|
|
3966
3983
|
} };
|
|
3967
3984
|
}
|
|
3968
3985
|
case "escaped": {
|
|
3969
|
-
let e =
|
|
3986
|
+
let e = lo(await r.detectOverflow(t, {
|
|
3970
3987
|
...a,
|
|
3971
3988
|
altBoundary: !0
|
|
3972
3989
|
}), n.floating);
|
|
3973
3990
|
return { data: {
|
|
3974
3991
|
escapedOffsets: e,
|
|
3975
|
-
escaped:
|
|
3992
|
+
escaped: uo(e)
|
|
3976
3993
|
} };
|
|
3977
3994
|
}
|
|
3978
3995
|
default: return {};
|
|
3979
3996
|
}
|
|
3980
3997
|
}
|
|
3981
3998
|
};
|
|
3982
|
-
},
|
|
3983
|
-
async function
|
|
3984
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
3999
|
+
}, po = /*#__PURE__*/ new Set(["left", "top"]);
|
|
4000
|
+
async function mo(e, t) {
|
|
4001
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = za(n), s = Ba(n), c = Y(n) === "y", l = po.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Ra(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
3985
4002
|
mainAxis: d,
|
|
3986
4003
|
crossAxis: 0,
|
|
3987
4004
|
alignmentAxis: null
|
|
@@ -3998,13 +4015,13 @@ async function fo(e, t) {
|
|
|
3998
4015
|
y: p * u
|
|
3999
4016
|
};
|
|
4000
4017
|
}
|
|
4001
|
-
var
|
|
4018
|
+
var ho = function(e) {
|
|
4002
4019
|
return e === void 0 && (e = 0), {
|
|
4003
4020
|
name: "offset",
|
|
4004
4021
|
options: e,
|
|
4005
4022
|
async fn(t) {
|
|
4006
4023
|
var n;
|
|
4007
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
4024
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await mo(t, e);
|
|
4008
4025
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
4009
4026
|
x: r + s.x,
|
|
4010
4027
|
y: i + s.y,
|
|
@@ -4015,7 +4032,7 @@ var po = function(e) {
|
|
|
4015
4032
|
};
|
|
4016
4033
|
}
|
|
4017
4034
|
};
|
|
4018
|
-
},
|
|
4035
|
+
}, go = function(e) {
|
|
4019
4036
|
return e === void 0 && (e = {}), {
|
|
4020
4037
|
name: "shift",
|
|
4021
4038
|
options: e,
|
|
@@ -4026,17 +4043,17 @@ var po = function(e) {
|
|
|
4026
4043
|
x: t,
|
|
4027
4044
|
y: n
|
|
4028
4045
|
};
|
|
4029
|
-
} }, ...l } =
|
|
4046
|
+
} }, ...l } = Ra(e, t), u = {
|
|
4030
4047
|
x: n,
|
|
4031
4048
|
y: r
|
|
4032
|
-
}, d = await a.detectOverflow(t, l), f = Y(
|
|
4049
|
+
}, d = await a.detectOverflow(t, l), f = Y(za(i)), p = Va(f), m = u[p], h = u[f];
|
|
4033
4050
|
if (o) {
|
|
4034
4051
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
4035
|
-
m =
|
|
4052
|
+
m = La(n, m, r);
|
|
4036
4053
|
}
|
|
4037
4054
|
if (s) {
|
|
4038
4055
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
4039
|
-
h =
|
|
4056
|
+
h = La(n, h, r);
|
|
4040
4057
|
}
|
|
4041
4058
|
let g = c.fn({
|
|
4042
4059
|
...t,
|
|
@@ -4056,14 +4073,14 @@ var po = function(e) {
|
|
|
4056
4073
|
};
|
|
4057
4074
|
}
|
|
4058
4075
|
};
|
|
4059
|
-
},
|
|
4076
|
+
}, _o = function(e) {
|
|
4060
4077
|
return e === void 0 && (e = {}), {
|
|
4061
4078
|
options: e,
|
|
4062
4079
|
fn(t) {
|
|
4063
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } =
|
|
4080
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = Ra(e, t), u = {
|
|
4064
4081
|
x: n,
|
|
4065
4082
|
y: r
|
|
4066
|
-
}, d = Y(i), f =
|
|
4083
|
+
}, d = Y(i), f = Va(d), p = u[f], m = u[d], h = Ra(s, t), g = typeof h == "number" ? {
|
|
4067
4084
|
mainAxis: h,
|
|
4068
4085
|
crossAxis: 0
|
|
4069
4086
|
} : {
|
|
@@ -4076,7 +4093,7 @@ var po = function(e) {
|
|
|
4076
4093
|
p < t ? p = t : p > n && (p = n);
|
|
4077
4094
|
}
|
|
4078
4095
|
if (l) {
|
|
4079
|
-
let e = f === "y" ? "width" : "height", t =
|
|
4096
|
+
let e = f === "y" ? "width" : "height", t = po.has(za(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
4080
4097
|
m < n ? m = n : m > r && (m = r);
|
|
4081
4098
|
}
|
|
4082
4099
|
return {
|
|
@@ -4085,15 +4102,15 @@ var po = function(e) {
|
|
|
4085
4102
|
};
|
|
4086
4103
|
}
|
|
4087
4104
|
};
|
|
4088
|
-
},
|
|
4105
|
+
}, vo = function(e) {
|
|
4089
4106
|
return e === void 0 && (e = {}), {
|
|
4090
4107
|
name: "size",
|
|
4091
4108
|
options: e,
|
|
4092
4109
|
async fn(t) {
|
|
4093
4110
|
var n, r;
|
|
4094
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
4111
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = Ra(e, t), u = await o.detectOverflow(t, l), d = za(i), f = Ba(i), p = Y(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
4095
4112
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
4096
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
4113
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = Na(h - u[g], v), x = Na(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
4097
4114
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
4098
4115
|
let e = q(u.left, 0), t = q(u.right, 0), n = q(u.top, 0), r = q(u.bottom, 0);
|
|
4099
4116
|
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : q(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : q(u.top, u.bottom));
|
|
@@ -4110,39 +4127,39 @@ var po = function(e) {
|
|
|
4110
4127
|
};
|
|
4111
4128
|
//#endregion
|
|
4112
4129
|
//#region ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
4113
|
-
function
|
|
4130
|
+
function yo() {
|
|
4114
4131
|
return typeof window < "u";
|
|
4115
4132
|
}
|
|
4116
|
-
function
|
|
4117
|
-
return
|
|
4133
|
+
function bo(e) {
|
|
4134
|
+
return xo(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
4118
4135
|
}
|
|
4119
4136
|
function X(e) {
|
|
4120
4137
|
var t;
|
|
4121
4138
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
4122
4139
|
}
|
|
4123
4140
|
function Z(e) {
|
|
4124
|
-
return ((
|
|
4141
|
+
return ((xo(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
4125
4142
|
}
|
|
4126
|
-
function
|
|
4127
|
-
return
|
|
4143
|
+
function xo(e) {
|
|
4144
|
+
return yo() ? e instanceof Node || e instanceof X(e).Node : !1;
|
|
4128
4145
|
}
|
|
4129
4146
|
function Q(e) {
|
|
4130
|
-
return
|
|
4147
|
+
return yo() ? e instanceof Element || e instanceof X(e).Element : !1;
|
|
4131
4148
|
}
|
|
4132
|
-
function
|
|
4133
|
-
return
|
|
4149
|
+
function So(e) {
|
|
4150
|
+
return yo() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
|
|
4134
4151
|
}
|
|
4135
|
-
function
|
|
4136
|
-
return !
|
|
4152
|
+
function Co(e) {
|
|
4153
|
+
return !yo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
|
|
4137
4154
|
}
|
|
4138
|
-
function
|
|
4155
|
+
function wo(e) {
|
|
4139
4156
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = $(e);
|
|
4140
4157
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
4141
4158
|
}
|
|
4142
|
-
function
|
|
4143
|
-
return /^(table|td|th)$/.test(
|
|
4159
|
+
function To(e) {
|
|
4160
|
+
return /^(table|td|th)$/.test(bo(e));
|
|
4144
4161
|
}
|
|
4145
|
-
function
|
|
4162
|
+
function Eo(e) {
|
|
4146
4163
|
try {
|
|
4147
4164
|
if (e.matches(":popover-open")) return !0;
|
|
4148
4165
|
} catch {}
|
|
@@ -4152,30 +4169,30 @@ function wo(e) {
|
|
|
4152
4169
|
return !1;
|
|
4153
4170
|
}
|
|
4154
4171
|
}
|
|
4155
|
-
var
|
|
4156
|
-
function
|
|
4172
|
+
var Do = /transform|translate|scale|rotate|perspective|filter/, Oo = /paint|layout|strict|content/, ko = (e) => !!e && e !== "none", Ao;
|
|
4173
|
+
function jo(e) {
|
|
4157
4174
|
let t = Q(e) ? $(e) : e;
|
|
4158
|
-
return
|
|
4159
|
-
}
|
|
4160
|
-
function
|
|
4161
|
-
let t =
|
|
4162
|
-
for (;
|
|
4163
|
-
if (
|
|
4164
|
-
if (
|
|
4165
|
-
t =
|
|
4175
|
+
return ko(t.transform) || ko(t.translate) || ko(t.scale) || ko(t.rotate) || ko(t.perspective) || !No() && (ko(t.backdropFilter) || ko(t.filter)) || Do.test(t.willChange || "") || Oo.test(t.contain || "");
|
|
4176
|
+
}
|
|
4177
|
+
function Mo(e) {
|
|
4178
|
+
let t = Io(e);
|
|
4179
|
+
for (; So(t) && !Po(t);) {
|
|
4180
|
+
if (jo(t)) return t;
|
|
4181
|
+
if (Eo(t)) return null;
|
|
4182
|
+
t = Io(t);
|
|
4166
4183
|
}
|
|
4167
4184
|
return null;
|
|
4168
4185
|
}
|
|
4169
|
-
function
|
|
4170
|
-
return
|
|
4186
|
+
function No() {
|
|
4187
|
+
return Ao ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Ao;
|
|
4171
4188
|
}
|
|
4172
|
-
function
|
|
4173
|
-
return /^(html|body|#document)$/.test(
|
|
4189
|
+
function Po(e) {
|
|
4190
|
+
return /^(html|body|#document)$/.test(bo(e));
|
|
4174
4191
|
}
|
|
4175
4192
|
function $(e) {
|
|
4176
4193
|
return X(e).getComputedStyle(e);
|
|
4177
4194
|
}
|
|
4178
|
-
function
|
|
4195
|
+
function Fo(e) {
|
|
4179
4196
|
return Q(e) ? {
|
|
4180
4197
|
scrollLeft: e.scrollLeft,
|
|
4181
4198
|
scrollTop: e.scrollTop
|
|
@@ -4184,101 +4201,101 @@ function No(e) {
|
|
|
4184
4201
|
scrollTop: e.scrollY
|
|
4185
4202
|
};
|
|
4186
4203
|
}
|
|
4187
|
-
function
|
|
4188
|
-
if (
|
|
4189
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
4190
|
-
return
|
|
4204
|
+
function Io(e) {
|
|
4205
|
+
if (bo(e) === "html") return e;
|
|
4206
|
+
let t = e.assignedSlot || e.parentNode || Co(e) && e.host || Z(e);
|
|
4207
|
+
return Co(t) ? t.host : t;
|
|
4191
4208
|
}
|
|
4192
|
-
function
|
|
4193
|
-
let t =
|
|
4194
|
-
return
|
|
4209
|
+
function Lo(e) {
|
|
4210
|
+
let t = Io(e);
|
|
4211
|
+
return Po(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : So(t) && wo(t) ? t : Lo(t);
|
|
4195
4212
|
}
|
|
4196
|
-
function
|
|
4213
|
+
function Ro(e, t, n) {
|
|
4197
4214
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
4198
|
-
let r =
|
|
4215
|
+
let r = Lo(e), i = r === e.ownerDocument?.body, a = X(r);
|
|
4199
4216
|
if (i) {
|
|
4200
|
-
let e =
|
|
4201
|
-
return t.concat(a, a.visualViewport || [],
|
|
4202
|
-
} else return t.concat(r,
|
|
4217
|
+
let e = zo(a);
|
|
4218
|
+
return t.concat(a, a.visualViewport || [], wo(r) ? r : [], e && n ? Ro(e) : []);
|
|
4219
|
+
} else return t.concat(r, Ro(r, [], n));
|
|
4203
4220
|
}
|
|
4204
|
-
function
|
|
4221
|
+
function zo(e) {
|
|
4205
4222
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
4206
4223
|
}
|
|
4207
4224
|
//#endregion
|
|
4208
4225
|
//#region ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
4209
|
-
function
|
|
4210
|
-
let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i =
|
|
4226
|
+
function Bo(e) {
|
|
4227
|
+
let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = So(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Pa(n) !== a || Pa(r) !== o;
|
|
4211
4228
|
return s && (n = a, r = o), {
|
|
4212
4229
|
width: n,
|
|
4213
4230
|
height: r,
|
|
4214
4231
|
$: s
|
|
4215
4232
|
};
|
|
4216
4233
|
}
|
|
4217
|
-
function
|
|
4234
|
+
function Vo(e) {
|
|
4218
4235
|
return Q(e) ? e : e.contextElement;
|
|
4219
4236
|
}
|
|
4220
|
-
function
|
|
4221
|
-
let t =
|
|
4222
|
-
if (!
|
|
4223
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
4237
|
+
function Ho(e) {
|
|
4238
|
+
let t = Vo(e);
|
|
4239
|
+
if (!So(t)) return J(1);
|
|
4240
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Bo(t), o = (a ? Pa(n.width) : n.width) / r, s = (a ? Pa(n.height) : n.height) / i;
|
|
4224
4241
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
4225
4242
|
x: o,
|
|
4226
4243
|
y: s
|
|
4227
4244
|
};
|
|
4228
4245
|
}
|
|
4229
|
-
var
|
|
4230
|
-
function
|
|
4246
|
+
var Uo = /*#__PURE__*/ J(0);
|
|
4247
|
+
function Wo(e) {
|
|
4231
4248
|
let t = X(e);
|
|
4232
|
-
return !
|
|
4249
|
+
return !No() || !t.visualViewport ? Uo : {
|
|
4233
4250
|
x: t.visualViewport.offsetLeft,
|
|
4234
4251
|
y: t.visualViewport.offsetTop
|
|
4235
4252
|
};
|
|
4236
4253
|
}
|
|
4237
|
-
function
|
|
4254
|
+
function Go(e, t, n) {
|
|
4238
4255
|
return t === void 0 && (t = !1), !n || t && n !== X(e) ? !1 : t;
|
|
4239
4256
|
}
|
|
4240
|
-
function
|
|
4257
|
+
function Ko(e, t, n, r) {
|
|
4241
4258
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4242
|
-
let i = e.getBoundingClientRect(), a =
|
|
4243
|
-
t && (r ? Q(r) && (o =
|
|
4244
|
-
let s =
|
|
4259
|
+
let i = e.getBoundingClientRect(), a = Vo(e), o = J(1);
|
|
4260
|
+
t && (r ? Q(r) && (o = Ho(r)) : o = Ho(e));
|
|
4261
|
+
let s = Go(a, n, r) ? Wo(a) : J(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
4245
4262
|
if (a) {
|
|
4246
|
-
let e = X(a), t = r && Q(r) ? X(r) : r, n = e, i =
|
|
4263
|
+
let e = X(a), t = r && Q(r) ? X(r) : r, n = e, i = zo(n);
|
|
4247
4264
|
for (; i && r && t !== n;) {
|
|
4248
|
-
let e =
|
|
4249
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i =
|
|
4265
|
+
let e = Ho(i), t = i.getBoundingClientRect(), r = $(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
4266
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i = zo(n);
|
|
4250
4267
|
}
|
|
4251
4268
|
}
|
|
4252
|
-
return
|
|
4269
|
+
return no({
|
|
4253
4270
|
width: u,
|
|
4254
4271
|
height: d,
|
|
4255
4272
|
x: c,
|
|
4256
4273
|
y: l
|
|
4257
4274
|
});
|
|
4258
4275
|
}
|
|
4259
|
-
function
|
|
4260
|
-
let n =
|
|
4261
|
-
return t ? t.left + n :
|
|
4276
|
+
function qo(e, t) {
|
|
4277
|
+
let n = Fo(e).scrollLeft;
|
|
4278
|
+
return t ? t.left + n : Ko(Z(e)).left + n;
|
|
4262
4279
|
}
|
|
4263
|
-
function
|
|
4280
|
+
function Jo(e, t) {
|
|
4264
4281
|
let n = e.getBoundingClientRect();
|
|
4265
4282
|
return {
|
|
4266
|
-
x: n.left + t.scrollLeft -
|
|
4283
|
+
x: n.left + t.scrollLeft - qo(e, n),
|
|
4267
4284
|
y: n.top + t.scrollTop
|
|
4268
4285
|
};
|
|
4269
4286
|
}
|
|
4270
|
-
function
|
|
4271
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Z(r), s = t ?
|
|
4287
|
+
function Yo(e) {
|
|
4288
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Z(r), s = t ? Eo(t.floating) : !1;
|
|
4272
4289
|
if (r === o || s && a) return n;
|
|
4273
4290
|
let c = {
|
|
4274
4291
|
scrollLeft: 0,
|
|
4275
4292
|
scrollTop: 0
|
|
4276
|
-
}, l = J(1), u = J(0), d =
|
|
4277
|
-
if ((d || !d && !a) && ((
|
|
4278
|
-
let e =
|
|
4279
|
-
l =
|
|
4293
|
+
}, l = J(1), u = J(0), d = So(r);
|
|
4294
|
+
if ((d || !d && !a) && ((bo(r) !== "body" || wo(o)) && (c = Fo(r)), d)) {
|
|
4295
|
+
let e = Ko(r);
|
|
4296
|
+
l = Ho(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
4280
4297
|
}
|
|
4281
|
-
let f = o && !d && !a ?
|
|
4298
|
+
let f = o && !d && !a ? Jo(o, c) : J(0);
|
|
4282
4299
|
return {
|
|
4283
4300
|
width: n.width * l.x,
|
|
4284
4301
|
height: n.height * l.y,
|
|
@@ -4286,11 +4303,11 @@ function qo(e) {
|
|
|
4286
4303
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
4287
4304
|
};
|
|
4288
4305
|
}
|
|
4289
|
-
function
|
|
4306
|
+
function Xo(e) {
|
|
4290
4307
|
return Array.from(e.getClientRects());
|
|
4291
4308
|
}
|
|
4292
|
-
function
|
|
4293
|
-
let t = Z(e), n =
|
|
4309
|
+
function Zo(e) {
|
|
4310
|
+
let t = Z(e), n = Fo(e), r = e.ownerDocument.body, i = q(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = q(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + qo(e), s = -n.scrollTop;
|
|
4294
4311
|
return $(r).direction === "rtl" && (o += q(t.clientWidth, r.clientWidth) - i), {
|
|
4295
4312
|
width: i,
|
|
4296
4313
|
height: a,
|
|
@@ -4298,19 +4315,19 @@ function Yo(e) {
|
|
|
4298
4315
|
y: s
|
|
4299
4316
|
};
|
|
4300
4317
|
}
|
|
4301
|
-
var
|
|
4302
|
-
function
|
|
4318
|
+
var Qo = 25;
|
|
4319
|
+
function $o(e, t) {
|
|
4303
4320
|
let n = X(e), r = Z(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
4304
4321
|
if (i) {
|
|
4305
4322
|
a = i.width, o = i.height;
|
|
4306
|
-
let e =
|
|
4323
|
+
let e = No();
|
|
4307
4324
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
4308
4325
|
}
|
|
4309
|
-
let l =
|
|
4326
|
+
let l = qo(r);
|
|
4310
4327
|
if (l <= 0) {
|
|
4311
4328
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
4312
|
-
o <=
|
|
4313
|
-
} else l <=
|
|
4329
|
+
o <= Qo && (a -= o);
|
|
4330
|
+
} else l <= Qo && (a += l);
|
|
4314
4331
|
return {
|
|
4315
4332
|
width: a,
|
|
4316
4333
|
height: o,
|
|
@@ -4318,8 +4335,8 @@ function Zo(e, t) {
|
|
|
4318
4335
|
y: c
|
|
4319
4336
|
};
|
|
4320
4337
|
}
|
|
4321
|
-
function
|
|
4322
|
-
let n =
|
|
4338
|
+
function es(e, t) {
|
|
4339
|
+
let n = Ko(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = So(e) ? Ho(e) : J(1);
|
|
4323
4340
|
return {
|
|
4324
4341
|
width: e.clientWidth * a.x,
|
|
4325
4342
|
height: e.clientHeight * a.y,
|
|
@@ -4327,13 +4344,13 @@ function Qo(e, t) {
|
|
|
4327
4344
|
y: r * a.y
|
|
4328
4345
|
};
|
|
4329
4346
|
}
|
|
4330
|
-
function
|
|
4347
|
+
function ts(e, t, n) {
|
|
4331
4348
|
let r;
|
|
4332
|
-
if (t === "viewport") r =
|
|
4333
|
-
else if (t === "document") r =
|
|
4334
|
-
else if (Q(t)) r =
|
|
4349
|
+
if (t === "viewport") r = $o(e, n);
|
|
4350
|
+
else if (t === "document") r = Zo(Z(e));
|
|
4351
|
+
else if (Q(t)) r = es(t, n);
|
|
4335
4352
|
else {
|
|
4336
|
-
let n =
|
|
4353
|
+
let n = Wo(e);
|
|
4337
4354
|
r = {
|
|
4338
4355
|
x: t.x - n.x,
|
|
4339
4356
|
y: t.y - n.y,
|
|
@@ -4341,27 +4358,27 @@ function $o(e, t, n) {
|
|
|
4341
4358
|
height: t.height
|
|
4342
4359
|
};
|
|
4343
4360
|
}
|
|
4344
|
-
return
|
|
4361
|
+
return no(r);
|
|
4345
4362
|
}
|
|
4346
|
-
function
|
|
4347
|
-
let n =
|
|
4348
|
-
return n === t || !Q(n) ||
|
|
4363
|
+
function ns(e, t) {
|
|
4364
|
+
let n = Io(e);
|
|
4365
|
+
return n === t || !Q(n) || Po(n) ? !1 : $(n).position === "fixed" || ns(n, t);
|
|
4349
4366
|
}
|
|
4350
|
-
function
|
|
4367
|
+
function rs(e, t) {
|
|
4351
4368
|
let n = t.get(e);
|
|
4352
4369
|
if (n) return n;
|
|
4353
|
-
let r =
|
|
4354
|
-
for (; Q(o) && !
|
|
4355
|
-
let t = $(o), n =
|
|
4356
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
4370
|
+
let r = Ro(e, [], !1).filter((e) => Q(e) && bo(e) !== "body"), i = null, a = $(e).position === "fixed", o = a ? Io(e) : e;
|
|
4371
|
+
for (; Q(o) && !Po(o);) {
|
|
4372
|
+
let t = $(o), n = jo(o);
|
|
4373
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || wo(o) && !n && ns(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Io(o);
|
|
4357
4374
|
}
|
|
4358
4375
|
return t.set(e, r), r;
|
|
4359
4376
|
}
|
|
4360
|
-
function
|
|
4361
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
4377
|
+
function is(e) {
|
|
4378
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Eo(t) ? [] : rs(t, this._c) : [].concat(n), r], o = ts(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
4362
4379
|
for (let e = 1; e < a.length; e++) {
|
|
4363
|
-
let n =
|
|
4364
|
-
s = q(n.top, s), c =
|
|
4380
|
+
let n = ts(t, a[e], i);
|
|
4381
|
+
s = q(n.top, s), c = Na(n.right, c), l = Na(n.bottom, l), u = q(n.left, u);
|
|
4365
4382
|
}
|
|
4366
4383
|
return {
|
|
4367
4384
|
width: c - u,
|
|
@@ -4370,27 +4387,27 @@ function ns(e) {
|
|
|
4370
4387
|
y: s
|
|
4371
4388
|
};
|
|
4372
4389
|
}
|
|
4373
|
-
function
|
|
4374
|
-
let { width: t, height: n } =
|
|
4390
|
+
function as(e) {
|
|
4391
|
+
let { width: t, height: n } = Bo(e);
|
|
4375
4392
|
return {
|
|
4376
4393
|
width: t,
|
|
4377
4394
|
height: n
|
|
4378
4395
|
};
|
|
4379
4396
|
}
|
|
4380
|
-
function
|
|
4381
|
-
let r =
|
|
4397
|
+
function os(e, t, n) {
|
|
4398
|
+
let r = So(t), i = Z(t), a = n === "fixed", o = Ko(e, !0, a, t), s = {
|
|
4382
4399
|
scrollLeft: 0,
|
|
4383
4400
|
scrollTop: 0
|
|
4384
4401
|
}, c = J(0);
|
|
4385
4402
|
function l() {
|
|
4386
|
-
c.x =
|
|
4403
|
+
c.x = qo(i);
|
|
4387
4404
|
}
|
|
4388
|
-
if (r || !r && !a) if ((
|
|
4389
|
-
let e =
|
|
4405
|
+
if (r || !r && !a) if ((bo(t) !== "body" || wo(i)) && (s = Fo(t)), r) {
|
|
4406
|
+
let e = Ko(t, !0, a, t);
|
|
4390
4407
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
4391
4408
|
} else i && l();
|
|
4392
4409
|
a && !r && i && l();
|
|
4393
|
-
let u = i && !r && !a ?
|
|
4410
|
+
let u = i && !r && !a ? Jo(i, s) : J(0);
|
|
4394
4411
|
return {
|
|
4395
4412
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
4396
4413
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -4398,34 +4415,34 @@ function is(e, t, n) {
|
|
|
4398
4415
|
height: o.height
|
|
4399
4416
|
};
|
|
4400
4417
|
}
|
|
4401
|
-
function
|
|
4418
|
+
function ss(e) {
|
|
4402
4419
|
return $(e).position === "static";
|
|
4403
4420
|
}
|
|
4404
|
-
function
|
|
4405
|
-
if (!
|
|
4421
|
+
function cs(e, t) {
|
|
4422
|
+
if (!So(e) || $(e).position === "fixed") return null;
|
|
4406
4423
|
if (t) return t(e);
|
|
4407
4424
|
let n = e.offsetParent;
|
|
4408
4425
|
return Z(e) === n && (n = n.ownerDocument.body), n;
|
|
4409
4426
|
}
|
|
4410
|
-
function
|
|
4427
|
+
function ls(e, t) {
|
|
4411
4428
|
let n = X(e);
|
|
4412
|
-
if (
|
|
4413
|
-
if (!
|
|
4414
|
-
let t =
|
|
4415
|
-
for (; t && !
|
|
4416
|
-
if (Q(t) && !
|
|
4417
|
-
t =
|
|
4429
|
+
if (Eo(e)) return n;
|
|
4430
|
+
if (!So(e)) {
|
|
4431
|
+
let t = Io(e);
|
|
4432
|
+
for (; t && !Po(t);) {
|
|
4433
|
+
if (Q(t) && !ss(t)) return t;
|
|
4434
|
+
t = Io(t);
|
|
4418
4435
|
}
|
|
4419
4436
|
return n;
|
|
4420
4437
|
}
|
|
4421
|
-
let r =
|
|
4422
|
-
for (; r &&
|
|
4423
|
-
return r &&
|
|
4438
|
+
let r = cs(e, t);
|
|
4439
|
+
for (; r && To(r) && ss(r);) r = cs(r, t);
|
|
4440
|
+
return r && Po(r) && ss(r) && !jo(r) ? n : r || Mo(e) || n;
|
|
4424
4441
|
}
|
|
4425
|
-
var
|
|
4426
|
-
let t = this.getOffsetParent ||
|
|
4442
|
+
var us = async function(e) {
|
|
4443
|
+
let t = this.getOffsetParent || ls, n = this.getDimensions, r = await n(e.floating);
|
|
4427
4444
|
return {
|
|
4428
|
-
reference:
|
|
4445
|
+
reference: os(e.reference, await t(e.floating), e.strategy),
|
|
4429
4446
|
floating: {
|
|
4430
4447
|
x: 0,
|
|
4431
4448
|
y: 0,
|
|
@@ -4434,25 +4451,25 @@ var cs = async function(e) {
|
|
|
4434
4451
|
}
|
|
4435
4452
|
};
|
|
4436
4453
|
};
|
|
4437
|
-
function
|
|
4454
|
+
function ds(e) {
|
|
4438
4455
|
return $(e).direction === "rtl";
|
|
4439
4456
|
}
|
|
4440
|
-
var
|
|
4441
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4457
|
+
var fs = {
|
|
4458
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Yo,
|
|
4442
4459
|
getDocumentElement: Z,
|
|
4443
|
-
getClippingRect:
|
|
4444
|
-
getOffsetParent:
|
|
4445
|
-
getElementRects:
|
|
4446
|
-
getClientRects:
|
|
4447
|
-
getDimensions:
|
|
4448
|
-
getScale:
|
|
4460
|
+
getClippingRect: is,
|
|
4461
|
+
getOffsetParent: ls,
|
|
4462
|
+
getElementRects: us,
|
|
4463
|
+
getClientRects: Xo,
|
|
4464
|
+
getDimensions: as,
|
|
4465
|
+
getScale: Ho,
|
|
4449
4466
|
isElement: Q,
|
|
4450
|
-
isRTL:
|
|
4467
|
+
isRTL: ds
|
|
4451
4468
|
};
|
|
4452
|
-
function
|
|
4469
|
+
function ps(e, t) {
|
|
4453
4470
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
4454
4471
|
}
|
|
4455
|
-
function
|
|
4472
|
+
function ms(e, t) {
|
|
4456
4473
|
let n = null, r, i = Z(e);
|
|
4457
4474
|
function a() {
|
|
4458
4475
|
var e;
|
|
@@ -4462,9 +4479,9 @@ function fs(e, t) {
|
|
|
4462
4479
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
4463
4480
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
4464
4481
|
if (s || t(), !f || !p) return;
|
|
4465
|
-
let m =
|
|
4482
|
+
let m = Fa(d), h = Fa(i.clientWidth - (u + f)), g = Fa(i.clientHeight - (d + p)), _ = Fa(u), v = {
|
|
4466
4483
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
4467
|
-
threshold: q(0,
|
|
4484
|
+
threshold: q(0, Na(1, c)) || 1
|
|
4468
4485
|
}, y = !0;
|
|
4469
4486
|
function b(t) {
|
|
4470
4487
|
let n = t[0].intersectionRatio;
|
|
@@ -4474,7 +4491,7 @@ function fs(e, t) {
|
|
|
4474
4491
|
o(!1, 1e-7);
|
|
4475
4492
|
}, 1e3);
|
|
4476
4493
|
}
|
|
4477
|
-
n === 1 && !
|
|
4494
|
+
n === 1 && !ps(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
4478
4495
|
}
|
|
4479
4496
|
try {
|
|
4480
4497
|
n = new IntersectionObserver(b, {
|
|
@@ -4488,13 +4505,13 @@ function fs(e, t) {
|
|
|
4488
4505
|
}
|
|
4489
4506
|
return o(!0), a;
|
|
4490
4507
|
}
|
|
4491
|
-
function
|
|
4508
|
+
function hs(e, t, n, r) {
|
|
4492
4509
|
r === void 0 && (r = {});
|
|
4493
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
4510
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Vo(e), u = i || a ? [...l ? Ro(l) : [], ...t ? Ro(t) : []] : [];
|
|
4494
4511
|
u.forEach((e) => {
|
|
4495
4512
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
4496
4513
|
});
|
|
4497
|
-
let d = l && s ?
|
|
4514
|
+
let d = l && s ? ms(l, n) : null, f = -1, p = null;
|
|
4498
4515
|
o && (p = new ResizeObserver((e) => {
|
|
4499
4516
|
let [r] = e;
|
|
4500
4517
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -4502,11 +4519,11 @@ function ps(e, t, n, r) {
|
|
|
4502
4519
|
(e = p) == null || e.observe(t);
|
|
4503
4520
|
})), n();
|
|
4504
4521
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
4505
|
-
let m, h = c ?
|
|
4522
|
+
let m, h = c ? Ko(e) : null;
|
|
4506
4523
|
c && g();
|
|
4507
4524
|
function g() {
|
|
4508
|
-
let t =
|
|
4509
|
-
h && !
|
|
4525
|
+
let t = Ko(e);
|
|
4526
|
+
h && !ps(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
4510
4527
|
}
|
|
4511
4528
|
return n(), () => {
|
|
4512
4529
|
var e;
|
|
@@ -4515,20 +4532,20 @@ function ps(e, t, n, r) {
|
|
|
4515
4532
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
4516
4533
|
};
|
|
4517
4534
|
}
|
|
4518
|
-
var
|
|
4535
|
+
var gs = ho, _s = go, vs = co, ys = vo, bs = fo, xs = so, Ss = _o, Cs = (e, t, n) => {
|
|
4519
4536
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
4520
|
-
platform:
|
|
4537
|
+
platform: fs,
|
|
4521
4538
|
...n
|
|
4522
4539
|
}, a = {
|
|
4523
4540
|
...i.platform,
|
|
4524
4541
|
_c: r
|
|
4525
4542
|
};
|
|
4526
|
-
return
|
|
4543
|
+
return oo(e, t, {
|
|
4527
4544
|
...i,
|
|
4528
4545
|
platform: a
|
|
4529
4546
|
});
|
|
4530
|
-
},
|
|
4531
|
-
function
|
|
4547
|
+
}, ws = typeof document < "u" ? c : function() {};
|
|
4548
|
+
function Ts(e, t) {
|
|
4532
4549
|
if (e === t) return !0;
|
|
4533
4550
|
if (typeof e != typeof t) return !1;
|
|
4534
4551
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -4536,33 +4553,33 @@ function Cs(e, t) {
|
|
|
4536
4553
|
if (e && t && typeof e == "object") {
|
|
4537
4554
|
if (Array.isArray(e)) {
|
|
4538
4555
|
if (n = e.length, n !== t.length) return !1;
|
|
4539
|
-
for (r = n; r-- !== 0;) if (!
|
|
4556
|
+
for (r = n; r-- !== 0;) if (!Ts(e[r], t[r])) return !1;
|
|
4540
4557
|
return !0;
|
|
4541
4558
|
}
|
|
4542
4559
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
4543
4560
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
4544
4561
|
for (r = n; r-- !== 0;) {
|
|
4545
4562
|
let n = i[r];
|
|
4546
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
4563
|
+
if (!(n === "_owner" && e.$$typeof) && !Ts(e[n], t[n])) return !1;
|
|
4547
4564
|
}
|
|
4548
4565
|
return !0;
|
|
4549
4566
|
}
|
|
4550
4567
|
return e !== e && t !== t;
|
|
4551
4568
|
}
|
|
4552
|
-
function
|
|
4569
|
+
function Es(e) {
|
|
4553
4570
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
4554
4571
|
}
|
|
4555
|
-
function
|
|
4556
|
-
let n =
|
|
4572
|
+
function Ds(e, t) {
|
|
4573
|
+
let n = Es(e);
|
|
4557
4574
|
return Math.round(t * n) / n;
|
|
4558
4575
|
}
|
|
4559
|
-
function
|
|
4576
|
+
function Os(t) {
|
|
4560
4577
|
let n = e.useRef(t);
|
|
4561
|
-
return
|
|
4578
|
+
return ws(() => {
|
|
4562
4579
|
n.current = t;
|
|
4563
4580
|
}), n;
|
|
4564
4581
|
}
|
|
4565
|
-
function
|
|
4582
|
+
function ks(t) {
|
|
4566
4583
|
t === void 0 && (t = {});
|
|
4567
4584
|
let { placement: n = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = t, [d, p] = e.useState({
|
|
4568
4585
|
x: 0,
|
|
@@ -4572,24 +4589,24 @@ function Ds(t) {
|
|
|
4572
4589
|
middlewareData: {},
|
|
4573
4590
|
isPositioned: !1
|
|
4574
4591
|
}), [m, h] = e.useState(i);
|
|
4575
|
-
|
|
4592
|
+
Ts(m, i) || h(i);
|
|
4576
4593
|
let [g, _] = e.useState(null), [v, y] = e.useState(null), b = e.useCallback((e) => {
|
|
4577
4594
|
e !== w.current && (w.current = e, _(e));
|
|
4578
4595
|
}, []), x = e.useCallback((e) => {
|
|
4579
4596
|
e !== T.current && (T.current = e, y(e));
|
|
4580
|
-
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D =
|
|
4597
|
+
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D = Os(l), te = Os(a), O = Os(u), k = e.useCallback(() => {
|
|
4581
4598
|
if (!w.current || !T.current) return;
|
|
4582
4599
|
let e = {
|
|
4583
4600
|
placement: n,
|
|
4584
4601
|
strategy: r,
|
|
4585
4602
|
middleware: m
|
|
4586
4603
|
};
|
|
4587
|
-
te.current && (e.platform = te.current),
|
|
4604
|
+
te.current && (e.platform = te.current), Cs(w.current, T.current, e).then((e) => {
|
|
4588
4605
|
let t = {
|
|
4589
4606
|
...e,
|
|
4590
4607
|
isPositioned: O.current !== !1
|
|
4591
4608
|
};
|
|
4592
|
-
A.current && !
|
|
4609
|
+
A.current && !Ts(E.current, t) && (E.current = t, f.flushSync(() => {
|
|
4593
4610
|
p(t);
|
|
4594
4611
|
}));
|
|
4595
4612
|
});
|
|
@@ -4600,16 +4617,16 @@ function Ds(t) {
|
|
|
4600
4617
|
te,
|
|
4601
4618
|
O
|
|
4602
4619
|
]);
|
|
4603
|
-
|
|
4620
|
+
ws(() => {
|
|
4604
4621
|
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, p((e) => ({
|
|
4605
4622
|
...e,
|
|
4606
4623
|
isPositioned: !1
|
|
4607
4624
|
})));
|
|
4608
4625
|
}, [u]);
|
|
4609
4626
|
let A = e.useRef(!1);
|
|
4610
|
-
|
|
4627
|
+
ws(() => (A.current = !0, () => {
|
|
4611
4628
|
A.current = !1;
|
|
4612
|
-
}), []),
|
|
4629
|
+
}), []), ws(() => {
|
|
4613
4630
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
4614
4631
|
if (D.current) return D.current(S, C, k);
|
|
4615
4632
|
k();
|
|
@@ -4636,11 +4653,11 @@ function Ds(t) {
|
|
|
4636
4653
|
top: 0
|
|
4637
4654
|
};
|
|
4638
4655
|
if (!M.floating) return e;
|
|
4639
|
-
let t =
|
|
4656
|
+
let t = Ds(M.floating, d.x), n = Ds(M.floating, d.y);
|
|
4640
4657
|
return c ? {
|
|
4641
4658
|
...e,
|
|
4642
4659
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
4643
|
-
...
|
|
4660
|
+
...Es(M.floating) >= 1.5 && { willChange: "transform" }
|
|
4644
4661
|
} : {
|
|
4645
4662
|
position: r,
|
|
4646
4663
|
left: t,
|
|
@@ -4667,7 +4684,7 @@ function Ds(t) {
|
|
|
4667
4684
|
N
|
|
4668
4685
|
]);
|
|
4669
4686
|
}
|
|
4670
|
-
var
|
|
4687
|
+
var As = (e) => {
|
|
4671
4688
|
function t(e) {
|
|
4672
4689
|
return {}.hasOwnProperty.call(e, "current");
|
|
4673
4690
|
}
|
|
@@ -4676,61 +4693,61 @@ var Os = (e) => {
|
|
|
4676
4693
|
options: e,
|
|
4677
4694
|
fn(n) {
|
|
4678
4695
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
4679
|
-
return r && t(r) ? r.current == null ? {} :
|
|
4696
|
+
return r && t(r) ? r.current == null ? {} : xs({
|
|
4680
4697
|
element: r.current,
|
|
4681
4698
|
padding: i
|
|
4682
|
-
}).fn(n) : r ?
|
|
4699
|
+
}).fn(n) : r ? xs({
|
|
4683
4700
|
element: r,
|
|
4684
4701
|
padding: i
|
|
4685
4702
|
}).fn(n) : {};
|
|
4686
4703
|
}
|
|
4687
4704
|
};
|
|
4688
|
-
},
|
|
4689
|
-
let n =
|
|
4705
|
+
}, js = (e, t) => {
|
|
4706
|
+
let n = gs(e);
|
|
4690
4707
|
return {
|
|
4691
4708
|
name: n.name,
|
|
4692
4709
|
fn: n.fn,
|
|
4693
4710
|
options: [e, t]
|
|
4694
4711
|
};
|
|
4695
|
-
},
|
|
4696
|
-
let n =
|
|
4712
|
+
}, Ms = (e, t) => {
|
|
4713
|
+
let n = _s(e);
|
|
4697
4714
|
return {
|
|
4698
4715
|
name: n.name,
|
|
4699
4716
|
fn: n.fn,
|
|
4700
4717
|
options: [e, t]
|
|
4701
4718
|
};
|
|
4702
|
-
},
|
|
4703
|
-
fn:
|
|
4719
|
+
}, Ns = (e, t) => ({
|
|
4720
|
+
fn: Ss(e).fn,
|
|
4704
4721
|
options: [e, t]
|
|
4705
|
-
}),
|
|
4706
|
-
let n =
|
|
4722
|
+
}), Ps = (e, t) => {
|
|
4723
|
+
let n = vs(e);
|
|
4707
4724
|
return {
|
|
4708
4725
|
name: n.name,
|
|
4709
4726
|
fn: n.fn,
|
|
4710
4727
|
options: [e, t]
|
|
4711
4728
|
};
|
|
4712
|
-
},
|
|
4713
|
-
let n =
|
|
4729
|
+
}, Fs = (e, t) => {
|
|
4730
|
+
let n = ys(e);
|
|
4714
4731
|
return {
|
|
4715
4732
|
name: n.name,
|
|
4716
4733
|
fn: n.fn,
|
|
4717
4734
|
options: [e, t]
|
|
4718
4735
|
};
|
|
4719
|
-
},
|
|
4720
|
-
let n =
|
|
4736
|
+
}, Is = (e, t) => {
|
|
4737
|
+
let n = bs(e);
|
|
4721
4738
|
return {
|
|
4722
4739
|
name: n.name,
|
|
4723
4740
|
fn: n.fn,
|
|
4724
4741
|
options: [e, t]
|
|
4725
4742
|
};
|
|
4726
|
-
},
|
|
4727
|
-
let n =
|
|
4743
|
+
}, Ls = (e, t) => {
|
|
4744
|
+
let n = As(e);
|
|
4728
4745
|
return {
|
|
4729
4746
|
name: n.name,
|
|
4730
4747
|
fn: n.fn,
|
|
4731
4748
|
options: [e, t]
|
|
4732
4749
|
};
|
|
4733
|
-
},
|
|
4750
|
+
}, Rs = "Arrow", zs = e.forwardRef((t, n) => {
|
|
4734
4751
|
let { children: r, width: i = 10, height: a = 5, ...o } = t;
|
|
4735
4752
|
return /* @__PURE__ */ e.createElement(A.svg, {
|
|
4736
4753
|
...o,
|
|
@@ -4741,11 +4758,11 @@ var Os = (e) => {
|
|
|
4741
4758
|
preserveAspectRatio: "none"
|
|
4742
4759
|
}, t.asChild ? r : /* @__PURE__ */ e.createElement("polygon", { points: "0,0 30,0 15,10" }));
|
|
4743
4760
|
});
|
|
4744
|
-
|
|
4745
|
-
var
|
|
4761
|
+
zs.displayName = Rs;
|
|
4762
|
+
var Bs = zs;
|
|
4746
4763
|
//#endregion
|
|
4747
4764
|
//#region ../../node_modules/@huin-core/react-use-size/dist/index.mjs
|
|
4748
|
-
function
|
|
4765
|
+
function Vs(t) {
|
|
4749
4766
|
let [n, r] = e.useState(void 0);
|
|
4750
4767
|
return D(() => {
|
|
4751
4768
|
if (t) {
|
|
@@ -4771,17 +4788,17 @@ function zs(t) {
|
|
|
4771
4788
|
}
|
|
4772
4789
|
//#endregion
|
|
4773
4790
|
//#region ../../node_modules/@huin-core/react-popper/dist/index.mjs
|
|
4774
|
-
var
|
|
4791
|
+
var Hs = "Popper", [Us, Ws] = h(Hs), [Gs, Ks] = Us(Hs), qs = (t) => {
|
|
4775
4792
|
let { __scopePopper: n, children: r } = t, [i, a] = e.useState(null);
|
|
4776
|
-
return /* @__PURE__ */ e.createElement(
|
|
4793
|
+
return /* @__PURE__ */ e.createElement(Gs, {
|
|
4777
4794
|
scope: n,
|
|
4778
4795
|
anchor: i,
|
|
4779
4796
|
onAnchorChange: a
|
|
4780
4797
|
}, r);
|
|
4781
4798
|
};
|
|
4782
|
-
|
|
4783
|
-
var
|
|
4784
|
-
let { __scopePopper: r, virtualRef: i, ...a } = t, o =
|
|
4799
|
+
qs.displayName = Hs;
|
|
4800
|
+
var Js = "PopperAnchor", Ys = e.forwardRef((t, n) => {
|
|
4801
|
+
let { __scopePopper: r, virtualRef: i, ...a } = t, o = Ks(Js, r), s = e.useRef(null), c = b(n, s);
|
|
4785
4802
|
return e.useEffect(() => {
|
|
4786
4803
|
o.onAnchorChange(i?.current || s.current);
|
|
4787
4804
|
}), i ? null : /* @__PURE__ */ e.createElement(A.div, {
|
|
@@ -4789,9 +4806,9 @@ var Ks = "PopperAnchor", qs = e.forwardRef((t, n) => {
|
|
|
4789
4806
|
ref: c
|
|
4790
4807
|
});
|
|
4791
4808
|
});
|
|
4792
|
-
|
|
4793
|
-
var
|
|
4794
|
-
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ...g } = t, _ =
|
|
4809
|
+
Ys.displayName = Js;
|
|
4810
|
+
var Xs = "PopperContent", [Zs, Qs] = Us(Xs), $s = e.forwardRef((t, n) => {
|
|
4811
|
+
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ...g } = t, _ = Ks(Xs, r), [v, y] = e.useState(null), x = b(n, (e) => y(e)), [S, C] = e.useState(null), w = Vs(S), T = w?.width ?? 0, E = w?.height ?? 0, ee = i + (o === "center" ? "" : "-" + o), te = typeof d == "number" ? d : {
|
|
4795
4812
|
top: 0,
|
|
4796
4813
|
right: 0,
|
|
4797
4814
|
bottom: 0,
|
|
@@ -4799,46 +4816,46 @@ var Js = "PopperContent", [Ys, Xs] = Vs(Js), Zs = e.forwardRef((t, n) => {
|
|
|
4799
4816
|
...d
|
|
4800
4817
|
}, O = Array.isArray(u) ? u : [u], k = O.length > 0, j = {
|
|
4801
4818
|
padding: te,
|
|
4802
|
-
boundary: O.filter(
|
|
4819
|
+
boundary: O.filter(rc),
|
|
4803
4820
|
altBoundary: k
|
|
4804
|
-
}, { refs: N, floatingStyles: P, placement: ne, isPositioned: re, middlewareData: F } =
|
|
4821
|
+
}, { refs: N, floatingStyles: P, placement: ne, isPositioned: re, middlewareData: F } = ks({
|
|
4805
4822
|
strategy: "fixed",
|
|
4806
4823
|
placement: ee,
|
|
4807
|
-
whileElementsMounted: (...e) =>
|
|
4824
|
+
whileElementsMounted: (...e) => hs(...e, { animationFrame: m === "always" }),
|
|
4808
4825
|
elements: { reference: _.anchor },
|
|
4809
4826
|
middleware: [
|
|
4810
|
-
|
|
4827
|
+
js({
|
|
4811
4828
|
mainAxis: a + E,
|
|
4812
4829
|
alignmentAxis: s
|
|
4813
4830
|
}),
|
|
4814
|
-
l &&
|
|
4831
|
+
l && Ms({
|
|
4815
4832
|
mainAxis: !0,
|
|
4816
4833
|
crossAxis: !1,
|
|
4817
|
-
limiter: f === "partial" ?
|
|
4834
|
+
limiter: f === "partial" ? Ns() : void 0,
|
|
4818
4835
|
...j
|
|
4819
4836
|
}),
|
|
4820
|
-
l &&
|
|
4821
|
-
|
|
4837
|
+
l && Ps({ ...j }),
|
|
4838
|
+
Fs({
|
|
4822
4839
|
...j,
|
|
4823
4840
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
4824
4841
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
4825
4842
|
o.setProperty("--huin-core-popper-available-width", `${n}px`), o.setProperty("--huin-core-popper-available-height", `${r}px`), o.setProperty("--huin-core-popper-anchor-width", `${i}px`), o.setProperty("--huin-core-popper-anchor-height", `${a}px`);
|
|
4826
4843
|
}
|
|
4827
4844
|
}),
|
|
4828
|
-
S &&
|
|
4845
|
+
S && Ls({
|
|
4829
4846
|
element: S,
|
|
4830
4847
|
padding: c
|
|
4831
4848
|
}),
|
|
4832
|
-
|
|
4849
|
+
ic({
|
|
4833
4850
|
arrowWidth: T,
|
|
4834
4851
|
arrowHeight: E
|
|
4835
4852
|
}),
|
|
4836
|
-
p &&
|
|
4853
|
+
p && Is({
|
|
4837
4854
|
strategy: "referenceHidden",
|
|
4838
4855
|
...j
|
|
4839
4856
|
})
|
|
4840
4857
|
]
|
|
4841
|
-
}), [ie, I] =
|
|
4858
|
+
}), [ie, I] = ac(ne), L = M(h);
|
|
4842
4859
|
D(() => {
|
|
4843
4860
|
re && L?.();
|
|
4844
4861
|
}, [re, L]);
|
|
@@ -4860,7 +4877,7 @@ var Js = "PopperContent", [Ys, Xs] = Vs(Js), Zs = e.forwardRef((t, n) => {
|
|
|
4860
4877
|
}
|
|
4861
4878
|
},
|
|
4862
4879
|
dir: t.dir
|
|
4863
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4880
|
+
}, /* @__PURE__ */ e.createElement(Zs, {
|
|
4864
4881
|
scope: r,
|
|
4865
4882
|
placedSide: ie,
|
|
4866
4883
|
onArrowChange: C,
|
|
@@ -4878,14 +4895,14 @@ var Js = "PopperContent", [Ys, Xs] = Vs(Js), Zs = e.forwardRef((t, n) => {
|
|
|
4878
4895
|
}
|
|
4879
4896
|
})));
|
|
4880
4897
|
});
|
|
4881
|
-
|
|
4882
|
-
var
|
|
4898
|
+
$s.displayName = Xs;
|
|
4899
|
+
var ec = "PopperArrow", tc = {
|
|
4883
4900
|
top: "bottom",
|
|
4884
4901
|
right: "left",
|
|
4885
4902
|
bottom: "top",
|
|
4886
4903
|
left: "right"
|
|
4887
|
-
},
|
|
4888
|
-
let { __scopePopper: r, ...i } = t, a =
|
|
4904
|
+
}, nc = e.forwardRef(function(t, n) {
|
|
4905
|
+
let { __scopePopper: r, ...i } = t, a = Qs(ec, r), o = tc[a.placedSide];
|
|
4889
4906
|
return /* @__PURE__ */ e.createElement("span", {
|
|
4890
4907
|
ref: a.onArrowChange,
|
|
4891
4908
|
style: {
|
|
@@ -4907,7 +4924,7 @@ var Qs = "PopperArrow", $s = {
|
|
|
4907
4924
|
}[a.placedSide],
|
|
4908
4925
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
4909
4926
|
}
|
|
4910
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4927
|
+
}, /* @__PURE__ */ e.createElement(Bs, {
|
|
4911
4928
|
...i,
|
|
4912
4929
|
ref: n,
|
|
4913
4930
|
style: {
|
|
@@ -4916,15 +4933,15 @@ var Qs = "PopperArrow", $s = {
|
|
|
4916
4933
|
}
|
|
4917
4934
|
}));
|
|
4918
4935
|
});
|
|
4919
|
-
|
|
4920
|
-
function
|
|
4936
|
+
nc.displayName = ec;
|
|
4937
|
+
function rc(e) {
|
|
4921
4938
|
return e !== null;
|
|
4922
4939
|
}
|
|
4923
|
-
var
|
|
4940
|
+
var ic = (e) => ({
|
|
4924
4941
|
name: "transformOrigin",
|
|
4925
4942
|
options: e,
|
|
4926
4943
|
fn(t) {
|
|
4927
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
4944
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = ac(n), u = {
|
|
4928
4945
|
start: "0%",
|
|
4929
4946
|
center: "50%",
|
|
4930
4947
|
end: "100%"
|
|
@@ -4935,15 +4952,15 @@ var nc = (e) => ({
|
|
|
4935
4952
|
} };
|
|
4936
4953
|
}
|
|
4937
4954
|
});
|
|
4938
|
-
function
|
|
4955
|
+
function ac(e) {
|
|
4939
4956
|
let [t, n = "center"] = e.split("-");
|
|
4940
4957
|
return [t, n];
|
|
4941
4958
|
}
|
|
4942
|
-
var
|
|
4959
|
+
var oc = qs, sc = Ys, cc = $s, lc = nc, uc = Mn(), dc = function() {}, fc = e.forwardRef(function(t, n) {
|
|
4943
4960
|
var r = e.useRef(null), i = e.useState({
|
|
4944
|
-
onScrollCapture:
|
|
4945
|
-
onWheelCapture:
|
|
4946
|
-
onTouchMoveCapture:
|
|
4961
|
+
onScrollCapture: dc,
|
|
4962
|
+
onWheelCapture: dc,
|
|
4963
|
+
onTouchMoveCapture: dc
|
|
4947
4964
|
}), a = i[0], o = i[1], s = t.forwardProps, c = t.children, l = t.className, u = t.removeScrollBar, d = t.enabled, f = t.shards, p = t.sideCar, m = t.noIsolation, h = t.inert, g = t.allowPinchZoom, _ = t.as, v = _ === void 0 ? "div" : _, y = t.gapMode, b = yn(t, [
|
|
4948
4965
|
"forwardProps",
|
|
4949
4966
|
"children",
|
|
@@ -4959,7 +4976,7 @@ var ic = Gs, ac = qs, oc = Zs, sc = ec, cc = Mn(), lc = function() {}, uc = e.fo
|
|
|
4959
4976
|
"gapMode"
|
|
4960
4977
|
]), x = p, S = kn([r, n]), C = G(G({}, b), a);
|
|
4961
4978
|
return e.createElement(e.Fragment, null, d && e.createElement(x, {
|
|
4962
|
-
sideCar:
|
|
4979
|
+
sideCar: uc,
|
|
4963
4980
|
removeScrollBar: u,
|
|
4964
4981
|
shards: f,
|
|
4965
4982
|
noIsolation: m,
|
|
@@ -4973,91 +4990,91 @@ var ic = Gs, ac = qs, oc = Zs, sc = ec, cc = Mn(), lc = function() {}, uc = e.fo
|
|
|
4973
4990
|
ref: S
|
|
4974
4991
|
}), c));
|
|
4975
4992
|
});
|
|
4976
|
-
|
|
4993
|
+
fc.defaultProps = {
|
|
4977
4994
|
enabled: !0,
|
|
4978
4995
|
removeScrollBar: !0,
|
|
4979
4996
|
inert: !1
|
|
4980
|
-
},
|
|
4997
|
+
}, fc.classNames = {
|
|
4981
4998
|
fullWidth: Sn,
|
|
4982
4999
|
zeroRight: xn
|
|
4983
5000
|
};
|
|
4984
5001
|
//#endregion
|
|
4985
5002
|
//#region ../../node_modules/@huin-core/react-popover/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
4986
|
-
var
|
|
5003
|
+
var pc = !1;
|
|
4987
5004
|
if (typeof window < "u") try {
|
|
4988
|
-
var
|
|
4989
|
-
return
|
|
5005
|
+
var mc = Object.defineProperty({}, "passive", { get: function() {
|
|
5006
|
+
return pc = !0, !0;
|
|
4990
5007
|
} });
|
|
4991
|
-
window.addEventListener("test",
|
|
5008
|
+
window.addEventListener("test", mc, mc), window.removeEventListener("test", mc, mc);
|
|
4992
5009
|
} catch {
|
|
4993
|
-
|
|
5010
|
+
pc = !1;
|
|
4994
5011
|
}
|
|
4995
|
-
var
|
|
5012
|
+
var hc = pc ? { passive: !1 } : !1, gc = function(e) {
|
|
4996
5013
|
return e.tagName === "TEXTAREA";
|
|
4997
|
-
},
|
|
5014
|
+
}, _c = function(e, t) {
|
|
4998
5015
|
var n = window.getComputedStyle(e);
|
|
4999
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
5000
|
-
},
|
|
5001
|
-
return
|
|
5002
|
-
},
|
|
5003
|
-
return
|
|
5004
|
-
},
|
|
5016
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !gc(e) && n[t] === "visible");
|
|
5017
|
+
}, vc = function(e) {
|
|
5018
|
+
return _c(e, "overflowY");
|
|
5019
|
+
}, yc = function(e) {
|
|
5020
|
+
return _c(e, "overflowX");
|
|
5021
|
+
}, bc = function(e, t) {
|
|
5005
5022
|
var n = t.ownerDocument, r = t;
|
|
5006
5023
|
do {
|
|
5007
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
5008
|
-
var i =
|
|
5024
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), Cc(e, r)) {
|
|
5025
|
+
var i = wc(e, r);
|
|
5009
5026
|
if (i[1] > i[2]) return !0;
|
|
5010
5027
|
}
|
|
5011
5028
|
r = r.parentNode;
|
|
5012
5029
|
} while (r && r !== n.body);
|
|
5013
5030
|
return !1;
|
|
5014
|
-
},
|
|
5031
|
+
}, xc = function(e) {
|
|
5015
5032
|
return [
|
|
5016
5033
|
e.scrollTop,
|
|
5017
5034
|
e.scrollHeight,
|
|
5018
5035
|
e.clientHeight
|
|
5019
5036
|
];
|
|
5020
|
-
},
|
|
5037
|
+
}, Sc = function(e) {
|
|
5021
5038
|
return [
|
|
5022
5039
|
e.scrollLeft,
|
|
5023
5040
|
e.scrollWidth,
|
|
5024
5041
|
e.clientWidth
|
|
5025
5042
|
];
|
|
5026
|
-
}, xc = function(e, t) {
|
|
5027
|
-
return e === "v" ? gc(t) : _c(t);
|
|
5028
|
-
}, Sc = function(e, t) {
|
|
5029
|
-
return e === "v" ? yc(t) : bc(t);
|
|
5030
5043
|
}, Cc = function(e, t) {
|
|
5044
|
+
return e === "v" ? vc(t) : yc(t);
|
|
5045
|
+
}, wc = function(e, t) {
|
|
5046
|
+
return e === "v" ? xc(t) : Sc(t);
|
|
5047
|
+
}, Tc = function(e, t) {
|
|
5031
5048
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
5032
|
-
},
|
|
5033
|
-
var a =
|
|
5049
|
+
}, Ec = function(e, t, n, r, i) {
|
|
5050
|
+
var a = Tc(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
5034
5051
|
do {
|
|
5035
|
-
var p =
|
|
5036
|
-
(m || h) &&
|
|
5052
|
+
var p = wc(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
5053
|
+
(m || h) && Cc(e, s) && (d += h, f += m), s = s instanceof ShadowRoot ? s.host : s.parentNode;
|
|
5037
5054
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
5038
5055
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
5039
|
-
},
|
|
5056
|
+
}, Dc = function(e) {
|
|
5040
5057
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
5041
|
-
},
|
|
5058
|
+
}, Oc = function(e) {
|
|
5042
5059
|
return [e.deltaX, e.deltaY];
|
|
5043
|
-
},
|
|
5060
|
+
}, kc = function(e) {
|
|
5044
5061
|
return e && "current" in e ? e.current : e;
|
|
5045
|
-
},
|
|
5062
|
+
}, Ac = function(e, t) {
|
|
5046
5063
|
return e[0] === t[0] && e[1] === t[1];
|
|
5047
|
-
},
|
|
5064
|
+
}, jc = function(e) {
|
|
5048
5065
|
return `
|
|
5049
5066
|
.block-interactivity-${e} {pointer-events: none;}
|
|
5050
5067
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
5051
5068
|
`;
|
|
5052
|
-
},
|
|
5053
|
-
function
|
|
5054
|
-
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(
|
|
5069
|
+
}, Mc = 0, Nc = [];
|
|
5070
|
+
function Pc(t) {
|
|
5071
|
+
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(Mc++)[0], o = e.useState(Gn)[0], s = e.useRef(t);
|
|
5055
5072
|
e.useEffect(function() {
|
|
5056
5073
|
s.current = t;
|
|
5057
5074
|
}, [t]), e.useEffect(function() {
|
|
5058
5075
|
if (t.inert) {
|
|
5059
5076
|
document.body.classList.add(`block-interactivity-${a}`);
|
|
5060
|
-
var e = bn([t.lockRef.current], (t.shards || []).map(
|
|
5077
|
+
var e = bn([t.lockRef.current], (t.shards || []).map(kc), !0).filter(Boolean);
|
|
5061
5078
|
return e.forEach(function(e) {
|
|
5062
5079
|
return e.classList.add(`allow-interactivity-${a}`);
|
|
5063
5080
|
}), function() {
|
|
@@ -5073,26 +5090,26 @@ function Mc(t) {
|
|
|
5073
5090
|
]);
|
|
5074
5091
|
var c = e.useCallback(function(e, t) {
|
|
5075
5092
|
if ("touches" in e && e.touches.length === 2) return !s.current.allowPinchZoom;
|
|
5076
|
-
var n =
|
|
5093
|
+
var n = Dc(e), a = r.current, o = "deltaX" in e ? e.deltaX : a[0] - n[0], c = "deltaY" in e ? e.deltaY : a[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
5077
5094
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
5078
|
-
var f =
|
|
5095
|
+
var f = bc(d, u);
|
|
5079
5096
|
if (!f) return !0;
|
|
5080
|
-
if (f ? l = d : (l = d === "v" ? "h" : "v", f =
|
|
5097
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = bc(d, u)), !f) return !1;
|
|
5081
5098
|
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
5082
5099
|
var p = i.current || l;
|
|
5083
|
-
return
|
|
5100
|
+
return Ec(p, t, e, p === "h" ? o : c, !0);
|
|
5084
5101
|
}, []), l = e.useCallback(function(e) {
|
|
5085
5102
|
var t = e;
|
|
5086
|
-
if (!(!
|
|
5087
|
-
var r = "deltaY" in t ?
|
|
5088
|
-
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) &&
|
|
5103
|
+
if (!(!Nc.length || Nc[Nc.length - 1] !== o)) {
|
|
5104
|
+
var r = "deltaY" in t ? Oc(t) : Dc(t), i = n.current.filter(function(e) {
|
|
5105
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && Ac(e.delta, r);
|
|
5089
5106
|
})[0];
|
|
5090
5107
|
if (i && i.should) {
|
|
5091
5108
|
t.cancelable && t.preventDefault();
|
|
5092
5109
|
return;
|
|
5093
5110
|
}
|
|
5094
5111
|
if (!i) {
|
|
5095
|
-
var a = (s.current.shards || []).map(
|
|
5112
|
+
var a = (s.current.shards || []).map(kc).filter(Boolean).filter(function(e) {
|
|
5096
5113
|
return e.contains(t.target);
|
|
5097
5114
|
});
|
|
5098
5115
|
(a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
@@ -5104,7 +5121,7 @@ function Mc(t) {
|
|
|
5104
5121
|
delta: t,
|
|
5105
5122
|
target: r,
|
|
5106
5123
|
should: i,
|
|
5107
|
-
shadowParent:
|
|
5124
|
+
shadowParent: Fc(r)
|
|
5108
5125
|
};
|
|
5109
5126
|
n.current.push(a), setTimeout(function() {
|
|
5110
5127
|
n.current = n.current.filter(function(e) {
|
|
@@ -5112,48 +5129,48 @@ function Mc(t) {
|
|
|
5112
5129
|
});
|
|
5113
5130
|
}, 1);
|
|
5114
5131
|
}, []), d = e.useCallback(function(e) {
|
|
5115
|
-
r.current =
|
|
5132
|
+
r.current = Dc(e), i.current = void 0;
|
|
5116
5133
|
}, []), f = e.useCallback(function(e) {
|
|
5117
|
-
u(e.type,
|
|
5134
|
+
u(e.type, Oc(e), e.target, c(e, t.lockRef.current));
|
|
5118
5135
|
}, []), p = e.useCallback(function(e) {
|
|
5119
|
-
u(e.type,
|
|
5136
|
+
u(e.type, Dc(e), e.target, c(e, t.lockRef.current));
|
|
5120
5137
|
}, []);
|
|
5121
5138
|
e.useEffect(function() {
|
|
5122
|
-
return
|
|
5139
|
+
return Nc.push(o), t.setCallbacks({
|
|
5123
5140
|
onScrollCapture: f,
|
|
5124
5141
|
onWheelCapture: f,
|
|
5125
5142
|
onTouchMoveCapture: p
|
|
5126
|
-
}), document.addEventListener("wheel", l,
|
|
5127
|
-
|
|
5143
|
+
}), document.addEventListener("wheel", l, hc), document.addEventListener("touchmove", l, hc), document.addEventListener("touchstart", d, hc), function() {
|
|
5144
|
+
Nc = Nc.filter(function(e) {
|
|
5128
5145
|
return e !== o;
|
|
5129
|
-
}), document.removeEventListener("wheel", l,
|
|
5146
|
+
}), document.removeEventListener("wheel", l, hc), document.removeEventListener("touchmove", l, hc), document.removeEventListener("touchstart", d, hc);
|
|
5130
5147
|
};
|
|
5131
5148
|
}, []);
|
|
5132
5149
|
var m = t.removeScrollBar, h = t.inert;
|
|
5133
|
-
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles:
|
|
5150
|
+
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: jc(a) }) : null, m ? e.createElement(tr, { gapMode: t.gapMode }) : null);
|
|
5134
5151
|
}
|
|
5135
|
-
function
|
|
5152
|
+
function Fc(e) {
|
|
5136
5153
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
5137
5154
|
return t;
|
|
5138
5155
|
}
|
|
5139
5156
|
//#endregion
|
|
5140
5157
|
//#region ../../node_modules/@huin-core/react-popover/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
5141
|
-
var
|
|
5142
|
-
return e.createElement(
|
|
5158
|
+
var Ic = Pn(uc, Pc), Lc = e.forwardRef(function(t, n) {
|
|
5159
|
+
return e.createElement(fc, G({}, t, {
|
|
5143
5160
|
ref: n,
|
|
5144
|
-
sideCar:
|
|
5161
|
+
sideCar: Ic
|
|
5145
5162
|
}));
|
|
5146
5163
|
});
|
|
5147
|
-
|
|
5164
|
+
Lc.classNames = fc.classNames;
|
|
5148
5165
|
//#endregion
|
|
5149
5166
|
//#region ../../node_modules/@huin-core/react-popover/dist/index.mjs
|
|
5150
|
-
var
|
|
5151
|
-
let { __scopePopover: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !1 } = t, c =
|
|
5167
|
+
var Rc = "Popover", [zc, Bc] = h(Rc, [Ws]), Vc = Ws(), [Hc, Uc] = zc(Rc), Wc = (t) => {
|
|
5168
|
+
let { __scopePopover: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !1 } = t, c = Vc(n), l = e.useRef(null), [u, d] = e.useState(!1), [f = !1, p] = N({
|
|
5152
5169
|
prop: i,
|
|
5153
5170
|
defaultProp: a,
|
|
5154
5171
|
onChange: o
|
|
5155
5172
|
});
|
|
5156
|
-
return /* @__PURE__ */ e.createElement(
|
|
5173
|
+
return /* @__PURE__ */ e.createElement(oc, { ...c }, /* @__PURE__ */ e.createElement(Hc, {
|
|
5157
5174
|
scope: n,
|
|
5158
5175
|
contentId: k(),
|
|
5159
5176
|
triggerRef: l,
|
|
@@ -5166,19 +5183,19 @@ var Ic = "Popover", [Lc, Rc] = h(Ic, [Hs]), zc = Hs(), [Bc, Vc] = Lc(Ic), Hc = (
|
|
|
5166
5183
|
modal: s
|
|
5167
5184
|
}, r));
|
|
5168
5185
|
};
|
|
5169
|
-
|
|
5170
|
-
var
|
|
5171
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5172
|
-
return t.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ t.createElement(
|
|
5186
|
+
Wc.displayName = Rc;
|
|
5187
|
+
var Gc = Wc, Kc = "PopoverAnchor", qc = t.forwardRef((e, n) => {
|
|
5188
|
+
let { __scopePopover: r, ...i } = e, a = Uc(Kc, r), o = Vc(r), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = a;
|
|
5189
|
+
return t.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ t.createElement(sc, {
|
|
5173
5190
|
...o,
|
|
5174
5191
|
...i,
|
|
5175
5192
|
ref: n
|
|
5176
5193
|
});
|
|
5177
5194
|
});
|
|
5178
|
-
|
|
5179
|
-
var
|
|
5180
|
-
let { __scopePopover: n, forceMount: r, children: i, container: a } = e, o =
|
|
5181
|
-
return /* @__PURE__ */ t.createElement(
|
|
5195
|
+
qc.displayName = Kc;
|
|
5196
|
+
var Jc = "PopoverPortal", [Yc, Xc] = zc(Jc, { forceMount: void 0 }), Zc = (e) => {
|
|
5197
|
+
let { __scopePopover: n, forceMount: r, children: i, container: a } = e, o = Uc(Jc, n);
|
|
5198
|
+
return /* @__PURE__ */ t.createElement(Yc, {
|
|
5182
5199
|
scope: n,
|
|
5183
5200
|
forceMount: r
|
|
5184
5201
|
}, /* @__PURE__ */ t.createElement(Se, { present: r || o.open }, /* @__PURE__ */ t.createElement(vn, {
|
|
@@ -5186,27 +5203,27 @@ var Kc = "PopoverPortal", [qc, Jc] = Lc(Kc, { forceMount: void 0 }), Yc = (e) =>
|
|
|
5186
5203
|
container: a
|
|
5187
5204
|
}, i)));
|
|
5188
5205
|
};
|
|
5189
|
-
|
|
5190
|
-
var
|
|
5191
|
-
let r =
|
|
5192
|
-
return /* @__PURE__ */ t.createElement(Se, { present: i || o.open }, o.modal ? /* @__PURE__ */ t.createElement(
|
|
5206
|
+
Zc.displayName = Jc;
|
|
5207
|
+
var Qc = "PopoverContent", $c = t.forwardRef((e, n) => {
|
|
5208
|
+
let r = Xc(Qc, e.__scopePopover), { forceMount: i = r.forceMount, ...a } = e, o = Uc(Qc, e.__scopePopover);
|
|
5209
|
+
return /* @__PURE__ */ t.createElement(Se, { present: i || o.open }, o.modal ? /* @__PURE__ */ t.createElement(el, {
|
|
5193
5210
|
...a,
|
|
5194
5211
|
ref: n
|
|
5195
|
-
}) : /* @__PURE__ */ t.createElement(
|
|
5212
|
+
}) : /* @__PURE__ */ t.createElement(tl, {
|
|
5196
5213
|
...a,
|
|
5197
5214
|
ref: n
|
|
5198
5215
|
}));
|
|
5199
5216
|
});
|
|
5200
|
-
|
|
5201
|
-
var
|
|
5202
|
-
let r =
|
|
5217
|
+
$c.displayName = Qc;
|
|
5218
|
+
var el = t.forwardRef((e, n) => {
|
|
5219
|
+
let r = Uc(Qc, e.__scopePopover), i = t.useRef(null), a = b(n, i), o = t.useRef(!1);
|
|
5203
5220
|
return t.useEffect(() => {
|
|
5204
5221
|
let e = i.current;
|
|
5205
5222
|
if (e) return Fr(e);
|
|
5206
|
-
}, []), /* @__PURE__ */ t.createElement(
|
|
5223
|
+
}, []), /* @__PURE__ */ t.createElement(Lc, {
|
|
5207
5224
|
as: x,
|
|
5208
5225
|
allowPinchZoom: !0
|
|
5209
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5226
|
+
}, /* @__PURE__ */ t.createElement(nl, {
|
|
5210
5227
|
...e,
|
|
5211
5228
|
ref: a,
|
|
5212
5229
|
trapFocus: r.open,
|
|
@@ -5220,9 +5237,9 @@ var Qc = t.forwardRef((e, n) => {
|
|
|
5220
5237
|
}, { checkForDefaultPrevented: !1 }),
|
|
5221
5238
|
onFocusOutside: _(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
5222
5239
|
}));
|
|
5223
|
-
}),
|
|
5224
|
-
let r =
|
|
5225
|
-
return /* @__PURE__ */ t.createElement(
|
|
5240
|
+
}), tl = t.forwardRef((e, n) => {
|
|
5241
|
+
let r = Uc(Qc, e.__scopePopover), i = t.useRef(!1), a = t.useRef(!1);
|
|
5242
|
+
return /* @__PURE__ */ t.createElement(nl, {
|
|
5226
5243
|
...e,
|
|
5227
5244
|
ref: n,
|
|
5228
5245
|
trapFocus: !1,
|
|
@@ -5236,8 +5253,8 @@ var Qc = t.forwardRef((e, n) => {
|
|
|
5236
5253
|
r.triggerRef.current?.contains(n) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
5237
5254
|
}
|
|
5238
5255
|
});
|
|
5239
|
-
}),
|
|
5240
|
-
let { __scopePopover: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, ...f } = e, p =
|
|
5256
|
+
}), nl = t.forwardRef((e, n) => {
|
|
5257
|
+
let { __scopePopover: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, ...f } = e, p = Uc(Qc, r), m = Vc(r);
|
|
5241
5258
|
return pi(), /* @__PURE__ */ t.createElement(ei, {
|
|
5242
5259
|
asChild: !0,
|
|
5243
5260
|
loop: !0,
|
|
@@ -5252,8 +5269,8 @@ var Qc = t.forwardRef((e, n) => {
|
|
|
5252
5269
|
onPointerDownOutside: l,
|
|
5253
5270
|
onFocusOutside: u,
|
|
5254
5271
|
onDismiss: () => p.onOpenChange(!1)
|
|
5255
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5256
|
-
"data-state":
|
|
5272
|
+
}, /* @__PURE__ */ t.createElement(cc, {
|
|
5273
|
+
"data-state": rl(p.open),
|
|
5257
5274
|
role: "dialog",
|
|
5258
5275
|
id: p.contentId,
|
|
5259
5276
|
...m,
|
|
@@ -5269,28 +5286,28 @@ var Qc = t.forwardRef((e, n) => {
|
|
|
5269
5286
|
}
|
|
5270
5287
|
})));
|
|
5271
5288
|
});
|
|
5272
|
-
function
|
|
5289
|
+
function rl(e) {
|
|
5273
5290
|
return e ? "open" : "closed";
|
|
5274
5291
|
}
|
|
5275
|
-
var
|
|
5276
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5292
|
+
var il = "PopoverTrigger", al = t.forwardRef((e, n) => {
|
|
5293
|
+
let { __scopePopover: r, ...i } = e, a = Uc(il, r), o = Vc(r), s = b(n, a.triggerRef), c = /* @__PURE__ */ t.createElement(A.button, {
|
|
5277
5294
|
type: "button",
|
|
5278
5295
|
"aria-haspopup": "dialog",
|
|
5279
5296
|
"aria-expanded": a.open,
|
|
5280
5297
|
"aria-controls": a.contentId,
|
|
5281
|
-
"data-state":
|
|
5298
|
+
"data-state": rl(a.open),
|
|
5282
5299
|
...i,
|
|
5283
5300
|
ref: s,
|
|
5284
5301
|
onClick: _(e.onClick, a.onOpenToggle)
|
|
5285
5302
|
});
|
|
5286
|
-
return a.hasCustomAnchor ? c : /* @__PURE__ */ t.createElement(
|
|
5303
|
+
return a.hasCustomAnchor ? c : /* @__PURE__ */ t.createElement(sc, {
|
|
5287
5304
|
asChild: !0,
|
|
5288
5305
|
...o
|
|
5289
5306
|
}, c);
|
|
5290
5307
|
});
|
|
5291
|
-
|
|
5292
|
-
var
|
|
5293
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5308
|
+
al.displayName = il;
|
|
5309
|
+
var ol = "PopoverClose", sl = t.forwardRef((e, n) => {
|
|
5310
|
+
let { __scopePopover: r, ...i } = e, a = Uc(ol, r);
|
|
5294
5311
|
return /* @__PURE__ */ t.createElement(A.button, {
|
|
5295
5312
|
type: "button",
|
|
5296
5313
|
...i,
|
|
@@ -5298,29 +5315,29 @@ var il = "PopoverClose", al = t.forwardRef((e, n) => {
|
|
|
5298
5315
|
onClick: _(e.onClick, () => a.onOpenChange(!1))
|
|
5299
5316
|
});
|
|
5300
5317
|
});
|
|
5301
|
-
|
|
5302
|
-
var
|
|
5303
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5304
|
-
return /* @__PURE__ */ t.createElement(
|
|
5318
|
+
sl.displayName = ol;
|
|
5319
|
+
var cl = "PopoverArrow", ll = t.forwardRef((e, n) => {
|
|
5320
|
+
let { __scopePopover: r, ...i } = e, a = Vc(r);
|
|
5321
|
+
return /* @__PURE__ */ t.createElement(lc, {
|
|
5305
5322
|
...a,
|
|
5306
5323
|
...i,
|
|
5307
5324
|
ref: n
|
|
5308
5325
|
});
|
|
5309
5326
|
});
|
|
5310
|
-
|
|
5327
|
+
ll.displayName = cl;
|
|
5311
5328
|
//#endregion
|
|
5312
5329
|
//#region src/ui/components/Popover.tsx
|
|
5313
|
-
var
|
|
5330
|
+
var ul = Gc, dl = al, fl = e.forwardRef(({ className: t, align: n = "center", sideOffset: r = 4, ...i }, a) => /* @__PURE__ */ e.createElement(Zc, null, /* @__PURE__ */ e.createElement($c, {
|
|
5314
5331
|
ref: a,
|
|
5315
5332
|
align: n,
|
|
5316
5333
|
sideOffset: r,
|
|
5317
5334
|
className: W("z-50 w-72 rounded-md border bg-popover p-4! text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", t),
|
|
5318
5335
|
...i
|
|
5319
5336
|
})));
|
|
5320
|
-
|
|
5337
|
+
fl.displayName = $c.displayName;
|
|
5321
5338
|
//#endregion
|
|
5322
5339
|
//#region ../../node_modules/@huin-core/react-use-previous/dist/index.mjs
|
|
5323
|
-
function
|
|
5340
|
+
function pl(t) {
|
|
5324
5341
|
let n = e.useRef({
|
|
5325
5342
|
value: t,
|
|
5326
5343
|
previous: t
|
|
@@ -5329,13 +5346,13 @@ function dl(t) {
|
|
|
5329
5346
|
}
|
|
5330
5347
|
//#endregion
|
|
5331
5348
|
//#region ../../node_modules/@huin-core/react-switch/dist/index.mjs
|
|
5332
|
-
var
|
|
5349
|
+
var ml = "Switch", [hl] = h(ml), [gl, _l] = hl(ml), vl = e.forwardRef((t, n) => {
|
|
5333
5350
|
let { __scopeSwitch: r, name: i, checked: a, defaultChecked: o, required: s, disabled: c, value: l = "on", onCheckedChange: u, form: d, ...f } = t, [p, m] = e.useState(null), h = b(n, (e) => m(e)), g = e.useRef(!1), v = p ? !!p.closest("form") : !0, [y = !1, x] = N({
|
|
5334
5351
|
prop: a,
|
|
5335
5352
|
defaultProp: o,
|
|
5336
5353
|
onChange: u
|
|
5337
5354
|
});
|
|
5338
|
-
return /* @__PURE__ */ e.createElement(
|
|
5355
|
+
return /* @__PURE__ */ e.createElement(gl, {
|
|
5339
5356
|
scope: r,
|
|
5340
5357
|
checked: y,
|
|
5341
5358
|
disabled: c
|
|
@@ -5344,7 +5361,7 @@ var fl = "Switch", [pl] = h(fl), [ml, hl] = pl(fl), gl = e.forwardRef((t, n) =>
|
|
|
5344
5361
|
role: "switch",
|
|
5345
5362
|
"aria-checked": y,
|
|
5346
5363
|
"aria-required": s,
|
|
5347
|
-
"data-state":
|
|
5364
|
+
"data-state": bl(y),
|
|
5348
5365
|
"data-disabled": c ? "" : void 0,
|
|
5349
5366
|
disabled: c,
|
|
5350
5367
|
value: l,
|
|
@@ -5353,7 +5370,7 @@ var fl = "Switch", [pl] = h(fl), [ml, hl] = pl(fl), gl = e.forwardRef((t, n) =>
|
|
|
5353
5370
|
onClick: _(t.onClick, (e) => {
|
|
5354
5371
|
x((e) => !e), v && (g.current = e.isPropagationStopped(), g.current || e.stopPropagation());
|
|
5355
5372
|
})
|
|
5356
|
-
}), v && /* @__PURE__ */ e.createElement(
|
|
5373
|
+
}), v && /* @__PURE__ */ e.createElement(yl, {
|
|
5357
5374
|
control: p,
|
|
5358
5375
|
bubbles: !g.current,
|
|
5359
5376
|
name: i,
|
|
@@ -5365,9 +5382,9 @@ var fl = "Switch", [pl] = h(fl), [ml, hl] = pl(fl), gl = e.forwardRef((t, n) =>
|
|
|
5365
5382
|
style: { transform: "translateX(-100%)" }
|
|
5366
5383
|
}));
|
|
5367
5384
|
});
|
|
5368
|
-
|
|
5369
|
-
var
|
|
5370
|
-
let { control: n, checked: r, bubbles: i = !0, ...a } = t, o = e.useRef(null), s =
|
|
5385
|
+
vl.displayName = ml;
|
|
5386
|
+
var yl = (t) => {
|
|
5387
|
+
let { control: n, checked: r, bubbles: i = !0, ...a } = t, o = e.useRef(null), s = pl(r), c = Vs(n);
|
|
5371
5388
|
return e.useEffect(() => {
|
|
5372
5389
|
let e = o.current, t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set;
|
|
5373
5390
|
if (s !== r && n) {
|
|
@@ -5395,47 +5412,47 @@ var _l = (t) => {
|
|
|
5395
5412
|
}
|
|
5396
5413
|
});
|
|
5397
5414
|
};
|
|
5398
|
-
function
|
|
5415
|
+
function bl(e) {
|
|
5399
5416
|
return e ? "checked" : "unchecked";
|
|
5400
5417
|
}
|
|
5401
|
-
var
|
|
5402
|
-
let { __scopeSwitch: r, ...i } = e, a =
|
|
5418
|
+
var xl = vl, Sl = "SwitchThumb", Cl = t.forwardRef((e, n) => {
|
|
5419
|
+
let { __scopeSwitch: r, ...i } = e, a = _l(Sl, r);
|
|
5403
5420
|
return /* @__PURE__ */ t.createElement(A.span, {
|
|
5404
|
-
"data-state":
|
|
5421
|
+
"data-state": bl(a.checked),
|
|
5405
5422
|
"data-disabled": a.disabled ? "" : void 0,
|
|
5406
5423
|
...i,
|
|
5407
5424
|
ref: n
|
|
5408
5425
|
});
|
|
5409
5426
|
});
|
|
5410
|
-
|
|
5427
|
+
Cl.displayName = Sl;
|
|
5411
5428
|
//#endregion
|
|
5412
5429
|
//#region src/ui/components/Switch.tsx
|
|
5413
|
-
var
|
|
5430
|
+
var wl = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(xl, {
|
|
5414
5431
|
className: W("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", t),
|
|
5415
5432
|
...n,
|
|
5416
5433
|
ref: r
|
|
5417
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5418
|
-
|
|
5434
|
+
}, /* @__PURE__ */ e.createElement(Cl, { className: W("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") })));
|
|
5435
|
+
wl.displayName = xl.displayName;
|
|
5419
5436
|
//#endregion
|
|
5420
5437
|
//#region ../../node_modules/@huin-core/react-label/dist/index.mjs
|
|
5421
|
-
var
|
|
5438
|
+
var Tl = "Label", El = e.forwardRef(({ ...t }, n) => /* @__PURE__ */ e.createElement(A.label, {
|
|
5422
5439
|
...t,
|
|
5423
5440
|
ref: n,
|
|
5424
5441
|
onMouseDown: (e) => {
|
|
5425
5442
|
e.target.closest("button, input, select, textarea") || (t.onMouseDown?.(e), !e.defaultPrevented && e.detail > 1 && e.preventDefault());
|
|
5426
5443
|
}
|
|
5427
5444
|
}));
|
|
5428
|
-
|
|
5429
|
-
var
|
|
5445
|
+
El.displayName = Tl;
|
|
5446
|
+
var Dl = El, Ol = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(El, {
|
|
5430
5447
|
ref: r,
|
|
5431
5448
|
className: W("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", t),
|
|
5432
5449
|
...n
|
|
5433
5450
|
}));
|
|
5434
|
-
|
|
5451
|
+
Ol.displayName = Dl.displayName;
|
|
5435
5452
|
//#endregion
|
|
5436
5453
|
//#region ../../node_modules/@huin-core/react-separator/dist/index.mjs
|
|
5437
|
-
var
|
|
5438
|
-
let { decorative: r, orientation: i =
|
|
5454
|
+
var kl = "Separator", Al = "horizontal", jl = ["horizontal", "vertical"], Ml = e.forwardRef((t, n) => {
|
|
5455
|
+
let { decorative: r, orientation: i = Al, ...a } = t, o = Nl(i) ? i : Al, s = r ? { role: "none" } : {
|
|
5439
5456
|
"aria-orientation": o === "vertical" ? o : void 0,
|
|
5440
5457
|
role: "separator"
|
|
5441
5458
|
};
|
|
@@ -5446,47 +5463,81 @@ var Dl = "Separator", Ol = "horizontal", kl = ["horizontal", "vertical"], Al = e
|
|
|
5446
5463
|
ref: n
|
|
5447
5464
|
});
|
|
5448
5465
|
});
|
|
5449
|
-
|
|
5450
|
-
function
|
|
5451
|
-
return
|
|
5466
|
+
Ml.displayName = kl;
|
|
5467
|
+
function Nl(e) {
|
|
5468
|
+
return jl.includes(e);
|
|
5452
5469
|
}
|
|
5453
|
-
var
|
|
5470
|
+
var Pl = Ml, Fl = e.forwardRef(({ className: t, orientation: n = "horizontal", decorative: r = !0, ...i }, a) => /* @__PURE__ */ e.createElement(Pl, {
|
|
5454
5471
|
ref: a,
|
|
5455
5472
|
decorative: r,
|
|
5456
5473
|
orientation: n,
|
|
5457
5474
|
className: W("shrink-0 bg-border", n === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", t),
|
|
5458
5475
|
...i
|
|
5459
5476
|
}));
|
|
5460
|
-
|
|
5477
|
+
Fl.displayName = Pl.displayName;
|
|
5461
5478
|
//#endregion
|
|
5462
5479
|
//#region src/ui/components/Input.tsx
|
|
5463
|
-
var
|
|
5480
|
+
var Il = e.forwardRef(({ className: t, type: n, ...r }, i) => /* @__PURE__ */ e.createElement(A.input, {
|
|
5464
5481
|
type: n,
|
|
5465
5482
|
className: W("flex h-10 w-full rounded-md border border-input bg-background px-3! py-2! text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", t),
|
|
5466
5483
|
ref: i,
|
|
5467
5484
|
...r
|
|
5468
5485
|
}));
|
|
5469
|
-
|
|
5486
|
+
Il.displayName = "Input";
|
|
5470
5487
|
//#endregion
|
|
5471
5488
|
//#region src/ui/widgets/SentinelToolbar.tsx
|
|
5472
|
-
var
|
|
5473
|
-
|
|
5474
|
-
|
|
5489
|
+
var Ll = (e, t) => {
|
|
5490
|
+
if (!t) return e;
|
|
5491
|
+
let n = t.toLowerCase();
|
|
5492
|
+
if (typeof e != "object" || !e) return String(e).toLowerCase().includes(n) ? e : void 0;
|
|
5493
|
+
if (Array.isArray(e)) {
|
|
5494
|
+
let n = e.map((e) => Ll(e, t)).filter((e) => e !== void 0);
|
|
5495
|
+
return n.length > 0 ? n : void 0;
|
|
5496
|
+
}
|
|
5497
|
+
let r = {};
|
|
5498
|
+
for (let [i, a] of Object.entries(e)) if (i.toLowerCase().includes(n)) r[i] = a;
|
|
5499
|
+
else {
|
|
5500
|
+
let e = Ll(a, t);
|
|
5501
|
+
e !== void 0 && (r[i] = e);
|
|
5502
|
+
}
|
|
5503
|
+
return Object.keys(r).length > 0 ? r : void 0;
|
|
5504
|
+
}, Rl = ({ store: e }) => {
|
|
5505
|
+
let [n, r] = t.useState(e?.getState()), [i, a] = t.useState(""), [o, s] = t.useState(!1);
|
|
5506
|
+
if (t.useEffect(() => {
|
|
5475
5507
|
if (e) return r(e.getState()), e.subscribe(() => r(e.getState()));
|
|
5476
|
-
}, [e]), e
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
}
|
|
5481
|
-
|
|
5482
|
-
|
|
5508
|
+
}, [e]), !e) return /* @__PURE__ */ t.createElement("div", { className: "py-6 text-center text-sm text-muted-foreground" }, "No store connected.", /* @__PURE__ */ t.createElement("span", { className: "block mt-1 text-xs font-mono" }, "<SentinelProvider store={store}>"));
|
|
5509
|
+
let c = Ll(n, i), l = ({ collapseDepth: e }) => c === void 0 ? /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground italic" }, "No results for \"", i, "\"") : /* @__PURE__ */ t.createElement(ga, {
|
|
5510
|
+
value: c,
|
|
5511
|
+
collapseFromDepth: e
|
|
5512
|
+
});
|
|
5513
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", { className: "py-3 space-y-2" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center gap-1.5" }, /* @__PURE__ */ t.createElement(Il, {
|
|
5514
|
+
placeholder: "Search state…",
|
|
5515
|
+
value: i,
|
|
5516
|
+
onChange: (e) => a(e.target.value),
|
|
5517
|
+
className: "h-7 text-xs"
|
|
5518
|
+
}), /* @__PURE__ */ t.createElement("button", {
|
|
5519
|
+
onClick: () => s(!0),
|
|
5520
|
+
title: "Expand",
|
|
5521
|
+
className: "shrink-0 text-muted-foreground hover:text-foreground transition-colors"
|
|
5522
|
+
}, /* @__PURE__ */ t.createElement(Aa, { size: 14 }))), /* @__PURE__ */ t.createElement("div", { className: "max-h-60 overflow-y-auto" }, /* @__PURE__ */ t.createElement("div", { className: "bg-primary text-primary-foreground p-3! rounded-md font-mono text-xs leading-5 overflow-x-hidden" }, /* @__PURE__ */ t.createElement(l, { collapseDepth: 1 })))), /* @__PURE__ */ t.createElement(ta, {
|
|
5523
|
+
open: o,
|
|
5524
|
+
onOpenChange: s
|
|
5525
|
+
}, /* @__PURE__ */ t.createElement(ia, { className: "flex flex-col overflow-hidden" }, /* @__PURE__ */ t.createElement(aa, null, /* @__PURE__ */ t.createElement(sa, null, "Redux State")), /* @__PURE__ */ t.createElement(Il, {
|
|
5526
|
+
placeholder: "Search state…",
|
|
5527
|
+
value: i,
|
|
5528
|
+
onChange: (e) => a(e.target.value),
|
|
5529
|
+
className: "h-8 text-sm shrink-0"
|
|
5530
|
+
}), /* @__PURE__ */ t.createElement("div", { className: "overflow-y-auto min-h-0 flex-1" }, /* @__PURE__ */ t.createElement("div", { className: "bg-primary text-primary-foreground p-4! rounded-md font-mono text-xs leading-5 overflow-x-hidden" }, /* @__PURE__ */ t.createElement(l, { collapseDepth: 2 }))))));
|
|
5531
|
+
}, zl = () => {
|
|
5532
|
+
let { isActive: e, setIsActive: n, showOutlines: r, setShowOutlines: i, highlightName: a, setHighlightName: o, reduxStore: s } = Kl();
|
|
5533
|
+
return /* @__PURE__ */ t.createElement(vn, null, /* @__PURE__ */ t.createElement("div", { className: "fixed bottom-4 right-4 z-[9999]" }, /* @__PURE__ */ t.createElement(ul, null, /* @__PURE__ */ t.createElement(dl, { className: W("flex h-10 w-10 items-center justify-center rounded-full border shadow-lg transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer", e ? "bg-primary text-primary-foreground border-primary/30" : "bg-background text-muted-foreground border-border hover:text-foreground") }, /* @__PURE__ */ t.createElement(ja, { size: 18 })), /* @__PURE__ */ t.createElement(fl, {
|
|
5483
5534
|
side: "top",
|
|
5484
5535
|
align: "end",
|
|
5485
|
-
className: "w-72 p-0"
|
|
5486
|
-
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between
|
|
5536
|
+
className: "w-72 p-0!"
|
|
5537
|
+
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between py-3!" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ t.createElement(ja, {
|
|
5487
5538
|
size: 14,
|
|
5488
5539
|
className: "text-muted-foreground"
|
|
5489
|
-
}), /* @__PURE__ */ t.createElement("span", { className: "text-sm font-semibold" }, "Sentinel")), /* @__PURE__ */ t.createElement("kbd", { className: "text-sm text-muted-foreground bg-muted px-1.5! py-0.5! rounded font-mono" }, "⌃ ⇧ S")), /* @__PURE__ */ t.createElement(
|
|
5540
|
+
}), /* @__PURE__ */ t.createElement("span", { className: "text-sm font-semibold" }, "Sentinel")), /* @__PURE__ */ t.createElement("kbd", { className: "text-sm text-muted-foreground bg-muted px-1.5! py-0.5! rounded font-mono" }, "⌃ ⇧ S")), /* @__PURE__ */ t.createElement(Fl, null), /* @__PURE__ */ t.createElement(pn, { defaultValue: "controls" }, /* @__PURE__ */ t.createElement(mn, { className: "grid w-full grid-cols-2 mx-0 rounded-none border-b bg-transparent h-9 gap-4" }, /* @__PURE__ */ t.createElement(hn, {
|
|
5490
5541
|
value: "controls",
|
|
5491
5542
|
className: "text-xs"
|
|
5492
5543
|
}, "Controls"), /* @__PURE__ */ t.createElement(hn, {
|
|
@@ -5495,25 +5546,25 @@ var Fl = ({ store: e }) => {
|
|
|
5495
5546
|
}, "Redux")), /* @__PURE__ */ t.createElement(gn, {
|
|
5496
5547
|
value: "controls",
|
|
5497
5548
|
className: "mt-0"
|
|
5498
|
-
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between
|
|
5549
|
+
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between py-3!" }, /* @__PURE__ */ t.createElement(Ol, {
|
|
5499
5550
|
htmlFor: "sentinel-active-switch",
|
|
5500
5551
|
className: "cursor-pointer"
|
|
5501
|
-
}, "Active"), /* @__PURE__ */ t.createElement(
|
|
5552
|
+
}, "Active"), /* @__PURE__ */ t.createElement(wl, {
|
|
5502
5553
|
id: "sentinel-active-switch",
|
|
5503
5554
|
checked: e,
|
|
5504
5555
|
onCheckedChange: n
|
|
5505
|
-
})), /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between
|
|
5556
|
+
})), /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between pb-3!" }, /* @__PURE__ */ t.createElement(Ol, {
|
|
5506
5557
|
htmlFor: "sentinel-outline-switch",
|
|
5507
5558
|
className: W("cursor-pointer", !e && "opacity-40")
|
|
5508
|
-
}, "Outline All"), /* @__PURE__ */ t.createElement(
|
|
5559
|
+
}, "Outline All"), /* @__PURE__ */ t.createElement(wl, {
|
|
5509
5560
|
id: "sentinel-outline-switch",
|
|
5510
5561
|
checked: r,
|
|
5511
5562
|
onCheckedChange: i,
|
|
5512
5563
|
disabled: !e
|
|
5513
|
-
})), /* @__PURE__ */ t.createElement(
|
|
5564
|
+
})), /* @__PURE__ */ t.createElement(Fl, null), /* @__PURE__ */ t.createElement("div", { className: "py-3! space-y-1.5" }, /* @__PURE__ */ t.createElement(Ol, {
|
|
5514
5565
|
htmlFor: "sentinel-filter-input",
|
|
5515
5566
|
className: W("text-xs text-muted-foreground", !e && "opacity-40")
|
|
5516
|
-
}, "Filter component"), /* @__PURE__ */ t.createElement(
|
|
5567
|
+
}, "Filter component"), /* @__PURE__ */ t.createElement(Il, {
|
|
5517
5568
|
id: "sentinel-filter-input",
|
|
5518
5569
|
placeholder: "e.g. ProductCard",
|
|
5519
5570
|
value: a,
|
|
@@ -5523,10 +5574,10 @@ var Fl = ({ store: e }) => {
|
|
|
5523
5574
|
}))), /* @__PURE__ */ t.createElement(gn, {
|
|
5524
5575
|
value: "redux",
|
|
5525
5576
|
className: "mt-0"
|
|
5526
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5527
|
-
},
|
|
5577
|
+
}, /* @__PURE__ */ t.createElement(Rl, { store: s })))))));
|
|
5578
|
+
}, Bl = ({ children: e, active: n = !0 }) => {
|
|
5528
5579
|
if (!n) return /* @__PURE__ */ t.createElement(t.Fragment, null, e);
|
|
5529
|
-
let { activeRect: r } =
|
|
5580
|
+
let { activeRect: r } = Kl(), i = r ? r.left + r.width / 2 : 0, a = r ? r.top + r.height / 2 : 0;
|
|
5530
5581
|
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(vn, null, r && /* @__PURE__ */ t.createElement("div", {
|
|
5531
5582
|
className: "pointer-events-none fixed inset-0 z-[999] transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
5532
5583
|
style: {
|
|
@@ -5543,7 +5594,7 @@ var Fl = ({ store: e }) => {
|
|
|
5543
5594
|
WebkitBackdropFilter: "blur(8px) saturate(140%) contrast(105%)"
|
|
5544
5595
|
}
|
|
5545
5596
|
}), e));
|
|
5546
|
-
},
|
|
5597
|
+
}, Vl = n(void 0), Hl = n(void 0), Ul = ({ children: e, store: n }) => {
|
|
5547
5598
|
let [r, i] = d(null), [o, c] = d(null), [u, f] = d(null), [p, m] = d({}), [h, g] = d(!1), [_, v] = d(!1), [y, b] = d("");
|
|
5548
5599
|
s(() => {
|
|
5549
5600
|
h || (i(null), c(null), f(null), m({}));
|
|
@@ -5600,8 +5651,8 @@ var Fl = ({ store: e }) => {
|
|
|
5600
5651
|
p,
|
|
5601
5652
|
w
|
|
5602
5653
|
]);
|
|
5603
|
-
return /* @__PURE__ */ t.createElement(
|
|
5604
|
-
},
|
|
5654
|
+
return /* @__PURE__ */ t.createElement(Vl.Provider, { value: T }, /* @__PURE__ */ t.createElement(Hl.Provider, { value: E }, e, /* @__PURE__ */ t.createElement(Bl, { active: h }, /* @__PURE__ */ t.createElement(ya, null)), /* @__PURE__ */ t.createElement(zl, null)));
|
|
5655
|
+
}, Wl = {
|
|
5605
5656
|
activeId: null,
|
|
5606
5657
|
activeRect: null,
|
|
5607
5658
|
isActive: !1,
|
|
@@ -5614,12 +5665,12 @@ var Fl = ({ store: e }) => {
|
|
|
5614
5665
|
registerHover: () => {},
|
|
5615
5666
|
unregisterHover: () => {},
|
|
5616
5667
|
openDialog: () => {}
|
|
5617
|
-
},
|
|
5668
|
+
}, Gl = {
|
|
5618
5669
|
openDialogId: null,
|
|
5619
5670
|
dialogMeta: {},
|
|
5620
5671
|
closeDialog: () => {}
|
|
5621
|
-
},
|
|
5622
|
-
let e =
|
|
5672
|
+
}, Kl = () => o(Vl) ?? Wl, ql = () => o(Hl) ?? Gl, Jl = () => {
|
|
5673
|
+
let e = Kl(), t = ql();
|
|
5623
5674
|
return {
|
|
5624
5675
|
...e,
|
|
5625
5676
|
...t
|
|
@@ -5627,7 +5678,7 @@ var Fl = ({ store: e }) => {
|
|
|
5627
5678
|
};
|
|
5628
5679
|
//#endregion
|
|
5629
5680
|
//#region src/utils/safeSerialize.ts
|
|
5630
|
-
function
|
|
5681
|
+
function Yl(e, t = 0, n = /* @__PURE__ */ new WeakSet()) {
|
|
5631
5682
|
if (t > 6) return "[Max Depth]";
|
|
5632
5683
|
if (e === null) return null;
|
|
5633
5684
|
if (typeof e == "function") return "[Function]";
|
|
@@ -5635,15 +5686,15 @@ function Kl(e, t = 0, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
5635
5686
|
if (n.has(e)) return "[Circular]";
|
|
5636
5687
|
if (n.add(e), "$$typeof" in e) return "[React Element]";
|
|
5637
5688
|
if ("_context" in e || "Provider" in e && "Consumer" in e) return "[React Context]";
|
|
5638
|
-
if (Array.isArray(e)) return e.map((e) =>
|
|
5689
|
+
if (Array.isArray(e)) return e.map((e) => Yl(e, t + 1, n));
|
|
5639
5690
|
let r = {};
|
|
5640
|
-
for (let [i, a] of Object.entries(e)) i.startsWith("__react") || i.startsWith("_react") || i === "_owner" || (r[i] =
|
|
5691
|
+
for (let [i, a] of Object.entries(e)) i.startsWith("__react") || i.startsWith("_react") || i === "_owner" || (r[i] = Yl(a, t + 1, n));
|
|
5641
5692
|
return r;
|
|
5642
5693
|
}
|
|
5643
5694
|
//#endregion
|
|
5644
5695
|
//#region src/react/Sentinel.tsx
|
|
5645
|
-
var
|
|
5646
|
-
let s = k(), { activeId: c, isActive: l, showOutlines: d, highlightName: f, registerHover: p, unregisterHover: m, openDialog: h } =
|
|
5696
|
+
var Xl = ({ children: e, componentName: n, sourceFile: r, renderCount: i, dialogMd: a, componentProps: o }) => {
|
|
5697
|
+
let s = k(), { activeId: c, isActive: l, showOutlines: d, highlightName: f, registerHover: p, unregisterHover: m, openDialog: h } = Kl(), g = u([]), _ = u(""), v = o ? Yl(o) : void 0, y = v ? JSON.stringify(v) : "";
|
|
5647
5698
|
v && y !== _.current && (_.current = y, g.current = [v, ...g.current].slice(0, 6));
|
|
5648
5699
|
let b = l && c === s, x = l && !!f && !!n && n.toLowerCase().includes(f.toLowerCase());
|
|
5649
5700
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -5668,4 +5719,4 @@ var ql = ({ children: e, componentName: n, sourceFile: r, renderCount: i, dialog
|
|
|
5668
5719
|
}, e));
|
|
5669
5720
|
};
|
|
5670
5721
|
//#endregion
|
|
5671
|
-
export {
|
|
5722
|
+
export { Xl as Sentinel, Ul as SentinelProvider, Jl as useSentinel, ql as useSentinelDialog, Kl as useSentinelInteraction };
|