@oomol-lab/open-flow 0.1.0-beta.4 → 0.1.0-beta.6
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/browser/{DesignerIcon-DdfuH2jW.js → DesignerIcon-XKBRy_0Q.js} +640 -640
- package/dist/browser/createResourceDialog-Cf7QpXp6.js +505 -0
- package/dist/browser/{dist-BMqL-qR5.js → dist-BMRLCebL.js} +291 -292
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/{dist-CJpzJrLM.js → dist-Cc0y2Pli.js} +811 -812
- package/dist/browser/{dist-DUzA0Ukh.js → dist-Dg_VXC8f.js} +134 -135
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-meg_oHVR.js} +335 -335
- package/dist/browser/{esm-C9jQK70n.js → esm-CTcBY7hh.js} +5 -6
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +2 -2
- package/dist/browser/flow-authoring.js +475 -209
- package/dist/browser/flow-change.d.ts +98 -8
- package/dist/browser/flow-change.js +319 -96
- package/dist/browser/{flowChanges-Bs-ZcJV8.js → flowChanges-BDqD_Q4G.js} +1628 -1555
- package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-DDidwd8h.js} +9 -1
- package/dist/browser/{flowWorkspace-BewofPeU.js → flowWorkspace-CPBHm14t.js} +9803 -9769
- package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → getPseudoElementBounds-5LArT6Xc.js} +494 -474
- package/dist/browser/icons-CRxvozBE.js +726 -0
- package/dist/browser/{typeScriptSession-CwMPjseS.js → typeScriptSession-_TgJ_7Oq.js} +256 -257
- package/dist/browser/{waitNotificationInputs-DtrPBwA1.js → waitNotificationInputs-lPrLDTOd.js} +2 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +573 -578
- package/dist/browser/{workbenchSelect-CX8KtT7L.js → workbenchSelect-Cf1zlVm9.js} +398 -398
- package/dist/common/control-api-conformance.js +27 -19
- package/dist/common/control-api.d.ts +4 -11
- package/dist/common/control-api.js +6 -18
- package/dist/common/flow-encoding.js +4 -0
- package/dist/common/flow-semantics.js +8 -10
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +27 -0
- package/dist/common/scheduler.d.ts +1 -1
- package/dist/common/scheduler.js +17 -18
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CUSrALSX.js +0 -1620
- package/dist/browser/icons-DRoMXL5h.js +0 -521
package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → getPseudoElementBounds-5LArT6Xc.js}
RENAMED
|
@@ -3419,42 +3419,62 @@ var Ta = n.forwardRef(function({ className: e, type: t, ...n }, r) {
|
|
|
3419
3419
|
}, ja = Aa("Check", [["path", {
|
|
3420
3420
|
d: "M20 6 9 17l-5-5",
|
|
3421
3421
|
key: "1gmf2c"
|
|
3422
|
-
}]]), Ma =
|
|
3422
|
+
}]]), Ma = Object.prototype.hasOwnProperty;
|
|
3423
|
+
function Na(e, t) {
|
|
3424
|
+
var n, r;
|
|
3425
|
+
if (e === t) return !0;
|
|
3426
|
+
if (e && t && (n = e.constructor) === t.constructor) {
|
|
3427
|
+
if (n === Date) return e.getTime() === t.getTime();
|
|
3428
|
+
if (n === RegExp) return e.toString() === t.toString();
|
|
3429
|
+
if (n === Array) {
|
|
3430
|
+
if ((r = e.length) === t.length) for (; r-- && Na(e[r], t[r]););
|
|
3431
|
+
return r === -1;
|
|
3432
|
+
}
|
|
3433
|
+
if (!n || typeof e == "object") {
|
|
3434
|
+
for (n in r = 0, e) if (Ma.call(e, n) && ++r && !Ma.call(t, n) || !(n in t) || !Na(e[n], t[n])) return !1;
|
|
3435
|
+
return Object.keys(t).length === r;
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
return e !== e && t !== t;
|
|
3439
|
+
}
|
|
3440
|
+
//#endregion
|
|
3441
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popupStateMapping.js
|
|
3442
|
+
var Pa = function(e) {
|
|
3423
3443
|
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = Zi.startingStyle] = "startingStyle", e[e.endingStyle = Zi.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
|
|
3424
|
-
}({}),
|
|
3444
|
+
}({}), Fa = /*#__PURE__*/ function(e) {
|
|
3425
3445
|
return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
|
|
3426
|
-
}({}),
|
|
3427
|
-
[
|
|
3428
|
-
[
|
|
3429
|
-
},
|
|
3430
|
-
return e ?
|
|
3431
|
-
} },
|
|
3432
|
-
return e ?
|
|
3433
|
-
} },
|
|
3446
|
+
}({}), Ia = { [Fa.popupOpen]: "" }, La = {
|
|
3447
|
+
[Fa.popupOpen]: "",
|
|
3448
|
+
[Fa.pressed]: ""
|
|
3449
|
+
}, Ra = { [Pa.open]: "" }, za = { [Pa.closed]: "" }, Ba = { [Pa.anchorHidden]: "" }, Va = { open(e) {
|
|
3450
|
+
return e ? Ia : null;
|
|
3451
|
+
} }, Ha = { open(e) {
|
|
3452
|
+
return e ? La : null;
|
|
3453
|
+
} }, Ua = {
|
|
3434
3454
|
open(e) {
|
|
3435
|
-
return e ?
|
|
3455
|
+
return e ? Ra : za;
|
|
3436
3456
|
},
|
|
3437
3457
|
anchorHidden(e) {
|
|
3438
|
-
return e ?
|
|
3458
|
+
return e ? Ba : null;
|
|
3439
3459
|
}
|
|
3440
|
-
},
|
|
3460
|
+
}, Wa = /*#__PURE__*/ n.createContext({
|
|
3441
3461
|
register: () => {},
|
|
3442
3462
|
unregister: () => {},
|
|
3443
3463
|
subscribeMapChange: () => () => {},
|
|
3444
3464
|
elementsRef: { current: [] },
|
|
3445
3465
|
nextIndexRef: { current: 0 }
|
|
3446
3466
|
});
|
|
3447
|
-
process.env.NODE_ENV !== "production" && (
|
|
3448
|
-
function
|
|
3449
|
-
return n.useContext(
|
|
3467
|
+
process.env.NODE_ENV !== "production" && (Wa.displayName = "CompositeListContext");
|
|
3468
|
+
function Ga() {
|
|
3469
|
+
return n.useContext(Wa);
|
|
3450
3470
|
}
|
|
3451
3471
|
//#endregion
|
|
3452
3472
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/composite/list/useCompositeListItem.js
|
|
3453
|
-
var
|
|
3473
|
+
var Ka = /*#__PURE__*/ function(e) {
|
|
3454
3474
|
return e[e.None = 0] = "None", e[e.GuessFromOrder = 1] = "GuessFromOrder", e;
|
|
3455
3475
|
}({});
|
|
3456
|
-
function
|
|
3457
|
-
let { label: t, metadata: r, textRef: i, indexGuessBehavior: a, index: o } = e, { register: s, unregister: c, subscribeMapChange: l, elementsRef: u, labelsRef: d, nextIndexRef: f } =
|
|
3476
|
+
function qa(e = {}) {
|
|
3477
|
+
let { label: t, metadata: r, textRef: i, indexGuessBehavior: a, index: o } = e, { register: s, unregister: c, subscribeMapChange: l, elementsRef: u, labelsRef: d, nextIndexRef: f } = Ga(), p = n.useRef(-1), [m, h] = n.useState(o ?? (a === Ka.GuessFromOrder ? () => {
|
|
3458
3478
|
if (p.current === -1) {
|
|
3459
3479
|
let e = f.current;
|
|
3460
3480
|
f.current += 1, p.current = e;
|
|
@@ -3506,7 +3526,7 @@ function Q(e, t, n, r) {
|
|
|
3506
3526
|
}
|
|
3507
3527
|
//#endregion
|
|
3508
3528
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/mergeCleanups.js
|
|
3509
|
-
function
|
|
3529
|
+
function Ja(...e) {
|
|
3510
3530
|
return () => {
|
|
3511
3531
|
for (let t = 0; t < e.length; t += 1) {
|
|
3512
3532
|
let n = e[t];
|
|
@@ -3516,11 +3536,11 @@ function Ka(...e) {
|
|
|
3516
3536
|
}
|
|
3517
3537
|
//#endregion
|
|
3518
3538
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useValueAsRef.js
|
|
3519
|
-
function
|
|
3520
|
-
let t = F(
|
|
3539
|
+
function Ya(e) {
|
|
3540
|
+
let t = F(Xa, e).current;
|
|
3521
3541
|
return t.next = e, U(t.effect), t;
|
|
3522
3542
|
}
|
|
3523
|
-
function
|
|
3543
|
+
function Xa(e) {
|
|
3524
3544
|
let t = {
|
|
3525
3545
|
current: e,
|
|
3526
3546
|
next: e,
|
|
@@ -3532,7 +3552,7 @@ function Ja(e) {
|
|
|
3532
3552
|
}
|
|
3533
3553
|
//#endregion
|
|
3534
3554
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/visuallyHidden.js
|
|
3535
|
-
var
|
|
3555
|
+
var Za = {
|
|
3536
3556
|
clipPath: "inset(50%)",
|
|
3537
3557
|
overflow: "hidden",
|
|
3538
3558
|
whiteSpace: "nowrap",
|
|
@@ -3541,15 +3561,15 @@ var Ya = {
|
|
|
3541
3561
|
width: 1,
|
|
3542
3562
|
height: 1,
|
|
3543
3563
|
margin: -1
|
|
3544
|
-
},
|
|
3545
|
-
...
|
|
3564
|
+
}, Qa = {
|
|
3565
|
+
...Za,
|
|
3546
3566
|
position: "fixed",
|
|
3547
3567
|
top: 0,
|
|
3548
3568
|
left: 0
|
|
3549
|
-
},
|
|
3550
|
-
...
|
|
3569
|
+
}, $a = {
|
|
3570
|
+
...Za,
|
|
3551
3571
|
position: "absolute"
|
|
3552
|
-
},
|
|
3572
|
+
}, eo = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
3553
3573
|
let [r, i] = n.useState();
|
|
3554
3574
|
U(() => {
|
|
3555
3575
|
Qn && i("button");
|
|
@@ -3561,57 +3581,57 @@ var Ya = {
|
|
|
3561
3581
|
return /*#__PURE__*/ o("span", {
|
|
3562
3582
|
...e,
|
|
3563
3583
|
ref: t,
|
|
3564
|
-
style:
|
|
3584
|
+
style: Qa,
|
|
3565
3585
|
"aria-hidden": !r || void 0,
|
|
3566
3586
|
...a,
|
|
3567
3587
|
"data-base-ui-focus-guard": ""
|
|
3568
3588
|
});
|
|
3569
3589
|
});
|
|
3570
|
-
process.env.NODE_ENV !== "production" && (
|
|
3590
|
+
process.env.NODE_ENV !== "production" && (eo.displayName = "FocusGuard");
|
|
3571
3591
|
//#endregion
|
|
3572
3592
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js
|
|
3573
|
-
function
|
|
3593
|
+
function to(e) {
|
|
3574
3594
|
return `data-base-ui-${e}`;
|
|
3575
3595
|
}
|
|
3576
3596
|
//#endregion
|
|
3577
3597
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.js
|
|
3578
|
-
var
|
|
3579
|
-
function
|
|
3598
|
+
var no = 0;
|
|
3599
|
+
function ro(e, t = {}) {
|
|
3580
3600
|
let { preventScroll: n = !1, cancelPrevious: r = !0, sync: i = !1 } = t;
|
|
3581
|
-
r && cancelAnimationFrame(
|
|
3601
|
+
r && cancelAnimationFrame(no);
|
|
3582
3602
|
let a = () => e?.focus({ preventScroll: n });
|
|
3583
3603
|
if (i) return a(), Ne;
|
|
3584
3604
|
let o = requestAnimationFrame(a);
|
|
3585
|
-
return
|
|
3586
|
-
|
|
3605
|
+
return no = o, () => {
|
|
3606
|
+
no === o && (cancelAnimationFrame(o), no = 0);
|
|
3587
3607
|
};
|
|
3588
3608
|
}
|
|
3589
3609
|
//#endregion
|
|
3590
3610
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.js
|
|
3591
|
-
var
|
|
3611
|
+
var io = {
|
|
3592
3612
|
inert: /* @__PURE__ */ new WeakMap(),
|
|
3593
3613
|
"aria-hidden": /* @__PURE__ */ new WeakMap()
|
|
3594
|
-
},
|
|
3614
|
+
}, ao = "data-base-ui-inert", oo = {
|
|
3595
3615
|
inert: /* @__PURE__ */ new WeakSet(),
|
|
3596
3616
|
"aria-hidden": /* @__PURE__ */ new WeakSet()
|
|
3597
|
-
},
|
|
3598
|
-
function
|
|
3599
|
-
return
|
|
3617
|
+
}, so = /* @__PURE__ */ new WeakMap(), co = 0;
|
|
3618
|
+
function lo(e) {
|
|
3619
|
+
return oo[e];
|
|
3600
3620
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return e ? g(e) ? e.host :
|
|
3621
|
+
function uo(e) {
|
|
3622
|
+
return e ? g(e) ? e.host : uo(e.parentNode) : null;
|
|
3603
3623
|
}
|
|
3604
|
-
var
|
|
3624
|
+
var fo = (e, t) => t.map((t) => {
|
|
3605
3625
|
if (e.contains(t)) return t;
|
|
3606
|
-
let n =
|
|
3626
|
+
let n = uo(t);
|
|
3607
3627
|
return e.contains(n) ? n : null;
|
|
3608
|
-
}).filter((e) => e != null),
|
|
3628
|
+
}).filter((e) => e != null), po = (e) => {
|
|
3609
3629
|
let t = /* @__PURE__ */ new Set();
|
|
3610
3630
|
return e.forEach((e) => {
|
|
3611
3631
|
let n = e;
|
|
3612
3632
|
for (; n && !t.has(n);) t.add(n), n = n.parentNode;
|
|
3613
3633
|
}), t;
|
|
3614
|
-
},
|
|
3634
|
+
}, mo = (e, t, n) => {
|
|
3615
3635
|
let r = [], i = (e) => {
|
|
3616
3636
|
!e || n.has(e) || Array.from(e.children).forEach((e) => {
|
|
3617
3637
|
u(e) !== "script" && (t.has(e) ? i(e) : r.push(e));
|
|
@@ -3619,49 +3639,49 @@ var lo = (e, t) => t.map((t) => {
|
|
|
3619
3639
|
};
|
|
3620
3640
|
return i(e), r;
|
|
3621
3641
|
};
|
|
3622
|
-
function
|
|
3623
|
-
let o = r ? "inert" : n ? "aria-hidden" : null, s = null, c = null, l =
|
|
3642
|
+
function ho(e, t, n, r, { mark: i = !0, markerIgnoreElements: a = [] }) {
|
|
3643
|
+
let o = r ? "inert" : n ? "aria-hidden" : null, s = null, c = null, l = fo(t, e), u = i ? fo(t, a) : [], d = new Set(u), f = i ? mo(t, po(l), new Set(l)).filter((e) => !d.has(e)) : [], p = [], m = [];
|
|
3624
3644
|
if (o) {
|
|
3625
|
-
let e =
|
|
3645
|
+
let e = io[o], n = lo(o);
|
|
3626
3646
|
c = n, s = e;
|
|
3627
|
-
let r =
|
|
3628
|
-
|
|
3647
|
+
let r = fo(t, Array.from(t.querySelectorAll("[aria-live]"))), i = l.concat(r);
|
|
3648
|
+
mo(t, po(i), new Set(i)).forEach((t) => {
|
|
3629
3649
|
let r = t.getAttribute(o), i = r !== null && r !== "false", a = (e.get(t) || 0) + 1;
|
|
3630
3650
|
e.set(t, a), p.push(t), a === 1 && i && n.add(t), i || t.setAttribute(o, o === "inert" ? "" : "true");
|
|
3631
3651
|
});
|
|
3632
3652
|
}
|
|
3633
3653
|
return i && f.forEach((e) => {
|
|
3634
|
-
let t = (
|
|
3635
|
-
|
|
3636
|
-
}),
|
|
3654
|
+
let t = (so.get(e) || 0) + 1;
|
|
3655
|
+
so.set(e, t), m.push(e), t === 1 && e.setAttribute(ao, "");
|
|
3656
|
+
}), co += 1, () => {
|
|
3637
3657
|
s && p.forEach((e) => {
|
|
3638
3658
|
let t = (s.get(e) || 0) - 1;
|
|
3639
3659
|
s.set(e, t), t || (!c?.has(e) && o && e.removeAttribute(o), c?.delete(e));
|
|
3640
3660
|
}), i && m.forEach((e) => {
|
|
3641
|
-
let t = (
|
|
3642
|
-
|
|
3643
|
-
}), --
|
|
3661
|
+
let t = (so.get(e) || 0) - 1;
|
|
3662
|
+
so.set(e, t), t || e.removeAttribute(ao);
|
|
3663
|
+
}), --co, co || (io.inert = /* @__PURE__ */ new WeakMap(), io["aria-hidden"] = /* @__PURE__ */ new WeakMap(), oo.inert = /* @__PURE__ */ new WeakSet(), oo["aria-hidden"] = /* @__PURE__ */ new WeakSet(), so = /* @__PURE__ */ new WeakMap());
|
|
3644
3664
|
};
|
|
3645
3665
|
}
|
|
3646
|
-
function
|
|
3666
|
+
function go(e, t = {}) {
|
|
3647
3667
|
let { ariaHidden: n = !1, inert: r = !1, mark: i = !0, markerIgnoreElements: a = [] } = t, o = X(e[0]).body;
|
|
3648
|
-
return
|
|
3668
|
+
return ho(e, o, n, r, {
|
|
3649
3669
|
mark: i,
|
|
3650
3670
|
markerIgnoreElements: a
|
|
3651
3671
|
});
|
|
3652
3672
|
}
|
|
3653
3673
|
//#endregion
|
|
3654
3674
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/constants.js
|
|
3655
|
-
var
|
|
3675
|
+
var _o = { style: { transition: "none" } }, vo = "data-base-ui-click-trigger", yo = { fallbackAxisSide: "none" }, bo = { fallbackAxisSide: "end" }, xo = {
|
|
3656
3676
|
clipPath: "inset(50%)",
|
|
3657
3677
|
position: "fixed",
|
|
3658
3678
|
top: 0,
|
|
3659
3679
|
left: 0
|
|
3660
|
-
},
|
|
3661
|
-
process.env.NODE_ENV !== "production" && (
|
|
3662
|
-
var
|
|
3663
|
-
function
|
|
3664
|
-
let { ref: t, container: r, componentProps: i = Fe, elementProps: a } = e, o = Vn(), s =
|
|
3680
|
+
}, So = /*#__PURE__*/ n.createContext(null);
|
|
3681
|
+
process.env.NODE_ENV !== "production" && (So.displayName = "PortalContext");
|
|
3682
|
+
var Co = () => n.useContext(So), wo = to("portal");
|
|
3683
|
+
function To(e = {}) {
|
|
3684
|
+
let { ref: t, container: r, componentProps: i = Fe, elementProps: a } = e, o = Vn(), s = Co()?.portalNode, [l, u] = n.useState(null), [d, f] = n.useState(null), m = R((e) => {
|
|
3665
3685
|
e !== null && f(e);
|
|
3666
3686
|
}), h = n.useRef(null);
|
|
3667
3687
|
U(() => {
|
|
@@ -3685,7 +3705,7 @@ function Co(e = {}) {
|
|
|
3685
3705
|
ref: [t, m],
|
|
3686
3706
|
props: [{
|
|
3687
3707
|
id: o,
|
|
3688
|
-
[
|
|
3708
|
+
[wo]: ""
|
|
3689
3709
|
}, a]
|
|
3690
3710
|
});
|
|
3691
3711
|
return {
|
|
@@ -3693,8 +3713,8 @@ function Co(e = {}) {
|
|
|
3693
3713
|
portalSubtree: l && g ? /*#__PURE__*/ c.createPortal(g, l) : null
|
|
3694
3714
|
};
|
|
3695
3715
|
}
|
|
3696
|
-
var
|
|
3697
|
-
let { children: r, container: i, className: a, render: l, renderGuards: u, style: d, ...f } = e, { portalNode: p, portalSubtree: m } =
|
|
3716
|
+
var Eo = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
3717
|
+
let { children: r, container: i, className: a, render: l, renderGuards: u, style: d, ...f } = e, { portalNode: p, portalSubtree: m } = To({
|
|
3698
3718
|
container: i,
|
|
3699
3719
|
ref: t,
|
|
3700
3720
|
componentProps: e,
|
|
@@ -3705,7 +3725,7 @@ var wo = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
3705
3725
|
function e(e) {
|
|
3706
3726
|
p && e.relatedTarget && Li(e) && (e.type === "focusin" ? x.current &&= (zi(p), !1) : (Ri(p), x.current = !0));
|
|
3707
3727
|
}
|
|
3708
|
-
return
|
|
3728
|
+
return Ja(Q(p, "focusin", e, !0), Q(p, "focusout", e, !0));
|
|
3709
3729
|
}, [p, S]), n.useEffect(() => {
|
|
3710
3730
|
!p || C !== !1 || (zi(p), x.current = !1);
|
|
3711
3731
|
}, [C, p]);
|
|
@@ -3717,10 +3737,10 @@ var wo = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
3717
3737
|
portalNode: p,
|
|
3718
3738
|
setFocusManagerState: b
|
|
3719
3739
|
}), [p]);
|
|
3720
|
-
return /*#__PURE__*/ s(n.Fragment, { children: [m, /*#__PURE__*/ s(
|
|
3740
|
+
return /*#__PURE__*/ s(n.Fragment, { children: [m, /*#__PURE__*/ s(So.Provider, {
|
|
3721
3741
|
value: T,
|
|
3722
3742
|
children: [
|
|
3723
|
-
w && p && /*#__PURE__*/ o(
|
|
3743
|
+
w && p && /*#__PURE__*/ o(eo, {
|
|
3724
3744
|
"data-type": "outside",
|
|
3725
3745
|
ref: h,
|
|
3726
3746
|
onFocus: (e) => {
|
|
@@ -3729,10 +3749,10 @@ var wo = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
3729
3749
|
}),
|
|
3730
3750
|
w && p && /*#__PURE__*/ o("span", {
|
|
3731
3751
|
"aria-owns": p.id,
|
|
3732
|
-
style:
|
|
3752
|
+
style: xo
|
|
3733
3753
|
}),
|
|
3734
3754
|
p && /*#__PURE__*/ c.createPortal(r, p),
|
|
3735
|
-
w && p && /*#__PURE__*/ o(
|
|
3755
|
+
w && p && /*#__PURE__*/ o(eo, {
|
|
3736
3756
|
"data-type": "outside",
|
|
3737
3757
|
ref: g,
|
|
3738
3758
|
onFocus: (e) => {
|
|
@@ -3742,10 +3762,10 @@ var wo = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
3742
3762
|
]
|
|
3743
3763
|
})] });
|
|
3744
3764
|
});
|
|
3745
|
-
process.env.NODE_ENV !== "production" && (
|
|
3765
|
+
process.env.NODE_ENV !== "production" && (Eo.displayName = "FloatingPortal");
|
|
3746
3766
|
//#endregion
|
|
3747
3767
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter.js
|
|
3748
|
-
function
|
|
3768
|
+
function Do() {
|
|
3749
3769
|
let e = /* @__PURE__ */ new Map();
|
|
3750
3770
|
return {
|
|
3751
3771
|
emit(t, n) {
|
|
@@ -3761,9 +3781,9 @@ function To() {
|
|
|
3761
3781
|
}
|
|
3762
3782
|
//#endregion
|
|
3763
3783
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTreeStore.js
|
|
3764
|
-
var
|
|
3784
|
+
var Oo = class {
|
|
3765
3785
|
nodesRef = { current: [] };
|
|
3766
|
-
events =
|
|
3786
|
+
events = Do();
|
|
3767
3787
|
addNode(e) {
|
|
3768
3788
|
this.nodesRef.current.push(e);
|
|
3769
3789
|
}
|
|
@@ -3771,16 +3791,16 @@ var Eo = class {
|
|
|
3771
3791
|
let t = this.nodesRef.current.findIndex((t) => t === e);
|
|
3772
3792
|
t !== -1 && this.nodesRef.current.splice(t, 1);
|
|
3773
3793
|
}
|
|
3774
|
-
},
|
|
3775
|
-
process.env.NODE_ENV !== "production" && (
|
|
3776
|
-
var
|
|
3777
|
-
process.env.NODE_ENV !== "production" && (
|
|
3778
|
-
var
|
|
3779
|
-
let t = n.useContext(
|
|
3794
|
+
}, ko = /*#__PURE__*/ n.createContext(null);
|
|
3795
|
+
process.env.NODE_ENV !== "production" && (ko.displayName = "FloatingNodeContext");
|
|
3796
|
+
var Ao = /*#__PURE__*/ n.createContext(null);
|
|
3797
|
+
process.env.NODE_ENV !== "production" && (Ao.displayName = "FloatingTreeContext");
|
|
3798
|
+
var jo = () => n.useContext(ko)?.id || null, Mo = (e) => {
|
|
3799
|
+
let t = n.useContext(Ao);
|
|
3780
3800
|
return e ?? t;
|
|
3781
3801
|
};
|
|
3782
|
-
function
|
|
3783
|
-
let t = Vn(), n =
|
|
3802
|
+
function No(e) {
|
|
3803
|
+
let t = Vn(), n = Mo(e), r = jo();
|
|
3784
3804
|
return U(() => {
|
|
3785
3805
|
if (!t) return;
|
|
3786
3806
|
let e = {
|
|
@@ -3796,9 +3816,9 @@ function jo(e) {
|
|
|
3796
3816
|
r
|
|
3797
3817
|
]), t;
|
|
3798
3818
|
}
|
|
3799
|
-
function
|
|
3800
|
-
let { children: t, id: r } = e, i =
|
|
3801
|
-
return /*#__PURE__*/ o(
|
|
3819
|
+
function Po(e) {
|
|
3820
|
+
let { children: t, id: r } = e, i = jo();
|
|
3821
|
+
return /*#__PURE__*/ o(ko.Provider, {
|
|
3802
3822
|
value: n.useMemo(() => ({
|
|
3803
3823
|
id: r,
|
|
3804
3824
|
parentId: i
|
|
@@ -3806,33 +3826,33 @@ function Mo(e) {
|
|
|
3806
3826
|
children: t
|
|
3807
3827
|
});
|
|
3808
3828
|
}
|
|
3809
|
-
function
|
|
3810
|
-
let { children: t, externalTree: n } = e, r = F(() => n ?? new
|
|
3811
|
-
return /*#__PURE__*/ o(
|
|
3829
|
+
function Fo(e) {
|
|
3830
|
+
let { children: t, externalTree: n } = e, r = F(() => n ?? new Oo()).current;
|
|
3831
|
+
return /*#__PURE__*/ o(Ao.Provider, {
|
|
3812
3832
|
value: r,
|
|
3813
3833
|
children: t
|
|
3814
3834
|
});
|
|
3815
3835
|
}
|
|
3816
3836
|
//#endregion
|
|
3817
3837
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js
|
|
3818
|
-
function
|
|
3838
|
+
function Io(e, t) {
|
|
3819
3839
|
let n = d(fr(e));
|
|
3820
3840
|
return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
|
|
3821
3841
|
}
|
|
3822
|
-
var
|
|
3823
|
-
function Lo() {
|
|
3824
|
-
Io = Io.filter((e) => e.deref()?.isConnected);
|
|
3825
|
-
}
|
|
3826
|
-
function Ro(e) {
|
|
3827
|
-
Lo(), e && u(e) !== "body" && (Io.push(new WeakRef(e)), Io.length > Fo && (Io = Io.slice(-20)));
|
|
3828
|
-
}
|
|
3842
|
+
var Lo = 20, Ro = [];
|
|
3829
3843
|
function zo() {
|
|
3830
|
-
|
|
3844
|
+
Ro = Ro.filter((e) => e.deref()?.isConnected);
|
|
3831
3845
|
}
|
|
3832
3846
|
function Bo(e) {
|
|
3847
|
+
zo(), e && u(e) !== "body" && (Ro.push(new WeakRef(e)), Ro.length > Lo && (Ro = Ro.slice(-20)));
|
|
3848
|
+
}
|
|
3849
|
+
function Vo() {
|
|
3850
|
+
return zo(), Ro[Ro.length - 1]?.deref();
|
|
3851
|
+
}
|
|
3852
|
+
function Ho(e) {
|
|
3833
3853
|
return e ? Oi(e) ? e : Ai(e)[0] || e : null;
|
|
3834
3854
|
}
|
|
3835
|
-
function
|
|
3855
|
+
function Uo(e, t) {
|
|
3836
3856
|
if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !t.current.includes("floating") && !e.getAttribute("role")?.includes("dialog")) return;
|
|
3837
3857
|
let n = ki(e).filter((e) => {
|
|
3838
3858
|
let t = e.getAttribute("data-tabindex") || "";
|
|
@@ -3840,8 +3860,8 @@ function Vo(e, t) {
|
|
|
3840
3860
|
}), r = e.getAttribute("tabindex");
|
|
3841
3861
|
t.current.includes("floating") || n.length === 0 ? r !== "0" && e.setAttribute("tabindex", "0") : (r !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
|
|
3842
3862
|
}
|
|
3843
|
-
function
|
|
3844
|
-
let { context: t, children: r, disabled: i = !1, initialFocus: a = !0, returnFocus: c = !0, restoreFocus: l = !1, modal: u = !0, closeOnFocusOut: d = !0, openInteractionType: f = "", nextFocusableElement: p, previousFocusableElement: m, beforeContentFocusGuardRef: g, externalTree: _, getInsideElements: v } = e, y = "rootStore" in t ? t.rootStore : t, b = y.useState("open"), x = y.useState("domReferenceElement"), S = y.useState("floatingElement"), { events: C, dataRef: w } = y.context, T = R(() => w.current.floatingContext?.nodeId), E = a === !1, D = vr(x) && E, O = n.useRef(["content"]), k =
|
|
3863
|
+
function Wo(e) {
|
|
3864
|
+
let { context: t, children: r, disabled: i = !1, initialFocus: a = !0, returnFocus: c = !0, restoreFocus: l = !1, modal: u = !0, closeOnFocusOut: d = !0, openInteractionType: f = "", nextFocusableElement: p, previousFocusableElement: m, beforeContentFocusGuardRef: g, externalTree: _, getInsideElements: v } = e, y = "rootStore" in t ? t.rootStore : t, b = y.useState("open"), x = y.useState("domReferenceElement"), S = y.useState("floatingElement"), { events: C, dataRef: w } = y.context, T = R(() => w.current.floatingContext?.nodeId), E = a === !1, D = vr(x) && E, O = n.useRef(["content"]), k = Ya(a), A = Ya(c), j = Ya(f), M = Mo(_), N = Co(), P = n.useRef(!1), F = n.useRef(!1), I = n.useRef(!1), L = n.useRef(null), ee = n.useRef(""), z = n.useRef(""), B = n.useRef(null), V = n.useRef(null), H = Se(B, g, N?.beforeInsideRef), W = Se(V, N?.afterInsideRef), te = Wi(), ne = Wi(), G = Yi(), re = N != null, K = br(S), ie = R((e = K) => e ? Ai(e) : []), ae = R(() => v?.().filter((e) => e != null) ?? []);
|
|
3845
3865
|
n.useEffect(() => {
|
|
3846
3866
|
if (i || !u) return;
|
|
3847
3867
|
function e(e) {
|
|
@@ -3869,7 +3889,7 @@ function Ho(e) {
|
|
|
3869
3889
|
function r() {
|
|
3870
3890
|
z.current = "keyboard";
|
|
3871
3891
|
}
|
|
3872
|
-
return
|
|
3892
|
+
return Ja(Q(e, "pointerdown", n, !0), Q(e, "pointerup", t, !0), Q(e, "pointercancel", t, !0), Q(e, "keydown", r, !0));
|
|
3873
3893
|
}, [
|
|
3874
3894
|
i,
|
|
3875
3895
|
S,
|
|
@@ -3893,7 +3913,7 @@ function Ho(e) {
|
|
|
3893
3913
|
function r(t) {
|
|
3894
3914
|
let n = t.relatedTarget, r = t.currentTarget, i = fr(t);
|
|
3895
3915
|
queueMicrotask(() => {
|
|
3896
|
-
let a = T(), o = y.context.triggerElements, s = ae(), c = n?.hasAttribute(
|
|
3916
|
+
let a = T(), o = y.context.triggerElements, s = ae(), c = n?.hasAttribute(to("focus-guard")) && [
|
|
3897
3917
|
B.current,
|
|
3898
3918
|
V.current,
|
|
3899
3919
|
N?.beforeInsideRef.current,
|
|
@@ -3903,7 +3923,7 @@ function Ho(e) {
|
|
|
3903
3923
|
Xi(m),
|
|
3904
3924
|
Xi(p)
|
|
3905
3925
|
].includes(n), d = !(Z(x, n) || Z(S, n) || Z(n, S) || Z(N?.portalNode, n) || s.some((e) => e === n || Z(e, n)) || n != null && o.hasElement(n) || o.hasMatchingElement((e) => Z(e, n)) || c || M && (xr(M.nodesRef.current, a).find((e) => Z(e.context?.elements.floating, n) || Z(e.context?.elements.domReference, n)) || Sr(M.nodesRef.current, a).find((e) => [e.context?.elements.floating, br(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
|
|
3906
|
-
if (r === x && K &&
|
|
3926
|
+
if (r === x && K && Uo(K, O), l && r !== x && !mi(i) && dr(e) === e.body) {
|
|
3907
3927
|
if (h(K) && (K.focus(), l === "popup")) {
|
|
3908
3928
|
G.request(() => {
|
|
3909
3929
|
K.focus();
|
|
@@ -3917,7 +3937,7 @@ function Ho(e) {
|
|
|
3917
3937
|
w.current.insideReactTree = !1;
|
|
3918
3938
|
return;
|
|
3919
3939
|
}
|
|
3920
|
-
(D || !u) && n && d && !F.current && (D || n !==
|
|
3940
|
+
(D || !u) && n && d && !F.current && (D || n !== Vo()) && (P.current = !0, y.setOpen(!1, Sa(ma, t)));
|
|
3921
3941
|
});
|
|
3922
3942
|
}
|
|
3923
3943
|
function a() {
|
|
@@ -3926,7 +3946,7 @@ function Ho(e) {
|
|
|
3926
3946
|
}));
|
|
3927
3947
|
}
|
|
3928
3948
|
let o = h(x) ? x : null;
|
|
3929
|
-
if (!(!S && !o)) return
|
|
3949
|
+
if (!(!S && !o)) return Ja(o && Q(o, "focusout", r), o && Q(o, "pointerdown", t), S && Q(S, "focusin", n), S && Q(S, "focusout", r), S && N && Q(S, "focusout", a, !0));
|
|
3930
3950
|
}, [
|
|
3931
3951
|
i,
|
|
3932
3952
|
x,
|
|
@@ -3951,7 +3971,7 @@ function Ho(e) {
|
|
|
3951
3971
|
ae
|
|
3952
3972
|
]), n.useEffect(() => {
|
|
3953
3973
|
if (i || !S || !b) return;
|
|
3954
|
-
let e = Array.from(N?.portalNode?.querySelectorAll(`[${
|
|
3974
|
+
let e = Array.from(N?.portalNode?.querySelectorAll(`[${to("portal")}]`) || []), t = (M ? Sr(M.nodesRef.current, T()) : []).find((e) => vr(e.context?.elements.domReference || null))?.context?.elements.domReference, n = go([
|
|
3955
3975
|
S,
|
|
3956
3976
|
...e,
|
|
3957
3977
|
B.current,
|
|
@@ -3966,7 +3986,7 @@ function Ho(e) {
|
|
|
3966
3986
|
].filter((e) => e != null), {
|
|
3967
3987
|
ariaHidden: u || D,
|
|
3968
3988
|
mark: !1
|
|
3969
|
-
}), r =
|
|
3989
|
+
}), r = go([S, ...e].filter((e) => e != null));
|
|
3970
3990
|
return () => {
|
|
3971
3991
|
r(), n();
|
|
3972
3992
|
};
|
|
@@ -3991,7 +4011,7 @@ function Ho(e) {
|
|
|
3991
4011
|
let t = k.current, n = typeof t == "function" ? t(j.current || "") : t;
|
|
3992
4012
|
if (n === void 0 || n === !1 || Z(K, e)) return;
|
|
3993
4013
|
let r = null, i = () => (r ??= ie(K), r[0] || K), a;
|
|
3994
|
-
a = n === !0 || n === null ? i() : Xi(n), a ||= i(),
|
|
4014
|
+
a = n === !0 || n === null ? i() : Xi(n), a ||= i(), ro(a, { preventScroll: a === K });
|
|
3995
4015
|
});
|
|
3996
4016
|
}, [
|
|
3997
4017
|
i,
|
|
@@ -4004,9 +4024,9 @@ function Ho(e) {
|
|
|
4004
4024
|
]), U(() => {
|
|
4005
4025
|
if (i || !K) return;
|
|
4006
4026
|
let e = X(K);
|
|
4007
|
-
|
|
4027
|
+
Bo(dr(e));
|
|
4008
4028
|
function t(e) {
|
|
4009
|
-
if (e.open || (ee.current =
|
|
4029
|
+
if (e.open || (ee.current = Io(e.nativeEvent, z.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (P.current = !0), e.reason === "outside-press") {
|
|
4010
4030
|
if (e.nested) P.current = !1;
|
|
4011
4031
|
else if (Tr(e.nativeEvent) || Er(e.nativeEvent)) P.current = !1;
|
|
4012
4032
|
else {
|
|
@@ -4022,17 +4042,17 @@ function Ho(e) {
|
|
|
4022
4042
|
let e = A.current, t = typeof e == "function" ? e(ee.current) : e;
|
|
4023
4043
|
if (t === void 0 || t === !1) return null;
|
|
4024
4044
|
if (t === null && (t = !0), typeof t == "boolean") {
|
|
4025
|
-
let e = x ||
|
|
4045
|
+
let e = x || Vo();
|
|
4026
4046
|
return e && e.isConnected ? e : null;
|
|
4027
4047
|
}
|
|
4028
|
-
let n = x ||
|
|
4048
|
+
let n = x || Vo();
|
|
4029
4049
|
return Xi(t) || n || null;
|
|
4030
4050
|
}
|
|
4031
4051
|
return () => {
|
|
4032
4052
|
C.off("openchange", t);
|
|
4033
4053
|
let r = dr(e), i = ae(), a = Z(S, r) || i.some((e) => e === r || Z(e, r)) || M && xr(M.nodesRef.current, T(), !1).some((e) => Z(e.context?.elements.floating, r)), o = A.current, s = n();
|
|
4034
4054
|
queueMicrotask(() => {
|
|
4035
|
-
let t =
|
|
4055
|
+
let t = Ho(s), n = typeof o != "boolean";
|
|
4036
4056
|
o && !P.current && h(t) && (!(!n && t !== r && r !== e.body) || a) && t.focus({ preventScroll: !0 }), P.current = !1;
|
|
4037
4057
|
});
|
|
4038
4058
|
};
|
|
@@ -4070,8 +4090,8 @@ function Ho(e) {
|
|
|
4070
4090
|
d,
|
|
4071
4091
|
x
|
|
4072
4092
|
]), U(() => {
|
|
4073
|
-
if (!(i || !K)) return
|
|
4074
|
-
queueMicrotask(
|
|
4093
|
+
if (!(i || !K)) return Uo(K, O), () => {
|
|
4094
|
+
queueMicrotask(zo);
|
|
4075
4095
|
};
|
|
4076
4096
|
}, [
|
|
4077
4097
|
i,
|
|
@@ -4080,29 +4100,29 @@ function Ho(e) {
|
|
|
4080
4100
|
]);
|
|
4081
4101
|
let oe = !i && (!u || !D) && (re || u);
|
|
4082
4102
|
return /*#__PURE__*/ s(n.Fragment, { children: [
|
|
4083
|
-
oe && /*#__PURE__*/ o(
|
|
4103
|
+
oe && /*#__PURE__*/ o(eo, {
|
|
4084
4104
|
"data-type": "inside",
|
|
4085
4105
|
ref: H,
|
|
4086
4106
|
onFocus: (e) => {
|
|
4087
4107
|
if (u) {
|
|
4088
4108
|
let e = ie();
|
|
4089
|
-
|
|
4109
|
+
ro(e[e.length - 1]);
|
|
4090
4110
|
} else N?.portalNode && (P.current = !1, Li(e, N.portalNode) ? Mi(x)?.focus() : Xi(m ?? N.beforeOutsideRef)?.focus());
|
|
4091
4111
|
}
|
|
4092
4112
|
}),
|
|
4093
4113
|
r,
|
|
4094
|
-
oe && /*#__PURE__*/ o(
|
|
4114
|
+
oe && /*#__PURE__*/ o(eo, {
|
|
4095
4115
|
"data-type": "inside",
|
|
4096
4116
|
ref: W,
|
|
4097
4117
|
onFocus: (e) => {
|
|
4098
|
-
u ?
|
|
4118
|
+
u ? ro(ie()[0]) : N?.portalNode && (d && (P.current = !0), Li(e, N.portalNode) ? Ni(x)?.focus() : Xi(p ?? N.afterOutsideRef)?.focus());
|
|
4099
4119
|
}
|
|
4100
4120
|
})
|
|
4101
4121
|
] });
|
|
4102
4122
|
}
|
|
4103
4123
|
//#endregion
|
|
4104
4124
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick.js
|
|
4105
|
-
function
|
|
4125
|
+
function Go(e, t = {}) {
|
|
4106
4126
|
let r = "rootStore" in e ? e.rootStore : e, i = r.context.dataRef, { enabled: a = !0, event: o = "click", toggle: s = !0, ignoreMouse: c = !1, stickIfOpen: l = !0, touchOpenDelay: u = 0, reason: d = ca } = t, f = n.useRef(void 0), p = Yi(), m = Wi(), h = n.useMemo(() => ({
|
|
4107
4127
|
onPointerDown(e) {
|
|
4108
4128
|
f.current = e.pointerType;
|
|
@@ -4158,21 +4178,21 @@ function Uo(e, t = {}) {
|
|
|
4158
4178
|
}
|
|
4159
4179
|
//#endregion
|
|
4160
4180
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss.js
|
|
4161
|
-
var
|
|
4181
|
+
var Ko = {
|
|
4162
4182
|
intentional: "onClick",
|
|
4163
4183
|
sloppy: "onPointerDown"
|
|
4164
4184
|
};
|
|
4165
|
-
function
|
|
4185
|
+
function qo() {
|
|
4166
4186
|
return !1;
|
|
4167
4187
|
}
|
|
4168
|
-
function
|
|
4188
|
+
function Jo(e) {
|
|
4169
4189
|
return {
|
|
4170
4190
|
escapeKey: typeof e == "boolean" ? e : e?.escapeKey ?? !1,
|
|
4171
4191
|
outsidePress: typeof e == "boolean" ? e : e?.outsidePress ?? !0
|
|
4172
4192
|
};
|
|
4173
4193
|
}
|
|
4174
|
-
function
|
|
4175
|
-
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingElement"), { dataRef: o } = r.context, { enabled: s = !0, escapeKey: c = !0, outsidePress: l = !0, outsidePressEvent: u = "sloppy", referencePress: d =
|
|
4194
|
+
function Yo(e, t = {}) {
|
|
4195
|
+
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingElement"), { dataRef: o } = r.context, { enabled: s = !0, escapeKey: c = !0, outsidePress: l = !0, outsidePressEvent: u = "sloppy", referencePress: d = qo, referencePressEvent: f = "sloppy", bubbles: p, externalTree: _ } = t, v = Mo(_), y = R(typeof l == "function" ? l : () => !1), b = typeof l == "function" ? y : l, x = b !== !1, S = R(() => u), C = n.useRef(!1), w = n.useRef(!1), T = n.useRef(!1), { escapeKey: k, outsidePress: j } = Jo(p), M = n.useRef(null), N = Wi(), P = Wi(), F = R(() => {
|
|
4176
4196
|
P.clear(), o.current.insideReactTree = !1;
|
|
4177
4197
|
}), I = n.useRef(!1), L = n.useRef(""), ee = R(d), z = R((e) => {
|
|
4178
4198
|
if (!i || !s || !c || e.key !== "Escape" || I.current) return;
|
|
@@ -4229,7 +4249,7 @@ function qo(e, t = {}) {
|
|
|
4229
4249
|
F();
|
|
4230
4250
|
return;
|
|
4231
4251
|
}
|
|
4232
|
-
let n = fr(e), i = `[${
|
|
4252
|
+
let n = fr(e), i = `[${to("inert")}]`, a = m(n) ? n.getRootNode() : null, s = Array.from((g(a) ? a : X(r.select("floatingElement"))).querySelectorAll(i)), c = r.context.triggerElements;
|
|
4233
4253
|
if (n && (c.hasElement(n) || c.hasMatchingElement((e) => Z(e, n)))) return;
|
|
4234
4254
|
let l = m(n) ? n : null;
|
|
4235
4255
|
for (; l && !D(l);) {
|
|
@@ -4321,7 +4341,7 @@ function qo(e, t = {}) {
|
|
|
4321
4341
|
function ne(e) {
|
|
4322
4342
|
ee(e, te);
|
|
4323
4343
|
}
|
|
4324
|
-
let G = X(a), re =
|
|
4344
|
+
let G = X(a), re = Ja(c && Ja(Q(G, "keydown", z), Q(G, "compositionstart", n), Q(G, "compositionend", l)), x && Ja(Q(G, "click", V, !0), Q(G, "pointerdown", V, !0), Q(G, "pointerup", H, !0), Q(G, "pointercancel", H, !0), Q(G, "mousedown", V, !0), Q(G, "mouseup", H, !0), Q(G, "touchstart", B, !0), Q(G, "touchmove", W, !0), Q(G, "touchend", ne, !0)));
|
|
4325
4345
|
return () => {
|
|
4326
4346
|
re(), e.clear(), t.clear(), d(), T.current = !1;
|
|
4327
4347
|
};
|
|
@@ -4344,7 +4364,7 @@ function qo(e, t = {}) {
|
|
|
4344
4364
|
]), n.useEffect(F, [b, F]);
|
|
4345
4365
|
let V = n.useMemo(() => ({
|
|
4346
4366
|
onKeyDown: z,
|
|
4347
|
-
[
|
|
4367
|
+
[Ko[f]]: (e) => {
|
|
4348
4368
|
ee() && r.setOpen(!1, Sa(ca, e.nativeEvent));
|
|
4349
4369
|
},
|
|
4350
4370
|
...f !== "intentional" && { onClick(e) {
|
|
@@ -4393,7 +4413,7 @@ function qo(e, t = {}) {
|
|
|
4393
4413
|
}
|
|
4394
4414
|
//#endregion
|
|
4395
4415
|
//#region ../../node_modules/.bun/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
4396
|
-
function
|
|
4416
|
+
function Xo(e, t, n) {
|
|
4397
4417
|
let { reference: r, floating: i } = e, a = Hr(t), o = Ur(t), s = Vr(o), c = Rr(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;
|
|
4398
4418
|
switch (c) {
|
|
4399
4419
|
case "top":
|
|
@@ -4428,7 +4448,7 @@ function Jo(e, t, n) {
|
|
|
4428
4448
|
let m = zr(t);
|
|
4429
4449
|
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
|
|
4430
4450
|
}
|
|
4431
|
-
async function
|
|
4451
|
+
async function Zo(e, t) {
|
|
4432
4452
|
t === void 0 && (t = {});
|
|
4433
4453
|
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 } = Lr(t, e), p = ti(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = ni(await i.getClippingRect({
|
|
4434
4454
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
@@ -4456,15 +4476,15 @@ async function Yo(e, t) {
|
|
|
4456
4476
|
right: (y.right - h.right + p.right) / v.x
|
|
4457
4477
|
};
|
|
4458
4478
|
}
|
|
4459
|
-
var
|
|
4479
|
+
var Qo = 50, $o = async (e, t, n) => {
|
|
4460
4480
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
4461
4481
|
...o,
|
|
4462
|
-
detectOverflow:
|
|
4482
|
+
detectOverflow: Zo
|
|
4463
4483
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
4464
4484
|
reference: e,
|
|
4465
4485
|
floating: t,
|
|
4466
4486
|
strategy: i
|
|
4467
|
-
}), { x: u, y: d } =
|
|
4487
|
+
}), { x: u, y: d } = Xo(l, r, c), f = r, p = 0, m = {};
|
|
4468
4488
|
for (let n = 0; n < a.length; n++) {
|
|
4469
4489
|
let h = a[n];
|
|
4470
4490
|
if (!h) continue;
|
|
@@ -4485,11 +4505,11 @@ var Xo = 50, Zo = async (e, t, n) => {
|
|
|
4485
4505
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
4486
4506
|
...m[g],
|
|
4487
4507
|
...b
|
|
4488
|
-
}, x && p <
|
|
4508
|
+
}, x && p < Qo && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
4489
4509
|
reference: e,
|
|
4490
4510
|
floating: t,
|
|
4491
4511
|
strategy: i
|
|
4492
|
-
}) : x.rects), {x: u, y: d} =
|
|
4512
|
+
}) : x.rects), {x: u, y: d} = Xo(l, f, c)), n = -1);
|
|
4493
4513
|
}
|
|
4494
4514
|
return {
|
|
4495
4515
|
x: u,
|
|
@@ -4498,7 +4518,7 @@ var Xo = 50, Zo = async (e, t, n) => {
|
|
|
4498
4518
|
strategy: i,
|
|
4499
4519
|
middlewareData: m
|
|
4500
4520
|
};
|
|
4501
|
-
},
|
|
4521
|
+
}, es = function(e) {
|
|
4502
4522
|
return e === void 0 && (e = {}), {
|
|
4503
4523
|
name: "flip",
|
|
4504
4524
|
options: e,
|
|
@@ -4546,7 +4566,7 @@ var Xo = 50, Zo = async (e, t, n) => {
|
|
|
4546
4566
|
}
|
|
4547
4567
|
};
|
|
4548
4568
|
};
|
|
4549
|
-
function
|
|
4569
|
+
function ts(e, t) {
|
|
4550
4570
|
return {
|
|
4551
4571
|
top: e.top - t.height,
|
|
4552
4572
|
right: e.right - t.width,
|
|
@@ -4554,10 +4574,10 @@ function $o(e, t) {
|
|
|
4554
4574
|
left: e.left - t.width
|
|
4555
4575
|
};
|
|
4556
4576
|
}
|
|
4557
|
-
function
|
|
4577
|
+
function ns(e) {
|
|
4558
4578
|
return kr.some((t) => e[t] >= 0);
|
|
4559
4579
|
}
|
|
4560
|
-
var
|
|
4580
|
+
var rs = function(e) {
|
|
4561
4581
|
return e === void 0 && (e = {}), {
|
|
4562
4582
|
name: "hide",
|
|
4563
4583
|
options: e,
|
|
@@ -4565,32 +4585,32 @@ var ts = function(e) {
|
|
|
4565
4585
|
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = Lr(e, t);
|
|
4566
4586
|
switch (i) {
|
|
4567
4587
|
case "referenceHidden": {
|
|
4568
|
-
let e =
|
|
4588
|
+
let e = ts(await r.detectOverflow(t, {
|
|
4569
4589
|
...a,
|
|
4570
4590
|
elementContext: "reference"
|
|
4571
4591
|
}), n.reference);
|
|
4572
4592
|
return { data: {
|
|
4573
4593
|
referenceHiddenOffsets: e,
|
|
4574
|
-
referenceHidden:
|
|
4594
|
+
referenceHidden: ns(e)
|
|
4575
4595
|
} };
|
|
4576
4596
|
}
|
|
4577
4597
|
case "escaped": {
|
|
4578
|
-
let e =
|
|
4598
|
+
let e = ts(await r.detectOverflow(t, {
|
|
4579
4599
|
...a,
|
|
4580
4600
|
altBoundary: !0
|
|
4581
4601
|
}), n.floating);
|
|
4582
4602
|
return { data: {
|
|
4583
4603
|
escapedOffsets: e,
|
|
4584
|
-
escaped:
|
|
4604
|
+
escaped: ns(e)
|
|
4585
4605
|
} };
|
|
4586
4606
|
}
|
|
4587
4607
|
default: return {};
|
|
4588
4608
|
}
|
|
4589
4609
|
}
|
|
4590
4610
|
};
|
|
4591
|
-
},
|
|
4592
|
-
async function
|
|
4593
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Rr(n), s = zr(n), c = Hr(n) === "y", l =
|
|
4611
|
+
}, is = /*#__PURE__*/ new Set(["left", "top"]);
|
|
4612
|
+
async function as(e, t) {
|
|
4613
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Rr(n), s = zr(n), c = Hr(n) === "y", l = is.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Lr(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
4594
4614
|
mainAxis: d,
|
|
4595
4615
|
crossAxis: 0,
|
|
4596
4616
|
alignmentAxis: null
|
|
@@ -4607,13 +4627,13 @@ async function rs(e, t) {
|
|
|
4607
4627
|
y: p * u
|
|
4608
4628
|
};
|
|
4609
4629
|
}
|
|
4610
|
-
var
|
|
4630
|
+
var os = function(e) {
|
|
4611
4631
|
return e === void 0 && (e = 0), {
|
|
4612
4632
|
name: "offset",
|
|
4613
4633
|
options: e,
|
|
4614
4634
|
async fn(t) {
|
|
4615
4635
|
var n;
|
|
4616
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
4636
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await as(t, e);
|
|
4617
4637
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
4618
4638
|
x: r + s.x,
|
|
4619
4639
|
y: i + s.y,
|
|
@@ -4624,7 +4644,7 @@ var is = function(e) {
|
|
|
4624
4644
|
};
|
|
4625
4645
|
}
|
|
4626
4646
|
};
|
|
4627
|
-
},
|
|
4647
|
+
}, ss = function(e) {
|
|
4628
4648
|
return e === void 0 && (e = {}), {
|
|
4629
4649
|
name: "shift",
|
|
4630
4650
|
options: e,
|
|
@@ -4658,7 +4678,7 @@ var is = function(e) {
|
|
|
4658
4678
|
};
|
|
4659
4679
|
}
|
|
4660
4680
|
};
|
|
4661
|
-
},
|
|
4681
|
+
}, cs = function(e) {
|
|
4662
4682
|
return e === void 0 && (e = {}), {
|
|
4663
4683
|
options: e,
|
|
4664
4684
|
fn(t) {
|
|
@@ -4677,7 +4697,7 @@ var is = function(e) {
|
|
|
4677
4697
|
p < t ? p = t : p > n && (p = n);
|
|
4678
4698
|
}
|
|
4679
4699
|
if (l) {
|
|
4680
|
-
let e = f === "y" ? "width" : "height", t =
|
|
4700
|
+
let e = f === "y" ? "width" : "height", t = is.has(Rr(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);
|
|
4681
4701
|
m < n ? m = n : m > r && (m = r);
|
|
4682
4702
|
}
|
|
4683
4703
|
return {
|
|
@@ -4686,7 +4706,7 @@ var is = function(e) {
|
|
|
4686
4706
|
};
|
|
4687
4707
|
}
|
|
4688
4708
|
};
|
|
4689
|
-
},
|
|
4709
|
+
}, ls = function(e) {
|
|
4690
4710
|
return e === void 0 && (e = {}), {
|
|
4691
4711
|
name: "size",
|
|
4692
4712
|
options: e,
|
|
@@ -4706,7 +4726,7 @@ var is = function(e) {
|
|
|
4706
4726
|
};
|
|
4707
4727
|
//#endregion
|
|
4708
4728
|
//#region ../../node_modules/.bun/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
4709
|
-
function
|
|
4729
|
+
function us(e) {
|
|
4710
4730
|
let t = O(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = h(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Mr(n) !== a || Mr(r) !== o;
|
|
4711
4731
|
return s && (n = a, r = o), {
|
|
4712
4732
|
width: n,
|
|
@@ -4714,38 +4734,38 @@ function cs(e) {
|
|
|
4714
4734
|
$: s
|
|
4715
4735
|
};
|
|
4716
4736
|
}
|
|
4717
|
-
function
|
|
4737
|
+
function ds(e) {
|
|
4718
4738
|
return m(e) ? e : e.contextElement;
|
|
4719
4739
|
}
|
|
4720
|
-
function
|
|
4721
|
-
let t =
|
|
4740
|
+
function fs(e) {
|
|
4741
|
+
let t = ds(e);
|
|
4722
4742
|
if (!h(t)) return Pr(1);
|
|
4723
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
4743
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = us(t), o = (a ? Mr(n.width) : n.width) / r, s = (a ? Mr(n.height) : n.height) / i;
|
|
4724
4744
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
4725
4745
|
x: o,
|
|
4726
4746
|
y: s
|
|
4727
4747
|
};
|
|
4728
4748
|
}
|
|
4729
|
-
var
|
|
4730
|
-
function
|
|
4749
|
+
var ps = /*#__PURE__*/ Pr(0);
|
|
4750
|
+
function ms(e) {
|
|
4731
4751
|
let t = d(e);
|
|
4732
|
-
return !E() || !t.visualViewport ?
|
|
4752
|
+
return !E() || !t.visualViewport ? ps : {
|
|
4733
4753
|
x: t.visualViewport.offsetLeft,
|
|
4734
4754
|
y: t.visualViewport.offsetTop
|
|
4735
4755
|
};
|
|
4736
4756
|
}
|
|
4737
|
-
function
|
|
4757
|
+
function hs(e, t, n) {
|
|
4738
4758
|
return t === void 0 && (t = !1), !!n && t && n === d(e);
|
|
4739
4759
|
}
|
|
4740
|
-
function
|
|
4760
|
+
function gs(e, t, n, r) {
|
|
4741
4761
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4742
|
-
let i = e.getBoundingClientRect(), a =
|
|
4743
|
-
t && (r ? m(r) && (o =
|
|
4744
|
-
let s =
|
|
4762
|
+
let i = e.getBoundingClientRect(), a = ds(e), o = Pr(1);
|
|
4763
|
+
t && (r ? m(r) && (o = fs(r)) : o = fs(e));
|
|
4764
|
+
let s = hs(a, n, r) ? ms(a) : Pr(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, f = i.height / o.y;
|
|
4745
4765
|
if (a && r) {
|
|
4746
4766
|
let e = d(a), t = m(r) ? d(r) : r, n = e, i = N(n);
|
|
4747
4767
|
for (; i && t !== n;) {
|
|
4748
|
-
let e =
|
|
4768
|
+
let e = fs(i), t = i.getBoundingClientRect(), r = O(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
4749
4769
|
c *= e.x, l *= e.y, u *= e.x, f *= e.y, c += a, l += o, n = d(i), i = N(n);
|
|
4750
4770
|
}
|
|
4751
4771
|
}
|
|
@@ -4756,18 +4776,18 @@ function ms(e, t, n, r) {
|
|
|
4756
4776
|
y: l
|
|
4757
4777
|
});
|
|
4758
4778
|
}
|
|
4759
|
-
function
|
|
4779
|
+
function _s(e, t) {
|
|
4760
4780
|
let n = k(e).scrollLeft;
|
|
4761
|
-
return t ? t.left + n :
|
|
4781
|
+
return t ? t.left + n : gs(f(e)).left + n;
|
|
4762
4782
|
}
|
|
4763
|
-
function
|
|
4783
|
+
function vs(e, t) {
|
|
4764
4784
|
let n = e.getBoundingClientRect();
|
|
4765
4785
|
return {
|
|
4766
|
-
x: n.left + t.scrollLeft -
|
|
4786
|
+
x: n.left + t.scrollLeft - _s(e, n),
|
|
4767
4787
|
y: n.top + t.scrollTop
|
|
4768
4788
|
};
|
|
4769
4789
|
}
|
|
4770
|
-
function
|
|
4790
|
+
function ys(e) {
|
|
4771
4791
|
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = f(r), s = t ? y(t.floating) : !1;
|
|
4772
4792
|
if (r === o || s && a) return n;
|
|
4773
4793
|
let c = {
|
|
@@ -4775,10 +4795,10 @@ function _s(e) {
|
|
|
4775
4795
|
scrollTop: 0
|
|
4776
4796
|
}, l = Pr(1), d = Pr(0), p = h(r);
|
|
4777
4797
|
if ((p || !a) && ((u(r) !== "body" || _(o)) && (c = k(r)), p)) {
|
|
4778
|
-
let e =
|
|
4779
|
-
l =
|
|
4798
|
+
let e = gs(r);
|
|
4799
|
+
l = fs(r), d.x = e.x + r.clientLeft, d.y = e.y + r.clientTop;
|
|
4780
4800
|
}
|
|
4781
|
-
let m = o && !p && !a ?
|
|
4801
|
+
let m = o && !p && !a ? vs(o, c) : Pr(0);
|
|
4782
4802
|
return {
|
|
4783
4803
|
width: n.width * l.x,
|
|
4784
4804
|
height: n.height * l.y,
|
|
@@ -4786,11 +4806,11 @@ function _s(e) {
|
|
|
4786
4806
|
y: n.y * l.y - c.scrollTop * l.y + d.y + m.y
|
|
4787
4807
|
};
|
|
4788
4808
|
}
|
|
4789
|
-
function
|
|
4809
|
+
function bs(e) {
|
|
4790
4810
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
4791
4811
|
}
|
|
4792
|
-
function
|
|
4793
|
-
let t = k(e), n = e.ownerDocument.body, r = jr(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = jr(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft +
|
|
4812
|
+
function xs(e) {
|
|
4813
|
+
let t = k(e), n = e.ownerDocument.body, r = jr(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = jr(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + _s(e), o = -t.scrollTop;
|
|
4794
4814
|
return O(n).direction === "rtl" && (a += jr(e.clientWidth, n.clientWidth) - r), {
|
|
4795
4815
|
width: r,
|
|
4796
4816
|
height: i,
|
|
@@ -4798,17 +4818,17 @@ function ys(e) {
|
|
|
4798
4818
|
y: o
|
|
4799
4819
|
};
|
|
4800
4820
|
}
|
|
4801
|
-
var
|
|
4802
|
-
function
|
|
4821
|
+
var Ss = 25;
|
|
4822
|
+
function Cs(e, t, n) {
|
|
4803
4823
|
n === void 0 && (n = "viewport");
|
|
4804
4824
|
let r = n === "layoutViewport", i = d(e), a = f(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
4805
4825
|
if (o) {
|
|
4806
4826
|
let e = !E() || t === "fixed";
|
|
4807
4827
|
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
4808
4828
|
}
|
|
4809
|
-
if (
|
|
4829
|
+
if (_s(a) <= 0) {
|
|
4810
4830
|
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
4811
|
-
o <=
|
|
4831
|
+
o <= Ss && (s -= o);
|
|
4812
4832
|
}
|
|
4813
4833
|
return {
|
|
4814
4834
|
width: s,
|
|
@@ -4817,8 +4837,8 @@ function xs(e, t, n) {
|
|
|
4817
4837
|
y: u
|
|
4818
4838
|
};
|
|
4819
4839
|
}
|
|
4820
|
-
function
|
|
4821
|
-
let n =
|
|
4840
|
+
function ws(e, t) {
|
|
4841
|
+
let n = gs(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = fs(e);
|
|
4822
4842
|
return {
|
|
4823
4843
|
width: e.clientWidth * a.x,
|
|
4824
4844
|
height: e.clientHeight * a.y,
|
|
@@ -4826,13 +4846,13 @@ function Ss(e, t) {
|
|
|
4826
4846
|
y: r * a.y
|
|
4827
4847
|
};
|
|
4828
4848
|
}
|
|
4829
|
-
function
|
|
4849
|
+
function Ts(e, t, n) {
|
|
4830
4850
|
let r;
|
|
4831
|
-
if (t === "viewport" || t === "layoutViewport") r =
|
|
4832
|
-
else if (t === "document") r =
|
|
4833
|
-
else if (m(t)) r =
|
|
4851
|
+
if (t === "viewport" || t === "layoutViewport") r = Cs(e, n, t);
|
|
4852
|
+
else if (t === "document") r = xs(f(e));
|
|
4853
|
+
else if (m(t)) r = ws(t, n);
|
|
4834
4854
|
else {
|
|
4835
|
-
let n =
|
|
4855
|
+
let n = ms(e);
|
|
4836
4856
|
r = {
|
|
4837
4857
|
x: t.x - n.x,
|
|
4838
4858
|
y: t.y - n.y,
|
|
@@ -4842,7 +4862,7 @@ function Cs(e, t, n) {
|
|
|
4842
4862
|
}
|
|
4843
4863
|
return ni(r);
|
|
4844
4864
|
}
|
|
4845
|
-
function
|
|
4865
|
+
function Es(e, t) {
|
|
4846
4866
|
let n = t.get(e);
|
|
4847
4867
|
if (n) return n;
|
|
4848
4868
|
let r = M(e, [], !1).filter((e) => m(e) && u(e) !== "body"), i = null, a = O(e).position === "fixed", o = a ? A(e) : e;
|
|
@@ -4852,10 +4872,10 @@ function ws(e, t) {
|
|
|
4852
4872
|
}
|
|
4853
4873
|
return t.set(e, r), r;
|
|
4854
4874
|
}
|
|
4855
|
-
function
|
|
4856
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? y(t) ? [] :
|
|
4875
|
+
function Ds(e) {
|
|
4876
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? y(t) ? [] : Es(t, this._c) : [].concat(n), r], o = Ts(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
4857
4877
|
for (let e = 1; e < a.length; e++) {
|
|
4858
|
-
let n =
|
|
4878
|
+
let n = Ts(t, a[e], i);
|
|
4859
4879
|
s = jr(n.top, s), c = Ar(n.right, c), l = Ar(n.bottom, l), u = jr(n.left, u);
|
|
4860
4880
|
}
|
|
4861
4881
|
return {
|
|
@@ -4865,24 +4885,24 @@ function Ts(e) {
|
|
|
4865
4885
|
y: s
|
|
4866
4886
|
};
|
|
4867
4887
|
}
|
|
4868
|
-
function
|
|
4869
|
-
let { width: t, height: n } =
|
|
4888
|
+
function Os(e) {
|
|
4889
|
+
let { width: t, height: n } = us(e);
|
|
4870
4890
|
return {
|
|
4871
4891
|
width: t,
|
|
4872
4892
|
height: n
|
|
4873
4893
|
};
|
|
4874
4894
|
}
|
|
4875
|
-
function
|
|
4876
|
-
let r = h(t), i = f(t), a = n === "fixed", o =
|
|
4895
|
+
function ks(e, t, n) {
|
|
4896
|
+
let r = h(t), i = f(t), a = n === "fixed", o = gs(e, !0, a, t), s = {
|
|
4877
4897
|
scrollLeft: 0,
|
|
4878
4898
|
scrollTop: 0
|
|
4879
4899
|
}, c = Pr(0);
|
|
4880
4900
|
if ((r || !a) && ((u(t) !== "body" || _(i)) && (s = k(t)), r)) {
|
|
4881
|
-
let e =
|
|
4901
|
+
let e = gs(t, !0, a, t);
|
|
4882
4902
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
4883
4903
|
}
|
|
4884
|
-
!r && i && (c.x =
|
|
4885
|
-
let l = i && !r && !a ?
|
|
4904
|
+
!r && i && (c.x = _s(i));
|
|
4905
|
+
let l = i && !r && !a ? vs(i, s) : Pr(0);
|
|
4886
4906
|
return {
|
|
4887
4907
|
x: o.left + s.scrollLeft - c.x - l.x,
|
|
4888
4908
|
y: o.top + s.scrollTop - c.y - l.y,
|
|
@@ -4890,34 +4910,34 @@ function Ds(e, t, n) {
|
|
|
4890
4910
|
height: o.height
|
|
4891
4911
|
};
|
|
4892
4912
|
}
|
|
4893
|
-
function
|
|
4913
|
+
function As(e) {
|
|
4894
4914
|
return O(e).position === "static";
|
|
4895
4915
|
}
|
|
4896
|
-
function
|
|
4916
|
+
function js(e, t) {
|
|
4897
4917
|
if (!h(e) || O(e).position === "fixed") return null;
|
|
4898
4918
|
if (t) return t(e);
|
|
4899
4919
|
let n = e.offsetParent;
|
|
4900
4920
|
return f(e) === n && (n = n.ownerDocument.body), n;
|
|
4901
4921
|
}
|
|
4902
|
-
function
|
|
4922
|
+
function Ms(e, t) {
|
|
4903
4923
|
let n = d(e);
|
|
4904
4924
|
if (y(e)) return n;
|
|
4905
4925
|
if (!h(e)) {
|
|
4906
4926
|
let t = A(e);
|
|
4907
4927
|
for (; t && !D(t);) {
|
|
4908
|
-
if (m(t) && !
|
|
4928
|
+
if (m(t) && !As(t)) return t;
|
|
4909
4929
|
t = A(t);
|
|
4910
4930
|
}
|
|
4911
4931
|
return n;
|
|
4912
4932
|
}
|
|
4913
|
-
let r =
|
|
4914
|
-
for (; r && v(r) &&
|
|
4915
|
-
return r && D(r) &&
|
|
4933
|
+
let r = js(e, t);
|
|
4934
|
+
for (; r && v(r) && As(r);) r = js(r, t);
|
|
4935
|
+
return r && D(r) && As(r) && !w(r) ? n : r || T(e) || n;
|
|
4916
4936
|
}
|
|
4917
|
-
var
|
|
4918
|
-
let t = this.getOffsetParent ||
|
|
4937
|
+
var Ns = async function(e) {
|
|
4938
|
+
let t = this.getOffsetParent || Ms, n = this.getDimensions, r = await n(e.floating);
|
|
4919
4939
|
return {
|
|
4920
|
-
reference:
|
|
4940
|
+
reference: ks(e.reference, await t(e.floating), e.strategy),
|
|
4921
4941
|
floating: {
|
|
4922
4942
|
x: 0,
|
|
4923
4943
|
y: 0,
|
|
@@ -4926,25 +4946,25 @@ var js = async function(e) {
|
|
|
4926
4946
|
}
|
|
4927
4947
|
};
|
|
4928
4948
|
};
|
|
4929
|
-
function
|
|
4949
|
+
function Ps(e) {
|
|
4930
4950
|
return O(e).direction === "rtl";
|
|
4931
4951
|
}
|
|
4932
|
-
var
|
|
4933
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4952
|
+
var Fs = {
|
|
4953
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ys,
|
|
4934
4954
|
getDocumentElement: f,
|
|
4935
|
-
getClippingRect:
|
|
4936
|
-
getOffsetParent:
|
|
4937
|
-
getElementRects:
|
|
4938
|
-
getClientRects:
|
|
4939
|
-
getDimensions:
|
|
4940
|
-
getScale:
|
|
4955
|
+
getClippingRect: Ds,
|
|
4956
|
+
getOffsetParent: Ms,
|
|
4957
|
+
getElementRects: Ns,
|
|
4958
|
+
getClientRects: bs,
|
|
4959
|
+
getDimensions: Os,
|
|
4960
|
+
getScale: fs,
|
|
4941
4961
|
isElement: m,
|
|
4942
|
-
isRTL:
|
|
4962
|
+
isRTL: Ps
|
|
4943
4963
|
};
|
|
4944
|
-
function
|
|
4964
|
+
function Is(e, t) {
|
|
4945
4965
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
4946
4966
|
}
|
|
4947
|
-
function
|
|
4967
|
+
function Ls(e, t, n) {
|
|
4948
4968
|
let r = null, i, a = f(e);
|
|
4949
4969
|
function o() {
|
|
4950
4970
|
var e;
|
|
@@ -4960,7 +4980,7 @@ function Fs(e, t, n) {
|
|
|
4960
4980
|
}, y = !0;
|
|
4961
4981
|
function b(t) {
|
|
4962
4982
|
let n = t[0].intersectionRatio;
|
|
4963
|
-
if (!
|
|
4983
|
+
if (!Is(l, e.getBoundingClientRect())) return s();
|
|
4964
4984
|
if (n !== c) {
|
|
4965
4985
|
if (!y) return s();
|
|
4966
4986
|
n ? s(!1, n) : i = setTimeout(() => {
|
|
@@ -4984,13 +5004,13 @@ function Fs(e, t, n) {
|
|
|
4984
5004
|
c.removeEventListener("resize", l), o();
|
|
4985
5005
|
};
|
|
4986
5006
|
}
|
|
4987
|
-
function
|
|
5007
|
+
function Rs(e, t, n, r) {
|
|
4988
5008
|
r === void 0 && (r = {});
|
|
4989
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
5009
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ds(e), u = i || a ? [...l ? M(l) : [], ...t ? M(t) : []] : [];
|
|
4990
5010
|
u.forEach((e) => {
|
|
4991
5011
|
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
4992
5012
|
});
|
|
4993
|
-
let d = l && s ?
|
|
5013
|
+
let d = l && s ? Ls(l, n, a) : null, f = -1, p = null;
|
|
4994
5014
|
o && (p = new ResizeObserver((e) => {
|
|
4995
5015
|
let [r] = e;
|
|
4996
5016
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -4998,11 +5018,11 @@ function Is(e, t, n, r) {
|
|
|
4998
5018
|
(e = p) == null || e.observe(t);
|
|
4999
5019
|
})), n();
|
|
5000
5020
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
5001
|
-
let m, h = c ?
|
|
5021
|
+
let m, h = c ? gs(e) : null;
|
|
5002
5022
|
c && g();
|
|
5003
5023
|
function g() {
|
|
5004
|
-
let t =
|
|
5005
|
-
h && !
|
|
5024
|
+
let t = gs(e);
|
|
5025
|
+
h && !Is(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
5006
5026
|
}
|
|
5007
5027
|
return n(), () => {
|
|
5008
5028
|
var e;
|
|
@@ -5011,18 +5031,18 @@ function Is(e, t, n, r) {
|
|
|
5011
5031
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
5012
5032
|
};
|
|
5013
5033
|
}
|
|
5014
|
-
var
|
|
5034
|
+
var zs = os, Bs = ss, Vs = es, Hs = ls, Us = rs, Ws = cs, Gs = (e, t, n) => {
|
|
5015
5035
|
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
5016
|
-
...
|
|
5036
|
+
...Fs,
|
|
5017
5037
|
...i.platform,
|
|
5018
5038
|
_c: r
|
|
5019
5039
|
};
|
|
5020
|
-
return
|
|
5040
|
+
return $o(e, t, {
|
|
5021
5041
|
...i,
|
|
5022
5042
|
platform: a
|
|
5023
5043
|
});
|
|
5024
|
-
},
|
|
5025
|
-
function
|
|
5044
|
+
}, Ks = typeof document < "u" ? a : function() {};
|
|
5045
|
+
function qs(e, t) {
|
|
5026
5046
|
if (e === t) return !0;
|
|
5027
5047
|
if (typeof e != typeof t) return !1;
|
|
5028
5048
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -5030,33 +5050,33 @@ function Gs(e, t) {
|
|
|
5030
5050
|
if (e && t && typeof e == "object") {
|
|
5031
5051
|
if (Array.isArray(e)) {
|
|
5032
5052
|
if (n = e.length, n !== t.length) return !1;
|
|
5033
|
-
for (r = n; r-- !== 0;) if (!
|
|
5053
|
+
for (r = n; r-- !== 0;) if (!qs(e[r], t[r])) return !1;
|
|
5034
5054
|
return !0;
|
|
5035
5055
|
}
|
|
5036
5056
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
5037
5057
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
5038
5058
|
for (r = n; r-- !== 0;) {
|
|
5039
5059
|
let n = i[r];
|
|
5040
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
5060
|
+
if (!(n === "_owner" && e.$$typeof) && !qs(e[n], t[n])) return !1;
|
|
5041
5061
|
}
|
|
5042
5062
|
return !0;
|
|
5043
5063
|
}
|
|
5044
5064
|
return e !== e && t !== t;
|
|
5045
5065
|
}
|
|
5046
|
-
function
|
|
5066
|
+
function Js(e) {
|
|
5047
5067
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5048
5068
|
}
|
|
5049
|
-
function
|
|
5050
|
-
let n =
|
|
5069
|
+
function Ys(e, t) {
|
|
5070
|
+
let n = Js(e);
|
|
5051
5071
|
return Math.round(t * n) / n;
|
|
5052
5072
|
}
|
|
5053
|
-
function
|
|
5073
|
+
function Xs(e) {
|
|
5054
5074
|
let t = n.useRef(e);
|
|
5055
|
-
return
|
|
5075
|
+
return Ks(() => {
|
|
5056
5076
|
t.current = e;
|
|
5057
5077
|
}), t;
|
|
5058
5078
|
}
|
|
5059
|
-
function
|
|
5079
|
+
function Zs(e) {
|
|
5060
5080
|
e === void 0 && (e = {});
|
|
5061
5081
|
let { placement: t = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: l = !0, whileElementsMounted: u, open: d } = e, [f, p] = n.useState({
|
|
5062
5082
|
x: 0,
|
|
@@ -5066,24 +5086,24 @@ function Ys(e) {
|
|
|
5066
5086
|
middlewareData: {},
|
|
5067
5087
|
isPositioned: !1
|
|
5068
5088
|
}), [m, h] = n.useState(i);
|
|
5069
|
-
|
|
5089
|
+
qs(m, i) || h(i);
|
|
5070
5090
|
let [g, _] = n.useState(null), [v, y] = n.useState(null), b = n.useCallback((e) => {
|
|
5071
5091
|
e !== w.current && (w.current = e, _(e));
|
|
5072
5092
|
}, []), x = n.useCallback((e) => {
|
|
5073
5093
|
e !== T.current && (T.current = e, y(e));
|
|
5074
|
-
}, []), S = o || g, C = s || v, w = n.useRef(null), T = n.useRef(null), E = n.useRef(f), D = u != null, O =
|
|
5094
|
+
}, []), S = o || g, C = s || v, w = n.useRef(null), T = n.useRef(null), E = n.useRef(f), D = u != null, O = Xs(u), k = Xs(a), A = Xs(d), j = n.useCallback(() => {
|
|
5075
5095
|
if (!w.current || !T.current) return;
|
|
5076
5096
|
let e = {
|
|
5077
5097
|
placement: t,
|
|
5078
5098
|
strategy: r,
|
|
5079
5099
|
middleware: m
|
|
5080
5100
|
};
|
|
5081
|
-
k.current && (e.platform = k.current),
|
|
5101
|
+
k.current && (e.platform = k.current), Gs(w.current, T.current, e).then((e) => {
|
|
5082
5102
|
let t = {
|
|
5083
5103
|
...e,
|
|
5084
5104
|
isPositioned: A.current !== !1
|
|
5085
5105
|
};
|
|
5086
|
-
M.current && !
|
|
5106
|
+
M.current && !qs(E.current, t) && (E.current = t, c.flushSync(() => {
|
|
5087
5107
|
p(t);
|
|
5088
5108
|
}));
|
|
5089
5109
|
});
|
|
@@ -5094,16 +5114,16 @@ function Ys(e) {
|
|
|
5094
5114
|
k,
|
|
5095
5115
|
A
|
|
5096
5116
|
]);
|
|
5097
|
-
|
|
5117
|
+
Ks(() => {
|
|
5098
5118
|
d === !1 && E.current.isPositioned && (E.current.isPositioned = !1, p((e) => ({
|
|
5099
5119
|
...e,
|
|
5100
5120
|
isPositioned: !1
|
|
5101
5121
|
})));
|
|
5102
5122
|
}, [d]);
|
|
5103
5123
|
let M = n.useRef(!1);
|
|
5104
|
-
|
|
5124
|
+
Ks(() => (M.current = !0, () => {
|
|
5105
5125
|
M.current = !1;
|
|
5106
|
-
}), []),
|
|
5126
|
+
}), []), Ks(() => {
|
|
5107
5127
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
5108
5128
|
if (O.current) return O.current(S, C, j);
|
|
5109
5129
|
j();
|
|
@@ -5130,11 +5150,11 @@ function Ys(e) {
|
|
|
5130
5150
|
top: 0
|
|
5131
5151
|
};
|
|
5132
5152
|
if (!P.floating) return e;
|
|
5133
|
-
let t =
|
|
5153
|
+
let t = Ys(P.floating, f.x), n = Ys(P.floating, f.y);
|
|
5134
5154
|
return l ? {
|
|
5135
5155
|
...e,
|
|
5136
5156
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
5137
|
-
...
|
|
5157
|
+
...Js(P.floating) >= 1.5 && { willChange: "transform" }
|
|
5138
5158
|
} : {
|
|
5139
5159
|
position: r,
|
|
5140
5160
|
left: t,
|
|
@@ -5161,39 +5181,39 @@ function Ys(e) {
|
|
|
5161
5181
|
F
|
|
5162
5182
|
]);
|
|
5163
5183
|
}
|
|
5164
|
-
var
|
|
5165
|
-
let n =
|
|
5184
|
+
var Qs = (e, t) => {
|
|
5185
|
+
let n = zs(e);
|
|
5166
5186
|
return {
|
|
5167
5187
|
name: n.name,
|
|
5168
5188
|
fn: n.fn,
|
|
5169
5189
|
options: [e, t]
|
|
5170
5190
|
};
|
|
5171
|
-
},
|
|
5172
|
-
let n =
|
|
5191
|
+
}, $s = (e, t) => {
|
|
5192
|
+
let n = Bs(e);
|
|
5173
5193
|
return {
|
|
5174
5194
|
name: n.name,
|
|
5175
5195
|
fn: n.fn,
|
|
5176
5196
|
options: [e, t]
|
|
5177
5197
|
};
|
|
5178
|
-
},
|
|
5179
|
-
fn:
|
|
5198
|
+
}, ec = (e, t) => ({
|
|
5199
|
+
fn: Ws(e).fn,
|
|
5180
5200
|
options: [e, t]
|
|
5181
|
-
}),
|
|
5182
|
-
let n =
|
|
5201
|
+
}), tc = (e, t) => {
|
|
5202
|
+
let n = Vs(e);
|
|
5183
5203
|
return {
|
|
5184
5204
|
name: n.name,
|
|
5185
5205
|
fn: n.fn,
|
|
5186
5206
|
options: [e, t]
|
|
5187
5207
|
};
|
|
5188
|
-
},
|
|
5189
|
-
let n =
|
|
5208
|
+
}, nc = (e, t) => {
|
|
5209
|
+
let n = Hs(e);
|
|
5190
5210
|
return {
|
|
5191
5211
|
name: n.name,
|
|
5192
5212
|
fn: n.fn,
|
|
5193
5213
|
options: [e, t]
|
|
5194
5214
|
};
|
|
5195
|
-
},
|
|
5196
|
-
let n =
|
|
5215
|
+
}, rc = (e, t) => {
|
|
5216
|
+
let n = Us(e);
|
|
5197
5217
|
return {
|
|
5198
5218
|
name: n.name,
|
|
5199
5219
|
fn: n.fn,
|
|
@@ -5210,10 +5230,10 @@ var Xs = (e, t) => {
|
|
|
5210
5230
|
else if (e) s = e;
|
|
5211
5231
|
else throw Error("Missing arguments");
|
|
5212
5232
|
return s;
|
|
5213
|
-
},
|
|
5233
|
+
}, ic = /* @__PURE__ */ t(((e, t) => {
|
|
5214
5234
|
t.exports = { ...n };
|
|
5215
|
-
})),
|
|
5216
|
-
var t =
|
|
5235
|
+
})), ac = /* @__PURE__ */ t(((e) => {
|
|
5236
|
+
var t = ic();
|
|
5217
5237
|
function n(e, t) {
|
|
5218
5238
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
5219
5239
|
}
|
|
@@ -5250,7 +5270,7 @@ var Xs = (e, t) => {
|
|
|
5250
5270
|
}
|
|
5251
5271
|
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
|
|
5252
5272
|
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
|
|
5253
|
-
})),
|
|
5273
|
+
})), oc = /* @__PURE__ */ t(((e) => {
|
|
5254
5274
|
process.env.NODE_ENV !== "production" && (function() {
|
|
5255
5275
|
function t(e, t) {
|
|
5256
5276
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
@@ -5293,13 +5313,13 @@ var Xs = (e, t) => {
|
|
|
5293
5313
|
return t();
|
|
5294
5314
|
}
|
|
5295
5315
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
5296
|
-
var a =
|
|
5316
|
+
var a = ic(), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, d = !1, f = !1, p = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
|
|
5297
5317
|
e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? p : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
5298
5318
|
})();
|
|
5299
|
-
})),
|
|
5300
|
-
t.exports = process.env.NODE_ENV === "production" ?
|
|
5301
|
-
})),
|
|
5302
|
-
var t =
|
|
5319
|
+
})), sc = /* @__PURE__ */ t(((e, t) => {
|
|
5320
|
+
t.exports = process.env.NODE_ENV === "production" ? ac() : oc();
|
|
5321
|
+
})), cc = /* @__PURE__ */ t(((e) => {
|
|
5322
|
+
var t = ic(), n = sc();
|
|
5303
5323
|
function r(e, t) {
|
|
5304
5324
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
5305
5325
|
}
|
|
@@ -5343,13 +5363,13 @@ var Xs = (e, t) => {
|
|
|
5343
5363
|
f.hasValue = !0, f.value = p;
|
|
5344
5364
|
}, [p]), l(p), p;
|
|
5345
5365
|
};
|
|
5346
|
-
})),
|
|
5366
|
+
})), lc = /* @__PURE__ */ t(((e) => {
|
|
5347
5367
|
process.env.NODE_ENV !== "production" && (function() {
|
|
5348
5368
|
function t(e, t) {
|
|
5349
5369
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
5350
5370
|
}
|
|
5351
5371
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
5352
|
-
var n =
|
|
5372
|
+
var n = ic(), r = sc(), i = typeof Object.is == "function" ? Object.is : t, a = r.useSyncExternalStore, o = n.useRef, s = n.useEffect, c = n.useMemo, l = n.useDebugValue;
|
|
5353
5373
|
e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
|
|
5354
5374
|
var d = o(null);
|
|
5355
5375
|
if (d.current === null) {
|
|
@@ -5390,44 +5410,44 @@ var Xs = (e, t) => {
|
|
|
5390
5410
|
}, [p]), l(p), p;
|
|
5391
5411
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
5392
5412
|
})();
|
|
5393
|
-
})),
|
|
5394
|
-
t.exports = process.env.NODE_ENV === "production" ?
|
|
5395
|
-
})),
|
|
5396
|
-
function
|
|
5397
|
-
return
|
|
5413
|
+
})), uc = /* @__PURE__ */ t(((e, t) => {
|
|
5414
|
+
t.exports = process.env.NODE_ENV === "production" ? cc() : lc();
|
|
5415
|
+
})), dc = sc(), fc = /* @__PURE__ */ e(uc()), pc = [], mc = void 0;
|
|
5416
|
+
function hc() {
|
|
5417
|
+
return mc;
|
|
5398
5418
|
}
|
|
5399
|
-
function
|
|
5400
|
-
|
|
5419
|
+
function gc(e) {
|
|
5420
|
+
pc.push(e);
|
|
5401
5421
|
}
|
|
5402
|
-
function
|
|
5422
|
+
function _c(e) {
|
|
5403
5423
|
let t = (t, n) => {
|
|
5404
|
-
let r = F(
|
|
5424
|
+
let r = F(yc).current, i;
|
|
5405
5425
|
try {
|
|
5406
|
-
|
|
5407
|
-
for (let e of
|
|
5426
|
+
mc = r;
|
|
5427
|
+
for (let e of pc) e.before(r);
|
|
5408
5428
|
i = e(t, n);
|
|
5409
|
-
for (let e of
|
|
5429
|
+
for (let e of pc) e.after(r);
|
|
5410
5430
|
r.didInitialize = !0;
|
|
5411
5431
|
} finally {
|
|
5412
|
-
|
|
5432
|
+
mc = void 0;
|
|
5413
5433
|
}
|
|
5414
5434
|
return i;
|
|
5415
5435
|
};
|
|
5416
5436
|
return t.displayName = e.displayName || e.name, t;
|
|
5417
5437
|
}
|
|
5418
|
-
function
|
|
5419
|
-
return /*#__PURE__*/ n.forwardRef(
|
|
5438
|
+
function vc(e) {
|
|
5439
|
+
return /*#__PURE__*/ n.forwardRef(_c(e));
|
|
5420
5440
|
}
|
|
5421
|
-
function
|
|
5441
|
+
function yc() {
|
|
5422
5442
|
return { didInitialize: !1 };
|
|
5423
5443
|
}
|
|
5424
5444
|
//#endregion
|
|
5425
5445
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/store/useStore.js
|
|
5426
|
-
var
|
|
5427
|
-
function
|
|
5428
|
-
return
|
|
5446
|
+
var bc = ke(19) ? Cc : wc;
|
|
5447
|
+
function xc(e, t, n, r, i) {
|
|
5448
|
+
return bc(e, t, n, r, i);
|
|
5429
5449
|
}
|
|
5430
|
-
function
|
|
5450
|
+
function Sc(e, t, r, i, a) {
|
|
5431
5451
|
let o = n.useCallback(() => t(e.getSnapshot(), r, i, a), [
|
|
5432
5452
|
e,
|
|
5433
5453
|
t,
|
|
@@ -5435,9 +5455,9 @@ function bc(e, t, r, i, a) {
|
|
|
5435
5455
|
i,
|
|
5436
5456
|
a
|
|
5437
5457
|
]);
|
|
5438
|
-
return (0,
|
|
5458
|
+
return (0, dc.useSyncExternalStore)(e.subscribe, o, o);
|
|
5439
5459
|
}
|
|
5440
|
-
|
|
5460
|
+
gc({
|
|
5441
5461
|
before(e) {
|
|
5442
5462
|
e.syncIndex = 0, e.didInitialize || (e.syncTick = 1, e.syncHooks = [], e.didChangeStore = !0, e.getSnapshot = () => {
|
|
5443
5463
|
let t = !1;
|
|
@@ -5457,12 +5477,12 @@ mc({
|
|
|
5457
5477
|
return () => {
|
|
5458
5478
|
for (let e of r) e();
|
|
5459
5479
|
};
|
|
5460
|
-
}), (0,
|
|
5480
|
+
}), (0, dc.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
|
|
5461
5481
|
}
|
|
5462
5482
|
});
|
|
5463
|
-
function
|
|
5464
|
-
let a =
|
|
5465
|
-
if (!a) return
|
|
5483
|
+
function Cc(e, t, n, r, i) {
|
|
5484
|
+
let a = hc();
|
|
5485
|
+
if (!a) return Sc(e, t, n, r, i);
|
|
5466
5486
|
let o = a.syncIndex;
|
|
5467
5487
|
a.syncIndex += 1;
|
|
5468
5488
|
let s;
|
|
@@ -5476,12 +5496,12 @@ function xc(e, t, n, r, i) {
|
|
|
5476
5496
|
didChange: !1
|
|
5477
5497
|
}, a.syncHooks.push(s)), s.value;
|
|
5478
5498
|
}
|
|
5479
|
-
function
|
|
5480
|
-
return (0,
|
|
5499
|
+
function wc(e, t, n, r, i) {
|
|
5500
|
+
return (0, fc.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
|
|
5481
5501
|
}
|
|
5482
5502
|
//#endregion
|
|
5483
5503
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/store/Store.js
|
|
5484
|
-
var
|
|
5504
|
+
var Tc = class {
|
|
5485
5505
|
constructor(e) {
|
|
5486
5506
|
this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
|
|
5487
5507
|
}
|
|
@@ -5518,9 +5538,9 @@ var Cc = class {
|
|
|
5518
5538
|
this.setState(e);
|
|
5519
5539
|
}
|
|
5520
5540
|
use(e, t, n, r) {
|
|
5521
|
-
return
|
|
5541
|
+
return xc(this, e, t, n, r);
|
|
5522
5542
|
}
|
|
5523
|
-
},
|
|
5543
|
+
}, Ec = class extends Tc {
|
|
5524
5544
|
constructor(e, t = {}, n) {
|
|
5525
5545
|
super(e), this.context = t, this.selectors = n;
|
|
5526
5546
|
}
|
|
@@ -5574,7 +5594,7 @@ var Cc = class {
|
|
|
5574
5594
|
return i(this.state, t, n, r);
|
|
5575
5595
|
}
|
|
5576
5596
|
useState(e, t, r, i) {
|
|
5577
|
-
return n.useDebugValue(e),
|
|
5597
|
+
return n.useDebugValue(e), xc(this, this.selectors[e], t, r, i);
|
|
5578
5598
|
}
|
|
5579
5599
|
useContextCallback(e, t) {
|
|
5580
5600
|
n.useDebugValue(e);
|
|
@@ -5599,14 +5619,14 @@ var Cc = class {
|
|
|
5599
5619
|
}
|
|
5600
5620
|
});
|
|
5601
5621
|
}
|
|
5602
|
-
},
|
|
5622
|
+
}, Dc = {
|
|
5603
5623
|
open: $((e) => e.open),
|
|
5604
5624
|
transitionStatus: $((e) => e.transitionStatus),
|
|
5605
5625
|
domReferenceElement: $((e) => e.domReferenceElement),
|
|
5606
5626
|
referenceElement: $((e) => e.positionReference ?? e.referenceElement),
|
|
5607
5627
|
floatingElement: $((e) => e.floatingElement),
|
|
5608
5628
|
floatingId: $((e) => e.floatingId)
|
|
5609
|
-
},
|
|
5629
|
+
}, Oc = class extends Ec {
|
|
5610
5630
|
constructor(e) {
|
|
5611
5631
|
let { syncOnly: t, nested: n, onOpenChange: r, triggerElements: i, ...a } = e;
|
|
5612
5632
|
super({
|
|
@@ -5616,10 +5636,10 @@ var Cc = class {
|
|
|
5616
5636
|
}, {
|
|
5617
5637
|
onOpenChange: r,
|
|
5618
5638
|
dataRef: { current: {} },
|
|
5619
|
-
events:
|
|
5639
|
+
events: Do(),
|
|
5620
5640
|
nested: n,
|
|
5621
5641
|
triggerElements: i
|
|
5622
|
-
},
|
|
5642
|
+
}, Dc), this.syncOnly = t;
|
|
5623
5643
|
}
|
|
5624
5644
|
syncOpenEvent = (e, t) => {
|
|
5625
5645
|
(!e || !this.state.open || t != null && Or(t)) && (this.context.dataRef.current.openEvent = e ? t : void 0);
|
|
@@ -5645,7 +5665,7 @@ var Cc = class {
|
|
|
5645
5665
|
};
|
|
5646
5666
|
//#endregion
|
|
5647
5667
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.js
|
|
5648
|
-
function
|
|
5668
|
+
function kc(e, t) {
|
|
5649
5669
|
let r = n.useRef(null), i = n.useRef(null);
|
|
5650
5670
|
return n.useCallback((n) => {
|
|
5651
5671
|
if (e !== void 0) {
|
|
@@ -5657,8 +5677,8 @@ function Dc(e, t) {
|
|
|
5657
5677
|
}
|
|
5658
5678
|
}, [t, e]);
|
|
5659
5679
|
}
|
|
5660
|
-
function
|
|
5661
|
-
let i = n.useState("isMountedByTrigger", e), a =
|
|
5680
|
+
function Ac(e, t, n, r) {
|
|
5681
|
+
let i = n.useState("isMountedByTrigger", e), a = kc(e, n), o = R((t) => {
|
|
5662
5682
|
if (a(t), !t || !n.select("open")) return;
|
|
5663
5683
|
let i = n.select("activeTriggerId");
|
|
5664
5684
|
if (i === e) {
|
|
@@ -5689,7 +5709,7 @@ function Oc(e, t, n, r) {
|
|
|
5689
5709
|
isMountedByThisTrigger: i
|
|
5690
5710
|
};
|
|
5691
5711
|
}
|
|
5692
|
-
function
|
|
5712
|
+
function jc(e) {
|
|
5693
5713
|
let t = e.useState("open");
|
|
5694
5714
|
U(() => {
|
|
5695
5715
|
if (t && !e.select("activeTriggerId") && e.context.triggerElements.size === 1) {
|
|
@@ -5704,7 +5724,7 @@ function kc(e) {
|
|
|
5704
5724
|
}
|
|
5705
5725
|
}, [t, e]);
|
|
5706
5726
|
}
|
|
5707
|
-
function
|
|
5727
|
+
function Mc(e, t, n) {
|
|
5708
5728
|
let { mounted: r, setMounted: i, transitionStatus: a } = ra(e);
|
|
5709
5729
|
t.useSyncedValues({
|
|
5710
5730
|
mounted: r,
|
|
@@ -5731,7 +5751,7 @@ function Ac(e, t, n) {
|
|
|
5731
5751
|
}
|
|
5732
5752
|
//#endregion
|
|
5733
5753
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap.js
|
|
5734
|
-
var
|
|
5754
|
+
var Nc = class {
|
|
5735
5755
|
constructor() {
|
|
5736
5756
|
this.elementsSet = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
|
|
5737
5757
|
}
|
|
@@ -5765,13 +5785,13 @@ var jc = class {
|
|
|
5765
5785
|
};
|
|
5766
5786
|
//#endregion
|
|
5767
5787
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext.js
|
|
5768
|
-
function
|
|
5769
|
-
return new
|
|
5788
|
+
function Pc() {
|
|
5789
|
+
return new Oc({
|
|
5770
5790
|
open: !1,
|
|
5771
5791
|
transitionStatus: void 0,
|
|
5772
5792
|
floatingElement: null,
|
|
5773
5793
|
referenceElement: null,
|
|
5774
|
-
triggerElements: new
|
|
5794
|
+
triggerElements: new Nc(),
|
|
5775
5795
|
floatingId: "",
|
|
5776
5796
|
syncOnly: !1,
|
|
5777
5797
|
nested: !1,
|
|
@@ -5780,13 +5800,13 @@ function Mc() {
|
|
|
5780
5800
|
}
|
|
5781
5801
|
//#endregion
|
|
5782
5802
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popups/store.js
|
|
5783
|
-
function
|
|
5803
|
+
function Fc() {
|
|
5784
5804
|
return {
|
|
5785
5805
|
open: !1,
|
|
5786
5806
|
openProp: void 0,
|
|
5787
5807
|
mounted: !1,
|
|
5788
5808
|
transitionStatus: void 0,
|
|
5789
|
-
floatingRootContext:
|
|
5809
|
+
floatingRootContext: Pc(),
|
|
5790
5810
|
preventUnmountingOnClose: !1,
|
|
5791
5811
|
payload: void 0,
|
|
5792
5812
|
activeTriggerId: null,
|
|
@@ -5799,18 +5819,18 @@ function Nc() {
|
|
|
5799
5819
|
popupProps: Fe
|
|
5800
5820
|
};
|
|
5801
5821
|
}
|
|
5802
|
-
var
|
|
5822
|
+
var Ic = $((e) => e.triggerIdProp ?? e.activeTriggerId), Lc = {
|
|
5803
5823
|
open: $((e) => e.openProp ?? e.open),
|
|
5804
5824
|
mounted: $((e) => e.mounted),
|
|
5805
5825
|
transitionStatus: $((e) => e.transitionStatus),
|
|
5806
5826
|
floatingRootContext: $((e) => e.floatingRootContext),
|
|
5807
5827
|
preventUnmountingOnClose: $((e) => e.preventUnmountingOnClose),
|
|
5808
5828
|
payload: $((e) => e.payload),
|
|
5809
|
-
activeTriggerId:
|
|
5829
|
+
activeTriggerId: Ic,
|
|
5810
5830
|
activeTriggerElement: $((e) => e.mounted ? e.activeTriggerElement : null),
|
|
5811
|
-
isTriggerActive: $((e, t) => t !== void 0 &&
|
|
5812
|
-
isOpenedByTrigger: $((e, t) => t !== void 0 &&
|
|
5813
|
-
isMountedByTrigger: $((e, t) => t !== void 0 &&
|
|
5831
|
+
isTriggerActive: $((e, t) => t !== void 0 && Ic(e) === t),
|
|
5832
|
+
isOpenedByTrigger: $((e, t) => t !== void 0 && Ic(e) === t && e.open),
|
|
5833
|
+
isMountedByTrigger: $((e, t) => t !== void 0 && Ic(e) === t && e.mounted),
|
|
5814
5834
|
triggerProps: $((e, t) => t ? e.activeTriggerProps : e.inactiveTriggerProps),
|
|
5815
5835
|
popupProps: $((e) => e.popupProps),
|
|
5816
5836
|
popupElement: $((e) => e.popupElement),
|
|
@@ -5818,19 +5838,19 @@ var Pc = $((e) => e.triggerIdProp ?? e.activeTriggerId), Fc = {
|
|
|
5818
5838
|
};
|
|
5819
5839
|
//#endregion
|
|
5820
5840
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloatingRootContext.js
|
|
5821
|
-
function
|
|
5822
|
-
let { open: t = !1, onOpenChange: n, elements: r = {} } = e, i = Vn(), a =
|
|
5841
|
+
function Rc(e) {
|
|
5842
|
+
let { open: t = !1, onOpenChange: n, elements: r = {} } = e, i = Vn(), a = jo() != null;
|
|
5823
5843
|
if (process.env.NODE_ENV !== "production") {
|
|
5824
5844
|
let e = r.reference;
|
|
5825
5845
|
e && !m(e) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
|
|
5826
5846
|
}
|
|
5827
|
-
let o = F(() => new
|
|
5847
|
+
let o = F(() => new Oc({
|
|
5828
5848
|
open: t,
|
|
5829
5849
|
transitionStatus: void 0,
|
|
5830
5850
|
onOpenChange: n,
|
|
5831
5851
|
referenceElement: r.reference ?? null,
|
|
5832
5852
|
floatingElement: r.floating ?? null,
|
|
5833
|
-
triggerElements: new
|
|
5853
|
+
triggerElements: new Nc(),
|
|
5834
5854
|
floatingId: i,
|
|
5835
5855
|
syncOnly: !1,
|
|
5836
5856
|
nested: a
|
|
@@ -5851,16 +5871,16 @@ function Ic(e) {
|
|
|
5851
5871
|
}
|
|
5852
5872
|
//#endregion
|
|
5853
5873
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloating.js
|
|
5854
|
-
function
|
|
5855
|
-
let { nodeId: t, externalTree: r } = e, i =
|
|
5874
|
+
function zc(e = {}) {
|
|
5875
|
+
let { nodeId: t, externalTree: r } = e, i = Rc(e), a = e.rootContext || i, o = {
|
|
5856
5876
|
reference: a.useState("referenceElement"),
|
|
5857
5877
|
floating: a.useState("floatingElement"),
|
|
5858
5878
|
domReference: a.useState("domReferenceElement")
|
|
5859
|
-
}, [s, c] = n.useState(null), l = n.useRef(null), u =
|
|
5879
|
+
}, [s, c] = n.useState(null), l = n.useRef(null), u = Mo(r);
|
|
5860
5880
|
U(() => {
|
|
5861
5881
|
o.domReference && (l.current = o.domReference);
|
|
5862
5882
|
}, [o.domReference]);
|
|
5863
|
-
let d =
|
|
5883
|
+
let d = Zs({
|
|
5864
5884
|
...e,
|
|
5865
5885
|
elements: {
|
|
5866
5886
|
...o,
|
|
@@ -5935,8 +5955,8 @@ function Lc(e = {}) {
|
|
|
5935
5955
|
}
|
|
5936
5956
|
//#endregion
|
|
5937
5957
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js
|
|
5938
|
-
function
|
|
5939
|
-
let { popupStore: t, treatPopupAsFloatingElement: n = !1, onOpenChange: r } = e, i = Vn(), a =
|
|
5958
|
+
function Bc(e) {
|
|
5959
|
+
let { popupStore: t, treatPopupAsFloatingElement: n = !1, onOpenChange: r } = e, i = Vn(), a = jo() != null, o = t.useState("open"), s = t.useState("activeTriggerElement"), c = t.useState(n ? "popupElement" : "positionerElement"), l = t.context.triggerElements, u = F(() => new Oc({
|
|
5940
5960
|
open: o,
|
|
5941
5961
|
transitionStatus: void 0,
|
|
5942
5962
|
referenceElement: s,
|
|
@@ -5965,8 +5985,8 @@ function Rc(e) {
|
|
|
5965
5985
|
}
|
|
5966
5986
|
//#endregion
|
|
5967
5987
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useInteractions.js
|
|
5968
|
-
function
|
|
5969
|
-
let t = e.map((e) => e?.reference), r = e.map((e) => e?.floating), i = e.map((e) => e?.item), a = e.map((e) => e?.trigger), o = n.useCallback((t) =>
|
|
5988
|
+
function Vc(e = []) {
|
|
5989
|
+
let t = e.map((e) => e?.reference), r = e.map((e) => e?.floating), i = e.map((e) => e?.item), a = e.map((e) => e?.trigger), o = n.useCallback((t) => Hc(t, e, "reference"), t), s = n.useCallback((t) => Hc(t, e, "floating"), r), c = n.useCallback((t) => Hc(t, e, "item"), i), l = n.useCallback((t) => Hc(t, e, "trigger"), a);
|
|
5970
5990
|
return n.useMemo(() => ({
|
|
5971
5991
|
getReferenceProps: o,
|
|
5972
5992
|
getFloatingProps: s,
|
|
@@ -5979,17 +5999,17 @@ function zc(e = []) {
|
|
|
5979
5999
|
l
|
|
5980
6000
|
]);
|
|
5981
6001
|
}
|
|
5982
|
-
function
|
|
6002
|
+
function Hc(e, t, n) {
|
|
5983
6003
|
let r = /* @__PURE__ */ new Map(), i = n === "item", a = {};
|
|
5984
6004
|
n === "floating" && (a.tabIndex = -1, a[ar] = "");
|
|
5985
6005
|
for (let t in e) i && e && (t === "active" || t === "selected") || (a[t] = e[t]);
|
|
5986
6006
|
for (let o = 0; o < t.length; o += 1) {
|
|
5987
6007
|
let s, c = t[o]?.[n];
|
|
5988
|
-
s = typeof c == "function" ? e ? c(e) : null : c, s &&
|
|
6008
|
+
s = typeof c == "function" ? e ? c(e) : null : c, s && Uc(a, s, i, r);
|
|
5989
6009
|
}
|
|
5990
|
-
return
|
|
6010
|
+
return Uc(a, e, i, r), a;
|
|
5991
6011
|
}
|
|
5992
|
-
function
|
|
6012
|
+
function Uc(e, t, n, r) {
|
|
5993
6013
|
for (let i in t) {
|
|
5994
6014
|
let a = t[i];
|
|
5995
6015
|
n && (i === "active" || i === "selected") || (i.startsWith("on") ? (r.has(i) || r.set(i, []), typeof a == "function" && (r.get(i)?.push(a), e[i] = (...e) => r.get(i)?.map((t) => t(...e)).find((e) => e !== void 0))) : e[i] = a);
|
|
@@ -5997,38 +6017,38 @@ function Vc(e, t, n, r) {
|
|
|
5997
6017
|
}
|
|
5998
6018
|
//#endregion
|
|
5999
6019
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js
|
|
6000
|
-
var
|
|
6001
|
-
function
|
|
6020
|
+
var Wc = "Escape";
|
|
6021
|
+
function Gc(e, t, n) {
|
|
6002
6022
|
switch (e) {
|
|
6003
6023
|
case "vertical": return t;
|
|
6004
6024
|
case "horizontal": return n;
|
|
6005
6025
|
default: return t || n;
|
|
6006
6026
|
}
|
|
6007
6027
|
}
|
|
6008
|
-
function
|
|
6009
|
-
return
|
|
6028
|
+
function Kc(e, t) {
|
|
6029
|
+
return Gc(t, e === "ArrowUp" || e === "ArrowDown", e === "ArrowLeft" || e === "ArrowRight");
|
|
6010
6030
|
}
|
|
6011
|
-
function
|
|
6012
|
-
return
|
|
6031
|
+
function qc(e, t, n) {
|
|
6032
|
+
return Gc(t, e === "ArrowDown", n ? e === "ArrowLeft" : e === "ArrowRight") || e === "Enter" || e === " " || e === "";
|
|
6013
6033
|
}
|
|
6014
|
-
function
|
|
6015
|
-
return
|
|
6034
|
+
function Jc(e, t, n) {
|
|
6035
|
+
return Gc(t, n ? e === sr : e === cr, e === ur);
|
|
6016
6036
|
}
|
|
6017
|
-
function
|
|
6018
|
-
return t === "both" || t === "horizontal" && r && r > 1 ? e ===
|
|
6037
|
+
function Yc(e, t, n, r) {
|
|
6038
|
+
return t === "both" || t === "horizontal" && r && r > 1 ? e === Wc : Gc(t, n ? e === cr : e === sr, e === lr);
|
|
6019
6039
|
}
|
|
6020
|
-
function
|
|
6040
|
+
function Xc(e, t) {
|
|
6021
6041
|
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingElement"), o = r.useState("domReferenceElement"), s = r.context.dataRef, { listRef: c, activeIndex: l, onNavigate: u = () => {}, enabled: d = !0, selectedIndex: f = null, allowEscape: p = !1, loopFocus: m = !1, nested: g = !1, rtl: _ = !1, virtual: v = !1, focusItemOnOpen: y = "auto", focusItemOnHover: b = !0, openOnArrowKeyDown: x = !0, disabledIndices: S = void 0, orientation: C = "vertical", parentOrientation: w, cols: T = 1, id: E, resetOnPointerLeave: D = !0, externalTree: O } = t;
|
|
6022
6042
|
process.env.NODE_ENV !== "production" && (p && (m || console.warn("`useListNavigation` looping must be enabled to allow escaping."), v || console.warn("`useListNavigation` must be virtual to allow escaping.")), C === "vertical" && T > 1 && console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should", "be either \"horizontal\" or \"both\"."));
|
|
6023
|
-
let k =
|
|
6043
|
+
let k = Ya(br(a)), A = jo(), j = Mo(O);
|
|
6024
6044
|
U(() => {
|
|
6025
6045
|
s.current.orientation = C;
|
|
6026
6046
|
}, [s, C]);
|
|
6027
6047
|
let M = vr(o), N = n.useRef(y), P = n.useRef(f ?? -1), F = n.useRef(null), I = n.useRef(!0), L = R((e) => {
|
|
6028
6048
|
u(P.current === -1 ? null : P.current, e);
|
|
6029
|
-
}), ee = n.useRef(L), z = n.useRef(!!a), B = n.useRef(i), V = n.useRef(!1), H = n.useRef(!1), W = n.useRef(null), te =
|
|
6049
|
+
}), ee = n.useRef(L), z = n.useRef(!!a), B = n.useRef(i), V = n.useRef(!1), H = n.useRef(!1), W = n.useRef(null), te = Ya(S), ne = Ya(i), G = Ya(f), re = Ya(D), K = R(() => {
|
|
6030
6050
|
function e(e) {
|
|
6031
|
-
v ? j?.events.emit("virtualfocus", e) : W.current =
|
|
6051
|
+
v ? j?.events.emit("virtualfocus", e) : W.current = ro(e, {
|
|
6032
6052
|
sync: V.current,
|
|
6033
6053
|
preventScroll: !0
|
|
6034
6054
|
});
|
|
@@ -6061,7 +6081,7 @@ function Jc(e, t) {
|
|
|
6061
6081
|
if (V.current = !1, G.current != null) return;
|
|
6062
6082
|
if (z.current && (P.current = -1, K()), (!B.current || !z.current) && N.current && (F.current != null || N.current === !0 && F.current == null)) {
|
|
6063
6083
|
let e = 0, t = () => {
|
|
6064
|
-
c.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e += 1) : (P.current = F.current == null ||
|
|
6084
|
+
c.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e += 1) : (P.current = F.current == null || qc(F.current, C, _) || g ? ai(c) : oi(c), F.current = null, L());
|
|
6065
6085
|
};
|
|
6066
6086
|
t();
|
|
6067
6087
|
}
|
|
@@ -6132,8 +6152,8 @@ function Jc(e, t) {
|
|
|
6132
6152
|
w
|
|
6133
6153
|
]), ce = R((e) => {
|
|
6134
6154
|
if (I.current = !1, V.current = !0, e.which === 229 || !ne.current && e.currentTarget === k.current) return;
|
|
6135
|
-
if (g &&
|
|
6136
|
-
|
|
6155
|
+
if (g && Yc(e.key, C, _, T)) {
|
|
6156
|
+
Kc(e.key, se()) || Cr(e), r.setOpen(!1, Sa(ga, e.nativeEvent)), h(o) && (v ? j?.events.emit("virtualfocus", o) : o.focus());
|
|
6137
6157
|
return;
|
|
6138
6158
|
}
|
|
6139
6159
|
let t = P.current, n = ai(c, S), a = oi(c, S);
|
|
@@ -6155,12 +6175,12 @@ function Jc(e, t) {
|
|
|
6155
6175
|
})];
|
|
6156
6176
|
if (s != null && (P.current = s, L(e)), C === "both") return;
|
|
6157
6177
|
}
|
|
6158
|
-
if (
|
|
6178
|
+
if (Kc(e.key, C)) {
|
|
6159
6179
|
if (Cr(e), i && !v && dr(e.currentTarget.ownerDocument) === e.currentTarget) {
|
|
6160
|
-
P.current =
|
|
6180
|
+
P.current = qc(e.key, C, _) ? n : a, L(e);
|
|
6161
6181
|
return;
|
|
6162
6182
|
}
|
|
6163
|
-
|
|
6183
|
+
qc(e.key, C, _) ? m ? t >= a ? p && t !== c.current.length ? P.current = -1 : (V.current = !1, P.current = n) : P.current = si(c.current, {
|
|
6164
6184
|
startingIndex: t,
|
|
6165
6185
|
disabledIndices: S
|
|
6166
6186
|
}) : P.current = Math.min(a, si(c.current, {
|
|
@@ -6218,11 +6238,11 @@ function Jc(e, t) {
|
|
|
6218
6238
|
onKeyDown(e) {
|
|
6219
6239
|
let t = r.select("open");
|
|
6220
6240
|
I.current = !1;
|
|
6221
|
-
let n = e.key.startsWith("Arrow"), i =
|
|
6241
|
+
let n = e.key.startsWith("Arrow"), i = Jc(e.key, se(), _), a = Kc(e.key, C), o = (g ? i : a) || e.key === "Enter" || e.key.trim() === "";
|
|
6222
6242
|
if (v && t) return ce(e);
|
|
6223
6243
|
if (!(!t && !x && n)) {
|
|
6224
6244
|
if (o) {
|
|
6225
|
-
let t =
|
|
6245
|
+
let t = Kc(e.key, se());
|
|
6226
6246
|
F.current = g && t ? null : e.key;
|
|
6227
6247
|
}
|
|
6228
6248
|
if (g) {
|
|
@@ -6273,13 +6293,13 @@ function Jc(e, t) {
|
|
|
6273
6293
|
}
|
|
6274
6294
|
//#endregion
|
|
6275
6295
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole.js
|
|
6276
|
-
var
|
|
6296
|
+
var Zc = /* @__PURE__ */ new Map([
|
|
6277
6297
|
["select", "listbox"],
|
|
6278
6298
|
["combobox", "listbox"],
|
|
6279
6299
|
["label", !1]
|
|
6280
6300
|
]);
|
|
6281
|
-
function
|
|
6282
|
-
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingId"), o = r.useState("domReferenceElement"), s = r.useState("floatingElement"), { role: c = "dialog" } = t, l = Vn(), u = o?.id || l, d = n.useMemo(() => br(s)?.id || a, [s, a]), f =
|
|
6301
|
+
function Qc(e, t = {}) {
|
|
6302
|
+
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingId"), o = r.useState("domReferenceElement"), s = r.useState("floatingElement"), { role: c = "dialog" } = t, l = Vn(), u = o?.id || l, d = n.useMemo(() => br(s)?.id || a, [s, a]), f = Zc.get(c) ?? c, p = jo() != null, m = n.useMemo(() => f === "tooltip" || c === "label" ? Fe : {
|
|
6283
6303
|
"aria-haspopup": f === "alertdialog" ? "dialog" : f,
|
|
6284
6304
|
"aria-expanded": "false",
|
|
6285
6305
|
...f === "listbox" && { role: "combobox" },
|
|
@@ -6344,7 +6364,7 @@ function Xc(e, t = {}) {
|
|
|
6344
6364
|
}
|
|
6345
6365
|
//#endregion
|
|
6346
6366
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js
|
|
6347
|
-
function
|
|
6367
|
+
function $c(e, t) {
|
|
6348
6368
|
let r = "rootStore" in e ? e.rootStore : e, i = r.context.dataRef, a = r.useState("open"), { listRef: o, elementsRef: s, activeIndex: c, onMatch: l, onTypingChange: u, enabled: d = !0, resetMs: f = 750, selectedIndex: p = null } = t, m = Wi(), h = n.useRef(""), g = n.useRef(p ?? c ?? -1), _ = n.useRef(null);
|
|
6349
6369
|
U(() => {
|
|
6350
6370
|
!a && p !== null || (m.clear(), _.current = null, h.current !== "" && (h.current = ""));
|
|
@@ -6405,57 +6425,57 @@ function Zc(e, t) {
|
|
|
6405
6425
|
}
|
|
6406
6426
|
//#endregion
|
|
6407
6427
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/toolbar/root/ToolbarRootContext.js
|
|
6408
|
-
var
|
|
6409
|
-
process.env.NODE_ENV !== "production" && (
|
|
6410
|
-
function
|
|
6411
|
-
let t = n.useContext(
|
|
6428
|
+
var el = /*#__PURE__*/ n.createContext(void 0);
|
|
6429
|
+
process.env.NODE_ENV !== "production" && (el.displayName = "ToolbarRootContext");
|
|
6430
|
+
function tl(e) {
|
|
6431
|
+
let t = n.useContext(el);
|
|
6412
6432
|
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? he(69) : "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.");
|
|
6413
6433
|
return t;
|
|
6414
6434
|
}
|
|
6415
6435
|
//#endregion
|
|
6416
6436
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/composite/composite.js
|
|
6417
|
-
var
|
|
6418
|
-
nl,
|
|
6419
|
-
rl,
|
|
6437
|
+
var nl = "ArrowUp", rl = "ArrowDown", il = "ArrowLeft", al = "ArrowRight", ol = "Home", sl = /* @__PURE__ */ new Set([il, al]), cl = /* @__PURE__ */ new Set([
|
|
6420
6438
|
il,
|
|
6439
|
+
al,
|
|
6440
|
+
ol,
|
|
6421
6441
|
"End"
|
|
6422
|
-
]),
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6442
|
+
]), ll = /* @__PURE__ */ new Set([nl, rl]), ul = /* @__PURE__ */ new Set([
|
|
6443
|
+
nl,
|
|
6444
|
+
rl,
|
|
6445
|
+
ol,
|
|
6426
6446
|
"End"
|
|
6427
|
-
]),
|
|
6428
|
-
...
|
|
6429
|
-
|
|
6447
|
+
]), dl = /* @__PURE__ */ new Set([...sl, ...ll]), fl = /* @__PURE__ */ new Set([
|
|
6448
|
+
...dl,
|
|
6449
|
+
ol,
|
|
6430
6450
|
"End"
|
|
6431
|
-
]),
|
|
6432
|
-
el,
|
|
6433
|
-
tl,
|
|
6451
|
+
]), pl = /* @__PURE__ */ new Set([
|
|
6434
6452
|
nl,
|
|
6435
6453
|
rl,
|
|
6436
6454
|
il,
|
|
6455
|
+
al,
|
|
6456
|
+
ol,
|
|
6437
6457
|
"End"
|
|
6438
|
-
]),
|
|
6458
|
+
]), ml = /* @__PURE__ */ new Set([
|
|
6439
6459
|
"Shift",
|
|
6440
6460
|
"Control",
|
|
6441
6461
|
"Alt",
|
|
6442
6462
|
"Meta"
|
|
6443
6463
|
]);
|
|
6444
|
-
function
|
|
6464
|
+
function hl(e) {
|
|
6445
6465
|
return h(e) && e.tagName === "INPUT";
|
|
6446
6466
|
}
|
|
6447
|
-
function
|
|
6448
|
-
return !!(
|
|
6467
|
+
function gl(e) {
|
|
6468
|
+
return !!(hl(e) && e.selectionStart != null || h(e) && e.tagName === "TEXTAREA");
|
|
6449
6469
|
}
|
|
6450
|
-
function
|
|
6470
|
+
function _l(e, t, n, r) {
|
|
6451
6471
|
if (!e || !t || !t.scrollTo) return;
|
|
6452
6472
|
let i = e.scrollLeft, a = e.scrollTop, o = e.clientWidth < e.scrollWidth, s = e.clientHeight < e.scrollHeight;
|
|
6453
6473
|
if (o && r !== "vertical") {
|
|
6454
|
-
let r =
|
|
6474
|
+
let r = vl(e, t, "left"), a = yl(e), o = yl(t);
|
|
6455
6475
|
n === "ltr" && (r + t.offsetWidth + o.scrollMarginRight > e.scrollLeft + e.clientWidth - a.scrollPaddingRight ? i = r + t.offsetWidth + o.scrollMarginRight - e.clientWidth + a.scrollPaddingRight : r - o.scrollMarginLeft < e.scrollLeft + a.scrollPaddingLeft && (i = r - o.scrollMarginLeft - a.scrollPaddingLeft)), n === "rtl" && (r - o.scrollMarginRight < e.scrollLeft + a.scrollPaddingLeft ? i = r - o.scrollMarginLeft - a.scrollPaddingLeft : r + t.offsetWidth + o.scrollMarginRight > e.scrollLeft + e.clientWidth - a.scrollPaddingRight && (i = r + t.offsetWidth + o.scrollMarginRight - e.clientWidth + a.scrollPaddingRight));
|
|
6456
6476
|
}
|
|
6457
6477
|
if (s && r !== "horizontal") {
|
|
6458
|
-
let n =
|
|
6478
|
+
let n = vl(e, t, "top"), r = yl(e), i = yl(t);
|
|
6459
6479
|
n - i.scrollMarginTop < e.scrollTop + r.scrollPaddingTop ? a = n - i.scrollMarginTop - r.scrollPaddingTop : n + t.offsetHeight + i.scrollMarginBottom > e.scrollTop + e.clientHeight - r.scrollPaddingBottom && (a = n + t.offsetHeight + i.scrollMarginBottom - e.clientHeight + r.scrollPaddingBottom);
|
|
6460
6480
|
}
|
|
6461
6481
|
e.scrollTo({
|
|
@@ -6464,12 +6484,12 @@ function hl(e, t, n, r) {
|
|
|
6464
6484
|
behavior: "auto"
|
|
6465
6485
|
});
|
|
6466
6486
|
}
|
|
6467
|
-
function
|
|
6487
|
+
function vl(e, t, n) {
|
|
6468
6488
|
let r = n === "left" ? "offsetLeft" : "offsetTop", i = 0;
|
|
6469
6489
|
for (; t.offsetParent && (i += t[r], t.offsetParent !== e);) t = t.offsetParent;
|
|
6470
6490
|
return i;
|
|
6471
6491
|
}
|
|
6472
|
-
function
|
|
6492
|
+
function yl(e) {
|
|
6473
6493
|
let t = getComputedStyle(e);
|
|
6474
6494
|
return {
|
|
6475
6495
|
scrollMarginTop: parseFloat(t.scrollMarginTop) || 0,
|
|
@@ -6484,24 +6504,24 @@ function _l(e) {
|
|
|
6484
6504
|
}
|
|
6485
6505
|
//#endregion
|
|
6486
6506
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/getDisabledMountTransitionStyles.js
|
|
6487
|
-
function
|
|
6488
|
-
return e === "starting" ?
|
|
6507
|
+
function bl(e) {
|
|
6508
|
+
return e === "starting" ? _o : Fe;
|
|
6489
6509
|
}
|
|
6490
6510
|
//#endregion
|
|
6491
6511
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/inertValue.js
|
|
6492
|
-
function
|
|
6512
|
+
function xl(e) {
|
|
6493
6513
|
return ke(19) ? e : e ? "true" : void 0;
|
|
6494
6514
|
}
|
|
6495
6515
|
//#endregion
|
|
6496
6516
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/direction-context/DirectionContext.js
|
|
6497
|
-
var
|
|
6498
|
-
process.env.NODE_ENV !== "production" && (
|
|
6499
|
-
function
|
|
6500
|
-
return n.useContext(
|
|
6517
|
+
var Sl = /*#__PURE__*/ n.createContext(void 0);
|
|
6518
|
+
process.env.NODE_ENV !== "production" && (Sl.displayName = "DirectionContext");
|
|
6519
|
+
function Cl() {
|
|
6520
|
+
return n.useContext(Sl)?.direction ?? "ltr";
|
|
6501
6521
|
}
|
|
6502
6522
|
//#endregion
|
|
6503
6523
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/middleware/arrow.js
|
|
6504
|
-
var
|
|
6524
|
+
var wl = (e) => ({
|
|
6505
6525
|
name: "arrow",
|
|
6506
6526
|
options: e,
|
|
6507
6527
|
async fn(t) {
|
|
@@ -6523,26 +6543,26 @@ var Sl = (e) => ({
|
|
|
6523
6543
|
reset: N
|
|
6524
6544
|
};
|
|
6525
6545
|
}
|
|
6526
|
-
}),
|
|
6527
|
-
...
|
|
6546
|
+
}), Tl = (e, t) => ({
|
|
6547
|
+
...wl(e),
|
|
6528
6548
|
options: [e, t]
|
|
6529
|
-
}),
|
|
6549
|
+
}), El = {
|
|
6530
6550
|
name: "hide",
|
|
6531
6551
|
async fn(e) {
|
|
6532
6552
|
let { width: t, height: n, x: r, y: i } = e.rects.reference, a = t === 0 && n === 0 && r === 0 && i === 0;
|
|
6533
|
-
return { data: { referenceHidden: (await
|
|
6553
|
+
return { data: { referenceHidden: (await rc().fn(e)).data?.referenceHidden || a } };
|
|
6534
6554
|
}
|
|
6535
|
-
},
|
|
6555
|
+
}, Dl = {
|
|
6536
6556
|
sideX: "left",
|
|
6537
6557
|
sideY: "top"
|
|
6538
|
-
},
|
|
6558
|
+
}, Ol = {
|
|
6539
6559
|
name: "adaptiveOrigin",
|
|
6540
6560
|
async fn(e) {
|
|
6541
6561
|
let { x: t, y: n, rects: { floating: r }, elements: { floating: i }, platform: a, strategy: o, placement: s } = e, c = d(i), l = c.getComputedStyle(i);
|
|
6542
6562
|
if (l.transitionDuration === "0s" || l.transitionDuration === "") return {
|
|
6543
6563
|
x: t,
|
|
6544
6564
|
y: n,
|
|
6545
|
-
data:
|
|
6565
|
+
data: Dl
|
|
6546
6566
|
};
|
|
6547
6567
|
let u = await a.getOffsetParent?.(i), f = {
|
|
6548
6568
|
width: 0,
|
|
@@ -6561,7 +6581,7 @@ var Sl = (e) => ({
|
|
|
6561
6581
|
} else await a.isElement?.(u) && (f = await a.getDimensions(u));
|
|
6562
6582
|
let p = Rr(s), m = t, h = n;
|
|
6563
6583
|
p === "left" && (m = f.width - (t + r.width)), p === "top" && (h = f.height - (n + r.height));
|
|
6564
|
-
let g = p === "left" ? "right" :
|
|
6584
|
+
let g = p === "left" ? "right" : Dl.sideX, _ = p === "top" ? "bottom" : Dl.sideY;
|
|
6565
6585
|
return {
|
|
6566
6586
|
x: m,
|
|
6567
6587
|
y: h,
|
|
@@ -6574,7 +6594,7 @@ var Sl = (e) => ({
|
|
|
6574
6594
|
};
|
|
6575
6595
|
//#endregion
|
|
6576
6596
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/useAnchorPositioning.js
|
|
6577
|
-
function
|
|
6597
|
+
function kl(e, t, n) {
|
|
6578
6598
|
let r = e === "inline-start" || e === "inline-end";
|
|
6579
6599
|
return {
|
|
6580
6600
|
top: "top",
|
|
@@ -6583,10 +6603,10 @@ function Dl(e, t, n) {
|
|
|
6583
6603
|
left: r ? n ? "inline-end" : "inline-start" : "left"
|
|
6584
6604
|
}[t];
|
|
6585
6605
|
}
|
|
6586
|
-
function
|
|
6606
|
+
function Al(e, t, n) {
|
|
6587
6607
|
let { rects: r, placement: i } = e;
|
|
6588
6608
|
return {
|
|
6589
|
-
side:
|
|
6609
|
+
side: kl(t, Rr(i), n),
|
|
6590
6610
|
align: zr(i) || "center",
|
|
6591
6611
|
anchor: {
|
|
6592
6612
|
width: r.reference.width,
|
|
@@ -6598,10 +6618,10 @@ function Ol(e, t, n) {
|
|
|
6598
6618
|
}
|
|
6599
6619
|
};
|
|
6600
6620
|
}
|
|
6601
|
-
function
|
|
6621
|
+
function jl(e) {
|
|
6602
6622
|
let { anchor: t, positionMethod: r = "absolute", side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, collisionBoundary: c, collisionPadding: l = 5, sticky: u = !1, arrowPadding: f = 5, disableAnchorTracking: p = !1, keepMounted: m = !1, floatingRootContext: h, mounted: g, collisionAvoidance: _, shiftCrossAxis: v = !1, nodeId: y, adaptiveOrigin: b, lazyFlip: x = !1, externalTree: S } = e, [C, w] = n.useState(null);
|
|
6603
6623
|
!g && C !== null && w(null);
|
|
6604
|
-
let T = _.side || "flip", E = _.align || "flip", D = _.fallbackAxisSide || "end", O = typeof t == "function" ? t : void 0, k = R(O), A = O ? k : t, j =
|
|
6624
|
+
let T = _.side || "flip", E = _.align || "flip", D = _.fallbackAxisSide || "end", O = typeof t == "function" ? t : void 0, k = R(O), A = O ? k : t, j = Ya(t), M = Ya(g), N = Cl() === "rtl", P = C || {
|
|
6605
6625
|
top: "top",
|
|
6606
6626
|
right: "right",
|
|
6607
6627
|
bottom: "bottom",
|
|
@@ -6623,8 +6643,8 @@ function kl(e) {
|
|
|
6623
6643
|
let V = {
|
|
6624
6644
|
boundary: c === "clipping-ancestors" ? "clippingAncestors" : c,
|
|
6625
6645
|
padding: I
|
|
6626
|
-
}, H = n.useRef(null), W =
|
|
6627
|
-
let t =
|
|
6646
|
+
}, H = n.useRef(null), W = Ya(a), te = Ya(s), ne = [Qs((e) => {
|
|
6647
|
+
let t = Al(e, i, N), n = typeof W.current == "function" ? W.current(t) : W.current, r = typeof te.current == "function" ? te.current(t) : te.current;
|
|
6628
6648
|
return {
|
|
6629
6649
|
mainAxis: n,
|
|
6630
6650
|
crossAxis: r,
|
|
@@ -6635,7 +6655,7 @@ function kl(e) {
|
|
|
6635
6655
|
typeof s == "function" ? 0 : s,
|
|
6636
6656
|
N,
|
|
6637
6657
|
i
|
|
6638
|
-
])], G = E === "none" && T !== "shift", re = !G && (u || v || T === "shift"), K = T === "none" ? null :
|
|
6658
|
+
])], G = E === "none" && T !== "shift", re = !G && (u || v || T === "shift"), K = T === "none" ? null : tc({
|
|
6639
6659
|
...V,
|
|
6640
6660
|
padding: {
|
|
6641
6661
|
top: I.top + 1,
|
|
@@ -6646,7 +6666,7 @@ function kl(e) {
|
|
|
6646
6666
|
mainAxis: !v && T === "flip",
|
|
6647
6667
|
crossAxis: E === "flip" && "alignment",
|
|
6648
6668
|
fallbackAxisSideDirection: D
|
|
6649
|
-
}), ie = G ? null :
|
|
6669
|
+
}), ie = G ? null : $s((e) => {
|
|
6650
6670
|
let t = X(e.elements.floating).documentElement;
|
|
6651
6671
|
return {
|
|
6652
6672
|
...V,
|
|
@@ -6658,7 +6678,7 @@ function kl(e) {
|
|
|
6658
6678
|
} : void 0,
|
|
6659
6679
|
mainAxis: E !== "none",
|
|
6660
6680
|
crossAxis: re,
|
|
6661
|
-
limiter: u || v ? void 0 :
|
|
6681
|
+
limiter: u || v ? void 0 : ec((e) => {
|
|
6662
6682
|
if (!H.current) return {};
|
|
6663
6683
|
let { width: t, height: n } = H.current.getBoundingClientRect(), r = Hr(Rr(e.placement)), i = r === "y" ? t : n, a = r === "y" ? I.left + I.right : I.top + I.bottom;
|
|
6664
6684
|
return { offset: i / 2 + a / 2 };
|
|
@@ -6671,7 +6691,7 @@ function kl(e) {
|
|
|
6671
6691
|
I,
|
|
6672
6692
|
E
|
|
6673
6693
|
]);
|
|
6674
|
-
T === "shift" || E === "shift" || o === "center" ? ne.push(ie, K) : ne.push(K, ie), ne.push(
|
|
6694
|
+
T === "shift" || E === "shift" || o === "center" ? ne.push(ie, K) : ne.push(K, ie), ne.push(nc({
|
|
6675
6695
|
...V,
|
|
6676
6696
|
apply({ elements: { floating: e }, availableWidth: t, availableHeight: n, rects: r }) {
|
|
6677
6697
|
if (!M.current) return;
|
|
@@ -6680,14 +6700,14 @@ function kl(e) {
|
|
|
6680
6700
|
let a = d(e).devicePixelRatio || 1, { x: o, y: s, width: c, height: l } = r.reference, u = (Math.round((o + c) * a) - Math.round(o * a)) / a, f = (Math.round((s + l) * a) - Math.round(s * a)) / a;
|
|
6681
6701
|
i.setProperty("--anchor-width", `${u}px`), i.setProperty("--anchor-height", `${f}px`);
|
|
6682
6702
|
}
|
|
6683
|
-
}),
|
|
6703
|
+
}), Tl(() => ({
|
|
6684
6704
|
element: H.current || X(H.current).createElement("div"),
|
|
6685
6705
|
padding: f,
|
|
6686
6706
|
offsetParent: "floating"
|
|
6687
6707
|
}), [f]), {
|
|
6688
6708
|
name: "transformOrigin",
|
|
6689
6709
|
fn(e) {
|
|
6690
|
-
let { elements: t, middlewareData: n, placement: r, rects: o, y: s } = e, c = Rr(r), l = Hr(c), u = H.current, d = n.arrow?.x || 0, f = n.arrow?.y || 0, p = u?.clientWidth || 0, m = u?.clientHeight || 0, h = d + p / 2, g = f + m / 2, _ = Math.abs(n.shift?.y || 0), v = o.reference.height / 2, y = typeof a == "function" ? a(
|
|
6710
|
+
let { elements: t, middlewareData: n, placement: r, rects: o, y: s } = e, c = Rr(r), l = Hr(c), u = H.current, d = n.arrow?.x || 0, f = n.arrow?.y || 0, p = u?.clientWidth || 0, m = u?.clientHeight || 0, h = d + p / 2, g = f + m / 2, _ = Math.abs(n.shift?.y || 0), v = o.reference.height / 2, y = typeof a == "function" ? a(Al(e, i, N)) : a, b = _ > y, x = {
|
|
6691
6711
|
top: `${h}px calc(100% + ${y}px)`,
|
|
6692
6712
|
bottom: `${h}px ${-y}px`,
|
|
6693
6713
|
left: `calc(100% + ${y}px) ${g}px`,
|
|
@@ -6695,7 +6715,7 @@ function kl(e) {
|
|
|
6695
6715
|
}[c], S = `${h}px ${o.reference.y + v - s}px`;
|
|
6696
6716
|
return t.floating.style.setProperty("--transform-origin", re && l === "y" && b ? S : x), {};
|
|
6697
6717
|
}
|
|
6698
|
-
},
|
|
6718
|
+
}, El, b), U(() => {
|
|
6699
6719
|
!g && h && h.update({
|
|
6700
6720
|
referenceElement: null,
|
|
6701
6721
|
floatingElement: null,
|
|
@@ -6706,16 +6726,16 @@ function kl(e) {
|
|
|
6706
6726
|
let ae = n.useMemo(() => ({
|
|
6707
6727
|
elementResize: !p && typeof ResizeObserver < "u",
|
|
6708
6728
|
layoutShift: !p && typeof IntersectionObserver < "u"
|
|
6709
|
-
}), [p]), { refs: oe, elements: se, x: ce, y: le, middlewareData: ue, update: de, placement: fe, context: pe, isPositioned: me, floatingStyles: he } =
|
|
6729
|
+
}), [p]), { refs: oe, elements: se, x: ce, y: le, middlewareData: ue, update: de, placement: fe, context: pe, isPositioned: me, floatingStyles: he } = zc({
|
|
6710
6730
|
rootContext: h,
|
|
6711
6731
|
open: m ? g : void 0,
|
|
6712
6732
|
placement: F,
|
|
6713
6733
|
middleware: ne,
|
|
6714
6734
|
strategy: r,
|
|
6715
|
-
whileElementsMounted: m ? void 0 : (...e) =>
|
|
6735
|
+
whileElementsMounted: m ? void 0 : (...e) => Rs(...e, ae),
|
|
6716
6736
|
nodeId: y,
|
|
6717
6737
|
externalTree: S
|
|
6718
|
-
}), { sideX: ge, sideY: _e } = ue.adaptiveOrigin ||
|
|
6738
|
+
}), { sideX: ge, sideY: _e } = ue.adaptiveOrigin || Dl, ve = me ? r : "fixed", ye = n.useMemo(() => {
|
|
6719
6739
|
let e = b ? {
|
|
6720
6740
|
position: ve,
|
|
6721
6741
|
[ge]: ce,
|
|
@@ -6737,7 +6757,7 @@ function kl(e) {
|
|
|
6737
6757
|
]), be = n.useRef(null);
|
|
6738
6758
|
U(() => {
|
|
6739
6759
|
if (!g) return;
|
|
6740
|
-
let e = j.current, t = typeof e == "function" ? e() : e, n = (
|
|
6760
|
+
let e = j.current, t = typeof e == "function" ? e() : e, n = (Ml(t) ? t.current : t) || null;
|
|
6741
6761
|
n !== be.current && (oe.setPositionReference(n), be.current = n);
|
|
6742
6762
|
}, [
|
|
6743
6763
|
g,
|
|
@@ -6747,14 +6767,14 @@ function kl(e) {
|
|
|
6747
6767
|
]), n.useEffect(() => {
|
|
6748
6768
|
if (!g) return;
|
|
6749
6769
|
let e = j.current;
|
|
6750
|
-
typeof e != "function" &&
|
|
6770
|
+
typeof e != "function" && Ml(e) && e.current !== be.current && (oe.setPositionReference(e.current), be.current = e.current);
|
|
6751
6771
|
}, [
|
|
6752
6772
|
g,
|
|
6753
6773
|
oe,
|
|
6754
6774
|
A,
|
|
6755
6775
|
j
|
|
6756
6776
|
]), n.useEffect(() => {
|
|
6757
|
-
if (m && g && se.domReference && se.floating) return
|
|
6777
|
+
if (m && g && se.domReference && se.floating) return Rs(se.domReference, se.floating, de, ae);
|
|
6758
6778
|
}, [
|
|
6759
6779
|
m,
|
|
6760
6780
|
g,
|
|
@@ -6762,7 +6782,7 @@ function kl(e) {
|
|
|
6762
6782
|
de,
|
|
6763
6783
|
ae
|
|
6764
6784
|
]);
|
|
6765
|
-
let xe = Rr(fe), Se =
|
|
6785
|
+
let xe = Rr(fe), Se = kl(i, xe, N), Ce = zr(fe) || "center", we = !!ue.hide?.referenceHidden;
|
|
6766
6786
|
U(() => {
|
|
6767
6787
|
x && g && me && w(xe);
|
|
6768
6788
|
}, [
|
|
@@ -6804,19 +6824,19 @@ function kl(e) {
|
|
|
6804
6824
|
de
|
|
6805
6825
|
]);
|
|
6806
6826
|
}
|
|
6807
|
-
function
|
|
6827
|
+
function Ml(e) {
|
|
6808
6828
|
return e != null && "current" in e;
|
|
6809
6829
|
}
|
|
6810
6830
|
//#endregion
|
|
6811
6831
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/composite/list/CompositeList.js
|
|
6812
|
-
function
|
|
6813
|
-
let { children: t, elementsRef: r, labelsRef: i, onMapChange: a } = e, s = R(a), c = n.useRef(0), l = F(
|
|
6832
|
+
function Nl(e) {
|
|
6833
|
+
let { children: t, elementsRef: r, labelsRef: i, onMapChange: a } = e, s = R(a), c = n.useRef(0), l = F(Fl).current, u = F(Pl).current, [d, f] = n.useState(0), p = n.useRef(d), m = R((e, t) => {
|
|
6814
6834
|
u.set(e, t ?? null), p.current += 1, f(p.current);
|
|
6815
6835
|
}), h = R((e) => {
|
|
6816
6836
|
u.delete(e), p.current += 1, f(p.current);
|
|
6817
6837
|
}), g = n.useMemo(() => {
|
|
6818
6838
|
let e = /* @__PURE__ */ new Map();
|
|
6819
|
-
return Array.from(u.keys()).filter((e) => e.isConnected).sort(
|
|
6839
|
+
return Array.from(u.keys()).filter((e) => e.isConnected).sort(Il).forEach((t, n) => {
|
|
6820
6840
|
let r = u.get(t) ?? {};
|
|
6821
6841
|
e.set(t, {
|
|
6822
6842
|
...r,
|
|
@@ -6871,24 +6891,24 @@ function jl(e) {
|
|
|
6871
6891
|
i,
|
|
6872
6892
|
c
|
|
6873
6893
|
]);
|
|
6874
|
-
return /*#__PURE__*/ o(
|
|
6894
|
+
return /*#__PURE__*/ o(Wa.Provider, {
|
|
6875
6895
|
value: v,
|
|
6876
6896
|
children: t
|
|
6877
6897
|
});
|
|
6878
6898
|
}
|
|
6879
|
-
function
|
|
6899
|
+
function Pl() {
|
|
6880
6900
|
return /* @__PURE__ */ new Map();
|
|
6881
6901
|
}
|
|
6882
|
-
function
|
|
6902
|
+
function Fl() {
|
|
6883
6903
|
return /* @__PURE__ */ new Set();
|
|
6884
6904
|
}
|
|
6885
|
-
function
|
|
6905
|
+
function Il(e, t) {
|
|
6886
6906
|
let n = e.compareDocumentPosition(t);
|
|
6887
6907
|
return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
|
|
6888
6908
|
}
|
|
6889
6909
|
//#endregion
|
|
6890
6910
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/InternalBackdrop.js
|
|
6891
|
-
var
|
|
6911
|
+
var Ll = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
6892
6912
|
let { cutout: n, ...r } = e, i;
|
|
6893
6913
|
if (n) {
|
|
6894
6914
|
let e = n.getBoundingClientRect();
|
|
@@ -6908,10 +6928,10 @@ var Fl = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
6908
6928
|
}
|
|
6909
6929
|
});
|
|
6910
6930
|
});
|
|
6911
|
-
process.env.NODE_ENV !== "production" && (
|
|
6931
|
+
process.env.NODE_ENV !== "production" && (Ll.displayName = "InternalBackdrop");
|
|
6912
6932
|
//#endregion
|
|
6913
6933
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/usePositioner.js
|
|
6914
|
-
function
|
|
6934
|
+
function Rl(e, t, { styles: n, transitionStatus: r, props: i, refs: a, hidden: o, inert: s = !1 }) {
|
|
6915
6935
|
let c = { ...n };
|
|
6916
6936
|
return s && (c.pointerEvents = "none"), ze("div", e, {
|
|
6917
6937
|
state: t,
|
|
@@ -6922,21 +6942,21 @@ function Il(e, t, { styles: n, transitionStatus: r, props: i, refs: a, hidden: o
|
|
|
6922
6942
|
hidden: o,
|
|
6923
6943
|
style: c
|
|
6924
6944
|
},
|
|
6925
|
-
|
|
6945
|
+
bl(r),
|
|
6926
6946
|
i
|
|
6927
6947
|
],
|
|
6928
|
-
stateAttributesMapping:
|
|
6948
|
+
stateAttributesMapping: Ua
|
|
6929
6949
|
});
|
|
6930
6950
|
}
|
|
6931
6951
|
//#endregion
|
|
6932
6952
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useScrollLock.js
|
|
6933
|
-
var
|
|
6934
|
-
function
|
|
6953
|
+
var zl = {}, Bl = {}, Vl = "";
|
|
6954
|
+
function Hl(e) {
|
|
6935
6955
|
if (typeof document > "u") return !1;
|
|
6936
6956
|
let t = X(e);
|
|
6937
6957
|
return d(t).innerWidth - t.documentElement.clientWidth > 0;
|
|
6938
6958
|
}
|
|
6939
|
-
function
|
|
6959
|
+
function Ul(e) {
|
|
6940
6960
|
if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
|
|
6941
6961
|
let t = X(e), n = t.documentElement, r = t.body, i = _(n) ? n : r, a = i.style.overflowY, o = n.style.scrollbarGutter;
|
|
6942
6962
|
n.style.scrollbarGutter = "stable", i.style.overflowY = "scroll";
|
|
@@ -6945,7 +6965,7 @@ function Vl(e) {
|
|
|
6945
6965
|
let c = i.offsetWidth;
|
|
6946
6966
|
return i.style.overflowY = a, n.style.scrollbarGutter = o, s === c;
|
|
6947
6967
|
}
|
|
6948
|
-
function
|
|
6968
|
+
function Wl(e) {
|
|
6949
6969
|
let t = X(e), n = t.documentElement, r = t.body, i = _(n) ? n : r, a = {
|
|
6950
6970
|
overflowY: i.style.overflowY,
|
|
6951
6971
|
overflowX: i.style.overflowX
|
|
@@ -6957,16 +6977,16 @@ function Hl(e) {
|
|
|
6957
6977
|
Object.assign(i.style, a);
|
|
6958
6978
|
};
|
|
6959
6979
|
}
|
|
6960
|
-
function
|
|
6980
|
+
function Gl(e) {
|
|
6961
6981
|
let t = X(e), n = t.documentElement, r = t.body, i = d(n), a = 0, o = 0, s = !1, c = Ji.create();
|
|
6962
6982
|
if (Xn && (i.visualViewport?.scale ?? 1) !== 1) return () => {};
|
|
6963
6983
|
function l() {
|
|
6964
6984
|
let t = i.getComputedStyle(n), c = i.getComputedStyle(r), l = (t.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
6965
|
-
a = n.scrollTop, o = n.scrollLeft,
|
|
6985
|
+
a = n.scrollTop, o = n.scrollLeft, zl = {
|
|
6966
6986
|
scrollbarGutter: n.style.scrollbarGutter,
|
|
6967
6987
|
overflowY: n.style.overflowY,
|
|
6968
6988
|
overflowX: n.style.overflowX
|
|
6969
|
-
},
|
|
6989
|
+
}, Vl = n.style.scrollBehavior, Bl = {
|
|
6970
6990
|
position: r.style.position,
|
|
6971
6991
|
height: r.style.height,
|
|
6972
6992
|
width: r.style.width,
|
|
@@ -6976,7 +6996,7 @@ function Ul(e) {
|
|
|
6976
6996
|
scrollBehavior: r.style.scrollBehavior
|
|
6977
6997
|
};
|
|
6978
6998
|
let u = n.scrollHeight > n.clientHeight, d = n.scrollWidth > n.clientWidth, f = t.overflowY === "scroll" || c.overflowY === "scroll", p = t.overflowX === "scroll" || c.overflowX === "scroll", m = Math.max(0, i.innerWidth - r.clientWidth), h = Math.max(0, i.innerHeight - r.clientHeight), g = parseFloat(c.marginTop) + parseFloat(c.marginBottom), v = parseFloat(c.marginLeft) + parseFloat(c.marginRight), y = _(n) ? n : r;
|
|
6979
|
-
if (s =
|
|
6999
|
+
if (s = Ul(e), s) {
|
|
6980
7000
|
n.style.scrollbarGutter = l, y.style.overflowY = "hidden", y.style.overflowX = "hidden";
|
|
6981
7001
|
return;
|
|
6982
7002
|
}
|
|
@@ -6994,7 +7014,7 @@ function Ul(e) {
|
|
|
6994
7014
|
}), r.scrollTop = a, r.scrollLeft = o, n.setAttribute("data-base-ui-scroll-locked", ""), n.style.scrollBehavior = "unset";
|
|
6995
7015
|
}
|
|
6996
7016
|
function u() {
|
|
6997
|
-
Object.assign(n.style,
|
|
7017
|
+
Object.assign(n.style, zl), Object.assign(r.style, Bl), s || (n.scrollTop = a, n.scrollLeft = o, n.removeAttribute("data-base-ui-scroll-locked"), n.style.scrollBehavior = Vl);
|
|
6998
7018
|
}
|
|
6999
7019
|
function f() {
|
|
7000
7020
|
u(), c.request(l);
|
|
@@ -7005,7 +7025,7 @@ function Ul(e) {
|
|
|
7005
7025
|
c.cancel(), u(), typeof i.removeEventListener == "function" && p();
|
|
7006
7026
|
};
|
|
7007
7027
|
}
|
|
7008
|
-
var
|
|
7028
|
+
var Kl = new class {
|
|
7009
7029
|
lockCount = 0;
|
|
7010
7030
|
restore = null;
|
|
7011
7031
|
timeoutLock = Ui.create();
|
|
@@ -7026,19 +7046,19 @@ var Wl = new class {
|
|
|
7026
7046
|
this.restore = Ne;
|
|
7027
7047
|
return;
|
|
7028
7048
|
}
|
|
7029
|
-
let r = Zn || !
|
|
7030
|
-
this.restore = r ?
|
|
7049
|
+
let r = Zn || !Hl(e);
|
|
7050
|
+
this.restore = r ? Wl(e) : Gl(e);
|
|
7031
7051
|
}
|
|
7032
7052
|
}();
|
|
7033
|
-
function
|
|
7053
|
+
function ql(e = !0, t = null) {
|
|
7034
7054
|
U(() => {
|
|
7035
|
-
if (e) return
|
|
7055
|
+
if (e) return Kl.acquire(t);
|
|
7036
7056
|
}, [e, t]);
|
|
7037
7057
|
}
|
|
7038
7058
|
//#endregion
|
|
7039
7059
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/useAnchoredPopupScrollLock.js
|
|
7040
|
-
var
|
|
7041
|
-
function
|
|
7060
|
+
var Jl = 20;
|
|
7061
|
+
function Yl(e, t, r, i) {
|
|
7042
7062
|
let [a, o] = n.useState(!1);
|
|
7043
7063
|
U(() => {
|
|
7044
7064
|
if (!e || !t || r == null) {
|
|
@@ -7046,22 +7066,22 @@ function ql(e, t, r, i) {
|
|
|
7046
7066
|
return;
|
|
7047
7067
|
}
|
|
7048
7068
|
let n = X(r).documentElement.clientWidth, i = r.offsetWidth;
|
|
7049
|
-
o(n > 0 && i > 0 && i >= n -
|
|
7069
|
+
o(n > 0 && i > 0 && i >= n - Jl);
|
|
7050
7070
|
}, [
|
|
7051
7071
|
e,
|
|
7052
7072
|
t,
|
|
7053
7073
|
r
|
|
7054
|
-
]),
|
|
7074
|
+
]), ql(e && (!t || a), i);
|
|
7055
7075
|
}
|
|
7056
7076
|
//#endregion
|
|
7057
7077
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useOnFirstRender.js
|
|
7058
|
-
function
|
|
7078
|
+
function Xl(e) {
|
|
7059
7079
|
let t = n.useRef(!0);
|
|
7060
7080
|
t.current && (t.current = !1, e());
|
|
7061
7081
|
}
|
|
7062
7082
|
//#endregion
|
|
7063
7083
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js
|
|
7064
|
-
function
|
|
7084
|
+
function Zl(e) {
|
|
7065
7085
|
let t = n.useRef(""), r = n.useCallback((n) => {
|
|
7066
7086
|
n.defaultPrevented || (t.current = n.pointerType, e(n, n.pointerType));
|
|
7067
7087
|
}, [e]);
|
|
@@ -7078,7 +7098,7 @@ function Yl(e) {
|
|
|
7078
7098
|
}
|
|
7079
7099
|
//#endregion
|
|
7080
7100
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/useValueChanged.js
|
|
7081
|
-
function
|
|
7101
|
+
function Ql(e, t) {
|
|
7082
7102
|
let r = n.useRef(e), i = R(t);
|
|
7083
7103
|
U(() => {
|
|
7084
7104
|
r.current !== e && i(r.current);
|
|
@@ -7088,14 +7108,14 @@ function Xl(e, t) {
|
|
|
7088
7108
|
}
|
|
7089
7109
|
//#endregion
|
|
7090
7110
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js
|
|
7091
|
-
function
|
|
7111
|
+
function $l(e) {
|
|
7092
7112
|
let [t, r] = n.useState(null), i = R((t, n) => {
|
|
7093
7113
|
e || r(n || (Zn ? "touch" : ""));
|
|
7094
7114
|
});
|
|
7095
|
-
|
|
7115
|
+
Ql(e, (t) => {
|
|
7096
7116
|
t && !e && r(null);
|
|
7097
7117
|
});
|
|
7098
|
-
let { onClick: a, onPointerDown: o } =
|
|
7118
|
+
let { onClick: a, onPointerDown: o } = Zl(i);
|
|
7099
7119
|
return n.useMemo(() => ({
|
|
7100
7120
|
openMethod: t,
|
|
7101
7121
|
triggerProps: {
|
|
@@ -7110,7 +7130,7 @@ function Zl(e) {
|
|
|
7110
7130
|
}
|
|
7111
7131
|
//#endregion
|
|
7112
7132
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js
|
|
7113
|
-
function
|
|
7133
|
+
function eu(e) {
|
|
7114
7134
|
let t = e.getBoundingClientRect();
|
|
7115
7135
|
if (process.env.NODE_ENV !== "production") return t;
|
|
7116
7136
|
let n = d(e), r = n.getComputedStyle(e, "::before"), i = n.getComputedStyle(e, "::after");
|
|
@@ -7124,4 +7144,4 @@ function Ql(e) {
|
|
|
7124
7144
|
};
|
|
7125
7145
|
}
|
|
7126
7146
|
//#endregion
|
|
7127
|
-
export {
|
|
7147
|
+
export { Fs as $, ge as $n, Zi as $t, tl as A, er as An, Aa as At, jc as B, Nn as Bn, ga as Bt, sl as C, _r as Cn, Pa as Ct, ul as D, dr as Dn, Va as Dt, ll as E, yr as En, Ha as Et, Bc as F, Wn as Fn, ya as Ft, Tc as G, Xe as Gn, la as Gt, Ac as H, Dn as Hn, da as Ht, Rc as I, Hn as In, ha as It, vc as J, Fe as Jn, oa as Jt, xc as K, ze as Kn, ca as Kt, Fc as L, Vn as Ln, ma as Lt, Qc as M, Xn as Mn, Sa as Mt, Xc as N, X as Nn, _a as Nt, gl as O, Z as On, Na as Ot, Vc as P, Gn as Pn, pa as Pt, Rs as Q, ye as Qn, ta as Qt, Lc as R, Ln as Rn, ba as Rt, ol as S, br as Sn, qa as St, ml as T, gr as Tn, Ua as Tt, kc as U, En as Un, va as Ut, Mc as V, On as Vn, sa as Vt, Ec as W, $e as Wn, ua as Wt, ic as X, Me as Xn, ra as Xt, uc as Y, Ne as Yn, ia as Yt, $ as Z, Se as Zn, na as Zt, dl as _, fi as _n, $a as _t, Yl as a, Mi as an, V as ar, No as at, nl as b, Cr as bn, Q as bt, Ll as c, Li as cn, A as cr, Oo as ct, Ol as d, ui as dn, h as dr, vo as dt, ea as en, _e as er, Yo as et, Cl as f, di as fn, D as fr, yo as ft, rl as g, ii as gn, Qa as gt, fl as h, ai as hn, eo as ht, Xl as i, Vi as in, H as ir, Fo as it, $c as j, Qn as jn, Ta as jt, _l as k, fr as kn, ja as kt, Nl as l, li as ln, d as lr, Eo as lt, bl as m, oi as mn, to as mt, $l as n, Ui as nn, ne as nr, Wo as nt, ql as o, Fi as on, R as or, jo as ot, xl as p, ci as pn, bo as pt, _c as q, Pe as qn, xa as qt, Ql as r, Wi as rn, U as rr, Po as rt, Rl as s, Ii as sn, F as sr, Mo as st, eu as t, Yi as tn, he as tr, Go as tt, jl as u, si as un, m as ur, To as ut, il as v, ni as vn, Ya as vt, cl as w, pr as wn, Fa as wt, pl as x, xr as xn, Ka as xt, al as y, Dr as yn, Ja as yt, Nc as z, Fn as zn, fa as zt };
|